@kanorio/elements 1.2.0 → 1.3.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 (337) hide show
  1. package/README.md +1 -1
  2. package/dist/CustomerAccountPanel-FXJEOS4F.js +2 -0
  3. package/dist/CustomerAccountPanel-LK4GSYYU.js +2 -0
  4. package/dist/{FormAddressField-QR7ZCH77.js → FormAddressField-NH5LD6K7.js} +2 -2
  5. package/dist/{FormAddressField-C6VN7J6I.js → FormAddressField-Z5XT2ELO.js} +2 -2
  6. package/dist/FormFileField-5YFTKIRZ.js +2 -0
  7. package/dist/FormFileField-D2XIGIML.js +2 -0
  8. package/dist/{FormTaxIdField-K34MDUPW.js → FormTaxIdField-GGBQOVZE.js} +2 -2
  9. package/dist/{FormTaxIdField-XMK5WRQO.js → FormTaxIdField-XJSMW3II.js} +2 -2
  10. package/dist/KanorioAccount-GXRAMZCI.js +2 -0
  11. package/dist/KanorioAccount-P6IIPIZ2.js +2 -0
  12. package/dist/KanorioAnalytics-KYTK3T2L.js +2 -0
  13. package/dist/KanorioAnalytics-XHKBWYTS.js +2 -0
  14. package/dist/KanorioCurriculum-3TLNLUL4.js +2 -0
  15. package/dist/KanorioCurriculum-SQ4S3U5T.js +2 -0
  16. package/dist/KanorioForm-FDS5UKUT.js +2 -0
  17. package/dist/KanorioForm-K3H3YUQH.js +2 -0
  18. package/dist/KanorioLightbox-QPJQJLNO.js +2 -0
  19. package/dist/KanorioLightbox-WBMR7MLG.js +2 -0
  20. package/dist/KanorioLogin-JMHHBRU7.js +2 -0
  21. package/dist/KanorioLogin-QMPBTK55.js +2 -0
  22. package/dist/KanorioMedia-5P63OK4U.js +2 -0
  23. package/dist/KanorioMedia-LONTU7H2.js +2 -0
  24. package/dist/KanorioReviews-AAQ27MYU.js +2 -0
  25. package/dist/KanorioReviews-LUB4KF23.js +2 -0
  26. package/dist/KanorioUnit-ADFQ7POH.js +2 -0
  27. package/dist/KanorioUnit-YBKFHGLB.js +2 -0
  28. package/dist/{MediaPlayer-F43FPK4E.js → MediaPlayer-C5KI6N5V.js} +2 -2
  29. package/dist/{MediaPlayer-JHFZFOOG.js → MediaPlayer-PMAEZSCZ.js} +2 -2
  30. package/dist/{PDFViewerFull-INVHZL4V.js → PDFViewerFull-6MZJTHN2.js} +2 -2
  31. package/dist/{PDFViewerFull-CB44M7GW.js → PDFViewerFull-P3HCVGDZ.js} +2 -2
  32. package/dist/account.d.ts +3 -2
  33. package/dist/account.js +1 -1
  34. package/dist/analytics.js +1 -1
  35. package/dist/ar-JXAEXYYY.js +2 -0
  36. package/dist/ar-UXUCJCPY.js +2 -0
  37. package/dist/bg-EUIPVVBX.js +2 -0
  38. package/dist/bg-HEU3KGAJ.js +2 -0
  39. package/dist/{bn-BHRS66N3.js → bn-L35GOE5D.js} +2 -2
  40. package/dist/{bn-DM5WNGJ5.js → bn-LMQOF3SO.js} +2 -2
  41. package/dist/bot-protection.d.ts +67 -36
  42. package/dist/bot-protection.js +1 -1
  43. package/dist/chunk-2H3LTDAA.js +2 -0
  44. package/dist/chunk-3NXF6SCJ.js +2 -0
  45. package/dist/{chunk-EE4S6NRV.js → chunk-4OC7BRQS.js} +2 -2
  46. package/dist/{chunk-DTBRUBPG.js → chunk-56UUP6CI.js} +2 -2
  47. package/dist/{chunk-IAXVJLJ3.js → chunk-65RP744E.js} +2 -2
  48. package/dist/chunk-APWDEDWM.js +2 -0
  49. package/dist/{chunk-H7VP4BYY.js → chunk-CD7JDUB6.js} +2 -2
  50. package/dist/{chunk-4KA3HSRQ.js → chunk-CIVS7LYU.js} +2 -2
  51. package/dist/chunk-CMYBXWO5.js +3 -0
  52. package/dist/{chunk-WM5S3YN5.js → chunk-CTMHQZAU.js} +2 -2
  53. package/dist/chunk-D4KDA3KL.js +2 -0
  54. package/dist/{chunk-36YEGBKK.js → chunk-EGJ6SNTR.js} +2 -2
  55. package/dist/chunk-G5673RJK.js +3 -0
  56. package/dist/{chunk-2ONAW3CA.js → chunk-GWUOOGNK.js} +2 -2
  57. package/dist/{chunk-FQCA2VGY.js → chunk-HAHAYDYM.js} +2 -2
  58. package/dist/chunk-IDY2ZCXL.js +2 -0
  59. package/dist/{chunk-NGRNPVON.js → chunk-II7PVZWZ.js} +2 -2
  60. package/dist/chunk-J5SMJRYC.js +2 -0
  61. package/dist/{chunk-N5PIQM4L.js → chunk-KW2CH7SS.js} +2 -2
  62. package/dist/chunk-KYXZNMNA.js +2 -0
  63. package/dist/{chunk-QOQQCCID.js → chunk-L3BUSP27.js} +2 -2
  64. package/dist/{chunk-B7KLKVIM.js → chunk-L66F3USG.js} +2 -2
  65. package/dist/{chunk-NBDRYQZV.js → chunk-OLGITMLA.js} +2 -2
  66. package/dist/{chunk-BGVTMWPN.js → chunk-OWXGUUSI.js} +2 -2
  67. package/dist/chunk-Q4APVE7S.js +2 -0
  68. package/dist/chunk-QF55WZDP.js +2 -0
  69. package/dist/{chunk-4MOCTNN7.js → chunk-QRKYFFDH.js} +2 -2
  70. package/dist/chunk-QYTK2CW3.js +2 -0
  71. package/dist/chunk-R5M6FXXQ.js +2 -0
  72. package/dist/chunk-RI64PHGM.js +2 -0
  73. package/dist/chunk-RNRIZCZS.js +2 -0
  74. package/dist/chunk-RTF2NUMK.js +3 -0
  75. package/dist/chunk-SB5665ZK.js +2 -0
  76. package/dist/{chunk-5HWAL7VK.js → chunk-SGFVHVLE.js} +2 -2
  77. package/dist/{chunk-K4VRRKYJ.js → chunk-UDNUWN4W.js} +2 -2
  78. package/dist/{chunk-AF46NLXK.js → chunk-UITC3NFQ.js} +2 -2
  79. package/dist/chunk-VGQ2N7JH.js +2 -0
  80. package/dist/chunk-WJPCDZSL.js +2 -0
  81. package/dist/{chunk-LWRWKZBC.js → chunk-WKKPZXK3.js} +2 -2
  82. package/dist/{chunk-Z4OV6QHI.js → chunk-Y5JA6B5O.js} +2 -2
  83. package/dist/cs-LY4LE4NI.js +2 -0
  84. package/dist/cs-MGLMNU2K.js +2 -0
  85. package/dist/curriculum.d.ts +3 -2
  86. package/dist/curriculum.js +1 -1
  87. package/dist/da-LQTLZNBW.js +2 -0
  88. package/dist/da-X5HKEDEL.js +2 -0
  89. package/dist/de-M3M4VBDR.js +2 -0
  90. package/dist/de-Y5ELIZBU.js +2 -0
  91. package/dist/{deliverables-C5RD2ASE.js → deliverables-EOIAZFWB.js} +25 -25
  92. package/dist/{deliverables-BDS7WMBC.js → deliverables-NO5NEFRM.js} +2 -2
  93. package/dist/{el-SMBF7FG4.js → el-7YYYEHW6.js} +2 -2
  94. package/dist/{el-G2AWU43W.js → el-YZGS3PLP.js} +2 -2
  95. package/dist/elements.css +1 -1
  96. package/dist/en-AU-IUEA3YQP.js +2 -0
  97. package/dist/en-AU-RQ2DVIXE.js +2 -0
  98. package/dist/en-CA-OFK46Q44.js +2 -0
  99. package/dist/en-CA-QDP57WHG.js +2 -0
  100. package/dist/en-GB-URCOTEDK.js +2 -0
  101. package/dist/en-GB-VNG2IO2E.js +2 -0
  102. package/dist/en-JSBHSC4K.js +2 -0
  103. package/dist/en-MCRNEXQP.js +2 -0
  104. package/dist/en-US-5RT4SJ3V.js +2 -0
  105. package/dist/en-US-IWMVMSUT.js +2 -0
  106. package/dist/es-419-53Z5HI6Z.js +2 -0
  107. package/dist/es-419-JFUQ3D4V.js +2 -0
  108. package/dist/es-ES-BMD6JJEO.js +2 -0
  109. package/dist/es-ES-PBIVNTAT.js +2 -0
  110. package/dist/fa-57P7R77M.js +2 -0
  111. package/dist/{fa-OYP2Q5EV.js → fa-NE4XJTHW.js} +2 -2
  112. package/dist/fi-G5MG7VJ2.js +2 -0
  113. package/dist/fi-SCTIKRMX.js +2 -0
  114. package/dist/form.d.ts +393 -23
  115. package/dist/form.js +1 -1
  116. package/dist/{forms-answers-address-7P6EVFY5.js → forms-answers-address-5MXQYIH3.js} +2 -2
  117. package/dist/{forms-answers-address-IQV2Y56H.js → forms-answers-address-BGBI445K.js} +2 -2
  118. package/dist/{forms-answers-tax-id-WJD7K3PG.js → forms-answers-tax-id-3AYXCNP5.js} +2 -2
  119. package/dist/{forms-answers-tax-id-D4GOUC6N.js → forms-answers-tax-id-LSWOEHJ4.js} +2 -2
  120. package/dist/fr-CA-4X7URW4M.js +2 -0
  121. package/dist/fr-CA-RQDI3NIQ.js +2 -0
  122. package/dist/fr-FR-EDVHTVOW.js +2 -0
  123. package/dist/fr-FR-KGXOTINP.js +2 -0
  124. package/dist/{gu-BREQK3GJ.js → gu-7AJCL43I.js} +2 -2
  125. package/dist/{gu-RNCZTEOA.js → gu-QE53XIWR.js} +2 -2
  126. package/dist/he-UWYKIUPF.js +2 -0
  127. package/dist/he-VLGZUN42.js +2 -0
  128. package/dist/{hi-DKG5TPYX.js → hi-5M4U37GW.js} +2 -2
  129. package/dist/{hi-F7Y62LAZ.js → hi-KXKJMKZF.js} +2 -2
  130. package/dist/{hu-3Y5YEIFL.js → hu-JU7V3YQX.js} +2 -2
  131. package/dist/{hu-L6W5O2G5.js → hu-YRF3KPIJ.js} +2 -2
  132. package/dist/id-IRL2KCIE.js +2 -0
  133. package/dist/id-SXO4Z54V.js +2 -0
  134. package/dist/index.d.ts +5 -3
  135. package/dist/index.js +1 -1
  136. package/dist/it-55QCLHB7.js +2 -0
  137. package/dist/it-RBRELRA3.js +2 -0
  138. package/dist/ja-2WRUVHKU.js +2 -0
  139. package/dist/ja-3HZPHYZS.js +2 -0
  140. package/dist/kanorio-elements.js +1 -1
  141. package/dist/{km-HPCMYWAG.js → km-EW4ISUB7.js} +2 -2
  142. package/dist/{km-PHVYTPLT.js → km-SL6MZB3H.js} +2 -2
  143. package/dist/{kn-QAWBGLHG.js → kn-RUSRJNGR.js} +2 -2
  144. package/dist/kn-YGEU3PSD.js +2 -0
  145. package/dist/ko-2GI6Z5YH.js +2 -0
  146. package/dist/ko-QK33QMU2.js +2 -0
  147. package/dist/{lightbox-DEvsB5dB.d.ts → lightbox-BmkHgtZg.d.ts} +1 -1
  148. package/dist/lightbox.d.ts +4 -3
  149. package/dist/lightbox.js +1 -1
  150. package/dist/{lo-JNUKFIQV.js → lo-PPDKXTQQ.js} +2 -2
  151. package/dist/{lo-YRHYLRZC.js → lo-ZRV6OAH6.js} +2 -2
  152. package/dist/login.d.ts +3 -2
  153. package/dist/login.js +1 -1
  154. package/dist/media.d.ts +3 -2
  155. package/dist/media.js +1 -1
  156. package/dist/{ml-QO64O4H6.js → ml-BIZEFHNR.js} +2 -2
  157. package/dist/{ml-3LXSDTNF.js → ml-KO2JGAL5.js} +2 -2
  158. package/dist/{mr-PLM72664.js → mr-J4AGQFC7.js} +2 -2
  159. package/dist/{mr-5WLN37JQ.js → mr-PZNRW5MW.js} +2 -2
  160. package/dist/{ms-PIAATVMD.js → ms-NYWKJQEQ.js} +2 -2
  161. package/dist/{ms-N544Y63H.js → ms-OMUKF5WC.js} +2 -2
  162. package/dist/{my-3J665CWK.js → my-FHI5JEQF.js} +2 -2
  163. package/dist/{my-6IKSM3XW.js → my-R4OXNUDW.js} +2 -2
  164. package/dist/nb-EC6AP76Y.js +2 -0
  165. package/dist/nb-U4QN5GJE.js +2 -0
  166. package/dist/{ne-ASFNHMO3.js → ne-DRPNDCZH.js} +2 -2
  167. package/dist/ne-J3XQJZAY.js +2 -0
  168. package/dist/nl-BE-QIH5K6WQ.js +2 -0
  169. package/dist/nl-BE-VHBDCIRF.js +2 -0
  170. package/dist/nl-NL-FZMZRVH4.js +2 -0
  171. package/dist/nl-NL-USXHXD5U.js +2 -0
  172. package/dist/nn-IPL74C6S.js +2 -0
  173. package/dist/nn-UCSEDGDB.js +2 -0
  174. package/dist/{pa-P2GAYL5A.js → pa-LTF7CWS2.js} +2 -2
  175. package/dist/{pa-VX5TUNDP.js → pa-NTK4KSUF.js} +2 -2
  176. package/dist/{phone-input-Q5AV6KSW.js → phone-input-DOL46AIF.js} +2 -2
  177. package/dist/{phone-input-T6QX2TDS.js → phone-input-PXLNDXAB.js} +2 -2
  178. package/dist/pl-6FXX3WNC.js +2 -0
  179. package/dist/pl-YWCG2YWW.js +2 -0
  180. package/dist/{provider-CMLzyAjJ.d.ts → provider-BYGVc6kS.d.ts} +3 -1
  181. package/dist/provider.d.ts +3 -2
  182. package/dist/provider.js +1 -1
  183. package/dist/pt-BR-5JRKIQVH.js +2 -0
  184. package/dist/pt-BR-CIJCMCLE.js +2 -0
  185. package/dist/pt-PT-A7F2KKCY.js +2 -0
  186. package/dist/pt-PT-Y2UCAKHP.js +2 -0
  187. package/dist/reviews.d.ts +3 -2
  188. package/dist/reviews.js +1 -1
  189. package/dist/ro-6MQF2KY2.js +2 -0
  190. package/dist/ro-YISUN7LU.js +2 -0
  191. package/dist/ru-KGU3SC3S.js +2 -0
  192. package/dist/ru-RMPFJQSL.js +2 -0
  193. package/dist/{si-5VUM5FGR.js → si-CTQN6I2M.js} +2 -2
  194. package/dist/{si-5F7RWQIE.js → si-N5U32GIL.js} +2 -2
  195. package/dist/sv-36EB3HIA.js +2 -0
  196. package/dist/sv-QGZRDKBJ.js +2 -0
  197. package/dist/sw-CWIRVHYD.js +2 -0
  198. package/dist/sw-OUQYTLJF.js +2 -0
  199. package/dist/{ta-MNWTH3F5.js → ta-E3ZBHC6A.js} +2 -2
  200. package/dist/{ta-R73RBA23.js → ta-N7BHKWBO.js} +2 -2
  201. package/dist/{te-5SBVH4OF.js → te-7JC2KGAU.js} +2 -2
  202. package/dist/{te-GVW56XDM.js → te-CTCZQKFU.js} +2 -2
  203. package/dist/{th-G6SY3D2Q.js → th-AN5CLQP6.js} +2 -2
  204. package/dist/{th-2GWK7DBB.js → th-JVK4E2AJ.js} +2 -2
  205. package/dist/tl-BSWGJB7O.js +2 -0
  206. package/dist/tl-X72423V3.js +2 -0
  207. package/dist/tr-22NUPSET.js +2 -0
  208. package/dist/tr-AZ2PLRZY.js +2 -0
  209. package/dist/{uk-PGHXMWJR.js → uk-POKPJJDZ.js} +2 -2
  210. package/dist/uk-UOTQJ3E7.js +2 -0
  211. package/dist/unit.d.ts +3 -1
  212. package/dist/unit.js +1 -1
  213. package/dist/{ur-4CR64XUI.js → ur-6LBRTMAE.js} +2 -2
  214. package/dist/{ur-J5HV4NTW.js → ur-NRHFTLO5.js} +2 -2
  215. package/dist/vi-3ZVAOXIJ.js +2 -0
  216. package/dist/vi-XC4CGJHX.js +2 -0
  217. package/dist/web-components.js +1 -1
  218. package/dist/zh-CN-EKEY2CLM.js +2 -0
  219. package/dist/zh-CN-XW3PLUG5.js +2 -0
  220. package/dist/zh-HK-25OZZBHO.js +2 -0
  221. package/dist/zh-HK-EPQAUBL3.js +2 -0
  222. package/dist/zh-Hant-LFJZCOMK.js +2 -0
  223. package/dist/zh-Hant-RQMTFZSE.js +2 -0
  224. package/package.json +2 -2
  225. package/dist/CustomerAccountPanel-DJKV7LT4.js +0 -2
  226. package/dist/CustomerAccountPanel-RWEHWBJY.js +0 -2
  227. package/dist/FormFileField-LZDCXI2Z.js +0 -2
  228. package/dist/FormFileField-ONL4Q55V.js +0 -2
  229. package/dist/KanorioAccount-EN3TM67X.js +0 -2
  230. package/dist/KanorioAccount-XGVSGVYN.js +0 -2
  231. package/dist/KanorioAnalytics-NEKTFQEE.js +0 -2
  232. package/dist/KanorioAnalytics-UMCUWQM7.js +0 -2
  233. package/dist/KanorioCurriculum-3QSCOHK7.js +0 -2
  234. package/dist/KanorioCurriculum-RUIGZ5X7.js +0 -2
  235. package/dist/KanorioForm-GUA5GEJY.js +0 -2
  236. package/dist/KanorioForm-KXV7D2TU.js +0 -2
  237. package/dist/KanorioLightbox-M72HNQQX.js +0 -2
  238. package/dist/KanorioLightbox-TQ3Q73TD.js +0 -2
  239. package/dist/KanorioLogin-5XFN3YEE.js +0 -2
  240. package/dist/KanorioLogin-AJHHVQGV.js +0 -2
  241. package/dist/KanorioMedia-ADKUDH5C.js +0 -2
  242. package/dist/KanorioMedia-DLBSXCKA.js +0 -2
  243. package/dist/KanorioReviews-42FZSXTI.js +0 -2
  244. package/dist/KanorioReviews-7LD5WKFG.js +0 -2
  245. package/dist/KanorioUnit-NWBX5DEI.js +0 -2
  246. package/dist/KanorioUnit-SIM3344J.js +0 -2
  247. package/dist/ar-3VA7IUCO.js +0 -2
  248. package/dist/ar-AUQCHHZG.js +0 -2
  249. package/dist/bg-IRGRVWOG.js +0 -2
  250. package/dist/bg-QWC2KG3G.js +0 -2
  251. package/dist/chunk-4BBERZ6T.js +0 -2
  252. package/dist/chunk-5AUWUK5R.js +0 -2
  253. package/dist/chunk-66XN5RR4.js +0 -2
  254. package/dist/chunk-EZMTUAQX.js +0 -2
  255. package/dist/chunk-FSY5GB5E.js +0 -3
  256. package/dist/chunk-G4U6BFZY.js +0 -2
  257. package/dist/chunk-GJY6AQIS.js +0 -2
  258. package/dist/chunk-IXDKZO42.js +0 -2
  259. package/dist/chunk-MIQK3T3Y.js +0 -2
  260. package/dist/chunk-QGR3QAQB.js +0 -3
  261. package/dist/chunk-SUXTLVTX.js +0 -2
  262. package/dist/chunk-UIHBR4NU.js +0 -3
  263. package/dist/chunk-WXIUWMFR.js +0 -2
  264. package/dist/cs-3IX2ZQKJ.js +0 -2
  265. package/dist/cs-NZW6FBFY.js +0 -2
  266. package/dist/da-AFMLFM32.js +0 -2
  267. package/dist/da-PZ32KKTE.js +0 -2
  268. package/dist/de-5JPEK4HF.js +0 -2
  269. package/dist/de-MVL4XGYR.js +0 -2
  270. package/dist/en-AIAENVLI.js +0 -2
  271. package/dist/en-AU-LB5UVGIW.js +0 -2
  272. package/dist/en-AU-Q2O2HPJ2.js +0 -2
  273. package/dist/en-CA-AZDOY7PW.js +0 -2
  274. package/dist/en-CA-PVKXM3WS.js +0 -2
  275. package/dist/en-GB-2N4WB6SL.js +0 -2
  276. package/dist/en-GB-Y5QRPC7S.js +0 -2
  277. package/dist/en-SAXQF5YW.js +0 -2
  278. package/dist/en-US-74L4OI3J.js +0 -2
  279. package/dist/en-US-EKS52JBW.js +0 -2
  280. package/dist/es-419-Q5IH6W5F.js +0 -2
  281. package/dist/es-419-VSZWGONE.js +0 -2
  282. package/dist/es-ES-7L55KPLO.js +0 -2
  283. package/dist/es-ES-ETSYFLPQ.js +0 -2
  284. package/dist/fa-WRJCKGS3.js +0 -2
  285. package/dist/fi-44ST6B6Q.js +0 -2
  286. package/dist/fi-J6NJBPNK.js +0 -2
  287. package/dist/fr-CA-KXRNFZBP.js +0 -2
  288. package/dist/fr-CA-PWWAPLBH.js +0 -2
  289. package/dist/fr-FR-FMLQPLOD.js +0 -2
  290. package/dist/fr-FR-MQAFE7IX.js +0 -2
  291. package/dist/he-GNC45OCB.js +0 -2
  292. package/dist/he-VXZCGAHY.js +0 -2
  293. package/dist/id-7DWHYYFC.js +0 -2
  294. package/dist/id-DCV57AQB.js +0 -2
  295. package/dist/it-7RASZ4SK.js +0 -2
  296. package/dist/it-JICU5WVL.js +0 -2
  297. package/dist/ja-4V7QJLTM.js +0 -2
  298. package/dist/ja-52MBIM3T.js +0 -2
  299. package/dist/kn-5DYCOYAN.js +0 -2
  300. package/dist/ko-55JV4VQK.js +0 -2
  301. package/dist/ko-FZIJZG6K.js +0 -2
  302. package/dist/nb-345ACUTX.js +0 -2
  303. package/dist/nb-F33WYJ6T.js +0 -2
  304. package/dist/ne-AAIECB2W.js +0 -2
  305. package/dist/nl-BE-SHZLAL5T.js +0 -2
  306. package/dist/nl-BE-WK4C6XRZ.js +0 -2
  307. package/dist/nl-NL-2YLHGJZL.js +0 -2
  308. package/dist/nl-NL-PHRY43UB.js +0 -2
  309. package/dist/nn-I5A2LCBH.js +0 -2
  310. package/dist/nn-S3SNETRB.js +0 -2
  311. package/dist/pl-4Y4BWTLT.js +0 -2
  312. package/dist/pl-SGPLZAER.js +0 -2
  313. package/dist/pt-BR-CW3MRSRP.js +0 -2
  314. package/dist/pt-BR-WKEKB5CG.js +0 -2
  315. package/dist/pt-PT-AJZQS2C6.js +0 -2
  316. package/dist/pt-PT-ZTPCI2K6.js +0 -2
  317. package/dist/ro-ANISGUFX.js +0 -2
  318. package/dist/ro-HRV64STT.js +0 -2
  319. package/dist/ru-7U566HR4.js +0 -2
  320. package/dist/ru-PKSZKOLH.js +0 -2
  321. package/dist/sv-HZVCM7LG.js +0 -2
  322. package/dist/sv-UOGO55PW.js +0 -2
  323. package/dist/sw-5XU65KFC.js +0 -2
  324. package/dist/sw-KVAYRFED.js +0 -2
  325. package/dist/tl-OCD2O6J3.js +0 -2
  326. package/dist/tl-PZNXANIM.js +0 -2
  327. package/dist/tr-2BDM6H5Q.js +0 -2
  328. package/dist/tr-VFMHVRQX.js +0 -2
  329. package/dist/uk-OQRACKKD.js +0 -2
  330. package/dist/vi-MQSOSIUY.js +0 -2
  331. package/dist/vi-U7OT2LM7.js +0 -2
  332. package/dist/zh-CN-CCYHPSVA.js +0 -2
  333. package/dist/zh-CN-RNW2BEY7.js +0 -2
  334. package/dist/zh-HK-HE2T63O2.js +0 -2
  335. package/dist/zh-HK-RKREDSAO.js +0 -2
  336. package/dist/zh-Hant-GBQLGJDF.js +0 -2
  337. package/dist/zh-Hant-T6KHSA5B.js +0 -2
@@ -1,4 +1,4 @@
1
- import{Input}from"./chunk-W32ZFOPN.js";import{FileDownloadCard,MediaPlayer,PDFViewer}from"./chunk-K4VRRKYJ.js";import"./chunk-JREL5347.js";import"./chunk-CUQUEGX2.js";import"./chunk-S7FE2XRA.js";import"./chunk-ZDU7A7WZ.js";import"./chunk-F5NEDREL.js";import{deliverablePlayerLabels}from"./chunk-MC63CLSM.js";import"./chunk-63XJWMJG.js";import{AuthorList}from"./chunk-5G3PQI25.js";import"./chunk-RG5JA44V.js";import"./chunk-FFAWYDLJ.js";import{onDemand}from"./chunk-E77WGXYW.js";import"./chunk-C7HUM2EN.js";import"./chunk-TEUQV3AT.js";import{TONE_BG_TINT_STRONG_HOVER,TONE_BORDER_STRONG,TONE_TEXT_BODY,TONE_TEXT_SUBTLE}from"./chunk-RKEHHJDU.js";import{formatFileSize}from"./chunk-4BEKWYEW.js";import{formatParenthetical,separatorsFor}from"./chunk-OIKRLEW6.js";import{MediaFactsProvider,SiteImage,useMediaFacts}from"./chunk-B7KLKVIM.js";import{displayFileName,useMediaProtection}from"./chunk-QOQQCCID.js";import"./chunk-O2SYHUQF.js";import{ArrowLeft,Award,Check,ChevronDown,ChevronLeft,Circle,CircleCheck,CirclePlay,CircleX,Download,ExternalLink,FileText,List,Lock,PanelLeft,Paperclip,RotateCw,Search,Settings2,X}from"./chunk-33AQQY6T.js";import{cn}from"./chunk-VUTODQFX.js";import{fillLabel}from"./chunk-KNNN5V3T.js";import"./chunk-763LNERD.js";import{useSiteLabels}from"./chunk-U7H3W23Q.js";import{__commonJS,__export,__toESM}from"./chunk-3ZTUZPSD.js";var require_extend=__commonJS({"../../node_modules/.pnpm/extend@3.0.2/node_modules/extend/index.js"(exports,module){"use strict";var hasOwn=Object.prototype.hasOwnProperty;var toStr=Object.prototype.toString;var defineProperty=Object.defineProperty;var gOPD=Object.getOwnPropertyDescriptor;var isArray=function isArray2(arr){if(typeof Array.isArray==="function"){return Array.isArray(arr)}return toStr.call(arr)==="[object Array]"};var isPlainObject2=function isPlainObject3(obj){if(!obj||toStr.call(obj)!=="[object Object]"){return false}var hasOwnConstructor=hasOwn.call(obj,"constructor");var hasIsPrototypeOf=obj.constructor&&obj.constructor.prototype&&hasOwn.call(obj.constructor.prototype,"isPrototypeOf");if(obj.constructor&&!hasOwnConstructor&&!hasIsPrototypeOf){return false}var key;for(key in obj){}return typeof key==="undefined"||hasOwn.call(obj,key)};var setProperty=function setProperty2(target,options){if(defineProperty&&options.name==="__proto__"){defineProperty(target,options.name,{enumerable:true,configurable:true,value:options.newValue,writable:true})}else{target[options.name]=options.newValue}};var getProperty=function getProperty2(obj,name){if(name==="__proto__"){if(!hasOwn.call(obj,name)){return void 0}else if(gOPD){return gOPD(obj,name).value}}return obj[name]};module.exports=function extend2(){var options,name,src,copy,copyIsArray,clone;var target=arguments[0];var i=1;var length=arguments.length;var deep=false;if(typeof target==="boolean"){deep=target;target=arguments[1]||{};i=2}if(target==null||typeof target!=="object"&&typeof target!=="function"){target={}}for(;i<length;++i){options=arguments[i];if(options!=null){for(name in options){src=getProperty(target,name);copy=getProperty(options,name);if(target!==copy){if(deep&&copy&&(isPlainObject2(copy)||(copyIsArray=isArray(copy)))){if(copyIsArray){copyIsArray=false;clone=src&&isArray(src)?src:[]}else{clone=src&&isPlainObject2(src)?src:{}}setProperty(target,{name,newValue:extend2(deep,clone,copy)})}else if(typeof copy!=="undefined"){setProperty(target,{name,newValue:copy})}}}}}return target}}});import{useCallback,useEffect as useEffect2,useMemo as useMemo2,useRef as useRef2,useState as useState3}from"react";import{useEffect,useMemo,useRef,useState}from"react";import{Fragment,jsx,jsxs}from"react/jsx-runtime";var BORDER="border-[var(--site-border,rgba(0,0,0,0.1))]";var SURFACE="bg-[var(--site-surface,#ffffff)]";var MUTED="text-[var(--site-fg-muted,#71717a)]";var FG="text-[var(--site-fg,#18181b)]";var CHIP="inline-flex min-h-9 items-center rounded-full border px-3 text-xs";function fill(template,values){return template.replace(/\{(\w+)\}/g,(_m,key)=>String(values[key]??""))}function formatTime(seconds){const total=Math.max(0,Math.floor(seconds));const h=Math.floor(total/3600);const m=Math.floor(total%3600/60);const s=total%60;const mm=h>0?String(m).padStart(2,"0"):String(m);return`${h>0?`${h}:`:""}${mm}:${String(s).padStart(2,"0")}`}function languageName(locale,uiLocale){try{return new Intl.DisplayNames([uiLocale],{type:"language"}).of(locale)??locale}catch{return locale}}function activeSegmentIndex(segments,time){let lo=0;let hi=segments.length-1;let hit=-1;while(lo<=hi){const mid=lo+hi>>1;if(segments[mid].s<=time){hit=mid;lo=mid+1}else hi=mid-1}return hit}function highlight(text6,query){if(!query)return text6;const lower=text6.toLowerCase();const needle=query.toLowerCase();const parts=[];let from=0;for(;;){const at=lower.indexOf(needle,from);if(at===-1)break;if(at>from)parts.push(text6.slice(from,at));parts.push(jsx("mark",{className:"rounded-sm bg-yellow-200 px-0.5 text-inherit dark:bg-yellow-500/40",children:text6.slice(at,at+needle.length)},at));from=at+needle.length}if(from<text6.length)parts.push(text6.slice(from));return parts}function TranscriptPanel({labels,open,onToggle,status,data,activeIndex,onSeek,onLocaleChange,onRetry,uiLocale,fileName,className}){const[query,setQuery]=useState("");const[follow,setFollow]=useState(true);const listRef=useRef(null);const trimmed=query.trim();const matches=useMemo(()=>{if(!data||!trimmed)return null;const needle=trimmed.toLowerCase();return data.segments.map((seg,index2)=>seg.t.toLowerCase().includes(needle)?index2:-1).filter(i=>i>=0)},[data,trimmed]);const visible=matches??(data?data.segments.map((_seg,index2)=>index2):[]);useEffect(()=>{if(!open||!follow||matches||activeIndex<0)return;const list3=listRef.current;const row=list3?.querySelector(`[data-index="${activeIndex}"]`);if(!list3||!row)return;const top=row.offsetTop-list3.offsetTop;const bottom=top+row.offsetHeight;if(top<list3.scrollTop||bottom>list3.scrollTop+list3.clientHeight)list3.scrollTo({top:Math.max(0,top-list3.clientHeight/3),behavior:"smooth"})},[activeIndex,open,follow,matches]);const download=()=>{if(!data)return;const blob=new Blob([data.segments.map(seg=>seg.t).join("\n")],{type:"text/plain;charset=utf-8"});const url=URL.createObjectURL(blob);const a=document.createElement("a");a.href=url;a.download=`${fileName||"transcript"}.${data.locale}.txt`;document.body.appendChild(a);a.click();a.remove();setTimeout(()=>URL.revokeObjectURL(url),1e3)};const trackLabel=track=>{const name=languageName(track.locale,uiLocale);if(track.edited)return name;if(track.source==="ai")return formatParenthetical(uiLocale,name,labels.transcriptAutoGenerated);if(track.source==="translation")return formatParenthetical(uiLocale,name,labels.transcriptAutoTranslated);return name};return jsxs("section",{className:cn("rounded-[var(--site-radius-card,0.75rem)] border",BORDER,SURFACE,className),"aria-label":labels.transcript,"data-kanorio-transcript":true,children:[jsxs("button",{type:"button",onClick:()=>onToggle(!open),"aria-expanded":open,className:cn("flex min-h-12 w-full items-center gap-2 px-3 text-left text-sm font-semibold",FG),children:[jsx(FileText,{className:cn("h-4 w-4 shrink-0",MUTED),"aria-hidden":"true"}),jsx("span",{className:"min-w-0 flex-1 truncate",children:labels.transcript}),jsx("span",{className:cn("text-xs font-normal",MUTED),children:open?labels.transcriptHide:labels.transcriptShow}),jsx(ChevronDown,{className:cn("h-4 w-4 shrink-0 transition-transform",MUTED,open&&"rotate-180"),"aria-hidden":"true"})]}),open&&jsx("div",{className:cn("border-t",BORDER),children:status==="loading"||status==="idle"?jsx("div",{className:"space-y-2 p-3","aria-busy":"true",children:[0,1,2].map(i=>jsx("div",{className:"h-4 animate-pulse rounded bg-black/5 dark:bg-white/10",style:{width:`${80-i*15}%`}},i))}):status==="error"||!data?jsxs("div",{role:"alert",className:cn("flex flex-col items-center gap-2 p-6 text-center text-sm",MUTED),children:[jsx("p",{children:labels.loadError}),jsxs("button",{type:"button",onClick:onRetry,className:cn(CHIP,BORDER,FG),children:[jsx(RotateCw,{className:"mr-1 h-3.5 w-3.5","aria-hidden":"true"})," ",labels.retry]})]}):jsxs(Fragment,{children:[jsxs("div",{className:"flex flex-wrap items-center gap-2 p-3",children:[jsxs("label",{className:"relative min-w-40 flex-1",children:[jsx(Search,{className:cn("pointer-events-none absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2",MUTED),"aria-hidden":"true"}),jsx(Input,{type:"search",value:query,onChange:e=>setQuery(e.target.value),placeholder:labels.transcriptSearch,"aria-label":labels.transcriptSearch,className:"h-10 pl-9"})]}),jsx("button",{type:"button",onClick:()=>setFollow(v=>!v),"aria-pressed":follow,className:cn(CHIP,BORDER,follow?FG:MUTED,follow&&"bg-black/5 dark:bg-white/10"),children:labels.transcriptFollow}),jsxs("button",{type:"button",onClick:download,className:cn(CHIP,BORDER,FG),children:[jsx(Download,{className:"mr-1 h-3.5 w-3.5","aria-hidden":"true"})," ",labels.transcriptDownload]})]}),data.tracks.length>1&&jsx("div",{className:"flex flex-wrap items-center gap-2 px-3 pb-3",role:"group","aria-label":labels.transcriptLanguage,children:data.tracks.map(track=>jsx("button",{type:"button",onClick:()=>onLocaleChange(track.locale),"aria-pressed":track.locale===data.locale,lang:track.locale,className:cn(CHIP,BORDER,track.locale===data.locale?cn(FG,"bg-black/5 dark:bg-white/10"):MUTED),children:trackLabel(track)},track.locale))}),matches&&jsx("p",{className:cn("px-3 pb-2 text-xs",MUTED),role:"status",children:matches.length>0?fill(labels.transcriptMatches,{count:matches.length}):labels.transcriptNoResults}),jsx("ol",{ref:listRef,className:"max-h-80 overflow-y-auto px-2 pb-2",lang:data.locale,children:visible.map(index2=>{const seg=data.segments[index2];const active=index2===activeIndex;return jsx("li",{"data-index":index2,children:jsxs("button",{type:"button",onClick:()=>onSeek(seg.s),"aria-current":active?"true":void 0,className:cn("flex w-full gap-3 rounded-[var(--site-radius-button,0.5rem)] px-2 py-1.5 text-left text-sm hover:bg-black/5 dark:hover:bg-white/10",active?cn(FG,"bg-black/5 font-medium dark:bg-white/10"):FG),children:[jsx("span",{className:cn("w-11 shrink-0 pt-0.5 font-mono text-xs tabular-nums",MUTED),children:formatTime(seg.s)}),jsx("span",{className:"min-w-0 flex-1 leading-relaxed",children:highlight(seg.t,trimmed)})]})},index2)})})]})})]})}function classifyDevice(input){if(input.width<768)return"mobile";if(input.coarsePointer&&input.width<1024)return"tablet";return"desktop"}import{Fragment as Fragment4}from"react";import React2 from"react";var DANGEROUS_PROTOCOLS=["javascript:","data:","vbscript:","file:","blob:","about:"];function isAllowedArticleMarkdownHref(href){const trimmed=href.trim();if(!trimmed)return false;const lower=trimmed.toLowerCase();for(const protocol of DANGEROUS_PROTOCOLS){if(lower.startsWith(protocol))return false}if(lower.startsWith("https://")||lower.startsWith("http://")||lower.startsWith("mailto:")||lower.startsWith("tel:")){return true}if(trimmed.startsWith("//"))return false;if(trimmed.startsWith("#")||trimmed.startsWith("?")){return true}if(trimmed.startsWith("/")){return true}const colonIdx=trimmed.indexOf(":");const slashIdx=trimmed.indexOf("/");if(colonIdx!==-1&&(slashIdx===-1||colonIdx<slashIdx)){return false}return true}function isExternalArticleMarkdownHref(href){const lower=href.trim().toLowerCase();return lower.startsWith("https://")||lower.startsWith("http://")}var PHRASING=new Set(["text","strong","emphasis","delete","inlineCode","link","break","underline","inlineStyle","image"]);function isPhrasing(node2){return PHRASING.has(node2.type)}function linkAllowed(url,profile){const trimmed=url.trim();if(!isAllowedArticleMarkdownHref(trimmed))return false;if(profile!=="email")return true;const lower=trimmed.toLowerCase();return lower.startsWith("http://")||lower.startsWith("https://")||lower.startsWith("mailto:")||lower.startsWith("tel:")}var HTML_BREAK_RE=/^\s*<br\s*\/?>\s*$/i;function unwrapStrong(nodes){const out=[];for(const node2 of nodes??[]){if(node2.type==="strong"){out.push(...unwrapStrong(node2.children));continue}out.push(node2.children?{...node2,children:unwrapStrong(node2.children)}:node2)}return out}function footnoteToText(node2,changes){changes.push({from:node2.type,to:"text"});const id=node2.label??node2.identifier??"";if(node2.type==="footnoteReference")return{type:"text",value:`(${id})`};const inner=(node2.children??[]).flatMap(child=>child.type==="paragraph"?child.children??[]:[child]);return{type:"paragraph",children:[{type:"text",value:`(${id}) `},...inner]}}function mapList(nodes,profile,changes){const out=[];for(const node2 of nodes??[]){const mapped=transformNode(node2,profile,changes);if(mapped)out.push(mapped)}return out}function headingToParagraph(node2){const hasContent=(node2.children??[]).some(child=>plainTextLength(child)>0);if(!hasContent)return{type:"paragraph",children:[]};return{type:"paragraph",children:[{type:"strong",children:unwrapStrong(node2.children)}]}}function plainTextLength(node2){if(node2.type==="text")return(node2.value??"").trim().length;return(node2.children??[]).reduce((sum,child)=>sum+plainTextLength(child),0)}function tableToList(node2){const rows=node2.children??[];const headerCells=(rows[0]?.children??[]).map(cell=>cellText(cell));const body=rows.length>1?rows.slice(1):rows;return{type:"list",ordered:false,spread:false,children:body.map(row=>({type:"listItem",spread:false,children:[{type:"paragraph",children:rowToPhrasing(row,rows.length>1?headerCells:null)}]}))}}function cellText(cell){const parts=[];const walk2=node2=>{if(node2.type==="text"&&node2.value)parts.push(node2.value);for(const child of node2.children??[])walk2(child)};walk2(cell);return parts.join("").trim()}function rowToPhrasing(row,headers){const cells=row.children??[];const out=[];const separators=separatorsFor([...headers??[],...cells.map(cell=>cellText(cell))].join(""));cells.forEach((cell,index2)=>{if(out.length>0)out.push({type:"text",value:separators.item});const header=headers?.[index2];if(header)out.push({type:"text",value:`${header}${separators.labelValue}`});out.push(...cell.children??[])});return out.length>0?out:[{type:"text",value:""}]}function transformNode(node2,profile,changes){if(node2.type==="html"){if(HTML_BREAK_RE.test(node2.value??"")){changes.push({from:"html",to:"break"});return{type:"break"}}changes.push({from:"html",to:"removed"});return null}if(node2.type==="yaml"||node2.type==="definition"){changes.push({from:node2.type,to:"removed"});return null}if(node2.type==="footnoteReference"||node2.type==="footnoteDefinition"){return footnoteToText(node2,changes)}if(node2.type==="link"&&!linkAllowed(node2.url??"",profile)){changes.push({from:"link",to:"text"});return{type:"text",value:cellText(node2)||node2.url||""}}if(profile==="article"){if(node2.type==="heading"&&node2.depth===1){changes.push({from:"heading",to:"heading"});return{...node2,depth:2,children:mapList(node2.children,profile,changes)}}return node2.children?{...node2,children:mapList(node2.children,profile,changes)}:node2}if(node2.type==="kanorioDirective"){changes.push({from:"directive",to:"removed"});return null}if(node2.type==="image"&&(profile==="inline"||profile==="body"||profile==="plain")){changes.push({from:"image",to:"removed"});return null}if(profile==="email"&&node2.type==="heading"){const depth=!node2.depth||node2.depth<=2?2:3;if(depth!==node2.depth)changes.push({from:"heading",to:"heading"});return{...node2,depth,children:mapList(node2.children,profile,changes)}}if((profile==="body"||profile==="plain"||profile==="inline")&&node2.type==="heading"){changes.push({from:"heading",to:"strong"});return headingToParagraph(node2)}if((profile==="body"||profile==="plain"||profile==="inline"||profile==="email")&&node2.type==="table"){changes.push({from:"table",to:"list"});return tableToList(node2)}if((profile==="body"||profile==="inline"||profile==="plain")&&(node2.type==="thematicBreak"||node2.type==="code"&&profile==="inline")){changes.push({from:node2.type,to:profile==="inline"?"text":"removed"});if(profile==="inline"&&node2.type==="code"){return{type:"paragraph",children:[{type:"text",value:node2.value??""}]}}return null}if(profile==="email"&&node2.type==="thematicBreak"){changes.push({from:"thematicBreak",to:"removed"});return null}return node2.children?{...node2,children:mapList(node2.children,profile,changes)}:node2}function flattenInline(nodes,changes){const out=[];const space=()=>{const last=out[out.length-1];if(!last)return;if(last.type==="text"&&last.value?.endsWith(" "))return;out.push({type:"text",value:" "})};const absorb=list3=>{for(const node2 of list3){if(isPhrasing(node2)&&node2.type!=="image"){if(node2.type==="text"&&node2.value){out.push({...node2,value:node2.value.replace(/[\r\n]+/g," ")})}else if(node2.type!=="image"){out.push(node2.children?{...node2,children:flattenInline(node2.children,changes)}:node2)}continue}if(node2.type==="image"||node2.type==="kanorioDirective"){changes.push({from:node2.type==="image"?"image":"directive",to:"removed"});continue}if(out.length>0)space();if(node2.type==="code"){changes.push({from:"code",to:"text"});out.push({type:"text",value:(node2.value??"").replace(/[\r\n]+/g," ")});continue}if(node2.type==="list"){node2.children?.forEach((item,index2)=>{if(out.length>0)space();out.push({type:"text",value:node2.ordered?`${(node2.start??1)+index2}. `:"- "});absorb(item.children??[])});continue}absorb(node2.children??[])}};absorb(nodes);return out.filter(node2=>node2.type!=="text"||node2.value!=="")}function stripLeadingBullets(paragraph2){const first=paragraph2.children?.[0];if(first?.type!=="text"||!first.value)return;first.value=first.value.replace(/^(?:\s*[•·])+\s*/,"");if(!first.value)paragraph2.children?.shift()}function trimPhrasingEdge(nodes,side){if(!nodes||nodes.length===0)return;const index2=side==="start"?0:nodes.length-1;const node2=nodes[index2];if(!node2)return;if(node2.type==="text"&&typeof node2.value==="string"){node2.value=side==="start"?node2.value.replace(/^\s+/,""):node2.value.replace(/\s+$/,"");return}if(node2.children)trimPhrasingEdge(node2.children,side)}function trimBlockEdges(node2){if(node2.type==="paragraph"||node2.type==="heading"){trimPhrasingEdge(node2.children,"start");trimPhrasingEdge(node2.children,"end")}for(const child of node2.children??[])trimBlockEdges(child)}var UNCLOSED_WITH_UNDERSCORE=/\*{2,}|__|~~|\+\+|\{s:[a-z0-9=;]*\}?|\{\/s\}|\{size:\d*\}?|\{\/size\}/g;var UNCLOSED_NO_UNDERSCORE=/\*{2,}|~~|\+\+|\{s:[a-z0-9=;]*\}?|\{\/s\}|\{size:\d*\}?|\{\/size\}/g;function stripUnclosed(node2,changes,profile){const pattern=profile==="inline"||profile==="body"?UNCLOSED_NO_UNDERSCORE:UNCLOSED_WITH_UNDERSCORE;if(node2.type==="text"&&node2.value){const next=node2.value.replace(pattern,"");if(next!==node2.value){changes.push({from:"unclosed-marker",to:"text"});node2.value=next}}for(const child of node2.children??[])stripUnclosed(child,changes,profile)}var BLOCK_CONTAINERS=new Set(["root","blockquote","listItem","list"]);function dropBlockLevelBreaks(node2){if(!node2.children)return;if(BLOCK_CONTAINERS.has(node2.type)){node2.children=node2.children.filter(child=>child.type!=="break")}for(const child of node2.children)dropBlockLevelBreaks(child)}function breaksToSpaces(nodes){return nodes.map(node2=>{if(node2.type==="break")return{type:"text",value:" "};return node2.children?{...node2,children:breaksToSpaces(node2.children)}:node2})}function compactText(node2){if(!node2.children)return;const out=[];for(const child of node2.children){compactText(child);if(child.type==="text"){if(!child.value)continue;const last=out[out.length-1];if(last?.type==="text"){last.value=(last.value??"")+child.value;continue}out.push({type:"text",value:child.value});continue}if(EMPTYABLE_INLINE.has(child.type)&&(child.children?.length??0)===0)continue;if(child.type==="paragraph"&&(child.children?.length??0)===0)continue;out.push(child)}node2.children=out}var EMPTYABLE_INLINE=new Set(["strong","emphasis","delete","underline","inlineStyle","link"]);function applyProfile(tree,profile){const changes=[];if(profile==="plain"){const asBody=applyProfile(tree,"body");return asBody}const mapped={type:"root",children:mapList(tree.children,profile,changes)};stripUnclosed(mapped,changes,profile);const next=profile==="inline"?{type:"root",children:[{type:"paragraph",children:breaksToSpaces(flattenInline(mapped.children??[],changes))}]}:mapped;dropBlockLevelBreaks(next);trimBlockEdges(next);compactText(next);if(profile==="inline"&&next.children?.[0]){stripLeadingBullets(next.children[0]);trimBlockEdges(next)}return{tree:next,changes}}function bail(error){if(error){throw error}}var import_extend=__toESM(require_extend(),1);function ok(){}function isPlainObject(value){if(typeof value!=="object"||value===null){return false}const prototype=Object.getPrototypeOf(value);return(prototype===null||prototype===Object.prototype||Object.getPrototypeOf(prototype)===null)&&!(Symbol.toStringTag in value)&&!(Symbol.iterator in value)}function trough(){const fns=[];const pipeline={run,use};return pipeline;function run(...values){let middlewareIndex=-1;const callback=values.pop();if(typeof callback!=="function"){throw new TypeError("Expected function as last argument, not "+callback)}next(null,...values);function next(error,...output){const fn=fns[++middlewareIndex];let index2=-1;if(error){callback(error);return}while(++index2<values.length){if(output[index2]===null||output[index2]===void 0){output[index2]=values[index2]}}values=output;if(fn){wrap(fn,next)(...output)}else{callback(null,...output)}}}function use(middelware){if(typeof middelware!=="function"){throw new TypeError("Expected `middelware` to be a function, not "+middelware)}fns.push(middelware);return pipeline}}function wrap(middleware,callback){let called;return wrapped;function wrapped(...parameters){const fnExpectsCallback=middleware.length>parameters.length;let result;if(fnExpectsCallback){parameters.push(done)}try{result=middleware.apply(this,parameters)}catch(error){const exception=error;if(fnExpectsCallback&&called){throw exception}return done(exception)}if(!fnExpectsCallback){if(result&&result.then&&typeof result.then==="function"){result.then(then,done)}else if(result instanceof Error){done(result)}else{then(result)}}}function done(error,...output){if(!called){called=true;callback(error,...output)}}function then(value){done(null,value)}}function stringifyPosition(value){if(!value||typeof value!=="object"){return""}if("position"in value||"type"in value){return position(value.position)}if("start"in value||"end"in value){return position(value)}if("line"in value||"column"in value){return point(value)}return""}function point(point3){return index(point3&&point3.line)+":"+index(point3&&point3.column)}function position(pos){return point(pos&&pos.start)+"-"+point(pos&&pos.end)}function index(value){return value&&typeof value==="number"?value:1}var VFileMessage=class extends Error{constructor(causeOrReason,optionsOrParentOrPlace,origin){super();if(typeof optionsOrParentOrPlace==="string"){origin=optionsOrParentOrPlace;optionsOrParentOrPlace=void 0}let reason="";let options={};let legacyCause=false;if(optionsOrParentOrPlace){if("line"in optionsOrParentOrPlace&&"column"in optionsOrParentOrPlace){options={place:optionsOrParentOrPlace}}else if("start"in optionsOrParentOrPlace&&"end"in optionsOrParentOrPlace){options={place:optionsOrParentOrPlace}}else if("type"in optionsOrParentOrPlace){options={ancestors:[optionsOrParentOrPlace],place:optionsOrParentOrPlace.position}}else{options={...optionsOrParentOrPlace}}}if(typeof causeOrReason==="string"){reason=causeOrReason}else if(!options.cause&&causeOrReason){legacyCause=true;reason=causeOrReason.message;options.cause=causeOrReason}if(!options.ruleId&&!options.source&&typeof origin==="string"){const index2=origin.indexOf(":");if(index2===-1){options.ruleId=origin}else{options.source=origin.slice(0,index2);options.ruleId=origin.slice(index2+1)}}if(!options.place&&options.ancestors&&options.ancestors){const parent=options.ancestors[options.ancestors.length-1];if(parent){options.place=parent.position}}const start=options.place&&"start"in options.place?options.place.start:options.place;this.ancestors=options.ancestors||void 0;this.cause=options.cause||void 0;this.column=start?start.column:void 0;this.fatal=void 0;this.file="";this.message=reason;this.line=start?start.line:void 0;this.name=stringifyPosition(options.place)||"1:1";this.place=options.place||void 0;this.reason=this.message;this.ruleId=options.ruleId||void 0;this.source=options.source||void 0;this.stack=legacyCause&&options.cause&&typeof options.cause.stack==="string"?options.cause.stack:"";this.actual=void 0;this.expected=void 0;this.note=void 0;this.url=void 0}};VFileMessage.prototype.file="";VFileMessage.prototype.name="";VFileMessage.prototype.reason="";VFileMessage.prototype.message="";VFileMessage.prototype.stack="";VFileMessage.prototype.column=void 0;VFileMessage.prototype.line=void 0;VFileMessage.prototype.ancestors=void 0;VFileMessage.prototype.cause=void 0;VFileMessage.prototype.fatal=void 0;VFileMessage.prototype.place=void 0;VFileMessage.prototype.ruleId=void 0;VFileMessage.prototype.source=void 0;var minpath={basename,dirname,extname,join,sep:"/"};function basename(path2,extname2){if(extname2!==void 0&&typeof extname2!=="string"){throw new TypeError('"ext" argument must be a string')}assertPath(path2);let start=0;let end=-1;let index2=path2.length;let seenNonSlash;if(extname2===void 0||extname2.length===0||extname2.length>path2.length){while(index2--){if(path2.codePointAt(index2)===47){if(seenNonSlash){start=index2+1;break}}else if(end<0){seenNonSlash=true;end=index2+1}}return end<0?"":path2.slice(start,end)}if(extname2===path2){return""}let firstNonSlashEnd=-1;let extnameIndex=extname2.length-1;while(index2--){if(path2.codePointAt(index2)===47){if(seenNonSlash){start=index2+1;break}}else{if(firstNonSlashEnd<0){seenNonSlash=true;firstNonSlashEnd=index2+1}if(extnameIndex>-1){if(path2.codePointAt(index2)===extname2.codePointAt(extnameIndex--)){if(extnameIndex<0){end=index2}}else{extnameIndex=-1;end=firstNonSlashEnd}}}}if(start===end){end=firstNonSlashEnd}else if(end<0){end=path2.length}return path2.slice(start,end)}function dirname(path2){assertPath(path2);if(path2.length===0){return"."}let end=-1;let index2=path2.length;let unmatchedSlash;while(--index2){if(path2.codePointAt(index2)===47){if(unmatchedSlash){end=index2;break}}else if(!unmatchedSlash){unmatchedSlash=true}}return end<0?path2.codePointAt(0)===47?"/":".":end===1&&path2.codePointAt(0)===47?"//":path2.slice(0,end)}function extname(path2){assertPath(path2);let index2=path2.length;let end=-1;let startPart=0;let startDot=-1;let preDotState=0;let unmatchedSlash;while(index2--){const code3=path2.codePointAt(index2);if(code3===47){if(unmatchedSlash){startPart=index2+1;break}continue}if(end<0){unmatchedSlash=true;end=index2+1}if(code3===46){if(startDot<0){startDot=index2}else if(preDotState!==1){preDotState=1}}else if(startDot>-1){preDotState=-1}}if(startDot<0||end<0||preDotState===0||preDotState===1&&startDot===end-1&&startDot===startPart+1){return""}return path2.slice(startDot,end)}function join(...segments){let index2=-1;let joined;while(++index2<segments.length){assertPath(segments[index2]);if(segments[index2]){joined=joined===void 0?segments[index2]:joined+"/"+segments[index2]}}return joined===void 0?".":normalize(joined)}function normalize(path2){assertPath(path2);const absolute=path2.codePointAt(0)===47;let value=normalizeString(path2,!absolute);if(value.length===0&&!absolute){value="."}if(value.length>0&&path2.codePointAt(path2.length-1)===47){value+="/"}return absolute?"/"+value:value}function normalizeString(path2,allowAboveRoot){let result="";let lastSegmentLength=0;let lastSlash=-1;let dots=0;let index2=-1;let code3;let lastSlashIndex;while(++index2<=path2.length){if(index2<path2.length){code3=path2.codePointAt(index2)}else if(code3===47){break}else{code3=47}if(code3===47){if(lastSlash===index2-1||dots===1){}else if(lastSlash!==index2-1&&dots===2){if(result.length<2||lastSegmentLength!==2||result.codePointAt(result.length-1)!==46||result.codePointAt(result.length-2)!==46){if(result.length>2){lastSlashIndex=result.lastIndexOf("/");if(lastSlashIndex!==result.length-1){if(lastSlashIndex<0){result="";lastSegmentLength=0}else{result=result.slice(0,lastSlashIndex);lastSegmentLength=result.length-1-result.lastIndexOf("/")}lastSlash=index2;dots=0;continue}}else if(result.length>0){result="";lastSegmentLength=0;lastSlash=index2;dots=0;continue}}if(allowAboveRoot){result=result.length>0?result+"/..":"..";lastSegmentLength=2}}else{if(result.length>0){result+="/"+path2.slice(lastSlash+1,index2)}else{result=path2.slice(lastSlash+1,index2)}lastSegmentLength=index2-lastSlash-1}lastSlash=index2;dots=0}else if(code3===46&&dots>-1){dots++}else{dots=-1}}return result}function assertPath(path2){if(typeof path2!=="string"){throw new TypeError("Path must be a string. Received "+JSON.stringify(path2))}}var minproc={cwd};function cwd(){return"/"}function isUrl(fileUrlOrPath){return Boolean(fileUrlOrPath!==null&&typeof fileUrlOrPath==="object"&&"href"in fileUrlOrPath&&fileUrlOrPath.href&&"protocol"in fileUrlOrPath&&fileUrlOrPath.protocol&&fileUrlOrPath.auth===void 0)}function urlToPath(path2){if(typeof path2==="string"){path2=new URL(path2)}else if(!isUrl(path2)){const error=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+path2+"`");error.code="ERR_INVALID_ARG_TYPE";throw error}if(path2.protocol!=="file:"){const error=new TypeError("The URL must be of scheme file");error.code="ERR_INVALID_URL_SCHEME";throw error}return getPathFromURLPosix(path2)}function getPathFromURLPosix(url){if(url.hostname!==""){const error=new TypeError('File URL host must be "localhost" or empty on darwin');error.code="ERR_INVALID_FILE_URL_HOST";throw error}const pathname=url.pathname;let index2=-1;while(++index2<pathname.length){if(pathname.codePointAt(index2)===37&&pathname.codePointAt(index2+1)===50){const third=pathname.codePointAt(index2+2);if(third===70||third===102){const error=new TypeError("File URL path must not include encoded / characters");error.code="ERR_INVALID_FILE_URL_PATH";throw error}}}return decodeURIComponent(pathname)}var order=["history","path","basename","stem","extname","dirname"];var VFile=class{constructor(value){let options;if(!value){options={}}else if(isUrl(value)){options={path:value}}else if(typeof value==="string"||isUint8Array(value)){options={value}}else{options=value}this.cwd="cwd"in options?"":minproc.cwd();this.data={};this.history=[];this.messages=[];this.value;this.map;this.result;this.stored;let index2=-1;while(++index2<order.length){const field2=order[index2];if(field2 in options&&options[field2]!==void 0&&options[field2]!==null){this[field2]=field2==="history"?[...options[field2]]:options[field2]}}let field;for(field in options){if(!order.includes(field)){this[field]=options[field]}}}get basename(){return typeof this.path==="string"?minpath.basename(this.path):void 0}set basename(basename2){assertNonEmpty(basename2,"basename");assertPart(basename2,"basename");this.path=minpath.join(this.dirname||"",basename2)}get dirname(){return typeof this.path==="string"?minpath.dirname(this.path):void 0}set dirname(dirname2){assertPath2(this.basename,"dirname");this.path=minpath.join(dirname2||"",this.basename)}get extname(){return typeof this.path==="string"?minpath.extname(this.path):void 0}set extname(extname2){assertPart(extname2,"extname");assertPath2(this.dirname,"extname");if(extname2){if(extname2.codePointAt(0)!==46){throw new Error("`extname` must start with `.`")}if(extname2.includes(".",1)){throw new Error("`extname` cannot contain multiple dots")}}this.path=minpath.join(this.dirname,this.stem+(extname2||""))}get path(){return this.history[this.history.length-1]}set path(path2){if(isUrl(path2)){path2=urlToPath(path2)}assertNonEmpty(path2,"path");if(this.path!==path2){this.history.push(path2)}}get stem(){return typeof this.path==="string"?minpath.basename(this.path,this.extname):void 0}set stem(stem){assertNonEmpty(stem,"stem");assertPart(stem,"stem");this.path=minpath.join(this.dirname||"",stem+(this.extname||""))}fail(causeOrReason,optionsOrParentOrPlace,origin){const message=this.message(causeOrReason,optionsOrParentOrPlace,origin);message.fatal=true;throw message}info(causeOrReason,optionsOrParentOrPlace,origin){const message=this.message(causeOrReason,optionsOrParentOrPlace,origin);message.fatal=void 0;return message}message(causeOrReason,optionsOrParentOrPlace,origin){const message=new VFileMessage(causeOrReason,optionsOrParentOrPlace,origin);if(this.path){message.name=this.path+":"+message.name;message.file=this.path}message.fatal=false;this.messages.push(message);return message}toString(encoding){if(this.value===void 0){return""}if(typeof this.value==="string"){return this.value}const decoder=new TextDecoder(encoding||void 0);return decoder.decode(this.value)}};function assertPart(part,name){if(part&&part.includes(minpath.sep)){throw new Error("`"+name+"` cannot be a path: did not expect `"+minpath.sep+"`")}}function assertNonEmpty(part,name){if(!part){throw new Error("`"+name+"` cannot be empty")}}function assertPath2(path2,name){if(!path2){throw new Error("Setting `"+name+"` requires `path` to be set too")}}function isUint8Array(value){return Boolean(value&&typeof value==="object"&&"byteLength"in value&&"byteOffset"in value)}var CallableInstance=(function(property){const self=this;const constr=self.constructor;const proto=constr.prototype;const value=proto[property];const apply=function(){return value.apply(apply,arguments)};Object.setPrototypeOf(apply,proto);return apply});var own={}.hasOwnProperty;var Processor=class _Processor extends CallableInstance{constructor(){super("copy");this.Compiler=void 0;this.Parser=void 0;this.attachers=[];this.compiler=void 0;this.freezeIndex=-1;this.frozen=void 0;this.namespace={};this.parser=void 0;this.transformers=trough()}copy(){const destination=new _Processor;let index2=-1;while(++index2<this.attachers.length){const attacher=this.attachers[index2];destination.use(...attacher)}destination.data((0,import_extend.default)(true,{},this.namespace));return destination}data(key,value){if(typeof key==="string"){if(arguments.length===2){assertUnfrozen("data",this.frozen);this.namespace[key]=value;return this}return own.call(this.namespace,key)&&this.namespace[key]||void 0}if(key){assertUnfrozen("data",this.frozen);this.namespace=key;return this}return this.namespace}freeze(){if(this.frozen){return this}const self=this;while(++this.freezeIndex<this.attachers.length){const[attacher,...options]=this.attachers[this.freezeIndex];if(options[0]===false){continue}if(options[0]===true){options[0]=void 0}const transformer=attacher.call(self,...options);if(typeof transformer==="function"){this.transformers.use(transformer)}}this.frozen=true;this.freezeIndex=Number.POSITIVE_INFINITY;return this}parse(file){this.freeze();const realFile=vfile(file);const parser=this.parser||this.Parser;assertParser("parse",parser);return parser(String(realFile),realFile)}process(file,done){const self=this;this.freeze();assertParser("process",this.parser||this.Parser);assertCompiler("process",this.compiler||this.Compiler);return done?executor(void 0,done):new Promise(executor);function executor(resolve,reject){const realFile=vfile(file);const parseTree=self.parse(realFile);self.run(parseTree,realFile,function(error,tree,file2){if(error||!tree||!file2){return realDone(error)}const compileTree=tree;const compileResult=self.stringify(compileTree,file2);if(looksLikeAValue(compileResult)){file2.value=compileResult}else{file2.result=compileResult}realDone(error,file2)});function realDone(error,file2){if(error||!file2){reject(error)}else if(resolve){resolve(file2)}else{ok(done,"`done` is defined if `resolve` is not");done(void 0,file2)}}}}processSync(file){let complete=false;let result;this.freeze();assertParser("processSync",this.parser||this.Parser);assertCompiler("processSync",this.compiler||this.Compiler);this.process(file,realDone);assertDone("processSync","process",complete);ok(result,"we either bailed on an error or have a tree");return result;function realDone(error,file2){complete=true;bail(error);result=file2}}run(tree,file,done){assertNode(tree);this.freeze();const transformers=this.transformers;if(!done&&typeof file==="function"){done=file;file=void 0}return done?executor(void 0,done):new Promise(executor);function executor(resolve,reject){ok(typeof file!=="function","`file` can\u2019t be a `done` anymore, we checked");const realFile=vfile(file);transformers.run(tree,realFile,realDone);function realDone(error,outputTree,file2){const resultingTree=outputTree||tree;if(error){reject(error)}else if(resolve){resolve(resultingTree)}else{ok(done,"`done` is defined if `resolve` is not");done(void 0,resultingTree,file2)}}}}runSync(tree,file){let complete=false;let result;this.run(tree,file,realDone);assertDone("runSync","run",complete);ok(result,"we either bailed on an error or have a tree");return result;function realDone(error,tree2){bail(error);result=tree2;complete=true}}stringify(tree,file){this.freeze();const realFile=vfile(file);const compiler2=this.compiler||this.Compiler;assertCompiler("stringify",compiler2);assertNode(tree);return compiler2(tree,realFile)}use(value,...parameters){const attachers=this.attachers;const namespace=this.namespace;assertUnfrozen("use",this.frozen);if(value===null||value===void 0){}else if(typeof value==="function"){addPlugin(value,parameters)}else if(typeof value==="object"){if(Array.isArray(value)){addList(value)}else{addPreset(value)}}else{throw new TypeError("Expected usable value, not `"+value+"`")}return this;function add(value2){if(typeof value2==="function"){addPlugin(value2,[])}else if(typeof value2==="object"){if(Array.isArray(value2)){const[plugin,...parameters2]=value2;addPlugin(plugin,parameters2)}else{addPreset(value2)}}else{throw new TypeError("Expected usable value, not `"+value2+"`")}}function addPreset(result){if(!("plugins"in result)&&!("settings"in result)){throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither")}addList(result.plugins);if(result.settings){namespace.settings=(0,import_extend.default)(true,namespace.settings,result.settings)}}function addList(plugins){let index2=-1;if(plugins===null||plugins===void 0){}else if(Array.isArray(plugins)){while(++index2<plugins.length){const thing=plugins[index2];add(thing)}}else{throw new TypeError("Expected a list of plugins, not `"+plugins+"`")}}function addPlugin(plugin,parameters2){let index2=-1;let entryIndex=-1;while(++index2<attachers.length){if(attachers[index2][0]===plugin){entryIndex=index2;break}}if(entryIndex===-1){attachers.push([plugin,...parameters2])}else if(parameters2.length>0){let[primary,...rest]=parameters2;const currentPrimary=attachers[entryIndex][1];if(isPlainObject(currentPrimary)&&isPlainObject(primary)){primary=(0,import_extend.default)(true,currentPrimary,primary)}attachers[entryIndex]=[plugin,primary,...rest]}}}};var unified=new Processor().freeze();function assertParser(name,value){if(typeof value!=="function"){throw new TypeError("Cannot `"+name+"` without `parser`")}}function assertCompiler(name,value){if(typeof value!=="function"){throw new TypeError("Cannot `"+name+"` without `compiler`")}}function assertUnfrozen(name,frozen){if(frozen){throw new Error("Cannot call `"+name+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}}function assertNode(node2){if(!isPlainObject(node2)||typeof node2.type!=="string"){throw new TypeError("Expected node, got `"+node2+"`")}}function assertDone(name,asyncName,complete){if(!complete){throw new Error("`"+name+"` finished async. Use `"+asyncName+"` instead")}}function vfile(value){return looksLikeAVFile(value)?value:new VFile(value)}function looksLikeAVFile(value){return Boolean(value&&typeof value==="object"&&"message"in value&&"messages"in value)}function looksLikeAValue(value){return typeof value==="string"||isUint8Array2(value)}function isUint8Array2(value){return Boolean(value&&typeof value==="object"&&"byteLength"in value&&"byteOffset"in value)}var emptyOptions={};function toString(value,options){const settings=options||emptyOptions;const includeImageAlt=typeof settings.includeImageAlt==="boolean"?settings.includeImageAlt:true;const includeHtml=typeof settings.includeHtml==="boolean"?settings.includeHtml:true;return one(value,includeImageAlt,includeHtml)}function one(value,includeImageAlt,includeHtml){if(node(value)){if("value"in value){return value.type==="html"&&!includeHtml?"":value.value}if(includeImageAlt&&"alt"in value&&value.alt){return value.alt}if("children"in value){return all(value.children,includeImageAlt,includeHtml)}}if(Array.isArray(value)){return all(value,includeImageAlt,includeHtml)}return""}function all(values,includeImageAlt,includeHtml){const result=[];let index2=-1;while(++index2<values.length){result[index2]=one(values[index2],includeImageAlt,includeHtml)}return result.join("")}function node(value){return Boolean(value&&typeof value==="object")}var characterEntities={AElig:"\xC6",AMP:"&",Aacute:"\xC1",Abreve:"\u0102",Acirc:"\xC2",Acy:"\u0410",Afr:"\u{1D504}",Agrave:"\xC0",Alpha:"\u0391",Amacr:"\u0100",And:"\u2A53",Aogon:"\u0104",Aopf:"\u{1D538}",ApplyFunction:"\u2061",Aring:"\xC5",Ascr:"\u{1D49C}",Assign:"\u2254",Atilde:"\xC3",Auml:"\xC4",Backslash:"\u2216",Barv:"\u2AE7",Barwed:"\u2306",Bcy:"\u0411",Because:"\u2235",Bernoullis:"\u212C",Beta:"\u0392",Bfr:"\u{1D505}",Bopf:"\u{1D539}",Breve:"\u02D8",Bscr:"\u212C",Bumpeq:"\u224E",CHcy:"\u0427",COPY:"\xA9",Cacute:"\u0106",Cap:"\u22D2",CapitalDifferentialD:"\u2145",Cayleys:"\u212D",Ccaron:"\u010C",Ccedil:"\xC7",Ccirc:"\u0108",Cconint:"\u2230",Cdot:"\u010A",Cedilla:"\xB8",CenterDot:"\xB7",Cfr:"\u212D",Chi:"\u03A7",CircleDot:"\u2299",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",Colon:"\u2237",Colone:"\u2A74",Congruent:"\u2261",Conint:"\u222F",ContourIntegral:"\u222E",Copf:"\u2102",Coproduct:"\u2210",CounterClockwiseContourIntegral:"\u2233",Cross:"\u2A2F",Cscr:"\u{1D49E}",Cup:"\u22D3",CupCap:"\u224D",DD:"\u2145",DDotrahd:"\u2911",DJcy:"\u0402",DScy:"\u0405",DZcy:"\u040F",Dagger:"\u2021",Darr:"\u21A1",Dashv:"\u2AE4",Dcaron:"\u010E",Dcy:"\u0414",Del:"\u2207",Delta:"\u0394",Dfr:"\u{1D507}",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",Diamond:"\u22C4",DifferentialD:"\u2146",Dopf:"\u{1D53B}",Dot:"\xA8",DotDot:"\u20DC",DotEqual:"\u2250",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVector:"\u21BD",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295F",DownRightVector:"\u21C1",DownRightVectorBar:"\u2957",DownTee:"\u22A4",DownTeeArrow:"\u21A7",Downarrow:"\u21D3",Dscr:"\u{1D49F}",Dstrok:"\u0110",ENG:"\u014A",ETH:"\xD0",Eacute:"\xC9",Ecaron:"\u011A",Ecirc:"\xCA",Ecy:"\u042D",Edot:"\u0116",Efr:"\u{1D508}",Egrave:"\xC8",Element:"\u2208",Emacr:"\u0112",EmptySmallSquare:"\u25FB",EmptyVerySmallSquare:"\u25AB",Eogon:"\u0118",Eopf:"\u{1D53C}",Epsilon:"\u0395",Equal:"\u2A75",EqualTilde:"\u2242",Equilibrium:"\u21CC",Escr:"\u2130",Esim:"\u2A73",Eta:"\u0397",Euml:"\xCB",Exists:"\u2203",ExponentialE:"\u2147",Fcy:"\u0424",Ffr:"\u{1D509}",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",Fopf:"\u{1D53D}",ForAll:"\u2200",Fouriertrf:"\u2131",Fscr:"\u2131",GJcy:"\u0403",GT:">",Gamma:"\u0393",Gammad:"\u03DC",Gbreve:"\u011E",Gcedil:"\u0122",Gcirc:"\u011C",Gcy:"\u0413",Gdot:"\u0120",Gfr:"\u{1D50A}",Gg:"\u22D9",Gopf:"\u{1D53E}",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\u{1D4A2}",Gt:"\u226B",HARDcy:"\u042A",Hacek:"\u02C7",Hat:"^",Hcirc:"\u0124",Hfr:"\u210C",HilbertSpace:"\u210B",Hopf:"\u210D",HorizontalLine:"\u2500",Hscr:"\u210B",Hstrok:"\u0126",HumpDownHump:"\u224E",HumpEqual:"\u224F",IEcy:"\u0415",IJlig:"\u0132",IOcy:"\u0401",Iacute:"\xCD",Icirc:"\xCE",Icy:"\u0418",Idot:"\u0130",Ifr:"\u2111",Igrave:"\xCC",Im:"\u2111",Imacr:"\u012A",ImaginaryI:"\u2148",Implies:"\u21D2",Int:"\u222C",Integral:"\u222B",Intersection:"\u22C2",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",Iogon:"\u012E",Iopf:"\u{1D540}",Iota:"\u0399",Iscr:"\u2110",Itilde:"\u0128",Iukcy:"\u0406",Iuml:"\xCF",Jcirc:"\u0134",Jcy:"\u0419",Jfr:"\u{1D50D}",Jopf:"\u{1D541}",Jscr:"\u{1D4A5}",Jsercy:"\u0408",Jukcy:"\u0404",KHcy:"\u0425",KJcy:"\u040C",Kappa:"\u039A",Kcedil:"\u0136",Kcy:"\u041A",Kfr:"\u{1D50E}",Kopf:"\u{1D542}",Kscr:"\u{1D4A6}",LJcy:"\u0409",LT:"<",Lacute:"\u0139",Lambda:"\u039B",Lang:"\u27EA",Laplacetrf:"\u2112",Larr:"\u219E",Lcaron:"\u013D",Lcedil:"\u013B",Lcy:"\u041B",LeftAngleBracket:"\u27E8",LeftArrow:"\u2190",LeftArrowBar:"\u21E4",LeftArrowRightArrow:"\u21C6",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21C3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230A",LeftRightArrow:"\u2194",LeftRightVector:"\u294E",LeftTee:"\u22A3",LeftTeeArrow:"\u21A4",LeftTeeVector:"\u295A",LeftTriangle:"\u22B2",LeftTriangleBar:"\u29CF",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21BF",LeftUpVectorBar:"\u2958",LeftVector:"\u21BC",LeftVectorBar:"\u2952",Leftarrow:"\u21D0",Leftrightarrow:"\u21D4",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",LessLess:"\u2AA1",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",Lfr:"\u{1D50F}",Ll:"\u22D8",Lleftarrow:"\u21DA",Lmidot:"\u013F",LongLeftArrow:"\u27F5",LongLeftRightArrow:"\u27F7",LongRightArrow:"\u27F6",Longleftarrow:"\u27F8",Longleftrightarrow:"\u27FA",Longrightarrow:"\u27F9",Lopf:"\u{1D543}",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",Lscr:"\u2112",Lsh:"\u21B0",Lstrok:"\u0141",Lt:"\u226A",Map:"\u2905",Mcy:"\u041C",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\u{1D510}",MinusPlus:"\u2213",Mopf:"\u{1D544}",Mscr:"\u2133",Mu:"\u039C",NJcy:"\u040A",Nacute:"\u0143",Ncaron:"\u0147",Ncedil:"\u0145",Ncy:"\u041D",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:"\n",Nfr:"\u{1D511}",NoBreak:"\u2060",NonBreakingSpace:"\xA0",Nopf:"\u2115",Not:"\u2AEC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",NotLeftTriangle:"\u22EA",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangle:"\u22EB",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",Nscr:"\u{1D4A9}",Ntilde:"\xD1",Nu:"\u039D",OElig:"\u0152",Oacute:"\xD3",Ocirc:"\xD4",Ocy:"\u041E",Odblac:"\u0150",Ofr:"\u{1D512}",Ograve:"\xD2",Omacr:"\u014C",Omega:"\u03A9",Omicron:"\u039F",Oopf:"\u{1D546}",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",Or:"\u2A54",Oscr:"\u{1D4AA}",Oslash:"\xD8",Otilde:"\xD5",Otimes:"\u2A37",Ouml:"\xD6",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",PartialD:"\u2202",Pcy:"\u041F",Pfr:"\u{1D513}",Phi:"\u03A6",Pi:"\u03A0",PlusMinus:"\xB1",Poincareplane:"\u210C",Popf:"\u2119",Pr:"\u2ABB",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",Prime:"\u2033",Product:"\u220F",Proportion:"\u2237",Proportional:"\u221D",Pscr:"\u{1D4AB}",Psi:"\u03A8",QUOT:'"',Qfr:"\u{1D514}",Qopf:"\u211A",Qscr:"\u{1D4AC}",RBarr:"\u2910",REG:"\xAE",Racute:"\u0154",Rang:"\u27EB",Rarr:"\u21A0",Rarrtl:"\u2916",Rcaron:"\u0158",Rcedil:"\u0156",Rcy:"\u0420",Re:"\u211C",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",Rfr:"\u211C",Rho:"\u03A1",RightAngleBracket:"\u27E9",RightArrow:"\u2192",RightArrowBar:"\u21E5",RightArrowLeftArrow:"\u21C4",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVector:"\u21C2",RightDownVectorBar:"\u2955",RightFloor:"\u230B",RightTee:"\u22A2",RightTeeArrow:"\u21A6",RightTeeVector:"\u295B",RightTriangle:"\u22B3",RightTriangleBar:"\u29D0",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVector:"\u21BE",RightUpVectorBar:"\u2954",RightVector:"\u21C0",RightVectorBar:"\u2953",Rightarrow:"\u21D2",Ropf:"\u211D",RoundImplies:"\u2970",Rrightarrow:"\u21DB",Rscr:"\u211B",Rsh:"\u21B1",RuleDelayed:"\u29F4",SHCHcy:"\u0429",SHcy:"\u0428",SOFTcy:"\u042C",Sacute:"\u015A",Sc:"\u2ABC",Scaron:"\u0160",Scedil:"\u015E",Scirc:"\u015C",Scy:"\u0421",Sfr:"\u{1D516}",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",Sigma:"\u03A3",SmallCircle:"\u2218",Sopf:"\u{1D54A}",Sqrt:"\u221A",Square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",Sscr:"\u{1D4AE}",Star:"\u22C6",Sub:"\u22D0",Subset:"\u22D0",SubsetEqual:"\u2286",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",SuchThat:"\u220B",Sum:"\u2211",Sup:"\u22D1",Superset:"\u2283",SupersetEqual:"\u2287",Supset:"\u22D1",THORN:"\xDE",TRADE:"\u2122",TSHcy:"\u040B",TScy:"\u0426",Tab:" ",Tau:"\u03A4",Tcaron:"\u0164",Tcedil:"\u0162",Tcy:"\u0422",Tfr:"\u{1D517}",Therefore:"\u2234",Theta:"\u0398",ThickSpace:"\u205F\u200A",ThinSpace:"\u2009",Tilde:"\u223C",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",Topf:"\u{1D54B}",TripleDot:"\u20DB",Tscr:"\u{1D4AF}",Tstrok:"\u0166",Uacute:"\xDA",Uarr:"\u219F",Uarrocir:"\u2949",Ubrcy:"\u040E",Ubreve:"\u016C",Ucirc:"\xDB",Ucy:"\u0423",Udblac:"\u0170",Ufr:"\u{1D518}",Ugrave:"\xD9",Umacr:"\u016A",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",Uopf:"\u{1D54C}",UpArrow:"\u2191",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21C5",UpDownArrow:"\u2195",UpEquilibrium:"\u296E",UpTee:"\u22A5",UpTeeArrow:"\u21A5",Uparrow:"\u21D1",Updownarrow:"\u21D5",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",Upsi:"\u03D2",Upsilon:"\u03A5",Uring:"\u016E",Uscr:"\u{1D4B0}",Utilde:"\u0168",Uuml:"\xDC",VDash:"\u22AB",Vbar:"\u2AEB",Vcy:"\u0412",Vdash:"\u22A9",Vdashl:"\u2AE6",Vee:"\u22C1",Verbar:"\u2016",Vert:"\u2016",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\u{1D519}",Vopf:"\u{1D54D}",Vscr:"\u{1D4B1}",Vvdash:"\u22AA",Wcirc:"\u0174",Wedge:"\u22C0",Wfr:"\u{1D51A}",Wopf:"\u{1D54E}",Wscr:"\u{1D4B2}",Xfr:"\u{1D51B}",Xi:"\u039E",Xopf:"\u{1D54F}",Xscr:"\u{1D4B3}",YAcy:"\u042F",YIcy:"\u0407",YUcy:"\u042E",Yacute:"\xDD",Ycirc:"\u0176",Ycy:"\u042B",Yfr:"\u{1D51C}",Yopf:"\u{1D550}",Yscr:"\u{1D4B4}",Yuml:"\u0178",ZHcy:"\u0416",Zacute:"\u0179",Zcaron:"\u017D",Zcy:"\u0417",Zdot:"\u017B",ZeroWidthSpace:"\u200B",Zeta:"\u0396",Zfr:"\u2128",Zopf:"\u2124",Zscr:"\u{1D4B5}",aacute:"\xE1",abreve:"\u0103",ac:"\u223E",acE:"\u223E\u0333",acd:"\u223F",acirc:"\xE2",acute:"\xB4",acy:"\u0430",aelig:"\xE6",af:"\u2061",afr:"\u{1D51E}",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",alpha:"\u03B1",amacr:"\u0101",amalg:"\u2A3F",amp:"&",and:"\u2227",andand:"\u2A55",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsd:"\u2221",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",aogon:"\u0105",aopf:"\u{1D552}",ap:"\u2248",apE:"\u2A70",apacir:"\u2A6F",ape:"\u224A",apid:"\u224B",apos:"'",approx:"\u2248",approxeq:"\u224A",aring:"\xE5",ascr:"\u{1D4B6}",ast:"*",asymp:"\u2248",asympeq:"\u224D",atilde:"\xE3",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",bNot:"\u2AED",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",barvee:"\u22BD",barwed:"\u2305",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",beta:"\u03B2",beth:"\u2136",between:"\u226C",bfr:"\u{1D51F}",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bnot:"\u2310",bopf:"\u{1D553}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxDL:"\u2557",boxDR:"\u2554",boxDl:"\u2556",boxDr:"\u2553",boxH:"\u2550",boxHD:"\u2566",boxHU:"\u2569",boxHd:"\u2564",boxHu:"\u2567",boxUL:"\u255D",boxUR:"\u255A",boxUl:"\u255C",boxUr:"\u2559",boxV:"\u2551",boxVH:"\u256C",boxVL:"\u2563",boxVR:"\u2560",boxVh:"\u256B",boxVl:"\u2562",boxVr:"\u255F",boxbox:"\u29C9",boxdL:"\u2555",boxdR:"\u2552",boxdl:"\u2510",boxdr:"\u250C",boxh:"\u2500",boxhD:"\u2565",boxhU:"\u2568",boxhd:"\u252C",boxhu:"\u2534",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxuL:"\u255B",boxuR:"\u2558",boxul:"\u2518",boxur:"\u2514",boxv:"\u2502",boxvH:"\u256A",boxvL:"\u2561",boxvR:"\u255E",boxvh:"\u253C",boxvl:"\u2524",boxvr:"\u251C",bprime:"\u2035",breve:"\u02D8",brvbar:"\xA6",bscr:"\u{1D4B7}",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsol:"\\",bsolb:"\u29C5",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",bumpeq:"\u224F",cacute:"\u0107",cap:"\u2229",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",capcup:"\u2A47",capdot:"\u2A40",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",ccaps:"\u2A4D",ccaron:"\u010D",ccedil:"\xE7",ccirc:"\u0109",ccups:"\u2A4C",ccupssm:"\u2A50",cdot:"\u010B",cedil:"\xB8",cemptyv:"\u29B2",cent:"\xA2",centerdot:"\xB7",cfr:"\u{1D520}",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",chi:"\u03C7",cir:"\u25CB",cirE:"\u29C3",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledR:"\xAE",circledS:"\u24C8",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",clubs:"\u2663",clubsuit:"\u2663",colon:":",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",conint:"\u222E",copf:"\u{1D554}",coprod:"\u2210",copy:"\xA9",copysr:"\u2117",crarr:"\u21B5",cross:"\u2717",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",cup:"\u222A",cupbrcap:"\u2A48",cupcap:"\u2A46",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",dArr:"\u21D3",dHar:"\u2965",dagger:"\u2020",daleth:"\u2138",darr:"\u2193",dash:"\u2010",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",dcaron:"\u010F",dcy:"\u0434",dd:"\u2146",ddagger:"\u2021",ddarr:"\u21CA",ddotseq:"\u2A77",deg:"\xB0",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",dfr:"\u{1D521}",dharl:"\u21C3",dharr:"\u21C2",diam:"\u22C4",diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",dopf:"\u{1D555}",dot:"\u02D9",doteq:"\u2250",doteqdot:"\u2251",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",downarrow:"\u2193",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",dscr:"\u{1D4B9}",dscy:"\u0455",dsol:"\u29F6",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",dzcy:"\u045F",dzigrarr:"\u27FF",eDDot:"\u2A77",eDot:"\u2251",eacute:"\xE9",easter:"\u2A6E",ecaron:"\u011B",ecir:"\u2256",ecirc:"\xEA",ecolon:"\u2255",ecy:"\u044D",edot:"\u0117",ee:"\u2147",efDot:"\u2252",efr:"\u{1D522}",eg:"\u2A9A",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",emptyv:"\u2205",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",eng:"\u014B",ensp:"\u2002",eogon:"\u0119",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",equals:"=",equest:"\u225F",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erDot:"\u2253",erarr:"\u2971",escr:"\u212F",esdot:"\u2250",esim:"\u2242",eta:"\u03B7",eth:"\xF0",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",expectation:"\u2130",exponentiale:"\u2147",fallingdotseq:"\u2252",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",ffr:"\u{1D523}",filig:"\uFB01",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",fopf:"\u{1D557}",forall:"\u2200",fork:"\u22D4",forkv:"\u2AD9",fpartint:"\u2A0D",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",fscr:"\u{1D4BB}",gE:"\u2267",gEl:"\u2A8C",gacute:"\u01F5",gamma:"\u03B3",gammad:"\u03DD",gap:"\u2A86",gbreve:"\u011F",gcirc:"\u011D",gcy:"\u0433",gdot:"\u0121",ge:"\u2265",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",ges:"\u2A7E",gescc:"\u2AA9",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",gfr:"\u{1D524}",gg:"\u226B",ggg:"\u22D9",gimel:"\u2137",gjcy:"\u0453",gl:"\u2277",glE:"\u2A92",gla:"\u2AA5",glj:"\u2AA4",gnE:"\u2269",gnap:"\u2A8A",gnapprox:"\u2A8A",gne:"\u2A88",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",gopf:"\u{1D558}",grave:"`",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",gt:">",gtcc:"\u2AA7",gtcir:"\u2A7A",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",hArr:"\u21D4",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",hardcy:"\u044A",harr:"\u2194",harrcir:"\u2948",harrw:"\u21AD",hbar:"\u210F",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",hfr:"\u{1D525}",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",hopf:"\u{1D559}",horbar:"\u2015",hscr:"\u{1D4BD}",hslash:"\u210F",hstrok:"\u0127",hybull:"\u2043",hyphen:"\u2010",iacute:"\xED",ic:"\u2063",icirc:"\xEE",icy:"\u0438",iecy:"\u0435",iexcl:"\xA1",iff:"\u21D4",ifr:"\u{1D526}",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",ijlig:"\u0133",imacr:"\u012B",image:"\u2111",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",imof:"\u22B7",imped:"\u01B5",in:"\u2208",incare:"\u2105",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",int:"\u222B",intcal:"\u22BA",integers:"\u2124",intercal:"\u22BA",intlarhk:"\u2A17",intprod:"\u2A3C",iocy:"\u0451",iogon:"\u012F",iopf:"\u{1D55A}",iota:"\u03B9",iprod:"\u2A3C",iquest:"\xBF",iscr:"\u{1D4BE}",isin:"\u2208",isinE:"\u22F9",isindot:"\u22F5",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",itilde:"\u0129",iukcy:"\u0456",iuml:"\xEF",jcirc:"\u0135",jcy:"\u0439",jfr:"\u{1D527}",jmath:"\u0237",jopf:"\u{1D55B}",jscr:"\u{1D4BF}",jsercy:"\u0458",jukcy:"\u0454",kappa:"\u03BA",kappav:"\u03F0",kcedil:"\u0137",kcy:"\u043A",kfr:"\u{1D528}",kgreen:"\u0138",khcy:"\u0445",kjcy:"\u045C",kopf:"\u{1D55C}",kscr:"\u{1D4C0}",lAarr:"\u21DA",lArr:"\u21D0",lAtail:"\u291B",lBarr:"\u290E",lE:"\u2266",lEg:"\u2A8B",lHar:"\u2962",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",lambda:"\u03BB",lang:"\u27E8",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",laquo:"\xAB",larr:"\u2190",larrb:"\u21E4",larrbfs:"\u291F",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",lat:"\u2AAB",latail:"\u2919",late:"\u2AAD",lates:"\u2AAD\uFE00",lbarr:"\u290C",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",lcaron:"\u013E",lcedil:"\u013C",lceil:"\u2308",lcub:"{",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",le:"\u2264",leftarrow:"\u2190",leftarrowtail:"\u21A2",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",leftrightarrow:"\u2194",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",leftthreetimes:"\u22CB",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",les:"\u2A7D",lescc:"\u2AA8",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",lessgtr:"\u2276",lesssim:"\u2272",lfisht:"\u297C",lfloor:"\u230A",lfr:"\u{1D529}",lg:"\u2276",lgE:"\u2A91",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",ljcy:"\u0459",ll:"\u226A",llarr:"\u21C7",llcorner:"\u231E",llhard:"\u296B",lltri:"\u25FA",lmidot:"\u0140",lmoust:"\u23B0",lmoustache:"\u23B0",lnE:"\u2268",lnap:"\u2A89",lnapprox:"\u2A89",lne:"\u2A87",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",longleftarrow:"\u27F5",longleftrightarrow:"\u27F7",longmapsto:"\u27FC",longrightarrow:"\u27F6",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",lscr:"\u{1D4C1}",lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",lstrok:"\u0142",lt:"<",ltcc:"\u2AA6",ltcir:"\u2A79",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltrPar:"\u2996",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",mDDot:"\u223A",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",mcy:"\u043C",mdash:"\u2014",measuredangle:"\u2221",mfr:"\u{1D52A}",mho:"\u2127",micro:"\xB5",mid:"\u2223",midast:"*",midcir:"\u2AF0",middot:"\xB7",minus:"\u2212",minusb:"\u229F",minusd:"\u2238",minusdu:"\u2A2A",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",mopf:"\u{1D55E}",mp:"\u2213",mscr:"\u{1D4C2}",mstpos:"\u223E",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nGg:"\u22D9\u0338",nGt:"\u226B\u20D2",nGtv:"\u226B\u0338",nLeftarrow:"\u21CD",nLeftrightarrow:"\u21CE",nLl:"\u22D8\u0338",nLt:"\u226A\u20D2",nLtv:"\u226A\u0338",nRightarrow:"\u21CF",nVDash:"\u22AF",nVdash:"\u22AE",nabla:"\u2207",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natur:"\u266E",natural:"\u266E",naturals:"\u2115",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",ncaron:"\u0148",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",ncy:"\u043D",ndash:"\u2013",ne:"\u2260",neArr:"\u21D7",nearhk:"\u2924",nearr:"\u2197",nearrow:"\u2197",nedot:"\u2250\u0338",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",nexist:"\u2204",nexists:"\u2204",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",ngsim:"\u2275",ngt:"\u226F",ngtr:"\u226F",nhArr:"\u21CE",nharr:"\u21AE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",njcy:"\u045A",nlArr:"\u21CD",nlE:"\u2266\u0338",nlarr:"\u219A",nldr:"\u2025",nle:"\u2270",nleftarrow:"\u219A",nleftrightarrow:"\u21AE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nlsim:"\u2274",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nmid:"\u2224",nopf:"\u{1D55F}",not:"\xAC",notin:"\u2209",notinE:"\u22F9\u0338",notindot:"\u22F5\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",npar:"\u2226",nparallel:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",npre:"\u2AAF\u0338",nprec:"\u2280",npreceq:"\u2AAF\u0338",nrArr:"\u21CF",nrarr:"\u219B",nrarrc:"\u2933\u0338",nrarrw:"\u219D\u0338",nrightarrow:"\u219B",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvDash:"\u22AD",nvHarr:"\u2904",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwArr:"\u21D6",nwarhk:"\u2923",nwarr:"\u2196",nwarrow:"\u2196",nwnear:"\u2927",oS:"\u24C8",oacute:"\xF3",oast:"\u229B",ocir:"\u229A",ocirc:"\xF4",ocy:"\u043E",odash:"\u229D",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",oelig:"\u0153",ofcir:"\u29BF",ofr:"\u{1D52C}",ogon:"\u02DB",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",omacr:"\u014D",omega:"\u03C9",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",oopf:"\u{1D560}",opar:"\u29B7",operp:"\u29B9",oplus:"\u2295",or:"\u2228",orarr:"\u21BB",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oscr:"\u2134",oslash:"\xF8",osol:"\u2298",otilde:"\xF5",otimes:"\u2297",otimesas:"\u2A36",ouml:"\xF6",ovbar:"\u233D",par:"\u2225",para:"\xB6",parallel:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",pfr:"\u{1D52D}",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",pi:"\u03C0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plus:"+",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",pointint:"\u2A15",popf:"\u{1D561}",pound:"\xA3",pr:"\u227A",prE:"\u2AB3",prap:"\u2AB7",prcue:"\u227C",pre:"\u2AAF",prec:"\u227A",precapprox:"\u2AB7",preccurlyeq:"\u227C",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",precsim:"\u227E",prime:"\u2032",primes:"\u2119",prnE:"\u2AB5",prnap:"\u2AB9",prnsim:"\u22E8",prod:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",pscr:"\u{1D4C5}",psi:"\u03C8",puncsp:"\u2008",qfr:"\u{1D52E}",qint:"\u2A0C",qopf:"\u{1D562}",qprime:"\u2057",qscr:"\u{1D4C6}",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",quot:'"',rAarr:"\u21DB",rArr:"\u21D2",rAtail:"\u291C",rBarr:"\u290F",rHar:"\u2964",race:"\u223D\u0331",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",rang:"\u27E9",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raquo:"\xBB",rarr:"\u2192",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",rarrtl:"\u21A3",rarrw:"\u219D",ratail:"\u291A",ratio:"\u2236",rationals:"\u211A",rbarr:"\u290D",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",rcaron:"\u0159",rcedil:"\u0157",rceil:"\u2309",rcub:"}",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",rect:"\u25AD",reg:"\xAE",rfisht:"\u297D",rfloor:"\u230B",rfr:"\u{1D52F}",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",rho:"\u03C1",rhov:"\u03F1",rightarrow:"\u2192",rightarrowtail:"\u21A3",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",rightthreetimes:"\u22CC",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoust:"\u23B1",rmoustache:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",ropf:"\u{1D563}",roplus:"\u2A2E",rotimes:"\u2A35",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",rsaquo:"\u203A",rscr:"\u{1D4C7}",rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",ruluhar:"\u2968",rx:"\u211E",sacute:"\u015B",sbquo:"\u201A",sc:"\u227B",scE:"\u2AB4",scap:"\u2AB8",scaron:"\u0161",sccue:"\u227D",sce:"\u2AB0",scedil:"\u015F",scirc:"\u015D",scnE:"\u2AB6",scnap:"\u2ABA",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",scy:"\u0441",sdot:"\u22C5",sdotb:"\u22A1",sdote:"\u2A66",seArr:"\u21D8",searhk:"\u2925",searr:"\u2198",searrow:"\u2198",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",sfr:"\u{1D530}",sfrown:"\u2322",sharp:"\u266F",shchcy:"\u0449",shcy:"\u0448",shortmid:"\u2223",shortparallel:"\u2225",shy:"\xAD",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",softcy:"\u044C",sol:"/",solb:"\u29C4",solbar:"\u233F",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",squ:"\u25A1",square:"\u25A1",squarf:"\u25AA",squf:"\u25AA",srarr:"\u2192",sscr:"\u{1D4C8}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",sub:"\u2282",subE:"\u2AC5",subdot:"\u2ABD",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",subset:"\u2282",subseteq:"\u2286",subseteqq:"\u2AC5",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succ:"\u227B",succapprox:"\u2AB8",succcurlyeq:"\u227D",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",sum:"\u2211",sung:"\u266A",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",sup:"\u2283",supE:"\u2AC6",supdot:"\u2ABE",supdsub:"\u2AD8",supe:"\u2287",supedot:"\u2AC4",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",supset:"\u2283",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swArr:"\u21D9",swarhk:"\u2926",swarr:"\u2199",swarrow:"\u2199",swnwar:"\u292A",szlig:"\xDF",target:"\u2316",tau:"\u03C4",tbrk:"\u23B4",tcaron:"\u0165",tcedil:"\u0163",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",tfr:"\u{1D531}",there4:"\u2234",therefore:"\u2234",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",thinsp:"\u2009",thkap:"\u2248",thksim:"\u223C",thorn:"\xFE",tilde:"\u02DC",times:"\xD7",timesb:"\u22A0",timesbar:"\u2A31",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",top:"\u22A4",topbot:"\u2336",topcir:"\u2AF1",topf:"\u{1D565}",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",trade:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",tscr:"\u{1D4C9}",tscy:"\u0446",tshcy:"\u045B",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",uArr:"\u21D1",uHar:"\u2963",uacute:"\xFA",uarr:"\u2191",ubrcy:"\u045E",ubreve:"\u016D",ucirc:"\xFB",ucy:"\u0443",udarr:"\u21C5",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",ufr:"\u{1D532}",ugrave:"\xF9",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",umacr:"\u016B",uml:"\xA8",uogon:"\u0173",uopf:"\u{1D566}",uparrow:"\u2191",updownarrow:"\u2195",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",upsi:"\u03C5",upsih:"\u03D2",upsilon:"\u03C5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",uring:"\u016F",urtri:"\u25F9",uscr:"\u{1D4CA}",utdot:"\u22F0",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",uuml:"\xFC",uwangle:"\u29A7",vArr:"\u21D5",vBar:"\u2AE8",vBarv:"\u2AE9",vDash:"\u22A8",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",varr:"\u2195",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",vcy:"\u0432",vdash:"\u22A2",vee:"\u2228",veebar:"\u22BB",veeeq:"\u225A",vellip:"\u22EE",verbar:"|",vert:"|",vfr:"\u{1D533}",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",vopf:"\u{1D567}",vprop:"\u221D",vrtri:"\u22B3",vscr:"\u{1D4CB}",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",vzigzag:"\u299A",wcirc:"\u0175",wedbar:"\u2A5F",wedge:"\u2227",wedgeq:"\u2259",weierp:"\u2118",wfr:"\u{1D534}",wopf:"\u{1D568}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",wscr:"\u{1D4CC}",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",xfr:"\u{1D535}",xhArr:"\u27FA",xharr:"\u27F7",xi:"\u03BE",xlArr:"\u27F8",xlarr:"\u27F5",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",xopf:"\u{1D569}",xoplus:"\u2A01",xotime:"\u2A02",xrArr:"\u27F9",xrarr:"\u27F6",xscr:"\u{1D4CD}",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",yacute:"\xFD",yacy:"\u044F",ycirc:"\u0177",ycy:"\u044B",yen:"\xA5",yfr:"\u{1D536}",yicy:"\u0457",yopf:"\u{1D56A}",yscr:"\u{1D4CE}",yucy:"\u044E",yuml:"\xFF",zacute:"\u017A",zcaron:"\u017E",zcy:"\u0437",zdot:"\u017C",zeetrf:"\u2128",zeta:"\u03B6",zfr:"\u{1D537}",zhcy:"\u0436",zigrarr:"\u21DD",zopf:"\u{1D56B}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"};var own2={}.hasOwnProperty;function decodeNamedCharacterReference(value){return own2.call(characterEntities,value)?characterEntities[value]:false}function splice(list3,start,remove,items){const end=list3.length;let chunkStart=0;let parameters;if(start<0){start=-start>end?0:end+start}else{start=start>end?end:start}remove=remove>0?remove:0;if(items.length<1e4){parameters=Array.from(items);parameters.unshift(start,remove);list3.splice(...parameters)}else{if(remove)list3.splice(start,remove);while(chunkStart<items.length){parameters=items.slice(chunkStart,chunkStart+1e4);parameters.unshift(start,0);list3.splice(...parameters);chunkStart+=1e4;start+=1e4}}}function push(list3,items){if(list3.length>0){splice(list3,list3.length,0,items);return list3}return items}var hasOwnProperty={}.hasOwnProperty;function combineExtensions(extensions){const all2={};let index2=-1;while(++index2<extensions.length){syntaxExtension(all2,extensions[index2])}return all2}function syntaxExtension(all2,extension2){let hook;for(hook in extension2){const maybe=hasOwnProperty.call(all2,hook)?all2[hook]:void 0;const left=maybe||(all2[hook]={});const right=extension2[hook];let code3;if(right){for(code3 in right){if(!hasOwnProperty.call(left,code3))left[code3]=[];const value=right[code3];constructs(left[code3],Array.isArray(value)?value:value?[value]:[])}}}}function constructs(existing,list3){let index2=-1;const before=[];while(++index2<list3.length){;(list3[index2].add==="after"?existing:before).push(list3[index2])}splice(existing,0,0,before)}function decodeNumericCharacterReference(value,base){const code3=Number.parseInt(value,base);if(code3<9||code3===11||code3>13&&code3<32||code3>126&&code3<160||code3>55295&&code3<57344||code3>64975&&code3<65008||(code3&65535)===65535||(code3&65535)===65534||code3>1114111){return"\uFFFD"}return String.fromCodePoint(code3)}function normalizeIdentifier(value){return value.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}var asciiAlpha=regexCheck(/[A-Za-z]/);var asciiAlphanumeric=regexCheck(/[\dA-Za-z]/);var asciiAtext=regexCheck(/[#-'*+\--9=?A-Z^-~]/);function asciiControl(code3){return code3!==null&&(code3<32||code3===127)}var asciiDigit=regexCheck(/\d/);var asciiHexDigit=regexCheck(/[\dA-Fa-f]/);var asciiPunctuation=regexCheck(/[!-/:-@[-`{-~]/);function markdownLineEnding(code3){return code3!==null&&code3<-2}function markdownLineEndingOrSpace(code3){return code3!==null&&(code3<0||code3===32)}function markdownSpace(code3){return code3===-2||code3===-1||code3===32}var unicodePunctuation=regexCheck(/\p{P}|\p{S}/u);var unicodeWhitespace=regexCheck(/\s/);function regexCheck(regex){return check;function check(code3){return code3!==null&&code3>-1&&regex.test(String.fromCharCode(code3))}}function factorySpace(effects,ok3,type,max){const limit=max?max-1:Number.POSITIVE_INFINITY;let size=0;return start;function start(code3){if(markdownSpace(code3)){effects.enter(type);return prefix(code3)}return ok3(code3)}function prefix(code3){if(markdownSpace(code3)&&size++<limit){effects.consume(code3);return prefix}effects.exit(type);return ok3(code3)}}var content={tokenize:initializeContent};function initializeContent(effects){const contentStart=effects.attempt(this.parser.constructs.contentInitial,afterContentStartConstruct,paragraphInitial);let previous3;return contentStart;function afterContentStartConstruct(code3){if(code3===null){effects.consume(code3);return}effects.enter("lineEnding");effects.consume(code3);effects.exit("lineEnding");return factorySpace(effects,contentStart,"linePrefix")}function paragraphInitial(code3){effects.enter("paragraph");return lineStart(code3)}function lineStart(code3){const token=effects.enter("chunkText",{contentType:"text",previous:previous3});if(previous3){previous3.next=token}previous3=token;return data(code3)}function data(code3){if(code3===null){effects.exit("chunkText");effects.exit("paragraph");effects.consume(code3);return}if(markdownLineEnding(code3)){effects.consume(code3);effects.exit("chunkText");return lineStart}effects.consume(code3);return data}}var document2={tokenize:initializeDocument};var containerConstruct={tokenize:tokenizeContainer};function initializeDocument(effects){const self=this;const stack=[];let continued=0;let childFlow;let childToken;let lineStartOffset;return start;function start(code3){if(continued<stack.length){const item=stack[continued];self.containerState=item[1];return effects.attempt(item[0].continuation,documentContinue,checkNewContainers)(code3)}return checkNewContainers(code3)}function documentContinue(code3){continued++;if(self.containerState._closeFlow){self.containerState._closeFlow=void 0;if(childFlow){closeFlow()}const indexBeforeExits=self.events.length;let indexBeforeFlow=indexBeforeExits;let point3;while(indexBeforeFlow--){if(self.events[indexBeforeFlow][0]==="exit"&&self.events[indexBeforeFlow][1].type==="chunkFlow"){point3=self.events[indexBeforeFlow][1].end;break}}exitContainers(continued);let index2=indexBeforeExits;while(index2<self.events.length){self.events[index2][1].end={...point3};index2++}splice(self.events,indexBeforeFlow+1,0,self.events.slice(indexBeforeExits));self.events.length=index2;return checkNewContainers(code3)}return start(code3)}function checkNewContainers(code3){if(continued===stack.length){if(!childFlow){return documentContinued(code3)}if(childFlow.currentConstruct&&childFlow.currentConstruct.concrete){return flowStart(code3)}self.interrupt=Boolean(childFlow.currentConstruct&&!childFlow._gfmTableDynamicInterruptHack)}self.containerState={};return effects.check(containerConstruct,thereIsANewContainer,thereIsNoNewContainer)(code3)}function thereIsANewContainer(code3){if(childFlow)closeFlow();exitContainers(continued);return documentContinued(code3)}function thereIsNoNewContainer(code3){self.parser.lazy[self.now().line]=continued!==stack.length;lineStartOffset=self.now().offset;return flowStart(code3)}function documentContinued(code3){self.containerState={};return effects.attempt(containerConstruct,containerContinue,flowStart)(code3)}function containerContinue(code3){continued++;stack.push([self.currentConstruct,self.containerState]);return documentContinued(code3)}function flowStart(code3){if(code3===null){if(childFlow)closeFlow();exitContainers(0);effects.consume(code3);return}childFlow=childFlow||self.parser.flow(self.now());effects.enter("chunkFlow",{_tokenizer:childFlow,contentType:"flow",previous:childToken});return flowContinue(code3)}function flowContinue(code3){if(code3===null){writeToChild(effects.exit("chunkFlow"),true);exitContainers(0);effects.consume(code3);return}if(markdownLineEnding(code3)){effects.consume(code3);writeToChild(effects.exit("chunkFlow"));continued=0;self.interrupt=void 0;return start}effects.consume(code3);return flowContinue}function writeToChild(token,endOfFile){const stream=self.sliceStream(token);if(endOfFile)stream.push(null);token.previous=childToken;if(childToken)childToken.next=token;childToken=token;childFlow.defineSkip(token.start);childFlow.write(stream);if(self.parser.lazy[token.start.line]){let index2=childFlow.events.length;while(index2--){if(childFlow.events[index2][1].start.offset<lineStartOffset&&(!childFlow.events[index2][1].end||childFlow.events[index2][1].end.offset>lineStartOffset)){return}}const indexBeforeExits=self.events.length;let indexBeforeFlow=indexBeforeExits;let seen;let point3;while(indexBeforeFlow--){if(self.events[indexBeforeFlow][0]==="exit"&&self.events[indexBeforeFlow][1].type==="chunkFlow"){if(seen){point3=self.events[indexBeforeFlow][1].end;break}seen=true}}exitContainers(continued);index2=indexBeforeExits;while(index2<self.events.length){self.events[index2][1].end={...point3};index2++}splice(self.events,indexBeforeFlow+1,0,self.events.slice(indexBeforeExits));self.events.length=index2}}function exitContainers(size){let index2=stack.length;while(index2-- >size){const entry=stack[index2];self.containerState=entry[1];entry[0].exit.call(self,effects)}stack.length=size}function closeFlow(){childFlow.write([null]);childToken=void 0;childFlow=void 0;self.containerState._closeFlow=void 0}}function tokenizeContainer(effects,ok3,nok){return factorySpace(effects,effects.attempt(this.parser.constructs.document,ok3,nok),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function classifyCharacter(code3){if(code3===null||markdownLineEndingOrSpace(code3)||unicodeWhitespace(code3)){return 1}if(unicodePunctuation(code3)){return 2}}function resolveAll(constructs2,events,context){const called=[];let index2=-1;while(++index2<constructs2.length){const resolve=constructs2[index2].resolveAll;if(resolve&&!called.includes(resolve)){events=resolve(events,context);called.push(resolve)}}return events}var attention={name:"attention",resolveAll:resolveAllAttention,tokenize:tokenizeAttention};function resolveAllAttention(events,context){let index2=-1;let open;let group;let text6;let openingSequence;let closingSequence;let use;let nextEvents;let offset;while(++index2<events.length){if(events[index2][0]==="enter"&&events[index2][1].type==="attentionSequence"&&events[index2][1]._close){open=index2;while(open--){if(events[open][0]==="exit"&&events[open][1].type==="attentionSequence"&&events[open][1]._open&&context.sliceSerialize(events[open][1]).charCodeAt(0)===context.sliceSerialize(events[index2][1]).charCodeAt(0)){if((events[open][1]._close||events[index2][1]._open)&&(events[index2][1].end.offset-events[index2][1].start.offset)%3&&!((events[open][1].end.offset-events[open][1].start.offset+events[index2][1].end.offset-events[index2][1].start.offset)%3)){continue}use=events[open][1].end.offset-events[open][1].start.offset>1&&events[index2][1].end.offset-events[index2][1].start.offset>1?2:1;const start={...events[open][1].end};const end={...events[index2][1].start};movePoint(start,-use);movePoint(end,use);openingSequence={type:use>1?"strongSequence":"emphasisSequence",start,end:{...events[open][1].end}};closingSequence={type:use>1?"strongSequence":"emphasisSequence",start:{...events[index2][1].start},end};text6={type:use>1?"strongText":"emphasisText",start:{...events[open][1].end},end:{...events[index2][1].start}};group={type:use>1?"strong":"emphasis",start:{...openingSequence.start},end:{...closingSequence.end}};events[open][1].end={...openingSequence.start};events[index2][1].start={...closingSequence.end};nextEvents=[];if(events[open][1].end.offset-events[open][1].start.offset){nextEvents=push(nextEvents,[["enter",events[open][1],context],["exit",events[open][1],context]])}nextEvents=push(nextEvents,[["enter",group,context],["enter",openingSequence,context],["exit",openingSequence,context],["enter",text6,context]]);nextEvents=push(nextEvents,resolveAll(context.parser.constructs.insideSpan.null,events.slice(open+1,index2),context));nextEvents=push(nextEvents,[["exit",text6,context],["enter",closingSequence,context],["exit",closingSequence,context],["exit",group,context]]);if(events[index2][1].end.offset-events[index2][1].start.offset){offset=2;nextEvents=push(nextEvents,[["enter",events[index2][1],context],["exit",events[index2][1],context]])}else{offset=0}splice(events,open-1,index2-open+3,nextEvents);index2=open+nextEvents.length-offset-2;break}}}}index2=-1;while(++index2<events.length){if(events[index2][1].type==="attentionSequence"){events[index2][1].type="data"}}return events}function tokenizeAttention(effects,ok3){const attentionMarkers2=this.parser.constructs.attentionMarkers.null;const previous3=this.previous;const before=classifyCharacter(previous3);let marker;return start;function start(code3){marker=code3;effects.enter("attentionSequence");return inside(code3)}function inside(code3){if(code3===marker){effects.consume(code3);return inside}const token=effects.exit("attentionSequence");const after=classifyCharacter(code3);const open=!after||after===2&&before||attentionMarkers2.includes(code3);const close=!before||before===2&&after||attentionMarkers2.includes(previous3);token._open=Boolean(marker===42?open:open&&(before||!close));token._close=Boolean(marker===42?close:close&&(after||!open));return ok3(code3)}}function movePoint(point3,offset){point3.column+=offset;point3.offset+=offset;point3._bufferIndex+=offset}var autolink={name:"autolink",tokenize:tokenizeAutolink};function tokenizeAutolink(effects,ok3,nok){let size=0;return start;function start(code3){effects.enter("autolink");effects.enter("autolinkMarker");effects.consume(code3);effects.exit("autolinkMarker");effects.enter("autolinkProtocol");return open}function open(code3){if(asciiAlpha(code3)){effects.consume(code3);return schemeOrEmailAtext}if(code3===64){return nok(code3)}return emailAtext(code3)}function schemeOrEmailAtext(code3){if(code3===43||code3===45||code3===46||asciiAlphanumeric(code3)){size=1;return schemeInsideOrEmailAtext(code3)}return emailAtext(code3)}function schemeInsideOrEmailAtext(code3){if(code3===58){effects.consume(code3);size=0;return urlInside}if((code3===43||code3===45||code3===46||asciiAlphanumeric(code3))&&size++<32){effects.consume(code3);return schemeInsideOrEmailAtext}size=0;return emailAtext(code3)}function urlInside(code3){if(code3===62){effects.exit("autolinkProtocol");effects.enter("autolinkMarker");effects.consume(code3);effects.exit("autolinkMarker");effects.exit("autolink");return ok3}if(code3===null||code3===32||code3===60||asciiControl(code3)){return nok(code3)}effects.consume(code3);return urlInside}function emailAtext(code3){if(code3===64){effects.consume(code3);return emailAtSignOrDot}if(asciiAtext(code3)){effects.consume(code3);return emailAtext}return nok(code3)}function emailAtSignOrDot(code3){return asciiAlphanumeric(code3)?emailLabel(code3):nok(code3)}function emailLabel(code3){if(code3===46){effects.consume(code3);size=0;return emailAtSignOrDot}if(code3===62){effects.exit("autolinkProtocol").type="autolinkEmail";effects.enter("autolinkMarker");effects.consume(code3);effects.exit("autolinkMarker");effects.exit("autolink");return ok3}return emailValue(code3)}function emailValue(code3){if((code3===45||asciiAlphanumeric(code3))&&size++<63){const next=code3===45?emailValue:emailLabel;effects.consume(code3);return next}return nok(code3)}}var blankLine={partial:true,tokenize:tokenizeBlankLine};function tokenizeBlankLine(effects,ok3,nok){return start;function start(code3){return markdownSpace(code3)?factorySpace(effects,after,"linePrefix")(code3):after(code3)}function after(code3){return code3===null||markdownLineEnding(code3)?ok3(code3):nok(code3)}}var blockQuote={continuation:{tokenize:tokenizeBlockQuoteContinuation},exit,name:"blockQuote",tokenize:tokenizeBlockQuoteStart};function tokenizeBlockQuoteStart(effects,ok3,nok){const self=this;return start;function start(code3){if(code3===62){const state=self.containerState;if(!state.open){effects.enter("blockQuote",{_container:true});state.open=true}effects.enter("blockQuotePrefix");effects.enter("blockQuoteMarker");effects.consume(code3);effects.exit("blockQuoteMarker");return after}return nok(code3)}function after(code3){if(markdownSpace(code3)){effects.enter("blockQuotePrefixWhitespace");effects.consume(code3);effects.exit("blockQuotePrefixWhitespace");effects.exit("blockQuotePrefix");return ok3}effects.exit("blockQuotePrefix");return ok3(code3)}}function tokenizeBlockQuoteContinuation(effects,ok3,nok){const self=this;return contStart;function contStart(code3){if(markdownSpace(code3)){return factorySpace(effects,contBefore,"linePrefix",self.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(code3)}return contBefore(code3)}function contBefore(code3){return effects.attempt(blockQuote,ok3,nok)(code3)}}function exit(effects){effects.exit("blockQuote")}var characterEscape={name:"characterEscape",tokenize:tokenizeCharacterEscape};function tokenizeCharacterEscape(effects,ok3,nok){return start;function start(code3){effects.enter("characterEscape");effects.enter("escapeMarker");effects.consume(code3);effects.exit("escapeMarker");return inside}function inside(code3){if(asciiPunctuation(code3)){effects.enter("characterEscapeValue");effects.consume(code3);effects.exit("characterEscapeValue");effects.exit("characterEscape");return ok3}return nok(code3)}}var characterReference={name:"characterReference",tokenize:tokenizeCharacterReference};function tokenizeCharacterReference(effects,ok3,nok){const self=this;let size=0;let max;let test;return start;function start(code3){effects.enter("characterReference");effects.enter("characterReferenceMarker");effects.consume(code3);effects.exit("characterReferenceMarker");return open}function open(code3){if(code3===35){effects.enter("characterReferenceMarkerNumeric");effects.consume(code3);effects.exit("characterReferenceMarkerNumeric");return numeric}effects.enter("characterReferenceValue");max=31;test=asciiAlphanumeric;return value(code3)}function numeric(code3){if(code3===88||code3===120){effects.enter("characterReferenceMarkerHexadecimal");effects.consume(code3);effects.exit("characterReferenceMarkerHexadecimal");effects.enter("characterReferenceValue");max=6;test=asciiHexDigit;return value}effects.enter("characterReferenceValue");max=7;test=asciiDigit;return value(code3)}function value(code3){if(code3===59&&size){const token=effects.exit("characterReferenceValue");if(test===asciiAlphanumeric&&!decodeNamedCharacterReference(self.sliceSerialize(token))){return nok(code3)}effects.enter("characterReferenceMarker");effects.consume(code3);effects.exit("characterReferenceMarker");effects.exit("characterReference");return ok3}if(test(code3)&&size++<max){effects.consume(code3);return value}return nok(code3)}}var nonLazyContinuation={partial:true,tokenize:tokenizeNonLazyContinuation};var codeFenced={concrete:true,name:"codeFenced",tokenize:tokenizeCodeFenced};function tokenizeCodeFenced(effects,ok3,nok){const self=this;const closeStart={partial:true,tokenize:tokenizeCloseStart};let initialPrefix=0;let sizeOpen=0;let marker;return start;function start(code3){return beforeSequenceOpen(code3)}function beforeSequenceOpen(code3){const tail=self.events[self.events.length-1];initialPrefix=tail&&tail[1].type==="linePrefix"?tail[2].sliceSerialize(tail[1],true).length:0;marker=code3;effects.enter("codeFenced");effects.enter("codeFencedFence");effects.enter("codeFencedFenceSequence");return sequenceOpen(code3)}function sequenceOpen(code3){if(code3===marker){sizeOpen++;effects.consume(code3);return sequenceOpen}if(sizeOpen<3){return nok(code3)}effects.exit("codeFencedFenceSequence");return markdownSpace(code3)?factorySpace(effects,infoBefore,"whitespace")(code3):infoBefore(code3)}function infoBefore(code3){if(code3===null||markdownLineEnding(code3)){effects.exit("codeFencedFence");return self.interrupt?ok3(code3):effects.check(nonLazyContinuation,atNonLazyBreak,after)(code3)}effects.enter("codeFencedFenceInfo");effects.enter("chunkString",{contentType:"string"});return info(code3)}function info(code3){if(code3===null||markdownLineEnding(code3)){effects.exit("chunkString");effects.exit("codeFencedFenceInfo");return infoBefore(code3)}if(markdownSpace(code3)){effects.exit("chunkString");effects.exit("codeFencedFenceInfo");return factorySpace(effects,metaBefore,"whitespace")(code3)}if(code3===96&&code3===marker){return nok(code3)}effects.consume(code3);return info}function metaBefore(code3){if(code3===null||markdownLineEnding(code3)){return infoBefore(code3)}effects.enter("codeFencedFenceMeta");effects.enter("chunkString",{contentType:"string"});return meta(code3)}function meta(code3){if(code3===null||markdownLineEnding(code3)){effects.exit("chunkString");effects.exit("codeFencedFenceMeta");return infoBefore(code3)}if(code3===96&&code3===marker){return nok(code3)}effects.consume(code3);return meta}function atNonLazyBreak(code3){return effects.attempt(closeStart,after,contentBefore)(code3)}function contentBefore(code3){effects.enter("lineEnding");effects.consume(code3);effects.exit("lineEnding");return contentStart}function contentStart(code3){return initialPrefix>0&&markdownSpace(code3)?factorySpace(effects,beforeContentChunk,"linePrefix",initialPrefix+1)(code3):beforeContentChunk(code3)}function beforeContentChunk(code3){if(code3===null||markdownLineEnding(code3)){return effects.check(nonLazyContinuation,atNonLazyBreak,after)(code3)}effects.enter("codeFlowValue");return contentChunk(code3)}function contentChunk(code3){if(code3===null||markdownLineEnding(code3)){effects.exit("codeFlowValue");return beforeContentChunk(code3)}effects.consume(code3);return contentChunk}function after(code3){effects.exit("codeFenced");return ok3(code3)}function tokenizeCloseStart(effects2,ok4,nok2){let size=0;return startBefore;function startBefore(code3){effects2.enter("lineEnding");effects2.consume(code3);effects2.exit("lineEnding");return start2}function start2(code3){effects2.enter("codeFencedFence");return markdownSpace(code3)?factorySpace(effects2,beforeSequenceClose,"linePrefix",self.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(code3):beforeSequenceClose(code3)}function beforeSequenceClose(code3){if(code3===marker){effects2.enter("codeFencedFenceSequence");return sequenceClose(code3)}return nok2(code3)}function sequenceClose(code3){if(code3===marker){size++;effects2.consume(code3);return sequenceClose}if(size>=sizeOpen){effects2.exit("codeFencedFenceSequence");return markdownSpace(code3)?factorySpace(effects2,sequenceCloseAfter,"whitespace")(code3):sequenceCloseAfter(code3)}return nok2(code3)}function sequenceCloseAfter(code3){if(code3===null||markdownLineEnding(code3)){effects2.exit("codeFencedFence");return ok4(code3)}return nok2(code3)}}}function tokenizeNonLazyContinuation(effects,ok3,nok){const self=this;return start;function start(code3){if(code3===null){return nok(code3)}effects.enter("lineEnding");effects.consume(code3);effects.exit("lineEnding");return lineStart}function lineStart(code3){return self.parser.lazy[self.now().line]?nok(code3):ok3(code3)}}var codeIndented={name:"codeIndented",tokenize:tokenizeCodeIndented};var furtherStart={partial:true,tokenize:tokenizeFurtherStart};function tokenizeCodeIndented(effects,ok3,nok){const self=this;return start;function start(code3){effects.enter("codeIndented");return factorySpace(effects,afterPrefix,"linePrefix",4+1)(code3)}function afterPrefix(code3){const tail=self.events[self.events.length-1];return tail&&tail[1].type==="linePrefix"&&tail[2].sliceSerialize(tail[1],true).length>=4?atBreak(code3):nok(code3)}function atBreak(code3){if(code3===null){return after(code3)}if(markdownLineEnding(code3)){return effects.attempt(furtherStart,atBreak,after)(code3)}effects.enter("codeFlowValue");return inside(code3)}function inside(code3){if(code3===null||markdownLineEnding(code3)){effects.exit("codeFlowValue");return atBreak(code3)}effects.consume(code3);return inside}function after(code3){effects.exit("codeIndented");return ok3(code3)}}function tokenizeFurtherStart(effects,ok3,nok){const self=this;return furtherStart2;function furtherStart2(code3){if(self.parser.lazy[self.now().line]){return nok(code3)}if(markdownLineEnding(code3)){effects.enter("lineEnding");effects.consume(code3);effects.exit("lineEnding");return furtherStart2}return factorySpace(effects,afterPrefix,"linePrefix",4+1)(code3)}function afterPrefix(code3){const tail=self.events[self.events.length-1];return tail&&tail[1].type==="linePrefix"&&tail[2].sliceSerialize(tail[1],true).length>=4?ok3(code3):markdownLineEnding(code3)?furtherStart2(code3):nok(code3)}}var codeText={name:"codeText",previous,resolve:resolveCodeText,tokenize:tokenizeCodeText};function resolveCodeText(events){let tailExitIndex=events.length-4;let headEnterIndex=3;let index2;let enter;if((events[headEnterIndex][1].type==="lineEnding"||events[headEnterIndex][1].type==="space")&&(events[tailExitIndex][1].type==="lineEnding"||events[tailExitIndex][1].type==="space")){index2=headEnterIndex;while(++index2<tailExitIndex){if(events[index2][1].type==="codeTextData"){events[headEnterIndex][1].type="codeTextPadding";events[tailExitIndex][1].type="codeTextPadding";headEnterIndex+=2;tailExitIndex-=2;break}}}index2=headEnterIndex-1;tailExitIndex++;while(++index2<=tailExitIndex){if(enter===void 0){if(index2!==tailExitIndex&&events[index2][1].type!=="lineEnding"){enter=index2}}else if(index2===tailExitIndex||events[index2][1].type==="lineEnding"){events[enter][1].type="codeTextData";if(index2!==enter+2){events[enter][1].end=events[index2-1][1].end;events.splice(enter+2,index2-enter-2);tailExitIndex-=index2-enter-2;index2=enter+2}enter=void 0}}return events}function previous(code3){return code3!==96||this.events[this.events.length-1][1].type==="characterEscape"}function tokenizeCodeText(effects,ok3,nok){const self=this;let sizeOpen=0;let size;let token;return start;function start(code3){effects.enter("codeText");effects.enter("codeTextSequence");return sequenceOpen(code3)}function sequenceOpen(code3){if(code3===96){effects.consume(code3);sizeOpen++;return sequenceOpen}effects.exit("codeTextSequence");return between(code3)}function between(code3){if(code3===null){return nok(code3)}if(code3===32){effects.enter("space");effects.consume(code3);effects.exit("space");return between}if(code3===96){token=effects.enter("codeTextSequence");size=0;return sequenceClose(code3)}if(markdownLineEnding(code3)){effects.enter("lineEnding");effects.consume(code3);effects.exit("lineEnding");return between}effects.enter("codeTextData");return data(code3)}function data(code3){if(code3===null||code3===32||code3===96||markdownLineEnding(code3)){effects.exit("codeTextData");return between(code3)}effects.consume(code3);return data}function sequenceClose(code3){if(code3===96){effects.consume(code3);size++;return sequenceClose}if(size===sizeOpen){effects.exit("codeTextSequence");effects.exit("codeText");return ok3(code3)}token.type="codeTextData";return data(code3)}}var SpliceBuffer=class{constructor(initial){this.left=initial?[...initial]:[];this.right=[]}get(index2){if(index2<0||index2>=this.left.length+this.right.length){throw new RangeError("Cannot access index `"+index2+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`")}if(index2<this.left.length)return this.left[index2];return this.right[this.right.length-index2+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){this.setCursor(0);return this.right.pop()}slice(start,end){const stop=end===null||end===void 0?Number.POSITIVE_INFINITY:end;if(stop<this.left.length){return this.left.slice(start,stop)}if(start>this.left.length){return this.right.slice(this.right.length-stop+this.left.length,this.right.length-start+this.left.length).reverse()}return this.left.slice(start).concat(this.right.slice(this.right.length-stop+this.left.length).reverse())}splice(start,deleteCount,items){const count=deleteCount||0;this.setCursor(Math.trunc(start));const removed=this.right.splice(this.right.length-count,Number.POSITIVE_INFINITY);if(items)chunkedPush(this.left,items);return removed.reverse()}pop(){this.setCursor(Number.POSITIVE_INFINITY);return this.left.pop()}push(item){this.setCursor(Number.POSITIVE_INFINITY);this.left.push(item)}pushMany(items){this.setCursor(Number.POSITIVE_INFINITY);chunkedPush(this.left,items)}unshift(item){this.setCursor(0);this.right.push(item)}unshiftMany(items){this.setCursor(0);chunkedPush(this.right,items.reverse())}setCursor(n){if(n===this.left.length||n>this.left.length&&this.right.length===0||n<0&&this.left.length===0)return;if(n<this.left.length){const removed=this.left.splice(n,Number.POSITIVE_INFINITY);chunkedPush(this.right,removed.reverse())}else{const removed=this.right.splice(this.left.length+this.right.length-n,Number.POSITIVE_INFINITY);chunkedPush(this.left,removed.reverse())}}};function chunkedPush(list3,right){let chunkStart=0;if(right.length<1e4){list3.push(...right)}else{while(chunkStart<right.length){list3.push(...right.slice(chunkStart,chunkStart+1e4));chunkStart+=1e4}}}function subtokenize(eventsArray){const jumps={};let index2=-1;let event;let lineIndex;let otherIndex;let otherEvent;let parameters;let subevents;let more;const events=new SpliceBuffer(eventsArray);while(++index2<events.length){while(index2 in jumps){index2=jumps[index2]}event=events.get(index2);if(index2&&event[1].type==="chunkFlow"&&events.get(index2-1)[1].type==="listItemPrefix"){subevents=event[1]._tokenizer.events;otherIndex=0;if(otherIndex<subevents.length&&subevents[otherIndex][1].type==="lineEndingBlank"){otherIndex+=2}if(otherIndex<subevents.length&&subevents[otherIndex][1].type==="content"){while(++otherIndex<subevents.length){if(subevents[otherIndex][1].type==="content"){break}if(subevents[otherIndex][1].type==="chunkText"){subevents[otherIndex][1]._isInFirstContentOfListItem=true;otherIndex++}}}}if(event[0]==="enter"){if(event[1].contentType){Object.assign(jumps,subcontent(events,index2));index2=jumps[index2];more=true}}else if(event[1]._container){otherIndex=index2;lineIndex=void 0;while(otherIndex--){otherEvent=events.get(otherIndex);if(otherEvent[1].type==="lineEnding"||otherEvent[1].type==="lineEndingBlank"){if(otherEvent[0]==="enter"){if(lineIndex){events.get(lineIndex)[1].type="lineEndingBlank"}otherEvent[1].type="lineEnding";lineIndex=otherIndex}}else if(otherEvent[1].type==="linePrefix"||otherEvent[1].type==="listItemIndent"){}else{break}}if(lineIndex){event[1].end={...events.get(lineIndex)[1].start};parameters=events.slice(lineIndex,index2);parameters.unshift(event);events.splice(lineIndex,index2-lineIndex+1,parameters)}}}splice(eventsArray,0,Number.POSITIVE_INFINITY,events.slice(0));return!more}function subcontent(events,eventIndex){const token=events.get(eventIndex)[1];const context=events.get(eventIndex)[2];let startPosition=eventIndex-1;const startPositions=[];let tokenizer=token._tokenizer;if(!tokenizer){tokenizer=context.parser[token.contentType](token.start);if(token._contentTypeTextTrailing){tokenizer._contentTypeTextTrailing=true}}const childEvents=tokenizer.events;const jumps=[];const gaps={};let stream;let previous3;let index2=-1;let current=token;let adjust=0;let start=0;const breaks=[start];while(current){while(events.get(++startPosition)[1]!==current){}startPositions.push(startPosition);if(!current._tokenizer){stream=context.sliceStream(current);if(!current.next){stream.push(null)}if(previous3){tokenizer.defineSkip(current.start)}if(current._isInFirstContentOfListItem){tokenizer._gfmTasklistFirstContentOfListItem=true}tokenizer.write(stream);if(current._isInFirstContentOfListItem){tokenizer._gfmTasklistFirstContentOfListItem=void 0}}previous3=current;current=current.next}current=token;while(++index2<childEvents.length){if(childEvents[index2][0]==="exit"&&childEvents[index2-1][0]==="enter"&&childEvents[index2][1].type===childEvents[index2-1][1].type&&childEvents[index2][1].start.line!==childEvents[index2][1].end.line){start=index2+1;breaks.push(start);current._tokenizer=void 0;current.previous=void 0;current=current.next}}tokenizer.events=[];if(current){current._tokenizer=void 0;current.previous=void 0}else{breaks.pop()}index2=breaks.length;while(index2--){const slice=childEvents.slice(breaks[index2],breaks[index2+1]);const start2=startPositions.pop();jumps.push([start2,start2+slice.length-1]);events.splice(start2,2,slice)}jumps.reverse();index2=-1;while(++index2<jumps.length){gaps[adjust+jumps[index2][0]]=adjust+jumps[index2][1];adjust+=jumps[index2][1]-jumps[index2][0]-1}return gaps}var content2={resolve:resolveContent,tokenize:tokenizeContent};var continuationConstruct={partial:true,tokenize:tokenizeContinuation};function resolveContent(events){subtokenize(events);return events}function tokenizeContent(effects,ok3){let previous3;return chunkStart;function chunkStart(code3){effects.enter("content");previous3=effects.enter("chunkContent",{contentType:"content"});return chunkInside(code3)}function chunkInside(code3){if(code3===null){return contentEnd(code3)}if(markdownLineEnding(code3)){return effects.check(continuationConstruct,contentContinue,contentEnd)(code3)}effects.consume(code3);return chunkInside}function contentEnd(code3){effects.exit("chunkContent");effects.exit("content");return ok3(code3)}function contentContinue(code3){effects.consume(code3);effects.exit("chunkContent");previous3.next=effects.enter("chunkContent",{contentType:"content",previous:previous3});previous3=previous3.next;return chunkInside}}function tokenizeContinuation(effects,ok3,nok){const self=this;return startLookahead;function startLookahead(code3){effects.exit("chunkContent");effects.enter("lineEnding");effects.consume(code3);effects.exit("lineEnding");return factorySpace(effects,prefixed,"linePrefix")}function prefixed(code3){if(code3===null||markdownLineEnding(code3)){return nok(code3)}const tail=self.events[self.events.length-1];if(!self.parser.constructs.disable.null.includes("codeIndented")&&tail&&tail[1].type==="linePrefix"&&tail[2].sliceSerialize(tail[1],true).length>=4){return ok3(code3)}return effects.interrupt(self.parser.constructs.flow,nok,ok3)(code3)}}function factoryDestination(effects,ok3,nok,type,literalType,literalMarkerType,rawType,stringType,max){const limit=max||Number.POSITIVE_INFINITY;let balance=0;return start;function start(code3){if(code3===60){effects.enter(type);effects.enter(literalType);effects.enter(literalMarkerType);effects.consume(code3);effects.exit(literalMarkerType);return enclosedBefore}if(code3===null||code3===32||code3===41||asciiControl(code3)){return nok(code3)}effects.enter(type);effects.enter(rawType);effects.enter(stringType);effects.enter("chunkString",{contentType:"string"});return raw(code3)}function enclosedBefore(code3){if(code3===62){effects.enter(literalMarkerType);effects.consume(code3);effects.exit(literalMarkerType);effects.exit(literalType);effects.exit(type);return ok3}effects.enter(stringType);effects.enter("chunkString",{contentType:"string"});return enclosed(code3)}function enclosed(code3){if(code3===62){effects.exit("chunkString");effects.exit(stringType);return enclosedBefore(code3)}if(code3===null||code3===60||markdownLineEnding(code3)){return nok(code3)}effects.consume(code3);return code3===92?enclosedEscape:enclosed}function enclosedEscape(code3){if(code3===60||code3===62||code3===92){effects.consume(code3);return enclosed}return enclosed(code3)}function raw(code3){if(!balance&&(code3===null||code3===41||markdownLineEndingOrSpace(code3))){effects.exit("chunkString");effects.exit(stringType);effects.exit(rawType);effects.exit(type);return ok3(code3)}if(balance<limit&&code3===40){effects.consume(code3);balance++;return raw}if(code3===41){effects.consume(code3);balance--;return raw}if(code3===null||code3===32||code3===40||asciiControl(code3)){return nok(code3)}effects.consume(code3);return code3===92?rawEscape:raw}function rawEscape(code3){if(code3===40||code3===41||code3===92){effects.consume(code3);return raw}return raw(code3)}}function factoryLabel(effects,ok3,nok,type,markerType,stringType){const self=this;let size=0;let seen;return start;function start(code3){effects.enter(type);effects.enter(markerType);effects.consume(code3);effects.exit(markerType);effects.enter(stringType);return atBreak}function atBreak(code3){if(size>999||code3===null||code3===91||code3===93&&!seen||code3===94&&!size&&"_hiddenFootnoteSupport"in self.parser.constructs){return nok(code3)}if(code3===93){effects.exit(stringType);effects.enter(markerType);effects.consume(code3);effects.exit(markerType);effects.exit(type);return ok3}if(markdownLineEnding(code3)){effects.enter("lineEnding");effects.consume(code3);effects.exit("lineEnding");return atBreak}effects.enter("chunkString",{contentType:"string"});return labelInside(code3)}function labelInside(code3){if(code3===null||code3===91||code3===93||markdownLineEnding(code3)||size++>999){effects.exit("chunkString");return atBreak(code3)}effects.consume(code3);if(!seen)seen=!markdownSpace(code3);return code3===92?labelEscape:labelInside}function labelEscape(code3){if(code3===91||code3===92||code3===93){effects.consume(code3);size++;return labelInside}return labelInside(code3)}}function factoryTitle(effects,ok3,nok,type,markerType,stringType){let marker;return start;function start(code3){if(code3===34||code3===39||code3===40){effects.enter(type);effects.enter(markerType);effects.consume(code3);effects.exit(markerType);marker=code3===40?41:code3;return begin}return nok(code3)}function begin(code3){if(code3===marker){effects.enter(markerType);effects.consume(code3);effects.exit(markerType);effects.exit(type);return ok3}effects.enter(stringType);return atBreak(code3)}function atBreak(code3){if(code3===marker){effects.exit(stringType);return begin(marker)}if(code3===null){return nok(code3)}if(markdownLineEnding(code3)){effects.enter("lineEnding");effects.consume(code3);effects.exit("lineEnding");return factorySpace(effects,atBreak,"linePrefix")}effects.enter("chunkString",{contentType:"string"});return inside(code3)}function inside(code3){if(code3===marker||code3===null||markdownLineEnding(code3)){effects.exit("chunkString");return atBreak(code3)}effects.consume(code3);return code3===92?escape:inside}function escape(code3){if(code3===marker||code3===92){effects.consume(code3);return inside}return inside(code3)}}function factoryWhitespace(effects,ok3){let seen;return start;function start(code3){if(markdownLineEnding(code3)){effects.enter("lineEnding");effects.consume(code3);effects.exit("lineEnding");seen=true;return start}if(markdownSpace(code3)){return factorySpace(effects,start,seen?"linePrefix":"lineSuffix")(code3)}return ok3(code3)}}var definition={name:"definition",tokenize:tokenizeDefinition};var titleBefore={partial:true,tokenize:tokenizeTitleBefore};function tokenizeDefinition(effects,ok3,nok){const self=this;let identifier;return start;function start(code3){effects.enter("definition");return before(code3)}function before(code3){return factoryLabel.call(self,effects,labelAfter,nok,"definitionLabel","definitionLabelMarker","definitionLabelString")(code3)}function labelAfter(code3){identifier=normalizeIdentifier(self.sliceSerialize(self.events[self.events.length-1][1]).slice(1,-1));if(code3===58){effects.enter("definitionMarker");effects.consume(code3);effects.exit("definitionMarker");return markerAfter}return nok(code3)}function markerAfter(code3){return markdownLineEndingOrSpace(code3)?factoryWhitespace(effects,destinationBefore)(code3):destinationBefore(code3)}function destinationBefore(code3){return factoryDestination(effects,destinationAfter,nok,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(code3)}function destinationAfter(code3){return effects.attempt(titleBefore,after,after)(code3)}function after(code3){return markdownSpace(code3)?factorySpace(effects,afterWhitespace,"whitespace")(code3):afterWhitespace(code3)}function afterWhitespace(code3){if(code3===null||markdownLineEnding(code3)){effects.exit("definition");self.parser.defined.push(identifier);return ok3(code3)}return nok(code3)}}function tokenizeTitleBefore(effects,ok3,nok){return titleBefore2;function titleBefore2(code3){return markdownLineEndingOrSpace(code3)?factoryWhitespace(effects,beforeMarker)(code3):nok(code3)}function beforeMarker(code3){return factoryTitle(effects,titleAfter,nok,"definitionTitle","definitionTitleMarker","definitionTitleString")(code3)}function titleAfter(code3){return markdownSpace(code3)?factorySpace(effects,titleAfterOptionalWhitespace,"whitespace")(code3):titleAfterOptionalWhitespace(code3)}function titleAfterOptionalWhitespace(code3){return code3===null||markdownLineEnding(code3)?ok3(code3):nok(code3)}}var hardBreakEscape={name:"hardBreakEscape",tokenize:tokenizeHardBreakEscape};function tokenizeHardBreakEscape(effects,ok3,nok){return start;function start(code3){effects.enter("hardBreakEscape");effects.consume(code3);return after}function after(code3){if(markdownLineEnding(code3)){effects.exit("hardBreakEscape");return ok3(code3)}return nok(code3)}}var headingAtx={name:"headingAtx",resolve:resolveHeadingAtx,tokenize:tokenizeHeadingAtx};function resolveHeadingAtx(events,context){let contentEnd=events.length-2;let contentStart=3;let content3;let text6;if(events[contentStart][1].type==="whitespace"){contentStart+=2}if(contentEnd-2>contentStart&&events[contentEnd][1].type==="whitespace"){contentEnd-=2}if(events[contentEnd][1].type==="atxHeadingSequence"&&(contentStart===contentEnd-1||contentEnd-4>contentStart&&events[contentEnd-2][1].type==="whitespace")){contentEnd-=contentStart+1===contentEnd?2:4}if(contentEnd>contentStart){content3={type:"atxHeadingText",start:events[contentStart][1].start,end:events[contentEnd][1].end};text6={type:"chunkText",start:events[contentStart][1].start,end:events[contentEnd][1].end,contentType:"text"};splice(events,contentStart,contentEnd-contentStart+1,[["enter",content3,context],["enter",text6,context],["exit",text6,context],["exit",content3,context]])}return events}function tokenizeHeadingAtx(effects,ok3,nok){let size=0;return start;function start(code3){effects.enter("atxHeading");return before(code3)}function before(code3){effects.enter("atxHeadingSequence");return sequenceOpen(code3)}function sequenceOpen(code3){if(code3===35&&size++<6){effects.consume(code3);return sequenceOpen}if(code3===null||markdownLineEndingOrSpace(code3)){effects.exit("atxHeadingSequence");return atBreak(code3)}return nok(code3)}function atBreak(code3){if(code3===35){effects.enter("atxHeadingSequence");return sequenceFurther(code3)}if(code3===null||markdownLineEnding(code3)){effects.exit("atxHeading");return ok3(code3)}if(markdownSpace(code3)){return factorySpace(effects,atBreak,"whitespace")(code3)}effects.enter("atxHeadingText");return data(code3)}function sequenceFurther(code3){if(code3===35){effects.consume(code3);return sequenceFurther}effects.exit("atxHeadingSequence");return atBreak(code3)}function data(code3){if(code3===null||code3===35||markdownLineEndingOrSpace(code3)){effects.exit("atxHeadingText");return atBreak(code3)}effects.consume(code3);return data}}var htmlBlockNames=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"];var htmlRawNames=["pre","script","style","textarea"];var htmlFlow={concrete:true,name:"htmlFlow",resolveTo:resolveToHtmlFlow,tokenize:tokenizeHtmlFlow};var blankLineBefore={partial:true,tokenize:tokenizeBlankLineBefore};var nonLazyContinuationStart={partial:true,tokenize:tokenizeNonLazyContinuationStart};function resolveToHtmlFlow(events){let index2=events.length;while(index2--){if(events[index2][0]==="enter"&&events[index2][1].type==="htmlFlow"){break}}if(index2>1&&events[index2-2][1].type==="linePrefix"){events[index2][1].start=events[index2-2][1].start;events[index2+1][1].start=events[index2-2][1].start;events.splice(index2-2,2)}return events}function tokenizeHtmlFlow(effects,ok3,nok){const self=this;let marker;let closingTag;let buffer;let index2;let markerB;return start;function start(code3){return before(code3)}function before(code3){effects.enter("htmlFlow");effects.enter("htmlFlowData");effects.consume(code3);return open}function open(code3){if(code3===33){effects.consume(code3);return declarationOpen}if(code3===47){effects.consume(code3);closingTag=true;return tagCloseStart}if(code3===63){effects.consume(code3);marker=3;return self.interrupt?ok3:continuationDeclarationInside}if(asciiAlpha(code3)){effects.consume(code3);buffer=String.fromCharCode(code3);return tagName}return nok(code3)}function declarationOpen(code3){if(code3===45){effects.consume(code3);marker=2;return commentOpenInside}if(code3===91){effects.consume(code3);marker=5;index2=0;return cdataOpenInside}if(asciiAlpha(code3)){effects.consume(code3);marker=4;return self.interrupt?ok3:continuationDeclarationInside}return nok(code3)}function commentOpenInside(code3){if(code3===45){effects.consume(code3);return self.interrupt?ok3:continuationDeclarationInside}return nok(code3)}function cdataOpenInside(code3){const value="CDATA[";if(code3===value.charCodeAt(index2++)){effects.consume(code3);if(index2===value.length){return self.interrupt?ok3:continuation}return cdataOpenInside}return nok(code3)}function tagCloseStart(code3){if(asciiAlpha(code3)){effects.consume(code3);buffer=String.fromCharCode(code3);return tagName}return nok(code3)}function tagName(code3){if(code3===null||code3===47||code3===62||markdownLineEndingOrSpace(code3)){const slash=code3===47;const name=buffer.toLowerCase();if(!slash&&!closingTag&&htmlRawNames.includes(name)){marker=1;return self.interrupt?ok3(code3):continuation(code3)}if(htmlBlockNames.includes(buffer.toLowerCase())){marker=6;if(slash){effects.consume(code3);return basicSelfClosing}return self.interrupt?ok3(code3):continuation(code3)}marker=7;return self.interrupt&&!self.parser.lazy[self.now().line]?nok(code3):closingTag?completeClosingTagAfter(code3):completeAttributeNameBefore(code3)}if(code3===45||asciiAlphanumeric(code3)){effects.consume(code3);buffer+=String.fromCharCode(code3);return tagName}return nok(code3)}function basicSelfClosing(code3){if(code3===62){effects.consume(code3);return self.interrupt?ok3:continuation}return nok(code3)}function completeClosingTagAfter(code3){if(markdownSpace(code3)){effects.consume(code3);return completeClosingTagAfter}return completeEnd(code3)}function completeAttributeNameBefore(code3){if(code3===47){effects.consume(code3);return completeEnd}if(code3===58||code3===95||asciiAlpha(code3)){effects.consume(code3);return completeAttributeName}if(markdownSpace(code3)){effects.consume(code3);return completeAttributeNameBefore}return completeEnd(code3)}function completeAttributeName(code3){if(code3===45||code3===46||code3===58||code3===95||asciiAlphanumeric(code3)){effects.consume(code3);return completeAttributeName}return completeAttributeNameAfter(code3)}function completeAttributeNameAfter(code3){if(code3===61){effects.consume(code3);return completeAttributeValueBefore}if(markdownSpace(code3)){effects.consume(code3);return completeAttributeNameAfter}return completeAttributeNameBefore(code3)}function completeAttributeValueBefore(code3){if(code3===null||code3===60||code3===61||code3===62||code3===96){return nok(code3)}if(code3===34||code3===39){effects.consume(code3);markerB=code3;return completeAttributeValueQuoted}if(markdownSpace(code3)){effects.consume(code3);return completeAttributeValueBefore}return completeAttributeValueUnquoted(code3)}function completeAttributeValueQuoted(code3){if(code3===markerB){effects.consume(code3);markerB=null;return completeAttributeValueQuotedAfter}if(code3===null||markdownLineEnding(code3)){return nok(code3)}effects.consume(code3);return completeAttributeValueQuoted}function completeAttributeValueUnquoted(code3){if(code3===null||code3===34||code3===39||code3===47||code3===60||code3===61||code3===62||code3===96||markdownLineEndingOrSpace(code3)){return completeAttributeNameAfter(code3)}effects.consume(code3);return completeAttributeValueUnquoted}function completeAttributeValueQuotedAfter(code3){if(code3===47||code3===62||markdownSpace(code3)){return completeAttributeNameBefore(code3)}return nok(code3)}function completeEnd(code3){if(code3===62){effects.consume(code3);return completeAfter}return nok(code3)}function completeAfter(code3){if(code3===null||markdownLineEnding(code3)){return continuation(code3)}if(markdownSpace(code3)){effects.consume(code3);return completeAfter}return nok(code3)}function continuation(code3){if(code3===45&&marker===2){effects.consume(code3);return continuationCommentInside}if(code3===60&&marker===1){effects.consume(code3);return continuationRawTagOpen}if(code3===62&&marker===4){effects.consume(code3);return continuationClose}if(code3===63&&marker===3){effects.consume(code3);return continuationDeclarationInside}if(code3===93&&marker===5){effects.consume(code3);return continuationCdataInside}if(markdownLineEnding(code3)&&(marker===6||marker===7)){effects.exit("htmlFlowData");return effects.check(blankLineBefore,continuationAfter,continuationStart)(code3)}if(code3===null||markdownLineEnding(code3)){effects.exit("htmlFlowData");return continuationStart(code3)}effects.consume(code3);return continuation}function continuationStart(code3){return effects.check(nonLazyContinuationStart,continuationStartNonLazy,continuationAfter)(code3)}function continuationStartNonLazy(code3){effects.enter("lineEnding");effects.consume(code3);effects.exit("lineEnding");return continuationBefore}function continuationBefore(code3){if(code3===null||markdownLineEnding(code3)){return continuationStart(code3)}effects.enter("htmlFlowData");return continuation(code3)}function continuationCommentInside(code3){if(code3===45){effects.consume(code3);return continuationDeclarationInside}return continuation(code3)}function continuationRawTagOpen(code3){if(code3===47){effects.consume(code3);buffer="";return continuationRawEndTag}return continuation(code3)}function continuationRawEndTag(code3){if(code3===62){const name=buffer.toLowerCase();if(htmlRawNames.includes(name)){effects.consume(code3);return continuationClose}return continuation(code3)}if(asciiAlpha(code3)&&buffer.length<8){effects.consume(code3);buffer+=String.fromCharCode(code3);return continuationRawEndTag}return continuation(code3)}function continuationCdataInside(code3){if(code3===93){effects.consume(code3);return continuationDeclarationInside}return continuation(code3)}function continuationDeclarationInside(code3){if(code3===62){effects.consume(code3);return continuationClose}if(code3===45&&marker===2){effects.consume(code3);return continuationDeclarationInside}return continuation(code3)}function continuationClose(code3){if(code3===null||markdownLineEnding(code3)){effects.exit("htmlFlowData");return continuationAfter(code3)}effects.consume(code3);return continuationClose}function continuationAfter(code3){effects.exit("htmlFlow");return ok3(code3)}}function tokenizeNonLazyContinuationStart(effects,ok3,nok){const self=this;return start;function start(code3){if(markdownLineEnding(code3)){effects.enter("lineEnding");effects.consume(code3);effects.exit("lineEnding");return after}return nok(code3)}function after(code3){return self.parser.lazy[self.now().line]?nok(code3):ok3(code3)}}function tokenizeBlankLineBefore(effects,ok3,nok){return start;function start(code3){effects.enter("lineEnding");effects.consume(code3);effects.exit("lineEnding");return effects.attempt(blankLine,ok3,nok)}}var htmlText={name:"htmlText",tokenize:tokenizeHtmlText};function tokenizeHtmlText(effects,ok3,nok){const self=this;let marker;let index2;let returnState;return start;function start(code3){effects.enter("htmlText");effects.enter("htmlTextData");effects.consume(code3);return open}function open(code3){if(code3===33){effects.consume(code3);return declarationOpen}if(code3===47){effects.consume(code3);return tagCloseStart}if(code3===63){effects.consume(code3);return instruction}if(asciiAlpha(code3)){effects.consume(code3);return tagOpen}return nok(code3)}function declarationOpen(code3){if(code3===45){effects.consume(code3);return commentOpenInside}if(code3===91){effects.consume(code3);index2=0;return cdataOpenInside}if(asciiAlpha(code3)){effects.consume(code3);return declaration}return nok(code3)}function commentOpenInside(code3){if(code3===45){effects.consume(code3);return commentEnd}return nok(code3)}function comment(code3){if(code3===null){return nok(code3)}if(code3===45){effects.consume(code3);return commentClose}if(markdownLineEnding(code3)){returnState=comment;return lineEndingBefore(code3)}effects.consume(code3);return comment}function commentClose(code3){if(code3===45){effects.consume(code3);return commentEnd}return comment(code3)}function commentEnd(code3){return code3===62?end(code3):code3===45?commentClose(code3):comment(code3)}function cdataOpenInside(code3){const value="CDATA[";if(code3===value.charCodeAt(index2++)){effects.consume(code3);return index2===value.length?cdata:cdataOpenInside}return nok(code3)}function cdata(code3){if(code3===null){return nok(code3)}if(code3===93){effects.consume(code3);return cdataClose}if(markdownLineEnding(code3)){returnState=cdata;return lineEndingBefore(code3)}effects.consume(code3);return cdata}function cdataClose(code3){if(code3===93){effects.consume(code3);return cdataEnd}return cdata(code3)}function cdataEnd(code3){if(code3===62){return end(code3)}if(code3===93){effects.consume(code3);return cdataEnd}return cdata(code3)}function declaration(code3){if(code3===null||code3===62){return end(code3)}if(markdownLineEnding(code3)){returnState=declaration;return lineEndingBefore(code3)}effects.consume(code3);return declaration}function instruction(code3){if(code3===null){return nok(code3)}if(code3===63){effects.consume(code3);return instructionClose}if(markdownLineEnding(code3)){returnState=instruction;return lineEndingBefore(code3)}effects.consume(code3);return instruction}function instructionClose(code3){return code3===62?end(code3):instruction(code3)}function tagCloseStart(code3){if(asciiAlpha(code3)){effects.consume(code3);return tagClose}return nok(code3)}function tagClose(code3){if(code3===45||asciiAlphanumeric(code3)){effects.consume(code3);return tagClose}return tagCloseBetween(code3)}function tagCloseBetween(code3){if(markdownLineEnding(code3)){returnState=tagCloseBetween;return lineEndingBefore(code3)}if(markdownSpace(code3)){effects.consume(code3);return tagCloseBetween}return end(code3)}function tagOpen(code3){if(code3===45||asciiAlphanumeric(code3)){effects.consume(code3);return tagOpen}if(code3===47||code3===62||markdownLineEndingOrSpace(code3)){return tagOpenBetween(code3)}return nok(code3)}function tagOpenBetween(code3){if(code3===47){effects.consume(code3);return end}if(code3===58||code3===95||asciiAlpha(code3)){effects.consume(code3);return tagOpenAttributeName}if(markdownLineEnding(code3)){returnState=tagOpenBetween;return lineEndingBefore(code3)}if(markdownSpace(code3)){effects.consume(code3);return tagOpenBetween}return end(code3)}function tagOpenAttributeName(code3){if(code3===45||code3===46||code3===58||code3===95||asciiAlphanumeric(code3)){effects.consume(code3);return tagOpenAttributeName}return tagOpenAttributeNameAfter(code3)}function tagOpenAttributeNameAfter(code3){if(code3===61){effects.consume(code3);return tagOpenAttributeValueBefore}if(markdownLineEnding(code3)){returnState=tagOpenAttributeNameAfter;return lineEndingBefore(code3)}if(markdownSpace(code3)){effects.consume(code3);return tagOpenAttributeNameAfter}return tagOpenBetween(code3)}function tagOpenAttributeValueBefore(code3){if(code3===null||code3===60||code3===61||code3===62||code3===96){return nok(code3)}if(code3===34||code3===39){effects.consume(code3);marker=code3;return tagOpenAttributeValueQuoted}if(markdownLineEnding(code3)){returnState=tagOpenAttributeValueBefore;return lineEndingBefore(code3)}if(markdownSpace(code3)){effects.consume(code3);return tagOpenAttributeValueBefore}effects.consume(code3);return tagOpenAttributeValueUnquoted}function tagOpenAttributeValueQuoted(code3){if(code3===marker){effects.consume(code3);marker=void 0;return tagOpenAttributeValueQuotedAfter}if(code3===null){return nok(code3)}if(markdownLineEnding(code3)){returnState=tagOpenAttributeValueQuoted;return lineEndingBefore(code3)}effects.consume(code3);return tagOpenAttributeValueQuoted}function tagOpenAttributeValueUnquoted(code3){if(code3===null||code3===34||code3===39||code3===60||code3===61||code3===96){return nok(code3)}if(code3===47||code3===62||markdownLineEndingOrSpace(code3)){return tagOpenBetween(code3)}effects.consume(code3);return tagOpenAttributeValueUnquoted}function tagOpenAttributeValueQuotedAfter(code3){if(code3===47||code3===62||markdownLineEndingOrSpace(code3)){return tagOpenBetween(code3)}return nok(code3)}function end(code3){if(code3===62){effects.consume(code3);effects.exit("htmlTextData");effects.exit("htmlText");return ok3}return nok(code3)}function lineEndingBefore(code3){effects.exit("htmlTextData");effects.enter("lineEnding");effects.consume(code3);effects.exit("lineEnding");return lineEndingAfter}function lineEndingAfter(code3){return markdownSpace(code3)?factorySpace(effects,lineEndingAfterPrefix,"linePrefix",self.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(code3):lineEndingAfterPrefix(code3)}function lineEndingAfterPrefix(code3){effects.enter("htmlTextData");return returnState(code3)}}var labelEnd={name:"labelEnd",resolveAll:resolveAllLabelEnd,resolveTo:resolveToLabelEnd,tokenize:tokenizeLabelEnd};var resourceConstruct={tokenize:tokenizeResource};var referenceFullConstruct={tokenize:tokenizeReferenceFull};var referenceCollapsedConstruct={tokenize:tokenizeReferenceCollapsed};function resolveAllLabelEnd(events){let index2=-1;const newEvents=[];while(++index2<events.length){const token=events[index2][1];newEvents.push(events[index2]);if(token.type==="labelImage"||token.type==="labelLink"||token.type==="labelEnd"){const offset=token.type==="labelImage"?4:2;token.type="data";index2+=offset}}if(events.length!==newEvents.length){splice(events,0,events.length,newEvents)}return events}function resolveToLabelEnd(events,context){let index2=events.length;let offset=0;let token;let open;let close;let media;while(index2--){token=events[index2][1];if(open){if(token.type==="link"||token.type==="labelLink"&&token._inactive){break}if(events[index2][0]==="enter"&&token.type==="labelLink"){token._inactive=true}}else if(close){if(events[index2][0]==="enter"&&(token.type==="labelImage"||token.type==="labelLink")&&!token._balanced){open=index2;if(token.type!=="labelLink"){offset=2;break}}}else if(token.type==="labelEnd"){close=index2}}const group={type:events[open][1].type==="labelLink"?"link":"image",start:{...events[open][1].start},end:{...events[events.length-1][1].end}};const label={type:"label",start:{...events[open][1].start},end:{...events[close][1].end}};const text6={type:"labelText",start:{...events[open+offset+2][1].end},end:{...events[close-2][1].start}};media=[["enter",group,context],["enter",label,context]];media=push(media,events.slice(open+1,open+offset+3));media=push(media,[["enter",text6,context]]);media=push(media,resolveAll(context.parser.constructs.insideSpan.null,events.slice(open+offset+4,close-3),context));media=push(media,[["exit",text6,context],events[close-2],events[close-1],["exit",label,context]]);media=push(media,events.slice(close+1));media=push(media,[["exit",group,context]]);splice(events,open,events.length,media);return events}function tokenizeLabelEnd(effects,ok3,nok){const self=this;let index2=self.events.length;let labelStart;let defined;while(index2--){if((self.events[index2][1].type==="labelImage"||self.events[index2][1].type==="labelLink")&&!self.events[index2][1]._balanced){labelStart=self.events[index2][1];break}}return start;function start(code3){if(!labelStart){return nok(code3)}if(labelStart._inactive){return labelEndNok(code3)}defined=self.parser.defined.includes(normalizeIdentifier(self.sliceSerialize({start:labelStart.end,end:self.now()})));effects.enter("labelEnd");effects.enter("labelMarker");effects.consume(code3);effects.exit("labelMarker");effects.exit("labelEnd");return after}function after(code3){if(code3===40){return effects.attempt(resourceConstruct,labelEndOk,defined?labelEndOk:labelEndNok)(code3)}if(code3===91){return effects.attempt(referenceFullConstruct,labelEndOk,defined?referenceNotFull:labelEndNok)(code3)}return defined?labelEndOk(code3):labelEndNok(code3)}function referenceNotFull(code3){return effects.attempt(referenceCollapsedConstruct,labelEndOk,labelEndNok)(code3)}function labelEndOk(code3){return ok3(code3)}function labelEndNok(code3){labelStart._balanced=true;return nok(code3)}}function tokenizeResource(effects,ok3,nok){return resourceStart;function resourceStart(code3){effects.enter("resource");effects.enter("resourceMarker");effects.consume(code3);effects.exit("resourceMarker");return resourceBefore}function resourceBefore(code3){return markdownLineEndingOrSpace(code3)?factoryWhitespace(effects,resourceOpen)(code3):resourceOpen(code3)}function resourceOpen(code3){if(code3===41){return resourceEnd(code3)}return factoryDestination(effects,resourceDestinationAfter,resourceDestinationMissing,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(code3)}function resourceDestinationAfter(code3){return markdownLineEndingOrSpace(code3)?factoryWhitespace(effects,resourceBetween)(code3):resourceEnd(code3)}function resourceDestinationMissing(code3){return nok(code3)}function resourceBetween(code3){if(code3===34||code3===39||code3===40){return factoryTitle(effects,resourceTitleAfter,nok,"resourceTitle","resourceTitleMarker","resourceTitleString")(code3)}return resourceEnd(code3)}function resourceTitleAfter(code3){return markdownLineEndingOrSpace(code3)?factoryWhitespace(effects,resourceEnd)(code3):resourceEnd(code3)}function resourceEnd(code3){if(code3===41){effects.enter("resourceMarker");effects.consume(code3);effects.exit("resourceMarker");effects.exit("resource");return ok3}return nok(code3)}}function tokenizeReferenceFull(effects,ok3,nok){const self=this;return referenceFull;function referenceFull(code3){return factoryLabel.call(self,effects,referenceFullAfter,referenceFullMissing,"reference","referenceMarker","referenceString")(code3)}function referenceFullAfter(code3){return self.parser.defined.includes(normalizeIdentifier(self.sliceSerialize(self.events[self.events.length-1][1]).slice(1,-1)))?ok3(code3):nok(code3)}function referenceFullMissing(code3){return nok(code3)}}function tokenizeReferenceCollapsed(effects,ok3,nok){return referenceCollapsedStart;function referenceCollapsedStart(code3){effects.enter("reference");effects.enter("referenceMarker");effects.consume(code3);effects.exit("referenceMarker");return referenceCollapsedOpen}function referenceCollapsedOpen(code3){if(code3===93){effects.enter("referenceMarker");effects.consume(code3);effects.exit("referenceMarker");effects.exit("reference");return ok3}return nok(code3)}}var labelStartImage={name:"labelStartImage",resolveAll:labelEnd.resolveAll,tokenize:tokenizeLabelStartImage};function tokenizeLabelStartImage(effects,ok3,nok){const self=this;return start;function start(code3){effects.enter("labelImage");effects.enter("labelImageMarker");effects.consume(code3);effects.exit("labelImageMarker");return open}function open(code3){if(code3===91){effects.enter("labelMarker");effects.consume(code3);effects.exit("labelMarker");effects.exit("labelImage");return after}return nok(code3)}function after(code3){return code3===94&&"_hiddenFootnoteSupport"in self.parser.constructs?nok(code3):ok3(code3)}}var labelStartLink={name:"labelStartLink",resolveAll:labelEnd.resolveAll,tokenize:tokenizeLabelStartLink};function tokenizeLabelStartLink(effects,ok3,nok){const self=this;return start;function start(code3){effects.enter("labelLink");effects.enter("labelMarker");effects.consume(code3);effects.exit("labelMarker");effects.exit("labelLink");return after}function after(code3){return code3===94&&"_hiddenFootnoteSupport"in self.parser.constructs?nok(code3):ok3(code3)}}var lineEnding={name:"lineEnding",tokenize:tokenizeLineEnding};function tokenizeLineEnding(effects,ok3){return start;function start(code3){effects.enter("lineEnding");effects.consume(code3);effects.exit("lineEnding");return factorySpace(effects,ok3,"linePrefix")}}var thematicBreak={name:"thematicBreak",tokenize:tokenizeThematicBreak};function tokenizeThematicBreak(effects,ok3,nok){let size=0;let marker;return start;function start(code3){effects.enter("thematicBreak");return before(code3)}function before(code3){marker=code3;return atBreak(code3)}function atBreak(code3){if(code3===marker){effects.enter("thematicBreakSequence");return sequence(code3)}if(size>=3&&(code3===null||markdownLineEnding(code3))){effects.exit("thematicBreak");return ok3(code3)}return nok(code3)}function sequence(code3){if(code3===marker){effects.consume(code3);size++;return sequence}effects.exit("thematicBreakSequence");return markdownSpace(code3)?factorySpace(effects,atBreak,"whitespace")(code3):atBreak(code3)}}var list={continuation:{tokenize:tokenizeListContinuation},exit:tokenizeListEnd,name:"list",tokenize:tokenizeListStart};var listItemPrefixWhitespaceConstruct={partial:true,tokenize:tokenizeListItemPrefixWhitespace};var indentConstruct={partial:true,tokenize:tokenizeIndent};function tokenizeListStart(effects,ok3,nok){const self=this;const tail=self.events[self.events.length-1];let initialSize=tail&&tail[1].type==="linePrefix"?tail[2].sliceSerialize(tail[1],true).length:0;let size=0;return start;function start(code3){const kind=self.containerState.type||(code3===42||code3===43||code3===45?"listUnordered":"listOrdered");if(kind==="listUnordered"?!self.containerState.marker||code3===self.containerState.marker:asciiDigit(code3)){if(!self.containerState.type){self.containerState.type=kind;effects.enter(kind,{_container:true})}if(kind==="listUnordered"){effects.enter("listItemPrefix");return code3===42||code3===45?effects.check(thematicBreak,nok,atMarker)(code3):atMarker(code3)}if(!self.interrupt||code3===49){effects.enter("listItemPrefix");effects.enter("listItemValue");return inside(code3)}}return nok(code3)}function inside(code3){if(asciiDigit(code3)&&++size<10){effects.consume(code3);return inside}if((!self.interrupt||size<2)&&(self.containerState.marker?code3===self.containerState.marker:code3===41||code3===46)){effects.exit("listItemValue");return atMarker(code3)}return nok(code3)}function atMarker(code3){effects.enter("listItemMarker");effects.consume(code3);effects.exit("listItemMarker");self.containerState.marker=self.containerState.marker||code3;return effects.check(blankLine,self.interrupt?nok:onBlank,effects.attempt(listItemPrefixWhitespaceConstruct,endOfPrefix,otherPrefix))}function onBlank(code3){self.containerState.initialBlankLine=true;initialSize++;return endOfPrefix(code3)}function otherPrefix(code3){if(markdownSpace(code3)){effects.enter("listItemPrefixWhitespace");effects.consume(code3);effects.exit("listItemPrefixWhitespace");return endOfPrefix}return nok(code3)}function endOfPrefix(code3){self.containerState.size=initialSize+self.sliceSerialize(effects.exit("listItemPrefix"),true).length;return ok3(code3)}}function tokenizeListContinuation(effects,ok3,nok){const self=this;self.containerState._closeFlow=void 0;return effects.check(blankLine,onBlank,notBlank);function onBlank(code3){self.containerState.furtherBlankLines=self.containerState.furtherBlankLines||self.containerState.initialBlankLine;return factorySpace(effects,ok3,"listItemIndent",self.containerState.size+1)(code3)}function notBlank(code3){if(self.containerState.furtherBlankLines||!markdownSpace(code3)){self.containerState.furtherBlankLines=void 0;self.containerState.initialBlankLine=void 0;return notInCurrentItem(code3)}self.containerState.furtherBlankLines=void 0;self.containerState.initialBlankLine=void 0;return effects.attempt(indentConstruct,ok3,notInCurrentItem)(code3)}function notInCurrentItem(code3){self.containerState._closeFlow=true;self.interrupt=void 0;return factorySpace(effects,effects.attempt(list,ok3,nok),"linePrefix",self.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(code3)}}function tokenizeIndent(effects,ok3,nok){const self=this;return factorySpace(effects,afterPrefix,"listItemIndent",self.containerState.size+1);function afterPrefix(code3){const tail=self.events[self.events.length-1];return tail&&tail[1].type==="listItemIndent"&&tail[2].sliceSerialize(tail[1],true).length===self.containerState.size?ok3(code3):nok(code3)}}function tokenizeListEnd(effects){effects.exit(this.containerState.type)}function tokenizeListItemPrefixWhitespace(effects,ok3,nok){const self=this;return factorySpace(effects,afterPrefix,"listItemPrefixWhitespace",self.parser.constructs.disable.null.includes("codeIndented")?void 0:4+1);function afterPrefix(code3){const tail=self.events[self.events.length-1];return!markdownSpace(code3)&&tail&&tail[1].type==="listItemPrefixWhitespace"?ok3(code3):nok(code3)}}var setextUnderline={name:"setextUnderline",resolveTo:resolveToSetextUnderline,tokenize:tokenizeSetextUnderline};function resolveToSetextUnderline(events,context){let index2=events.length;let content3;let text6;let definition3;while(index2--){if(events[index2][0]==="enter"){if(events[index2][1].type==="content"){content3=index2;break}if(events[index2][1].type==="paragraph"){text6=index2}}else{if(events[index2][1].type==="content"){events.splice(index2,1)}if(!definition3&&events[index2][1].type==="definition"){definition3=index2}}}const heading2={type:"setextHeading",start:{...events[content3][1].start},end:{...events[events.length-1][1].end}};events[text6][1].type="setextHeadingText";if(definition3){events.splice(text6,0,["enter",heading2,context]);events.splice(definition3+1,0,["exit",events[content3][1],context]);events[content3][1].end={...events[definition3][1].end}}else{events[content3][1]=heading2}events.push(["exit",heading2,context]);return events}function tokenizeSetextUnderline(effects,ok3,nok){const self=this;let marker;return start;function start(code3){let index2=self.events.length;let paragraph2;while(index2--){if(self.events[index2][1].type!=="lineEnding"&&self.events[index2][1].type!=="linePrefix"&&self.events[index2][1].type!=="content"){paragraph2=self.events[index2][1].type==="paragraph";break}}if(!self.parser.lazy[self.now().line]&&(self.interrupt||paragraph2)){effects.enter("setextHeadingLine");marker=code3;return before(code3)}return nok(code3)}function before(code3){effects.enter("setextHeadingLineSequence");return inside(code3)}function inside(code3){if(code3===marker){effects.consume(code3);return inside}effects.exit("setextHeadingLineSequence");return markdownSpace(code3)?factorySpace(effects,after,"lineSuffix")(code3):after(code3)}function after(code3){if(code3===null||markdownLineEnding(code3)){effects.exit("setextHeadingLine");return ok3(code3)}return nok(code3)}}var flow={tokenize:initializeFlow};function initializeFlow(effects){const self=this;const initial=effects.attempt(blankLine,atBlankEnding,effects.attempt(this.parser.constructs.flowInitial,afterConstruct,factorySpace(effects,effects.attempt(this.parser.constructs.flow,afterConstruct,effects.attempt(content2,afterConstruct)),"linePrefix")));return initial;function atBlankEnding(code3){if(code3===null){effects.consume(code3);return}effects.enter("lineEndingBlank");effects.consume(code3);effects.exit("lineEndingBlank");self.currentConstruct=void 0;return initial}function afterConstruct(code3){if(code3===null){effects.consume(code3);return}effects.enter("lineEnding");effects.consume(code3);effects.exit("lineEnding");self.currentConstruct=void 0;return initial}}var resolver={resolveAll:createResolver()};var string=initializeFactory("string");var text=initializeFactory("text");function initializeFactory(field){return{resolveAll:createResolver(field==="text"?resolveAllLineSuffixes:void 0),tokenize:initializeText};function initializeText(effects){const self=this;const constructs2=this.parser.constructs[field];const text6=effects.attempt(constructs2,start,notText);return start;function start(code3){return atBreak(code3)?text6(code3):notText(code3)}function notText(code3){if(code3===null){effects.consume(code3);return}effects.enter("data");effects.consume(code3);return data}function data(code3){if(atBreak(code3)){effects.exit("data");return text6(code3)}effects.consume(code3);return data}function atBreak(code3){if(code3===null){return true}const list3=constructs2[code3];let index2=-1;if(list3){while(++index2<list3.length){const item=list3[index2];if(!item.previous||item.previous.call(self,self.previous)){return true}}}return false}}}function createResolver(extraResolver){return resolveAllText;function resolveAllText(events,context){let index2=-1;let enter;while(++index2<=events.length){if(enter===void 0){if(events[index2]&&events[index2][1].type==="data"){enter=index2;index2++}}else if(!events[index2]||events[index2][1].type!=="data"){if(index2!==enter+2){events[enter][1].end=events[index2-1][1].end;events.splice(enter+2,index2-enter-2);index2=enter+2}enter=void 0}}return extraResolver?extraResolver(events,context):events}}function resolveAllLineSuffixes(events,context){let eventIndex=0;while(++eventIndex<=events.length){if((eventIndex===events.length||events[eventIndex][1].type==="lineEnding")&&events[eventIndex-1][1].type==="data"){const data=events[eventIndex-1][1];const chunks=context.sliceStream(data);let index2=chunks.length;let bufferIndex=-1;let size=0;let tabs;while(index2--){const chunk=chunks[index2];if(typeof chunk==="string"){bufferIndex=chunk.length;while(chunk.charCodeAt(bufferIndex-1)===32){size++;bufferIndex--}if(bufferIndex)break;bufferIndex=-1}else if(chunk===-2){tabs=true;size++}else if(chunk===-1){}else{index2++;break}}if(context._contentTypeTextTrailing&&eventIndex===events.length){size=0}if(size){const token={type:eventIndex===events.length||tabs||size<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:index2?bufferIndex:data.start._bufferIndex+bufferIndex,_index:data.start._index+index2,line:data.end.line,column:data.end.column-size,offset:data.end.offset-size},end:{...data.end}};data.end={...token.start};if(data.start.offset===data.end.offset){Object.assign(data,token)}else{events.splice(eventIndex,0,["enter",token,context],["exit",token,context]);eventIndex+=2}}eventIndex++}}return events}var constructs_exports={};__export(constructs_exports,{attentionMarkers:()=>attentionMarkers,contentInitial:()=>contentInitial,disable:()=>disable,document:()=>document3,flow:()=>flow2,flowInitial:()=>flowInitial,insideSpan:()=>insideSpan,string:()=>string2,text:()=>text2});var document3={[42]:list,[43]:list,[45]:list,[48]:list,[49]:list,[50]:list,[51]:list,[52]:list,[53]:list,[54]:list,[55]:list,[56]:list,[57]:list,[62]:blockQuote};var contentInitial={[91]:definition};var flowInitial={[-2]:codeIndented,[-1]:codeIndented,[32]:codeIndented};var flow2={[35]:headingAtx,[42]:thematicBreak,[45]:[setextUnderline,thematicBreak],[60]:htmlFlow,[61]:setextUnderline,[95]:thematicBreak,[96]:codeFenced,[126]:codeFenced};var string2={[38]:characterReference,[92]:characterEscape};var text2={[-5]:lineEnding,[-4]:lineEnding,[-3]:lineEnding,[33]:labelStartImage,[38]:characterReference,[42]:attention,[60]:[autolink,htmlText],[91]:labelStartLink,[92]:[hardBreakEscape,characterEscape],[93]:labelEnd,[95]:attention,[96]:codeText};var insideSpan={null:[attention,resolver]};var attentionMarkers={null:[42,95]};var disable={null:[]};function createTokenizer(parser,initialize,from){let point3={_bufferIndex:-1,_index:0,line:from&&from.line||1,column:from&&from.column||1,offset:from&&from.offset||0};const columnStart={};const resolveAllConstructs=[];let chunks=[];let stack=[];let consumed=true;const effects={attempt:constructFactory(onsuccessfulconstruct),check:constructFactory(onsuccessfulcheck),consume,enter,exit:exit3,interrupt:constructFactory(onsuccessfulcheck,{interrupt:true})};const context={code:null,containerState:{},defineSkip,events:[],now,parser,previous:null,sliceSerialize,sliceStream,write};let state=initialize.tokenize.call(context,effects);let expectedCode;if(initialize.resolveAll){resolveAllConstructs.push(initialize)}return context;function write(slice){chunks=push(chunks,slice);main();if(chunks[chunks.length-1]!==null){return[]}addResult(initialize,0);context.events=resolveAll(resolveAllConstructs,context.events,context);return context.events}function sliceSerialize(token,expandTabs){return serializeChunks(sliceStream(token),expandTabs)}function sliceStream(token){return sliceChunks(chunks,token)}function now(){const{_bufferIndex,_index,line,column,offset}=point3;return{_bufferIndex,_index,line,column,offset}}function defineSkip(value){columnStart[value.line]=value.column;accountForPotentialSkip()}function main(){let chunkIndex;while(point3._index<chunks.length){const chunk=chunks[point3._index];if(typeof chunk==="string"){chunkIndex=point3._index;if(point3._bufferIndex<0){point3._bufferIndex=0}while(point3._index===chunkIndex&&point3._bufferIndex<chunk.length){go(chunk.charCodeAt(point3._bufferIndex))}}else{go(chunk)}}}function go(code3){consumed=void 0;expectedCode=code3;state=state(code3)}function consume(code3){if(markdownLineEnding(code3)){point3.line++;point3.column=1;point3.offset+=code3===-3?2:1;accountForPotentialSkip()}else if(code3!==-1){point3.column++;point3.offset++}if(point3._bufferIndex<0){point3._index++}else{point3._bufferIndex++;if(point3._bufferIndex===chunks[point3._index].length){point3._bufferIndex=-1;point3._index++}}context.previous=code3;consumed=true}function enter(type,fields){const token=fields||{};token.type=type;token.start=now();context.events.push(["enter",token,context]);stack.push(token);return token}function exit3(type){const token=stack.pop();token.end=now();context.events.push(["exit",token,context]);return token}function onsuccessfulconstruct(construct,info){addResult(construct,info.from)}function onsuccessfulcheck(_,info){info.restore()}function constructFactory(onreturn,fields){return hook;function hook(constructs2,returnState,bogusState){let listOfConstructs;let constructIndex;let currentConstruct;let info;return Array.isArray(constructs2)?handleListOfConstructs(constructs2):"tokenize"in constructs2?handleListOfConstructs([constructs2]):handleMapOfConstructs(constructs2);function handleMapOfConstructs(map3){return start;function start(code3){const left=code3!==null&&map3[code3];const all2=code3!==null&&map3.null;const list3=[...Array.isArray(left)?left:left?[left]:[],...Array.isArray(all2)?all2:all2?[all2]:[]];return handleListOfConstructs(list3)(code3)}}function handleListOfConstructs(list3){listOfConstructs=list3;constructIndex=0;if(list3.length===0){return bogusState}return handleConstruct(list3[constructIndex])}function handleConstruct(construct){return start;function start(code3){info=store();currentConstruct=construct;if(!construct.partial){context.currentConstruct=construct}if(construct.name&&context.parser.constructs.disable.null.includes(construct.name)){return nok(code3)}return construct.tokenize.call(fields?Object.assign(Object.create(context),fields):context,effects,ok3,nok)(code3)}}function ok3(code3){consumed=true;onreturn(currentConstruct,info);return returnState}function nok(code3){consumed=true;info.restore();if(++constructIndex<listOfConstructs.length){return handleConstruct(listOfConstructs[constructIndex])}return bogusState}}}function addResult(construct,from2){if(construct.resolveAll&&!resolveAllConstructs.includes(construct)){resolveAllConstructs.push(construct)}if(construct.resolve){splice(context.events,from2,context.events.length-from2,construct.resolve(context.events.slice(from2),context))}if(construct.resolveTo){context.events=construct.resolveTo(context.events,context)}}function store(){const startPoint=now();const startPrevious=context.previous;const startCurrentConstruct=context.currentConstruct;const startEventsIndex=context.events.length;const startStack=Array.from(stack);return{from:startEventsIndex,restore};function restore(){point3=startPoint;context.previous=startPrevious;context.currentConstruct=startCurrentConstruct;context.events.length=startEventsIndex;stack=startStack;accountForPotentialSkip()}}function accountForPotentialSkip(){if(point3.line in columnStart&&point3.column<2){point3.column=columnStart[point3.line];point3.offset+=columnStart[point3.line]-1}}}function sliceChunks(chunks,token){const startIndex=token.start._index;const startBufferIndex=token.start._bufferIndex;const endIndex=token.end._index;const endBufferIndex=token.end._bufferIndex;let view;if(startIndex===endIndex){view=[chunks[startIndex].slice(startBufferIndex,endBufferIndex)]}else{view=chunks.slice(startIndex,endIndex);if(startBufferIndex>-1){const head=view[0];if(typeof head==="string"){view[0]=head.slice(startBufferIndex)}else{view.shift()}}if(endBufferIndex>0){view.push(chunks[endIndex].slice(0,endBufferIndex))}}return view}function serializeChunks(chunks,expandTabs){let index2=-1;const result=[];let atTab;while(++index2<chunks.length){const chunk=chunks[index2];let value;if(typeof chunk==="string"){value=chunk}else switch(chunk){case-5:{value="\r";break}case-4:{value="\n";break}case-3:{value="\r\n";break}case-2:{value=expandTabs?" ":" ";break}case-1:{if(!expandTabs&&atTab)continue;value=" ";break}default:{value=String.fromCharCode(chunk)}}atTab=chunk===-2;result.push(value)}return result.join("")}function parse(options){const settings=options||{};const constructs2=combineExtensions([constructs_exports,...settings.extensions||[]]);const parser={constructs:constructs2,content:create(content),defined:[],document:create(document2),flow:create(flow),lazy:{},string:create(string),text:create(text)};return parser;function create(initial){return creator;function creator(from){return createTokenizer(parser,initial,from)}}}function postprocess(events){while(!subtokenize(events)){}return events}var search=/[\0\t\n\r]/g;function preprocess(){let column=1;let buffer="";let start=true;let atCarriageReturn;return preprocessor;function preprocessor(value,encoding,end){const chunks=[];let match;let next;let startPosition;let endPosition;let code3;value=buffer+(typeof value==="string"?value.toString():new TextDecoder(encoding||void 0).decode(value));startPosition=0;buffer="";if(start){if(value.charCodeAt(0)===65279){startPosition++}start=void 0}while(startPosition<value.length){search.lastIndex=startPosition;match=search.exec(value);endPosition=match&&match.index!==void 0?match.index:value.length;code3=value.charCodeAt(endPosition);if(!match){buffer=value.slice(startPosition);break}if(code3===10&&startPosition===endPosition&&atCarriageReturn){chunks.push(-3);atCarriageReturn=void 0}else{if(atCarriageReturn){chunks.push(-5);atCarriageReturn=void 0}if(startPosition<endPosition){chunks.push(value.slice(startPosition,endPosition));column+=endPosition-startPosition}switch(code3){case 0:{chunks.push(65533);column++;break}case 9:{next=Math.ceil(column/4)*4;chunks.push(-2);while(column++<next)chunks.push(-1);break}case 10:{chunks.push(-4);column=1;break}default:{atCarriageReturn=true;column=1}}}startPosition=endPosition+1}if(end){if(atCarriageReturn)chunks.push(-5);if(buffer)chunks.push(buffer);chunks.push(null)}return chunks}}var characterEscapeOrReference=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function decodeString(value){return value.replace(characterEscapeOrReference,decode)}function decode($0,$1,$2){if($1){return $1}const head=$2.charCodeAt(0);if(head===35){const head2=$2.charCodeAt(1);const hex=head2===120||head2===88;return decodeNumericCharacterReference($2.slice(hex?2:1),hex?16:10)}return decodeNamedCharacterReference($2)||$0}var own3={}.hasOwnProperty;function fromMarkdown(value,encoding,options){if(typeof encoding!=="string"){options=encoding;encoding=void 0}return compiler(options)(postprocess(parse(options).document().write(preprocess()(value,encoding,true))))}function compiler(options){const config={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:opener(link2),autolinkProtocol:onenterdata,autolinkEmail:onenterdata,atxHeading:opener(heading2),blockQuote:opener(blockQuote2),characterEscape:onenterdata,characterReference:onenterdata,codeFenced:opener(codeFlow),codeFencedFenceInfo:buffer,codeFencedFenceMeta:buffer,codeIndented:opener(codeFlow,buffer),codeText:opener(codeText2,buffer),codeTextData:onenterdata,data:onenterdata,codeFlowValue:onenterdata,definition:opener(definition3),definitionDestinationString:buffer,definitionLabelString:buffer,definitionTitleString:buffer,emphasis:opener(emphasis2),hardBreakEscape:opener(hardBreak2),hardBreakTrailing:opener(hardBreak2),htmlFlow:opener(html2,buffer),htmlFlowData:onenterdata,htmlText:opener(html2,buffer),htmlTextData:onenterdata,image:opener(image2),label:buffer,link:opener(link2),listItem:opener(listItem2),listItemValue:onenterlistitemvalue,listOrdered:opener(list3,onenterlistordered),listUnordered:opener(list3),paragraph:opener(paragraph2),reference:onenterreference,referenceString:buffer,resourceDestinationString:buffer,resourceTitleString:buffer,setextHeading:opener(heading2),strong:opener(strong2),thematicBreak:opener(thematicBreak3)},exit:{atxHeading:closer(),atxHeadingSequence:onexitatxheadingsequence,autolink:closer(),autolinkEmail:onexitautolinkemail,autolinkProtocol:onexitautolinkprotocol,blockQuote:closer(),characterEscapeValue:onexitdata,characterReferenceMarkerHexadecimal:onexitcharacterreferencemarker,characterReferenceMarkerNumeric:onexitcharacterreferencemarker,characterReferenceValue:onexitcharacterreferencevalue,characterReference:onexitcharacterreference,codeFenced:closer(onexitcodefenced),codeFencedFence:onexitcodefencedfence,codeFencedFenceInfo:onexitcodefencedfenceinfo,codeFencedFenceMeta:onexitcodefencedfencemeta,codeFlowValue:onexitdata,codeIndented:closer(onexitcodeindented),codeText:closer(onexitcodetext),codeTextData:onexitdata,data:onexitdata,definition:closer(),definitionDestinationString:onexitdefinitiondestinationstring,definitionLabelString:onexitdefinitionlabelstring,definitionTitleString:onexitdefinitiontitlestring,emphasis:closer(),hardBreakEscape:closer(onexithardbreak),hardBreakTrailing:closer(onexithardbreak),htmlFlow:closer(onexithtmlflow),htmlFlowData:onexitdata,htmlText:closer(onexithtmltext),htmlTextData:onexitdata,image:closer(onexitimage),label:onexitlabel,labelText:onexitlabeltext,lineEnding:onexitlineending,link:closer(onexitlink),listItem:closer(),listOrdered:closer(),listUnordered:closer(),paragraph:closer(),referenceString:onexitreferencestring,resourceDestinationString:onexitresourcedestinationstring,resourceTitleString:onexitresourcetitlestring,resource:onexitresource,setextHeading:closer(onexitsetextheading),setextHeadingLineSequence:onexitsetextheadinglinesequence,setextHeadingText:onexitsetextheadingtext,strong:closer(),thematicBreak:closer()}};configure(config,(options||{}).mdastExtensions||[]);const data={};return compile;function compile(events){let tree={type:"root",children:[]};const context={stack:[tree],tokenStack:[],config,enter,exit:exit3,buffer,resume,data};const listStack=[];let index2=-1;while(++index2<events.length){if(events[index2][1].type==="listOrdered"||events[index2][1].type==="listUnordered"){if(events[index2][0]==="enter"){listStack.push(index2)}else{const tail=listStack.pop();index2=prepareList(events,tail,index2)}}}index2=-1;while(++index2<events.length){const handler=config[events[index2][0]];if(own3.call(handler,events[index2][1].type)){handler[events[index2][1].type].call(Object.assign({sliceSerialize:events[index2][2].sliceSerialize},context),events[index2][1])}}if(context.tokenStack.length>0){const tail=context.tokenStack[context.tokenStack.length-1];const handler=tail[1]||defaultOnError;handler.call(context,void 0,tail[0])}tree.position={start:point2(events.length>0?events[0][1].start:{line:1,column:1,offset:0}),end:point2(events.length>0?events[events.length-2][1].end:{line:1,column:1,offset:0})};index2=-1;while(++index2<config.transforms.length){tree=config.transforms[index2](tree)||tree}return tree}function prepareList(events,start,length){let index2=start-1;let containerBalance=-1;let listSpread=false;let listItem3;let lineIndex;let firstBlankLineIndex;let atMarker;while(++index2<=length){const event=events[index2];switch(event[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{if(event[0]==="enter"){containerBalance++}else{containerBalance--}atMarker=void 0;break}case"lineEndingBlank":{if(event[0]==="enter"){if(listItem3&&!atMarker&&!containerBalance&&!firstBlankLineIndex){firstBlankLineIndex=index2}atMarker=void 0}break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":{break}default:{atMarker=void 0}}if(!containerBalance&&event[0]==="enter"&&event[1].type==="listItemPrefix"||containerBalance===-1&&event[0]==="exit"&&(event[1].type==="listUnordered"||event[1].type==="listOrdered")){if(listItem3){let tailIndex=index2;lineIndex=void 0;while(tailIndex--){const tailEvent=events[tailIndex];if(tailEvent[1].type==="lineEnding"||tailEvent[1].type==="lineEndingBlank"){if(tailEvent[0]==="exit")continue;if(lineIndex){events[lineIndex][1].type="lineEndingBlank";listSpread=true}tailEvent[1].type="lineEnding";lineIndex=tailIndex}else if(tailEvent[1].type==="linePrefix"||tailEvent[1].type==="blockQuotePrefix"||tailEvent[1].type==="blockQuotePrefixWhitespace"||tailEvent[1].type==="blockQuoteMarker"||tailEvent[1].type==="listItemIndent"){}else{break}}if(firstBlankLineIndex&&(!lineIndex||firstBlankLineIndex<lineIndex)){listItem3._spread=true}listItem3.end=Object.assign({},lineIndex?events[lineIndex][1].start:event[1].end);events.splice(lineIndex||index2,0,["exit",listItem3,event[2]]);index2++;length++}if(event[1].type==="listItemPrefix"){const item={type:"listItem",_spread:false,start:Object.assign({},event[1].start),end:void 0};listItem3=item;events.splice(index2,0,["enter",item,event[2]]);index2++;length++;firstBlankLineIndex=void 0;atMarker=true}}}events[start][1]._spread=listSpread;return length}function opener(create,and){return open;function open(token){enter.call(this,create(token),token);if(and)and.call(this,token)}}function buffer(){this.stack.push({type:"fragment",children:[]})}function enter(node2,token,errorHandler){const parent=this.stack[this.stack.length-1];const siblings=parent.children;siblings.push(node2);this.stack.push(node2);this.tokenStack.push([token,errorHandler||void 0]);node2.position={start:point2(token.start),end:void 0}}function closer(and){return close;function close(token){if(and)and.call(this,token);exit3.call(this,token)}}function exit3(token,onExitError){const node2=this.stack.pop();const open=this.tokenStack.pop();if(!open){throw new Error("Cannot close `"+token.type+"` ("+stringifyPosition({start:token.start,end:token.end})+"): it\u2019s not open")}else if(open[0].type!==token.type){if(onExitError){onExitError.call(this,token,open[0])}else{const handler=open[1]||defaultOnError;handler.call(this,token,open[0])}}node2.position.end=point2(token.end)}function resume(){return toString(this.stack.pop())}function onenterlistordered(){this.data.expectingFirstListItemValue=true}function onenterlistitemvalue(token){if(this.data.expectingFirstListItemValue){const ancestor=this.stack[this.stack.length-2];ancestor.start=Number.parseInt(this.sliceSerialize(token),10);this.data.expectingFirstListItemValue=void 0}}function onexitcodefencedfenceinfo(){const data2=this.resume();const node2=this.stack[this.stack.length-1];node2.lang=data2}function onexitcodefencedfencemeta(){const data2=this.resume();const node2=this.stack[this.stack.length-1];node2.meta=data2}function onexitcodefencedfence(){if(this.data.flowCodeInside)return;this.buffer();this.data.flowCodeInside=true}function onexitcodefenced(){const data2=this.resume();const node2=this.stack[this.stack.length-1];node2.value=data2.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,"");this.data.flowCodeInside=void 0}function onexitcodeindented(){const data2=this.resume();const node2=this.stack[this.stack.length-1];node2.value=data2.replace(/(\r?\n|\r)$/g,"")}function onexitdefinitionlabelstring(token){const label=this.resume();const node2=this.stack[this.stack.length-1];node2.label=label;node2.identifier=normalizeIdentifier(this.sliceSerialize(token)).toLowerCase()}function onexitdefinitiontitlestring(){const data2=this.resume();const node2=this.stack[this.stack.length-1];node2.title=data2}function onexitdefinitiondestinationstring(){const data2=this.resume();const node2=this.stack[this.stack.length-1];node2.url=data2}function onexitatxheadingsequence(token){const node2=this.stack[this.stack.length-1];if(!node2.depth){const depth=this.sliceSerialize(token).length;node2.depth=depth}}function onexitsetextheadingtext(){this.data.setextHeadingSlurpLineEnding=true}function onexitsetextheadinglinesequence(token){const node2=this.stack[this.stack.length-1];node2.depth=this.sliceSerialize(token).codePointAt(0)===61?1:2}function onexitsetextheading(){this.data.setextHeadingSlurpLineEnding=void 0}function onenterdata(token){const node2=this.stack[this.stack.length-1];const siblings=node2.children;let tail=siblings[siblings.length-1];if(!tail||tail.type!=="text"){tail=text6();tail.position={start:point2(token.start),end:void 0};siblings.push(tail)}this.stack.push(tail)}function onexitdata(token){const tail=this.stack.pop();tail.value+=this.sliceSerialize(token);tail.position.end=point2(token.end)}function onexitlineending(token){const context=this.stack[this.stack.length-1];if(this.data.atHardBreak){const tail=context.children[context.children.length-1];tail.position.end=point2(token.end);this.data.atHardBreak=void 0;return}if(!this.data.setextHeadingSlurpLineEnding&&config.canContainEols.includes(context.type)){onenterdata.call(this,token);onexitdata.call(this,token)}}function onexithardbreak(){this.data.atHardBreak=true}function onexithtmlflow(){const data2=this.resume();const node2=this.stack[this.stack.length-1];node2.value=data2}function onexithtmltext(){const data2=this.resume();const node2=this.stack[this.stack.length-1];node2.value=data2}function onexitcodetext(){const data2=this.resume();const node2=this.stack[this.stack.length-1];node2.value=data2}function onexitlink(){const node2=this.stack[this.stack.length-1];if(this.data.inReference){const referenceType=this.data.referenceType||"shortcut";node2.type+="Reference";node2.referenceType=referenceType;delete node2.url;delete node2.title}else{delete node2.identifier;delete node2.label}this.data.referenceType=void 0}function onexitimage(){const node2=this.stack[this.stack.length-1];if(this.data.inReference){const referenceType=this.data.referenceType||"shortcut";node2.type+="Reference";node2.referenceType=referenceType;delete node2.url;delete node2.title}else{delete node2.identifier;delete node2.label}this.data.referenceType=void 0}function onexitlabeltext(token){const string3=this.sliceSerialize(token);const ancestor=this.stack[this.stack.length-2];ancestor.label=decodeString(string3);ancestor.identifier=normalizeIdentifier(string3).toLowerCase()}function onexitlabel(){const fragment=this.stack[this.stack.length-1];const value=this.resume();const node2=this.stack[this.stack.length-1];this.data.inReference=true;if(node2.type==="link"){const children=fragment.children;node2.children=children}else{node2.alt=value}}function onexitresourcedestinationstring(){const data2=this.resume();const node2=this.stack[this.stack.length-1];node2.url=data2}function onexitresourcetitlestring(){const data2=this.resume();const node2=this.stack[this.stack.length-1];node2.title=data2}function onexitresource(){this.data.inReference=void 0}function onenterreference(){this.data.referenceType="collapsed"}function onexitreferencestring(token){const label=this.resume();const node2=this.stack[this.stack.length-1];node2.label=label;node2.identifier=normalizeIdentifier(this.sliceSerialize(token)).toLowerCase();this.data.referenceType="full"}function onexitcharacterreferencemarker(token){this.data.characterReferenceType=token.type}function onexitcharacterreferencevalue(token){const data2=this.sliceSerialize(token);const type=this.data.characterReferenceType;let value;if(type){value=decodeNumericCharacterReference(data2,type==="characterReferenceMarkerNumeric"?10:16);this.data.characterReferenceType=void 0}else{const result=decodeNamedCharacterReference(data2);value=result}const tail=this.stack[this.stack.length-1];tail.value+=value}function onexitcharacterreference(token){const tail=this.stack.pop();tail.position.end=point2(token.end)}function onexitautolinkprotocol(token){onexitdata.call(this,token);const node2=this.stack[this.stack.length-1];node2.url=this.sliceSerialize(token)}function onexitautolinkemail(token){onexitdata.call(this,token);const node2=this.stack[this.stack.length-1];node2.url="mailto:"+this.sliceSerialize(token)}function blockQuote2(){return{type:"blockquote",children:[]}}function codeFlow(){return{type:"code",lang:null,meta:null,value:""}}function codeText2(){return{type:"inlineCode",value:""}}function definition3(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function emphasis2(){return{type:"emphasis",children:[]}}function heading2(){return{type:"heading",depth:0,children:[]}}function hardBreak2(){return{type:"break"}}function html2(){return{type:"html",value:""}}function image2(){return{type:"image",title:null,url:"",alt:null}}function link2(){return{type:"link",title:null,url:"",children:[]}}function list3(token){return{type:"list",ordered:token.type==="listOrdered",start:null,spread:token._spread,children:[]}}function listItem2(token){return{type:"listItem",spread:token._spread,checked:null,children:[]}}function paragraph2(){return{type:"paragraph",children:[]}}function strong2(){return{type:"strong",children:[]}}function text6(){return{type:"text",value:""}}function thematicBreak3(){return{type:"thematicBreak"}}}function point2(d){return{line:d.line,column:d.column,offset:d.offset}}function configure(combined,extensions){let index2=-1;while(++index2<extensions.length){const value=extensions[index2];if(Array.isArray(value)){configure(combined,value)}else{extension(combined,value)}}}function extension(combined,extension2){let key;for(key in extension2){if(own3.call(extension2,key)){switch(key){case"canContainEols":{const right=extension2[key];if(right){combined[key].push(...right)}break}case"transforms":{const right=extension2[key];if(right){combined[key].push(...right)}break}case"enter":case"exit":{const right=extension2[key];if(right){Object.assign(combined[key],right)}break}}}}}function defaultOnError(left,right){if(left){throw new Error("Cannot close `"+left.type+"` ("+stringifyPosition({start:left.start,end:left.end})+"): a different token (`"+right.type+"`, "+stringifyPosition({start:right.start,end:right.end})+") is open")}else{throw new Error("Cannot close document, a token (`"+right.type+"`, "+stringifyPosition({start:right.start,end:right.end})+") is still open")}}function remarkParse(options){const self=this;self.parser=parser;function parser(doc){return fromMarkdown(doc,{...self.data("settings"),...options,extensions:self.data("micromarkExtensions")||[],mdastExtensions:self.data("fromMarkdownExtensions")||[]})}}function ccount(value,character){const source=String(value);if(typeof character!=="string"){throw new TypeError("Expected character")}let count=0;let index2=source.indexOf(character);while(index2!==-1){count++;index2=source.indexOf(character,index2+character.length)}return count}function escapeStringRegexp(string3){if(typeof string3!=="string"){throw new TypeError("Expected a string")}return string3.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var convert=(function(test){if(test===null||test===void 0){return ok2}if(typeof test==="function"){return castFactory(test)}if(typeof test==="object"){return Array.isArray(test)?anyFactory(test):propertiesFactory(test)}if(typeof test==="string"){return typeFactory(test)}throw new Error("Expected function, string, or object as test")});function anyFactory(tests){const checks=[];let index2=-1;while(++index2<tests.length){checks[index2]=convert(tests[index2])}return castFactory(any);function any(...parameters){let index3=-1;while(++index3<checks.length){if(checks[index3].apply(this,parameters))return true}return false}}function propertiesFactory(check){const checkAsRecord=check;return castFactory(all2);function all2(node2){const nodeAsRecord=node2;let key;for(key in check){if(nodeAsRecord[key]!==checkAsRecord[key])return false}return true}}function typeFactory(check){return castFactory(type);function type(node2){return node2&&node2.type===check}}function castFactory(testFunction){return check;function check(value,index2,parent){return Boolean(looksLikeANode(value)&&testFunction.call(this,value,typeof index2==="number"?index2:void 0,parent||void 0))}}function ok2(){return true}function looksLikeANode(value){return value!==null&&typeof value==="object"&&"type"in value}function color(d){return d}var empty=[];var CONTINUE=true;var EXIT=false;var SKIP="skip";function visitParents(tree,test,visitor,reverse){let check;if(typeof test==="function"&&typeof visitor!=="function"){reverse=visitor;visitor=test}else{check=test}const is2=convert(check);const step=reverse?-1:1;factory(tree,void 0,[])();function factory(node2,index2,parents){const value=node2&&typeof node2==="object"?node2:{};if(typeof value.type==="string"){const name=typeof value.tagName==="string"?value.tagName:typeof value.name==="string"?value.name:void 0;Object.defineProperty(visit2,"name",{value:"node ("+color(node2.type+(name?"<"+name+">":""))+")"})}return visit2;function visit2(){let result=empty;let subresult;let offset;let grandparents;if(!test||is2(node2,index2,parents[parents.length-1]||void 0)){result=toResult(visitor(node2,parents));if(result[0]===EXIT){return result}}if("children"in node2&&node2.children){const nodeAsParent=node2;if(nodeAsParent.children&&result[0]!==SKIP){offset=(reverse?nodeAsParent.children.length:-1)+step;grandparents=parents.concat(nodeAsParent);while(offset>-1&&offset<nodeAsParent.children.length){const child=nodeAsParent.children[offset];subresult=factory(child,offset,grandparents)();if(subresult[0]===EXIT){return subresult}offset=typeof subresult[1]==="number"?subresult[1]:offset+step}}}return result}}}function toResult(value){if(Array.isArray(value)){return value}if(typeof value==="number"){return[CONTINUE,value]}return value===null||value===void 0?empty:[value]}function findAndReplace(tree,list3,options){const settings=options||{};const ignored=convert(settings.ignore||[]);const pairs=toPairs(list3);let pairIndex=-1;while(++pairIndex<pairs.length){visitParents(tree,"text",visitor)}function visitor(node2,parents){let index2=-1;let grandparent;while(++index2<parents.length){const parent=parents[index2];const siblings=grandparent?grandparent.children:void 0;if(ignored(parent,siblings?siblings.indexOf(parent):void 0,grandparent)){return}grandparent=parent}if(grandparent){return handler(node2,parents)}}function handler(node2,parents){const parent=parents[parents.length-1];const find=pairs[pairIndex][0];const replace2=pairs[pairIndex][1];let start=0;const siblings=parent.children;const index2=siblings.indexOf(node2);let change=false;let nodes=[];find.lastIndex=0;let match=find.exec(node2.value);while(match){const position2=match.index;const matchObject={index:match.index,input:match.input,stack:[...parents,node2]};let value=replace2(...match,matchObject);if(typeof value==="string"){value=value.length>0?{type:"text",value}:void 0}if(value===false){find.lastIndex=position2+1}else{if(start!==position2){nodes.push({type:"text",value:node2.value.slice(start,position2)})}if(Array.isArray(value)){nodes.push(...value)}else if(value){nodes.push(value)}start=position2+match[0].length;change=true}if(!find.global){break}match=find.exec(node2.value)}if(change){if(start<node2.value.length){nodes.push({type:"text",value:node2.value.slice(start)})}parent.children.splice(index2,1,...nodes)}else{nodes=[node2]}return index2+nodes.length}}function toPairs(tupleOrList){const result=[];if(!Array.isArray(tupleOrList)){throw new TypeError("Expected find and replace tuple or list of tuples")}const list3=!tupleOrList[0]||Array.isArray(tupleOrList[0])?tupleOrList:[tupleOrList];let index2=-1;while(++index2<list3.length){const tuple=list3[index2];result.push([toExpression(tuple[0]),toFunction(tuple[1])])}return result}function toExpression(find){return typeof find==="string"?new RegExp(escapeStringRegexp(find),"g"):find}function toFunction(replace2){return typeof replace2==="function"?replace2:function(){return replace2}}var inConstruct="phrasing";var notInConstruct=["autolink","link","image","label"];function gfmAutolinkLiteralFromMarkdown(){return{transforms:[transformGfmAutolinkLiterals],enter:{literalAutolink:enterLiteralAutolink,literalAutolinkEmail:enterLiteralAutolinkValue,literalAutolinkHttp:enterLiteralAutolinkValue,literalAutolinkWww:enterLiteralAutolinkValue},exit:{literalAutolink:exitLiteralAutolink,literalAutolinkEmail:exitLiteralAutolinkEmail,literalAutolinkHttp:exitLiteralAutolinkHttp,literalAutolinkWww:exitLiteralAutolinkWww}}}function gfmAutolinkLiteralToMarkdown(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct,notInConstruct},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct,notInConstruct},{character:":",before:"[ps]",after:"\\/",inConstruct,notInConstruct}]}}function enterLiteralAutolink(token){this.enter({type:"link",title:null,url:"",children:[]},token)}function enterLiteralAutolinkValue(token){this.config.enter.autolinkProtocol.call(this,token)}function exitLiteralAutolinkHttp(token){this.config.exit.autolinkProtocol.call(this,token)}function exitLiteralAutolinkWww(token){this.config.exit.data.call(this,token);const node2=this.stack[this.stack.length-1];ok(node2.type==="link");node2.url="http://"+this.sliceSerialize(token)}function exitLiteralAutolinkEmail(token){this.config.exit.autolinkEmail.call(this,token)}function exitLiteralAutolink(token){this.exit(token)}function transformGfmAutolinkLiterals(tree){findAndReplace(tree,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,findUrl],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,findEmail]],{ignore:["link","linkReference"]})}function findUrl(_,protocol,domain2,path2,match){let prefix="";if(!previous2(match)){return false}if(/^w/i.test(protocol)){domain2=protocol+domain2;protocol="";prefix="http://"}if(!isCorrectDomain(domain2)){return false}const parts=splitUrl(domain2+path2);if(!parts[0])return false;const result={type:"link",title:null,url:prefix+protocol+parts[0],children:[{type:"text",value:protocol+parts[0]}]};if(parts[1]){return[result,{type:"text",value:parts[1]}]}return result}function findEmail(_,atext,label,match){if(!previous2(match,true)||/[-\d_]$/.test(label)){return false}return{type:"link",title:null,url:"mailto:"+atext+"@"+label,children:[{type:"text",value:atext+"@"+label}]}}function isCorrectDomain(domain2){const parts=domain2.split(".");if(parts.length<2||parts[parts.length-1]&&(/_/.test(parts[parts.length-1])||!/[a-zA-Z\d]/.test(parts[parts.length-1]))||parts[parts.length-2]&&(/_/.test(parts[parts.length-2])||!/[a-zA-Z\d]/.test(parts[parts.length-2]))){return false}return true}function splitUrl(url){const trailExec=/[!"&'),.:;<>?\]}]+$/.exec(url);if(!trailExec){return[url,void 0]}url=url.slice(0,trailExec.index);let trail2=trailExec[0];let closingParenIndex=trail2.indexOf(")");const openingParens=ccount(url,"(");let closingParens=ccount(url,")");while(closingParenIndex!==-1&&openingParens>closingParens){url+=trail2.slice(0,closingParenIndex+1);trail2=trail2.slice(closingParenIndex+1);closingParenIndex=trail2.indexOf(")");closingParens++}return[url,trail2]}function previous2(match,email){const code3=match.input.charCodeAt(match.index-1);return(match.index===0||unicodeWhitespace(code3)||unicodePunctuation(code3))&&(!email||code3!==47)}footnoteReference.peek=footnoteReferencePeek;function enterFootnoteCallString(){this.buffer()}function enterFootnoteCall(token){this.enter({type:"footnoteReference",identifier:"",label:""},token)}function enterFootnoteDefinitionLabelString(){this.buffer()}function enterFootnoteDefinition(token){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},token)}function exitFootnoteCallString(token){const label=this.resume();const node2=this.stack[this.stack.length-1];ok(node2.type==="footnoteReference");node2.identifier=normalizeIdentifier(this.sliceSerialize(token)).toLowerCase();node2.label=label}function exitFootnoteCall(token){this.exit(token)}function exitFootnoteDefinitionLabelString(token){const label=this.resume();const node2=this.stack[this.stack.length-1];ok(node2.type==="footnoteDefinition");node2.identifier=normalizeIdentifier(this.sliceSerialize(token)).toLowerCase();node2.label=label}function exitFootnoteDefinition(token){this.exit(token)}function footnoteReferencePeek(){return"["}function footnoteReference(node2,_,state,info){const tracker=state.createTracker(info);let value=tracker.move("[^");const exit3=state.enter("footnoteReference");const subexit=state.enter("reference");value+=tracker.move(state.safe(state.associationId(node2),{after:"]",before:value}));subexit();exit3();value+=tracker.move("]");return value}function gfmFootnoteFromMarkdown(){return{enter:{gfmFootnoteCallString:enterFootnoteCallString,gfmFootnoteCall:enterFootnoteCall,gfmFootnoteDefinitionLabelString:enterFootnoteDefinitionLabelString,gfmFootnoteDefinition:enterFootnoteDefinition},exit:{gfmFootnoteCallString:exitFootnoteCallString,gfmFootnoteCall:exitFootnoteCall,gfmFootnoteDefinitionLabelString:exitFootnoteDefinitionLabelString,gfmFootnoteDefinition:exitFootnoteDefinition}}}function gfmFootnoteToMarkdown(options){let firstLineBlank=false;if(options&&options.firstLineBlank){firstLineBlank=true}return{handlers:{footnoteDefinition,footnoteReference},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function footnoteDefinition(node2,_,state,info){const tracker=state.createTracker(info);let value=tracker.move("[^");const exit3=state.enter("footnoteDefinition");const subexit=state.enter("label");value+=tracker.move(state.safe(state.associationId(node2),{before:value,after:"]"}));subexit();value+=tracker.move("]:");if(node2.children&&node2.children.length>0){tracker.shift(4);value+=tracker.move((firstLineBlank?"\n":" ")+state.indentLines(state.containerFlow(node2,tracker.current()),firstLineBlank?mapAll:mapExceptFirst))}exit3();return value}}function mapExceptFirst(line,index2,blank){return index2===0?line:mapAll(line,index2,blank)}function mapAll(line,index2,blank){return(blank?"":" ")+line}var constructsWithoutStrikethrough=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];handleDelete.peek=peekDelete;function gfmStrikethroughFromMarkdown(){return{canContainEols:["delete"],enter:{strikethrough:enterStrikethrough},exit:{strikethrough:exitStrikethrough}}}function gfmStrikethroughToMarkdown(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:constructsWithoutStrikethrough}],handlers:{delete:handleDelete}}}function enterStrikethrough(token){this.enter({type:"delete",children:[]},token)}function exitStrikethrough(token){this.exit(token)}function handleDelete(node2,_,state,info){const tracker=state.createTracker(info);const exit3=state.enter("strikethrough");let value=tracker.move("~~");value+=state.containerPhrasing(node2,{...tracker.current(),before:value,after:"~"});value+=tracker.move("~~");exit3();return value}function peekDelete(){return"~"}function defaultStringLength(value){return value.length}function markdownTable(table,options){const settings=options||{};const align=(settings.align||[]).concat();const stringLength=settings.stringLength||defaultStringLength;const alignments=[];const cellMatrix=[];const sizeMatrix=[];const longestCellByColumn=[];let mostCellsPerRow=0;let rowIndex=-1;while(++rowIndex<table.length){const row2=[];const sizes2=[];let columnIndex2=-1;if(table[rowIndex].length>mostCellsPerRow){mostCellsPerRow=table[rowIndex].length}while(++columnIndex2<table[rowIndex].length){const cell=serialize(table[rowIndex][columnIndex2]);if(settings.alignDelimiters!==false){const size=stringLength(cell);sizes2[columnIndex2]=size;if(longestCellByColumn[columnIndex2]===void 0||size>longestCellByColumn[columnIndex2]){longestCellByColumn[columnIndex2]=size}}row2.push(cell)}cellMatrix[rowIndex]=row2;sizeMatrix[rowIndex]=sizes2}let columnIndex=-1;if(typeof align==="object"&&"length"in align){while(++columnIndex<mostCellsPerRow){alignments[columnIndex]=toAlignment(align[columnIndex])}}else{const code3=toAlignment(align);while(++columnIndex<mostCellsPerRow){alignments[columnIndex]=code3}}columnIndex=-1;const row=[];const sizes=[];while(++columnIndex<mostCellsPerRow){const code3=alignments[columnIndex];let before="";let after="";if(code3===99){before=":";after=":"}else if(code3===108){before=":"}else if(code3===114){after=":"}let size=settings.alignDelimiters===false?1:Math.max(1,longestCellByColumn[columnIndex]-before.length-after.length);const cell=before+"-".repeat(size)+after;if(settings.alignDelimiters!==false){size=before.length+size+after.length;if(size>longestCellByColumn[columnIndex]){longestCellByColumn[columnIndex]=size}sizes[columnIndex]=size}row[columnIndex]=cell}cellMatrix.splice(1,0,row);sizeMatrix.splice(1,0,sizes);rowIndex=-1;const lines=[];while(++rowIndex<cellMatrix.length){const row2=cellMatrix[rowIndex];const sizes2=sizeMatrix[rowIndex];columnIndex=-1;const line=[];while(++columnIndex<mostCellsPerRow){const cell=row2[columnIndex]||"";let before="";let after="";if(settings.alignDelimiters!==false){const size=longestCellByColumn[columnIndex]-(sizes2[columnIndex]||0);const code3=alignments[columnIndex];if(code3===114){before=" ".repeat(size)}else if(code3===99){if(size%2){before=" ".repeat(size/2+.5);after=" ".repeat(size/2-.5)}else{before=" ".repeat(size/2);after=before}}else{after=" ".repeat(size)}}if(settings.delimiterStart!==false&&!columnIndex){line.push("|")}if(settings.padding!==false&&!(settings.alignDelimiters===false&&cell==="")&&(settings.delimiterStart!==false||columnIndex)){line.push(" ")}if(settings.alignDelimiters!==false){line.push(before)}line.push(cell);if(settings.alignDelimiters!==false){line.push(after)}if(settings.padding!==false){line.push(" ")}if(settings.delimiterEnd!==false||columnIndex!==mostCellsPerRow-1){line.push("|")}}lines.push(settings.delimiterEnd===false?line.join("").replace(/ +$/,""):line.join(""))}return lines.join("\n")}function serialize(value){return value===null||value===void 0?"":String(value)}function toAlignment(value){const code3=typeof value==="string"?value.codePointAt(0):0;return code3===67||code3===99?99:code3===76||code3===108?108:code3===82||code3===114?114:0}var phrasing=convert(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function blockquote(node2,_,state,info){const exit3=state.enter("blockquote");const tracker=state.createTracker(info);tracker.move("> ");tracker.shift(2);const value=state.indentLines(state.containerFlow(node2,tracker.current()),map);exit3();return value}function map(line,_,blank){return">"+(blank?"":" ")+line}function patternInScope(stack,pattern){return listInScope(stack,pattern.inConstruct,true)&&!listInScope(stack,pattern.notInConstruct,false)}function listInScope(stack,list3,none){if(typeof list3==="string"){list3=[list3]}if(!list3||list3.length===0){return none}let index2=-1;while(++index2<list3.length){if(stack.includes(list3[index2])){return true}}return false}function hardBreak(_,_1,state,info){let index2=-1;while(++index2<state.unsafe.length){const pattern=state.unsafe[index2];if(pattern.character==="\n"&&!pattern.before&&!pattern.after&&patternInScope(state.stack,pattern)){return/[\t ]/.test(info.before)?"":" "}}return"\\\n"}function longestStreak(value,substring){const source=String(value);let index2=source.indexOf(substring);let expected=index2;let count=0;let max=0;if(typeof substring!=="string"){throw new TypeError("Expected substring")}while(index2!==-1){if(index2===expected){if(++count>max){max=count}}else{count=1}expected=index2+substring.length;index2=source.indexOf(substring,expected)}return max}function formatCodeAsIndented(node2,state){return Boolean(state.options.fences===false&&node2.value&&!node2.lang&&/[^\n\r ]/.test(node2.value)&&!/^[\t ]*(?:[\n\r]|$)|(?:^|[\n\r])[\t ]*$/.test(node2.value))}function checkFence(state){const marker=state.options.fence||"`";if(marker!=="`"&&marker!=="~"){throw new Error("Cannot serialize code with `"+marker+"` for `options.fence`, expected `` ` `` or `~`")}return marker}function code(node2,_,state,info){const marker=checkFence(state);const raw=node2.value||"";if(formatCodeAsIndented(node2,state)){const exit4=state.enter("codeIndented");const value2=state.indentLines(raw,map2);exit4();return value2}const tracker=state.createTracker(info);const sequence=marker.repeat(Math.max(longestStreak(raw,marker)+1,3));const exit3=state.enter("codeFenced");const suffix=marker==="`"?"GraveAccent":"Tilde";let value=tracker.move(sequence);if(node2.lang){const subexit=state.enter(`codeFencedLang${suffix}`);value+=tracker.move(state.safe(node2.lang,{before:value,after:" ",encode:["`"],...tracker.current()}));subexit()}if(node2.lang&&node2.meta){const subexit=state.enter(`codeFencedMeta${suffix}`);value+=tracker.move(" ");value+=tracker.move(state.safe(node2.meta,{before:value,after:"\n",encode:["`"],...tracker.current()}));subexit()}value+=tracker.move("\n");if(raw){value+=tracker.move(raw+"\n")}value+=tracker.move(sequence);exit3();return value}function map2(line,_,blank){return(blank?"":" ")+line}function checkQuote(state){const marker=state.options.quote||'"';if(marker!=='"'&&marker!=="'"){throw new Error("Cannot serialize title with `"+marker+"` for `options.quote`, expected `\"`, or `'`")}return marker}function definition2(node2,_,state,info){const quote=checkQuote(state);const suffix=quote==='"'?"Quote":"Apostrophe";const exit3=state.enter("definition");let subexit=state.enter("label");const tracker=state.createTracker(info);let value=tracker.move("[");value+=tracker.move(state.safe(state.associationId(node2),{before:value,after:"]",...tracker.current()}));value+=tracker.move("]: ");subexit();if(!node2.url||/[\0- \u007F]/.test(node2.url)){subexit=state.enter("destinationLiteral");value+=tracker.move("<");value+=tracker.move(state.safe(node2.url,{before:value,after:">",...tracker.current()}));value+=tracker.move(">")}else{subexit=state.enter("destinationRaw");value+=tracker.move(state.safe(node2.url,{before:value,after:node2.title?" ":"\n",...tracker.current()}))}subexit();if(node2.title){subexit=state.enter(`title${suffix}`);value+=tracker.move(" "+quote);value+=tracker.move(state.safe(node2.title,{before:value,after:quote,...tracker.current()}));value+=tracker.move(quote);subexit()}exit3();return value}function checkEmphasis(state){const marker=state.options.emphasis||"*";if(marker!=="*"&&marker!=="_"){throw new Error("Cannot serialize emphasis with `"+marker+"` for `options.emphasis`, expected `*`, or `_`")}return marker}emphasis.attention=attention2;emphasis.peek=peek;function emphasis(node2,_,state,info){const exit3=state.enter("phrasing");const value=state.containerPhrasing({type:"root",children:[node2]},info);exit3();return value}function attention2(_,state){const marker=checkEmphasis(state);return{construct:"emphasis",markers:marker==="*"?["*","_"]:["_","*"],sizes:[1]}}function peek(_,_1,state){return state.options.emphasis||"*"}function encodeCharacterReference(code3){return"&#x"+code3.toString(16).toUpperCase()+";"}function color2(d){return d}var empty2=[];var CONTINUE2=true;var EXIT2=false;var SKIP2="skip";function visitParents2(tree,testOrEnterOrVisitors,enterOrVisitorsOrReverse,reverse){if(!tree||typeof tree!=="object"){throw new Error("Unexpected value `"+tree+"` for `tree`, expected node")}let preorder=true;let check;let visitors;let enter;let exit3;if(typeof enterOrVisitorsOrReverse==="function"||enterOrVisitorsOrReverse&&typeof enterOrVisitorsOrReverse==="object"){check=testOrEnterOrVisitors;visitors=enterOrVisitorsOrReverse;if(reverse)preorder=false}else{visitors=testOrEnterOrVisitors;if(enterOrVisitorsOrReverse)preorder=false}if(typeof visitors==="function"){enter=visitors}else if(visitors&&typeof visitors==="object"){if(visitors.enter===null||visitors.enter===void 0){}else if(typeof visitors.enter==="function"){enter=visitors.enter}else{throw new Error("Unexpected value `"+visitors.enter+"` for `visitors.enter`, expected optional visitor")}if(typeof visitors.exit==="function"){exit3=visitors.exit}else{throw new Error("Unexpected value `"+visitors.exit+"` for `visitors.exit`, expected visitor (pass a visitor directly if you only want an enter visitor)")}}else{throw new Error("Unexpected value `"+visitors+"` for `enter` or `visitors`, expected visitor or object with visitors")}const is2=convert(check);const step=preorder?1:-1;factory(tree,void 0,[])();function factory(node2,index2,parents){const value=node2&&typeof node2==="object"?node2:{};if(typeof value.type==="string"){const name=typeof value.tagName==="string"?value.tagName:typeof value.name==="string"?value.name:void 0;Object.defineProperty(visit2,"name",{value:"node ("+color2(node2.type+(name?"<"+name+">":""))+")"})}return visit2;function visit2(){const matches=!check||is2(node2,index2,parents[parents.length-1]||void 0);let result=empty2;if(enter&&matches){result=toResult2(enter(node2,parents,index2));if(result[0]===EXIT2){return result}}if("children"in node2&&node2.children){const nodeAsParent=node2;if(nodeAsParent.children&&result[0]!==SKIP2){let offset=(preorder?-1:nodeAsParent.children.length)+step;const grandparents=[...parents,nodeAsParent];while(offset>-1&&offset<nodeAsParent.children.length){const child=nodeAsParent.children[offset];const subresult=factory(child,offset,grandparents)();if(subresult[0]===EXIT2){return subresult}offset=typeof subresult[1]==="number"?subresult[1]:offset+step}}}if(exit3&&matches){const exitResult=toResult2(exit3(node2,parents,index2));if(exitResult[0]===SKIP2){throw new Error("Unexpected value `"+exitResult[0]+"` from `exit`, expected `CONTINUE`, `EXIT`, index, or nothing")}if(exitResult[0]===EXIT2||typeof exitResult[1]==="number"){return exitResult}}return result}}}function toResult2(value){if(Array.isArray(value)){return value}if(typeof value==="number"){return[CONTINUE2,value]}return value===null||value===void 0?empty2:[value]}function visit(tree,testOrEnterOrVisitors,enterOrVisitorsOrReverse,maybeReverse){let check;let visitors;let reverse;if(typeof enterOrVisitorsOrReverse==="function"||enterOrVisitorsOrReverse&&typeof enterOrVisitorsOrReverse==="object"){check=testOrEnterOrVisitors;visitors=enterOrVisitorsOrReverse;reverse=maybeReverse}else{visitors=testOrEnterOrVisitors;reverse=enterOrVisitorsOrReverse}if(typeof visitors==="function"){visitParents2(tree,check,wrap2(visitors),reverse)}else{visitParents2(tree,check,wrapVisitors(visitors),reverse)}}function wrapVisitors(visitors){if(!visitors||typeof visitors!=="object")return visitors;return{enter:typeof visitors.enter==="function"?wrap2(visitors.enter):visitors.enter,exit:typeof visitors.exit==="function"?wrap2(visitors.exit):visitors.exit}}function wrap2(visitor){return overload;function overload(node2,parents,index2){return visitor(node2,index2,parents[parents.length-1])}}function formatHeadingAsSetext(node2,state){let literalWithBreak=false;visit(node2,function(node3){if("value"in node3&&/\r?\n|\r/.test(node3.value)||node3.type==="break"){literalWithBreak=true;return EXIT2}});return Boolean((!node2.depth||node2.depth<3)&&toString(node2)&&(state.options.setext||literalWithBreak))}function heading(node2,_,state,info){const rank=Math.max(Math.min(6,node2.depth||1),1);const tracker=state.createTracker(info);if(formatHeadingAsSetext(node2,state)){const exit4=state.enter("headingSetext");const subexit2=state.enter("phrasing");const value2=state.containerPhrasing(node2,{...tracker.current(),before:"\n",after:"\n"});subexit2();exit4();return value2+"\n"+(rank===1?"=":"-").repeat(value2.length-(Math.max(value2.lastIndexOf("\r"),value2.lastIndexOf("\n"))+1))}const sequence="#".repeat(rank);const exit3=state.enter("headingAtx");const subexit=state.enter("phrasing");tracker.move(sequence+" ");let value=state.containerPhrasing(node2,{before:"# ",after:"\n",...tracker.current()});const head=value.charCodeAt(0);if(head===9||head===32){value=encodeCharacterReference(head)+value.slice(1)}value=value?sequence+" "+value:sequence;if(state.options.closeAtx){value+=" "+sequence}subexit();exit3();return value}html.peek=htmlPeek;function html(node2){return node2.value||""}function htmlPeek(){return"<"}image.peek=imagePeek;function image(node2,_,state,info){const quote=checkQuote(state);const suffix=quote==='"'?"Quote":"Apostrophe";const exit3=state.enter("image");let subexit=state.enter("label");const tracker=state.createTracker(info);let value=tracker.move("![");value+=tracker.move(state.safe(node2.alt,{before:value,after:"]",...tracker.current()}));value+=tracker.move("](");subexit();if(!node2.url&&node2.title||/[\0- \u007F]/.test(node2.url)){subexit=state.enter("destinationLiteral");value+=tracker.move("<");value+=tracker.move(state.safe(node2.url,{before:value,after:">",...tracker.current()}));value+=tracker.move(">")}else{subexit=state.enter("destinationRaw");value+=tracker.move(state.safe(node2.url,{before:value,after:node2.title?" ":")",...tracker.current()}))}subexit();if(node2.title){subexit=state.enter(`title${suffix}`);value+=tracker.move(" "+quote);value+=tracker.move(state.safe(node2.title,{before:value,after:quote,...tracker.current()}));value+=tracker.move(quote);subexit()}value+=tracker.move(")");exit3();return value}function imagePeek(){return"!"}imageReference.peek=imageReferencePeek;function imageReference(node2,_,state,info){const type=node2.referenceType;const exit3=state.enter("imageReference");let subexit=state.enter("label");const tracker=state.createTracker(info);let value=tracker.move("![");const alt=state.safe(node2.alt,{before:value,after:"]",...tracker.current()});value+=tracker.move(alt+"][");subexit();const stack=state.stack;state.stack=stack.filter(function(d){return d!=="phrasing"});subexit=state.enter("reference");const reference=state.safe(state.associationId(node2),{before:value,after:"]",...tracker.current()});subexit();state.stack=stack;exit3();if(type==="full"||!alt||alt!==reference){value+=tracker.move(reference+"]")}else if(type==="shortcut"){value=value.slice(0,-1)}else{value+=tracker.move("]")}return value}function imageReferencePeek(){return"!"}inlineCode.peek=inlineCodePeek;function inlineCode(node2,_,state){let value=node2.value||"";let sequence="`";let index2=-1;while(new RegExp("(^|[^`])"+sequence+"([^`]|$)").test(value)){sequence+="`"}if(/[^\n\r ]/.test(value)&&(/^[\n\r ]/.test(value)&&/[\n\r ]$/.test(value)||/^`|`$/.test(value))){value=" "+value+" "}while(++index2<state.unsafe.length){const pattern=state.unsafe[index2];const expression=state.compilePattern(pattern);if(!pattern.atBreak)continue;let match;while(match=expression.exec(value)){let position2=match.index;if(value.charCodeAt(position2)===10&&value.charCodeAt(position2-1)===13){position2--}value=value.slice(0,position2)+" "+value.slice(match.index+1)}}return sequence+value+sequence}function inlineCodePeek(){return"`"}function formatLinkAsAutolink(node2,state){const raw=toString(node2);return Boolean(!state.options.resourceLink&&node2.url&&!node2.title&&node2.children&&node2.children.length===1&&node2.children[0].type==="text"&&(raw===node2.url||"mailto:"+raw===node2.url)&&/^[a-z][+\-.a-z]+:/i.test(node2.url)&&!/[\0- <>\u007F]/.test(node2.url))}link.peek=linkPeek;function link(node2,_,state,info){const quote=checkQuote(state);const suffix=quote==='"'?"Quote":"Apostrophe";const tracker=state.createTracker(info);if(formatLinkAsAutolink(node2,state)){const stack=state.stack;state.stack=stack.filter(function(d){return d!=="phrasing"});const exit4=state.enter("autolink");let value2=tracker.move("<");value2+=tracker.move(state.containerPhrasing(node2,{before:value2,after:">",...tracker.current()}));value2+=tracker.move(">");exit4();state.stack=stack;return value2}const exit3=state.enter("link");let subexit=state.enter("label");let value=tracker.move("[");value+=tracker.move(state.containerPhrasing(node2,{before:value,after:"](",...tracker.current()}));value+=tracker.move("](");subexit();if(!node2.url&&node2.title||/[\0- \u007F]/.test(node2.url)){subexit=state.enter("destinationLiteral");value+=tracker.move("<");value+=tracker.move(state.safe(node2.url,{before:value,after:">",...tracker.current()}));value+=tracker.move(">")}else{subexit=state.enter("destinationRaw");value+=tracker.move(state.safe(node2.url,{before:value,after:node2.title?" ":")",...tracker.current()}))}subexit();if(node2.title){subexit=state.enter(`title${suffix}`);value+=tracker.move(" "+quote);value+=tracker.move(state.safe(node2.title,{before:value,after:quote,...tracker.current()}));value+=tracker.move(quote);subexit()}value+=tracker.move(")");exit3();return value}function linkPeek(node2,_,state){return formatLinkAsAutolink(node2,state)?"<":"["}linkReference.peek=linkReferencePeek;function linkReference(node2,_,state,info){const type=node2.referenceType;const exit3=state.enter("linkReference");let subexit=state.enter("label");const tracker=state.createTracker(info);let value=tracker.move("[");const text6=state.containerPhrasing(node2,{before:value,after:"]",...tracker.current()});value+=tracker.move(text6+"][");subexit();const stack=state.stack;state.stack=stack.filter(function(d){return d!=="phrasing"});subexit=state.enter("reference");const reference=state.safe(state.associationId(node2),{before:value,after:"]",...tracker.current()});subexit();state.stack=stack;exit3();if(type==="full"||!text6||text6!==reference){value+=tracker.move(reference+"]")}else if(type==="shortcut"){value=value.slice(0,-1)}else{value+=tracker.move("]")}return value}function linkReferencePeek(){return"["}function checkBullet(state){const marker=state.options.bullet||"*";if(marker!=="*"&&marker!=="+"&&marker!=="-"){throw new Error("Cannot serialize items with `"+marker+"` for `options.bullet`, expected `*`, `+`, or `-`")}return marker}function checkBulletOther(state){const bullet=checkBullet(state);const bulletOther=state.options.bulletOther;if(!bulletOther){return bullet==="*"?"-":"*"}if(bulletOther!=="*"&&bulletOther!=="+"&&bulletOther!=="-"){throw new Error("Cannot serialize items with `"+bulletOther+"` for `options.bulletOther`, expected `*`, `+`, or `-`")}if(bulletOther===bullet){throw new Error("Expected `bullet` (`"+bullet+"`) and `bulletOther` (`"+bulletOther+"`) to be different")}return bulletOther}function checkBulletOrdered(state){const marker=state.options.bulletOrdered||".";if(marker!=="."&&marker!==")"){throw new Error("Cannot serialize items with `"+marker+"` for `options.bulletOrdered`, expected `.` or `)`")}return marker}function checkRule(state){const marker=state.options.rule||"*";if(marker!=="*"&&marker!=="-"&&marker!=="_"){throw new Error("Cannot serialize rules with `"+marker+"` for `options.rule`, expected `*`, `-`, or `_`")}return marker}function list2(node2,parent,state,info){const exit3=state.enter("list");const bulletCurrent=state.bulletCurrent;let bullet=node2.ordered?checkBulletOrdered(state):checkBullet(state);const bulletOther=node2.ordered?bullet==="."?")":".":checkBulletOther(state);let useDifferentMarker=parent&&state.bulletLastUsed?bullet===state.bulletLastUsed:false;if(!node2.ordered){const firstListItem=node2.children?node2.children[0]:void 0;if((bullet==="*"||bullet==="-")&&firstListItem&&(!firstListItem.children||!firstListItem.children[0])&&state.stack[state.stack.length-1]==="list"&&state.stack[state.stack.length-2]==="listItem"&&state.stack[state.stack.length-3]==="list"&&state.stack[state.stack.length-4]==="listItem"&&state.indexStack[state.indexStack.length-1]===0&&state.indexStack[state.indexStack.length-2]===0&&state.indexStack[state.indexStack.length-3]===0){useDifferentMarker=true}if(checkRule(state)===bullet&&firstListItem){let index2=-1;while(++index2<node2.children.length){const item=node2.children[index2];if(item&&item.type==="listItem"&&item.children&&item.children[0]&&item.children[0].type==="thematicBreak"){useDifferentMarker=true;break}}}}if(useDifferentMarker){bullet=bulletOther}state.bulletCurrent=bullet;const value=state.containerFlow(node2,info);state.bulletLastUsed=bullet;state.bulletCurrent=bulletCurrent;exit3();return value}function checkListItemIndent(state){const style=state.options.listItemIndent||"one";if(style!=="tab"&&style!=="one"&&style!=="mixed"){throw new Error("Cannot serialize items with `"+style+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`")}return style}function listItem(node2,parent,state,info){const listItemIndent=checkListItemIndent(state);let bullet=state.bulletCurrent||checkBullet(state);if(parent&&parent.type==="list"&&parent.ordered){bullet=(typeof parent.start==="number"&&parent.start>-1?parent.start:1)+(state.options.incrementListMarker===false?0:parent.children.indexOf(node2))+bullet}let size=bullet.length+1;if(listItemIndent==="tab"||listItemIndent==="mixed"&&(parent&&parent.type==="list"&&parent.spread||node2.spread)){size=Math.ceil(size/4)*4}const tracker=state.createTracker(info);tracker.move(bullet+" ".repeat(size-bullet.length));tracker.shift(size);const exit3=state.enter("listItem");const value=state.indentLines(state.containerFlow(node2,tracker.current()),map3);exit3();return value;function map3(line,index2,blank){if(index2){return(blank?"":" ".repeat(size))+line}return(blank?bullet:bullet+" ".repeat(size-bullet.length))+line}}function paragraph(node2,_,state,info){const exit3=state.enter("paragraph");const subexit=state.enter("phrasing");const value=state.containerPhrasing(node2,info);subexit();exit3();return value}function root(node2,_,state,info){const hasPhrasing=node2.children.some(function(d){return phrasing(d)});if(!hasPhrasing)return state.containerFlow(node2,info);const exit3=state.enter("phrasing");const value=state.containerPhrasing(node2,info);exit3();return value}function checkStrong(state){const marker=state.options.strong||"*";if(marker!=="*"&&marker!=="_"){throw new Error("Cannot serialize strong with `"+marker+"` for `options.strong`, expected `*`, or `_`")}return marker}strong.attention=attention3;strong.peek=peek2;function strong(node2,_,state,info){const exit3=state.enter("phrasing");const value=state.containerPhrasing({type:"root",children:[node2]},info);exit3();return value}function attention3(_,state){const marker=checkStrong(state);return{construct:"strong",markers:marker==="*"?["*","_"]:["_","*"],sizes:[2]}}function peek2(_,_1,state){return state.options.strong||"*"}function text3(node2,parent,state,info){const siblings=parent?parent.children:[];const index2=siblings.indexOf(node2);return state.safe(node2.value,{...info,afterNode:siblings[index2+1],beforeNode:siblings[index2-1]})}function checkRuleRepetition(state){const repetition=state.options.ruleRepetition||3;if(repetition<3){throw new Error("Cannot serialize rules with repetition `"+repetition+"` for `options.ruleRepetition`, expected `3` or more")}return repetition}function thematicBreak2(_,_1,state){const value=(checkRule(state)+(state.options.ruleSpaces?" ":"")).repeat(checkRuleRepetition(state));return state.options.ruleSpaces?value.slice(0,-1):value}var handle={blockquote,break:hardBreak,code,definition:definition2,emphasis,hardBreak,heading,html,image,imageReference,inlineCode,link,linkReference,list:list2,listItem,paragraph,root,strong,text:text3,thematicBreak:thematicBreak2};function gfmTableFromMarkdown(){return{enter:{table:enterTable,tableData:enterCell,tableHeader:enterCell,tableRow:enterRow},exit:{codeText:exitCodeText,table:exitTable,tableData:exit2,tableHeader:exit2,tableRow:exit2}}}function enterTable(token){const align=token._align;ok(align,"expected `_align` on table");this.enter({type:"table",align:align.map(function(d){return d==="none"?null:d}),children:[]},token);this.data.inTable=true}function exitTable(token){this.exit(token);this.data.inTable=void 0}function enterRow(token){this.enter({type:"tableRow",children:[]},token)}function exit2(token){this.exit(token)}function enterCell(token){this.enter({type:"tableCell",children:[]},token)}function exitCodeText(token){let value=this.resume();if(this.data.inTable){value=value.replace(/\\([\\|])/g,replace)}const node2=this.stack[this.stack.length-1];ok(node2.type==="inlineCode");node2.value=value;this.exit(token)}function replace($0,$1){return $1==="|"?$1:$0}function gfmTableToMarkdown(options){const settings=options||{};const padding=settings.tableCellPadding;const alignDelimiters=settings.tablePipeAlign;const stringLength=settings.stringLength;const around=padding?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:true,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:true,character:":",after:"-"},{atBreak:true,character:"-",after:"[:|-]"}],handlers:{inlineCode:inlineCodeWithTable,table:handleTable,tableCell:handleTableCell,tableRow:handleTableRow}};function handleTable(node2,_,state,info){return serializeData(handleTableAsData(node2,state,info),node2.align)}function handleTableRow(node2,_,state,info){const row=handleTableRowAsData(node2,state,info);const value=serializeData([row]);return value.slice(0,value.indexOf("\n"))}function handleTableCell(node2,_,state,info){const exit3=state.enter("tableCell");const subexit=state.enter("phrasing");const value=state.containerPhrasing(node2,{...info,before:around,after:around});subexit();exit3();return value}function serializeData(matrix,align){return markdownTable(matrix,{align,alignDelimiters,padding,stringLength})}function handleTableAsData(node2,state,info){const children=node2.children;let index2=-1;const result=[];const subexit=state.enter("table");while(++index2<children.length){result[index2]=handleTableRowAsData(children[index2],state,info)}subexit();return result}function handleTableRowAsData(node2,state,info){const children=node2.children;let index2=-1;const result=[];const subexit=state.enter("tableRow");while(++index2<children.length){result[index2]=handleTableCell(children[index2],node2,state,info)}subexit();return result}function inlineCodeWithTable(node2,parent,state){let value=handle.inlineCode(node2,parent,state);if(state.stack.includes("tableCell")){value=value.replace(/\|/g,"\\$&")}return value}}function gfmTaskListItemFromMarkdown(){return{exit:{taskListCheckValueChecked:exitCheck,taskListCheckValueUnchecked:exitCheck,paragraph:exitParagraphWithTaskListItem}}}function gfmTaskListItemToMarkdown(){return{unsafe:[{atBreak:true,character:"-",after:"[:|-]"}],handlers:{listItem:listItemWithTaskListItem}}}function exitCheck(token){const node2=this.stack[this.stack.length-2];ok(node2.type==="listItem");node2.checked=token.type==="taskListCheckValueChecked"}function exitParagraphWithTaskListItem(token){const parent=this.stack[this.stack.length-2];if(parent&&parent.type==="listItem"&&typeof parent.checked==="boolean"){const node2=this.stack[this.stack.length-1];ok(node2.type==="paragraph");const head=node2.children[0];if(head&&head.type==="text"){const siblings=parent.children;let index2=-1;let firstParaghraph;while(++index2<siblings.length){const sibling=siblings[index2];if(sibling.type==="paragraph"){firstParaghraph=sibling;break}}if(firstParaghraph===node2){head.value=head.value.slice(1);if(head.value.length===0){node2.children.shift()}else if(node2.position&&head.position&&typeof head.position.start.offset==="number"){head.position.start.column++;head.position.start.offset++;node2.position.start=Object.assign({},head.position.start)}}}}this.exit(token)}function listItemWithTaskListItem(node2,parent,state,info){const head=node2.children[0];const checkable=typeof node2.checked==="boolean"&&head&&head.type==="paragraph";const checkbox="["+(node2.checked?"x":" ")+"] ";const tracker=state.createTracker(info);if(checkable){tracker.move(checkbox)}let value=handle.listItem(node2,parent,state,{...info,...tracker.current()});if(checkable){value=value.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,check)}return value;function check($0){return $0+checkbox}}function gfmFromMarkdown(){return[gfmAutolinkLiteralFromMarkdown(),gfmFootnoteFromMarkdown(),gfmStrikethroughFromMarkdown(),gfmTableFromMarkdown(),gfmTaskListItemFromMarkdown()]}function gfmToMarkdown(options){return{extensions:[gfmAutolinkLiteralToMarkdown(),gfmFootnoteToMarkdown(options),gfmStrikethroughToMarkdown(),gfmTableToMarkdown(options),gfmTaskListItemToMarkdown()]}}var wwwPrefix={tokenize:tokenizeWwwPrefix,partial:true};var domain={tokenize:tokenizeDomain,partial:true};var path={tokenize:tokenizePath,partial:true};var trail={tokenize:tokenizeTrail,partial:true};var emailDomainDotTrail={tokenize:tokenizeEmailDomainDotTrail,partial:true};var wwwAutolink={name:"wwwAutolink",tokenize:tokenizeWwwAutolink,previous:previousWww};var protocolAutolink={name:"protocolAutolink",tokenize:tokenizeProtocolAutolink,previous:previousProtocol};var emailAutolink={name:"emailAutolink",tokenize:tokenizeEmailAutolink,previous:previousEmail};var text4={};function gfmAutolinkLiteral(){return{text:text4}}var code2=48;while(code2<123){text4[code2]=emailAutolink;code2++;if(code2===58)code2=65;else if(code2===91)code2=97}text4[43]=emailAutolink;text4[45]=emailAutolink;text4[46]=emailAutolink;text4[95]=emailAutolink;text4[72]=[emailAutolink,protocolAutolink];text4[104]=[emailAutolink,protocolAutolink];text4[87]=[emailAutolink,wwwAutolink];text4[119]=[emailAutolink,wwwAutolink];function tokenizeEmailAutolink(effects,ok3,nok){const self=this;let dot;let data;return start;function start(code3){if(!gfmAtext(code3)||!previousEmail.call(self,self.previous)||previousUnbalanced(self.events)){return nok(code3)}effects.enter("literalAutolink");effects.enter("literalAutolinkEmail");return atext(code3)}function atext(code3){if(gfmAtext(code3)){effects.consume(code3);return atext}if(code3===64){effects.consume(code3);return emailDomain}return nok(code3)}function emailDomain(code3){if(code3===46){return effects.check(emailDomainDotTrail,emailDomainAfter,emailDomainDot)(code3)}if(code3===45||code3===95||asciiAlphanumeric(code3)){data=true;effects.consume(code3);return emailDomain}return emailDomainAfter(code3)}function emailDomainDot(code3){effects.consume(code3);dot=true;return emailDomain}function emailDomainAfter(code3){if(data&&dot&&asciiAlpha(self.previous)){effects.exit("literalAutolinkEmail");effects.exit("literalAutolink");return ok3(code3)}return nok(code3)}}function tokenizeWwwAutolink(effects,ok3,nok){const self=this;return wwwStart;function wwwStart(code3){if(code3!==87&&code3!==119||!previousWww.call(self,self.previous)||previousUnbalanced(self.events)){return nok(code3)}effects.enter("literalAutolink");effects.enter("literalAutolinkWww");return effects.check(wwwPrefix,effects.attempt(domain,effects.attempt(path,wwwAfter),nok),nok)(code3)}function wwwAfter(code3){effects.exit("literalAutolinkWww");effects.exit("literalAutolink");return ok3(code3)}}function tokenizeProtocolAutolink(effects,ok3,nok){const self=this;let buffer="";let seen=false;return protocolStart;function protocolStart(code3){if((code3===72||code3===104)&&previousProtocol.call(self,self.previous)&&!previousUnbalanced(self.events)){effects.enter("literalAutolink");effects.enter("literalAutolinkHttp");buffer+=String.fromCodePoint(code3);effects.consume(code3);return protocolPrefixInside}return nok(code3)}function protocolPrefixInside(code3){if(asciiAlpha(code3)&&buffer.length<5){buffer+=String.fromCodePoint(code3);effects.consume(code3);return protocolPrefixInside}if(code3===58){const protocol=buffer.toLowerCase();if(protocol==="http"||protocol==="https"){effects.consume(code3);return protocolSlashesInside}}return nok(code3)}function protocolSlashesInside(code3){if(code3===47){effects.consume(code3);if(seen){return afterProtocol}seen=true;return protocolSlashesInside}return nok(code3)}function afterProtocol(code3){return code3===null||asciiControl(code3)||markdownLineEndingOrSpace(code3)||unicodeWhitespace(code3)||unicodePunctuation(code3)?nok(code3):effects.attempt(domain,effects.attempt(path,protocolAfter),nok)(code3)}function protocolAfter(code3){effects.exit("literalAutolinkHttp");effects.exit("literalAutolink");return ok3(code3)}}function tokenizeWwwPrefix(effects,ok3,nok){let size=0;return wwwPrefixInside;function wwwPrefixInside(code3){if((code3===87||code3===119)&&size<3){size++;effects.consume(code3);return wwwPrefixInside}if(code3===46&&size===3){effects.consume(code3);return wwwPrefixAfter}return nok(code3)}function wwwPrefixAfter(code3){return code3===null?nok(code3):ok3(code3)}}function tokenizeDomain(effects,ok3,nok){let underscoreInLastSegment;let underscoreInLastLastSegment;let seen;return domainInside;function domainInside(code3){if(code3===46||code3===95){return effects.check(trail,domainAfter,domainAtPunctuation)(code3)}if(code3===null||markdownLineEndingOrSpace(code3)||unicodeWhitespace(code3)||code3!==45&&unicodePunctuation(code3)){return domainAfter(code3)}seen=true;effects.consume(code3);return domainInside}function domainAtPunctuation(code3){if(code3===95){underscoreInLastSegment=true}else{underscoreInLastLastSegment=underscoreInLastSegment;underscoreInLastSegment=void 0}effects.consume(code3);return domainInside}function domainAfter(code3){if(underscoreInLastLastSegment||underscoreInLastSegment||!seen){return nok(code3)}return ok3(code3)}}function tokenizePath(effects,ok3){let sizeOpen=0;let sizeClose=0;return pathInside;function pathInside(code3){if(code3===40){sizeOpen++;effects.consume(code3);return pathInside}if(code3===41&&sizeClose<sizeOpen){return pathAtPunctuation(code3)}if(code3===33||code3===34||code3===38||code3===39||code3===41||code3===42||code3===44||code3===46||code3===58||code3===59||code3===60||code3===63||code3===93||code3===95||code3===126){return effects.check(trail,ok3,pathAtPunctuation)(code3)}if(code3===null||markdownLineEndingOrSpace(code3)||unicodeWhitespace(code3)){return ok3(code3)}effects.consume(code3);return pathInside}function pathAtPunctuation(code3){if(code3===41){sizeClose++}effects.consume(code3);return pathInside}}function tokenizeTrail(effects,ok3,nok){return trail2;function trail2(code3){if(code3===33||code3===34||code3===39||code3===41||code3===42||code3===44||code3===46||code3===58||code3===59||code3===63||code3===95||code3===126){effects.consume(code3);return trail2}if(code3===38){effects.consume(code3);return trailCharacterReferenceStart}if(code3===93){effects.consume(code3);return trailBracketAfter}if(code3===60||code3===null||markdownLineEndingOrSpace(code3)||unicodeWhitespace(code3)){return ok3(code3)}return nok(code3)}function trailBracketAfter(code3){if(code3===null||code3===40||code3===91||markdownLineEndingOrSpace(code3)||unicodeWhitespace(code3)){return ok3(code3)}return trail2(code3)}function trailCharacterReferenceStart(code3){return asciiAlpha(code3)?trailCharacterReferenceInside(code3):nok(code3)}function trailCharacterReferenceInside(code3){if(code3===59){effects.consume(code3);return trail2}if(asciiAlpha(code3)){effects.consume(code3);return trailCharacterReferenceInside}return nok(code3)}}function tokenizeEmailDomainDotTrail(effects,ok3,nok){return start;function start(code3){effects.consume(code3);return after}function after(code3){return asciiAlphanumeric(code3)?nok(code3):ok3(code3)}}function previousWww(code3){return code3===null||code3===40||code3===42||code3===95||code3===91||code3===93||code3===126||markdownLineEndingOrSpace(code3)}function previousProtocol(code3){return!asciiAlpha(code3)}function previousEmail(code3){return!(code3===47||gfmAtext(code3))}function gfmAtext(code3){return code3===43||code3===45||code3===46||code3===95||asciiAlphanumeric(code3)}function previousUnbalanced(events){let index2=events.length;let result=false;while(index2--){const token=events[index2][1];if((token.type==="labelLink"||token.type==="labelImage")&&!token._balanced){result=true;break}if(token._gfmAutolinkLiteralWalkedInto){result=false;break}}if(events.length>0&&!result){events[events.length-1][1]._gfmAutolinkLiteralWalkedInto=true}return result}var indent={tokenize:tokenizeIndent2,partial:true};function gfmFootnote(){return{document:{[91]:{name:"gfmFootnoteDefinition",tokenize:tokenizeDefinitionStart,continuation:{tokenize:tokenizeDefinitionContinuation},exit:gfmFootnoteDefinitionEnd}},text:{[91]:{name:"gfmFootnoteCall",tokenize:tokenizeGfmFootnoteCall},[93]:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:tokenizePotentialGfmFootnoteCall,resolveTo:resolveToPotentialGfmFootnoteCall}}}}function tokenizePotentialGfmFootnoteCall(effects,ok3,nok){const self=this;let index2=self.events.length;const defined=self.parser.gfmFootnotes||(self.parser.gfmFootnotes=[]);let labelStart;while(index2--){const token=self.events[index2][1];if(token.type==="labelImage"){labelStart=token;break}if(token.type==="gfmFootnoteCall"||token.type==="labelLink"||token.type==="label"||token.type==="image"||token.type==="link"){break}}return start;function start(code3){if(!labelStart||!labelStart._balanced){return nok(code3)}const id=normalizeIdentifier(self.sliceSerialize({start:labelStart.end,end:self.now()}));if(id.codePointAt(0)!==94||!defined.includes(id.slice(1))){return nok(code3)}effects.enter("gfmFootnoteCallLabelMarker");effects.consume(code3);effects.exit("gfmFootnoteCallLabelMarker");return ok3(code3)}}function resolveToPotentialGfmFootnoteCall(events,context){let index2=events.length;let labelStart;while(index2--){if(events[index2][1].type==="labelImage"&&events[index2][0]==="enter"){labelStart=events[index2][1];break}}events[index2+1][1].type="data";events[index2+3][1].type="gfmFootnoteCallLabelMarker";const call={type:"gfmFootnoteCall",start:Object.assign({},events[index2+3][1].start),end:Object.assign({},events[events.length-1][1].end)};const marker={type:"gfmFootnoteCallMarker",start:Object.assign({},events[index2+3][1].end),end:Object.assign({},events[index2+3][1].end)};marker.end.column++;marker.end.offset++;marker.end._bufferIndex++;const string3={type:"gfmFootnoteCallString",start:Object.assign({},marker.end),end:Object.assign({},events[events.length-1][1].start)};const chunk={type:"chunkString",contentType:"string",start:Object.assign({},string3.start),end:Object.assign({},string3.end)};const replacement=[events[index2+1],events[index2+2],["enter",call,context],events[index2+3],events[index2+4],["enter",marker,context],["exit",marker,context],["enter",string3,context],["enter",chunk,context],["exit",chunk,context],["exit",string3,context],events[events.length-2],events[events.length-1],["exit",call,context]];events.splice(index2,events.length-index2+1,...replacement);return events}function tokenizeGfmFootnoteCall(effects,ok3,nok){const self=this;const defined=self.parser.gfmFootnotes||(self.parser.gfmFootnotes=[]);let size=0;let data;return start;function start(code3){effects.enter("gfmFootnoteCall");effects.enter("gfmFootnoteCallLabelMarker");effects.consume(code3);effects.exit("gfmFootnoteCallLabelMarker");return callStart}function callStart(code3){if(code3!==94)return nok(code3);effects.enter("gfmFootnoteCallMarker");effects.consume(code3);effects.exit("gfmFootnoteCallMarker");effects.enter("gfmFootnoteCallString");effects.enter("chunkString").contentType="string";return callData}function callData(code3){if(size>999||code3===93&&!data||code3===null||code3===91||markdownLineEndingOrSpace(code3)){return nok(code3)}if(code3===93){effects.exit("chunkString");const token=effects.exit("gfmFootnoteCallString");if(!defined.includes(normalizeIdentifier(self.sliceSerialize(token)))){return nok(code3)}effects.enter("gfmFootnoteCallLabelMarker");effects.consume(code3);effects.exit("gfmFootnoteCallLabelMarker");effects.exit("gfmFootnoteCall");return ok3}if(!markdownLineEndingOrSpace(code3)){data=true}size++;effects.consume(code3);return code3===92?callEscape:callData}function callEscape(code3){if(code3===91||code3===92||code3===93){effects.consume(code3);size++;return callData}return callData(code3)}}function tokenizeDefinitionStart(effects,ok3,nok){const self=this;const defined=self.parser.gfmFootnotes||(self.parser.gfmFootnotes=[]);let identifier;let size=0;let data;return start;function start(code3){effects.enter("gfmFootnoteDefinition")._container=true;effects.enter("gfmFootnoteDefinitionLabel");effects.enter("gfmFootnoteDefinitionLabelMarker");effects.consume(code3);effects.exit("gfmFootnoteDefinitionLabelMarker");return labelAtMarker}function labelAtMarker(code3){if(code3===94){effects.enter("gfmFootnoteDefinitionMarker");effects.consume(code3);effects.exit("gfmFootnoteDefinitionMarker");effects.enter("gfmFootnoteDefinitionLabelString");effects.enter("chunkString").contentType="string";return labelInside}return nok(code3)}function labelInside(code3){if(size>999||code3===93&&!data||code3===null||code3===91||markdownLineEndingOrSpace(code3)){return nok(code3)}if(code3===93){effects.exit("chunkString");const token=effects.exit("gfmFootnoteDefinitionLabelString");identifier=normalizeIdentifier(self.sliceSerialize(token));effects.enter("gfmFootnoteDefinitionLabelMarker");effects.consume(code3);effects.exit("gfmFootnoteDefinitionLabelMarker");effects.exit("gfmFootnoteDefinitionLabel");return labelAfter}if(!markdownLineEndingOrSpace(code3)){data=true}size++;effects.consume(code3);return code3===92?labelEscape:labelInside}function labelEscape(code3){if(code3===91||code3===92||code3===93){effects.consume(code3);size++;return labelInside}return labelInside(code3)}function labelAfter(code3){if(code3===58){effects.enter("definitionMarker");effects.consume(code3);effects.exit("definitionMarker");if(!defined.includes(identifier)){defined.push(identifier)}return factorySpace(effects,whitespaceAfter,"gfmFootnoteDefinitionWhitespace")}return nok(code3)}function whitespaceAfter(code3){return ok3(code3)}}function tokenizeDefinitionContinuation(effects,ok3,nok){return effects.check(blankLine,ok3,effects.attempt(indent,ok3,nok))}function gfmFootnoteDefinitionEnd(effects){effects.exit("gfmFootnoteDefinition")}function tokenizeIndent2(effects,ok3,nok){const self=this;return factorySpace(effects,afterPrefix,"gfmFootnoteDefinitionIndent",4+1);function afterPrefix(code3){const tail=self.events[self.events.length-1];return tail&&tail[1].type==="gfmFootnoteDefinitionIndent"&&tail[2].sliceSerialize(tail[1],true).length===4?ok3(code3):nok(code3)}}function gfmStrikethrough(options){const options_=options||{};let single=options_.singleTilde;const tokenizer={name:"strikethrough",tokenize:tokenizeStrikethrough,resolveAll:resolveAllStrikethrough};if(single===null||single===void 0){single=true}return{text:{[126]:tokenizer},insideSpan:{null:[tokenizer]},attentionMarkers:{null:[126]}};function resolveAllStrikethrough(events,context){let index2=-1;while(++index2<events.length){if(events[index2][0]==="enter"&&events[index2][1].type==="strikethroughSequenceTemporary"&&events[index2][1]._close){let open=index2;while(open--){if(events[open][0]==="exit"&&events[open][1].type==="strikethroughSequenceTemporary"&&events[open][1]._open&&events[index2][1].end.offset-events[index2][1].start.offset===events[open][1].end.offset-events[open][1].start.offset){events[index2][1].type="strikethroughSequence";events[open][1].type="strikethroughSequence";const strikethrough={type:"strikethrough",start:Object.assign({},events[open][1].start),end:Object.assign({},events[index2][1].end)};const text6={type:"strikethroughText",start:Object.assign({},events[open][1].end),end:Object.assign({},events[index2][1].start)};const nextEvents=[["enter",strikethrough,context],["enter",events[open][1],context],["exit",events[open][1],context],["enter",text6,context]];const insideSpan2=context.parser.constructs.insideSpan.null;if(insideSpan2){splice(nextEvents,nextEvents.length,0,resolveAll(insideSpan2,events.slice(open+1,index2),context))}splice(nextEvents,nextEvents.length,0,[["exit",text6,context],["enter",events[index2][1],context],["exit",events[index2][1],context],["exit",strikethrough,context]]);splice(events,open-1,index2-open+3,nextEvents);index2=open+nextEvents.length-2;break}}}}index2=-1;while(++index2<events.length){if(events[index2][1].type==="strikethroughSequenceTemporary"){events[index2][1].type="data"}}return events}function tokenizeStrikethrough(effects,ok3,nok){const previous3=this.previous;const events=this.events;let size=0;return start;function start(code3){if(previous3===126&&events[events.length-1][1].type!=="characterEscape"){return nok(code3)}effects.enter("strikethroughSequenceTemporary");return more(code3)}function more(code3){const before=classifyCharacter(previous3);if(code3===126){if(size>1)return nok(code3);effects.consume(code3);size++;return more}if(size<2&&!single)return nok(code3);const token=effects.exit("strikethroughSequenceTemporary");const after=classifyCharacter(code3);token._open=!after||after===2&&Boolean(before);token._close=!before||before===2&&Boolean(after);return ok3(code3)}}}var EditMap=class{constructor(){this.map=[]}add(index2,remove,add){addImplementation(this,index2,remove,add)}consume(events){this.map.sort(function(a,b){return a[0]-b[0]});if(this.map.length===0){return}let index2=this.map.length;const vecs=[];while(index2>0){index2-=1;vecs.push(events.slice(this.map[index2][0]+this.map[index2][1]),this.map[index2][2]);events.length=this.map[index2][0]}vecs.push(events.slice());events.length=0;let slice=vecs.pop();while(slice){for(const element of slice){events.push(element)}slice=vecs.pop()}this.map.length=0}};function addImplementation(editMap,at,remove,add){let index2=0;if(remove===0&&add.length===0){return}while(index2<editMap.map.length){if(editMap.map[index2][0]===at){editMap.map[index2][1]+=remove;editMap.map[index2][2].push(...add);return}index2+=1}editMap.map.push([at,remove,add])}function gfmTableAlign(events,index2){let inDelimiterRow=false;const align=[];while(index2<events.length){const event=events[index2];if(inDelimiterRow){if(event[0]==="enter"){if(event[1].type==="tableContent"){align.push(events[index2+1][1].type==="tableDelimiterMarker"?"left":"none")}}else if(event[1].type==="tableContent"){if(events[index2-1][1].type==="tableDelimiterMarker"){const alignIndex=align.length-1;align[alignIndex]=align[alignIndex]==="left"?"center":"right"}}else if(event[1].type==="tableDelimiterRow"){break}}else if(event[0]==="enter"&&event[1].type==="tableDelimiterRow"){inDelimiterRow=true}index2+=1}return align}function gfmTable(){return{flow:{null:{name:"table",tokenize:tokenizeTable,resolveAll:resolveTable}}}}function tokenizeTable(effects,ok3,nok){const self=this;let size=0;let sizeB=0;let seen;return start;function start(code3){let index2=self.events.length-1;while(index2>-1){const type=self.events[index2][1].type;if(type==="lineEnding"||type==="linePrefix")index2--;else break}const tail=index2>-1?self.events[index2][1].type:null;const next=tail==="tableHead"||tail==="tableRow"?bodyRowStart:headRowBefore;if(next===bodyRowStart&&self.parser.lazy[self.now().line]){return nok(code3)}return next(code3)}function headRowBefore(code3){effects.enter("tableHead");effects.enter("tableRow");return headRowStart(code3)}function headRowStart(code3){if(code3===124){return headRowBreak(code3)}seen=true;sizeB+=1;return headRowBreak(code3)}function headRowBreak(code3){if(code3===null){return nok(code3)}if(markdownLineEnding(code3)){if(sizeB>1){sizeB=0;self.interrupt=true;effects.exit("tableRow");effects.enter("lineEnding");effects.consume(code3);effects.exit("lineEnding");return headDelimiterStart}return nok(code3)}if(markdownSpace(code3)){return factorySpace(effects,headRowBreak,"whitespace")(code3)}sizeB+=1;if(seen){seen=false;size+=1}if(code3===124){effects.enter("tableCellDivider");effects.consume(code3);effects.exit("tableCellDivider");seen=true;return headRowBreak}effects.enter("data");return headRowData(code3)}function headRowData(code3){if(code3===null||code3===124||markdownLineEndingOrSpace(code3)){effects.exit("data");return headRowBreak(code3)}effects.consume(code3);return code3===92?headRowEscape:headRowData}function headRowEscape(code3){if(code3===92||code3===124){effects.consume(code3);return headRowData}return headRowData(code3)}function headDelimiterStart(code3){self.interrupt=false;if(self.parser.lazy[self.now().line]){return nok(code3)}effects.enter("tableDelimiterRow");seen=false;if(markdownSpace(code3)){return factorySpace(effects,headDelimiterBefore,"linePrefix",self.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(code3)}return headDelimiterBefore(code3)}function headDelimiterBefore(code3){if(code3===45||code3===58){return headDelimiterValueBefore(code3)}if(code3===124){seen=true;effects.enter("tableCellDivider");effects.consume(code3);effects.exit("tableCellDivider");return headDelimiterCellBefore}return headDelimiterNok(code3)}function headDelimiterCellBefore(code3){if(markdownSpace(code3)){return factorySpace(effects,headDelimiterValueBefore,"whitespace")(code3)}return headDelimiterValueBefore(code3)}function headDelimiterValueBefore(code3){if(code3===58){sizeB+=1;seen=true;effects.enter("tableDelimiterMarker");effects.consume(code3);effects.exit("tableDelimiterMarker");return headDelimiterLeftAlignmentAfter}if(code3===45){sizeB+=1;return headDelimiterLeftAlignmentAfter(code3)}if(code3===null||markdownLineEnding(code3)){return headDelimiterCellAfter(code3)}return headDelimiterNok(code3)}function headDelimiterLeftAlignmentAfter(code3){if(code3===45){effects.enter("tableDelimiterFiller");return headDelimiterFiller(code3)}return headDelimiterNok(code3)}function headDelimiterFiller(code3){if(code3===45){effects.consume(code3);return headDelimiterFiller}if(code3===58){seen=true;effects.exit("tableDelimiterFiller");effects.enter("tableDelimiterMarker");effects.consume(code3);effects.exit("tableDelimiterMarker");return headDelimiterRightAlignmentAfter}effects.exit("tableDelimiterFiller");return headDelimiterRightAlignmentAfter(code3)}function headDelimiterRightAlignmentAfter(code3){if(markdownSpace(code3)){return factorySpace(effects,headDelimiterCellAfter,"whitespace")(code3)}return headDelimiterCellAfter(code3)}function headDelimiterCellAfter(code3){if(code3===124){return headDelimiterBefore(code3)}if(code3===null||markdownLineEnding(code3)){if(!seen||size!==sizeB){return headDelimiterNok(code3)}effects.exit("tableDelimiterRow");effects.exit("tableHead");return ok3(code3)}return headDelimiterNok(code3)}function headDelimiterNok(code3){return nok(code3)}function bodyRowStart(code3){effects.enter("tableRow");return bodyRowBreak(code3)}function bodyRowBreak(code3){if(code3===124){effects.enter("tableCellDivider");effects.consume(code3);effects.exit("tableCellDivider");return bodyRowBreak}if(code3===null||markdownLineEnding(code3)){effects.exit("tableRow");return ok3(code3)}if(markdownSpace(code3)){return factorySpace(effects,bodyRowBreak,"whitespace")(code3)}effects.enter("data");return bodyRowData(code3)}function bodyRowData(code3){if(code3===null||code3===124||markdownLineEndingOrSpace(code3)){effects.exit("data");return bodyRowBreak(code3)}effects.consume(code3);return code3===92?bodyRowEscape:bodyRowData}function bodyRowEscape(code3){if(code3===92||code3===124){effects.consume(code3);return bodyRowData}return bodyRowData(code3)}}function resolveTable(events,context){let index2=-1;let inFirstCellAwaitingPipe=true;let rowKind=0;let lastCell=[0,0,0,0];let cell=[0,0,0,0];let afterHeadAwaitingFirstBodyRow=false;let lastTableEnd=0;let currentTable;let currentBody;let currentCell;const map3=new EditMap;while(++index2<events.length){const event=events[index2];const token=event[1];if(event[0]==="enter"){if(token.type==="tableHead"){afterHeadAwaitingFirstBodyRow=false;if(lastTableEnd!==0){flushTableEnd(map3,context,lastTableEnd,currentTable,currentBody);currentBody=void 0;lastTableEnd=0}currentTable={type:"table",start:Object.assign({},token.start),end:Object.assign({},token.end)};map3.add(index2,0,[["enter",currentTable,context]])}else if(token.type==="tableRow"||token.type==="tableDelimiterRow"){inFirstCellAwaitingPipe=true;currentCell=void 0;lastCell=[0,0,0,0];cell=[0,index2+1,0,0];if(afterHeadAwaitingFirstBodyRow){afterHeadAwaitingFirstBodyRow=false;currentBody={type:"tableBody",start:Object.assign({},token.start),end:Object.assign({},token.end)};map3.add(index2,0,[["enter",currentBody,context]])}rowKind=token.type==="tableDelimiterRow"?2:currentBody?3:1}else if(rowKind&&(token.type==="data"||token.type==="tableDelimiterMarker"||token.type==="tableDelimiterFiller")){inFirstCellAwaitingPipe=false;if(cell[2]===0){if(lastCell[1]!==0){cell[0]=cell[1];currentCell=flushCell(map3,context,lastCell,rowKind,void 0,currentCell);lastCell=[0,0,0,0]}cell[2]=index2}}else if(token.type==="tableCellDivider"){if(inFirstCellAwaitingPipe){inFirstCellAwaitingPipe=false}else{if(lastCell[1]!==0){cell[0]=cell[1];currentCell=flushCell(map3,context,lastCell,rowKind,void 0,currentCell)}lastCell=cell;cell=[lastCell[1],index2,0,0]}}}else if(token.type==="tableHead"){afterHeadAwaitingFirstBodyRow=true;lastTableEnd=index2}else if(token.type==="tableRow"||token.type==="tableDelimiterRow"){lastTableEnd=index2;if(lastCell[1]!==0){cell[0]=cell[1];currentCell=flushCell(map3,context,lastCell,rowKind,index2,currentCell)}else if(cell[1]!==0){currentCell=flushCell(map3,context,cell,rowKind,index2,currentCell)}rowKind=0}else if(rowKind&&(token.type==="data"||token.type==="tableDelimiterMarker"||token.type==="tableDelimiterFiller")){cell[3]=index2}}if(lastTableEnd!==0){flushTableEnd(map3,context,lastTableEnd,currentTable,currentBody)}map3.consume(context.events);index2=-1;while(++index2<context.events.length){const event=context.events[index2];if(event[0]==="enter"&&event[1].type==="table"){event[1]._align=gfmTableAlign(context.events,index2)}}return events}function flushCell(map3,context,range,rowKind,rowEnd,previousCell){const groupName=rowKind===1?"tableHeader":rowKind===2?"tableDelimiter":"tableData";const valueName="tableContent";if(range[0]!==0){previousCell.end=Object.assign({},getPoint(context.events,range[0]));map3.add(range[0],0,[["exit",previousCell,context]])}const now=getPoint(context.events,range[1]);previousCell={type:groupName,start:Object.assign({},now),end:Object.assign({},now)};map3.add(range[1],0,[["enter",previousCell,context]]);if(range[2]!==0){const relatedStart=getPoint(context.events,range[2]);const relatedEnd=getPoint(context.events,range[3]);const valueToken={type:valueName,start:Object.assign({},relatedStart),end:Object.assign({},relatedEnd)};map3.add(range[2],0,[["enter",valueToken,context]]);if(rowKind!==2){const start=context.events[range[2]];const end=context.events[range[3]];start[1].end=Object.assign({},end[1].end);start[1].type="chunkText";start[1].contentType="text";if(range[3]>range[2]+1){const a=range[2]+1;const b=range[3]-range[2]-1;map3.add(a,b,[])}}map3.add(range[3]+1,0,[["exit",valueToken,context]])}if(rowEnd!==void 0){previousCell.end=Object.assign({},getPoint(context.events,rowEnd));map3.add(rowEnd,0,[["exit",previousCell,context]]);previousCell=void 0}return previousCell}function flushTableEnd(map3,context,index2,table,tableBody){const exits=[];const related=getPoint(context.events,index2);if(tableBody){tableBody.end=Object.assign({},related);exits.push(["exit",tableBody,context])}table.end=Object.assign({},related);exits.push(["exit",table,context]);map3.add(index2+1,0,exits)}function getPoint(events,index2){const event=events[index2];const side=event[0]==="enter"?"start":"end";return event[1][side]}var tasklistCheck={name:"tasklistCheck",tokenize:tokenizeTasklistCheck};function gfmTaskListItem(){return{text:{[91]:tasklistCheck}}}function tokenizeTasklistCheck(effects,ok3,nok){const self=this;return open;function open(code3){if(self.previous!==null||!self._gfmTasklistFirstContentOfListItem){return nok(code3)}effects.enter("taskListCheck");effects.enter("taskListCheckMarker");effects.consume(code3);effects.exit("taskListCheckMarker");return inside}function inside(code3){if(markdownLineEndingOrSpace(code3)){effects.enter("taskListCheckValueUnchecked");effects.consume(code3);effects.exit("taskListCheckValueUnchecked");return close}if(code3===88||code3===120){effects.enter("taskListCheckValueChecked");effects.consume(code3);effects.exit("taskListCheckValueChecked");return close}return nok(code3)}function close(code3){if(code3===93){effects.enter("taskListCheckMarker");effects.consume(code3);effects.exit("taskListCheckMarker");effects.exit("taskListCheck");return after}return nok(code3)}function after(code3){if(markdownLineEnding(code3)){return ok3(code3)}if(markdownSpace(code3)){return effects.check({tokenize:spaceThenNonSpace},ok3,nok)(code3)}return nok(code3)}}function spaceThenNonSpace(effects,ok3,nok){return factorySpace(effects,after,"whitespace");function after(code3){return code3===null?nok(code3):ok3(code3)}}function gfm(options){return combineExtensions([gfmAutolinkLiteral(),gfmFootnote(),gfmStrikethrough(options),gfmTable(),gfmTaskListItem()])}var emptyOptions2={};function remarkGfm(options){const self=this;const settings=options||emptyOptions2;const data=self.data();const micromarkExtensions=data.micromarkExtensions||(data.micromarkExtensions=[]);const fromMarkdownExtensions=data.fromMarkdownExtensions||(data.fromMarkdownExtensions=[]);const toMarkdownExtensions=data.toMarkdownExtensions||(data.toMarkdownExtensions=[]);micromarkExtensions.push(gfm(settings));fromMarkdownExtensions.push(gfmFromMarkdown());toMarkdownExtensions.push(gfmToMarkdown(settings))}var codes={carriageReturn:-5,lineFeed:-4,carriageReturnLineFeed:-3,horizontalTab:-2,virtualSpace:-1,eof:null,nul:0,soh:1,stx:2,etx:3,eot:4,enq:5,ack:6,bel:7,bs:8,ht:9,lf:10,vt:11,ff:12,cr:13,so:14,si:15,dle:16,dc1:17,dc2:18,dc3:19,dc4:20,nak:21,syn:22,etb:23,can:24,em:25,sub:26,esc:27,fs:28,gs:29,rs:30,us:31,space:32,exclamationMark:33,quotationMark:34,numberSign:35,dollarSign:36,percentSign:37,ampersand:38,apostrophe:39,leftParenthesis:40,rightParenthesis:41,asterisk:42,plusSign:43,comma:44,dash:45,dot:46,slash:47,digit0:48,digit1:49,digit2:50,digit3:51,digit4:52,digit5:53,digit6:54,digit7:55,digit8:56,digit9:57,colon:58,semicolon:59,lessThan:60,equalsTo:61,greaterThan:62,questionMark:63,atSign:64,uppercaseA:65,uppercaseB:66,uppercaseC:67,uppercaseD:68,uppercaseE:69,uppercaseF:70,uppercaseG:71,uppercaseH:72,uppercaseI:73,uppercaseJ:74,uppercaseK:75,uppercaseL:76,uppercaseM:77,uppercaseN:78,uppercaseO:79,uppercaseP:80,uppercaseQ:81,uppercaseR:82,uppercaseS:83,uppercaseT:84,uppercaseU:85,uppercaseV:86,uppercaseW:87,uppercaseX:88,uppercaseY:89,uppercaseZ:90,leftSquareBracket:91,backslash:92,rightSquareBracket:93,caret:94,underscore:95,graveAccent:96,lowercaseA:97,lowercaseB:98,lowercaseC:99,lowercaseD:100,lowercaseE:101,lowercaseF:102,lowercaseG:103,lowercaseH:104,lowercaseI:105,lowercaseJ:106,lowercaseK:107,lowercaseL:108,lowercaseM:109,lowercaseN:110,lowercaseO:111,lowercaseP:112,lowercaseQ:113,lowercaseR:114,lowercaseS:115,lowercaseT:116,lowercaseU:117,lowercaseV:118,lowercaseW:119,lowercaseX:120,lowercaseY:121,lowercaseZ:122,leftCurlyBrace:123,verticalBar:124,rightCurlyBrace:125,tilde:126,del:127,byteOrderMarker:65279,replacementCharacter:65533};var constants={attentionSideAfter:2,attentionSideBefore:1,atxHeadingOpeningFenceSizeMax:6,autolinkDomainSizeMax:63,autolinkSchemeSizeMax:32,cdataOpeningString:"CDATA[",characterGroupPunctuation:2,characterGroupWhitespace:1,characterReferenceDecimalSizeMax:7,characterReferenceHexadecimalSizeMax:6,characterReferenceNamedSizeMax:31,codeFencedSequenceSizeMin:3,contentTypeContent:"content",contentTypeDocument:"document",contentTypeFlow:"flow",contentTypeString:"string",contentTypeText:"text",hardBreakPrefixSizeMin:2,htmlBasic:6,htmlCdata:5,htmlComment:2,htmlComplete:7,htmlDeclaration:4,htmlInstruction:3,htmlRawSizeMax:8,htmlRaw:1,linkResourceDestinationBalanceMax:32,linkReferenceSizeMax:999,listItemValueSizeMax:10,numericBaseDecimal:10,numericBaseHexadecimal:16,tabSize:4,thematicBreakMarkerCountMin:3,v8MaxSafeChunkSize:1e4};var types={data:"data",whitespace:"whitespace",lineEnding:"lineEnding",lineEndingBlank:"lineEndingBlank",linePrefix:"linePrefix",lineSuffix:"lineSuffix",atxHeading:"atxHeading",atxHeadingSequence:"atxHeadingSequence",atxHeadingText:"atxHeadingText",autolink:"autolink",autolinkEmail:"autolinkEmail",autolinkMarker:"autolinkMarker",autolinkProtocol:"autolinkProtocol",characterEscape:"characterEscape",characterEscapeValue:"characterEscapeValue",characterReference:"characterReference",characterReferenceMarker:"characterReferenceMarker",characterReferenceMarkerNumeric:"characterReferenceMarkerNumeric",characterReferenceMarkerHexadecimal:"characterReferenceMarkerHexadecimal",characterReferenceValue:"characterReferenceValue",codeFenced:"codeFenced",codeFencedFence:"codeFencedFence",codeFencedFenceSequence:"codeFencedFenceSequence",codeFencedFenceInfo:"codeFencedFenceInfo",codeFencedFenceMeta:"codeFencedFenceMeta",codeFlowValue:"codeFlowValue",codeIndented:"codeIndented",codeText:"codeText",codeTextData:"codeTextData",codeTextPadding:"codeTextPadding",codeTextSequence:"codeTextSequence",content:"content",definition:"definition",definitionDestination:"definitionDestination",definitionDestinationLiteral:"definitionDestinationLiteral",definitionDestinationLiteralMarker:"definitionDestinationLiteralMarker",definitionDestinationRaw:"definitionDestinationRaw",definitionDestinationString:"definitionDestinationString",definitionLabel:"definitionLabel",definitionLabelMarker:"definitionLabelMarker",definitionLabelString:"definitionLabelString",definitionMarker:"definitionMarker",definitionTitle:"definitionTitle",definitionTitleMarker:"definitionTitleMarker",definitionTitleString:"definitionTitleString",emphasis:"emphasis",emphasisSequence:"emphasisSequence",emphasisText:"emphasisText",escapeMarker:"escapeMarker",hardBreakEscape:"hardBreakEscape",hardBreakTrailing:"hardBreakTrailing",htmlFlow:"htmlFlow",htmlFlowData:"htmlFlowData",htmlText:"htmlText",htmlTextData:"htmlTextData",image:"image",label:"label",labelText:"labelText",labelLink:"labelLink",labelImage:"labelImage",labelMarker:"labelMarker",labelImageMarker:"labelImageMarker",labelEnd:"labelEnd",link:"link",paragraph:"paragraph",reference:"reference",referenceMarker:"referenceMarker",referenceString:"referenceString",resource:"resource",resourceDestination:"resourceDestination",resourceDestinationLiteral:"resourceDestinationLiteral",resourceDestinationLiteralMarker:"resourceDestinationLiteralMarker",resourceDestinationRaw:"resourceDestinationRaw",resourceDestinationString:"resourceDestinationString",resourceMarker:"resourceMarker",resourceTitle:"resourceTitle",resourceTitleMarker:"resourceTitleMarker",resourceTitleString:"resourceTitleString",setextHeading:"setextHeading",setextHeadingText:"setextHeadingText",setextHeadingLine:"setextHeadingLine",setextHeadingLineSequence:"setextHeadingLineSequence",strong:"strong",strongSequence:"strongSequence",strongText:"strongText",thematicBreak:"thematicBreak",thematicBreakSequence:"thematicBreakSequence",blockQuote:"blockQuote",blockQuotePrefix:"blockQuotePrefix",blockQuoteMarker:"blockQuoteMarker",blockQuotePrefixWhitespace:"blockQuotePrefixWhitespace",listOrdered:"listOrdered",listUnordered:"listUnordered",listItemIndent:"listItemIndent",listItemMarker:"listItemMarker",listItemPrefix:"listItemPrefix",listItemPrefixWhitespace:"listItemPrefixWhitespace",listItemValue:"listItemValue",chunkDocument:"chunkDocument",chunkContent:"chunkContent",chunkFlow:"chunkFlow",chunkText:"chunkText",chunkString:"chunkString"};var ambiguousRanges=[161,161,164,164,167,168,170,170,173,174,176,180,182,186,188,191,198,198,208,208,215,216,222,225,230,230,232,234,236,237,240,240,242,243,247,250,252,252,254,254,257,257,273,273,275,275,283,283,294,295,299,299,305,307,312,312,319,322,324,324,328,331,333,333,338,339,358,359,363,363,462,462,464,464,466,466,468,468,470,470,472,472,474,474,476,476,593,593,609,609,708,708,711,711,713,715,717,717,720,720,728,731,733,733,735,735,768,879,913,929,931,937,945,961,963,969,1025,1025,1040,1103,1105,1105,8208,8208,8211,8214,8216,8217,8220,8221,8224,8226,8228,8231,8240,8240,8242,8243,8245,8245,8251,8251,8254,8254,8308,8308,8319,8319,8321,8324,8364,8364,8451,8451,8453,8453,8457,8457,8467,8467,8470,8470,8481,8482,8486,8486,8491,8491,8531,8532,8539,8542,8544,8555,8560,8569,8585,8585,8592,8601,8632,8633,8658,8658,8660,8660,8679,8679,8704,8704,8706,8707,8711,8712,8715,8715,8719,8719,8721,8721,8725,8725,8730,8730,8733,8736,8739,8739,8741,8741,8743,8748,8750,8750,8756,8759,8764,8765,8776,8776,8780,8780,8786,8786,8800,8801,8804,8807,8810,8811,8814,8815,8834,8835,8838,8839,8853,8853,8857,8857,8869,8869,8895,8895,8978,8978,9312,9449,9451,9547,9552,9587,9600,9615,9618,9621,9632,9633,9635,9641,9650,9651,9654,9655,9660,9661,9664,9665,9670,9672,9675,9675,9678,9681,9698,9701,9711,9711,9733,9734,9737,9737,9742,9743,9756,9756,9758,9758,9792,9792,9794,9794,9824,9825,9827,9829,9831,9834,9836,9837,9839,9839,9886,9887,9919,9919,9926,9933,9935,9939,9941,9953,9955,9955,9960,9961,9963,9969,9972,9972,9974,9977,9979,9980,9982,9983,10045,10045,10102,10111,11094,11097,12872,12879,57344,63743,65024,65039,65533,65533,127232,127242,127248,127277,127280,127337,127344,127373,127375,127376,127387,127404,917760,917999,983040,1048573,1048576,1114109];var fullwidthRanges=[12288,12288,65281,65376,65504,65510];var halfwidthRanges=[8361,8361,65377,65470,65474,65479,65482,65487,65490,65495,65498,65500,65512,65518];var narrowRanges=[32,126,162,163,165,166,172,172,175,175,10214,10221,10629,10630];var wideRanges=[4352,4447,8986,8987,9001,9002,9193,9196,9200,9200,9203,9203,9725,9726,9748,9749,9776,9783,9800,9811,9855,9855,9866,9871,9875,9875,9889,9889,9898,9899,9917,9918,9924,9925,9934,9934,9940,9940,9962,9962,9970,9971,9973,9973,9978,9978,9981,9981,9989,9989,9994,9995,10024,10024,10060,10060,10062,10062,10067,10069,10071,10071,10133,10135,10160,10160,10175,10175,11035,11036,11088,11088,11093,11093,11904,11929,11931,12019,12032,12245,12272,12287,12289,12350,12353,12438,12441,12543,12549,12591,12593,12686,12688,12773,12783,12830,12832,12871,12880,42124,42128,42182,43360,43388,44032,55203,63744,64255,65040,65049,65072,65106,65108,65126,65128,65131,94176,94180,94192,94198,94208,101589,101631,101662,101760,101874,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,119552,119638,119648,119670,126980,126980,127183,127183,127374,127374,127377,127386,127488,127490,127504,127547,127552,127560,127568,127569,127584,127589,127744,127776,127789,127797,127799,127868,127870,127891,127904,127946,127951,127955,127968,127984,127988,127988,127992,128062,128064,128064,128066,128252,128255,128317,128331,128334,128336,128359,128378,128378,128405,128406,128420,128420,128507,128591,128640,128709,128716,128716,128720,128722,128725,128728,128732,128735,128747,128748,128756,128764,128992,129003,129008,129008,129292,129338,129340,129349,129351,129535,129648,129660,129664,129674,129678,129734,129736,129736,129741,129756,129759,129770,129775,129784,131072,196605,196608,262141];var isInRange=(ranges,codePoint)=>{let low=0;let high=Math.floor(ranges.length/2)-1;while(low<=high){const mid=Math.floor((low+high)/2);const i=mid*2;if(codePoint<ranges[i]){high=mid-1}else if(codePoint>ranges[i+1]){low=mid+1}else{return true}}return false};var minimumAmbiguousCodePoint=ambiguousRanges[0];var maximumAmbiguousCodePoint=ambiguousRanges.at(-1);var minimumFullWidthCodePoint=fullwidthRanges[0];var maximumFullWidthCodePoint=fullwidthRanges.at(-1);var minimumHalfWidthCodePoint=halfwidthRanges[0];var maximumHalfWidthCodePoint=halfwidthRanges.at(-1);var minimumNarrowCodePoint=narrowRanges[0];var maximumNarrowCodePoint=narrowRanges.at(-1);var minimumWideCodePoint=wideRanges[0];var maximumWideCodePoint=wideRanges.at(-1);var commonCjkCodePoint=19968;var[wideFastPathStart,wideFastPathEnd]=findWideFastPathRange(wideRanges);function findWideFastPathRange(ranges){let fastPathStart=ranges[0];let fastPathEnd=ranges[1];for(let index2=0;index2<ranges.length;index2+=2){const start=ranges[index2];const end=ranges[index2+1];if(commonCjkCodePoint>=start&&commonCjkCodePoint<=end){return[start,end]}if(end-start>fastPathEnd-fastPathStart){fastPathStart=start;fastPathEnd=end}}return[fastPathStart,fastPathEnd]}var isAmbiguous=codePoint=>{if(codePoint<minimumAmbiguousCodePoint||codePoint>maximumAmbiguousCodePoint){return false}return isInRange(ambiguousRanges,codePoint)};var isFullWidth=codePoint=>{if(codePoint<minimumFullWidthCodePoint||codePoint>maximumFullWidthCodePoint){return false}return isInRange(fullwidthRanges,codePoint)};var isHalfWidth=codePoint=>{if(codePoint<minimumHalfWidthCodePoint||codePoint>maximumHalfWidthCodePoint){return false}return isInRange(halfwidthRanges,codePoint)};var isNarrow=codePoint=>{if(codePoint<minimumNarrowCodePoint||codePoint>maximumNarrowCodePoint){return false}return isInRange(narrowRanges,codePoint)};var isWide=codePoint=>{if(codePoint>=wideFastPathStart&&codePoint<=wideFastPathEnd){return true}if(codePoint<minimumWideCodePoint||codePoint>maximumWideCodePoint){return false}return isInRange(wideRanges,codePoint)};function getCategory(codePoint){if(isAmbiguous(codePoint)){return"ambiguous"}if(isFullWidth(codePoint)){return"fullwidth"}if(isHalfWidth(codePoint)){return"halfwidth"}if(isNarrow(codePoint)){return"narrow"}if(isWide(codePoint)){return"wide"}return"neutral"}function validate(codePoint){if(!Number.isSafeInteger(codePoint)){throw new TypeError(`Expected a code point, got \`${typeof codePoint}\`.`)}}function eastAsianWidthType(codePoint){validate(codePoint);return getCategory(codePoint)}function isEmoji(uc){return/^\p{Emoji_Presentation}/u.test(String.fromCodePoint(uc))}function cjkOrIvs(uc){if(!uc||uc<4352)return false;switch(eastAsianWidthType(uc)){case"fullwidth":case"halfwidth":return true;case"wide":return!isEmoji(uc);case"narrow":return false;case"ambiguous":return 917760<=uc&&uc<=917999?null:false;case"neutral":return/^\p{sc=Hangul}/u.test(String.fromCodePoint(uc))}}function isCjkAmbiguousPunctuation(main,vs){if(vs!==65025||!main||main<8216)return false;return main===8216||main===8217||main===8220||main===8221}function nonEmojiGeneralUseVS(code3){return code3!==null&&code3>=65024&&code3<=65038}var unicodePunctuation2=regexCheck2(/\p{P}|\p{S}/u);var unicodeWhitespace2=regexCheck2(/\s/);function regexCheck2(regex){return check;function check(code3){return code3!==null&&code3>-1&&regex.test(String.fromCodePoint(code3))}}function isUnicodeWhitespace(category){return Boolean(category&constants.characterGroupWhitespace)}function isNonCjkPunctuation(category){return(category&constantsEx.cjkPunctuation)===constants.characterGroupPunctuation}function isCjk(category){return Boolean(category&constantsEx.cjk)}function isCjkOrIvs(category){return Boolean(category&constantsEx.cjkOrIvs)}function isNonEmojiGeneralUseVS(category){return category===constantsEx.nonEmojiGeneralUseVS}function isSpaceOrPunctuation(category){return Boolean(category&constantsEx.spaceOrPunctuation)}var constantsEx;(function(_constantsEx){_constantsEx.spaceOrPunctuation=3;_constantsEx.cjk=4096;_constantsEx.cjkPunctuation=4098;_constantsEx.ivs=8192;_constantsEx.cjkOrIvs=12288;_constantsEx.nonEmojiGeneralUseVS=16384;_constantsEx.variationSelector=24576;_constantsEx.ivsToCjkRightShift=1})(constantsEx||(constantsEx={}));function classifyCharacter2(code3){if(code3===codes.eof||markdownLineEndingOrSpace(code3)||unicodeWhitespace2(code3))return constants.characterGroupWhitespace;let value=0;if(code3>=4352){if(nonEmojiGeneralUseVS(code3))return constantsEx.nonEmojiGeneralUseVS;switch(cjkOrIvs(code3)){case null:return constantsEx.ivs;case true:value|=constantsEx.cjk;break}}if(unicodePunctuation2(code3))value|=constants.characterGroupPunctuation;return value}function classifyPrecedingCharacter(before,get2Previous,previous3){if(!isNonEmojiGeneralUseVS(before))return before;const twoPrevious=get2Previous();const twoBefore=classifyCharacter2(twoPrevious);return!twoPrevious||isUnicodeWhitespace(twoBefore)?before:isCjkAmbiguousPunctuation(twoPrevious,previous3)?constantsEx.cjkPunctuation:stripIvs(twoBefore)}function stripIvs(twoBefore){return twoBefore&~constantsEx.ivs}function isCodeHighSurrogate(code3){return Boolean(code3&&code3>=55296&&code3<=56319)}function isCodeLowSurrogate(code3){return Boolean(code3&&code3>=56320&&code3<=57343)}function tryGetGenuinePreviousCode(code3,nowPoint,sliceSerialize){if(nowPoint._bufferIndex<2)return code3;const previousCandidate=sliceSerialize({start:{...nowPoint,_bufferIndex:nowPoint._bufferIndex-2},end:nowPoint}).codePointAt(0);return previousCandidate&&previousCandidate>=65536?previousCandidate:code3}function tryGetCodeTwoBefore(previousCode,nowPoint,sliceSerialize){const previousWidth=previousCode>=65536?2:1;if(nowPoint._bufferIndex<1+previousWidth)return null;const idealStart=nowPoint._bufferIndex-previousWidth-2;const twoPreviousBuffer=sliceSerialize({start:{...nowPoint,_bufferIndex:idealStart>=0?idealStart:0},end:{...nowPoint,_bufferIndex:nowPoint._bufferIndex-previousWidth}});const twoPreviousLast=twoPreviousBuffer.charCodeAt(twoPreviousBuffer.length-1);if(Number.isNaN(twoPreviousLast))return null;if(twoPreviousBuffer.length<2||twoPreviousLast<56320||57343<twoPreviousLast)return twoPreviousLast;const twoPreviousCandidate=twoPreviousBuffer.codePointAt(0);if(twoPreviousCandidate&&twoPreviousCandidate>=65536)return twoPreviousCandidate;return twoPreviousLast}var TwoPreviousCode=class{cachedValue=void 0;constructor(previousCode,nowPoint,sliceSerialize){this.previousCode=previousCode;this.nowPoint=nowPoint;this.sliceSerialize=sliceSerialize}value(){if(this.cachedValue===void 0)this.cachedValue=tryGetCodeTwoBefore(this.previousCode,this.nowPoint,this.sliceSerialize);return this.cachedValue}};function tryGetGenuineNextCode(code3,nowPoint,sliceSerialize){const nextCandidate=sliceSerialize({start:nowPoint,end:{...nowPoint,_bufferIndex:nowPoint._bufferIndex+2}}).codePointAt(0);return nextCandidate&&nextCandidate>=65536?nextCandidate:code3}var attention4={name:"attention",resolveAll:resolveAllAttention2,tokenize:tokenizeAttention2};function resolveAllAttention2(events,context){let index2=-1;let open;let group;let text6;let openingSequence;let closingSequence;let use;let nextEvents;let offset;while(++index2<events.length)if(events[index2][0]==="enter"&&events[index2][1].type==="attentionSequence"&&events[index2][1]._close){open=index2;while(open--)if(events[open][0]==="exit"&&events[open][1].type==="attentionSequence"&&events[open][1]._open&&context.sliceSerialize(events[open][1]).charCodeAt(0)===context.sliceSerialize(events[index2][1]).charCodeAt(0)){if((events[open][1]._close||events[index2][1]._open)&&(events[index2][1].end.offset-events[index2][1].start.offset)%3&&!((events[open][1].end.offset-events[open][1].start.offset+events[index2][1].end.offset-events[index2][1].start.offset)%3))continue;use=events[open][1].end.offset-events[open][1].start.offset>1&&events[index2][1].end.offset-events[index2][1].start.offset>1?2:1;const start={...events[open][1].end};const end={...events[index2][1].start};movePoint2(start,-use);movePoint2(end,use);openingSequence={type:use>1?types.strongSequence:types.emphasisSequence,start,end:{...events[open][1].end}};closingSequence={type:use>1?types.strongSequence:types.emphasisSequence,start:{...events[index2][1].start},end};text6={type:use>1?types.strongText:types.emphasisText,start:{...events[open][1].end},end:{...events[index2][1].start}};group={type:use>1?types.strong:types.emphasis,start:{...openingSequence.start},end:{...closingSequence.end}};events[open][1].end={...openingSequence.start};events[index2][1].start={...closingSequence.end};nextEvents=[];if(events[open][1].end.offset-events[open][1].start.offset)nextEvents=push(nextEvents,[["enter",events[open][1],context],["exit",events[open][1],context]]);nextEvents=push(nextEvents,[["enter",group,context],["enter",openingSequence,context],["exit",openingSequence,context],["enter",text6,context]]);ok(context.parser.constructs.insideSpan.null,"expected `insideSpan` to be populated");nextEvents=push(nextEvents,resolveAll(context.parser.constructs.insideSpan.null,events.slice(open+1,index2),context));nextEvents=push(nextEvents,[["exit",text6,context],["enter",closingSequence,context],["exit",closingSequence,context],["exit",group,context]]);if(events[index2][1].end.offset-events[index2][1].start.offset){offset=2;nextEvents=push(nextEvents,[["enter",events[index2][1],context],["exit",events[index2][1],context]])}else offset=0;splice(events,open-1,index2-open+3,nextEvents);index2=open+nextEvents.length-offset-2;break}}index2=-1;while(++index2<events.length)if(events[index2][1].type==="attentionSequence")events[index2][1].type="data";return events}function tokenizeAttention2(effects,ok$1){const attentionMarkers2=this.parser.constructs.attentionMarkers.null;const{now,sliceSerialize,previous:tentativePrevious}=this;const previous3=isCodeLowSurrogate(tentativePrevious)?tryGetGenuinePreviousCode(tentativePrevious,now(),sliceSerialize):tentativePrevious;const before=classifyCharacter2(previous3);const twoPrevious=new TwoPreviousCode(previous3,now(),sliceSerialize);const beforePrimary=classifyPrecedingCharacter(before,twoPrevious.value.bind(twoPrevious),previous3);let marker;return start;function start(code3){ok(code3===codes.asterisk||code3===codes.underscore,"expected asterisk or underscore");marker=code3;effects.enter("attentionSequence");return inside(code3)}function inside(code3){if(code3===marker){effects.consume(code3);return inside}const token=effects.exit("attentionSequence");const after=classifyCharacter2(isCodeHighSurrogate(code3)?tryGetGenuineNextCode(code3,now(),sliceSerialize):code3);ok(attentionMarkers2,"expected `attentionMarkers` to be populated");const beforeNonCjkPunctuation=isNonCjkPunctuation(beforePrimary);const beforeSpaceOrNonCjkPunctuation=beforeNonCjkPunctuation||isUnicodeWhitespace(beforePrimary);const afterNonCjkPunctuation=isNonCjkPunctuation(after);const afterSpaceOrNonCjkPunctuation=afterNonCjkPunctuation||isUnicodeWhitespace(after);const beforeCjkOrIvs=isCjkOrIvs(beforePrimary);const open=!afterSpaceOrNonCjkPunctuation||afterNonCjkPunctuation&&(beforeSpaceOrNonCjkPunctuation||beforeCjkOrIvs)||attentionMarkers2.includes(code3);const close=!beforeSpaceOrNonCjkPunctuation||beforeNonCjkPunctuation&&(afterSpaceOrNonCjkPunctuation||isCjk(after))||attentionMarkers2.includes(previous3);token._open=Boolean(marker===codes.asterisk?open:open&&(isSpaceOrPunctuation(beforePrimary)||!close));token._close=Boolean(marker===codes.asterisk?close:close&&(isSpaceOrPunctuation(after)||!open));return ok$1(code3)}}function movePoint2(point3,offset){point3.column+=offset;point3.offset+=offset;point3._bufferIndex+=offset}function cjkFriendlyExtension(){return{text:{[codes.asterisk]:attention4,[codes.underscore]:attention4},insideSpan:{null:[attention4]}}}function remarkCjkFriendly(){const data=this.data();(data.micromarkExtensions||(data.micromarkExtensions=[])).push(cjkFriendlyExtension())}var HIGHLIGHT_COLOR_IDS=["yellow","green","blue","pink","orange","purple"];var DEFAULT_HIGHLIGHT_COLOR="yellow";var TEXT_SIZE_CONFIG={1:{mobile:14,desktop:14,tailwind:"text-sm",lineHeight:1.7,tailwindLineHeight:"leading-[1.7]",fontWeight:400,tailwindFontWeight:"font-normal",letterSpacing:"0em",tailwindTracking:"tracking-normal",dotSize:6},2:{mobile:16,desktop:18,tailwind:"text-base md:text-lg",lineHeight:1.625,tailwindLineHeight:"leading-relaxed",fontWeight:400,tailwindFontWeight:"font-normal",letterSpacing:"0em",tailwindTracking:"tracking-normal",dotSize:8},3:{mobile:24,desktop:30,tailwind:"text-2xl md:text-3xl",lineHeight:1.25,tailwindLineHeight:"leading-tight",fontWeight:700,tailwindFontWeight:"font-bold",letterSpacing:"0em",tailwindTracking:"tracking-normal",dotSize:10},4:{mobile:30,desktop:36,tailwind:"text-3xl md:text-4xl",lineHeight:1.25,tailwindLineHeight:"leading-tight",fontWeight:700,tailwindFontWeight:"font-bold",letterSpacing:"0em",tailwindTracking:"tracking-normal",dotSize:11},5:{mobile:36,desktop:48,tailwind:"text-4xl lg:text-5xl",lineHeight:1.25,tailwindLineHeight:"leading-tight",fontWeight:700,tailwindFontWeight:"font-bold",letterSpacing:"-0.025em",tailwindTracking:"tracking-tight",dotSize:12},6:{mobile:48,desktop:60,tailwind:"text-5xl lg:text-6xl",lineHeight:1.2,tailwindLineHeight:"leading-[1.2]",fontWeight:700,tailwindFontWeight:"font-bold",letterSpacing:"-0.025em",tailwindTracking:"tracking-tight",dotSize:14},7:{mobile:60,desktop:72,tailwind:"text-6xl lg:text-7xl",lineHeight:1.15,tailwindLineHeight:"leading-[1.15]",fontWeight:700,tailwindFontWeight:"font-bold",letterSpacing:"-0.025em",tailwindTracking:"tracking-tight",dotSize:16},8:{mobile:72,desktop:96,tailwind:"text-7xl lg:text-8xl",lineHeight:1.1,tailwindLineHeight:"leading-[1.1]",fontWeight:700,tailwindFontWeight:"font-bold",letterSpacing:"-0.025em",tailwindTracking:"tracking-tight",dotSize:18},9:{mobile:96,desktop:128,tailwind:"text-8xl lg:text-9xl",lineHeight:1.1,tailwindLineHeight:"leading-[1.1]",fontWeight:700,tailwindFontWeight:"font-bold",letterSpacing:"-0.025em",tailwindTracking:"tracking-tight",dotSize:20}};var ALL_TEXT_SIZES=Object.keys(TEXT_SIZE_CONFIG).map(Number);var MIN_TEXT_SIZE=Math.min(...ALL_TEXT_SIZES);var MAX_TEXT_SIZE=Math.max(...ALL_TEXT_SIZES);var TEXT_SIZE_NAMES=Object.fromEntries(ALL_TEXT_SIZES.map(size=>[size,`Level ${size}`]));var TEXT_SIZE_STYLES=Object.fromEntries(ALL_TEXT_SIZES.map(size=>[size,`${TEXT_SIZE_CONFIG[size].tailwind} ${TEXT_SIZE_CONFIG[size].tailwindLineHeight}`]));var TEXT_SIZE_PX=Object.fromEntries(ALL_TEXT_SIZES.map(size=>[size,{mobile:TEXT_SIZE_CONFIG[size].mobile,desktop:TEXT_SIZE_CONFIG[size].desktop}]));var TEXT_SIZE_LINE_HEIGHT=Object.fromEntries(ALL_TEXT_SIZES.map(size=>[size,TEXT_SIZE_CONFIG[size].lineHeight]));var TEXT_SIZE_LINE_HEIGHT_CLASS=Object.fromEntries(ALL_TEXT_SIZES.map(size=>[size,TEXT_SIZE_CONFIG[size].tailwindLineHeight]));var TEXT_SIZE_FONT_WEIGHT=Object.fromEntries(ALL_TEXT_SIZES.map(size=>[size,TEXT_SIZE_CONFIG[size].fontWeight]));var TEXT_SIZE_FONT_WEIGHT_CLASS=Object.fromEntries(ALL_TEXT_SIZES.map(size=>[size,TEXT_SIZE_CONFIG[size].tailwindFontWeight]));var TEXT_SIZE_LETTER_SPACING=Object.fromEntries(ALL_TEXT_SIZES.map(size=>[size,TEXT_SIZE_CONFIG[size].letterSpacing]));var TEXT_SIZE_TRACKING_CLASS=Object.fromEntries(ALL_TEXT_SIZES.map(size=>[size,TEXT_SIZE_CONFIG[size].tailwindTracking]));var TEXT_SIZE_DOT=Object.fromEntries(ALL_TEXT_SIZES.map(size=>[size,TEXT_SIZE_CONFIG[size].dotSize]));function isValidTextSize(size){return typeof size==="number"&&size>=MIN_TEXT_SIZE&&size<=MAX_TEXT_SIZE}var EDITOR_TEXT_SIZE_PX=Object.fromEntries(ALL_TEXT_SIZES.map(size=>[size,TEXT_SIZE_CONFIG[size].mobile]));var INLINE_COLOR_IDS=["gray","red","yellow","green","blue","purple"];var COLOR_ID_SET=new Set(INLINE_COLOR_IDS);var HIGHLIGHT_ID_SET=new Set(HIGHLIGHT_COLOR_IDS);var FONT_STYLE_VALUES=["normal"];var FONT_STYLE_SET=new Set(FONT_STYLE_VALUES);function parseInlineColorParams(params){let textId=null;let bgId=null;let fontStyle=null;let highlightId=null;let size=null;for(const part of params.split(";")){const[k,v]=part.split("=");if(k==="c"&&COLOR_ID_SET.has(v))textId=v;else if(k==="bg"&&COLOR_ID_SET.has(v))bgId=v;else if(k==="fs"&&FONT_STYLE_SET.has(v))fontStyle=v;else if(k==="hl"&&HIGHLIGHT_ID_SET.has(v))highlightId=v;else if(k==="sz"){const n=parseInt(v,10);if(isValidTextSize(n))size=n}}return{textId,bgId,fontStyle,highlightId,size}}function encodeInlineStyleParams(parsed){const parts=[];if(parsed.textId)parts.push(`c=${parsed.textId}`);if(parsed.bgId)parts.push(`bg=${parsed.bgId}`);if(parsed.highlightId)parts.push(`hl=${parsed.highlightId}`);if(parsed.size)parts.push(`sz=${parsed.size}`);if(parsed.fontStyle)parts.push(`fs=${parsed.fontStyle}`);return parts.length>0?parts.join(";"):null}function mergeInlineStyleParams(...paramStrs){const merged={textId:null,bgId:null,fontStyle:null,highlightId:null,size:null};for(const raw of paramStrs){if(!raw)continue;const next=parseInlineColorParams(raw);if(next.textId)merged.textId=next.textId;if(next.bgId)merged.bgId=next.bgId;if(next.fontStyle)merged.fontStyle=next.fontStyle;if(next.highlightId)merged.highlightId=next.highlightId;if(next.size)merged.size=next.size}return encodeInlineStyleParams(merged)}function buildInlineStyle(params){const{textId,bgId,fontStyle,highlightId,size}=parseInlineColorParams(params);const styles=[];if(textId)styles.push(`color: var(--color-text-${textId})`);if(highlightId){styles.push(`background-color: var(--highlight-${highlightId})`);styles.push("border-radius: 2px");styles.push("padding: 0 2px")}else if(bgId){styles.push(`background-color: var(--color-bg-${bgId})`);styles.push("border-radius: 2px");styles.push("padding: 0 2px")}if(fontStyle)styles.push(`font-style: ${fontStyle}`);return{style:styles.length>0?styles.join("; "):null,className:size?TEXT_SIZE_STYLES[size]:null}}function normalizeLegacyInlineTokens(markdown){return mapOutsideFences(markdown,normalizeLegacyChunk)}function mapOutsideFences(markdown,fn){const parts=markdown.split(/(```[\s\S]*?```)/);return parts.map((part,i)=>i%2===1?part:fn(part)).join("")}function normalizeLegacyChunk(chunk){let out=chunk;out=out.replace(/\{size:([1-9])\}\{s:([a-z0-9=;]+)\}([^{]*)\{\/s\}\{\/size\}/g,(_m,sz,params,text6)=>{const merged=mergeInlineStyleParams(params,`sz=${sz}`);return merged?`{s:${merged}}${text6}{/s}`:text6});out=out.replace(/\{size:([1-9])\}([\s\S]*?)\{\/size\}/g,(_m,sz,inner)=>{if(inner.includes("{s:")){return inner.replace(/\{s:([a-z0-9=;]+)\}/g,(_mm,params)=>{const merged=mergeInlineStyleParams(params,`sz=${sz}`);return`{s:${merged??params}}`})}return`{s:sz=${sz}}${inner}{/s}`});out=out.replace(/\{s:([a-z0-9=;]+)\}==(?:\{(\w+)\})?([^=]+)==\{\/s\}/g,(_m,params,color3,text6)=>{const hl=color3&&HIGHLIGHT_ID_SET.has(color3)?color3:DEFAULT_HIGHLIGHT_COLOR;const merged=mergeInlineStyleParams(params,`hl=${hl}`);return merged?`{s:${merged}}${text6}{/s}`:text6});out=out.replace(/==(?:\{(\w+)\})?([^=]+)==/g,(_m,color3,text6)=>{const hl=color3&&HIGHLIGHT_ID_SET.has(color3)?color3:DEFAULT_HIGHLIGHT_COLOR;if(text6.includes("{s:")){return text6.replace(/\{s:([a-z0-9=;]+)\}([^{]*)\{\/s\}/g,(_mm,params,inner)=>{const merged=mergeInlineStyleParams(params,`hl=${hl}`);return merged?`{s:${merged}}${inner}{/s}`:inner})}return`{s:hl=${hl}}${text6}{/s}`});return out}var IMAGE_SIZES=["full","large","half","small"];var IMAGE_ALIGNS=["left","center","right"];var DEFAULT_IMAGE_SIZE="full";var DEFAULT_IMAGE_ALIGN="center";var DEFAULT_GALLERY_COLS=2;var SIZE_SET=new Set(IMAGE_SIZES);var ALIGN_SET=new Set(IMAGE_ALIGNS);function isImageSize(value){return typeof value==="string"&&SIZE_SET.has(value)}function isImageAlign(value){return typeof value==="string"&&ALIGN_SET.has(value)}function isGalleryCols(value){return value===2||value===3}function parseGalleryCols(raw){const n=raw?parseInt(raw,10):NaN;return isGalleryCols(n)?n:DEFAULT_GALLERY_COLS}var IMAGE_SIZE_WIDTH_CLASS={full:"w-full",large:"w-3/4",half:"w-1/2",small:"w-1/3"};var IMAGE_ALIGN_CLASS={left:"mr-auto",center:"mx-auto",right:"ml-auto"};var GALLERY_COLS_CLASS={2:"grid-cols-1 @vp-sm/article:grid-cols-2",3:"grid-cols-1 @vp-sm/article:grid-cols-3"};var DEFAULT_IMAGE_LAYOUT={size:DEFAULT_IMAGE_SIZE,align:DEFAULT_IMAGE_ALIGN};function parseImageLayoutAttrs(attrs){let size=DEFAULT_IMAGE_SIZE;let align=DEFAULT_IMAGE_ALIGN;if(!attrs)return{size,align};for(const part of attrs.trim().split(/\s+/)){const eq=part.indexOf("=");if(eq<=0)continue;const key=part.slice(0,eq);const value=part.slice(eq+1);if(key==="size"&&isImageSize(value))size=value;else if(key==="align"&&isImageAlign(value))align=value}return{size,align}}function encodeImageLayoutAttrs(layout){if(layout.size===DEFAULT_IMAGE_SIZE)return null;const parts=[`size=${layout.size}`];if(layout.align!==DEFAULT_IMAGE_ALIGN)parts.push(`align=${layout.align}`);return parts.join(" ")}function imageLayoutClassName(layout){const width=IMAGE_SIZE_WIDTH_CLASS[layout.size];if(layout.size===DEFAULT_IMAGE_SIZE)return width;return`${width} ${IMAGE_ALIGN_CLASS[layout.align]}`}var IMAGE_LINE_REGEX=/^!\[([^\]]*)\]\(([^)\s]+)(?:\s+"([^"]*)")?\)(?:\{([^}]*)\})?\s*$/;function parseImageLine(line){const match=IMAGE_LINE_REGEX.exec(line.trim());if(!match)return null;return{alt:match[1]??"",src:match[2],layout:parseImageLayoutAttrs(match[4])}}var ATTRS_TEXT_REGEX=/^\{([^}]*)\}/;function hasKnownAttr(attrs){for(const part of attrs.trim().split(/\s+/)){const eq=part.indexOf("=");if(eq<=0)continue;const key=part.slice(0,eq);const value=part.slice(eq+1);if(key==="size"&&isImageSize(value)||key==="align"&&isImageAlign(value)){return true}if(key==="width"&&/^\d+$/.test(value))return true}return false}function transform(node2){if(!node2.children||node2.children.length===0)return;for(const child of node2.children)transform(child);if(node2.type!=="paragraph")return;const children=node2.children;const next=[];for(let i=0;i<children.length;i++){const current=children[i];const following=children[i+1];if(current.type==="image"&&following&&following.type==="text"&&typeof following.value==="string"){const match=ATTRS_TEXT_REGEX.exec(following.value);if(match&&hasKnownAttr(match[1]??"")){const layout=parseImageLayoutAttrs(match[1]);if(layout.size!==DEFAULT_IMAGE_SIZE){current.data=current.data??{};current.data.hProperties={...current.data.hProperties??{},"data-size":layout.size,"data-align":layout.align}}next.push(current);const rest=following.value.slice(match[0].length);if(rest.trim())next.push({...following,value:rest});i+=1;continue}}next.push(current)}node2.children=next}function remarkImageAttrs(){return tree=>{transform(tree)}}var STYLE_OPEN=/\{s:([a-z0-9=;]+)\}/;var STYLE_CLOSE="{/s}";var UNDERLINE="++";var STYLE_MARKER={open:text6=>{const match=STYLE_OPEN.exec(text6);return match?{index:match.index,length:match[0].length,params:match[1]}:null},close:text6=>{const index2=text6.indexOf(STYLE_CLOSE);return index2===-1?null:{index:index2,length:STYLE_CLOSE.length}},build:(children,params)=>({type:"inlineStyle",params:params??"",children})};var UNDERLINE_MARKER={open:text6=>{const index2=text6.indexOf(UNDERLINE);if(index2===-1||/^\s|^$/.test(text6.slice(index2+UNDERLINE.length)))return null;return{index:index2,length:UNDERLINE.length}},close:text6=>{const index2=text6.indexOf(UNDERLINE);return index2===-1?null:{index:index2,length:UNDERLINE.length}},build:children=>({type:"underline",children})};function text5(value){return{type:"text",value}}function hasText(node2){return node2.type==="text"&&typeof node2.value==="string"}function pair(children,marker){const out=[];let i=0;while(i<children.length){const node2=children[i];if(!hasText(node2)){out.push(node2);i+=1;continue}const open=marker.open(node2.value);if(!open){out.push(node2);i+=1;continue}const before=node2.value.slice(0,open.index);const afterOpen=node2.value.slice(open.index+open.length);const collected=[];let closedAt=null;const sameNodeClose=marker.close(afterOpen);if(sameNodeClose){if(sameNodeClose.index>0)collected.push(text5(afterOpen.slice(0,sameNodeClose.index)));closedAt={nodeIndex:i,rest:afterOpen.slice(sameNodeClose.index+sameNodeClose.length)}}else{if(afterOpen)collected.push(text5(afterOpen));for(let j=i+1;j<children.length;j++){const sibling=children[j];if(!hasText(sibling)){collected.push(sibling);continue}const close=marker.close(sibling.value);if(!close){collected.push(sibling);continue}if(close.index>0)collected.push(text5(sibling.value.slice(0,close.index)));closedAt={nodeIndex:j,rest:sibling.value.slice(close.index+close.length)};break}}if(!closedAt||collected.every(child=>hasText(child)&&!child.value.trim())){out.push(text5(before+node2.value.slice(open.index,open.index+open.length)));children=[text5(afterOpen),...children.slice(i+1)];i=0;continue}if(before)out.push(text5(before));out.push(marker.build(pairAll(collected),open.params));children=[text5(closedAt.rest),...children.slice(closedAt.nodeIndex+1)];i=0}return out.filter(node2=>!(hasText(node2)&&node2.value===""))}function pairAll(children){return pair(pair(children,STYLE_MARKER),UNDERLINE_MARKER)}function walk(node2){if(!node2.children)return;for(const child of node2.children)walk(child);if(!node2.children.some(hasText))return;node2.children=pairAll(node2.children)}function applyInlineSyntax(tree){walk(tree)}var OPEN=/^:::([a-zA-Z][\w-]*)\b(.*)$/;var CLOSE=/^:::[ \t]*$/;function splitDirectives(markdown){const lines=markdown.split("\n");const spans=[];let buffer=[];const flush=()=>{if(buffer.length===0)return;spans.push({kind:"markdown",value:buffer.join("\n")});buffer=[]};for(let i=0;i<lines.length;i++){const line=lines[i]??"";const open=OPEN.exec(line);if(!open){buffer.push(line);continue}const rest=open[2]??"";if(rest.includes(":::")){flush();spans.push({kind:"directive",name:open[1],value:line});continue}const block=[line];let closedAt=-1;for(let j=i+1;j<lines.length;j++){block.push(lines[j]??"");if(CLOSE.test(lines[j]??"")){closedAt=j;break}}if(closedAt===-1){buffer.push(line);continue}flush();spans.push({kind:"directive",name:open[1],value:block.join("\n")});i=closedAt}flush();return spans.length>0?spans:[{kind:"markdown",value:markdown}]}var FENCE_OR_CODE=/(```[\s\S]*?```|`[^`\n]*`)/g;function mapOutsideCode(markdown,fn){const parts=markdown.split(FENCE_OR_CODE);return parts.map((part,index2)=>{if(index2%2===1)return part;return fn(part)}).join("")}function collapseExtraEscapes(markdown,options={underscore:true}){let changed=false;const pattern=options.underscore?/\\\\([*_~+#])/g:/\\\\([*~+#])/g;const text6=mapOutsideCode(markdown,chunk=>chunk.replace(pattern,(_match,char)=>{changed=true;return char}));return{text:text6,changed}}var UNDERSCORE_PLACEHOLDER="\uE000";function maskUnderscoreEmphasis(markdown){return mapOutsideCode(markdown,chunk=>{const links=[];const parked=chunk.replace(/!?\[[^\]]*\]\([^)\n]*\)/g,match=>{links.push(match);return`\uE001${links.length-1}\uE001`});const masked=parked.replace(/\\_/g,"_").replaceAll("_",UNDERSCORE_PLACEHOLDER);return masked.replace(/\uE001(\d+)\uE001/g,(_match,index2)=>links[Number(index2)]??"")})}function restoreUnderscores(value){return value.replaceAll(UNDERSCORE_PLACEHOLDER,"_")}function restoreUnderscoresInTree(node2){if(typeof node2.value==="string")node2.value=restoreUnderscores(node2.value);if(typeof node2.url==="string")node2.url=restoreUnderscores(node2.url);if(typeof node2.alt==="string")node2.alt=restoreUnderscores(node2.alt);if(typeof node2.title==="string")node2.title=restoreUnderscores(node2.title);for(const child of node2.children??[])restoreUnderscoresInTree(child)}var imageWithLayout=(node2,parent,state,info)=>{const base=handle.image(node2,parent,state,info);const props=node2.data?.hProperties;const size=props?.["data-size"];const align=props?.["data-align"];if(!isImageSize(size))return base;const attrs=encodeImageLayoutAttrs({size,align:isImageAlign(align)?align:DEFAULT_IMAGE_LAYOUT.align});return attrs?`${base}{${attrs}}`:base};imageWithLayout.peek=handle.image.peek;function parseProcessor(){return unified().use(remarkParse).use(remarkGfm).use(remarkCjkFriendly)}function parseMarkdownChunk(markdown,profile){const masked=profile==="inline"||profile==="body"?maskUnderscoreEmphasis(markdown):markdown;const proc=parseProcessor();const tree=proc.parse(masked);remarkImageAttrs()(tree);applyInlineSyntax(tree);if(profile==="inline"||profile==="body")restoreUnderscoresInTree(tree);return tree}function parseMarkdown(markdown,profile){const legacy=normalizeLegacyInlineTokens(markdown);const collapsed=collapseExtraEscapes(legacy,{underscore:profile!=="inline"&&profile!=="body"});const spans=splitDirectives(collapsed.text);const children=[];for(const span of spans){if(span.kind==="directive"){children.push({type:"kanorioDirective",name:span.name,raw:span.value});continue}if(!span.value.trim()){if(span.value.includes("\n"))children.push({type:"paragraph",children:[]});continue}const chunk=parseMarkdownChunk(span.value,profile);children.push(...chunk.children??[])}return{tree:{type:"root",children},escapesCollapsed:collapsed.changed}}import React from"react";import{Fragment as Fragment2,jsx as jsx2,jsxs as jsxs2}from"react/jsx-runtime";function styleOf(params){if(!params)return{};const built=buildInlineStyle(params);const style={};if(built.style){for(const decl of built.style.split(";")){const idx=decl.indexOf(":");if(idx===-1)continue;const prop=decl.slice(0,idx).trim().replace(/-([a-z])/g,(_,c)=>c.toUpperCase());const value=decl.slice(idx+1).trim();if(prop&&value)style[prop]=value}}let markClass;if(style.backgroundColor&&!style.color){style.color=style.backgroundColor.includes("--highlight-")?"var(--highlight-fg, inherit)":"var(--site-base-fg, inherit)";markClass="[&_a]:text-inherit"}return{className:[built.className,markClass].filter(Boolean).join(" ")||void 0,style:built.style?style:void 0}}function renderPhrasing(nodes,keyPrefix,overrides={}){return(nodes??[]).map((node2,index2)=>{const key=`${keyPrefix}-${index2}`;const inner=()=>renderPhrasing(node2.children,key,overrides);if(node2.type==="text")return jsx2(React.Fragment,{children:node2.value},key);if(node2.type==="strong")return jsx2("strong",{children:inner()},key);if(node2.type==="emphasis")return jsx2("em",{children:inner()},key);if(node2.type==="delete")return jsx2("del",{children:inner()},key);if(node2.type==="underline")return jsx2("u",{children:inner()},key);if(node2.type==="inlineCode"){return jsx2("code",{className:"bg-zinc-100 text-zinc-800 dark:bg-zinc-800 dark:text-zinc-100 rounded px-1.5 py-0.5 font-mono text-sm",children:node2.value},key)}if(node2.type==="inlineStyle"){const styled=styleOf(node2.params);return jsx2("span",{className:styled.className,style:styled.style,children:inner()},key)}if(node2.type==="break")return jsx2("br",{},key);if(node2.type==="link"){if(overrides.link)return overrides.link(node2,key,inner());const url=node2.url??"";if(!isAllowedArticleMarkdownHref(url))return jsx2("span",{children:inner()},key);return jsx2("a",{href:url,...isExternalArticleMarkdownHref(url)?{target:"_blank",rel:"noopener noreferrer"}:{},className:"text-[var(--site-accent-text,var(--brand-text,var(--brand-color)))] underline font-medium hover:opacity-80 break-words",children:inner()},key)}if(node2.type==="image")return overrides.image?overrides.image(node2,key):null;if(node2.children)return jsx2(React.Fragment,{children:inner()},key);return null})}function renderListItem(item,key,renderBlocks){const children=item.children??[];const[first,...rest]=children;if(first?.type==="paragraph"){return jsxs2("li",{children:[renderPhrasing(first.children,key),rest.length>0&&renderBlocks(rest)]},key)}return jsx2("li",{children:renderBlocks(children)},key)}function renderBodyBlocks(nodes){return(nodes??[]).map((node2,index2)=>{const key=`b-${index2}`;if(node2.type==="paragraph"){return jsx2("p",{className:"break-words",children:renderPhrasing(node2.children,key)},key)}if(node2.type==="list"&&node2.ordered){return jsx2("ol",{className:"list-decimal list-outside pl-6 space-y-1 break-words",children:(node2.children??[]).map((item,itemIndex)=>renderListItem(item,`${key}-${itemIndex}`,renderBodyBlocks))},key)}if(node2.type==="list"){return jsx2("ul",{className:"list-disc list-outside pl-6 space-y-1 break-words",children:(node2.children??[]).map((item,itemIndex)=>renderListItem(item,`${key}-${itemIndex}`,renderBodyBlocks))},key)}if(node2.type==="blockquote"){return jsx2("blockquote",{className:"border-l-4 border-[var(--site-accent-text,var(--brand-text,var(--brand-color)))] pl-4 italic text-[var(--site-fg-muted,#71717a)]",children:renderBodyBlocks(node2.children)},key)}if(node2.type==="code"){return jsx2("pre",{className:"bg-zinc-100 dark:bg-zinc-800 rounded-[var(--site-radius-lg,0.5rem)] p-4 font-mono text-sm leading-6 overflow-x-auto whitespace-pre-wrap text-zinc-700 dark:text-zinc-300",children:jsx2("code",{children:node2.value})},key)}return null})}function RichTextView({content:content3,profile,className,blockClassName="space-y-2"}){if(!content3)return null;const applied=applyProfile(parseMarkdown(content3,profile).tree,profile);if(profile==="inline"){const paragraph2=applied.tree.children?.[0];return jsx2(Fragment2,{children:renderPhrasing(paragraph2?.children,"i")})}if(!applied.tree.children?.length)return null;return jsx2("div",{className:cn("site-body-text break-words min-w-0",blockClassName,className),children:renderBodyBlocks(applied.tree.children)})}var ARTICLE_CONTENT_STYLES={h1:"text-[length:var(--heading-h1-size,36px)] @vp-lg/article:text-[length:var(--heading-h1-size-lg,48px)] leading-[var(--heading-h1-lh,1.25)] font-[number:var(--heading-h1-fw,700)] tracking-[var(--heading-h1-ls,-0.025em)]",h2:"text-[length:var(--heading-h2-size,30px)] @vp-md/article:text-[length:var(--heading-h2-size-lg,36px)] leading-[var(--heading-h2-lh,1.25)] font-[number:var(--heading-h2-fw,700)] tracking-[var(--heading-h2-ls,0em)]",h3:"text-[length:var(--heading-h3-size,24px)] @vp-md/article:text-[length:var(--heading-h3-size-lg,30px)] leading-[var(--heading-h3-lh,1.25)] font-[number:var(--heading-h3-fw,700)] tracking-[var(--heading-h3-ls,0em)]",h4:"text-[length:var(--heading-h4-size,22px)] @vp-md/article:text-[length:var(--heading-h4-size-lg,27px)] leading-[var(--heading-h4-lh,1.3)] font-[number:var(--heading-h4-fw,600)] tracking-[var(--heading-h4-ls,0em)]",h5:"text-[length:var(--heading-h5-size,20px)] @vp-md/article:text-[length:var(--heading-h5-size-lg,24px)] leading-[var(--heading-h5-lh,1.4)] font-[number:var(--heading-h5-fw,600)] tracking-[var(--heading-h5-ls,0em)]",h6:"text-[length:var(--heading-h6-size,18px)] @vp-md/article:text-[length:var(--heading-h6-size-lg,21px)] leading-[var(--heading-h6-lh,1.5)] font-[number:var(--heading-h6-fw,500)] tracking-[var(--heading-h6-ls,0em)]",body:"text-[length:var(--body-size,16px)] @vp-md/article:text-[length:var(--body-size-lg,18px)] leading-[var(--body-lh,1.625)] font-[number:var(--body-fw,400)] tracking-[var(--body-ls,0em)]"};import{Fragment as Fragment3,jsx as jsx3,jsxs as jsxs3}from"react/jsx-runtime";function plainTextOf(node2){if(!node2)return"";if(node2.type==="text")return node2.value??"";return(node2.children??[]).map(plainTextOf).join("")}var ARTICLE_OVERRIDES={link(node2,key,children){const href=node2.url??"";if(!isAllowedArticleMarkdownHref(href)){return jsx3("span",{className:"text-[var(--site-accent-text,var(--brand-text,var(--brand-color)))] font-medium",children},key)}return jsx3("a",{href,className:"text-[var(--site-accent-text,var(--brand-text,var(--brand-color)))] underline font-medium hover:opacity-80",...isExternalArticleMarkdownHref(href)?{target:"_blank",rel:"noopener noreferrer"}:{},children},key)},image(node2,key){const rawSize=node2.data?.hProperties?.["data-size"];const rawAlign=node2.data?.hProperties?.["data-align"];const layout={size:isImageSize(rawSize)?rawSize:DEFAULT_IMAGE_LAYOUT.size,align:isImageAlign(rawAlign)?rawAlign:DEFAULT_IMAGE_LAYOUT.align};return jsx3(SiteImage,{src:node2.url??"",responsive:true,explicitAlt:node2.alt??void 0,altType:"article-image",title:node2.title??void 0,className:`block rounded-[var(--site-radius-media)] my-5 h-auto ${imageLayoutClassName(layout)}`},key)}};function renderArticlePhrasing(nodes,keyPrefix){return renderPhrasing(nodes,keyPrefix,ARTICLE_OVERRIDES)}function renderTable(node2,key){const rows=node2.children??[];const[headerRow,...bodyRows]=rows;return jsx3("div",{className:"article-table-scroll overflow-x-auto",children:jsxs3("table",{children:[headerRow&&jsx3("thead",{children:jsx3("tr",{children:(headerRow.children??[]).map((cell,cellIndex)=>jsx3("th",{children:renderArticlePhrasing(cell.children,`${key}-h-${cellIndex}`)},cellIndex))})}),jsx3("tbody",{children:bodyRows.map((row,rowIndex)=>jsx3("tr",{children:(row.children??[]).map((cell,cellIndex)=>jsx3("td",{children:renderArticlePhrasing(cell.children,`${key}-${rowIndex}-${cellIndex}`)},cellIndex))},rowIndex))})]})},key)}function renderListItems(items,keyPrefix,assignId){return items.map((item,index2)=>{const key=`${keyPrefix}-${index2}`;const isTask=typeof item.checked==="boolean";const contentNodes=(item.children??[]).flatMap(child=>child.type==="paragraph"?child.children??[]:[]);const blockChildren=(item.children??[]).filter(child=>child.type!=="paragraph");if(isTask){return jsxs3("li",{className:"flex items-start gap-2",children:[jsx3("span",{role:"checkbox","aria-checked":item.checked??false,"aria-disabled":"true",className:"mt-1.5 inline-block size-4 shrink-0 rounded-sm border text-center text-xs leading-4 "+TONE_BORDER_STRONG,children:item.checked?"\u2713":""}),jsx3("span",{children:renderArticlePhrasing(contentNodes,key)})]},key)}return jsxs3("li",{children:[renderArticlePhrasing(contentNodes,key),blockChildren.length>0&&renderArticleBlocks(blockChildren,assignId)]},key)})}function renderArticleBlocks(nodes,assignId){return(nodes??[]).map((node2,index2)=>{const key=`a-${index2}`;if(node2.type==="paragraph"){return jsx3("p",{className:`${ARTICLE_CONTENT_STYLES.body} mb-4 ${TONE_TEXT_BODY}`,children:renderArticlePhrasing(node2.children,key)},key)}if(node2.type==="heading"){const level=node2.depth===1?2:node2.depth??2;const id=assignId(plainTextOf(node2));const Tag=`h${level}`;const styleKey=`h${level}`;const className=level<=3?`${ARTICLE_CONTENT_STYLES[styleKey]} ${level===2?"mt-8 mb-4":"mt-6 mb-3"} text-[var(--site-fg,#18181b)] scroll-mt-24`:`${ARTICLE_CONTENT_STYLES[styleKey]} mt-5 mb-2 text-[var(--site-fg,#18181b)]`;return jsx3(Tag,{id,className,children:renderArticlePhrasing(node2.children,key)},key)}if(node2.type==="list"&&node2.ordered){return jsx3("ol",{className:`list-decimal list-outside pl-6 space-y-2 my-5 ${ARTICLE_CONTENT_STYLES.body} ${TONE_TEXT_BODY}`,children:renderListItems(node2.children??[],key,assignId)},key)}if(node2.type==="list"){const hasTask=(node2.children??[]).some(item=>typeof item.checked==="boolean");return jsx3("ul",{className:hasTask?`list-none pl-0 space-y-2 my-5 ${ARTICLE_CONTENT_STYLES.body} ${TONE_TEXT_BODY}`:`list-disc list-outside pl-6 space-y-2 my-5 ${ARTICLE_CONTENT_STYLES.body} ${TONE_TEXT_BODY}`,children:renderListItems(node2.children??[],key,assignId)},key)}if(node2.type==="blockquote"){return jsx3("blockquote",{className:`border-l-4 border-[var(--site-accent-text,var(--brand-text,var(--brand-color)))] pl-4 italic ${ARTICLE_CONTENT_STYLES.body} text-[var(--site-fg-muted,#71717a)] my-5`,children:renderArticleBlocks(node2.children,assignId)},key)}if(node2.type==="code"){return jsx3("pre",{className:"bg-zinc-100 dark:bg-zinc-800 rounded-[var(--site-radius-lg)] p-4 font-mono text-sm leading-6 my-5 overflow-x-auto whitespace-pre-wrap text-zinc-700 dark:text-zinc-300",children:jsx3("code",{children:node2.value})},key)}if(node2.type==="thematicBreak"){return jsx3("hr",{className:"my-6 border-[var(--site-border,#e4e4e7)]"},key)}if(node2.type==="table")return renderTable(node2,key);if(node2.type==="image"||node2.type==="link"){return jsx3(React2.Fragment,{children:renderArticlePhrasing([node2],key)},key)}return null})}function ArticleInlineRichText({content:content3}){const applied=applyProfile(parseMarkdown(content3,"article").tree,"article");const paragraph2=applied.tree.children?.find(node2=>node2.type==="paragraph");return jsx3(Fragment3,{children:renderArticlePhrasing(paragraph2?.children,"ai")})}function renderArticleRichText(content3,assignId){const applied=applyProfile(parseMarkdown(content3,"article").tree,"article");if(!applied.tree.children?.length)return null;return jsx3(Fragment3,{children:renderArticleBlocks(applied.tree.children,assignId)})}function ArticleRichText({content:content3,assignId}){return jsx3(Fragment3,{children:renderArticleRichText(content3,assignId)})}function slugify(text6){return text6.toString().toLowerCase().trim().replace(/\s+/g,"-").replace(/[^\p{L}\p{N}-]/gu,"").replace(/-+/g,"-").replace(/^-|-$/g,"")}function plainFromTree(node2){if(node2.type==="inlineCode"||node2.type==="code")return node2.value??"";if(node2.type==="text")return node2.value??"";if(node2.type==="image")return node2.alt??"";if(node2.type==="break")return"\n";if(node2.type==="kanorioDirective")return"";const inner=(node2.children??[]).map(plainFromTree).join("");if(node2.type==="paragraph"||node2.type==="heading"||node2.type==="listItem"||node2.type==="blockquote"){return inner}if(node2.type==="list"||node2.type==="root"||node2.type==="table"){return(node2.children??[]).map(plainFromTree).filter(part=>part.trim()).join(node2.type==="root"?"\n":" ")}return inner}function toPlainText(markdown,profile="body"){if(!markdown)return"";const parsed=parseMarkdown(markdown,profile);const applied=applyProfile(parsed.tree,profile==="inline"?"inline":"body");const text6=plainFromTree(applied.tree).replace(/[ \t]+\n/g,"\n").replace(/\n{3,}/g,"\n\n");if(profile==="inline"||profile==="plain")return text6.replace(/\s+/g," ").trim();return text6.trim()}function inlineMarkdownToPlainText(text6,_opts){return toPlainText(text6,"inline")}var GALLERY_SHORTCODE_REGEX=/:::gallery(?:[ \t]+cols="(\d)")?[ \t]*\n([\s\S]*?)\n?:::/g;var CTA_MULTILINE_REGEX=/:::cta[ \t]*([^\n]*)\n([\s\S]*?)\n:::/g;var CTA_LEGACY_REGEX=/:::cta[ \t]+([^\n]+?):::/g;var FAQ_SHORTCODE_REGEX=/:::faq\s+([\s\S]+?):::/g;var EMBED_SHORTCODE_REGEX=/:::embed\s+url="([^"]+)"(?:\s+type="([^"]+)")?:::/g;var AUDIO_SHORTCODE_REGEX=/:::audio\s+src="([^"]+)"(?:\s+title="([^"]*)")?:::/g;var PDF_SHORTCODE_REGEX=/:::pdf\s+((?:[a-zA-Z][\w-]*="(?:\\.|[^"\\])*"\s*)+):::/g;var FILE_SHORTCODE_REGEX=/:::file\s+((?:[a-zA-Z][\w-]*="(?:\\.|[^"\\])*"\s*)+):::/g;var TOGGLE_SHORTCODE_REGEX=/:::toggle(?:\s+title="([^"]*)")?\n([\s\S]*?)\n:::/g;var CALLOUT_SHORTCODE_REGEX=/:::callout([ \t]+[^\n]*)?\n([\s\S]*?)\n:::/g;var MEDIA_PLACEHOLDER_REGEX=/:::media\s+type="[^"]+":::/g;function normalizeQuotes(s){return s.replace(/\u201C/g,'"').replace(/\u201D/g,'"').replace(/\u2018/g,"'").replace(/\u2019/g,"'")}var SHORTCODE_ATTR_REGEX=/\s*([a-zA-Z][\w-]*)="((?:\\.|[^"\\])*)"/g;function unescapeShortcodeAttr(value){return value.replace(/\\(["\\n])/g,(_match,ch)=>{if(ch==="n")return"\n";return ch})}function parseShortcodeAttrs(attrsLine){const attrs=new Map;SHORTCODE_ATTR_REGEX.lastIndex=0;let match;while((match=SHORTCODE_ATTR_REGEX.exec(attrsLine))!==null){attrs.set(match[1],unescapeShortcodeAttr(match[2]))}return attrs}function parseCtaAttrs(attrsLine,content3){const attrs=parseShortcodeAttrs(normalizeQuotes(attrsLine));const slug=attrs.get("slug");const button=attrs.get("button");const url=attrs.get("url");const trimmedContent=content3.trim();if(slug){return{type:"preset",slug,content:trimmedContent}}if(button&&url){return{type:"custom",buttonText:button,href:url,content:trimmedContent}}if(trimmedContent){return{type:"custom",content:trimmedContent,buttonText:button,href:url}}return null}function parseCtaLegacy(inner){const attrs=parseShortcodeAttrs(normalizeQuotes(inner));const slug=attrs.get("slug");const title=attrs.get("title");const subtitle=attrs.get("subtitle");const button=attrs.get("button");const url=attrs.get("url");const parts=[];if(title)parts.push(`**${title}**`);if(subtitle)parts.push(subtitle);const content3=parts.join("\n\n");if(title&&button&&url){return{type:"custom",content:content3,buttonText:button,href:url}}if(slug&&!title){return{type:"preset",slug,content:content3}}return null}function parseFaqBody(body){const trimmed=body.trim();if(!trimmed)return[];const items=[];const h2Regex=/^##\s+(.+)$/gm;let match;let prevQuestion=null;let prevAnswerStart=0;while((match=h2Regex.exec(trimmed))!==null){const question=match[1].trim();const answerStart=match.index+match[0].length;const answerEnd=match.index;if(prevQuestion!==null){items.push({question:prevQuestion,answer:trimmed.slice(prevAnswerStart,answerEnd).trim()})}prevQuestion=question;prevAnswerStart=answerStart}if(prevQuestion!==null){items.push({question:prevQuestion,answer:trimmed.slice(prevAnswerStart).trim()})}return items}function parseFaqInner(inner){const normalized=normalizeQuotes(inner);const firstNewline=normalized.indexOf("\n");const firstLine=firstNewline>=0?normalized.slice(0,firstNewline):normalized;const looksLikeAttrsLine=!firstLine.trimStart().startsWith("##");const title=looksLikeAttrsLine?firstLine.trim().match(/title="([^"]*)"/)?.[1]?.trim()||void 0:void 0;const body=looksLikeAttrsLine?firstNewline>=0?normalized.slice(firstNewline+1):"":normalized;const items=parseFaqBody(body);if(items.length===0)return null;return{title,items}}function splitToggle(content3){const segments=[];let lastIndex=0;TOGGLE_SHORTCODE_REGEX.lastIndex=0;let match;while((match=TOGGLE_SHORTCODE_REGEX.exec(content3))!==null){const before=content3.slice(lastIndex,match.index);if(before)segments.push({type:"markdown",value:before});const title=match[1]||"Toggle";const toggleContent=match[2]?.trim()||"";segments.push({type:"toggle",config:{title,content:toggleContent}});lastIndex=TOGGLE_SHORTCODE_REGEX.lastIndex}const after=content3.slice(lastIndex);if(after)segments.push({type:"markdown",value:after});if(segments.length===0)segments.push({type:"markdown",value:content3});return segments}function normalizeCalloutTone(raw){const t=(raw??"info").trim().toLowerCase();if(t==="warning"||t==="warn")return"warning";if(t==="tip"||t==="important"||t==="success")return"tip";if(t==="danger"||t==="error"||t==="caution")return"danger";return"info"}function splitCallout(content3){const segments=[];let lastIndex=0;let matched=false;CALLOUT_SHORTCODE_REGEX.lastIndex=0;let match;while((match=CALLOUT_SHORTCODE_REGEX.exec(content3))!==null){matched=true;const before=content3.slice(lastIndex,match.index);if(before)segments.push({type:"markdown",value:before});const attrs=parseShortcodeAttrs(normalizeQuotes(match[1]??""));const tone=normalizeCalloutTone(attrs.get("tone")??attrs.get("type"));const title=attrs.get("title")?.trim()||void 0;const body=(match[2]??"").trim();if(body||title){segments.push({type:"callout",config:{tone,...title?{title}:{},content:body}})}lastIndex=CALLOUT_SHORTCODE_REGEX.lastIndex}const after=content3.slice(lastIndex);if(after)segments.push({type:"markdown",value:after});if(segments.length===0&&!matched)segments.push({type:"markdown",value:content3});return segments}function splitGallery(content3){const segments=[];let lastIndex=0;let matched=false;GALLERY_SHORTCODE_REGEX.lastIndex=0;let match;while((match=GALLERY_SHORTCODE_REGEX.exec(content3))!==null){matched=true;const before=content3.slice(lastIndex,match.index);if(before)segments.push({type:"markdown",value:before});const cols=parseGalleryCols(match[1]);const items=[];for(const line of(match[2]??"").split("\n")){const parsed=parseImageLine(line);if(parsed)items.push({src:parsed.src,alt:parsed.alt})}if(items.length>0){segments.push({type:"gallery",config:{cols,items}})}lastIndex=GALLERY_SHORTCODE_REGEX.lastIndex}const after=content3.slice(lastIndex);if(after)segments.push({type:"markdown",value:after});if(segments.length===0&&!matched){segments.push({type:"markdown",value:content3})}return segments}function splitEmbed(content3){const segments=[];let lastIndex=0;EMBED_SHORTCODE_REGEX.lastIndex=0;let match;while((match=EMBED_SHORTCODE_REGEX.exec(content3))!==null){const before=content3.slice(lastIndex,match.index);if(before)segments.push({type:"markdown",value:before});const url=match[1];const embedType=match[2]||"generic";segments.push({type:"embed",config:{url,embedType}});lastIndex=EMBED_SHORTCODE_REGEX.lastIndex}const after=content3.slice(lastIndex);if(after)segments.push({type:"markdown",value:after});if(segments.length===0)segments.push({type:"markdown",value:content3});return segments}function splitAudio(content3){const segments=[];let lastIndex=0;AUDIO_SHORTCODE_REGEX.lastIndex=0;let match;while((match=AUDIO_SHORTCODE_REGEX.exec(content3))!==null){const before=content3.slice(lastIndex,match.index);if(before)segments.push({type:"markdown",value:before});const src=match[1];const title=match[2]||void 0;segments.push({type:"audio",config:{src,title}});lastIndex=AUDIO_SHORTCODE_REGEX.lastIndex}const after=content3.slice(lastIndex);if(after)segments.push({type:"markdown",value:after});if(segments.length===0)segments.push({type:"markdown",value:content3});return segments}function splitPdf(content3){const segments=[];let lastIndex=0;PDF_SHORTCODE_REGEX.lastIndex=0;let match;while((match=PDF_SHORTCODE_REGEX.exec(content3))!==null){const before=content3.slice(lastIndex,match.index);if(before)segments.push({type:"markdown",value:before});const attrs=parseShortcodeAttrs(match[1]??"");const src=attrs.get("src");if(src){const pageCount=Number.parseInt(attrs.get("pages")??"",10);const display=attrs.get("display");segments.push({type:"pdf",config:{src,title:attrs.get("title")||void 0,pageCount:Number.isFinite(pageCount)&&pageCount>0?pageCount:void 0,thumbnailUrl:attrs.get("thumb")||void 0,assetId:attrs.get("asset")||void 0,display:display==="card"?"card":void 0}})}lastIndex=PDF_SHORTCODE_REGEX.lastIndex}const after=content3.slice(lastIndex);if(after)segments.push({type:"markdown",value:after});if(segments.length===0)segments.push({type:"markdown",value:content3});return segments}function splitFile(content3){const segments=[];let lastIndex=0;let matched=false;FILE_SHORTCODE_REGEX.lastIndex=0;let match;while((match=FILE_SHORTCODE_REGEX.exec(content3))!==null){matched=true;const before=content3.slice(lastIndex,match.index);if(before)segments.push({type:"markdown",value:before});const attrs=parseShortcodeAttrs(match[1]??"");const assetId=attrs.get("asset");const name=attrs.get("name");if(assetId&&name){const size=Number.parseInt(attrs.get("size")??"",10);segments.push({type:"file",config:{assetId,name,size:Number.isFinite(size)&&size>0?size:void 0,mimeType:attrs.get("type")||void 0}})}lastIndex=FILE_SHORTCODE_REGEX.lastIndex}const after=content3.slice(lastIndex);if(after)segments.push({type:"markdown",value:after});if(segments.length===0&&!matched)segments.push({type:"markdown",value:content3});return segments}function splitCtaLegacy(content3){const segments=[];let lastIndex=0;CTA_LEGACY_REGEX.lastIndex=0;let match;while((match=CTA_LEGACY_REGEX.exec(content3))!==null){const before=content3.slice(lastIndex,match.index);if(before)segments.push({type:"markdown",value:before});const config=parseCtaLegacy(match[1]);if(config)segments.push({type:"cta",config});lastIndex=CTA_LEGACY_REGEX.lastIndex}const after=content3.slice(lastIndex);if(after)segments.push({type:"markdown",value:after});return segments}function splitCta(content3){const segments=[];let lastIndex=0;let matched=false;CTA_MULTILINE_REGEX.lastIndex=0;let match;while((match=CTA_MULTILINE_REGEX.exec(content3))!==null){matched=true;const before=content3.slice(lastIndex,match.index);if(before)segments.push(...splitCtaLegacy(before));const config=parseCtaAttrs(match[1]??"",match[2]??"");if(config)segments.push({type:"cta",config});lastIndex=CTA_MULTILINE_REGEX.lastIndex}const after=content3.slice(lastIndex);if(after)segments.push(...splitCtaLegacy(after));if(segments.length===0&&!matched){segments.push({type:"markdown",value:content3})}return segments}function parseArticleSegments(content3){content3=content3.replace(MEDIA_PLACEHOLDER_REGEX,"");if(!content3.trim())return[];const out=[];let lastIndex=0;FAQ_SHORTCODE_REGEX.lastIndex=0;let match;const SPLITTERS=[splitToggle,splitCallout,splitGallery,splitEmbed,splitAudio,splitPdf,splitFile,splitCta];const pushMarkdown=md=>{if(!md)return;const run=(value,depth)=>{const splitter=SPLITTERS[depth];if(!splitter){if(value.trim())out.push({type:"markdown",value});return}for(const seg of splitter(value)){if(seg.type==="markdown")run(seg.value,depth+1);else out.push(seg)}};run(md,0)};while((match=FAQ_SHORTCODE_REGEX.exec(content3))!==null){const before=content3.slice(lastIndex,match.index);pushMarkdown(before);const config=parseFaqInner(match[1]);if(config)out.push({type:"faq",config});lastIndex=FAQ_SHORTCODE_REGEX.lastIndex}pushMarkdown(content3.slice(lastIndex));return out}function generateHeadingId(text6){return slugify(text6)}function stripInlineMarkdown(text6){return inlineMarkdownToPlainText(text6,{underscoreEmphasis:true})}function createHeadingIdAssigner(){const seen=new Set;return text6=>{const label=stripInlineMarkdown(text6);let id=generateHeadingId(label);if(seen.has(id)){let suffix=1;while(seen.has(`${id}-${suffix}`))suffix++;id=`${id}-${suffix}`}seen.add(id);return id}}var ctaStyles={container:"site-card-scope rounded-[var(--site-radius-card)] bg-zinc-100 dark:bg-zinc-800 p-8 shadow-lg text-center",content:"text-zinc-700 dark:text-zinc-200 leading-relaxed [&_p]:my-1.5 [&_strong]:text-zinc-900 dark:[&_strong]:text-zinc-50 [&_ul]:list-disc [&_ul]:pl-5 [&_ul]:text-left [&_ul]:my-2 [&_ol]:list-decimal [&_ol]:pl-5 [&_ol]:text-left [&_ol]:my-2 [&_a]:text-[var(--brand-text,var(--brand-color))] [&_a]:underline",contentSpacing:"mb-6",button:"inline-flex items-center justify-center gap-2 rounded-[var(--site-radius-button)] bg-[var(--brand-color)] px-6 @vp-md/article:px-8 py-3 min-h-[44px] text-base font-bold text-[var(--brand-foreground)] shadow-md transition-all duration-200 hover:scale-[1.02] hover:shadow-lg active:scale-[0.98]"};import{jsx as jsx4,jsxs as jsxs4}from"react/jsx-runtime";function UserCtaShortcodeBlock({config,presets}){let buttonText;let href;if(config.type==="preset"){const preset=config.slug?presets?.[config.slug]:void 0;if(preset){buttonText=preset.label;href=preset.href}}else{buttonText=config.buttonText;href=config.href}const hasContent=Boolean(config.content?.trim());const hasButton=Boolean(buttonText&&href);if(!hasContent&&!hasButton)return null;const isExternal=href?/^https?:\/\//.test(href):false;return jsxs4("div",{className:ctaStyles.container,children:[hasContent&&jsx4("div",{className:`${ctaStyles.content}${hasButton?` ${ctaStyles.contentSpacing}`:""}`,children:jsx4(ArticleRichText,{content:config.content,assignId:createHeadingIdAssigner()})}),hasButton&&href&&jsx4("a",{href,className:ctaStyles.button,"data-cta-track":"","data-cta-button-name":buttonText,"data-cta-element-id":"blog-article-cta",...isExternal?{target:"_blank",rel:"noopener noreferrer"}:{},children:buttonText})]})}import{jsx as jsx5,jsxs as jsxs5}from"react/jsx-runtime";function UserFaqShortcodeBlock({config}){if(config.items.length===0)return null;const assignId=createHeadingIdAssigner();return jsxs5("section",{className:"my-6 space-y-4",children:[config.title&&jsx5("h2",{className:"text-2xl font-bold text-[var(--site-fg,#18181b)] mb-2",children:config.title}),config.items.map((item,i)=>jsxs5("div",{className:"my-4",children:[jsxs5("div",{className:"flex items-start gap-2 text-[var(--site-fg,#18181b)]",children:[jsx5("span",{className:"shrink-0 mt-0.5 w-5 h-5 rounded bg-emerald-100 dark:bg-emerald-900/40 flex items-center justify-center text-emerald-700 dark:text-emerald-300 text-[10px] font-bold",children:"Q"}),jsx5("span",{className:"flex-1 min-w-0",children:jsx5(ArticleInlineRichText,{content:item.question})})]}),jsxs5("div",{className:"mt-1 flex items-start gap-2",children:[jsx5("span",{className:"shrink-0 mt-0.5 w-5 h-5 rounded bg-blue-100 dark:bg-blue-900/40 flex items-center justify-center text-blue-700 dark:text-blue-300 text-[10px] font-bold",children:"A"}),jsx5("div",{className:"flex-1 min-w-0 [&>*:first-child]:mt-0 [&>*:last-child]:mb-0",children:jsx5(ArticleRichText,{content:item.answer,assignId})})]})]},i))]})}var HOSTED_MEDIA_HOST="media.kanorio.com";var HOSTED_VIDEO_PATH=/\.(mp4|webm|mov)$/i;function isHostedVideoUrl(url){try{const parsed=new URL(url);return parsed.hostname===HOSTED_MEDIA_HOST&&HOSTED_VIDEO_PATH.test(parsed.pathname)}catch{return false}}function getEmbedUrl(url,embedType){switch(embedType){case"youtube":{const match=url.match(/(?:youtube\.com\/(?:watch\?v=|embed\/)|youtu\.be\/)([a-zA-Z0-9_-]{11})/);return match?`https://www.youtube.com/embed/${match[1]}`:null}case"vimeo":{const match=url.match(/vimeo\.com\/(?:video\/)?(\d+)/);return match?`https://player.vimeo.com/video/${match[1]}`:null}case"figma":{return url.includes("embed")?url:`https://www.figma.com/embed?embed_host=share&url=${encodeURIComponent(url)}`}case"codepen":{const match=url.match(/codepen\.io\/([^/]+)\/(?:pen|full)\/([^/?]+)/);return match?`https://codepen.io/${match[1]}/embed/${match[2]}?default-tab=result`:null}case"google-maps":{if(url.includes("/embed"))return url;return null}default:return url}}import{jsx as jsx6}from"react/jsx-runtime";var VideoPlayer=onDemand(()=>import("./VideoPlayer-FWZF4DQK.js").then(m=>m.VideoPlayer),({failed})=>jsx6("div",{className:"aspect-video w-full rounded-lg bg-black/5 dark:bg-white/5","aria-busy":failed?void 0:"true"}));function EmbedBlock({url,embedType}){const{ui}=useSiteLabels();const facts=useMediaFacts({url});if(isHostedVideoUrl(url)){return jsx6("div",{className:"my-6 not-prose",children:jsx6(VideoPlayer,{src:url,hlsSrc:facts?.hls,thumbnails:facts?.thumbnails,streamingPartial:facts?.streamingPartial,captions:facts?.captions,chapters:facts?.chapters,storageKey:url,poster:facts?.cover})})}const embedUrl=getEmbedUrl(url,embedType);if(!embedUrl){return jsx6("div",{className:"my-6 p-4 rounded-[var(--site-radius-media)] border border-zinc-200 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-800/50",children:jsx6("p",{className:"text-sm text-zinc-500 dark:text-zinc-400",children:fillLabel(ui.embedLoadFailed,{url})})})}return jsx6("div",{className:"my-6 rounded-[var(--site-radius-media)] overflow-hidden",children:jsx6("div",{className:"aspect-video bg-zinc-900",children:jsx6("iframe",{src:embedUrl,className:"w-full h-full",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:true,loading:"lazy"})})})}import{jsx as jsx7}from"react/jsx-runtime";var AudioPlayer=onDemand(()=>import("./AudioPlayer-S7YF7A2E.js").then(m=>m.AudioPlayer),({failed})=>jsx7("div",{className:"h-20 w-full rounded-lg bg-black/5 dark:bg-white/5","aria-busy":failed?void 0:"true"}));function AudioBlock({src,title}){const displayTitle=title||src.split("/").pop()?.replace(/\.[^.]+$/,"")||"";const facts=useMediaFacts({url:src});return jsx7("div",{className:"my-6 not-prose",children:jsx7(AudioPlayer,{src,title:displayTitle,storageKey:src,coverImage:facts?.cover,captions:facts?.captions,chapters:facts?.chapters})})}import{jsx as jsx8}from"react/jsx-runtime";function fileAttachmentDownloadUrl(apiBase,websiteId,assetId,name){if(!websiteId)return"";const base=`${apiBase??""}/api/public/sites/${encodeURIComponent(websiteId)}/assets/${encodeURIComponent(assetId)}/download`;return name?`${base}?name=${encodeURIComponent(name)}`:base}function FileAttachmentBlock({assetId,name,size,mimeType,apiBase,websiteId}){const facts=useMediaFacts({assetId});const shownName=displayFileName(name,facts);return jsx8("div",{className:"my-6 not-prose",children:jsx8(FileDownloadCard,{name:shownName,size:facts?.size??size,mimeType:facts?.mime??mimeType,href:fileAttachmentDownloadUrl(apiBase,websiteId,assetId,shownName)})})}import{jsx as jsx9}from"react/jsx-runtime";function PdfBlock({src,title,pageCount,thumbnailUrl,assetId,display,apiBase,websiteId}){const facts=useMediaFacts({url:src,assetId});const{protection}=useMediaProtection();const fileName=title||src.split("/").pop()?.replace(/\.[^.]+$/,"")||void 0;const downloadUrl=assetId&&fileAttachmentDownloadUrl(apiBase,websiteId,assetId,fileName)||src;return jsx9("div",{className:"my-6 not-prose",children:jsx9(PDFViewer,{src,thumbnailUrl:facts?.cover??thumbnailUrl,thumbnailAlt:fileName,fileName,pageCount:facts?.pages??pageCount,allowDownload:protection.allowDownload,downloadUrl,variant:display==="card"?"card":"preview"})})}import{useState as useState2}from"react";import{jsx as jsx10}from"react/jsx-runtime";function InlineRichText({content:content3}){return jsx10(RichTextView,{content:content3,profile:"inline"})}import{jsx as jsx11,jsxs as jsxs6}from"react/jsx-runtime";function ToggleBlock({title,children,defaultOpen=true}){const[isOpen,setIsOpen]=useState2(defaultOpen);return jsxs6("div",{className:"toggle-block my-4",children:[jsxs6("button",{type:"button",onClick:()=>setIsOpen(!isOpen),className:"flex items-start gap-1 w-full text-left",children:[jsx11("span",{className:"shrink-0 mt-1 p-0.5 rounded transition-colors "+TONE_BG_TINT_STRONG_HOVER,children:jsx11(ChevronDown,{className:`w-4 h-4 ${TONE_TEXT_SUBTLE} transition-transform ${isOpen?"":"-rotate-90"}`})}),jsx11("span",{className:"flex-1 min-w-0 "+TONE_TEXT_BODY,children:jsx11(InlineRichText,{content:title})})]}),isOpen&&jsx11("div",{className:"pl-6 [&>*:last-child]:mb-0",children})]})}import{jsx as jsx12}from"react/jsx-runtime";function GalleryBlock({config}){if(config.items.length===0)return null;return jsx12("div",{className:`my-5 grid items-start gap-3 ${GALLERY_COLS_CLASS[config.cols]}`,"data-gallery-cols":config.cols,children:config.items.map((item,i)=>jsx12(SiteImage,{src:item.src,responsive:true,sizes:`(min-width: 1024px) ${Math.round(60/config.cols)}vw, (min-width: 640px) ${Math.round(100/config.cols)}vw, 100vw`,alt:item.alt,className:"block h-auto w-full rounded-[var(--site-radius-media)]"},`${item.src}-${i}`))})}import{jsx as jsx13,jsxs as jsxs7}from"react/jsx-runtime";var TONE_COLOR={info:"var(--brand-color, #2563eb)",tip:"#16a34a",warning:"#d97706",danger:"#dc2626"};function CalloutBlock({tone,title,children}){const style={borderRadius:"var(--site-radius-card, 12px)",borderLeft:`4px solid ${TONE_COLOR[tone]}`,background:"var(--site-card-bg, color-mix(in srgb, currentColor 6%, transparent))"};return jsxs7("aside",{className:"callout-block site-card-scope my-6 px-5 py-4 [&>*:last-child]:mb-0","data-callout-tone":tone,style,children:[title&&jsx13("p",{className:"mb-1.5 font-semibold",style:{color:TONE_COLOR[tone]},children:title}),children]})}import{Fragment as Fragment5,jsx as jsx14,jsxs as jsxs8}from"react/jsx-runtime";function coalesceFaqSegments(segments){const out=[];for(const segment of segments){const prev=out[out.length-1];if(segment.type==="faq"&&prev&&prev.type==="faq"){out[out.length-1]={type:"faq",config:{title:prev.config.title,items:[...prev.config.items,...segment.config.items]}}}else{out.push(segment)}}return out}var HIGHLIGHT_DARK_VARS=`
1
+ import{Input}from"./chunk-W32ZFOPN.js";import{FileDownloadCard,MediaPlayer,PDFViewer}from"./chunk-UDNUWN4W.js";import"./chunk-JREL5347.js";import"./chunk-CUQUEGX2.js";import"./chunk-S7FE2XRA.js";import"./chunk-ZDU7A7WZ.js";import"./chunk-F5NEDREL.js";import{deliverablePlayerLabels}from"./chunk-MC63CLSM.js";import"./chunk-63XJWMJG.js";import{AuthorList}from"./chunk-5G3PQI25.js";import"./chunk-RG5JA44V.js";import"./chunk-FFAWYDLJ.js";import{onDemand}from"./chunk-E77WGXYW.js";import"./chunk-C7HUM2EN.js";import"./chunk-TEUQV3AT.js";import{TONE_BG_TINT_STRONG_HOVER,TONE_BORDER_STRONG,TONE_TEXT_BODY,TONE_TEXT_SUBTLE}from"./chunk-RKEHHJDU.js";import{formatFileSize}from"./chunk-4BEKWYEW.js";import{formatParenthetical,separatorsFor}from"./chunk-OIKRLEW6.js";import{MediaFactsProvider,SiteImage,useMediaFacts}from"./chunk-L66F3USG.js";import{displayFileName,useMediaProtection}from"./chunk-L3BUSP27.js";import"./chunk-O2SYHUQF.js";import{ArrowLeft,Award,Check,ChevronDown,ChevronLeft,Circle,CircleCheck,CirclePlay,CircleX,Download,ExternalLink,FileText,List,Lock,PanelLeft,Paperclip,RotateCw,Search,Settings2,X}from"./chunk-33AQQY6T.js";import{cn}from"./chunk-VUTODQFX.js";import{fillLabel}from"./chunk-KNNN5V3T.js";import"./chunk-763LNERD.js";import{useSiteLabels}from"./chunk-U7H3W23Q.js";import{__commonJS,__export,__toESM}from"./chunk-3ZTUZPSD.js";var require_extend=__commonJS({"../../node_modules/.pnpm/extend@3.0.2/node_modules/extend/index.js"(exports,module){"use strict";var hasOwn=Object.prototype.hasOwnProperty;var toStr=Object.prototype.toString;var defineProperty=Object.defineProperty;var gOPD=Object.getOwnPropertyDescriptor;var isArray=function isArray2(arr){if(typeof Array.isArray==="function"){return Array.isArray(arr)}return toStr.call(arr)==="[object Array]"};var isPlainObject2=function isPlainObject3(obj){if(!obj||toStr.call(obj)!=="[object Object]"){return false}var hasOwnConstructor=hasOwn.call(obj,"constructor");var hasIsPrototypeOf=obj.constructor&&obj.constructor.prototype&&hasOwn.call(obj.constructor.prototype,"isPrototypeOf");if(obj.constructor&&!hasOwnConstructor&&!hasIsPrototypeOf){return false}var key;for(key in obj){}return typeof key==="undefined"||hasOwn.call(obj,key)};var setProperty=function setProperty2(target,options){if(defineProperty&&options.name==="__proto__"){defineProperty(target,options.name,{enumerable:true,configurable:true,value:options.newValue,writable:true})}else{target[options.name]=options.newValue}};var getProperty=function getProperty2(obj,name){if(name==="__proto__"){if(!hasOwn.call(obj,name)){return void 0}else if(gOPD){return gOPD(obj,name).value}}return obj[name]};module.exports=function extend2(){var options,name,src,copy,copyIsArray,clone;var target=arguments[0];var i=1;var length=arguments.length;var deep=false;if(typeof target==="boolean"){deep=target;target=arguments[1]||{};i=2}if(target==null||typeof target!=="object"&&typeof target!=="function"){target={}}for(;i<length;++i){options=arguments[i];if(options!=null){for(name in options){src=getProperty(target,name);copy=getProperty(options,name);if(target!==copy){if(deep&&copy&&(isPlainObject2(copy)||(copyIsArray=isArray(copy)))){if(copyIsArray){copyIsArray=false;clone=src&&isArray(src)?src:[]}else{clone=src&&isPlainObject2(src)?src:{}}setProperty(target,{name,newValue:extend2(deep,clone,copy)})}else if(typeof copy!=="undefined"){setProperty(target,{name,newValue:copy})}}}}}return target}}});import{useCallback,useEffect as useEffect2,useMemo as useMemo2,useRef as useRef2,useState as useState3}from"react";import{useEffect,useMemo,useRef,useState}from"react";import{Fragment,jsx,jsxs}from"react/jsx-runtime";var BORDER="border-[var(--site-border,rgba(0,0,0,0.1))]";var SURFACE="bg-[var(--site-surface,#ffffff)]";var MUTED="text-[var(--site-fg-muted,#71717a)]";var FG="text-[var(--site-fg,#18181b)]";var CHIP="inline-flex min-h-9 items-center rounded-full border px-3 text-xs";function fill(template,values){return template.replace(/\{(\w+)\}/g,(_m,key)=>String(values[key]??""))}function formatTime(seconds){const total=Math.max(0,Math.floor(seconds));const h=Math.floor(total/3600);const m=Math.floor(total%3600/60);const s=total%60;const mm=h>0?String(m).padStart(2,"0"):String(m);return`${h>0?`${h}:`:""}${mm}:${String(s).padStart(2,"0")}`}function languageName(locale,uiLocale){try{return new Intl.DisplayNames([uiLocale],{type:"language"}).of(locale)??locale}catch{return locale}}function activeSegmentIndex(segments,time){let lo=0;let hi=segments.length-1;let hit=-1;while(lo<=hi){const mid=lo+hi>>1;if(segments[mid].s<=time){hit=mid;lo=mid+1}else hi=mid-1}return hit}function highlight(text6,query){if(!query)return text6;const lower=text6.toLowerCase();const needle=query.toLowerCase();const parts=[];let from=0;for(;;){const at=lower.indexOf(needle,from);if(at===-1)break;if(at>from)parts.push(text6.slice(from,at));parts.push(jsx("mark",{className:"rounded-sm bg-yellow-200 px-0.5 text-inherit dark:bg-yellow-500/40",children:text6.slice(at,at+needle.length)},at));from=at+needle.length}if(from<text6.length)parts.push(text6.slice(from));return parts}function TranscriptPanel({labels,open,onToggle,status,data,activeIndex,onSeek,onLocaleChange,onRetry,uiLocale,fileName,className}){const[query,setQuery]=useState("");const[follow,setFollow]=useState(true);const listRef=useRef(null);const trimmed=query.trim();const matches=useMemo(()=>{if(!data||!trimmed)return null;const needle=trimmed.toLowerCase();return data.segments.map((seg,index2)=>seg.t.toLowerCase().includes(needle)?index2:-1).filter(i=>i>=0)},[data,trimmed]);const visible=matches??(data?data.segments.map((_seg,index2)=>index2):[]);useEffect(()=>{if(!open||!follow||matches||activeIndex<0)return;const list3=listRef.current;const row=list3?.querySelector(`[data-index="${activeIndex}"]`);if(!list3||!row)return;const top=row.offsetTop-list3.offsetTop;const bottom=top+row.offsetHeight;if(top<list3.scrollTop||bottom>list3.scrollTop+list3.clientHeight)list3.scrollTo({top:Math.max(0,top-list3.clientHeight/3),behavior:"smooth"})},[activeIndex,open,follow,matches]);const download=()=>{if(!data)return;const blob=new Blob([data.segments.map(seg=>seg.t).join("\n")],{type:"text/plain;charset=utf-8"});const url=URL.createObjectURL(blob);const a=document.createElement("a");a.href=url;a.download=`${fileName||"transcript"}.${data.locale}.txt`;document.body.appendChild(a);a.click();a.remove();setTimeout(()=>URL.revokeObjectURL(url),1e3)};const trackLabel=track=>{const name=languageName(track.locale,uiLocale);if(track.edited)return name;if(track.source==="ai")return formatParenthetical(uiLocale,name,labels.transcriptAutoGenerated);if(track.source==="translation")return formatParenthetical(uiLocale,name,labels.transcriptAutoTranslated);return name};return jsxs("section",{className:cn("rounded-[var(--site-radius-card,0.75rem)] border",BORDER,SURFACE,className),"aria-label":labels.transcript,"data-kanorio-transcript":true,children:[jsxs("button",{type:"button",onClick:()=>onToggle(!open),"aria-expanded":open,className:cn("flex min-h-12 w-full items-center gap-2 px-3 text-left text-sm font-semibold",FG),children:[jsx(FileText,{className:cn("h-4 w-4 shrink-0",MUTED),"aria-hidden":"true"}),jsx("span",{className:"min-w-0 flex-1 truncate",children:labels.transcript}),jsx("span",{className:cn("text-xs font-normal",MUTED),children:open?labels.transcriptHide:labels.transcriptShow}),jsx(ChevronDown,{className:cn("h-4 w-4 shrink-0 transition-transform",MUTED,open&&"rotate-180"),"aria-hidden":"true"})]}),open&&jsx("div",{className:cn("border-t",BORDER),children:status==="loading"||status==="idle"?jsx("div",{className:"space-y-2 p-3","aria-busy":"true",children:[0,1,2].map(i=>jsx("div",{className:"h-4 animate-pulse rounded bg-black/5 dark:bg-white/10",style:{width:`${80-i*15}%`}},i))}):status==="error"||!data?jsxs("div",{role:"alert",className:cn("flex flex-col items-center gap-2 p-6 text-center text-sm",MUTED),children:[jsx("p",{children:labels.loadError}),jsxs("button",{type:"button",onClick:onRetry,className:cn(CHIP,BORDER,FG),children:[jsx(RotateCw,{className:"mr-1 h-3.5 w-3.5","aria-hidden":"true"})," ",labels.retry]})]}):jsxs(Fragment,{children:[jsxs("div",{className:"flex flex-wrap items-center gap-2 p-3",children:[jsxs("label",{className:"relative min-w-40 flex-1",children:[jsx(Search,{className:cn("pointer-events-none absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2",MUTED),"aria-hidden":"true"}),jsx(Input,{type:"search",value:query,onChange:e=>setQuery(e.target.value),placeholder:labels.transcriptSearch,"aria-label":labels.transcriptSearch,className:"h-10 pl-9"})]}),jsx("button",{type:"button",onClick:()=>setFollow(v=>!v),"aria-pressed":follow,className:cn(CHIP,BORDER,follow?FG:MUTED,follow&&"bg-black/5 dark:bg-white/10"),children:labels.transcriptFollow}),jsxs("button",{type:"button",onClick:download,className:cn(CHIP,BORDER,FG),children:[jsx(Download,{className:"mr-1 h-3.5 w-3.5","aria-hidden":"true"})," ",labels.transcriptDownload]})]}),data.tracks.length>1&&jsx("div",{className:"flex flex-wrap items-center gap-2 px-3 pb-3",role:"group","aria-label":labels.transcriptLanguage,children:data.tracks.map(track=>jsx("button",{type:"button",onClick:()=>onLocaleChange(track.locale),"aria-pressed":track.locale===data.locale,lang:track.locale,className:cn(CHIP,BORDER,track.locale===data.locale?cn(FG,"bg-black/5 dark:bg-white/10"):MUTED),children:trackLabel(track)},track.locale))}),matches&&jsx("p",{className:cn("px-3 pb-2 text-xs",MUTED),role:"status",children:matches.length>0?fill(labels.transcriptMatches,{count:matches.length}):labels.transcriptNoResults}),jsx("ol",{ref:listRef,className:"max-h-80 overflow-y-auto px-2 pb-2",lang:data.locale,children:visible.map(index2=>{const seg=data.segments[index2];const active=index2===activeIndex;return jsx("li",{"data-index":index2,children:jsxs("button",{type:"button",onClick:()=>onSeek(seg.s),"aria-current":active?"true":void 0,className:cn("flex w-full gap-3 rounded-[var(--site-radius-button,0.5rem)] px-2 py-1.5 text-left text-sm hover:bg-black/5 dark:hover:bg-white/10",active?cn(FG,"bg-black/5 font-medium dark:bg-white/10"):FG),children:[jsx("span",{className:cn("w-11 shrink-0 pt-0.5 font-mono text-xs tabular-nums",MUTED),children:formatTime(seg.s)}),jsx("span",{className:"min-w-0 flex-1 leading-relaxed",children:highlight(seg.t,trimmed)})]})},index2)})})]})})]})}function classifyDevice(input){if(input.width<768)return"mobile";if(input.coarsePointer&&input.width<1024)return"tablet";return"desktop"}import{Fragment as Fragment4}from"react";import React2 from"react";var DANGEROUS_PROTOCOLS=["javascript:","data:","vbscript:","file:","blob:","about:"];function isAllowedArticleMarkdownHref(href){const trimmed=href.trim();if(!trimmed)return false;const lower=trimmed.toLowerCase();for(const protocol of DANGEROUS_PROTOCOLS){if(lower.startsWith(protocol))return false}if(lower.startsWith("https://")||lower.startsWith("http://")||lower.startsWith("mailto:")||lower.startsWith("tel:")){return true}if(trimmed.startsWith("//"))return false;if(trimmed.startsWith("#")||trimmed.startsWith("?")){return true}if(trimmed.startsWith("/")){return true}const colonIdx=trimmed.indexOf(":");const slashIdx=trimmed.indexOf("/");if(colonIdx!==-1&&(slashIdx===-1||colonIdx<slashIdx)){return false}return true}function isExternalArticleMarkdownHref(href){const lower=href.trim().toLowerCase();return lower.startsWith("https://")||lower.startsWith("http://")}var PHRASING=new Set(["text","strong","emphasis","delete","inlineCode","link","break","underline","inlineStyle","image"]);function isPhrasing(node2){return PHRASING.has(node2.type)}function linkAllowed(url,profile){const trimmed=url.trim();if(!isAllowedArticleMarkdownHref(trimmed))return false;if(profile!=="email")return true;const lower=trimmed.toLowerCase();return lower.startsWith("http://")||lower.startsWith("https://")||lower.startsWith("mailto:")||lower.startsWith("tel:")}var HTML_BREAK_RE=/^\s*<br\s*\/?>\s*$/i;function unwrapStrong(nodes){const out=[];for(const node2 of nodes??[]){if(node2.type==="strong"){out.push(...unwrapStrong(node2.children));continue}out.push(node2.children?{...node2,children:unwrapStrong(node2.children)}:node2)}return out}function footnoteToText(node2,changes){changes.push({from:node2.type,to:"text"});const id=node2.label??node2.identifier??"";if(node2.type==="footnoteReference")return{type:"text",value:`(${id})`};const inner=(node2.children??[]).flatMap(child=>child.type==="paragraph"?child.children??[]:[child]);return{type:"paragraph",children:[{type:"text",value:`(${id}) `},...inner]}}function mapList(nodes,profile,changes){const out=[];for(const node2 of nodes??[]){const mapped=transformNode(node2,profile,changes);if(mapped)out.push(mapped)}return out}function headingToParagraph(node2){const hasContent=(node2.children??[]).some(child=>plainTextLength(child)>0);if(!hasContent)return{type:"paragraph",children:[]};return{type:"paragraph",children:[{type:"strong",children:unwrapStrong(node2.children)}]}}function plainTextLength(node2){if(node2.type==="text")return(node2.value??"").trim().length;return(node2.children??[]).reduce((sum,child)=>sum+plainTextLength(child),0)}function tableToList(node2){const rows=node2.children??[];const headerCells=(rows[0]?.children??[]).map(cell=>cellText(cell));const body=rows.length>1?rows.slice(1):rows;return{type:"list",ordered:false,spread:false,children:body.map(row=>({type:"listItem",spread:false,children:[{type:"paragraph",children:rowToPhrasing(row,rows.length>1?headerCells:null)}]}))}}function cellText(cell){const parts=[];const walk2=node2=>{if(node2.type==="text"&&node2.value)parts.push(node2.value);for(const child of node2.children??[])walk2(child)};walk2(cell);return parts.join("").trim()}function rowToPhrasing(row,headers){const cells=row.children??[];const out=[];const separators=separatorsFor([...headers??[],...cells.map(cell=>cellText(cell))].join(""));cells.forEach((cell,index2)=>{if(out.length>0)out.push({type:"text",value:separators.item});const header=headers?.[index2];if(header)out.push({type:"text",value:`${header}${separators.labelValue}`});out.push(...cell.children??[])});return out.length>0?out:[{type:"text",value:""}]}function transformNode(node2,profile,changes){if(node2.type==="html"){if(HTML_BREAK_RE.test(node2.value??"")){changes.push({from:"html",to:"break"});return{type:"break"}}changes.push({from:"html",to:"removed"});return null}if(node2.type==="yaml"||node2.type==="definition"){changes.push({from:node2.type,to:"removed"});return null}if(node2.type==="footnoteReference"||node2.type==="footnoteDefinition"){return footnoteToText(node2,changes)}if(node2.type==="link"&&!linkAllowed(node2.url??"",profile)){changes.push({from:"link",to:"text"});return{type:"text",value:cellText(node2)||node2.url||""}}if(profile==="article"){if(node2.type==="heading"&&node2.depth===1){changes.push({from:"heading",to:"heading"});return{...node2,depth:2,children:mapList(node2.children,profile,changes)}}return node2.children?{...node2,children:mapList(node2.children,profile,changes)}:node2}if(node2.type==="kanorioDirective"){changes.push({from:"directive",to:"removed"});return null}if(node2.type==="image"&&(profile==="inline"||profile==="body"||profile==="plain")){changes.push({from:"image",to:"removed"});return null}if(profile==="email"&&node2.type==="heading"){const depth=!node2.depth||node2.depth<=2?2:3;if(depth!==node2.depth)changes.push({from:"heading",to:"heading"});return{...node2,depth,children:mapList(node2.children,profile,changes)}}if((profile==="body"||profile==="plain"||profile==="inline")&&node2.type==="heading"){changes.push({from:"heading",to:"strong"});return headingToParagraph(node2)}if((profile==="body"||profile==="plain"||profile==="inline"||profile==="email")&&node2.type==="table"){changes.push({from:"table",to:"list"});return tableToList(node2)}if((profile==="body"||profile==="inline"||profile==="plain")&&(node2.type==="thematicBreak"||node2.type==="code"&&profile==="inline")){changes.push({from:node2.type,to:profile==="inline"?"text":"removed"});if(profile==="inline"&&node2.type==="code"){return{type:"paragraph",children:[{type:"text",value:node2.value??""}]}}return null}if(profile==="email"&&node2.type==="thematicBreak"){changes.push({from:"thematicBreak",to:"removed"});return null}return node2.children?{...node2,children:mapList(node2.children,profile,changes)}:node2}function flattenInline(nodes,changes){const out=[];const space=()=>{const last=out[out.length-1];if(!last)return;if(last.type==="text"&&last.value?.endsWith(" "))return;out.push({type:"text",value:" "})};const absorb=list3=>{for(const node2 of list3){if(isPhrasing(node2)&&node2.type!=="image"){if(node2.type==="text"&&node2.value){out.push({...node2,value:node2.value.replace(/[\r\n]+/g," ")})}else if(node2.type!=="image"){out.push(node2.children?{...node2,children:flattenInline(node2.children,changes)}:node2)}continue}if(node2.type==="image"||node2.type==="kanorioDirective"){changes.push({from:node2.type==="image"?"image":"directive",to:"removed"});continue}if(out.length>0)space();if(node2.type==="code"){changes.push({from:"code",to:"text"});out.push({type:"text",value:(node2.value??"").replace(/[\r\n]+/g," ")});continue}if(node2.type==="list"){node2.children?.forEach((item,index2)=>{if(out.length>0)space();out.push({type:"text",value:node2.ordered?`${(node2.start??1)+index2}. `:"- "});absorb(item.children??[])});continue}absorb(node2.children??[])}};absorb(nodes);return out.filter(node2=>node2.type!=="text"||node2.value!=="")}function stripLeadingBullets(paragraph2){const first=paragraph2.children?.[0];if(first?.type!=="text"||!first.value)return;first.value=first.value.replace(/^(?:\s*[•·])+\s*/,"");if(!first.value)paragraph2.children?.shift()}function trimPhrasingEdge(nodes,side){if(!nodes||nodes.length===0)return;const index2=side==="start"?0:nodes.length-1;const node2=nodes[index2];if(!node2)return;if(node2.type==="text"&&typeof node2.value==="string"){node2.value=side==="start"?node2.value.replace(/^\s+/,""):node2.value.replace(/\s+$/,"");return}if(node2.children)trimPhrasingEdge(node2.children,side)}function trimBlockEdges(node2){if(node2.type==="paragraph"||node2.type==="heading"){trimPhrasingEdge(node2.children,"start");trimPhrasingEdge(node2.children,"end")}for(const child of node2.children??[])trimBlockEdges(child)}var UNCLOSED_WITH_UNDERSCORE=/\*{2,}|__|~~|\+\+|\{s:[a-z0-9=;]*\}?|\{\/s\}|\{size:\d*\}?|\{\/size\}/g;var UNCLOSED_NO_UNDERSCORE=/\*{2,}|~~|\+\+|\{s:[a-z0-9=;]*\}?|\{\/s\}|\{size:\d*\}?|\{\/size\}/g;function stripUnclosed(node2,changes,profile){const pattern=profile==="inline"||profile==="body"?UNCLOSED_NO_UNDERSCORE:UNCLOSED_WITH_UNDERSCORE;if(node2.type==="text"&&node2.value){const next=node2.value.replace(pattern,"");if(next!==node2.value){changes.push({from:"unclosed-marker",to:"text"});node2.value=next}}for(const child of node2.children??[])stripUnclosed(child,changes,profile)}var BLOCK_CONTAINERS=new Set(["root","blockquote","listItem","list"]);function dropBlockLevelBreaks(node2){if(!node2.children)return;if(BLOCK_CONTAINERS.has(node2.type)){node2.children=node2.children.filter(child=>child.type!=="break")}for(const child of node2.children)dropBlockLevelBreaks(child)}function breaksToSpaces(nodes){return nodes.map(node2=>{if(node2.type==="break")return{type:"text",value:" "};return node2.children?{...node2,children:breaksToSpaces(node2.children)}:node2})}function compactText(node2){if(!node2.children)return;const out=[];for(const child of node2.children){compactText(child);if(child.type==="text"){if(!child.value)continue;const last=out[out.length-1];if(last?.type==="text"){last.value=(last.value??"")+child.value;continue}out.push({type:"text",value:child.value});continue}if(EMPTYABLE_INLINE.has(child.type)&&(child.children?.length??0)===0)continue;if(child.type==="paragraph"&&(child.children?.length??0)===0)continue;out.push(child)}node2.children=out}var EMPTYABLE_INLINE=new Set(["strong","emphasis","delete","underline","inlineStyle","link"]);function applyProfile(tree,profile){const changes=[];if(profile==="plain"){const asBody=applyProfile(tree,"body");return asBody}const mapped={type:"root",children:mapList(tree.children,profile,changes)};stripUnclosed(mapped,changes,profile);const next=profile==="inline"?{type:"root",children:[{type:"paragraph",children:breaksToSpaces(flattenInline(mapped.children??[],changes))}]}:mapped;dropBlockLevelBreaks(next);trimBlockEdges(next);compactText(next);if(profile==="inline"&&next.children?.[0]){stripLeadingBullets(next.children[0]);trimBlockEdges(next)}return{tree:next,changes}}function bail(error){if(error){throw error}}var import_extend=__toESM(require_extend(),1);function ok(){}function isPlainObject(value){if(typeof value!=="object"||value===null){return false}const prototype=Object.getPrototypeOf(value);return(prototype===null||prototype===Object.prototype||Object.getPrototypeOf(prototype)===null)&&!(Symbol.toStringTag in value)&&!(Symbol.iterator in value)}function trough(){const fns=[];const pipeline={run,use};return pipeline;function run(...values){let middlewareIndex=-1;const callback=values.pop();if(typeof callback!=="function"){throw new TypeError("Expected function as last argument, not "+callback)}next(null,...values);function next(error,...output){const fn=fns[++middlewareIndex];let index2=-1;if(error){callback(error);return}while(++index2<values.length){if(output[index2]===null||output[index2]===void 0){output[index2]=values[index2]}}values=output;if(fn){wrap(fn,next)(...output)}else{callback(null,...output)}}}function use(middelware){if(typeof middelware!=="function"){throw new TypeError("Expected `middelware` to be a function, not "+middelware)}fns.push(middelware);return pipeline}}function wrap(middleware,callback){let called;return wrapped;function wrapped(...parameters){const fnExpectsCallback=middleware.length>parameters.length;let result;if(fnExpectsCallback){parameters.push(done)}try{result=middleware.apply(this,parameters)}catch(error){const exception=error;if(fnExpectsCallback&&called){throw exception}return done(exception)}if(!fnExpectsCallback){if(result&&result.then&&typeof result.then==="function"){result.then(then,done)}else if(result instanceof Error){done(result)}else{then(result)}}}function done(error,...output){if(!called){called=true;callback(error,...output)}}function then(value){done(null,value)}}function stringifyPosition(value){if(!value||typeof value!=="object"){return""}if("position"in value||"type"in value){return position(value.position)}if("start"in value||"end"in value){return position(value)}if("line"in value||"column"in value){return point(value)}return""}function point(point3){return index(point3&&point3.line)+":"+index(point3&&point3.column)}function position(pos){return point(pos&&pos.start)+"-"+point(pos&&pos.end)}function index(value){return value&&typeof value==="number"?value:1}var VFileMessage=class extends Error{constructor(causeOrReason,optionsOrParentOrPlace,origin){super();if(typeof optionsOrParentOrPlace==="string"){origin=optionsOrParentOrPlace;optionsOrParentOrPlace=void 0}let reason="";let options={};let legacyCause=false;if(optionsOrParentOrPlace){if("line"in optionsOrParentOrPlace&&"column"in optionsOrParentOrPlace){options={place:optionsOrParentOrPlace}}else if("start"in optionsOrParentOrPlace&&"end"in optionsOrParentOrPlace){options={place:optionsOrParentOrPlace}}else if("type"in optionsOrParentOrPlace){options={ancestors:[optionsOrParentOrPlace],place:optionsOrParentOrPlace.position}}else{options={...optionsOrParentOrPlace}}}if(typeof causeOrReason==="string"){reason=causeOrReason}else if(!options.cause&&causeOrReason){legacyCause=true;reason=causeOrReason.message;options.cause=causeOrReason}if(!options.ruleId&&!options.source&&typeof origin==="string"){const index2=origin.indexOf(":");if(index2===-1){options.ruleId=origin}else{options.source=origin.slice(0,index2);options.ruleId=origin.slice(index2+1)}}if(!options.place&&options.ancestors&&options.ancestors){const parent=options.ancestors[options.ancestors.length-1];if(parent){options.place=parent.position}}const start=options.place&&"start"in options.place?options.place.start:options.place;this.ancestors=options.ancestors||void 0;this.cause=options.cause||void 0;this.column=start?start.column:void 0;this.fatal=void 0;this.file="";this.message=reason;this.line=start?start.line:void 0;this.name=stringifyPosition(options.place)||"1:1";this.place=options.place||void 0;this.reason=this.message;this.ruleId=options.ruleId||void 0;this.source=options.source||void 0;this.stack=legacyCause&&options.cause&&typeof options.cause.stack==="string"?options.cause.stack:"";this.actual=void 0;this.expected=void 0;this.note=void 0;this.url=void 0}};VFileMessage.prototype.file="";VFileMessage.prototype.name="";VFileMessage.prototype.reason="";VFileMessage.prototype.message="";VFileMessage.prototype.stack="";VFileMessage.prototype.column=void 0;VFileMessage.prototype.line=void 0;VFileMessage.prototype.ancestors=void 0;VFileMessage.prototype.cause=void 0;VFileMessage.prototype.fatal=void 0;VFileMessage.prototype.place=void 0;VFileMessage.prototype.ruleId=void 0;VFileMessage.prototype.source=void 0;var minpath={basename,dirname,extname,join,sep:"/"};function basename(path2,extname2){if(extname2!==void 0&&typeof extname2!=="string"){throw new TypeError('"ext" argument must be a string')}assertPath(path2);let start=0;let end=-1;let index2=path2.length;let seenNonSlash;if(extname2===void 0||extname2.length===0||extname2.length>path2.length){while(index2--){if(path2.codePointAt(index2)===47){if(seenNonSlash){start=index2+1;break}}else if(end<0){seenNonSlash=true;end=index2+1}}return end<0?"":path2.slice(start,end)}if(extname2===path2){return""}let firstNonSlashEnd=-1;let extnameIndex=extname2.length-1;while(index2--){if(path2.codePointAt(index2)===47){if(seenNonSlash){start=index2+1;break}}else{if(firstNonSlashEnd<0){seenNonSlash=true;firstNonSlashEnd=index2+1}if(extnameIndex>-1){if(path2.codePointAt(index2)===extname2.codePointAt(extnameIndex--)){if(extnameIndex<0){end=index2}}else{extnameIndex=-1;end=firstNonSlashEnd}}}}if(start===end){end=firstNonSlashEnd}else if(end<0){end=path2.length}return path2.slice(start,end)}function dirname(path2){assertPath(path2);if(path2.length===0){return"."}let end=-1;let index2=path2.length;let unmatchedSlash;while(--index2){if(path2.codePointAt(index2)===47){if(unmatchedSlash){end=index2;break}}else if(!unmatchedSlash){unmatchedSlash=true}}return end<0?path2.codePointAt(0)===47?"/":".":end===1&&path2.codePointAt(0)===47?"//":path2.slice(0,end)}function extname(path2){assertPath(path2);let index2=path2.length;let end=-1;let startPart=0;let startDot=-1;let preDotState=0;let unmatchedSlash;while(index2--){const code3=path2.codePointAt(index2);if(code3===47){if(unmatchedSlash){startPart=index2+1;break}continue}if(end<0){unmatchedSlash=true;end=index2+1}if(code3===46){if(startDot<0){startDot=index2}else if(preDotState!==1){preDotState=1}}else if(startDot>-1){preDotState=-1}}if(startDot<0||end<0||preDotState===0||preDotState===1&&startDot===end-1&&startDot===startPart+1){return""}return path2.slice(startDot,end)}function join(...segments){let index2=-1;let joined;while(++index2<segments.length){assertPath(segments[index2]);if(segments[index2]){joined=joined===void 0?segments[index2]:joined+"/"+segments[index2]}}return joined===void 0?".":normalize(joined)}function normalize(path2){assertPath(path2);const absolute=path2.codePointAt(0)===47;let value=normalizeString(path2,!absolute);if(value.length===0&&!absolute){value="."}if(value.length>0&&path2.codePointAt(path2.length-1)===47){value+="/"}return absolute?"/"+value:value}function normalizeString(path2,allowAboveRoot){let result="";let lastSegmentLength=0;let lastSlash=-1;let dots=0;let index2=-1;let code3;let lastSlashIndex;while(++index2<=path2.length){if(index2<path2.length){code3=path2.codePointAt(index2)}else if(code3===47){break}else{code3=47}if(code3===47){if(lastSlash===index2-1||dots===1){}else if(lastSlash!==index2-1&&dots===2){if(result.length<2||lastSegmentLength!==2||result.codePointAt(result.length-1)!==46||result.codePointAt(result.length-2)!==46){if(result.length>2){lastSlashIndex=result.lastIndexOf("/");if(lastSlashIndex!==result.length-1){if(lastSlashIndex<0){result="";lastSegmentLength=0}else{result=result.slice(0,lastSlashIndex);lastSegmentLength=result.length-1-result.lastIndexOf("/")}lastSlash=index2;dots=0;continue}}else if(result.length>0){result="";lastSegmentLength=0;lastSlash=index2;dots=0;continue}}if(allowAboveRoot){result=result.length>0?result+"/..":"..";lastSegmentLength=2}}else{if(result.length>0){result+="/"+path2.slice(lastSlash+1,index2)}else{result=path2.slice(lastSlash+1,index2)}lastSegmentLength=index2-lastSlash-1}lastSlash=index2;dots=0}else if(code3===46&&dots>-1){dots++}else{dots=-1}}return result}function assertPath(path2){if(typeof path2!=="string"){throw new TypeError("Path must be a string. Received "+JSON.stringify(path2))}}var minproc={cwd};function cwd(){return"/"}function isUrl(fileUrlOrPath){return Boolean(fileUrlOrPath!==null&&typeof fileUrlOrPath==="object"&&"href"in fileUrlOrPath&&fileUrlOrPath.href&&"protocol"in fileUrlOrPath&&fileUrlOrPath.protocol&&fileUrlOrPath.auth===void 0)}function urlToPath(path2){if(typeof path2==="string"){path2=new URL(path2)}else if(!isUrl(path2)){const error=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+path2+"`");error.code="ERR_INVALID_ARG_TYPE";throw error}if(path2.protocol!=="file:"){const error=new TypeError("The URL must be of scheme file");error.code="ERR_INVALID_URL_SCHEME";throw error}return getPathFromURLPosix(path2)}function getPathFromURLPosix(url){if(url.hostname!==""){const error=new TypeError('File URL host must be "localhost" or empty on darwin');error.code="ERR_INVALID_FILE_URL_HOST";throw error}const pathname=url.pathname;let index2=-1;while(++index2<pathname.length){if(pathname.codePointAt(index2)===37&&pathname.codePointAt(index2+1)===50){const third=pathname.codePointAt(index2+2);if(third===70||third===102){const error=new TypeError("File URL path must not include encoded / characters");error.code="ERR_INVALID_FILE_URL_PATH";throw error}}}return decodeURIComponent(pathname)}var order=["history","path","basename","stem","extname","dirname"];var VFile=class{constructor(value){let options;if(!value){options={}}else if(isUrl(value)){options={path:value}}else if(typeof value==="string"||isUint8Array(value)){options={value}}else{options=value}this.cwd="cwd"in options?"":minproc.cwd();this.data={};this.history=[];this.messages=[];this.value;this.map;this.result;this.stored;let index2=-1;while(++index2<order.length){const field2=order[index2];if(field2 in options&&options[field2]!==void 0&&options[field2]!==null){this[field2]=field2==="history"?[...options[field2]]:options[field2]}}let field;for(field in options){if(!order.includes(field)){this[field]=options[field]}}}get basename(){return typeof this.path==="string"?minpath.basename(this.path):void 0}set basename(basename2){assertNonEmpty(basename2,"basename");assertPart(basename2,"basename");this.path=minpath.join(this.dirname||"",basename2)}get dirname(){return typeof this.path==="string"?minpath.dirname(this.path):void 0}set dirname(dirname2){assertPath2(this.basename,"dirname");this.path=minpath.join(dirname2||"",this.basename)}get extname(){return typeof this.path==="string"?minpath.extname(this.path):void 0}set extname(extname2){assertPart(extname2,"extname");assertPath2(this.dirname,"extname");if(extname2){if(extname2.codePointAt(0)!==46){throw new Error("`extname` must start with `.`")}if(extname2.includes(".",1)){throw new Error("`extname` cannot contain multiple dots")}}this.path=minpath.join(this.dirname,this.stem+(extname2||""))}get path(){return this.history[this.history.length-1]}set path(path2){if(isUrl(path2)){path2=urlToPath(path2)}assertNonEmpty(path2,"path");if(this.path!==path2){this.history.push(path2)}}get stem(){return typeof this.path==="string"?minpath.basename(this.path,this.extname):void 0}set stem(stem){assertNonEmpty(stem,"stem");assertPart(stem,"stem");this.path=minpath.join(this.dirname||"",stem+(this.extname||""))}fail(causeOrReason,optionsOrParentOrPlace,origin){const message=this.message(causeOrReason,optionsOrParentOrPlace,origin);message.fatal=true;throw message}info(causeOrReason,optionsOrParentOrPlace,origin){const message=this.message(causeOrReason,optionsOrParentOrPlace,origin);message.fatal=void 0;return message}message(causeOrReason,optionsOrParentOrPlace,origin){const message=new VFileMessage(causeOrReason,optionsOrParentOrPlace,origin);if(this.path){message.name=this.path+":"+message.name;message.file=this.path}message.fatal=false;this.messages.push(message);return message}toString(encoding){if(this.value===void 0){return""}if(typeof this.value==="string"){return this.value}const decoder=new TextDecoder(encoding||void 0);return decoder.decode(this.value)}};function assertPart(part,name){if(part&&part.includes(minpath.sep)){throw new Error("`"+name+"` cannot be a path: did not expect `"+minpath.sep+"`")}}function assertNonEmpty(part,name){if(!part){throw new Error("`"+name+"` cannot be empty")}}function assertPath2(path2,name){if(!path2){throw new Error("Setting `"+name+"` requires `path` to be set too")}}function isUint8Array(value){return Boolean(value&&typeof value==="object"&&"byteLength"in value&&"byteOffset"in value)}var CallableInstance=(function(property){const self=this;const constr=self.constructor;const proto=constr.prototype;const value=proto[property];const apply=function(){return value.apply(apply,arguments)};Object.setPrototypeOf(apply,proto);return apply});var own={}.hasOwnProperty;var Processor=class _Processor extends CallableInstance{constructor(){super("copy");this.Compiler=void 0;this.Parser=void 0;this.attachers=[];this.compiler=void 0;this.freezeIndex=-1;this.frozen=void 0;this.namespace={};this.parser=void 0;this.transformers=trough()}copy(){const destination=new _Processor;let index2=-1;while(++index2<this.attachers.length){const attacher=this.attachers[index2];destination.use(...attacher)}destination.data((0,import_extend.default)(true,{},this.namespace));return destination}data(key,value){if(typeof key==="string"){if(arguments.length===2){assertUnfrozen("data",this.frozen);this.namespace[key]=value;return this}return own.call(this.namespace,key)&&this.namespace[key]||void 0}if(key){assertUnfrozen("data",this.frozen);this.namespace=key;return this}return this.namespace}freeze(){if(this.frozen){return this}const self=this;while(++this.freezeIndex<this.attachers.length){const[attacher,...options]=this.attachers[this.freezeIndex];if(options[0]===false){continue}if(options[0]===true){options[0]=void 0}const transformer=attacher.call(self,...options);if(typeof transformer==="function"){this.transformers.use(transformer)}}this.frozen=true;this.freezeIndex=Number.POSITIVE_INFINITY;return this}parse(file){this.freeze();const realFile=vfile(file);const parser=this.parser||this.Parser;assertParser("parse",parser);return parser(String(realFile),realFile)}process(file,done){const self=this;this.freeze();assertParser("process",this.parser||this.Parser);assertCompiler("process",this.compiler||this.Compiler);return done?executor(void 0,done):new Promise(executor);function executor(resolve,reject){const realFile=vfile(file);const parseTree=self.parse(realFile);self.run(parseTree,realFile,function(error,tree,file2){if(error||!tree||!file2){return realDone(error)}const compileTree=tree;const compileResult=self.stringify(compileTree,file2);if(looksLikeAValue(compileResult)){file2.value=compileResult}else{file2.result=compileResult}realDone(error,file2)});function realDone(error,file2){if(error||!file2){reject(error)}else if(resolve){resolve(file2)}else{ok(done,"`done` is defined if `resolve` is not");done(void 0,file2)}}}}processSync(file){let complete=false;let result;this.freeze();assertParser("processSync",this.parser||this.Parser);assertCompiler("processSync",this.compiler||this.Compiler);this.process(file,realDone);assertDone("processSync","process",complete);ok(result,"we either bailed on an error or have a tree");return result;function realDone(error,file2){complete=true;bail(error);result=file2}}run(tree,file,done){assertNode(tree);this.freeze();const transformers=this.transformers;if(!done&&typeof file==="function"){done=file;file=void 0}return done?executor(void 0,done):new Promise(executor);function executor(resolve,reject){ok(typeof file!=="function","`file` can\u2019t be a `done` anymore, we checked");const realFile=vfile(file);transformers.run(tree,realFile,realDone);function realDone(error,outputTree,file2){const resultingTree=outputTree||tree;if(error){reject(error)}else if(resolve){resolve(resultingTree)}else{ok(done,"`done` is defined if `resolve` is not");done(void 0,resultingTree,file2)}}}}runSync(tree,file){let complete=false;let result;this.run(tree,file,realDone);assertDone("runSync","run",complete);ok(result,"we either bailed on an error or have a tree");return result;function realDone(error,tree2){bail(error);result=tree2;complete=true}}stringify(tree,file){this.freeze();const realFile=vfile(file);const compiler2=this.compiler||this.Compiler;assertCompiler("stringify",compiler2);assertNode(tree);return compiler2(tree,realFile)}use(value,...parameters){const attachers=this.attachers;const namespace=this.namespace;assertUnfrozen("use",this.frozen);if(value===null||value===void 0){}else if(typeof value==="function"){addPlugin(value,parameters)}else if(typeof value==="object"){if(Array.isArray(value)){addList(value)}else{addPreset(value)}}else{throw new TypeError("Expected usable value, not `"+value+"`")}return this;function add(value2){if(typeof value2==="function"){addPlugin(value2,[])}else if(typeof value2==="object"){if(Array.isArray(value2)){const[plugin,...parameters2]=value2;addPlugin(plugin,parameters2)}else{addPreset(value2)}}else{throw new TypeError("Expected usable value, not `"+value2+"`")}}function addPreset(result){if(!("plugins"in result)&&!("settings"in result)){throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither")}addList(result.plugins);if(result.settings){namespace.settings=(0,import_extend.default)(true,namespace.settings,result.settings)}}function addList(plugins){let index2=-1;if(plugins===null||plugins===void 0){}else if(Array.isArray(plugins)){while(++index2<plugins.length){const thing=plugins[index2];add(thing)}}else{throw new TypeError("Expected a list of plugins, not `"+plugins+"`")}}function addPlugin(plugin,parameters2){let index2=-1;let entryIndex=-1;while(++index2<attachers.length){if(attachers[index2][0]===plugin){entryIndex=index2;break}}if(entryIndex===-1){attachers.push([plugin,...parameters2])}else if(parameters2.length>0){let[primary,...rest]=parameters2;const currentPrimary=attachers[entryIndex][1];if(isPlainObject(currentPrimary)&&isPlainObject(primary)){primary=(0,import_extend.default)(true,currentPrimary,primary)}attachers[entryIndex]=[plugin,primary,...rest]}}}};var unified=new Processor().freeze();function assertParser(name,value){if(typeof value!=="function"){throw new TypeError("Cannot `"+name+"` without `parser`")}}function assertCompiler(name,value){if(typeof value!=="function"){throw new TypeError("Cannot `"+name+"` without `compiler`")}}function assertUnfrozen(name,frozen){if(frozen){throw new Error("Cannot call `"+name+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}}function assertNode(node2){if(!isPlainObject(node2)||typeof node2.type!=="string"){throw new TypeError("Expected node, got `"+node2+"`")}}function assertDone(name,asyncName,complete){if(!complete){throw new Error("`"+name+"` finished async. Use `"+asyncName+"` instead")}}function vfile(value){return looksLikeAVFile(value)?value:new VFile(value)}function looksLikeAVFile(value){return Boolean(value&&typeof value==="object"&&"message"in value&&"messages"in value)}function looksLikeAValue(value){return typeof value==="string"||isUint8Array2(value)}function isUint8Array2(value){return Boolean(value&&typeof value==="object"&&"byteLength"in value&&"byteOffset"in value)}var emptyOptions={};function toString(value,options){const settings=options||emptyOptions;const includeImageAlt=typeof settings.includeImageAlt==="boolean"?settings.includeImageAlt:true;const includeHtml=typeof settings.includeHtml==="boolean"?settings.includeHtml:true;return one(value,includeImageAlt,includeHtml)}function one(value,includeImageAlt,includeHtml){if(node(value)){if("value"in value){return value.type==="html"&&!includeHtml?"":value.value}if(includeImageAlt&&"alt"in value&&value.alt){return value.alt}if("children"in value){return all(value.children,includeImageAlt,includeHtml)}}if(Array.isArray(value)){return all(value,includeImageAlt,includeHtml)}return""}function all(values,includeImageAlt,includeHtml){const result=[];let index2=-1;while(++index2<values.length){result[index2]=one(values[index2],includeImageAlt,includeHtml)}return result.join("")}function node(value){return Boolean(value&&typeof value==="object")}var characterEntities={AElig:"\xC6",AMP:"&",Aacute:"\xC1",Abreve:"\u0102",Acirc:"\xC2",Acy:"\u0410",Afr:"\u{1D504}",Agrave:"\xC0",Alpha:"\u0391",Amacr:"\u0100",And:"\u2A53",Aogon:"\u0104",Aopf:"\u{1D538}",ApplyFunction:"\u2061",Aring:"\xC5",Ascr:"\u{1D49C}",Assign:"\u2254",Atilde:"\xC3",Auml:"\xC4",Backslash:"\u2216",Barv:"\u2AE7",Barwed:"\u2306",Bcy:"\u0411",Because:"\u2235",Bernoullis:"\u212C",Beta:"\u0392",Bfr:"\u{1D505}",Bopf:"\u{1D539}",Breve:"\u02D8",Bscr:"\u212C",Bumpeq:"\u224E",CHcy:"\u0427",COPY:"\xA9",Cacute:"\u0106",Cap:"\u22D2",CapitalDifferentialD:"\u2145",Cayleys:"\u212D",Ccaron:"\u010C",Ccedil:"\xC7",Ccirc:"\u0108",Cconint:"\u2230",Cdot:"\u010A",Cedilla:"\xB8",CenterDot:"\xB7",Cfr:"\u212D",Chi:"\u03A7",CircleDot:"\u2299",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",Colon:"\u2237",Colone:"\u2A74",Congruent:"\u2261",Conint:"\u222F",ContourIntegral:"\u222E",Copf:"\u2102",Coproduct:"\u2210",CounterClockwiseContourIntegral:"\u2233",Cross:"\u2A2F",Cscr:"\u{1D49E}",Cup:"\u22D3",CupCap:"\u224D",DD:"\u2145",DDotrahd:"\u2911",DJcy:"\u0402",DScy:"\u0405",DZcy:"\u040F",Dagger:"\u2021",Darr:"\u21A1",Dashv:"\u2AE4",Dcaron:"\u010E",Dcy:"\u0414",Del:"\u2207",Delta:"\u0394",Dfr:"\u{1D507}",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",Diamond:"\u22C4",DifferentialD:"\u2146",Dopf:"\u{1D53B}",Dot:"\xA8",DotDot:"\u20DC",DotEqual:"\u2250",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVector:"\u21BD",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295F",DownRightVector:"\u21C1",DownRightVectorBar:"\u2957",DownTee:"\u22A4",DownTeeArrow:"\u21A7",Downarrow:"\u21D3",Dscr:"\u{1D49F}",Dstrok:"\u0110",ENG:"\u014A",ETH:"\xD0",Eacute:"\xC9",Ecaron:"\u011A",Ecirc:"\xCA",Ecy:"\u042D",Edot:"\u0116",Efr:"\u{1D508}",Egrave:"\xC8",Element:"\u2208",Emacr:"\u0112",EmptySmallSquare:"\u25FB",EmptyVerySmallSquare:"\u25AB",Eogon:"\u0118",Eopf:"\u{1D53C}",Epsilon:"\u0395",Equal:"\u2A75",EqualTilde:"\u2242",Equilibrium:"\u21CC",Escr:"\u2130",Esim:"\u2A73",Eta:"\u0397",Euml:"\xCB",Exists:"\u2203",ExponentialE:"\u2147",Fcy:"\u0424",Ffr:"\u{1D509}",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",Fopf:"\u{1D53D}",ForAll:"\u2200",Fouriertrf:"\u2131",Fscr:"\u2131",GJcy:"\u0403",GT:">",Gamma:"\u0393",Gammad:"\u03DC",Gbreve:"\u011E",Gcedil:"\u0122",Gcirc:"\u011C",Gcy:"\u0413",Gdot:"\u0120",Gfr:"\u{1D50A}",Gg:"\u22D9",Gopf:"\u{1D53E}",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\u{1D4A2}",Gt:"\u226B",HARDcy:"\u042A",Hacek:"\u02C7",Hat:"^",Hcirc:"\u0124",Hfr:"\u210C",HilbertSpace:"\u210B",Hopf:"\u210D",HorizontalLine:"\u2500",Hscr:"\u210B",Hstrok:"\u0126",HumpDownHump:"\u224E",HumpEqual:"\u224F",IEcy:"\u0415",IJlig:"\u0132",IOcy:"\u0401",Iacute:"\xCD",Icirc:"\xCE",Icy:"\u0418",Idot:"\u0130",Ifr:"\u2111",Igrave:"\xCC",Im:"\u2111",Imacr:"\u012A",ImaginaryI:"\u2148",Implies:"\u21D2",Int:"\u222C",Integral:"\u222B",Intersection:"\u22C2",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",Iogon:"\u012E",Iopf:"\u{1D540}",Iota:"\u0399",Iscr:"\u2110",Itilde:"\u0128",Iukcy:"\u0406",Iuml:"\xCF",Jcirc:"\u0134",Jcy:"\u0419",Jfr:"\u{1D50D}",Jopf:"\u{1D541}",Jscr:"\u{1D4A5}",Jsercy:"\u0408",Jukcy:"\u0404",KHcy:"\u0425",KJcy:"\u040C",Kappa:"\u039A",Kcedil:"\u0136",Kcy:"\u041A",Kfr:"\u{1D50E}",Kopf:"\u{1D542}",Kscr:"\u{1D4A6}",LJcy:"\u0409",LT:"<",Lacute:"\u0139",Lambda:"\u039B",Lang:"\u27EA",Laplacetrf:"\u2112",Larr:"\u219E",Lcaron:"\u013D",Lcedil:"\u013B",Lcy:"\u041B",LeftAngleBracket:"\u27E8",LeftArrow:"\u2190",LeftArrowBar:"\u21E4",LeftArrowRightArrow:"\u21C6",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21C3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230A",LeftRightArrow:"\u2194",LeftRightVector:"\u294E",LeftTee:"\u22A3",LeftTeeArrow:"\u21A4",LeftTeeVector:"\u295A",LeftTriangle:"\u22B2",LeftTriangleBar:"\u29CF",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21BF",LeftUpVectorBar:"\u2958",LeftVector:"\u21BC",LeftVectorBar:"\u2952",Leftarrow:"\u21D0",Leftrightarrow:"\u21D4",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",LessLess:"\u2AA1",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",Lfr:"\u{1D50F}",Ll:"\u22D8",Lleftarrow:"\u21DA",Lmidot:"\u013F",LongLeftArrow:"\u27F5",LongLeftRightArrow:"\u27F7",LongRightArrow:"\u27F6",Longleftarrow:"\u27F8",Longleftrightarrow:"\u27FA",Longrightarrow:"\u27F9",Lopf:"\u{1D543}",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",Lscr:"\u2112",Lsh:"\u21B0",Lstrok:"\u0141",Lt:"\u226A",Map:"\u2905",Mcy:"\u041C",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\u{1D510}",MinusPlus:"\u2213",Mopf:"\u{1D544}",Mscr:"\u2133",Mu:"\u039C",NJcy:"\u040A",Nacute:"\u0143",Ncaron:"\u0147",Ncedil:"\u0145",Ncy:"\u041D",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:"\n",Nfr:"\u{1D511}",NoBreak:"\u2060",NonBreakingSpace:"\xA0",Nopf:"\u2115",Not:"\u2AEC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",NotLeftTriangle:"\u22EA",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangle:"\u22EB",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",Nscr:"\u{1D4A9}",Ntilde:"\xD1",Nu:"\u039D",OElig:"\u0152",Oacute:"\xD3",Ocirc:"\xD4",Ocy:"\u041E",Odblac:"\u0150",Ofr:"\u{1D512}",Ograve:"\xD2",Omacr:"\u014C",Omega:"\u03A9",Omicron:"\u039F",Oopf:"\u{1D546}",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",Or:"\u2A54",Oscr:"\u{1D4AA}",Oslash:"\xD8",Otilde:"\xD5",Otimes:"\u2A37",Ouml:"\xD6",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",PartialD:"\u2202",Pcy:"\u041F",Pfr:"\u{1D513}",Phi:"\u03A6",Pi:"\u03A0",PlusMinus:"\xB1",Poincareplane:"\u210C",Popf:"\u2119",Pr:"\u2ABB",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",Prime:"\u2033",Product:"\u220F",Proportion:"\u2237",Proportional:"\u221D",Pscr:"\u{1D4AB}",Psi:"\u03A8",QUOT:'"',Qfr:"\u{1D514}",Qopf:"\u211A",Qscr:"\u{1D4AC}",RBarr:"\u2910",REG:"\xAE",Racute:"\u0154",Rang:"\u27EB",Rarr:"\u21A0",Rarrtl:"\u2916",Rcaron:"\u0158",Rcedil:"\u0156",Rcy:"\u0420",Re:"\u211C",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",Rfr:"\u211C",Rho:"\u03A1",RightAngleBracket:"\u27E9",RightArrow:"\u2192",RightArrowBar:"\u21E5",RightArrowLeftArrow:"\u21C4",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVector:"\u21C2",RightDownVectorBar:"\u2955",RightFloor:"\u230B",RightTee:"\u22A2",RightTeeArrow:"\u21A6",RightTeeVector:"\u295B",RightTriangle:"\u22B3",RightTriangleBar:"\u29D0",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVector:"\u21BE",RightUpVectorBar:"\u2954",RightVector:"\u21C0",RightVectorBar:"\u2953",Rightarrow:"\u21D2",Ropf:"\u211D",RoundImplies:"\u2970",Rrightarrow:"\u21DB",Rscr:"\u211B",Rsh:"\u21B1",RuleDelayed:"\u29F4",SHCHcy:"\u0429",SHcy:"\u0428",SOFTcy:"\u042C",Sacute:"\u015A",Sc:"\u2ABC",Scaron:"\u0160",Scedil:"\u015E",Scirc:"\u015C",Scy:"\u0421",Sfr:"\u{1D516}",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",Sigma:"\u03A3",SmallCircle:"\u2218",Sopf:"\u{1D54A}",Sqrt:"\u221A",Square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",Sscr:"\u{1D4AE}",Star:"\u22C6",Sub:"\u22D0",Subset:"\u22D0",SubsetEqual:"\u2286",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",SuchThat:"\u220B",Sum:"\u2211",Sup:"\u22D1",Superset:"\u2283",SupersetEqual:"\u2287",Supset:"\u22D1",THORN:"\xDE",TRADE:"\u2122",TSHcy:"\u040B",TScy:"\u0426",Tab:" ",Tau:"\u03A4",Tcaron:"\u0164",Tcedil:"\u0162",Tcy:"\u0422",Tfr:"\u{1D517}",Therefore:"\u2234",Theta:"\u0398",ThickSpace:"\u205F\u200A",ThinSpace:"\u2009",Tilde:"\u223C",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",Topf:"\u{1D54B}",TripleDot:"\u20DB",Tscr:"\u{1D4AF}",Tstrok:"\u0166",Uacute:"\xDA",Uarr:"\u219F",Uarrocir:"\u2949",Ubrcy:"\u040E",Ubreve:"\u016C",Ucirc:"\xDB",Ucy:"\u0423",Udblac:"\u0170",Ufr:"\u{1D518}",Ugrave:"\xD9",Umacr:"\u016A",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",Uopf:"\u{1D54C}",UpArrow:"\u2191",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21C5",UpDownArrow:"\u2195",UpEquilibrium:"\u296E",UpTee:"\u22A5",UpTeeArrow:"\u21A5",Uparrow:"\u21D1",Updownarrow:"\u21D5",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",Upsi:"\u03D2",Upsilon:"\u03A5",Uring:"\u016E",Uscr:"\u{1D4B0}",Utilde:"\u0168",Uuml:"\xDC",VDash:"\u22AB",Vbar:"\u2AEB",Vcy:"\u0412",Vdash:"\u22A9",Vdashl:"\u2AE6",Vee:"\u22C1",Verbar:"\u2016",Vert:"\u2016",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\u{1D519}",Vopf:"\u{1D54D}",Vscr:"\u{1D4B1}",Vvdash:"\u22AA",Wcirc:"\u0174",Wedge:"\u22C0",Wfr:"\u{1D51A}",Wopf:"\u{1D54E}",Wscr:"\u{1D4B2}",Xfr:"\u{1D51B}",Xi:"\u039E",Xopf:"\u{1D54F}",Xscr:"\u{1D4B3}",YAcy:"\u042F",YIcy:"\u0407",YUcy:"\u042E",Yacute:"\xDD",Ycirc:"\u0176",Ycy:"\u042B",Yfr:"\u{1D51C}",Yopf:"\u{1D550}",Yscr:"\u{1D4B4}",Yuml:"\u0178",ZHcy:"\u0416",Zacute:"\u0179",Zcaron:"\u017D",Zcy:"\u0417",Zdot:"\u017B",ZeroWidthSpace:"\u200B",Zeta:"\u0396",Zfr:"\u2128",Zopf:"\u2124",Zscr:"\u{1D4B5}",aacute:"\xE1",abreve:"\u0103",ac:"\u223E",acE:"\u223E\u0333",acd:"\u223F",acirc:"\xE2",acute:"\xB4",acy:"\u0430",aelig:"\xE6",af:"\u2061",afr:"\u{1D51E}",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",alpha:"\u03B1",amacr:"\u0101",amalg:"\u2A3F",amp:"&",and:"\u2227",andand:"\u2A55",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsd:"\u2221",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",aogon:"\u0105",aopf:"\u{1D552}",ap:"\u2248",apE:"\u2A70",apacir:"\u2A6F",ape:"\u224A",apid:"\u224B",apos:"'",approx:"\u2248",approxeq:"\u224A",aring:"\xE5",ascr:"\u{1D4B6}",ast:"*",asymp:"\u2248",asympeq:"\u224D",atilde:"\xE3",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",bNot:"\u2AED",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",barvee:"\u22BD",barwed:"\u2305",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",beta:"\u03B2",beth:"\u2136",between:"\u226C",bfr:"\u{1D51F}",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bnot:"\u2310",bopf:"\u{1D553}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxDL:"\u2557",boxDR:"\u2554",boxDl:"\u2556",boxDr:"\u2553",boxH:"\u2550",boxHD:"\u2566",boxHU:"\u2569",boxHd:"\u2564",boxHu:"\u2567",boxUL:"\u255D",boxUR:"\u255A",boxUl:"\u255C",boxUr:"\u2559",boxV:"\u2551",boxVH:"\u256C",boxVL:"\u2563",boxVR:"\u2560",boxVh:"\u256B",boxVl:"\u2562",boxVr:"\u255F",boxbox:"\u29C9",boxdL:"\u2555",boxdR:"\u2552",boxdl:"\u2510",boxdr:"\u250C",boxh:"\u2500",boxhD:"\u2565",boxhU:"\u2568",boxhd:"\u252C",boxhu:"\u2534",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxuL:"\u255B",boxuR:"\u2558",boxul:"\u2518",boxur:"\u2514",boxv:"\u2502",boxvH:"\u256A",boxvL:"\u2561",boxvR:"\u255E",boxvh:"\u253C",boxvl:"\u2524",boxvr:"\u251C",bprime:"\u2035",breve:"\u02D8",brvbar:"\xA6",bscr:"\u{1D4B7}",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsol:"\\",bsolb:"\u29C5",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",bumpeq:"\u224F",cacute:"\u0107",cap:"\u2229",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",capcup:"\u2A47",capdot:"\u2A40",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",ccaps:"\u2A4D",ccaron:"\u010D",ccedil:"\xE7",ccirc:"\u0109",ccups:"\u2A4C",ccupssm:"\u2A50",cdot:"\u010B",cedil:"\xB8",cemptyv:"\u29B2",cent:"\xA2",centerdot:"\xB7",cfr:"\u{1D520}",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",chi:"\u03C7",cir:"\u25CB",cirE:"\u29C3",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledR:"\xAE",circledS:"\u24C8",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",clubs:"\u2663",clubsuit:"\u2663",colon:":",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",conint:"\u222E",copf:"\u{1D554}",coprod:"\u2210",copy:"\xA9",copysr:"\u2117",crarr:"\u21B5",cross:"\u2717",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",cup:"\u222A",cupbrcap:"\u2A48",cupcap:"\u2A46",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",dArr:"\u21D3",dHar:"\u2965",dagger:"\u2020",daleth:"\u2138",darr:"\u2193",dash:"\u2010",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",dcaron:"\u010F",dcy:"\u0434",dd:"\u2146",ddagger:"\u2021",ddarr:"\u21CA",ddotseq:"\u2A77",deg:"\xB0",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",dfr:"\u{1D521}",dharl:"\u21C3",dharr:"\u21C2",diam:"\u22C4",diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",dopf:"\u{1D555}",dot:"\u02D9",doteq:"\u2250",doteqdot:"\u2251",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",downarrow:"\u2193",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",dscr:"\u{1D4B9}",dscy:"\u0455",dsol:"\u29F6",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",dzcy:"\u045F",dzigrarr:"\u27FF",eDDot:"\u2A77",eDot:"\u2251",eacute:"\xE9",easter:"\u2A6E",ecaron:"\u011B",ecir:"\u2256",ecirc:"\xEA",ecolon:"\u2255",ecy:"\u044D",edot:"\u0117",ee:"\u2147",efDot:"\u2252",efr:"\u{1D522}",eg:"\u2A9A",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",emptyv:"\u2205",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",eng:"\u014B",ensp:"\u2002",eogon:"\u0119",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",equals:"=",equest:"\u225F",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erDot:"\u2253",erarr:"\u2971",escr:"\u212F",esdot:"\u2250",esim:"\u2242",eta:"\u03B7",eth:"\xF0",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",expectation:"\u2130",exponentiale:"\u2147",fallingdotseq:"\u2252",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",ffr:"\u{1D523}",filig:"\uFB01",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",fopf:"\u{1D557}",forall:"\u2200",fork:"\u22D4",forkv:"\u2AD9",fpartint:"\u2A0D",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",fscr:"\u{1D4BB}",gE:"\u2267",gEl:"\u2A8C",gacute:"\u01F5",gamma:"\u03B3",gammad:"\u03DD",gap:"\u2A86",gbreve:"\u011F",gcirc:"\u011D",gcy:"\u0433",gdot:"\u0121",ge:"\u2265",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",ges:"\u2A7E",gescc:"\u2AA9",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",gfr:"\u{1D524}",gg:"\u226B",ggg:"\u22D9",gimel:"\u2137",gjcy:"\u0453",gl:"\u2277",glE:"\u2A92",gla:"\u2AA5",glj:"\u2AA4",gnE:"\u2269",gnap:"\u2A8A",gnapprox:"\u2A8A",gne:"\u2A88",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",gopf:"\u{1D558}",grave:"`",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",gt:">",gtcc:"\u2AA7",gtcir:"\u2A7A",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",hArr:"\u21D4",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",hardcy:"\u044A",harr:"\u2194",harrcir:"\u2948",harrw:"\u21AD",hbar:"\u210F",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",hfr:"\u{1D525}",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",hopf:"\u{1D559}",horbar:"\u2015",hscr:"\u{1D4BD}",hslash:"\u210F",hstrok:"\u0127",hybull:"\u2043",hyphen:"\u2010",iacute:"\xED",ic:"\u2063",icirc:"\xEE",icy:"\u0438",iecy:"\u0435",iexcl:"\xA1",iff:"\u21D4",ifr:"\u{1D526}",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",ijlig:"\u0133",imacr:"\u012B",image:"\u2111",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",imof:"\u22B7",imped:"\u01B5",in:"\u2208",incare:"\u2105",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",int:"\u222B",intcal:"\u22BA",integers:"\u2124",intercal:"\u22BA",intlarhk:"\u2A17",intprod:"\u2A3C",iocy:"\u0451",iogon:"\u012F",iopf:"\u{1D55A}",iota:"\u03B9",iprod:"\u2A3C",iquest:"\xBF",iscr:"\u{1D4BE}",isin:"\u2208",isinE:"\u22F9",isindot:"\u22F5",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",itilde:"\u0129",iukcy:"\u0456",iuml:"\xEF",jcirc:"\u0135",jcy:"\u0439",jfr:"\u{1D527}",jmath:"\u0237",jopf:"\u{1D55B}",jscr:"\u{1D4BF}",jsercy:"\u0458",jukcy:"\u0454",kappa:"\u03BA",kappav:"\u03F0",kcedil:"\u0137",kcy:"\u043A",kfr:"\u{1D528}",kgreen:"\u0138",khcy:"\u0445",kjcy:"\u045C",kopf:"\u{1D55C}",kscr:"\u{1D4C0}",lAarr:"\u21DA",lArr:"\u21D0",lAtail:"\u291B",lBarr:"\u290E",lE:"\u2266",lEg:"\u2A8B",lHar:"\u2962",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",lambda:"\u03BB",lang:"\u27E8",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",laquo:"\xAB",larr:"\u2190",larrb:"\u21E4",larrbfs:"\u291F",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",lat:"\u2AAB",latail:"\u2919",late:"\u2AAD",lates:"\u2AAD\uFE00",lbarr:"\u290C",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",lcaron:"\u013E",lcedil:"\u013C",lceil:"\u2308",lcub:"{",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",le:"\u2264",leftarrow:"\u2190",leftarrowtail:"\u21A2",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",leftrightarrow:"\u2194",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",leftthreetimes:"\u22CB",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",les:"\u2A7D",lescc:"\u2AA8",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",lessgtr:"\u2276",lesssim:"\u2272",lfisht:"\u297C",lfloor:"\u230A",lfr:"\u{1D529}",lg:"\u2276",lgE:"\u2A91",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",ljcy:"\u0459",ll:"\u226A",llarr:"\u21C7",llcorner:"\u231E",llhard:"\u296B",lltri:"\u25FA",lmidot:"\u0140",lmoust:"\u23B0",lmoustache:"\u23B0",lnE:"\u2268",lnap:"\u2A89",lnapprox:"\u2A89",lne:"\u2A87",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",longleftarrow:"\u27F5",longleftrightarrow:"\u27F7",longmapsto:"\u27FC",longrightarrow:"\u27F6",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",lscr:"\u{1D4C1}",lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",lstrok:"\u0142",lt:"<",ltcc:"\u2AA6",ltcir:"\u2A79",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltrPar:"\u2996",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",mDDot:"\u223A",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",mcy:"\u043C",mdash:"\u2014",measuredangle:"\u2221",mfr:"\u{1D52A}",mho:"\u2127",micro:"\xB5",mid:"\u2223",midast:"*",midcir:"\u2AF0",middot:"\xB7",minus:"\u2212",minusb:"\u229F",minusd:"\u2238",minusdu:"\u2A2A",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",mopf:"\u{1D55E}",mp:"\u2213",mscr:"\u{1D4C2}",mstpos:"\u223E",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nGg:"\u22D9\u0338",nGt:"\u226B\u20D2",nGtv:"\u226B\u0338",nLeftarrow:"\u21CD",nLeftrightarrow:"\u21CE",nLl:"\u22D8\u0338",nLt:"\u226A\u20D2",nLtv:"\u226A\u0338",nRightarrow:"\u21CF",nVDash:"\u22AF",nVdash:"\u22AE",nabla:"\u2207",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natur:"\u266E",natural:"\u266E",naturals:"\u2115",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",ncaron:"\u0148",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",ncy:"\u043D",ndash:"\u2013",ne:"\u2260",neArr:"\u21D7",nearhk:"\u2924",nearr:"\u2197",nearrow:"\u2197",nedot:"\u2250\u0338",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",nexist:"\u2204",nexists:"\u2204",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",ngsim:"\u2275",ngt:"\u226F",ngtr:"\u226F",nhArr:"\u21CE",nharr:"\u21AE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",njcy:"\u045A",nlArr:"\u21CD",nlE:"\u2266\u0338",nlarr:"\u219A",nldr:"\u2025",nle:"\u2270",nleftarrow:"\u219A",nleftrightarrow:"\u21AE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nlsim:"\u2274",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nmid:"\u2224",nopf:"\u{1D55F}",not:"\xAC",notin:"\u2209",notinE:"\u22F9\u0338",notindot:"\u22F5\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",npar:"\u2226",nparallel:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",npre:"\u2AAF\u0338",nprec:"\u2280",npreceq:"\u2AAF\u0338",nrArr:"\u21CF",nrarr:"\u219B",nrarrc:"\u2933\u0338",nrarrw:"\u219D\u0338",nrightarrow:"\u219B",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvDash:"\u22AD",nvHarr:"\u2904",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwArr:"\u21D6",nwarhk:"\u2923",nwarr:"\u2196",nwarrow:"\u2196",nwnear:"\u2927",oS:"\u24C8",oacute:"\xF3",oast:"\u229B",ocir:"\u229A",ocirc:"\xF4",ocy:"\u043E",odash:"\u229D",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",oelig:"\u0153",ofcir:"\u29BF",ofr:"\u{1D52C}",ogon:"\u02DB",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",omacr:"\u014D",omega:"\u03C9",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",oopf:"\u{1D560}",opar:"\u29B7",operp:"\u29B9",oplus:"\u2295",or:"\u2228",orarr:"\u21BB",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oscr:"\u2134",oslash:"\xF8",osol:"\u2298",otilde:"\xF5",otimes:"\u2297",otimesas:"\u2A36",ouml:"\xF6",ovbar:"\u233D",par:"\u2225",para:"\xB6",parallel:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",pfr:"\u{1D52D}",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",pi:"\u03C0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plus:"+",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",pointint:"\u2A15",popf:"\u{1D561}",pound:"\xA3",pr:"\u227A",prE:"\u2AB3",prap:"\u2AB7",prcue:"\u227C",pre:"\u2AAF",prec:"\u227A",precapprox:"\u2AB7",preccurlyeq:"\u227C",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",precsim:"\u227E",prime:"\u2032",primes:"\u2119",prnE:"\u2AB5",prnap:"\u2AB9",prnsim:"\u22E8",prod:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",pscr:"\u{1D4C5}",psi:"\u03C8",puncsp:"\u2008",qfr:"\u{1D52E}",qint:"\u2A0C",qopf:"\u{1D562}",qprime:"\u2057",qscr:"\u{1D4C6}",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",quot:'"',rAarr:"\u21DB",rArr:"\u21D2",rAtail:"\u291C",rBarr:"\u290F",rHar:"\u2964",race:"\u223D\u0331",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",rang:"\u27E9",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raquo:"\xBB",rarr:"\u2192",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",rarrtl:"\u21A3",rarrw:"\u219D",ratail:"\u291A",ratio:"\u2236",rationals:"\u211A",rbarr:"\u290D",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",rcaron:"\u0159",rcedil:"\u0157",rceil:"\u2309",rcub:"}",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",rect:"\u25AD",reg:"\xAE",rfisht:"\u297D",rfloor:"\u230B",rfr:"\u{1D52F}",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",rho:"\u03C1",rhov:"\u03F1",rightarrow:"\u2192",rightarrowtail:"\u21A3",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",rightthreetimes:"\u22CC",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoust:"\u23B1",rmoustache:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",ropf:"\u{1D563}",roplus:"\u2A2E",rotimes:"\u2A35",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",rsaquo:"\u203A",rscr:"\u{1D4C7}",rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",ruluhar:"\u2968",rx:"\u211E",sacute:"\u015B",sbquo:"\u201A",sc:"\u227B",scE:"\u2AB4",scap:"\u2AB8",scaron:"\u0161",sccue:"\u227D",sce:"\u2AB0",scedil:"\u015F",scirc:"\u015D",scnE:"\u2AB6",scnap:"\u2ABA",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",scy:"\u0441",sdot:"\u22C5",sdotb:"\u22A1",sdote:"\u2A66",seArr:"\u21D8",searhk:"\u2925",searr:"\u2198",searrow:"\u2198",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",sfr:"\u{1D530}",sfrown:"\u2322",sharp:"\u266F",shchcy:"\u0449",shcy:"\u0448",shortmid:"\u2223",shortparallel:"\u2225",shy:"\xAD",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",softcy:"\u044C",sol:"/",solb:"\u29C4",solbar:"\u233F",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",squ:"\u25A1",square:"\u25A1",squarf:"\u25AA",squf:"\u25AA",srarr:"\u2192",sscr:"\u{1D4C8}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",sub:"\u2282",subE:"\u2AC5",subdot:"\u2ABD",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",subset:"\u2282",subseteq:"\u2286",subseteqq:"\u2AC5",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succ:"\u227B",succapprox:"\u2AB8",succcurlyeq:"\u227D",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",sum:"\u2211",sung:"\u266A",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",sup:"\u2283",supE:"\u2AC6",supdot:"\u2ABE",supdsub:"\u2AD8",supe:"\u2287",supedot:"\u2AC4",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",supset:"\u2283",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swArr:"\u21D9",swarhk:"\u2926",swarr:"\u2199",swarrow:"\u2199",swnwar:"\u292A",szlig:"\xDF",target:"\u2316",tau:"\u03C4",tbrk:"\u23B4",tcaron:"\u0165",tcedil:"\u0163",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",tfr:"\u{1D531}",there4:"\u2234",therefore:"\u2234",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",thinsp:"\u2009",thkap:"\u2248",thksim:"\u223C",thorn:"\xFE",tilde:"\u02DC",times:"\xD7",timesb:"\u22A0",timesbar:"\u2A31",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",top:"\u22A4",topbot:"\u2336",topcir:"\u2AF1",topf:"\u{1D565}",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",trade:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",tscr:"\u{1D4C9}",tscy:"\u0446",tshcy:"\u045B",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",uArr:"\u21D1",uHar:"\u2963",uacute:"\xFA",uarr:"\u2191",ubrcy:"\u045E",ubreve:"\u016D",ucirc:"\xFB",ucy:"\u0443",udarr:"\u21C5",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",ufr:"\u{1D532}",ugrave:"\xF9",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",umacr:"\u016B",uml:"\xA8",uogon:"\u0173",uopf:"\u{1D566}",uparrow:"\u2191",updownarrow:"\u2195",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",upsi:"\u03C5",upsih:"\u03D2",upsilon:"\u03C5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",uring:"\u016F",urtri:"\u25F9",uscr:"\u{1D4CA}",utdot:"\u22F0",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",uuml:"\xFC",uwangle:"\u29A7",vArr:"\u21D5",vBar:"\u2AE8",vBarv:"\u2AE9",vDash:"\u22A8",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",varr:"\u2195",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",vcy:"\u0432",vdash:"\u22A2",vee:"\u2228",veebar:"\u22BB",veeeq:"\u225A",vellip:"\u22EE",verbar:"|",vert:"|",vfr:"\u{1D533}",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",vopf:"\u{1D567}",vprop:"\u221D",vrtri:"\u22B3",vscr:"\u{1D4CB}",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",vzigzag:"\u299A",wcirc:"\u0175",wedbar:"\u2A5F",wedge:"\u2227",wedgeq:"\u2259",weierp:"\u2118",wfr:"\u{1D534}",wopf:"\u{1D568}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",wscr:"\u{1D4CC}",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",xfr:"\u{1D535}",xhArr:"\u27FA",xharr:"\u27F7",xi:"\u03BE",xlArr:"\u27F8",xlarr:"\u27F5",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",xopf:"\u{1D569}",xoplus:"\u2A01",xotime:"\u2A02",xrArr:"\u27F9",xrarr:"\u27F6",xscr:"\u{1D4CD}",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",yacute:"\xFD",yacy:"\u044F",ycirc:"\u0177",ycy:"\u044B",yen:"\xA5",yfr:"\u{1D536}",yicy:"\u0457",yopf:"\u{1D56A}",yscr:"\u{1D4CE}",yucy:"\u044E",yuml:"\xFF",zacute:"\u017A",zcaron:"\u017E",zcy:"\u0437",zdot:"\u017C",zeetrf:"\u2128",zeta:"\u03B6",zfr:"\u{1D537}",zhcy:"\u0436",zigrarr:"\u21DD",zopf:"\u{1D56B}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"};var own2={}.hasOwnProperty;function decodeNamedCharacterReference(value){return own2.call(characterEntities,value)?characterEntities[value]:false}function splice(list3,start,remove,items){const end=list3.length;let chunkStart=0;let parameters;if(start<0){start=-start>end?0:end+start}else{start=start>end?end:start}remove=remove>0?remove:0;if(items.length<1e4){parameters=Array.from(items);parameters.unshift(start,remove);list3.splice(...parameters)}else{if(remove)list3.splice(start,remove);while(chunkStart<items.length){parameters=items.slice(chunkStart,chunkStart+1e4);parameters.unshift(start,0);list3.splice(...parameters);chunkStart+=1e4;start+=1e4}}}function push(list3,items){if(list3.length>0){splice(list3,list3.length,0,items);return list3}return items}var hasOwnProperty={}.hasOwnProperty;function combineExtensions(extensions){const all2={};let index2=-1;while(++index2<extensions.length){syntaxExtension(all2,extensions[index2])}return all2}function syntaxExtension(all2,extension2){let hook;for(hook in extension2){const maybe=hasOwnProperty.call(all2,hook)?all2[hook]:void 0;const left=maybe||(all2[hook]={});const right=extension2[hook];let code3;if(right){for(code3 in right){if(!hasOwnProperty.call(left,code3))left[code3]=[];const value=right[code3];constructs(left[code3],Array.isArray(value)?value:value?[value]:[])}}}}function constructs(existing,list3){let index2=-1;const before=[];while(++index2<list3.length){;(list3[index2].add==="after"?existing:before).push(list3[index2])}splice(existing,0,0,before)}function decodeNumericCharacterReference(value,base){const code3=Number.parseInt(value,base);if(code3<9||code3===11||code3>13&&code3<32||code3>126&&code3<160||code3>55295&&code3<57344||code3>64975&&code3<65008||(code3&65535)===65535||(code3&65535)===65534||code3>1114111){return"\uFFFD"}return String.fromCodePoint(code3)}function normalizeIdentifier(value){return value.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}var asciiAlpha=regexCheck(/[A-Za-z]/);var asciiAlphanumeric=regexCheck(/[\dA-Za-z]/);var asciiAtext=regexCheck(/[#-'*+\--9=?A-Z^-~]/);function asciiControl(code3){return code3!==null&&(code3<32||code3===127)}var asciiDigit=regexCheck(/\d/);var asciiHexDigit=regexCheck(/[\dA-Fa-f]/);var asciiPunctuation=regexCheck(/[!-/:-@[-`{-~]/);function markdownLineEnding(code3){return code3!==null&&code3<-2}function markdownLineEndingOrSpace(code3){return code3!==null&&(code3<0||code3===32)}function markdownSpace(code3){return code3===-2||code3===-1||code3===32}var unicodePunctuation=regexCheck(/\p{P}|\p{S}/u);var unicodeWhitespace=regexCheck(/\s/);function regexCheck(regex){return check;function check(code3){return code3!==null&&code3>-1&&regex.test(String.fromCharCode(code3))}}function factorySpace(effects,ok3,type,max){const limit=max?max-1:Number.POSITIVE_INFINITY;let size=0;return start;function start(code3){if(markdownSpace(code3)){effects.enter(type);return prefix(code3)}return ok3(code3)}function prefix(code3){if(markdownSpace(code3)&&size++<limit){effects.consume(code3);return prefix}effects.exit(type);return ok3(code3)}}var content={tokenize:initializeContent};function initializeContent(effects){const contentStart=effects.attempt(this.parser.constructs.contentInitial,afterContentStartConstruct,paragraphInitial);let previous3;return contentStart;function afterContentStartConstruct(code3){if(code3===null){effects.consume(code3);return}effects.enter("lineEnding");effects.consume(code3);effects.exit("lineEnding");return factorySpace(effects,contentStart,"linePrefix")}function paragraphInitial(code3){effects.enter("paragraph");return lineStart(code3)}function lineStart(code3){const token=effects.enter("chunkText",{contentType:"text",previous:previous3});if(previous3){previous3.next=token}previous3=token;return data(code3)}function data(code3){if(code3===null){effects.exit("chunkText");effects.exit("paragraph");effects.consume(code3);return}if(markdownLineEnding(code3)){effects.consume(code3);effects.exit("chunkText");return lineStart}effects.consume(code3);return data}}var document2={tokenize:initializeDocument};var containerConstruct={tokenize:tokenizeContainer};function initializeDocument(effects){const self=this;const stack=[];let continued=0;let childFlow;let childToken;let lineStartOffset;return start;function start(code3){if(continued<stack.length){const item=stack[continued];self.containerState=item[1];return effects.attempt(item[0].continuation,documentContinue,checkNewContainers)(code3)}return checkNewContainers(code3)}function documentContinue(code3){continued++;if(self.containerState._closeFlow){self.containerState._closeFlow=void 0;if(childFlow){closeFlow()}const indexBeforeExits=self.events.length;let indexBeforeFlow=indexBeforeExits;let point3;while(indexBeforeFlow--){if(self.events[indexBeforeFlow][0]==="exit"&&self.events[indexBeforeFlow][1].type==="chunkFlow"){point3=self.events[indexBeforeFlow][1].end;break}}exitContainers(continued);let index2=indexBeforeExits;while(index2<self.events.length){self.events[index2][1].end={...point3};index2++}splice(self.events,indexBeforeFlow+1,0,self.events.slice(indexBeforeExits));self.events.length=index2;return checkNewContainers(code3)}return start(code3)}function checkNewContainers(code3){if(continued===stack.length){if(!childFlow){return documentContinued(code3)}if(childFlow.currentConstruct&&childFlow.currentConstruct.concrete){return flowStart(code3)}self.interrupt=Boolean(childFlow.currentConstruct&&!childFlow._gfmTableDynamicInterruptHack)}self.containerState={};return effects.check(containerConstruct,thereIsANewContainer,thereIsNoNewContainer)(code3)}function thereIsANewContainer(code3){if(childFlow)closeFlow();exitContainers(continued);return documentContinued(code3)}function thereIsNoNewContainer(code3){self.parser.lazy[self.now().line]=continued!==stack.length;lineStartOffset=self.now().offset;return flowStart(code3)}function documentContinued(code3){self.containerState={};return effects.attempt(containerConstruct,containerContinue,flowStart)(code3)}function containerContinue(code3){continued++;stack.push([self.currentConstruct,self.containerState]);return documentContinued(code3)}function flowStart(code3){if(code3===null){if(childFlow)closeFlow();exitContainers(0);effects.consume(code3);return}childFlow=childFlow||self.parser.flow(self.now());effects.enter("chunkFlow",{_tokenizer:childFlow,contentType:"flow",previous:childToken});return flowContinue(code3)}function flowContinue(code3){if(code3===null){writeToChild(effects.exit("chunkFlow"),true);exitContainers(0);effects.consume(code3);return}if(markdownLineEnding(code3)){effects.consume(code3);writeToChild(effects.exit("chunkFlow"));continued=0;self.interrupt=void 0;return start}effects.consume(code3);return flowContinue}function writeToChild(token,endOfFile){const stream=self.sliceStream(token);if(endOfFile)stream.push(null);token.previous=childToken;if(childToken)childToken.next=token;childToken=token;childFlow.defineSkip(token.start);childFlow.write(stream);if(self.parser.lazy[token.start.line]){let index2=childFlow.events.length;while(index2--){if(childFlow.events[index2][1].start.offset<lineStartOffset&&(!childFlow.events[index2][1].end||childFlow.events[index2][1].end.offset>lineStartOffset)){return}}const indexBeforeExits=self.events.length;let indexBeforeFlow=indexBeforeExits;let seen;let point3;while(indexBeforeFlow--){if(self.events[indexBeforeFlow][0]==="exit"&&self.events[indexBeforeFlow][1].type==="chunkFlow"){if(seen){point3=self.events[indexBeforeFlow][1].end;break}seen=true}}exitContainers(continued);index2=indexBeforeExits;while(index2<self.events.length){self.events[index2][1].end={...point3};index2++}splice(self.events,indexBeforeFlow+1,0,self.events.slice(indexBeforeExits));self.events.length=index2}}function exitContainers(size){let index2=stack.length;while(index2-- >size){const entry=stack[index2];self.containerState=entry[1];entry[0].exit.call(self,effects)}stack.length=size}function closeFlow(){childFlow.write([null]);childToken=void 0;childFlow=void 0;self.containerState._closeFlow=void 0}}function tokenizeContainer(effects,ok3,nok){return factorySpace(effects,effects.attempt(this.parser.constructs.document,ok3,nok),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function classifyCharacter(code3){if(code3===null||markdownLineEndingOrSpace(code3)||unicodeWhitespace(code3)){return 1}if(unicodePunctuation(code3)){return 2}}function resolveAll(constructs2,events,context){const called=[];let index2=-1;while(++index2<constructs2.length){const resolve=constructs2[index2].resolveAll;if(resolve&&!called.includes(resolve)){events=resolve(events,context);called.push(resolve)}}return events}var attention={name:"attention",resolveAll:resolveAllAttention,tokenize:tokenizeAttention};function resolveAllAttention(events,context){let index2=-1;let open;let group;let text6;let openingSequence;let closingSequence;let use;let nextEvents;let offset;while(++index2<events.length){if(events[index2][0]==="enter"&&events[index2][1].type==="attentionSequence"&&events[index2][1]._close){open=index2;while(open--){if(events[open][0]==="exit"&&events[open][1].type==="attentionSequence"&&events[open][1]._open&&context.sliceSerialize(events[open][1]).charCodeAt(0)===context.sliceSerialize(events[index2][1]).charCodeAt(0)){if((events[open][1]._close||events[index2][1]._open)&&(events[index2][1].end.offset-events[index2][1].start.offset)%3&&!((events[open][1].end.offset-events[open][1].start.offset+events[index2][1].end.offset-events[index2][1].start.offset)%3)){continue}use=events[open][1].end.offset-events[open][1].start.offset>1&&events[index2][1].end.offset-events[index2][1].start.offset>1?2:1;const start={...events[open][1].end};const end={...events[index2][1].start};movePoint(start,-use);movePoint(end,use);openingSequence={type:use>1?"strongSequence":"emphasisSequence",start,end:{...events[open][1].end}};closingSequence={type:use>1?"strongSequence":"emphasisSequence",start:{...events[index2][1].start},end};text6={type:use>1?"strongText":"emphasisText",start:{...events[open][1].end},end:{...events[index2][1].start}};group={type:use>1?"strong":"emphasis",start:{...openingSequence.start},end:{...closingSequence.end}};events[open][1].end={...openingSequence.start};events[index2][1].start={...closingSequence.end};nextEvents=[];if(events[open][1].end.offset-events[open][1].start.offset){nextEvents=push(nextEvents,[["enter",events[open][1],context],["exit",events[open][1],context]])}nextEvents=push(nextEvents,[["enter",group,context],["enter",openingSequence,context],["exit",openingSequence,context],["enter",text6,context]]);nextEvents=push(nextEvents,resolveAll(context.parser.constructs.insideSpan.null,events.slice(open+1,index2),context));nextEvents=push(nextEvents,[["exit",text6,context],["enter",closingSequence,context],["exit",closingSequence,context],["exit",group,context]]);if(events[index2][1].end.offset-events[index2][1].start.offset){offset=2;nextEvents=push(nextEvents,[["enter",events[index2][1],context],["exit",events[index2][1],context]])}else{offset=0}splice(events,open-1,index2-open+3,nextEvents);index2=open+nextEvents.length-offset-2;break}}}}index2=-1;while(++index2<events.length){if(events[index2][1].type==="attentionSequence"){events[index2][1].type="data"}}return events}function tokenizeAttention(effects,ok3){const attentionMarkers2=this.parser.constructs.attentionMarkers.null;const previous3=this.previous;const before=classifyCharacter(previous3);let marker;return start;function start(code3){marker=code3;effects.enter("attentionSequence");return inside(code3)}function inside(code3){if(code3===marker){effects.consume(code3);return inside}const token=effects.exit("attentionSequence");const after=classifyCharacter(code3);const open=!after||after===2&&before||attentionMarkers2.includes(code3);const close=!before||before===2&&after||attentionMarkers2.includes(previous3);token._open=Boolean(marker===42?open:open&&(before||!close));token._close=Boolean(marker===42?close:close&&(after||!open));return ok3(code3)}}function movePoint(point3,offset){point3.column+=offset;point3.offset+=offset;point3._bufferIndex+=offset}var autolink={name:"autolink",tokenize:tokenizeAutolink};function tokenizeAutolink(effects,ok3,nok){let size=0;return start;function start(code3){effects.enter("autolink");effects.enter("autolinkMarker");effects.consume(code3);effects.exit("autolinkMarker");effects.enter("autolinkProtocol");return open}function open(code3){if(asciiAlpha(code3)){effects.consume(code3);return schemeOrEmailAtext}if(code3===64){return nok(code3)}return emailAtext(code3)}function schemeOrEmailAtext(code3){if(code3===43||code3===45||code3===46||asciiAlphanumeric(code3)){size=1;return schemeInsideOrEmailAtext(code3)}return emailAtext(code3)}function schemeInsideOrEmailAtext(code3){if(code3===58){effects.consume(code3);size=0;return urlInside}if((code3===43||code3===45||code3===46||asciiAlphanumeric(code3))&&size++<32){effects.consume(code3);return schemeInsideOrEmailAtext}size=0;return emailAtext(code3)}function urlInside(code3){if(code3===62){effects.exit("autolinkProtocol");effects.enter("autolinkMarker");effects.consume(code3);effects.exit("autolinkMarker");effects.exit("autolink");return ok3}if(code3===null||code3===32||code3===60||asciiControl(code3)){return nok(code3)}effects.consume(code3);return urlInside}function emailAtext(code3){if(code3===64){effects.consume(code3);return emailAtSignOrDot}if(asciiAtext(code3)){effects.consume(code3);return emailAtext}return nok(code3)}function emailAtSignOrDot(code3){return asciiAlphanumeric(code3)?emailLabel(code3):nok(code3)}function emailLabel(code3){if(code3===46){effects.consume(code3);size=0;return emailAtSignOrDot}if(code3===62){effects.exit("autolinkProtocol").type="autolinkEmail";effects.enter("autolinkMarker");effects.consume(code3);effects.exit("autolinkMarker");effects.exit("autolink");return ok3}return emailValue(code3)}function emailValue(code3){if((code3===45||asciiAlphanumeric(code3))&&size++<63){const next=code3===45?emailValue:emailLabel;effects.consume(code3);return next}return nok(code3)}}var blankLine={partial:true,tokenize:tokenizeBlankLine};function tokenizeBlankLine(effects,ok3,nok){return start;function start(code3){return markdownSpace(code3)?factorySpace(effects,after,"linePrefix")(code3):after(code3)}function after(code3){return code3===null||markdownLineEnding(code3)?ok3(code3):nok(code3)}}var blockQuote={continuation:{tokenize:tokenizeBlockQuoteContinuation},exit,name:"blockQuote",tokenize:tokenizeBlockQuoteStart};function tokenizeBlockQuoteStart(effects,ok3,nok){const self=this;return start;function start(code3){if(code3===62){const state=self.containerState;if(!state.open){effects.enter("blockQuote",{_container:true});state.open=true}effects.enter("blockQuotePrefix");effects.enter("blockQuoteMarker");effects.consume(code3);effects.exit("blockQuoteMarker");return after}return nok(code3)}function after(code3){if(markdownSpace(code3)){effects.enter("blockQuotePrefixWhitespace");effects.consume(code3);effects.exit("blockQuotePrefixWhitespace");effects.exit("blockQuotePrefix");return ok3}effects.exit("blockQuotePrefix");return ok3(code3)}}function tokenizeBlockQuoteContinuation(effects,ok3,nok){const self=this;return contStart;function contStart(code3){if(markdownSpace(code3)){return factorySpace(effects,contBefore,"linePrefix",self.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(code3)}return contBefore(code3)}function contBefore(code3){return effects.attempt(blockQuote,ok3,nok)(code3)}}function exit(effects){effects.exit("blockQuote")}var characterEscape={name:"characterEscape",tokenize:tokenizeCharacterEscape};function tokenizeCharacterEscape(effects,ok3,nok){return start;function start(code3){effects.enter("characterEscape");effects.enter("escapeMarker");effects.consume(code3);effects.exit("escapeMarker");return inside}function inside(code3){if(asciiPunctuation(code3)){effects.enter("characterEscapeValue");effects.consume(code3);effects.exit("characterEscapeValue");effects.exit("characterEscape");return ok3}return nok(code3)}}var characterReference={name:"characterReference",tokenize:tokenizeCharacterReference};function tokenizeCharacterReference(effects,ok3,nok){const self=this;let size=0;let max;let test;return start;function start(code3){effects.enter("characterReference");effects.enter("characterReferenceMarker");effects.consume(code3);effects.exit("characterReferenceMarker");return open}function open(code3){if(code3===35){effects.enter("characterReferenceMarkerNumeric");effects.consume(code3);effects.exit("characterReferenceMarkerNumeric");return numeric}effects.enter("characterReferenceValue");max=31;test=asciiAlphanumeric;return value(code3)}function numeric(code3){if(code3===88||code3===120){effects.enter("characterReferenceMarkerHexadecimal");effects.consume(code3);effects.exit("characterReferenceMarkerHexadecimal");effects.enter("characterReferenceValue");max=6;test=asciiHexDigit;return value}effects.enter("characterReferenceValue");max=7;test=asciiDigit;return value(code3)}function value(code3){if(code3===59&&size){const token=effects.exit("characterReferenceValue");if(test===asciiAlphanumeric&&!decodeNamedCharacterReference(self.sliceSerialize(token))){return nok(code3)}effects.enter("characterReferenceMarker");effects.consume(code3);effects.exit("characterReferenceMarker");effects.exit("characterReference");return ok3}if(test(code3)&&size++<max){effects.consume(code3);return value}return nok(code3)}}var nonLazyContinuation={partial:true,tokenize:tokenizeNonLazyContinuation};var codeFenced={concrete:true,name:"codeFenced",tokenize:tokenizeCodeFenced};function tokenizeCodeFenced(effects,ok3,nok){const self=this;const closeStart={partial:true,tokenize:tokenizeCloseStart};let initialPrefix=0;let sizeOpen=0;let marker;return start;function start(code3){return beforeSequenceOpen(code3)}function beforeSequenceOpen(code3){const tail=self.events[self.events.length-1];initialPrefix=tail&&tail[1].type==="linePrefix"?tail[2].sliceSerialize(tail[1],true).length:0;marker=code3;effects.enter("codeFenced");effects.enter("codeFencedFence");effects.enter("codeFencedFenceSequence");return sequenceOpen(code3)}function sequenceOpen(code3){if(code3===marker){sizeOpen++;effects.consume(code3);return sequenceOpen}if(sizeOpen<3){return nok(code3)}effects.exit("codeFencedFenceSequence");return markdownSpace(code3)?factorySpace(effects,infoBefore,"whitespace")(code3):infoBefore(code3)}function infoBefore(code3){if(code3===null||markdownLineEnding(code3)){effects.exit("codeFencedFence");return self.interrupt?ok3(code3):effects.check(nonLazyContinuation,atNonLazyBreak,after)(code3)}effects.enter("codeFencedFenceInfo");effects.enter("chunkString",{contentType:"string"});return info(code3)}function info(code3){if(code3===null||markdownLineEnding(code3)){effects.exit("chunkString");effects.exit("codeFencedFenceInfo");return infoBefore(code3)}if(markdownSpace(code3)){effects.exit("chunkString");effects.exit("codeFencedFenceInfo");return factorySpace(effects,metaBefore,"whitespace")(code3)}if(code3===96&&code3===marker){return nok(code3)}effects.consume(code3);return info}function metaBefore(code3){if(code3===null||markdownLineEnding(code3)){return infoBefore(code3)}effects.enter("codeFencedFenceMeta");effects.enter("chunkString",{contentType:"string"});return meta(code3)}function meta(code3){if(code3===null||markdownLineEnding(code3)){effects.exit("chunkString");effects.exit("codeFencedFenceMeta");return infoBefore(code3)}if(code3===96&&code3===marker){return nok(code3)}effects.consume(code3);return meta}function atNonLazyBreak(code3){return effects.attempt(closeStart,after,contentBefore)(code3)}function contentBefore(code3){effects.enter("lineEnding");effects.consume(code3);effects.exit("lineEnding");return contentStart}function contentStart(code3){return initialPrefix>0&&markdownSpace(code3)?factorySpace(effects,beforeContentChunk,"linePrefix",initialPrefix+1)(code3):beforeContentChunk(code3)}function beforeContentChunk(code3){if(code3===null||markdownLineEnding(code3)){return effects.check(nonLazyContinuation,atNonLazyBreak,after)(code3)}effects.enter("codeFlowValue");return contentChunk(code3)}function contentChunk(code3){if(code3===null||markdownLineEnding(code3)){effects.exit("codeFlowValue");return beforeContentChunk(code3)}effects.consume(code3);return contentChunk}function after(code3){effects.exit("codeFenced");return ok3(code3)}function tokenizeCloseStart(effects2,ok4,nok2){let size=0;return startBefore;function startBefore(code3){effects2.enter("lineEnding");effects2.consume(code3);effects2.exit("lineEnding");return start2}function start2(code3){effects2.enter("codeFencedFence");return markdownSpace(code3)?factorySpace(effects2,beforeSequenceClose,"linePrefix",self.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(code3):beforeSequenceClose(code3)}function beforeSequenceClose(code3){if(code3===marker){effects2.enter("codeFencedFenceSequence");return sequenceClose(code3)}return nok2(code3)}function sequenceClose(code3){if(code3===marker){size++;effects2.consume(code3);return sequenceClose}if(size>=sizeOpen){effects2.exit("codeFencedFenceSequence");return markdownSpace(code3)?factorySpace(effects2,sequenceCloseAfter,"whitespace")(code3):sequenceCloseAfter(code3)}return nok2(code3)}function sequenceCloseAfter(code3){if(code3===null||markdownLineEnding(code3)){effects2.exit("codeFencedFence");return ok4(code3)}return nok2(code3)}}}function tokenizeNonLazyContinuation(effects,ok3,nok){const self=this;return start;function start(code3){if(code3===null){return nok(code3)}effects.enter("lineEnding");effects.consume(code3);effects.exit("lineEnding");return lineStart}function lineStart(code3){return self.parser.lazy[self.now().line]?nok(code3):ok3(code3)}}var codeIndented={name:"codeIndented",tokenize:tokenizeCodeIndented};var furtherStart={partial:true,tokenize:tokenizeFurtherStart};function tokenizeCodeIndented(effects,ok3,nok){const self=this;return start;function start(code3){effects.enter("codeIndented");return factorySpace(effects,afterPrefix,"linePrefix",4+1)(code3)}function afterPrefix(code3){const tail=self.events[self.events.length-1];return tail&&tail[1].type==="linePrefix"&&tail[2].sliceSerialize(tail[1],true).length>=4?atBreak(code3):nok(code3)}function atBreak(code3){if(code3===null){return after(code3)}if(markdownLineEnding(code3)){return effects.attempt(furtherStart,atBreak,after)(code3)}effects.enter("codeFlowValue");return inside(code3)}function inside(code3){if(code3===null||markdownLineEnding(code3)){effects.exit("codeFlowValue");return atBreak(code3)}effects.consume(code3);return inside}function after(code3){effects.exit("codeIndented");return ok3(code3)}}function tokenizeFurtherStart(effects,ok3,nok){const self=this;return furtherStart2;function furtherStart2(code3){if(self.parser.lazy[self.now().line]){return nok(code3)}if(markdownLineEnding(code3)){effects.enter("lineEnding");effects.consume(code3);effects.exit("lineEnding");return furtherStart2}return factorySpace(effects,afterPrefix,"linePrefix",4+1)(code3)}function afterPrefix(code3){const tail=self.events[self.events.length-1];return tail&&tail[1].type==="linePrefix"&&tail[2].sliceSerialize(tail[1],true).length>=4?ok3(code3):markdownLineEnding(code3)?furtherStart2(code3):nok(code3)}}var codeText={name:"codeText",previous,resolve:resolveCodeText,tokenize:tokenizeCodeText};function resolveCodeText(events){let tailExitIndex=events.length-4;let headEnterIndex=3;let index2;let enter;if((events[headEnterIndex][1].type==="lineEnding"||events[headEnterIndex][1].type==="space")&&(events[tailExitIndex][1].type==="lineEnding"||events[tailExitIndex][1].type==="space")){index2=headEnterIndex;while(++index2<tailExitIndex){if(events[index2][1].type==="codeTextData"){events[headEnterIndex][1].type="codeTextPadding";events[tailExitIndex][1].type="codeTextPadding";headEnterIndex+=2;tailExitIndex-=2;break}}}index2=headEnterIndex-1;tailExitIndex++;while(++index2<=tailExitIndex){if(enter===void 0){if(index2!==tailExitIndex&&events[index2][1].type!=="lineEnding"){enter=index2}}else if(index2===tailExitIndex||events[index2][1].type==="lineEnding"){events[enter][1].type="codeTextData";if(index2!==enter+2){events[enter][1].end=events[index2-1][1].end;events.splice(enter+2,index2-enter-2);tailExitIndex-=index2-enter-2;index2=enter+2}enter=void 0}}return events}function previous(code3){return code3!==96||this.events[this.events.length-1][1].type==="characterEscape"}function tokenizeCodeText(effects,ok3,nok){const self=this;let sizeOpen=0;let size;let token;return start;function start(code3){effects.enter("codeText");effects.enter("codeTextSequence");return sequenceOpen(code3)}function sequenceOpen(code3){if(code3===96){effects.consume(code3);sizeOpen++;return sequenceOpen}effects.exit("codeTextSequence");return between(code3)}function between(code3){if(code3===null){return nok(code3)}if(code3===32){effects.enter("space");effects.consume(code3);effects.exit("space");return between}if(code3===96){token=effects.enter("codeTextSequence");size=0;return sequenceClose(code3)}if(markdownLineEnding(code3)){effects.enter("lineEnding");effects.consume(code3);effects.exit("lineEnding");return between}effects.enter("codeTextData");return data(code3)}function data(code3){if(code3===null||code3===32||code3===96||markdownLineEnding(code3)){effects.exit("codeTextData");return between(code3)}effects.consume(code3);return data}function sequenceClose(code3){if(code3===96){effects.consume(code3);size++;return sequenceClose}if(size===sizeOpen){effects.exit("codeTextSequence");effects.exit("codeText");return ok3(code3)}token.type="codeTextData";return data(code3)}}var SpliceBuffer=class{constructor(initial){this.left=initial?[...initial]:[];this.right=[]}get(index2){if(index2<0||index2>=this.left.length+this.right.length){throw new RangeError("Cannot access index `"+index2+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`")}if(index2<this.left.length)return this.left[index2];return this.right[this.right.length-index2+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){this.setCursor(0);return this.right.pop()}slice(start,end){const stop=end===null||end===void 0?Number.POSITIVE_INFINITY:end;if(stop<this.left.length){return this.left.slice(start,stop)}if(start>this.left.length){return this.right.slice(this.right.length-stop+this.left.length,this.right.length-start+this.left.length).reverse()}return this.left.slice(start).concat(this.right.slice(this.right.length-stop+this.left.length).reverse())}splice(start,deleteCount,items){const count=deleteCount||0;this.setCursor(Math.trunc(start));const removed=this.right.splice(this.right.length-count,Number.POSITIVE_INFINITY);if(items)chunkedPush(this.left,items);return removed.reverse()}pop(){this.setCursor(Number.POSITIVE_INFINITY);return this.left.pop()}push(item){this.setCursor(Number.POSITIVE_INFINITY);this.left.push(item)}pushMany(items){this.setCursor(Number.POSITIVE_INFINITY);chunkedPush(this.left,items)}unshift(item){this.setCursor(0);this.right.push(item)}unshiftMany(items){this.setCursor(0);chunkedPush(this.right,items.reverse())}setCursor(n){if(n===this.left.length||n>this.left.length&&this.right.length===0||n<0&&this.left.length===0)return;if(n<this.left.length){const removed=this.left.splice(n,Number.POSITIVE_INFINITY);chunkedPush(this.right,removed.reverse())}else{const removed=this.right.splice(this.left.length+this.right.length-n,Number.POSITIVE_INFINITY);chunkedPush(this.left,removed.reverse())}}};function chunkedPush(list3,right){let chunkStart=0;if(right.length<1e4){list3.push(...right)}else{while(chunkStart<right.length){list3.push(...right.slice(chunkStart,chunkStart+1e4));chunkStart+=1e4}}}function subtokenize(eventsArray){const jumps={};let index2=-1;let event;let lineIndex;let otherIndex;let otherEvent;let parameters;let subevents;let more;const events=new SpliceBuffer(eventsArray);while(++index2<events.length){while(index2 in jumps){index2=jumps[index2]}event=events.get(index2);if(index2&&event[1].type==="chunkFlow"&&events.get(index2-1)[1].type==="listItemPrefix"){subevents=event[1]._tokenizer.events;otherIndex=0;if(otherIndex<subevents.length&&subevents[otherIndex][1].type==="lineEndingBlank"){otherIndex+=2}if(otherIndex<subevents.length&&subevents[otherIndex][1].type==="content"){while(++otherIndex<subevents.length){if(subevents[otherIndex][1].type==="content"){break}if(subevents[otherIndex][1].type==="chunkText"){subevents[otherIndex][1]._isInFirstContentOfListItem=true;otherIndex++}}}}if(event[0]==="enter"){if(event[1].contentType){Object.assign(jumps,subcontent(events,index2));index2=jumps[index2];more=true}}else if(event[1]._container){otherIndex=index2;lineIndex=void 0;while(otherIndex--){otherEvent=events.get(otherIndex);if(otherEvent[1].type==="lineEnding"||otherEvent[1].type==="lineEndingBlank"){if(otherEvent[0]==="enter"){if(lineIndex){events.get(lineIndex)[1].type="lineEndingBlank"}otherEvent[1].type="lineEnding";lineIndex=otherIndex}}else if(otherEvent[1].type==="linePrefix"||otherEvent[1].type==="listItemIndent"){}else{break}}if(lineIndex){event[1].end={...events.get(lineIndex)[1].start};parameters=events.slice(lineIndex,index2);parameters.unshift(event);events.splice(lineIndex,index2-lineIndex+1,parameters)}}}splice(eventsArray,0,Number.POSITIVE_INFINITY,events.slice(0));return!more}function subcontent(events,eventIndex){const token=events.get(eventIndex)[1];const context=events.get(eventIndex)[2];let startPosition=eventIndex-1;const startPositions=[];let tokenizer=token._tokenizer;if(!tokenizer){tokenizer=context.parser[token.contentType](token.start);if(token._contentTypeTextTrailing){tokenizer._contentTypeTextTrailing=true}}const childEvents=tokenizer.events;const jumps=[];const gaps={};let stream;let previous3;let index2=-1;let current=token;let adjust=0;let start=0;const breaks=[start];while(current){while(events.get(++startPosition)[1]!==current){}startPositions.push(startPosition);if(!current._tokenizer){stream=context.sliceStream(current);if(!current.next){stream.push(null)}if(previous3){tokenizer.defineSkip(current.start)}if(current._isInFirstContentOfListItem){tokenizer._gfmTasklistFirstContentOfListItem=true}tokenizer.write(stream);if(current._isInFirstContentOfListItem){tokenizer._gfmTasklistFirstContentOfListItem=void 0}}previous3=current;current=current.next}current=token;while(++index2<childEvents.length){if(childEvents[index2][0]==="exit"&&childEvents[index2-1][0]==="enter"&&childEvents[index2][1].type===childEvents[index2-1][1].type&&childEvents[index2][1].start.line!==childEvents[index2][1].end.line){start=index2+1;breaks.push(start);current._tokenizer=void 0;current.previous=void 0;current=current.next}}tokenizer.events=[];if(current){current._tokenizer=void 0;current.previous=void 0}else{breaks.pop()}index2=breaks.length;while(index2--){const slice=childEvents.slice(breaks[index2],breaks[index2+1]);const start2=startPositions.pop();jumps.push([start2,start2+slice.length-1]);events.splice(start2,2,slice)}jumps.reverse();index2=-1;while(++index2<jumps.length){gaps[adjust+jumps[index2][0]]=adjust+jumps[index2][1];adjust+=jumps[index2][1]-jumps[index2][0]-1}return gaps}var content2={resolve:resolveContent,tokenize:tokenizeContent};var continuationConstruct={partial:true,tokenize:tokenizeContinuation};function resolveContent(events){subtokenize(events);return events}function tokenizeContent(effects,ok3){let previous3;return chunkStart;function chunkStart(code3){effects.enter("content");previous3=effects.enter("chunkContent",{contentType:"content"});return chunkInside(code3)}function chunkInside(code3){if(code3===null){return contentEnd(code3)}if(markdownLineEnding(code3)){return effects.check(continuationConstruct,contentContinue,contentEnd)(code3)}effects.consume(code3);return chunkInside}function contentEnd(code3){effects.exit("chunkContent");effects.exit("content");return ok3(code3)}function contentContinue(code3){effects.consume(code3);effects.exit("chunkContent");previous3.next=effects.enter("chunkContent",{contentType:"content",previous:previous3});previous3=previous3.next;return chunkInside}}function tokenizeContinuation(effects,ok3,nok){const self=this;return startLookahead;function startLookahead(code3){effects.exit("chunkContent");effects.enter("lineEnding");effects.consume(code3);effects.exit("lineEnding");return factorySpace(effects,prefixed,"linePrefix")}function prefixed(code3){if(code3===null||markdownLineEnding(code3)){return nok(code3)}const tail=self.events[self.events.length-1];if(!self.parser.constructs.disable.null.includes("codeIndented")&&tail&&tail[1].type==="linePrefix"&&tail[2].sliceSerialize(tail[1],true).length>=4){return ok3(code3)}return effects.interrupt(self.parser.constructs.flow,nok,ok3)(code3)}}function factoryDestination(effects,ok3,nok,type,literalType,literalMarkerType,rawType,stringType,max){const limit=max||Number.POSITIVE_INFINITY;let balance=0;return start;function start(code3){if(code3===60){effects.enter(type);effects.enter(literalType);effects.enter(literalMarkerType);effects.consume(code3);effects.exit(literalMarkerType);return enclosedBefore}if(code3===null||code3===32||code3===41||asciiControl(code3)){return nok(code3)}effects.enter(type);effects.enter(rawType);effects.enter(stringType);effects.enter("chunkString",{contentType:"string"});return raw(code3)}function enclosedBefore(code3){if(code3===62){effects.enter(literalMarkerType);effects.consume(code3);effects.exit(literalMarkerType);effects.exit(literalType);effects.exit(type);return ok3}effects.enter(stringType);effects.enter("chunkString",{contentType:"string"});return enclosed(code3)}function enclosed(code3){if(code3===62){effects.exit("chunkString");effects.exit(stringType);return enclosedBefore(code3)}if(code3===null||code3===60||markdownLineEnding(code3)){return nok(code3)}effects.consume(code3);return code3===92?enclosedEscape:enclosed}function enclosedEscape(code3){if(code3===60||code3===62||code3===92){effects.consume(code3);return enclosed}return enclosed(code3)}function raw(code3){if(!balance&&(code3===null||code3===41||markdownLineEndingOrSpace(code3))){effects.exit("chunkString");effects.exit(stringType);effects.exit(rawType);effects.exit(type);return ok3(code3)}if(balance<limit&&code3===40){effects.consume(code3);balance++;return raw}if(code3===41){effects.consume(code3);balance--;return raw}if(code3===null||code3===32||code3===40||asciiControl(code3)){return nok(code3)}effects.consume(code3);return code3===92?rawEscape:raw}function rawEscape(code3){if(code3===40||code3===41||code3===92){effects.consume(code3);return raw}return raw(code3)}}function factoryLabel(effects,ok3,nok,type,markerType,stringType){const self=this;let size=0;let seen;return start;function start(code3){effects.enter(type);effects.enter(markerType);effects.consume(code3);effects.exit(markerType);effects.enter(stringType);return atBreak}function atBreak(code3){if(size>999||code3===null||code3===91||code3===93&&!seen||code3===94&&!size&&"_hiddenFootnoteSupport"in self.parser.constructs){return nok(code3)}if(code3===93){effects.exit(stringType);effects.enter(markerType);effects.consume(code3);effects.exit(markerType);effects.exit(type);return ok3}if(markdownLineEnding(code3)){effects.enter("lineEnding");effects.consume(code3);effects.exit("lineEnding");return atBreak}effects.enter("chunkString",{contentType:"string"});return labelInside(code3)}function labelInside(code3){if(code3===null||code3===91||code3===93||markdownLineEnding(code3)||size++>999){effects.exit("chunkString");return atBreak(code3)}effects.consume(code3);if(!seen)seen=!markdownSpace(code3);return code3===92?labelEscape:labelInside}function labelEscape(code3){if(code3===91||code3===92||code3===93){effects.consume(code3);size++;return labelInside}return labelInside(code3)}}function factoryTitle(effects,ok3,nok,type,markerType,stringType){let marker;return start;function start(code3){if(code3===34||code3===39||code3===40){effects.enter(type);effects.enter(markerType);effects.consume(code3);effects.exit(markerType);marker=code3===40?41:code3;return begin}return nok(code3)}function begin(code3){if(code3===marker){effects.enter(markerType);effects.consume(code3);effects.exit(markerType);effects.exit(type);return ok3}effects.enter(stringType);return atBreak(code3)}function atBreak(code3){if(code3===marker){effects.exit(stringType);return begin(marker)}if(code3===null){return nok(code3)}if(markdownLineEnding(code3)){effects.enter("lineEnding");effects.consume(code3);effects.exit("lineEnding");return factorySpace(effects,atBreak,"linePrefix")}effects.enter("chunkString",{contentType:"string"});return inside(code3)}function inside(code3){if(code3===marker||code3===null||markdownLineEnding(code3)){effects.exit("chunkString");return atBreak(code3)}effects.consume(code3);return code3===92?escape:inside}function escape(code3){if(code3===marker||code3===92){effects.consume(code3);return inside}return inside(code3)}}function factoryWhitespace(effects,ok3){let seen;return start;function start(code3){if(markdownLineEnding(code3)){effects.enter("lineEnding");effects.consume(code3);effects.exit("lineEnding");seen=true;return start}if(markdownSpace(code3)){return factorySpace(effects,start,seen?"linePrefix":"lineSuffix")(code3)}return ok3(code3)}}var definition={name:"definition",tokenize:tokenizeDefinition};var titleBefore={partial:true,tokenize:tokenizeTitleBefore};function tokenizeDefinition(effects,ok3,nok){const self=this;let identifier;return start;function start(code3){effects.enter("definition");return before(code3)}function before(code3){return factoryLabel.call(self,effects,labelAfter,nok,"definitionLabel","definitionLabelMarker","definitionLabelString")(code3)}function labelAfter(code3){identifier=normalizeIdentifier(self.sliceSerialize(self.events[self.events.length-1][1]).slice(1,-1));if(code3===58){effects.enter("definitionMarker");effects.consume(code3);effects.exit("definitionMarker");return markerAfter}return nok(code3)}function markerAfter(code3){return markdownLineEndingOrSpace(code3)?factoryWhitespace(effects,destinationBefore)(code3):destinationBefore(code3)}function destinationBefore(code3){return factoryDestination(effects,destinationAfter,nok,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(code3)}function destinationAfter(code3){return effects.attempt(titleBefore,after,after)(code3)}function after(code3){return markdownSpace(code3)?factorySpace(effects,afterWhitespace,"whitespace")(code3):afterWhitespace(code3)}function afterWhitespace(code3){if(code3===null||markdownLineEnding(code3)){effects.exit("definition");self.parser.defined.push(identifier);return ok3(code3)}return nok(code3)}}function tokenizeTitleBefore(effects,ok3,nok){return titleBefore2;function titleBefore2(code3){return markdownLineEndingOrSpace(code3)?factoryWhitespace(effects,beforeMarker)(code3):nok(code3)}function beforeMarker(code3){return factoryTitle(effects,titleAfter,nok,"definitionTitle","definitionTitleMarker","definitionTitleString")(code3)}function titleAfter(code3){return markdownSpace(code3)?factorySpace(effects,titleAfterOptionalWhitespace,"whitespace")(code3):titleAfterOptionalWhitespace(code3)}function titleAfterOptionalWhitespace(code3){return code3===null||markdownLineEnding(code3)?ok3(code3):nok(code3)}}var hardBreakEscape={name:"hardBreakEscape",tokenize:tokenizeHardBreakEscape};function tokenizeHardBreakEscape(effects,ok3,nok){return start;function start(code3){effects.enter("hardBreakEscape");effects.consume(code3);return after}function after(code3){if(markdownLineEnding(code3)){effects.exit("hardBreakEscape");return ok3(code3)}return nok(code3)}}var headingAtx={name:"headingAtx",resolve:resolveHeadingAtx,tokenize:tokenizeHeadingAtx};function resolveHeadingAtx(events,context){let contentEnd=events.length-2;let contentStart=3;let content3;let text6;if(events[contentStart][1].type==="whitespace"){contentStart+=2}if(contentEnd-2>contentStart&&events[contentEnd][1].type==="whitespace"){contentEnd-=2}if(events[contentEnd][1].type==="atxHeadingSequence"&&(contentStart===contentEnd-1||contentEnd-4>contentStart&&events[contentEnd-2][1].type==="whitespace")){contentEnd-=contentStart+1===contentEnd?2:4}if(contentEnd>contentStart){content3={type:"atxHeadingText",start:events[contentStart][1].start,end:events[contentEnd][1].end};text6={type:"chunkText",start:events[contentStart][1].start,end:events[contentEnd][1].end,contentType:"text"};splice(events,contentStart,contentEnd-contentStart+1,[["enter",content3,context],["enter",text6,context],["exit",text6,context],["exit",content3,context]])}return events}function tokenizeHeadingAtx(effects,ok3,nok){let size=0;return start;function start(code3){effects.enter("atxHeading");return before(code3)}function before(code3){effects.enter("atxHeadingSequence");return sequenceOpen(code3)}function sequenceOpen(code3){if(code3===35&&size++<6){effects.consume(code3);return sequenceOpen}if(code3===null||markdownLineEndingOrSpace(code3)){effects.exit("atxHeadingSequence");return atBreak(code3)}return nok(code3)}function atBreak(code3){if(code3===35){effects.enter("atxHeadingSequence");return sequenceFurther(code3)}if(code3===null||markdownLineEnding(code3)){effects.exit("atxHeading");return ok3(code3)}if(markdownSpace(code3)){return factorySpace(effects,atBreak,"whitespace")(code3)}effects.enter("atxHeadingText");return data(code3)}function sequenceFurther(code3){if(code3===35){effects.consume(code3);return sequenceFurther}effects.exit("atxHeadingSequence");return atBreak(code3)}function data(code3){if(code3===null||code3===35||markdownLineEndingOrSpace(code3)){effects.exit("atxHeadingText");return atBreak(code3)}effects.consume(code3);return data}}var htmlBlockNames=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"];var htmlRawNames=["pre","script","style","textarea"];var htmlFlow={concrete:true,name:"htmlFlow",resolveTo:resolveToHtmlFlow,tokenize:tokenizeHtmlFlow};var blankLineBefore={partial:true,tokenize:tokenizeBlankLineBefore};var nonLazyContinuationStart={partial:true,tokenize:tokenizeNonLazyContinuationStart};function resolveToHtmlFlow(events){let index2=events.length;while(index2--){if(events[index2][0]==="enter"&&events[index2][1].type==="htmlFlow"){break}}if(index2>1&&events[index2-2][1].type==="linePrefix"){events[index2][1].start=events[index2-2][1].start;events[index2+1][1].start=events[index2-2][1].start;events.splice(index2-2,2)}return events}function tokenizeHtmlFlow(effects,ok3,nok){const self=this;let marker;let closingTag;let buffer;let index2;let markerB;return start;function start(code3){return before(code3)}function before(code3){effects.enter("htmlFlow");effects.enter("htmlFlowData");effects.consume(code3);return open}function open(code3){if(code3===33){effects.consume(code3);return declarationOpen}if(code3===47){effects.consume(code3);closingTag=true;return tagCloseStart}if(code3===63){effects.consume(code3);marker=3;return self.interrupt?ok3:continuationDeclarationInside}if(asciiAlpha(code3)){effects.consume(code3);buffer=String.fromCharCode(code3);return tagName}return nok(code3)}function declarationOpen(code3){if(code3===45){effects.consume(code3);marker=2;return commentOpenInside}if(code3===91){effects.consume(code3);marker=5;index2=0;return cdataOpenInside}if(asciiAlpha(code3)){effects.consume(code3);marker=4;return self.interrupt?ok3:continuationDeclarationInside}return nok(code3)}function commentOpenInside(code3){if(code3===45){effects.consume(code3);return self.interrupt?ok3:continuationDeclarationInside}return nok(code3)}function cdataOpenInside(code3){const value="CDATA[";if(code3===value.charCodeAt(index2++)){effects.consume(code3);if(index2===value.length){return self.interrupt?ok3:continuation}return cdataOpenInside}return nok(code3)}function tagCloseStart(code3){if(asciiAlpha(code3)){effects.consume(code3);buffer=String.fromCharCode(code3);return tagName}return nok(code3)}function tagName(code3){if(code3===null||code3===47||code3===62||markdownLineEndingOrSpace(code3)){const slash=code3===47;const name=buffer.toLowerCase();if(!slash&&!closingTag&&htmlRawNames.includes(name)){marker=1;return self.interrupt?ok3(code3):continuation(code3)}if(htmlBlockNames.includes(buffer.toLowerCase())){marker=6;if(slash){effects.consume(code3);return basicSelfClosing}return self.interrupt?ok3(code3):continuation(code3)}marker=7;return self.interrupt&&!self.parser.lazy[self.now().line]?nok(code3):closingTag?completeClosingTagAfter(code3):completeAttributeNameBefore(code3)}if(code3===45||asciiAlphanumeric(code3)){effects.consume(code3);buffer+=String.fromCharCode(code3);return tagName}return nok(code3)}function basicSelfClosing(code3){if(code3===62){effects.consume(code3);return self.interrupt?ok3:continuation}return nok(code3)}function completeClosingTagAfter(code3){if(markdownSpace(code3)){effects.consume(code3);return completeClosingTagAfter}return completeEnd(code3)}function completeAttributeNameBefore(code3){if(code3===47){effects.consume(code3);return completeEnd}if(code3===58||code3===95||asciiAlpha(code3)){effects.consume(code3);return completeAttributeName}if(markdownSpace(code3)){effects.consume(code3);return completeAttributeNameBefore}return completeEnd(code3)}function completeAttributeName(code3){if(code3===45||code3===46||code3===58||code3===95||asciiAlphanumeric(code3)){effects.consume(code3);return completeAttributeName}return completeAttributeNameAfter(code3)}function completeAttributeNameAfter(code3){if(code3===61){effects.consume(code3);return completeAttributeValueBefore}if(markdownSpace(code3)){effects.consume(code3);return completeAttributeNameAfter}return completeAttributeNameBefore(code3)}function completeAttributeValueBefore(code3){if(code3===null||code3===60||code3===61||code3===62||code3===96){return nok(code3)}if(code3===34||code3===39){effects.consume(code3);markerB=code3;return completeAttributeValueQuoted}if(markdownSpace(code3)){effects.consume(code3);return completeAttributeValueBefore}return completeAttributeValueUnquoted(code3)}function completeAttributeValueQuoted(code3){if(code3===markerB){effects.consume(code3);markerB=null;return completeAttributeValueQuotedAfter}if(code3===null||markdownLineEnding(code3)){return nok(code3)}effects.consume(code3);return completeAttributeValueQuoted}function completeAttributeValueUnquoted(code3){if(code3===null||code3===34||code3===39||code3===47||code3===60||code3===61||code3===62||code3===96||markdownLineEndingOrSpace(code3)){return completeAttributeNameAfter(code3)}effects.consume(code3);return completeAttributeValueUnquoted}function completeAttributeValueQuotedAfter(code3){if(code3===47||code3===62||markdownSpace(code3)){return completeAttributeNameBefore(code3)}return nok(code3)}function completeEnd(code3){if(code3===62){effects.consume(code3);return completeAfter}return nok(code3)}function completeAfter(code3){if(code3===null||markdownLineEnding(code3)){return continuation(code3)}if(markdownSpace(code3)){effects.consume(code3);return completeAfter}return nok(code3)}function continuation(code3){if(code3===45&&marker===2){effects.consume(code3);return continuationCommentInside}if(code3===60&&marker===1){effects.consume(code3);return continuationRawTagOpen}if(code3===62&&marker===4){effects.consume(code3);return continuationClose}if(code3===63&&marker===3){effects.consume(code3);return continuationDeclarationInside}if(code3===93&&marker===5){effects.consume(code3);return continuationCdataInside}if(markdownLineEnding(code3)&&(marker===6||marker===7)){effects.exit("htmlFlowData");return effects.check(blankLineBefore,continuationAfter,continuationStart)(code3)}if(code3===null||markdownLineEnding(code3)){effects.exit("htmlFlowData");return continuationStart(code3)}effects.consume(code3);return continuation}function continuationStart(code3){return effects.check(nonLazyContinuationStart,continuationStartNonLazy,continuationAfter)(code3)}function continuationStartNonLazy(code3){effects.enter("lineEnding");effects.consume(code3);effects.exit("lineEnding");return continuationBefore}function continuationBefore(code3){if(code3===null||markdownLineEnding(code3)){return continuationStart(code3)}effects.enter("htmlFlowData");return continuation(code3)}function continuationCommentInside(code3){if(code3===45){effects.consume(code3);return continuationDeclarationInside}return continuation(code3)}function continuationRawTagOpen(code3){if(code3===47){effects.consume(code3);buffer="";return continuationRawEndTag}return continuation(code3)}function continuationRawEndTag(code3){if(code3===62){const name=buffer.toLowerCase();if(htmlRawNames.includes(name)){effects.consume(code3);return continuationClose}return continuation(code3)}if(asciiAlpha(code3)&&buffer.length<8){effects.consume(code3);buffer+=String.fromCharCode(code3);return continuationRawEndTag}return continuation(code3)}function continuationCdataInside(code3){if(code3===93){effects.consume(code3);return continuationDeclarationInside}return continuation(code3)}function continuationDeclarationInside(code3){if(code3===62){effects.consume(code3);return continuationClose}if(code3===45&&marker===2){effects.consume(code3);return continuationDeclarationInside}return continuation(code3)}function continuationClose(code3){if(code3===null||markdownLineEnding(code3)){effects.exit("htmlFlowData");return continuationAfter(code3)}effects.consume(code3);return continuationClose}function continuationAfter(code3){effects.exit("htmlFlow");return ok3(code3)}}function tokenizeNonLazyContinuationStart(effects,ok3,nok){const self=this;return start;function start(code3){if(markdownLineEnding(code3)){effects.enter("lineEnding");effects.consume(code3);effects.exit("lineEnding");return after}return nok(code3)}function after(code3){return self.parser.lazy[self.now().line]?nok(code3):ok3(code3)}}function tokenizeBlankLineBefore(effects,ok3,nok){return start;function start(code3){effects.enter("lineEnding");effects.consume(code3);effects.exit("lineEnding");return effects.attempt(blankLine,ok3,nok)}}var htmlText={name:"htmlText",tokenize:tokenizeHtmlText};function tokenizeHtmlText(effects,ok3,nok){const self=this;let marker;let index2;let returnState;return start;function start(code3){effects.enter("htmlText");effects.enter("htmlTextData");effects.consume(code3);return open}function open(code3){if(code3===33){effects.consume(code3);return declarationOpen}if(code3===47){effects.consume(code3);return tagCloseStart}if(code3===63){effects.consume(code3);return instruction}if(asciiAlpha(code3)){effects.consume(code3);return tagOpen}return nok(code3)}function declarationOpen(code3){if(code3===45){effects.consume(code3);return commentOpenInside}if(code3===91){effects.consume(code3);index2=0;return cdataOpenInside}if(asciiAlpha(code3)){effects.consume(code3);return declaration}return nok(code3)}function commentOpenInside(code3){if(code3===45){effects.consume(code3);return commentEnd}return nok(code3)}function comment(code3){if(code3===null){return nok(code3)}if(code3===45){effects.consume(code3);return commentClose}if(markdownLineEnding(code3)){returnState=comment;return lineEndingBefore(code3)}effects.consume(code3);return comment}function commentClose(code3){if(code3===45){effects.consume(code3);return commentEnd}return comment(code3)}function commentEnd(code3){return code3===62?end(code3):code3===45?commentClose(code3):comment(code3)}function cdataOpenInside(code3){const value="CDATA[";if(code3===value.charCodeAt(index2++)){effects.consume(code3);return index2===value.length?cdata:cdataOpenInside}return nok(code3)}function cdata(code3){if(code3===null){return nok(code3)}if(code3===93){effects.consume(code3);return cdataClose}if(markdownLineEnding(code3)){returnState=cdata;return lineEndingBefore(code3)}effects.consume(code3);return cdata}function cdataClose(code3){if(code3===93){effects.consume(code3);return cdataEnd}return cdata(code3)}function cdataEnd(code3){if(code3===62){return end(code3)}if(code3===93){effects.consume(code3);return cdataEnd}return cdata(code3)}function declaration(code3){if(code3===null||code3===62){return end(code3)}if(markdownLineEnding(code3)){returnState=declaration;return lineEndingBefore(code3)}effects.consume(code3);return declaration}function instruction(code3){if(code3===null){return nok(code3)}if(code3===63){effects.consume(code3);return instructionClose}if(markdownLineEnding(code3)){returnState=instruction;return lineEndingBefore(code3)}effects.consume(code3);return instruction}function instructionClose(code3){return code3===62?end(code3):instruction(code3)}function tagCloseStart(code3){if(asciiAlpha(code3)){effects.consume(code3);return tagClose}return nok(code3)}function tagClose(code3){if(code3===45||asciiAlphanumeric(code3)){effects.consume(code3);return tagClose}return tagCloseBetween(code3)}function tagCloseBetween(code3){if(markdownLineEnding(code3)){returnState=tagCloseBetween;return lineEndingBefore(code3)}if(markdownSpace(code3)){effects.consume(code3);return tagCloseBetween}return end(code3)}function tagOpen(code3){if(code3===45||asciiAlphanumeric(code3)){effects.consume(code3);return tagOpen}if(code3===47||code3===62||markdownLineEndingOrSpace(code3)){return tagOpenBetween(code3)}return nok(code3)}function tagOpenBetween(code3){if(code3===47){effects.consume(code3);return end}if(code3===58||code3===95||asciiAlpha(code3)){effects.consume(code3);return tagOpenAttributeName}if(markdownLineEnding(code3)){returnState=tagOpenBetween;return lineEndingBefore(code3)}if(markdownSpace(code3)){effects.consume(code3);return tagOpenBetween}return end(code3)}function tagOpenAttributeName(code3){if(code3===45||code3===46||code3===58||code3===95||asciiAlphanumeric(code3)){effects.consume(code3);return tagOpenAttributeName}return tagOpenAttributeNameAfter(code3)}function tagOpenAttributeNameAfter(code3){if(code3===61){effects.consume(code3);return tagOpenAttributeValueBefore}if(markdownLineEnding(code3)){returnState=tagOpenAttributeNameAfter;return lineEndingBefore(code3)}if(markdownSpace(code3)){effects.consume(code3);return tagOpenAttributeNameAfter}return tagOpenBetween(code3)}function tagOpenAttributeValueBefore(code3){if(code3===null||code3===60||code3===61||code3===62||code3===96){return nok(code3)}if(code3===34||code3===39){effects.consume(code3);marker=code3;return tagOpenAttributeValueQuoted}if(markdownLineEnding(code3)){returnState=tagOpenAttributeValueBefore;return lineEndingBefore(code3)}if(markdownSpace(code3)){effects.consume(code3);return tagOpenAttributeValueBefore}effects.consume(code3);return tagOpenAttributeValueUnquoted}function tagOpenAttributeValueQuoted(code3){if(code3===marker){effects.consume(code3);marker=void 0;return tagOpenAttributeValueQuotedAfter}if(code3===null){return nok(code3)}if(markdownLineEnding(code3)){returnState=tagOpenAttributeValueQuoted;return lineEndingBefore(code3)}effects.consume(code3);return tagOpenAttributeValueQuoted}function tagOpenAttributeValueUnquoted(code3){if(code3===null||code3===34||code3===39||code3===60||code3===61||code3===96){return nok(code3)}if(code3===47||code3===62||markdownLineEndingOrSpace(code3)){return tagOpenBetween(code3)}effects.consume(code3);return tagOpenAttributeValueUnquoted}function tagOpenAttributeValueQuotedAfter(code3){if(code3===47||code3===62||markdownLineEndingOrSpace(code3)){return tagOpenBetween(code3)}return nok(code3)}function end(code3){if(code3===62){effects.consume(code3);effects.exit("htmlTextData");effects.exit("htmlText");return ok3}return nok(code3)}function lineEndingBefore(code3){effects.exit("htmlTextData");effects.enter("lineEnding");effects.consume(code3);effects.exit("lineEnding");return lineEndingAfter}function lineEndingAfter(code3){return markdownSpace(code3)?factorySpace(effects,lineEndingAfterPrefix,"linePrefix",self.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(code3):lineEndingAfterPrefix(code3)}function lineEndingAfterPrefix(code3){effects.enter("htmlTextData");return returnState(code3)}}var labelEnd={name:"labelEnd",resolveAll:resolveAllLabelEnd,resolveTo:resolveToLabelEnd,tokenize:tokenizeLabelEnd};var resourceConstruct={tokenize:tokenizeResource};var referenceFullConstruct={tokenize:tokenizeReferenceFull};var referenceCollapsedConstruct={tokenize:tokenizeReferenceCollapsed};function resolveAllLabelEnd(events){let index2=-1;const newEvents=[];while(++index2<events.length){const token=events[index2][1];newEvents.push(events[index2]);if(token.type==="labelImage"||token.type==="labelLink"||token.type==="labelEnd"){const offset=token.type==="labelImage"?4:2;token.type="data";index2+=offset}}if(events.length!==newEvents.length){splice(events,0,events.length,newEvents)}return events}function resolveToLabelEnd(events,context){let index2=events.length;let offset=0;let token;let open;let close;let media;while(index2--){token=events[index2][1];if(open){if(token.type==="link"||token.type==="labelLink"&&token._inactive){break}if(events[index2][0]==="enter"&&token.type==="labelLink"){token._inactive=true}}else if(close){if(events[index2][0]==="enter"&&(token.type==="labelImage"||token.type==="labelLink")&&!token._balanced){open=index2;if(token.type!=="labelLink"){offset=2;break}}}else if(token.type==="labelEnd"){close=index2}}const group={type:events[open][1].type==="labelLink"?"link":"image",start:{...events[open][1].start},end:{...events[events.length-1][1].end}};const label={type:"label",start:{...events[open][1].start},end:{...events[close][1].end}};const text6={type:"labelText",start:{...events[open+offset+2][1].end},end:{...events[close-2][1].start}};media=[["enter",group,context],["enter",label,context]];media=push(media,events.slice(open+1,open+offset+3));media=push(media,[["enter",text6,context]]);media=push(media,resolveAll(context.parser.constructs.insideSpan.null,events.slice(open+offset+4,close-3),context));media=push(media,[["exit",text6,context],events[close-2],events[close-1],["exit",label,context]]);media=push(media,events.slice(close+1));media=push(media,[["exit",group,context]]);splice(events,open,events.length,media);return events}function tokenizeLabelEnd(effects,ok3,nok){const self=this;let index2=self.events.length;let labelStart;let defined;while(index2--){if((self.events[index2][1].type==="labelImage"||self.events[index2][1].type==="labelLink")&&!self.events[index2][1]._balanced){labelStart=self.events[index2][1];break}}return start;function start(code3){if(!labelStart){return nok(code3)}if(labelStart._inactive){return labelEndNok(code3)}defined=self.parser.defined.includes(normalizeIdentifier(self.sliceSerialize({start:labelStart.end,end:self.now()})));effects.enter("labelEnd");effects.enter("labelMarker");effects.consume(code3);effects.exit("labelMarker");effects.exit("labelEnd");return after}function after(code3){if(code3===40){return effects.attempt(resourceConstruct,labelEndOk,defined?labelEndOk:labelEndNok)(code3)}if(code3===91){return effects.attempt(referenceFullConstruct,labelEndOk,defined?referenceNotFull:labelEndNok)(code3)}return defined?labelEndOk(code3):labelEndNok(code3)}function referenceNotFull(code3){return effects.attempt(referenceCollapsedConstruct,labelEndOk,labelEndNok)(code3)}function labelEndOk(code3){return ok3(code3)}function labelEndNok(code3){labelStart._balanced=true;return nok(code3)}}function tokenizeResource(effects,ok3,nok){return resourceStart;function resourceStart(code3){effects.enter("resource");effects.enter("resourceMarker");effects.consume(code3);effects.exit("resourceMarker");return resourceBefore}function resourceBefore(code3){return markdownLineEndingOrSpace(code3)?factoryWhitespace(effects,resourceOpen)(code3):resourceOpen(code3)}function resourceOpen(code3){if(code3===41){return resourceEnd(code3)}return factoryDestination(effects,resourceDestinationAfter,resourceDestinationMissing,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(code3)}function resourceDestinationAfter(code3){return markdownLineEndingOrSpace(code3)?factoryWhitespace(effects,resourceBetween)(code3):resourceEnd(code3)}function resourceDestinationMissing(code3){return nok(code3)}function resourceBetween(code3){if(code3===34||code3===39||code3===40){return factoryTitle(effects,resourceTitleAfter,nok,"resourceTitle","resourceTitleMarker","resourceTitleString")(code3)}return resourceEnd(code3)}function resourceTitleAfter(code3){return markdownLineEndingOrSpace(code3)?factoryWhitespace(effects,resourceEnd)(code3):resourceEnd(code3)}function resourceEnd(code3){if(code3===41){effects.enter("resourceMarker");effects.consume(code3);effects.exit("resourceMarker");effects.exit("resource");return ok3}return nok(code3)}}function tokenizeReferenceFull(effects,ok3,nok){const self=this;return referenceFull;function referenceFull(code3){return factoryLabel.call(self,effects,referenceFullAfter,referenceFullMissing,"reference","referenceMarker","referenceString")(code3)}function referenceFullAfter(code3){return self.parser.defined.includes(normalizeIdentifier(self.sliceSerialize(self.events[self.events.length-1][1]).slice(1,-1)))?ok3(code3):nok(code3)}function referenceFullMissing(code3){return nok(code3)}}function tokenizeReferenceCollapsed(effects,ok3,nok){return referenceCollapsedStart;function referenceCollapsedStart(code3){effects.enter("reference");effects.enter("referenceMarker");effects.consume(code3);effects.exit("referenceMarker");return referenceCollapsedOpen}function referenceCollapsedOpen(code3){if(code3===93){effects.enter("referenceMarker");effects.consume(code3);effects.exit("referenceMarker");effects.exit("reference");return ok3}return nok(code3)}}var labelStartImage={name:"labelStartImage",resolveAll:labelEnd.resolveAll,tokenize:tokenizeLabelStartImage};function tokenizeLabelStartImage(effects,ok3,nok){const self=this;return start;function start(code3){effects.enter("labelImage");effects.enter("labelImageMarker");effects.consume(code3);effects.exit("labelImageMarker");return open}function open(code3){if(code3===91){effects.enter("labelMarker");effects.consume(code3);effects.exit("labelMarker");effects.exit("labelImage");return after}return nok(code3)}function after(code3){return code3===94&&"_hiddenFootnoteSupport"in self.parser.constructs?nok(code3):ok3(code3)}}var labelStartLink={name:"labelStartLink",resolveAll:labelEnd.resolveAll,tokenize:tokenizeLabelStartLink};function tokenizeLabelStartLink(effects,ok3,nok){const self=this;return start;function start(code3){effects.enter("labelLink");effects.enter("labelMarker");effects.consume(code3);effects.exit("labelMarker");effects.exit("labelLink");return after}function after(code3){return code3===94&&"_hiddenFootnoteSupport"in self.parser.constructs?nok(code3):ok3(code3)}}var lineEnding={name:"lineEnding",tokenize:tokenizeLineEnding};function tokenizeLineEnding(effects,ok3){return start;function start(code3){effects.enter("lineEnding");effects.consume(code3);effects.exit("lineEnding");return factorySpace(effects,ok3,"linePrefix")}}var thematicBreak={name:"thematicBreak",tokenize:tokenizeThematicBreak};function tokenizeThematicBreak(effects,ok3,nok){let size=0;let marker;return start;function start(code3){effects.enter("thematicBreak");return before(code3)}function before(code3){marker=code3;return atBreak(code3)}function atBreak(code3){if(code3===marker){effects.enter("thematicBreakSequence");return sequence(code3)}if(size>=3&&(code3===null||markdownLineEnding(code3))){effects.exit("thematicBreak");return ok3(code3)}return nok(code3)}function sequence(code3){if(code3===marker){effects.consume(code3);size++;return sequence}effects.exit("thematicBreakSequence");return markdownSpace(code3)?factorySpace(effects,atBreak,"whitespace")(code3):atBreak(code3)}}var list={continuation:{tokenize:tokenizeListContinuation},exit:tokenizeListEnd,name:"list",tokenize:tokenizeListStart};var listItemPrefixWhitespaceConstruct={partial:true,tokenize:tokenizeListItemPrefixWhitespace};var indentConstruct={partial:true,tokenize:tokenizeIndent};function tokenizeListStart(effects,ok3,nok){const self=this;const tail=self.events[self.events.length-1];let initialSize=tail&&tail[1].type==="linePrefix"?tail[2].sliceSerialize(tail[1],true).length:0;let size=0;return start;function start(code3){const kind=self.containerState.type||(code3===42||code3===43||code3===45?"listUnordered":"listOrdered");if(kind==="listUnordered"?!self.containerState.marker||code3===self.containerState.marker:asciiDigit(code3)){if(!self.containerState.type){self.containerState.type=kind;effects.enter(kind,{_container:true})}if(kind==="listUnordered"){effects.enter("listItemPrefix");return code3===42||code3===45?effects.check(thematicBreak,nok,atMarker)(code3):atMarker(code3)}if(!self.interrupt||code3===49){effects.enter("listItemPrefix");effects.enter("listItemValue");return inside(code3)}}return nok(code3)}function inside(code3){if(asciiDigit(code3)&&++size<10){effects.consume(code3);return inside}if((!self.interrupt||size<2)&&(self.containerState.marker?code3===self.containerState.marker:code3===41||code3===46)){effects.exit("listItemValue");return atMarker(code3)}return nok(code3)}function atMarker(code3){effects.enter("listItemMarker");effects.consume(code3);effects.exit("listItemMarker");self.containerState.marker=self.containerState.marker||code3;return effects.check(blankLine,self.interrupt?nok:onBlank,effects.attempt(listItemPrefixWhitespaceConstruct,endOfPrefix,otherPrefix))}function onBlank(code3){self.containerState.initialBlankLine=true;initialSize++;return endOfPrefix(code3)}function otherPrefix(code3){if(markdownSpace(code3)){effects.enter("listItemPrefixWhitespace");effects.consume(code3);effects.exit("listItemPrefixWhitespace");return endOfPrefix}return nok(code3)}function endOfPrefix(code3){self.containerState.size=initialSize+self.sliceSerialize(effects.exit("listItemPrefix"),true).length;return ok3(code3)}}function tokenizeListContinuation(effects,ok3,nok){const self=this;self.containerState._closeFlow=void 0;return effects.check(blankLine,onBlank,notBlank);function onBlank(code3){self.containerState.furtherBlankLines=self.containerState.furtherBlankLines||self.containerState.initialBlankLine;return factorySpace(effects,ok3,"listItemIndent",self.containerState.size+1)(code3)}function notBlank(code3){if(self.containerState.furtherBlankLines||!markdownSpace(code3)){self.containerState.furtherBlankLines=void 0;self.containerState.initialBlankLine=void 0;return notInCurrentItem(code3)}self.containerState.furtherBlankLines=void 0;self.containerState.initialBlankLine=void 0;return effects.attempt(indentConstruct,ok3,notInCurrentItem)(code3)}function notInCurrentItem(code3){self.containerState._closeFlow=true;self.interrupt=void 0;return factorySpace(effects,effects.attempt(list,ok3,nok),"linePrefix",self.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(code3)}}function tokenizeIndent(effects,ok3,nok){const self=this;return factorySpace(effects,afterPrefix,"listItemIndent",self.containerState.size+1);function afterPrefix(code3){const tail=self.events[self.events.length-1];return tail&&tail[1].type==="listItemIndent"&&tail[2].sliceSerialize(tail[1],true).length===self.containerState.size?ok3(code3):nok(code3)}}function tokenizeListEnd(effects){effects.exit(this.containerState.type)}function tokenizeListItemPrefixWhitespace(effects,ok3,nok){const self=this;return factorySpace(effects,afterPrefix,"listItemPrefixWhitespace",self.parser.constructs.disable.null.includes("codeIndented")?void 0:4+1);function afterPrefix(code3){const tail=self.events[self.events.length-1];return!markdownSpace(code3)&&tail&&tail[1].type==="listItemPrefixWhitespace"?ok3(code3):nok(code3)}}var setextUnderline={name:"setextUnderline",resolveTo:resolveToSetextUnderline,tokenize:tokenizeSetextUnderline};function resolveToSetextUnderline(events,context){let index2=events.length;let content3;let text6;let definition3;while(index2--){if(events[index2][0]==="enter"){if(events[index2][1].type==="content"){content3=index2;break}if(events[index2][1].type==="paragraph"){text6=index2}}else{if(events[index2][1].type==="content"){events.splice(index2,1)}if(!definition3&&events[index2][1].type==="definition"){definition3=index2}}}const heading2={type:"setextHeading",start:{...events[content3][1].start},end:{...events[events.length-1][1].end}};events[text6][1].type="setextHeadingText";if(definition3){events.splice(text6,0,["enter",heading2,context]);events.splice(definition3+1,0,["exit",events[content3][1],context]);events[content3][1].end={...events[definition3][1].end}}else{events[content3][1]=heading2}events.push(["exit",heading2,context]);return events}function tokenizeSetextUnderline(effects,ok3,nok){const self=this;let marker;return start;function start(code3){let index2=self.events.length;let paragraph2;while(index2--){if(self.events[index2][1].type!=="lineEnding"&&self.events[index2][1].type!=="linePrefix"&&self.events[index2][1].type!=="content"){paragraph2=self.events[index2][1].type==="paragraph";break}}if(!self.parser.lazy[self.now().line]&&(self.interrupt||paragraph2)){effects.enter("setextHeadingLine");marker=code3;return before(code3)}return nok(code3)}function before(code3){effects.enter("setextHeadingLineSequence");return inside(code3)}function inside(code3){if(code3===marker){effects.consume(code3);return inside}effects.exit("setextHeadingLineSequence");return markdownSpace(code3)?factorySpace(effects,after,"lineSuffix")(code3):after(code3)}function after(code3){if(code3===null||markdownLineEnding(code3)){effects.exit("setextHeadingLine");return ok3(code3)}return nok(code3)}}var flow={tokenize:initializeFlow};function initializeFlow(effects){const self=this;const initial=effects.attempt(blankLine,atBlankEnding,effects.attempt(this.parser.constructs.flowInitial,afterConstruct,factorySpace(effects,effects.attempt(this.parser.constructs.flow,afterConstruct,effects.attempt(content2,afterConstruct)),"linePrefix")));return initial;function atBlankEnding(code3){if(code3===null){effects.consume(code3);return}effects.enter("lineEndingBlank");effects.consume(code3);effects.exit("lineEndingBlank");self.currentConstruct=void 0;return initial}function afterConstruct(code3){if(code3===null){effects.consume(code3);return}effects.enter("lineEnding");effects.consume(code3);effects.exit("lineEnding");self.currentConstruct=void 0;return initial}}var resolver={resolveAll:createResolver()};var string=initializeFactory("string");var text=initializeFactory("text");function initializeFactory(field){return{resolveAll:createResolver(field==="text"?resolveAllLineSuffixes:void 0),tokenize:initializeText};function initializeText(effects){const self=this;const constructs2=this.parser.constructs[field];const text6=effects.attempt(constructs2,start,notText);return start;function start(code3){return atBreak(code3)?text6(code3):notText(code3)}function notText(code3){if(code3===null){effects.consume(code3);return}effects.enter("data");effects.consume(code3);return data}function data(code3){if(atBreak(code3)){effects.exit("data");return text6(code3)}effects.consume(code3);return data}function atBreak(code3){if(code3===null){return true}const list3=constructs2[code3];let index2=-1;if(list3){while(++index2<list3.length){const item=list3[index2];if(!item.previous||item.previous.call(self,self.previous)){return true}}}return false}}}function createResolver(extraResolver){return resolveAllText;function resolveAllText(events,context){let index2=-1;let enter;while(++index2<=events.length){if(enter===void 0){if(events[index2]&&events[index2][1].type==="data"){enter=index2;index2++}}else if(!events[index2]||events[index2][1].type!=="data"){if(index2!==enter+2){events[enter][1].end=events[index2-1][1].end;events.splice(enter+2,index2-enter-2);index2=enter+2}enter=void 0}}return extraResolver?extraResolver(events,context):events}}function resolveAllLineSuffixes(events,context){let eventIndex=0;while(++eventIndex<=events.length){if((eventIndex===events.length||events[eventIndex][1].type==="lineEnding")&&events[eventIndex-1][1].type==="data"){const data=events[eventIndex-1][1];const chunks=context.sliceStream(data);let index2=chunks.length;let bufferIndex=-1;let size=0;let tabs;while(index2--){const chunk=chunks[index2];if(typeof chunk==="string"){bufferIndex=chunk.length;while(chunk.charCodeAt(bufferIndex-1)===32){size++;bufferIndex--}if(bufferIndex)break;bufferIndex=-1}else if(chunk===-2){tabs=true;size++}else if(chunk===-1){}else{index2++;break}}if(context._contentTypeTextTrailing&&eventIndex===events.length){size=0}if(size){const token={type:eventIndex===events.length||tabs||size<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:index2?bufferIndex:data.start._bufferIndex+bufferIndex,_index:data.start._index+index2,line:data.end.line,column:data.end.column-size,offset:data.end.offset-size},end:{...data.end}};data.end={...token.start};if(data.start.offset===data.end.offset){Object.assign(data,token)}else{events.splice(eventIndex,0,["enter",token,context],["exit",token,context]);eventIndex+=2}}eventIndex++}}return events}var constructs_exports={};__export(constructs_exports,{attentionMarkers:()=>attentionMarkers,contentInitial:()=>contentInitial,disable:()=>disable,document:()=>document3,flow:()=>flow2,flowInitial:()=>flowInitial,insideSpan:()=>insideSpan,string:()=>string2,text:()=>text2});var document3={[42]:list,[43]:list,[45]:list,[48]:list,[49]:list,[50]:list,[51]:list,[52]:list,[53]:list,[54]:list,[55]:list,[56]:list,[57]:list,[62]:blockQuote};var contentInitial={[91]:definition};var flowInitial={[-2]:codeIndented,[-1]:codeIndented,[32]:codeIndented};var flow2={[35]:headingAtx,[42]:thematicBreak,[45]:[setextUnderline,thematicBreak],[60]:htmlFlow,[61]:setextUnderline,[95]:thematicBreak,[96]:codeFenced,[126]:codeFenced};var string2={[38]:characterReference,[92]:characterEscape};var text2={[-5]:lineEnding,[-4]:lineEnding,[-3]:lineEnding,[33]:labelStartImage,[38]:characterReference,[42]:attention,[60]:[autolink,htmlText],[91]:labelStartLink,[92]:[hardBreakEscape,characterEscape],[93]:labelEnd,[95]:attention,[96]:codeText};var insideSpan={null:[attention,resolver]};var attentionMarkers={null:[42,95]};var disable={null:[]};function createTokenizer(parser,initialize,from){let point3={_bufferIndex:-1,_index:0,line:from&&from.line||1,column:from&&from.column||1,offset:from&&from.offset||0};const columnStart={};const resolveAllConstructs=[];let chunks=[];let stack=[];let consumed=true;const effects={attempt:constructFactory(onsuccessfulconstruct),check:constructFactory(onsuccessfulcheck),consume,enter,exit:exit3,interrupt:constructFactory(onsuccessfulcheck,{interrupt:true})};const context={code:null,containerState:{},defineSkip,events:[],now,parser,previous:null,sliceSerialize,sliceStream,write};let state=initialize.tokenize.call(context,effects);let expectedCode;if(initialize.resolveAll){resolveAllConstructs.push(initialize)}return context;function write(slice){chunks=push(chunks,slice);main();if(chunks[chunks.length-1]!==null){return[]}addResult(initialize,0);context.events=resolveAll(resolveAllConstructs,context.events,context);return context.events}function sliceSerialize(token,expandTabs){return serializeChunks(sliceStream(token),expandTabs)}function sliceStream(token){return sliceChunks(chunks,token)}function now(){const{_bufferIndex,_index,line,column,offset}=point3;return{_bufferIndex,_index,line,column,offset}}function defineSkip(value){columnStart[value.line]=value.column;accountForPotentialSkip()}function main(){let chunkIndex;while(point3._index<chunks.length){const chunk=chunks[point3._index];if(typeof chunk==="string"){chunkIndex=point3._index;if(point3._bufferIndex<0){point3._bufferIndex=0}while(point3._index===chunkIndex&&point3._bufferIndex<chunk.length){go(chunk.charCodeAt(point3._bufferIndex))}}else{go(chunk)}}}function go(code3){consumed=void 0;expectedCode=code3;state=state(code3)}function consume(code3){if(markdownLineEnding(code3)){point3.line++;point3.column=1;point3.offset+=code3===-3?2:1;accountForPotentialSkip()}else if(code3!==-1){point3.column++;point3.offset++}if(point3._bufferIndex<0){point3._index++}else{point3._bufferIndex++;if(point3._bufferIndex===chunks[point3._index].length){point3._bufferIndex=-1;point3._index++}}context.previous=code3;consumed=true}function enter(type,fields){const token=fields||{};token.type=type;token.start=now();context.events.push(["enter",token,context]);stack.push(token);return token}function exit3(type){const token=stack.pop();token.end=now();context.events.push(["exit",token,context]);return token}function onsuccessfulconstruct(construct,info){addResult(construct,info.from)}function onsuccessfulcheck(_,info){info.restore()}function constructFactory(onreturn,fields){return hook;function hook(constructs2,returnState,bogusState){let listOfConstructs;let constructIndex;let currentConstruct;let info;return Array.isArray(constructs2)?handleListOfConstructs(constructs2):"tokenize"in constructs2?handleListOfConstructs([constructs2]):handleMapOfConstructs(constructs2);function handleMapOfConstructs(map3){return start;function start(code3){const left=code3!==null&&map3[code3];const all2=code3!==null&&map3.null;const list3=[...Array.isArray(left)?left:left?[left]:[],...Array.isArray(all2)?all2:all2?[all2]:[]];return handleListOfConstructs(list3)(code3)}}function handleListOfConstructs(list3){listOfConstructs=list3;constructIndex=0;if(list3.length===0){return bogusState}return handleConstruct(list3[constructIndex])}function handleConstruct(construct){return start;function start(code3){info=store();currentConstruct=construct;if(!construct.partial){context.currentConstruct=construct}if(construct.name&&context.parser.constructs.disable.null.includes(construct.name)){return nok(code3)}return construct.tokenize.call(fields?Object.assign(Object.create(context),fields):context,effects,ok3,nok)(code3)}}function ok3(code3){consumed=true;onreturn(currentConstruct,info);return returnState}function nok(code3){consumed=true;info.restore();if(++constructIndex<listOfConstructs.length){return handleConstruct(listOfConstructs[constructIndex])}return bogusState}}}function addResult(construct,from2){if(construct.resolveAll&&!resolveAllConstructs.includes(construct)){resolveAllConstructs.push(construct)}if(construct.resolve){splice(context.events,from2,context.events.length-from2,construct.resolve(context.events.slice(from2),context))}if(construct.resolveTo){context.events=construct.resolveTo(context.events,context)}}function store(){const startPoint=now();const startPrevious=context.previous;const startCurrentConstruct=context.currentConstruct;const startEventsIndex=context.events.length;const startStack=Array.from(stack);return{from:startEventsIndex,restore};function restore(){point3=startPoint;context.previous=startPrevious;context.currentConstruct=startCurrentConstruct;context.events.length=startEventsIndex;stack=startStack;accountForPotentialSkip()}}function accountForPotentialSkip(){if(point3.line in columnStart&&point3.column<2){point3.column=columnStart[point3.line];point3.offset+=columnStart[point3.line]-1}}}function sliceChunks(chunks,token){const startIndex=token.start._index;const startBufferIndex=token.start._bufferIndex;const endIndex=token.end._index;const endBufferIndex=token.end._bufferIndex;let view;if(startIndex===endIndex){view=[chunks[startIndex].slice(startBufferIndex,endBufferIndex)]}else{view=chunks.slice(startIndex,endIndex);if(startBufferIndex>-1){const head=view[0];if(typeof head==="string"){view[0]=head.slice(startBufferIndex)}else{view.shift()}}if(endBufferIndex>0){view.push(chunks[endIndex].slice(0,endBufferIndex))}}return view}function serializeChunks(chunks,expandTabs){let index2=-1;const result=[];let atTab;while(++index2<chunks.length){const chunk=chunks[index2];let value;if(typeof chunk==="string"){value=chunk}else switch(chunk){case-5:{value="\r";break}case-4:{value="\n";break}case-3:{value="\r\n";break}case-2:{value=expandTabs?" ":" ";break}case-1:{if(!expandTabs&&atTab)continue;value=" ";break}default:{value=String.fromCharCode(chunk)}}atTab=chunk===-2;result.push(value)}return result.join("")}function parse(options){const settings=options||{};const constructs2=combineExtensions([constructs_exports,...settings.extensions||[]]);const parser={constructs:constructs2,content:create(content),defined:[],document:create(document2),flow:create(flow),lazy:{},string:create(string),text:create(text)};return parser;function create(initial){return creator;function creator(from){return createTokenizer(parser,initial,from)}}}function postprocess(events){while(!subtokenize(events)){}return events}var search=/[\0\t\n\r]/g;function preprocess(){let column=1;let buffer="";let start=true;let atCarriageReturn;return preprocessor;function preprocessor(value,encoding,end){const chunks=[];let match;let next;let startPosition;let endPosition;let code3;value=buffer+(typeof value==="string"?value.toString():new TextDecoder(encoding||void 0).decode(value));startPosition=0;buffer="";if(start){if(value.charCodeAt(0)===65279){startPosition++}start=void 0}while(startPosition<value.length){search.lastIndex=startPosition;match=search.exec(value);endPosition=match&&match.index!==void 0?match.index:value.length;code3=value.charCodeAt(endPosition);if(!match){buffer=value.slice(startPosition);break}if(code3===10&&startPosition===endPosition&&atCarriageReturn){chunks.push(-3);atCarriageReturn=void 0}else{if(atCarriageReturn){chunks.push(-5);atCarriageReturn=void 0}if(startPosition<endPosition){chunks.push(value.slice(startPosition,endPosition));column+=endPosition-startPosition}switch(code3){case 0:{chunks.push(65533);column++;break}case 9:{next=Math.ceil(column/4)*4;chunks.push(-2);while(column++<next)chunks.push(-1);break}case 10:{chunks.push(-4);column=1;break}default:{atCarriageReturn=true;column=1}}}startPosition=endPosition+1}if(end){if(atCarriageReturn)chunks.push(-5);if(buffer)chunks.push(buffer);chunks.push(null)}return chunks}}var characterEscapeOrReference=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function decodeString(value){return value.replace(characterEscapeOrReference,decode)}function decode($0,$1,$2){if($1){return $1}const head=$2.charCodeAt(0);if(head===35){const head2=$2.charCodeAt(1);const hex=head2===120||head2===88;return decodeNumericCharacterReference($2.slice(hex?2:1),hex?16:10)}return decodeNamedCharacterReference($2)||$0}var own3={}.hasOwnProperty;function fromMarkdown(value,encoding,options){if(typeof encoding!=="string"){options=encoding;encoding=void 0}return compiler(options)(postprocess(parse(options).document().write(preprocess()(value,encoding,true))))}function compiler(options){const config={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:opener(link2),autolinkProtocol:onenterdata,autolinkEmail:onenterdata,atxHeading:opener(heading2),blockQuote:opener(blockQuote2),characterEscape:onenterdata,characterReference:onenterdata,codeFenced:opener(codeFlow),codeFencedFenceInfo:buffer,codeFencedFenceMeta:buffer,codeIndented:opener(codeFlow,buffer),codeText:opener(codeText2,buffer),codeTextData:onenterdata,data:onenterdata,codeFlowValue:onenterdata,definition:opener(definition3),definitionDestinationString:buffer,definitionLabelString:buffer,definitionTitleString:buffer,emphasis:opener(emphasis2),hardBreakEscape:opener(hardBreak2),hardBreakTrailing:opener(hardBreak2),htmlFlow:opener(html2,buffer),htmlFlowData:onenterdata,htmlText:opener(html2,buffer),htmlTextData:onenterdata,image:opener(image2),label:buffer,link:opener(link2),listItem:opener(listItem2),listItemValue:onenterlistitemvalue,listOrdered:opener(list3,onenterlistordered),listUnordered:opener(list3),paragraph:opener(paragraph2),reference:onenterreference,referenceString:buffer,resourceDestinationString:buffer,resourceTitleString:buffer,setextHeading:opener(heading2),strong:opener(strong2),thematicBreak:opener(thematicBreak3)},exit:{atxHeading:closer(),atxHeadingSequence:onexitatxheadingsequence,autolink:closer(),autolinkEmail:onexitautolinkemail,autolinkProtocol:onexitautolinkprotocol,blockQuote:closer(),characterEscapeValue:onexitdata,characterReferenceMarkerHexadecimal:onexitcharacterreferencemarker,characterReferenceMarkerNumeric:onexitcharacterreferencemarker,characterReferenceValue:onexitcharacterreferencevalue,characterReference:onexitcharacterreference,codeFenced:closer(onexitcodefenced),codeFencedFence:onexitcodefencedfence,codeFencedFenceInfo:onexitcodefencedfenceinfo,codeFencedFenceMeta:onexitcodefencedfencemeta,codeFlowValue:onexitdata,codeIndented:closer(onexitcodeindented),codeText:closer(onexitcodetext),codeTextData:onexitdata,data:onexitdata,definition:closer(),definitionDestinationString:onexitdefinitiondestinationstring,definitionLabelString:onexitdefinitionlabelstring,definitionTitleString:onexitdefinitiontitlestring,emphasis:closer(),hardBreakEscape:closer(onexithardbreak),hardBreakTrailing:closer(onexithardbreak),htmlFlow:closer(onexithtmlflow),htmlFlowData:onexitdata,htmlText:closer(onexithtmltext),htmlTextData:onexitdata,image:closer(onexitimage),label:onexitlabel,labelText:onexitlabeltext,lineEnding:onexitlineending,link:closer(onexitlink),listItem:closer(),listOrdered:closer(),listUnordered:closer(),paragraph:closer(),referenceString:onexitreferencestring,resourceDestinationString:onexitresourcedestinationstring,resourceTitleString:onexitresourcetitlestring,resource:onexitresource,setextHeading:closer(onexitsetextheading),setextHeadingLineSequence:onexitsetextheadinglinesequence,setextHeadingText:onexitsetextheadingtext,strong:closer(),thematicBreak:closer()}};configure(config,(options||{}).mdastExtensions||[]);const data={};return compile;function compile(events){let tree={type:"root",children:[]};const context={stack:[tree],tokenStack:[],config,enter,exit:exit3,buffer,resume,data};const listStack=[];let index2=-1;while(++index2<events.length){if(events[index2][1].type==="listOrdered"||events[index2][1].type==="listUnordered"){if(events[index2][0]==="enter"){listStack.push(index2)}else{const tail=listStack.pop();index2=prepareList(events,tail,index2)}}}index2=-1;while(++index2<events.length){const handler=config[events[index2][0]];if(own3.call(handler,events[index2][1].type)){handler[events[index2][1].type].call(Object.assign({sliceSerialize:events[index2][2].sliceSerialize},context),events[index2][1])}}if(context.tokenStack.length>0){const tail=context.tokenStack[context.tokenStack.length-1];const handler=tail[1]||defaultOnError;handler.call(context,void 0,tail[0])}tree.position={start:point2(events.length>0?events[0][1].start:{line:1,column:1,offset:0}),end:point2(events.length>0?events[events.length-2][1].end:{line:1,column:1,offset:0})};index2=-1;while(++index2<config.transforms.length){tree=config.transforms[index2](tree)||tree}return tree}function prepareList(events,start,length){let index2=start-1;let containerBalance=-1;let listSpread=false;let listItem3;let lineIndex;let firstBlankLineIndex;let atMarker;while(++index2<=length){const event=events[index2];switch(event[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{if(event[0]==="enter"){containerBalance++}else{containerBalance--}atMarker=void 0;break}case"lineEndingBlank":{if(event[0]==="enter"){if(listItem3&&!atMarker&&!containerBalance&&!firstBlankLineIndex){firstBlankLineIndex=index2}atMarker=void 0}break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":{break}default:{atMarker=void 0}}if(!containerBalance&&event[0]==="enter"&&event[1].type==="listItemPrefix"||containerBalance===-1&&event[0]==="exit"&&(event[1].type==="listUnordered"||event[1].type==="listOrdered")){if(listItem3){let tailIndex=index2;lineIndex=void 0;while(tailIndex--){const tailEvent=events[tailIndex];if(tailEvent[1].type==="lineEnding"||tailEvent[1].type==="lineEndingBlank"){if(tailEvent[0]==="exit")continue;if(lineIndex){events[lineIndex][1].type="lineEndingBlank";listSpread=true}tailEvent[1].type="lineEnding";lineIndex=tailIndex}else if(tailEvent[1].type==="linePrefix"||tailEvent[1].type==="blockQuotePrefix"||tailEvent[1].type==="blockQuotePrefixWhitespace"||tailEvent[1].type==="blockQuoteMarker"||tailEvent[1].type==="listItemIndent"){}else{break}}if(firstBlankLineIndex&&(!lineIndex||firstBlankLineIndex<lineIndex)){listItem3._spread=true}listItem3.end=Object.assign({},lineIndex?events[lineIndex][1].start:event[1].end);events.splice(lineIndex||index2,0,["exit",listItem3,event[2]]);index2++;length++}if(event[1].type==="listItemPrefix"){const item={type:"listItem",_spread:false,start:Object.assign({},event[1].start),end:void 0};listItem3=item;events.splice(index2,0,["enter",item,event[2]]);index2++;length++;firstBlankLineIndex=void 0;atMarker=true}}}events[start][1]._spread=listSpread;return length}function opener(create,and){return open;function open(token){enter.call(this,create(token),token);if(and)and.call(this,token)}}function buffer(){this.stack.push({type:"fragment",children:[]})}function enter(node2,token,errorHandler){const parent=this.stack[this.stack.length-1];const siblings=parent.children;siblings.push(node2);this.stack.push(node2);this.tokenStack.push([token,errorHandler||void 0]);node2.position={start:point2(token.start),end:void 0}}function closer(and){return close;function close(token){if(and)and.call(this,token);exit3.call(this,token)}}function exit3(token,onExitError){const node2=this.stack.pop();const open=this.tokenStack.pop();if(!open){throw new Error("Cannot close `"+token.type+"` ("+stringifyPosition({start:token.start,end:token.end})+"): it\u2019s not open")}else if(open[0].type!==token.type){if(onExitError){onExitError.call(this,token,open[0])}else{const handler=open[1]||defaultOnError;handler.call(this,token,open[0])}}node2.position.end=point2(token.end)}function resume(){return toString(this.stack.pop())}function onenterlistordered(){this.data.expectingFirstListItemValue=true}function onenterlistitemvalue(token){if(this.data.expectingFirstListItemValue){const ancestor=this.stack[this.stack.length-2];ancestor.start=Number.parseInt(this.sliceSerialize(token),10);this.data.expectingFirstListItemValue=void 0}}function onexitcodefencedfenceinfo(){const data2=this.resume();const node2=this.stack[this.stack.length-1];node2.lang=data2}function onexitcodefencedfencemeta(){const data2=this.resume();const node2=this.stack[this.stack.length-1];node2.meta=data2}function onexitcodefencedfence(){if(this.data.flowCodeInside)return;this.buffer();this.data.flowCodeInside=true}function onexitcodefenced(){const data2=this.resume();const node2=this.stack[this.stack.length-1];node2.value=data2.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,"");this.data.flowCodeInside=void 0}function onexitcodeindented(){const data2=this.resume();const node2=this.stack[this.stack.length-1];node2.value=data2.replace(/(\r?\n|\r)$/g,"")}function onexitdefinitionlabelstring(token){const label=this.resume();const node2=this.stack[this.stack.length-1];node2.label=label;node2.identifier=normalizeIdentifier(this.sliceSerialize(token)).toLowerCase()}function onexitdefinitiontitlestring(){const data2=this.resume();const node2=this.stack[this.stack.length-1];node2.title=data2}function onexitdefinitiondestinationstring(){const data2=this.resume();const node2=this.stack[this.stack.length-1];node2.url=data2}function onexitatxheadingsequence(token){const node2=this.stack[this.stack.length-1];if(!node2.depth){const depth=this.sliceSerialize(token).length;node2.depth=depth}}function onexitsetextheadingtext(){this.data.setextHeadingSlurpLineEnding=true}function onexitsetextheadinglinesequence(token){const node2=this.stack[this.stack.length-1];node2.depth=this.sliceSerialize(token).codePointAt(0)===61?1:2}function onexitsetextheading(){this.data.setextHeadingSlurpLineEnding=void 0}function onenterdata(token){const node2=this.stack[this.stack.length-1];const siblings=node2.children;let tail=siblings[siblings.length-1];if(!tail||tail.type!=="text"){tail=text6();tail.position={start:point2(token.start),end:void 0};siblings.push(tail)}this.stack.push(tail)}function onexitdata(token){const tail=this.stack.pop();tail.value+=this.sliceSerialize(token);tail.position.end=point2(token.end)}function onexitlineending(token){const context=this.stack[this.stack.length-1];if(this.data.atHardBreak){const tail=context.children[context.children.length-1];tail.position.end=point2(token.end);this.data.atHardBreak=void 0;return}if(!this.data.setextHeadingSlurpLineEnding&&config.canContainEols.includes(context.type)){onenterdata.call(this,token);onexitdata.call(this,token)}}function onexithardbreak(){this.data.atHardBreak=true}function onexithtmlflow(){const data2=this.resume();const node2=this.stack[this.stack.length-1];node2.value=data2}function onexithtmltext(){const data2=this.resume();const node2=this.stack[this.stack.length-1];node2.value=data2}function onexitcodetext(){const data2=this.resume();const node2=this.stack[this.stack.length-1];node2.value=data2}function onexitlink(){const node2=this.stack[this.stack.length-1];if(this.data.inReference){const referenceType=this.data.referenceType||"shortcut";node2.type+="Reference";node2.referenceType=referenceType;delete node2.url;delete node2.title}else{delete node2.identifier;delete node2.label}this.data.referenceType=void 0}function onexitimage(){const node2=this.stack[this.stack.length-1];if(this.data.inReference){const referenceType=this.data.referenceType||"shortcut";node2.type+="Reference";node2.referenceType=referenceType;delete node2.url;delete node2.title}else{delete node2.identifier;delete node2.label}this.data.referenceType=void 0}function onexitlabeltext(token){const string3=this.sliceSerialize(token);const ancestor=this.stack[this.stack.length-2];ancestor.label=decodeString(string3);ancestor.identifier=normalizeIdentifier(string3).toLowerCase()}function onexitlabel(){const fragment=this.stack[this.stack.length-1];const value=this.resume();const node2=this.stack[this.stack.length-1];this.data.inReference=true;if(node2.type==="link"){const children=fragment.children;node2.children=children}else{node2.alt=value}}function onexitresourcedestinationstring(){const data2=this.resume();const node2=this.stack[this.stack.length-1];node2.url=data2}function onexitresourcetitlestring(){const data2=this.resume();const node2=this.stack[this.stack.length-1];node2.title=data2}function onexitresource(){this.data.inReference=void 0}function onenterreference(){this.data.referenceType="collapsed"}function onexitreferencestring(token){const label=this.resume();const node2=this.stack[this.stack.length-1];node2.label=label;node2.identifier=normalizeIdentifier(this.sliceSerialize(token)).toLowerCase();this.data.referenceType="full"}function onexitcharacterreferencemarker(token){this.data.characterReferenceType=token.type}function onexitcharacterreferencevalue(token){const data2=this.sliceSerialize(token);const type=this.data.characterReferenceType;let value;if(type){value=decodeNumericCharacterReference(data2,type==="characterReferenceMarkerNumeric"?10:16);this.data.characterReferenceType=void 0}else{const result=decodeNamedCharacterReference(data2);value=result}const tail=this.stack[this.stack.length-1];tail.value+=value}function onexitcharacterreference(token){const tail=this.stack.pop();tail.position.end=point2(token.end)}function onexitautolinkprotocol(token){onexitdata.call(this,token);const node2=this.stack[this.stack.length-1];node2.url=this.sliceSerialize(token)}function onexitautolinkemail(token){onexitdata.call(this,token);const node2=this.stack[this.stack.length-1];node2.url="mailto:"+this.sliceSerialize(token)}function blockQuote2(){return{type:"blockquote",children:[]}}function codeFlow(){return{type:"code",lang:null,meta:null,value:""}}function codeText2(){return{type:"inlineCode",value:""}}function definition3(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function emphasis2(){return{type:"emphasis",children:[]}}function heading2(){return{type:"heading",depth:0,children:[]}}function hardBreak2(){return{type:"break"}}function html2(){return{type:"html",value:""}}function image2(){return{type:"image",title:null,url:"",alt:null}}function link2(){return{type:"link",title:null,url:"",children:[]}}function list3(token){return{type:"list",ordered:token.type==="listOrdered",start:null,spread:token._spread,children:[]}}function listItem2(token){return{type:"listItem",spread:token._spread,checked:null,children:[]}}function paragraph2(){return{type:"paragraph",children:[]}}function strong2(){return{type:"strong",children:[]}}function text6(){return{type:"text",value:""}}function thematicBreak3(){return{type:"thematicBreak"}}}function point2(d){return{line:d.line,column:d.column,offset:d.offset}}function configure(combined,extensions){let index2=-1;while(++index2<extensions.length){const value=extensions[index2];if(Array.isArray(value)){configure(combined,value)}else{extension(combined,value)}}}function extension(combined,extension2){let key;for(key in extension2){if(own3.call(extension2,key)){switch(key){case"canContainEols":{const right=extension2[key];if(right){combined[key].push(...right)}break}case"transforms":{const right=extension2[key];if(right){combined[key].push(...right)}break}case"enter":case"exit":{const right=extension2[key];if(right){Object.assign(combined[key],right)}break}}}}}function defaultOnError(left,right){if(left){throw new Error("Cannot close `"+left.type+"` ("+stringifyPosition({start:left.start,end:left.end})+"): a different token (`"+right.type+"`, "+stringifyPosition({start:right.start,end:right.end})+") is open")}else{throw new Error("Cannot close document, a token (`"+right.type+"`, "+stringifyPosition({start:right.start,end:right.end})+") is still open")}}function remarkParse(options){const self=this;self.parser=parser;function parser(doc){return fromMarkdown(doc,{...self.data("settings"),...options,extensions:self.data("micromarkExtensions")||[],mdastExtensions:self.data("fromMarkdownExtensions")||[]})}}function ccount(value,character){const source=String(value);if(typeof character!=="string"){throw new TypeError("Expected character")}let count=0;let index2=source.indexOf(character);while(index2!==-1){count++;index2=source.indexOf(character,index2+character.length)}return count}function escapeStringRegexp(string3){if(typeof string3!=="string"){throw new TypeError("Expected a string")}return string3.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var convert=(function(test){if(test===null||test===void 0){return ok2}if(typeof test==="function"){return castFactory(test)}if(typeof test==="object"){return Array.isArray(test)?anyFactory(test):propertiesFactory(test)}if(typeof test==="string"){return typeFactory(test)}throw new Error("Expected function, string, or object as test")});function anyFactory(tests){const checks=[];let index2=-1;while(++index2<tests.length){checks[index2]=convert(tests[index2])}return castFactory(any);function any(...parameters){let index3=-1;while(++index3<checks.length){if(checks[index3].apply(this,parameters))return true}return false}}function propertiesFactory(check){const checkAsRecord=check;return castFactory(all2);function all2(node2){const nodeAsRecord=node2;let key;for(key in check){if(nodeAsRecord[key]!==checkAsRecord[key])return false}return true}}function typeFactory(check){return castFactory(type);function type(node2){return node2&&node2.type===check}}function castFactory(testFunction){return check;function check(value,index2,parent){return Boolean(looksLikeANode(value)&&testFunction.call(this,value,typeof index2==="number"?index2:void 0,parent||void 0))}}function ok2(){return true}function looksLikeANode(value){return value!==null&&typeof value==="object"&&"type"in value}function color(d){return d}var empty=[];var CONTINUE=true;var EXIT=false;var SKIP="skip";function visitParents(tree,test,visitor,reverse){let check;if(typeof test==="function"&&typeof visitor!=="function"){reverse=visitor;visitor=test}else{check=test}const is2=convert(check);const step=reverse?-1:1;factory(tree,void 0,[])();function factory(node2,index2,parents){const value=node2&&typeof node2==="object"?node2:{};if(typeof value.type==="string"){const name=typeof value.tagName==="string"?value.tagName:typeof value.name==="string"?value.name:void 0;Object.defineProperty(visit2,"name",{value:"node ("+color(node2.type+(name?"<"+name+">":""))+")"})}return visit2;function visit2(){let result=empty;let subresult;let offset;let grandparents;if(!test||is2(node2,index2,parents[parents.length-1]||void 0)){result=toResult(visitor(node2,parents));if(result[0]===EXIT){return result}}if("children"in node2&&node2.children){const nodeAsParent=node2;if(nodeAsParent.children&&result[0]!==SKIP){offset=(reverse?nodeAsParent.children.length:-1)+step;grandparents=parents.concat(nodeAsParent);while(offset>-1&&offset<nodeAsParent.children.length){const child=nodeAsParent.children[offset];subresult=factory(child,offset,grandparents)();if(subresult[0]===EXIT){return subresult}offset=typeof subresult[1]==="number"?subresult[1]:offset+step}}}return result}}}function toResult(value){if(Array.isArray(value)){return value}if(typeof value==="number"){return[CONTINUE,value]}return value===null||value===void 0?empty:[value]}function findAndReplace(tree,list3,options){const settings=options||{};const ignored=convert(settings.ignore||[]);const pairs=toPairs(list3);let pairIndex=-1;while(++pairIndex<pairs.length){visitParents(tree,"text",visitor)}function visitor(node2,parents){let index2=-1;let grandparent;while(++index2<parents.length){const parent=parents[index2];const siblings=grandparent?grandparent.children:void 0;if(ignored(parent,siblings?siblings.indexOf(parent):void 0,grandparent)){return}grandparent=parent}if(grandparent){return handler(node2,parents)}}function handler(node2,parents){const parent=parents[parents.length-1];const find=pairs[pairIndex][0];const replace2=pairs[pairIndex][1];let start=0;const siblings=parent.children;const index2=siblings.indexOf(node2);let change=false;let nodes=[];find.lastIndex=0;let match=find.exec(node2.value);while(match){const position2=match.index;const matchObject={index:match.index,input:match.input,stack:[...parents,node2]};let value=replace2(...match,matchObject);if(typeof value==="string"){value=value.length>0?{type:"text",value}:void 0}if(value===false){find.lastIndex=position2+1}else{if(start!==position2){nodes.push({type:"text",value:node2.value.slice(start,position2)})}if(Array.isArray(value)){nodes.push(...value)}else if(value){nodes.push(value)}start=position2+match[0].length;change=true}if(!find.global){break}match=find.exec(node2.value)}if(change){if(start<node2.value.length){nodes.push({type:"text",value:node2.value.slice(start)})}parent.children.splice(index2,1,...nodes)}else{nodes=[node2]}return index2+nodes.length}}function toPairs(tupleOrList){const result=[];if(!Array.isArray(tupleOrList)){throw new TypeError("Expected find and replace tuple or list of tuples")}const list3=!tupleOrList[0]||Array.isArray(tupleOrList[0])?tupleOrList:[tupleOrList];let index2=-1;while(++index2<list3.length){const tuple=list3[index2];result.push([toExpression(tuple[0]),toFunction(tuple[1])])}return result}function toExpression(find){return typeof find==="string"?new RegExp(escapeStringRegexp(find),"g"):find}function toFunction(replace2){return typeof replace2==="function"?replace2:function(){return replace2}}var inConstruct="phrasing";var notInConstruct=["autolink","link","image","label"];function gfmAutolinkLiteralFromMarkdown(){return{transforms:[transformGfmAutolinkLiterals],enter:{literalAutolink:enterLiteralAutolink,literalAutolinkEmail:enterLiteralAutolinkValue,literalAutolinkHttp:enterLiteralAutolinkValue,literalAutolinkWww:enterLiteralAutolinkValue},exit:{literalAutolink:exitLiteralAutolink,literalAutolinkEmail:exitLiteralAutolinkEmail,literalAutolinkHttp:exitLiteralAutolinkHttp,literalAutolinkWww:exitLiteralAutolinkWww}}}function gfmAutolinkLiteralToMarkdown(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct,notInConstruct},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct,notInConstruct},{character:":",before:"[ps]",after:"\\/",inConstruct,notInConstruct}]}}function enterLiteralAutolink(token){this.enter({type:"link",title:null,url:"",children:[]},token)}function enterLiteralAutolinkValue(token){this.config.enter.autolinkProtocol.call(this,token)}function exitLiteralAutolinkHttp(token){this.config.exit.autolinkProtocol.call(this,token)}function exitLiteralAutolinkWww(token){this.config.exit.data.call(this,token);const node2=this.stack[this.stack.length-1];ok(node2.type==="link");node2.url="http://"+this.sliceSerialize(token)}function exitLiteralAutolinkEmail(token){this.config.exit.autolinkEmail.call(this,token)}function exitLiteralAutolink(token){this.exit(token)}function transformGfmAutolinkLiterals(tree){findAndReplace(tree,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,findUrl],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,findEmail]],{ignore:["link","linkReference"]})}function findUrl(_,protocol,domain2,path2,match){let prefix="";if(!previous2(match)){return false}if(/^w/i.test(protocol)){domain2=protocol+domain2;protocol="";prefix="http://"}if(!isCorrectDomain(domain2)){return false}const parts=splitUrl(domain2+path2);if(!parts[0])return false;const result={type:"link",title:null,url:prefix+protocol+parts[0],children:[{type:"text",value:protocol+parts[0]}]};if(parts[1]){return[result,{type:"text",value:parts[1]}]}return result}function findEmail(_,atext,label,match){if(!previous2(match,true)||/[-\d_]$/.test(label)){return false}return{type:"link",title:null,url:"mailto:"+atext+"@"+label,children:[{type:"text",value:atext+"@"+label}]}}function isCorrectDomain(domain2){const parts=domain2.split(".");if(parts.length<2||parts[parts.length-1]&&(/_/.test(parts[parts.length-1])||!/[a-zA-Z\d]/.test(parts[parts.length-1]))||parts[parts.length-2]&&(/_/.test(parts[parts.length-2])||!/[a-zA-Z\d]/.test(parts[parts.length-2]))){return false}return true}function splitUrl(url){const trailExec=/[!"&'),.:;<>?\]}]+$/.exec(url);if(!trailExec){return[url,void 0]}url=url.slice(0,trailExec.index);let trail2=trailExec[0];let closingParenIndex=trail2.indexOf(")");const openingParens=ccount(url,"(");let closingParens=ccount(url,")");while(closingParenIndex!==-1&&openingParens>closingParens){url+=trail2.slice(0,closingParenIndex+1);trail2=trail2.slice(closingParenIndex+1);closingParenIndex=trail2.indexOf(")");closingParens++}return[url,trail2]}function previous2(match,email){const code3=match.input.charCodeAt(match.index-1);return(match.index===0||unicodeWhitespace(code3)||unicodePunctuation(code3))&&(!email||code3!==47)}footnoteReference.peek=footnoteReferencePeek;function enterFootnoteCallString(){this.buffer()}function enterFootnoteCall(token){this.enter({type:"footnoteReference",identifier:"",label:""},token)}function enterFootnoteDefinitionLabelString(){this.buffer()}function enterFootnoteDefinition(token){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},token)}function exitFootnoteCallString(token){const label=this.resume();const node2=this.stack[this.stack.length-1];ok(node2.type==="footnoteReference");node2.identifier=normalizeIdentifier(this.sliceSerialize(token)).toLowerCase();node2.label=label}function exitFootnoteCall(token){this.exit(token)}function exitFootnoteDefinitionLabelString(token){const label=this.resume();const node2=this.stack[this.stack.length-1];ok(node2.type==="footnoteDefinition");node2.identifier=normalizeIdentifier(this.sliceSerialize(token)).toLowerCase();node2.label=label}function exitFootnoteDefinition(token){this.exit(token)}function footnoteReferencePeek(){return"["}function footnoteReference(node2,_,state,info){const tracker=state.createTracker(info);let value=tracker.move("[^");const exit3=state.enter("footnoteReference");const subexit=state.enter("reference");value+=tracker.move(state.safe(state.associationId(node2),{after:"]",before:value}));subexit();exit3();value+=tracker.move("]");return value}function gfmFootnoteFromMarkdown(){return{enter:{gfmFootnoteCallString:enterFootnoteCallString,gfmFootnoteCall:enterFootnoteCall,gfmFootnoteDefinitionLabelString:enterFootnoteDefinitionLabelString,gfmFootnoteDefinition:enterFootnoteDefinition},exit:{gfmFootnoteCallString:exitFootnoteCallString,gfmFootnoteCall:exitFootnoteCall,gfmFootnoteDefinitionLabelString:exitFootnoteDefinitionLabelString,gfmFootnoteDefinition:exitFootnoteDefinition}}}function gfmFootnoteToMarkdown(options){let firstLineBlank=false;if(options&&options.firstLineBlank){firstLineBlank=true}return{handlers:{footnoteDefinition,footnoteReference},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function footnoteDefinition(node2,_,state,info){const tracker=state.createTracker(info);let value=tracker.move("[^");const exit3=state.enter("footnoteDefinition");const subexit=state.enter("label");value+=tracker.move(state.safe(state.associationId(node2),{before:value,after:"]"}));subexit();value+=tracker.move("]:");if(node2.children&&node2.children.length>0){tracker.shift(4);value+=tracker.move((firstLineBlank?"\n":" ")+state.indentLines(state.containerFlow(node2,tracker.current()),firstLineBlank?mapAll:mapExceptFirst))}exit3();return value}}function mapExceptFirst(line,index2,blank){return index2===0?line:mapAll(line,index2,blank)}function mapAll(line,index2,blank){return(blank?"":" ")+line}var constructsWithoutStrikethrough=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];handleDelete.peek=peekDelete;function gfmStrikethroughFromMarkdown(){return{canContainEols:["delete"],enter:{strikethrough:enterStrikethrough},exit:{strikethrough:exitStrikethrough}}}function gfmStrikethroughToMarkdown(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:constructsWithoutStrikethrough}],handlers:{delete:handleDelete}}}function enterStrikethrough(token){this.enter({type:"delete",children:[]},token)}function exitStrikethrough(token){this.exit(token)}function handleDelete(node2,_,state,info){const tracker=state.createTracker(info);const exit3=state.enter("strikethrough");let value=tracker.move("~~");value+=state.containerPhrasing(node2,{...tracker.current(),before:value,after:"~"});value+=tracker.move("~~");exit3();return value}function peekDelete(){return"~"}function defaultStringLength(value){return value.length}function markdownTable(table,options){const settings=options||{};const align=(settings.align||[]).concat();const stringLength=settings.stringLength||defaultStringLength;const alignments=[];const cellMatrix=[];const sizeMatrix=[];const longestCellByColumn=[];let mostCellsPerRow=0;let rowIndex=-1;while(++rowIndex<table.length){const row2=[];const sizes2=[];let columnIndex2=-1;if(table[rowIndex].length>mostCellsPerRow){mostCellsPerRow=table[rowIndex].length}while(++columnIndex2<table[rowIndex].length){const cell=serialize(table[rowIndex][columnIndex2]);if(settings.alignDelimiters!==false){const size=stringLength(cell);sizes2[columnIndex2]=size;if(longestCellByColumn[columnIndex2]===void 0||size>longestCellByColumn[columnIndex2]){longestCellByColumn[columnIndex2]=size}}row2.push(cell)}cellMatrix[rowIndex]=row2;sizeMatrix[rowIndex]=sizes2}let columnIndex=-1;if(typeof align==="object"&&"length"in align){while(++columnIndex<mostCellsPerRow){alignments[columnIndex]=toAlignment(align[columnIndex])}}else{const code3=toAlignment(align);while(++columnIndex<mostCellsPerRow){alignments[columnIndex]=code3}}columnIndex=-1;const row=[];const sizes=[];while(++columnIndex<mostCellsPerRow){const code3=alignments[columnIndex];let before="";let after="";if(code3===99){before=":";after=":"}else if(code3===108){before=":"}else if(code3===114){after=":"}let size=settings.alignDelimiters===false?1:Math.max(1,longestCellByColumn[columnIndex]-before.length-after.length);const cell=before+"-".repeat(size)+after;if(settings.alignDelimiters!==false){size=before.length+size+after.length;if(size>longestCellByColumn[columnIndex]){longestCellByColumn[columnIndex]=size}sizes[columnIndex]=size}row[columnIndex]=cell}cellMatrix.splice(1,0,row);sizeMatrix.splice(1,0,sizes);rowIndex=-1;const lines=[];while(++rowIndex<cellMatrix.length){const row2=cellMatrix[rowIndex];const sizes2=sizeMatrix[rowIndex];columnIndex=-1;const line=[];while(++columnIndex<mostCellsPerRow){const cell=row2[columnIndex]||"";let before="";let after="";if(settings.alignDelimiters!==false){const size=longestCellByColumn[columnIndex]-(sizes2[columnIndex]||0);const code3=alignments[columnIndex];if(code3===114){before=" ".repeat(size)}else if(code3===99){if(size%2){before=" ".repeat(size/2+.5);after=" ".repeat(size/2-.5)}else{before=" ".repeat(size/2);after=before}}else{after=" ".repeat(size)}}if(settings.delimiterStart!==false&&!columnIndex){line.push("|")}if(settings.padding!==false&&!(settings.alignDelimiters===false&&cell==="")&&(settings.delimiterStart!==false||columnIndex)){line.push(" ")}if(settings.alignDelimiters!==false){line.push(before)}line.push(cell);if(settings.alignDelimiters!==false){line.push(after)}if(settings.padding!==false){line.push(" ")}if(settings.delimiterEnd!==false||columnIndex!==mostCellsPerRow-1){line.push("|")}}lines.push(settings.delimiterEnd===false?line.join("").replace(/ +$/,""):line.join(""))}return lines.join("\n")}function serialize(value){return value===null||value===void 0?"":String(value)}function toAlignment(value){const code3=typeof value==="string"?value.codePointAt(0):0;return code3===67||code3===99?99:code3===76||code3===108?108:code3===82||code3===114?114:0}var phrasing=convert(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function blockquote(node2,_,state,info){const exit3=state.enter("blockquote");const tracker=state.createTracker(info);tracker.move("> ");tracker.shift(2);const value=state.indentLines(state.containerFlow(node2,tracker.current()),map);exit3();return value}function map(line,_,blank){return">"+(blank?"":" ")+line}function patternInScope(stack,pattern){return listInScope(stack,pattern.inConstruct,true)&&!listInScope(stack,pattern.notInConstruct,false)}function listInScope(stack,list3,none){if(typeof list3==="string"){list3=[list3]}if(!list3||list3.length===0){return none}let index2=-1;while(++index2<list3.length){if(stack.includes(list3[index2])){return true}}return false}function hardBreak(_,_1,state,info){let index2=-1;while(++index2<state.unsafe.length){const pattern=state.unsafe[index2];if(pattern.character==="\n"&&!pattern.before&&!pattern.after&&patternInScope(state.stack,pattern)){return/[\t ]/.test(info.before)?"":" "}}return"\\\n"}function longestStreak(value,substring){const source=String(value);let index2=source.indexOf(substring);let expected=index2;let count=0;let max=0;if(typeof substring!=="string"){throw new TypeError("Expected substring")}while(index2!==-1){if(index2===expected){if(++count>max){max=count}}else{count=1}expected=index2+substring.length;index2=source.indexOf(substring,expected)}return max}function formatCodeAsIndented(node2,state){return Boolean(state.options.fences===false&&node2.value&&!node2.lang&&/[^\n\r ]/.test(node2.value)&&!/^[\t ]*(?:[\n\r]|$)|(?:^|[\n\r])[\t ]*$/.test(node2.value))}function checkFence(state){const marker=state.options.fence||"`";if(marker!=="`"&&marker!=="~"){throw new Error("Cannot serialize code with `"+marker+"` for `options.fence`, expected `` ` `` or `~`")}return marker}function code(node2,_,state,info){const marker=checkFence(state);const raw=node2.value||"";if(formatCodeAsIndented(node2,state)){const exit4=state.enter("codeIndented");const value2=state.indentLines(raw,map2);exit4();return value2}const tracker=state.createTracker(info);const sequence=marker.repeat(Math.max(longestStreak(raw,marker)+1,3));const exit3=state.enter("codeFenced");const suffix=marker==="`"?"GraveAccent":"Tilde";let value=tracker.move(sequence);if(node2.lang){const subexit=state.enter(`codeFencedLang${suffix}`);value+=tracker.move(state.safe(node2.lang,{before:value,after:" ",encode:["`"],...tracker.current()}));subexit()}if(node2.lang&&node2.meta){const subexit=state.enter(`codeFencedMeta${suffix}`);value+=tracker.move(" ");value+=tracker.move(state.safe(node2.meta,{before:value,after:"\n",encode:["`"],...tracker.current()}));subexit()}value+=tracker.move("\n");if(raw){value+=tracker.move(raw+"\n")}value+=tracker.move(sequence);exit3();return value}function map2(line,_,blank){return(blank?"":" ")+line}function checkQuote(state){const marker=state.options.quote||'"';if(marker!=='"'&&marker!=="'"){throw new Error("Cannot serialize title with `"+marker+"` for `options.quote`, expected `\"`, or `'`")}return marker}function definition2(node2,_,state,info){const quote=checkQuote(state);const suffix=quote==='"'?"Quote":"Apostrophe";const exit3=state.enter("definition");let subexit=state.enter("label");const tracker=state.createTracker(info);let value=tracker.move("[");value+=tracker.move(state.safe(state.associationId(node2),{before:value,after:"]",...tracker.current()}));value+=tracker.move("]: ");subexit();if(!node2.url||/[\0- \u007F]/.test(node2.url)){subexit=state.enter("destinationLiteral");value+=tracker.move("<");value+=tracker.move(state.safe(node2.url,{before:value,after:">",...tracker.current()}));value+=tracker.move(">")}else{subexit=state.enter("destinationRaw");value+=tracker.move(state.safe(node2.url,{before:value,after:node2.title?" ":"\n",...tracker.current()}))}subexit();if(node2.title){subexit=state.enter(`title${suffix}`);value+=tracker.move(" "+quote);value+=tracker.move(state.safe(node2.title,{before:value,after:quote,...tracker.current()}));value+=tracker.move(quote);subexit()}exit3();return value}function checkEmphasis(state){const marker=state.options.emphasis||"*";if(marker!=="*"&&marker!=="_"){throw new Error("Cannot serialize emphasis with `"+marker+"` for `options.emphasis`, expected `*`, or `_`")}return marker}emphasis.attention=attention2;emphasis.peek=peek;function emphasis(node2,_,state,info){const exit3=state.enter("phrasing");const value=state.containerPhrasing({type:"root",children:[node2]},info);exit3();return value}function attention2(_,state){const marker=checkEmphasis(state);return{construct:"emphasis",markers:marker==="*"?["*","_"]:["_","*"],sizes:[1]}}function peek(_,_1,state){return state.options.emphasis||"*"}function encodeCharacterReference(code3){return"&#x"+code3.toString(16).toUpperCase()+";"}function color2(d){return d}var empty2=[];var CONTINUE2=true;var EXIT2=false;var SKIP2="skip";function visitParents2(tree,testOrEnterOrVisitors,enterOrVisitorsOrReverse,reverse){if(!tree||typeof tree!=="object"){throw new Error("Unexpected value `"+tree+"` for `tree`, expected node")}let preorder=true;let check;let visitors;let enter;let exit3;if(typeof enterOrVisitorsOrReverse==="function"||enterOrVisitorsOrReverse&&typeof enterOrVisitorsOrReverse==="object"){check=testOrEnterOrVisitors;visitors=enterOrVisitorsOrReverse;if(reverse)preorder=false}else{visitors=testOrEnterOrVisitors;if(enterOrVisitorsOrReverse)preorder=false}if(typeof visitors==="function"){enter=visitors}else if(visitors&&typeof visitors==="object"){if(visitors.enter===null||visitors.enter===void 0){}else if(typeof visitors.enter==="function"){enter=visitors.enter}else{throw new Error("Unexpected value `"+visitors.enter+"` for `visitors.enter`, expected optional visitor")}if(typeof visitors.exit==="function"){exit3=visitors.exit}else{throw new Error("Unexpected value `"+visitors.exit+"` for `visitors.exit`, expected visitor (pass a visitor directly if you only want an enter visitor)")}}else{throw new Error("Unexpected value `"+visitors+"` for `enter` or `visitors`, expected visitor or object with visitors")}const is2=convert(check);const step=preorder?1:-1;factory(tree,void 0,[])();function factory(node2,index2,parents){const value=node2&&typeof node2==="object"?node2:{};if(typeof value.type==="string"){const name=typeof value.tagName==="string"?value.tagName:typeof value.name==="string"?value.name:void 0;Object.defineProperty(visit2,"name",{value:"node ("+color2(node2.type+(name?"<"+name+">":""))+")"})}return visit2;function visit2(){const matches=!check||is2(node2,index2,parents[parents.length-1]||void 0);let result=empty2;if(enter&&matches){result=toResult2(enter(node2,parents,index2));if(result[0]===EXIT2){return result}}if("children"in node2&&node2.children){const nodeAsParent=node2;if(nodeAsParent.children&&result[0]!==SKIP2){let offset=(preorder?-1:nodeAsParent.children.length)+step;const grandparents=[...parents,nodeAsParent];while(offset>-1&&offset<nodeAsParent.children.length){const child=nodeAsParent.children[offset];const subresult=factory(child,offset,grandparents)();if(subresult[0]===EXIT2){return subresult}offset=typeof subresult[1]==="number"?subresult[1]:offset+step}}}if(exit3&&matches){const exitResult=toResult2(exit3(node2,parents,index2));if(exitResult[0]===SKIP2){throw new Error("Unexpected value `"+exitResult[0]+"` from `exit`, expected `CONTINUE`, `EXIT`, index, or nothing")}if(exitResult[0]===EXIT2||typeof exitResult[1]==="number"){return exitResult}}return result}}}function toResult2(value){if(Array.isArray(value)){return value}if(typeof value==="number"){return[CONTINUE2,value]}return value===null||value===void 0?empty2:[value]}function visit(tree,testOrEnterOrVisitors,enterOrVisitorsOrReverse,maybeReverse){let check;let visitors;let reverse;if(typeof enterOrVisitorsOrReverse==="function"||enterOrVisitorsOrReverse&&typeof enterOrVisitorsOrReverse==="object"){check=testOrEnterOrVisitors;visitors=enterOrVisitorsOrReverse;reverse=maybeReverse}else{visitors=testOrEnterOrVisitors;reverse=enterOrVisitorsOrReverse}if(typeof visitors==="function"){visitParents2(tree,check,wrap2(visitors),reverse)}else{visitParents2(tree,check,wrapVisitors(visitors),reverse)}}function wrapVisitors(visitors){if(!visitors||typeof visitors!=="object")return visitors;return{enter:typeof visitors.enter==="function"?wrap2(visitors.enter):visitors.enter,exit:typeof visitors.exit==="function"?wrap2(visitors.exit):visitors.exit}}function wrap2(visitor){return overload;function overload(node2,parents,index2){return visitor(node2,index2,parents[parents.length-1])}}function formatHeadingAsSetext(node2,state){let literalWithBreak=false;visit(node2,function(node3){if("value"in node3&&/\r?\n|\r/.test(node3.value)||node3.type==="break"){literalWithBreak=true;return EXIT2}});return Boolean((!node2.depth||node2.depth<3)&&toString(node2)&&(state.options.setext||literalWithBreak))}function heading(node2,_,state,info){const rank=Math.max(Math.min(6,node2.depth||1),1);const tracker=state.createTracker(info);if(formatHeadingAsSetext(node2,state)){const exit4=state.enter("headingSetext");const subexit2=state.enter("phrasing");const value2=state.containerPhrasing(node2,{...tracker.current(),before:"\n",after:"\n"});subexit2();exit4();return value2+"\n"+(rank===1?"=":"-").repeat(value2.length-(Math.max(value2.lastIndexOf("\r"),value2.lastIndexOf("\n"))+1))}const sequence="#".repeat(rank);const exit3=state.enter("headingAtx");const subexit=state.enter("phrasing");tracker.move(sequence+" ");let value=state.containerPhrasing(node2,{before:"# ",after:"\n",...tracker.current()});const head=value.charCodeAt(0);if(head===9||head===32){value=encodeCharacterReference(head)+value.slice(1)}value=value?sequence+" "+value:sequence;if(state.options.closeAtx){value+=" "+sequence}subexit();exit3();return value}html.peek=htmlPeek;function html(node2){return node2.value||""}function htmlPeek(){return"<"}image.peek=imagePeek;function image(node2,_,state,info){const quote=checkQuote(state);const suffix=quote==='"'?"Quote":"Apostrophe";const exit3=state.enter("image");let subexit=state.enter("label");const tracker=state.createTracker(info);let value=tracker.move("![");value+=tracker.move(state.safe(node2.alt,{before:value,after:"]",...tracker.current()}));value+=tracker.move("](");subexit();if(!node2.url&&node2.title||/[\0- \u007F]/.test(node2.url)){subexit=state.enter("destinationLiteral");value+=tracker.move("<");value+=tracker.move(state.safe(node2.url,{before:value,after:">",...tracker.current()}));value+=tracker.move(">")}else{subexit=state.enter("destinationRaw");value+=tracker.move(state.safe(node2.url,{before:value,after:node2.title?" ":")",...tracker.current()}))}subexit();if(node2.title){subexit=state.enter(`title${suffix}`);value+=tracker.move(" "+quote);value+=tracker.move(state.safe(node2.title,{before:value,after:quote,...tracker.current()}));value+=tracker.move(quote);subexit()}value+=tracker.move(")");exit3();return value}function imagePeek(){return"!"}imageReference.peek=imageReferencePeek;function imageReference(node2,_,state,info){const type=node2.referenceType;const exit3=state.enter("imageReference");let subexit=state.enter("label");const tracker=state.createTracker(info);let value=tracker.move("![");const alt=state.safe(node2.alt,{before:value,after:"]",...tracker.current()});value+=tracker.move(alt+"][");subexit();const stack=state.stack;state.stack=stack.filter(function(d){return d!=="phrasing"});subexit=state.enter("reference");const reference=state.safe(state.associationId(node2),{before:value,after:"]",...tracker.current()});subexit();state.stack=stack;exit3();if(type==="full"||!alt||alt!==reference){value+=tracker.move(reference+"]")}else if(type==="shortcut"){value=value.slice(0,-1)}else{value+=tracker.move("]")}return value}function imageReferencePeek(){return"!"}inlineCode.peek=inlineCodePeek;function inlineCode(node2,_,state){let value=node2.value||"";let sequence="`";let index2=-1;while(new RegExp("(^|[^`])"+sequence+"([^`]|$)").test(value)){sequence+="`"}if(/[^\n\r ]/.test(value)&&(/^[\n\r ]/.test(value)&&/[\n\r ]$/.test(value)||/^`|`$/.test(value))){value=" "+value+" "}while(++index2<state.unsafe.length){const pattern=state.unsafe[index2];const expression=state.compilePattern(pattern);if(!pattern.atBreak)continue;let match;while(match=expression.exec(value)){let position2=match.index;if(value.charCodeAt(position2)===10&&value.charCodeAt(position2-1)===13){position2--}value=value.slice(0,position2)+" "+value.slice(match.index+1)}}return sequence+value+sequence}function inlineCodePeek(){return"`"}function formatLinkAsAutolink(node2,state){const raw=toString(node2);return Boolean(!state.options.resourceLink&&node2.url&&!node2.title&&node2.children&&node2.children.length===1&&node2.children[0].type==="text"&&(raw===node2.url||"mailto:"+raw===node2.url)&&/^[a-z][+\-.a-z]+:/i.test(node2.url)&&!/[\0- <>\u007F]/.test(node2.url))}link.peek=linkPeek;function link(node2,_,state,info){const quote=checkQuote(state);const suffix=quote==='"'?"Quote":"Apostrophe";const tracker=state.createTracker(info);if(formatLinkAsAutolink(node2,state)){const stack=state.stack;state.stack=stack.filter(function(d){return d!=="phrasing"});const exit4=state.enter("autolink");let value2=tracker.move("<");value2+=tracker.move(state.containerPhrasing(node2,{before:value2,after:">",...tracker.current()}));value2+=tracker.move(">");exit4();state.stack=stack;return value2}const exit3=state.enter("link");let subexit=state.enter("label");let value=tracker.move("[");value+=tracker.move(state.containerPhrasing(node2,{before:value,after:"](",...tracker.current()}));value+=tracker.move("](");subexit();if(!node2.url&&node2.title||/[\0- \u007F]/.test(node2.url)){subexit=state.enter("destinationLiteral");value+=tracker.move("<");value+=tracker.move(state.safe(node2.url,{before:value,after:">",...tracker.current()}));value+=tracker.move(">")}else{subexit=state.enter("destinationRaw");value+=tracker.move(state.safe(node2.url,{before:value,after:node2.title?" ":")",...tracker.current()}))}subexit();if(node2.title){subexit=state.enter(`title${suffix}`);value+=tracker.move(" "+quote);value+=tracker.move(state.safe(node2.title,{before:value,after:quote,...tracker.current()}));value+=tracker.move(quote);subexit()}value+=tracker.move(")");exit3();return value}function linkPeek(node2,_,state){return formatLinkAsAutolink(node2,state)?"<":"["}linkReference.peek=linkReferencePeek;function linkReference(node2,_,state,info){const type=node2.referenceType;const exit3=state.enter("linkReference");let subexit=state.enter("label");const tracker=state.createTracker(info);let value=tracker.move("[");const text6=state.containerPhrasing(node2,{before:value,after:"]",...tracker.current()});value+=tracker.move(text6+"][");subexit();const stack=state.stack;state.stack=stack.filter(function(d){return d!=="phrasing"});subexit=state.enter("reference");const reference=state.safe(state.associationId(node2),{before:value,after:"]",...tracker.current()});subexit();state.stack=stack;exit3();if(type==="full"||!text6||text6!==reference){value+=tracker.move(reference+"]")}else if(type==="shortcut"){value=value.slice(0,-1)}else{value+=tracker.move("]")}return value}function linkReferencePeek(){return"["}function checkBullet(state){const marker=state.options.bullet||"*";if(marker!=="*"&&marker!=="+"&&marker!=="-"){throw new Error("Cannot serialize items with `"+marker+"` for `options.bullet`, expected `*`, `+`, or `-`")}return marker}function checkBulletOther(state){const bullet=checkBullet(state);const bulletOther=state.options.bulletOther;if(!bulletOther){return bullet==="*"?"-":"*"}if(bulletOther!=="*"&&bulletOther!=="+"&&bulletOther!=="-"){throw new Error("Cannot serialize items with `"+bulletOther+"` for `options.bulletOther`, expected `*`, `+`, or `-`")}if(bulletOther===bullet){throw new Error("Expected `bullet` (`"+bullet+"`) and `bulletOther` (`"+bulletOther+"`) to be different")}return bulletOther}function checkBulletOrdered(state){const marker=state.options.bulletOrdered||".";if(marker!=="."&&marker!==")"){throw new Error("Cannot serialize items with `"+marker+"` for `options.bulletOrdered`, expected `.` or `)`")}return marker}function checkRule(state){const marker=state.options.rule||"*";if(marker!=="*"&&marker!=="-"&&marker!=="_"){throw new Error("Cannot serialize rules with `"+marker+"` for `options.rule`, expected `*`, `-`, or `_`")}return marker}function list2(node2,parent,state,info){const exit3=state.enter("list");const bulletCurrent=state.bulletCurrent;let bullet=node2.ordered?checkBulletOrdered(state):checkBullet(state);const bulletOther=node2.ordered?bullet==="."?")":".":checkBulletOther(state);let useDifferentMarker=parent&&state.bulletLastUsed?bullet===state.bulletLastUsed:false;if(!node2.ordered){const firstListItem=node2.children?node2.children[0]:void 0;if((bullet==="*"||bullet==="-")&&firstListItem&&(!firstListItem.children||!firstListItem.children[0])&&state.stack[state.stack.length-1]==="list"&&state.stack[state.stack.length-2]==="listItem"&&state.stack[state.stack.length-3]==="list"&&state.stack[state.stack.length-4]==="listItem"&&state.indexStack[state.indexStack.length-1]===0&&state.indexStack[state.indexStack.length-2]===0&&state.indexStack[state.indexStack.length-3]===0){useDifferentMarker=true}if(checkRule(state)===bullet&&firstListItem){let index2=-1;while(++index2<node2.children.length){const item=node2.children[index2];if(item&&item.type==="listItem"&&item.children&&item.children[0]&&item.children[0].type==="thematicBreak"){useDifferentMarker=true;break}}}}if(useDifferentMarker){bullet=bulletOther}state.bulletCurrent=bullet;const value=state.containerFlow(node2,info);state.bulletLastUsed=bullet;state.bulletCurrent=bulletCurrent;exit3();return value}function checkListItemIndent(state){const style=state.options.listItemIndent||"one";if(style!=="tab"&&style!=="one"&&style!=="mixed"){throw new Error("Cannot serialize items with `"+style+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`")}return style}function listItem(node2,parent,state,info){const listItemIndent=checkListItemIndent(state);let bullet=state.bulletCurrent||checkBullet(state);if(parent&&parent.type==="list"&&parent.ordered){bullet=(typeof parent.start==="number"&&parent.start>-1?parent.start:1)+(state.options.incrementListMarker===false?0:parent.children.indexOf(node2))+bullet}let size=bullet.length+1;if(listItemIndent==="tab"||listItemIndent==="mixed"&&(parent&&parent.type==="list"&&parent.spread||node2.spread)){size=Math.ceil(size/4)*4}const tracker=state.createTracker(info);tracker.move(bullet+" ".repeat(size-bullet.length));tracker.shift(size);const exit3=state.enter("listItem");const value=state.indentLines(state.containerFlow(node2,tracker.current()),map3);exit3();return value;function map3(line,index2,blank){if(index2){return(blank?"":" ".repeat(size))+line}return(blank?bullet:bullet+" ".repeat(size-bullet.length))+line}}function paragraph(node2,_,state,info){const exit3=state.enter("paragraph");const subexit=state.enter("phrasing");const value=state.containerPhrasing(node2,info);subexit();exit3();return value}function root(node2,_,state,info){const hasPhrasing=node2.children.some(function(d){return phrasing(d)});if(!hasPhrasing)return state.containerFlow(node2,info);const exit3=state.enter("phrasing");const value=state.containerPhrasing(node2,info);exit3();return value}function checkStrong(state){const marker=state.options.strong||"*";if(marker!=="*"&&marker!=="_"){throw new Error("Cannot serialize strong with `"+marker+"` for `options.strong`, expected `*`, or `_`")}return marker}strong.attention=attention3;strong.peek=peek2;function strong(node2,_,state,info){const exit3=state.enter("phrasing");const value=state.containerPhrasing({type:"root",children:[node2]},info);exit3();return value}function attention3(_,state){const marker=checkStrong(state);return{construct:"strong",markers:marker==="*"?["*","_"]:["_","*"],sizes:[2]}}function peek2(_,_1,state){return state.options.strong||"*"}function text3(node2,parent,state,info){const siblings=parent?parent.children:[];const index2=siblings.indexOf(node2);return state.safe(node2.value,{...info,afterNode:siblings[index2+1],beforeNode:siblings[index2-1]})}function checkRuleRepetition(state){const repetition=state.options.ruleRepetition||3;if(repetition<3){throw new Error("Cannot serialize rules with repetition `"+repetition+"` for `options.ruleRepetition`, expected `3` or more")}return repetition}function thematicBreak2(_,_1,state){const value=(checkRule(state)+(state.options.ruleSpaces?" ":"")).repeat(checkRuleRepetition(state));return state.options.ruleSpaces?value.slice(0,-1):value}var handle={blockquote,break:hardBreak,code,definition:definition2,emphasis,hardBreak,heading,html,image,imageReference,inlineCode,link,linkReference,list:list2,listItem,paragraph,root,strong,text:text3,thematicBreak:thematicBreak2};function gfmTableFromMarkdown(){return{enter:{table:enterTable,tableData:enterCell,tableHeader:enterCell,tableRow:enterRow},exit:{codeText:exitCodeText,table:exitTable,tableData:exit2,tableHeader:exit2,tableRow:exit2}}}function enterTable(token){const align=token._align;ok(align,"expected `_align` on table");this.enter({type:"table",align:align.map(function(d){return d==="none"?null:d}),children:[]},token);this.data.inTable=true}function exitTable(token){this.exit(token);this.data.inTable=void 0}function enterRow(token){this.enter({type:"tableRow",children:[]},token)}function exit2(token){this.exit(token)}function enterCell(token){this.enter({type:"tableCell",children:[]},token)}function exitCodeText(token){let value=this.resume();if(this.data.inTable){value=value.replace(/\\([\\|])/g,replace)}const node2=this.stack[this.stack.length-1];ok(node2.type==="inlineCode");node2.value=value;this.exit(token)}function replace($0,$1){return $1==="|"?$1:$0}function gfmTableToMarkdown(options){const settings=options||{};const padding=settings.tableCellPadding;const alignDelimiters=settings.tablePipeAlign;const stringLength=settings.stringLength;const around=padding?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:true,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:true,character:":",after:"-"},{atBreak:true,character:"-",after:"[:|-]"}],handlers:{inlineCode:inlineCodeWithTable,table:handleTable,tableCell:handleTableCell,tableRow:handleTableRow}};function handleTable(node2,_,state,info){return serializeData(handleTableAsData(node2,state,info),node2.align)}function handleTableRow(node2,_,state,info){const row=handleTableRowAsData(node2,state,info);const value=serializeData([row]);return value.slice(0,value.indexOf("\n"))}function handleTableCell(node2,_,state,info){const exit3=state.enter("tableCell");const subexit=state.enter("phrasing");const value=state.containerPhrasing(node2,{...info,before:around,after:around});subexit();exit3();return value}function serializeData(matrix,align){return markdownTable(matrix,{align,alignDelimiters,padding,stringLength})}function handleTableAsData(node2,state,info){const children=node2.children;let index2=-1;const result=[];const subexit=state.enter("table");while(++index2<children.length){result[index2]=handleTableRowAsData(children[index2],state,info)}subexit();return result}function handleTableRowAsData(node2,state,info){const children=node2.children;let index2=-1;const result=[];const subexit=state.enter("tableRow");while(++index2<children.length){result[index2]=handleTableCell(children[index2],node2,state,info)}subexit();return result}function inlineCodeWithTable(node2,parent,state){let value=handle.inlineCode(node2,parent,state);if(state.stack.includes("tableCell")){value=value.replace(/\|/g,"\\$&")}return value}}function gfmTaskListItemFromMarkdown(){return{exit:{taskListCheckValueChecked:exitCheck,taskListCheckValueUnchecked:exitCheck,paragraph:exitParagraphWithTaskListItem}}}function gfmTaskListItemToMarkdown(){return{unsafe:[{atBreak:true,character:"-",after:"[:|-]"}],handlers:{listItem:listItemWithTaskListItem}}}function exitCheck(token){const node2=this.stack[this.stack.length-2];ok(node2.type==="listItem");node2.checked=token.type==="taskListCheckValueChecked"}function exitParagraphWithTaskListItem(token){const parent=this.stack[this.stack.length-2];if(parent&&parent.type==="listItem"&&typeof parent.checked==="boolean"){const node2=this.stack[this.stack.length-1];ok(node2.type==="paragraph");const head=node2.children[0];if(head&&head.type==="text"){const siblings=parent.children;let index2=-1;let firstParaghraph;while(++index2<siblings.length){const sibling=siblings[index2];if(sibling.type==="paragraph"){firstParaghraph=sibling;break}}if(firstParaghraph===node2){head.value=head.value.slice(1);if(head.value.length===0){node2.children.shift()}else if(node2.position&&head.position&&typeof head.position.start.offset==="number"){head.position.start.column++;head.position.start.offset++;node2.position.start=Object.assign({},head.position.start)}}}}this.exit(token)}function listItemWithTaskListItem(node2,parent,state,info){const head=node2.children[0];const checkable=typeof node2.checked==="boolean"&&head&&head.type==="paragraph";const checkbox="["+(node2.checked?"x":" ")+"] ";const tracker=state.createTracker(info);if(checkable){tracker.move(checkbox)}let value=handle.listItem(node2,parent,state,{...info,...tracker.current()});if(checkable){value=value.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,check)}return value;function check($0){return $0+checkbox}}function gfmFromMarkdown(){return[gfmAutolinkLiteralFromMarkdown(),gfmFootnoteFromMarkdown(),gfmStrikethroughFromMarkdown(),gfmTableFromMarkdown(),gfmTaskListItemFromMarkdown()]}function gfmToMarkdown(options){return{extensions:[gfmAutolinkLiteralToMarkdown(),gfmFootnoteToMarkdown(options),gfmStrikethroughToMarkdown(),gfmTableToMarkdown(options),gfmTaskListItemToMarkdown()]}}var wwwPrefix={tokenize:tokenizeWwwPrefix,partial:true};var domain={tokenize:tokenizeDomain,partial:true};var path={tokenize:tokenizePath,partial:true};var trail={tokenize:tokenizeTrail,partial:true};var emailDomainDotTrail={tokenize:tokenizeEmailDomainDotTrail,partial:true};var wwwAutolink={name:"wwwAutolink",tokenize:tokenizeWwwAutolink,previous:previousWww};var protocolAutolink={name:"protocolAutolink",tokenize:tokenizeProtocolAutolink,previous:previousProtocol};var emailAutolink={name:"emailAutolink",tokenize:tokenizeEmailAutolink,previous:previousEmail};var text4={};function gfmAutolinkLiteral(){return{text:text4}}var code2=48;while(code2<123){text4[code2]=emailAutolink;code2++;if(code2===58)code2=65;else if(code2===91)code2=97}text4[43]=emailAutolink;text4[45]=emailAutolink;text4[46]=emailAutolink;text4[95]=emailAutolink;text4[72]=[emailAutolink,protocolAutolink];text4[104]=[emailAutolink,protocolAutolink];text4[87]=[emailAutolink,wwwAutolink];text4[119]=[emailAutolink,wwwAutolink];function tokenizeEmailAutolink(effects,ok3,nok){const self=this;let dot;let data;return start;function start(code3){if(!gfmAtext(code3)||!previousEmail.call(self,self.previous)||previousUnbalanced(self.events)){return nok(code3)}effects.enter("literalAutolink");effects.enter("literalAutolinkEmail");return atext(code3)}function atext(code3){if(gfmAtext(code3)){effects.consume(code3);return atext}if(code3===64){effects.consume(code3);return emailDomain}return nok(code3)}function emailDomain(code3){if(code3===46){return effects.check(emailDomainDotTrail,emailDomainAfter,emailDomainDot)(code3)}if(code3===45||code3===95||asciiAlphanumeric(code3)){data=true;effects.consume(code3);return emailDomain}return emailDomainAfter(code3)}function emailDomainDot(code3){effects.consume(code3);dot=true;return emailDomain}function emailDomainAfter(code3){if(data&&dot&&asciiAlpha(self.previous)){effects.exit("literalAutolinkEmail");effects.exit("literalAutolink");return ok3(code3)}return nok(code3)}}function tokenizeWwwAutolink(effects,ok3,nok){const self=this;return wwwStart;function wwwStart(code3){if(code3!==87&&code3!==119||!previousWww.call(self,self.previous)||previousUnbalanced(self.events)){return nok(code3)}effects.enter("literalAutolink");effects.enter("literalAutolinkWww");return effects.check(wwwPrefix,effects.attempt(domain,effects.attempt(path,wwwAfter),nok),nok)(code3)}function wwwAfter(code3){effects.exit("literalAutolinkWww");effects.exit("literalAutolink");return ok3(code3)}}function tokenizeProtocolAutolink(effects,ok3,nok){const self=this;let buffer="";let seen=false;return protocolStart;function protocolStart(code3){if((code3===72||code3===104)&&previousProtocol.call(self,self.previous)&&!previousUnbalanced(self.events)){effects.enter("literalAutolink");effects.enter("literalAutolinkHttp");buffer+=String.fromCodePoint(code3);effects.consume(code3);return protocolPrefixInside}return nok(code3)}function protocolPrefixInside(code3){if(asciiAlpha(code3)&&buffer.length<5){buffer+=String.fromCodePoint(code3);effects.consume(code3);return protocolPrefixInside}if(code3===58){const protocol=buffer.toLowerCase();if(protocol==="http"||protocol==="https"){effects.consume(code3);return protocolSlashesInside}}return nok(code3)}function protocolSlashesInside(code3){if(code3===47){effects.consume(code3);if(seen){return afterProtocol}seen=true;return protocolSlashesInside}return nok(code3)}function afterProtocol(code3){return code3===null||asciiControl(code3)||markdownLineEndingOrSpace(code3)||unicodeWhitespace(code3)||unicodePunctuation(code3)?nok(code3):effects.attempt(domain,effects.attempt(path,protocolAfter),nok)(code3)}function protocolAfter(code3){effects.exit("literalAutolinkHttp");effects.exit("literalAutolink");return ok3(code3)}}function tokenizeWwwPrefix(effects,ok3,nok){let size=0;return wwwPrefixInside;function wwwPrefixInside(code3){if((code3===87||code3===119)&&size<3){size++;effects.consume(code3);return wwwPrefixInside}if(code3===46&&size===3){effects.consume(code3);return wwwPrefixAfter}return nok(code3)}function wwwPrefixAfter(code3){return code3===null?nok(code3):ok3(code3)}}function tokenizeDomain(effects,ok3,nok){let underscoreInLastSegment;let underscoreInLastLastSegment;let seen;return domainInside;function domainInside(code3){if(code3===46||code3===95){return effects.check(trail,domainAfter,domainAtPunctuation)(code3)}if(code3===null||markdownLineEndingOrSpace(code3)||unicodeWhitespace(code3)||code3!==45&&unicodePunctuation(code3)){return domainAfter(code3)}seen=true;effects.consume(code3);return domainInside}function domainAtPunctuation(code3){if(code3===95){underscoreInLastSegment=true}else{underscoreInLastLastSegment=underscoreInLastSegment;underscoreInLastSegment=void 0}effects.consume(code3);return domainInside}function domainAfter(code3){if(underscoreInLastLastSegment||underscoreInLastSegment||!seen){return nok(code3)}return ok3(code3)}}function tokenizePath(effects,ok3){let sizeOpen=0;let sizeClose=0;return pathInside;function pathInside(code3){if(code3===40){sizeOpen++;effects.consume(code3);return pathInside}if(code3===41&&sizeClose<sizeOpen){return pathAtPunctuation(code3)}if(code3===33||code3===34||code3===38||code3===39||code3===41||code3===42||code3===44||code3===46||code3===58||code3===59||code3===60||code3===63||code3===93||code3===95||code3===126){return effects.check(trail,ok3,pathAtPunctuation)(code3)}if(code3===null||markdownLineEndingOrSpace(code3)||unicodeWhitespace(code3)){return ok3(code3)}effects.consume(code3);return pathInside}function pathAtPunctuation(code3){if(code3===41){sizeClose++}effects.consume(code3);return pathInside}}function tokenizeTrail(effects,ok3,nok){return trail2;function trail2(code3){if(code3===33||code3===34||code3===39||code3===41||code3===42||code3===44||code3===46||code3===58||code3===59||code3===63||code3===95||code3===126){effects.consume(code3);return trail2}if(code3===38){effects.consume(code3);return trailCharacterReferenceStart}if(code3===93){effects.consume(code3);return trailBracketAfter}if(code3===60||code3===null||markdownLineEndingOrSpace(code3)||unicodeWhitespace(code3)){return ok3(code3)}return nok(code3)}function trailBracketAfter(code3){if(code3===null||code3===40||code3===91||markdownLineEndingOrSpace(code3)||unicodeWhitespace(code3)){return ok3(code3)}return trail2(code3)}function trailCharacterReferenceStart(code3){return asciiAlpha(code3)?trailCharacterReferenceInside(code3):nok(code3)}function trailCharacterReferenceInside(code3){if(code3===59){effects.consume(code3);return trail2}if(asciiAlpha(code3)){effects.consume(code3);return trailCharacterReferenceInside}return nok(code3)}}function tokenizeEmailDomainDotTrail(effects,ok3,nok){return start;function start(code3){effects.consume(code3);return after}function after(code3){return asciiAlphanumeric(code3)?nok(code3):ok3(code3)}}function previousWww(code3){return code3===null||code3===40||code3===42||code3===95||code3===91||code3===93||code3===126||markdownLineEndingOrSpace(code3)}function previousProtocol(code3){return!asciiAlpha(code3)}function previousEmail(code3){return!(code3===47||gfmAtext(code3))}function gfmAtext(code3){return code3===43||code3===45||code3===46||code3===95||asciiAlphanumeric(code3)}function previousUnbalanced(events){let index2=events.length;let result=false;while(index2--){const token=events[index2][1];if((token.type==="labelLink"||token.type==="labelImage")&&!token._balanced){result=true;break}if(token._gfmAutolinkLiteralWalkedInto){result=false;break}}if(events.length>0&&!result){events[events.length-1][1]._gfmAutolinkLiteralWalkedInto=true}return result}var indent={tokenize:tokenizeIndent2,partial:true};function gfmFootnote(){return{document:{[91]:{name:"gfmFootnoteDefinition",tokenize:tokenizeDefinitionStart,continuation:{tokenize:tokenizeDefinitionContinuation},exit:gfmFootnoteDefinitionEnd}},text:{[91]:{name:"gfmFootnoteCall",tokenize:tokenizeGfmFootnoteCall},[93]:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:tokenizePotentialGfmFootnoteCall,resolveTo:resolveToPotentialGfmFootnoteCall}}}}function tokenizePotentialGfmFootnoteCall(effects,ok3,nok){const self=this;let index2=self.events.length;const defined=self.parser.gfmFootnotes||(self.parser.gfmFootnotes=[]);let labelStart;while(index2--){const token=self.events[index2][1];if(token.type==="labelImage"){labelStart=token;break}if(token.type==="gfmFootnoteCall"||token.type==="labelLink"||token.type==="label"||token.type==="image"||token.type==="link"){break}}return start;function start(code3){if(!labelStart||!labelStart._balanced){return nok(code3)}const id=normalizeIdentifier(self.sliceSerialize({start:labelStart.end,end:self.now()}));if(id.codePointAt(0)!==94||!defined.includes(id.slice(1))){return nok(code3)}effects.enter("gfmFootnoteCallLabelMarker");effects.consume(code3);effects.exit("gfmFootnoteCallLabelMarker");return ok3(code3)}}function resolveToPotentialGfmFootnoteCall(events,context){let index2=events.length;let labelStart;while(index2--){if(events[index2][1].type==="labelImage"&&events[index2][0]==="enter"){labelStart=events[index2][1];break}}events[index2+1][1].type="data";events[index2+3][1].type="gfmFootnoteCallLabelMarker";const call={type:"gfmFootnoteCall",start:Object.assign({},events[index2+3][1].start),end:Object.assign({},events[events.length-1][1].end)};const marker={type:"gfmFootnoteCallMarker",start:Object.assign({},events[index2+3][1].end),end:Object.assign({},events[index2+3][1].end)};marker.end.column++;marker.end.offset++;marker.end._bufferIndex++;const string3={type:"gfmFootnoteCallString",start:Object.assign({},marker.end),end:Object.assign({},events[events.length-1][1].start)};const chunk={type:"chunkString",contentType:"string",start:Object.assign({},string3.start),end:Object.assign({},string3.end)};const replacement=[events[index2+1],events[index2+2],["enter",call,context],events[index2+3],events[index2+4],["enter",marker,context],["exit",marker,context],["enter",string3,context],["enter",chunk,context],["exit",chunk,context],["exit",string3,context],events[events.length-2],events[events.length-1],["exit",call,context]];events.splice(index2,events.length-index2+1,...replacement);return events}function tokenizeGfmFootnoteCall(effects,ok3,nok){const self=this;const defined=self.parser.gfmFootnotes||(self.parser.gfmFootnotes=[]);let size=0;let data;return start;function start(code3){effects.enter("gfmFootnoteCall");effects.enter("gfmFootnoteCallLabelMarker");effects.consume(code3);effects.exit("gfmFootnoteCallLabelMarker");return callStart}function callStart(code3){if(code3!==94)return nok(code3);effects.enter("gfmFootnoteCallMarker");effects.consume(code3);effects.exit("gfmFootnoteCallMarker");effects.enter("gfmFootnoteCallString");effects.enter("chunkString").contentType="string";return callData}function callData(code3){if(size>999||code3===93&&!data||code3===null||code3===91||markdownLineEndingOrSpace(code3)){return nok(code3)}if(code3===93){effects.exit("chunkString");const token=effects.exit("gfmFootnoteCallString");if(!defined.includes(normalizeIdentifier(self.sliceSerialize(token)))){return nok(code3)}effects.enter("gfmFootnoteCallLabelMarker");effects.consume(code3);effects.exit("gfmFootnoteCallLabelMarker");effects.exit("gfmFootnoteCall");return ok3}if(!markdownLineEndingOrSpace(code3)){data=true}size++;effects.consume(code3);return code3===92?callEscape:callData}function callEscape(code3){if(code3===91||code3===92||code3===93){effects.consume(code3);size++;return callData}return callData(code3)}}function tokenizeDefinitionStart(effects,ok3,nok){const self=this;const defined=self.parser.gfmFootnotes||(self.parser.gfmFootnotes=[]);let identifier;let size=0;let data;return start;function start(code3){effects.enter("gfmFootnoteDefinition")._container=true;effects.enter("gfmFootnoteDefinitionLabel");effects.enter("gfmFootnoteDefinitionLabelMarker");effects.consume(code3);effects.exit("gfmFootnoteDefinitionLabelMarker");return labelAtMarker}function labelAtMarker(code3){if(code3===94){effects.enter("gfmFootnoteDefinitionMarker");effects.consume(code3);effects.exit("gfmFootnoteDefinitionMarker");effects.enter("gfmFootnoteDefinitionLabelString");effects.enter("chunkString").contentType="string";return labelInside}return nok(code3)}function labelInside(code3){if(size>999||code3===93&&!data||code3===null||code3===91||markdownLineEndingOrSpace(code3)){return nok(code3)}if(code3===93){effects.exit("chunkString");const token=effects.exit("gfmFootnoteDefinitionLabelString");identifier=normalizeIdentifier(self.sliceSerialize(token));effects.enter("gfmFootnoteDefinitionLabelMarker");effects.consume(code3);effects.exit("gfmFootnoteDefinitionLabelMarker");effects.exit("gfmFootnoteDefinitionLabel");return labelAfter}if(!markdownLineEndingOrSpace(code3)){data=true}size++;effects.consume(code3);return code3===92?labelEscape:labelInside}function labelEscape(code3){if(code3===91||code3===92||code3===93){effects.consume(code3);size++;return labelInside}return labelInside(code3)}function labelAfter(code3){if(code3===58){effects.enter("definitionMarker");effects.consume(code3);effects.exit("definitionMarker");if(!defined.includes(identifier)){defined.push(identifier)}return factorySpace(effects,whitespaceAfter,"gfmFootnoteDefinitionWhitespace")}return nok(code3)}function whitespaceAfter(code3){return ok3(code3)}}function tokenizeDefinitionContinuation(effects,ok3,nok){return effects.check(blankLine,ok3,effects.attempt(indent,ok3,nok))}function gfmFootnoteDefinitionEnd(effects){effects.exit("gfmFootnoteDefinition")}function tokenizeIndent2(effects,ok3,nok){const self=this;return factorySpace(effects,afterPrefix,"gfmFootnoteDefinitionIndent",4+1);function afterPrefix(code3){const tail=self.events[self.events.length-1];return tail&&tail[1].type==="gfmFootnoteDefinitionIndent"&&tail[2].sliceSerialize(tail[1],true).length===4?ok3(code3):nok(code3)}}function gfmStrikethrough(options){const options_=options||{};let single=options_.singleTilde;const tokenizer={name:"strikethrough",tokenize:tokenizeStrikethrough,resolveAll:resolveAllStrikethrough};if(single===null||single===void 0){single=true}return{text:{[126]:tokenizer},insideSpan:{null:[tokenizer]},attentionMarkers:{null:[126]}};function resolveAllStrikethrough(events,context){let index2=-1;while(++index2<events.length){if(events[index2][0]==="enter"&&events[index2][1].type==="strikethroughSequenceTemporary"&&events[index2][1]._close){let open=index2;while(open--){if(events[open][0]==="exit"&&events[open][1].type==="strikethroughSequenceTemporary"&&events[open][1]._open&&events[index2][1].end.offset-events[index2][1].start.offset===events[open][1].end.offset-events[open][1].start.offset){events[index2][1].type="strikethroughSequence";events[open][1].type="strikethroughSequence";const strikethrough={type:"strikethrough",start:Object.assign({},events[open][1].start),end:Object.assign({},events[index2][1].end)};const text6={type:"strikethroughText",start:Object.assign({},events[open][1].end),end:Object.assign({},events[index2][1].start)};const nextEvents=[["enter",strikethrough,context],["enter",events[open][1],context],["exit",events[open][1],context],["enter",text6,context]];const insideSpan2=context.parser.constructs.insideSpan.null;if(insideSpan2){splice(nextEvents,nextEvents.length,0,resolveAll(insideSpan2,events.slice(open+1,index2),context))}splice(nextEvents,nextEvents.length,0,[["exit",text6,context],["enter",events[index2][1],context],["exit",events[index2][1],context],["exit",strikethrough,context]]);splice(events,open-1,index2-open+3,nextEvents);index2=open+nextEvents.length-2;break}}}}index2=-1;while(++index2<events.length){if(events[index2][1].type==="strikethroughSequenceTemporary"){events[index2][1].type="data"}}return events}function tokenizeStrikethrough(effects,ok3,nok){const previous3=this.previous;const events=this.events;let size=0;return start;function start(code3){if(previous3===126&&events[events.length-1][1].type!=="characterEscape"){return nok(code3)}effects.enter("strikethroughSequenceTemporary");return more(code3)}function more(code3){const before=classifyCharacter(previous3);if(code3===126){if(size>1)return nok(code3);effects.consume(code3);size++;return more}if(size<2&&!single)return nok(code3);const token=effects.exit("strikethroughSequenceTemporary");const after=classifyCharacter(code3);token._open=!after||after===2&&Boolean(before);token._close=!before||before===2&&Boolean(after);return ok3(code3)}}}var EditMap=class{constructor(){this.map=[]}add(index2,remove,add){addImplementation(this,index2,remove,add)}consume(events){this.map.sort(function(a,b){return a[0]-b[0]});if(this.map.length===0){return}let index2=this.map.length;const vecs=[];while(index2>0){index2-=1;vecs.push(events.slice(this.map[index2][0]+this.map[index2][1]),this.map[index2][2]);events.length=this.map[index2][0]}vecs.push(events.slice());events.length=0;let slice=vecs.pop();while(slice){for(const element of slice){events.push(element)}slice=vecs.pop()}this.map.length=0}};function addImplementation(editMap,at,remove,add){let index2=0;if(remove===0&&add.length===0){return}while(index2<editMap.map.length){if(editMap.map[index2][0]===at){editMap.map[index2][1]+=remove;editMap.map[index2][2].push(...add);return}index2+=1}editMap.map.push([at,remove,add])}function gfmTableAlign(events,index2){let inDelimiterRow=false;const align=[];while(index2<events.length){const event=events[index2];if(inDelimiterRow){if(event[0]==="enter"){if(event[1].type==="tableContent"){align.push(events[index2+1][1].type==="tableDelimiterMarker"?"left":"none")}}else if(event[1].type==="tableContent"){if(events[index2-1][1].type==="tableDelimiterMarker"){const alignIndex=align.length-1;align[alignIndex]=align[alignIndex]==="left"?"center":"right"}}else if(event[1].type==="tableDelimiterRow"){break}}else if(event[0]==="enter"&&event[1].type==="tableDelimiterRow"){inDelimiterRow=true}index2+=1}return align}function gfmTable(){return{flow:{null:{name:"table",tokenize:tokenizeTable,resolveAll:resolveTable}}}}function tokenizeTable(effects,ok3,nok){const self=this;let size=0;let sizeB=0;let seen;return start;function start(code3){let index2=self.events.length-1;while(index2>-1){const type=self.events[index2][1].type;if(type==="lineEnding"||type==="linePrefix")index2--;else break}const tail=index2>-1?self.events[index2][1].type:null;const next=tail==="tableHead"||tail==="tableRow"?bodyRowStart:headRowBefore;if(next===bodyRowStart&&self.parser.lazy[self.now().line]){return nok(code3)}return next(code3)}function headRowBefore(code3){effects.enter("tableHead");effects.enter("tableRow");return headRowStart(code3)}function headRowStart(code3){if(code3===124){return headRowBreak(code3)}seen=true;sizeB+=1;return headRowBreak(code3)}function headRowBreak(code3){if(code3===null){return nok(code3)}if(markdownLineEnding(code3)){if(sizeB>1){sizeB=0;self.interrupt=true;effects.exit("tableRow");effects.enter("lineEnding");effects.consume(code3);effects.exit("lineEnding");return headDelimiterStart}return nok(code3)}if(markdownSpace(code3)){return factorySpace(effects,headRowBreak,"whitespace")(code3)}sizeB+=1;if(seen){seen=false;size+=1}if(code3===124){effects.enter("tableCellDivider");effects.consume(code3);effects.exit("tableCellDivider");seen=true;return headRowBreak}effects.enter("data");return headRowData(code3)}function headRowData(code3){if(code3===null||code3===124||markdownLineEndingOrSpace(code3)){effects.exit("data");return headRowBreak(code3)}effects.consume(code3);return code3===92?headRowEscape:headRowData}function headRowEscape(code3){if(code3===92||code3===124){effects.consume(code3);return headRowData}return headRowData(code3)}function headDelimiterStart(code3){self.interrupt=false;if(self.parser.lazy[self.now().line]){return nok(code3)}effects.enter("tableDelimiterRow");seen=false;if(markdownSpace(code3)){return factorySpace(effects,headDelimiterBefore,"linePrefix",self.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(code3)}return headDelimiterBefore(code3)}function headDelimiterBefore(code3){if(code3===45||code3===58){return headDelimiterValueBefore(code3)}if(code3===124){seen=true;effects.enter("tableCellDivider");effects.consume(code3);effects.exit("tableCellDivider");return headDelimiterCellBefore}return headDelimiterNok(code3)}function headDelimiterCellBefore(code3){if(markdownSpace(code3)){return factorySpace(effects,headDelimiterValueBefore,"whitespace")(code3)}return headDelimiterValueBefore(code3)}function headDelimiterValueBefore(code3){if(code3===58){sizeB+=1;seen=true;effects.enter("tableDelimiterMarker");effects.consume(code3);effects.exit("tableDelimiterMarker");return headDelimiterLeftAlignmentAfter}if(code3===45){sizeB+=1;return headDelimiterLeftAlignmentAfter(code3)}if(code3===null||markdownLineEnding(code3)){return headDelimiterCellAfter(code3)}return headDelimiterNok(code3)}function headDelimiterLeftAlignmentAfter(code3){if(code3===45){effects.enter("tableDelimiterFiller");return headDelimiterFiller(code3)}return headDelimiterNok(code3)}function headDelimiterFiller(code3){if(code3===45){effects.consume(code3);return headDelimiterFiller}if(code3===58){seen=true;effects.exit("tableDelimiterFiller");effects.enter("tableDelimiterMarker");effects.consume(code3);effects.exit("tableDelimiterMarker");return headDelimiterRightAlignmentAfter}effects.exit("tableDelimiterFiller");return headDelimiterRightAlignmentAfter(code3)}function headDelimiterRightAlignmentAfter(code3){if(markdownSpace(code3)){return factorySpace(effects,headDelimiterCellAfter,"whitespace")(code3)}return headDelimiterCellAfter(code3)}function headDelimiterCellAfter(code3){if(code3===124){return headDelimiterBefore(code3)}if(code3===null||markdownLineEnding(code3)){if(!seen||size!==sizeB){return headDelimiterNok(code3)}effects.exit("tableDelimiterRow");effects.exit("tableHead");return ok3(code3)}return headDelimiterNok(code3)}function headDelimiterNok(code3){return nok(code3)}function bodyRowStart(code3){effects.enter("tableRow");return bodyRowBreak(code3)}function bodyRowBreak(code3){if(code3===124){effects.enter("tableCellDivider");effects.consume(code3);effects.exit("tableCellDivider");return bodyRowBreak}if(code3===null||markdownLineEnding(code3)){effects.exit("tableRow");return ok3(code3)}if(markdownSpace(code3)){return factorySpace(effects,bodyRowBreak,"whitespace")(code3)}effects.enter("data");return bodyRowData(code3)}function bodyRowData(code3){if(code3===null||code3===124||markdownLineEndingOrSpace(code3)){effects.exit("data");return bodyRowBreak(code3)}effects.consume(code3);return code3===92?bodyRowEscape:bodyRowData}function bodyRowEscape(code3){if(code3===92||code3===124){effects.consume(code3);return bodyRowData}return bodyRowData(code3)}}function resolveTable(events,context){let index2=-1;let inFirstCellAwaitingPipe=true;let rowKind=0;let lastCell=[0,0,0,0];let cell=[0,0,0,0];let afterHeadAwaitingFirstBodyRow=false;let lastTableEnd=0;let currentTable;let currentBody;let currentCell;const map3=new EditMap;while(++index2<events.length){const event=events[index2];const token=event[1];if(event[0]==="enter"){if(token.type==="tableHead"){afterHeadAwaitingFirstBodyRow=false;if(lastTableEnd!==0){flushTableEnd(map3,context,lastTableEnd,currentTable,currentBody);currentBody=void 0;lastTableEnd=0}currentTable={type:"table",start:Object.assign({},token.start),end:Object.assign({},token.end)};map3.add(index2,0,[["enter",currentTable,context]])}else if(token.type==="tableRow"||token.type==="tableDelimiterRow"){inFirstCellAwaitingPipe=true;currentCell=void 0;lastCell=[0,0,0,0];cell=[0,index2+1,0,0];if(afterHeadAwaitingFirstBodyRow){afterHeadAwaitingFirstBodyRow=false;currentBody={type:"tableBody",start:Object.assign({},token.start),end:Object.assign({},token.end)};map3.add(index2,0,[["enter",currentBody,context]])}rowKind=token.type==="tableDelimiterRow"?2:currentBody?3:1}else if(rowKind&&(token.type==="data"||token.type==="tableDelimiterMarker"||token.type==="tableDelimiterFiller")){inFirstCellAwaitingPipe=false;if(cell[2]===0){if(lastCell[1]!==0){cell[0]=cell[1];currentCell=flushCell(map3,context,lastCell,rowKind,void 0,currentCell);lastCell=[0,0,0,0]}cell[2]=index2}}else if(token.type==="tableCellDivider"){if(inFirstCellAwaitingPipe){inFirstCellAwaitingPipe=false}else{if(lastCell[1]!==0){cell[0]=cell[1];currentCell=flushCell(map3,context,lastCell,rowKind,void 0,currentCell)}lastCell=cell;cell=[lastCell[1],index2,0,0]}}}else if(token.type==="tableHead"){afterHeadAwaitingFirstBodyRow=true;lastTableEnd=index2}else if(token.type==="tableRow"||token.type==="tableDelimiterRow"){lastTableEnd=index2;if(lastCell[1]!==0){cell[0]=cell[1];currentCell=flushCell(map3,context,lastCell,rowKind,index2,currentCell)}else if(cell[1]!==0){currentCell=flushCell(map3,context,cell,rowKind,index2,currentCell)}rowKind=0}else if(rowKind&&(token.type==="data"||token.type==="tableDelimiterMarker"||token.type==="tableDelimiterFiller")){cell[3]=index2}}if(lastTableEnd!==0){flushTableEnd(map3,context,lastTableEnd,currentTable,currentBody)}map3.consume(context.events);index2=-1;while(++index2<context.events.length){const event=context.events[index2];if(event[0]==="enter"&&event[1].type==="table"){event[1]._align=gfmTableAlign(context.events,index2)}}return events}function flushCell(map3,context,range,rowKind,rowEnd,previousCell){const groupName=rowKind===1?"tableHeader":rowKind===2?"tableDelimiter":"tableData";const valueName="tableContent";if(range[0]!==0){previousCell.end=Object.assign({},getPoint(context.events,range[0]));map3.add(range[0],0,[["exit",previousCell,context]])}const now=getPoint(context.events,range[1]);previousCell={type:groupName,start:Object.assign({},now),end:Object.assign({},now)};map3.add(range[1],0,[["enter",previousCell,context]]);if(range[2]!==0){const relatedStart=getPoint(context.events,range[2]);const relatedEnd=getPoint(context.events,range[3]);const valueToken={type:valueName,start:Object.assign({},relatedStart),end:Object.assign({},relatedEnd)};map3.add(range[2],0,[["enter",valueToken,context]]);if(rowKind!==2){const start=context.events[range[2]];const end=context.events[range[3]];start[1].end=Object.assign({},end[1].end);start[1].type="chunkText";start[1].contentType="text";if(range[3]>range[2]+1){const a=range[2]+1;const b=range[3]-range[2]-1;map3.add(a,b,[])}}map3.add(range[3]+1,0,[["exit",valueToken,context]])}if(rowEnd!==void 0){previousCell.end=Object.assign({},getPoint(context.events,rowEnd));map3.add(rowEnd,0,[["exit",previousCell,context]]);previousCell=void 0}return previousCell}function flushTableEnd(map3,context,index2,table,tableBody){const exits=[];const related=getPoint(context.events,index2);if(tableBody){tableBody.end=Object.assign({},related);exits.push(["exit",tableBody,context])}table.end=Object.assign({},related);exits.push(["exit",table,context]);map3.add(index2+1,0,exits)}function getPoint(events,index2){const event=events[index2];const side=event[0]==="enter"?"start":"end";return event[1][side]}var tasklistCheck={name:"tasklistCheck",tokenize:tokenizeTasklistCheck};function gfmTaskListItem(){return{text:{[91]:tasklistCheck}}}function tokenizeTasklistCheck(effects,ok3,nok){const self=this;return open;function open(code3){if(self.previous!==null||!self._gfmTasklistFirstContentOfListItem){return nok(code3)}effects.enter("taskListCheck");effects.enter("taskListCheckMarker");effects.consume(code3);effects.exit("taskListCheckMarker");return inside}function inside(code3){if(markdownLineEndingOrSpace(code3)){effects.enter("taskListCheckValueUnchecked");effects.consume(code3);effects.exit("taskListCheckValueUnchecked");return close}if(code3===88||code3===120){effects.enter("taskListCheckValueChecked");effects.consume(code3);effects.exit("taskListCheckValueChecked");return close}return nok(code3)}function close(code3){if(code3===93){effects.enter("taskListCheckMarker");effects.consume(code3);effects.exit("taskListCheckMarker");effects.exit("taskListCheck");return after}return nok(code3)}function after(code3){if(markdownLineEnding(code3)){return ok3(code3)}if(markdownSpace(code3)){return effects.check({tokenize:spaceThenNonSpace},ok3,nok)(code3)}return nok(code3)}}function spaceThenNonSpace(effects,ok3,nok){return factorySpace(effects,after,"whitespace");function after(code3){return code3===null?nok(code3):ok3(code3)}}function gfm(options){return combineExtensions([gfmAutolinkLiteral(),gfmFootnote(),gfmStrikethrough(options),gfmTable(),gfmTaskListItem()])}var emptyOptions2={};function remarkGfm(options){const self=this;const settings=options||emptyOptions2;const data=self.data();const micromarkExtensions=data.micromarkExtensions||(data.micromarkExtensions=[]);const fromMarkdownExtensions=data.fromMarkdownExtensions||(data.fromMarkdownExtensions=[]);const toMarkdownExtensions=data.toMarkdownExtensions||(data.toMarkdownExtensions=[]);micromarkExtensions.push(gfm(settings));fromMarkdownExtensions.push(gfmFromMarkdown());toMarkdownExtensions.push(gfmToMarkdown(settings))}var codes={carriageReturn:-5,lineFeed:-4,carriageReturnLineFeed:-3,horizontalTab:-2,virtualSpace:-1,eof:null,nul:0,soh:1,stx:2,etx:3,eot:4,enq:5,ack:6,bel:7,bs:8,ht:9,lf:10,vt:11,ff:12,cr:13,so:14,si:15,dle:16,dc1:17,dc2:18,dc3:19,dc4:20,nak:21,syn:22,etb:23,can:24,em:25,sub:26,esc:27,fs:28,gs:29,rs:30,us:31,space:32,exclamationMark:33,quotationMark:34,numberSign:35,dollarSign:36,percentSign:37,ampersand:38,apostrophe:39,leftParenthesis:40,rightParenthesis:41,asterisk:42,plusSign:43,comma:44,dash:45,dot:46,slash:47,digit0:48,digit1:49,digit2:50,digit3:51,digit4:52,digit5:53,digit6:54,digit7:55,digit8:56,digit9:57,colon:58,semicolon:59,lessThan:60,equalsTo:61,greaterThan:62,questionMark:63,atSign:64,uppercaseA:65,uppercaseB:66,uppercaseC:67,uppercaseD:68,uppercaseE:69,uppercaseF:70,uppercaseG:71,uppercaseH:72,uppercaseI:73,uppercaseJ:74,uppercaseK:75,uppercaseL:76,uppercaseM:77,uppercaseN:78,uppercaseO:79,uppercaseP:80,uppercaseQ:81,uppercaseR:82,uppercaseS:83,uppercaseT:84,uppercaseU:85,uppercaseV:86,uppercaseW:87,uppercaseX:88,uppercaseY:89,uppercaseZ:90,leftSquareBracket:91,backslash:92,rightSquareBracket:93,caret:94,underscore:95,graveAccent:96,lowercaseA:97,lowercaseB:98,lowercaseC:99,lowercaseD:100,lowercaseE:101,lowercaseF:102,lowercaseG:103,lowercaseH:104,lowercaseI:105,lowercaseJ:106,lowercaseK:107,lowercaseL:108,lowercaseM:109,lowercaseN:110,lowercaseO:111,lowercaseP:112,lowercaseQ:113,lowercaseR:114,lowercaseS:115,lowercaseT:116,lowercaseU:117,lowercaseV:118,lowercaseW:119,lowercaseX:120,lowercaseY:121,lowercaseZ:122,leftCurlyBrace:123,verticalBar:124,rightCurlyBrace:125,tilde:126,del:127,byteOrderMarker:65279,replacementCharacter:65533};var constants={attentionSideAfter:2,attentionSideBefore:1,atxHeadingOpeningFenceSizeMax:6,autolinkDomainSizeMax:63,autolinkSchemeSizeMax:32,cdataOpeningString:"CDATA[",characterGroupPunctuation:2,characterGroupWhitespace:1,characterReferenceDecimalSizeMax:7,characterReferenceHexadecimalSizeMax:6,characterReferenceNamedSizeMax:31,codeFencedSequenceSizeMin:3,contentTypeContent:"content",contentTypeDocument:"document",contentTypeFlow:"flow",contentTypeString:"string",contentTypeText:"text",hardBreakPrefixSizeMin:2,htmlBasic:6,htmlCdata:5,htmlComment:2,htmlComplete:7,htmlDeclaration:4,htmlInstruction:3,htmlRawSizeMax:8,htmlRaw:1,linkResourceDestinationBalanceMax:32,linkReferenceSizeMax:999,listItemValueSizeMax:10,numericBaseDecimal:10,numericBaseHexadecimal:16,tabSize:4,thematicBreakMarkerCountMin:3,v8MaxSafeChunkSize:1e4};var types={data:"data",whitespace:"whitespace",lineEnding:"lineEnding",lineEndingBlank:"lineEndingBlank",linePrefix:"linePrefix",lineSuffix:"lineSuffix",atxHeading:"atxHeading",atxHeadingSequence:"atxHeadingSequence",atxHeadingText:"atxHeadingText",autolink:"autolink",autolinkEmail:"autolinkEmail",autolinkMarker:"autolinkMarker",autolinkProtocol:"autolinkProtocol",characterEscape:"characterEscape",characterEscapeValue:"characterEscapeValue",characterReference:"characterReference",characterReferenceMarker:"characterReferenceMarker",characterReferenceMarkerNumeric:"characterReferenceMarkerNumeric",characterReferenceMarkerHexadecimal:"characterReferenceMarkerHexadecimal",characterReferenceValue:"characterReferenceValue",codeFenced:"codeFenced",codeFencedFence:"codeFencedFence",codeFencedFenceSequence:"codeFencedFenceSequence",codeFencedFenceInfo:"codeFencedFenceInfo",codeFencedFenceMeta:"codeFencedFenceMeta",codeFlowValue:"codeFlowValue",codeIndented:"codeIndented",codeText:"codeText",codeTextData:"codeTextData",codeTextPadding:"codeTextPadding",codeTextSequence:"codeTextSequence",content:"content",definition:"definition",definitionDestination:"definitionDestination",definitionDestinationLiteral:"definitionDestinationLiteral",definitionDestinationLiteralMarker:"definitionDestinationLiteralMarker",definitionDestinationRaw:"definitionDestinationRaw",definitionDestinationString:"definitionDestinationString",definitionLabel:"definitionLabel",definitionLabelMarker:"definitionLabelMarker",definitionLabelString:"definitionLabelString",definitionMarker:"definitionMarker",definitionTitle:"definitionTitle",definitionTitleMarker:"definitionTitleMarker",definitionTitleString:"definitionTitleString",emphasis:"emphasis",emphasisSequence:"emphasisSequence",emphasisText:"emphasisText",escapeMarker:"escapeMarker",hardBreakEscape:"hardBreakEscape",hardBreakTrailing:"hardBreakTrailing",htmlFlow:"htmlFlow",htmlFlowData:"htmlFlowData",htmlText:"htmlText",htmlTextData:"htmlTextData",image:"image",label:"label",labelText:"labelText",labelLink:"labelLink",labelImage:"labelImage",labelMarker:"labelMarker",labelImageMarker:"labelImageMarker",labelEnd:"labelEnd",link:"link",paragraph:"paragraph",reference:"reference",referenceMarker:"referenceMarker",referenceString:"referenceString",resource:"resource",resourceDestination:"resourceDestination",resourceDestinationLiteral:"resourceDestinationLiteral",resourceDestinationLiteralMarker:"resourceDestinationLiteralMarker",resourceDestinationRaw:"resourceDestinationRaw",resourceDestinationString:"resourceDestinationString",resourceMarker:"resourceMarker",resourceTitle:"resourceTitle",resourceTitleMarker:"resourceTitleMarker",resourceTitleString:"resourceTitleString",setextHeading:"setextHeading",setextHeadingText:"setextHeadingText",setextHeadingLine:"setextHeadingLine",setextHeadingLineSequence:"setextHeadingLineSequence",strong:"strong",strongSequence:"strongSequence",strongText:"strongText",thematicBreak:"thematicBreak",thematicBreakSequence:"thematicBreakSequence",blockQuote:"blockQuote",blockQuotePrefix:"blockQuotePrefix",blockQuoteMarker:"blockQuoteMarker",blockQuotePrefixWhitespace:"blockQuotePrefixWhitespace",listOrdered:"listOrdered",listUnordered:"listUnordered",listItemIndent:"listItemIndent",listItemMarker:"listItemMarker",listItemPrefix:"listItemPrefix",listItemPrefixWhitespace:"listItemPrefixWhitespace",listItemValue:"listItemValue",chunkDocument:"chunkDocument",chunkContent:"chunkContent",chunkFlow:"chunkFlow",chunkText:"chunkText",chunkString:"chunkString"};var ambiguousRanges=[161,161,164,164,167,168,170,170,173,174,176,180,182,186,188,191,198,198,208,208,215,216,222,225,230,230,232,234,236,237,240,240,242,243,247,250,252,252,254,254,257,257,273,273,275,275,283,283,294,295,299,299,305,307,312,312,319,322,324,324,328,331,333,333,338,339,358,359,363,363,462,462,464,464,466,466,468,468,470,470,472,472,474,474,476,476,593,593,609,609,708,708,711,711,713,715,717,717,720,720,728,731,733,733,735,735,768,879,913,929,931,937,945,961,963,969,1025,1025,1040,1103,1105,1105,8208,8208,8211,8214,8216,8217,8220,8221,8224,8226,8228,8231,8240,8240,8242,8243,8245,8245,8251,8251,8254,8254,8308,8308,8319,8319,8321,8324,8364,8364,8451,8451,8453,8453,8457,8457,8467,8467,8470,8470,8481,8482,8486,8486,8491,8491,8531,8532,8539,8542,8544,8555,8560,8569,8585,8585,8592,8601,8632,8633,8658,8658,8660,8660,8679,8679,8704,8704,8706,8707,8711,8712,8715,8715,8719,8719,8721,8721,8725,8725,8730,8730,8733,8736,8739,8739,8741,8741,8743,8748,8750,8750,8756,8759,8764,8765,8776,8776,8780,8780,8786,8786,8800,8801,8804,8807,8810,8811,8814,8815,8834,8835,8838,8839,8853,8853,8857,8857,8869,8869,8895,8895,8978,8978,9312,9449,9451,9547,9552,9587,9600,9615,9618,9621,9632,9633,9635,9641,9650,9651,9654,9655,9660,9661,9664,9665,9670,9672,9675,9675,9678,9681,9698,9701,9711,9711,9733,9734,9737,9737,9742,9743,9756,9756,9758,9758,9792,9792,9794,9794,9824,9825,9827,9829,9831,9834,9836,9837,9839,9839,9886,9887,9919,9919,9926,9933,9935,9939,9941,9953,9955,9955,9960,9961,9963,9969,9972,9972,9974,9977,9979,9980,9982,9983,10045,10045,10102,10111,11094,11097,12872,12879,57344,63743,65024,65039,65533,65533,127232,127242,127248,127277,127280,127337,127344,127373,127375,127376,127387,127404,917760,917999,983040,1048573,1048576,1114109];var fullwidthRanges=[12288,12288,65281,65376,65504,65510];var halfwidthRanges=[8361,8361,65377,65470,65474,65479,65482,65487,65490,65495,65498,65500,65512,65518];var narrowRanges=[32,126,162,163,165,166,172,172,175,175,10214,10221,10629,10630];var wideRanges=[4352,4447,8986,8987,9001,9002,9193,9196,9200,9200,9203,9203,9725,9726,9748,9749,9776,9783,9800,9811,9855,9855,9866,9871,9875,9875,9889,9889,9898,9899,9917,9918,9924,9925,9934,9934,9940,9940,9962,9962,9970,9971,9973,9973,9978,9978,9981,9981,9989,9989,9994,9995,10024,10024,10060,10060,10062,10062,10067,10069,10071,10071,10133,10135,10160,10160,10175,10175,11035,11036,11088,11088,11093,11093,11904,11929,11931,12019,12032,12245,12272,12287,12289,12350,12353,12438,12441,12543,12549,12591,12593,12686,12688,12773,12783,12830,12832,12871,12880,42124,42128,42182,43360,43388,44032,55203,63744,64255,65040,65049,65072,65106,65108,65126,65128,65131,94176,94180,94192,94198,94208,101589,101631,101662,101760,101874,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,119552,119638,119648,119670,126980,126980,127183,127183,127374,127374,127377,127386,127488,127490,127504,127547,127552,127560,127568,127569,127584,127589,127744,127776,127789,127797,127799,127868,127870,127891,127904,127946,127951,127955,127968,127984,127988,127988,127992,128062,128064,128064,128066,128252,128255,128317,128331,128334,128336,128359,128378,128378,128405,128406,128420,128420,128507,128591,128640,128709,128716,128716,128720,128722,128725,128728,128732,128735,128747,128748,128756,128764,128992,129003,129008,129008,129292,129338,129340,129349,129351,129535,129648,129660,129664,129674,129678,129734,129736,129736,129741,129756,129759,129770,129775,129784,131072,196605,196608,262141];var isInRange=(ranges,codePoint)=>{let low=0;let high=Math.floor(ranges.length/2)-1;while(low<=high){const mid=Math.floor((low+high)/2);const i=mid*2;if(codePoint<ranges[i]){high=mid-1}else if(codePoint>ranges[i+1]){low=mid+1}else{return true}}return false};var minimumAmbiguousCodePoint=ambiguousRanges[0];var maximumAmbiguousCodePoint=ambiguousRanges.at(-1);var minimumFullWidthCodePoint=fullwidthRanges[0];var maximumFullWidthCodePoint=fullwidthRanges.at(-1);var minimumHalfWidthCodePoint=halfwidthRanges[0];var maximumHalfWidthCodePoint=halfwidthRanges.at(-1);var minimumNarrowCodePoint=narrowRanges[0];var maximumNarrowCodePoint=narrowRanges.at(-1);var minimumWideCodePoint=wideRanges[0];var maximumWideCodePoint=wideRanges.at(-1);var commonCjkCodePoint=19968;var[wideFastPathStart,wideFastPathEnd]=findWideFastPathRange(wideRanges);function findWideFastPathRange(ranges){let fastPathStart=ranges[0];let fastPathEnd=ranges[1];for(let index2=0;index2<ranges.length;index2+=2){const start=ranges[index2];const end=ranges[index2+1];if(commonCjkCodePoint>=start&&commonCjkCodePoint<=end){return[start,end]}if(end-start>fastPathEnd-fastPathStart){fastPathStart=start;fastPathEnd=end}}return[fastPathStart,fastPathEnd]}var isAmbiguous=codePoint=>{if(codePoint<minimumAmbiguousCodePoint||codePoint>maximumAmbiguousCodePoint){return false}return isInRange(ambiguousRanges,codePoint)};var isFullWidth=codePoint=>{if(codePoint<minimumFullWidthCodePoint||codePoint>maximumFullWidthCodePoint){return false}return isInRange(fullwidthRanges,codePoint)};var isHalfWidth=codePoint=>{if(codePoint<minimumHalfWidthCodePoint||codePoint>maximumHalfWidthCodePoint){return false}return isInRange(halfwidthRanges,codePoint)};var isNarrow=codePoint=>{if(codePoint<minimumNarrowCodePoint||codePoint>maximumNarrowCodePoint){return false}return isInRange(narrowRanges,codePoint)};var isWide=codePoint=>{if(codePoint>=wideFastPathStart&&codePoint<=wideFastPathEnd){return true}if(codePoint<minimumWideCodePoint||codePoint>maximumWideCodePoint){return false}return isInRange(wideRanges,codePoint)};function getCategory(codePoint){if(isAmbiguous(codePoint)){return"ambiguous"}if(isFullWidth(codePoint)){return"fullwidth"}if(isHalfWidth(codePoint)){return"halfwidth"}if(isNarrow(codePoint)){return"narrow"}if(isWide(codePoint)){return"wide"}return"neutral"}function validate(codePoint){if(!Number.isSafeInteger(codePoint)){throw new TypeError(`Expected a code point, got \`${typeof codePoint}\`.`)}}function eastAsianWidthType(codePoint){validate(codePoint);return getCategory(codePoint)}function isEmoji(uc){return/^\p{Emoji_Presentation}/u.test(String.fromCodePoint(uc))}function cjkOrIvs(uc){if(!uc||uc<4352)return false;switch(eastAsianWidthType(uc)){case"fullwidth":case"halfwidth":return true;case"wide":return!isEmoji(uc);case"narrow":return false;case"ambiguous":return 917760<=uc&&uc<=917999?null:false;case"neutral":return/^\p{sc=Hangul}/u.test(String.fromCodePoint(uc))}}function isCjkAmbiguousPunctuation(main,vs){if(vs!==65025||!main||main<8216)return false;return main===8216||main===8217||main===8220||main===8221}function nonEmojiGeneralUseVS(code3){return code3!==null&&code3>=65024&&code3<=65038}var unicodePunctuation2=regexCheck2(/\p{P}|\p{S}/u);var unicodeWhitespace2=regexCheck2(/\s/);function regexCheck2(regex){return check;function check(code3){return code3!==null&&code3>-1&&regex.test(String.fromCodePoint(code3))}}function isUnicodeWhitespace(category){return Boolean(category&constants.characterGroupWhitespace)}function isNonCjkPunctuation(category){return(category&constantsEx.cjkPunctuation)===constants.characterGroupPunctuation}function isCjk(category){return Boolean(category&constantsEx.cjk)}function isCjkOrIvs(category){return Boolean(category&constantsEx.cjkOrIvs)}function isNonEmojiGeneralUseVS(category){return category===constantsEx.nonEmojiGeneralUseVS}function isSpaceOrPunctuation(category){return Boolean(category&constantsEx.spaceOrPunctuation)}var constantsEx;(function(_constantsEx){_constantsEx.spaceOrPunctuation=3;_constantsEx.cjk=4096;_constantsEx.cjkPunctuation=4098;_constantsEx.ivs=8192;_constantsEx.cjkOrIvs=12288;_constantsEx.nonEmojiGeneralUseVS=16384;_constantsEx.variationSelector=24576;_constantsEx.ivsToCjkRightShift=1})(constantsEx||(constantsEx={}));function classifyCharacter2(code3){if(code3===codes.eof||markdownLineEndingOrSpace(code3)||unicodeWhitespace2(code3))return constants.characterGroupWhitespace;let value=0;if(code3>=4352){if(nonEmojiGeneralUseVS(code3))return constantsEx.nonEmojiGeneralUseVS;switch(cjkOrIvs(code3)){case null:return constantsEx.ivs;case true:value|=constantsEx.cjk;break}}if(unicodePunctuation2(code3))value|=constants.characterGroupPunctuation;return value}function classifyPrecedingCharacter(before,get2Previous,previous3){if(!isNonEmojiGeneralUseVS(before))return before;const twoPrevious=get2Previous();const twoBefore=classifyCharacter2(twoPrevious);return!twoPrevious||isUnicodeWhitespace(twoBefore)?before:isCjkAmbiguousPunctuation(twoPrevious,previous3)?constantsEx.cjkPunctuation:stripIvs(twoBefore)}function stripIvs(twoBefore){return twoBefore&~constantsEx.ivs}function isCodeHighSurrogate(code3){return Boolean(code3&&code3>=55296&&code3<=56319)}function isCodeLowSurrogate(code3){return Boolean(code3&&code3>=56320&&code3<=57343)}function tryGetGenuinePreviousCode(code3,nowPoint,sliceSerialize){if(nowPoint._bufferIndex<2)return code3;const previousCandidate=sliceSerialize({start:{...nowPoint,_bufferIndex:nowPoint._bufferIndex-2},end:nowPoint}).codePointAt(0);return previousCandidate&&previousCandidate>=65536?previousCandidate:code3}function tryGetCodeTwoBefore(previousCode,nowPoint,sliceSerialize){const previousWidth=previousCode>=65536?2:1;if(nowPoint._bufferIndex<1+previousWidth)return null;const idealStart=nowPoint._bufferIndex-previousWidth-2;const twoPreviousBuffer=sliceSerialize({start:{...nowPoint,_bufferIndex:idealStart>=0?idealStart:0},end:{...nowPoint,_bufferIndex:nowPoint._bufferIndex-previousWidth}});const twoPreviousLast=twoPreviousBuffer.charCodeAt(twoPreviousBuffer.length-1);if(Number.isNaN(twoPreviousLast))return null;if(twoPreviousBuffer.length<2||twoPreviousLast<56320||57343<twoPreviousLast)return twoPreviousLast;const twoPreviousCandidate=twoPreviousBuffer.codePointAt(0);if(twoPreviousCandidate&&twoPreviousCandidate>=65536)return twoPreviousCandidate;return twoPreviousLast}var TwoPreviousCode=class{cachedValue=void 0;constructor(previousCode,nowPoint,sliceSerialize){this.previousCode=previousCode;this.nowPoint=nowPoint;this.sliceSerialize=sliceSerialize}value(){if(this.cachedValue===void 0)this.cachedValue=tryGetCodeTwoBefore(this.previousCode,this.nowPoint,this.sliceSerialize);return this.cachedValue}};function tryGetGenuineNextCode(code3,nowPoint,sliceSerialize){const nextCandidate=sliceSerialize({start:nowPoint,end:{...nowPoint,_bufferIndex:nowPoint._bufferIndex+2}}).codePointAt(0);return nextCandidate&&nextCandidate>=65536?nextCandidate:code3}var attention4={name:"attention",resolveAll:resolveAllAttention2,tokenize:tokenizeAttention2};function resolveAllAttention2(events,context){let index2=-1;let open;let group;let text6;let openingSequence;let closingSequence;let use;let nextEvents;let offset;while(++index2<events.length)if(events[index2][0]==="enter"&&events[index2][1].type==="attentionSequence"&&events[index2][1]._close){open=index2;while(open--)if(events[open][0]==="exit"&&events[open][1].type==="attentionSequence"&&events[open][1]._open&&context.sliceSerialize(events[open][1]).charCodeAt(0)===context.sliceSerialize(events[index2][1]).charCodeAt(0)){if((events[open][1]._close||events[index2][1]._open)&&(events[index2][1].end.offset-events[index2][1].start.offset)%3&&!((events[open][1].end.offset-events[open][1].start.offset+events[index2][1].end.offset-events[index2][1].start.offset)%3))continue;use=events[open][1].end.offset-events[open][1].start.offset>1&&events[index2][1].end.offset-events[index2][1].start.offset>1?2:1;const start={...events[open][1].end};const end={...events[index2][1].start};movePoint2(start,-use);movePoint2(end,use);openingSequence={type:use>1?types.strongSequence:types.emphasisSequence,start,end:{...events[open][1].end}};closingSequence={type:use>1?types.strongSequence:types.emphasisSequence,start:{...events[index2][1].start},end};text6={type:use>1?types.strongText:types.emphasisText,start:{...events[open][1].end},end:{...events[index2][1].start}};group={type:use>1?types.strong:types.emphasis,start:{...openingSequence.start},end:{...closingSequence.end}};events[open][1].end={...openingSequence.start};events[index2][1].start={...closingSequence.end};nextEvents=[];if(events[open][1].end.offset-events[open][1].start.offset)nextEvents=push(nextEvents,[["enter",events[open][1],context],["exit",events[open][1],context]]);nextEvents=push(nextEvents,[["enter",group,context],["enter",openingSequence,context],["exit",openingSequence,context],["enter",text6,context]]);ok(context.parser.constructs.insideSpan.null,"expected `insideSpan` to be populated");nextEvents=push(nextEvents,resolveAll(context.parser.constructs.insideSpan.null,events.slice(open+1,index2),context));nextEvents=push(nextEvents,[["exit",text6,context],["enter",closingSequence,context],["exit",closingSequence,context],["exit",group,context]]);if(events[index2][1].end.offset-events[index2][1].start.offset){offset=2;nextEvents=push(nextEvents,[["enter",events[index2][1],context],["exit",events[index2][1],context]])}else offset=0;splice(events,open-1,index2-open+3,nextEvents);index2=open+nextEvents.length-offset-2;break}}index2=-1;while(++index2<events.length)if(events[index2][1].type==="attentionSequence")events[index2][1].type="data";return events}function tokenizeAttention2(effects,ok$1){const attentionMarkers2=this.parser.constructs.attentionMarkers.null;const{now,sliceSerialize,previous:tentativePrevious}=this;const previous3=isCodeLowSurrogate(tentativePrevious)?tryGetGenuinePreviousCode(tentativePrevious,now(),sliceSerialize):tentativePrevious;const before=classifyCharacter2(previous3);const twoPrevious=new TwoPreviousCode(previous3,now(),sliceSerialize);const beforePrimary=classifyPrecedingCharacter(before,twoPrevious.value.bind(twoPrevious),previous3);let marker;return start;function start(code3){ok(code3===codes.asterisk||code3===codes.underscore,"expected asterisk or underscore");marker=code3;effects.enter("attentionSequence");return inside(code3)}function inside(code3){if(code3===marker){effects.consume(code3);return inside}const token=effects.exit("attentionSequence");const after=classifyCharacter2(isCodeHighSurrogate(code3)?tryGetGenuineNextCode(code3,now(),sliceSerialize):code3);ok(attentionMarkers2,"expected `attentionMarkers` to be populated");const beforeNonCjkPunctuation=isNonCjkPunctuation(beforePrimary);const beforeSpaceOrNonCjkPunctuation=beforeNonCjkPunctuation||isUnicodeWhitespace(beforePrimary);const afterNonCjkPunctuation=isNonCjkPunctuation(after);const afterSpaceOrNonCjkPunctuation=afterNonCjkPunctuation||isUnicodeWhitespace(after);const beforeCjkOrIvs=isCjkOrIvs(beforePrimary);const open=!afterSpaceOrNonCjkPunctuation||afterNonCjkPunctuation&&(beforeSpaceOrNonCjkPunctuation||beforeCjkOrIvs)||attentionMarkers2.includes(code3);const close=!beforeSpaceOrNonCjkPunctuation||beforeNonCjkPunctuation&&(afterSpaceOrNonCjkPunctuation||isCjk(after))||attentionMarkers2.includes(previous3);token._open=Boolean(marker===codes.asterisk?open:open&&(isSpaceOrPunctuation(beforePrimary)||!close));token._close=Boolean(marker===codes.asterisk?close:close&&(isSpaceOrPunctuation(after)||!open));return ok$1(code3)}}function movePoint2(point3,offset){point3.column+=offset;point3.offset+=offset;point3._bufferIndex+=offset}function cjkFriendlyExtension(){return{text:{[codes.asterisk]:attention4,[codes.underscore]:attention4},insideSpan:{null:[attention4]}}}function remarkCjkFriendly(){const data=this.data();(data.micromarkExtensions||(data.micromarkExtensions=[])).push(cjkFriendlyExtension())}var HIGHLIGHT_COLOR_IDS=["yellow","green","blue","pink","orange","purple"];var DEFAULT_HIGHLIGHT_COLOR="yellow";var TEXT_SIZE_CONFIG={1:{mobile:14,desktop:14,tailwind:"text-sm",lineHeight:1.7,tailwindLineHeight:"leading-[1.7]",fontWeight:400,tailwindFontWeight:"font-normal",letterSpacing:"0em",tailwindTracking:"tracking-normal",dotSize:6},2:{mobile:16,desktop:18,tailwind:"text-base md:text-lg",lineHeight:1.625,tailwindLineHeight:"leading-relaxed",fontWeight:400,tailwindFontWeight:"font-normal",letterSpacing:"0em",tailwindTracking:"tracking-normal",dotSize:8},3:{mobile:24,desktop:30,tailwind:"text-2xl md:text-3xl",lineHeight:1.25,tailwindLineHeight:"leading-tight",fontWeight:700,tailwindFontWeight:"font-bold",letterSpacing:"0em",tailwindTracking:"tracking-normal",dotSize:10},4:{mobile:30,desktop:36,tailwind:"text-3xl md:text-4xl",lineHeight:1.25,tailwindLineHeight:"leading-tight",fontWeight:700,tailwindFontWeight:"font-bold",letterSpacing:"0em",tailwindTracking:"tracking-normal",dotSize:11},5:{mobile:36,desktop:48,tailwind:"text-4xl lg:text-5xl",lineHeight:1.25,tailwindLineHeight:"leading-tight",fontWeight:700,tailwindFontWeight:"font-bold",letterSpacing:"-0.025em",tailwindTracking:"tracking-tight",dotSize:12},6:{mobile:48,desktop:60,tailwind:"text-5xl lg:text-6xl",lineHeight:1.2,tailwindLineHeight:"leading-[1.2]",fontWeight:700,tailwindFontWeight:"font-bold",letterSpacing:"-0.025em",tailwindTracking:"tracking-tight",dotSize:14},7:{mobile:60,desktop:72,tailwind:"text-6xl lg:text-7xl",lineHeight:1.15,tailwindLineHeight:"leading-[1.15]",fontWeight:700,tailwindFontWeight:"font-bold",letterSpacing:"-0.025em",tailwindTracking:"tracking-tight",dotSize:16},8:{mobile:72,desktop:96,tailwind:"text-7xl lg:text-8xl",lineHeight:1.1,tailwindLineHeight:"leading-[1.1]",fontWeight:700,tailwindFontWeight:"font-bold",letterSpacing:"-0.025em",tailwindTracking:"tracking-tight",dotSize:18},9:{mobile:96,desktop:128,tailwind:"text-8xl lg:text-9xl",lineHeight:1.1,tailwindLineHeight:"leading-[1.1]",fontWeight:700,tailwindFontWeight:"font-bold",letterSpacing:"-0.025em",tailwindTracking:"tracking-tight",dotSize:20}};var ALL_TEXT_SIZES=Object.keys(TEXT_SIZE_CONFIG).map(Number);var MIN_TEXT_SIZE=Math.min(...ALL_TEXT_SIZES);var MAX_TEXT_SIZE=Math.max(...ALL_TEXT_SIZES);var TEXT_SIZE_NAMES=Object.fromEntries(ALL_TEXT_SIZES.map(size=>[size,`Level ${size}`]));var TEXT_SIZE_STYLES=Object.fromEntries(ALL_TEXT_SIZES.map(size=>[size,`${TEXT_SIZE_CONFIG[size].tailwind} ${TEXT_SIZE_CONFIG[size].tailwindLineHeight}`]));var TEXT_SIZE_PX=Object.fromEntries(ALL_TEXT_SIZES.map(size=>[size,{mobile:TEXT_SIZE_CONFIG[size].mobile,desktop:TEXT_SIZE_CONFIG[size].desktop}]));var TEXT_SIZE_LINE_HEIGHT=Object.fromEntries(ALL_TEXT_SIZES.map(size=>[size,TEXT_SIZE_CONFIG[size].lineHeight]));var TEXT_SIZE_LINE_HEIGHT_CLASS=Object.fromEntries(ALL_TEXT_SIZES.map(size=>[size,TEXT_SIZE_CONFIG[size].tailwindLineHeight]));var TEXT_SIZE_FONT_WEIGHT=Object.fromEntries(ALL_TEXT_SIZES.map(size=>[size,TEXT_SIZE_CONFIG[size].fontWeight]));var TEXT_SIZE_FONT_WEIGHT_CLASS=Object.fromEntries(ALL_TEXT_SIZES.map(size=>[size,TEXT_SIZE_CONFIG[size].tailwindFontWeight]));var TEXT_SIZE_LETTER_SPACING=Object.fromEntries(ALL_TEXT_SIZES.map(size=>[size,TEXT_SIZE_CONFIG[size].letterSpacing]));var TEXT_SIZE_TRACKING_CLASS=Object.fromEntries(ALL_TEXT_SIZES.map(size=>[size,TEXT_SIZE_CONFIG[size].tailwindTracking]));var TEXT_SIZE_DOT=Object.fromEntries(ALL_TEXT_SIZES.map(size=>[size,TEXT_SIZE_CONFIG[size].dotSize]));function isValidTextSize(size){return typeof size==="number"&&size>=MIN_TEXT_SIZE&&size<=MAX_TEXT_SIZE}var EDITOR_TEXT_SIZE_PX=Object.fromEntries(ALL_TEXT_SIZES.map(size=>[size,TEXT_SIZE_CONFIG[size].mobile]));var INLINE_COLOR_IDS=["gray","red","yellow","green","blue","purple"];var COLOR_ID_SET=new Set(INLINE_COLOR_IDS);var HIGHLIGHT_ID_SET=new Set(HIGHLIGHT_COLOR_IDS);var FONT_STYLE_VALUES=["normal"];var FONT_STYLE_SET=new Set(FONT_STYLE_VALUES);function parseInlineColorParams(params){let textId=null;let bgId=null;let fontStyle=null;let highlightId=null;let size=null;for(const part of params.split(";")){const[k,v]=part.split("=");if(k==="c"&&COLOR_ID_SET.has(v))textId=v;else if(k==="bg"&&COLOR_ID_SET.has(v))bgId=v;else if(k==="fs"&&FONT_STYLE_SET.has(v))fontStyle=v;else if(k==="hl"&&HIGHLIGHT_ID_SET.has(v))highlightId=v;else if(k==="sz"){const n=parseInt(v,10);if(isValidTextSize(n))size=n}}return{textId,bgId,fontStyle,highlightId,size}}function encodeInlineStyleParams(parsed){const parts=[];if(parsed.textId)parts.push(`c=${parsed.textId}`);if(parsed.bgId)parts.push(`bg=${parsed.bgId}`);if(parsed.highlightId)parts.push(`hl=${parsed.highlightId}`);if(parsed.size)parts.push(`sz=${parsed.size}`);if(parsed.fontStyle)parts.push(`fs=${parsed.fontStyle}`);return parts.length>0?parts.join(";"):null}function mergeInlineStyleParams(...paramStrs){const merged={textId:null,bgId:null,fontStyle:null,highlightId:null,size:null};for(const raw of paramStrs){if(!raw)continue;const next=parseInlineColorParams(raw);if(next.textId)merged.textId=next.textId;if(next.bgId)merged.bgId=next.bgId;if(next.fontStyle)merged.fontStyle=next.fontStyle;if(next.highlightId)merged.highlightId=next.highlightId;if(next.size)merged.size=next.size}return encodeInlineStyleParams(merged)}function buildInlineStyle(params){const{textId,bgId,fontStyle,highlightId,size}=parseInlineColorParams(params);const styles=[];if(textId)styles.push(`color: var(--color-text-${textId})`);if(highlightId){styles.push(`background-color: var(--highlight-${highlightId})`);styles.push("border-radius: 2px");styles.push("padding: 0 2px")}else if(bgId){styles.push(`background-color: var(--color-bg-${bgId})`);styles.push("border-radius: 2px");styles.push("padding: 0 2px")}if(fontStyle)styles.push(`font-style: ${fontStyle}`);return{style:styles.length>0?styles.join("; "):null,className:size?TEXT_SIZE_STYLES[size]:null}}function normalizeLegacyInlineTokens(markdown){return mapOutsideFences(markdown,normalizeLegacyChunk)}function mapOutsideFences(markdown,fn){const parts=markdown.split(/(```[\s\S]*?```)/);return parts.map((part,i)=>i%2===1?part:fn(part)).join("")}function normalizeLegacyChunk(chunk){let out=chunk;out=out.replace(/\{size:([1-9])\}\{s:([a-z0-9=;]+)\}([^{]*)\{\/s\}\{\/size\}/g,(_m,sz,params,text6)=>{const merged=mergeInlineStyleParams(params,`sz=${sz}`);return merged?`{s:${merged}}${text6}{/s}`:text6});out=out.replace(/\{size:([1-9])\}([\s\S]*?)\{\/size\}/g,(_m,sz,inner)=>{if(inner.includes("{s:")){return inner.replace(/\{s:([a-z0-9=;]+)\}/g,(_mm,params)=>{const merged=mergeInlineStyleParams(params,`sz=${sz}`);return`{s:${merged??params}}`})}return`{s:sz=${sz}}${inner}{/s}`});out=out.replace(/\{s:([a-z0-9=;]+)\}==(?:\{(\w+)\})?([^=]+)==\{\/s\}/g,(_m,params,color3,text6)=>{const hl=color3&&HIGHLIGHT_ID_SET.has(color3)?color3:DEFAULT_HIGHLIGHT_COLOR;const merged=mergeInlineStyleParams(params,`hl=${hl}`);return merged?`{s:${merged}}${text6}{/s}`:text6});out=out.replace(/==(?:\{(\w+)\})?([^=]+)==/g,(_m,color3,text6)=>{const hl=color3&&HIGHLIGHT_ID_SET.has(color3)?color3:DEFAULT_HIGHLIGHT_COLOR;if(text6.includes("{s:")){return text6.replace(/\{s:([a-z0-9=;]+)\}([^{]*)\{\/s\}/g,(_mm,params,inner)=>{const merged=mergeInlineStyleParams(params,`hl=${hl}`);return merged?`{s:${merged}}${inner}{/s}`:inner})}return`{s:hl=${hl}}${text6}{/s}`});return out}var IMAGE_SIZES=["full","large","half","small"];var IMAGE_ALIGNS=["left","center","right"];var DEFAULT_IMAGE_SIZE="full";var DEFAULT_IMAGE_ALIGN="center";var DEFAULT_GALLERY_COLS=2;var SIZE_SET=new Set(IMAGE_SIZES);var ALIGN_SET=new Set(IMAGE_ALIGNS);function isImageSize(value){return typeof value==="string"&&SIZE_SET.has(value)}function isImageAlign(value){return typeof value==="string"&&ALIGN_SET.has(value)}function isGalleryCols(value){return value===2||value===3}function parseGalleryCols(raw){const n=raw?parseInt(raw,10):NaN;return isGalleryCols(n)?n:DEFAULT_GALLERY_COLS}var IMAGE_SIZE_WIDTH_CLASS={full:"w-full",large:"w-3/4",half:"w-1/2",small:"w-1/3"};var IMAGE_ALIGN_CLASS={left:"mr-auto",center:"mx-auto",right:"ml-auto"};var GALLERY_COLS_CLASS={2:"grid-cols-1 @vp-sm/article:grid-cols-2",3:"grid-cols-1 @vp-sm/article:grid-cols-3"};var DEFAULT_IMAGE_LAYOUT={size:DEFAULT_IMAGE_SIZE,align:DEFAULT_IMAGE_ALIGN};function parseImageLayoutAttrs(attrs){let size=DEFAULT_IMAGE_SIZE;let align=DEFAULT_IMAGE_ALIGN;if(!attrs)return{size,align};for(const part of attrs.trim().split(/\s+/)){const eq=part.indexOf("=");if(eq<=0)continue;const key=part.slice(0,eq);const value=part.slice(eq+1);if(key==="size"&&isImageSize(value))size=value;else if(key==="align"&&isImageAlign(value))align=value}return{size,align}}function encodeImageLayoutAttrs(layout){if(layout.size===DEFAULT_IMAGE_SIZE)return null;const parts=[`size=${layout.size}`];if(layout.align!==DEFAULT_IMAGE_ALIGN)parts.push(`align=${layout.align}`);return parts.join(" ")}function imageLayoutClassName(layout){const width=IMAGE_SIZE_WIDTH_CLASS[layout.size];if(layout.size===DEFAULT_IMAGE_SIZE)return width;return`${width} ${IMAGE_ALIGN_CLASS[layout.align]}`}var IMAGE_LINE_REGEX=/^!\[([^\]]*)\]\(([^)\s]+)(?:\s+"([^"]*)")?\)(?:\{([^}]*)\})?\s*$/;function parseImageLine(line){const match=IMAGE_LINE_REGEX.exec(line.trim());if(!match)return null;return{alt:match[1]??"",src:match[2],layout:parseImageLayoutAttrs(match[4])}}var ATTRS_TEXT_REGEX=/^\{([^}]*)\}/;function hasKnownAttr(attrs){for(const part of attrs.trim().split(/\s+/)){const eq=part.indexOf("=");if(eq<=0)continue;const key=part.slice(0,eq);const value=part.slice(eq+1);if(key==="size"&&isImageSize(value)||key==="align"&&isImageAlign(value)){return true}if(key==="width"&&/^\d+$/.test(value))return true}return false}function transform(node2){if(!node2.children||node2.children.length===0)return;for(const child of node2.children)transform(child);if(node2.type!=="paragraph")return;const children=node2.children;const next=[];for(let i=0;i<children.length;i++){const current=children[i];const following=children[i+1];if(current.type==="image"&&following&&following.type==="text"&&typeof following.value==="string"){const match=ATTRS_TEXT_REGEX.exec(following.value);if(match&&hasKnownAttr(match[1]??"")){const layout=parseImageLayoutAttrs(match[1]);if(layout.size!==DEFAULT_IMAGE_SIZE){current.data=current.data??{};current.data.hProperties={...current.data.hProperties??{},"data-size":layout.size,"data-align":layout.align}}next.push(current);const rest=following.value.slice(match[0].length);if(rest.trim())next.push({...following,value:rest});i+=1;continue}}next.push(current)}node2.children=next}function remarkImageAttrs(){return tree=>{transform(tree)}}var STYLE_OPEN=/\{s:([a-z0-9=;]+)\}/;var STYLE_CLOSE="{/s}";var UNDERLINE="++";var STYLE_MARKER={open:text6=>{const match=STYLE_OPEN.exec(text6);return match?{index:match.index,length:match[0].length,params:match[1]}:null},close:text6=>{const index2=text6.indexOf(STYLE_CLOSE);return index2===-1?null:{index:index2,length:STYLE_CLOSE.length}},build:(children,params)=>({type:"inlineStyle",params:params??"",children})};var UNDERLINE_MARKER={open:text6=>{const index2=text6.indexOf(UNDERLINE);if(index2===-1||/^\s|^$/.test(text6.slice(index2+UNDERLINE.length)))return null;return{index:index2,length:UNDERLINE.length}},close:text6=>{const index2=text6.indexOf(UNDERLINE);return index2===-1?null:{index:index2,length:UNDERLINE.length}},build:children=>({type:"underline",children})};function text5(value){return{type:"text",value}}function hasText(node2){return node2.type==="text"&&typeof node2.value==="string"}function pair(children,marker){const out=[];let i=0;while(i<children.length){const node2=children[i];if(!hasText(node2)){out.push(node2);i+=1;continue}const open=marker.open(node2.value);if(!open){out.push(node2);i+=1;continue}const before=node2.value.slice(0,open.index);const afterOpen=node2.value.slice(open.index+open.length);const collected=[];let closedAt=null;const sameNodeClose=marker.close(afterOpen);if(sameNodeClose){if(sameNodeClose.index>0)collected.push(text5(afterOpen.slice(0,sameNodeClose.index)));closedAt={nodeIndex:i,rest:afterOpen.slice(sameNodeClose.index+sameNodeClose.length)}}else{if(afterOpen)collected.push(text5(afterOpen));for(let j=i+1;j<children.length;j++){const sibling=children[j];if(!hasText(sibling)){collected.push(sibling);continue}const close=marker.close(sibling.value);if(!close){collected.push(sibling);continue}if(close.index>0)collected.push(text5(sibling.value.slice(0,close.index)));closedAt={nodeIndex:j,rest:sibling.value.slice(close.index+close.length)};break}}if(!closedAt||collected.every(child=>hasText(child)&&!child.value.trim())){out.push(text5(before+node2.value.slice(open.index,open.index+open.length)));children=[text5(afterOpen),...children.slice(i+1)];i=0;continue}if(before)out.push(text5(before));out.push(marker.build(pairAll(collected),open.params));children=[text5(closedAt.rest),...children.slice(closedAt.nodeIndex+1)];i=0}return out.filter(node2=>!(hasText(node2)&&node2.value===""))}function pairAll(children){return pair(pair(children,STYLE_MARKER),UNDERLINE_MARKER)}function walk(node2){if(!node2.children)return;for(const child of node2.children)walk(child);if(!node2.children.some(hasText))return;node2.children=pairAll(node2.children)}function applyInlineSyntax(tree){walk(tree)}var OPEN=/^:::([a-zA-Z][\w-]*)\b(.*)$/;var CLOSE=/^:::[ \t]*$/;function splitDirectives(markdown){const lines=markdown.split("\n");const spans=[];let buffer=[];const flush=()=>{if(buffer.length===0)return;spans.push({kind:"markdown",value:buffer.join("\n")});buffer=[]};for(let i=0;i<lines.length;i++){const line=lines[i]??"";const open=OPEN.exec(line);if(!open){buffer.push(line);continue}const rest=open[2]??"";if(rest.includes(":::")){flush();spans.push({kind:"directive",name:open[1],value:line});continue}const block=[line];let closedAt=-1;for(let j=i+1;j<lines.length;j++){block.push(lines[j]??"");if(CLOSE.test(lines[j]??"")){closedAt=j;break}}if(closedAt===-1){buffer.push(line);continue}flush();spans.push({kind:"directive",name:open[1],value:block.join("\n")});i=closedAt}flush();return spans.length>0?spans:[{kind:"markdown",value:markdown}]}var FENCE_OR_CODE=/(```[\s\S]*?```|`[^`\n]*`)/g;function mapOutsideCode(markdown,fn){const parts=markdown.split(FENCE_OR_CODE);return parts.map((part,index2)=>{if(index2%2===1)return part;return fn(part)}).join("")}function collapseExtraEscapes(markdown,options={underscore:true}){let changed=false;const pattern=options.underscore?/\\\\([*_~+#])/g:/\\\\([*~+#])/g;const text6=mapOutsideCode(markdown,chunk=>chunk.replace(pattern,(_match,char)=>{changed=true;return char}));return{text:text6,changed}}var UNDERSCORE_PLACEHOLDER="\uE000";function maskUnderscoreEmphasis(markdown){return mapOutsideCode(markdown,chunk=>{const links=[];const parked=chunk.replace(/!?\[[^\]]*\]\([^)\n]*\)/g,match=>{links.push(match);return`\uE001${links.length-1}\uE001`});const masked=parked.replace(/\\_/g,"_").replaceAll("_",UNDERSCORE_PLACEHOLDER);return masked.replace(/\uE001(\d+)\uE001/g,(_match,index2)=>links[Number(index2)]??"")})}function restoreUnderscores(value){return value.replaceAll(UNDERSCORE_PLACEHOLDER,"_")}function restoreUnderscoresInTree(node2){if(typeof node2.value==="string")node2.value=restoreUnderscores(node2.value);if(typeof node2.url==="string")node2.url=restoreUnderscores(node2.url);if(typeof node2.alt==="string")node2.alt=restoreUnderscores(node2.alt);if(typeof node2.title==="string")node2.title=restoreUnderscores(node2.title);for(const child of node2.children??[])restoreUnderscoresInTree(child)}var imageWithLayout=(node2,parent,state,info)=>{const base=handle.image(node2,parent,state,info);const props=node2.data?.hProperties;const size=props?.["data-size"];const align=props?.["data-align"];if(!isImageSize(size))return base;const attrs=encodeImageLayoutAttrs({size,align:isImageAlign(align)?align:DEFAULT_IMAGE_LAYOUT.align});return attrs?`${base}{${attrs}}`:base};imageWithLayout.peek=handle.image.peek;function parseProcessor(){return unified().use(remarkParse).use(remarkGfm).use(remarkCjkFriendly)}function parseMarkdownChunk(markdown,profile){const masked=profile==="inline"||profile==="body"?maskUnderscoreEmphasis(markdown):markdown;const proc=parseProcessor();const tree=proc.parse(masked);remarkImageAttrs()(tree);applyInlineSyntax(tree);if(profile==="inline"||profile==="body")restoreUnderscoresInTree(tree);return tree}function parseMarkdown(markdown,profile){const legacy=normalizeLegacyInlineTokens(markdown);const collapsed=collapseExtraEscapes(legacy,{underscore:profile!=="inline"&&profile!=="body"});const spans=splitDirectives(collapsed.text);const children=[];for(const span of spans){if(span.kind==="directive"){children.push({type:"kanorioDirective",name:span.name,raw:span.value});continue}if(!span.value.trim()){if(span.value.includes("\n"))children.push({type:"paragraph",children:[]});continue}const chunk=parseMarkdownChunk(span.value,profile);children.push(...chunk.children??[])}return{tree:{type:"root",children},escapesCollapsed:collapsed.changed}}import React from"react";import{Fragment as Fragment2,jsx as jsx2,jsxs as jsxs2}from"react/jsx-runtime";function styleOf(params){if(!params)return{};const built=buildInlineStyle(params);const style={};if(built.style){for(const decl of built.style.split(";")){const idx=decl.indexOf(":");if(idx===-1)continue;const prop=decl.slice(0,idx).trim().replace(/-([a-z])/g,(_,c)=>c.toUpperCase());const value=decl.slice(idx+1).trim();if(prop&&value)style[prop]=value}}let markClass;if(style.backgroundColor&&!style.color){style.color=style.backgroundColor.includes("--highlight-")?"var(--highlight-fg, inherit)":"var(--site-base-fg, inherit)";markClass="[&_a]:text-inherit"}return{className:[built.className,markClass].filter(Boolean).join(" ")||void 0,style:built.style?style:void 0}}function renderPhrasing(nodes,keyPrefix,overrides={}){return(nodes??[]).map((node2,index2)=>{const key=`${keyPrefix}-${index2}`;const inner=()=>renderPhrasing(node2.children,key,overrides);if(node2.type==="text")return jsx2(React.Fragment,{children:node2.value},key);if(node2.type==="strong")return jsx2("strong",{children:inner()},key);if(node2.type==="emphasis")return jsx2("em",{children:inner()},key);if(node2.type==="delete")return jsx2("del",{children:inner()},key);if(node2.type==="underline")return jsx2("u",{children:inner()},key);if(node2.type==="inlineCode"){return jsx2("code",{className:"bg-zinc-100 text-zinc-800 dark:bg-zinc-800 dark:text-zinc-100 rounded px-1.5 py-0.5 font-mono text-sm",children:node2.value},key)}if(node2.type==="inlineStyle"){const styled=styleOf(node2.params);return jsx2("span",{className:styled.className,style:styled.style,children:inner()},key)}if(node2.type==="break")return jsx2("br",{},key);if(node2.type==="link"){if(overrides.link)return overrides.link(node2,key,inner());const url=node2.url??"";if(!isAllowedArticleMarkdownHref(url))return jsx2("span",{children:inner()},key);return jsx2("a",{href:url,...isExternalArticleMarkdownHref(url)?{target:"_blank",rel:"noopener noreferrer"}:{},className:"text-[var(--site-accent-text,var(--brand-text,var(--brand-color)))] underline font-medium hover:opacity-80 break-words",children:inner()},key)}if(node2.type==="image")return overrides.image?overrides.image(node2,key):null;if(node2.children)return jsx2(React.Fragment,{children:inner()},key);return null})}function renderListItem(item,key,renderBlocks){const children=item.children??[];const[first,...rest]=children;if(first?.type==="paragraph"){return jsxs2("li",{children:[renderPhrasing(first.children,key),rest.length>0&&renderBlocks(rest)]},key)}return jsx2("li",{children:renderBlocks(children)},key)}function renderBodyBlocks(nodes){return(nodes??[]).map((node2,index2)=>{const key=`b-${index2}`;if(node2.type==="paragraph"){return jsx2("p",{className:"break-words",children:renderPhrasing(node2.children,key)},key)}if(node2.type==="list"&&node2.ordered){return jsx2("ol",{className:"list-decimal list-outside pl-6 space-y-1 break-words",children:(node2.children??[]).map((item,itemIndex)=>renderListItem(item,`${key}-${itemIndex}`,renderBodyBlocks))},key)}if(node2.type==="list"){return jsx2("ul",{className:"list-disc list-outside pl-6 space-y-1 break-words",children:(node2.children??[]).map((item,itemIndex)=>renderListItem(item,`${key}-${itemIndex}`,renderBodyBlocks))},key)}if(node2.type==="blockquote"){return jsx2("blockquote",{className:"border-l-4 border-[var(--site-accent-text,var(--brand-text,var(--brand-color)))] pl-4 italic text-[var(--site-fg-muted,#71717a)]",children:renderBodyBlocks(node2.children)},key)}if(node2.type==="code"){return jsx2("pre",{className:"bg-zinc-100 dark:bg-zinc-800 rounded-[var(--site-radius-lg,0.5rem)] p-4 font-mono text-sm leading-6 overflow-x-auto whitespace-pre-wrap text-zinc-700 dark:text-zinc-300",children:jsx2("code",{children:node2.value})},key)}return null})}function RichTextView({content:content3,profile,className,blockClassName="space-y-2"}){if(!content3)return null;const applied=applyProfile(parseMarkdown(content3,profile).tree,profile);if(profile==="inline"){const paragraph2=applied.tree.children?.[0];return jsx2(Fragment2,{children:renderPhrasing(paragraph2?.children,"i")})}if(!applied.tree.children?.length)return null;return jsx2("div",{className:cn("site-body-text break-words min-w-0",blockClassName,className),children:renderBodyBlocks(applied.tree.children)})}var ARTICLE_CONTENT_STYLES={h1:"text-[length:var(--heading-h1-size,36px)] @vp-lg/article:text-[length:var(--heading-h1-size-lg,48px)] leading-[var(--heading-h1-lh,1.25)] font-[number:var(--heading-h1-fw,700)] tracking-[var(--heading-h1-ls,-0.025em)]",h2:"text-[length:var(--heading-h2-size,30px)] @vp-md/article:text-[length:var(--heading-h2-size-lg,36px)] leading-[var(--heading-h2-lh,1.25)] font-[number:var(--heading-h2-fw,700)] tracking-[var(--heading-h2-ls,0em)]",h3:"text-[length:var(--heading-h3-size,24px)] @vp-md/article:text-[length:var(--heading-h3-size-lg,30px)] leading-[var(--heading-h3-lh,1.25)] font-[number:var(--heading-h3-fw,700)] tracking-[var(--heading-h3-ls,0em)]",h4:"text-[length:var(--heading-h4-size,22px)] @vp-md/article:text-[length:var(--heading-h4-size-lg,27px)] leading-[var(--heading-h4-lh,1.3)] font-[number:var(--heading-h4-fw,600)] tracking-[var(--heading-h4-ls,0em)]",h5:"text-[length:var(--heading-h5-size,20px)] @vp-md/article:text-[length:var(--heading-h5-size-lg,24px)] leading-[var(--heading-h5-lh,1.4)] font-[number:var(--heading-h5-fw,600)] tracking-[var(--heading-h5-ls,0em)]",h6:"text-[length:var(--heading-h6-size,18px)] @vp-md/article:text-[length:var(--heading-h6-size-lg,21px)] leading-[var(--heading-h6-lh,1.5)] font-[number:var(--heading-h6-fw,500)] tracking-[var(--heading-h6-ls,0em)]",body:"text-[length:var(--body-size,16px)] @vp-md/article:text-[length:var(--body-size-lg,18px)] leading-[var(--body-lh,1.625)] font-[number:var(--body-fw,400)] tracking-[var(--body-ls,0em)]"};import{Fragment as Fragment3,jsx as jsx3,jsxs as jsxs3}from"react/jsx-runtime";function plainTextOf(node2){if(!node2)return"";if(node2.type==="text")return node2.value??"";return(node2.children??[]).map(plainTextOf).join("")}var ARTICLE_OVERRIDES={link(node2,key,children){const href=node2.url??"";if(!isAllowedArticleMarkdownHref(href)){return jsx3("span",{className:"text-[var(--site-accent-text,var(--brand-text,var(--brand-color)))] font-medium",children},key)}return jsx3("a",{href,className:"text-[var(--site-accent-text,var(--brand-text,var(--brand-color)))] underline font-medium hover:opacity-80",...isExternalArticleMarkdownHref(href)?{target:"_blank",rel:"noopener noreferrer"}:{},children},key)},image(node2,key){const rawSize=node2.data?.hProperties?.["data-size"];const rawAlign=node2.data?.hProperties?.["data-align"];const layout={size:isImageSize(rawSize)?rawSize:DEFAULT_IMAGE_LAYOUT.size,align:isImageAlign(rawAlign)?rawAlign:DEFAULT_IMAGE_LAYOUT.align};return jsx3(SiteImage,{src:node2.url??"",responsive:true,explicitAlt:node2.alt??void 0,altType:"article-image",title:node2.title??void 0,className:`block rounded-[var(--site-radius-media)] my-5 h-auto ${imageLayoutClassName(layout)}`},key)}};function renderArticlePhrasing(nodes,keyPrefix){return renderPhrasing(nodes,keyPrefix,ARTICLE_OVERRIDES)}function accessibleTextOf(node2){if(!node2)return"";if(node2.type==="text"||node2.type==="inlineCode")return node2.value??"";if(node2.type==="image")return node2.alt??"";if(node2.type==="break")return" ";if(node2.type==="html")return"";return(node2.children??[]).map(accessibleTextOf).join("")}function tableLabelOf(rows){for(const row of rows){const cells=(row.children??[]).map(cell=>accessibleTextOf(cell).replace(/\s+/g," ").trim()).filter(Boolean);if(cells.length>0)return cells.join(", ")}return""}function renderTable(node2,key){const rows=node2.children??[];const[headerRow,...bodyRows]=rows;const label=tableLabelOf(rows);return jsx3("div",{className:"article-table-scroll overflow-x-auto focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[var(--site-accent-text,var(--brand-text,var(--brand-color,#FF5733)))]",tabIndex:0,...label?{role:"region","aria-label":label}:{},children:jsxs3("table",{children:[headerRow&&jsx3("thead",{children:jsx3("tr",{children:(headerRow.children??[]).map((cell,cellIndex)=>jsx3("th",{children:renderArticlePhrasing(cell.children,`${key}-h-${cellIndex}`)},cellIndex))})}),jsx3("tbody",{children:bodyRows.map((row,rowIndex)=>jsx3("tr",{children:(row.children??[]).map((cell,cellIndex)=>jsx3("td",{children:renderArticlePhrasing(cell.children,`${key}-${rowIndex}-${cellIndex}`)},cellIndex))},rowIndex))})]})},key)}function renderListItems(items,keyPrefix,assignId){return items.map((item,index2)=>{const key=`${keyPrefix}-${index2}`;const isTask=typeof item.checked==="boolean";const contentNodes=(item.children??[]).flatMap(child=>child.type==="paragraph"?child.children??[]:[]);const blockChildren=(item.children??[]).filter(child=>child.type!=="paragraph");if(isTask){return jsxs3("li",{className:"flex items-start gap-2",children:[jsx3("span",{role:"checkbox","aria-checked":item.checked??false,"aria-disabled":"true",className:"mt-1.5 inline-block size-4 shrink-0 rounded-sm border text-center text-xs leading-4 "+TONE_BORDER_STRONG,children:item.checked?"\u2713":""}),jsx3("span",{children:renderArticlePhrasing(contentNodes,key)})]},key)}return jsxs3("li",{children:[renderArticlePhrasing(contentNodes,key),blockChildren.length>0&&renderArticleBlocks(blockChildren,assignId)]},key)})}function renderArticleBlocks(nodes,assignId){return(nodes??[]).map((node2,index2)=>{const key=`a-${index2}`;if(node2.type==="paragraph"){return jsx3("p",{className:`${ARTICLE_CONTENT_STYLES.body} mb-4 ${TONE_TEXT_BODY}`,children:renderArticlePhrasing(node2.children,key)},key)}if(node2.type==="heading"){const level=node2.depth===1?2:node2.depth??2;const id=assignId(plainTextOf(node2));const Tag=`h${level}`;const styleKey=`h${level}`;const className=level<=3?`${ARTICLE_CONTENT_STYLES[styleKey]} ${level===2?"mt-8 mb-4":"mt-6 mb-3"} text-[var(--site-fg,#18181b)] scroll-mt-24`:`${ARTICLE_CONTENT_STYLES[styleKey]} mt-5 mb-2 text-[var(--site-fg,#18181b)]`;return jsx3(Tag,{id,className,children:renderArticlePhrasing(node2.children,key)},key)}if(node2.type==="list"&&node2.ordered){return jsx3("ol",{className:`list-decimal list-outside pl-6 space-y-2 my-5 ${ARTICLE_CONTENT_STYLES.body} ${TONE_TEXT_BODY}`,children:renderListItems(node2.children??[],key,assignId)},key)}if(node2.type==="list"){const hasTask=(node2.children??[]).some(item=>typeof item.checked==="boolean");return jsx3("ul",{className:hasTask?`list-none pl-0 space-y-2 my-5 ${ARTICLE_CONTENT_STYLES.body} ${TONE_TEXT_BODY}`:`list-disc list-outside pl-6 space-y-2 my-5 ${ARTICLE_CONTENT_STYLES.body} ${TONE_TEXT_BODY}`,children:renderListItems(node2.children??[],key,assignId)},key)}if(node2.type==="blockquote"){return jsx3("blockquote",{className:`border-l-4 border-[var(--site-accent-text,var(--brand-text,var(--brand-color)))] pl-4 italic ${ARTICLE_CONTENT_STYLES.body} text-[var(--site-fg-muted,#71717a)] my-5`,children:renderArticleBlocks(node2.children,assignId)},key)}if(node2.type==="code"){return jsx3("pre",{className:"bg-zinc-100 dark:bg-zinc-800 rounded-[var(--site-radius-lg)] p-4 font-mono text-sm leading-6 my-5 overflow-x-auto whitespace-pre-wrap text-zinc-700 dark:text-zinc-300",children:jsx3("code",{children:node2.value})},key)}if(node2.type==="thematicBreak"){return jsx3("hr",{className:"my-6 border-[var(--site-border,#e4e4e7)]"},key)}if(node2.type==="table")return renderTable(node2,key);if(node2.type==="image"||node2.type==="link"){return jsx3(React2.Fragment,{children:renderArticlePhrasing([node2],key)},key)}return null})}function ArticleInlineRichText({content:content3}){const applied=applyProfile(parseMarkdown(content3,"article").tree,"article");const paragraph2=applied.tree.children?.find(node2=>node2.type==="paragraph");return jsx3(Fragment3,{children:renderArticlePhrasing(paragraph2?.children,"ai")})}function renderArticleRichText(content3,assignId){const applied=applyProfile(parseMarkdown(content3,"article").tree,"article");if(!applied.tree.children?.length)return null;return jsx3(Fragment3,{children:renderArticleBlocks(applied.tree.children,assignId)})}function ArticleRichText({content:content3,assignId}){return jsx3(Fragment3,{children:renderArticleRichText(content3,assignId)})}function slugify(text6){return text6.toString().toLowerCase().trim().replace(/\s+/g,"-").replace(/[^\p{L}\p{N}-]/gu,"").replace(/-+/g,"-").replace(/^-|-$/g,"")}function plainFromTree(node2){if(node2.type==="inlineCode"||node2.type==="code")return node2.value??"";if(node2.type==="text")return node2.value??"";if(node2.type==="image")return node2.alt??"";if(node2.type==="break")return"\n";if(node2.type==="kanorioDirective")return"";const inner=(node2.children??[]).map(plainFromTree).join("");if(node2.type==="paragraph"||node2.type==="heading"||node2.type==="listItem"||node2.type==="blockquote"){return inner}if(node2.type==="list"||node2.type==="root"||node2.type==="table"){return(node2.children??[]).map(plainFromTree).filter(part=>part.trim()).join(node2.type==="root"?"\n":" ")}return inner}function toPlainText(markdown,profile="body"){if(!markdown)return"";const parsed=parseMarkdown(markdown,profile);const applied=applyProfile(parsed.tree,profile==="inline"?"inline":"body");const text6=plainFromTree(applied.tree).replace(/[ \t]+\n/g,"\n").replace(/\n{3,}/g,"\n\n");if(profile==="inline"||profile==="plain")return text6.replace(/\s+/g," ").trim();return text6.trim()}function inlineMarkdownToPlainText(text6,_opts){return toPlainText(text6,"inline")}var GALLERY_SHORTCODE_REGEX=/:::gallery(?:[ \t]+cols="(\d)")?[ \t]*\n([\s\S]*?)\n?:::/g;var CTA_MULTILINE_REGEX=/:::cta[ \t]*([^\n]*)\n([\s\S]*?)\n:::/g;var CTA_LEGACY_REGEX=/:::cta[ \t]+([^\n]+?):::/g;var FAQ_SHORTCODE_REGEX=/:::faq\s+([\s\S]+?):::/g;var EMBED_SHORTCODE_REGEX=/:::embed\s+url="([^"]+)"(?:\s+type="([^"]+)")?:::/g;var AUDIO_SHORTCODE_REGEX=/:::audio\s+src="([^"]+)"(?:\s+title="([^"]*)")?:::/g;var PDF_SHORTCODE_REGEX=/:::pdf\s+((?:[a-zA-Z][\w-]*="(?:\\.|[^"\\])*"\s*)+):::/g;var FILE_SHORTCODE_REGEX=/:::file\s+((?:[a-zA-Z][\w-]*="(?:\\.|[^"\\])*"\s*)+):::/g;var TOGGLE_SHORTCODE_REGEX=/:::toggle(?:\s+title="([^"]*)")?\n([\s\S]*?)\n:::/g;var CALLOUT_SHORTCODE_REGEX=/:::callout([ \t]+[^\n]*)?\n([\s\S]*?)\n:::/g;var MEDIA_PLACEHOLDER_REGEX=/:::media\s+type="[^"]+":::/g;function normalizeQuotes(s){return s.replace(/\u201C/g,'"').replace(/\u201D/g,'"').replace(/\u2018/g,"'").replace(/\u2019/g,"'")}var SHORTCODE_ATTR_REGEX=/\s*([a-zA-Z][\w-]*)="((?:\\.|[^"\\])*)"/g;function unescapeShortcodeAttr(value){return value.replace(/\\(["\\n])/g,(_match,ch)=>{if(ch==="n")return"\n";return ch})}function parseShortcodeAttrs(attrsLine){const attrs=new Map;SHORTCODE_ATTR_REGEX.lastIndex=0;let match;while((match=SHORTCODE_ATTR_REGEX.exec(attrsLine))!==null){attrs.set(match[1],unescapeShortcodeAttr(match[2]))}return attrs}function parseCtaAttrs(attrsLine,content3){const attrs=parseShortcodeAttrs(normalizeQuotes(attrsLine));const slug=attrs.get("slug");const button=attrs.get("button");const url=attrs.get("url");const trimmedContent=content3.trim();if(slug){return{type:"preset",slug,content:trimmedContent}}if(button&&url){return{type:"custom",buttonText:button,href:url,content:trimmedContent}}if(trimmedContent){return{type:"custom",content:trimmedContent,buttonText:button,href:url}}return null}function parseCtaLegacy(inner){const attrs=parseShortcodeAttrs(normalizeQuotes(inner));const slug=attrs.get("slug");const title=attrs.get("title");const subtitle=attrs.get("subtitle");const button=attrs.get("button");const url=attrs.get("url");const parts=[];if(title)parts.push(`**${title}**`);if(subtitle)parts.push(subtitle);const content3=parts.join("\n\n");if(title&&button&&url){return{type:"custom",content:content3,buttonText:button,href:url}}if(slug&&!title){return{type:"preset",slug,content:content3}}return null}function parseFaqBody(body){const trimmed=body.trim();if(!trimmed)return[];const items=[];const h2Regex=/^##\s+(.+)$/gm;let match;let prevQuestion=null;let prevAnswerStart=0;while((match=h2Regex.exec(trimmed))!==null){const question=match[1].trim();const answerStart=match.index+match[0].length;const answerEnd=match.index;if(prevQuestion!==null){items.push({question:prevQuestion,answer:trimmed.slice(prevAnswerStart,answerEnd).trim()})}prevQuestion=question;prevAnswerStart=answerStart}if(prevQuestion!==null){items.push({question:prevQuestion,answer:trimmed.slice(prevAnswerStart).trim()})}return items}function parseFaqInner(inner){const normalized=normalizeQuotes(inner);const firstNewline=normalized.indexOf("\n");const firstLine=firstNewline>=0?normalized.slice(0,firstNewline):normalized;const looksLikeAttrsLine=!firstLine.trimStart().startsWith("##");const title=looksLikeAttrsLine?firstLine.trim().match(/title="([^"]*)"/)?.[1]?.trim()||void 0:void 0;const body=looksLikeAttrsLine?firstNewline>=0?normalized.slice(firstNewline+1):"":normalized;const items=parseFaqBody(body);if(items.length===0)return null;return{title,items}}function splitToggle(content3){const segments=[];let lastIndex=0;TOGGLE_SHORTCODE_REGEX.lastIndex=0;let match;while((match=TOGGLE_SHORTCODE_REGEX.exec(content3))!==null){const before=content3.slice(lastIndex,match.index);if(before)segments.push({type:"markdown",value:before});const title=match[1]||"Toggle";const toggleContent=match[2]?.trim()||"";segments.push({type:"toggle",config:{title,content:toggleContent}});lastIndex=TOGGLE_SHORTCODE_REGEX.lastIndex}const after=content3.slice(lastIndex);if(after)segments.push({type:"markdown",value:after});if(segments.length===0)segments.push({type:"markdown",value:content3});return segments}function normalizeCalloutTone(raw){const t=(raw??"info").trim().toLowerCase();if(t==="warning"||t==="warn")return"warning";if(t==="tip"||t==="important"||t==="success")return"tip";if(t==="danger"||t==="error"||t==="caution")return"danger";return"info"}function splitCallout(content3){const segments=[];let lastIndex=0;let matched=false;CALLOUT_SHORTCODE_REGEX.lastIndex=0;let match;while((match=CALLOUT_SHORTCODE_REGEX.exec(content3))!==null){matched=true;const before=content3.slice(lastIndex,match.index);if(before)segments.push({type:"markdown",value:before});const attrs=parseShortcodeAttrs(normalizeQuotes(match[1]??""));const tone=normalizeCalloutTone(attrs.get("tone")??attrs.get("type"));const title=attrs.get("title")?.trim()||void 0;const body=(match[2]??"").trim();if(body||title){segments.push({type:"callout",config:{tone,...title?{title}:{},content:body}})}lastIndex=CALLOUT_SHORTCODE_REGEX.lastIndex}const after=content3.slice(lastIndex);if(after)segments.push({type:"markdown",value:after});if(segments.length===0&&!matched)segments.push({type:"markdown",value:content3});return segments}function splitGallery(content3){const segments=[];let lastIndex=0;let matched=false;GALLERY_SHORTCODE_REGEX.lastIndex=0;let match;while((match=GALLERY_SHORTCODE_REGEX.exec(content3))!==null){matched=true;const before=content3.slice(lastIndex,match.index);if(before)segments.push({type:"markdown",value:before});const cols=parseGalleryCols(match[1]);const items=[];for(const line of(match[2]??"").split("\n")){const parsed=parseImageLine(line);if(parsed)items.push({src:parsed.src,alt:parsed.alt})}if(items.length>0){segments.push({type:"gallery",config:{cols,items}})}lastIndex=GALLERY_SHORTCODE_REGEX.lastIndex}const after=content3.slice(lastIndex);if(after)segments.push({type:"markdown",value:after});if(segments.length===0&&!matched){segments.push({type:"markdown",value:content3})}return segments}function splitEmbed(content3){const segments=[];let lastIndex=0;EMBED_SHORTCODE_REGEX.lastIndex=0;let match;while((match=EMBED_SHORTCODE_REGEX.exec(content3))!==null){const before=content3.slice(lastIndex,match.index);if(before)segments.push({type:"markdown",value:before});const url=match[1];const embedType=match[2]||"generic";segments.push({type:"embed",config:{url,embedType}});lastIndex=EMBED_SHORTCODE_REGEX.lastIndex}const after=content3.slice(lastIndex);if(after)segments.push({type:"markdown",value:after});if(segments.length===0)segments.push({type:"markdown",value:content3});return segments}function splitAudio(content3){const segments=[];let lastIndex=0;AUDIO_SHORTCODE_REGEX.lastIndex=0;let match;while((match=AUDIO_SHORTCODE_REGEX.exec(content3))!==null){const before=content3.slice(lastIndex,match.index);if(before)segments.push({type:"markdown",value:before});const src=match[1];const title=match[2]||void 0;segments.push({type:"audio",config:{src,title}});lastIndex=AUDIO_SHORTCODE_REGEX.lastIndex}const after=content3.slice(lastIndex);if(after)segments.push({type:"markdown",value:after});if(segments.length===0)segments.push({type:"markdown",value:content3});return segments}function splitPdf(content3){const segments=[];let lastIndex=0;PDF_SHORTCODE_REGEX.lastIndex=0;let match;while((match=PDF_SHORTCODE_REGEX.exec(content3))!==null){const before=content3.slice(lastIndex,match.index);if(before)segments.push({type:"markdown",value:before});const attrs=parseShortcodeAttrs(match[1]??"");const src=attrs.get("src");if(src){const pageCount=Number.parseInt(attrs.get("pages")??"",10);const display=attrs.get("display");segments.push({type:"pdf",config:{src,title:attrs.get("title")||void 0,pageCount:Number.isFinite(pageCount)&&pageCount>0?pageCount:void 0,thumbnailUrl:attrs.get("thumb")||void 0,assetId:attrs.get("asset")||void 0,display:display==="card"?"card":void 0}})}lastIndex=PDF_SHORTCODE_REGEX.lastIndex}const after=content3.slice(lastIndex);if(after)segments.push({type:"markdown",value:after});if(segments.length===0)segments.push({type:"markdown",value:content3});return segments}function splitFile(content3){const segments=[];let lastIndex=0;let matched=false;FILE_SHORTCODE_REGEX.lastIndex=0;let match;while((match=FILE_SHORTCODE_REGEX.exec(content3))!==null){matched=true;const before=content3.slice(lastIndex,match.index);if(before)segments.push({type:"markdown",value:before});const attrs=parseShortcodeAttrs(match[1]??"");const assetId=attrs.get("asset");const name=attrs.get("name");if(assetId&&name){const size=Number.parseInt(attrs.get("size")??"",10);segments.push({type:"file",config:{assetId,name,size:Number.isFinite(size)&&size>0?size:void 0,mimeType:attrs.get("type")||void 0}})}lastIndex=FILE_SHORTCODE_REGEX.lastIndex}const after=content3.slice(lastIndex);if(after)segments.push({type:"markdown",value:after});if(segments.length===0&&!matched)segments.push({type:"markdown",value:content3});return segments}function splitCtaLegacy(content3){const segments=[];let lastIndex=0;CTA_LEGACY_REGEX.lastIndex=0;let match;while((match=CTA_LEGACY_REGEX.exec(content3))!==null){const before=content3.slice(lastIndex,match.index);if(before)segments.push({type:"markdown",value:before});const config=parseCtaLegacy(match[1]);if(config)segments.push({type:"cta",config});lastIndex=CTA_LEGACY_REGEX.lastIndex}const after=content3.slice(lastIndex);if(after)segments.push({type:"markdown",value:after});return segments}function splitCta(content3){const segments=[];let lastIndex=0;let matched=false;CTA_MULTILINE_REGEX.lastIndex=0;let match;while((match=CTA_MULTILINE_REGEX.exec(content3))!==null){matched=true;const before=content3.slice(lastIndex,match.index);if(before)segments.push(...splitCtaLegacy(before));const config=parseCtaAttrs(match[1]??"",match[2]??"");if(config)segments.push({type:"cta",config});lastIndex=CTA_MULTILINE_REGEX.lastIndex}const after=content3.slice(lastIndex);if(after)segments.push(...splitCtaLegacy(after));if(segments.length===0&&!matched){segments.push({type:"markdown",value:content3})}return segments}function parseArticleSegments(content3){content3=content3.replace(MEDIA_PLACEHOLDER_REGEX,"");if(!content3.trim())return[];const out=[];let lastIndex=0;FAQ_SHORTCODE_REGEX.lastIndex=0;let match;const SPLITTERS=[splitToggle,splitCallout,splitGallery,splitEmbed,splitAudio,splitPdf,splitFile,splitCta];const pushMarkdown=md=>{if(!md)return;const run=(value,depth)=>{const splitter=SPLITTERS[depth];if(!splitter){if(value.trim())out.push({type:"markdown",value});return}for(const seg of splitter(value)){if(seg.type==="markdown")run(seg.value,depth+1);else out.push(seg)}};run(md,0)};while((match=FAQ_SHORTCODE_REGEX.exec(content3))!==null){const before=content3.slice(lastIndex,match.index);pushMarkdown(before);const config=parseFaqInner(match[1]);if(config)out.push({type:"faq",config});lastIndex=FAQ_SHORTCODE_REGEX.lastIndex}pushMarkdown(content3.slice(lastIndex));return out}function generateHeadingId(text6){return slugify(text6)}function stripInlineMarkdown(text6){return inlineMarkdownToPlainText(text6,{underscoreEmphasis:true})}function createHeadingIdAssigner(){const seen=new Set;return text6=>{const label=stripInlineMarkdown(text6);let id=generateHeadingId(label);if(seen.has(id)){let suffix=1;while(seen.has(`${id}-${suffix}`))suffix++;id=`${id}-${suffix}`}seen.add(id);return id}}var ctaStyles={container:"site-card-scope rounded-[var(--site-radius-card)] bg-zinc-100 dark:bg-zinc-800 p-8 shadow-lg text-center",content:"text-zinc-700 dark:text-zinc-200 leading-relaxed [&_p]:my-1.5 [&_strong]:text-zinc-900 dark:[&_strong]:text-zinc-50 [&_ul]:list-disc [&_ul]:pl-5 [&_ul]:text-left [&_ul]:my-2 [&_ol]:list-decimal [&_ol]:pl-5 [&_ol]:text-left [&_ol]:my-2 [&_a]:text-[var(--brand-text,var(--brand-color))] [&_a]:underline",contentSpacing:"mb-6",button:"inline-flex items-center justify-center gap-2 rounded-[var(--site-radius-button)] bg-[var(--brand-color)] px-6 @vp-md/article:px-8 py-3 min-h-[44px] text-base font-bold text-[var(--brand-foreground)] shadow-md transition-all duration-200 hover:scale-[1.02] hover:shadow-lg active:scale-[0.98]"};import{jsx as jsx4,jsxs as jsxs4}from"react/jsx-runtime";function UserCtaShortcodeBlock({config,presets}){let buttonText;let href;if(config.type==="preset"){const preset=config.slug?presets?.[config.slug]:void 0;if(preset){buttonText=preset.label;href=preset.href}}else{buttonText=config.buttonText;href=config.href}const hasContent=Boolean(config.content?.trim());const hasButton=Boolean(buttonText&&href);if(!hasContent&&!hasButton)return null;const isExternal=href?/^https?:\/\//.test(href):false;return jsxs4("div",{className:ctaStyles.container,children:[hasContent&&jsx4("div",{className:`${ctaStyles.content}${hasButton?` ${ctaStyles.contentSpacing}`:""}`,children:jsx4(ArticleRichText,{content:config.content,assignId:createHeadingIdAssigner()})}),hasButton&&href&&jsx4("a",{href,className:ctaStyles.button,"data-cta-track":"","data-cta-button-name":buttonText,"data-cta-element-id":"blog-article-cta",...isExternal?{target:"_blank",rel:"noopener noreferrer"}:{},children:buttonText})]})}import{jsx as jsx5,jsxs as jsxs5}from"react/jsx-runtime";function UserFaqShortcodeBlock({config}){if(config.items.length===0)return null;const assignId=createHeadingIdAssigner();return jsxs5("section",{className:"my-6 space-y-4",children:[config.title&&jsx5("h2",{className:"text-2xl font-bold text-[var(--site-fg,#18181b)] mb-2",children:config.title}),config.items.map((item,i)=>jsxs5("div",{className:"my-4",children:[jsxs5("div",{className:"flex items-start gap-2 text-[var(--site-fg,#18181b)]",children:[jsx5("span",{className:"shrink-0 mt-0.5 w-5 h-5 rounded bg-emerald-100 dark:bg-emerald-900/40 flex items-center justify-center text-emerald-700 dark:text-emerald-300 text-[10px] font-bold",children:"Q"}),jsx5("span",{className:"flex-1 min-w-0",children:jsx5(ArticleInlineRichText,{content:item.question})})]}),jsxs5("div",{className:"mt-1 flex items-start gap-2",children:[jsx5("span",{className:"shrink-0 mt-0.5 w-5 h-5 rounded bg-blue-100 dark:bg-blue-900/40 flex items-center justify-center text-blue-700 dark:text-blue-300 text-[10px] font-bold",children:"A"}),jsx5("div",{className:"flex-1 min-w-0 [&>*:first-child]:mt-0 [&>*:last-child]:mb-0",children:jsx5(ArticleRichText,{content:item.answer,assignId})})]})]},i))]})}var HOSTED_MEDIA_HOST="media.kanorio.com";var HOSTED_VIDEO_PATH=/\.(mp4|webm|mov)$/i;function isHostedVideoUrl(url){try{const parsed=new URL(url);return parsed.hostname===HOSTED_MEDIA_HOST&&HOSTED_VIDEO_PATH.test(parsed.pathname)}catch{return false}}function getEmbedUrl(url,embedType){switch(embedType){case"youtube":{const match=url.match(/(?:youtube\.com\/(?:watch\?v=|embed\/)|youtu\.be\/)([a-zA-Z0-9_-]{11})/);return match?`https://www.youtube.com/embed/${match[1]}`:null}case"vimeo":{const match=url.match(/vimeo\.com\/(?:video\/)?(\d+)/);return match?`https://player.vimeo.com/video/${match[1]}`:null}case"figma":{return url.includes("embed")?url:`https://www.figma.com/embed?embed_host=share&url=${encodeURIComponent(url)}`}case"codepen":{const match=url.match(/codepen\.io\/([^/]+)\/(?:pen|full)\/([^/?]+)/);return match?`https://codepen.io/${match[1]}/embed/${match[2]}?default-tab=result`:null}case"google-maps":{if(url.includes("/embed"))return url;return null}default:return url}}import{jsx as jsx6}from"react/jsx-runtime";var VideoPlayer=onDemand(()=>import("./VideoPlayer-FWZF4DQK.js").then(m=>m.VideoPlayer),({failed})=>jsx6("div",{className:"aspect-video w-full rounded-lg bg-black/5 dark:bg-white/5","aria-busy":failed?void 0:"true"}));function EmbedBlock({url,embedType}){const{ui}=useSiteLabels();const facts=useMediaFacts({url});if(isHostedVideoUrl(url)){return jsx6("div",{className:"my-6 not-prose",children:jsx6(VideoPlayer,{src:url,hlsSrc:facts?.hls,thumbnails:facts?.thumbnails,streamingPartial:facts?.streamingPartial,captions:facts?.captions,chapters:facts?.chapters,storageKey:url,poster:facts?.cover})})}const embedUrl=getEmbedUrl(url,embedType);if(!embedUrl){return jsx6("div",{className:"my-6 p-4 rounded-[var(--site-radius-media)] border border-zinc-200 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-800/50",children:jsx6("p",{className:"text-sm text-zinc-500 dark:text-zinc-400",children:fillLabel(ui.embedLoadFailed,{url})})})}return jsx6("div",{className:"my-6 rounded-[var(--site-radius-media)] overflow-hidden",children:jsx6("div",{className:"aspect-video bg-zinc-900",children:jsx6("iframe",{src:embedUrl,className:"w-full h-full",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:true,loading:"lazy"})})})}import{jsx as jsx7}from"react/jsx-runtime";var AudioPlayer=onDemand(()=>import("./AudioPlayer-S7YF7A2E.js").then(m=>m.AudioPlayer),({failed})=>jsx7("div",{className:"h-20 w-full rounded-lg bg-black/5 dark:bg-white/5","aria-busy":failed?void 0:"true"}));function AudioBlock({src,title}){const displayTitle=title||src.split("/").pop()?.replace(/\.[^.]+$/,"")||"";const facts=useMediaFacts({url:src});return jsx7("div",{className:"my-6 not-prose",children:jsx7(AudioPlayer,{src,title:displayTitle,storageKey:src,coverImage:facts?.cover,captions:facts?.captions,chapters:facts?.chapters})})}import{jsx as jsx8}from"react/jsx-runtime";function fileAttachmentDownloadUrl(apiBase,websiteId,assetId,name){if(!websiteId)return"";const base=`${apiBase??""}/api/public/sites/${encodeURIComponent(websiteId)}/assets/${encodeURIComponent(assetId)}/download`;return name?`${base}?name=${encodeURIComponent(name)}`:base}function FileAttachmentBlock({assetId,name,size,mimeType,apiBase,websiteId}){const facts=useMediaFacts({assetId});const shownName=displayFileName(name,facts);return jsx8("div",{className:"my-6 not-prose",children:jsx8(FileDownloadCard,{name:shownName,size:facts?.size??size,mimeType:facts?.mime??mimeType,href:fileAttachmentDownloadUrl(apiBase,websiteId,assetId,shownName)})})}import{jsx as jsx9}from"react/jsx-runtime";function PdfBlock({src,title,pageCount,thumbnailUrl,assetId,display,apiBase,websiteId}){const facts=useMediaFacts({url:src,assetId});const{protection}=useMediaProtection();const fileName=title||src.split("/").pop()?.replace(/\.[^.]+$/,"")||void 0;const downloadUrl=assetId&&fileAttachmentDownloadUrl(apiBase,websiteId,assetId,fileName)||src;return jsx9("div",{className:"my-6 not-prose",children:jsx9(PDFViewer,{src,thumbnailUrl:facts?.cover??thumbnailUrl,thumbnailAlt:fileName,fileName,pageCount:facts?.pages??pageCount,allowDownload:protection.allowDownload,downloadUrl,variant:display==="card"?"card":"preview"})})}import{useState as useState2}from"react";import{jsx as jsx10}from"react/jsx-runtime";function InlineRichText({content:content3}){return jsx10(RichTextView,{content:content3,profile:"inline"})}import{jsx as jsx11,jsxs as jsxs6}from"react/jsx-runtime";function ToggleBlock({title,children,defaultOpen=true}){const[isOpen,setIsOpen]=useState2(defaultOpen);return jsxs6("div",{className:"toggle-block my-4",children:[jsxs6("button",{type:"button",onClick:()=>setIsOpen(!isOpen),className:"flex items-start gap-1 w-full text-left",children:[jsx11("span",{className:"shrink-0 mt-1 p-0.5 rounded transition-colors "+TONE_BG_TINT_STRONG_HOVER,children:jsx11(ChevronDown,{className:`w-4 h-4 ${TONE_TEXT_SUBTLE} transition-transform ${isOpen?"":"-rotate-90"}`})}),jsx11("span",{className:"flex-1 min-w-0 "+TONE_TEXT_BODY,children:jsx11(InlineRichText,{content:title})})]}),isOpen&&jsx11("div",{className:"pl-6 [&>*:last-child]:mb-0",children})]})}import{jsx as jsx12}from"react/jsx-runtime";function GalleryBlock({config}){if(config.items.length===0)return null;return jsx12("div",{className:`my-5 grid items-start gap-3 ${GALLERY_COLS_CLASS[config.cols]}`,"data-gallery-cols":config.cols,children:config.items.map((item,i)=>jsx12(SiteImage,{src:item.src,responsive:true,sizes:`(min-width: 1024px) ${Math.round(60/config.cols)}vw, (min-width: 640px) ${Math.round(100/config.cols)}vw, 100vw`,alt:item.alt,className:"block h-auto w-full rounded-[var(--site-radius-media)]"},`${item.src}-${i}`))})}import{jsx as jsx13,jsxs as jsxs7}from"react/jsx-runtime";var TONE_COLOR={info:"var(--brand-color, #2563eb)",tip:"#16a34a",warning:"#d97706",danger:"#dc2626"};function CalloutBlock({tone,title,children}){const style={borderRadius:"var(--site-radius-card, 12px)",borderLeft:`4px solid ${TONE_COLOR[tone]}`,background:"var(--site-card-bg, color-mix(in srgb, currentColor 6%, transparent))"};return jsxs7("aside",{className:"callout-block site-card-scope my-6 px-5 py-4 [&>*:last-child]:mb-0","data-callout-tone":tone,style,children:[title&&jsx13("p",{className:"mb-1.5 font-semibold",style:{color:TONE_COLOR[tone]},children:title}),children]})}import{Fragment as Fragment5,jsx as jsx14,jsxs as jsxs8}from"react/jsx-runtime";function coalesceFaqSegments(segments){const out=[];for(const segment of segments){const prev=out[out.length-1];if(segment.type==="faq"&&prev&&prev.type==="faq"){out[out.length-1]={type:"faq",config:{title:prev.config.title,items:[...prev.config.items,...segment.config.items]}}}else{out.push(segment)}}return out}var HIGHLIGHT_DARK_VARS=`
2
2
  --highlight-yellow: rgb(113, 63, 18);
3
3
  --highlight-green: rgb(20, 83, 45);
4
4
  --highlight-blue: rgb(30, 58, 138);
@@ -96,4 +96,4 @@ html:has(.site-renderer-root[data-color-scheme="light"]) .article-body {
96
96
  content: "\\00a0";
97
97
  }
98
98
  `;function ArticleMarkdown({content:content3,ctaPresets,apiBase,websiteId}){const segments=coalesceFaqSegments(parseArticleSegments(content3));const assignId=createHeadingIdAssigner();return jsxs8(Fragment5,{children:[jsx14("style",{dangerouslySetInnerHTML:{__html:`${ARTICLE_HIGHLIGHT_CSS}${ARTICLE_TABLE_CSS}`}}),jsx14("div",{className:"article-body max-w-none [&>*:first-child]:mt-0 [&>*:first-child>*:first-child]:mt-0",children:segments.map((segment,i)=>{if(segment.type==="cta"){return jsx14(UserCtaShortcodeBlock,{config:segment.config,presets:ctaPresets},i)}if(segment.type==="faq"){return jsx14(UserFaqShortcodeBlock,{config:segment.config},i)}if(segment.type==="embed"){return jsx14(EmbedBlock,{url:segment.config.url,embedType:segment.config.embedType},i)}if(segment.type==="audio"){return jsx14(AudioBlock,{src:segment.config.src,title:segment.config.title},i)}if(segment.type==="pdf"){return jsx14(PdfBlock,{src:segment.config.src,title:segment.config.title,pageCount:segment.config.pageCount,thumbnailUrl:segment.config.thumbnailUrl,assetId:segment.config.assetId,display:segment.config.display,apiBase,websiteId},i)}if(segment.type==="file"){return jsx14(FileAttachmentBlock,{assetId:segment.config.assetId,name:segment.config.name,size:segment.config.size,mimeType:segment.config.mimeType,apiBase,websiteId},i)}if(segment.type==="gallery"){return jsx14(GalleryBlock,{config:segment.config},i)}if(segment.type==="toggle"){return jsx14(ToggleBlock,{title:segment.config.title,children:renderArticleRichText(segment.config.content,assignId)},i)}if(segment.type==="callout"){return jsx14(CalloutBlock,{tone:segment.config.tone,title:segment.config.title,children:renderArticleRichText(segment.config.content,assignId)},i)}return jsx14(Fragment4,{children:renderArticleRichText(segment.value,assignId)},i)})})]})}function computeSequenceLocks(input){const locks=new Map;let gate=null;for(const leaf of input.leaves){const counts=leaf.countsTowardCompletion!==false;if(gate&&counts&&!leaf.isPreview)locks.set(leaf.id,gate);if(gate||!counts||input.completedUnitIds.has(leaf.id))continue;if(input.requireSequential||leaf.isPrerequisite)gate=leaf.id}return locks}function groupUnits(units){const byParent=new Map;for(const u of units){const list3=byParent.get(u.parentId)??[];list3.push(u);byParent.set(u.parentId,list3)}const sort=list3=>[...list3].sort((a,b)=>a.order-b.order);const top=sort(byParent.get(null)??[]);const groups=[];const loose=[];for(const t of top){const children=byParent.get(t.id);if(children&&children.length>0)groups.push({chapter:t,units:sort(children)});else if(t.kind!=="chapter")loose.push(t);else groups.push({chapter:t,units:[]})}if(loose.length>0)groups.unshift({chapter:null,units:loose});return groups}function orderedLeafUnits(units){return groupUnits(units).flatMap(g=>g.units)}function pickResumeUnit(units){const leaves=orderedLeafUnits(units);return leaves.find(u=>u.access.granted&&u.progress!=="completed")??leaves.find(u=>u.access.granted)??null}import{Fragment as Fragment6,jsx as jsx15,jsxs as jsxs9}from"react/jsx-runtime";var AUTOPLAY_STORAGE_KEY="kanorio:autoplay-next";var TRANSCRIPT_STORAGE_KEY="kanorio:transcript-open";function captionTracksOf(renditions){const tracks=(renditions??[]).flatMap(r=>r.kind==="captions"&&r.locale?[{locale:r.locale,url:r.url,source:r.source??"ai",edited:r.edited??false}]:[]);return tracks.length>0?tracks:void 0}function fill2(template,vars){return template.replace(/\{(\w+)\}/g,(_,k)=>String(vars[k]??""))}function formatDateTime(iso,locale,timeZone){try{return new Intl.DateTimeFormat(locale??void 0,{dateStyle:"medium",timeStyle:"short",timeZone:timeZone??void 0}).format(new Date(iso))}catch{return iso}}function formatDate(iso,locale,timeZone){try{return new Intl.DateTimeFormat(locale??void 0,{dateStyle:"medium",timeZone:timeZone??void 0}).format(new Date(iso))}catch{return iso}}function stripLeadingTitle(markdown,title){const match=/^\s*#\s+(.+?)\s*(?:\n|$)/.exec(markdown);if(match&&title&&match[1].trim()===title.trim())return markdown.slice(match[0].length);return markdown}var SURFACE2="bg-[var(--site-surface,#ffffff)]";var BORDER2="border-[var(--site-border,rgba(0,0,0,0.1))]";var MUTED2="text-[var(--site-fg-muted,#71717a)]";var FG2="text-[var(--site-fg,#18181b)]";var SECONDARY_BUTTON=`inline-flex min-h-11 items-center justify-center gap-1.5 rounded-[var(--site-radius-button,0.5rem)] border border-[var(--site-border,rgba(0,0,0,0.15))] px-3.5 text-sm ${FG2} disabled:opacity-40`;var PRIMARY_BUTTON="inline-flex min-h-11 items-center justify-center gap-1.5 rounded-[var(--site-radius-button,0.5rem)] px-4 text-sm font-medium text-[var(--brand-foreground,#ffffff)] disabled:opacity-40";var ICON_BUTTON=`inline-flex h-10 w-10 shrink-0 items-center justify-center rounded-[var(--site-radius-button,0.5rem)] ${MUTED2} hover:bg-black/5 dark:hover:bg-white/10`;function embedSrc(embed){const id=encodeURIComponent(embed.id);switch(embed.provider){case"youtube":return`https://www.youtube-nocookie.com/embed/${id}`;case"vimeo":return`https://player.vimeo.com/video/${id}`;case"loom":return`https://www.loom.com/embed/${id}`;default:return null}}var REPORT_INTERVAL_MS=2e4;var RUN_BREAK_SECONDS=2.5;var PlaybackTracker=class{sessionId;runStart=null;lastTime=0;rate=1;pending=[];seekTargets=[];stallStartedAt=null;stallCount=0;stallMs=0;startupMs=null;startupSent=false;playRequestedAt=null;rendition=null;renditionSent=null;duration=0;constructor(){this.sessionId=typeof crypto!=="undefined"&&"randomUUID"in crypto?crypto.randomUUID():`s_${Date.now().toString(36)}${Math.random().toString(36).slice(2,10)}`}get position(){return this.lastTime}closeRun(){if(this.runStart!==null&&this.lastTime-this.runStart>=.2)this.pending.push([this.runStart,this.lastTime,this.rate]);this.runStart=null}timeUpdate(time,duration){if(duration>0)this.duration=duration;if(this.runStart===null){this.runStart=time}else if(Math.abs(time-this.lastTime)>RUN_BREAK_SECONDS){this.closeRun();this.runStart=time}this.lastTime=time}event(e){switch(e.type){case"play":if(this.playRequestedAt===null&&this.startupMs===null)this.playRequestedAt=Date.now();break;case"started":if(this.playRequestedAt!==null&&this.startupMs===null)this.startupMs=Date.now()-this.playRequestedAt;break;case"pause":case"ended":this.closeRun();this.lastTime=e.time;break;case"seeked":this.closeRun();this.seekTargets.push(Math.floor(e.time));this.lastTime=e.time;this.runStart=null;break;case"ratechange":this.closeRun();this.rate=e.rate>0?e.rate:1;break;case"waiting":if(this.stallStartedAt===null)this.stallStartedAt=Date.now();break;case"playing":if(this.stallStartedAt!==null){const ms=Date.now()-this.stallStartedAt;this.stallStartedAt=null;if(this.startupMs!==null||this.playRequestedAt===null){this.stallCount+=1;this.stallMs+=ms}}break;case"quality":if(e.height)this.rendition=this.rendition===null?e.height:Math.min(this.rendition,e.height);break}}flush(final){if(final)this.closeRun();else if(this.runStart!==null&&this.lastTime-this.runStart>=.2){this.pending.push([this.runStart,this.lastTime,this.rate]);this.runStart=this.lastTime}const hasStats=this.stallCount>0||this.startupMs!==null&&!this.startupSent||this.rendition!==null&&this.rendition!==this.renditionSent;if(this.pending.length===0&&this.seekTargets.length===0&&!hasStats)return null;const item={sessionId:this.sessionId,segments:this.pending,positionSeconds:this.lastTime,...this.duration>0?{durationSeconds:this.duration}:{},...this.seekTargets.length?{seekTargets:this.seekTargets}:{},...this.stallCount>0?{stallCount:this.stallCount,stallMs:this.stallMs}:{},...this.startupMs!==null&&!this.startupSent?{startupMs:this.startupMs}:{},...this.rendition!==null&&this.rendition!==this.renditionSent?{rendition:this.rendition}:{},device:classifyDevice({width:typeof window!=="undefined"?window.innerWidth:1280,coarsePointer:typeof window!=="undefined"&&typeof window.matchMedia==="function"?window.matchMedia("(pointer: coarse)").matches:false})};this.pending=[];this.seekTargets=[];this.stallCount=0;this.stallMs=0;if(this.startupMs!==null)this.startupSent=true;if(this.rendition!==null)this.renditionSent=this.rendition;return item}};function DeliverablePlayer({tree,client,labels,locale,timeZone,initialUnitId,onUnitChange,layout="embedded",backHref,backLabel,className,captionLocale,onCaptionChange}){const page=layout==="page";const HeaderTag=page?"header":"div";const MainTag=page?"main":"div";const AsideTag=page?"aside":"div";const NavTag=page?"nav":"div";const isDownloadPack=tree.structure==="DOWNLOAD";const groups=useMemo2(()=>groupUnits(tree.units),[tree.units]);const leaves=useMemo2(()=>groups.flatMap(g=>g.units),[groups]);const[progressByUnit,setProgressByUnit]=useState3(()=>Object.fromEntries(tree.units.map(u=>[u.id,u.progress])));const[deliverableProgress,setDeliverableProgress]=useState3(tree.progress);const[currentId,setCurrentId]=useState3(()=>{const requested=initialUnitId?tree.units.find(u=>u.id===initialUnitId):null;return(requested??pickResumeUnit(tree.units))?.id??null});const current=leaves.find(u=>u.id===currentId)??null;const currentIndex=current?leaves.findIndex(u=>u.id===current.id):-1;const[resumeId]=useState3(()=>tree.units.some(u=>u.progress!=="not_started")?pickResumeUnit(tree.units)?.id??null:null);const[sidebarOpen,setSidebarOpen]=useState3(true);const[drawerOpen,setDrawerOpen]=useState3(false);const[collapsedChapters,setCollapsedChapters]=useState3(()=>new Set);const[settingsOpen,setSettingsOpen]=useState3(false);const[retryTick,setRetryTick]=useState3(0);const[attachmentBusy,setAttachmentBusy]=useState3(null);const[attachmentFailed,setAttachmentFailed]=useState3(false);const completedIds=useMemo2(()=>new Set(Object.entries(progressByUnit).filter(([,status])=>status==="completed").map(([id])=>id)),[progressByUnit]);const locks=useMemo2(()=>computeSequenceLocks({leaves:leaves.map(u=>({id:u.id,isPreview:u.isPreview,countsTowardCompletion:u.countsTowardCompletion,isPrerequisite:u.isPrerequisite})),completedUnitIds:completedIds,requireSequential:Boolean(tree.settings?.requireSequential)}),[leaves,completedIds,tree.settings?.requireSequential]);const isGranted=useCallback(u=>u.access.granted||u.access.reason==="prerequisite"&&!locks.has(u.id),[locks]);const lockedByTitle=u=>leaves.find(x=>x.id===(locks.get(u.id)??u.access.lockedByUnitId))?.title||"";const[opened,setOpened]=useState3(null);const[openError,setOpenError]=useState3(null);const[loading,setLoading]=useState3(false);const[transcriptOpen,setTranscriptOpen]=useState3(false);useEffect2(()=>{try{setTranscriptOpen(window.localStorage.getItem(TRANSCRIPT_STORAGE_KEY)==="1")}catch{}},[]);const toggleTranscript=next2=>{setTranscriptOpen(next2);try{window.localStorage.setItem(TRANSCRIPT_STORAGE_KEY,next2?"1":"0")}catch{}};const[transcriptLocale,setTranscriptLocale]=useState3(null);const[transcript,setTranscript]=useState3({unitId:"",status:"loading",data:null});const[transcriptTick,setTranscriptTick]=useState3(0);const[activeSegment,setActiveSegment]=useState3(-1);const[seekTo,setSeekTo]=useState3(null);const transcriptSegmentsRef=useRef2([]);transcriptSegmentsRef.current=transcript.status==="ready"&&transcript.data&&transcript.unitId===currentId?transcript.data.segments:[];const transcriptAvailable=Boolean(current&&(current.kind==="video"||current.kind==="audio")&&opened&&client.getTranscript);useEffect2(()=>{if(!transcriptAvailable||!current||!client.getTranscript)return;let cancelled=false;const unitId=current.id;setTranscript({unitId,status:"loading",data:null});setActiveSegment(-1);const wanted=transcriptLocale??captionLocale??locale??null;client.getTranscript(unitId,wanted).then(res=>{if(cancelled)return;if(res.ok)setTranscript({unitId,status:"ready",data:res});else setTranscript({unitId,status:res.code==="NO_TRANSCRIPT"||res.code==="NO_FILE"?"unavailable":"error",data:null})}).catch(()=>{if(!cancelled)setTranscript({unitId,status:"error",data:null})});return()=>{cancelled=true}},[transcriptAvailable,current?.id,transcriptLocale,transcriptTick]);const transcriptForCurrent=current&&transcript.unitId===current.id?transcript:null;const showTranscriptPanel=transcriptAvailable&&transcriptForCurrent!==null&&(transcriptForCurrent.status==="ready"||transcriptForCurrent.status==="error");useEffect2(()=>setTranscriptLocale(null),[currentId]);const[quizAnswers,setQuizAnswers]=useState3({});const[quizResult,setQuizResult]=useState3(null);const[quizBusy,setQuizBusy]=useState3(false);useEffect2(()=>{setQuizAnswers({});setQuizResult(null)},[currentId]);const[autoplayNext,setAutoplayNext]=useState3(false);useEffect2(()=>{try{setAutoplayNext(window.localStorage.getItem(AUTOPLAY_STORAGE_KEY)==="1")}catch{}},[]);const toggleAutoplay=next2=>{setAutoplayNext(next2);try{window.localStorage.setItem(AUTOPLAY_STORAGE_KEY,next2?"1":"0")}catch{}};const[certificate,setCertificate]=useState3(tree.certificate??null);const[certificateBusy,setCertificateBusy]=useState3(false);const downloadCertificate=async()=>{setCertificateBusy(true);try{const res=await client.getCertificate(tree.id);if(res.ok){setCertificate(prev=>({enabled:true,serial:res.certificate.serial,issuedAt:res.certificate.issuedAt,...prev?{}:{}}));window.open(res.certificate.url,"_blank","noopener,noreferrer")}}finally{setCertificateBusy(false)}};const lastReportAt=useRef2(0);const trackerRef=useRef2(null);const trackerUnitRef=useRef2(null);const trackerFor=useCallback(unitId=>{if(trackerUnitRef.current!==unitId||!trackerRef.current){trackerRef.current=new PlaybackTracker;trackerUnitRef.current=unitId}return trackerRef.current},[]);const select=useCallback(id=>{setCurrentId(id);setDrawerOpen(false);onUnitChange?.(id)},[onUnitChange]);useEffect2(()=>{const chapterId=current?.parentId;if(!chapterId)return;setCollapsedChapters(prev=>{if(!prev.has(chapterId))return prev;const next2=new Set(prev);next2.delete(chapterId);return next2})},[current?.parentId,currentId]);const wasCompleted=useRef2(Boolean(tree.progress?.completed));const[justCompleted,setJustCompleted]=useState3(false);useEffect2(()=>{const completed=Boolean(deliverableProgress?.completed);if(completed&&!wasCompleted.current)setJustCompleted(true);wasCompleted.current=completed},[deliverableProgress?.completed]);useEffect2(()=>{setOpened(null);setOpenError(null);setAttachmentFailed(false);setLoading(false);if(!current||!isGranted(current))return;if(!current.hasFile)return;let cancelled=false;setLoading(true);client.openUnit(current.id,"read").then(res=>{if(cancelled)return;if(res.ok)setOpened(res);else setOpenError(res.code)}).catch(()=>{if(!cancelled)setOpenError("NETWORK")}).finally(()=>{if(!cancelled)setLoading(false)});return()=>{cancelled=true}},[current,client,isGranted,retryTick]);const report=useCallback(async(unitId,input,options)=>{if(isDownloadPack)return;try{const res=await client.reportProgress({unitId,reports:[input],...options?.lite?{lite:true}:{}});if(res.ok){setProgressByUnit(prev=>({...prev,[unitId]:res.unit}));if(res.deliverable)setDeliverableProgress({percent:res.deliverable.percent,completed:res.deliverable.completed,completedAt:res.deliverable.completedAt??null})}}catch{}},[client,isDownloadPack]);const flushTracker=useCallback((unitId,mode)=>{const tracker=trackerRef.current;if(!tracker||trackerUnitRef.current!==unitId)return;const item=tracker.flush(mode!=="heartbeat");if(!item)return;lastReportAt.current=Date.now();void report(unitId,item,{lite:mode==="heartbeat"})},[report]);const handleTimeUpdate=useCallback((currentTime,duration)=>{if(!current)return;trackerFor(current.id).timeUpdate(currentTime,duration);const segments=transcriptSegmentsRef.current;if(segments.length>0){const index2=activeSegmentIndex(segments,currentTime);setActiveSegment(prev=>prev===index2?prev:index2)}const now=Date.now();if(now-lastReportAt.current<REPORT_INTERVAL_MS)return;flushTracker(current.id,"heartbeat")},[current,trackerFor,flushTracker]);const handlePlaybackEvent=useCallback(event=>{if(!current)return;trackerFor(current.id).event(event);if(event.type==="pause"||event.type==="seeked")flushTracker(current.id,"event")},[current,trackerFor,flushTracker]);const handleComplete=useCallback(()=>{if(!current)return;const tracker=trackerFor(current.id);const item=tracker.flush(true)??{sessionId:tracker.sessionId,positionSeconds:tracker.position,...tracker.duration>0?{durationSeconds:tracker.duration}:{}};lastReportAt.current=Date.now();void report(current.id,{...item,completed:true});if(autoplayNext){const next2=leaves[currentIndex+1];if(next2&&isGranted(next2))window.setTimeout(()=>select(next2.id),800)}},[current,trackerFor,report,autoplayNext,leaves,currentIndex,isGranted,select]);const submitQuiz=async()=>{if(!current)return;setQuizBusy(true);try{const res=await client.submitQuiz({unitId:current.id,answers:quizAnswers});if(res.ok){setQuizResult(res);setProgressByUnit(prev=>({...prev,[current.id]:res.unit}));setDeliverableProgress({percent:res.deliverable.percent,completed:res.deliverable.completed,completedAt:res.deliverable.completedAt??null})}}finally{setQuizBusy(false)}};const autoTracked=!!current&&(current.kind==="video"||current.kind==="audio"||Boolean(opened?.mimeType&&(opened.mimeType.startsWith("video/")||opened.mimeType.startsWith("audio/"))));const currentStatus=current?progressByUnit[current.id]??current.progress:"not_started";const canMarkComplete=!!current&&!isDownloadPack&&isGranted(current)&&!autoTracked&&currentStatus!=="completed";useEffect2(()=>{if(!current)return;const unitId=current.id;const onHide=()=>flushTracker(unitId,"final");const onVisibility=()=>{if(document.visibilityState==="hidden")flushTracker(unitId,"event")};window.addEventListener("pagehide",onHide);document.addEventListener("visibilitychange",onVisibility);return()=>{window.removeEventListener("pagehide",onHide);document.removeEventListener("visibilitychange",onVisibility);flushTracker(unitId,"final")}},[current,flushTracker]);useEffect2(()=>{if(!current||isDownloadPack||!isGranted(current))return;if(current.kind==="video"||current.kind==="audio")return;if((progressByUnit[current.id]??current.progress)!=="not_started")return;void report(current.id,{opened:true})},[current?.id,isDownloadPack]);const resumeAt=unit=>{if(isDownloadPack)return void 0;const status=progressByUnit[unit.id]??unit.progress;if(status==="completed")return void 0;const at=typeof unit.lastPosition==="number"?unit.lastPosition:unit.positionSeconds;return at>5?at:void 0};const goto=delta=>{const next2=leaves[currentIndex+delta];if(next2&&isGranted(next2))select(next2.id)};const downloadUnit=async unitId=>{const res=await client.openUnit(unitId,"download");if(res.ok)window.open(res.url,"_blank","noopener,noreferrer")};const handleDownload=()=>{if(current)void downloadUnit(current.id)};const downloadAttachment=async(unitId,attachmentId)=>{if(attachmentBusy)return;setAttachmentBusy(attachmentId);setAttachmentFailed(false);const res=await client.openUnit(unitId,"download",{attachmentId}).catch(()=>({ok:false,code:"NETWORK"}));setAttachmentBusy(null);if(res.ok)window.open(res.url,"_blank","noopener,noreferrer");else setAttachmentFailed(true)};const next=currentIndex>=0?leaves[currentIndex+1]??null:null;const previous3=currentIndex>0?leaves[currentIndex-1]:null;const manualComplete=canMarkComplete&&current?.kind!=="quiz";const nextOpensAfterComplete=()=>{if(!next||!current)return false;if(next.access.granted)return true;if(next.access.reason!=="prerequisite")return false;const after=computeSequenceLocks({leaves:leaves.map(u=>({id:u.id,isPreview:u.isPreview,countsTowardCompletion:u.countsTowardCompletion,isPrerequisite:u.isPrerequisite})),completedUnitIds:new Set([...completedIds,current.id]),requireSequential:Boolean(tree.settings?.requireSequential)});return!after.has(next.id)};const[advancing,setAdvancing]=useState3(false);const completeAndContinue=async()=>{if(!current||advancing)return;setAdvancing(true);try{const opens=nextOpensAfterComplete();await report(current.id,{completed:true});if(next&&opens)select(next.id)}finally{setAdvancing(false)}};const nextReady=Boolean(next&&isGranted(next));const blockedByCurrent=Boolean(next&&!nextReady&&!manualComplete&&currentStatus!=="completed"&&next.access.reason==="prerequisite");const primaryAction=manualComplete?{label:next?labels.completeAndContinue:labels.markComplete,onClick:()=>void completeAndContinue(),disabled:advancing,icon:true}:{label:labels.nextUnit,onClick:()=>goto(1),disabled:!nextReady,icon:false};const showPrimary=manualComplete||Boolean(next);const unitMeta=u=>u.duration?fill2(labels.minutes,{count:Math.max(1,Math.round(u.duration/60))}):u.pageCount?fill2(labels.pages,{count:u.pageCount}):null;const toggleChapter=chapterId=>setCollapsedChapters(prev=>{const nextSet=new Set(prev);if(nextSet.has(chapterId))nextSet.delete(chapterId);else nextSet.add(chapterId);return nextSet});const outline=jsxs9(Fragment6,{children:[jsxs9("div",{className:cn("shrink-0 border-b px-4 py-2",BORDER2),children:[jsxs9("div",{className:"flex min-h-10 items-center justify-between gap-2",children:[jsxs9("div",{className:"min-w-0",children:[tree.authors&&tree.authors.length>0&&jsx15(AuthorList,{authors:tree.authors,className:"mb-1.5"}),jsxs9("p",{className:cn("text-xs",MUTED2),children:[fill2(labels.unitsCount,{count:leaves.length}),deliverableProgress&&!isDownloadPack?` \xB7 ${fill2(labels.progress,{percent:deliverableProgress.percent})}`:""]})]}),!isDownloadPack&&leaves.length>1&&jsx15("button",{type:"button",onClick:()=>setSettingsOpen(open=>!open),"aria-expanded":settingsOpen,"aria-label":labels.settings,title:labels.settings,className:cn(ICON_BUTTON,"-mr-2"),children:jsx15(Settings2,{className:"h-4 w-4","aria-hidden":"true"})})]}),settingsOpen&&jsxs9("button",{type:"button",role:"switch","aria-checked":autoplayNext,onClick:()=>toggleAutoplay(!autoplayNext),className:cn("flex min-h-10 w-full items-center justify-between gap-3 text-left text-sm",FG2),children:[labels.autoplayNext,jsx15("span",{"aria-hidden":true,className:cn("relative inline-flex h-5 w-9 shrink-0 rounded-full transition",autoplayNext?"bg-[var(--brand-color,#18181b)]":"bg-black/20 dark:bg-white/25"),children:jsx15("span",{className:cn("absolute top-0.5 h-4 w-4 rounded-full bg-white transition",autoplayNext?"left-[18px]":"left-0.5")})})]}),certificate?.enabled&&deliverableProgress?.completed&&jsxs9("button",{type:"button",onClick:()=>void downloadCertificate(),disabled:certificateBusy,className:cn(SECONDARY_BUTTON,"my-2 w-full"),children:[jsx15(Award,{className:"h-4 w-4","aria-hidden":"true"})," ",labels.certificateDownload]})]}),jsxs9(NavTag,{role:page?void 0:"navigation","aria-label":labels.outline,className:"min-h-0 flex-1 overflow-y-auto p-2",children:[leaves.length===0&&jsx15("p",{className:cn("p-3 text-sm",MUTED2),children:labels.noUnits}),groups.map((g,gi)=>{const chapterId=g.chapter?.id??null;const collapsed=chapterId?collapsedChapters.has(chapterId):false;const counted=g.units.filter(u=>u.countsTowardCompletion!==false);const done=counted.filter(u=>(progressByUnit[u.id]??u.progress)==="completed").length;return jsxs9("div",{className:"mb-1",children:[g.chapter&&jsxs9("button",{type:"button",onClick:()=>toggleChapter(g.chapter.id),"aria-expanded":!collapsed,className:cn("flex w-full items-start gap-2 rounded-lg px-2 py-2 text-left text-sm font-semibold hover:bg-black/[0.03] dark:hover:bg-white/[0.06]",FG2),children:[jsx15(ChevronDown,{className:cn("mt-0.5 h-4 w-4 shrink-0 transition-transform",MUTED2,collapsed&&"-rotate-90"),"aria-hidden":"true"}),jsx15("span",{className:"min-w-0 flex-1",children:g.chapter.title}),!isDownloadPack&&counted.length>0&&jsxs9("span",{className:cn("shrink-0 text-xs font-normal tabular-nums",MUTED2),children:[done,"/",counted.length]})]}),!collapsed&&jsx15("ul",{className:"space-y-0.5",children:g.units.map(u=>{const status=progressByUnit[u.id]??u.progress;const active=u.id===currentId;const locked=!isGranted(u);const rowDownload=isDownloadPack&&!locked&&u.allowDownload&&u.hasFile;const meta=unitMeta(u);const lockText=locked&&u.access.reason==="not_released"&&u.access.availableAt?fill2(labels.unlocksAt,{date:formatDateTime(u.access.availableAt,locale,timeZone)}):locked&&u.access.reason==="prerequisite"?fill2(labels.lockedBy,{title:lockedByTitle(u)}):locked?labels.locked:null;const tags=[u.countsTowardCompletion===false&&!isDownloadPack?labels.optional:null,u.isPreview&&!locked?labels.preview:null,meta].filter(Boolean);return jsxs9("li",{className:cn(rowDownload&&"flex items-start gap-1"),children:[jsxs9("button",{type:"button",disabled:locked,"aria-current":active?"true":void 0,onClick:()=>select(u.id),className:cn("flex w-full items-start gap-2.5 rounded-lg px-2 py-2 text-left text-sm transition",active?"bg-black/5 font-medium dark:bg-white/10":"hover:bg-black/[0.03] dark:hover:bg-white/[0.06]",locked&&"cursor-not-allowed opacity-60",rowDownload&&"min-w-0 flex-1"),children:[jsx15("span",{className:cn("mt-0.5 shrink-0",MUTED2),children:locked?jsx15(Lock,{className:"h-4 w-4"}):isDownloadPack?jsx15(FileText,{className:"h-4 w-4"}):status==="completed"?jsx15(CircleCheck,{className:"h-4 w-4 text-emerald-600"}):status==="in-progress"?jsx15(CirclePlay,{className:"h-4 w-4"}):jsx15(Circle,{className:"h-4 w-4"})}),jsxs9("span",{className:"min-w-0 flex-1",children:[jsx15("span",{className:cn("line-clamp-2",FG2),children:u.title||u.kind}),tags.length>0&&jsx15("span",{className:cn("block text-xs",MUTED2),children:tags.join(" \xB7 ")}),lockText&&jsx15("span",{className:cn("block text-xs",MUTED2),children:lockText}),u.id===resumeId&&!locked&&status!=="completed"&&jsx15("span",{className:"block text-xs font-normal text-[var(--site-accent-text,var(--brand-color,#18181b))]",children:labels.lastViewed})]})]}),rowDownload&&jsx15("button",{type:"button",onClick:()=>void downloadUnit(u.id),"aria-label":`${labels.download}: ${u.title||u.kind}`,title:labels.download,className:cn(ICON_BUTTON,"mt-0.5 h-9 w-9"),children:jsx15(Download,{className:"h-4 w-4"})})]},u.id)})})]},chapterId??`loose-${gi}`)})]})]});const mediaFirst=!!current&&(current.kind==="video"||current.kind==="audio"||Boolean(current.embed&&embedSrc(current.embed)));const heading2=current?jsxs9("div",{children:[jsx15("h2",{className:cn("text-lg font-bold sm:text-xl",FG2),children:current.title||current.kind}),current.description&&jsx15("p",{className:cn("mt-1 text-sm",MUTED2),children:current.description})]}):null;const unitBody=!current?null:current.embed&&embedSrc(current.embed)?jsx15("div",{className:"aspect-video w-full overflow-hidden rounded-[var(--site-radius-media,0.75rem)] bg-black",children:jsx15("iframe",{title:current.title??current.kind,src:embedSrc(current.embed),className:"h-full w-full",allow:"accelerometer; autoplay; encrypted-media; picture-in-picture",allowFullScreen:true})}):current.kind==="quiz"?jsx15(QuizView,{body:current.body,summary:current.quiz??null,answers:quizAnswers,result:quizResult,busy:quizBusy,labels,onAnswer:(questionId,optionIds)=>setQuizAnswers(prev=>({...prev,[questionId]:optionIds})),onSubmit:()=>void submitQuiz(),onRetry:()=>{setQuizAnswers({});setQuizResult(null)}}):current.kind==="text"?jsx15(MediaFactsProvider,{facts:current.body?.mediaFacts,children:jsx15("div",{className:"max-w-none",children:jsx15(ArticleMarkdown,{content:stripLeadingTitle(typeof current.body?.markdown==="string"?current.body.markdown:"",current.title)})})}):loading?jsx15("div",{className:"aspect-video w-full animate-pulse rounded-[var(--site-radius-media,0.75rem)] bg-black/5 dark:bg-white/10"}):openError&&openError!=="NO_FILE"?jsxs9("div",{role:"alert",className:cn("flex flex-col items-center gap-3 rounded-[var(--site-radius-media,0.75rem)] border border-dashed px-4 py-10 text-center text-sm",BORDER2,MUTED2),children:[jsx15("p",{children:labels.loadError}),jsxs9("button",{type:"button",onClick:()=>setRetryTick(tick=>tick+1),className:SECONDARY_BUTTON,children:[jsx15(RotateCw,{className:"h-4 w-4","aria-hidden":"true"})," ",labels.retry]})]}):opened?jsx15(MediaPlayer,{src:opened.url,hlsSrc:opened.renditions?.find(r=>r.kind==="hls")?.url,thumbnails:opened.thumbnails??opened.renditions?.find(r=>r.kind==="thumbnails")?.url,streamingPartial:opened.streaming==="partial",captions:captionTracksOf(opened.renditions),captionLocale,onCaptionChange,thumbnailUrl:opened.poster??void 0,mimeType:opened.mimeType??"application/octet-stream",title:opened.title??current.title??void 0,fileName:opened.fileName,pageCount:current.pageCount??void 0,storageKey:`unit:${current.id}`,startTime:resumeAt(current),seekTo,chapters:opened.renditions?.find(r=>r.kind==="chapters")?.url,allowDownload:opened.allowDownload,downloadUrl:opened.allowDownload?opened.url:void 0,onTimeUpdate:handleTimeUpdate,onComplete:handleComplete,onPlaybackEvent:handlePlaybackEvent},current.id):jsx15("div",{className:cn("rounded-[var(--site-radius-media,0.75rem)] border border-dashed px-4 py-10 text-center text-sm",BORDER2,MUTED2),children:labels.unitEmpty});const primaryButton=showPrimary?jsxs9("button",{type:"button",onClick:primaryAction.onClick,disabled:primaryAction.disabled,className:cn(PRIMARY_BUTTON,"min-w-0"),style:{backgroundColor:"var(--brand-color,#18181b)"},children:[primaryAction.icon&&jsx15(CircleCheck,{className:"h-4 w-4 shrink-0","aria-hidden":"true"}),jsx15("span",{className:"truncate",children:primaryAction.label})]}):null;return jsxs9("div",{className:cn("flex flex-col",page?"h-dvh bg-[var(--site-surface-muted,#f4f4f5)]":cn("overflow-hidden rounded-[var(--site-radius-card,1rem)] border",BORDER2,SURFACE2),className),children:[jsxs9(HeaderTag,{className:cn("flex h-14 shrink-0 items-center gap-1 border-b px-2 sm:px-3",BORDER2,SURFACE2),children:[backHref&&jsx15("a",{href:backHref,"aria-label":backLabel,title:backLabel,className:ICON_BUTTON,children:jsx15(ArrowLeft,{className:"h-5 w-5","aria-hidden":"true"})}),jsx15("button",{type:"button",onClick:()=>setSidebarOpen(open=>!open),"aria-expanded":sidebarOpen,"aria-label":sidebarOpen?labels.hideOutline:labels.showOutline,title:sidebarOpen?labels.hideOutline:labels.showOutline,className:cn(ICON_BUTTON,"hidden lg:inline-flex"),children:jsx15(PanelLeft,{className:"h-5 w-5","aria-hidden":"true"})}),jsx15("p",{className:cn("min-w-0 flex-1 truncate px-1 text-sm font-semibold sm:text-base",FG2),children:tree.title}),deliverableProgress&&!isDownloadPack&&jsxs9("div",{className:"flex shrink-0 items-center gap-2 pr-1","aria-label":fill2(labels.progress,{percent:deliverableProgress.percent}),children:[jsx15("div",{className:"hidden h-1.5 w-24 overflow-hidden rounded-full bg-black/5 sm:block dark:bg-white/10",children:jsx15("div",{className:"h-full rounded-full",style:{width:`${deliverableProgress.percent}%`,backgroundColor:"var(--brand-color,#18181b)"}})}),jsxs9("span",{className:cn("text-xs tabular-nums",MUTED2),children:[deliverableProgress.percent,"%"]})]})]}),jsxs9("div",{className:cn("flex min-h-0 flex-1",!page&&"lg:max-h-[80vh]"),children:[sidebarOpen&&jsx15(AsideTag,{className:cn("hidden w-80 shrink-0 flex-col border-r lg:flex",BORDER2,SURFACE2),children:outline}),jsx15(MainTag,{className:"min-w-0 flex-1 overflow-y-auto",children:jsx15("div",{className:cn("mx-auto w-full max-w-4xl px-4 py-5 sm:px-6 lg:py-8",page&&"pb-24 lg:pb-8"),children:!current?jsx15("div",{className:cn("rounded-[var(--site-radius-card,1rem)] border border-dashed p-10 text-center text-sm",BORDER2,MUTED2),children:labels.noUnits}):jsxs9("div",{className:"space-y-4",children:[justCompleted&&jsxs9("div",{className:cn("flex flex-col items-center gap-3 rounded-[var(--site-radius-card,1rem)] border p-6 text-center",BORDER2,SURFACE2),role:"status",children:[jsx15("span",{className:"flex h-12 w-12 items-center justify-center rounded-full",style:{backgroundColor:"var(--brand-color,#18181b)",color:"var(--brand-foreground,#ffffff)"},children:jsx15(Award,{className:"h-6 w-6","aria-hidden":"true"})}),jsxs9("div",{children:[jsx15("p",{className:cn("text-lg font-bold",FG2),children:labels.courseCompletedTitle}),deliverableProgress?.completedAt&&jsx15("p",{className:cn("mt-1 text-sm",MUTED2),children:fill2(labels.courseCompletedOn,{date:formatDate(deliverableProgress.completedAt,locale,timeZone)})})]}),jsxs9("div",{className:"flex flex-wrap items-center justify-center gap-2",children:[certificate?.enabled&&jsxs9("button",{type:"button",onClick:()=>void downloadCertificate(),disabled:certificateBusy,className:PRIMARY_BUTTON,style:{backgroundColor:"var(--brand-color,#18181b)"},children:[jsx15(Award,{className:"h-4 w-4","aria-hidden":"true"})," ",labels.certificateDownload]}),backHref&&backLabel&&jsx15("a",{href:backHref,className:SECONDARY_BUTTON,children:backLabel}),jsx15("button",{type:"button",onClick:()=>setJustCompleted(false),className:SECONDARY_BUTTON,children:labels.keepBrowsing})]})]}),!mediaFirst&&heading2,unitBody,mediaFirst&&heading2,showTranscriptPanel&&current&&transcriptForCurrent&&jsx15(TranscriptPanel,{labels,open:transcriptOpen,onToggle:toggleTranscript,status:transcriptForCurrent.status==="ready"?"ready":"error",data:transcriptForCurrent.data,activeIndex:activeSegment,onSeek:time=>setSeekTo({time,nonce:Date.now()}),onLocaleChange:next2=>setTranscriptLocale(next2),onRetry:()=>setTranscriptTick(tick=>tick+1),uiLocale:locale??"en",fileName:current.title||opened?.fileName||"transcript"}),current.attachments&&current.attachments.length>0&&jsxs9("div",{role:"group","aria-label":labels.attachments,children:[jsx15("h3",{className:cn("mb-2 text-sm font-semibold",FG2),children:labels.attachments}),jsx15("ul",{className:cn("divide-y rounded-[var(--site-radius-card,0.75rem)] border",BORDER2,SURFACE2),children:current.attachments.map(file=>jsxs9("li",{className:cn("flex min-h-14 items-center gap-3 px-3 py-2",BORDER2),children:[jsx15(Paperclip,{className:cn("h-4 w-4 shrink-0",MUTED2),"aria-hidden":"true"}),jsxs9("span",{className:"min-w-0 flex-1",children:[jsx15("span",{className:cn("block break-words text-sm font-medium",FG2),children:file.fileName}),file.bytes!=null&&jsx15("span",{className:cn("block text-xs",MUTED2),children:formatFileSize(file.bytes,{locale:locale??"en"})})]}),jsxs9("button",{type:"button",onClick:()=>void downloadAttachment(current.id,file.id),disabled:attachmentBusy!==null,"aria-label":fill2(labels.downloadFile,{name:file.fileName}),className:cn(SECONDARY_BUTTON,"shrink-0"),children:[jsx15(Download,{className:cn("h-4 w-4",attachmentBusy===file.id&&"animate-pulse"),"aria-hidden":"true"})," ",jsx15("span",{className:"hidden sm:inline",children:labels.download})]})]},file.id))}),attachmentFailed&&jsx15("p",{role:"alert",className:"mt-2 text-sm text-red-600 dark:text-red-400",children:labels.loadError})]}),jsxs9("div",{className:"flex flex-wrap items-center gap-2",children:[current.allowDownload&&current.hasFile&&jsxs9("button",{type:"button",onClick:handleDownload,className:SECONDARY_BUTTON,children:[jsx15(Download,{className:"h-4 w-4","aria-hidden":"true"})," ",labels.download]}),current.embed&&embedSrc(current.embed)&&jsxs9("a",{href:embedSrc(current.embed).replace("/embed/","/watch?v="),target:"_blank",rel:"noopener noreferrer",className:cn("inline-flex min-h-11 items-center gap-1.5 text-sm underline underline-offset-4",MUTED2),children:[jsx15(ExternalLink,{className:"h-4 w-4","aria-hidden":"true"})," ",labels.open]}),!isDownloadPack&&currentStatus==="completed"&&jsxs9("span",{className:"inline-flex items-center gap-1 text-sm text-emerald-600 dark:text-emerald-400",children:[jsx15(CircleCheck,{className:"h-4 w-4","aria-hidden":"true"})," ",labels.completed]})]}),jsxs9("div",{className:cn("items-center justify-between gap-3 border-t pt-4",BORDER2,page?"hidden lg:flex":"flex"),children:[jsxs9("button",{type:"button",onClick:()=>goto(-1),disabled:!previous3,className:SECONDARY_BUTTON,children:[jsx15(ChevronLeft,{className:"h-4 w-4","aria-hidden":"true"})," ",labels.previousUnit]}),jsxs9("div",{className:"flex min-w-0 items-center gap-3",children:[blockedByCurrent&&jsx15("span",{className:cn("text-xs",MUTED2),children:labels.completeToContinue}),primaryButton]})]})]})})})]}),page?jsxs9("div",{className:cn("fixed inset-x-0 bottom-0 z-30 flex items-center gap-2 border-t px-3 pt-2 pb-[calc(0.5rem+env(safe-area-inset-bottom))] lg:hidden",BORDER2,SURFACE2),children:[jsxs9("button",{type:"button",onClick:()=>setDrawerOpen(true),"aria-haspopup":"dialog","aria-expanded":drawerOpen,className:cn(SECONDARY_BUTTON,"shrink-0"),children:[jsx15(List,{className:"h-4 w-4","aria-hidden":"true"})," ",labels.outline]}),jsx15("button",{type:"button",onClick:()=>goto(-1),disabled:!previous3,"aria-label":labels.previousUnit,title:labels.previousUnit,className:cn(SECONDARY_BUTTON,"shrink-0 px-3"),children:jsx15(ChevronLeft,{className:"h-4 w-4","aria-hidden":"true"})}),primaryButton?jsx15("div",{className:"flex min-w-0 flex-1 justify-end [&>button]:w-full",children:primaryButton}):jsx15("div",{className:"flex-1"})]}):jsx15("div",{className:cn("flex border-t p-2 lg:hidden",BORDER2),children:jsxs9("button",{type:"button",onClick:()=>setDrawerOpen(true),"aria-haspopup":"dialog","aria-expanded":drawerOpen,className:cn(SECONDARY_BUTTON,"w-full"),children:[jsx15(List,{className:"h-4 w-4","aria-hidden":"true"})," ",labels.outline]})}),drawerOpen&&jsxs9("div",{className:"fixed inset-0 z-40 lg:hidden",role:"dialog","aria-modal":"true","aria-label":labels.outline,children:[jsx15("button",{type:"button","aria-label":labels.closeOutline,onClick:()=>setDrawerOpen(false),className:"absolute inset-0 bg-black/40"}),jsxs9("div",{className:cn("absolute inset-x-0 bottom-0 flex max-h-[85dvh] flex-col rounded-t-2xl pb-[env(safe-area-inset-bottom)]",SURFACE2),children:[jsxs9("div",{className:cn("flex shrink-0 items-center justify-between gap-2 border-b px-4 py-2",BORDER2),children:[jsx15("p",{className:cn("min-w-0 truncate text-sm font-semibold",FG2),children:labels.outline}),jsx15("button",{type:"button",onClick:()=>setDrawerOpen(false),"aria-label":labels.closeOutline,title:labels.closeOutline,className:ICON_BUTTON,children:jsx15(X,{className:"h-5 w-5","aria-hidden":"true"})})]}),outline]})]})]})}function toggleOption(chosen,optionId){const next=new Set(chosen);if(next.has(optionId))next.delete(optionId);else next.add(optionId);return[...next]}function QuizView({body,summary,answers,result,busy,labels,onAnswer,onSubmit,onRetry}){const questions=body?.questions??[];if(!body||questions.length===0)return jsx15("p",{className:"text-sm text-[var(--site-fg-muted,#71717a)]",children:labels.quizNotReady});const practice=(body.settings.mode??summary?.mode??"graded")==="practice";const revealed=result?.reveal?new Map(result.reveal.questions.map(q=>[q.id,q])):null;const allAnswered=questions.every(q=>(answers[q.id]??[]).some(v=>v.trim().length>0));const attemptsLeft=practice||summary?.maxAttempts==null?null:Math.max(0,summary.maxAttempts-summary.attemptsUsed-(result?1:0));const alreadyPassed=!practice&&!result&&Boolean(summary?.passed);const outOfAttempts=!practice&&!result&&!alreadyPassed&&attemptsLeft===0;const muted="text-[var(--site-fg-muted,#71717a)]";const border="border-[var(--site-border,rgba(0,0,0,0.12))]";const fg="text-[var(--site-fg,#18181b)]";const primaryButton="min-h-10 rounded-[var(--site-radius-button,0.5rem)] px-3.5 text-sm font-medium text-[var(--brand-foreground,#ffffff)] disabled:opacity-40";return jsxs9("div",{className:"space-y-5",children:[practice?jsx15("p",{className:cn("text-xs",muted),children:labels.quizPracticeHint}):jsxs9("p",{className:cn("text-xs",muted),children:[fill2(labels.quizPassingScore,{percent:body.settings.passingPercent}),attemptsLeft!==null&&!alreadyPassed&&!result?.passed?` \xB7 ${fill2(labels.quizAttemptsLeft,{count:attemptsLeft})}`:""]}),alreadyPassed&&jsxs9("p",{className:"inline-flex items-center gap-1 text-sm text-emerald-600 dark:text-emerald-400",children:[jsx15(CircleCheck,{className:"h-4 w-4"})," ",labels.quizPassed,summary?.bestScore!=null?` \xB7 ${fill2(labels.quizScore,{score:summary.bestScore})}`:""]}),jsx15("ol",{className:"space-y-4",children:questions.map((q,index2)=>{const multiple=q.type==="multiple";const isText=q.type==="short_text"||q.type==="numeric";const chosen=new Set(answers[q.id]??[]);const reveal=revealed?.get(q.id);const correctSet=reveal?new Set(reveal.correctOptionIds):null;const outcome=result?result.perQuestion[q.id]??null:null;const locked=Boolean(result)||busy||alreadyPassed||outOfAttempts;return jsxs9("li",{className:cn("rounded-[var(--site-radius-media,0.75rem)] border p-4",border),children:[jsxs9("p",{className:cn("flex items-start gap-2 text-sm font-medium",fg),children:[outcome===true?jsx15(CircleCheck,{className:"mt-0.5 h-4 w-4 shrink-0 text-emerald-600 dark:text-emerald-400","aria-label":labels.quizCorrectMark}):outcome===false?jsx15(CircleX,{className:"mt-0.5 h-4 w-4 shrink-0 text-red-600 dark:text-red-400","aria-label":labels.quizWrongMark}):null,jsxs9("span",{children:[index2+1,". ",q.prompt,multiple?jsx15("span",{className:cn("ml-2 text-xs font-normal",muted),children:labels.quizSelectAll}):null]})]}),q.image?jsx15("img",{src:q.image.url,alt:q.image.alt??"",width:q.image.width??void 0,height:q.image.height??void 0,loading:"lazy",className:"mt-3 max-h-80 w-auto max-w-full rounded-[var(--site-radius-media,0.75rem)]"}):null,isText?jsxs9("div",{className:"mt-3",children:[jsx15(Input,{type:"text",inputMode:q.type==="numeric"?"decimal":void 0,value:answers[q.id]?.[0]??"",disabled:locked,maxLength:500,placeholder:q.type==="numeric"?labels.quizNumericPlaceholder:labels.quizTextPlaceholder,"aria-label":q.prompt,onChange:event=>onAnswer(q.id,event.target.value?[event.target.value]:[]),className:cn("rounded-lg bg-transparent disabled:cursor-default disabled:opacity-100",border,fg,outcome===true&&"bg-emerald-50 dark:bg-emerald-950/30",outcome===false&&"bg-red-50 dark:bg-red-950/30")}),reveal&&reveal.acceptedAnswers&&reveal.acceptedAnswers.length>0?jsx15("p",{className:cn("mt-2 text-xs",muted),children:fill2(labels.quizAcceptedAnswers,{answers:reveal.acceptedAnswers.join(" / ")})}):null]}):jsx15("ul",{role:multiple?"group":"radiogroup","aria-label":q.prompt,className:cn("mt-3",q.options.some(o=>o.image)?"grid grid-cols-2 gap-2 sm:grid-cols-3":"space-y-2"),children:q.options.map(option=>{const checked=chosen.has(option.id);const isCorrect=correctSet?correctSet.has(option.id):null;return jsx15("li",{children:jsxs9("button",{type:"button",role:multiple?"checkbox":"radio","aria-checked":checked,disabled:locked,onClick:()=>onAnswer(q.id,multiple?toggleOption(chosen,option.id):[option.id]),className:cn("w-full rounded-lg border text-left text-sm disabled:cursor-default",option.image?"flex h-full flex-col gap-2 p-2":"flex items-start gap-2 px-3 py-2",border,fg,checked&&"border-[var(--brand-color,#18181b)]",isCorrect===true&&"bg-emerald-50 dark:bg-emerald-950/30",isCorrect===false&&checked&&"bg-red-50 dark:bg-red-950/30"),children:[option.image?jsx15("img",{src:option.image.url,alt:option.image.alt??"",width:option.image.width??void 0,height:option.image.height??void 0,loading:"lazy",className:"block max-h-48 w-full rounded-md object-contain"}):null,jsxs9("span",{className:cn("flex items-start gap-2",option.image?"px-1 pb-1":"contents"),children:[jsx15("span",{"aria-hidden":true,className:cn("mt-0.5 inline-flex h-4 w-4 shrink-0 items-center justify-center border",multiple?"rounded":"rounded-full",checked?"border-[var(--brand-color,#18181b)] bg-[var(--brand-color,#18181b)] text-[var(--brand-foreground,#ffffff)]":"border-[var(--site-border,rgba(0,0,0,0.3))]"),children:checked?jsx15(Check,{className:"h-3 w-3"}):null}),jsx15("span",{className:"min-w-0",children:option.text})]})]})},option.id)})}),reveal?.explanation?jsx15("p",{className:cn("mt-2 text-xs",muted),children:reveal.explanation}):null]},q.id)})}),result?jsx15("div",{className:cn("rounded-[var(--site-radius-media,0.75rem)] border p-4 text-sm",border),children:practice?jsxs9(Fragment6,{children:[jsx15("p",{className:cn("font-medium",fg),children:fill2(labels.quizCorrectCount,{correct:result.correct,total:result.total})}),jsx15("button",{type:"button",onClick:onRetry,className:cn("mt-3",primaryButton),style:{backgroundColor:"var(--brand-color,#18181b)"},children:labels.quizPracticeAgain})]}):jsxs9(Fragment6,{children:[jsxs9("p",{className:cn("font-medium",result.passed?"text-emerald-600 dark:text-emerald-400":fg),children:[fill2(labels.quizScore,{score:result.score})," \xB7 ",result.passed?labels.quizPassed:fill2(labels.quizFailed,{percent:body.settings.passingPercent}),jsx15("span",{className:cn("ml-2 text-xs font-normal",muted),children:fill2(labels.quizCorrectCount,{correct:result.correct,total:result.total})})]}),!result.passed&&(result.canRetry?jsx15("button",{type:"button",onClick:onRetry,className:cn("mt-3",primaryButton),style:{backgroundColor:"var(--brand-color,#18181b)"},children:labels.quizRetry}):jsx15("p",{className:cn("mt-2 text-xs",muted),children:labels.quizNoAttempts}))]})}):outOfAttempts?jsx15("p",{className:cn("text-sm",muted),children:labels.quizNoAttempts}):alreadyPassed?null:jsx15("button",{type:"button",onClick:onSubmit,disabled:!allAnswered||busy,className:primaryButton,style:{backgroundColor:"var(--brand-color,#18181b)"},children:labels.quizSubmit})]})}export{DeliverablePlayer,deliverablePlayerLabels};
99
- //# sourceMappingURL=deliverables-BDS7WMBC.js.map
99
+ //# sourceMappingURL=deliverables-NO5NEFRM.js.map