@oscloudlab/knowledge-card 0.0.86 → 0.0.88
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.
- package/dist/{abap-DgxwQqqt.js → abap-0E514XbG.js} +1 -1
- package/dist/{abnf-C841EB-k.js → abnf-DGzTT1yq.js} +1 -1
- package/dist/{actionscript-D4JHN5fS.js → actionscript-BNe6z54r.js} +1 -1
- package/dist/{ada-BLzjsMHd.js → ada-B32c-9BE.js} +1 -1
- package/dist/{agda-DBtgt3Or.js → agda-BqH5UAYL.js} +1 -1
- package/dist/{al-B2QfM0yZ.js → al-DF0QYuWG.js} +1 -1
- package/dist/{antlr4-DL--zm69.js → antlr4-nKXeO7Z0.js} +1 -1
- package/dist/{apacheconf-hFZ4_Rtp.js → apacheconf-D3JSXia6.js} +1 -1
- package/dist/{apex-CCUBvhRZ.js → apex-BNUFB3Xd.js} +1 -1
- package/dist/{apl-BHYD5NZO.js → apl-CubfdVRE.js} +1 -1
- package/dist/{applescript-B4dbsX1X.js → applescript-BPDAj4LT.js} +1 -1
- package/dist/{aql-Cfy1H7by.js → aql-BGMuWeWD.js} +1 -1
- package/dist/{arduino-DnYhp5ks.js → arduino-BX5VhhwM.js} +1 -1
- package/dist/{arff-CokhmTvW.js → arff-_7iNA-ZT.js} +1 -1
- package/dist/{asciidoc-2tzVs_Kn.js → asciidoc-D_z2mnVD.js} +1 -1
- package/dist/{asm6502-CjOxFt7t.js → asm6502-CQ6FJc_l.js} +1 -1
- package/dist/{asmatmel-BRxUBov6.js → asmatmel-uc4jDUtU.js} +1 -1
- package/dist/{aspnet-CNPDeQzY.js → aspnet-DBuSdPd5.js} +1 -1
- package/dist/{autohotkey-a-TRarCr.js → autohotkey-DLK5U06P.js} +1 -1
- package/dist/autohotkey-DLK5U06P.js.gz +0 -0
- package/dist/{autoit-9zyTsAQW.js → autoit-BTOc2Afx.js} +1 -1
- package/dist/{avisynth-CvzfisC5.js → avisynth-HQO06hKa.js} +1 -1
- package/dist/{avro-idl-BoeezjlD.js → avro-idl-S86Xd8o7.js} +1 -1
- package/dist/{bash-CZlHRDRB.js → bash-Ci38UKiX.js} +1 -1
- package/dist/{basic-woFELADg.js → basic-Cxo7diRk.js} +1 -1
- package/dist/{batch-DjZFJEOT.js → batch-BubleCgv.js} +1 -1
- package/dist/{bbcode-kzyxrg6f.js → bbcode-BvLuUqaT.js} +1 -1
- package/dist/{bicep-BGXd7-Yb.js → bicep-8zlPmkDR.js} +1 -1
- package/dist/{birb-CQuxrG5M.js → birb-DOIXUwiR.js} +1 -1
- package/dist/{bison-BdhL37gg.js → bison-6Gc_nHjg.js} +1 -1
- package/dist/{bnf-wIJNiLtO.js → bnf-P8wKAfAP.js} +1 -1
- package/dist/{brainfuck-BCUQEh6g.js → brainfuck-CyxA6OHv.js} +1 -1
- package/dist/{brightscript-CjHTLjqz.js → brightscript-DkTzigb7.js} +1 -1
- package/dist/{bro-DMVwuRnU.js → bro-uYv6z9ri.js} +1 -1
- package/dist/{bsl-BiSebeQB.js → bsl-B_heEcJm.js} +1 -1
- package/dist/{c-CfWSAcLL.js → c-BLX6OtLY.js} +1 -1
- package/dist/{cfscript-D31v9_OH.js → cfscript-C8ErDnjA.js} +1 -1
- package/dist/{chaiscript-CCCEwy-L.js → chaiscript-BW4PH4bH.js} +1 -1
- package/dist/{cil-IE4io56y.js → cil-DPhazH3q.js} +1 -1
- package/dist/{clike-BuwbwfbQ.js → clike-BAueucpq.js} +1 -1
- package/dist/{clojure-DPT_1T4X.js → clojure-ByjiSJeD.js} +1 -1
- package/dist/{cmake-vFXwGCHE.js → cmake-C9Z6hOOc.js} +1 -1
- package/dist/cmake-C9Z6hOOc.js.gz +0 -0
- package/dist/{cobol-Bvkhy9fs.js → cobol-fyM6xYyQ.js} +1 -1
- package/dist/{coffeescript-Cy3d77AY.js → coffeescript-CFpVBQIW.js} +1 -1
- package/dist/{concurnas-CRkX96li.js → concurnas-pEYBUbiI.js} +1 -1
- package/dist/{coq-D4qTQkk8.js → coq-D-UL_pZ5.js} +1 -1
- package/dist/{core-4RW9JK33.js → core-DRFaTXBn.js} +5 -5
- package/dist/core-DRFaTXBn.js.gz +0 -0
- package/dist/{cpp-BRq0PiRv.js → cpp-BLUOhe0f.js} +1 -1
- package/dist/{crystal-Bx4n14dy.js → crystal-BlWmZKMB.js} +1 -1
- package/dist/{csharp-CyGMnUj4.js → csharp-B6IE_-F_.js} +1 -1
- package/dist/{cshtml-DbuQwGrV.js → cshtml-Ke7GARDL.js} +1 -1
- package/dist/{csp-Dq5n0T_R.js → csp-C7OQPTvY.js} +1 -1
- package/dist/{css-C_muTVJc.js → css-B2q3GGOZ.js} +1 -1
- package/dist/{css-extras-DvbaPjzA.js → css-extras-LAX9AGaF.js} +1 -1
- package/dist/{csv-DdMdH4oR.js → csv-CIEr_zrw.js} +1 -1
- package/dist/{cypher-BYrx7zlw.js → cypher-cTp-waG6.js} +1 -1
- package/dist/{d-BgqWK3Wm.js → d-DmmRxytB.js} +1 -1
- package/dist/{dart-BATvs1Ih.js → dart-B6pjINvO.js} +1 -1
- package/dist/{dataweave-Cx8VUWTt.js → dataweave-DiDTSWHO.js} +1 -1
- package/dist/{dax-shfAOnEv.js → dax-DGyeJ0_S.js} +1 -1
- package/dist/{dhall-C4oy8htX.js → dhall-Bh4QrPP4.js} +1 -1
- package/dist/{diff-eN0k6qd2.js → diff-n9qmgf6g.js} +1 -1
- package/dist/{django-BPSBqIAo.js → django-B5J6XfOC.js} +1 -1
- package/dist/{dns-zone-file-C5oIW3-_.js → dns-zone-file-CvpvtXTU.js} +1 -1
- package/dist/{docker-CtoD3MtX.js → docker-Cp_ntL5c.js} +1 -1
- package/dist/{dot-CAHkaE0n.js → dot-JT7ttuha.js} +1 -1
- package/dist/{ebnf-Cjk4jKau.js → ebnf-B2uyMXAb.js} +1 -1
- package/dist/{editorconfig-BLVkQL3A.js → editorconfig-C9hGx7bO.js} +1 -1
- package/dist/{eiffel-Bsr6RlEV.js → eiffel-BIHBfz3M.js} +1 -1
- package/dist/{ejs-ua76F1rp.js → ejs-DjyOTtZS.js} +1 -1
- package/dist/{elixir--KKuo0QK.js → elixir-DYCx2hCF.js} +1 -1
- package/dist/{elm-BUK7nc-N.js → elm-C_ggCV5O.js} +1 -1
- package/dist/{erb-S5y_UWr2.js → erb-C8sgtvc8.js} +1 -1
- package/dist/{erlang-OBJu6X9L.js → erlang-Av4IwLuT.js} +1 -1
- package/dist/{etlua-TDA_kJUG.js → etlua-BMXkqP2S.js} +1 -1
- package/dist/{excel-formula-HMsqD8lw.js → excel-formula-kAJSxh20.js} +1 -1
- package/dist/{factor-CfXGD3U-.js → factor-qWVS-RBj.js} +1 -1
- package/dist/factor-qWVS-RBj.js.gz +0 -0
- package/dist/{false-BQraE7xN.js → false-R2H0Why0.js} +1 -1
- package/dist/{firestore-security-rules-YFlzbZxA.js → firestore-security-rules-CxiUoP6z.js} +1 -1
- package/dist/{flow-BdpfcmMH.js → flow-D4Ru2MXq.js} +1 -1
- package/dist/{fortran-agPlMGed.js → fortran-zfcm2wkT.js} +1 -1
- package/dist/{fsharp-BdMbfmhl.js → fsharp-DsDMF-VC.js} +1 -1
- package/dist/{ftl-BV0a1vTv.js → ftl-s80xT6jf.js} +1 -1
- package/dist/{gap-Bb9WpYnJ.js → gap-CmQK6soX.js} +1 -1
- package/dist/{gcode-Ddzfi3oU.js → gcode-BADX8Mak.js} +1 -1
- package/dist/{gdscript-CFDkucM_.js → gdscript-Df4fzrrE.js} +1 -1
- package/dist/{gedcom-CZZ90PRA.js → gedcom-Bh1t4s8j.js} +1 -1
- package/dist/{gherkin-CuTQT3aE.js → gherkin-DxAUslcf.js} +1 -1
- package/dist/gherkin-DxAUslcf.js.gz +0 -0
- package/dist/{git-pOyTpXiR.js → git-BuHqNr-A.js} +1 -1
- package/dist/{glsl-DK__ZGyW.js → glsl-Dd3zIFiP.js} +1 -1
- package/dist/{gml-DW1GIZ7C.js → gml-Bx537wjf.js} +1 -1
- package/dist/{gn-CEO7eUzV.js → gn-CfFtAcQr.js} +1 -1
- package/dist/{go-C_B9y1uM.js → go-DgT12bFS.js} +1 -1
- package/dist/{go-module-gLrfH4c1.js → go-module-Tbi87m-B.js} +1 -1
- package/dist/{graphql-BRasCPfr.js → graphql-sBNMtd5A.js} +1 -1
- package/dist/{groovy-C59X1s62.js → groovy-KW55q2uU.js} +1 -1
- package/dist/{haml-nllHCbkg.js → haml-CfDfD0QK.js} +1 -1
- package/dist/{handlebars-DpXVGA8Y.js → handlebars-CgT5gjOc.js} +1 -1
- package/dist/{haskell-Dsv90ZJ1.js → haskell-Dt76fPP7.js} +1 -1
- package/dist/{haxe-P-J_gmiO.js → haxe-CIVOMfSC.js} +1 -1
- package/dist/{hcl-CwbUVoPY.js → hcl-u5blCcKE.js} +1 -1
- package/dist/{hlsl-Biw3igGd.js → hlsl-IcZQ0Kcs.js} +1 -1
- package/dist/{hoon-C-4QCoC-.js → hoon-DESvdoaI.js} +1 -1
- package/dist/{hpkp-BqNyQ-46.js → hpkp-DSpc8H28.js} +1 -1
- package/dist/{hsts-4SVdXLEJ.js → hsts-OuGfuC2E.js} +1 -1
- package/dist/{http-Dy1r8MU5.js → http-BLQziOOl.js} +1 -1
- package/dist/{ichigojam-gBoIAggP.js → ichigojam-CXrx8Hrp.js} +1 -1
- package/dist/{icon-CsJZIGcB.js → icon-BLjLv5Gk.js} +1 -1
- package/dist/{icu-message-format-OUh5XCwg.js → icu-message-format-Ls5ki1dH.js} +1 -1
- package/dist/{idris-DQnoLIew.js → idris-TrLRqOIn.js} +1 -1
- package/dist/{iecst-Cpuey17y.js → iecst-Bx9Bgtza.js} +1 -1
- package/dist/{ignore-DnaLgMzX.js → ignore-Citm7l1n.js} +1 -1
- package/dist/{index-Cbuvlkkm.js → index-BeCd5XXu.js} +279 -279
- package/dist/index-BeCd5XXu.js.gz +0 -0
- package/dist/{inform7-C-EWMx4e.js → inform7-yyBoop5T.js} +1 -1
- package/dist/{ini-nNwbrUwJ.js → ini-DmFDDtxF.js} +1 -1
- package/dist/{io-toepm57l.js → io-jWLNHnW4.js} +1 -1
- package/dist/{j-MPraOu5G.js → j-BYePj3Oo.js} +1 -1
- package/dist/{java-0_lgJVNQ.js → java-DZbEPrww.js} +1 -1
- package/dist/{javadoc-CPbYg8ZW.js → javadoc-DyYJ-OfB.js} +1 -1
- package/dist/{javadoclike-CI8q12BO.js → javadoclike-BwcGK34J.js} +1 -1
- package/dist/{javascript-ChTKYRIL.js → javascript-D6r8VGTz.js} +1 -1
- package/dist/{javastacktrace-DxLKL7Fn.js → javastacktrace-9YOvXCWM.js} +1 -1
- package/dist/{jexl-BLsLWodn.js → jexl-yV4Gzuxt.js} +1 -1
- package/dist/{jolie-CrP922et.js → jolie-Bjh-7uwL.js} +1 -1
- package/dist/{jq-CjqM_F_k.js → jq-B70HiyLP.js} +1 -1
- package/dist/{js-extras-b_il_0EN.js → js-extras-DvARYa7E.js} +1 -1
- package/dist/{js-templates-Co1F6pa4.js → js-templates-DRmDgKcf.js} +1 -1
- package/dist/{jsdoc-bAe3ZNdJ.js → jsdoc-ClC448_-.js} +1 -1
- package/dist/{json-XaEm6RBc.js → json-Crb4EgoL.js} +1 -1
- package/dist/{json5-D6rkfzvc.js → json5-BK1ad2y3.js} +1 -1
- package/dist/{jsonp-_-5cbRuE.js → jsonp-CnX2UJsW.js} +1 -1
- package/dist/{jsstacktrace-DWnnZMR7.js → jsstacktrace-BlzXJOAo.js} +1 -1
- package/dist/{jsx-QwCcKw-i.js → jsx-8VQOtMAv.js} +1 -1
- package/dist/{julia-M76dmv0f.js → julia-BEwj8QKj.js} +1 -1
- package/dist/{keepalived-XIH3u0_7.js → keepalived-BtYM64Dw.js} +1 -1
- package/dist/{keyman-BsJR0T5o.js → keyman-6qZikRR2.js} +1 -1
- package/dist/knowledge-card.es.js +1 -1
- package/dist/knowledge-card.umd.js +1 -1
- package/dist/knowledge-card.umd.js.gz +0 -0
- package/dist/{kotlin-6zO87xRD.js → kotlin-qUUMQoS1.js} +1 -1
- package/dist/{kumir-C5hmrz8B.js → kumir-DxRxCyCv.js} +1 -1
- package/dist/{kusto-CA4raqcG.js → kusto-DRdxqiER.js} +1 -1
- package/dist/{latex-BHkR1rdN.js → latex-DMe24zEv.js} +1 -1
- package/dist/{latte-C_gnpmLR.js → latte-BR2tZWFQ.js} +1 -1
- package/dist/{less-eAzffVEk.js → less-CCsZGfyK.js} +1 -1
- package/dist/{lilypond-B0ARG60Z.js → lilypond-BOYnW2iX.js} +1 -1
- package/dist/{liquid-DSaqsjLG.js → liquid-BYnTzSHb.js} +1 -1
- package/dist/{lisp-xcTgknvc.js → lisp-BA0q8X1V.js} +1 -1
- package/dist/{livescript-LGv19PMI.js → livescript-D9CCO3NO.js} +1 -1
- package/dist/{llvm-DB_jo9JM.js → llvm-Cf_G6ycc.js} +1 -1
- package/dist/{log-U44Y9mLg.js → log-BCw4wcZu.js} +1 -1
- package/dist/{lolcode-CA-_0gou.js → lolcode-B-jpEWpv.js} +1 -1
- package/dist/{lua-_DSsArqh.js → lua-BnJr_U6X.js} +1 -1
- package/dist/{magma-DPaF0VQ6.js → magma-DyRbGhIl.js} +1 -1
- package/dist/{makefile-C4DMSh0C.js → makefile-D-kUa9KK.js} +1 -1
- package/dist/{markdown-nvBCQo_L.js → markdown-CKTWT1xp.js} +1 -1
- package/dist/markdown-CKTWT1xp.js.gz +0 -0
- package/dist/{markup-BlarQsMj.js → markup-prs2_7A8.js} +1 -1
- package/dist/{markup-templating-OnrtBv6f.js → markup-templating-DGRk1XVg.js} +1 -1
- package/dist/{matlab-CCh5duLP.js → matlab-Cf_-m5FJ.js} +1 -1
- package/dist/{maxscript-C1cWpPzM.js → maxscript-Cfpr5OGC.js} +1 -1
- package/dist/{mel-DSvYKoWI.js → mel-BCzPt_Uw.js} +1 -1
- package/dist/mel-BCzPt_Uw.js.gz +0 -0
- package/dist/{mermaid-Iy-teE9q.js → mermaid-BJQj9E5U.js} +1 -1
- package/dist/{mizar-sOEEESW1.js → mizar-C2X2hKY4.js} +1 -1
- package/dist/{mongodb-BJUpv-9o.js → mongodb-BNb-MaIj.js} +1 -1
- package/dist/{monkey-2lWWKnfU.js → monkey-LJtwl1AH.js} +1 -1
- package/dist/{moonscript-DfOukjN4.js → moonscript-Bo-eD0o_.js} +1 -1
- package/dist/{n1ql-B88iTYNb.js → n1ql-DgsfoXv1.js} +1 -1
- package/dist/{n4js-SRPE9H2k.js → n4js-QSzmf06w.js} +1 -1
- package/dist/{nand2tetris-hdl-CLp_qC85.js → nand2tetris-hdl-D-vME6vR.js} +1 -1
- package/dist/{naniscript-DZBR0HJP.js → naniscript-DKcJwbhY.js} +1 -1
- package/dist/{nasm-DCjd3aIg.js → nasm-Ofe8dcpe.js} +1 -1
- package/dist/{neon-DygVfqT1.js → neon-DaIFK6ZF.js} +1 -1
- package/dist/{nevod-BG6K1RQj.js → nevod-CXf1kJc-.js} +1 -1
- package/dist/{nginx-BJdrKedA.js → nginx-DI04H1-X.js} +1 -1
- package/dist/{nim-Bkh9ulU9.js → nim-D-oXjvo6.js} +1 -1
- package/dist/{nix-66AGp0o2.js → nix-CpSfyxOQ.js} +1 -1
- package/dist/{nsis-DCivlX0-.js → nsis-vlJ454iX.js} +1 -1
- package/dist/{objectivec-BfR8nyFd.js → objectivec-BKs-2-3_.js} +1 -1
- package/dist/{ocaml-CoH0hK1J.js → ocaml-BF2yEj06.js} +1 -1
- package/dist/{opencl-hLSPo9ps.js → opencl-CDnOJ6pM.js} +1 -1
- package/dist/opencl-CDnOJ6pM.js.gz +0 -0
- package/dist/{openqasm-Dv4rkSJe.js → openqasm-BGsRVZdJ.js} +1 -1
- package/dist/{oz-Chl89QJv.js → oz-DnqgUuy2.js} +1 -1
- package/dist/{parigp-tPJSdQCD.js → parigp-DZDmtz71.js} +1 -1
- package/dist/{parser-Dl-wZunS.js → parser-CmUES5p_.js} +1 -1
- package/dist/{pascal-cGneJPim.js → pascal-DYdP8aMK.js} +1 -1
- package/dist/{pascaligo-BzFtoRH5.js → pascaligo-DnCwnUCT.js} +1 -1
- package/dist/{pcaxis-DkJV456k.js → pcaxis-DPwbiEwo.js} +1 -1
- package/dist/{peoplecode-7TM05slO.js → peoplecode-CHsIZ7Ef.js} +1 -1
- package/dist/{perl-DaxF_99P.js → perl-DuImGXlo.js} +1 -1
- package/dist/{php-g-STCFZY.js → php-cBN6Go5W.js} +1 -1
- package/dist/{php-extras-D1e15Y_s.js → php-extras-DwI7F-4w.js} +1 -1
- package/dist/{phpdoc-D8HfxOzC.js → phpdoc-Cl8rPOna.js} +1 -1
- package/dist/{plsql-BuMb_M5A.js → plsql-BGxLS1ey.js} +1 -1
- package/dist/{powerquery-Cwvf31Bb.js → powerquery-D82b92AF.js} +1 -1
- package/dist/{powershell-ANR15Sl2.js → powershell-BRDyzIMv.js} +1 -1
- package/dist/{processing-_x7gADbf.js → processing-DbVMUYWt.js} +1 -1
- package/dist/{prolog-DT2AaJIg.js → prolog-CMH1u6Zn.js} +1 -1
- package/dist/{promql-cYp6P9h5.js → promql-S1RWRyh7.js} +1 -1
- package/dist/{properties-Cx_6Pdjv.js → properties-D2PjGCmO.js} +1 -1
- package/dist/{protobuf-wNi1eFC4.js → protobuf-BA0dB0tA.js} +1 -1
- package/dist/{psl-K7JPFffn.js → psl-CcbNO2KE.js} +1 -1
- package/dist/{pug-CRFqukpb.js → pug-C_H3G4Ge.js} +1 -1
- package/dist/{puppet-BU4aRcvQ.js → puppet-CqhGeIqa.js} +1 -1
- package/dist/{pure-DJNCcaQM.js → pure-BFRAVZpW.js} +1 -1
- package/dist/{purebasic-CpHomnfh.js → purebasic-HYZHYFcC.js} +1 -1
- package/dist/{purescript-C1iQ4aLT.js → purescript-EM7jeuCD.js} +1 -1
- package/dist/{python-BslkMMSC.js → python-DLpHY9M_.js} +1 -1
- package/dist/{q-hItuus98.js → q-C9rLvJvO.js} +1 -1
- package/dist/{qml-BPQcys_E.js → qml-ZV43jdnP.js} +1 -1
- package/dist/{qore-ec7hyJIr.js → qore-D0YHfQ2D.js} +1 -1
- package/dist/{qsharp-C2lwD3lR.js → qsharp-CgpemWFh.js} +1 -1
- package/dist/{r-Csu8G8lr.js → r-AgWqxzGO.js} +1 -1
- package/dist/{racket-Dh1YtY69.js → racket-BXwO559l.js} +1 -1
- package/dist/{reason-C6X9GT_M.js → reason-Dbp9whxE.js} +1 -1
- package/dist/{regex-C6Wi1N2b.js → regex-ByJOp0yU.js} +1 -1
- package/dist/{rego-DycWZOWI.js → rego-Drl11vS3.js} +1 -1
- package/dist/{renpy-Ct-1zlUL.js → renpy-CQ8kLksk.js} +1 -1
- package/dist/{rest-D6OibMd_.js → rest-DNpyaIzW.js} +1 -1
- package/dist/{rip-BJuSYlPT.js → rip-BWDZ4X6O.js} +1 -1
- package/dist/{roboconf-PAx0CMqJ.js → roboconf-B95Q4x32.js} +1 -1
- package/dist/{robotframework-DBiOVA-C.js → robotframework-4QwLUy4U.js} +1 -1
- package/dist/{ruby-Uv8rrdus.js → ruby-Ee3ok0SQ.js} +1 -1
- package/dist/{rust-D4tv51UA.js → rust-Bgn1GgLR.js} +1 -1
- package/dist/{sas-B_GdCFEF.js → sas-CBiKZeeY.js} +1 -1
- package/dist/sas-CBiKZeeY.js.gz +0 -0
- package/dist/{sass-q-i-OT6O.js → sass-BLb8W-dX.js} +1 -1
- package/dist/{scala-Cpfu0MeH.js → scala-DSC4qcp_.js} +1 -1
- package/dist/{scheme-Kn6ZbaXT.js → scheme-DHf1K4P-.js} +1 -1
- package/dist/{scss-Bck2wS98.js → scss-CjbYhtUo.js} +1 -1
- package/dist/{shell-session-BrIf42lQ.js → shell-session-BmLt-a1W.js} +1 -1
- package/dist/{smali-CCf5fZ_Y.js → smali-BhTnp05u.js} +1 -1
- package/dist/{smalltalk-BvBGBF0I.js → smalltalk-CtcepbU8.js} +1 -1
- package/dist/{smarty-I9UXwe6X.js → smarty-BBETKkbF.js} +1 -1
- package/dist/{sml-Cl0J9hIK.js → sml-DXen0x6P.js} +1 -1
- package/dist/{solidity-DUWeBqTg.js → solidity-MIr6NavK.js} +1 -1
- package/dist/{solution-file-uVNYofYl.js → solution-file-oTNS-igo.js} +1 -1
- package/dist/{soy-wd8n5HSq.js → soy-D2gFmZc5.js} +1 -1
- package/dist/{sparql-9kEpcAAL.js → sparql-ellESHVA.js} +1 -1
- package/dist/{splunk-spl-Daig6byB.js → splunk-spl-DNTCm-ST.js} +1 -1
- package/dist/{sqf-BItBTwMw.js → sqf-B5GPTmPk.js} +1 -1
- package/dist/sqf-B5GPTmPk.js.gz +0 -0
- package/dist/{sql-CAsD4myo.js → sql-r5QMxPvf.js} +1 -1
- package/dist/{squirrel-D9LCbXfl.js → squirrel-8iiGMN1E.js} +1 -1
- package/dist/{stan-BIl3q8IC.js → stan-DLwpi2M0.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/style.css.gz +0 -0
- package/dist/{stylus-XIzHRFl2.js → stylus-B7mn-Xx7.js} +1 -1
- package/dist/{swift-BBV82wD8.js → swift-DXT7Wxl3.js} +1 -1
- package/dist/{systemd-BpH_7Jav.js → systemd-CJIfTZQ7.js} +1 -1
- package/dist/{t4-cs-xGPlOElp.js → t4-cs-CwqAoSnc.js} +1 -1
- package/dist/{t4-templating-BbSWYYgE.js → t4-templating-Dma8ydBJ.js} +1 -1
- package/dist/{t4-vb-4-g3CeY4.js → t4-vb-CQ8uf9Ur.js} +1 -1
- package/dist/{tap-Cza9Uu10.js → tap-BvB6gJOk.js} +1 -1
- package/dist/{tcl-De_DHaKv.js → tcl-BmypiJnJ.js} +1 -1
- package/dist/{textile-CEZrpCCE.js → textile-DWl5VoDb.js} +1 -1
- package/dist/textile-DWl5VoDb.js.gz +0 -0
- package/dist/{toml-BNLoDnoC.js → toml-g7YnqEqZ.js} +1 -1
- package/dist/{tremor-BgkECQw9.js → tremor-Bja7YRZn.js} +1 -1
- package/dist/{tsx-Dtf_V3pX.js → tsx-DpxaxTCS.js} +1 -1
- package/dist/{tt2-DxvFx_md.js → tt2-CeG7gsbo.js} +1 -1
- package/dist/{turtle-DbhHpia-.js → turtle-DsfZItbL.js} +1 -1
- package/dist/{twig-CkBclUeb.js → twig-CNjDue_5.js} +1 -1
- package/dist/{typescript-B90SEpey.js → typescript-C6qqqVCV.js} +1 -1
- package/dist/{typoscript-DTuh79AE.js → typoscript-BBV9mrAu.js} +1 -1
- package/dist/{unrealscript-3yRfUT4U.js → unrealscript-BH4nSC1X.js} +1 -1
- package/dist/{uorazor-DOVM7IUu.js → uorazor-JU0vkRS-.js} +1 -1
- package/dist/{uri-J1ItW-z4.js → uri-CZlIOpIY.js} +1 -1
- package/dist/{v-ljMlDO0R.js → v-DN7wWvLu.js} +1 -1
- package/dist/{vala-CJZmwvWw.js → vala-9V9Dd_vK.js} +1 -1
- package/dist/{vbnet-BwRVaCsJ.js → vbnet-BddIQyLG.js} +1 -1
- package/dist/{velocity-DaaSyFa6.js → velocity-2_YatTbg.js} +1 -1
- package/dist/{verilog-BbLCWovt.js → verilog-1CghQz8U.js} +1 -1
- package/dist/{vhdl-CR6y9zRO.js → vhdl-DnowdCsj.js} +1 -1
- package/dist/{vim-DOXeWgRl.js → vim-BaIlwzBB.js} +1 -1
- package/dist/{vim-DOXeWgRl.js.gz → vim-BaIlwzBB.js.gz} +0 -0
- package/dist/{visual-basic-Ieh03HRx.js → visual-basic-1UxOTRTl.js} +1 -1
- package/dist/{warpscript-B4EH6_3t.js → warpscript-5ErzrjwQ.js} +1 -1
- package/dist/{wasm-D6PoOp2v.js → wasm-DypbEFPc.js} +1 -1
- package/dist/{web-idl-Dmlszohw.js → web-idl-Dp1_G8q_.js} +1 -1
- package/dist/{wiki-Cf8Q6w1-.js → wiki-B6xiWlMC.js} +1 -1
- package/dist/{wolfram-BY0xhFkH.js → wolfram-D9Oraq-1.js} +1 -1
- package/dist/{wren-D6W6Z1zo.js → wren-DjJE8EXG.js} +1 -1
- package/dist/{xeora-Btp5KtQf.js → xeora-CORR9hod.js} +1 -1
- package/dist/{xml-doc-DPw0ADyf.js → xml-doc-AqayYaAf.js} +1 -1
- package/dist/{xojo-NKeMrmWm.js → xojo-Cwavi8Tr.js} +1 -1
- package/dist/{xquery-C_cSC76H.js → xquery-BmDEYnBt.js} +1 -1
- package/dist/{yaml-lhJ6jhyV.js → yaml-joRP3NUb.js} +1 -1
- package/dist/{yang-Du4JInDG.js → yang-BsT-h-H5.js} +1 -1
- package/dist/{zig-BuOL6Y7g.js → zig-HAvyqSkj.js} +1 -1
- package/package.json +1 -1
- package/dist/autohotkey-a-TRarCr.js.gz +0 -0
- package/dist/cmake-vFXwGCHE.js.gz +0 -0
- package/dist/core-4RW9JK33.js.gz +0 -0
- package/dist/factor-CfXGD3U-.js.gz +0 -0
- package/dist/gherkin-CuTQT3aE.js.gz +0 -0
- package/dist/index-Cbuvlkkm.js.gz +0 -0
- package/dist/markdown-nvBCQo_L.js.gz +0 -0
- package/dist/mel-DSvYKoWI.js.gz +0 -0
- package/dist/opencl-hLSPo9ps.js.gz +0 -0
- package/dist/sas-B_GdCFEF.js.gz +0 -0
- package/dist/sqf-BItBTwMw.js.gz +0 -0
- package/dist/textile-CEZrpCCE.js.gz +0 -0
|
@@ -23,7 +23,7 @@ var x={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24"
|
|
|
23
23
|
*
|
|
24
24
|
* This source code is licensed under the ISC license.
|
|
25
25
|
* See the LICENSE file in the root directory of this source tree.
|
|
26
|
-
*/function oe(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=oe(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}const se={aliceblue:"9ehhb",antiquewhite:"9sgk7",aqua:"1ekf",aquamarine:"4zsno",azure:"9eiv3",beige:"9lhp8",bisque:"9zg04",black:"0",blanchedalmond:"9zhe5",blue:"73",blueviolet:"5e31e",brown:"6g016",burlywood:"8ouiv",cadetblue:"3qba8",chartreuse:"4zshs",chocolate:"87k0u",coral:"9yvyo",cornflowerblue:"3xael",cornsilk:"9zjz0",crimson:"8l4xo",cyan:"1ekf",darkblue:"3v",darkcyan:"rkb",darkgoldenrod:"776yz",darkgray:"6mbhl",darkgreen:"jr4",darkgrey:"6mbhl",darkkhaki:"7ehkb",darkmagenta:"5f91n",darkolivegreen:"3bzfz",darkorange:"9yygw",darkorchid:"5z6x8",darkred:"5f8xs",darksalmon:"9441m",darkseagreen:"5lwgf",darkslateblue:"2th1n",darkslategray:"1ugcv",darkslategrey:"1ugcv",darkturquoise:"14up",darkviolet:"5rw7n",deeppink:"9yavn",deepskyblue:"11xb",dimgray:"442g9",dimgrey:"442g9",dodgerblue:"16xof",firebrick:"6y7tu",floralwhite:"9zkds",forestgreen:"1cisi",fuchsia:"9y70f",gainsboro:"8m8kc",ghostwhite:"9pq0v",goldenrod:"8j4f4",gold:"9zda8",gray:"50i2o",green:"pa8",greenyellow:"6senj",grey:"50i2o",honeydew:"9eiuo",hotpink:"9yrp0",indianred:"80gnw",indigo:"2xcoy",ivory:"9zldc",khaki:"9edu4",lavenderblush:"9ziet",lavender:"90c8q",lawngreen:"4vk74",lemonchiffon:"9zkct",lightblue:"6s73a",lightcoral:"9dtog",lightcyan:"8s1rz",lightgoldenrodyellow:"9sjiq",lightgray:"89jo3",lightgreen:"5nkwg",lightgrey:"89jo3",lightpink:"9z6wx",lightsalmon:"9z2ii",lightseagreen:"19xgq",lightskyblue:"5arju",lightslategray:"4nwk9",lightslategrey:"4nwk9",lightsteelblue:"6wau6",lightyellow:"9zlcw",lime:"1edc",limegreen:"1zcxe",linen:"9shk6",magenta:"9y70f",maroon:"4zsow",mediumaquamarine:"40eju",mediumblue:"5p",mediumorchid:"79qkz",mediumpurple:"5r3rv",mediumseagreen:"2d9ip",mediumslateblue:"4tcku",mediumspringgreen:"1di2",mediumturquoise:"2uabw",mediumvioletred:"7rn9h",midnightblue:"z980",mintcream:"9ljp6",mistyrose:"9zg0x",moccasin:"9zfzp",navajowhite:"9zest",navy:"3k",oldlace:"9wq92",olive:"50hz4",olivedrab:"472ub",orange:"9z3eo",orangered:"9ykg0",orchid:"8iu3a",palegoldenrod:"9bl4a",palegreen:"5yw0o",paleturquoise:"6v4ku",palevioletred:"8k8lv",papayawhip:"9zi6t",peachpuff:"9ze0p",peru:"80oqn",pink:"9z8wb",plum:"8nba5",powderblue:"6wgdi",purple:"4zssg",rebeccapurple:"3zk49",red:"9y6tc",rosybrown:"7cv4f",royalblue:"2jvtt",saddlebrown:"5fmkz",salmon:"9rvci",sandybrown:"9jn1c",seagreen:"1tdnb",seashell:"9zje6",sienna:"6973h",silver:"7ir40",skyblue:"5arjf",slateblue:"45e4t",slategray:"4e100",slategrey:"4e100",snow:"9zke2",springgreen:"1egv",steelblue:"2r1kk",tan:"87yx8",teal:"pds",thistle:"8ggk8",tomato:"9yqfb",turquoise:"2j4r4",violet:"9b10u",wheat:"9ld4j",white:"9zldr",whitesmoke:"9lhpx",yellow:"9zl6o",yellowgreen:"61fzm"},le=Math.round;function ce(e,t){const r=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],n=r.map(e=>parseFloat(e));for(let i=0;i<3;i+=1)n[i]=t(n[i]||0,r[i]||"",i);return r[3]?n[3]=r[3].includes("%")?n[3]/100:n[3]:n[3]=1,n}const ue=(e,t,r)=>0===r?e:e/100;function de(e,t){const r=t||255;return e>r?r:e<0?0:e}class pe{constructor(e){function t(t){return t[0]in e&&t[1]in e&&t[2]in e}if(c(this,"isValid",!0),c(this,"r",0),c(this,"g",0),c(this,"b",0),c(this,"a",1),c(this,"_h"),c(this,"_s"),c(this,"_l"),c(this,"_v"),c(this,"_max"),c(this,"_min"),c(this,"_brightness"),e)if("string"==typeof e){let t=function(e){return r.startsWith(e)};const r=e.trim();if(/^#?[A-F\d]{3,8}$/i.test(r))this.fromHexString(r);else if(t("rgb"))this.fromRgbString(r);else if(t("hsl"))this.fromHslString(r);else if(t("hsv")||t("hsb"))this.fromHsvString(r);else{const e=se[r.toLowerCase()];e&&this.fromHexString(parseInt(e,36).toString(16).padStart(6,"0"))}}else if(e instanceof pe)this.r=e.r,this.g=e.g,this.b=e.b,this.a=e.a,this._h=e._h,this._s=e._s,this._l=e._l,this._v=e._v;else if(t("rgb"))this.r=de(e.r),this.g=de(e.g),this.b=de(e.b),this.a="number"==typeof e.a?de(e.a,1):1;else if(t("hsl"))this.fromHsl(e);else{if(!t("hsv"))throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(e));this.fromHsv(e)}}setR(e){return this._sc("r",e)}setG(e){return this._sc("g",e)}setB(e){return this._sc("b",e)}setA(e){return this._sc("a",e,1)}setHue(e){const t=this.toHsv();return t.h=e,this._c(t)}getLuminance(){function e(e){const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}return.2126*e(this.r)+.7152*e(this.g)+.0722*e(this.b)}getHue(){if(void 0===this._h){const e=this.getMax()-this.getMin();this._h=0===e?0:le(60*(this.r===this.getMax()?(this.g-this.b)/e+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/e+2:(this.r-this.g)/e+4))}return this._h}getSaturation(){if(void 0===this._s){const e=this.getMax()-this.getMin();this._s=0===e?0:e/this.getMax()}return this._s}getLightness(){return void 0===this._l&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return void 0===this._v&&(this._v=this.getMax()/255),this._v}getBrightness(){return void 0===this._brightness&&(this._brightness=(299*this.r+587*this.g+114*this.b)/1e3),this._brightness}darken(e=10){const t=this.getHue(),r=this.getSaturation();let n=this.getLightness()-e/100;return n<0&&(n=0),this._c({h:t,s:r,l:n,a:this.a})}lighten(e=10){const t=this.getHue(),r=this.getSaturation();let n=this.getLightness()+e/100;return n>1&&(n=1),this._c({h:t,s:r,l:n,a:this.a})}mix(e,t=50){const r=this._c(e),n=t/100,i=e=>(r[e]-this[e])*n+this[e],a={r:le(i("r")),g:le(i("g")),b:le(i("b")),a:le(100*i("a"))/100};return this._c(a)}tint(e=10){return this.mix({r:255,g:255,b:255,a:1},e)}shade(e=10){return this.mix({r:0,g:0,b:0,a:1},e)}onBackground(e){const t=this._c(e),r=this.a+t.a*(1-this.a),n=e=>le((this[e]*this.a+t[e]*t.a*(1-this.a))/r);return this._c({r:n("r"),g:n("g"),b:n("b"),a:r})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}clone(){return this._c(this)}toHexString(){let e="#";const t=(this.r||0).toString(16);e+=2===t.length?t:"0"+t;const r=(this.g||0).toString(16);e+=2===r.length?r:"0"+r;const n=(this.b||0).toString(16);if(e+=2===n.length?n:"0"+n,"number"==typeof this.a&&this.a>=0&&this.a<1){const t=le(255*this.a).toString(16);e+=2===t.length?t:"0"+t}return e}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const e=this.getHue(),t=le(100*this.getSaturation()),r=le(100*this.getLightness());return 1!==this.a?`hsla(${e},${t}%,${r}%,${this.a})`:`hsl(${e},${t}%,${r}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return 1!==this.a?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(e,t,r){const n=this.clone();return n[e]=de(t,r),n}_c(e){return new this.constructor(e)}getMax(){return void 0===this._max&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return void 0===this._min&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(e){const t=e.replace("#","");function r(e,r){return parseInt(t[e]+t[r||e],16)}t.length<6?(this.r=r(0),this.g=r(1),this.b=r(2),this.a=t[3]?r(3)/255:1):(this.r=r(0,1),this.g=r(2,3),this.b=r(4,5),this.a=t[6]?r(6,7)/255:1)}fromHsl({h:e,s:t,l:r,a:n}){if(this._h=e%360,this._s=t,this._l=r,this.a="number"==typeof n?n:1,t<=0){const e=le(255*r);this.r=e,this.g=e,this.b=e}let i=0,a=0,o=0;const s=e/60,l=(1-Math.abs(2*r-1))*t,c=l*(1-Math.abs(s%2-1));s>=0&&s<1?(i=l,a=c):s>=1&&s<2?(i=c,a=l):s>=2&&s<3?(a=l,o=c):s>=3&&s<4?(a=c,o=l):s>=4&&s<5?(i=c,o=l):s>=5&&s<6&&(i=l,o=c);const u=r-l/2;this.r=le(255*(i+u)),this.g=le(255*(a+u)),this.b=le(255*(o+u))}fromHsv({h:e,s:t,v:r,a:n}){this._h=e%360,this._s=t,this._v=r,this.a="number"==typeof n?n:1;const i=le(255*r);if(this.r=i,this.g=i,this.b=i,t<=0)return;const a=e/60,o=Math.floor(a),s=a-o,l=le(r*(1-t)*255),c=le(r*(1-t*s)*255),u=le(r*(1-t*(1-s))*255);switch(o){case 0:this.g=u,this.b=l;break;case 1:this.r=c,this.b=l;break;case 2:this.r=l,this.b=u;break;case 3:this.r=l,this.g=c;break;case 4:this.r=u,this.g=l;break;default:this.g=l,this.b=c}}fromHsvString(e){const t=ce(e,ue);this.fromHsv({h:t[0],s:t[1],v:t[2],a:t[3]})}fromHslString(e){const t=ce(e,ue);this.fromHsl({h:t[0],s:t[1],l:t[2],a:t[3]})}fromRgbString(e){const t=ce(e,(e,t)=>t.includes("%")?le(e/100*255):e);this.r=t[0],this.g=t[1],this.b=t[2],this.a=t[3]}}const he=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function qe(e,t,r){let n;return n=Math.round(e.h)>=60&&Math.round(e.h)<=240?r?Math.round(e.h)-2*t:Math.round(e.h)+2*t:r?Math.round(e.h)+2*t:Math.round(e.h)-2*t,n<0?n+=360:n>=360&&(n-=360),n}function fe(e,t,r){if(0===e.h&&0===e.s)return e.s;let n;return n=r?e.s-.16*t:4===t?e.s+.16:e.s+.05*t,n>1&&(n=1),r&&5===t&&n>.1&&(n=.1),n<.06&&(n=.06),Math.round(100*n)/100}function me(e,t,r){let n;return n=r?e.v+.05*t:e.v-.15*t,n=Math.max(0,Math.min(1,n)),Math.round(100*n)/100}const Ve=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Ve.primary=Ve[5];const ge="data-rc-order",ve="data-rc-priority",be=new Map;function ye({mark:e}={}){return e?e.startsWith("data-")?e:`data-${e}`:"rc-util-key"}function Se(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function Ae(e){return Array.from((be.get(e)||e).children).filter(e=>"STYLE"===e.tagName)}function we(e,t={}){if("undefined"==typeof window||!window.document||!window.document.createElement)return null;const{csp:r,prepend:n,priority:i=0}=t,a=function(e){return"queue"===e?"prependQueue":e?"prepend":"append"}(n),o="prependQueue"===a,s=document.createElement("style");s.setAttribute(ge,a),o&&i&&s.setAttribute(ve,`${i}`),(null==r?void 0:r.nonce)&&(s.nonce=null==r?void 0:r.nonce),s.innerHTML=e;const l=Se(t),{firstChild:c}=l;if(n){if(o){const e=(t.styles||Ae(l)).filter(e=>{if(!["prepend","prependQueue"].includes(e.getAttribute(ge)))return!1;const t=Number(e.getAttribute(ve)||0);return i>=t});if(e.length)return l.insertBefore(s,e[e.length-1].nextSibling),s}l.insertBefore(s,c)}else l.appendChild(s);return s}function Ue(e){var t;return null==(t=null==e?void 0:e.getRootNode)?void 0:t.call(e)}let xe={};const Ce=[];function Re(e,t){"production"===process.env.NODE_ENV||e||void 0===console||Ce.reduce((e,t)=>t(e??"","warning"),t)}function Ee(e,t){"production"===process.env.NODE_ENV||e||void 0===console||Ce.reduce((e,t)=>t(e??"","note"),t)}function Te(e,t,r){t||xe[r]||(e(!1,r),xe[r]=!0)}function ke(e,t){Te(Re,e,t)}function Fe(e){return"object"==typeof e&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"==typeof e.icon||"function"==typeof e.icon)}function We(e={}){return Object.keys(e).reduce((t,r)=>{const n=e[r];var i;return"class"===r?(t.className=n,delete t.class):(delete t[r],t[(i=r,i.replace(/-(.)/g,(e,t)=>t.toUpperCase()))]=n),t},{})}function Ne(e,r,n){return n?t.createElement(e.tag,{key:r,...We(e.attrs),...n},(e.children||[]).map((t,n)=>Ne(t,`${r}-${e.tag}-${n}`))):t.createElement(e.tag,{key:r,...We(e.attrs)},(e.children||[]).map((t,n)=>Ne(t,`${r}-${e.tag}-${n}`)))}function Ke(e){return function(e,t={}){const r=[],n=new pe(e),i=n.toHsv();for(let a=5;a>0;a-=1){const e=new pe({h:qe(i,a,!0),s:fe(i,a,!0),v:me(i,a,!0)});r.push(e)}r.push(n);for(let a=1;a<=4;a+=1){const e=new pe({h:qe(i,a),s:fe(i,a),v:me(i,a)});r.push(e)}return"dark"===t.theme?he.map(({index:e,amount:n})=>new pe(t.backgroundColor||"#141414").mix(r[e],n).toHexString()):r.map(e=>e.toHexString())}(e)[0]}function Oe(e){return e?Array.isArray(e)?e:[e]:[]}ke.preMessage=e=>{Ce.push(e)},ke.resetWarned=function(){xe={}},ke.noteOnce=function(e,t){Te(Ee,e,t)};const Pe={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1},Ie=e=>{const{icon:r,className:n,onClick:i,style:a,primaryColor:o,secondaryColor:s,...l}=e,c=p.useRef(null);let u=Pe;if(o&&(u={primaryColor:o,secondaryColor:s||Ke(o)}),(e=>{const{csp:r,prefixCls:n,layer:i}=t.useContext(ae);let a="\n.anticon {\n display: inline-flex;\n align-items: center;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n vertical-align: inherit;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n";n&&(a=a.replace(/anticon/g,n)),i&&(a=`@layer ${i} {\n${a}\n}`),t.useEffect(()=>{const t=function(e){return Ue(e)instanceof ShadowRoot}(n=e.current)?Ue(n):null;var n;!function(e,t,r={}){var n,i,a;const o=Se(r),s=Ae(o),l={...r,styles:s};!function(e,t){const r=be.get(e);if(!r||!function(e,t){if(!e)return!1;if(e.contains)return e.contains(t);let r=t;for(;r;){if(r===e)return!0;r=r.parentNode}return!1}(document,r)){const r=we("",t),{parentNode:n}=r;be.set(e,n),e.removeChild(r)}}(o,l);const c=function(e,t={}){let{styles:r}=t;return r||(r=Ae(Se(t))),r.find(r=>r.getAttribute(ye(t))===e)}(t,l);if(c)return(null==(n=l.csp)?void 0:n.nonce)&&c.nonce!==(null==(i=l.csp)?void 0:i.nonce)&&(c.nonce=null==(a=l.csp)?void 0:a.nonce),c.innerHTML!==e&&(c.innerHTML=e),c;const u=we(e,l);u.setAttribute(ye(l),t)}(a,"@ant-design-icons",{prepend:!i,csp:r,attachTo:t})},[])})(c),ke(Fe(r),`[@ant-design/icons] icon should be icon definiton, but got ${r}`),!Fe(r))return null;let d=r;return d&&"function"==typeof d.icon&&(d={...d,icon:d.icon(u.primaryColor,u.secondaryColor)}),Ne(d.icon,`svg-${d.name}`,{className:n,onClick:i,style:a,"data-icon":d.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",...l,ref:c})};function Le(e){const[t,r]=Oe(e);return Ie.setTwoToneColors({primaryColor:t,secondaryColor:r})}function Be(){return Be=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Be.apply(this,arguments)}Ie.displayName="IconReact",Ie.getTwoToneColors=function(){return{...Pe}},Ie.setTwoToneColors=function({primaryColor:e,secondaryColor:t}){Pe.primaryColor=e,Pe.secondaryColor=t||Ke(e),Pe.calculated=!!t},Le(Ve.primary);const De=p.forwardRef((e,t)=>{const{className:r,icon:n,spin:i,rotate:a,tabIndex:o,onClick:s,twoToneColor:l,...c}=e,{prefixCls:u="anticon",rootClassName:d}=p.useContext(ae),h=function(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=oe(e))&&(n&&(n+=" "),n+=t);return n}(d,u,{[`${u}-${n.name}`]:!!n.name,[`${u}-spin`]:!!i||"loading"===n.name},r);let q=o;void 0===q&&s&&(q=-1);const f=a?{msTransform:`rotate(${a}deg)`,transform:`rotate(${a}deg)`}:void 0,[m,V]=Oe(l);return p.createElement("span",Be({role:"img","aria-label":n.name},c,{ref:t,tabIndex:q,onClick:s,className:h}),p.createElement(Ie,{icon:n,primaryColor:m,secondaryColor:V,style:f}))});De.getTwoToneColor=function(){const e=Ie.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},De.setTwoToneColor=Le,"production"!==process.env.NODE_ENV&&(De.displayName="AntdIcon");var Xe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M120 230h496c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm0 424h496c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm784 140H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-424H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z"}}]},name:"align-left",theme:"outlined"};function je(){return je=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},je.apply(this,arguments)}const Me=(e,t)=>p.createElement(De,je({},e,{ref:t,icon:Xe})),ze=p.forwardRef(Me);"production"!==process.env.NODE_ENV&&(ze.displayName="AlignLeftOutlined");var Ge={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M715.8 493.5L335 165.1c-14.2-12.2-35-1.2-35 18.5v656.8c0 19.7 20.8 30.7 35 18.5l380.8-328.4c10.9-9.4 10.9-27.6 0-37z"}}]},name:"caret-right",theme:"outlined"};function Ze(){return Ze=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ze.apply(this,arguments)}const He=(e,t)=>p.createElement(De,Ze({},e,{ref:t,icon:Ge})),Ye=p.forwardRef(He);"production"!==process.env.NODE_ENV&&(Ye.displayName="CaretRightOutlined");var Qe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"};function Je(){return Je=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Je.apply(this,arguments)}const _e=(e,t)=>p.createElement(De,Je({},e,{ref:t,icon:Qe})),$e=p.forwardRef(_e);"production"!==process.env.NODE_ENV&&($e.displayName="CheckCircleFilled");var et={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"};function tt(){return tt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},tt.apply(this,arguments)}const rt=(e,t)=>p.createElement(De,tt({},e,{ref:t,icon:et})),nt=p.forwardRef(rt);"production"!==process.env.NODE_ENV&&(nt.displayName="ClockCircleOutlined");var it={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"};function at(){return at=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},at.apply(this,arguments)}const ot=(e,t)=>p.createElement(De,at({},e,{ref:t,icon:it})),st=p.forwardRef(ot);"production"!==process.env.NODE_ENV&&(st.displayName="CloseCircleFilled");var lt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M704 446H320c-4.4 0-8 3.6-8 8v402c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8V454c0-4.4-3.6-8-8-8zm-328 64h272v117H376V510zm272 290H376V683h272v117z"}},{tag:"path",attrs:{d:"M424 748a32 32 0 1064 0 32 32 0 10-64 0zm0-178a32 32 0 1064 0 32 32 0 10-64 0z"}},{tag:"path",attrs:{d:"M811.4 368.9C765.6 248 648.9 162 512.2 162S258.8 247.9 213 368.8C126.9 391.5 63.5 470.2 64 563.6 64.6 668 145.6 752.9 247.6 762c4.7.4 8.7-3.3 8.7-8v-60.4c0-4-3-7.4-7-7.9-27-3.4-52.5-15.2-72.1-34.5-24-23.5-37.2-55.1-37.2-88.6 0-28 9.1-54.4 26.2-76.4 16.7-21.4 40.2-36.9 66.1-43.7l37.9-10 13.9-36.7c8.6-22.8 20.6-44.2 35.7-63.5 14.9-19.2 32.6-36 52.4-50 41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.3c19.9 14 37.5 30.8 52.4 50 15.1 19.3 27.1 40.7 35.7 63.5l13.8 36.6 37.8 10c54.2 14.4 92.1 63.7 92.1 120 0 33.6-13.2 65.1-37.2 88.6-19.5 19.2-44.9 31.1-71.9 34.5-4 .5-6.9 3.9-6.9 7.9V754c0 4.7 4.1 8.4 8.8 8 101.7-9.2 182.5-94 183.2-198.2.6-93.4-62.7-172.1-148.6-194.9z"}}]},name:"cloud-server",theme:"outlined"};function ct(){return ct=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ct.apply(this,arguments)}const ut=(e,t)=>p.createElement(De,ct({},e,{ref:t,icon:lt})),dt=p.forwardRef(ut);"production"!==process.env.NODE_ENV&&(dt.displayName="CloudServerOutlined");var pt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 140H96c-17.7 0-32 14.3-32 32v496c0 17.7 14.3 32 32 32h380v112H304c-8.8 0-16 7.2-16 16v48c0 4.4 3.6 8 8 8h432c4.4 0 8-3.6 8-8v-48c0-8.8-7.2-16-16-16H548V700h380c17.7 0 32-14.3 32-32V172c0-17.7-14.3-32-32-32zm-40 488H136V212h752v416z"}}]},name:"desktop",theme:"outlined"};function ht(){return ht=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ht.apply(this,arguments)}const qt=(e,t)=>p.createElement(De,ht({},e,{ref:t,icon:pt})),ft=p.forwardRef(qt);"production"!==process.env.NODE_ENV&&(ft.displayName="DesktopOutlined");var mt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"};function Vt(){return Vt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Vt.apply(this,arguments)}const gt=(e,t)=>p.createElement(De,Vt({},e,{ref:t,icon:mt})),vt=p.forwardRef(gt);"production"!==process.env.NODE_ENV&&(vt.displayName="EnterOutlined");var bt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-600 72h560v208H232V136zm560 480H232V408h560v208zm0 272H232V680h560v208zM496 208H312c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM312 544h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H312c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zm328 244a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"hdd",theme:"outlined"};function yt(){return yt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},yt.apply(this,arguments)}const St=(e,t)=>p.createElement(De,yt({},e,{ref:t,icon:bt})),At=p.forwardRef(St);"production"!==process.env.NODE_ENV&&(At.displayName="HddOutlined");var wt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm144.1 454.9L437.7 677.8a8.02 8.02 0 01-12.7-6.5V353.7a8 8 0 0112.7-6.5L656.1 506a7.9 7.9 0 010 12.9z"}}]},name:"play-circle",theme:"filled"};function Ut(){return Ut=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ut.apply(this,arguments)}const xt=(e,t)=>p.createElement(De,Ut({},e,{ref:t,icon:wt})),Ct=p.forwardRef(xt);"production"!==process.env.NODE_ENV&&(Ct.displayName="PlayCircleFilled");var Rt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M847.9 592H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h605.2L612.9 851c-4.1 5.2-.4 13 6.3 13h72.5c4.9 0 9.5-2.2 12.6-6.1l168.8-214.1c16.5-21 1.6-51.8-25.2-51.8zM872 356H266.8l144.3-183c4.1-5.2.4-13-6.3-13h-72.5c-4.9 0-9.5 2.2-12.6 6.1L150.9 380.2c-16.5 21-1.6 51.8 25.1 51.8h696c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"swap",theme:"outlined"};function Et(){return Et=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Et.apply(this,arguments)}const Tt=(e,t)=>p.createElement(De,Et({},e,{ref:t,icon:Rt})),kt=p.forwardRef(Tt);"production"!==process.env.NODE_ENV&&(kt.displayName="SwapOutlined");var Ft={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M848 359.3H627.7L825.8 109c4.1-5.3.4-13-6.3-13H436c-2.8 0-5.5 1.5-6.9 4L170 547.5c-3.1 5.3.7 12 6.9 12h174.4l-89.4 357.6c-1.9 7.8 7.5 13.3 13.3 7.7L853.5 373c5.2-4.9 1.7-13.7-5.5-13.7zM378.2 732.5l60.3-241H281.1l189.6-327.4h224.6L487 427.4h211L378.2 732.5z"}}]},name:"thunderbolt",theme:"outlined"};function Wt(){return Wt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Wt.apply(this,arguments)}const Nt=(e,t)=>p.createElement(De,Wt({},e,{ref:t,icon:Ft})),Kt=p.forwardRef(Nt);"production"!==process.env.NODE_ENV&&(Kt.displayName="ThunderboltOutlined");var Ot={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 302.3L784 376V224c0-35.3-28.7-64-64-64H128c-35.3 0-64 28.7-64 64v576c0 35.3 28.7 64 64 64h592c35.3 0 64-28.7 64-64V648l128 73.7c21.3 12.3 48-3.1 48-27.6V330c0-24.6-26.7-40-48-27.7zM328 352c0 4.4-3.6 8-8 8H208c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h112c4.4 0 8 3.6 8 8v48zm560 273l-104-59.8V458.9L888 399v226z"}}]},name:"video-camera",theme:"filled"};function Pt(){return Pt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Pt.apply(this,arguments)}const It=(e,t)=>p.createElement(De,Pt({},e,{ref:t,icon:Ot})),Lt=p.forwardRef(It);"production"!==process.env.NODE_ENV&&(Lt.displayName="VideoCameraFilled");var Bt,Dt,Xt={exports:{}},jt={},Mt={};"production"===process.env.NODE_ENV?Xt.exports=function(){if(Bt)return jt;Bt=1;var e,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),q=Symbol.for("react.offscreen");function f(e){if("object"==typeof e&&null!==e){var q=e.$$typeof;switch(q){case t:switch(e=e.type){case n:case a:case i:case u:case d:return e;default:switch(e=e&&e.$$typeof){case l:case s:case c:case h:case p:case o:return e;default:return q}}case r:return q}}}return e=Symbol.for("react.module.reference"),jt.ContextConsumer=s,jt.ContextProvider=o,jt.Element=t,jt.ForwardRef=c,jt.Fragment=n,jt.Lazy=h,jt.Memo=p,jt.Portal=r,jt.Profiler=a,jt.StrictMode=i,jt.Suspense=u,jt.SuspenseList=d,jt.isAsyncMode=function(){return!1},jt.isConcurrentMode=function(){return!1},jt.isContextConsumer=function(e){return f(e)===s},jt.isContextProvider=function(e){return f(e)===o},jt.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},jt.isForwardRef=function(e){return f(e)===c},jt.isFragment=function(e){return f(e)===n},jt.isLazy=function(e){return f(e)===h},jt.isMemo=function(e){return f(e)===p},jt.isPortal=function(e){return f(e)===r},jt.isProfiler=function(e){return f(e)===a},jt.isStrictMode=function(e){return f(e)===i},jt.isSuspense=function(e){return f(e)===u},jt.isSuspenseList=function(e){return f(e)===d},jt.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===n||t===a||t===i||t===u||t===d||t===q||"object"==typeof t&&null!==t&&(t.$$typeof===h||t.$$typeof===p||t.$$typeof===o||t.$$typeof===s||t.$$typeof===c||t.$$typeof===e||void 0!==t.getModuleId)},jt.typeOf=f,jt}():Xt.exports=(Dt||(Dt=1,"production"!==process.env.NODE_ENV&&function(){var e,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),q=Symbol.for("react.offscreen");function f(e){if("object"==typeof e&&null!==e){var q=e.$$typeof;switch(q){case t:var f=e.type;switch(f){case n:case a:case i:case u:case d:return f;default:var m=f&&f.$$typeof;switch(m){case l:case s:case c:case h:case p:case o:return m;default:return q}}case r:return q}}}e=Symbol.for("react.module.reference");var m=s,V=o,g=t,v=c,b=n,y=h,S=p,A=r,w=a,U=i,x=u,C=d,R=!1,E=!1;Mt.ContextConsumer=m,Mt.ContextProvider=V,Mt.Element=g,Mt.ForwardRef=v,Mt.Fragment=b,Mt.Lazy=y,Mt.Memo=S,Mt.Portal=A,Mt.Profiler=w,Mt.StrictMode=U,Mt.Suspense=x,Mt.SuspenseList=C,Mt.isAsyncMode=function(e){return R||(R=!0),!1},Mt.isConcurrentMode=function(e){return E||(E=!0),!1},Mt.isContextConsumer=function(e){return f(e)===s},Mt.isContextProvider=function(e){return f(e)===o},Mt.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Mt.isForwardRef=function(e){return f(e)===c},Mt.isFragment=function(e){return f(e)===n},Mt.isLazy=function(e){return f(e)===h},Mt.isMemo=function(e){return f(e)===p},Mt.isPortal=function(e){return f(e)===r},Mt.isProfiler=function(e){return f(e)===a},Mt.isStrictMode=function(e){return f(e)===i},Mt.isSuspense=function(e){return f(e)===u},Mt.isSuspenseList=function(e){return f(e)===d},Mt.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===n||t===a||t===i||t===u||t===d||t===q||"object"==typeof t&&null!==t&&(t.$$typeof===h||t.$$typeof===p||t.$$typeof===o||t.$$typeof===s||t.$$typeof===c||t.$$typeof===e||void 0!==t.getModuleId)},Mt.typeOf=f}()),Mt);var zt=Xt.exports;function Gt(){}function Zt(){}function Ht(e){const t=[],r=String(e||"");let n=r.indexOf(","),i=0,a=!1;for(;!a;){-1===n&&(n=r.length,a=!0);const e=r.slice(i,n).trim();!e&&a||t.push(e),i=n+1,n=r.indexOf(",",i)}return t}const Yt=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Qt=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Jt={};function _t(e,t){return(Jt.jsx?Qt:Yt).test(e)}const $t=/[ \t\n\f\r]/g;function er(e){return""===e.replace($t,"")}let tr=class{constructor(e,t,r){this.normal=t,this.property=e,r&&(this.space=r)}};function rr(e,t){const r={},n={};for(const i of e)Object.assign(r,i.property),Object.assign(n,i.normal);return new tr(r,n,t)}function nr(e){return e.toLowerCase()}tr.prototype.normal={},tr.prototype.property={},tr.prototype.space=void 0;let ir=class{constructor(e,t){this.attribute=t,this.property=e}};ir.prototype.attribute="",ir.prototype.booleanish=!1,ir.prototype.boolean=!1,ir.prototype.commaOrSpaceSeparated=!1,ir.prototype.commaSeparated=!1,ir.prototype.defined=!1,ir.prototype.mustUseProperty=!1,ir.prototype.number=!1,ir.prototype.overloadedBoolean=!1,ir.prototype.property="",ir.prototype.spaceSeparated=!1,ir.prototype.space=void 0;let ar=0;const or=hr(),sr=hr(),lr=hr(),cr=hr(),ur=hr(),dr=hr(),pr=hr();function hr(){return 2**++ar}const qr=Object.freeze(Object.defineProperty({__proto__:null,boolean:or,booleanish:sr,commaOrSpaceSeparated:pr,commaSeparated:dr,number:cr,overloadedBoolean:lr,spaceSeparated:ur},Symbol.toStringTag,{value:"Module"})),fr=Object.keys(qr);let mr=class extends ir{constructor(e,t,r,n){let i=-1;if(super(e,t),Vr(this,"space",n),"number"==typeof r)for(;++i<fr.length;){const e=fr[i];Vr(this,fr[i],(r&qr[e])===qr[e])}}};function Vr(e,t,r){r&&(e[t]=r)}function gr(e){const t={},r={};for(const[n,i]of Object.entries(e.properties)){const a=new mr(n,e.transform(e.attributes||{},n),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(n)&&(a.mustUseProperty=!0),t[n]=a,r[nr(n)]=n,r[nr(a.attribute)]=n}return new tr(t,r,e.space)}mr.prototype.defined=!0;const vr=gr({properties:{ariaActiveDescendant:null,ariaAtomic:sr,ariaAutoComplete:null,ariaBusy:sr,ariaChecked:sr,ariaColCount:cr,ariaColIndex:cr,ariaColSpan:cr,ariaControls:ur,ariaCurrent:null,ariaDescribedBy:ur,ariaDetails:null,ariaDisabled:sr,ariaDropEffect:ur,ariaErrorMessage:null,ariaExpanded:sr,ariaFlowTo:ur,ariaGrabbed:sr,ariaHasPopup:null,ariaHidden:sr,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ur,ariaLevel:cr,ariaLive:null,ariaModal:sr,ariaMultiLine:sr,ariaMultiSelectable:sr,ariaOrientation:null,ariaOwns:ur,ariaPlaceholder:null,ariaPosInSet:cr,ariaPressed:sr,ariaReadOnly:sr,ariaRelevant:null,ariaRequired:sr,ariaRoleDescription:ur,ariaRowCount:cr,ariaRowIndex:cr,ariaRowSpan:cr,ariaSelected:sr,ariaSetSize:cr,ariaSort:null,ariaValueMax:cr,ariaValueMin:cr,ariaValueNow:cr,ariaValueText:null,role:null},transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase()});function br(e,t){return t in e?e[t]:t}function yr(e,t){return br(e,t.toLowerCase())}const Sr=gr({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:dr,acceptCharset:ur,accessKey:ur,action:null,allow:null,allowFullScreen:or,allowPaymentRequest:or,allowUserMedia:or,alt:null,as:null,async:or,autoCapitalize:null,autoComplete:ur,autoFocus:or,autoPlay:or,blocking:ur,capture:null,charSet:null,checked:or,cite:null,className:ur,cols:cr,colSpan:null,content:null,contentEditable:sr,controls:or,controlsList:ur,coords:cr|dr,crossOrigin:null,data:null,dateTime:null,decoding:null,default:or,defer:or,dir:null,dirName:null,disabled:or,download:lr,draggable:sr,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:or,formTarget:null,headers:ur,height:cr,hidden:lr,high:cr,href:null,hrefLang:null,htmlFor:ur,httpEquiv:ur,id:null,imageSizes:null,imageSrcSet:null,inert:or,inputMode:null,integrity:null,is:null,isMap:or,itemId:null,itemProp:ur,itemRef:ur,itemScope:or,itemType:ur,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:or,low:cr,manifest:null,max:null,maxLength:cr,media:null,method:null,min:null,minLength:cr,multiple:or,muted:or,name:null,nonce:null,noModule:or,noValidate:or,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:or,optimum:cr,pattern:null,ping:ur,placeholder:null,playsInline:or,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:or,referrerPolicy:null,rel:ur,required:or,reversed:or,rows:cr,rowSpan:cr,sandbox:ur,scope:null,scoped:or,seamless:or,selected:or,shadowRootClonable:or,shadowRootDelegatesFocus:or,shadowRootMode:null,shape:null,size:cr,sizes:null,slot:null,span:cr,spellCheck:sr,src:null,srcDoc:null,srcLang:null,srcSet:null,start:cr,step:null,style:null,tabIndex:cr,target:null,title:null,translate:null,type:null,typeMustMatch:or,useMap:null,value:sr,width:cr,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ur,axis:null,background:null,bgColor:null,border:cr,borderColor:null,bottomMargin:cr,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:or,declare:or,event:null,face:null,frame:null,frameBorder:null,hSpace:cr,leftMargin:cr,link:null,longDesc:null,lowSrc:null,marginHeight:cr,marginWidth:cr,noResize:or,noHref:or,noShade:or,noWrap:or,object:null,profile:null,prompt:null,rev:null,rightMargin:cr,rules:null,scheme:null,scrolling:sr,standby:null,summary:null,text:null,topMargin:cr,valueType:null,version:null,vAlign:null,vLink:null,vSpace:cr,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:or,disableRemotePlayback:or,prefix:null,property:null,results:cr,security:null,unselectable:null},space:"html",transform:yr}),Ar=gr({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:pr,accentHeight:cr,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:cr,amplitude:cr,arabicForm:null,ascent:cr,attributeName:null,attributeType:null,azimuth:cr,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:cr,by:null,calcMode:null,capHeight:cr,className:ur,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:cr,diffuseConstant:cr,direction:null,display:null,dur:null,divisor:cr,dominantBaseline:null,download:or,dx:null,dy:null,edgeMode:null,editable:null,elevation:cr,enableBackground:null,end:null,event:null,exponent:cr,externalResourcesRequired:null,fill:null,fillOpacity:cr,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:dr,g2:dr,glyphName:dr,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:cr,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:cr,horizOriginX:cr,horizOriginY:cr,id:null,ideographic:cr,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:cr,k:cr,k1:cr,k2:cr,k3:cr,k4:cr,kernelMatrix:pr,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:cr,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:cr,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:cr,overlineThickness:cr,paintOrder:null,panose1:null,path:null,pathLength:cr,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ur,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:cr,pointsAtY:cr,pointsAtZ:cr,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:pr,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:pr,rev:pr,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:pr,requiredFeatures:pr,requiredFonts:pr,requiredFormats:pr,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:cr,specularExponent:cr,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:cr,strikethroughThickness:cr,string:null,stroke:null,strokeDashArray:pr,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:cr,strokeOpacity:cr,strokeWidth:null,style:null,surfaceScale:cr,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:pr,tabIndex:cr,tableValues:null,target:null,targetX:cr,targetY:cr,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:pr,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:cr,underlineThickness:cr,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:cr,values:null,vAlphabetic:cr,vMathematical:cr,vectorEffect:null,vHanging:cr,vIdeographic:cr,version:null,vertAdvY:cr,vertOriginX:cr,vertOriginY:cr,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:cr,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:br}),wr=gr({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase()}),Ur=gr({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:yr}),xr=gr({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase()}),Cr={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},Rr=/[A-Z]/g,Er=/-[a-z]/g,Tr=/^data[-\w.:]+$/i;function kr(e,t){const r=nr(t);let n=t,i=ir;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&"data"===r.slice(0,4)&&Tr.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace(Er,Wr);n="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!Er.test(e)){let r=e.replace(Rr,Fr);"-"!==r.charAt(0)&&(r="-"+r),t="data"+r}}i=mr}return new i(n,t)}function Fr(e){return"-"+e.toLowerCase()}function Wr(e){return e.charAt(1).toUpperCase()}const Nr=rr([vr,Sr,wr,Ur,xr],"html"),Kr=rr([vr,Ar,wr,Ur,xr],"svg");function Or(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}var Pr={},Ir=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Lr=/\n/g,Br=/^\s*/,Dr=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Xr=/^:\s*/,jr=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Mr=/^[;\s]*/,zr=/^\s+|\s+$/g,Gr="";function Zr(e){return e?e.replace(zr,Gr):Gr}var Hr=q&&q.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Pr,"__esModule",{value:!0}),Pr.default=function(e,t){let r=null;if(!e||"string"!=typeof e)return r;const n=(0,Yr.default)(e),i="function"==typeof t;return n.forEach(e=>{if("declaration"!==e.type)return;const{property:n,value:a}=e;i?t(n,a,e):a&&(r=r||{},r[n]=a)}),r};const Yr=Hr(function(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var r=1,n=1;function i(e){var t=e.match(Lr);t&&(r+=t.length);var i=e.lastIndexOf("\n");n=~i?e.length-i:n+e.length}function a(){var e={line:r,column:n};return function(t){return t.position=new o(e),c(),t}}function o(e){this.start=e,this.end={line:r,column:n},this.source=t.source}function s(i){var a=new Error(t.source+":"+r+":"+n+": "+i);if(a.reason=i,a.filename=t.source,a.line=r,a.column=n,a.source=e,!t.silent)throw a}function l(t){var r=t.exec(e);if(r){var n=r[0];return i(n),e=e.slice(n.length),r}}function c(){l(Br)}function u(e){var t;for(e=e||[];t=d();)!1!==t&&e.push(t);return e}function d(){var t=a();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var r=2;Gr!=e.charAt(r)&&("*"!=e.charAt(r)||"/"!=e.charAt(r+1));)++r;if(r+=2,Gr===e.charAt(r-1))return s("End of comment missing");var o=e.slice(2,r-2);return n+=2,i(o),e=e.slice(r),n+=2,t({type:"comment",comment:o})}}function p(){var e=a(),t=l(Dr);if(t){if(d(),!l(Xr))return s("property missing ':'");var r=l(jr),n=e({type:"declaration",property:Zr(t[0].replace(Ir,Gr)),value:r?Zr(r[0].replace(Ir,Gr)):Gr});return l(Mr),n}}return o.prototype.content=e,c(),function(){var e,t=[];for(u(t);e=p();)!1!==e&&(t.push(e),u(t));return t}()});var Qr={};Object.defineProperty(Qr,"__esModule",{value:!0}),Qr.camelCase=void 0;var Jr=/^--[a-zA-Z0-9_-]+$/,_r=/-([a-z])/g,$r=/^[^-]+$/,en=/^-(webkit|moz|ms|o|khtml)-/,tn=/^-(ms)-/,rn=function(e,t){return t.toUpperCase()},nn=function(e,t){return"".concat(t,"-")};Qr.camelCase=function(e,t){return void 0===t&&(t={}),function(e){return!e||$r.test(e)||Jr.test(e)}(e)?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(tn,nn):e.replace(en,nn)).replace(_r,rn))};var an=(q&&q.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(Pr),on=Qr;function sn(e,t){var r={};return e&&"string"==typeof e?((0,an.default)(e,function(e,n){e&&n&&(r[(0,on.camelCase)(e,t)]=n)}),r):r}sn.default=sn;const ln=f(sn),cn=dn("end"),un=dn("start");function dn(e){return function(t){const r=t&&t.position&&t.position[e]||{};if("number"==typeof r.line&&r.line>0&&"number"==typeof r.column&&r.column>0)return{line:r.line,column:r.column,offset:"number"==typeof r.offset&&r.offset>-1?r.offset:void 0}}}function pn(e){return e&&"object"==typeof e?"position"in e||"type"in e?qn(e.position):"start"in e||"end"in e?qn(e):"line"in e||"column"in e?hn(e):"":""}function hn(e){return fn(e&&e.line)+":"+fn(e&&e.column)}function qn(e){return hn(e&&e.start)+"-"+hn(e&&e.end)}function fn(e){return e&&"number"==typeof e?e:1}class mn extends Error{constructor(e,t,r){super(),"string"==typeof t&&(r=t,t=void 0);let n="",i={},a=!1;if(t&&(i="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"==typeof e?n=e:!i.cause&&e&&(a=!0,n=e.message,i.cause=e),!i.ruleId&&!i.source&&"string"==typeof r){const e=r.indexOf(":");-1===e?i.ruleId=r:(i.source=r.slice(0,e),i.ruleId=r.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){const e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}const o=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file="",this.message=n,this.line=o?o.line:void 0,this.name=pn(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=a&&i.cause&&"string"==typeof i.cause.stack?i.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}mn.prototype.file="",mn.prototype.name="",mn.prototype.reason="",mn.prototype.message="",mn.prototype.stack="",mn.prototype.column=void 0,mn.prototype.line=void 0,mn.prototype.ancestors=void 0,mn.prototype.cause=void 0,mn.prototype.fatal=void 0,mn.prototype.place=void 0,mn.prototype.ruleId=void 0,mn.prototype.source=void 0;const Vn={}.hasOwnProperty,gn=new Map,vn=/[A-Z]/g,bn=new Set(["table","tbody","thead","tfoot","tr"]),yn=new Set(["td","th"]),Sn="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function An(e,t,r){return"element"===t.type?function(e,t,r){const n=e.schema;let i=n;"svg"===t.tagName.toLowerCase()&&"html"===n.space&&(i=Kr,e.schema=i),e.ancestors.push(t);const a=Rn(e,t.tagName,!1),o=function(e,t){const r={};let n,i;for(i in t.properties)if("children"!==i&&Vn.call(t.properties,i)){const a=Cn(e,i,t.properties[i]);if(a){const[i,o]=a;e.tableCellAlignToStyle&&"align"===i&&"string"==typeof o&&yn.has(t.tagName)?n=o:r[i]=o}}return n&&((r.style||(r.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=n),r}(e,t);let s=xn(e,t);return bn.has(t.tagName)&&(s=s.filter(function(e){return"string"!=typeof e||!("object"==typeof(t=e)?"text"===t.type&&er(t.value):er(t));var t})),wn(e,o,a,t),Un(o,s),e.ancestors.pop(),e.schema=n,e.create(t,a,o,r)}(e,t,r):"mdxFlowExpression"===t.type||"mdxTextExpression"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}En(e,t.position)}(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?function(e,t,r){const n=e.schema;let i=n;"svg"===t.name&&"html"===n.space&&(i=Kr,e.schema=i),e.ancestors.push(t);const a=null===t.name?e.Fragment:Rn(e,t.name,!0),o=function(e,t){const r={};for(const n of t.attributes)if("mdxJsxExpressionAttribute"===n.type)if(n.data&&n.data.estree&&e.evaluater){const t=n.data.estree.body[0];Gt(t.type);const i=t.expression;Gt(i.type);const a=i.properties[0];Gt(a.type),Object.assign(r,e.evaluater.evaluateExpression(a.argument))}else En(e,t.position);else{const i=n.name;let a;if(n.value&&"object"==typeof n.value)if(n.value.data&&n.value.data.estree&&e.evaluater){const t=n.value.data.estree.body[0];Gt(t.type),a=e.evaluater.evaluateExpression(t.expression)}else En(e,t.position);else a=null===n.value||n.value;r[i]=a}return r}(e,t),s=xn(e,t);return wn(e,o,a,t),Un(o,s),e.ancestors.pop(),e.schema=n,e.create(t,a,o,r)}(e,t,r):"mdxjsEsm"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);En(e,t.position)}(e,t):"root"===t.type?function(e,t,r){const n={};return Un(n,xn(e,t)),e.create(t,e.Fragment,n,r)}(e,t,r):"text"===t.type?function(e,t){return t.value}(0,t):void 0}function wn(e,t,r,n){"string"!=typeof r&&r!==e.Fragment&&e.passNode&&(t.node=n)}function Un(e,t){if(t.length>0){const r=t.length>1?t:t[0];r&&(e.children=r)}}function xn(e,t){const r=[];let n=-1;const i=e.passKeys?new Map:gn;for(;++n<t.children.length;){const a=t.children[n];let o;if(e.passKeys){const e="element"===a.type?a.tagName:"mdxJsxFlowElement"===a.type||"mdxJsxTextElement"===a.type?a.name:void 0;if(e){const t=i.get(e)||0;o=e+"-"+t,i.set(e,t+1)}}const s=An(e,a,o);void 0!==s&&r.push(s)}return r}function Cn(e,t,r){const n=kr(e.schema,t);if(!(null==r||"number"==typeof r&&Number.isNaN(r))){if(Array.isArray(r)&&(r=n.commaSeparated?function(e){const t={};return(""===e[e.length-1]?[...e,""]:e).join((t.padRight?" ":"")+","+(!1===t.padLeft?"":" ")).trim()}(r):r.join(" ").trim()),"style"===n.property){let t="object"==typeof r?r:function(e,t){try{return ln(t,{reactCompat:!0})}catch(r){if(e.ignoreInvalidStyle)return{};const t=r,n=new mn("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:t,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=Sn+"#cannot-parse-style-attribute",n}}(e,String(r));return"css"===e.stylePropertyNameCase&&(t=function(e){const t={};let r;for(r in e)Vn.call(e,r)&&(t[Tn(r)]=e[r]);return t}(t)),["style",t]}return["react"===e.elementAttributeNameCase&&n.space?Cr[n.property]||n.property:n.attribute,r]}}function Rn(e,t,r){let n;if(r)if(t.includes(".")){const e=t.split(".");let r,i=-1;for(;++i<e.length;){const t=_t(e[i])?{type:"Identifier",name:e[i]}:{type:"Literal",value:e[i]};r=r?{type:"MemberExpression",object:r,property:t,computed:Boolean(i&&"Literal"===t.type),optional:!1}:t}n=r}else n=_t(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};else n={type:"Literal",value:t};if("Literal"===n.type){const t=n.value;return Vn.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(n);En(e)}function En(e,t){const r=new mn("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=Sn+"#cannot-handle-mdx-estrees-without-createevaluater",r}function Tn(e){let t=e.replace(vn,kn);return"ms-"===t.slice(0,3)&&(t="-"+t),t}function kn(e){return"-"+e.toLowerCase()}const Fn={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},Wn={};function Nn(e,t){return Kn(e,"boolean"!=typeof Wn.includeImageAlt||Wn.includeImageAlt,"boolean"!=typeof Wn.includeHtml||Wn.includeHtml)}function Kn(e,t,r){if(function(e){return Boolean(e&&"object"==typeof e)}(e)){if("value"in e)return"html"!==e.type||r?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return On(e.children,t,r)}return Array.isArray(e)?On(e,t,r):""}function On(e,t,r){const n=[];let i=-1;for(;++i<e.length;)n[i]=Kn(e[i],t,r);return n.join("")}const Pn=document.createElement("i");function In(e){const t="&"+e+";";Pn.innerHTML=t;const r=Pn.textContent;return(59!==r.charCodeAt(r.length-1)||"semi"===e)&&r!==t&&r}function Ln(e,t,r,n){const i=e.length;let a,o=0;if(t=t<0?-t>i?0:i+t:t>i?i:t,r=r>0?r:0,n.length<1e4)a=Array.from(n),a.unshift(t,r),e.splice(...a);else for(r&&e.splice(t,r);o<n.length;)a=n.slice(o,o+1e4),a.unshift(t,0),e.splice(...a),o+=1e4,t+=1e4}function Bn(e,t){return e.length>0?(Ln(e,e.length,0,t),e):t}const Dn={}.hasOwnProperty;function Xn(e){const t={};let r=-1;for(;++r<e.length;)jn(t,e[r]);return t}function jn(e,t){let r;for(r in t){const n=(Dn.call(e,r)?e[r]:void 0)||(e[r]={}),i=t[r];let a;if(i)for(a in i){Dn.call(n,a)||(n[a]=[]);const e=i[a];Mn(n[a],Array.isArray(e)?e:e?[e]:[])}}}function Mn(e,t){let r=-1;const n=[];for(;++r<t.length;)("after"===t[r].add?e:n).push(t[r]);Ln(e,0,0,n)}function zn(e,t){const r=Number.parseInt(e,t);return r<9||11===r||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||!(65535&~r)||65534==(65535&r)||r>1114111?"�":String.fromCodePoint(r)}function Gn(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Zn=ai(/[A-Za-z]/),Hn=ai(/[\dA-Za-z]/),Yn=ai(/[#-'*+\--9=?A-Z^-~]/);function Qn(e){return null!==e&&(e<32||127===e)}const Jn=ai(/\d/),_n=ai(/[\dA-Fa-f]/),$n=ai(/[!-/:-@[-`{-~]/);function ei(e){return null!==e&&e<-2}function ti(e){return null!==e&&(e<0||32===e)}function ri(e){return-2===e||-1===e||32===e}const ni=ai(new RegExp("\\p{P}|\\p{S}","u")),ii=ai(/\s/);function ai(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function oi(e){const t=[];let r=-1,n=0,i=0;for(;++r<e.length;){const a=e.charCodeAt(r);let o="";if(37===a&&Hn(e.charCodeAt(r+1))&&Hn(e.charCodeAt(r+2)))i=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(o=String.fromCharCode(a));else if(a>55295&&a<57344){const t=e.charCodeAt(r+1);a<56320&&t>56319&&t<57344?(o=String.fromCharCode(a,t),i=1):o="�"}else o=String.fromCharCode(a);o&&(t.push(e.slice(n,r),encodeURIComponent(o)),n=r+i+1,o=""),i&&(r+=i,i=0)}return t.join("")+e.slice(n)}function si(e,t,r,n){const i=n?n-1:Number.POSITIVE_INFINITY;let a=0;return function(n){return ri(n)?(e.enter(r),o(n)):t(n)};function o(n){return ri(n)&&a++<i?(e.consume(n),o):(e.exit(r),t(n))}}const li={tokenize:function(e){const t=e.attempt(this.parser.constructs.contentInitial,function(r){if(null!==r)return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),si(e,t,"linePrefix");e.consume(r)},function(t){return e.enter("paragraph"),n(t)});let r;return t;function n(t){const n=e.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=n),r=n,i(t)}function i(t){return null===t?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(t)):ei(t)?(e.consume(t),e.exit("chunkText"),n):(e.consume(t),i)}}},ci={tokenize:function(e){const t=this,r=[];let n,i,a,o=0;return s;function s(n){if(o<r.length){const i=r[o];return t.containerState=i[1],e.attempt(i[0].continuation,l,c)(n)}return c(n)}function l(e){if(o++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,n&&g();const r=t.events.length;let i,a=r;for(;a--;)if("exit"===t.events[a][0]&&"chunkFlow"===t.events[a][1].type){i=t.events[a][1].end;break}V(o);let s=r;for(;s<t.events.length;)t.events[s][1].end={...i},s++;return Ln(t.events,a+1,0,t.events.slice(r)),t.events.length=s,c(e)}return s(e)}function c(i){if(o===r.length){if(!n)return p(i);if(n.currentConstruct&&n.currentConstruct.concrete)return q(i);t.interrupt=Boolean(n.currentConstruct&&!n._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(ui,u,d)(i)}function u(e){return n&&g(),V(o),p(e)}function d(e){return t.parser.lazy[t.now().line]=o!==r.length,a=t.now().offset,q(e)}function p(r){return t.containerState={},e.attempt(ui,h,q)(r)}function h(e){return o++,r.push([t.currentConstruct,t.containerState]),p(e)}function q(r){return null===r?(n&&g(),V(0),void e.consume(r)):(n=n||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:n,contentType:"flow",previous:i}),f(r))}function f(r){return null===r?(m(e.exit("chunkFlow"),!0),V(0),void e.consume(r)):ei(r)?(e.consume(r),m(e.exit("chunkFlow")),o=0,t.interrupt=void 0,s):(e.consume(r),f)}function m(e,r){const s=t.sliceStream(e);if(r&&s.push(null),e.previous=i,i&&(i.next=e),i=e,n.defineSkip(e.start),n.write(s),t.parser.lazy[e.start.line]){let e=n.events.length;for(;e--;)if(n.events[e][1].start.offset<a&&(!n.events[e][1].end||n.events[e][1].end.offset>a))return;const r=t.events.length;let i,s,l=r;for(;l--;)if("exit"===t.events[l][0]&&"chunkFlow"===t.events[l][1].type){if(i){s=t.events[l][1].end;break}i=!0}for(V(o),e=r;e<t.events.length;)t.events[e][1].end={...s},e++;Ln(t.events,l+1,0,t.events.slice(r)),t.events.length=e}}function V(n){let i=r.length;for(;i-- >n;){const n=r[i];t.containerState=n[1],n[0].exit.call(t,e)}r.length=n}function g(){n.write([null]),i=void 0,n=void 0,t.containerState._closeFlow=void 0}}},ui={tokenize:function(e,t,r){return si(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};function di(e){return null===e||ti(e)||ii(e)?1:ni(e)?2:void 0}function pi(e,t,r){const n=[];let i=-1;for(;++i<e.length;){const a=e[i].resolveAll;a&&!n.includes(a)&&(t=a(t,r),n.push(a))}return t}const hi={name:"attention",resolveAll:function(e,t){let r,n,i,a,o,s,l,c,u=-1;for(;++u<e.length;)if("enter"===e[u][0]&&"attentionSequence"===e[u][1].type&&e[u][1]._close)for(r=u;r--;)if("exit"===e[r][0]&&"attentionSequence"===e[r][1].type&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[u][1]).charCodeAt(0)){if((e[r][1]._close||e[u][1]._open)&&(e[u][1].end.offset-e[u][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[u][1].end.offset-e[u][1].start.offset)%3))continue;s=e[r][1].end.offset-e[r][1].start.offset>1&&e[u][1].end.offset-e[u][1].start.offset>1?2:1;const d={...e[r][1].end},p={...e[u][1].start};qi(d,-s),qi(p,s),a={type:s>1?"strongSequence":"emphasisSequence",start:d,end:{...e[r][1].end}},o={type:s>1?"strongSequence":"emphasisSequence",start:{...e[u][1].start},end:p},i={type:s>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[u][1].start}},n={type:s>1?"strong":"emphasis",start:{...a.start},end:{...o.end}},e[r][1].end={...a.start},e[u][1].start={...o.end},l=[],e[r][1].end.offset-e[r][1].start.offset&&(l=Bn(l,[["enter",e[r][1],t],["exit",e[r][1],t]])),l=Bn(l,[["enter",n,t],["enter",a,t],["exit",a,t],["enter",i,t]]),l=Bn(l,pi(t.parser.constructs.insideSpan.null,e.slice(r+1,u),t)),l=Bn(l,[["exit",i,t],["enter",o,t],["exit",o,t],["exit",n,t]]),e[u][1].end.offset-e[u][1].start.offset?(c=2,l=Bn(l,[["enter",e[u][1],t],["exit",e[u][1],t]])):c=0,Ln(e,r-1,u-r+3,l),u=r+l.length-c-2;break}for(u=-1;++u<e.length;)"attentionSequence"===e[u][1].type&&(e[u][1].type="data");return e},tokenize:function(e,t){const r=this.parser.constructs.attentionMarkers.null,n=this.previous,i=di(n);let a;return function(t){return a=t,e.enter("attentionSequence"),o(t)};function o(s){if(s===a)return e.consume(s),o;const l=e.exit("attentionSequence"),c=di(s),u=!c||2===c&&i||r.includes(s),d=!i||2===i&&c||r.includes(n);return l._open=Boolean(42===a?u:u&&(i||!d)),l._close=Boolean(42===a?d:d&&(c||!u)),t(s)}}};function qi(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const fi={name:"autolink",tokenize:function(e,t,r){let n=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i};function i(t){return Zn(t)?(e.consume(t),a):64===t?r(t):l(t)}function a(e){return 43===e||45===e||46===e||Hn(e)?(n=1,o(e)):l(e)}function o(t){return 58===t?(e.consume(t),n=0,s):(43===t||45===t||46===t||Hn(t))&&n++<32?(e.consume(t),o):(n=0,l(t))}function s(n){return 62===n?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(n),e.exit("autolinkMarker"),e.exit("autolink"),t):null===n||32===n||60===n||Qn(n)?r(n):(e.consume(n),s)}function l(t){return 64===t?(e.consume(t),c):Yn(t)?(e.consume(t),l):r(t)}function c(e){return Hn(e)?u(e):r(e)}function u(r){return 46===r?(e.consume(r),n=0,c):62===r?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):d(r)}function d(t){if((45===t||Hn(t))&&n++<63){const r=45===t?d:u;return e.consume(t),r}return r(t)}}},mi={partial:!0,tokenize:function(e,t,r){return function(t){return ri(t)?si(e,n,"linePrefix")(t):n(t)};function n(e){return null===e||ei(e)?t(e):r(e)}}},Vi={continuation:{tokenize:function(e,t,r){const n=this;return function(t){return ri(t)?si(e,i,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):i(t)};function i(n){return e.attempt(Vi,t,r)(n)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,t,r){const n=this;return function(t){if(62===t){const r=n.containerState;return r.open||(e.enter("blockQuote",{_container:!0}),r.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),i}return r(t)};function i(r){return ri(r)?(e.enter("blockQuotePrefixWhitespace"),e.consume(r),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(r))}}},gi={name:"characterEscape",tokenize:function(e,t,r){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),n};function n(n){return $n(n)?(e.enter("characterEscapeValue"),e.consume(n),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(n)}}},vi={name:"characterReference",tokenize:function(e,t,r){const n=this;let i,a,o=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),s};function s(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),i=31,a=Hn,c(t))}function l(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),i=6,a=_n,c):(e.enter("characterReferenceValue"),i=7,a=Jn,c(t))}function c(s){if(59===s&&o){const i=e.exit("characterReferenceValue");return a!==Hn||In(n.sliceSerialize(i))?(e.enter("characterReferenceMarker"),e.consume(s),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):r(s)}return a(s)&&o++<i?(e.consume(s),c):r(s)}}},bi={partial:!0,tokenize:function(e,t,r){const n=this;return function(t){return null===t?r(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i)};function i(e){return n.parser.lazy[n.now().line]?r(e):t(e)}}},yi={concrete:!0,name:"codeFenced",tokenize:function(e,t,r){const n=this,i={partial:!0,tokenize:function(e,t,r){let i=0;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o};function o(t){return e.enter("codeFencedFence"),ri(t)?si(e,l,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):l(t)}function l(t){return t===a?(e.enter("codeFencedFenceSequence"),c(t)):r(t)}function c(t){return t===a?(i++,e.consume(t),c):i>=s?(e.exit("codeFencedFenceSequence"),ri(t)?si(e,u,"whitespace")(t):u(t)):r(t)}function u(n){return null===n||ei(n)?(e.exit("codeFencedFence"),t(n)):r(n)}}};let a,o=0,s=0;return function(t){return function(t){const r=n.events[n.events.length-1];return o=r&&"linePrefix"===r[1].type?r[2].sliceSerialize(r[1],!0).length:0,a=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),l(t)}(t)};function l(t){return t===a?(s++,e.consume(t),l):s<3?r(t):(e.exit("codeFencedFenceSequence"),ri(t)?si(e,c,"whitespace")(t):c(t))}function c(r){return null===r||ei(r)?(e.exit("codeFencedFence"),n.interrupt?t(r):e.check(bi,h,g)(r)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),u(r))}function u(t){return null===t||ei(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(t)):ri(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),si(e,d,"whitespace")(t)):96===t&&t===a?r(t):(e.consume(t),u)}function d(t){return null===t||ei(t)?c(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),p(t))}function p(t){return null===t||ei(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(t)):96===t&&t===a?r(t):(e.consume(t),p)}function h(t){return e.attempt(i,g,q)(t)}function q(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),f}function f(t){return o>0&&ri(t)?si(e,m,"linePrefix",o+1)(t):m(t)}function m(t){return null===t||ei(t)?e.check(bi,h,g)(t):(e.enter("codeFlowValue"),V(t))}function V(t){return null===t||ei(t)?(e.exit("codeFlowValue"),m(t)):(e.consume(t),V)}function g(r){return e.exit("codeFenced"),t(r)}}},Si={name:"codeIndented",tokenize:function(e,t,r){const n=this;return function(t){return e.enter("codeIndented"),si(e,i,"linePrefix",5)(t)};function i(e){const t=n.events[n.events.length-1];return t&&"linePrefix"===t[1].type&&t[2].sliceSerialize(t[1],!0).length>=4?a(e):r(e)}function a(t){return null===t?s(t):ei(t)?e.attempt(Ai,a,s)(t):(e.enter("codeFlowValue"),o(t))}function o(t){return null===t||ei(t)?(e.exit("codeFlowValue"),a(t)):(e.consume(t),o)}function s(r){return e.exit("codeIndented"),t(r)}}},Ai={partial:!0,tokenize:function(e,t,r){const n=this;return i;function i(t){return n.parser.lazy[n.now().line]?r(t):ei(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):si(e,a,"linePrefix",5)(t)}function a(e){const a=n.events[n.events.length-1];return a&&"linePrefix"===a[1].type&&a[2].sliceSerialize(a[1],!0).length>=4?t(e):ei(e)?i(e):r(e)}}},wi={name:"codeText",previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type},resolve:function(e){let t,r,n=e.length-4,i=3;if(!("lineEnding"!==e[i][1].type&&"space"!==e[i][1].type||"lineEnding"!==e[n][1].type&&"space"!==e[n][1].type))for(t=i;++t<n;)if("codeTextData"===e[t][1].type){e[i][1].type="codeTextPadding",e[n][1].type="codeTextPadding",i+=2,n-=2;break}for(t=i-1,n++;++t<=n;)void 0===r?t!==n&&"lineEnding"!==e[t][1].type&&(r=t):t!==n&&"lineEnding"!==e[t][1].type||(e[r][1].type="codeTextData",t!==r+2&&(e[r][1].end=e[t-1][1].end,e.splice(r+2,t-r-2),n-=t-r-2,t=r+2),r=void 0);return e},tokenize:function(e,t,r){let n,i,a=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),o(t)};function o(t){return 96===t?(e.consume(t),a++,o):(e.exit("codeTextSequence"),s(t))}function s(t){return null===t?r(t):32===t?(e.enter("space"),e.consume(t),e.exit("space"),s):96===t?(i=e.enter("codeTextSequence"),n=0,c(t)):ei(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),s):(e.enter("codeTextData"),l(t))}function l(t){return null===t||32===t||96===t||ei(t)?(e.exit("codeTextData"),s(t)):(e.consume(t),l)}function c(r){return 96===r?(e.consume(r),n++,c):n===a?(e.exit("codeTextSequence"),e.exit("codeText"),t(r)):(i.type="codeTextData",l(r))}}};class Ui{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){const r=null==t?Number.POSITIVE_INFINITY:t;return r<this.left.length?this.left.slice(e,r):e>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(e,t,r){const n=t||0;this.setCursor(Math.trunc(e));const i=this.right.splice(this.right.length-n,Number.POSITIVE_INFINITY);return r&&xi(this.left,r),i.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),xi(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),xi(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&0===this.right.length||e<0&&0===this.left.length))if(e<this.left.length){const t=this.left.splice(e,Number.POSITIVE_INFINITY);xi(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);xi(this.left,t.reverse())}}}function xi(e,t){let r=0;if(t.length<1e4)e.push(...t);else for(;r<t.length;)e.push(...t.slice(r,r+1e4)),r+=1e4}function Ci(e){const t={};let r,n,i,a,o,s,l,c=-1;const u=new Ui(e);for(;++c<u.length;){for(;c in t;)c=t[c];if(r=u.get(c),c&&"chunkFlow"===r[1].type&&"listItemPrefix"===u.get(c-1)[1].type&&(s=r[1]._tokenizer.events,i=0,i<s.length&&"lineEndingBlank"===s[i][1].type&&(i+=2),i<s.length&&"content"===s[i][1].type))for(;++i<s.length&&"content"!==s[i][1].type;)"chunkText"===s[i][1].type&&(s[i][1]._isInFirstContentOfListItem=!0,i++);if("enter"===r[0])r[1].contentType&&(Object.assign(t,Ri(u,c)),c=t[c],l=!0);else if(r[1]._container){for(i=c,n=void 0;i--;)if(a=u.get(i),"lineEnding"===a[1].type||"lineEndingBlank"===a[1].type)"enter"===a[0]&&(n&&(u.get(n)[1].type="lineEndingBlank"),a[1].type="lineEnding",n=i);else if("linePrefix"!==a[1].type&&"listItemIndent"!==a[1].type)break;n&&(r[1].end={...u.get(n)[1].start},o=u.slice(n,c),o.unshift(r),u.splice(n,c-n+1,o))}}return Ln(e,0,Number.POSITIVE_INFINITY,u.slice(0)),!l}function Ri(e,t){const r=e.get(t)[1],n=e.get(t)[2];let i=t-1;const a=[];let o=r._tokenizer;o||(o=n.parser[r.contentType](r.start),r._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));const s=o.events,l=[],c={};let u,d,p=-1,h=r,q=0,f=0;const m=[f];for(;h;){for(;e.get(++i)[1]!==h;);a.push(i),h._tokenizer||(u=n.sliceStream(h),h.next||u.push(null),d&&o.defineSkip(h.start),h._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(u),h._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),d=h,h=h.next}for(h=r;++p<s.length;)"exit"===s[p][0]&&"enter"===s[p-1][0]&&s[p][1].type===s[p-1][1].type&&s[p][1].start.line!==s[p][1].end.line&&(f=p+1,m.push(f),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(o.events=[],h?(h._tokenizer=void 0,h.previous=void 0):m.pop(),p=m.length;p--;){const t=s.slice(m[p],m[p+1]),r=a.pop();l.push([r,r+t.length-1]),e.splice(r,2,t)}for(l.reverse(),p=-1;++p<l.length;)c[q+l[p][0]]=q+l[p][1],q+=l[p][1]-l[p][0]-1;return c}const Ei={resolve:function(e){return Ci(e),e},tokenize:function(e,t){let r;return function(t){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),n(t)};function n(t){return null===t?i(t):ei(t)?e.check(Ti,a,i)(t):(e.consume(t),n)}function i(r){return e.exit("chunkContent"),e.exit("content"),t(r)}function a(t){return e.consume(t),e.exit("chunkContent"),r.next=e.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,n}}},Ti={partial:!0,tokenize:function(e,t,r){const n=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),si(e,i,"linePrefix")};function i(i){if(null===i||ei(i))return r(i);const a=n.events[n.events.length-1];return!n.parser.constructs.disable.null.includes("codeIndented")&&a&&"linePrefix"===a[1].type&&a[2].sliceSerialize(a[1],!0).length>=4?t(i):e.interrupt(n.parser.constructs.flow,r,t)(i)}}};function ki(e,t,r,n,i,a,o,s,l){const c=l||Number.POSITIVE_INFINITY;let u=0;return function(t){return 60===t?(e.enter(n),e.enter(i),e.enter(a),e.consume(t),e.exit(a),d):null===t||32===t||41===t||Qn(t)?r(t):(e.enter(n),e.enter(o),e.enter(s),e.enter("chunkString",{contentType:"string"}),q(t))};function d(r){return 62===r?(e.enter(a),e.consume(r),e.exit(a),e.exit(i),e.exit(n),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),p(r))}function p(t){return 62===t?(e.exit("chunkString"),e.exit(s),d(t)):null===t||60===t||ei(t)?r(t):(e.consume(t),92===t?h:p)}function h(t){return 60===t||62===t||92===t?(e.consume(t),p):p(t)}function q(i){return u||null!==i&&41!==i&&!ti(i)?u<c&&40===i?(e.consume(i),u++,q):41===i?(e.consume(i),u--,q):null===i||32===i||40===i||Qn(i)?r(i):(e.consume(i),92===i?f:q):(e.exit("chunkString"),e.exit(s),e.exit(o),e.exit(n),t(i))}function f(t){return 40===t||41===t||92===t?(e.consume(t),q):q(t)}}function Fi(e,t,r,n,i,a){const o=this;let s,l=0;return function(t){return e.enter(n),e.enter(i),e.consume(t),e.exit(i),e.enter(a),c};function c(d){return l>999||null===d||91===d||93===d&&!s||94===d&&!l&&"_hiddenFootnoteSupport"in o.parser.constructs?r(d):93===d?(e.exit(a),e.enter(i),e.consume(d),e.exit(i),e.exit(n),t):ei(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),u(d))}function u(t){return null===t||91===t||93===t||ei(t)||l++>999?(e.exit("chunkString"),c(t)):(e.consume(t),s||(s=!ri(t)),92===t?d:u)}function d(t){return 91===t||92===t||93===t?(e.consume(t),l++,u):u(t)}}function Wi(e,t,r,n,i,a){let o;return function(t){return 34===t||39===t||40===t?(e.enter(n),e.enter(i),e.consume(t),e.exit(i),o=40===t?41:t,s):r(t)};function s(r){return r===o?(e.enter(i),e.consume(r),e.exit(i),e.exit(n),t):(e.enter(a),l(r))}function l(t){return t===o?(e.exit(a),s(o)):null===t?r(t):ei(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),si(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(t))}function c(t){return t===o||null===t||ei(t)?(e.exit("chunkString"),l(t)):(e.consume(t),92===t?u:c)}function u(t){return t===o||92===t?(e.consume(t),c):c(t)}}function Ni(e,t){let r;return function n(i){return ei(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),r=!0,n):ri(i)?si(e,n,r?"linePrefix":"lineSuffix")(i):t(i)}}const Ki={name:"definition",tokenize:function(e,t,r){const n=this;let i;return function(t){return e.enter("definition"),function(t){return Fi.call(n,e,a,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)}(t)};function a(t){return i=Gn(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),o):r(t)}function o(t){return ti(t)?Ni(e,s)(t):s(t)}function s(t){return ki(e,l,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function l(t){return e.attempt(Oi,c,c)(t)}function c(t){return ri(t)?si(e,u,"whitespace")(t):u(t)}function u(a){return null===a||ei(a)?(e.exit("definition"),n.parser.defined.push(i),t(a)):r(a)}}},Oi={partial:!0,tokenize:function(e,t,r){return function(t){return ti(t)?Ni(e,n)(t):r(t)};function n(t){return Wi(e,i,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function i(t){return ri(t)?si(e,a,"whitespace")(t):a(t)}function a(e){return null===e||ei(e)?t(e):r(e)}}},Pi={name:"hardBreakEscape",tokenize:function(e,t,r){return function(t){return e.enter("hardBreakEscape"),e.consume(t),n};function n(n){return ei(n)?(e.exit("hardBreakEscape"),t(n)):r(n)}}},Ii={name:"headingAtx",resolve:function(e,t){let r,n,i=e.length-2,a=3;return"whitespace"===e[a][1].type&&(a+=2),i-2>a&&"whitespace"===e[i][1].type&&(i-=2),"atxHeadingSequence"===e[i][1].type&&(a===i-1||i-4>a&&"whitespace"===e[i-2][1].type)&&(i-=a+1===i?2:4),i>a&&(r={type:"atxHeadingText",start:e[a][1].start,end:e[i][1].end},n={type:"chunkText",start:e[a][1].start,end:e[i][1].end,contentType:"text"},Ln(e,a,i-a+1,[["enter",r,t],["enter",n,t],["exit",n,t],["exit",r,t]])),e},tokenize:function(e,t,r){let n=0;return function(t){return e.enter("atxHeading"),function(t){return e.enter("atxHeadingSequence"),i(t)}(t)};function i(t){return 35===t&&n++<6?(e.consume(t),i):null===t||ti(t)?(e.exit("atxHeadingSequence"),a(t)):r(t)}function a(r){return 35===r?(e.enter("atxHeadingSequence"),o(r)):null===r||ei(r)?(e.exit("atxHeading"),t(r)):ri(r)?si(e,a,"whitespace")(r):(e.enter("atxHeadingText"),s(r))}function o(t){return 35===t?(e.consume(t),o):(e.exit("atxHeadingSequence"),a(t))}function s(t){return null===t||35===t||ti(t)?(e.exit("atxHeadingText"),a(t)):(e.consume(t),s)}}},Li=["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"],Bi=["pre","script","style","textarea"],Di={concrete:!0,name:"htmlFlow",resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););return t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e},tokenize:function(e,t,r){const n=this;let i,a,o,s,l;return function(t){return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),c}(t)};function c(s){return 33===s?(e.consume(s),u):47===s?(e.consume(s),a=!0,h):63===s?(e.consume(s),i=3,n.interrupt?t:N):Zn(s)?(e.consume(s),o=String.fromCharCode(s),q):r(s)}function u(a){return 45===a?(e.consume(a),i=2,d):91===a?(e.consume(a),i=5,s=0,p):Zn(a)?(e.consume(a),i=4,n.interrupt?t:N):r(a)}function d(i){return 45===i?(e.consume(i),n.interrupt?t:N):r(i)}function p(i){return i==="CDATA[".charCodeAt(s++)?(e.consume(i),6===s?n.interrupt?t:x:p):r(i)}function h(t){return Zn(t)?(e.consume(t),o=String.fromCharCode(t),q):r(t)}function q(s){if(null===s||47===s||62===s||ti(s)){const l=47===s,c=o.toLowerCase();return l||a||!Bi.includes(c)?Li.includes(o.toLowerCase())?(i=6,l?(e.consume(s),f):n.interrupt?t(s):x(s)):(i=7,n.interrupt&&!n.parser.lazy[n.now().line]?r(s):a?m(s):V(s)):(i=1,n.interrupt?t(s):x(s))}return 45===s||Hn(s)?(e.consume(s),o+=String.fromCharCode(s),q):r(s)}function f(i){return 62===i?(e.consume(i),n.interrupt?t:x):r(i)}function m(t){return ri(t)?(e.consume(t),m):w(t)}function V(t){return 47===t?(e.consume(t),w):58===t||95===t||Zn(t)?(e.consume(t),g):ri(t)?(e.consume(t),V):w(t)}function g(t){return 45===t||46===t||58===t||95===t||Hn(t)?(e.consume(t),g):v(t)}function v(t){return 61===t?(e.consume(t),b):ri(t)?(e.consume(t),v):V(t)}function b(t){return null===t||60===t||61===t||62===t||96===t?r(t):34===t||39===t?(e.consume(t),l=t,y):ri(t)?(e.consume(t),b):S(t)}function y(t){return t===l?(e.consume(t),l=null,A):null===t||ei(t)?r(t):(e.consume(t),y)}function S(t){return null===t||34===t||39===t||47===t||60===t||61===t||62===t||96===t||ti(t)?v(t):(e.consume(t),S)}function A(e){return 47===e||62===e||ri(e)?V(e):r(e)}function w(t){return 62===t?(e.consume(t),U):r(t)}function U(t){return null===t||ei(t)?x(t):ri(t)?(e.consume(t),U):r(t)}function x(t){return 45===t&&2===i?(e.consume(t),T):60===t&&1===i?(e.consume(t),k):62===t&&4===i?(e.consume(t),K):63===t&&3===i?(e.consume(t),N):93===t&&5===i?(e.consume(t),W):!ei(t)||6!==i&&7!==i?null===t||ei(t)?(e.exit("htmlFlowData"),C(t)):(e.consume(t),x):(e.exit("htmlFlowData"),e.check(Xi,O,C)(t))}function C(t){return e.check(ji,R,O)(t)}function R(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),E}function E(t){return null===t||ei(t)?C(t):(e.enter("htmlFlowData"),x(t))}function T(t){return 45===t?(e.consume(t),N):x(t)}function k(t){return 47===t?(e.consume(t),o="",F):x(t)}function F(t){if(62===t){const r=o.toLowerCase();return Bi.includes(r)?(e.consume(t),K):x(t)}return Zn(t)&&o.length<8?(e.consume(t),o+=String.fromCharCode(t),F):x(t)}function W(t){return 93===t?(e.consume(t),N):x(t)}function N(t){return 62===t?(e.consume(t),K):45===t&&2===i?(e.consume(t),N):x(t)}function K(t){return null===t||ei(t)?(e.exit("htmlFlowData"),O(t)):(e.consume(t),K)}function O(r){return e.exit("htmlFlow"),t(r)}}},Xi={partial:!0,tokenize:function(e,t,r){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),e.attempt(mi,t,r)}}},ji={partial:!0,tokenize:function(e,t,r){const n=this;return function(t){return ei(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):r(t)};function i(e){return n.parser.lazy[n.now().line]?r(e):t(e)}}},Mi={name:"htmlText",tokenize:function(e,t,r){const n=this;let i,a,o;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),s};function s(t){return 33===t?(e.consume(t),l):47===t?(e.consume(t),b):63===t?(e.consume(t),g):Zn(t)?(e.consume(t),A):r(t)}function l(t){return 45===t?(e.consume(t),c):91===t?(e.consume(t),a=0,h):Zn(t)?(e.consume(t),V):r(t)}function c(t){return 45===t?(e.consume(t),p):r(t)}function u(t){return null===t?r(t):45===t?(e.consume(t),d):ei(t)?(o=u,F(t)):(e.consume(t),u)}function d(t){return 45===t?(e.consume(t),p):u(t)}function p(e){return 62===e?k(e):45===e?d(e):u(e)}function h(t){return t==="CDATA[".charCodeAt(a++)?(e.consume(t),6===a?q:h):r(t)}function q(t){return null===t?r(t):93===t?(e.consume(t),f):ei(t)?(o=q,F(t)):(e.consume(t),q)}function f(t){return 93===t?(e.consume(t),m):q(t)}function m(t){return 62===t?k(t):93===t?(e.consume(t),m):q(t)}function V(t){return null===t||62===t?k(t):ei(t)?(o=V,F(t)):(e.consume(t),V)}function g(t){return null===t?r(t):63===t?(e.consume(t),v):ei(t)?(o=g,F(t)):(e.consume(t),g)}function v(e){return 62===e?k(e):g(e)}function b(t){return Zn(t)?(e.consume(t),y):r(t)}function y(t){return 45===t||Hn(t)?(e.consume(t),y):S(t)}function S(t){return ei(t)?(o=S,F(t)):ri(t)?(e.consume(t),S):k(t)}function A(t){return 45===t||Hn(t)?(e.consume(t),A):47===t||62===t||ti(t)?w(t):r(t)}function w(t){return 47===t?(e.consume(t),k):58===t||95===t||Zn(t)?(e.consume(t),U):ei(t)?(o=w,F(t)):ri(t)?(e.consume(t),w):k(t)}function U(t){return 45===t||46===t||58===t||95===t||Hn(t)?(e.consume(t),U):x(t)}function x(t){return 61===t?(e.consume(t),C):ei(t)?(o=x,F(t)):ri(t)?(e.consume(t),x):w(t)}function C(t){return null===t||60===t||61===t||62===t||96===t?r(t):34===t||39===t?(e.consume(t),i=t,R):ei(t)?(o=C,F(t)):ri(t)?(e.consume(t),C):(e.consume(t),E)}function R(t){return t===i?(e.consume(t),i=void 0,T):null===t?r(t):ei(t)?(o=R,F(t)):(e.consume(t),R)}function E(t){return null===t||34===t||39===t||60===t||61===t||96===t?r(t):47===t||62===t||ti(t)?w(t):(e.consume(t),E)}function T(e){return 47===e||62===e||ti(e)?w(e):r(e)}function k(n){return 62===n?(e.consume(n),e.exit("htmlTextData"),e.exit("htmlText"),t):r(n)}function F(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),W}function W(t){return ri(t)?si(e,N,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):N(t)}function N(t){return e.enter("htmlTextData"),o(t)}}},zi={name:"labelEnd",resolveAll:function(e){let t=-1;const r=[];for(;++t<e.length;){const n=e[t][1];if(r.push(e[t]),"labelImage"===n.type||"labelLink"===n.type||"labelEnd"===n.type){const e="labelImage"===n.type?4:2;n.type="data",t+=e}}return e.length!==r.length&&Ln(e,0,e.length,r),e},resolveTo:function(e,t){let r,n,i,a,o=e.length,s=0;for(;o--;)if(r=e[o][1],n){if("link"===r.type||"labelLink"===r.type&&r._inactive)break;"enter"===e[o][0]&&"labelLink"===r.type&&(r._inactive=!0)}else if(i){if("enter"===e[o][0]&&("labelImage"===r.type||"labelLink"===r.type)&&!r._balanced&&(n=o,"labelLink"!==r.type)){s=2;break}}else"labelEnd"===r.type&&(i=o);const l={type:"labelLink"===e[n][1].type?"link":"image",start:{...e[n][1].start},end:{...e[e.length-1][1].end}},c={type:"label",start:{...e[n][1].start},end:{...e[i][1].end}},u={type:"labelText",start:{...e[n+s+2][1].end},end:{...e[i-2][1].start}};return a=[["enter",l,t],["enter",c,t]],a=Bn(a,e.slice(n+1,n+s+3)),a=Bn(a,[["enter",u,t]]),a=Bn(a,pi(t.parser.constructs.insideSpan.null,e.slice(n+s+4,i-3),t)),a=Bn(a,[["exit",u,t],e[i-2],e[i-1],["exit",c,t]]),a=Bn(a,e.slice(i+1)),a=Bn(a,[["exit",l,t]]),Ln(e,n,e.length,a),e},tokenize:function(e,t,r){const n=this;let i,a,o=n.events.length;for(;o--;)if(("labelImage"===n.events[o][1].type||"labelLink"===n.events[o][1].type)&&!n.events[o][1]._balanced){i=n.events[o][1];break}return function(t){return i?i._inactive?u(t):(a=n.parser.defined.includes(Gn(n.sliceSerialize({start:i.end,end:n.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),s):r(t)};function s(t){return 40===t?e.attempt(Gi,c,a?c:u)(t):91===t?e.attempt(Zi,c,a?l:u)(t):a?c(t):u(t)}function l(t){return e.attempt(Hi,c,u)(t)}function c(e){return t(e)}function u(e){return i._balanced=!0,r(e)}}},Gi={tokenize:function(e,t,r){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),n};function n(t){return ti(t)?Ni(e,i)(t):i(t)}function i(t){return 41===t?c(t):ki(e,a,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function a(t){return ti(t)?Ni(e,s)(t):c(t)}function o(e){return r(e)}function s(t){return 34===t||39===t||40===t?Wi(e,l,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):c(t)}function l(t){return ti(t)?Ni(e,c)(t):c(t)}function c(n){return 41===n?(e.enter("resourceMarker"),e.consume(n),e.exit("resourceMarker"),e.exit("resource"),t):r(n)}}},Zi={tokenize:function(e,t,r){const n=this;return function(t){return Fi.call(n,e,i,a,"reference","referenceMarker","referenceString")(t)};function i(e){return n.parser.defined.includes(Gn(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)))?t(e):r(e)}function a(e){return r(e)}}},Hi={tokenize:function(e,t,r){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),n};function n(n){return 93===n?(e.enter("referenceMarker"),e.consume(n),e.exit("referenceMarker"),e.exit("reference"),t):r(n)}}},Yi={name:"labelStartImage",resolveAll:zi.resolveAll,tokenize:function(e,t,r){const n=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),i};function i(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),a):r(t)}function a(e){return 94===e&&"_hiddenFootnoteSupport"in n.parser.constructs?r(e):t(e)}}},Qi={name:"labelStartLink",resolveAll:zi.resolveAll,tokenize:function(e,t,r){const n=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),i};function i(e){return 94===e&&"_hiddenFootnoteSupport"in n.parser.constructs?r(e):t(e)}}},Ji={name:"lineEnding",tokenize:function(e,t){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),si(e,t,"linePrefix")}}},_i={name:"thematicBreak",tokenize:function(e,t,r){let n,i=0;return function(t){return e.enter("thematicBreak"),function(e){return n=e,a(e)}(t)};function a(a){return a===n?(e.enter("thematicBreakSequence"),o(a)):i>=3&&(null===a||ei(a))?(e.exit("thematicBreak"),t(a)):r(a)}function o(t){return t===n?(e.consume(t),i++,o):(e.exit("thematicBreakSequence"),ri(t)?si(e,a,"whitespace")(t):a(t))}}},$i={continuation:{tokenize:function(e,t,r){const n=this;return n.containerState._closeFlow=void 0,e.check(mi,function(r){return n.containerState.furtherBlankLines=n.containerState.furtherBlankLines||n.containerState.initialBlankLine,si(e,t,"listItemIndent",n.containerState.size+1)(r)},function(r){return n.containerState.furtherBlankLines||!ri(r)?(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,i(r)):(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,e.attempt(ta,t,i)(r))});function i(i){return n.containerState._closeFlow=!0,n.interrupt=void 0,si(e,e.attempt($i,t,r),"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,t,r){const n=this,i=n.events[n.events.length-1];let a=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0,o=0;return function(t){const i=n.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===i?!n.containerState.marker||t===n.containerState.marker:Jn(t)){if(n.containerState.type||(n.containerState.type=i,e.enter(i,{_container:!0})),"listUnordered"===i)return e.enter("listItemPrefix"),42===t||45===t?e.check(_i,r,l)(t):l(t);if(!n.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(t)}return r(t)};function s(t){return Jn(t)&&++o<10?(e.consume(t),s):(!n.interrupt||o<2)&&(n.containerState.marker?t===n.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),l(t)):r(t)}function l(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),n.containerState.marker=n.containerState.marker||t,e.check(mi,n.interrupt?r:c,e.attempt(ea,d,u))}function c(e){return n.containerState.initialBlankLine=!0,a++,d(e)}function u(t){return ri(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),d):r(t)}function d(r){return n.containerState.size=a+n.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(r)}}},ea={partial:!0,tokenize:function(e,t,r){const n=this;return si(e,function(e){const i=n.events[n.events.length-1];return!ri(e)&&i&&"listItemPrefixWhitespace"===i[1].type?t(e):r(e)},"listItemPrefixWhitespace",n.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},ta={partial:!0,tokenize:function(e,t,r){const n=this;return si(e,function(e){const i=n.events[n.events.length-1];return i&&"listItemIndent"===i[1].type&&i[2].sliceSerialize(i[1],!0).length===n.containerState.size?t(e):r(e)},"listItemIndent",n.containerState.size+1)}},ra={name:"setextUnderline",resolveTo:function(e,t){let r,n,i,a=e.length;for(;a--;)if("enter"===e[a][0]){if("content"===e[a][1].type){r=a;break}"paragraph"===e[a][1].type&&(n=a)}else"content"===e[a][1].type&&e.splice(a,1),i||"definition"!==e[a][1].type||(i=a);const o={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[n][1].type="setextHeadingText",i?(e.splice(n,0,["enter",o,t]),e.splice(i+1,0,["exit",e[r][1],t]),e[r][1].end={...e[i][1].end}):e[r][1]=o,e.push(["exit",o,t]),e},tokenize:function(e,t,r){const n=this;let i;return function(t){let o,s=n.events.length;for(;s--;)if("lineEnding"!==n.events[s][1].type&&"linePrefix"!==n.events[s][1].type&&"content"!==n.events[s][1].type){o="paragraph"===n.events[s][1].type;break}return n.parser.lazy[n.now().line]||!n.interrupt&&!o?r(t):(e.enter("setextHeadingLine"),i=t,function(t){return e.enter("setextHeadingLineSequence"),a(t)}(t))};function a(t){return t===i?(e.consume(t),a):(e.exit("setextHeadingLineSequence"),ri(t)?si(e,o,"lineSuffix")(t):o(t))}function o(n){return null===n||ei(n)?(e.exit("setextHeadingLine"),t(n)):r(n)}}},na={tokenize:function(e){const t=this,r=e.attempt(mi,function(n){if(null!==n)return e.enter("lineEndingBlank"),e.consume(n),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r;e.consume(n)},e.attempt(this.parser.constructs.flowInitial,n,si(e,e.attempt(this.parser.constructs.flow,n,e.attempt(Ei,n)),"linePrefix")));return r;function n(n){if(null!==n)return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),t.currentConstruct=void 0,r;e.consume(n)}}},ia={resolveAll:la()},aa=sa("string"),oa=sa("text");function sa(e){return{resolveAll:la("text"===e?ca:void 0),tokenize:function(t){const r=this,n=this.parser.constructs[e],i=t.attempt(n,a,o);return a;function a(e){return l(e)?i(e):o(e)}function o(e){if(null!==e)return t.enter("data"),t.consume(e),s;t.consume(e)}function s(e){return l(e)?(t.exit("data"),i(e)):(t.consume(e),s)}function l(e){if(null===e)return!0;const t=n[e];let i=-1;if(t)for(;++i<t.length;){const e=t[i];if(!e.previous||e.previous.call(r,r.previous))return!0}return!1}}}}function la(e){return function(t,r){let n,i=-1;for(;++i<=t.length;)void 0===n?t[i]&&"data"===t[i][1].type&&(n=i,i++):t[i]&&"data"===t[i][1].type||(i!==n+2&&(t[n][1].end=t[i-1][1].end,t.splice(n+2,i-n-2),i=n+2),n=void 0);return e?e(t,r):t}}function ca(e,t){let r=0;for(;++r<=e.length;)if((r===e.length||"lineEnding"===e[r][1].type)&&"data"===e[r-1][1].type){const n=e[r-1][1],i=t.sliceStream(n);let a,o=i.length,s=-1,l=0;for(;o--;){const e=i[o];if("string"==typeof e){for(s=e.length;32===e.charCodeAt(s-1);)l++,s--;if(s)break;s=-1}else if(-2===e)a=!0,l++;else if(-1!==e){o++;break}}if(t._contentTypeTextTrailing&&r===e.length&&(l=0),l){const i={type:r===e.length||a||l<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?s:n.start._bufferIndex+s,_index:n.start._index+o,line:n.end.line,column:n.end.column-l,offset:n.end.offset-l},end:{...n.end}};n.end={...i.start},n.start.offset===n.end.offset?Object.assign(n,i):(e.splice(r,0,["enter",i,t],["exit",i,t]),r+=2)}r++}return e}const ua={42:$i,43:$i,45:$i,48:$i,49:$i,50:$i,51:$i,52:$i,53:$i,54:$i,55:$i,56:$i,57:$i,62:Vi},da={91:Ki},pa={[-2]:Si,[-1]:Si,32:Si},ha={35:Ii,42:_i,45:[ra,_i],60:Di,61:ra,95:_i,96:yi,126:yi},qa={38:vi,92:gi},fa={[-5]:Ji,[-4]:Ji,[-3]:Ji,33:Yi,38:vi,42:hi,60:[fi,Mi],91:Qi,92:[Pi,gi],93:zi,95:hi,96:wi},ma={null:[hi,ia]},Va=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:da,disable:{null:[]},document:ua,flow:ha,flowInitial:pa,insideSpan:ma,string:qa,text:fa},Symbol.toStringTag,{value:"Module"}));function ga(e,t,r){let n={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0};const i={},a=[];let o=[],s=[];const l={attempt:f(function(e,t){m(e,t.from)}),check:f(q),consume:function(e){ei(e)?(n.line++,n.column=1,n.offset+=-3===e?2:1,V()):-1!==e&&(n.column++,n.offset++),n._bufferIndex<0?n._index++:(n._bufferIndex++,n._bufferIndex===o[n._index].length&&(n._bufferIndex=-1,n._index++)),c.previous=e},enter:function(e,t){const r=t||{};return r.type=e,r.start=p(),c.events.push(["enter",r,c]),s.push(r),r},exit:function(e){const t=s.pop();return t.end=p(),c.events.push(["exit",t,c]),t},interrupt:f(q,{interrupt:!0})},c={code:null,containerState:{},defineSkip:function(e){i[e.line]=e.column,V()},events:[],now:p,parser:e,previous:null,sliceSerialize:function(e,t){return function(e,t){let r=-1;const n=[];let i;for(;++r<e.length;){const a=e[r];let o;if("string"==typeof a)o=a;else switch(a){case-5:o="\r";break;case-4:o="\n";break;case-3:o="\r\n";break;case-2:o=t?" ":"\t";break;case-1:if(!t&&i)continue;o=" ";break;default:o=String.fromCharCode(a)}i=-2===a,n.push(o)}return n.join("")}(d(e),t)},sliceStream:d,write:function(e){return o=Bn(o,e),function(){let e;for(;n._index<o.length;){const t=o[n._index];if("string"==typeof t)for(e=n._index,n._bufferIndex<0&&(n._bufferIndex=0);n._index===e&&n._bufferIndex<t.length;)h(t.charCodeAt(n._bufferIndex));else h(t)}}(),null!==o[o.length-1]?[]:(m(t,0),c.events=pi(a,c.events,c),c.events)}};let u=t.tokenize.call(c,l);return t.resolveAll&&a.push(t),c;function d(e){return function(e,t){const r=t.start._index,n=t.start._bufferIndex,i=t.end._index,a=t.end._bufferIndex;let o;if(r===i)o=[e[r].slice(n,a)];else{if(o=e.slice(r,i),n>-1){const e=o[0];"string"==typeof e?o[0]=e.slice(n):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}(o,e)}function p(){const{_bufferIndex:e,_index:t,line:r,column:i,offset:a}=n;return{_bufferIndex:e,_index:t,line:r,column:i,offset:a}}function h(e){u=u(e)}function q(e,t){t.restore()}function f(e,t){return function(r,i,a){let o,u,d,h;return Array.isArray(r)?f(r):"tokenize"in r?f([r]):(q=r,function(e){const t=null!==e&&q[e],r=null!==e&&q.null;return f([...Array.isArray(t)?t:t?[t]:[],...Array.isArray(r)?r:r?[r]:[]])(e)});var q;function f(e){return o=e,u=0,0===e.length?a:m(e[u])}function m(e){return function(r){return h=function(){const e=p(),t=c.previous,r=c.currentConstruct,i=c.events.length,a=Array.from(s);return{from:i,restore:function(){n=e,c.previous=t,c.currentConstruct=r,c.events.length=i,s=a,V()}}}(),d=e,e.partial||(c.currentConstruct=e),e.name&&c.parser.constructs.disable.null.includes(e.name)?v():e.tokenize.call(t?Object.assign(Object.create(c),t):c,l,g,v)(r)}}function g(t){return e(d,h),i}function v(e){return h.restore(),++u<o.length?m(o[u]):a}}}function m(e,t){e.resolveAll&&!a.includes(e)&&a.push(e),e.resolve&&Ln(c.events,t,c.events.length-t,e.resolve(c.events.slice(t),c)),e.resolveTo&&(c.events=e.resolveTo(c.events,c))}function V(){n.line in i&&n.column<2&&(n.column=i[n.line],n.offset+=i[n.line]-1)}}const va=/[\0\t\n\r]/g,ba=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function ya(e,t,r){if(t)return t;if(35===r.charCodeAt(0)){const e=r.charCodeAt(1),t=120===e||88===e;return zn(r.slice(t?2:1),t?16:10)}return In(r)||e}const Sa={}.hasOwnProperty;function Aa(e,t,r){return"string"!=typeof t&&(r=t,t=void 0),function(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:i(g),autolinkProtocol:u,autolinkEmail:u,atxHeading:i(f),blockQuote:i(function(){return{type:"blockquote",children:[]}}),characterEscape:u,characterReference:u,codeFenced:i(q),codeFencedFenceInfo:a,codeFencedFenceMeta:a,codeIndented:i(q,a),codeText:i(function(){return{type:"inlineCode",value:""}},a),codeTextData:u,data:u,codeFlowValue:u,definition:i(function(){return{type:"definition",identifier:"",label:null,title:null,url:""}}),definitionDestinationString:a,definitionLabelString:a,definitionTitleString:a,emphasis:i(function(){return{type:"emphasis",children:[]}}),hardBreakEscape:i(m),hardBreakTrailing:i(m),htmlFlow:i(V,a),htmlFlowData:u,htmlText:i(V,a),htmlTextData:u,image:i(function(){return{type:"image",title:null,url:"",alt:null}}),label:a,link:i(g),listItem:i(function(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}),listItemValue:function(e){this.data.expectingFirstListItemValue&&(this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0)},listOrdered:i(v,function(){this.data.expectingFirstListItemValue=!0}),listUnordered:i(v),paragraph:i(function(){return{type:"paragraph",children:[]}}),reference:function(){this.data.referenceType="collapsed"},referenceString:a,resourceDestinationString:a,resourceTitleString:a,setextHeading:i(f),strong:i(function(){return{type:"strong",children:[]}}),thematicBreak:i(function(){return{type:"thematicBreak"}})},exit:{atxHeading:s(),atxHeadingSequence:function(e){const t=this.stack[this.stack.length-1];if(!t.depth){const r=this.sliceSerialize(e).length;t.depth=r}},autolink:s(),autolinkEmail:function(e){d.call(this,e),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)},autolinkProtocol:function(e){d.call(this,e),this.stack[this.stack.length-1].url=this.sliceSerialize(e)},blockQuote:s(),characterEscapeValue:d,characterReferenceMarkerHexadecimal:h,characterReferenceMarkerNumeric:h,characterReferenceValue:function(e){const t=this.sliceSerialize(e),r=this.data.characterReferenceType;let n;r?(n=zn(t,"characterReferenceMarkerNumeric"===r?10:16),this.data.characterReferenceType=void 0):n=In(t);this.stack[this.stack.length-1].value+=n},characterReference:function(e){this.stack.pop().position.end=wa(e.end)},codeFenced:s(function(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}),codeFencedFence:function(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)},codeFencedFenceInfo:function(){const e=this.resume();this.stack[this.stack.length-1].lang=e},codeFencedFenceMeta:function(){const e=this.resume();this.stack[this.stack.length-1].meta=e},codeFlowValue:d,codeIndented:s(function(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}),codeText:s(function(){const e=this.resume();this.stack[this.stack.length-1].value=e}),codeTextData:d,data:d,definition:s(),definitionDestinationString:function(){const e=this.resume();this.stack[this.stack.length-1].url=e},definitionLabelString:function(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.label=t,r.identifier=Gn(this.sliceSerialize(e)).toLowerCase()},definitionTitleString:function(){const e=this.resume();this.stack[this.stack.length-1].title=e},emphasis:s(),hardBreakEscape:s(p),hardBreakTrailing:s(p),htmlFlow:s(function(){const e=this.resume();this.stack[this.stack.length-1].value=e}),htmlFlowData:d,htmlText:s(function(){const e=this.resume();this.stack[this.stack.length-1].value=e}),htmlTextData:d,image:s(function(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),label:function(){const e=this.stack[this.stack.length-1],t=this.resume(),r=this.stack[this.stack.length-1];if(this.data.inReference=!0,"link"===r.type){const t=e.children;r.children=t}else r.alt=t},labelText:function(e){const t=this.sliceSerialize(e),r=this.stack[this.stack.length-2];r.label=function(e){return e.replace(ba,ya)}(t),r.identifier=Gn(t).toLowerCase()},lineEnding:function(e){const r=this.stack[this.stack.length-1];if(this.data.atHardBreak)return r.children[r.children.length-1].position.end=wa(e.end),void(this.data.atHardBreak=void 0);!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(r.type)&&(u.call(this,e),d.call(this,e))},link:s(function(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),listItem:s(),listOrdered:s(),listUnordered:s(),paragraph:s(),referenceString:function(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.label=t,r.identifier=Gn(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"},resourceDestinationString:function(){const e=this.resume();this.stack[this.stack.length-1].url=e},resourceTitleString:function(){const e=this.resume();this.stack[this.stack.length-1].title=e},resource:function(){this.data.inReference=void 0},setextHeading:s(function(){this.data.setextHeadingSlurpLineEnding=void 0}),setextHeadingLineSequence:function(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2},setextHeadingText:function(){this.data.setextHeadingSlurpLineEnding=!0},strong:s(),thematicBreak:s()}};Ua(t,(e||{}).mdastExtensions||[]);const r={};return function(e){let i={type:"root",children:[]};const s={stack:[i],tokenStack:[],config:t,enter:o,exit:l,buffer:a,resume:c,data:r},u=[];let d=-1;for(;++d<e.length;)"listOrdered"!==e[d][1].type&&"listUnordered"!==e[d][1].type||("enter"===e[d][0]?u.push(d):d=n(e,u.pop(),d));for(d=-1;++d<e.length;){const r=t[e[d][0]];Sa.call(r,e[d][1].type)&&r[e[d][1].type].call(Object.assign({sliceSerialize:e[d][2].sliceSerialize},s),e[d][1])}if(s.tokenStack.length>0){const e=s.tokenStack[s.tokenStack.length-1];(e[1]||Ca).call(s,void 0,e[0])}for(i.position={start:wa(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:wa(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},d=-1;++d<t.transforms.length;)i=t.transforms[d](i)||i;return i};function n(e,t,r){let n,i,a,o,s=t-1,l=-1,c=!1;for(;++s<=r;){const t=e[s];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?l++:l--,o=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(!n||o||l||a||(a=s),o=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:o=void 0}if(!l&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===l&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(n){let o=s;for(i=void 0;o--;){const t=e[o];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;i&&(e[i][1].type="lineEndingBlank",c=!0),t[1].type="lineEnding",i=o}else if("linePrefix"!==t[1].type&&"blockQuotePrefix"!==t[1].type&&"blockQuotePrefixWhitespace"!==t[1].type&&"blockQuoteMarker"!==t[1].type&&"listItemIndent"!==t[1].type)break}a&&(!i||a<i)&&(n._spread=!0),n.end=Object.assign({},i?e[i][1].start:t[1].end),e.splice(i||s,0,["exit",n,t[2]]),s++,r++}if("listItemPrefix"===t[1].type){const i={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0};n=i,e.splice(s,0,["enter",i,t[2]]),s++,r++,a=void 0,o=!0}}}return e[t][1]._spread=c,r}function i(e,t){return function(r){o.call(this,e(r),r),t&&t.call(this,r)}}function a(){this.stack.push({type:"fragment",children:[]})}function o(e,t,r){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,r||void 0]),e.position={start:wa(t.start),end:void 0}}function s(e){return function(t){e&&e.call(this,t),l.call(this,t)}}function l(e,t){const r=this.stack.pop(),n=this.tokenStack.pop();if(!n)throw new Error("Cannot close `"+e.type+"` ("+pn({start:e.start,end:e.end})+"): it’s not open");n[0].type!==e.type&&(t?t.call(this,e,n[0]):(n[1]||Ca).call(this,e,n[0])),r.position.end=wa(e.end)}function c(){return Nn(this.stack.pop())}function u(e){const t=this.stack[this.stack.length-1].children;let r=t[t.length-1];r&&"text"===r.type||(r={type:"text",value:""},r.position={start:wa(e.start),end:void 0},t.push(r)),this.stack.push(r)}function d(e){const t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=wa(e.end)}function p(){this.data.atHardBreak=!0}function h(e){this.data.characterReferenceType=e.type}function q(){return{type:"code",lang:null,meta:null,value:""}}function f(){return{type:"heading",depth:0,children:[]}}function m(){return{type:"break"}}function V(){return{type:"html",value:""}}function g(){return{type:"link",title:null,url:"",children:[]}}function v(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}}(r)(function(e){for(;!Ci(e););return e}(function(e){const t={constructs:Xn([Va,...(e||{}).extensions||[]]),content:r(li),defined:[],document:r(ci),flow:r(na),lazy:{},string:r(aa),text:r(oa)};return t;function r(e){return function(r){return ga(t,e,r)}}}(r).document().write(function(){let e,t=1,r="",n=!0;return function(i,a,o){const s=[];let l,c,u,d,p;for(i=r+("string"==typeof i?i.toString():new TextDecoder(a||void 0).decode(i)),u=0,r="",n&&(65279===i.charCodeAt(0)&&u++,n=void 0);u<i.length;){if(va.lastIndex=u,l=va.exec(i),d=l&&void 0!==l.index?l.index:i.length,p=i.charCodeAt(d),!l){r=i.slice(u);break}if(10===p&&u===d&&e)s.push(-3),e=void 0;else switch(e&&(s.push(-5),e=void 0),u<d&&(s.push(i.slice(u,d)),t+=d-u),p){case 0:s.push(65533),t++;break;case 9:for(c=4*Math.ceil(t/4),s.push(-2);t++<c;)s.push(-1);break;case 10:s.push(-4),t=1;break;default:e=!0,t=1}u=d+1}return o&&(e&&s.push(-5),r&&s.push(r),s.push(null)),s}}()(e,t,!0))))}function wa(e){return{line:e.line,column:e.column,offset:e.offset}}function Ua(e,t){let r=-1;for(;++r<t.length;){const n=t[r];Array.isArray(n)?Ua(e,n):xa(e,n)}}function xa(e,t){let r;for(r in t)if(Sa.call(t,r))switch(r){case"canContainEols":{const n=t[r];n&&e[r].push(...n);break}case"transforms":{const n=t[r];n&&e[r].push(...n);break}case"enter":case"exit":{const n=t[r];n&&Object.assign(e[r],n);break}}}function Ca(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+pn({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+pn({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+pn({start:t.start,end:t.end})+") is still open")}function Ra(e){const t=this;t.parser=function(r){return Aa(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function Ea(e,t){const r=t.referenceType;let n="]";if("collapsed"===r?n+="[]":"full"===r&&(n+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+n}];const i=e.all(t),a=i[0];a&&"text"===a.type?a.value="["+a.value:i.unshift({type:"text",value:"["});const o=i[i.length-1];return o&&"text"===o.type?o.value+=n:i.push({type:"text",value:n}),i}function Ta(e){const t=e.spread;return null==t?e.children.length>1:t}function ka(e){const t=String(e),r=/\r?\n|\r/g;let n=r.exec(t),i=0;const a=[];for(;n;)a.push(Fa(t.slice(i,n.index),i>0,!0),n[0]),i=n.index+n[0].length,n=r.exec(t);return a.push(Fa(t.slice(i),i>0,!1)),a.join("")}function Fa(e,t,r){let n=0,i=e.length;if(t){let t=e.codePointAt(n);for(;9===t||32===t;)n++,t=e.codePointAt(n)}if(r){let t=e.codePointAt(i-1);for(;9===t||32===t;)i--,t=e.codePointAt(i-1)}return i>n?e.slice(n,i):""}const Wa={blockquote:function(e,t){const r={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,r),e.applyData(t,r)},break:function(e,t){const r={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,r),[e.applyData(t,r),{type:"text",value:"\n"}]},code:function(e,t){const r=t.value?t.value+"\n":"",n={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(n.className=["language-"+i[0]]);let a={type:"element",tagName:"code",properties:n,children:[{type:"text",value:r}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:"element",tagName:"pre",properties:{},children:[a]},e.patch(t,a),a},delete:function(e,t){const r={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},emphasis:function(e,t){const r={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},footnoteReference:function(e,t){const r="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",n=String(t.identifier).toUpperCase(),i=oi(n.toLowerCase()),a=e.footnoteOrder.indexOf(n);let o,s=e.footnoteCounts.get(n);void 0===s?(s=0,e.footnoteOrder.push(n),o=e.footnoteOrder.length):o=a+1,s+=1,e.footnoteCounts.set(n,s);const l={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+i,id:r+"fnref-"+i+(s>1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(t,l);const c={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,c),e.applyData(t,c)},heading:function(e,t){const r={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},html:function(e,t){if(e.options.allowDangerousHtml){const r={type:"raw",value:t.value};return e.patch(t,r),e.applyData(t,r)}},imageReference:function(e,t){const r=String(t.identifier).toUpperCase(),n=e.definitionById.get(r);if(!n)return Ea(e,t);const i={src:oi(n.url||""),alt:t.alt};null!==n.title&&void 0!==n.title&&(i.title=n.title);const a={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)},image:function(e,t){const r={src:oi(t.url)};null!==t.alt&&void 0!==t.alt&&(r.alt=t.alt),null!==t.title&&void 0!==t.title&&(r.title=t.title);const n={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,n),e.applyData(t,n)},inlineCode:function(e,t){const r={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,r);const n={type:"element",tagName:"code",properties:{},children:[r]};return e.patch(t,n),e.applyData(t,n)},linkReference:function(e,t){const r=String(t.identifier).toUpperCase(),n=e.definitionById.get(r);if(!n)return Ea(e,t);const i={href:oi(n.url||"")};null!==n.title&&void 0!==n.title&&(i.title=n.title);const a={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)},link:function(e,t){const r={href:oi(t.url)};null!==t.title&&void 0!==t.title&&(r.title=t.title);const n={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},listItem:function(e,t,r){const n=e.all(t),i=r?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;const r=e.children;let n=-1;for(;!t&&++n<r.length;)t=Ta(r[n])}return t}(r):Ta(t),a={},o=[];if("boolean"==typeof t.checked){const e=n[0];let r;e&&"element"===e.type&&"p"===e.tagName?r=e:(r={type:"element",tagName:"p",properties:{},children:[]},n.unshift(r)),r.children.length>0&&r.children.unshift({type:"text",value:" "}),r.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let s=-1;for(;++s<n.length;){const e=n[s];(i||0!==s||"element"!==e.type||"p"!==e.tagName)&&o.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||i?o.push(e):o.push(...e.children)}const l=n[n.length-1];l&&(i||"element"!==l.type||"p"!==l.tagName)&&o.push({type:"text",value:"\n"});const c={type:"element",tagName:"li",properties:a,children:o};return e.patch(t,c),e.applyData(t,c)},list:function(e,t){const r={},n=e.all(t);let i=-1;for("number"==typeof t.start&&1!==t.start&&(r.start=t.start);++i<n.length;){const e=n[i];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}const a={type:"element",tagName:t.ordered?"ol":"ul",properties:r,children:e.wrap(n,!0)};return e.patch(t,a),e.applyData(t,a)},paragraph:function(e,t){const r={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},root:function(e,t){const r={type:"root",children:e.wrap(e.all(t))};return e.patch(t,r),e.applyData(t,r)},strong:function(e,t){const r={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},table:function(e,t){const r=e.all(t),n=r.shift(),i=[];if(n){const r={type:"element",tagName:"thead",properties:{},children:e.wrap([n],!0)};e.patch(t.children[0],r),i.push(r)}if(r.length>0){const n={type:"element",tagName:"tbody",properties:{},children:e.wrap(r,!0)},a=un(t.children[1]),o=cn(t.children[t.children.length-1]);a&&o&&(n.position={start:a,end:o}),i.push(n)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)},tableCell:function(e,t){const r={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},tableRow:function(e,t,r){const n=r?r.children:void 0,i=0===(n?n.indexOf(t):1)?"th":"td",a=r&&"table"===r.type?r.align:void 0,o=a?a.length:t.children.length;let s=-1;const l=[];for(;++s<o;){const r=t.children[s],n={},o=a?a[s]:void 0;o&&(n.align=o);let c={type:"element",tagName:i,properties:n,children:[]};r&&(c.children=e.all(r),e.patch(r,c),c=e.applyData(r,c)),l.push(c)}const c={type:"element",tagName:"tr",properties:{},children:e.wrap(l,!0)};return e.patch(t,c),e.applyData(t,c)},text:function(e,t){const r={type:"text",value:ka(String(t.value))};return e.patch(t,r),e.applyData(t,r)},thematicBreak:function(e,t){const r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,r),e.applyData(t,r)},toml:Na,yaml:Na,definition:Na,footnoteDefinition:Na};function Na(){}const Ka="object"==typeof self?self:globalThis,Oa=e=>((e,t)=>{const r=(t,r)=>(e.set(r,t),t),n=i=>{if(e.has(i))return e.get(i);const[a,o]=t[i];switch(a){case 0:case-1:return r(o,i);case 1:{const e=r([],i);for(const t of o)e.push(n(t));return e}case 2:{const e=r({},i);for(const[t,r]of o)e[n(t)]=n(r);return e}case 3:return r(new Date(o),i);case 4:{const{source:e,flags:t}=o;return r(new RegExp(e,t),i)}case 5:{const e=r(new Map,i);for(const[t,r]of o)e.set(n(t),n(r));return e}case 6:{const e=r(new Set,i);for(const t of o)e.add(n(t));return e}case 7:{const{name:e,message:t}=o;return r(new Ka[e](t),i)}case 8:return r(BigInt(o),i);case"BigInt":return r(Object(BigInt(o)),i);case"ArrayBuffer":return r(new Uint8Array(o).buffer,o);case"DataView":{const{buffer:e}=new Uint8Array(o);return r(new DataView(e),o)}}return r(new Ka[a](o),i)};return n})(new Map,e)(0),Pa="",{toString:Ia}={},{keys:La}=Object,Ba=e=>{const t=typeof e;if("object"!==t||!e)return[0,t];const r=Ia.call(e).slice(8,-1);switch(r){case"Array":return[1,Pa];case"Object":return[2,Pa];case"Date":return[3,Pa];case"RegExp":return[4,Pa];case"Map":return[5,Pa];case"Set":return[6,Pa];case"DataView":return[1,r]}return r.includes("Array")?[1,r]:r.includes("Error")?[7,r]:[2,r]},Da=([e,t])=>0===e&&("function"===t||"symbol"===t),Xa=(e,{json:t,lossy:r}={})=>{const n=[];return((e,t,r,n)=>{const i=(e,t)=>{const i=n.push(e)-1;return r.set(t,i),i},a=n=>{if(r.has(n))return r.get(n);let[o,s]=Ba(n);switch(o){case 0:{let t=n;switch(s){case"bigint":o=8,t=n.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+s);t=null;break;case"undefined":return i([-1],n)}return i([o,t],n)}case 1:{if(s){let e=n;return"DataView"===s?e=new Uint8Array(n.buffer):"ArrayBuffer"===s&&(e=new Uint8Array(n)),i([s,[...e]],n)}const e=[],t=i([o,e],n);for(const r of n)e.push(a(r));return t}case 2:{if(s)switch(s){case"BigInt":return i([s,n.toString()],n);case"Boolean":case"Number":case"String":return i([s,n.valueOf()],n)}if(t&&"toJSON"in n)return a(n.toJSON());const r=[],l=i([o,r],n);for(const t of La(n))!e&&Da(Ba(n[t]))||r.push([a(t),a(n[t])]);return l}case 3:return i([o,n.toISOString()],n);case 4:{const{source:e,flags:t}=n;return i([o,{source:e,flags:t}],n)}case 5:{const t=[],r=i([o,t],n);for(const[i,o]of n)(e||!Da(Ba(i))&&!Da(Ba(o)))&&t.push([a(i),a(o)]);return r}case 6:{const t=[],r=i([o,t],n);for(const i of n)!e&&Da(Ba(i))||t.push(a(i));return r}}const{message:l}=n;return i([o,{name:s,message:l}],n)};return a})(!(t||r),!!t,new Map,n)(e),n},ja="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?Oa(Xa(e,t)):structuredClone(e):(e,t)=>Oa(Xa(e,t));function Ma(e,t){const r=[{type:"text",value:"↩"}];return t>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),r}function za(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}const Ga=function(e){if(null==e)return Ha;if("function"==typeof e)return Za(e);if("object"==typeof e)return Array.isArray(e)?function(e){const t=[];let r=-1;for(;++r<e.length;)t[r]=Ga(e[r]);return Za(function(...e){let r=-1;for(;++r<t.length;)if(t[r].apply(this,e))return!0;return!1})}(e):function(e){const t=e;return Za(function(r){const n=r;let i;for(i in e)if(n[i]!==t[i])return!1;return!0})}(e);if("string"==typeof e)return t=e,Za(function(e){return e&&e.type===t});var t;throw new Error("Expected function, string, or object as test")};function Za(e){return function(t,r,n){return Boolean(function(e){return null!==e&&"object"==typeof e&&"type"in e}(t)&&e.call(this,t,"number"==typeof r?r:void 0,n||void 0))}}function Ha(){return!0}const Ya=[],Qa=!1,Ja="skip";function _a(e,t,r,n){let i;"function"==typeof t&&"function"!=typeof r?(n=r,r=t):i=t;const a=Ga(i),o=n?-1:1;!function e(i,s,l){const c=i&&"object"==typeof i?i:{};if("string"==typeof c.type){const e="string"==typeof c.tagName?c.tagName:"string"==typeof c.name?c.name:void 0;Object.defineProperty(u,"name",{value:"node ("+i.type+(e?"<"+e+">":"")+")"})}return u;function u(){let c,u,d,p=Ya;if((!t||a(i,s,l[l.length-1]||void 0))&&(p=function(e){return Array.isArray(e)?e:"number"==typeof e?[true,e]:null==e?Ya:[e]}(r(i,l)),p[0]===Qa))return p;if("children"in i&&i.children){const t=i;if(t.children&&p[0]!==Ja)for(u=(n?t.children.length:-1)+o,d=l.concat(t);u>-1&&u<t.children.length;){const r=t.children[u];if(c=e(r,u,d)(),c[0]===Qa)return c;u="number"==typeof c[1]?c[1]:u+o}}return p}}(e,void 0,[])()}function $a(e,t,r,n){let i,a,o;"function"==typeof t&&"function"!=typeof r?(a=void 0,o=t,i=r):(a=t,o=r,i=n),_a(e,a,function(e,t){const r=t[t.length-1],n=r?r.children.indexOf(e):void 0;return o(e,n,r)},i)}const eo={}.hasOwnProperty,to={};function ro(e,t){e.position&&(t.position=function(e){const t=un(e),r=cn(e);if(t&&r)return{start:t,end:r}}(e))}function no(e,t){let r=t;if(e&&e.data){const t=e.data.hName,n=e.data.hChildren,i=e.data.hProperties;"string"==typeof t&&("element"===r.type?r.tagName=t:r={type:"element",tagName:t,properties:{},children:"children"in r?r.children:[r]}),"element"===r.type&&i&&Object.assign(r.properties,ja(i)),"children"in r&&r.children&&null!=n&&(r.children=n)}return r}function io(e,t){const r=t.data||{},n=!("value"in t)||eo.call(r,"hProperties")||eo.call(r,"hChildren")?{type:"element",tagName:"div",properties:{},children:e.all(t)}:{type:"text",value:t.value};return e.patch(t,n),e.applyData(t,n)}function ao(e,t){const r=[];let n=-1;for(t&&r.push({type:"text",value:"\n"});++n<e.length;)n&&r.push({type:"text",value:"\n"}),r.push(e[n]);return t&&e.length>0&&r.push({type:"text",value:"\n"}),r}function oo(e){let t=0,r=e.charCodeAt(t);for(;9===r||32===r;)t++,r=e.charCodeAt(t);return e.slice(t)}function so(e,t){const r=function(e,t){const r=t||to,n=new Map,i=new Map,a=new Map,o={...Wa,...r.handlers},s={all:function(e){const t=[];if("children"in e){const r=e.children;let n=-1;for(;++n<r.length;){const i=s.one(r[n],e);if(i){if(n&&"break"===r[n-1].type&&(Array.isArray(i)||"text"!==i.type||(i.value=oo(i.value)),!Array.isArray(i)&&"element"===i.type)){const e=i.children[0];e&&"text"===e.type&&(e.value=oo(e.value))}Array.isArray(i)?t.push(...i):t.push(i)}}}return t},applyData:no,definitionById:n,footnoteById:i,footnoteCounts:a,footnoteOrder:[],handlers:o,one:function(e,t){const r=e.type,n=s.handlers[r];if(eo.call(s.handlers,r)&&n)return n(s,e,t);if(s.options.passThrough&&s.options.passThrough.includes(r)){if("children"in e){const{children:t,...r}=e,n=ja(r);return n.children=s.all(e),n}return ja(e)}return(s.options.unknownHandler||io)(s,e,t)},options:r,patch:ro,wrap:ao};return $a(e,function(e){if("definition"===e.type||"footnoteDefinition"===e.type){const t="definition"===e.type?n:i,r=String(e.identifier).toUpperCase();t.has(r)||t.set(r,e)}}),s}(e,t),n=r.one(e,void 0),i=function(e){const t="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||Ma,n=e.options.footnoteBackLabel||za,i=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let l=-1;for(;++l<e.footnoteOrder.length;){const i=e.footnoteById.get(e.footnoteOrder[l]);if(!i)continue;const a=e.all(i),o=String(i.identifier).toUpperCase(),c=oi(o.toLowerCase());let u=0;const d=[],p=e.footnoteCounts.get(o);for(;void 0!==p&&++u<=p;){d.length>0&&d.push({type:"text",value:" "});let e="string"==typeof r?r:r(l,u);"string"==typeof e&&(e={type:"text",value:e}),d.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+c+(u>1?"-"+u:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof n?n:n(l,u),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}const h=a[a.length-1];if(h&&"element"===h.type&&"p"===h.tagName){const e=h.children[h.children.length-1];e&&"text"===e.type?e.value+=" ":h.children.push({type:"text",value:" "}),h.children.push(...d)}else a.push(...d);const q={type:"element",tagName:"li",properties:{id:t+"fn-"+c},children:e.wrap(a,!0)};e.patch(i,q),s.push(q)}if(0!==s.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...ja(o),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:"\n"}]}}(r),a=Array.isArray(n)?{type:"root",children:n}:n||{type:"root",children:[]};return i&&a.children.push({type:"text",value:"\n"},i),a}function lo(e,t){return e&&"run"in e?async function(r,n){const i=so(r,{file:n,...t});await e.run(i,n)}:function(r,n){return so(r,{file:n,...e||t})}}function co(e){if(e)throw e}var uo=Object.prototype.hasOwnProperty,po=Object.prototype.toString,ho=Object.defineProperty,qo=Object.getOwnPropertyDescriptor,fo=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===po.call(e)},mo=function(e){if(!e||"[object Object]"!==po.call(e))return!1;var t,r=uo.call(e,"constructor"),n=e.constructor&&e.constructor.prototype&&uo.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!r&&!n)return!1;for(t in e);return void 0===t||uo.call(e,t)},Vo=function(e,t){ho&&"__proto__"===t.name?ho(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},go=function(e,t){if("__proto__"===t){if(!uo.call(e,t))return;if(qo)return qo(e,t).value}return e[t]},vo=function e(){var t,r,n,i,a,o,s=arguments[0],l=1,c=arguments.length,u=!1;for("boolean"==typeof s&&(u=s,s=arguments[1]||{},l=2),(null==s||"object"!=typeof s&&"function"!=typeof s)&&(s={});l<c;++l)if(null!=(t=arguments[l]))for(r in t)n=go(s,r),s!==(i=go(t,r))&&(u&&i&&(mo(i)||(a=fo(i)))?(a?(a=!1,o=n&&fo(n)?n:[]):o=n&&mo(n)?n:{},Vo(s,{name:r,newValue:e(u,o,i)})):void 0!==i&&Vo(s,{name:r,newValue:i}));return s};const bo=f(vo);function yo(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}const So=function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');Co(e);let r,n=0,i=-1,a=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;a--;)if(47===e.codePointAt(a)){if(r){n=a+1;break}}else i<0&&(r=!0,i=a+1);return i<0?"":e.slice(n,i)}if(t===e)return"";let o=-1,s=t.length-1;for(;a--;)if(47===e.codePointAt(a)){if(r){n=a+1;break}}else o<0&&(r=!0,o=a+1),s>-1&&(e.codePointAt(a)===t.codePointAt(s--)?s<0&&(i=a):(s=-1,i=o));return n===i?i=o:i<0&&(i=e.length),e.slice(n,i)},Ao=function(e){if(Co(e),0===e.length)return".";let t,r=-1,n=e.length;for(;--n;)if(47===e.codePointAt(n)){if(t){r=n;break}}else t||(t=!0);return r<0?47===e.codePointAt(0)?"/":".":1===r&&47===e.codePointAt(0)?"//":e.slice(0,r)},wo=function(e){Co(e);let t,r=e.length,n=-1,i=0,a=-1,o=0;for(;r--;){const s=e.codePointAt(r);if(47!==s)n<0&&(t=!0,n=r+1),46===s?a<0?a=r:1!==o&&(o=1):a>-1&&(o=-1);else if(t){i=r+1;break}}return a<0||n<0||0===o||1===o&&a===n-1&&a===i+1?"":e.slice(a,n)},Uo=function(...e){let t,r=-1;for(;++r<e.length;)Co(e[r]),e[r]&&(t=void 0===t?e[r]:t+"/"+e[r]);return void 0===t?".":function(e){Co(e);const t=47===e.codePointAt(0);let r=function(e,t){let r,n,i="",a=0,o=-1,s=0,l=-1;for(;++l<=e.length;){if(l<e.length)r=e.codePointAt(l);else{if(47===r)break;r=47}if(47===r){if(o===l-1||1===s);else if(o!==l-1&&2===s){if(i.length<2||2!==a||46!==i.codePointAt(i.length-1)||46!==i.codePointAt(i.length-2))if(i.length>2){if(n=i.lastIndexOf("/"),n!==i.length-1){n<0?(i="",a=0):(i=i.slice(0,n),a=i.length-1-i.lastIndexOf("/")),o=l,s=0;continue}}else if(i.length>0){i="",a=0,o=l,s=0;continue}t&&(i=i.length>0?i+"/..":"..",a=2)}else i.length>0?i+="/"+e.slice(o+1,l):i=e.slice(o+1,l),a=l-o-1;o=l,s=0}else 46===r&&s>-1?s++:s=-1}return i}(e,!t);return 0!==r.length||t||(r="."),r.length>0&&47===e.codePointAt(e.length-1)&&(r+="/"),t?"/"+r:r}(t)},xo="/";function Co(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Ro=function(){return"/"};function Eo(e){return Boolean(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}const To=["history","path","basename","stem","extname","dirname"];class ko{constructor(e){let t;t=e?Eo(e)?{path:e}:"string"==typeof e||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)?{value:e}:e:{},this.cwd="cwd"in t?"":Ro(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r,n=-1;for(;++n<To.length;){const e=To[n];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(r in t)To.includes(r)||(this[r]=t[r])}get basename(){return"string"==typeof this.path?So(this.path):void 0}set basename(e){Wo(e,"basename"),Fo(e,"basename"),this.path=Uo(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?Ao(this.path):void 0}set dirname(e){No(this.basename,"dirname"),this.path=Uo(e||"",this.basename)}get extname(){return"string"==typeof this.path?wo(this.path):void 0}set extname(e){if(Fo(e,"extname"),No(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Uo(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){Eo(e)&&(e=function(e){if("string"==typeof e)e=new URL(e);else if(!Eo(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){const e=new TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}const t=e.pathname;let r=-1;for(;++r<t.length;)if(37===t.codePointAt(r)&&50===t.codePointAt(r+1)){const e=t.codePointAt(r+2);if(70===e||102===e){const e=new TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}(e)),Wo(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?So(this.path,this.extname):void 0}set stem(e){Wo(e,"stem"),Fo(e,"stem"),this.path=Uo(this.dirname||"",e+(this.extname||""))}fail(e,t,r){const n=this.message(e,t,r);throw n.fatal=!0,n}info(e,t,r){const n=this.message(e,t,r);return n.fatal=void 0,n}message(e,t,r){const n=new mn(e,t,r);return this.path&&(n.name=this.path+":"+n.name,n.file=this.path),n.fatal=!1,this.messages.push(n),n}toString(e){return void 0===this.value?"":"string"==typeof this.value?this.value:new TextDecoder(e||void 0).decode(this.value)}}function Fo(e,t){if(e&&e.includes(xo))throw new Error("`"+t+"` cannot be a path: did not expect `"+xo+"`")}function Wo(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function No(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}const Ko=function(e){const t=this.constructor.prototype,r=t[e],n=function(){return r.apply(n,arguments)};return Object.setPrototypeOf(n,t),n},Oo={}.hasOwnProperty;class Po extends Ko{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=function(){const e=[],t={run:function(...t){let r=-1;const n=t.pop();if("function"!=typeof n)throw new TypeError("Expected function as last argument, not "+n);!function i(a,...o){const s=e[++r];let l=-1;if(a)n(a);else{for(;++l<t.length;)null!==o[l]&&void 0!==o[l]||(o[l]=t[l]);t=o,s?function(e,t){let r;return function(...t){const o=e.length>t.length;let s;o&&t.push(n);try{s=e.apply(this,t)}catch(a){if(o&&r)throw a;return n(a)}o||(s&&s.then&&"function"==typeof s.then?s.then(i,n):s instanceof Error?n(s):i(s))};function n(e,...n){r||(r=!0,t(e,...n))}function i(e){n(null,e)}}(s,i)(...o):n(null,...o)}}(null,...t)},use:function(r){if("function"!=typeof r)throw new TypeError("Expected `middelware` to be a function, not "+r);return e.push(r),t}};return t}()}copy(){const e=new Po;let t=-1;for(;++t<this.attachers.length;){const r=this.attachers[t];e.use(...r)}return e.data(bo(!0,{},this.namespace)),e}data(e,t){return"string"==typeof e?2===arguments.length?(Do("data",this.frozen),this.namespace[e]=t,this):Oo.call(this.namespace,e)&&this.namespace[e]||void 0:e?(Do("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;const e=this;for(;++this.freezeIndex<this.attachers.length;){const[t,...r]=this.attachers[this.freezeIndex];if(!1===r[0])continue;!0===r[0]&&(r[0]=void 0);const n=t.call(e,...r);"function"==typeof n&&this.transformers.use(n)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();const t=Mo(e),r=this.parser||this.Parser;return Lo("parse",r),r(String(t),t)}process(e,t){const r=this;return this.freeze(),Lo("process",this.parser||this.Parser),Bo("process",this.compiler||this.Compiler),t?n(void 0,t):new Promise(n);function n(n,i){const a=Mo(e),o=r.parse(a);function s(e,r){e||!r?i(e):n?n(r):t(void 0,r)}r.run(o,a,function(e,t,n){if(e||!t||!n)return s(e);const i=t,a=r.stringify(i,n);var o;"string"==typeof(o=a)||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(o)?n.value=a:n.result=a,s(e,n)})}}processSync(e){let t,r=!1;return this.freeze(),Lo("processSync",this.parser||this.Parser),Bo("processSync",this.compiler||this.Compiler),this.process(e,function(e,n){r=!0,co(e),t=n}),jo("processSync","process",r),t}run(e,t,r){Xo(e),this.freeze();const n=this.transformers;return r||"function"!=typeof t||(r=t,t=void 0),r?i(void 0,r):new Promise(i);function i(i,a){const o=Mo(t);n.run(e,o,function(t,n,o){const s=n||e;t?a(t):i?i(s):r(void 0,s,o)})}}runSync(e,t){let r,n=!1;return this.run(e,t,function(e,t){co(e),r=t,n=!0}),jo("runSync","run",n),r}stringify(e,t){this.freeze();const r=Mo(t),n=this.compiler||this.Compiler;return Bo("stringify",n),Xo(e),n(e,r)}use(e,...t){const r=this.attachers,n=this.namespace;if(Do("use",this.frozen),null==e);else if("function"==typeof e)s(e,t);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");Array.isArray(e)?o(e):a(e)}return this;function i(e){if("function"==typeof e)s(e,[]);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");if(Array.isArray(e)){const[t,...r]=e;s(t,r)}else a(e)}}function a(e){if(!("plugins"in e)&&!("settings"in e))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");o(e.plugins),e.settings&&(n.settings=bo(!0,n.settings,e.settings))}function o(e){let t=-1;if(null==e);else{if(!Array.isArray(e))throw new TypeError("Expected a list of plugins, not `"+e+"`");for(;++t<e.length;)i(e[t])}}function s(e,t){let n=-1,i=-1;for(;++n<r.length;)if(r[n][0]===e){i=n;break}if(-1===i)r.push([e,...t]);else if(t.length>0){let[n,...a]=t;const o=r[i][1];yo(o)&&yo(n)&&(n=bo(!0,o,n)),r[i]=[e,n,...a]}}}}const Io=(new Po).freeze();function Lo(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `parser`")}function Bo(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `compiler`")}function Do(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Xo(e){if(!yo(e)||"string"!=typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function jo(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Mo(e){return function(e){return Boolean(e&&"object"==typeof e&&"message"in e&&"messages"in e)}(e)?e:new ko(e)}const zo=[],Go={allowDangerousHtml:!0},Zo=/^(https?|ircs?|mailto|xmpp)$/i,Ho=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function Yo(e){const t=function(e){const t=e.rehypePlugins||zo,r=e.remarkPlugins||zo,n=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Go}:Go;return Io().use(Ra).use(r).use(lo,n).use(t)}(e),r=function(e){const t=e.children||"",r=new ko;return"string"==typeof t&&(r.value=t),r}(e);return function(e,t){const r=t.allowedElements,n=t.allowElement,i=t.components,a=t.disallowedElements,o=t.skipHtml,s=t.unwrapDisallowed,l=t.urlTransform||Qo;for(const c of Ho)Object.hasOwn(t,c.from)&&Zt((c.from,c.to&&c.to,c.id));return $a(e,function(e,t,i){if("raw"===e.type&&i&&"number"==typeof t)return o?i.children.splice(t,1):i.children[t]={type:"text",value:e.value},t;if("element"===e.type){let t;for(t in Fn)if(Object.hasOwn(Fn,t)&&Object.hasOwn(e.properties,t)){const r=e.properties[t],n=Fn[t];(null===n||n.includes(e.tagName))&&(e.properties[t]=l(String(r||""),t,e))}}if("element"===e.type){let o=r?!r.includes(e.tagName):!!a&&a.includes(e.tagName);if(!o&&n&&"number"==typeof t&&(o=!n(e,t,i)),o&&i&&"number"==typeof t)return s&&e.children?i.children.splice(t,1,...e.children):i.children.splice(t,1),t}}),function(e,t){if(!t||void 0===t.Fragment)throw new TypeError("Expected `Fragment` in options");const r=t.filePath||void 0;let n;if(t.development){if("function"!=typeof t.jsxDEV)throw new TypeError("Expected `jsxDEV` in options when `development: true`");n=function(e,t){return function(r,n,i,a){const o=Array.isArray(i.children),s=un(r);return t(n,i,a,o,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}(r,t.jsxDEV)}else{if("function"!=typeof t.jsx)throw new TypeError("Expected `jsx` in production options");if("function"!=typeof t.jsxs)throw new TypeError("Expected `jsxs` in production options");i=t.jsx,a=t.jsxs,n=function(e,t,r,n){const o=Array.isArray(r.children)?a:i;return n?o(t,r,n):o(t,r)}}var i,a;const o={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:n,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:r,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?Kr:Nr,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},s=An(o,e,void 0);return s&&"string"!=typeof s?s:o.create(e,o.Fragment,{children:s||void 0},void 0)}(e,{Fragment:S.Fragment,components:i,ignoreInvalidStyle:!0,jsx:S.jsx,jsxs:S.jsxs,passKeys:!0,passNode:!0})}(t.runSync(t.parse(r),r),e)}function Qo(e){const t=e.indexOf(":"),r=e.indexOf("?"),n=e.indexOf("#"),i=e.indexOf("/");return-1===t||-1!==i&&t>i||-1!==r&&t>r||-1!==n&&t>n||Zo.test(e.slice(0,t))?e:""}function Jo(e,t){const r=String(e);if("string"!=typeof t)throw new TypeError("Expected character");let n=0,i=r.indexOf(t);for(;-1!==i;)n++,i=r.indexOf(t,i+t.length);return n}function _o(e){return"string"==typeof e?new RegExp(function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(e),"g"):e}function $o(e){return"function"==typeof e?e:function(){return e}}const es="phrasing",ts=["autolink","link","image","label"];function rs(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function ns(e){this.config.enter.autolinkProtocol.call(this,e)}function is(e){this.config.exit.autolinkProtocol.call(this,e)}function as(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function os(e){this.config.exit.autolinkEmail.call(this,e)}function ss(e){this.exit(e)}function ls(e){!function(e,t,r){const n=Ga((r||{}).ignore||[]),i=function(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const r=!e[0]||Array.isArray(e[0])?e:[e];let n=-1;for(;++n<r.length;){const e=r[n];t.push([_o(e[0]),$o(e[1])])}return t}(t);let a=-1;for(;++a<i.length;)_a(e,"text",o);function o(e,t){let r,o=-1;for(;++o<t.length;){const e=t[o],i=r?r.children:void 0;if(n(e,i?i.indexOf(e):void 0,r))return;r=e}if(r)return function(e,t){const r=t[t.length-1],n=i[a][0],o=i[a][1];let s=0;const l=r.children.indexOf(e);let c=!1,u=[];n.lastIndex=0;let d=n.exec(e.value);for(;d;){const r=d.index,i={index:d.index,input:d.input,stack:[...t,e]};let a=o(...d,i);if("string"==typeof a&&(a=a.length>0?{type:"text",value:a}:void 0),!1===a?n.lastIndex=r+1:(s!==r&&u.push({type:"text",value:e.value.slice(s,r)}),Array.isArray(a)?u.push(...a):a&&u.push(a),s=r+d[0].length,c=!0),!n.global)break;d=n.exec(e.value)}return c?(s<e.value.length&&u.push({type:"text",value:e.value.slice(s)}),r.children.splice(l,1,...u)):u=[e],l+u.length}(e,t)}}(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,cs],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),us]],{ignore:["link","linkReference"]})}function cs(e,t,r,n,i){let a="";if(!ds(i))return!1;if(/^w/i.test(t)&&(r=t+r,t="",a="http://"),!function(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}(r))return!1;const o=function(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let r=t[0],n=r.indexOf(")");const i=Jo(e,"(");let a=Jo(e,")");for(;-1!==n&&i>a;)e+=r.slice(0,n+1),r=r.slice(n+1),n=r.indexOf(")"),a++;return[e,r]}(r+n);if(!o[0])return!1;const s={type:"link",title:null,url:a+t+o[0],children:[{type:"text",value:t+o[0]}]};return o[1]?[s,{type:"text",value:o[1]}]:s}function us(e,t,r,n){return!(!ds(n,!0)||/[-\d_]$/.test(r))&&{type:"link",title:null,url:"mailto:"+t+"@"+r,children:[{type:"text",value:t+"@"+r}]}}function ds(e,t){const r=e.input.charCodeAt(e.index-1);return(0===e.index||ii(r)||ni(r))&&(!t||47!==r)}function ps(){this.buffer()}function hs(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function qs(){this.buffer()}function fs(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function ms(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=Gn(this.sliceSerialize(e)).toLowerCase(),r.label=t}function Vs(e){this.exit(e)}function gs(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=Gn(this.sliceSerialize(e)).toLowerCase(),r.label=t}function vs(e){this.exit(e)}function bs(e,t,r,n){const i=r.createTracker(n);let a=i.move("[^");const o=r.enter("footnoteReference"),s=r.enter("reference");return a+=i.move(r.safe(r.associationId(e),{after:"]",before:a})),s(),o(),a+=i.move("]"),a}function ys(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:function(e,r,n,i){const a=n.createTracker(i);let o=a.move("[^");const s=n.enter("footnoteDefinition"),l=n.enter("label");return o+=a.move(n.safe(n.associationId(e),{before:o,after:"]"})),l(),o+=a.move("]:"),e.children&&e.children.length>0&&(a.shift(4),o+=a.move((t?"\n":" ")+n.indentLines(n.containerFlow(e,a.current()),t?As:Ss))),s(),o},footnoteReference:bs},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]}}function Ss(e,t,r){return 0===t?e:As(e,0,r)}function As(e,t,r){return(r?"":" ")+e}bs.peek=function(){return"["};const ws=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function Us(e){this.enter({type:"delete",children:[]},e)}function xs(e){this.exit(e)}function Cs(e,t,r,n){const i=r.createTracker(n),a=r.enter("strikethrough");let o=i.move("~~");return o+=r.containerPhrasing(e,{...i.current(),before:o,after:"~"}),o+=i.move("~~"),a(),o}function Rs(e){return e.length}function Es(e){return null==e?"":String(e)}function Ts(e){const t="string"==typeof e?e.codePointAt(0):0;return 67===t||99===t?99:76===t||108===t?108:82===t||114===t?114:0}function ks(e,t,r){return">"+(r?"":" ")+e}function Fs(e,t){return Ws(e,t.inConstruct,!0)&&!Ws(e,t.notInConstruct,!1)}function Ws(e,t,r){if("string"==typeof t&&(t=[t]),!t||0===t.length)return r;let n=-1;for(;++n<t.length;)if(e.includes(t[n]))return!0;return!1}function Ns(e,t,r,n){let i=-1;for(;++i<r.unsafe.length;)if("\n"===r.unsafe[i].character&&Fs(r.stack,r.unsafe[i]))return/[ \t]/.test(n.before)?"":" ";return"\\\n"}function Ks(e,t){const r=String(e);let n=r.indexOf(t),i=n,a=0,o=0;if("string"!=typeof t)throw new TypeError("Expected substring");for(;-1!==n;)n===i?++a>o&&(o=a):a=1,i=n+t.length,n=r.indexOf(t,i);return o}function Os(e,t,r){return(r?"":" ")+e}function Ps(e){const t=e.options.quote||'"';if('"'!==t&&"'"!==t)throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function Is(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Ls(e,t,r){const n=di(e),i=di(t);return void 0===n?void 0===i?"_"===r?{inside:!0,outside:!0}:{inside:!1,outside:!1}:1===i?{inside:!0,outside:!0}:{inside:!1,outside:!0}:1===n?void 0===i?{inside:!1,outside:!1}:1===i?{inside:!0,outside:!0}:{inside:!1,outside:!1}:void 0===i?{inside:!1,outside:!1}:1===i?{inside:!0,outside:!1}:{inside:!1,outside:!1}}function Bs(e,t,r,n){const i=function(e){const t=e.options.emphasis||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}(r),a=r.enter("emphasis"),o=r.createTracker(n),s=o.move(i);let l=o.move(r.containerPhrasing(e,{after:i,before:s,...o.current()}));const c=l.charCodeAt(0),u=Ls(n.before.charCodeAt(n.before.length-1),c,i);u.inside&&(l=Is(c)+l.slice(1));const d=l.charCodeAt(l.length-1),p=Ls(n.after.charCodeAt(0),d,i);p.inside&&(l=l.slice(0,-1)+Is(d));const h=o.move(i);return a(),r.attentionEncodeSurroundingInfo={after:p.outside,before:u.outside},s+l+h}function Ds(e){return e.value||""}function Xs(e,t,r,n){const i=Ps(r),a='"'===i?"Quote":"Apostrophe",o=r.enter("image");let s=r.enter("label");const l=r.createTracker(n);let c=l.move("![");return c+=l.move(r.safe(e.alt,{before:c,after:"]",...l.current()})),c+=l.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=r.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(r.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(s=r.enter("destinationRaw"),c+=l.move(r.safe(e.url,{before:c,after:e.title?" ":")",...l.current()}))),s(),e.title&&(s=r.enter(`title${a}`),c+=l.move(" "+i),c+=l.move(r.safe(e.title,{before:c,after:i,...l.current()})),c+=l.move(i),s()),c+=l.move(")"),o(),c}function js(e,t,r,n){const i=e.referenceType,a=r.enter("imageReference");let o=r.enter("label");const s=r.createTracker(n);let l=s.move("![");const c=r.safe(e.alt,{before:l,after:"]",...s.current()});l+=s.move(c+"]["),o();const u=r.stack;r.stack=[],o=r.enter("reference");const d=r.safe(r.associationId(e),{before:l,after:"]",...s.current()});return o(),r.stack=u,a(),"full"!==i&&c&&c===d?"shortcut"===i?l=l.slice(0,-1):l+=s.move("]"):l+=s.move(d+"]"),l}function Ms(e,t,r){let n=e.value||"",i="`",a=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(n);)i+="`";for(/[^ \r\n]/.test(n)&&(/^[ \r\n]/.test(n)&&/[ \r\n]$/.test(n)||/^`|`$/.test(n))&&(n=" "+n+" ");++a<r.unsafe.length;){const e=r.unsafe[a],t=r.compilePattern(e);let i;if(e.atBreak)for(;i=t.exec(n);){let e=i.index;10===n.charCodeAt(e)&&13===n.charCodeAt(e-1)&&e--,n=n.slice(0,e)+" "+n.slice(i.index+1)}}return i+n+i}function zs(e,t){const r=Nn(e);return Boolean(!t.options.resourceLink&&e.url&&!e.title&&e.children&&1===e.children.length&&"text"===e.children[0].type&&(r===e.url||"mailto:"+r===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}function Gs(e,t,r,n){const i=Ps(r),a='"'===i?"Quote":"Apostrophe",o=r.createTracker(n);let s,l;if(zs(e,r)){const t=r.stack;r.stack=[],s=r.enter("autolink");let n=o.move("<");return n+=o.move(r.containerPhrasing(e,{before:n,after:">",...o.current()})),n+=o.move(">"),s(),r.stack=t,n}s=r.enter("link"),l=r.enter("label");let c=o.move("[");return c+=o.move(r.containerPhrasing(e,{before:c,after:"](",...o.current()})),c+=o.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=r.enter("destinationLiteral"),c+=o.move("<"),c+=o.move(r.safe(e.url,{before:c,after:">",...o.current()})),c+=o.move(">")):(l=r.enter("destinationRaw"),c+=o.move(r.safe(e.url,{before:c,after:e.title?" ":")",...o.current()}))),l(),e.title&&(l=r.enter(`title${a}`),c+=o.move(" "+i),c+=o.move(r.safe(e.title,{before:c,after:i,...o.current()})),c+=o.move(i),l()),c+=o.move(")"),s(),c}function Zs(e,t,r,n){const i=e.referenceType,a=r.enter("linkReference");let o=r.enter("label");const s=r.createTracker(n);let l=s.move("[");const c=r.containerPhrasing(e,{before:l,after:"]",...s.current()});l+=s.move(c+"]["),o();const u=r.stack;r.stack=[],o=r.enter("reference");const d=r.safe(r.associationId(e),{before:l,after:"]",...s.current()});return o(),r.stack=u,a(),"full"!==i&&c&&c===d?"shortcut"===i?l=l.slice(0,-1):l+=s.move("]"):l+=s.move(d+"]"),l}function Hs(e){const t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function Ys(e){const t=e.options.rule||"*";if("*"!==t&&"-"!==t&&"_"!==t)throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}Cs.peek=function(){return"~"},Bs.peek=function(e,t,r){return r.options.emphasis||"*"},Ds.peek=function(){return"<"},Xs.peek=function(){return"!"},js.peek=function(){return"!"},Ms.peek=function(){return"`"},Gs.peek=function(e,t,r){return zs(e,r)?"<":"["},Zs.peek=function(){return"["};const Qs=Ga(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Js(e,t,r,n){const i=function(e){const t=e.options.strong||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}(r),a=r.enter("strong"),o=r.createTracker(n),s=o.move(i+i);let l=o.move(r.containerPhrasing(e,{after:i,before:s,...o.current()}));const c=l.charCodeAt(0),u=Ls(n.before.charCodeAt(n.before.length-1),c,i);u.inside&&(l=Is(c)+l.slice(1));const d=l.charCodeAt(l.length-1),p=Ls(n.after.charCodeAt(0),d,i);p.inside&&(l=l.slice(0,-1)+Is(d));const h=o.move(i+i);return a(),r.attentionEncodeSurroundingInfo={after:p.outside,before:u.outside},s+l+h}Js.peek=function(e,t,r){return r.options.strong||"*"};const _s={blockquote:function(e,t,r,n){const i=r.enter("blockquote"),a=r.createTracker(n);a.move("> "),a.shift(2);const o=r.indentLines(r.containerFlow(e,a.current()),ks);return i(),o},break:Ns,code:function(e,t,r,n){const i=function(e){const t=e.options.fence||"`";if("`"!==t&&"~"!==t)throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}(r),a=e.value||"",o="`"===i?"GraveAccent":"Tilde";if(function(e,t){return Boolean(!1===t.options.fences&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}(e,r)){const e=r.enter("codeIndented"),t=r.indentLines(a,Os);return e(),t}const s=r.createTracker(n),l=i.repeat(Math.max(Ks(a,i)+1,3)),c=r.enter("codeFenced");let u=s.move(l);if(e.lang){const t=r.enter(`codeFencedLang${o}`);u+=s.move(r.safe(e.lang,{before:u,after:" ",encode:["`"],...s.current()})),t()}if(e.lang&&e.meta){const t=r.enter(`codeFencedMeta${o}`);u+=s.move(" "),u+=s.move(r.safe(e.meta,{before:u,after:"\n",encode:["`"],...s.current()})),t()}return u+=s.move("\n"),a&&(u+=s.move(a+"\n")),u+=s.move(l),c(),u},definition:function(e,t,r,n){const i=Ps(r),a='"'===i?"Quote":"Apostrophe",o=r.enter("definition");let s=r.enter("label");const l=r.createTracker(n);let c=l.move("[");return c+=l.move(r.safe(r.associationId(e),{before:c,after:"]",...l.current()})),c+=l.move("]: "),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=r.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(r.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(s=r.enter("destinationRaw"),c+=l.move(r.safe(e.url,{before:c,after:e.title?" ":"\n",...l.current()}))),s(),e.title&&(s=r.enter(`title${a}`),c+=l.move(" "+i),c+=l.move(r.safe(e.title,{before:c,after:i,...l.current()})),c+=l.move(i),s()),o(),c},emphasis:Bs,hardBreak:Ns,heading:function(e,t,r,n){const i=Math.max(Math.min(6,e.depth||1),1),a=r.createTracker(n);if(function(e,t){let r=!1;return $a(e,function(e){if("value"in e&&/\r?\n|\r/.test(e.value)||"break"===e.type)return r=!0,Qa}),Boolean((!e.depth||e.depth<3)&&Nn(e)&&(t.options.setext||r))}(e,r)){const t=r.enter("headingSetext"),n=r.enter("phrasing"),o=r.containerPhrasing(e,{...a.current(),before:"\n",after:"\n"});return n(),t(),o+"\n"+(1===i?"=":"-").repeat(o.length-(Math.max(o.lastIndexOf("\r"),o.lastIndexOf("\n"))+1))}const o="#".repeat(i),s=r.enter("headingAtx"),l=r.enter("phrasing");a.move(o+" ");let c=r.containerPhrasing(e,{before:"# ",after:"\n",...a.current()});return/^[\t ]/.test(c)&&(c=Is(c.charCodeAt(0))+c.slice(1)),c=c?o+" "+c:o,r.options.closeAtx&&(c+=" "+o),l(),s(),c},html:Ds,image:Xs,imageReference:js,inlineCode:Ms,link:Gs,linkReference:Zs,list:function(e,t,r,n){const i=r.enter("list"),a=r.bulletCurrent;let o=e.ordered?function(e){const t=e.options.bulletOrdered||".";if("."!==t&&")"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}(r):Hs(r);const s=e.ordered?"."===o?")":".":function(e){const t=Hs(e),r=e.options.bulletOther;if(!r)return"*"===t?"-":"*";if("*"!==r&&"+"!==r&&"-"!==r)throw new Error("Cannot serialize items with `"+r+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(r===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+r+"`) to be different");return r}(r);let l=!(!t||!r.bulletLastUsed)&&o===r.bulletLastUsed;if(!e.ordered){const t=e.children?e.children[0]:void 0;if("*"!==o&&"-"!==o||!t||t.children&&t.children[0]||"list"!==r.stack[r.stack.length-1]||"listItem"!==r.stack[r.stack.length-2]||"list"!==r.stack[r.stack.length-3]||"listItem"!==r.stack[r.stack.length-4]||0!==r.indexStack[r.indexStack.length-1]||0!==r.indexStack[r.indexStack.length-2]||0!==r.indexStack[r.indexStack.length-3]||(l=!0),Ys(r)===o&&t){let t=-1;for(;++t<e.children.length;){const r=e.children[t];if(r&&"listItem"===r.type&&r.children&&r.children[0]&&"thematicBreak"===r.children[0].type){l=!0;break}}}}l&&(o=s),r.bulletCurrent=o;const c=r.containerFlow(e,n);return r.bulletLastUsed=o,r.bulletCurrent=a,i(),c},listItem:function(e,t,r,n){const i=function(e){const t=e.options.listItemIndent||"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}(r);let a=r.bulletCurrent||Hs(r);t&&"list"===t.type&&t.ordered&&(a=("number"==typeof t.start&&t.start>-1?t.start:1)+(!1===r.options.incrementListMarker?0:t.children.indexOf(e))+a);let o=a.length+1;("tab"===i||"mixed"===i&&(t&&"list"===t.type&&t.spread||e.spread))&&(o=4*Math.ceil(o/4));const s=r.createTracker(n);s.move(a+" ".repeat(o-a.length)),s.shift(o);const l=r.enter("listItem"),c=r.indentLines(r.containerFlow(e,s.current()),function(e,t,r){return t?(r?"":" ".repeat(o))+e:(r?a:a+" ".repeat(o-a.length))+e});return l(),c},paragraph:function(e,t,r,n){const i=r.enter("paragraph"),a=r.enter("phrasing"),o=r.containerPhrasing(e,n);return a(),i(),o},root:function(e,t,r,n){return(e.children.some(function(e){return Qs(e)})?r.containerPhrasing:r.containerFlow).call(r,e,n)},strong:Js,text:function(e,t,r,n){return r.safe(e.value,n)},thematicBreak:function(e,t,r){const n=(Ys(r)+(r.options.ruleSpaces?" ":"")).repeat(function(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}(r));return r.options.ruleSpaces?n.slice(0,-1):n}};function $s(e){const t=e._align;this.enter({type:"table",align:t.map(function(e){return"none"===e?null:e}),children:[]},e),this.data.inTable=!0}function el(e){this.exit(e),this.data.inTable=void 0}function tl(e){this.enter({type:"tableRow",children:[]},e)}function rl(e){this.exit(e)}function nl(e){this.enter({type:"tableCell",children:[]},e)}function il(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,al));const r=this.stack[this.stack.length-1];r.type,r.value=t,this.exit(e)}function al(e,t){return"|"===t?t:e}function ol(e){const t=e||{},r=t.tableCellPadding,n=t.tablePipeAlign,i=t.stringLength,a=r?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[\t :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:function(e,t,r){let n=_s.inlineCode(e,t,r);return r.stack.includes("tableCell")&&(n=n.replace(/\|/g,"\\$&")),n},table:function(e,t,r,n){return s(function(e,t,r){const n=e.children;let i=-1;const a=[],o=t.enter("table");for(;++i<n.length;)a[i]=l(n[i],t,r);return o(),a}(e,r,n),e.align)},tableCell:o,tableRow:function(e,t,r,n){const i=s([l(e,r,n)]);return i.slice(0,i.indexOf("\n"))}}};function o(e,t,r,n){const i=r.enter("tableCell"),o=r.enter("phrasing"),s=r.containerPhrasing(e,{...n,before:a,after:a});return o(),i(),s}function s(e,t){return function(e,t){const r=t||{},n=(r.align||[]).concat(),i=r.stringLength||Rs,a=[],o=[],s=[],l=[];let c=0,u=-1;for(;++u<e.length;){const t=[],n=[];let a=-1;for(e[u].length>c&&(c=e[u].length);++a<e[u].length;){const o=Es(e[u][a]);if(!1!==r.alignDelimiters){const e=i(o);n[a]=e,(void 0===l[a]||e>l[a])&&(l[a]=e)}t.push(o)}o[u]=t,s[u]=n}let d=-1;if("object"==typeof n&&"length"in n)for(;++d<c;)a[d]=Ts(n[d]);else{const e=Ts(n);for(;++d<c;)a[d]=e}d=-1;const p=[],h=[];for(;++d<c;){const e=a[d];let t="",n="";99===e?(t=":",n=":"):108===e?t=":":114===e&&(n=":");let i=!1===r.alignDelimiters?1:Math.max(1,l[d]-t.length-n.length);const o=t+"-".repeat(i)+n;!1!==r.alignDelimiters&&(i=t.length+i+n.length,i>l[d]&&(l[d]=i),h[d]=i),p[d]=o}o.splice(1,0,p),s.splice(1,0,h),u=-1;const q=[];for(;++u<o.length;){const e=o[u],t=s[u];d=-1;const n=[];for(;++d<c;){const i=e[d]||"";let o="",s="";if(!1!==r.alignDelimiters){const e=l[d]-(t[d]||0),r=a[d];114===r?o=" ".repeat(e):99===r?e%2?(o=" ".repeat(e/2+.5),s=" ".repeat(e/2-.5)):(o=" ".repeat(e/2),s=o):s=" ".repeat(e)}!1===r.delimiterStart||d||n.push("|"),!1===r.padding||!1===r.alignDelimiters&&""===i||!1===r.delimiterStart&&!d||n.push(" "),!1!==r.alignDelimiters&&n.push(o),n.push(i),!1!==r.alignDelimiters&&n.push(s),!1!==r.padding&&n.push(" "),!1===r.delimiterEnd&&d===c-1||n.push("|")}q.push(!1===r.delimiterEnd?n.join("").replace(/ +$/,""):n.join(""))}return q.join("\n")}(e,{align:t,alignDelimiters:n,padding:r,stringLength:i})}function l(e,t,r){const n=e.children;let i=-1;const a=[],s=t.enter("tableRow");for(;++i<n.length;)a[i]=o(n[i],0,t,r);return s(),a}}function sl(e){const t=this.stack[this.stack.length-2];t.type,t.checked="taskListCheckValueChecked"===e.type}function ll(e){const t=this.stack[this.stack.length-2];if(t&&"listItem"===t.type&&"boolean"==typeof t.checked){const e=this.stack[this.stack.length-1];e.type;const r=e.children[0];if(r&&"text"===r.type){const n=t.children;let i,a=-1;for(;++a<n.length;){const e=n[a];if("paragraph"===e.type){i=e;break}}i===e&&(r.value=r.value.slice(1),0===r.value.length?e.children.shift():e.position&&r.position&&"number"==typeof r.position.start.offset&&(r.position.start.column++,r.position.start.offset++,e.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function cl(e,t,r,n){const i=e.children[0],a="boolean"==typeof e.checked&&i&&"paragraph"===i.type,o="["+(e.checked?"x":" ")+"] ",s=r.createTracker(n);a&&s.move(o);let l=_s.listItem(e,t,r,{...n,...s.current()});return a&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,function(e){return e+o})),l}const ul={tokenize:function(e,t,r){let n=0;return function t(a){return(87===a||119===a)&&n<3?(n++,e.consume(a),t):46===a&&3===n?(e.consume(a),i):r(a)};function i(e){return null===e?r(e):t(e)}},partial:!0},dl={tokenize:function(e,t,r){let n,i,a;return o;function o(t){return 46===t||95===t?e.check(hl,l,s)(t):null===t||ti(t)||ii(t)||45!==t&&ni(t)?l(t):(a=!0,e.consume(t),o)}function s(t){return 95===t?n=!0:(i=n,n=void 0),e.consume(t),o}function l(e){return i||n||!a?r(e):t(e)}},partial:!0},pl={tokenize:function(e,t){let r=0,n=0;return i;function i(o){return 40===o?(r++,e.consume(o),i):41===o&&n<r?a(o):33===o||34===o||38===o||39===o||41===o||42===o||44===o||46===o||58===o||59===o||60===o||63===o||93===o||95===o||126===o?e.check(hl,t,a)(o):null===o||ti(o)||ii(o)?t(o):(e.consume(o),i)}function a(t){return 41===t&&n++,e.consume(t),i}},partial:!0},hl={tokenize:function(e,t,r){return n;function n(o){return 33===o||34===o||39===o||41===o||42===o||44===o||46===o||58===o||59===o||63===o||95===o||126===o?(e.consume(o),n):38===o?(e.consume(o),a):93===o?(e.consume(o),i):60===o||null===o||ti(o)||ii(o)?t(o):r(o)}function i(e){return null===e||40===e||91===e||ti(e)||ii(e)?t(e):n(e)}function a(e){return Zn(e)?o(e):r(e)}function o(t){return 59===t?(e.consume(t),n):Zn(t)?(e.consume(t),o):r(t)}},partial:!0},ql={tokenize:function(e,t,r){return function(t){return e.consume(t),n};function n(e){return Hn(e)?r(e):t(e)}},partial:!0},fl={name:"wwwAutolink",tokenize:function(e,t,r){const n=this;return function(t){return 87!==t&&119!==t||!bl.call(n,n.previous)||wl(n.events)?r(t):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(ul,e.attempt(dl,e.attempt(pl,i),r),r)(t))};function i(r){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(r)}},previous:bl},ml={name:"protocolAutolink",tokenize:function(e,t,r){const n=this;let i="",a=!1;return function(t){return 72!==t&&104!==t||!yl.call(n,n.previous)||wl(n.events)?r(t):(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(t),e.consume(t),o)};function o(t){if(Zn(t)&&i.length<5)return i+=String.fromCodePoint(t),e.consume(t),o;if(58===t){const r=i.toLowerCase();if("http"===r||"https"===r)return e.consume(t),s}return r(t)}function s(t){return 47===t?(e.consume(t),a?l:(a=!0,s)):r(t)}function l(t){return null===t||Qn(t)||ti(t)||ii(t)||ni(t)?r(t):e.attempt(dl,e.attempt(pl,c),r)(t)}function c(r){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(r)}},previous:yl},Vl={name:"emailAutolink",tokenize:function(e,t,r){const n=this;let i,a;return function(t){return Al(t)&&Sl.call(n,n.previous)&&!wl(n.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),o(t)):r(t)};function o(t){return Al(t)?(e.consume(t),o):64===t?(e.consume(t),s):r(t)}function s(t){return 46===t?e.check(ql,c,l)(t):45===t||95===t||Hn(t)?(a=!0,e.consume(t),s):c(t)}function l(t){return e.consume(t),i=!0,s}function c(o){return a&&i&&Zn(n.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(o)):r(o)}},previous:Sl},gl={};let vl=48;for(;vl<123;)gl[vl]=Vl,vl++,58===vl?vl=65:91===vl&&(vl=97);function bl(e){return null===e||40===e||42===e||95===e||91===e||93===e||126===e||ti(e)}function yl(e){return!Zn(e)}function Sl(e){return!(47===e||Al(e))}function Al(e){return 43===e||45===e||46===e||95===e||Hn(e)}function wl(e){let t=e.length,r=!1;for(;t--;){const n=e[t][1];if(("labelLink"===n.type||"labelImage"===n.type)&&!n._balanced){r=!0;break}if(n._gfmAutolinkLiteralWalkedInto){r=!1;break}}return e.length>0&&!r&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),r}gl[43]=Vl,gl[45]=Vl,gl[46]=Vl,gl[95]=Vl,gl[72]=[Vl,ml],gl[104]=[Vl,ml],gl[87]=[Vl,fl],gl[119]=[Vl,fl];const Ul={tokenize:function(e,t,r){const n=this;return si(e,function(e){const i=n.events[n.events.length-1];return i&&"gfmFootnoteDefinitionIndent"===i[1].type&&4===i[2].sliceSerialize(i[1],!0).length?t(e):r(e)},"gfmFootnoteDefinitionIndent",5)},partial:!0};function xl(e,t,r){const n=this;let i=n.events.length;const a=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let o;for(;i--;){const e=n.events[i][1];if("labelImage"===e.type){o=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(i){if(!o||!o._balanced)return r(i);const s=Gn(n.sliceSerialize({start:o.end,end:n.now()}));return 94===s.codePointAt(0)&&a.includes(s.slice(1))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(i),e.exit("gfmFootnoteCallLabelMarker"),t(i)):r(i)}}function Cl(e,t){let r=e.length;for(;r--;)if("labelImage"===e[r][1].type&&"enter"===e[r][0]){e[r][1];break}e[r+1][1].type="data",e[r+3][1].type="gfmFootnoteCallLabelMarker";const n={type:"gfmFootnoteCall",start:Object.assign({},e[r+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[r+3][1].end),end:Object.assign({},e[r+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},s=[e[r+1],e[r+2],["enter",n,t],e[r+3],e[r+4],["enter",i,t],["exit",i,t],["enter",a,t],["enter",o,t],["exit",o,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",n,t]];return e.splice(r,e.length-r+1,...s),e}function Rl(e,t,r){const n=this,i=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let a,o=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),s};function s(t){return 94!==t?r(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",l)}function l(s){if(o>999||93===s&&!a||null===s||91===s||ti(s))return r(s);if(93===s){e.exit("chunkString");const a=e.exit("gfmFootnoteCallString");return i.includes(Gn(n.sliceSerialize(a)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):r(s)}return ti(s)||(a=!0),o++,e.consume(s),92===s?c:l}function c(t){return 91===t||92===t||93===t?(e.consume(t),o++,l):l(t)}}function El(e,t,r){const n=this,i=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let a,o,s=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),l};function l(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):r(t)}function c(t){if(s>999||93===t&&!o||null===t||91===t||ti(t))return r(t);if(93===t){e.exit("chunkString");const r=e.exit("gfmFootnoteDefinitionLabelString");return a=Gn(n.sliceSerialize(r)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),d}return ti(t)||(o=!0),s++,e.consume(t),92===t?u:c}function u(t){return 91===t||92===t||93===t?(e.consume(t),s++,c):c(t)}function d(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),i.includes(a)||i.push(a),si(e,p,"gfmFootnoteDefinitionWhitespace")):r(t)}function p(e){return t(e)}}function Tl(e,t,r){return e.check(mi,t,e.attempt(Ul,t,r))}function kl(e){e.exit("gfmFootnoteDefinition")}function Fl(e){let t=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:function(e,r,n){const i=this.previous,a=this.events;let o=0;return function(t){return 126===i&&"characterEscape"!==a[a.length-1][1].type?n(t):(e.enter("strikethroughSequenceTemporary"),s(t))};function s(a){const l=di(i);if(126===a)return o>1?n(a):(e.consume(a),o++,s);if(o<2&&!t)return n(a);const c=e.exit("strikethroughSequenceTemporary"),u=di(a);return c._open=!u||2===u&&Boolean(l),c._close=!l||2===l&&Boolean(u),r(a)}},resolveAll:function(e,t){let r=-1;for(;++r<e.length;)if("enter"===e[r][0]&&"strikethroughSequenceTemporary"===e[r][1].type&&e[r][1]._close){let n=r;for(;n--;)if("exit"===e[n][0]&&"strikethroughSequenceTemporary"===e[n][1].type&&e[n][1]._open&&e[r][1].end.offset-e[r][1].start.offset===e[n][1].end.offset-e[n][1].start.offset){e[r][1].type="strikethroughSequence",e[n][1].type="strikethroughSequence";const i={type:"strikethrough",start:Object.assign({},e[n][1].start),end:Object.assign({},e[r][1].end)},a={type:"strikethroughText",start:Object.assign({},e[n][1].end),end:Object.assign({},e[r][1].start)},o=[["enter",i,t],["enter",e[n][1],t],["exit",e[n][1],t],["enter",a,t]],s=t.parser.constructs.insideSpan.null;s&&Ln(o,o.length,0,pi(s,e.slice(n+1,r),t)),Ln(o,o.length,0,[["exit",a,t],["enter",e[r][1],t],["exit",e[r][1],t],["exit",i,t]]),Ln(e,n-1,r-n+3,o),r=n+o.length-2;break}}for(r=-1;++r<e.length;)"strikethroughSequenceTemporary"===e[r][1].type&&(e[r][1].type="data");return e}};return null==t&&(t=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}}}class Wl{constructor(){this.map=[]}add(e,t,r){!function(e,t,r,n){let i=0;if(0!==r||0!==n.length){for(;i<e.map.length;){if(e.map[i][0]===t)return e.map[i][1]+=r,void e.map[i][2].push(...n);i+=1}e.map.push([t,r,n])}}(this,e,t,r)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),0===this.map.length)return;let t=this.map.length;const r=[];for(;t>0;)t-=1,r.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];r.push(e.slice()),e.length=0;let n=r.pop();for(;n;){for(const t of n)e.push(t);n=r.pop()}this.map.length=0}}function Nl(e,t){let r=!1;const n=[];for(;t<e.length;){const i=e[t];if(r){if("enter"===i[0])"tableContent"===i[1].type&&n.push("tableDelimiterMarker"===e[t+1][1].type?"left":"none");else if("tableContent"===i[1].type){if("tableDelimiterMarker"===e[t-1][1].type){const e=n.length-1;n[e]="left"===n[e]?"center":"right"}}else if("tableDelimiterRow"===i[1].type)break}else"enter"===i[0]&&"tableDelimiterRow"===i[1].type&&(r=!0);t+=1}return n}function Kl(e,t,r){const n=this;let i,a=0,o=0;return function(e){let t=n.events.length-1;for(;t>-1;){const e=n.events[t][1].type;if("lineEnding"!==e&&"linePrefix"!==e)break;t--}const i=t>-1?n.events[t][1].type:null,a="tableHead"===i||"tableRow"===i?b:s;return a===b&&n.parser.lazy[n.now().line]?r(e):a(e)};function s(t){return e.enter("tableHead"),e.enter("tableRow"),function(e){return 124===e||(i=!0,o+=1),l(e)}(t)}function l(t){return null===t?r(t):ei(t)?o>1?(o=0,n.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),d):r(t):ri(t)?si(e,l,"whitespace")(t):(o+=1,i&&(i=!1,a+=1),124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),i=!0,l):(e.enter("data"),c(t)))}function c(t){return null===t||124===t||ti(t)?(e.exit("data"),l(t)):(e.consume(t),92===t?u:c)}function u(t){return 92===t||124===t?(e.consume(t),c):c(t)}function d(t){return n.interrupt=!1,n.parser.lazy[n.now().line]?r(t):(e.enter("tableDelimiterRow"),i=!1,ri(t)?si(e,p,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):p(t))}function p(t){return 45===t||58===t?q(t):124===t?(i=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),h):v(t)}function h(t){return ri(t)?si(e,q,"whitespace")(t):q(t)}function q(t){return 58===t?(o+=1,i=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),f):45===t?(o+=1,f(t)):null===t||ei(t)?g(t):v(t)}function f(t){return 45===t?(e.enter("tableDelimiterFiller"),m(t)):v(t)}function m(t){return 45===t?(e.consume(t),m):58===t?(i=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),V):(e.exit("tableDelimiterFiller"),V(t))}function V(t){return ri(t)?si(e,g,"whitespace")(t):g(t)}function g(r){return 124===r?p(r):(null===r||ei(r))&&i&&a===o?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(r)):v(r)}function v(e){return r(e)}function b(t){return e.enter("tableRow"),y(t)}function y(r){return 124===r?(e.enter("tableCellDivider"),e.consume(r),e.exit("tableCellDivider"),y):null===r||ei(r)?(e.exit("tableRow"),t(r)):ri(r)?si(e,y,"whitespace")(r):(e.enter("data"),S(r))}function S(t){return null===t||124===t||ti(t)?(e.exit("data"),y(t)):(e.consume(t),92===t?A:S)}function A(t){return 92===t||124===t?(e.consume(t),S):S(t)}}function Ol(e,t){let r,n,i,a=-1,o=!0,s=0,l=[0,0,0,0],c=[0,0,0,0],u=!1,d=0;const p=new Wl;for(;++a<e.length;){const h=e[a],q=h[1];"enter"===h[0]?"tableHead"===q.type?(u=!1,0!==d&&(Il(p,t,d,r,n),n=void 0,d=0),r={type:"table",start:Object.assign({},q.start),end:Object.assign({},q.end)},p.add(a,0,[["enter",r,t]])):"tableRow"===q.type||"tableDelimiterRow"===q.type?(o=!0,i=void 0,l=[0,0,0,0],c=[0,a+1,0,0],u&&(u=!1,n={type:"tableBody",start:Object.assign({},q.start),end:Object.assign({},q.end)},p.add(a,0,[["enter",n,t]])),s="tableDelimiterRow"===q.type?2:n?3:1):!s||"data"!==q.type&&"tableDelimiterMarker"!==q.type&&"tableDelimiterFiller"!==q.type?"tableCellDivider"===q.type&&(o?o=!1:(0!==l[1]&&(c[0]=c[1],i=Pl(p,t,l,s,void 0,i)),l=c,c=[l[1],a,0,0])):(o=!1,0===c[2]&&(0!==l[1]&&(c[0]=c[1],i=Pl(p,t,l,s,void 0,i),l=[0,0,0,0]),c[2]=a)):"tableHead"===q.type?(u=!0,d=a):"tableRow"===q.type||"tableDelimiterRow"===q.type?(d=a,0!==l[1]?(c[0]=c[1],i=Pl(p,t,l,s,a,i)):0!==c[1]&&(i=Pl(p,t,c,s,a,i)),s=0):!s||"data"!==q.type&&"tableDelimiterMarker"!==q.type&&"tableDelimiterFiller"!==q.type||(c[3]=a)}for(0!==d&&Il(p,t,d,r,n),p.consume(t.events),a=-1;++a<t.events.length;){const e=t.events[a];"enter"===e[0]&&"table"===e[1].type&&(e[1]._align=Nl(t.events,a))}return e}function Pl(e,t,r,n,i,a){const o=1===n?"tableHeader":2===n?"tableDelimiter":"tableData";0!==r[0]&&(a.end=Object.assign({},Ll(t.events,r[0])),e.add(r[0],0,[["exit",a,t]]));const s=Ll(t.events,r[1]);if(a={type:o,start:Object.assign({},s),end:Object.assign({},s)},e.add(r[1],0,[["enter",a,t]]),0!==r[2]){const i=Ll(t.events,r[2]),a=Ll(t.events,r[3]),o={type:"tableContent",start:Object.assign({},i),end:Object.assign({},a)};if(e.add(r[2],0,[["enter",o,t]]),2!==n){const n=t.events[r[2]],i=t.events[r[3]];if(n[1].end=Object.assign({},i[1].end),n[1].type="chunkText",n[1].contentType="text",r[3]>r[2]+1){const t=r[2]+1,n=r[3]-r[2]-1;e.add(t,n,[])}}e.add(r[3]+1,0,[["exit",o,t]])}return void 0!==i&&(a.end=Object.assign({},Ll(t.events,i)),e.add(i,0,[["exit",a,t]]),a=void 0),a}function Il(e,t,r,n,i){const a=[],o=Ll(t.events,r);i&&(i.end=Object.assign({},o),a.push(["exit",i,t])),n.end=Object.assign({},o),a.push(["exit",n,t]),e.add(r+1,0,a)}function Ll(e,t){const r=e[t],n="enter"===r[0]?"start":"end";return r[1][n]}const Bl={name:"tasklistCheck",tokenize:function(e,t,r){const n=this;return function(t){return null===n.previous&&n._gfmTasklistFirstContentOfListItem?(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),i):r(t)};function i(t){return ti(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),a):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),a):r(t)}function a(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),o):r(t)}function o(n){return ei(n)?t(n):ri(n)?e.check({tokenize:Dl},t,r)(n):r(n)}}};function Dl(e,t,r){return si(e,function(e){return null===e?r(e):t(e)},"whitespace")}const Xl={};function jl(e){const t=e||Xl,r=this.data(),n=r.micromarkExtensions||(r.micromarkExtensions=[]),i=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),a=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);n.push(function(e){return Xn([{text:gl},{document:{91:{name:"gfmFootnoteDefinition",tokenize:El,continuation:{tokenize:Tl},exit:kl}},text:{91:{name:"gfmFootnoteCall",tokenize:Rl},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:xl,resolveTo:Cl}}},Fl(e),{flow:{null:{name:"table",tokenize:Kl,resolveAll:Ol}}},{text:{91:Bl}}])}(t)),i.push([{transforms:[ls],enter:{literalAutolink:rs,literalAutolinkEmail:ns,literalAutolinkHttp:ns,literalAutolinkWww:ns},exit:{literalAutolink:ss,literalAutolinkEmail:os,literalAutolinkHttp:is,literalAutolinkWww:as}},{enter:{gfmFootnoteCallString:ps,gfmFootnoteCall:hs,gfmFootnoteDefinitionLabelString:qs,gfmFootnoteDefinition:fs},exit:{gfmFootnoteCallString:ms,gfmFootnoteCall:Vs,gfmFootnoteDefinitionLabelString:gs,gfmFootnoteDefinition:vs}},{canContainEols:["delete"],enter:{strikethrough:Us},exit:{strikethrough:xs}},{enter:{table:$s,tableData:nl,tableHeader:nl,tableRow:tl},exit:{codeText:il,table:el,tableData:rl,tableHeader:rl,tableRow:rl}},{exit:{taskListCheckValueChecked:sl,taskListCheckValueUnchecked:sl,paragraph:ll}}]),a.push(function(e){return{extensions:[{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:es,notInConstruct:ts},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:es,notInConstruct:ts},{character:":",before:"[ps]",after:"\\/",inConstruct:es,notInConstruct:ts}]},ys(e),{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:ws}],handlers:{delete:Cs}},ol(e),{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:cl}}]}}(t))}const Ml={tokenize:function(e,t,r){const n=this,i=n.events[n.events.length-1],a=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0;let o=0;return function(t){return e.enter("mathFlow"),e.enter("mathFlowFence"),e.enter("mathFlowFenceSequence"),s(t)};function s(t){return 36===t?(e.consume(t),o++,s):o<2?r(t):(e.exit("mathFlowFenceSequence"),si(e,l,"whitespace")(t))}function l(t){return null===t||ei(t)?u(t):(e.enter("mathFlowFenceMeta"),e.enter("chunkString",{contentType:"string"}),c(t))}function c(t){return null===t||ei(t)?(e.exit("chunkString"),e.exit("mathFlowFenceMeta"),u(t)):36===t?r(t):(e.consume(t),c)}function u(r){return e.exit("mathFlowFence"),n.interrupt?t(r):e.attempt(zl,d,f)(r)}function d(t){return e.attempt({tokenize:m,partial:!0},f,p)(t)}function p(t){return(a?si(e,h,"linePrefix",a+1):h)(t)}function h(t){return null===t?f(t):ei(t)?e.attempt(zl,d,f)(t):(e.enter("mathFlowValue"),q(t))}function q(t){return null===t||ei(t)?(e.exit("mathFlowValue"),h(t)):(e.consume(t),q)}function f(r){return e.exit("mathFlow"),t(r)}function m(e,t,r){let i=0;return si(e,function(t){return e.enter("mathFlowFence"),e.enter("mathFlowFenceSequence"),a(t)},"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function a(t){return 36===t?(i++,e.consume(t),a):i<o?r(t):(e.exit("mathFlowFenceSequence"),si(e,s,"whitespace")(t))}function s(n){return null===n||ei(n)?(e.exit("mathFlowFence"),t(n)):r(n)}}},concrete:!0,name:"mathFlow"},zl={tokenize:function(e,t,r){const n=this;return function(r){return null===r?t(r):(e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),i)};function i(e){return n.parser.lazy[n.now().line]?r(e):t(e)}},partial:!0};function Gl(e){let t=(e||{}).singleDollarTextMath;return null==t&&(t=!0),{tokenize:function(e,r,n){let i,a,o=0;return function(t){return e.enter("mathText"),e.enter("mathTextSequence"),s(t)};function s(r){return 36===r?(e.consume(r),o++,s):o<2&&!t?n(r):(e.exit("mathTextSequence"),l(r))}function l(t){return null===t?n(t):36===t?(a=e.enter("mathTextSequence"),i=0,u(t)):32===t?(e.enter("space"),e.consume(t),e.exit("space"),l):ei(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),l):(e.enter("mathTextData"),c(t))}function c(t){return null===t||32===t||36===t||ei(t)?(e.exit("mathTextData"),l(t)):(e.consume(t),c)}function u(t){return 36===t?(e.consume(t),i++,u):i===o?(e.exit("mathTextSequence"),e.exit("mathText"),r(t)):(a.type="mathTextData",c(t))}},resolve:Zl,previous:Hl,name:"mathText"}}function Zl(e){let t,r,n=e.length-4,i=3;if(!("lineEnding"!==e[i][1].type&&"space"!==e[i][1].type||"lineEnding"!==e[n][1].type&&"space"!==e[n][1].type))for(t=i;++t<n;)if("mathTextData"===e[t][1].type){e[n][1].type="mathTextPadding",e[i][1].type="mathTextPadding",i+=2,n-=2;break}for(t=i-1,n++;++t<=n;)void 0===r?t!==n&&"lineEnding"!==e[t][1].type&&(r=t):t!==n&&"lineEnding"!==e[t][1].type||(e[r][1].type="mathTextData",t!==r+2&&(e[r][1].end=e[t-1][1].end,e.splice(r+2,t-r-2),n-=t-r-2,t=r+2),r=void 0);return e}function Hl(e){return 36!==e||"characterEscape"===this.events[this.events.length-1][1].type}class Yl extends Error{constructor(e,t){var r,n,i="KaTeX parse error: "+e,a=t&&t.loc;if(a&&a.start<=a.end){var o=a.lexer.input;r=a.start,n=a.end,r===o.length?i+=" at end of input: ":i+=" at position "+(r+1)+": ";var s=o.slice(r,n).replace(/[^]/g,"$&̲");i+=(r>15?"…"+o.slice(r-15,r):o.slice(0,r))+s+(n+15<o.length?o.slice(n,n+15)+"…":o.slice(n))}super(i),this.name="ParseError",Object.setPrototypeOf(this,Yl.prototype),this.position=r,null!=r&&null!=n&&(this.length=n-r),this.rawMessage=e}}var Ql=/([A-Z])/g,Jl=e=>e.replace(Ql,"-$1").toLowerCase(),_l={"&":"&",">":">","<":"<",'"':""","'":"'"},$l=/[&><"']/g,ec=e=>String(e).replace($l,e=>_l[e]),tc=e=>"ordgroup"===e.type||"color"===e.type?1===e.body.length?tc(e.body[0]):e:"font"===e.type?tc(e.body):e,rc=new Set(["mathord","textord","atom"]),nc=e=>rc.has(tc(e).type),ic={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format <type>"},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color <color>",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:e=>"#"+e},macros:{type:"object",cli:"-m, --macro <def>",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:"--min-rule-thickness <size>",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:e=>Math.max(0,e),cli:"-s, --max-size <n>",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:e=>Math.max(0,e),cli:"-e, --max-expand <n>",cliProcessor:e=>"Infinity"===e?1/0:parseInt(e)},globalGroup:{type:"boolean",cli:!1}};function ac(e){if("default"in e)return e.default;var t=e.type,r=Array.isArray(t)?t[0]:t;if("string"!=typeof r)return r.enum[0];switch(r){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}class oc{constructor(e){for(var t of(void 0===e&&(e={}),e=e||{},Object.keys(ic))){var r=ic[t],n=e[t];this[t]=void 0!==n?r.processor?r.processor(n):n:ac(r)}}reportNonstrict(e,t,r){var n=this.strict;if("function"==typeof n&&(n=n(e,t,r)),n&&"ignore"!==n&&(!0===n||"error"===n))throw new Yl("LaTeX-incompatible input and strict mode is set to 'error': "+t+" ["+e+"]",r)}useStrictBehavior(e,t,r){var n=this.strict;if("function"==typeof n)try{n=n(e,t,r)}catch(i){n="error"}return!(!n||"ignore"===n||!0!==n&&"error"!==n)}isTrusted(e){if("url"in e&&e.url&&!e.protocol){var t=(e=>{var t=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(e);return t?":"!==t[2]?null:/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(t[1])?t[1].toLowerCase():null:"_relative"})(e.url);if(null==t)return!1;e.protocol=t}var r="function"==typeof this.trust?this.trust(e):this.trust;return Boolean(r)}}class sc{constructor(e,t,r){this.id=e,this.size=t,this.cramped=r}sup(){return lc[cc[this.id]]}sub(){return lc[uc[this.id]]}fracNum(){return lc[dc[this.id]]}fracDen(){return lc[pc[this.id]]}cramp(){return lc[hc[this.id]]}text(){return lc[qc[this.id]]}isTight(){return this.size>=2}}var lc=[new sc(0,0,!1),new sc(1,0,!0),new sc(2,1,!1),new sc(3,1,!0),new sc(4,2,!1),new sc(5,2,!0),new sc(6,3,!1),new sc(7,3,!0)],cc=[4,5,4,5,6,7,6,7],uc=[5,5,5,5,7,7,7,7],dc=[2,3,4,5,6,7,6,7],pc=[3,3,5,5,7,7,7,7],hc=[1,1,3,3,5,5,7,7],qc=[0,1,2,3,2,3,2,3],fc={DISPLAY:lc[0],TEXT:lc[2],SCRIPT:lc[4],SCRIPTSCRIPT:lc[6]},mc=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}],Vc=[];function gc(e){for(var t=0;t<Vc.length;t+=2)if(e>=Vc[t]&&e<=Vc[t+1])return!0;return!1}mc.forEach(e=>e.blocks.forEach(e=>Vc.push(...e)));var vc={doubleleftarrow:"M262 157\nl10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3\n 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28\n 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5\nc2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5\n 157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87\n-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7\n-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z\nm8 0v40h399730v-40zm0 194v40h399730v-40z",doublerightarrow:"M399738 392l\n-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5\n 14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88\n-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68\n-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18\n-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782\nc-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3\n-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z",leftarrow:"M400000 241H110l3-3c68.7-52.7 113.7-120\n 135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8\n-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247\nc-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208\n 490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3\n 1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202\n l-3-3h399890zM100 241v40h399900v-40z",leftbrace:"M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117\n-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7\n 5-6 9-10 13-.7 1-7.3 1-20 1H6z",leftbraceunder:"M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13\n 35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688\n 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7\n-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z",leftgroup:"M400000 80\nH435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0\n 435 0h399565z",leftgroupunder:"M400000 262\nH435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219\n 435 219h399565z",leftharpoon:"M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3\n-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5\n-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7\n-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z",leftharpoonplus:"M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5\n 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3\n-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7\n-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z\nm0 0v40h400000v-40z",leftharpoondown:"M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333\n 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5\n 1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667\n-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z",leftharpoondownplus:"M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12\n 10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7\n-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0\nv40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z",lefthook:"M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5\n-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3\n-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21\n 71.5 23h399859zM103 281v-40h399897v40z",leftlinesegment:"M40 281 V428 H0 V94 H40 V241 H400000 v40z\nM40 281 V428 H0 V94 H40 V241 H400000 v40z",leftmapsto:"M40 281 V448H0V74H40V241H400000v40z\nM40 281 V448H0V74H40V241H400000v40z",leftToFrom:"M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23\n-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8\nc28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3\n 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z",longequal:"M0 50 h400000 v40H0z m0 194h40000v40H0z\nM0 50 h400000 v40H0z m0 194h40000v40H0z",midbrace:"M200428 334\nc-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14\n-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7\n 311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11\n 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z",midbraceunder:"M199572 214\nc100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14\n 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3\n 11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0\n-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z",oiintSize1:"M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6\n-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z\nm368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8\n60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z",oiintSize2:"M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8\n-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z\nm502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2\nc0 110 84 276 504 276s502.4-166 502.4-276z",oiiintSize1:"M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6\n-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z\nm525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0\n85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z",oiiintSize2:"M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8\n-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z\nm770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1\nc0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z",rightarrow:"M0 241v40h399891c-47.3 35.3-84 78-110 128\n-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20\n 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7\n 39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85\n-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5\n-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67\n 151.7 139 205zm0 0v40h399900v-40z",rightbrace:"M400000 542l\n-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5\ns-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1\nc124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z",rightbraceunder:"M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3\n 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237\n-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z",rightgroup:"M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0\n 3-1 3-3v-38c-76-158-257-219-435-219H0z",rightgroupunder:"M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18\n 0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z",rightharpoon:"M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3\n-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2\n-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58\n 69.2 92 94.5zm0 0v40h399900v-40z",rightharpoonplus:"M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11\n-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7\n 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z\nm0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z",rightharpoondown:"M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8\n 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5\n-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95\n-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z",rightharpoondownplus:"M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8\n 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3\n 8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3\n-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z\nm0-194v40h400000v-40zm0 0v40h400000v-40z",righthook:"M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3\n 15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0\n-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21\n 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z",rightlinesegment:"M399960 241 V94 h40 V428 h-40 V281 H0 v-40z\nM399960 241 V94 h40 V428 h-40 V281 H0 v-40z",rightToFrom:"M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23\n 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32\n-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142\n-167z M100 147v40h399900v-40zM0 341v40h399900v-40z",twoheadleftarrow:"M0 167c68 40\n 115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69\n-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3\n-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19\n-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101\n 10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z",twoheadrightarrow:"M400000 167\nc-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3\n 41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42\n 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333\n-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70\n 101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z",tilde1:"M200 55.538c-77 0-168 73.953-177 73.953-3 0-7\n-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0\n 114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0\n 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128\n-68.267.847-113-73.952-191-73.952z",tilde2:"M344 55.266c-142 0-300.638 81.316-311.5 86.418\n-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9\n 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114\nc1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751\n 181.476 676 181.476c-149 0-189-126.21-332-126.21z",tilde3:"M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457\n-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0\n 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697\n 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696\n -338 0-409-156.573-744-156.573z",tilde4:"M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345\n-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409\n 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9\n 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409\n -175.236-744-175.236z",vec:"M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5\n3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11\n10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63\n-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1\n-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59\nH213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359\nc-16-25.333-24-45-24-59z",widehat1:"M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22\nc-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z",widehat2:"M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widehat3:"M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widehat4:"M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widecheck1:"M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,\n-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z",widecheck2:"M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",widecheck3:"M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",widecheck4:"M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",baraboveleftarrow:"M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202\nc4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5\nc-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130\ns-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47\n121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6\ns2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11\nc0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z\nM100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z",rightarrowabovebar:"M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32\n-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0\n13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39\n-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5\n-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5\n-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67\n151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z",baraboveshortleftharpoon:"M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17\nc2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21\nc-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40\nc-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z\nM0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z",rightharpoonaboveshortbar:"M0,241 l0,40c399126,0,399993,0,399993,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6\nc-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z\nM0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z",shortbaraboveleftharpoon:"M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,\n1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,\n-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z\nM93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z",shortrightharpoonabovebar:"M53,241l0,40c398570,0,399437,0,399437,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6\nc-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z\nM500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z"};class bc{constructor(e){this.children=e,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(e){return this.classes.includes(e)}toNode(){for(var e=document.createDocumentFragment(),t=0;t<this.children.length;t++)e.appendChild(this.children[t].toNode());return e}toMarkup(){for(var e="",t=0;t<this.children.length;t++)e+=this.children[t].toMarkup();return e}toText(){return this.children.map(e=>e.toText()).join("")}}var yc={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:1.00375,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:1.00375},Sc={ex:!0,em:!0,mu:!0},Ac=function(e){return"string"!=typeof e&&(e=e.unit),e in yc||e in Sc||"ex"===e},wc=function(e,t){var r;if(e.unit in yc)r=yc[e.unit]/t.fontMetrics().ptPerEm/t.sizeMultiplier;else if("mu"===e.unit)r=t.fontMetrics().cssEmPerMu;else{var n;if(n=t.style.isTight()?t.havingStyle(t.style.text()):t,"ex"===e.unit)r=n.fontMetrics().xHeight;else{if("em"!==e.unit)throw new Yl("Invalid unit: '"+e.unit+"'");r=n.fontMetrics().quad}n!==t&&(r*=n.sizeMultiplier/t.sizeMultiplier)}return Math.min(e.number*r,t.maxSize)},Uc=function(e){return+e.toFixed(4)+"em"},xc=function(e){return e.filter(e=>e).join(" ")},Cc=function(e,t,r){if(this.classes=e||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=r||{},t){t.style.isTight()&&this.classes.push("mtight");var n=t.getColor();n&&(this.style.color=n)}},Rc=function(e){var t=document.createElement(e);for(var r of(t.className=xc(this.classes),Object.keys(this.style)))t.style[r]=this.style[r];for(var n of Object.keys(this.attributes))t.setAttribute(n,this.attributes[n]);for(var i=0;i<this.children.length;i++)t.appendChild(this.children[i].toNode());return t},Ec=/[\s"'>/=\x00-\x1f]/,Tc=function(e){var t="<"+e;this.classes.length&&(t+=' class="'+ec(xc(this.classes))+'"');var r="";for(var n of Object.keys(this.style))r+=Jl(n)+":"+this.style[n]+";";for(var i of(r&&(t+=' style="'+ec(r)+'"'),Object.keys(this.attributes))){if(Ec.test(i))throw new Yl("Invalid attribute name '"+i+"'");t+=" "+i+'="'+ec(this.attributes[i])+'"'}t+=">";for(var a=0;a<this.children.length;a++)t+=this.children[a].toMarkup();return t+"</"+e+">"};class kc{constructor(e,t,r,n){Cc.call(this,e,r,n),this.children=t||[]}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return this.classes.includes(e)}toNode(){return Rc.call(this,"span")}toMarkup(){return Tc.call(this,"span")}}class Fc{constructor(e,t,r,n){Cc.call(this,t,n),this.children=r||[],this.setAttribute("href",e)}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return this.classes.includes(e)}toNode(){return Rc.call(this,"a")}toMarkup(){return Tc.call(this,"a")}}class Wc{constructor(e,t,r){this.alt=t,this.src=e,this.classes=["mord"],this.height=0,this.depth=0,this.maxFontSize=0,this.style=r}hasClass(e){return this.classes.includes(e)}toNode(){var e=document.createElement("img");for(var t of(e.src=this.src,e.alt=this.alt,e.className="mord",Object.keys(this.style)))e.style[t]=this.style[t];return e}toMarkup(){var e='<img src="'+ec(this.src)+'" alt="'+ec(this.alt)+'"',t="";for(var r of Object.keys(this.style))t+=Jl(r)+":"+this.style[r]+";";return t&&(e+=' style="'+ec(t)+'"'),e+"'/>"}}var Nc={"î":"ı̂","ï":"ı̈","í":"ı́","ì":"ı̀"};class Kc{constructor(e,t,r,n,i,a,o,s){this.text=e,this.height=t||0,this.depth=r||0,this.italic=n||0,this.skew=i||0,this.width=a||0,this.classes=o||[],this.style=s||{},this.maxFontSize=0;var l=function(e){for(var t=0;t<mc.length;t++)for(var r=mc[t],n=0;n<r.blocks.length;n++){var i=r.blocks[n];if(e>=i[0]&&e<=i[1])return r.name}return null}(this.text.charCodeAt(0));l&&this.classes.push(l+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=Nc[this.text])}hasClass(e){return this.classes.includes(e)}toNode(){var e=document.createTextNode(this.text),t=null;for(var r of(this.italic>0&&((t=document.createElement("span")).style.marginRight=Uc(this.italic)),this.classes.length>0&&((t=t||document.createElement("span")).className=xc(this.classes)),Object.keys(this.style)))(t=t||document.createElement("span")).style[r]=this.style[r];return t?(t.appendChild(e),t):e}toMarkup(){var e=!1,t="<span";this.classes.length&&(e=!0,t+=' class="',t+=ec(xc(this.classes)),t+='"');var r="";for(var n of(this.italic>0&&(r+="margin-right:"+this.italic+"em;"),Object.keys(this.style)))r+=Jl(n)+":"+this.style[n]+";";r&&(e=!0,t+=' style="'+ec(r)+'"');var i=ec(this.text);return e?(t+=">",t+=i,t+="</span>"):i}}class Oc{constructor(e,t){this.children=e||[],this.attributes=t||{}}toNode(){var e=document.createElementNS("http://www.w3.org/2000/svg","svg");for(var t of Object.keys(this.attributes))e.setAttribute(t,this.attributes[t]);for(var r=0;r<this.children.length;r++)e.appendChild(this.children[r].toNode());return e}toMarkup(){var e='<svg xmlns="http://www.w3.org/2000/svg"';for(var t of Object.keys(this.attributes))e+=" "+t+'="'+ec(this.attributes[t])+'"';e+=">";for(var r=0;r<this.children.length;r++)e+=this.children[r].toMarkup();return e+"</svg>"}}class Pc{constructor(e,t){this.pathName=e,this.alternate=t}toNode(){var e=document.createElementNS("http://www.w3.org/2000/svg","path");return this.alternate?e.setAttribute("d",this.alternate):e.setAttribute("d",vc[this.pathName]),e}toMarkup(){return this.alternate?'<path d="'+ec(this.alternate)+'"/>':'<path d="'+ec(vc[this.pathName])+'"/>'}}class Ic{constructor(e){this.attributes=e||{}}toNode(){var e=document.createElementNS("http://www.w3.org/2000/svg","line");for(var t of Object.keys(this.attributes))e.setAttribute(t,this.attributes[t]);return e}toMarkup(){var e="<line";for(var t of Object.keys(this.attributes))e+=" "+t+'="'+ec(this.attributes[t])+'"';return e+"/>"}}var Lc={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},Bc={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},Dc={"Å":"A","Ð":"D","Þ":"o","å":"a","ð":"d","þ":"o","А":"A","Б":"B","В":"B","Г":"F","Д":"A","Е":"E","Ж":"K","З":"3","И":"N","Й":"N","К":"K","Л":"N","М":"M","Н":"H","О":"O","П":"N","Р":"P","С":"C","Т":"T","У":"y","Ф":"O","Х":"X","Ц":"U","Ч":"h","Ш":"W","Щ":"W","Ъ":"B","Ы":"X","Ь":"B","Э":"3","Ю":"X","Я":"R","а":"a","б":"b","в":"a","г":"r","д":"y","е":"e","ж":"m","з":"e","и":"n","й":"n","к":"n","л":"n","м":"m","н":"n","о":"o","п":"n","р":"p","с":"c","т":"o","у":"y","ф":"b","х":"x","ц":"n","ч":"n","ш":"w","щ":"w","ъ":"a","ы":"m","ь":"a","э":"e","ю":"m","я":"r"};function Xc(e,t,r){if(!Lc[t])throw new Error("Font metrics not found for font: "+t+".");var n=e.charCodeAt(0),i=Lc[t][n];if(!i&&e[0]in Dc&&(n=Dc[e[0]].charCodeAt(0),i=Lc[t][n]),i||"text"!==r||gc(n)&&(i=Lc[t][77]),i)return{depth:i[0],height:i[1],italic:i[2],skew:i[3],width:i[4]}}var jc={},Mc={bin:1,close:1,inner:1,open:1,punct:1,rel:1},zc={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},Gc={math:{},text:{}};function Zc(e,t,r,n,i,a){Gc[e][i]={font:t,group:r,replace:n},a&&n&&(Gc[e][n]=Gc[e][i])}var Hc="math",Yc="text",Qc="main",Jc="ams",_c="accent-token",$c="bin",eu="close",tu="inner",ru="mathord",nu="op-token",iu="open",au="punct",ou="rel",su="spacing",lu="textord";Zc(Hc,Qc,ou,"≡","\\equiv",!0),Zc(Hc,Qc,ou,"≺","\\prec",!0),Zc(Hc,Qc,ou,"≻","\\succ",!0),Zc(Hc,Qc,ou,"∼","\\sim",!0),Zc(Hc,Qc,ou,"⊥","\\perp"),Zc(Hc,Qc,ou,"⪯","\\preceq",!0),Zc(Hc,Qc,ou,"⪰","\\succeq",!0),Zc(Hc,Qc,ou,"≃","\\simeq",!0),Zc(Hc,Qc,ou,"∣","\\mid",!0),Zc(Hc,Qc,ou,"≪","\\ll",!0),Zc(Hc,Qc,ou,"≫","\\gg",!0),Zc(Hc,Qc,ou,"≍","\\asymp",!0),Zc(Hc,Qc,ou,"∥","\\parallel"),Zc(Hc,Qc,ou,"⋈","\\bowtie",!0),Zc(Hc,Qc,ou,"⌣","\\smile",!0),Zc(Hc,Qc,ou,"⊑","\\sqsubseteq",!0),Zc(Hc,Qc,ou,"⊒","\\sqsupseteq",!0),Zc(Hc,Qc,ou,"≐","\\doteq",!0),Zc(Hc,Qc,ou,"⌢","\\frown",!0),Zc(Hc,Qc,ou,"∋","\\ni",!0),Zc(Hc,Qc,ou,"∝","\\propto",!0),Zc(Hc,Qc,ou,"⊢","\\vdash",!0),Zc(Hc,Qc,ou,"⊣","\\dashv",!0),Zc(Hc,Qc,ou,"∋","\\owns"),Zc(Hc,Qc,au,".","\\ldotp"),Zc(Hc,Qc,au,"⋅","\\cdotp"),Zc(Hc,Qc,au,"⋅","·"),Zc(Yc,Qc,lu,"⋅","·"),Zc(Hc,Qc,lu,"#","\\#"),Zc(Yc,Qc,lu,"#","\\#"),Zc(Hc,Qc,lu,"&","\\&"),Zc(Yc,Qc,lu,"&","\\&"),Zc(Hc,Qc,lu,"ℵ","\\aleph",!0),Zc(Hc,Qc,lu,"∀","\\forall",!0),Zc(Hc,Qc,lu,"ℏ","\\hbar",!0),Zc(Hc,Qc,lu,"∃","\\exists",!0),Zc(Hc,Qc,lu,"∇","\\nabla",!0),Zc(Hc,Qc,lu,"♭","\\flat",!0),Zc(Hc,Qc,lu,"ℓ","\\ell",!0),Zc(Hc,Qc,lu,"♮","\\natural",!0),Zc(Hc,Qc,lu,"♣","\\clubsuit",!0),Zc(Hc,Qc,lu,"℘","\\wp",!0),Zc(Hc,Qc,lu,"♯","\\sharp",!0),Zc(Hc,Qc,lu,"♢","\\diamondsuit",!0),Zc(Hc,Qc,lu,"ℜ","\\Re",!0),Zc(Hc,Qc,lu,"♡","\\heartsuit",!0),Zc(Hc,Qc,lu,"ℑ","\\Im",!0),Zc(Hc,Qc,lu,"♠","\\spadesuit",!0),Zc(Hc,Qc,lu,"§","\\S",!0),Zc(Yc,Qc,lu,"§","\\S"),Zc(Hc,Qc,lu,"¶","\\P",!0),Zc(Yc,Qc,lu,"¶","\\P"),Zc(Hc,Qc,lu,"†","\\dag"),Zc(Yc,Qc,lu,"†","\\dag"),Zc(Yc,Qc,lu,"†","\\textdagger"),Zc(Hc,Qc,lu,"‡","\\ddag"),Zc(Yc,Qc,lu,"‡","\\ddag"),Zc(Yc,Qc,lu,"‡","\\textdaggerdbl"),Zc(Hc,Qc,eu,"⎱","\\rmoustache",!0),Zc(Hc,Qc,iu,"⎰","\\lmoustache",!0),Zc(Hc,Qc,eu,"⟯","\\rgroup",!0),Zc(Hc,Qc,iu,"⟮","\\lgroup",!0),Zc(Hc,Qc,$c,"∓","\\mp",!0),Zc(Hc,Qc,$c,"⊖","\\ominus",!0),Zc(Hc,Qc,$c,"⊎","\\uplus",!0),Zc(Hc,Qc,$c,"⊓","\\sqcap",!0),Zc(Hc,Qc,$c,"∗","\\ast"),Zc(Hc,Qc,$c,"⊔","\\sqcup",!0),Zc(Hc,Qc,$c,"◯","\\bigcirc",!0),Zc(Hc,Qc,$c,"∙","\\bullet",!0),Zc(Hc,Qc,$c,"‡","\\ddagger"),Zc(Hc,Qc,$c,"≀","\\wr",!0),Zc(Hc,Qc,$c,"⨿","\\amalg"),Zc(Hc,Qc,$c,"&","\\And"),Zc(Hc,Qc,ou,"⟵","\\longleftarrow",!0),Zc(Hc,Qc,ou,"⇐","\\Leftarrow",!0),Zc(Hc,Qc,ou,"⟸","\\Longleftarrow",!0),Zc(Hc,Qc,ou,"⟶","\\longrightarrow",!0),Zc(Hc,Qc,ou,"⇒","\\Rightarrow",!0),Zc(Hc,Qc,ou,"⟹","\\Longrightarrow",!0),Zc(Hc,Qc,ou,"↔","\\leftrightarrow",!0),Zc(Hc,Qc,ou,"⟷","\\longleftrightarrow",!0),Zc(Hc,Qc,ou,"⇔","\\Leftrightarrow",!0),Zc(Hc,Qc,ou,"⟺","\\Longleftrightarrow",!0),Zc(Hc,Qc,ou,"↦","\\mapsto",!0),Zc(Hc,Qc,ou,"⟼","\\longmapsto",!0),Zc(Hc,Qc,ou,"↗","\\nearrow",!0),Zc(Hc,Qc,ou,"↩","\\hookleftarrow",!0),Zc(Hc,Qc,ou,"↪","\\hookrightarrow",!0),Zc(Hc,Qc,ou,"↘","\\searrow",!0),Zc(Hc,Qc,ou,"↼","\\leftharpoonup",!0),Zc(Hc,Qc,ou,"⇀","\\rightharpoonup",!0),Zc(Hc,Qc,ou,"↙","\\swarrow",!0),Zc(Hc,Qc,ou,"↽","\\leftharpoondown",!0),Zc(Hc,Qc,ou,"⇁","\\rightharpoondown",!0),Zc(Hc,Qc,ou,"↖","\\nwarrow",!0),Zc(Hc,Qc,ou,"⇌","\\rightleftharpoons",!0),Zc(Hc,Jc,ou,"≮","\\nless",!0),Zc(Hc,Jc,ou,"","\\@nleqslant"),Zc(Hc,Jc,ou,"","\\@nleqq"),Zc(Hc,Jc,ou,"⪇","\\lneq",!0),Zc(Hc,Jc,ou,"≨","\\lneqq",!0),Zc(Hc,Jc,ou,"","\\@lvertneqq"),Zc(Hc,Jc,ou,"⋦","\\lnsim",!0),Zc(Hc,Jc,ou,"⪉","\\lnapprox",!0),Zc(Hc,Jc,ou,"⊀","\\nprec",!0),Zc(Hc,Jc,ou,"⋠","\\npreceq",!0),Zc(Hc,Jc,ou,"⋨","\\precnsim",!0),Zc(Hc,Jc,ou,"⪹","\\precnapprox",!0),Zc(Hc,Jc,ou,"≁","\\nsim",!0),Zc(Hc,Jc,ou,"","\\@nshortmid"),Zc(Hc,Jc,ou,"∤","\\nmid",!0),Zc(Hc,Jc,ou,"⊬","\\nvdash",!0),Zc(Hc,Jc,ou,"⊭","\\nvDash",!0),Zc(Hc,Jc,ou,"⋪","\\ntriangleleft"),Zc(Hc,Jc,ou,"⋬","\\ntrianglelefteq",!0),Zc(Hc,Jc,ou,"⊊","\\subsetneq",!0),Zc(Hc,Jc,ou,"","\\@varsubsetneq"),Zc(Hc,Jc,ou,"⫋","\\subsetneqq",!0),Zc(Hc,Jc,ou,"","\\@varsubsetneqq"),Zc(Hc,Jc,ou,"≯","\\ngtr",!0),Zc(Hc,Jc,ou,"","\\@ngeqslant"),Zc(Hc,Jc,ou,"","\\@ngeqq"),Zc(Hc,Jc,ou,"⪈","\\gneq",!0),Zc(Hc,Jc,ou,"≩","\\gneqq",!0),Zc(Hc,Jc,ou,"","\\@gvertneqq"),Zc(Hc,Jc,ou,"⋧","\\gnsim",!0),Zc(Hc,Jc,ou,"⪊","\\gnapprox",!0),Zc(Hc,Jc,ou,"⊁","\\nsucc",!0),Zc(Hc,Jc,ou,"⋡","\\nsucceq",!0),Zc(Hc,Jc,ou,"⋩","\\succnsim",!0),Zc(Hc,Jc,ou,"⪺","\\succnapprox",!0),Zc(Hc,Jc,ou,"≆","\\ncong",!0),Zc(Hc,Jc,ou,"","\\@nshortparallel"),Zc(Hc,Jc,ou,"∦","\\nparallel",!0),Zc(Hc,Jc,ou,"⊯","\\nVDash",!0),Zc(Hc,Jc,ou,"⋫","\\ntriangleright"),Zc(Hc,Jc,ou,"⋭","\\ntrianglerighteq",!0),Zc(Hc,Jc,ou,"","\\@nsupseteqq"),Zc(Hc,Jc,ou,"⊋","\\supsetneq",!0),Zc(Hc,Jc,ou,"","\\@varsupsetneq"),Zc(Hc,Jc,ou,"⫌","\\supsetneqq",!0),Zc(Hc,Jc,ou,"","\\@varsupsetneqq"),Zc(Hc,Jc,ou,"⊮","\\nVdash",!0),Zc(Hc,Jc,ou,"⪵","\\precneqq",!0),Zc(Hc,Jc,ou,"⪶","\\succneqq",!0),Zc(Hc,Jc,ou,"","\\@nsubseteqq"),Zc(Hc,Jc,$c,"⊴","\\unlhd"),Zc(Hc,Jc,$c,"⊵","\\unrhd"),Zc(Hc,Jc,ou,"↚","\\nleftarrow",!0),Zc(Hc,Jc,ou,"↛","\\nrightarrow",!0),Zc(Hc,Jc,ou,"⇍","\\nLeftarrow",!0),Zc(Hc,Jc,ou,"⇏","\\nRightarrow",!0),Zc(Hc,Jc,ou,"↮","\\nleftrightarrow",!0),Zc(Hc,Jc,ou,"⇎","\\nLeftrightarrow",!0),Zc(Hc,Jc,ou,"△","\\vartriangle"),Zc(Hc,Jc,lu,"ℏ","\\hslash"),Zc(Hc,Jc,lu,"▽","\\triangledown"),Zc(Hc,Jc,lu,"◊","\\lozenge"),Zc(Hc,Jc,lu,"Ⓢ","\\circledS"),Zc(Hc,Jc,lu,"®","\\circledR"),Zc(Yc,Jc,lu,"®","\\circledR"),Zc(Hc,Jc,lu,"∡","\\measuredangle",!0),Zc(Hc,Jc,lu,"∄","\\nexists"),Zc(Hc,Jc,lu,"℧","\\mho"),Zc(Hc,Jc,lu,"Ⅎ","\\Finv",!0),Zc(Hc,Jc,lu,"⅁","\\Game",!0),Zc(Hc,Jc,lu,"‵","\\backprime"),Zc(Hc,Jc,lu,"▲","\\blacktriangle"),Zc(Hc,Jc,lu,"▼","\\blacktriangledown"),Zc(Hc,Jc,lu,"■","\\blacksquare"),Zc(Hc,Jc,lu,"⧫","\\blacklozenge"),Zc(Hc,Jc,lu,"★","\\bigstar"),Zc(Hc,Jc,lu,"∢","\\sphericalangle",!0),Zc(Hc,Jc,lu,"∁","\\complement",!0),Zc(Hc,Jc,lu,"ð","\\eth",!0),Zc(Yc,Qc,lu,"ð","ð"),Zc(Hc,Jc,lu,"╱","\\diagup"),Zc(Hc,Jc,lu,"╲","\\diagdown"),Zc(Hc,Jc,lu,"□","\\square"),Zc(Hc,Jc,lu,"□","\\Box"),Zc(Hc,Jc,lu,"◊","\\Diamond"),Zc(Hc,Jc,lu,"¥","\\yen",!0),Zc(Yc,Jc,lu,"¥","\\yen",!0),Zc(Hc,Jc,lu,"✓","\\checkmark",!0),Zc(Yc,Jc,lu,"✓","\\checkmark"),Zc(Hc,Jc,lu,"ℶ","\\beth",!0),Zc(Hc,Jc,lu,"ℸ","\\daleth",!0),Zc(Hc,Jc,lu,"ℷ","\\gimel",!0),Zc(Hc,Jc,lu,"ϝ","\\digamma",!0),Zc(Hc,Jc,lu,"ϰ","\\varkappa"),Zc(Hc,Jc,iu,"┌","\\@ulcorner",!0),Zc(Hc,Jc,eu,"┐","\\@urcorner",!0),Zc(Hc,Jc,iu,"└","\\@llcorner",!0),Zc(Hc,Jc,eu,"┘","\\@lrcorner",!0),Zc(Hc,Jc,ou,"≦","\\leqq",!0),Zc(Hc,Jc,ou,"⩽","\\leqslant",!0),Zc(Hc,Jc,ou,"⪕","\\eqslantless",!0),Zc(Hc,Jc,ou,"≲","\\lesssim",!0),Zc(Hc,Jc,ou,"⪅","\\lessapprox",!0),Zc(Hc,Jc,ou,"≊","\\approxeq",!0),Zc(Hc,Jc,$c,"⋖","\\lessdot"),Zc(Hc,Jc,ou,"⋘","\\lll",!0),Zc(Hc,Jc,ou,"≶","\\lessgtr",!0),Zc(Hc,Jc,ou,"⋚","\\lesseqgtr",!0),Zc(Hc,Jc,ou,"⪋","\\lesseqqgtr",!0),Zc(Hc,Jc,ou,"≑","\\doteqdot"),Zc(Hc,Jc,ou,"≓","\\risingdotseq",!0),Zc(Hc,Jc,ou,"≒","\\fallingdotseq",!0),Zc(Hc,Jc,ou,"∽","\\backsim",!0),Zc(Hc,Jc,ou,"⋍","\\backsimeq",!0),Zc(Hc,Jc,ou,"⫅","\\subseteqq",!0),Zc(Hc,Jc,ou,"⋐","\\Subset",!0),Zc(Hc,Jc,ou,"⊏","\\sqsubset",!0),Zc(Hc,Jc,ou,"≼","\\preccurlyeq",!0),Zc(Hc,Jc,ou,"⋞","\\curlyeqprec",!0),Zc(Hc,Jc,ou,"≾","\\precsim",!0),Zc(Hc,Jc,ou,"⪷","\\precapprox",!0),Zc(Hc,Jc,ou,"⊲","\\vartriangleleft"),Zc(Hc,Jc,ou,"⊴","\\trianglelefteq"),Zc(Hc,Jc,ou,"⊨","\\vDash",!0),Zc(Hc,Jc,ou,"⊪","\\Vvdash",!0),Zc(Hc,Jc,ou,"⌣","\\smallsmile"),Zc(Hc,Jc,ou,"⌢","\\smallfrown"),Zc(Hc,Jc,ou,"≏","\\bumpeq",!0),Zc(Hc,Jc,ou,"≎","\\Bumpeq",!0),Zc(Hc,Jc,ou,"≧","\\geqq",!0),Zc(Hc,Jc,ou,"⩾","\\geqslant",!0),Zc(Hc,Jc,ou,"⪖","\\eqslantgtr",!0),Zc(Hc,Jc,ou,"≳","\\gtrsim",!0),Zc(Hc,Jc,ou,"⪆","\\gtrapprox",!0),Zc(Hc,Jc,$c,"⋗","\\gtrdot"),Zc(Hc,Jc,ou,"⋙","\\ggg",!0),Zc(Hc,Jc,ou,"≷","\\gtrless",!0),Zc(Hc,Jc,ou,"⋛","\\gtreqless",!0),Zc(Hc,Jc,ou,"⪌","\\gtreqqless",!0),Zc(Hc,Jc,ou,"≖","\\eqcirc",!0),Zc(Hc,Jc,ou,"≗","\\circeq",!0),Zc(Hc,Jc,ou,"≜","\\triangleq",!0),Zc(Hc,Jc,ou,"∼","\\thicksim"),Zc(Hc,Jc,ou,"≈","\\thickapprox"),Zc(Hc,Jc,ou,"⫆","\\supseteqq",!0),Zc(Hc,Jc,ou,"⋑","\\Supset",!0),Zc(Hc,Jc,ou,"⊐","\\sqsupset",!0),Zc(Hc,Jc,ou,"≽","\\succcurlyeq",!0),Zc(Hc,Jc,ou,"⋟","\\curlyeqsucc",!0),Zc(Hc,Jc,ou,"≿","\\succsim",!0),Zc(Hc,Jc,ou,"⪸","\\succapprox",!0),Zc(Hc,Jc,ou,"⊳","\\vartriangleright"),Zc(Hc,Jc,ou,"⊵","\\trianglerighteq"),Zc(Hc,Jc,ou,"⊩","\\Vdash",!0),Zc(Hc,Jc,ou,"∣","\\shortmid"),Zc(Hc,Jc,ou,"∥","\\shortparallel"),Zc(Hc,Jc,ou,"≬","\\between",!0),Zc(Hc,Jc,ou,"⋔","\\pitchfork",!0),Zc(Hc,Jc,ou,"∝","\\varpropto"),Zc(Hc,Jc,ou,"◀","\\blacktriangleleft"),Zc(Hc,Jc,ou,"∴","\\therefore",!0),Zc(Hc,Jc,ou,"∍","\\backepsilon"),Zc(Hc,Jc,ou,"▶","\\blacktriangleright"),Zc(Hc,Jc,ou,"∵","\\because",!0),Zc(Hc,Jc,ou,"⋘","\\llless"),Zc(Hc,Jc,ou,"⋙","\\gggtr"),Zc(Hc,Jc,$c,"⊲","\\lhd"),Zc(Hc,Jc,$c,"⊳","\\rhd"),Zc(Hc,Jc,ou,"≂","\\eqsim",!0),Zc(Hc,Qc,ou,"⋈","\\Join"),Zc(Hc,Jc,ou,"≑","\\Doteq",!0),Zc(Hc,Jc,$c,"∔","\\dotplus",!0),Zc(Hc,Jc,$c,"∖","\\smallsetminus"),Zc(Hc,Jc,$c,"⋒","\\Cap",!0),Zc(Hc,Jc,$c,"⋓","\\Cup",!0),Zc(Hc,Jc,$c,"⩞","\\doublebarwedge",!0),Zc(Hc,Jc,$c,"⊟","\\boxminus",!0),Zc(Hc,Jc,$c,"⊞","\\boxplus",!0),Zc(Hc,Jc,$c,"⋇","\\divideontimes",!0),Zc(Hc,Jc,$c,"⋉","\\ltimes",!0),Zc(Hc,Jc,$c,"⋊","\\rtimes",!0),Zc(Hc,Jc,$c,"⋋","\\leftthreetimes",!0),Zc(Hc,Jc,$c,"⋌","\\rightthreetimes",!0),Zc(Hc,Jc,$c,"⋏","\\curlywedge",!0),Zc(Hc,Jc,$c,"⋎","\\curlyvee",!0),Zc(Hc,Jc,$c,"⊝","\\circleddash",!0),Zc(Hc,Jc,$c,"⊛","\\circledast",!0),Zc(Hc,Jc,$c,"⋅","\\centerdot"),Zc(Hc,Jc,$c,"⊺","\\intercal",!0),Zc(Hc,Jc,$c,"⋒","\\doublecap"),Zc(Hc,Jc,$c,"⋓","\\doublecup"),Zc(Hc,Jc,$c,"⊠","\\boxtimes",!0),Zc(Hc,Jc,ou,"⇢","\\dashrightarrow",!0),Zc(Hc,Jc,ou,"⇠","\\dashleftarrow",!0),Zc(Hc,Jc,ou,"⇇","\\leftleftarrows",!0),Zc(Hc,Jc,ou,"⇆","\\leftrightarrows",!0),Zc(Hc,Jc,ou,"⇚","\\Lleftarrow",!0),Zc(Hc,Jc,ou,"↞","\\twoheadleftarrow",!0),Zc(Hc,Jc,ou,"↢","\\leftarrowtail",!0),Zc(Hc,Jc,ou,"↫","\\looparrowleft",!0),Zc(Hc,Jc,ou,"⇋","\\leftrightharpoons",!0),Zc(Hc,Jc,ou,"↶","\\curvearrowleft",!0),Zc(Hc,Jc,ou,"↺","\\circlearrowleft",!0),Zc(Hc,Jc,ou,"↰","\\Lsh",!0),Zc(Hc,Jc,ou,"⇈","\\upuparrows",!0),Zc(Hc,Jc,ou,"↿","\\upharpoonleft",!0),Zc(Hc,Jc,ou,"⇃","\\downharpoonleft",!0),Zc(Hc,Qc,ou,"⊶","\\origof",!0),Zc(Hc,Qc,ou,"⊷","\\imageof",!0),Zc(Hc,Jc,ou,"⊸","\\multimap",!0),Zc(Hc,Jc,ou,"↭","\\leftrightsquigarrow",!0),Zc(Hc,Jc,ou,"⇉","\\rightrightarrows",!0),Zc(Hc,Jc,ou,"⇄","\\rightleftarrows",!0),Zc(Hc,Jc,ou,"↠","\\twoheadrightarrow",!0),Zc(Hc,Jc,ou,"↣","\\rightarrowtail",!0),Zc(Hc,Jc,ou,"↬","\\looparrowright",!0),Zc(Hc,Jc,ou,"↷","\\curvearrowright",!0),Zc(Hc,Jc,ou,"↻","\\circlearrowright",!0),Zc(Hc,Jc,ou,"↱","\\Rsh",!0),Zc(Hc,Jc,ou,"⇊","\\downdownarrows",!0),Zc(Hc,Jc,ou,"↾","\\upharpoonright",!0),Zc(Hc,Jc,ou,"⇂","\\downharpoonright",!0),Zc(Hc,Jc,ou,"⇝","\\rightsquigarrow",!0),Zc(Hc,Jc,ou,"⇝","\\leadsto"),Zc(Hc,Jc,ou,"⇛","\\Rrightarrow",!0),Zc(Hc,Jc,ou,"↾","\\restriction"),Zc(Hc,Qc,lu,"‘","`"),Zc(Hc,Qc,lu,"$","\\$"),Zc(Yc,Qc,lu,"$","\\$"),Zc(Yc,Qc,lu,"$","\\textdollar"),Zc(Hc,Qc,lu,"%","\\%"),Zc(Yc,Qc,lu,"%","\\%"),Zc(Hc,Qc,lu,"_","\\_"),Zc(Yc,Qc,lu,"_","\\_"),Zc(Yc,Qc,lu,"_","\\textunderscore"),Zc(Hc,Qc,lu,"∠","\\angle",!0),Zc(Hc,Qc,lu,"∞","\\infty",!0),Zc(Hc,Qc,lu,"′","\\prime"),Zc(Hc,Qc,lu,"△","\\triangle"),Zc(Hc,Qc,lu,"Γ","\\Gamma",!0),Zc(Hc,Qc,lu,"Δ","\\Delta",!0),Zc(Hc,Qc,lu,"Θ","\\Theta",!0),Zc(Hc,Qc,lu,"Λ","\\Lambda",!0),Zc(Hc,Qc,lu,"Ξ","\\Xi",!0),Zc(Hc,Qc,lu,"Π","\\Pi",!0),Zc(Hc,Qc,lu,"Σ","\\Sigma",!0),Zc(Hc,Qc,lu,"Υ","\\Upsilon",!0),Zc(Hc,Qc,lu,"Φ","\\Phi",!0),Zc(Hc,Qc,lu,"Ψ","\\Psi",!0),Zc(Hc,Qc,lu,"Ω","\\Omega",!0),Zc(Hc,Qc,lu,"A","Α"),Zc(Hc,Qc,lu,"B","Β"),Zc(Hc,Qc,lu,"E","Ε"),Zc(Hc,Qc,lu,"Z","Ζ"),Zc(Hc,Qc,lu,"H","Η"),Zc(Hc,Qc,lu,"I","Ι"),Zc(Hc,Qc,lu,"K","Κ"),Zc(Hc,Qc,lu,"M","Μ"),Zc(Hc,Qc,lu,"N","Ν"),Zc(Hc,Qc,lu,"O","Ο"),Zc(Hc,Qc,lu,"P","Ρ"),Zc(Hc,Qc,lu,"T","Τ"),Zc(Hc,Qc,lu,"X","Χ"),Zc(Hc,Qc,lu,"¬","\\neg",!0),Zc(Hc,Qc,lu,"¬","\\lnot"),Zc(Hc,Qc,lu,"⊤","\\top"),Zc(Hc,Qc,lu,"⊥","\\bot"),Zc(Hc,Qc,lu,"∅","\\emptyset"),Zc(Hc,Jc,lu,"∅","\\varnothing"),Zc(Hc,Qc,ru,"α","\\alpha",!0),Zc(Hc,Qc,ru,"β","\\beta",!0),Zc(Hc,Qc,ru,"γ","\\gamma",!0),Zc(Hc,Qc,ru,"δ","\\delta",!0),Zc(Hc,Qc,ru,"ϵ","\\epsilon",!0),Zc(Hc,Qc,ru,"ζ","\\zeta",!0),Zc(Hc,Qc,ru,"η","\\eta",!0),Zc(Hc,Qc,ru,"θ","\\theta",!0),Zc(Hc,Qc,ru,"ι","\\iota",!0),Zc(Hc,Qc,ru,"κ","\\kappa",!0),Zc(Hc,Qc,ru,"λ","\\lambda",!0),Zc(Hc,Qc,ru,"μ","\\mu",!0),Zc(Hc,Qc,ru,"ν","\\nu",!0),Zc(Hc,Qc,ru,"ξ","\\xi",!0),Zc(Hc,Qc,ru,"ο","\\omicron",!0),Zc(Hc,Qc,ru,"π","\\pi",!0),Zc(Hc,Qc,ru,"ρ","\\rho",!0),Zc(Hc,Qc,ru,"σ","\\sigma",!0),Zc(Hc,Qc,ru,"τ","\\tau",!0),Zc(Hc,Qc,ru,"υ","\\upsilon",!0),Zc(Hc,Qc,ru,"ϕ","\\phi",!0),Zc(Hc,Qc,ru,"χ","\\chi",!0),Zc(Hc,Qc,ru,"ψ","\\psi",!0),Zc(Hc,Qc,ru,"ω","\\omega",!0),Zc(Hc,Qc,ru,"ε","\\varepsilon",!0),Zc(Hc,Qc,ru,"ϑ","\\vartheta",!0),Zc(Hc,Qc,ru,"ϖ","\\varpi",!0),Zc(Hc,Qc,ru,"ϱ","\\varrho",!0),Zc(Hc,Qc,ru,"ς","\\varsigma",!0),Zc(Hc,Qc,ru,"φ","\\varphi",!0),Zc(Hc,Qc,$c,"∗","*",!0),Zc(Hc,Qc,$c,"+","+"),Zc(Hc,Qc,$c,"−","-",!0),Zc(Hc,Qc,$c,"⋅","\\cdot",!0),Zc(Hc,Qc,$c,"∘","\\circ",!0),Zc(Hc,Qc,$c,"÷","\\div",!0),Zc(Hc,Qc,$c,"±","\\pm",!0),Zc(Hc,Qc,$c,"×","\\times",!0),Zc(Hc,Qc,$c,"∩","\\cap",!0),Zc(Hc,Qc,$c,"∪","\\cup",!0),Zc(Hc,Qc,$c,"∖","\\setminus",!0),Zc(Hc,Qc,$c,"∧","\\land"),Zc(Hc,Qc,$c,"∨","\\lor"),Zc(Hc,Qc,$c,"∧","\\wedge",!0),Zc(Hc,Qc,$c,"∨","\\vee",!0),Zc(Hc,Qc,lu,"√","\\surd"),Zc(Hc,Qc,iu,"⟨","\\langle",!0),Zc(Hc,Qc,iu,"∣","\\lvert"),Zc(Hc,Qc,iu,"∥","\\lVert"),Zc(Hc,Qc,eu,"?","?"),Zc(Hc,Qc,eu,"!","!"),Zc(Hc,Qc,eu,"⟩","\\rangle",!0),Zc(Hc,Qc,eu,"∣","\\rvert"),Zc(Hc,Qc,eu,"∥","\\rVert"),Zc(Hc,Qc,ou,"=","="),Zc(Hc,Qc,ou,":",":"),Zc(Hc,Qc,ou,"≈","\\approx",!0),Zc(Hc,Qc,ou,"≅","\\cong",!0),Zc(Hc,Qc,ou,"≥","\\ge"),Zc(Hc,Qc,ou,"≥","\\geq",!0),Zc(Hc,Qc,ou,"←","\\gets"),Zc(Hc,Qc,ou,">","\\gt",!0),Zc(Hc,Qc,ou,"∈","\\in",!0),Zc(Hc,Qc,ou,"","\\@not"),Zc(Hc,Qc,ou,"⊂","\\subset",!0),Zc(Hc,Qc,ou,"⊃","\\supset",!0),Zc(Hc,Qc,ou,"⊆","\\subseteq",!0),Zc(Hc,Qc,ou,"⊇","\\supseteq",!0),Zc(Hc,Jc,ou,"⊈","\\nsubseteq",!0),Zc(Hc,Jc,ou,"⊉","\\nsupseteq",!0),Zc(Hc,Qc,ou,"⊨","\\models"),Zc(Hc,Qc,ou,"←","\\leftarrow",!0),Zc(Hc,Qc,ou,"≤","\\le"),Zc(Hc,Qc,ou,"≤","\\leq",!0),Zc(Hc,Qc,ou,"<","\\lt",!0),Zc(Hc,Qc,ou,"→","\\rightarrow",!0),Zc(Hc,Qc,ou,"→","\\to"),Zc(Hc,Jc,ou,"≱","\\ngeq",!0),Zc(Hc,Jc,ou,"≰","\\nleq",!0),Zc(Hc,Qc,su," ","\\ "),Zc(Hc,Qc,su," ","\\space"),Zc(Hc,Qc,su," ","\\nobreakspace"),Zc(Yc,Qc,su," ","\\ "),Zc(Yc,Qc,su," "," "),Zc(Yc,Qc,su," ","\\space"),Zc(Yc,Qc,su," ","\\nobreakspace"),Zc(Hc,Qc,su,null,"\\nobreak"),Zc(Hc,Qc,su,null,"\\allowbreak"),Zc(Hc,Qc,au,",",","),Zc(Hc,Qc,au,";",";"),Zc(Hc,Jc,$c,"⊼","\\barwedge",!0),Zc(Hc,Jc,$c,"⊻","\\veebar",!0),Zc(Hc,Qc,$c,"⊙","\\odot",!0),Zc(Hc,Qc,$c,"⊕","\\oplus",!0),Zc(Hc,Qc,$c,"⊗","\\otimes",!0),Zc(Hc,Qc,lu,"∂","\\partial",!0),Zc(Hc,Qc,$c,"⊘","\\oslash",!0),Zc(Hc,Jc,$c,"⊚","\\circledcirc",!0),Zc(Hc,Jc,$c,"⊡","\\boxdot",!0),Zc(Hc,Qc,$c,"△","\\bigtriangleup"),Zc(Hc,Qc,$c,"▽","\\bigtriangledown"),Zc(Hc,Qc,$c,"†","\\dagger"),Zc(Hc,Qc,$c,"⋄","\\diamond"),Zc(Hc,Qc,$c,"⋆","\\star"),Zc(Hc,Qc,$c,"◃","\\triangleleft"),Zc(Hc,Qc,$c,"▹","\\triangleright"),Zc(Hc,Qc,iu,"{","\\{"),Zc(Yc,Qc,lu,"{","\\{"),Zc(Yc,Qc,lu,"{","\\textbraceleft"),Zc(Hc,Qc,eu,"}","\\}"),Zc(Yc,Qc,lu,"}","\\}"),Zc(Yc,Qc,lu,"}","\\textbraceright"),Zc(Hc,Qc,iu,"{","\\lbrace"),Zc(Hc,Qc,eu,"}","\\rbrace"),Zc(Hc,Qc,iu,"[","\\lbrack",!0),Zc(Yc,Qc,lu,"[","\\lbrack",!0),Zc(Hc,Qc,eu,"]","\\rbrack",!0),Zc(Yc,Qc,lu,"]","\\rbrack",!0),Zc(Hc,Qc,iu,"(","\\lparen",!0),Zc(Hc,Qc,eu,")","\\rparen",!0),Zc(Yc,Qc,lu,"<","\\textless",!0),Zc(Yc,Qc,lu,">","\\textgreater",!0),Zc(Hc,Qc,iu,"⌊","\\lfloor",!0),Zc(Hc,Qc,eu,"⌋","\\rfloor",!0),Zc(Hc,Qc,iu,"⌈","\\lceil",!0),Zc(Hc,Qc,eu,"⌉","\\rceil",!0),Zc(Hc,Qc,lu,"\\","\\backslash"),Zc(Hc,Qc,lu,"∣","|"),Zc(Hc,Qc,lu,"∣","\\vert"),Zc(Yc,Qc,lu,"|","\\textbar",!0),Zc(Hc,Qc,lu,"∥","\\|"),Zc(Hc,Qc,lu,"∥","\\Vert"),Zc(Yc,Qc,lu,"∥","\\textbardbl"),Zc(Yc,Qc,lu,"~","\\textasciitilde"),Zc(Yc,Qc,lu,"\\","\\textbackslash"),Zc(Yc,Qc,lu,"^","\\textasciicircum"),Zc(Hc,Qc,ou,"↑","\\uparrow",!0),Zc(Hc,Qc,ou,"⇑","\\Uparrow",!0),Zc(Hc,Qc,ou,"↓","\\downarrow",!0),Zc(Hc,Qc,ou,"⇓","\\Downarrow",!0),Zc(Hc,Qc,ou,"↕","\\updownarrow",!0),Zc(Hc,Qc,ou,"⇕","\\Updownarrow",!0),Zc(Hc,Qc,nu,"∐","\\coprod"),Zc(Hc,Qc,nu,"⋁","\\bigvee"),Zc(Hc,Qc,nu,"⋀","\\bigwedge"),Zc(Hc,Qc,nu,"⨄","\\biguplus"),Zc(Hc,Qc,nu,"⋂","\\bigcap"),Zc(Hc,Qc,nu,"⋃","\\bigcup"),Zc(Hc,Qc,nu,"∫","\\int"),Zc(Hc,Qc,nu,"∫","\\intop"),Zc(Hc,Qc,nu,"∬","\\iint"),Zc(Hc,Qc,nu,"∭","\\iiint"),Zc(Hc,Qc,nu,"∏","\\prod"),Zc(Hc,Qc,nu,"∑","\\sum"),Zc(Hc,Qc,nu,"⨂","\\bigotimes"),Zc(Hc,Qc,nu,"⨁","\\bigoplus"),Zc(Hc,Qc,nu,"⨀","\\bigodot"),Zc(Hc,Qc,nu,"∮","\\oint"),Zc(Hc,Qc,nu,"∯","\\oiint"),Zc(Hc,Qc,nu,"∰","\\oiiint"),Zc(Hc,Qc,nu,"⨆","\\bigsqcup"),Zc(Hc,Qc,nu,"∫","\\smallint"),Zc(Yc,Qc,tu,"…","\\textellipsis"),Zc(Hc,Qc,tu,"…","\\mathellipsis"),Zc(Yc,Qc,tu,"…","\\ldots",!0),Zc(Hc,Qc,tu,"…","\\ldots",!0),Zc(Hc,Qc,tu,"⋯","\\@cdots",!0),Zc(Hc,Qc,tu,"⋱","\\ddots",!0),Zc(Hc,Qc,lu,"⋮","\\varvdots"),Zc(Yc,Qc,lu,"⋮","\\varvdots"),Zc(Hc,Qc,_c,"ˊ","\\acute"),Zc(Hc,Qc,_c,"ˋ","\\grave"),Zc(Hc,Qc,_c,"¨","\\ddot"),Zc(Hc,Qc,_c,"~","\\tilde"),Zc(Hc,Qc,_c,"ˉ","\\bar"),Zc(Hc,Qc,_c,"˘","\\breve"),Zc(Hc,Qc,_c,"ˇ","\\check"),Zc(Hc,Qc,_c,"^","\\hat"),Zc(Hc,Qc,_c,"⃗","\\vec"),Zc(Hc,Qc,_c,"˙","\\dot"),Zc(Hc,Qc,_c,"˚","\\mathring"),Zc(Hc,Qc,ru,"","\\@imath"),Zc(Hc,Qc,ru,"","\\@jmath"),Zc(Hc,Qc,lu,"ı","ı"),Zc(Hc,Qc,lu,"ȷ","ȷ"),Zc(Yc,Qc,lu,"ı","\\i",!0),Zc(Yc,Qc,lu,"ȷ","\\j",!0),Zc(Yc,Qc,lu,"ß","\\ss",!0),Zc(Yc,Qc,lu,"æ","\\ae",!0),Zc(Yc,Qc,lu,"œ","\\oe",!0),Zc(Yc,Qc,lu,"ø","\\o",!0),Zc(Yc,Qc,lu,"Æ","\\AE",!0),Zc(Yc,Qc,lu,"Œ","\\OE",!0),Zc(Yc,Qc,lu,"Ø","\\O",!0),Zc(Yc,Qc,_c,"ˊ","\\'"),Zc(Yc,Qc,_c,"ˋ","\\`"),Zc(Yc,Qc,_c,"ˆ","\\^"),Zc(Yc,Qc,_c,"˜","\\~"),Zc(Yc,Qc,_c,"ˉ","\\="),Zc(Yc,Qc,_c,"˘","\\u"),Zc(Yc,Qc,_c,"˙","\\."),Zc(Yc,Qc,_c,"¸","\\c"),Zc(Yc,Qc,_c,"˚","\\r"),Zc(Yc,Qc,_c,"ˇ","\\v"),Zc(Yc,Qc,_c,"¨",'\\"'),Zc(Yc,Qc,_c,"˝","\\H"),Zc(Yc,Qc,_c,"◯","\\textcircled");var cu={"--":!0,"---":!0,"``":!0,"''":!0};Zc(Yc,Qc,lu,"–","--",!0),Zc(Yc,Qc,lu,"–","\\textendash"),Zc(Yc,Qc,lu,"—","---",!0),Zc(Yc,Qc,lu,"—","\\textemdash"),Zc(Yc,Qc,lu,"‘","`",!0),Zc(Yc,Qc,lu,"‘","\\textquoteleft"),Zc(Yc,Qc,lu,"’","'",!0),Zc(Yc,Qc,lu,"’","\\textquoteright"),Zc(Yc,Qc,lu,"“","``",!0),Zc(Yc,Qc,lu,"“","\\textquotedblleft"),Zc(Yc,Qc,lu,"”","''",!0),Zc(Yc,Qc,lu,"”","\\textquotedblright"),Zc(Hc,Qc,lu,"°","\\degree",!0),Zc(Yc,Qc,lu,"°","\\degree"),Zc(Yc,Qc,lu,"°","\\textdegree",!0),Zc(Hc,Qc,lu,"£","\\pounds"),Zc(Hc,Qc,lu,"£","\\mathsterling",!0),Zc(Yc,Qc,lu,"£","\\pounds"),Zc(Yc,Qc,lu,"£","\\textsterling",!0),Zc(Hc,Jc,lu,"✠","\\maltese"),Zc(Yc,Jc,lu,"✠","\\maltese");for(var uu=0;uu<14;uu++){var du='0123456789/@."'.charAt(uu);Zc(Hc,Qc,lu,du,du)}for(var pu=0;pu<25;pu++){var hu='0123456789!@*()-=+";:?/.,'.charAt(pu);Zc(Yc,Qc,lu,hu,hu)}for(var qu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",fu=0;fu<52;fu++){var mu=qu.charAt(fu);Zc(Hc,Qc,ru,mu,mu),Zc(Yc,Qc,lu,mu,mu)}Zc(Hc,Jc,lu,"C","ℂ"),Zc(Yc,Jc,lu,"C","ℂ"),Zc(Hc,Jc,lu,"H","ℍ"),Zc(Yc,Jc,lu,"H","ℍ"),Zc(Hc,Jc,lu,"N","ℕ"),Zc(Yc,Jc,lu,"N","ℕ"),Zc(Hc,Jc,lu,"P","ℙ"),Zc(Yc,Jc,lu,"P","ℙ"),Zc(Hc,Jc,lu,"Q","ℚ"),Zc(Yc,Jc,lu,"Q","ℚ"),Zc(Hc,Jc,lu,"R","ℝ"),Zc(Yc,Jc,lu,"R","ℝ"),Zc(Hc,Jc,lu,"Z","ℤ"),Zc(Yc,Jc,lu,"Z","ℤ"),Zc(Hc,Qc,ru,"h","ℎ"),Zc(Yc,Qc,ru,"h","ℎ");for(var Vu="",gu=0;gu<52;gu++){var vu=qu.charAt(gu);Zc(Hc,Qc,ru,vu,Vu=String.fromCharCode(55349,56320+gu)),Zc(Yc,Qc,lu,vu,Vu),Zc(Hc,Qc,ru,vu,Vu=String.fromCharCode(55349,56372+gu)),Zc(Yc,Qc,lu,vu,Vu),Zc(Hc,Qc,ru,vu,Vu=String.fromCharCode(55349,56424+gu)),Zc(Yc,Qc,lu,vu,Vu),Zc(Hc,Qc,ru,vu,Vu=String.fromCharCode(55349,56580+gu)),Zc(Yc,Qc,lu,vu,Vu),Zc(Hc,Qc,ru,vu,Vu=String.fromCharCode(55349,56684+gu)),Zc(Yc,Qc,lu,vu,Vu),Zc(Hc,Qc,ru,vu,Vu=String.fromCharCode(55349,56736+gu)),Zc(Yc,Qc,lu,vu,Vu),Zc(Hc,Qc,ru,vu,Vu=String.fromCharCode(55349,56788+gu)),Zc(Yc,Qc,lu,vu,Vu),Zc(Hc,Qc,ru,vu,Vu=String.fromCharCode(55349,56840+gu)),Zc(Yc,Qc,lu,vu,Vu),Zc(Hc,Qc,ru,vu,Vu=String.fromCharCode(55349,56944+gu)),Zc(Yc,Qc,lu,vu,Vu),gu<26&&(Zc(Hc,Qc,ru,vu,Vu=String.fromCharCode(55349,56632+gu)),Zc(Yc,Qc,lu,vu,Vu),Zc(Hc,Qc,ru,vu,Vu=String.fromCharCode(55349,56476+gu)),Zc(Yc,Qc,lu,vu,Vu))}Zc(Hc,Qc,ru,"k",Vu=String.fromCharCode(55349,56668)),Zc(Yc,Qc,lu,"k",Vu);for(var bu=0;bu<10;bu++){var yu=bu.toString();Zc(Hc,Qc,ru,yu,Vu=String.fromCharCode(55349,57294+bu)),Zc(Yc,Qc,lu,yu,Vu),Zc(Hc,Qc,ru,yu,Vu=String.fromCharCode(55349,57314+bu)),Zc(Yc,Qc,lu,yu,Vu),Zc(Hc,Qc,ru,yu,Vu=String.fromCharCode(55349,57324+bu)),Zc(Yc,Qc,lu,yu,Vu),Zc(Hc,Qc,ru,yu,Vu=String.fromCharCode(55349,57334+bu)),Zc(Yc,Qc,lu,yu,Vu)}for(var Su=0;Su<3;Su++){var Au="ÐÞþ".charAt(Su);Zc(Hc,Qc,ru,Au,Au),Zc(Yc,Qc,lu,Au,Au)}var wu=[["mathbf","textbf","Main-Bold"],["mathbf","textbf","Main-Bold"],["mathnormal","textit","Math-Italic"],["mathnormal","textit","Math-Italic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["mathscr","textscr","Script-Regular"],["","",""],["","",""],["","",""],["mathfrak","textfrak","Fraktur-Regular"],["mathfrak","textfrak","Fraktur-Regular"],["mathbb","textbb","AMS-Regular"],["mathbb","textbb","AMS-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathitsf","textitsf","SansSerif-Italic"],["mathitsf","textitsf","SansSerif-Italic"],["","",""],["","",""],["mathtt","texttt","Typewriter-Regular"],["mathtt","texttt","Typewriter-Regular"]],Uu=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],xu=function(e,t,r){if(Gc[r][e]){var n=Gc[r][e].replace;n&&(e=n)}return{value:e,metrics:Xc(e,t,r)}},Cu=function(e,t,r,n,i){var a,o=xu(e,t,r),s=o.metrics;if(e=o.value,s){var l=s.italic;("text"===r||n&&"mathit"===n.font)&&(l=0),a=new Kc(e,s.height,s.depth,l,s.skew,s.width,i)}else a=new Kc(e,0,0,0,0,0,i);if(n){a.maxFontSize=n.sizeMultiplier,n.style.isTight()&&a.classes.push("mtight");var c=n.getColor();c&&(a.style.color=c)}return a},Ru=function(e,t,r,n){return void 0===n&&(n=[]),"boldsymbol"===r.font&&xu(e,"Main-Bold",t).metrics?Cu(e,"Main-Bold",t,r,n.concat(["mathbf"])):"\\"===e||"main"===Gc[t][e].font?Cu(e,"Main-Regular",t,r,n):Cu(e,"AMS-Regular",t,r,n.concat(["amsrm"]))},Eu=function(e,t,r){var n=e.mode,i=e.text,a=["mord"],o="math"===n||"text"===n&&t.font,s=o?t.font:t.fontFamily,l="",c="";if(55349===i.charCodeAt(0)&&([l,c]=((e,t)=>{var r=1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536,n="math"===t?0:1;if(119808<=r&&r<120484){var i=Math.floor((r-119808)/26);return[wu[i][2],wu[i][n]]}if(120782<=r&&r<=120831){var a=Math.floor((r-120782)/10);return[Uu[a][2],Uu[a][n]]}if(120485===r||120486===r)return[wu[0][2],wu[0][n]];if(120486<r&&r<120782)return["",""];throw new Yl("Unsupported character: "+e)})(i,n)),l.length>0)return Cu(i,l,n,t,a.concat(c));if(s){var u,d;if("boldsymbol"===s){var p=function(e,t,r,n,i){return"textord"!==i&&xu(e,"Math-BoldItalic",t).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}}(i,n,0,0,r);u=p.fontName,d=[p.fontClass]}else o?(u=Du[s].fontName,d=[s]):(u=Bu(s,t.fontWeight,t.fontShape),d=[s,t.fontWeight,t.fontShape]);if(xu(i,u,n).metrics)return Cu(i,u,n,t,a.concat(d));if(cu.hasOwnProperty(i)&&"Typewriter"===u.slice(0,10)){for(var h=[],q=0;q<i.length;q++)h.push(Cu(i[q],u,n,t,a.concat(d)));return Ou(h)}}if("mathord"===r)return Cu(i,"Math-Italic",n,t,a.concat(["mathnormal"]));if("textord"===r){var f=Gc[n][i]&&Gc[n][i].font;if("ams"===f){var m=Bu("amsrm",t.fontWeight,t.fontShape);return Cu(i,m,n,t,a.concat("amsrm",t.fontWeight,t.fontShape))}if("main"!==f&&f){var V=Bu(f,t.fontWeight,t.fontShape);return Cu(i,V,n,t,a.concat(V,t.fontWeight,t.fontShape))}var g=Bu("textrm",t.fontWeight,t.fontShape);return Cu(i,g,n,t,a.concat(t.fontWeight,t.fontShape))}throw new Error("unexpected type: "+r+" in makeOrd")},Tu=(e,t)=>{if(xc(e.classes)!==xc(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize||0!==e.italic&&e.hasClass("mathnormal"))return!1;if(1===e.classes.length){var r=e.classes[0];if("mbin"===r||"mord"===r)return!1}for(var n of Object.keys(e.style))if(e.style[n]!==t.style[n])return!1;for(var i of Object.keys(t.style))if(e.style[i]!==t.style[i])return!1;return!0},ku=e=>{for(var t=0;t<e.length-1;t++){var r=e[t],n=e[t+1];r instanceof Kc&&n instanceof Kc&&Tu(r,n)&&(r.text+=n.text,r.height=Math.max(r.height,n.height),r.depth=Math.max(r.depth,n.depth),r.italic=n.italic,e.splice(t+1,1),t--)}return e},Fu=function(e){for(var t=0,r=0,n=0,i=0;i<e.children.length;i++){var a=e.children[i];a.height>t&&(t=a.height),a.depth>r&&(r=a.depth),a.maxFontSize>n&&(n=a.maxFontSize)}e.height=t,e.depth=r,e.maxFontSize=n},Wu=function(e,t,r,n){var i=new kc(e,t,r,n);return Fu(i),i},Nu=(e,t,r,n)=>new kc(e,t,r,n),Ku=function(e,t,r){var n=Wu([e],[],t);return n.height=Math.max(r||t.fontMetrics().defaultRuleThickness,t.minRuleThickness),n.style.borderBottomWidth=Uc(n.height),n.maxFontSize=1,n},Ou=function(e){var t=new bc(e);return Fu(t),t},Pu=function(e,t){return e instanceof bc?Wu([],[e],t):e},Iu=function(e,t){for(var{children:r,depth:n}=function(e){if("individualShift"===e.positionType){for(var t=e.children,r=[t[0]],n=-t[0].shift-t[0].elem.depth,i=n,a=1;a<t.length;a++){var o=-t[a].shift-i-t[a].elem.depth,s=o-(t[a-1].elem.height+t[a-1].elem.depth);i+=o,r.push({type:"kern",size:s}),r.push(t[a])}return{children:r,depth:n}}var l;if("top"===e.positionType){for(var c=e.positionData,u=0;u<e.children.length;u++){var d=e.children[u];c-="kern"===d.type?d.size:d.elem.height+d.elem.depth}l=c}else if("bottom"===e.positionType)l=-e.positionData;else{var p=e.children[0];if("elem"!==p.type)throw new Error('First child must have type "elem".');if("shift"===e.positionType)l=-p.elem.depth-e.positionData;else{if("firstBaseline"!==e.positionType)throw new Error("Invalid positionType "+e.positionType+".");l=-p.elem.depth}}return{children:e.children,depth:l}}(e),i=0,a=0;a<r.length;a++){var o=r[a];if("elem"===o.type){var s=o.elem;i=Math.max(i,s.maxFontSize,s.height)}}i+=2;var l=Wu(["pstrut"],[]);l.style.height=Uc(i);for(var c=[],u=n,d=n,p=n,h=0;h<r.length;h++){var q=r[h];if("kern"===q.type)p+=q.size;else{var f=q.elem,m=q.wrapperClasses||[],V=q.wrapperStyle||{},g=Wu(m,[l,f],void 0,V);g.style.top=Uc(-i-p-f.depth),q.marginLeft&&(g.style.marginLeft=q.marginLeft),q.marginRight&&(g.style.marginRight=q.marginRight),c.push(g),p+=f.height+f.depth}u=Math.min(u,p),d=Math.max(d,p)}var v,b=Wu(["vlist"],c);if(b.style.height=Uc(d),u<0){var y=Wu([],[]),S=Wu(["vlist"],[y]);S.style.height=Uc(-u);var A=Wu(["vlist-s"],[new Kc("")]);v=[Wu(["vlist-r"],[b,A]),Wu(["vlist-r"],[S])]}else v=[Wu(["vlist-r"],[b])];var w=Wu(["vlist-t"],v);return 2===v.length&&w.classes.push("vlist-t2"),w.height=d,w.depth=-u,w},Lu=(e,t)=>{var r=Wu(["mspace"],[],t),n=wc(e,t);return r.style.marginRight=Uc(n),r},Bu=function(e,t,r){var n="";switch(e){case"amsrm":n="AMS";break;case"textrm":n="Main";break;case"textsf":n="SansSerif";break;case"texttt":n="Typewriter";break;default:n=e}return n+"-"+("textbf"===t&&"textit"===r?"BoldItalic":"textbf"===t?"Bold":"textit"===t?"Italic":"Regular")},Du={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathsfit:{variant:"sans-serif-italic",fontName:"SansSerif-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},Xu={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},ju=function(e,t){var[r,n,i]=Xu[e],a=new Pc(r),o=new Oc([a],{width:Uc(n),height:Uc(i),style:"width:"+Uc(n),viewBox:"0 0 "+1e3*n+" "+1e3*i,preserveAspectRatio:"xMinYMin"}),s=Nu(["overlay"],[o],t);return s.height=i,s.style.height=Uc(i),s.style.width=Uc(n),s},Mu={number:3,unit:"mu"},zu={number:4,unit:"mu"},Gu={number:5,unit:"mu"},Zu={mord:{mop:Mu,mbin:zu,mrel:Gu,minner:Mu},mop:{mord:Mu,mop:Mu,mrel:Gu,minner:Mu},mbin:{mord:zu,mop:zu,mopen:zu,minner:zu},mrel:{mord:Gu,mop:Gu,mopen:Gu,minner:Gu},mopen:{},mclose:{mop:Mu,mbin:zu,mrel:Gu,minner:Mu},mpunct:{mord:Mu,mop:Mu,mrel:Gu,mopen:Mu,mclose:Mu,mpunct:Mu,minner:Mu},minner:{mord:Mu,mop:Mu,mbin:zu,mrel:Gu,mopen:Mu,mpunct:Mu,minner:Mu}},Hu={mord:{mop:Mu},mop:{mord:Mu,mop:Mu},mbin:{},mrel:{},mopen:{},mclose:{mop:Mu},mpunct:{},minner:{mop:Mu}},Yu={},Qu={},Ju={};function _u(e){for(var{type:t,names:r,props:n,handler:i,htmlBuilder:a,mathmlBuilder:o}=e,s={type:t,numArgs:n.numArgs,argTypes:n.argTypes,allowedInArgument:!!n.allowedInArgument,allowedInText:!!n.allowedInText,allowedInMath:void 0===n.allowedInMath||n.allowedInMath,numOptionalArgs:n.numOptionalArgs||0,infix:!!n.infix,primitive:!!n.primitive,handler:i},l=0;l<r.length;++l)Yu[r[l]]=s;t&&(a&&(Qu[t]=a),o&&(Ju[t]=o))}function $u(e){var{type:t,htmlBuilder:r,mathmlBuilder:n}=e;_u({type:t,names:[],props:{numArgs:0},handler(){throw new Error("Should never be called.")},htmlBuilder:r,mathmlBuilder:n})}var ed=function(e){return"ordgroup"===e.type&&1===e.body.length?e.body[0]:e},td=function(e){return"ordgroup"===e.type?e.body:[e]},rd=new Set(["leftmost","mbin","mopen","mrel","mop","mpunct"]),nd=new Set(["rightmost","mrel","mclose","mpunct"]),id={display:fc.DISPLAY,text:fc.TEXT,script:fc.SCRIPT,scriptscript:fc.SCRIPTSCRIPT},ad={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},od=function(e,t,r,n){void 0===n&&(n=[null,null]);for(var i=[],a=0;a<e.length;a++){var o=pd(e[a],t);if(o instanceof bc){var s=o.children;i.push(...s)}else i.push(o)}if(ku(i),!r)return i;var l=t;if(1===e.length){var c=e[0];"sizing"===c.type?l=t.havingSize(c.size):"styling"===c.type&&(l=t.havingStyle(id[c.style]))}var u=Wu([n[0]||"leftmost"],[],t),d=Wu([n[1]||"rightmost"],[],t),p="root"===r;return sd(i,(e,t)=>{var r=t.classes[0],n=e.classes[0];"mbin"===r&&nd.has(n)?t.classes[0]="mord":"mbin"===n&&rd.has(r)&&(e.classes[0]="mord")},{node:u},d,p),sd(i,(e,t)=>{var r,n,i=ud(t),a=ud(e),o=i&&a?e.hasClass("mtight")?null==(r=Hu[i])?void 0:r[a]:null==(n=Zu[i])?void 0:n[a]:null;if(o)return Lu(o,l)},{node:u},d,p),i},sd=function(e,t,r,n,i){n&&e.push(n);for(var a=0;a<e.length;a++){var o=e[a],s=ld(o);if(s)sd(s.children,t,r,null,i);else{var l=!o.hasClass("mspace");if(l){var c=t(o,r.node);c&&(r.insertAfter?r.insertAfter(c):(e.unshift(c),a++))}l?r.node=o:i&&o.hasClass("newline")&&(r.node=Wu(["leftmost"])),r.insertAfter=(t=>r=>{e.splice(t+1,0,r),a++})(a)}}n&&e.pop()},ld=function(e){return e instanceof bc||e instanceof Fc||e instanceof kc&&e.hasClass("enclosing")?e:null},cd=function(e,t){var r=ld(e);if(r){var n=r.children;if(n.length){if("right"===t)return cd(n[n.length-1],"right");if("left"===t)return cd(n[0],"left")}}return e},ud=function(e,t){if(!e)return null;t&&(e=cd(e,t));var r=e.classes[0];return ad[r]||null},dd=function(e,t){var r=["nulldelimiter"].concat(e.baseSizingClasses());return Wu(t.concat(r))},pd=function(e,t,r){if(!e)return Wu();if(Qu[e.type]){var n=Qu[e.type](e,t);if(r&&t.size!==r.size){n=Wu(t.sizingClasses(r),[n],t);var i=t.sizeMultiplier/r.sizeMultiplier;n.height*=i,n.depth*=i}return n}throw new Yl("Got group of unknown type: '"+e.type+"'")};function hd(e,t){var r=Wu(["base"],e,t),n=Wu(["strut"]);return n.style.height=Uc(r.height+r.depth),r.depth&&(n.style.verticalAlign=Uc(-r.depth)),r.children.unshift(n),r}function qd(e,t){var r=null;1===e.length&&"tag"===e[0].type&&(r=e[0].tag,e=e[0].body);var n,i=od(e,t,"root");2===i.length&&i[1].hasClass("tag")&&(n=i.pop());for(var a,o=[],s=[],l=0;l<i.length;l++)if(s.push(i[l]),i[l].hasClass("mbin")||i[l].hasClass("mrel")||i[l].hasClass("allowbreak")){for(var c=!1;l<i.length-1&&i[l+1].hasClass("mspace")&&!i[l+1].hasClass("newline");)l++,s.push(i[l]),i[l].hasClass("nobreak")&&(c=!0);c||(o.push(hd(s,t)),s=[])}else i[l].hasClass("newline")&&(s.pop(),s.length>0&&(o.push(hd(s,t)),s=[]),o.push(i[l]));s.length>0&&o.push(hd(s,t)),r?((a=hd(od(r,t,!0),t)).classes=["tag"],o.push(a)):n&&o.push(n);var u=Wu(["katex-html"],o);if(u.setAttribute("aria-hidden","true"),a){var d=a.children[0];d.style.height=Uc(u.height+u.depth),u.depth&&(d.style.verticalAlign=Uc(-u.depth))}return u}function fd(e){return new bc(e)}class md{constructor(e,t,r){this.type=e,this.attributes={},this.children=t||[],this.classes=r||[]}setAttribute(e,t){this.attributes[e]=t}getAttribute(e){return this.attributes[e]}toNode(){var e=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);this.classes.length>0&&(e.className=xc(this.classes));for(var r=0;r<this.children.length;r++)if(this.children[r]instanceof Vd&&this.children[r+1]instanceof Vd){for(var n=this.children[r].toText()+this.children[++r].toText();this.children[r+1]instanceof Vd;)n+=this.children[++r].toText();e.appendChild(new Vd(n).toNode())}else e.appendChild(this.children[r].toNode());return e}toMarkup(){var e="<"+this.type;for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&(e+=" "+t+'="',e+=ec(this.attributes[t]),e+='"');this.classes.length>0&&(e+=' class ="'+ec(xc(this.classes))+'"'),e+=">";for(var r=0;r<this.children.length;r++)e+=this.children[r].toMarkup();return e+"</"+this.type+">"}toText(){return this.children.map(e=>e.toText()).join("")}}class Vd{constructor(e){this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return ec(this.toText())}toText(){return this.text}}class gd{constructor(e){this.width=e,this.character=e>=.05555&&e<=.05556?" ":e>=.1666&&e<=.1667?" ":e>=.2222&&e<=.2223?" ":e>=.2777&&e<=.2778?" ":e>=-.05556&&e<=-.05555?" ":e>=-.1667&&e<=-.1666?" ":e>=-.2223&&e<=-.2222?" ":e>=-.2778&&e<=-.2777?" ":null}toNode(){if(this.character)return document.createTextNode(this.character);var e=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return e.setAttribute("width",Uc(this.width)),e}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+Uc(this.width)+'"/>'}toText(){return this.character?this.character:" "}}var vd=new Set(["\\imath","\\jmath"]),bd=new Set(["mrow","mtable"]),yd=function(e,t,r){return!Gc[t][e]||!Gc[t][e].replace||55349===e.charCodeAt(0)||cu.hasOwnProperty(e)&&r&&(r.fontFamily&&"tt"===r.fontFamily.slice(4,6)||r.font&&"tt"===r.font.slice(4,6))||(e=Gc[t][e].replace),new Vd(e)},Sd=function(e){return 1===e.length?e[0]:new md("mrow",e)},Ad=function(e,t){if("texttt"===t.fontFamily)return"monospace";if("textsf"===t.fontFamily)return"textit"===t.fontShape&&"textbf"===t.fontWeight?"sans-serif-bold-italic":"textit"===t.fontShape?"sans-serif-italic":"textbf"===t.fontWeight?"bold-sans-serif":"sans-serif";if("textit"===t.fontShape&&"textbf"===t.fontWeight)return"bold-italic";if("textit"===t.fontShape)return"italic";if("textbf"===t.fontWeight)return"bold";var r=t.font;if(!r||"mathnormal"===r)return null;var n=e.mode;if("mathit"===r)return"italic";if("boldsymbol"===r)return"textord"===e.type?"bold":"bold-italic";if("mathbf"===r)return"bold";if("mathbb"===r)return"double-struck";if("mathsfit"===r)return"sans-serif-italic";if("mathfrak"===r)return"fraktur";if("mathscr"===r||"mathcal"===r)return"script";if("mathsf"===r)return"sans-serif";if("mathtt"===r)return"monospace";var i=e.text;if(vd.has(i))return null;if(Gc[n][i]){var a=Gc[n][i].replace;a&&(i=a)}return Xc(i,Du[r].fontName,n)?Du[r].variant:null};function wd(e){if(!e)return!1;if("mi"===e.type&&1===e.children.length){var t=e.children[0];return t instanceof Vd&&"."===t.text}if("mo"===e.type&&1===e.children.length&&"true"===e.getAttribute("separator")&&"0em"===e.getAttribute("lspace")&&"0em"===e.getAttribute("rspace")){var r=e.children[0];return r instanceof Vd&&","===r.text}return!1}var Ud=function(e,t,r){if(1===e.length){var n=Cd(e[0],t);return r&&n instanceof md&&"mo"===n.type&&(n.setAttribute("lspace","0em"),n.setAttribute("rspace","0em")),[n]}for(var i,a=[],o=0;o<e.length;o++){var s=Cd(e[o],t);if(s instanceof md&&i instanceof md){if("mtext"===s.type&&"mtext"===i.type&&s.getAttribute("mathvariant")===i.getAttribute("mathvariant")){i.children.push(...s.children);continue}if("mn"===s.type&&"mn"===i.type){i.children.push(...s.children);continue}if(wd(s)&&"mn"===i.type){i.children.push(...s.children);continue}if("mn"===s.type&&wd(i))s.children=[...i.children,...s.children],a.pop();else if(("msup"===s.type||"msub"===s.type)&&s.children.length>=1&&("mn"===i.type||wd(i))){var l=s.children[0];l instanceof md&&"mn"===l.type&&(l.children=[...i.children,...l.children],a.pop())}else if("mi"===i.type&&1===i.children.length){var c=i.children[0];if(c instanceof Vd&&"̸"===c.text&&("mo"===s.type||"mi"===s.type||"mn"===s.type)){var u=s.children[0];u instanceof Vd&&u.text.length>0&&(u.text=u.text.slice(0,1)+"̸"+u.text.slice(1),a.pop())}}}a.push(s),i=s}return a},xd=function(e,t,r){return Sd(Ud(e,t,r))},Cd=function(e,t){if(!e)return new md("mrow");if(Ju[e.type])return Ju[e.type](e,t);throw new Yl("Got group of unknown type: '"+e.type+"'")};function Rd(e,t,r,n,i){var a,o=Ud(e,r);a=1===o.length&&o[0]instanceof md&&bd.has(o[0].type)?o[0]:new md("mrow",o);var s=new md("annotation",[new Vd(t)]);s.setAttribute("encoding","application/x-tex");var l=new md("semantics",[a,s]),c=new md("math",[l]);return c.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),n&&c.setAttribute("display","block"),Wu([i?"katex":"katex-mathml"],[c])}var Ed=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],Td=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],kd=function(e,t){return t.size<2?e:Ed[e-1][t.size-1]};class Fd{constructor(e){this.style=e.style,this.color=e.color,this.size=e.size||Fd.BASESIZE,this.textSize=e.textSize||this.size,this.phantom=!!e.phantom,this.font=e.font||"",this.fontFamily=e.fontFamily||"",this.fontWeight=e.fontWeight||"",this.fontShape=e.fontShape||"",this.sizeMultiplier=Td[this.size-1],this.maxSize=e.maxSize,this.minRuleThickness=e.minRuleThickness,this._fontMetrics=void 0}extend(e){var t={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};return Object.assign(t,e),new Fd(t)}havingStyle(e){return this.style===e?this:this.extend({style:e,size:kd(this.textSize,e)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(e){return this.size===e&&this.textSize===e?this:this.extend({style:this.style.text(),size:e,textSize:e,sizeMultiplier:Td[e-1]})}havingBaseStyle(e){e=e||this.style.text();var t=kd(Fd.BASESIZE,e);return this.size===t&&this.textSize===Fd.BASESIZE&&this.style===e?this:this.extend({style:e,size:t})}havingBaseSizing(){var e;switch(this.style.id){case 4:case 5:e=3;break;case 6:case 7:e=1;break;default:e=6}return this.extend({style:this.style.text(),size:e})}withColor(e){return this.extend({color:e})}withPhantom(){return this.extend({phantom:!0})}withFont(e){return this.extend({font:e})}withTextFontFamily(e){return this.extend({fontFamily:e,font:""})}withTextFontWeight(e){return this.extend({fontWeight:e,font:""})}withTextFontShape(e){return this.extend({fontShape:e,font:""})}sizingClasses(e){return e.size!==this.size?["sizing","reset-size"+e.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==Fd.BASESIZE?["sizing","reset-size"+this.size,"size"+Fd.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=function(e){var t;if(!jc[t=e>=5?0:e>=3?1:2]){var r=jc[t]={cssEmPerMu:Bc.quad[t]/18};for(var n in Bc)Bc.hasOwnProperty(n)&&(r[n]=Bc[n][t])}return jc[t]}(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}Fd.BASESIZE=6;var Wd={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋","\\cdrightarrow":"→","\\cdleftarrow":"←","\\cdlongequal":"="},Nd=function(e){var t=new md("mo",[new Vd(Wd[e.replace(/^\\/,"")])]);return t.setAttribute("stretchy","true"),t},Kd={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},Od=new Set(["widehat","widecheck","widetilde","utilde"]),Pd=function(e,t){var{span:r,minWidth:n,height:i}=function(){var r=4e5,n=e.label.slice(1);if(Od.has(n)){var i,a,o,s=e,l="ordgroup"===s.base.type?s.base.body.length:1;if(l>5)"widehat"===n||"widecheck"===n?(i=420,r=2364,o=.42,a=n+"4"):(i=312,r=2340,o=.34,a="tilde4");else{var c=[1,1,2,2,3,3][l];"widehat"===n||"widecheck"===n?(r=[0,1062,2364,2364,2364][c],i=[0,239,300,360,420][c],o=[0,.24,.3,.3,.36,.42][c],a=n+c):(r=[0,600,1033,2339,2340][c],i=[0,260,286,306,312][c],o=[0,.26,.286,.3,.306,.34][c],a="tilde"+c)}var u=new Pc(a),d=new Oc([u],{width:"100%",height:Uc(o),viewBox:"0 0 "+r+" "+i,preserveAspectRatio:"none"});return{span:Nu([],[d],t),minWidth:0,height:o}}var p,h,q=[],f=Kd[n],[m,V,g]=f,v=g/1e3,b=m.length;if(1===b)p=["hide-tail"],h=[f[3]];else if(2===b)p=["halfarrow-left","halfarrow-right"],h=["xMinYMin","xMaxYMin"];else{if(3!==b)throw new Error("Correct katexImagesData or update code here to support\n "+b+" children.");p=["brace-left","brace-center","brace-right"],h=["xMinYMin","xMidYMin","xMaxYMin"]}for(var y=0;y<b;y++){var S=new Pc(m[y]),A=new Oc([S],{width:"400em",height:Uc(v),viewBox:"0 0 "+r+" "+g,preserveAspectRatio:h[y]+" slice"}),w=Nu([p[y]],[A],t);if(1===b)return{span:w,minWidth:V,height:v};w.style.height=Uc(v),q.push(w)}return{span:Wu(["stretchy"],q,t),minWidth:V,height:v}}();return r.height=i,r.style.height=Uc(i),n>0&&(r.style.minWidth=Uc(n)),r};function Id(e,t){if(!e||e.type!==t)throw new Error("Expected node of type "+t+", but got "+(e?"node of type "+e.type:String(e)));return e}function Ld(e){var t=Bd(e);if(!t)throw new Error("Expected node of symbol group type, but got "+(e?"node of type "+e.type:String(e)));return t}function Bd(e){return e&&("atom"===e.type||zc.hasOwnProperty(e.type))?e:null}var Dd=e=>{return e instanceof Kc?e:((t=e)instanceof kc||t instanceof Fc||t instanceof bc)&&1===e.children.length?Dd(e.children[0]):void 0;var t},Xd=(e,t)=>{var r,n,i;e&&"supsub"===e.type?(r=(n=Id(e.base,"accent")).base,e.base=r,i=function(e){if(e instanceof kc)return e;throw new Error("Expected span<HtmlDomNode> but got "+String(e)+".")}(pd(e,t)),e.base=n):r=(n=Id(e,"accent")).base;var a,o,s=pd(r,t.havingCrampedStyle()),l=0;n.isShifty&&nc(r)&&(l=null!=(a=null==(o=Dd(s))?void 0:o.skew)?a:0);var c,u="\\c"===n.label,d=u?s.height+s.depth:Math.min(s.height,t.fontMetrics().xHeight);if(n.isStretchy)c=Pd(n,t),c=Iu({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"elem",elem:c,wrapperClasses:["svg-align"],wrapperStyle:l>0?{width:"calc(100% - "+Uc(2*l)+")",marginLeft:Uc(2*l)}:void 0}]});else{var p,h;"\\vec"===n.label?(p=ju("vec",t),h=Xu.vec[1]):(p=function(e){if(e instanceof Kc)return e;throw new Error("Expected symbolNode but got "+String(e)+".")}(p=Eu({mode:n.mode,text:n.label},t,"textord")),p.italic=0,h=p.width,u&&(d+=p.depth)),c=Wu(["accent-body"],[p]);var q="\\textcircled"===n.label;q&&(c.classes.push("accent-full"),d=s.height);var f=l;q||(f-=h/2),c.style.left=Uc(f),"\\textcircled"===n.label&&(c.style.top=".2em"),c=Iu({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"kern",size:-d},{type:"elem",elem:c}]})}var m=Wu(["mord","accent"],[c],t);return i?(i.children[0]=m,i.height=Math.max(m.height,i.height),i.classes[0]="mord",i):m},jd=(e,t)=>{var r=e.isStretchy?Nd(e.label):new md("mo",[yd(e.label,e.mode)]),n=new md("mover",[Cd(e.base,t),r]);return n.setAttribute("accent","true"),n},Md=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(e=>"\\"+e).join("|"));_u({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(e,t)=>{var r=ed(t[0]),n=!Md.test(e.funcName),i=!n||"\\widehat"===e.funcName||"\\widetilde"===e.funcName||"\\widecheck"===e.funcName;return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:n,isShifty:i,base:r}},htmlBuilder:Xd,mathmlBuilder:jd}),_u({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(e,t)=>{var r=t[0],n=e.parser.mode;return"math"===n&&(e.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+e.funcName+" works only in text mode"),n="text"),{type:"accent",mode:n,label:e.funcName,isStretchy:!1,isShifty:!0,base:r}},htmlBuilder:Xd,mathmlBuilder:jd}),_u({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(e,t)=>{var{parser:r,funcName:n}=e,i=t[0];return{type:"accentUnder",mode:r.mode,label:n,base:i}},htmlBuilder:(e,t)=>{var r=pd(e.base,t),n=Pd(e,t),i="\\utilde"===e.label?.12:0,a=Iu({positionType:"top",positionData:r.height,children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:i},{type:"elem",elem:r}]});return Wu(["mord","accentunder"],[a],t)},mathmlBuilder:(e,t)=>{var r=Nd(e.label),n=new md("munder",[Cd(e.base,t),r]);return n.setAttribute("accentunder","true"),n}});var zd=e=>{var t=new md("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};function Gd(e,t){var r=od(e.body,t,!0);return Wu([e.mclass],r,t)}function Zd(e,t){var r,n=Ud(e.body,t);return"minner"===e.mclass?r=new md("mpadded",n):"mord"===e.mclass?e.isCharacterBox?(r=n[0]).type="mi":r=new md("mi",n):(e.isCharacterBox?(r=n[0]).type="mo":r=new md("mo",n),"mbin"===e.mclass?(r.attributes.lspace="0.22em",r.attributes.rspace="0.22em"):"mpunct"===e.mclass?(r.attributes.lspace="0em",r.attributes.rspace="0.17em"):"mopen"===e.mclass||"mclose"===e.mclass?(r.attributes.lspace="0em",r.attributes.rspace="0em"):"minner"===e.mclass&&(r.attributes.lspace="0.0556em",r.attributes.width="+0.1111em")),r}_u({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,r){var{parser:n,funcName:i}=e;return{type:"xArrow",mode:n.mode,label:i,body:t[0],below:r[0]}},htmlBuilder(e,t){var r,n=t.style,i=t.havingStyle(n.sup()),a=Pu(pd(e.body,i,t),t),o="\\x"===e.label.slice(0,2)?"x":"cd";a.classes.push(o+"-arrow-pad"),e.below&&(i=t.havingStyle(n.sub()),(r=Pu(pd(e.below,i,t),t)).classes.push(o+"-arrow-pad"));var s,l=Pd(e,t),c=-t.fontMetrics().axisHeight+.5*l.height,u=-t.fontMetrics().axisHeight-.5*l.height-.111;if((a.depth>.25||"\\xleftequilibrium"===e.label)&&(u-=a.depth),r){var d=-t.fontMetrics().axisHeight+r.height+.5*l.height+.111;s=Iu({positionType:"individualShift",children:[{type:"elem",elem:a,shift:u},{type:"elem",elem:l,shift:c},{type:"elem",elem:r,shift:d}]})}else s=Iu({positionType:"individualShift",children:[{type:"elem",elem:a,shift:u},{type:"elem",elem:l,shift:c}]});return s.children[0].children[0].children[1].classes.push("svg-align"),Wu(["mrel","x-arrow"],[s],t)},mathmlBuilder(e,t){var r,n=Nd(e.label);if(n.setAttribute("minsize","x"===e.label.charAt(0)?"1.75em":"3.0em"),e.body){var i=zd(Cd(e.body,t));if(e.below){var a=zd(Cd(e.below,t));r=new md("munderover",[n,a,i])}else r=new md("mover",[n,i])}else if(e.below){var o=zd(Cd(e.below,t));r=new md("munder",[n,o])}else r=zd(),r=new md("mover",[n,r]);return r}}),_u({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(e,t){var{parser:r,funcName:n}=e,i=t[0];return{type:"mclass",mode:r.mode,mclass:"m"+n.slice(5),body:td(i),isCharacterBox:nc(i)}},htmlBuilder:Gd,mathmlBuilder:Zd});var Hd=e=>{var t="ordgroup"===e.type&&e.body.length?e.body[0]:e;return"atom"!==t.type||"bin"!==t.family&&"rel"!==t.family?"mord":"m"+t.family};_u({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(e,t){var{parser:r}=e;return{type:"mclass",mode:r.mode,mclass:Hd(t[0]),body:td(t[1]),isCharacterBox:nc(t[1])}}}),_u({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(e,t){var r,{parser:n,funcName:i}=e,a=t[1],o=t[0];r="\\stackrel"!==i?Hd(a):"mrel";var s={type:"op",mode:a.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:"\\stackrel"!==i,body:td(a)},l={type:"supsub",mode:o.mode,base:s,sup:"\\underset"===i?null:o,sub:"\\underset"===i?o:null};return{type:"mclass",mode:n.mode,mclass:r,body:[l],isCharacterBox:nc(l)}},htmlBuilder:Gd,mathmlBuilder:Zd}),_u({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"pmb",mode:r.mode,mclass:Hd(t[0]),body:td(t[0])}},htmlBuilder(e,t){var r=od(e.body,t,!0),n=Wu([e.mclass],r,t);return n.style.textShadow="0.02em 0.01em 0.04px",n},mathmlBuilder(e,t){var r=Ud(e.body,t),n=new md("mstyle",r);return n.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),n}});var Yd={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},Qd=()=>({type:"styling",body:[],mode:"math",style:"display"}),Jd=e=>"textord"===e.type&&"@"===e.text,_d=(e,t)=>("mathord"===e.type||"atom"===e.type)&&e.text===t;function $d(e,t,r){var n=Yd[e];switch(n){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return r.callFunction(n,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":var i={type:"atom",text:n,mode:"math",family:"rel"},a={type:"ordgroup",mode:"math",body:[r.callFunction("\\\\cdleft",[t[0]],[]),r.callFunction("\\Big",[i],[]),r.callFunction("\\\\cdright",[t[1]],[])]};return r.callFunction("\\\\cdparent",[a],[]);case"\\\\cdlongequal":return r.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":return r.callFunction("\\Big",[{type:"textord",text:"\\Vert",mode:"math"}],[]);default:return{type:"textord",text:" ",mode:"math"}}}_u({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:n}=e;return{type:"cdlabel",mode:r.mode,side:n.slice(4),label:t[0]}},htmlBuilder(e,t){var r=t.havingStyle(t.style.sup()),n=Pu(pd(e.label,r,t),t);return n.classes.push("cd-label-"+e.side),n.style.bottom=Uc(.8-n.depth),n.height=0,n.depth=0,n},mathmlBuilder(e,t){var r=new md("mrow",[Cd(e.label,t)]);return(r=new md("mpadded",[r])).setAttribute("width","0"),"left"===e.side&&r.setAttribute("lspace","-1width"),r.setAttribute("voffset","0.7em"),(r=new md("mstyle",[r])).setAttribute("displaystyle","false"),r.setAttribute("scriptlevel","1"),r}}),_u({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(e,t){var{parser:r}=e;return{type:"cdlabelparent",mode:r.mode,fragment:t[0]}},htmlBuilder(e,t){var r=Pu(pd(e.fragment,t),t);return r.classes.push("cd-vert-arrow"),r},mathmlBuilder:(e,t)=>new md("mrow",[Cd(e.fragment,t)])}),_u({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:r}=e,n=Id(t[0],"ordgroup").body,i="",a=0;a<n.length;a++)i+=Id(n[a],"textord").text;var o,s=parseInt(i);if(isNaN(s))throw new Yl("\\@char has non-numeric argument "+i);if(s<0||s>=1114111)throw new Yl("\\@char with invalid code point "+i);return s<=65535?o=String.fromCharCode(s):(s-=65536,o=String.fromCharCode(55296+(s>>10),56320+(1023&s))),{type:"textord",mode:r.mode,text:o}}});var ep=(e,t)=>{var r=od(e.body,t.withColor(e.color),!1);return Ou(r)},tp=(e,t)=>{var r=Ud(e.body,t.withColor(e.color)),n=new md("mstyle",r);return n.setAttribute("mathcolor",e.color),n};_u({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(e,t){var{parser:r}=e,n=Id(t[0],"color-token").color,i=t[1];return{type:"color",mode:r.mode,color:n,body:td(i)}},htmlBuilder:ep,mathmlBuilder:tp}),_u({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(e,t){var{parser:r,breakOnTokenText:n}=e,i=Id(t[0],"color-token").color;r.gullet.macros.set("\\current@color",i);var a=r.parseExpression(!0,n);return{type:"color",mode:r.mode,color:i,body:a}},htmlBuilder:ep,mathmlBuilder:tp}),_u({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,r){var{parser:n}=e,i="["===n.gullet.future().text?n.parseSizeGroup(!0):null,a=!n.settings.displayMode||!n.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:n.mode,newLine:a,size:i&&Id(i,"size").value}},htmlBuilder(e,t){var r=Wu(["mspace"],[],t);return e.newLine&&(r.classes.push("newline"),e.size&&(r.style.marginTop=Uc(wc(e.size,t)))),r},mathmlBuilder(e,t){var r=new md("mspace");return e.newLine&&(r.setAttribute("linebreak","newline"),e.size&&r.setAttribute("height",Uc(wc(e.size,t)))),r}});var rp={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},np=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new Yl("Expected a control sequence",e);return t},ip=(e,t,r,n)=>{var i=e.gullet.macros.get(r.text);null==i&&(r.noexpand=!0,i={tokens:[r],numArgs:0,unexpandable:!e.gullet.isExpandable(r.text)}),e.gullet.macros.set(t,i,n)};_u({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t,funcName:r}=e;t.consumeSpaces();var n=t.fetch();if(rp[n.text])return"\\global"!==r&&"\\\\globallong"!==r||(n.text=rp[n.text]),Id(t.parseFunction(),"internal");throw new Yl("Invalid token after macro prefix",n)}}),_u({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,n=t.gullet.popToken(),i=n.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(i))throw new Yl("Expected a control sequence",n);for(var a,o=0,s=[[]];"{"!==t.gullet.future().text;)if("#"===(n=t.gullet.popToken()).text){if("{"===t.gullet.future().text){a=t.gullet.future(),s[o].push("{");break}if(n=t.gullet.popToken(),!/^[1-9]$/.test(n.text))throw new Yl('Invalid argument number "'+n.text+'"');if(parseInt(n.text)!==o+1)throw new Yl('Argument number "'+n.text+'" out of order');o++,s.push([])}else{if("EOF"===n.text)throw new Yl("Expected a macro definition");s[o].push(n.text)}var{tokens:l}=t.gullet.consumeArg();return a&&l.unshift(a),"\\edef"!==r&&"\\xdef"!==r||(l=t.gullet.expandTokens(l)).reverse(),t.gullet.macros.set(i,{tokens:l,numArgs:o,delimiters:s},r===rp[r]),{type:"internal",mode:t.mode}}}),_u({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,n=np(t.gullet.popToken());t.gullet.consumeSpaces();var i=(e=>{var t=e.gullet.popToken();return"="===t.text&&" "===(t=e.gullet.popToken()).text&&(t=e.gullet.popToken()),t})(t);return ip(t,n,i,"\\\\globallet"===r),{type:"internal",mode:t.mode}}}),_u({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,n=np(t.gullet.popToken()),i=t.gullet.popToken(),a=t.gullet.popToken();return ip(t,n,a,"\\\\globalfuture"===r),t.gullet.pushToken(a),t.gullet.pushToken(i),{type:"internal",mode:t.mode}}});var ap=function(e,t,r){var n=Xc(Gc.math[e]&&Gc.math[e].replace||e,t,r);if(!n)throw new Error("Unsupported symbol "+e+" and font size "+t+".");return n},op=function(e,t,r,n){var i=r.havingBaseStyle(t),a=Wu(n.concat(i.sizingClasses(r)),[e],r),o=i.sizeMultiplier/r.sizeMultiplier;return a.height*=o,a.depth*=o,a.maxFontSize=i.sizeMultiplier,a},sp=function(e,t,r){var n=t.havingBaseStyle(r),i=(1-t.sizeMultiplier/n.sizeMultiplier)*t.fontMetrics().axisHeight;e.classes.push("delimcenter"),e.style.top=Uc(i),e.height-=i,e.depth+=i},lp=function(e,t,r,n,i,a){var o=function(e,t,r,n){return Cu(e,"Size"+t+"-Regular",r,n)}(e,t,i,n),s=op(Wu(["delimsizing","size"+t],[o],n),fc.TEXT,n,a);return r&&sp(s,n,fc.TEXT),s},cp=function(e,t,r){return{type:"elem",elem:Wu(["delimsizinginner","Size1-Regular"===t?"delim-size1":"delim-size4"],[Wu([],[Cu(e,t,r)])])}},up=function(e,t,r){var n=Lc["Size4-Regular"][e.charCodeAt(0)]?Lc["Size4-Regular"][e.charCodeAt(0)][4]:Lc["Size1-Regular"][e.charCodeAt(0)][4],i=new Pc("inner",function(e,t){switch(e){case"⎜":return"M291 0 H417 V"+t+" H291z M291 0 H417 V"+t+" H291z";case"∣":return"M145 0 H188 V"+t+" H145z M145 0 H188 V"+t+" H145z";case"∥":return"M145 0 H188 V"+t+" H145z M145 0 H188 V"+t+" H145zM367 0 H410 V"+t+" H367z M367 0 H410 V"+t+" H367z";case"⎟":return"M457 0 H583 V"+t+" H457z M457 0 H583 V"+t+" H457z";case"⎢":return"M319 0 H403 V"+t+" H319z M319 0 H403 V"+t+" H319z";case"⎥":return"M263 0 H347 V"+t+" H263z M263 0 H347 V"+t+" H263z";case"⎪":return"M384 0 H504 V"+t+" H384z M384 0 H504 V"+t+" H384z";case"⏐":return"M312 0 H355 V"+t+" H312z M312 0 H355 V"+t+" H312z";case"‖":return"M257 0 H300 V"+t+" H257z M257 0 H300 V"+t+" H257zM478 0 H521 V"+t+" H478z M478 0 H521 V"+t+" H478z";default:return""}}(e,Math.round(1e3*t))),a=new Oc([i],{width:Uc(n),height:Uc(t),style:"width:"+Uc(n),viewBox:"0 0 "+1e3*n+" "+Math.round(1e3*t),preserveAspectRatio:"xMinYMin"}),o=Nu([],[a],r);return o.height=t,o.style.height=Uc(t),o.style.width=Uc(n),{type:"elem",elem:o}},dp={type:"kern",size:-.008},pp=new Set(["|","\\lvert","\\rvert","\\vert"]),hp=new Set(["\\|","\\lVert","\\rVert","\\Vert"]),qp=function(e,t,r,n,i,a){var o,s,l,c,u="",d=0;o=l=c=e,s=null;var p="Size1-Regular";"\\uparrow"===e?l=c="⏐":"\\Uparrow"===e?l=c="‖":"\\downarrow"===e?o=l="⏐":"\\Downarrow"===e?o=l="‖":"\\updownarrow"===e?(o="\\uparrow",l="⏐",c="\\downarrow"):"\\Updownarrow"===e?(o="\\Uparrow",l="‖",c="\\Downarrow"):pp.has(e)?(l="∣",u="vert",d=333):hp.has(e)?(l="∥",u="doublevert",d=556):"["===e||"\\lbrack"===e?(o="⎡",l="⎢",c="⎣",p="Size4-Regular",u="lbrack",d=667):"]"===e||"\\rbrack"===e?(o="⎤",l="⎥",c="⎦",p="Size4-Regular",u="rbrack",d=667):"\\lfloor"===e||"⌊"===e?(l=o="⎢",c="⎣",p="Size4-Regular",u="lfloor",d=667):"\\lceil"===e||"⌈"===e?(o="⎡",l=c="⎢",p="Size4-Regular",u="lceil",d=667):"\\rfloor"===e||"⌋"===e?(l=o="⎥",c="⎦",p="Size4-Regular",u="rfloor",d=667):"\\rceil"===e||"⌉"===e?(o="⎤",l=c="⎥",p="Size4-Regular",u="rceil",d=667):"("===e||"\\lparen"===e?(o="⎛",l="⎜",c="⎝",p="Size4-Regular",u="lparen",d=875):")"===e||"\\rparen"===e?(o="⎞",l="⎟",c="⎠",p="Size4-Regular",u="rparen",d=875):"\\{"===e||"\\lbrace"===e?(o="⎧",s="⎨",c="⎩",l="⎪",p="Size4-Regular"):"\\}"===e||"\\rbrace"===e?(o="⎫",s="⎬",c="⎭",l="⎪",p="Size4-Regular"):"\\lgroup"===e||"⟮"===e?(o="⎧",c="⎩",l="⎪",p="Size4-Regular"):"\\rgroup"===e||"⟯"===e?(o="⎫",c="⎭",l="⎪",p="Size4-Regular"):"\\lmoustache"===e||"⎰"===e?(o="⎧",c="⎭",l="⎪",p="Size4-Regular"):"\\rmoustache"!==e&&"⎱"!==e||(o="⎫",c="⎩",l="⎪",p="Size4-Regular");var h=ap(o,p,i),q=h.height+h.depth,f=ap(l,p,i),m=f.height+f.depth,V=ap(c,p,i),g=V.height+V.depth,v=0,b=1;if(null!==s){var y=ap(s,p,i);v=y.height+y.depth,b=2}var S=q+g+v,A=S+Math.max(0,Math.ceil((t-S)/(b*m)))*b*m,w=n.fontMetrics().axisHeight;r&&(w*=n.sizeMultiplier);var U=A/2-w,x=[];if(u.length>0){var C=A-q-g,R=Math.round(1e3*A),E=function(e,t){switch(e){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+t+" v1759 h347 v-84\nH403z M403 1759 V0 H319 V1759 v"+t+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+t+" v1759 H0 v84 H347z\nM347 1759 V0 H263 V1759 v"+t+" v1759 h84z";case"vert":return"M145 15 v585 v"+t+" v585 c2.667,10,9.667,15,21,15\nc10,0,16.667,-5,20,-15 v-585 v"+-t+" v-585 c-2.667,-10,-9.667,-15,-21,-15\nc-10,0,-16.667,5,-20,15z M188 15 H145 v585 v"+t+" v585 h43z";case"doublevert":return"M145 15 v585 v"+t+" v585 c2.667,10,9.667,15,21,15\nc10,0,16.667,-5,20,-15 v-585 v"+-t+" v-585 c-2.667,-10,-9.667,-15,-21,-15\nc-10,0,-16.667,5,-20,15z M188 15 H145 v585 v"+t+" v585 h43z\nM367 15 v585 v"+t+" v585 c2.667,10,9.667,15,21,15\nc10,0,16.667,-5,20,-15 v-585 v"+-t+" v-585 c-2.667,-10,-9.667,-15,-21,-15\nc-10,0,-16.667,5,-20,15z M410 15 H367 v585 v"+t+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+t+" v1715 h263 v84 H319z\nMM319 602 V0 H403 V602 v"+t+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+t+" v1799 H0 v-84 H319z\nMM319 602 V0 H403 V602 v"+t+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+t+" v602 h84z\nM403 1759 V0 H319 V1759 v"+t+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+t+" v602 h84z\nM347 1759 V0 h-84 V1759 v"+t+" v602 h84z";case"lparen":return"M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1\nc-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349,\n-36,557 l0,"+(t+84)+"c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,\n949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9\nc0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5,\n-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189\nl0,-"+(t+92)+"c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,\n-210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z";case"rparen":return"M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3,\n63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5\nc11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,"+(t+9)+"\nc-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664\nc-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11\nc0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17\nc242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558\nl0,-"+(t+144)+"c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,\n-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z";default:throw new Error("Unknown stretchy delimiter.")}}(u,Math.round(1e3*C)),T=new Pc(u,E),k=(d/1e3).toFixed(3)+"em",F=(R/1e3).toFixed(3)+"em",W=new Oc([T],{width:k,height:F,viewBox:"0 0 "+d+" "+R}),N=Nu([],[W],n);N.height=R/1e3,N.style.width=k,N.style.height=F,x.push({type:"elem",elem:N})}else{if(x.push(cp(c,p,i)),x.push(dp),null===s){var K=A-q-g+.016;x.push(up(l,K,n))}else{var O=(A-q-g-v)/2+.016;x.push(up(l,O,n)),x.push(dp),x.push(cp(s,p,i)),x.push(dp),x.push(up(l,O,n))}x.push(dp),x.push(cp(o,p,i))}var P=n.havingBaseStyle(fc.TEXT),I=Iu({positionType:"bottom",positionData:U,children:x});return op(Wu(["delimsizing","mult"],[I],P),fc.TEXT,n,a)},fp=.08,mp=function(e,t,r,n,i){var a=function(e,t,r){t*=1e3;var n="";switch(e){case"sqrtMain":n=function(e){return"M95,"+(622+e+80)+"\nc-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14\nc0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54\nc44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10\ns173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429\nc69,-144,104.5,-217.7,106.5,-221\nl"+e/2.075+" -"+e+"\nc5.3,-9.3,12,-14,20,-14\nH400000v"+(40+e)+"H845.2724\ns-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7\nc-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z\nM"+(834+e)+" 80h400000v"+(40+e)+"h-400000z"}(t);break;case"sqrtSize1":n=function(e){return"M263,"+(601+e+80)+"c0.7,0,18,39.7,52,119\nc34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120\nc340,-704.7,510.7,-1060.3,512,-1067\nl"+e/2.084+" -"+e+"\nc4.7,-7.3,11,-11,19,-11\nH40000v"+(40+e)+"H1012.3\ns-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232\nc-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1\ns-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26\nc-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z\nM"+(1001+e)+" 80h400000v"+(40+e)+"h-400000z"}(t);break;case"sqrtSize2":n=function(e){return"M983 "+(10+e+80)+"\nl"+e/3.13+" -"+e+"\nc4,-6.7,10,-10,18,-10 H400000v"+(40+e)+"\nH1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7\ns-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744\nc-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30\nc26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722\nc56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5\nc53.7,-170.3,84.5,-266.8,92.5,-289.5z\nM"+(1001+e)+" 80h400000v"+(40+e)+"h-400000z"}(t);break;case"sqrtSize3":n=function(e){return"M424,"+(2398+e+80)+"\nc-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514\nc0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20\ns-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121\ns209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081\nl"+e/4.223+" -"+e+"c4,-6.7,10,-10,18,-10 H400000\nv"+(40+e)+"H1014.6\ns-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185\nc-2,6,-10,9,-24,9\nc-8,0,-12,-0.7,-12,-2z M"+(1001+e)+" 80\nh400000v"+(40+e)+"h-400000z"}(t);break;case"sqrtSize4":n=function(e){return"M473,"+(2713+e+80)+"\nc339.3,-1799.3,509.3,-2700,510,-2702 l"+e/5.298+" -"+e+"\nc3.3,-7.3,9.3,-11,18,-11 H400000v"+(40+e)+"H1017.7\ns-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9\nc-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200\nc0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26\ns76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,\n606zM"+(1001+e)+" 80h400000v"+(40+e)+"H1017.7z"}(t);break;case"sqrtTall":n=function(e,t,r){return"M702 "+(e+80)+"H400000"+(40+e)+"\nH742v"+(r-54-80-e)+"l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1\nh-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170\nc-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667\n219 661 l218 661zM702 80H400000v"+(40+e)+"H742z"}(t,0,r)}return n}(e,n,r),o=new Pc(e,a),s=new Oc([o],{width:"400em",height:Uc(t),viewBox:"0 0 400000 "+r,preserveAspectRatio:"xMinYMin slice"});return Nu(["hide-tail"],[s],i)},Vp=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"]),gp=new Set(["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"]),vp=new Set(["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"]),bp=[0,1.2,1.8,2.4,3],yp=function(e,t,r,n,i){if("<"===e||"\\lt"===e||"⟨"===e?e="\\langle":">"!==e&&"\\gt"!==e&&"⟩"!==e||(e="\\rangle"),Vp.has(e)||vp.has(e))return lp(e,t,!1,r,n,i);if(gp.has(e))return qp(e,bp[t],!1,r,n,i);throw new Yl("Illegal delimiter: '"+e+"'")},Sp=[{type:"small",style:fc.SCRIPTSCRIPT},{type:"small",style:fc.SCRIPT},{type:"small",style:fc.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],Ap=[{type:"small",style:fc.SCRIPTSCRIPT},{type:"small",style:fc.SCRIPT},{type:"small",style:fc.TEXT},{type:"stack"}],wp=[{type:"small",style:fc.SCRIPTSCRIPT},{type:"small",style:fc.SCRIPT},{type:"small",style:fc.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],Up=function(e){if("small"===e.type)return"Main-Regular";if("large"===e.type)return"Size"+e.size+"-Regular";if("stack"===e.type)return"Size4-Regular";var t=e.type;throw new Error("Add support for delim type '"+t+"' here.")},xp=function(e,t,r,n){for(var i=Math.min(2,3-n.style.size);i<r.length;i++){var a=r[i];if("stack"===a.type)break;var o=ap(e,Up(a),"math"),s=o.height+o.depth;if("small"===a.type&&(s*=n.havingBaseStyle(a.style).sizeMultiplier),s>t)return a}return r[r.length-1]},Cp=function(e,t,r,n,i,a){var o;"<"===e||"\\lt"===e||"⟨"===e?e="\\langle":">"!==e&&"\\gt"!==e&&"⟩"!==e||(e="\\rangle"),o=vp.has(e)?Sp:Vp.has(e)?wp:Ap;var s=xp(e,t,o,n);return"small"===s.type?function(e,t,r,n,i,a){var o=Cu(e,"Main-Regular",i,n),s=op(o,t,n,a);return sp(s,n,t),s}(e,s.style,0,n,i,a):"large"===s.type?lp(e,s.size,r,n,i,a):qp(e,t,r,n,i,a)},Rp=function(e,t,r,n,i,a){var o=n.fontMetrics().axisHeight*n.sizeMultiplier,s=5/n.fontMetrics().ptPerEm,l=Math.max(t-o,r+o),c=Math.max(l/500*901,2*l-s);return Cp(e,c,!0,n,i,a)},Ep={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},Tp=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."]);function kp(e,t){var r=Bd(e);if(r&&Tp.has(r.text))return r;throw new Yl(r?"Invalid delimiter '"+r.text+"' after '"+t.funcName+"'":"Invalid delimiter type '"+e.type+"'",e)}function Fp(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}_u({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(e,t)=>{var r=kp(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:Ep[e.funcName].size,mclass:Ep[e.funcName].mclass,delim:r.text}},htmlBuilder:(e,t)=>"."===e.delim?Wu([e.mclass]):yp(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];"."!==e.delim&&t.push(yd(e.delim,e.mode));var r=new md("mo",t);"mopen"===e.mclass||"mclose"===e.mclass?r.setAttribute("fence","true"):r.setAttribute("fence","false"),r.setAttribute("stretchy","true");var n=Uc(bp[e.size]);return r.setAttribute("minsize",n),r.setAttribute("maxsize",n),r}}),_u({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=e.parser.gullet.macros.get("\\current@color");if(r&&"string"!=typeof r)throw new Yl("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:kp(t[0],e).text,color:r}}}),_u({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=kp(t[0],e),n=e.parser;++n.leftrightDepth;var i=n.parseExpression(!1);--n.leftrightDepth,n.expect("\\right",!1);var a=Id(n.parseFunction(),"leftright-right");return{type:"leftright",mode:n.mode,body:i,left:r.text,right:a.delim,rightColor:a.color}},htmlBuilder:(e,t)=>{Fp(e);for(var r,n,i=od(e.body,t,!0,["mopen","mclose"]),a=0,o=0,s=!1,l=0;l<i.length;l++)i[l].isMiddle?s=!0:(a=Math.max(i[l].height,a),o=Math.max(i[l].depth,o));if(a*=t.sizeMultiplier,o*=t.sizeMultiplier,r="."===e.left?dd(t,["mopen"]):Rp(e.left,a,o,t,e.mode,["mopen"]),i.unshift(r),s)for(var c=1;c<i.length;c++){var u=i[c].isMiddle;u&&(i[c]=Rp(u.delim,a,o,u.options,e.mode,[]))}if("."===e.right)n=dd(t,["mclose"]);else{var d=e.rightColor?t.withColor(e.rightColor):t;n=Rp(e.right,a,o,d,e.mode,["mclose"])}return i.push(n),Wu(["minner"],i,t)},mathmlBuilder:(e,t)=>{Fp(e);var r=Ud(e.body,t);if("."!==e.left){var n=new md("mo",[yd(e.left,e.mode)]);n.setAttribute("fence","true"),r.unshift(n)}if("."!==e.right){var i=new md("mo",[yd(e.right,e.mode)]);i.setAttribute("fence","true"),e.rightColor&&i.setAttribute("mathcolor",e.rightColor),r.push(i)}return Sd(r)}}),_u({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=kp(t[0],e);if(!e.parser.leftrightDepth)throw new Yl("\\middle without preceding \\left",r);return{type:"middle",mode:e.parser.mode,delim:r.text}},htmlBuilder:(e,t)=>{var r;if("."===e.delim)r=dd(t,[]);else{r=yp(e.delim,1,t,e.mode,[]);var n={delim:e.delim,options:t};r.isMiddle=n}return r},mathmlBuilder:(e,t)=>{var r="\\vert"===e.delim||"|"===e.delim?yd("|","text"):yd(e.delim,e.mode),n=new md("mo",[r]);return n.setAttribute("fence","true"),n.setAttribute("lspace","0.05em"),n.setAttribute("rspace","0.05em"),n}});var Wp=(e,t)=>{var r,n,i,a=Pu(pd(e.body,t),t),o=e.label.slice(1),s=t.sizeMultiplier,l=0,c=nc(e.body);if("sout"===o)(r=Wu(["stretchy","sout"])).height=t.fontMetrics().defaultRuleThickness/s,l=-.5*t.fontMetrics().xHeight;else if("phase"===o){var u=wc({number:.6,unit:"pt"},t),d=wc({number:.35,unit:"ex"},t);s/=t.havingBaseSizing().sizeMultiplier;var p=a.height+a.depth+u+d;a.style.paddingLeft=Uc(p/2+u);var h=Math.floor(1e3*p*s),q="M400000 "+(n=h)+" H0 L"+n/2+" 0 l65 45 L145 "+(n-80)+" H400000z",f=new Oc([new Pc("phase",q)],{width:"400em",height:Uc(h/1e3),viewBox:"0 0 400000 "+h,preserveAspectRatio:"xMinYMin slice"});(r=Nu(["hide-tail"],[f],t)).style.height=Uc(p),l=a.depth+u+d}else{/cancel/.test(o)?c||a.classes.push("cancel-pad"):"angl"===o?a.classes.push("anglpad"):a.classes.push("boxpad");var m=0,V=0,g=0;/box/.test(o)?(g=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),V=m=t.fontMetrics().fboxsep+("colorbox"===o?0:g)):"angl"===o?(m=4*(g=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness)),V=Math.max(0,.25-a.depth)):V=m=c?.2:0,r=function(e,t,r,n,i){var a,o=e.height+e.depth+r+n;if(/fbox|color|angl/.test(t)){if(a=Wu(["stretchy",t],[],i),"fbox"===t){var s=i.color&&i.getColor();s&&(a.style.borderColor=s)}}else{var l=[];/^[bx]cancel$/.test(t)&&l.push(new Ic({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(t)&&l.push(new Ic({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var c=new Oc(l,{width:"100%",height:Uc(o)});a=Nu([],[c],i)}return a.height=o,a.style.height=Uc(o),a}(a,o,m,V,t),/fbox|boxed|fcolorbox/.test(o)?(r.style.borderStyle="solid",r.style.borderWidth=Uc(g)):"angl"===o&&.049!==g&&(r.style.borderTopWidth=Uc(g),r.style.borderRightWidth=Uc(g)),l=a.depth+V,e.backgroundColor&&(r.style.backgroundColor=e.backgroundColor,e.borderColor&&(r.style.borderColor=e.borderColor))}if(e.backgroundColor)i=Iu({positionType:"individualShift",children:[{type:"elem",elem:r,shift:l},{type:"elem",elem:a,shift:0}]});else{var v=/cancel|phase/.test(o)?["svg-align"]:[];i=Iu({positionType:"individualShift",children:[{type:"elem",elem:a,shift:0},{type:"elem",elem:r,shift:l,wrapperClasses:v}]})}return/cancel/.test(o)&&(i.height=a.height,i.depth=a.depth),/cancel/.test(o)&&!c?Wu(["mord","cancel-lap"],[i],t):Wu(["mord"],[i],t)},Np=(e,t)=>{var r=0,n=new md(e.label.includes("colorbox")?"mpadded":"menclose",[Cd(e.body,t)]);switch(e.label){case"\\cancel":n.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":n.setAttribute("notation","downdiagonalstrike");break;case"\\phase":n.setAttribute("notation","phasorangle");break;case"\\sout":n.setAttribute("notation","horizontalstrike");break;case"\\fbox":n.setAttribute("notation","box");break;case"\\angl":n.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(r=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,n.setAttribute("width","+"+2*r+"pt"),n.setAttribute("height","+"+2*r+"pt"),n.setAttribute("lspace",r+"pt"),n.setAttribute("voffset",r+"pt"),"\\fcolorbox"===e.label){var i=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);n.setAttribute("style","border: "+i+"em solid "+String(e.borderColor))}break;case"\\xcancel":n.setAttribute("notation","updiagonalstrike downdiagonalstrike")}return e.backgroundColor&&n.setAttribute("mathbackground",e.backgroundColor),n};_u({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(e,t,r){var{parser:n,funcName:i}=e,a=Id(t[0],"color-token").color,o=t[1];return{type:"enclose",mode:n.mode,label:i,backgroundColor:a,body:o}},htmlBuilder:Wp,mathmlBuilder:Np}),_u({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(e,t,r){var{parser:n,funcName:i}=e,a=Id(t[0],"color-token").color,o=Id(t[1],"color-token").color,s=t[2];return{type:"enclose",mode:n.mode,label:i,backgroundColor:o,borderColor:a,body:s}},htmlBuilder:Wp,mathmlBuilder:Np}),_u({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"enclose",mode:r.mode,label:"\\fbox",body:t[0]}}}),_u({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:n}=e,i=t[0];return{type:"enclose",mode:r.mode,label:n,body:i}},htmlBuilder:Wp,mathmlBuilder:Np}),_u({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(e,t){var{parser:r}=e;return{type:"enclose",mode:r.mode,label:"\\angl",body:t[0]}}});var Kp={};function Op(e){for(var{type:t,names:r,props:n,handler:i,htmlBuilder:a,mathmlBuilder:o}=e,s={type:t,numArgs:n.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:i},l=0;l<r.length;++l)Kp[r[l]]=s;a&&(Qu[t]=a),o&&(Ju[t]=o)}var Pp={};function Ip(e,t){Pp[e]=t}class Lp{constructor(e,t,r){this.lexer=e,this.start=t,this.end=r}static range(e,t){return t?e&&e.loc&&t.loc&&e.loc.lexer===t.loc.lexer?new Lp(e.loc.lexer,e.loc.start,t.loc.end):null:e&&e.loc}}class Bp{constructor(e,t){this.text=e,this.loc=t}range(e,t){return new Bp(t,Lp.range(this,e))}}function Dp(e){var t=[];e.consumeSpaces();var r=e.fetch().text;for("\\relax"===r&&(e.consume(),e.consumeSpaces(),r=e.fetch().text);"\\hline"===r||"\\hdashline"===r;)e.consume(),t.push("\\hdashline"===r),e.consumeSpaces(),r=e.fetch().text;return t}var Xp=e=>{if(!e.parser.settings.displayMode)throw new Yl("{"+e.envName+"} can be used only in display mode.")},jp=new Set(["gather","gather*"]);function Mp(e){if(!e.includes("ed"))return!e.includes("*")}function zp(e,t,r){var{hskipBeforeAndAfter:n,addJot:i,cols:a,arraystretch:o,colSeparationType:s,autoTag:l,singleRow:c,emptySingleRow:u,maxNumCols:d,leqno:p}=t;if(e.gullet.beginGroup(),c||e.gullet.macros.set("\\cr","\\\\\\relax"),!o){var h=e.gullet.expandMacroAsText("\\arraystretch");if(null==h)o=1;else if(!(o=parseFloat(h))||o<0)throw new Yl("Invalid \\arraystretch: "+h)}e.gullet.beginGroup();var q=[],f=[q],m=[],V=[],g=null!=l?[]:void 0;function v(){l&&e.gullet.macros.set("\\@eqnsw","1",!0)}function b(){g&&(e.gullet.macros.get("\\df@tag")?(g.push(e.subparse([new Bp("\\df@tag")])),e.gullet.macros.set("\\df@tag",void 0,!0)):g.push(Boolean(l)&&"1"===e.gullet.macros.get("\\@eqnsw")))}for(v(),V.push(Dp(e));;){var y=e.parseExpression(!1,c?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup();var S={type:"ordgroup",mode:e.mode,body:y};r&&(S={type:"styling",mode:e.mode,style:r,body:[S]}),q.push(S);var A=e.fetch().text;if("&"===A){if(d&&q.length===d){if(c||s)throw new Yl("Too many tab characters: &",e.nextToken);e.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}e.consume()}else{if("\\end"===A){b(),1===q.length&&"styling"===S.type&&1===S.body.length&&"ordgroup"===S.body[0].type&&0===S.body[0].body.length&&(f.length>1||!u)&&f.pop(),V.length<f.length+1&&V.push([]);break}if("\\\\"!==A)throw new Yl("Expected & or \\\\ or \\cr or \\end",e.nextToken);e.consume();var w=void 0;" "!==e.gullet.future().text&&(w=e.parseSizeGroup(!0)),m.push(w?w.value:null),b(),V.push(Dp(e)),q=[],f.push(q),v()}}return e.gullet.endGroup(),e.gullet.endGroup(),{type:"array",mode:e.mode,addJot:i,arraystretch:o,body:f,cols:a,rowGaps:m,hskipBeforeAndAfter:n,hLinesBeforeRow:V,colSeparationType:s,tags:g,leqno:p}}function Gp(e){return"d"===e.slice(0,1)?"display":"text"}var Zp=function(e,t){var r,n,i=e.body.length,a=e.hLinesBeforeRow,o=0,s=new Array(i),l=[],c=Math.max(t.fontMetrics().arrayRuleWidth,t.minRuleThickness),u=1/t.fontMetrics().ptPerEm,d=5*u;e.colSeparationType&&"small"===e.colSeparationType&&(d=t.havingStyle(fc.SCRIPT).sizeMultiplier/t.sizeMultiplier*.2778);var p="CD"===e.colSeparationType?wc({number:3,unit:"ex"},t):12*u,h=3*u,q=e.arraystretch*p,f=.7*q,m=.3*q,V=0;function g(e){for(var t=0;t<e.length;++t)t>0&&(V+=.25),l.push({pos:V,isDashed:e[t]})}for(g(a[0]),r=0;r<e.body.length;++r){var v=e.body[r],b=f,y=m;o<v.length&&(o=v.length);var S=new Array(v.length);for(n=0;n<v.length;++n){var A=pd(v[n],t);y<A.depth&&(y=A.depth),b<A.height&&(b=A.height),S[n]=A}var w=e.rowGaps[r],U=0;w&&(U=wc(w,t))>0&&(y<(U+=m)&&(y=U),U=0),e.addJot&&(y+=h),S.height=b,S.depth=y,V+=b,S.pos=V,V+=y+U,s[r]=S,g(a[r+1])}var x,C,R=V/2+t.fontMetrics().axisHeight,E=e.cols||[],T=[],k=[];if(e.tags&&e.tags.some(e=>e))for(r=0;r<i;++r){var F=s[r],W=F.pos-R,N=e.tags[r],K=void 0;(K=!0===N?Wu(["eqn-num"],[],t):Wu([],!1===N?[]:od(N,t,!0),t)).depth=F.depth,K.height=F.height,k.push({type:"elem",elem:K,shift:W})}for(n=0,C=0;n<o||C<E.length;++n,++C){for(var O,P=E[C],I=!0;"separator"===(null==(L=P)?void 0:L.type);){var L;if(I||((x=Wu(["arraycolsep"],[])).style.width=Uc(t.fontMetrics().doubleRuleSep),T.push(x)),"|"!==P.separator&&":"!==P.separator)throw new Yl("Invalid separator type: "+P.separator);var B="|"===P.separator?"solid":"dashed",D=Wu(["vertical-separator"],[],t);D.style.height=Uc(V),D.style.borderRightWidth=Uc(c),D.style.borderRightStyle=B,D.style.margin="0 "+Uc(-c/2);var X=V-R;X&&(D.style.verticalAlign=Uc(-X)),T.push(D),P=E[++C],I=!1}if(!(n>=o)){var j,M,z=void 0;(n>0||e.hskipBeforeAndAfter)&&0!==(z=null!=(j=null==(M=P)?void 0:M.pregap)?j:d)&&((x=Wu(["arraycolsep"],[])).style.width=Uc(z),T.push(x));var G=[];for(r=0;r<i;++r){var Z=s[r],H=Z[n];if(H){var Y=Z.pos-R;H.depth=Z.depth,H.height=Z.height,G.push({type:"elem",elem:H,shift:Y})}}var Q,J,_=Iu({positionType:"individualShift",children:G}),$=Wu(["col-align-"+((null==(O=P)?void 0:O.align)||"c")],[_]);T.push($),(n<o-1||e.hskipBeforeAndAfter)&&0!==(z=null!=(Q=null==(J=P)?void 0:J.postgap)?Q:d)&&((x=Wu(["arraycolsep"],[])).style.width=Uc(z),T.push(x))}}var ee=Wu(["mtable"],T);if(l.length>0){for(var te=Ku("hline",t,c),re=Ku("hdashline",t,c),ne=[{type:"elem",elem:ee,shift:0}];l.length>0;){var ie=l.pop(),ae=ie.pos-R;ie.isDashed?ne.push({type:"elem",elem:re,shift:ae}):ne.push({type:"elem",elem:te,shift:ae})}ee=Iu({positionType:"individualShift",children:ne})}if(0===k.length)return Wu(["mord"],[ee],t);var oe=Iu({positionType:"individualShift",children:k}),se=Wu(["tag"],[oe],t);return Ou([ee,se])},Hp={c:"center ",l:"left ",r:"right "},Yp=function(e,t){for(var r=[],n=new md("mtd",[],["mtr-glue"]),i=new md("mtd",[],["mml-eqn-num"]),a=0;a<e.body.length;a++){for(var o=e.body[a],s=[],l=0;l<o.length;l++)s.push(new md("mtd",[Cd(o[l],t)]));e.tags&&e.tags[a]&&(s.unshift(n),s.push(n),e.leqno?s.unshift(i):s.push(i)),r.push(new md("mtr",s))}var c=new md("mtable",r),u=.5===e.arraystretch?.1:.16+e.arraystretch-1+(e.addJot?.09:0);c.setAttribute("rowspacing",Uc(u));var d="",p="";if(e.cols&&e.cols.length>0){var h=e.cols,q="",f=!1,m=0,V=h.length;"separator"===h[0].type&&(d+="top ",m=1),"separator"===h[h.length-1].type&&(d+="bottom ",V-=1);for(var g=m;g<V;g++){var v=h[g];"align"===v.type?(p+=Hp[v.align],f&&(q+="none "),f=!0):"separator"===v.type&&f&&(q+="|"===v.separator?"solid ":"dashed ",f=!1)}c.setAttribute("columnalign",p.trim()),/[sd]/.test(q)&&c.setAttribute("columnlines",q.trim())}if("align"===e.colSeparationType){for(var b=e.cols||[],y="",S=1;S<b.length;S++)y+=S%2?"0em ":"1em ";c.setAttribute("columnspacing",y.trim())}else"alignat"===e.colSeparationType||"gather"===e.colSeparationType?c.setAttribute("columnspacing","0em"):"small"===e.colSeparationType?c.setAttribute("columnspacing","0.2778em"):"CD"===e.colSeparationType?c.setAttribute("columnspacing","0.5em"):c.setAttribute("columnspacing","1em");var A="",w=e.hLinesBeforeRow;d+=w[0].length>0?"left ":"",d+=w[w.length-1].length>0?"right ":"";for(var U=1;U<w.length-1;U++)A+=0===w[U].length?"none ":w[U][0]?"dashed ":"solid ";return/[sd]/.test(A)&&c.setAttribute("rowlines",A.trim()),""!==d&&(c=new md("menclose",[c])).setAttribute("notation",d.trim()),e.arraystretch&&e.arraystretch<1&&(c=new md("mstyle",[c])).setAttribute("scriptlevel","1"),c},Qp=function(e,t){e.envName.includes("ed")||Xp(e);var r=[],n=e.envName.includes("at")?"alignat":"align",i="split"===e.envName,a=zp(e.parser,{cols:r,addJot:!0,autoTag:i?void 0:Mp(e.envName),emptySingleRow:!0,colSeparationType:n,maxNumCols:i?2:void 0,leqno:e.parser.settings.leqno},"display"),o=0,s=0,l={type:"ordgroup",mode:e.mode,body:[]};if(t[0]&&"ordgroup"===t[0].type){for(var c="",u=0;u<t[0].body.length;u++)c+=Id(t[0].body[u],"textord").text;o=Number(c),s=2*o}var d=!s;a.body.forEach(function(e){for(var t=1;t<e.length;t+=2){var r=Id(e[t],"styling");Id(r.body[0],"ordgroup").body.unshift(l)}if(d)s<e.length&&(s=e.length);else{var n=e.length/2;if(o<n)throw new Yl("Too many math in a row: expected "+o+", but got "+n,e[0])}});for(var p=0;p<s;++p){var h="r",q=0;p%2==1?h="l":p>0&&d&&(q=1),r[p]={type:"align",align:h,pregap:q,postgap:0}}return a.colSeparationType=d?"align":"alignat",a};Op({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,t){var r=(Bd(t[0])?[t[0]]:Id(t[0],"ordgroup").body).map(function(e){var t=Ld(e).text;if("lcr".includes(t))return{type:"align",align:t};if("|"===t)return{type:"separator",separator:"|"};if(":"===t)return{type:"separator",separator:":"};throw new Yl("Unknown column alignment: "+t,e)}),n={cols:r,hskipBeforeAndAfter:!0,maxNumCols:r.length};return zp(e.parser,n,Gp(e.envName))},htmlBuilder:Zp,mathmlBuilder:Yp}),Op({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(e){var t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName.replace("*","")],r="c",n={hskipBeforeAndAfter:!1,cols:[{type:"align",align:r}]};if("*"===e.envName.charAt(e.envName.length-1)){var i=e.parser;if(i.consumeSpaces(),"["===i.fetch().text){if(i.consume(),i.consumeSpaces(),r=i.fetch().text,!"lcr".includes(r))throw new Yl("Expected l or c or r",i.nextToken);i.consume(),i.consumeSpaces(),i.expect("]"),i.consume(),n.cols=[{type:"align",align:r}]}}var a=zp(e.parser,n,Gp(e.envName)),o=Math.max(0,...a.body.map(e=>e.length));return a.cols=new Array(o).fill({type:"align",align:r}),t?{type:"leftright",mode:e.mode,body:[a],left:t[0],right:t[1],rightColor:void 0}:a},htmlBuilder:Zp,mathmlBuilder:Yp}),Op({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){var t=zp(e.parser,{arraystretch:.5},"script");return t.colSeparationType="small",t},htmlBuilder:Zp,mathmlBuilder:Yp}),Op({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){var r=(Bd(t[0])?[t[0]]:Id(t[0],"ordgroup").body).map(function(e){var t=Ld(e).text;if("lc".includes(t))return{type:"align",align:t};throw new Yl("Unknown column alignment: "+t,e)});if(r.length>1)throw new Yl("{subarray} can contain only one column");var n={cols:r,hskipBeforeAndAfter:!1,arraystretch:.5},i=zp(e.parser,n,"script");if(i.body.length>0&&i.body[0].length>1)throw new Yl("{subarray} can contain only one column");return i},htmlBuilder:Zp,mathmlBuilder:Yp}),Op({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(e){var t=zp(e.parser,{arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},Gp(e.envName));return{type:"leftright",mode:e.mode,body:[t],left:e.envName.includes("r")?".":"\\{",right:e.envName.includes("r")?"\\}":".",rightColor:void 0}},htmlBuilder:Zp,mathmlBuilder:Yp}),Op({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:Qp,htmlBuilder:Zp,mathmlBuilder:Yp}),Op({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){jp.has(e.envName)&&Xp(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:Mp(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return zp(e.parser,t,"display")},htmlBuilder:Zp,mathmlBuilder:Yp}),Op({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:Qp,htmlBuilder:Zp,mathmlBuilder:Yp}),Op({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){Xp(e);var t={autoTag:Mp(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return zp(e.parser,t,"display")},htmlBuilder:Zp,mathmlBuilder:Yp}),Op({type:"array",names:["CD"],props:{numArgs:0},handler:e=>(Xp(e),function(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set("\\cr","\\\\\\relax"),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,"\\\\")),e.gullet.endGroup(),e.gullet.beginGroup();var r=e.fetch().text;if("&"!==r&&"\\\\"!==r){if("\\end"===r){0===t[t.length-1].length&&t.pop();break}throw new Yl("Expected \\\\ or \\cr or \\end",e.nextToken)}e.consume()}for(var n=[],i=[n],a=0;a<t.length;a++){for(var o=t[a],s=Qd(),l=0;l<o.length;l++)if(Jd(o[l])){n.push(s);var c=Ld(o[l+=1]).text,u=new Array(2);if(u[0]={type:"ordgroup",mode:"math",body:[]},u[1]={type:"ordgroup",mode:"math",body:[]},"=|.".includes(c));else{if(!"<>AV".includes(c))throw new Yl('Expected one of "<>AV=|." after @',o[l]);for(var d=0;d<2;d++){for(var p=!0,h=l+1;h<o.length;h++){if(_d(o[h],c)){p=!1,l=h;break}if(Jd(o[h]))throw new Yl("Missing a "+c+" character to complete a CD arrow.",o[h]);u[d].body.push(o[h])}if(p)throw new Yl("Missing a "+c+" character to complete a CD arrow.",o[l])}}var q={type:"styling",body:[$d(c,u,e)],mode:"math",style:"display"};n.push(q),s=Qd()}else s.body.push(o[l]);a%2==0?n.push(s):n.shift(),n=[],i.push(n)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:"array",mode:"math",body:i,arraystretch:1,addJot:!0,rowGaps:[null],cols:new Array(i[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25}),colSeparationType:"CD",hLinesBeforeRow:new Array(i.length+1).fill([])}}(e.parser)),htmlBuilder:Zp,mathmlBuilder:Yp}),Ip("\\nonumber","\\gdef\\@eqnsw{0}"),Ip("\\notag","\\nonumber"),_u({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new Yl(e.funcName+" valid only within array environment")}});var Jp=Kp;_u({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(e,t){var{parser:r,funcName:n}=e,i=t[0];if("ordgroup"!==i.type)throw new Yl("Invalid environment name",i);for(var a="",o=0;o<i.body.length;++o)a+=Id(i.body[o],"textord").text;if("\\begin"===n){if(!Jp.hasOwnProperty(a))throw new Yl("No such environment: "+a,i);var s=Jp[a],{args:l,optArgs:c}=r.parseArguments("\\begin{"+a+"}",s),u={mode:r.mode,envName:a,parser:r},d=s.handler(u,l,c);r.expect("\\end",!1);var p=r.nextToken,h=Id(r.parseFunction(),"environment");if(h.name!==a)throw new Yl("Mismatch: \\begin{"+a+"} matched by \\end{"+h.name+"}",p);return d}return{type:"environment",mode:r.mode,name:a,nameGroup:i}}});var _p=(e,t)=>{var r=e.font,n=t.withFont(r);return pd(e.body,n)},$p=(e,t)=>{var r=e.font,n=t.withFont(r);return Cd(e.body,n)},eh={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};_u({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathsfit","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(e,t)=>{var{parser:r,funcName:n}=e,i=ed(t[0]),a=n;return a in eh&&(a=eh[a]),{type:"font",mode:r.mode,font:a.slice(1),body:i}},htmlBuilder:_p,mathmlBuilder:$p}),_u({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(e,t)=>{var{parser:r}=e,n=t[0];return{type:"mclass",mode:r.mode,mclass:Hd(n),body:[{type:"font",mode:r.mode,font:"boldsymbol",body:n}],isCharacterBox:nc(n)}}}),_u({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{parser:r,funcName:n,breakOnTokenText:i}=e,{mode:a}=r,o=r.parseExpression(!0,i);return{type:"font",mode:a,font:"math"+n.slice(1),body:{type:"ordgroup",mode:r.mode,body:o}}},htmlBuilder:_p,mathmlBuilder:$p});var th=(e,t)=>t?{type:"styling",mode:e.mode,style:t,body:[e]}:e;_u({type:"genfrac",names:["\\cfrac","\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(e,t)=>{var r,{parser:n,funcName:i}=e,a=t[0],o=t[1],s=null,l=null;switch(i){case"\\cfrac":case"\\dfrac":case"\\frac":case"\\tfrac":r=!0;break;case"\\\\atopfrac":r=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":r=!1,s="(",l=")";break;case"\\\\bracefrac":r=!1,s="\\{",l="\\}";break;case"\\\\brackfrac":r=!1,s="[",l="]";break;default:throw new Error("Unrecognized genfrac command")}var c="\\cfrac"===i,u=null;return c||i.startsWith("\\d")?u="display":i.startsWith("\\t")&&(u="text"),th({type:"genfrac",mode:n.mode,numer:a,denom:o,continued:c,hasBarLine:r,leftDelim:s,rightDelim:l,barSize:null},u)},htmlBuilder:(e,t)=>{var r,n=t.style,i=n.fracNum(),a=n.fracDen();r=t.havingStyle(i);var o=pd(e.numer,r,t);if(e.continued){var s=8.5/t.fontMetrics().ptPerEm,l=3.5/t.fontMetrics().ptPerEm;o.height=o.height<s?s:o.height,o.depth=o.depth<l?l:o.depth}r=t.havingStyle(a);var c,u,d,p,h,q,f,m,V,g,v=pd(e.denom,r,t);if(e.hasBarLine?(e.barSize?(u=wc(e.barSize,t),c=Ku("frac-line",t,u)):c=Ku("frac-line",t),u=c.height,d=c.height):(c=null,u=0,d=t.fontMetrics().defaultRuleThickness),n.size===fc.DISPLAY.size?(p=t.fontMetrics().num1,h=u>0?3*d:7*d,q=t.fontMetrics().denom1):(u>0?(p=t.fontMetrics().num2,h=d):(p=t.fontMetrics().num3,h=3*d),q=t.fontMetrics().denom2),c){var b=t.fontMetrics().axisHeight;p-o.depth-(b+.5*u)<h&&(p+=h-(p-o.depth-(b+.5*u))),b-.5*u-(v.height-q)<h&&(q+=h-(b-.5*u-(v.height-q))),f=Iu({positionType:"individualShift",children:[{type:"elem",elem:v,shift:q},{type:"elem",elem:c,shift:-(b-.5*u)},{type:"elem",elem:o,shift:-p}]})}else{var y=p-o.depth-(v.height-q);y<h&&(p+=.5*(h-y),q+=.5*(h-y)),f=Iu({positionType:"individualShift",children:[{type:"elem",elem:v,shift:q},{type:"elem",elem:o,shift:-p}]})}return r=t.havingStyle(n),f.height*=r.sizeMultiplier/t.sizeMultiplier,f.depth*=r.sizeMultiplier/t.sizeMultiplier,m=n.size===fc.DISPLAY.size?t.fontMetrics().delim1:n.size===fc.SCRIPTSCRIPT.size?t.havingStyle(fc.SCRIPT).fontMetrics().delim2:t.fontMetrics().delim2,V=null==e.leftDelim?dd(t,["mopen"]):Cp(e.leftDelim,m,!0,t.havingStyle(n),e.mode,["mopen"]),g=e.continued?Wu([]):null==e.rightDelim?dd(t,["mclose"]):Cp(e.rightDelim,m,!0,t.havingStyle(n),e.mode,["mclose"]),Wu(["mord"].concat(r.sizingClasses(t)),[V,Wu(["mfrac"],[f]),g],t)},mathmlBuilder:(e,t)=>{var r=new md("mfrac",[Cd(e.numer,t),Cd(e.denom,t)]);if(e.hasBarLine){if(e.barSize){var n=wc(e.barSize,t);r.setAttribute("linethickness",Uc(n))}}else r.setAttribute("linethickness","0px");if(null!=e.leftDelim||null!=e.rightDelim){var i=[];if(null!=e.leftDelim){var a=new md("mo",[new Vd(e.leftDelim.replace("\\",""))]);a.setAttribute("fence","true"),i.push(a)}if(i.push(r),null!=e.rightDelim){var o=new md("mo",[new Vd(e.rightDelim.replace("\\",""))]);o.setAttribute("fence","true"),i.push(o)}return Sd(i)}return r}}),_u({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(e){var t,{parser:r,funcName:n,token:i}=e;switch(n){case"\\over":t="\\frac";break;case"\\choose":t="\\binom";break;case"\\atop":t="\\\\atopfrac";break;case"\\brace":t="\\\\bracefrac";break;case"\\brack":t="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:r.mode,replaceWith:t,token:i}}});var rh=["display","text","script","scriptscript"],nh=function(e){var t=null;return e.length>0&&(t="."===(t=e)?null:t),t};_u({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(e,t){var r,{parser:n}=e,i=t[4],a=t[5],o=ed(t[0]),s="atom"===o.type&&"open"===o.family?nh(o.text):null,l=ed(t[1]),c="atom"===l.type&&"close"===l.family?nh(l.text):null,u=Id(t[2],"size"),d=null;r=!!u.isBlank||(d=u.value).number>0;var p=null,h=t[3];if("ordgroup"===h.type){if(h.body.length>0){var q=Id(h.body[0],"textord");p=rh[Number(q.text)]}}else h=Id(h,"textord"),p=rh[Number(h.text)];return th({type:"genfrac",mode:n.mode,numer:i,denom:a,continued:!1,hasBarLine:r,barSize:d,leftDelim:s,rightDelim:c},p)}}),_u({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(e,t){var{parser:r,funcName:n,token:i}=e;return{type:"infix",mode:r.mode,replaceWith:"\\\\abovefrac",size:Id(t[0],"size").value,token:i}}}),_u({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(e,t)=>{var{parser:r,funcName:n}=e,i=t[0],a=Id(t[1],"infix").size;if(!a)throw new Error("\\\\abovefrac expected size, but got "+String(a));var o=t[2],s=a.number>0;return{type:"genfrac",mode:r.mode,numer:i,denom:o,continued:!1,hasBarLine:s,barSize:a,leftDelim:null,rightDelim:null}}});var ih=(e,t)=>{var r,n,i=t.style;"supsub"===e.type?(r=e.sup?pd(e.sup,t.havingStyle(i.sup()),t):pd(e.sub,t.havingStyle(i.sub()),t),n=Id(e.base,"horizBrace")):n=Id(e,"horizBrace");var a,o=pd(n.base,t.havingBaseStyle(fc.DISPLAY)),s=Pd(n,t);if(n.isOver?(a=Iu({positionType:"firstBaseline",children:[{type:"elem",elem:o},{type:"kern",size:.1},{type:"elem",elem:s}]})).children[0].children[0].children[1].classes.push("svg-align"):(a=Iu({positionType:"bottom",positionData:o.depth+.1+s.height,children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:o}]})).children[0].children[0].children[0].classes.push("svg-align"),r){var l=Wu(["mord",n.isOver?"mover":"munder"],[a],t);a=n.isOver?Iu({positionType:"firstBaseline",children:[{type:"elem",elem:l},{type:"kern",size:.2},{type:"elem",elem:r}]}):Iu({positionType:"bottom",positionData:l.depth+.2+r.height+r.depth,children:[{type:"elem",elem:r},{type:"kern",size:.2},{type:"elem",elem:l}]})}return Wu(["mord",n.isOver?"mover":"munder"],[a],t)};_u({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:n}=e;return{type:"horizBrace",mode:r.mode,label:n,isOver:/^\\over/.test(n),base:t[0]}},htmlBuilder:ih,mathmlBuilder:(e,t)=>{var r=Nd(e.label);return new md(e.isOver?"mover":"munder",[Cd(e.base,t),r])}}),_u({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=t[1],i=Id(t[0],"url").url;return r.settings.isTrusted({command:"\\href",url:i})?{type:"href",mode:r.mode,href:i,body:td(n)}:r.formatUnsupportedCmd("\\href")},htmlBuilder:(e,t)=>{var r=od(e.body,t,!1);return function(e,t,r,n){var i=new Fc(e,[],r,n);return Fu(i),i}(e.href,0,r,t)},mathmlBuilder:(e,t)=>{var r=xd(e.body,t);return r instanceof md||(r=new md("mrow",[r])),r.setAttribute("href",e.href),r}}),_u({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=Id(t[0],"url").url;if(!r.settings.isTrusted({command:"\\url",url:n}))return r.formatUnsupportedCmd("\\url");for(var i=[],a=0;a<n.length;a++){var o=n[a];"~"===o&&(o="\\textasciitilde"),i.push({type:"textord",mode:"text",text:o})}var s={type:"text",mode:r.mode,font:"\\texttt",body:i};return{type:"href",mode:r.mode,href:n,body:td(s)}}}),_u({type:"hbox",names:["\\hbox"],props:{numArgs:1,argTypes:["text"],allowedInText:!0,primitive:!0},handler(e,t){var{parser:r}=e;return{type:"hbox",mode:r.mode,body:td(t[0])}},htmlBuilder(e,t){var r=od(e.body,t,!1);return Ou(r)},mathmlBuilder:(e,t)=>new md("mrow",Ud(e.body,t))}),_u({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:(e,t)=>{var r,{parser:n,funcName:i,token:a}=e,o=Id(t[0],"raw").string,s=t[1];n.settings.strict&&n.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var l={};switch(i){case"\\htmlClass":l.class=o,r={command:"\\htmlClass",class:o};break;case"\\htmlId":l.id=o,r={command:"\\htmlId",id:o};break;case"\\htmlStyle":l.style=o,r={command:"\\htmlStyle",style:o};break;case"\\htmlData":for(var c=o.split(","),u=0;u<c.length;u++){var d=c[u],p=d.indexOf("=");if(p<0)throw new Yl("\\htmlData key/value '"+d+"' missing equals sign");var h=d.slice(0,p),q=d.slice(p+1);l["data-"+h.trim()]=q}r={command:"\\htmlData",attributes:l};break;default:throw new Error("Unrecognized html command")}return n.settings.isTrusted(r)?{type:"html",mode:n.mode,attributes:l,body:td(s)}:n.formatUnsupportedCmd(i)},htmlBuilder:(e,t)=>{var r=od(e.body,t,!1),n=["enclosing"];e.attributes.class&&n.push(...e.attributes.class.trim().split(/\s+/));var i=Wu(n,r,t);for(var a in e.attributes)"class"!==a&&e.attributes.hasOwnProperty(a)&&i.setAttribute(a,e.attributes[a]);return i},mathmlBuilder:(e,t)=>xd(e.body,t)}),_u({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInArgument:!0,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e;return{type:"htmlmathml",mode:r.mode,html:td(t[0]),mathml:td(t[1])}},htmlBuilder:(e,t)=>{var r=od(e.html,t,!1);return Ou(r)},mathmlBuilder:(e,t)=>xd(e.mathml,t)});var ah=function(e){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e))return{number:+e,unit:"bp"};var t=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e);if(!t)throw new Yl("Invalid size: '"+e+"' in \\includegraphics");var r={number:+(t[1]+t[2]),unit:t[3]};if(!Ac(r))throw new Yl("Invalid unit: '"+r.unit+"' in \\includegraphics.");return r};_u({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(e,t,r)=>{var{parser:n}=e,i={number:0,unit:"em"},a={number:.9,unit:"em"},o={number:0,unit:"em"},s="";if(r[0])for(var l=Id(r[0],"raw").string.split(","),c=0;c<l.length;c++){var u=l[c].split("=");if(2===u.length){var d=u[1].trim();switch(u[0].trim()){case"alt":s=d;break;case"width":i=ah(d);break;case"height":a=ah(d);break;case"totalheight":o=ah(d);break;default:throw new Yl("Invalid key: '"+u[0]+"' in \\includegraphics.")}}}var p=Id(t[0],"url").url;return""===s&&(s=(s=(s=p).replace(/^.*[\\/]/,"")).substring(0,s.lastIndexOf("."))),n.settings.isTrusted({command:"\\includegraphics",url:p})?{type:"includegraphics",mode:n.mode,alt:s,width:i,height:a,totalheight:o,src:p}:n.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:(e,t)=>{var r=wc(e.height,t),n=0;e.totalheight.number>0&&(n=wc(e.totalheight,t)-r);var i=0;e.width.number>0&&(i=wc(e.width,t));var a={height:Uc(r+n)};i>0&&(a.width=Uc(i)),n>0&&(a.verticalAlign=Uc(-n));var o=new Wc(e.src,e.alt,a);return o.height=r,o.depth=n,o},mathmlBuilder:(e,t)=>{var r=new md("mglyph",[]);r.setAttribute("alt",e.alt);var n=wc(e.height,t),i=0;if(e.totalheight.number>0&&(i=wc(e.totalheight,t)-n,r.setAttribute("valign",Uc(-i))),r.setAttribute("height",Uc(n+i)),e.width.number>0){var a=wc(e.width,t);r.setAttribute("width",Uc(a))}return r.setAttribute("src",e.src),r}}),_u({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(e,t){var{parser:r,funcName:n}=e,i=Id(t[0],"size");if(r.settings.strict){var a="m"===n[1],o="mu"===i.value.unit;a?(o||r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" supports only mu units, not "+i.value.unit+" units"),"math"!==r.mode&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" works only in math mode")):o&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" doesn't support mu units")}return{type:"kern",mode:r.mode,dimension:i.value}},htmlBuilder:(e,t)=>Lu(e.dimension,t),mathmlBuilder(e,t){var r=wc(e.dimension,t);return new gd(r)}}),_u({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r,funcName:n}=e,i=t[0];return{type:"lap",mode:r.mode,alignment:n.slice(5),body:i}},htmlBuilder:(e,t)=>{var r;"clap"===e.alignment?(r=Wu([],[pd(e.body,t)]),r=Wu(["inner"],[r],t)):r=Wu(["inner"],[pd(e.body,t)]);var n=Wu(["fix"],[]),i=Wu([e.alignment],[r,n],t),a=Wu(["strut"]);return a.style.height=Uc(i.height+i.depth),i.depth&&(a.style.verticalAlign=Uc(-i.depth)),i.children.unshift(a),i=Wu(["thinbox"],[i],t),Wu(["mord","vbox"],[i],t)},mathmlBuilder:(e,t)=>{var r=new md("mpadded",[Cd(e.body,t)]);if("rlap"!==e.alignment){var n="llap"===e.alignment?"-1":"-0.5";r.setAttribute("lspace",n+"width")}return r.setAttribute("width","0px"),r}}),_u({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:r,parser:n}=e,i=n.mode;n.switchMode("math");var a="\\("===r?"\\)":"$",o=n.parseExpression(!1,a);return n.expect(a),n.switchMode(i),{type:"styling",mode:n.mode,style:"text",body:o}}}),_u({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new Yl("Mismatched "+e.funcName)}});var oh=(e,t)=>{switch(t.style.size){case fc.DISPLAY.size:return e.display;case fc.TEXT.size:return e.text;case fc.SCRIPT.size:return e.script;case fc.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};_u({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:r}=e;return{type:"mathchoice",mode:r.mode,display:td(t[0]),text:td(t[1]),script:td(t[2]),scriptscript:td(t[3])}},htmlBuilder:(e,t)=>{var r=oh(e,t),n=od(r,t,!1);return Ou(n)},mathmlBuilder:(e,t)=>{var r=oh(e,t);return xd(r,t)}});var sh=(e,t,r,n,i,a,o)=>{e=Wu([],[e]);var s,l,c,u=r&&nc(r);if(t){var d=pd(t,n.havingStyle(i.sup()),n);l={elem:d,kern:Math.max(n.fontMetrics().bigOpSpacing1,n.fontMetrics().bigOpSpacing3-d.depth)}}if(r){var p=pd(r,n.havingStyle(i.sub()),n);s={elem:p,kern:Math.max(n.fontMetrics().bigOpSpacing2,n.fontMetrics().bigOpSpacing4-p.height)}}if(l&&s){var h=n.fontMetrics().bigOpSpacing5+s.elem.height+s.elem.depth+s.kern+e.depth+o;c=Iu({positionType:"bottom",positionData:h,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:s.elem,marginLeft:Uc(-a)},{type:"kern",size:s.kern},{type:"elem",elem:e},{type:"kern",size:l.kern},{type:"elem",elem:l.elem,marginLeft:Uc(a)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]})}else if(s){var q=e.height-o;c=Iu({positionType:"top",positionData:q,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:s.elem,marginLeft:Uc(-a)},{type:"kern",size:s.kern},{type:"elem",elem:e}]})}else{if(!l)return e;var f=e.depth+o;c=Iu({positionType:"bottom",positionData:f,children:[{type:"elem",elem:e},{type:"kern",size:l.kern},{type:"elem",elem:l.elem,marginLeft:Uc(a)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]})}var m=[c];if(s&&0!==a&&!u){var V=Wu(["mspace"],[],n);V.style.marginRight=Uc(a),m.unshift(V)}return Wu(["mop","op-limits"],m,n)},lh=new Set(["\\smallint"]),ch=(e,t)=>{var r,n,i,a=!1;"supsub"===e.type?(r=e.sup,n=e.sub,i=Id(e.base,"op"),a=!0):i=Id(e,"op");var o,s=t.style,l=!1;if(s.size===fc.DISPLAY.size&&i.symbol&&!lh.has(i.name)&&(l=!0),i.symbol){var c=l?"Size2-Regular":"Size1-Regular",u="";if("\\oiint"!==i.name&&"\\oiiint"!==i.name||(u=i.name.slice(1),i.name="oiint"===u?"\\iint":"\\iiint"),o=Cu(i.name,c,"math",t,["mop","op-symbol",l?"large-op":"small-op"]),u.length>0){var d=o.italic,p=ju(u+"Size"+(l?"2":"1"),t);o=Iu({positionType:"individualShift",children:[{type:"elem",elem:o,shift:0},{type:"elem",elem:p,shift:l?.08:0}]}),i.name="\\"+u,o.classes.unshift("mop"),o.italic=d}}else if(i.body){var h=od(i.body,t,!0);1===h.length&&h[0]instanceof Kc?(o=h[0]).classes[0]="mop":o=Wu(["mop"],h,t)}else{for(var q=[],f=1;f<i.name.length;f++)q.push(Ru(i.name[f],i.mode,t));o=Wu(["mop"],q,t)}var m=0,V=0;return(o instanceof Kc||"\\oiint"===i.name||"\\oiiint"===i.name)&&!i.suppressBaseShift&&(m=(o.height-o.depth)/2-t.fontMetrics().axisHeight,V=o.italic||0),a?sh(o,r,n,t,s,V,m):(m&&(o.style.position="relative",o.style.top=Uc(m)),o)},uh=(e,t)=>{var r;if(e.symbol)r=new md("mo",[yd(e.name,e.mode)]),lh.has(e.name)&&r.setAttribute("largeop","false");else if(e.body)r=new md("mo",Ud(e.body,t));else{r=new md("mi",[new Vd(e.name.slice(1))]);var n=new md("mo",[yd("","text")]);r=e.parentIsSupSub?new md("mrow",[r,n]):fd([r,n])}return r},dh={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};_u({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:(e,t)=>{var{parser:r,funcName:n}=e,i=n;return 1===i.length&&(i=dh[i]),{type:"op",mode:r.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:i}},htmlBuilder:ch,mathmlBuilder:uh}),_u({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var{parser:r}=e,n=t[0];return{type:"op",mode:r.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:td(n)}},htmlBuilder:ch,mathmlBuilder:uh});var ph={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};_u({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(e){var{parser:t,funcName:r}=e;return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:r}},htmlBuilder:ch,mathmlBuilder:uh}),_u({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(e){var{parser:t,funcName:r}=e;return{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:r}},htmlBuilder:ch,mathmlBuilder:uh}),_u({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0,allowedInArgument:!0},handler(e){var{parser:t,funcName:r}=e,n=r;return 1===n.length&&(n=ph[n]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:n}},htmlBuilder:ch,mathmlBuilder:uh});var hh=(e,t)=>{var r,n,i,a,o=!1;if("supsub"===e.type?(r=e.sup,n=e.sub,i=Id(e.base,"operatorname"),o=!0):i=Id(e,"operatorname"),i.body.length>0){for(var s=(i.body.map(e=>{var t="text"in e?e.text:void 0;return"string"==typeof t?{type:"textord",mode:e.mode,text:t}:e})),l=od(s,t.withFont("mathrm"),!0),c=0;c<l.length;c++){var u=l[c];u instanceof Kc&&(u.text=u.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}a=Wu(["mop"],l,t)}else a=Wu(["mop"],[],t);return o?sh(a,r,n,t,t.style,0,0):a};function qh(e,t,r){for(var n=od(e,t,!1),i=t.sizeMultiplier/r.sizeMultiplier,a=0;a<n.length;a++){var o=n[a].classes.indexOf("sizing");o<0?Array.prototype.push.apply(n[a].classes,t.sizingClasses(r)):n[a].classes[o+1]==="reset-size"+t.size&&(n[a].classes[o+1]="reset-size"+r.size),n[a].height*=i,n[a].depth*=i}return Ou(n)}_u({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(e,t)=>{var{parser:r,funcName:n}=e,i=t[0];return{type:"operatorname",mode:r.mode,body:td(i),alwaysHandleSupSub:"\\operatornamewithlimits"===n,limits:!1,parentIsSupSub:!1}},htmlBuilder:hh,mathmlBuilder:(e,t)=>{for(var r=Ud(e.body,t.withFont("mathrm")),n=!0,i=0;i<r.length;i++){var a=r[i];if(a instanceof gd);else if(a instanceof md)switch(a.type){case"mi":case"mn":case"mspace":case"mtext":break;case"mo":var o=a.children[0];1===a.children.length&&o instanceof Vd?o.text=o.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):n=!1;break;default:n=!1}else n=!1}if(n){var s=r.map(e=>e.toText()).join("");r=[new Vd(s)]}var l=new md("mi",r);l.setAttribute("mathvariant","normal");var c=new md("mo",[yd("","text")]);return e.parentIsSupSub?new md("mrow",[l,c]):fd([l,c])}}),Ip("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@"),$u({type:"ordgroup",htmlBuilder:(e,t)=>e.semisimple?Ou(od(e.body,t,!1)):Wu(["mord"],od(e.body,t,!0),t),mathmlBuilder:(e,t)=>xd(e.body,t,!0)}),_u({type:"overline",names:["\\overline"],props:{numArgs:1},handler(e,t){var{parser:r}=e,n=t[0];return{type:"overline",mode:r.mode,body:n}},htmlBuilder(e,t){var r=pd(e.body,t.havingCrampedStyle()),n=Ku("overline-line",t),i=t.fontMetrics().defaultRuleThickness,a=Iu({positionType:"firstBaseline",children:[{type:"elem",elem:r},{type:"kern",size:3*i},{type:"elem",elem:n},{type:"kern",size:i}]});return Wu(["mord","overline"],[a],t)},mathmlBuilder(e,t){var r=new md("mo",[new Vd("‾")]);r.setAttribute("stretchy","true");var n=new md("mover",[Cd(e.body,t),r]);return n.setAttribute("accent","true"),n}}),_u({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=t[0];return{type:"phantom",mode:r.mode,body:td(n)}},htmlBuilder:(e,t)=>{var r=od(e.body,t.withPhantom(),!1);return Ou(r)},mathmlBuilder:(e,t)=>{var r=Ud(e.body,t);return new md("mphantom",r)}}),Ip("\\hphantom","\\smash{\\phantom{#1}}"),_u({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=t[0];return{type:"vphantom",mode:r.mode,body:n}},htmlBuilder:(e,t)=>{var r=Wu(["inner"],[pd(e.body,t.withPhantom())]),n=Wu(["fix"],[]);return Wu(["mord","rlap"],[r,n],t)},mathmlBuilder:(e,t)=>{var r=Ud(td(e.body),t),n=new md("mphantom",r),i=new md("mpadded",[n]);return i.setAttribute("width","0px"),i}}),_u({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(e,t){var{parser:r}=e,n=Id(t[0],"size").value,i=t[1];return{type:"raisebox",mode:r.mode,dy:n,body:i}},htmlBuilder(e,t){var r=pd(e.body,t),n=wc(e.dy,t);return Iu({positionType:"shift",positionData:-n,children:[{type:"elem",elem:r}]})},mathmlBuilder(e,t){var r=new md("mpadded",[Cd(e.body,t)]),n=e.dy.number+e.dy.unit;return r.setAttribute("voffset",n),r}}),_u({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(e){var{parser:t}=e;return{type:"internal",mode:t.mode}}}),_u({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"]},handler(e,t,r){var{parser:n}=e,i=r[0],a=Id(t[0],"size"),o=Id(t[1],"size");return{type:"rule",mode:n.mode,shift:i&&Id(i,"size").value,width:a.value,height:o.value}},htmlBuilder(e,t){var r=Wu(["mord","rule"],[],t),n=wc(e.width,t),i=wc(e.height,t),a=e.shift?wc(e.shift,t):0;return r.style.borderRightWidth=Uc(n),r.style.borderTopWidth=Uc(i),r.style.bottom=Uc(a),r.width=n,r.height=i+a,r.depth=-a,r.maxFontSize=1.125*i*t.sizeMultiplier,r},mathmlBuilder(e,t){var r=wc(e.width,t),n=wc(e.height,t),i=e.shift?wc(e.shift,t):0,a=t.color&&t.getColor()||"black",o=new md("mspace");o.setAttribute("mathbackground",a),o.setAttribute("width",Uc(r)),o.setAttribute("height",Uc(n));var s=new md("mpadded",[o]);return i>=0?s.setAttribute("height",Uc(i)):(s.setAttribute("height",Uc(i)),s.setAttribute("depth",Uc(-i))),s.setAttribute("voffset",Uc(i)),s}});var fh=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"];_u({type:"sizing",names:fh,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{breakOnTokenText:r,funcName:n,parser:i}=e,a=i.parseExpression(!1,r);return{type:"sizing",mode:i.mode,size:fh.indexOf(n)+1,body:a}},htmlBuilder:(e,t)=>{var r=t.havingSize(e.size);return qh(e.body,r,t)},mathmlBuilder:(e,t)=>{var r=t.havingSize(e.size),n=Ud(e.body,r),i=new md("mstyle",n);return i.setAttribute("mathsize",Uc(r.sizeMultiplier)),i}}),_u({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,r)=>{var{parser:n}=e,i=!1,a=!1,o=r[0]&&Id(r[0],"ordgroup");if(o)for(var s="",l=0;l<o.body.length;++l)if("t"===(s=Ld(o.body[l]).text))i=!0;else{if("b"!==s){i=!1,a=!1;break}a=!0}else i=!0,a=!0;var c=t[0];return{type:"smash",mode:n.mode,body:c,smashHeight:i,smashDepth:a}},htmlBuilder:(e,t)=>{var r=Wu([],[pd(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return r;if(e.smashHeight&&(r.height=0),e.smashDepth&&(r.depth=0),e.smashHeight&&e.smashDepth)return Wu(["mord","smash"],[r],t);if(r.children)for(var n=0;n<r.children.length;n++)e.smashHeight&&(r.children[n].height=0),e.smashDepth&&(r.children[n].depth=0);var i=Iu({positionType:"firstBaseline",children:[{type:"elem",elem:r}]});return Wu(["mord"],[i],t)},mathmlBuilder:(e,t)=>{var r=new md("mpadded",[Cd(e.body,t)]);return e.smashHeight&&r.setAttribute("height","0px"),e.smashDepth&&r.setAttribute("depth","0px"),r}}),_u({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,r){var{parser:n}=e,i=r[0],a=t[0];return{type:"sqrt",mode:n.mode,body:a,index:i}},htmlBuilder(e,t){var r=pd(e.body,t.havingCrampedStyle());0===r.height&&(r.height=t.fontMetrics().xHeight),r=Pu(r,t);var n=t.fontMetrics().defaultRuleThickness,i=n;t.style.id<fc.TEXT.id&&(i=t.fontMetrics().xHeight);var a=n+i/4,o=r.height+r.depth+a+n,{span:s,ruleWidth:l,advanceWidth:c}=function(e,t){var r,n,i=t.havingBaseSizing(),a=xp("\\surd",e*i.sizeMultiplier,wp,i),o=i.sizeMultiplier,s=Math.max(0,t.minRuleThickness-t.fontMetrics().sqrtRuleThickness),l=0,c=0,u=0;return"small"===a.type?(e<1?o=1:e<1.4&&(o=.7),c=(1+s)/o,(r=mp("sqrtMain",l=(1+s+fp)/o,u=1e3+1e3*s+80,s,t)).style.minWidth="0.853em",n=.833/o):"large"===a.type?(u=1080*bp[a.size],c=(bp[a.size]+s)/o,l=(bp[a.size]+s+fp)/o,(r=mp("sqrtSize"+a.size,l,u,s,t)).style.minWidth="1.02em",n=1/o):(l=e+s+fp,c=e+s,u=Math.floor(1e3*e+s)+80,(r=mp("sqrtTall",l,u,s,t)).style.minWidth="0.742em",n=1.056),r.height=c,r.style.height=Uc(l),{span:r,advanceWidth:n,ruleWidth:(t.fontMetrics().sqrtRuleThickness+s)*o}}(o,t),u=s.height-l;u>r.height+r.depth+a&&(a=(a+u-r.height-r.depth)/2);var d=s.height-r.height-a-l;r.style.paddingLeft=Uc(c);var p=Iu({positionType:"firstBaseline",children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:-(r.height+d)},{type:"elem",elem:s},{type:"kern",size:l}]});if(e.index){var h=t.havingStyle(fc.SCRIPTSCRIPT),q=pd(e.index,h,t),f=.6*(p.height-p.depth),m=Iu({positionType:"shift",positionData:-f,children:[{type:"elem",elem:q}]}),V=Wu(["root"],[m]);return Wu(["mord","sqrt"],[V,p],t)}return Wu(["mord","sqrt"],[p],t)},mathmlBuilder(e,t){var{body:r,index:n}=e;return n?new md("mroot",[Cd(r,t),Cd(n,t)]):new md("msqrt",[Cd(r,t)])}});var mh={display:fc.DISPLAY,text:fc.TEXT,script:fc.SCRIPT,scriptscript:fc.SCRIPTSCRIPT};_u({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:r,funcName:n,parser:i}=e,a=i.parseExpression(!0,r),o=n.slice(1,n.length-5);return{type:"styling",mode:i.mode,style:o,body:a}},htmlBuilder(e,t){var r=mh[e.style],n=t.havingStyle(r).withFont("");return qh(e.body,n,t)},mathmlBuilder(e,t){var r=mh[e.style],n=t.havingStyle(r),i=Ud(e.body,n),a=new md("mstyle",i),o={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]}[e.style];return a.setAttribute("scriptlevel",o[0]),a.setAttribute("displaystyle",o[1]),a}}),$u({type:"supsub",htmlBuilder(e,t){var r=function(e,t){var r=e.base;return r?"op"===r.type?r.limits&&(t.style.size===fc.DISPLAY.size||r.alwaysHandleSupSub)?ch:null:"operatorname"===r.type?r.alwaysHandleSupSub&&(t.style.size===fc.DISPLAY.size||r.limits)?hh:null:"accent"===r.type?nc(r.base)?Xd:null:"horizBrace"===r.type&&!e.sub===r.isOver?ih:null:null}(e,t);if(r)return r(e,t);var n,i,a,{base:o,sup:s,sub:l}=e,c=pd(o,t),u=t.fontMetrics(),d=0,p=0,h=o&&nc(o);if(s){var q=t.havingStyle(t.style.sup());n=pd(s,q,t),h||(d=c.height-q.fontMetrics().supDrop*q.sizeMultiplier/t.sizeMultiplier)}if(l){var f=t.havingStyle(t.style.sub());i=pd(l,f,t),h||(p=c.depth+f.fontMetrics().subDrop*f.sizeMultiplier/t.sizeMultiplier)}a=t.style===fc.DISPLAY?u.sup1:t.style.cramped?u.sup3:u.sup2;var m,V=t.sizeMultiplier,g=Uc(.5/u.ptPerEm/V),v=null;if(i){var b=e.base&&"op"===e.base.type&&e.base.name&&("\\oiint"===e.base.name||"\\oiiint"===e.base.name);(c instanceof Kc||b)&&(v=Uc(-c.italic))}if(n&&i){d=Math.max(d,a,n.depth+.25*u.xHeight),p=Math.max(p,u.sub2);var y=4*u.defaultRuleThickness;if(d-n.depth-(i.height-p)<y){p=y-(d-n.depth)+i.height;var S=.8*u.xHeight-(d-n.depth);S>0&&(d+=S,p-=S)}m=Iu({positionType:"individualShift",children:[{type:"elem",elem:i,shift:p,marginRight:g,marginLeft:v},{type:"elem",elem:n,shift:-d,marginRight:g}]})}else if(i)p=Math.max(p,u.sub1,i.height-.8*u.xHeight),m=Iu({positionType:"shift",positionData:p,children:[{type:"elem",elem:i,marginLeft:v,marginRight:g}]});else{if(!n)throw new Error("supsub must have either sup or sub.");d=Math.max(d,a,n.depth+.25*u.xHeight),m=Iu({positionType:"shift",positionData:-d,children:[{type:"elem",elem:n,marginRight:g}]})}var A=ud(c,"right")||"mord";return Wu([A],[c,Wu(["msupsub"],[m])],t)},mathmlBuilder(e,t){var r,n=!1;e.base&&"horizBrace"===e.base.type&&!!e.sup===e.base.isOver&&(n=!0,r=e.base.isOver),!e.base||"op"!==e.base.type&&"operatorname"!==e.base.type||(e.base.parentIsSupSub=!0);var i,a=[Cd(e.base,t)];if(e.sub&&a.push(Cd(e.sub,t)),e.sup&&a.push(Cd(e.sup,t)),n)i=r?"mover":"munder";else if(e.sub)if(e.sup){var o=e.base;i=o&&"op"===o.type&&o.limits&&t.style===fc.DISPLAY||o&&"operatorname"===o.type&&o.alwaysHandleSupSub&&(t.style===fc.DISPLAY||o.limits)?"munderover":"msubsup"}else{var s=e.base;i=s&&"op"===s.type&&s.limits&&(t.style===fc.DISPLAY||s.alwaysHandleSupSub)||s&&"operatorname"===s.type&&s.alwaysHandleSupSub&&(s.limits||t.style===fc.DISPLAY)?"munder":"msub"}else{var l=e.base;i=l&&"op"===l.type&&l.limits&&(t.style===fc.DISPLAY||l.alwaysHandleSupSub)||l&&"operatorname"===l.type&&l.alwaysHandleSupSub&&(l.limits||t.style===fc.DISPLAY)?"mover":"msup"}return new md(i,a)}}),$u({type:"atom",htmlBuilder:(e,t)=>Ru(e.text,e.mode,t,["m"+e.family]),mathmlBuilder(e,t){var r=new md("mo",[yd(e.text,e.mode)]);if("bin"===e.family){var n=Ad(e,t);"bold-italic"===n&&r.setAttribute("mathvariant",n)}else"punct"===e.family?r.setAttribute("separator","true"):"open"!==e.family&&"close"!==e.family||r.setAttribute("stretchy","false");return r}});var Vh={mi:"italic",mn:"normal",mtext:"normal"};$u({type:"mathord",htmlBuilder:(e,t)=>Eu(e,t,"mathord"),mathmlBuilder(e,t){var r=new md("mi",[yd(e.text,e.mode,t)]),n=Ad(e,t)||"italic";return n!==Vh[r.type]&&r.setAttribute("mathvariant",n),r}}),$u({type:"textord",htmlBuilder:(e,t)=>Eu(e,t,"textord"),mathmlBuilder(e,t){var r,n=yd(e.text,e.mode,t),i=Ad(e,t)||"normal";return r="text"===e.mode?new md("mtext",[n]):/[0-9]/.test(e.text)?new md("mn",[n]):"\\prime"===e.text?new md("mo",[n]):new md("mi",[n]),i!==Vh[r.type]&&r.setAttribute("mathvariant",i),r}});var gh={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},vh={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};$u({type:"spacing",htmlBuilder(e,t){if(vh.hasOwnProperty(e.text)){var r=vh[e.text].className||"";if("text"===e.mode){var n=Eu(e,t,"textord");return n.classes.push(r),n}return Wu(["mspace",r],[Ru(e.text,e.mode,t)],t)}if(gh.hasOwnProperty(e.text))return Wu(["mspace",gh[e.text]],[],t);throw new Yl('Unknown type of space "'+e.text+'"')},mathmlBuilder(e,t){if(!vh.hasOwnProperty(e.text)){if(gh.hasOwnProperty(e.text))return new md("mspace");throw new Yl('Unknown type of space "'+e.text+'"')}return new md("mtext",[new Vd(" ")])}});var bh=()=>{var e=new md("mtd",[]);return e.setAttribute("width","50%"),e};$u({type:"tag",mathmlBuilder(e,t){var r=new md("mtable",[new md("mtr",[bh(),new md("mtd",[xd(e.body,t)]),bh(),new md("mtd",[xd(e.tag,t)])])]);return r.setAttribute("width","100%"),r}});var yh={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},Sh={"\\textbf":"textbf","\\textmd":"textmd"},Ah={"\\textit":"textit","\\textup":"textup"},wh=(e,t)=>{var r=e.font;return r?yh[r]?t.withTextFontFamily(yh[r]):Sh[r]?t.withTextFontWeight(Sh[r]):"\\emph"===r?"textit"===t.fontShape?t.withTextFontShape("textup"):t.withTextFontShape("textit"):t.withTextFontShape(Ah[r]):t};_u({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(e,t){var{parser:r,funcName:n}=e,i=t[0];return{type:"text",mode:r.mode,body:td(i),font:n}},htmlBuilder(e,t){var r=wh(e,t),n=od(e.body,r,!0);return Wu(["mord","text"],n,r)},mathmlBuilder(e,t){var r=wh(e,t);return xd(e.body,r)}}),_u({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"underline",mode:r.mode,body:t[0]}},htmlBuilder(e,t){var r=pd(e.body,t),n=Ku("underline-line",t),i=t.fontMetrics().defaultRuleThickness,a=Iu({positionType:"top",positionData:r.height,children:[{type:"kern",size:i},{type:"elem",elem:n},{type:"kern",size:3*i},{type:"elem",elem:r}]});return Wu(["mord","underline"],[a],t)},mathmlBuilder(e,t){var r=new md("mo",[new Vd("‾")]);r.setAttribute("stretchy","true");var n=new md("munder",[Cd(e.body,t),r]);return n.setAttribute("accentunder","true"),n}}),_u({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(e,t){var{parser:r}=e;return{type:"vcenter",mode:r.mode,body:t[0]}},htmlBuilder(e,t){var r=pd(e.body,t),n=t.fontMetrics().axisHeight,i=.5*(r.height-n-(r.depth+n));return Iu({positionType:"shift",positionData:i,children:[{type:"elem",elem:r}]})},mathmlBuilder:(e,t)=>new md("mpadded",[Cd(e.body,t)],["vcenter"])}),_u({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,r){throw new Yl("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,t){for(var r=Uh(e),n=[],i=t.havingStyle(t.style.text()),a=0;a<r.length;a++){var o=r[a];"~"===o&&(o="\\textasciitilde"),n.push(Cu(o,"Typewriter-Regular",e.mode,i,["mord","texttt"]))}return Wu(["mord","text"].concat(i.sizingClasses(t)),ku(n),i)},mathmlBuilder(e,t){var r=new Vd(Uh(e)),n=new md("mtext",[r]);return n.setAttribute("mathvariant","monospace"),n}});var Uh=e=>e.body.replace(/ /g,e.star?"␣":" "),xh=Yu,Ch="[ \r\n\t]",Rh="(\\\\[a-zA-Z@]+)"+Ch+"*",Eh="[̀-ͯ]",Th=new RegExp(Eh+"+$"),kh="("+Ch+"+)|\\\\(\n|[ \r\t]+\n?)[ \r\t]*|([!-\\[\\]-‧-豈-]"+Eh+"*|[\ud800-\udbff][\udc00-\udfff]"+Eh+"*|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5|"+Rh+"|\\\\[^\ud800-\udfff])";class Fh{constructor(e,t){this.input=e,this.settings=t,this.tokenRegex=new RegExp(kh,"g"),this.catcodes={"%":14,"~":13}}setCatcode(e,t){this.catcodes[e]=t}lex(){var e=this.input,t=this.tokenRegex.lastIndex;if(t===e.length)return new Bp("EOF",new Lp(this,t,t));var r=this.tokenRegex.exec(e);if(null===r||r.index!==t)throw new Yl("Unexpected character: '"+e[t]+"'",new Bp(e[t],new Lp(this,t,t+1)));var n=r[6]||r[3]||(r[2]?"\\ ":" ");if(14===this.catcodes[n]){var i=e.indexOf("\n",this.tokenRegex.lastIndex);return-1===i?(this.tokenRegex.lastIndex=e.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=i+1,this.lex()}return new Bp(n,new Lp(this,t,this.tokenRegex.lastIndex))}}class Wh{constructor(e,t){void 0===e&&(e={}),void 0===t&&(t={}),this.current=t,this.builtins=e,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(0===this.undefStack.length)throw new Yl("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var e=this.undefStack.pop();for(var t in e)e.hasOwnProperty(t)&&(null==e[t]?delete this.current[t]:this.current[t]=e[t])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(e){return this.current.hasOwnProperty(e)||this.builtins.hasOwnProperty(e)}get(e){return this.current.hasOwnProperty(e)?this.current[e]:this.builtins[e]}set(e,t,r){if(void 0===r&&(r=!1),r){for(var n=0;n<this.undefStack.length;n++)delete this.undefStack[n][e];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][e]=t)}else{var i=this.undefStack[this.undefStack.length-1];i&&!i.hasOwnProperty(e)&&(i[e]=this.current[e])}null==t?delete this.current[e]:this.current[e]=t}}var Nh=Pp;Ip("\\noexpand",function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}}),Ip("\\expandafter",function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}}),Ip("\\@firstoftwo",function(e){return{tokens:e.consumeArgs(2)[0],numArgs:0}}),Ip("\\@secondoftwo",function(e){return{tokens:e.consumeArgs(2)[1],numArgs:0}}),Ip("\\@ifnextchar",function(e){var t=e.consumeArgs(3);e.consumeSpaces();var r=e.future();return 1===t[0].length&&t[0][0].text===r.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}}),Ip("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),Ip("\\TextOrMath",function(e){var t=e.consumeArgs(2);return"text"===e.mode?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var Kh={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};Ip("\\char",function(e){var t,r=e.popToken(),n=0;if("'"===r.text)t=8,r=e.popToken();else if('"'===r.text)t=16,r=e.popToken();else if("`"===r.text)if("\\"===(r=e.popToken()).text[0])n=r.text.charCodeAt(1);else{if("EOF"===r.text)throw new Yl("\\char` missing argument");n=r.text.charCodeAt(0)}else t=10;if(t){if(null==(n=Kh[r.text])||n>=t)throw new Yl("Invalid base-"+t+" digit "+r.text);for(var i;null!=(i=Kh[e.future().text])&&i<t;)n*=t,n+=i,e.popToken()}return"\\@char{"+n+"}"});var Oh=(e,t,r,n)=>{var i=e.consumeArg().tokens;if(1!==i.length)throw new Yl("\\newcommand's first argument must be a macro name");var a=i[0].text,o=e.isDefined(a);if(o&&!t)throw new Yl("\\newcommand{"+a+"} attempting to redefine "+a+"; use \\renewcommand");if(!o&&!r)throw new Yl("\\renewcommand{"+a+"} when command "+a+" does not yet exist; use \\newcommand");var s=0;if(1===(i=e.consumeArg().tokens).length&&"["===i[0].text){for(var l="",c=e.expandNextToken();"]"!==c.text&&"EOF"!==c.text;)l+=c.text,c=e.expandNextToken();if(!l.match(/^\s*[0-9]+\s*$/))throw new Yl("Invalid number of arguments: "+l);s=parseInt(l),i=e.consumeArg().tokens}return o&&n||e.macros.set(a,{tokens:i,numArgs:s}),""};Ip("\\newcommand",e=>Oh(e,!1,!0,!1)),Ip("\\renewcommand",e=>Oh(e,!0,!1,!1)),Ip("\\providecommand",e=>Oh(e,!0,!0,!0)),Ip("\\message",e=>(e.consumeArgs(1)[0],"")),Ip("\\errmessage",e=>(e.consumeArgs(1)[0],"")),Ip("\\show",e=>(e.popToken().text,"")),Ip("\\bgroup","{"),Ip("\\egroup","}"),Ip("~","\\nobreakspace"),Ip("\\lq","`"),Ip("\\rq","'"),Ip("\\aa","\\r a"),Ip("\\AA","\\r A"),Ip("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}"),Ip("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}"),Ip("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}"),Ip("ℬ","\\mathscr{B}"),Ip("ℰ","\\mathscr{E}"),Ip("ℱ","\\mathscr{F}"),Ip("ℋ","\\mathscr{H}"),Ip("ℐ","\\mathscr{I}"),Ip("ℒ","\\mathscr{L}"),Ip("ℳ","\\mathscr{M}"),Ip("ℛ","\\mathscr{R}"),Ip("ℭ","\\mathfrak{C}"),Ip("ℌ","\\mathfrak{H}"),Ip("ℨ","\\mathfrak{Z}"),Ip("\\Bbbk","\\Bbb{k}"),Ip("\\llap","\\mathllap{\\textrm{#1}}"),Ip("\\rlap","\\mathrlap{\\textrm{#1}}"),Ip("\\clap","\\mathclap{\\textrm{#1}}"),Ip("\\mathstrut","\\vphantom{(}"),Ip("\\underbar","\\underline{\\text{#1}}"),Ip("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}\\nobreak}{\\char"338}'),Ip("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}"),Ip("\\ne","\\neq"),Ip("≠","\\neq"),Ip("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}"),Ip("∉","\\notin"),Ip("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}"),Ip("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}"),Ip("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}"),Ip("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}"),Ip("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}"),Ip("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}"),Ip("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}"),Ip("⟂","\\perp"),Ip("‼","\\mathclose{!\\mkern-0.8mu!}"),Ip("∌","\\notni"),Ip("⌜","\\ulcorner"),Ip("⌝","\\urcorner"),Ip("⌞","\\llcorner"),Ip("⌟","\\lrcorner"),Ip("©","\\copyright"),Ip("®","\\textregistered"),Ip("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}'),Ip("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}'),Ip("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}'),Ip("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}'),Ip("\\vdots","{\\varvdots\\rule{0pt}{15pt}}"),Ip("⋮","\\vdots"),Ip("\\varGamma","\\mathit{\\Gamma}"),Ip("\\varDelta","\\mathit{\\Delta}"),Ip("\\varTheta","\\mathit{\\Theta}"),Ip("\\varLambda","\\mathit{\\Lambda}"),Ip("\\varXi","\\mathit{\\Xi}"),Ip("\\varPi","\\mathit{\\Pi}"),Ip("\\varSigma","\\mathit{\\Sigma}"),Ip("\\varUpsilon","\\mathit{\\Upsilon}"),Ip("\\varPhi","\\mathit{\\Phi}"),Ip("\\varPsi","\\mathit{\\Psi}"),Ip("\\varOmega","\\mathit{\\Omega}"),Ip("\\substack","\\begin{subarray}{c}#1\\end{subarray}"),Ip("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax"),Ip("\\boxed","\\fbox{$\\displaystyle{#1}$}"),Ip("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;"),Ip("\\implies","\\DOTSB\\;\\Longrightarrow\\;"),Ip("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;"),Ip("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}"),Ip("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");var Ph={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"},Ih=new Set(["bin","rel"]);Ip("\\dots",function(e){var t="\\dotso",r=e.expandAfterFuture().text;return r in Ph?t=Ph[r]:("\\not"===r.slice(0,4)||r in Gc.math&&Ih.has(Gc.math[r].group))&&(t="\\dotsb"),t});var Lh={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};Ip("\\dotso",function(e){return e.future().text in Lh?"\\ldots\\,":"\\ldots"}),Ip("\\dotsc",function(e){var t=e.future().text;return t in Lh&&","!==t?"\\ldots\\,":"\\ldots"}),Ip("\\cdots",function(e){return e.future().text in Lh?"\\@cdots\\,":"\\@cdots"}),Ip("\\dotsb","\\cdots"),Ip("\\dotsm","\\cdots"),Ip("\\dotsi","\\!\\cdots"),Ip("\\dotsx","\\ldots\\,"),Ip("\\DOTSI","\\relax"),Ip("\\DOTSB","\\relax"),Ip("\\DOTSX","\\relax"),Ip("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),Ip("\\,","\\tmspace+{3mu}{.1667em}"),Ip("\\thinspace","\\,"),Ip("\\>","\\mskip{4mu}"),Ip("\\:","\\tmspace+{4mu}{.2222em}"),Ip("\\medspace","\\:"),Ip("\\;","\\tmspace+{5mu}{.2777em}"),Ip("\\thickspace","\\;"),Ip("\\!","\\tmspace-{3mu}{.1667em}"),Ip("\\negthinspace","\\!"),Ip("\\negmedspace","\\tmspace-{4mu}{.2222em}"),Ip("\\negthickspace","\\tmspace-{5mu}{.277em}"),Ip("\\enspace","\\kern.5em "),Ip("\\enskip","\\hskip.5em\\relax"),Ip("\\quad","\\hskip1em\\relax"),Ip("\\qquad","\\hskip2em\\relax"),Ip("\\tag","\\@ifstar\\tag@literal\\tag@paren"),Ip("\\tag@paren","\\tag@literal{({#1})}"),Ip("\\tag@literal",e=>{if(e.macros.get("\\df@tag"))throw new Yl("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"}),Ip("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),Ip("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),Ip("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),Ip("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),Ip("\\newline","\\\\\\relax"),Ip("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var Bh=Uc(Lc["Main-Regular"]["T".charCodeAt(0)][1]-.7*Lc["Main-Regular"]["A".charCodeAt(0)][1]);Ip("\\LaTeX","\\textrm{\\html@mathml{L\\kern-.36em\\raisebox{"+Bh+"}{\\scriptstyle A}\\kern-.15em\\TeX}{LaTeX}}"),Ip("\\KaTeX","\\textrm{\\html@mathml{K\\kern-.17em\\raisebox{"+Bh+"}{\\scriptstyle A}\\kern-.15em\\TeX}{KaTeX}}"),Ip("\\hspace","\\@ifstar\\@hspacer\\@hspace"),Ip("\\@hspace","\\hskip #1\\relax"),Ip("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),Ip("\\ordinarycolon",":"),Ip("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),Ip("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),Ip("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),Ip("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),Ip("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),Ip("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),Ip("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),Ip("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),Ip("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),Ip("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),Ip("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),Ip("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),Ip("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),Ip("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),Ip("∷","\\dblcolon"),Ip("∹","\\eqcolon"),Ip("≔","\\coloneqq"),Ip("≕","\\eqqcolon"),Ip("⩴","\\Coloneqq"),Ip("\\ratio","\\vcentcolon"),Ip("\\coloncolon","\\dblcolon"),Ip("\\colonequals","\\coloneqq"),Ip("\\coloncolonequals","\\Coloneqq"),Ip("\\equalscolon","\\eqqcolon"),Ip("\\equalscoloncolon","\\Eqqcolon"),Ip("\\colonminus","\\coloneq"),Ip("\\coloncolonminus","\\Coloneq"),Ip("\\minuscolon","\\eqcolon"),Ip("\\minuscoloncolon","\\Eqcolon"),Ip("\\coloncolonapprox","\\Colonapprox"),Ip("\\coloncolonsim","\\Colonsim"),Ip("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),Ip("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),Ip("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),Ip("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),Ip("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}"),Ip("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),Ip("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),Ip("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}"),Ip("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}"),Ip("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}"),Ip("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}"),Ip("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}"),Ip("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}"),Ip("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}"),Ip("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}"),Ip("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}"),Ip("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}"),Ip("\\nleqq","\\html@mathml{\\@nleqq}{≰}"),Ip("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}"),Ip("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}"),Ip("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}"),Ip("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}"),Ip("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}"),Ip("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}"),Ip("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}"),Ip("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}"),Ip("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}"),Ip("\\imath","\\html@mathml{\\@imath}{ı}"),Ip("\\jmath","\\html@mathml{\\@jmath}{ȷ}"),Ip("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}"),Ip("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}"),Ip("⟦","\\llbracket"),Ip("⟧","\\rrbracket"),Ip("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}"),Ip("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}"),Ip("⦃","\\lBrace"),Ip("⦄","\\rBrace"),Ip("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}"),Ip("⦵","\\minuso"),Ip("\\darr","\\downarrow"),Ip("\\dArr","\\Downarrow"),Ip("\\Darr","\\Downarrow"),Ip("\\lang","\\langle"),Ip("\\rang","\\rangle"),Ip("\\uarr","\\uparrow"),Ip("\\uArr","\\Uparrow"),Ip("\\Uarr","\\Uparrow"),Ip("\\N","\\mathbb{N}"),Ip("\\R","\\mathbb{R}"),Ip("\\Z","\\mathbb{Z}"),Ip("\\alef","\\aleph"),Ip("\\alefsym","\\aleph"),Ip("\\Alpha","\\mathrm{A}"),Ip("\\Beta","\\mathrm{B}"),Ip("\\bull","\\bullet"),Ip("\\Chi","\\mathrm{X}"),Ip("\\clubs","\\clubsuit"),Ip("\\cnums","\\mathbb{C}"),Ip("\\Complex","\\mathbb{C}"),Ip("\\Dagger","\\ddagger"),Ip("\\diamonds","\\diamondsuit"),Ip("\\empty","\\emptyset"),Ip("\\Epsilon","\\mathrm{E}"),Ip("\\Eta","\\mathrm{H}"),Ip("\\exist","\\exists"),Ip("\\harr","\\leftrightarrow"),Ip("\\hArr","\\Leftrightarrow"),Ip("\\Harr","\\Leftrightarrow"),Ip("\\hearts","\\heartsuit"),Ip("\\image","\\Im"),Ip("\\infin","\\infty"),Ip("\\Iota","\\mathrm{I}"),Ip("\\isin","\\in"),Ip("\\Kappa","\\mathrm{K}"),Ip("\\larr","\\leftarrow"),Ip("\\lArr","\\Leftarrow"),Ip("\\Larr","\\Leftarrow"),Ip("\\lrarr","\\leftrightarrow"),Ip("\\lrArr","\\Leftrightarrow"),Ip("\\Lrarr","\\Leftrightarrow"),Ip("\\Mu","\\mathrm{M}"),Ip("\\natnums","\\mathbb{N}"),Ip("\\Nu","\\mathrm{N}"),Ip("\\Omicron","\\mathrm{O}"),Ip("\\plusmn","\\pm"),Ip("\\rarr","\\rightarrow"),Ip("\\rArr","\\Rightarrow"),Ip("\\Rarr","\\Rightarrow"),Ip("\\real","\\Re"),Ip("\\reals","\\mathbb{R}"),Ip("\\Reals","\\mathbb{R}"),Ip("\\Rho","\\mathrm{P}"),Ip("\\sdot","\\cdot"),Ip("\\sect","\\S"),Ip("\\spades","\\spadesuit"),Ip("\\sub","\\subset"),Ip("\\sube","\\subseteq"),Ip("\\supe","\\supseteq"),Ip("\\Tau","\\mathrm{T}"),Ip("\\thetasym","\\vartheta"),Ip("\\weierp","\\wp"),Ip("\\Zeta","\\mathrm{Z}"),Ip("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),Ip("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),Ip("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),Ip("\\bra","\\mathinner{\\langle{#1}|}"),Ip("\\ket","\\mathinner{|{#1}\\rangle}"),Ip("\\braket","\\mathinner{\\langle{#1}\\rangle}"),Ip("\\Bra","\\left\\langle#1\\right|"),Ip("\\Ket","\\left|#1\\right\\rangle");var Dh=e=>t=>{var r=t.consumeArg().tokens,n=t.consumeArg().tokens,i=t.consumeArg().tokens,a=t.consumeArg().tokens,o=t.macros.get("|"),s=t.macros.get("\\|");t.macros.beginGroup();var l=t=>r=>{e&&(r.macros.set("|",o),i.length&&r.macros.set("\\|",s));var a=t;return!t&&i.length&&"|"===r.future().text&&(r.popToken(),a=!0),{tokens:a?i:n,numArgs:0}};t.macros.set("|",l(!1)),i.length&&t.macros.set("\\|",l(!0));var c=t.consumeArg().tokens,u=t.expandTokens([...a,...c,...r]);return t.macros.endGroup(),{tokens:u.reverse(),numArgs:0}};Ip("\\bra@ket",Dh(!1)),Ip("\\bra@set",Dh(!0)),Ip("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}"),Ip("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}"),Ip("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}"),Ip("\\angln","{\\angl n}"),Ip("\\blue","\\textcolor{##6495ed}{#1}"),Ip("\\orange","\\textcolor{##ffa500}{#1}"),Ip("\\pink","\\textcolor{##ff00af}{#1}"),Ip("\\red","\\textcolor{##df0030}{#1}"),Ip("\\green","\\textcolor{##28ae7b}{#1}"),Ip("\\gray","\\textcolor{gray}{#1}"),Ip("\\purple","\\textcolor{##9d38bd}{#1}"),Ip("\\blueA","\\textcolor{##ccfaff}{#1}"),Ip("\\blueB","\\textcolor{##80f6ff}{#1}"),Ip("\\blueC","\\textcolor{##63d9ea}{#1}"),Ip("\\blueD","\\textcolor{##11accd}{#1}"),Ip("\\blueE","\\textcolor{##0c7f99}{#1}"),Ip("\\tealA","\\textcolor{##94fff5}{#1}"),Ip("\\tealB","\\textcolor{##26edd5}{#1}"),Ip("\\tealC","\\textcolor{##01d1c1}{#1}"),Ip("\\tealD","\\textcolor{##01a995}{#1}"),Ip("\\tealE","\\textcolor{##208170}{#1}"),Ip("\\greenA","\\textcolor{##b6ffb0}{#1}"),Ip("\\greenB","\\textcolor{##8af281}{#1}"),Ip("\\greenC","\\textcolor{##74cf70}{#1}"),Ip("\\greenD","\\textcolor{##1fab54}{#1}"),Ip("\\greenE","\\textcolor{##0d923f}{#1}"),Ip("\\goldA","\\textcolor{##ffd0a9}{#1}"),Ip("\\goldB","\\textcolor{##ffbb71}{#1}"),Ip("\\goldC","\\textcolor{##ff9c39}{#1}"),Ip("\\goldD","\\textcolor{##e07d10}{#1}"),Ip("\\goldE","\\textcolor{##a75a05}{#1}"),Ip("\\redA","\\textcolor{##fca9a9}{#1}"),Ip("\\redB","\\textcolor{##ff8482}{#1}"),Ip("\\redC","\\textcolor{##f9685d}{#1}"),Ip("\\redD","\\textcolor{##e84d39}{#1}"),Ip("\\redE","\\textcolor{##bc2612}{#1}"),Ip("\\maroonA","\\textcolor{##ffbde0}{#1}"),Ip("\\maroonB","\\textcolor{##ff92c6}{#1}"),Ip("\\maroonC","\\textcolor{##ed5fa6}{#1}"),Ip("\\maroonD","\\textcolor{##ca337c}{#1}"),Ip("\\maroonE","\\textcolor{##9e034e}{#1}"),Ip("\\purpleA","\\textcolor{##ddd7ff}{#1}"),Ip("\\purpleB","\\textcolor{##c6b9fc}{#1}"),Ip("\\purpleC","\\textcolor{##aa87ff}{#1}"),Ip("\\purpleD","\\textcolor{##7854ab}{#1}"),Ip("\\purpleE","\\textcolor{##543b78}{#1}"),Ip("\\mintA","\\textcolor{##f5f9e8}{#1}"),Ip("\\mintB","\\textcolor{##edf2df}{#1}"),Ip("\\mintC","\\textcolor{##e0e5cc}{#1}"),Ip("\\grayA","\\textcolor{##f6f7f7}{#1}"),Ip("\\grayB","\\textcolor{##f0f1f2}{#1}"),Ip("\\grayC","\\textcolor{##e3e5e6}{#1}"),Ip("\\grayD","\\textcolor{##d6d8da}{#1}"),Ip("\\grayE","\\textcolor{##babec2}{#1}"),Ip("\\grayF","\\textcolor{##888d93}{#1}"),Ip("\\grayG","\\textcolor{##626569}{#1}"),Ip("\\grayH","\\textcolor{##3b3e40}{#1}"),Ip("\\grayI","\\textcolor{##21242c}{#1}"),Ip("\\kaBlue","\\textcolor{##314453}{#1}"),Ip("\\kaGreen","\\textcolor{##71B307}{#1}");var Xh={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class jh{constructor(e,t,r){this.settings=t,this.expansionCount=0,this.feed(e),this.macros=new Wh(Nh,t.macros),this.mode=r,this.stack=[]}feed(e){this.lexer=new Fh(e,this.settings)}switchMode(e){this.mode=e}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return 0===this.stack.length&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(e){this.stack.push(e)}pushTokens(e){this.stack.push(...e)}scanArgument(e){var t,r,n;if(e){if(this.consumeSpaces(),"["!==this.future().text)return null;t=this.popToken(),({tokens:n,end:r}=this.consumeArg(["]"]))}else({tokens:n,start:t,end:r}=this.consumeArg());return this.pushToken(new Bp("EOF",r.loc)),this.pushTokens(n),new Bp("",Lp.range(t,r))}consumeSpaces(){for(;" "===this.future().text;)this.stack.pop()}consumeArg(e){var t=[],r=e&&e.length>0;r||this.consumeSpaces();var n,i=this.future(),a=0,o=0;do{if(n=this.popToken(),t.push(n),"{"===n.text)++a;else if("}"===n.text){if(-1===--a)throw new Yl("Extra }",n)}else if("EOF"===n.text)throw new Yl("Unexpected end of input in a macro argument, expected '"+(e&&r?e[o]:"}")+"'",n);if(e&&r)if((0===a||1===a&&"{"===e[o])&&n.text===e[o]){if(++o===e.length){t.splice(-o,o);break}}else o=0}while(0!==a||r);return"{"===i.text&&"}"===t[t.length-1].text&&(t.pop(),t.shift()),t.reverse(),{tokens:t,start:i,end:n}}consumeArgs(e,t){if(t){if(t.length!==e+1)throw new Yl("The length of delimiters doesn't match the number of args!");for(var r=t[0],n=0;n<r.length;n++){var i=this.popToken();if(r[n]!==i.text)throw new Yl("Use of the macro doesn't match its definition",i)}}for(var a=[],o=0;o<e;o++)a.push(this.consumeArg(t&&t[o+1]).tokens);return a}countExpansion(e){if(this.expansionCount+=e,this.expansionCount>this.settings.maxExpand)throw new Yl("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(e){var t=this.popToken(),r=t.text,n=t.noexpand?null:this._getExpansion(r);if(null==n||e&&n.unexpandable){if(e&&null==n&&"\\"===r[0]&&!this.isDefined(r))throw new Yl("Undefined control sequence: "+r);return this.pushToken(t),!1}this.countExpansion(1);var i=n.tokens,a=this.consumeArgs(n.numArgs,n.delimiters);if(n.numArgs)for(var o=(i=i.slice()).length-1;o>=0;--o){var s=i[o];if("#"===s.text){if(0===o)throw new Yl("Incomplete placeholder at end of macro body",s);if("#"===(s=i[--o]).text)i.splice(o+1,1);else{if(!/^[1-9]$/.test(s.text))throw new Yl("Not a valid argument number",s);i.splice(o,2,...a[+s.text-1])}}}return this.pushTokens(i),i.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(!1===this.expandOnce()){var e=this.stack.pop();return e.treatAsRelax&&(e.text="\\relax"),e}}expandMacro(e){return this.macros.has(e)?this.expandTokens([new Bp(e)]):void 0}expandTokens(e){var t=[],r=this.stack.length;for(this.pushTokens(e);this.stack.length>r;)if(!1===this.expandOnce(!0)){var n=this.stack.pop();n.treatAsRelax&&(n.noexpand=!1,n.treatAsRelax=!1),t.push(n)}return this.countExpansion(t.length),t}expandMacroAsText(e){var t=this.expandMacro(e);return t?t.map(e=>e.text).join(""):t}_getExpansion(e){var t=this.macros.get(e);if(null==t)return t;if(1===e.length){var r=this.lexer.catcodes[e];if(null!=r&&13!==r)return}var n="function"==typeof t?t(this):t;if("string"==typeof n){var i=0;if(n.includes("#"))for(var a=n.replace(/##/g,"");a.includes("#"+(i+1));)++i;for(var o=new Fh(n,this.settings),s=[],l=o.lex();"EOF"!==l.text;)s.push(l),l=o.lex();return s.reverse(),{tokens:s,numArgs:i}}return n}isDefined(e){return this.macros.has(e)||xh.hasOwnProperty(e)||Gc.math.hasOwnProperty(e)||Gc.text.hasOwnProperty(e)||Xh.hasOwnProperty(e)}isExpandable(e){var t=this.macros.get(e);return null!=t?"string"==typeof t||"function"==typeof t||!t.unexpandable:xh.hasOwnProperty(e)&&!xh[e].primitive}}var Mh=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,zh=Object.freeze({"₊":"+","₋":"-","₌":"=","₍":"(","₎":")","₀":"0","₁":"1","₂":"2","₃":"3","₄":"4","₅":"5","₆":"6","₇":"7","₈":"8","₉":"9","ₐ":"a","ₑ":"e","ₕ":"h","ᵢ":"i","ⱼ":"j","ₖ":"k","ₗ":"l","ₘ":"m","ₙ":"n","ₒ":"o","ₚ":"p","ᵣ":"r","ₛ":"s","ₜ":"t","ᵤ":"u","ᵥ":"v","ₓ":"x","ᵦ":"β","ᵧ":"γ","ᵨ":"ρ","ᵩ":"ϕ","ᵪ":"χ","⁺":"+","⁻":"-","⁼":"=","⁽":"(","⁾":")","⁰":"0","¹":"1","²":"2","³":"3","⁴":"4","⁵":"5","⁶":"6","⁷":"7","⁸":"8","⁹":"9","ᴬ":"A","ᴮ":"B","ᴰ":"D","ᴱ":"E","ᴳ":"G","ᴴ":"H","ᴵ":"I","ᴶ":"J","ᴷ":"K","ᴸ":"L","ᴹ":"M","ᴺ":"N","ᴼ":"O","ᴾ":"P","ᴿ":"R","ᵀ":"T","ᵁ":"U","ⱽ":"V","ᵂ":"W","ᵃ":"a","ᵇ":"b","ᶜ":"c","ᵈ":"d","ᵉ":"e","ᶠ":"f","ᵍ":"g","ʰ":"h","ⁱ":"i","ʲ":"j","ᵏ":"k","ˡ":"l","ᵐ":"m","ⁿ":"n","ᵒ":"o","ᵖ":"p","ʳ":"r","ˢ":"s","ᵗ":"t","ᵘ":"u","ᵛ":"v","ʷ":"w","ˣ":"x","ʸ":"y","ᶻ":"z","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),Gh={"́":{text:"\\'",math:"\\acute"},"̀":{text:"\\`",math:"\\grave"},"̈":{text:'\\"',math:"\\ddot"},"̃":{text:"\\~",math:"\\tilde"},"̄":{text:"\\=",math:"\\bar"},"̆":{text:"\\u",math:"\\breve"},"̌":{text:"\\v",math:"\\check"},"̂":{text:"\\^",math:"\\hat"},"̇":{text:"\\.",math:"\\dot"},"̊":{text:"\\r",math:"\\mathring"},"̋":{text:"\\H"},"̧":{text:"\\c"}},Zh={"á":"á","à":"à","ä":"ä","ǟ":"ǟ","ã":"ã","ā":"ā","ă":"ă","ắ":"ắ","ằ":"ằ","ẵ":"ẵ","ǎ":"ǎ","â":"â","ấ":"ấ","ầ":"ầ","ẫ":"ẫ","ȧ":"ȧ","ǡ":"ǡ","å":"å","ǻ":"ǻ","ḃ":"ḃ","ć":"ć","ḉ":"ḉ","č":"č","ĉ":"ĉ","ċ":"ċ","ç":"ç","ď":"ď","ḋ":"ḋ","ḑ":"ḑ","é":"é","è":"è","ë":"ë","ẽ":"ẽ","ē":"ē","ḗ":"ḗ","ḕ":"ḕ","ĕ":"ĕ","ḝ":"ḝ","ě":"ě","ê":"ê","ế":"ế","ề":"ề","ễ":"ễ","ė":"ė","ȩ":"ȩ","ḟ":"ḟ","ǵ":"ǵ","ḡ":"ḡ","ğ":"ğ","ǧ":"ǧ","ĝ":"ĝ","ġ":"ġ","ģ":"ģ","ḧ":"ḧ","ȟ":"ȟ","ĥ":"ĥ","ḣ":"ḣ","ḩ":"ḩ","í":"í","ì":"ì","ï":"ï","ḯ":"ḯ","ĩ":"ĩ","ī":"ī","ĭ":"ĭ","ǐ":"ǐ","î":"î","ǰ":"ǰ","ĵ":"ĵ","ḱ":"ḱ","ǩ":"ǩ","ķ":"ķ","ĺ":"ĺ","ľ":"ľ","ļ":"ļ","ḿ":"ḿ","ṁ":"ṁ","ń":"ń","ǹ":"ǹ","ñ":"ñ","ň":"ň","ṅ":"ṅ","ņ":"ņ","ó":"ó","ò":"ò","ö":"ö","ȫ":"ȫ","õ":"õ","ṍ":"ṍ","ṏ":"ṏ","ȭ":"ȭ","ō":"ō","ṓ":"ṓ","ṑ":"ṑ","ŏ":"ŏ","ǒ":"ǒ","ô":"ô","ố":"ố","ồ":"ồ","ỗ":"ỗ","ȯ":"ȯ","ȱ":"ȱ","ő":"ő","ṕ":"ṕ","ṗ":"ṗ","ŕ":"ŕ","ř":"ř","ṙ":"ṙ","ŗ":"ŗ","ś":"ś","ṥ":"ṥ","š":"š","ṧ":"ṧ","ŝ":"ŝ","ṡ":"ṡ","ş":"ş","ẗ":"ẗ","ť":"ť","ṫ":"ṫ","ţ":"ţ","ú":"ú","ù":"ù","ü":"ü","ǘ":"ǘ","ǜ":"ǜ","ǖ":"ǖ","ǚ":"ǚ","ũ":"ũ","ṹ":"ṹ","ū":"ū","ṻ":"ṻ","ŭ":"ŭ","ǔ":"ǔ","û":"û","ů":"ů","ű":"ű","ṽ":"ṽ","ẃ":"ẃ","ẁ":"ẁ","ẅ":"ẅ","ŵ":"ŵ","ẇ":"ẇ","ẘ":"ẘ","ẍ":"ẍ","ẋ":"ẋ","ý":"ý","ỳ":"ỳ","ÿ":"ÿ","ỹ":"ỹ","ȳ":"ȳ","ŷ":"ŷ","ẏ":"ẏ","ẙ":"ẙ","ź":"ź","ž":"ž","ẑ":"ẑ","ż":"ż","Á":"Á","À":"À","Ä":"Ä","Ǟ":"Ǟ","Ã":"Ã","Ā":"Ā","Ă":"Ă","Ắ":"Ắ","Ằ":"Ằ","Ẵ":"Ẵ","Ǎ":"Ǎ","Â":"Â","Ấ":"Ấ","Ầ":"Ầ","Ẫ":"Ẫ","Ȧ":"Ȧ","Ǡ":"Ǡ","Å":"Å","Ǻ":"Ǻ","Ḃ":"Ḃ","Ć":"Ć","Ḉ":"Ḉ","Č":"Č","Ĉ":"Ĉ","Ċ":"Ċ","Ç":"Ç","Ď":"Ď","Ḋ":"Ḋ","Ḑ":"Ḑ","É":"É","È":"È","Ë":"Ë","Ẽ":"Ẽ","Ē":"Ē","Ḗ":"Ḗ","Ḕ":"Ḕ","Ĕ":"Ĕ","Ḝ":"Ḝ","Ě":"Ě","Ê":"Ê","Ế":"Ế","Ề":"Ề","Ễ":"Ễ","Ė":"Ė","Ȩ":"Ȩ","Ḟ":"Ḟ","Ǵ":"Ǵ","Ḡ":"Ḡ","Ğ":"Ğ","Ǧ":"Ǧ","Ĝ":"Ĝ","Ġ":"Ġ","Ģ":"Ģ","Ḧ":"Ḧ","Ȟ":"Ȟ","Ĥ":"Ĥ","Ḣ":"Ḣ","Ḩ":"Ḩ","Í":"Í","Ì":"Ì","Ï":"Ï","Ḯ":"Ḯ","Ĩ":"Ĩ","Ī":"Ī","Ĭ":"Ĭ","Ǐ":"Ǐ","Î":"Î","İ":"İ","Ĵ":"Ĵ","Ḱ":"Ḱ","Ǩ":"Ǩ","Ķ":"Ķ","Ĺ":"Ĺ","Ľ":"Ľ","Ļ":"Ļ","Ḿ":"Ḿ","Ṁ":"Ṁ","Ń":"Ń","Ǹ":"Ǹ","Ñ":"Ñ","Ň":"Ň","Ṅ":"Ṅ","Ņ":"Ņ","Ó":"Ó","Ò":"Ò","Ö":"Ö","Ȫ":"Ȫ","Õ":"Õ","Ṍ":"Ṍ","Ṏ":"Ṏ","Ȭ":"Ȭ","Ō":"Ō","Ṓ":"Ṓ","Ṑ":"Ṑ","Ŏ":"Ŏ","Ǒ":"Ǒ","Ô":"Ô","Ố":"Ố","Ồ":"Ồ","Ỗ":"Ỗ","Ȯ":"Ȯ","Ȱ":"Ȱ","Ő":"Ő","Ṕ":"Ṕ","Ṗ":"Ṗ","Ŕ":"Ŕ","Ř":"Ř","Ṙ":"Ṙ","Ŗ":"Ŗ","Ś":"Ś","Ṥ":"Ṥ","Š":"Š","Ṧ":"Ṧ","Ŝ":"Ŝ","Ṡ":"Ṡ","Ş":"Ş","Ť":"Ť","Ṫ":"Ṫ","Ţ":"Ţ","Ú":"Ú","Ù":"Ù","Ü":"Ü","Ǘ":"Ǘ","Ǜ":"Ǜ","Ǖ":"Ǖ","Ǚ":"Ǚ","Ũ":"Ũ","Ṹ":"Ṹ","Ū":"Ū","Ṻ":"Ṻ","Ŭ":"Ŭ","Ǔ":"Ǔ","Û":"Û","Ů":"Ů","Ű":"Ű","Ṽ":"Ṽ","Ẃ":"Ẃ","Ẁ":"Ẁ","Ẅ":"Ẅ","Ŵ":"Ŵ","Ẇ":"Ẇ","Ẍ":"Ẍ","Ẋ":"Ẋ","Ý":"Ý","Ỳ":"Ỳ","Ÿ":"Ÿ","Ỹ":"Ỹ","Ȳ":"Ȳ","Ŷ":"Ŷ","Ẏ":"Ẏ","Ź":"Ź","Ž":"Ž","Ẑ":"Ẑ","Ż":"Ż","ά":"ά","ὰ":"ὰ","ᾱ":"ᾱ","ᾰ":"ᾰ","έ":"έ","ὲ":"ὲ","ή":"ή","ὴ":"ὴ","ί":"ί","ὶ":"ὶ","ϊ":"ϊ","ΐ":"ΐ","ῒ":"ῒ","ῑ":"ῑ","ῐ":"ῐ","ό":"ό","ὸ":"ὸ","ύ":"ύ","ὺ":"ὺ","ϋ":"ϋ","ΰ":"ΰ","ῢ":"ῢ","ῡ":"ῡ","ῠ":"ῠ","ώ":"ώ","ὼ":"ὼ","Ύ":"Ύ","Ὺ":"Ὺ","Ϋ":"Ϋ","Ῡ":"Ῡ","Ῠ":"Ῠ","Ώ":"Ώ","Ὼ":"Ὼ"};class Hh{constructor(e,t){this.mode="math",this.gullet=new jh(e,t,this.mode),this.settings=t,this.leftrightDepth=0,this.nextToken=null}expect(e,t){if(void 0===t&&(t=!0),this.fetch().text!==e)throw new Yl("Expected '"+e+"', got '"+this.fetch().text+"'",this.fetch());t&&this.consume()}consume(){this.nextToken=null}fetch(){return null==this.nextToken&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(e){this.mode=e,this.gullet.switchMode(e)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var e=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),e}finally{this.gullet.endGroups()}}subparse(e){var t=this.nextToken;this.consume(),this.gullet.pushToken(new Bp("}")),this.gullet.pushTokens(e);var r=this.parseExpression(!1);return this.expect("}"),this.nextToken=t,r}parseExpression(e,t){for(var r=[];;){"math"===this.mode&&this.consumeSpaces();var n=this.fetch();if(Hh.endOfExpression.has(n.text))break;if(t&&n.text===t)break;if(e&&xh[n.text]&&xh[n.text].infix)break;var i=this.parseAtom(t);if(!i)break;"internal"!==i.type&&r.push(i)}return"text"===this.mode&&this.formLigatures(r),this.handleInfixNodes(r)}handleInfixNodes(e){for(var t,r=-1,n=0;n<e.length;n++){var i=e[n];if("infix"===i.type){if(-1!==r)throw new Yl("only one infix operator per group",i.token);r=n,t=i.replaceWith}}if(-1!==r&&t){var a,o,s=e.slice(0,r),l=e.slice(r+1);return a=1===s.length&&"ordgroup"===s[0].type?s[0]:{type:"ordgroup",mode:this.mode,body:s},o=1===l.length&&"ordgroup"===l[0].type?l[0]:{type:"ordgroup",mode:this.mode,body:l},["\\\\abovefrac"===t?this.callFunction(t,[a,e[r],o],[]):this.callFunction(t,[a,o],[])]}return e}handleSupSubscript(e){var t,r=this.fetch(),n=r.text;this.consume(),this.consumeSpaces();do{var i;t=this.parseGroup(e)}while("internal"===(null==(i=t)?void 0:i.type));if(!t)throw new Yl("Expected group after '"+n+"'",r);return t}formatUnsupportedCmd(e){for(var t=[],r=0;r<e.length;r++)t.push({type:"textord",mode:"text",text:e[r]});var n={type:"text",mode:this.mode,body:t};return{type:"color",mode:this.mode,color:this.settings.errorColor,body:[n]}}parseAtom(e){var t,r,n=this.parseGroup("atom",e);if("internal"===(null==n?void 0:n.type))return n;if("text"===this.mode)return n;for(;;){this.consumeSpaces();var i=this.fetch();if("\\limits"===i.text||"\\nolimits"===i.text){if(n&&"op"===n.type){var a="\\limits"===i.text;n.limits=a,n.alwaysHandleSupSub=!0}else{if(!n||"operatorname"!==n.type)throw new Yl("Limit controls must follow a math operator",i);n.alwaysHandleSupSub&&(n.limits="\\limits"===i.text)}this.consume()}else if("^"===i.text){if(t)throw new Yl("Double superscript",i);t=this.handleSupSubscript("superscript")}else if("_"===i.text){if(r)throw new Yl("Double subscript",i);r=this.handleSupSubscript("subscript")}else if("'"===i.text){if(t)throw new Yl("Double superscript",i);var o={type:"textord",mode:this.mode,text:"\\prime"},s=[o];for(this.consume();"'"===this.fetch().text;)s.push(o),this.consume();"^"===this.fetch().text&&s.push(this.handleSupSubscript("superscript")),t={type:"ordgroup",mode:this.mode,body:s}}else{if(!zh[i.text])break;var l=Mh.test(i.text),c=[];for(c.push(new Bp(zh[i.text])),this.consume();;){var u=this.fetch().text;if(!zh[u])break;if(Mh.test(u)!==l)break;c.unshift(new Bp(zh[u])),this.consume()}var d=this.subparse(c);l?r={type:"ordgroup",mode:"math",body:d}:t={type:"ordgroup",mode:"math",body:d}}}return t||r?{type:"supsub",mode:this.mode,base:n,sup:t,sub:r}:n}parseFunction(e,t){var r=this.fetch(),n=r.text,i=xh[n];if(!i)return null;if(this.consume(),t&&"atom"!==t&&!i.allowedInArgument)throw new Yl("Got function '"+n+"' with no arguments"+(t?" as "+t:""),r);if("text"===this.mode&&!i.allowedInText)throw new Yl("Can't use function '"+n+"' in text mode",r);if("math"===this.mode&&!1===i.allowedInMath)throw new Yl("Can't use function '"+n+"' in math mode",r);var{args:a,optArgs:o}=this.parseArguments(n,i);return this.callFunction(n,a,o,r,e)}callFunction(e,t,r,n,i){var a={funcName:e,parser:this,token:n,breakOnTokenText:i},o=xh[e];if(o&&o.handler)return o.handler(a,t,r);throw new Yl("No function handler for "+e)}parseArguments(e,t){var r=t.numArgs+t.numOptionalArgs;if(0===r)return{args:[],optArgs:[]};for(var n=[],i=[],a=0;a<r;a++){var o=t.argTypes&&t.argTypes[a],s=a<t.numOptionalArgs;("primitive"in t&&t.primitive&&null==o||"sqrt"===t.type&&1===a&&null==i[0])&&(o="primitive");var l=this.parseGroupOfType("argument to '"+e+"'",o,s);if(s)i.push(l);else{if(null==l)throw new Yl("Null argument, please report this as a bug");n.push(l)}}return{args:n,optArgs:i}}parseGroupOfType(e,t,r){switch(t){case"color":return this.parseColorGroup(r);case"size":return this.parseSizeGroup(r);case"url":return this.parseUrlGroup(r);case"math":case"text":return this.parseArgumentGroup(r,t);case"hbox":var n=this.parseArgumentGroup(r,"text");return null!=n?{type:"styling",mode:n.mode,body:[n],style:"text"}:null;case"raw":var i=this.parseStringGroup("raw",r);return null!=i?{type:"raw",mode:"text",string:i.text}:null;case"primitive":if(r)throw new Yl("A primitive argument cannot be optional");var a=this.parseGroup(e);if(null==a)throw new Yl("Expected group as "+e,this.fetch());return a;case"original":case null:case void 0:return this.parseArgumentGroup(r);default:throw new Yl("Unknown group type as "+e,this.fetch())}}consumeSpaces(){for(;" "===this.fetch().text;)this.consume()}parseStringGroup(e,t){var r=this.gullet.scanArgument(t);if(null==r)return null;for(var n,i="";"EOF"!==(n=this.fetch()).text;)i+=n.text,this.consume();return this.consume(),r.text=i,r}parseRegexGroup(e,t){for(var r,n=this.fetch(),i=n,a="";"EOF"!==(r=this.fetch()).text&&e.test(a+r.text);)a+=(i=r).text,this.consume();if(""===a)throw new Yl("Invalid "+t+": '"+n.text+"'",n);return n.range(i,a)}parseColorGroup(e){var t=this.parseStringGroup("color",e);if(null==t)return null;var r=/^(#[a-f0-9]{3,4}|#[a-f0-9]{6}|#[a-f0-9]{8}|[a-f0-9]{6}|[a-z]+)$/i.exec(t.text);if(!r)throw new Yl("Invalid color: '"+t.text+"'",t);var n=r[0];return/^[0-9a-f]{6}$/i.test(n)&&(n="#"+n),{type:"color-token",mode:this.mode,color:n}}parseSizeGroup(e){var t,r=!1;if(this.gullet.consumeSpaces(),!(t=e||"{"===this.gullet.future().text?this.parseStringGroup("size",e):this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size")))return null;e||0!==t.text.length||(t.text="0pt",r=!0);var n=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t.text);if(!n)throw new Yl("Invalid size: '"+t.text+"'",t);var i={number:+(n[1]+n[2]),unit:n[3]};if(!Ac(i))throw new Yl("Invalid unit: '"+i.unit+"'",t);return{type:"size",mode:this.mode,value:i,isBlank:r}}parseUrlGroup(e){this.gullet.lexer.setCatcode("%",13),this.gullet.lexer.setCatcode("~",12);var t=this.parseStringGroup("url",e);if(this.gullet.lexer.setCatcode("%",14),this.gullet.lexer.setCatcode("~",13),null==t)return null;var r=t.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:r}}parseArgumentGroup(e,t){var r=this.gullet.scanArgument(e);if(null==r)return null;var n=this.mode;t&&this.switchMode(t),this.gullet.beginGroup();var i=this.parseExpression(!1,"EOF");this.expect("EOF"),this.gullet.endGroup();var a={type:"ordgroup",mode:this.mode,loc:r.loc,body:i};return t&&this.switchMode(n),a}parseGroup(e,t){var r,n=this.fetch(),i=n.text;if("{"===i||"\\begingroup"===i){this.consume();var a="{"===i?"}":"\\endgroup";this.gullet.beginGroup();var o=this.parseExpression(!1,a),s=this.fetch();this.expect(a),this.gullet.endGroup(),r={type:"ordgroup",mode:this.mode,loc:Lp.range(n,s),body:o,semisimple:"\\begingroup"===i||void 0}}else if(null==(r=this.parseFunction(t,e)||this.parseSymbol())&&"\\"===i[0]&&!Xh.hasOwnProperty(i)){if(this.settings.throwOnError)throw new Yl("Undefined control sequence: "+i,n);r=this.formatUnsupportedCmd(i),this.consume()}return r}formLigatures(e){for(var t=e.length-1,r=0;r<t;++r){var n=e[r];if("textord"===n.type){var i=n.text,a=e[r+1];if(a&&"textord"===a.type){if("-"===i&&"-"===a.text){var o=e[r+2];r+1<t&&o&&"textord"===o.type&&"-"===o.text?(e.splice(r,3,{type:"textord",mode:"text",loc:Lp.range(n,o),text:"---"}),t-=2):(e.splice(r,2,{type:"textord",mode:"text",loc:Lp.range(n,a),text:"--"}),t-=1)}"'"!==i&&"`"!==i||a.text!==i||(e.splice(r,2,{type:"textord",mode:"text",loc:Lp.range(n,a),text:i+i}),t-=1)}}}}parseSymbol(){var e=this.fetch(),t=e.text;if(/^\\verb[^a-zA-Z]/.test(t)){this.consume();var r=t.slice(5),n="*"===r.charAt(0);if(n&&(r=r.slice(1)),r.length<2||r.charAt(0)!==r.slice(-1))throw new Yl("\\verb assertion failed --\n please report what input caused this bug");return{type:"verb",mode:"text",body:r=r.slice(1,-1),star:n}}Zh.hasOwnProperty(t[0])&&!Gc[this.mode][t[0]]&&(this.settings.strict&&"math"===this.mode&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+t[0]+'" used in math mode',e),t=Zh[t[0]]+t.slice(1));var i,a=Th.exec(t);if(a&&("i"===(t=t.substring(0,a.index))?t="ı":"j"===t&&(t="ȷ")),Gc[this.mode][t]){this.settings.strict&&"math"===this.mode&&"ÐÞþ".includes(t)&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+t[0]+'" used in math mode',e);var o,s=Gc[this.mode][t].group,l=Lp.range(e);if(Mc.hasOwnProperty(s)){var c=s;o={type:"atom",mode:this.mode,family:c,loc:l,text:t}}else o={type:s,mode:this.mode,loc:l,text:t};i=o}else{if(!(t.charCodeAt(0)>=128))return null;this.settings.strict&&(gc(t.charCodeAt(0))?"math"===this.mode&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+t[0]+'" used in math mode',e):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+t[0]+'" ('+t.charCodeAt(0)+")",e)),i={type:"textord",mode:"text",loc:Lp.range(e),text:t}}if(this.consume(),a)for(var u=0;u<a[0].length;u++){var d=a[0][u];if(!Gh[d])throw new Yl("Unknown accent ' "+d+"'",e);var p=Gh[d][this.mode]||Gh[d].text;if(!p)throw new Yl("Accent "+d+" unsupported in "+this.mode+" mode",e);i={type:"accent",mode:this.mode,loc:Lp.range(e),label:p,isStretchy:!1,isShifty:!0,base:i}}return i}}Hh.endOfExpression=new Set(["}","\\endgroup","\\end","\\right","&"]);"undefined"!=typeof document&&document.compatMode;var Yh=function(e,t){var r=new oc(t);try{return function(e,t,r){var n,i=function(e){return new Fd({style:e.displayMode?fc.DISPLAY:fc.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness})}(r);if("mathml"===r.output)return Rd(e,t,i,r.displayMode,!0);if("html"===r.output){var a=qd(e,i);n=Wu(["katex"],[a])}else{var o=Rd(e,t,i,r.displayMode,!1),s=qd(e,i);n=Wu(["katex"],[o,s])}return function(e,t){if(t.displayMode){var r=["katex-display"];t.leqno&&r.push("leqno"),t.fleqn&&r.push("fleqn"),e=Wu(r,[e])}return e}(n,r)}(function(e,t){if(!("string"==typeof e||e instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var r=new Hh(e,t);delete r.gullet.macros.current["\\df@tag"];var n=r.parse();if(delete r.gullet.macros.current["\\current@color"],delete r.gullet.macros.current["\\color"],r.gullet.macros.get("\\df@tag")){if(!t.displayMode)throw new Yl("\\tag works only in display equations");n=[{type:"tag",mode:"text",body:n,tag:r.subparse([new Bp("\\df@tag")])}]}return n}(e,r),e,r)}catch(n){return function(e,t,r){if(r.throwOnError||!(e instanceof Yl))throw e;var n=Wu(["katex-error"],[new Kc(t)]);return n.setAttribute("title",e.toString()),n.setAttribute("style","color:"+r.errorColor),n}(n,e,r)}},Qh=function(e,t){return Yh(e,t).toMarkup()};const Jh={};function _h(e){const t=e||Jh,r=this.data(),n=r.micromarkExtensions||(r.micromarkExtensions=[]),i=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),a=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);n.push(function(e){return{flow:{36:Ml},text:{36:Gl(e)}}}(t)),i.push(function(){return{enter:{mathFlow:function(e){this.enter({type:"math",meta:null,value:"",data:{hName:"pre",hChildren:[{type:"element",tagName:"code",properties:{className:["language-math","math-display"]},children:[]}]}},e)},mathFlowFenceMeta:function(){this.buffer()},mathText:function(e){this.enter({type:"inlineMath",value:"",data:{hName:"code",hProperties:{className:["language-math","math-inline"]},hChildren:[]}},e),this.buffer()}},exit:{mathFlow:function(e){const t=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),r=this.stack[this.stack.length-1];r.type,this.exit(e),r.value=t;const n=r.data.hChildren[0];n.type,n.tagName,n.children.push({type:"text",value:t}),this.data.mathFlowInside=void 0},mathFlowFence:function(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)},mathFlowFenceMeta:function(){const e=this.resume(),t=this.stack[this.stack.length-1];t.type,t.meta=e},mathFlowValue:e,mathText:function(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.type,this.exit(e),r.value=t,r.data.hChildren.push({type:"text",value:t})},mathTextData:e}};function e(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}}()),a.push(function(e){let t=(e||{}).singleDollarTextMath;return null==t&&(t=!0),r.peek=function(){return"$"},{unsafe:[{character:"\r",inConstruct:"mathFlowMeta"},{character:"\n",inConstruct:"mathFlowMeta"},{character:"$",after:t?void 0:"\\$",inConstruct:"phrasing"},{character:"$",inConstruct:"mathFlowMeta"},{atBreak:!0,character:"$",after:"\\$"}],handlers:{math:function(e,t,r,n){const i=e.value||"",a=r.createTracker(n),o="$".repeat(Math.max(Ks(i,"$")+1,2)),s=r.enter("mathFlow");let l=a.move(o);if(e.meta){const t=r.enter("mathFlowMeta");l+=a.move(r.safe(e.meta,{after:"\n",before:l,encode:["$"],...a.current()})),t()}return l+=a.move("\n"),i&&(l+=a.move(i+"\n")),l+=a.move(o),s(),l},inlineMath:r}};function r(e,r,n){let i=e.value||"",a=1;for(t||a++;new RegExp("(^|[^$])"+"\\$".repeat(a)+"([^$]|$)").test(i);)a++;const o="$".repeat(a);/[^ \r\n]/.test(i)&&(/^[ \r\n]/.test(i)&&/[ \r\n]$/.test(i)||/^\$|\$$/.test(i))&&(i=" "+i+" ");let s=-1;for(;++s<n.unsafe.length;){const e=n.unsafe[s];if(!e.atBreak)continue;const t=n.compilePattern(e);let r;for(;r=t.exec(i);){let e=r.index;10===i.codePointAt(e)&&13===i.codePointAt(e-1)&&e--,i=i.slice(0,e)+" "+i.slice(r.index+1)}}return o+i+o}}(t))}const $h=/[#.]/g;function eq(e,t,r){const n=r?function(e){const t=new Map;for(const r of e)t.set(r.toLowerCase(),r);return t}(r):void 0;return function(r,i,...a){let o;if(null==r){o={type:"root",children:[]};const e=i;a.unshift(e)}else{o=function(e,t){const r=e||"",n={};let i,a,o=0;for(;o<r.length;){$h.lastIndex=o;const e=$h.exec(r),t=r.slice(o,e?e.index:r.length);t&&(i?"#"===i?n.id=t:Array.isArray(n.className)?n.className.push(t):n.className=[t]:a=t,o+=t.length),e&&(i=e[0],o++)}return{type:"element",tagName:a||t||"div",properties:n,children:[]}}(r,t);const s=o.tagName.toLowerCase(),l=n?n.get(s):void 0;if(o.tagName=l||s,function(e){if(null===e||"object"!=typeof e||Array.isArray(e))return!0;if("string"!=typeof e.type)return!1;const t=e,r=Object.keys(e);for(const n of r){const e=t[n];if(e&&"object"==typeof e){if(!Array.isArray(e))return!0;const t=e;for(const e of t)if("number"!=typeof e&&"string"!=typeof e)return!0}}return!(!("children"in e)||!Array.isArray(e.children))}(i))a.unshift(i);else for(const[t,r]of Object.entries(i))tq(e,o.properties,t,r)}for(const e of a)rq(o.children,e);return"element"===o.type&&"template"===o.tagName&&(o.content={type:"root",children:o.children},o.children=[]),o}}function tq(e,t,r,n){const i=kr(e,r);let a;if(null!=n){if("number"==typeof n){if(Number.isNaN(n))return;a=n}else a="boolean"==typeof n?n:"string"==typeof n?i.spaceSeparated?Or(n):i.commaSeparated?Ht(n):i.commaOrSpaceSeparated?Or(Ht(n).join(" ")):nq(i,i.property,n):Array.isArray(n)?[...n]:"style"===i.property?function(e){const t=[];for(const[r,n]of Object.entries(e))t.push([r,n].join(": "));return t.join("; ")}(n):String(n);if(Array.isArray(a)){const e=[];for(const t of a)e.push(nq(i,i.property,t));a=e}"className"===i.property&&Array.isArray(t.className)&&(a=t.className.concat(a)),t[i.property]=a}}function rq(e,t){if(null==t);else if("number"==typeof t||"string"==typeof t)e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const r of t)rq(e,r);else{if("object"!=typeof t||!("type"in t))throw new Error("Expected node, nodes, or string, got `"+t+"`");"root"===t.type?rq(e,t.children):e.push(t)}}function nq(e,t,r){if("string"==typeof r){if(e.number&&r&&!Number.isNaN(Number(r)))return Number(r);if((e.boolean||e.overloadedBoolean)&&(""===r||nr(r)===nr(t)))return!0}return r}const iq=eq(Nr,"div"),aq=eq(Kr,"g",["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"]),oq="http://www.w3.org/1999/xhtml";function sq(e,t){const r=function(e,t){switch(e.nodeType){case 1:return function(e,t){const r=e.namespaceURI,n="http://www.w3.org/2000/svg"===r?aq:iq,i=r===oq?e.tagName.toLowerCase():e.tagName,a=r===oq&&"template"===i?e.content:e,o=e.getAttributeNames(),s={};let l=-1;for(;++l<o.length;)s[o[l]]=e.getAttribute(o[l])||"";return n(i,s,cq(a,t))}(e,t);case 3:return function(e){return{type:"text",value:e.nodeValue||""}}(e);case 8:return function(e){return{type:"comment",value:e.nodeValue||""}}(e);case 9:case 11:return lq(e,t);case 10:return{type:"doctype"};default:return}}(e,t);return r&&t.afterTransform&&t.afterTransform(e,r),r}function lq(e,t){return{type:"root",children:cq(e,t)}}function cq(e,t){const r=e.childNodes,n=[];let i=-1;for(;++i<r.length;){const e=sq(r[i],t);void 0!==e&&n.push(e)}return n}new DOMParser;const uq=function(e,t,r){const n=Ga(r);if(!e||!e.type||!e.children)throw new Error("Expected parent node");if("number"==typeof t){if(t<0||t===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index")}else if((t=e.children.indexOf(t))<0)throw new Error("Expected child node or index");for(;++t<e.children.length;)if(n(e.children[t],t,e))return e.children[t]},dq=function(e){if(null==e)return hq;if("string"==typeof e)return t=e,pq(function(e){return e.tagName===t});var t;if("object"==typeof e)return function(e){const t=[];let r=-1;for(;++r<e.length;)t[r]=dq(e[r]);return pq(function(...e){let r=-1;for(;++r<t.length;)if(t[r].apply(this,e))return!0;return!1})}(e);if("function"==typeof e)return pq(e);throw new Error("Expected function, string, or array as `test`")};function pq(e){return function(t,r,n){return Boolean(function(e){return null!==e&&"object"==typeof e&&"type"in e&&"tagName"in e}(t)&&e.call(this,t,"number"==typeof r?r:void 0,n||void 0))}}function hq(e){return Boolean(e&&"object"==typeof e&&"type"in e&&"element"===e.type&&"tagName"in e&&"string"==typeof e.tagName)}const qq=/\n/g,fq=/[\t ]+/g,mq=dq("br"),Vq=dq(function(e){return"td"===e.tagName||"th"===e.tagName}),gq=dq("p"),vq=dq("tr"),bq=dq(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",function(e){return Boolean((e.properties||{}).hidden)},function(e){return"dialog"===e.tagName&&!(e.properties||{}).open}]),yq=dq(["address","article","aside","blockquote","body","caption","center","dd","dialog","dir","dl","dt","div","figure","figcaption","footer","form,","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","legend","li","listing","main","menu","nav","ol","p","plaintext","pre","section","ul","xmp"]);function Sq(e,t,r){return"element"===e.type?function(e,t,r){const n=Uq(e,r),i=e.children||[];let a,o,s=-1,l=[];if(bq(e))return l;for(mq(e)||vq(e)&&uq(t,e,vq)?o="\n":gq(e)?(a=2,o=2):yq(e)&&(a=1,o=1);++s<i.length;)l=l.concat(Sq(i[s],e,{whitespace:n,breakBefore:s?void 0:a,breakAfter:s<i.length-1?mq(i[s+1]):o}));return Vq(e)&&uq(t,e,Vq)&&l.push("\t"),a&&l.unshift(a),o&&l.push(o),l}(e,t,r):"text"===e.type?"normal"===r.whitespace?Aq(e,r):function(e){return[String(e.value)]}(e):[]}function Aq(e,t){const r=String(e.value),n=[],i=[];let a=0;for(;a<=r.length;){qq.lastIndex=a;const e=qq.exec(r),i=e&&"index"in e?e.index:r.length;n.push(wq(r.slice(a,i).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),0!==a||t.breakBefore,i!==r.length||t.breakAfter)),a=i+1}let o,s=-1;for(;++s<n.length;)8203===n[s].charCodeAt(n[s].length-1)||s<n.length-1&&8203===n[s+1].charCodeAt(0)?(i.push(n[s]),o=void 0):n[s]?("number"==typeof o&&i.push(o),i.push(n[s]),o=0):0!==s&&s!==n.length-1||i.push(0);return i}function wq(e,t,r){const n=[];let i,a=0;for(;a<e.length;){fq.lastIndex=a;const r=fq.exec(e);i=r?r.index:e.length,a||i||!r||t||n.push(""),a!==i&&n.push(e.slice(a,i)),a=r?i+r[0].length:i}return a===i||r||n.push(""),n.join(" ")}function Uq(e,t){if("element"===e.type){const r=e.properties||{};switch(e.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return r.wrap?"pre-wrap":"pre";case"td":case"th":return r.noWrap?"nowrap":t.whitespace;case"textarea":return"pre-wrap"}}return t.whitespace}const xq={},Cq=[];function Rq(e){const t=e||xq;return function(e,r){_a(e,"element",function(e,n){const i=Array.isArray(e.properties.className)?e.properties.className:Cq,a=i.includes("language-math"),o=i.includes("math-display"),s=i.includes("math-inline");let l=o;if(!a&&!o&&!s)return;let c=n[n.length-1],u=e;if("code"===e.tagName&&a&&c&&"element"===c.type&&"pre"===c.tagName&&(u=c,c=n[n.length-2],l=!0),!c)return;const d=function(e){const t={whitespace:"pre"}||{},r="children"in e?e.children:[],n=yq(e),i=Uq(e,{whitespace:t.whitespace||"normal"}),a=[];"text"!==e.type&&"comment"!==e.type||a.push(...Aq(e,{breakBefore:!0,breakAfter:!0}));let o=-1;for(;++o<r.length;)a.push(...Sq(r[o],e,{whitespace:i,breakBefore:o?void 0:n,breakAfter:o<r.length-1?mq(r[o+1]):n}));const s=[];let l;for(o=-1;++o<a.length;){const e=a[o];"number"==typeof e?void 0!==l&&e>l&&(l=e):e&&(void 0!==l&&l>-1&&s.push("\n".repeat(l)||" "),l=-1,s.push(e))}return s.join("")}(u);let p;try{p=Qh(d,{...t,displayMode:l,throwOnError:!0})}catch(q){const i=q,a=i.name.toLowerCase();r.message("Could not render math with KaTeX",{ancestors:[...n,e],cause:i,place:e.position,ruleId:a,source:"rehype-katex"});try{p=Qh(d,{...t,displayMode:l,strict:"ignore",throwOnError:!1})}catch{p=[{type:"element",tagName:"span",properties:{className:["katex-error"],style:"color:"+(t.errorColor||"#cc0000"),title:String(q)},children:[{type:"text",value:d}]}]}}"string"==typeof p&&(p=function(e){const t=function(e){const t=document.createElement("template");return t.innerHTML=e,t.content}(e);return sq(t,{})||{type:"root",children:[]}}(p).children);const h=c.children.indexOf(u);return c.children.splice(h,1,...p),Ja})}}const Eq=({children:e})=>S.jsx("div",{className:"myReactMarkdown",children:S.jsx(Yo,{remarkPlugins:[_h,jl],rehypePlugins:[Rq],children:e})}),Tq=e=>{var n;const{knowledgeId:i,content:a,contentEditable:o,editCallBack:s,resetContentCallback:l,aiCreateContentCallback:c,aiCreateContent:u,createAiContenting:d,swapContentCallback:p,insertContentCallback:h,textSelectionEnable:q=!1,textAiConsultCallback:f,textAiConsulting:m,textAiConsultAnswer:V,contentMaxLength:g=1e3}=e,[v,b]=t.useState(!1),[y,A]=t.useState(a),[w,U]=t.useState(!1),[x,C]=t.useState(!1),[R,E]=t.useState("plain"),[T,k]=t.useState(""),[W,N]=t.useState(""),[K,P]=t.useState(null),[I,B]=t.useState(!1),[D,X]=t.useState({x:0,y:0}),[M,G]=t.useState(!1),[Z,Q]=t.useState(""),[J,_]=t.useState(!1),$=t.useRef(null),ee=t.useRef(null);t.useEffect(()=>{A(a)},[a]);const te=t.useMemo(()=>a?a.replace(/#{1,6}\s+/g,"").replace(/\*\*(.*?)\*\*/g,"$1").replace(/\*(.*?)\*/g,"$1").replace(/`([^`]+)`/g,"$1").replace(/~~(.*?)~~/g,"$1").replace(/\[([^\]]+)\]\([^)]+\)/g,"$1").replace(/!\[([^\]]*)\]\([^)]+\)/g,"$1").replace(/^\s*[-*+]\s+/gm,"").replace(/^\s*\d+\.\s+/gm,""):"",[a]);t.useEffect(()=>{if(!q||!$.current)return;const e=()=>{var e,t;const r=window.getSelection();if(r&&""!==r.toString().trim()){const n=r.getRangeAt(0),i=n.getBoundingClientRect(),a=null==(e=$.current)?void 0:e.getBoundingClientRect();if(a&&(null==(t=$.current)?void 0:t.contains(n.commonAncestorContainer))){const e=r.toString().trim();N(e),P({range:n,startContainer:n.startContainer,endContainer:n.endContainer,startOffset:n.startOffset,endOffset:n.endOffset});const t=i.left-a.left,o=i.top-a.top-50;let s=t;const l=220;s<0&&(s=0),s+l>a.width&&(s=a.width-l),X({x:s,y:o}),I||M||J||B(!0)}}else M||J||B(!1)},t=e=>{const t=document.querySelector(".selectionPopup");t&&t.contains(e.target)||$.current&&!$.current.contains(e.target)&&(B(!1),G(!1),_(!1))};return document.addEventListener("mouseup",e),document.addEventListener("click",t),()=>{document.removeEventListener("mouseup",e),document.removeEventListener("click",t)}},[I,M,J,q]),t.useEffect(()=>{W&&(B(!0),G(!1),_(!1))},[W]),t.useEffect(()=>{I||Q("")},[I]);const ie=e=>{if(e.stopPropagation(),K&&$.current){try{const{startContainer:e,startOffset:t,endContainer:n,endOffset:o}=K,l=((e,t,r,n,i)=>{var o,s;try{const l=document.createTreeWalker(e,NodeFilter.SHOW_TEXT,null);let c=null,u="",d=[];for(;c=l.nextNode();){const e=c.textContent||"";e.trim()&&(d.push({node:c,start:u.length,end:u.length+e.length}),u+=e)}let p=-1,h=-1;for(const e of d)e.node===t&&(p=e.start+Math.min(r,(null==(o=e.node.textContent)?void 0:o.length)||0)),e.node===n&&(h=e.start+Math.min(i,(null==(s=e.node.textContent)?void 0:s.length)||0));if(-1!==p&&-1!==h&&p<h){const e=u.substring(p,h),t=((e,t,r)=>{if(!t.trim())return-1;const n=[];let i=-1;const a=t.replace(/\s+/g," ").trim().toLowerCase(),o=e.toLowerCase();let s=0;for(;-1!==(i=o.indexOf(a,s));)n.push(i),s=i+1;if(0===n.length)return o.indexOf(a.substring(0,Math.min(20,a.length)));if(1===n.length)return n[0];const l=Math.floor(r*e.length);let c=n[0],u=Math.abs(n[0]-l);for(let d=1;d<n.length;d++){const e=Math.abs(n[d]-l);e<u&&(u=e,c=n[d])}return c})(a,e,p/u.length);if(-1!==t)return{startIndex:t,endIndex:t+e.length,selectedText:e}}}catch(l){}return null})($.current,e,t,n,o);if(l){const{startIndex:e,endIndex:t,selectedText:n}=l,a=y.substring(e,t);if("</span>"===y.substring(t,t+7))return void r.message.warning("已高亮,无需重复操作");const o=`<span style="color: #1677ff;">${a}</span>`,c=y.substring(0,e)+o+y.substring(t);return null==s||s({id:i,content:c,showTip:!1}),void B(!1)}}catch(t){}const e=K.range.toString().trim();if(!e)return;const n=e.replace(/\s+/g," ").trim(),o=n.toLowerCase(),l=$.current;l.scrollTop,l.clientHeight;let c=-1,u=0;for(;-1!==u;)if(u=te.toLowerCase().indexOf(o,u),-1!==u){c=u;break}if(-1!==c){let e=-1,t=Math.min(50,y.length-c);for(let r=Math.max(0,c-10);r<y.length;r++){const n=y.substring(r,r+t).toLowerCase();if(n.includes(o)){e=r+n.indexOf(o);break}}if(-1!==e){const t=`<span style="color: #1677ff;">${y.substring(e,e+n.length)}</span>`,r=y.substring(0,e)+t+y.substring(e+n.length);return null==s||s({id:i,content:r,showTip:!1}),void B(!1)}}r.message.warning("特殊语法无法高亮")}},ae=()=>{Q(""),null==f||f(W,Z),_(!0),G(!1)},oe=[{label:"通俗版",key:"plain",onClick:()=>{U(!0),null==c||c("通俗版"),E("plain"),C(!1)}},{label:"学术版",key:"academic",onClick:()=>{U(!0),null==c||c("学术版"),E("academic"),C(!1)}},{label:"类比版",key:"analogy",onClick:()=>{U(!0),null==c||c("类比版"),E("analogy"),C(!1)}},{label:"面试版",key:"interview",onClick:()=>{U(!0),C(!1),null==c||c("面试版"),E("interview")}},{label:"自定义",key:"custom",onClick:()=>{E("custom"),U(!1),k(""),C(!0)}}],se=()=>{const e=document.getElementById("knowledgeCard");e&&(e.scrollTop=110)};return S.jsxs("div",{className:"textExplanation",children:[o&&S.jsxs("div",{className:"editArea tailwind-scoped",children:[s&&!v&&S.jsx("button",{onClick:()=>b(!0),className:"p-2 hover:bg-gray-50 rounded-lg transition-colors group",children:S.jsx(z,{className:"w-5 h-5 text-gray-600 group-hover:text-blue-600"})}),!v&&S.jsx("button",{onClick:()=>{navigator.clipboard.writeText(a),r.message.success("复制成功")},className:"p-2 hover:bg-gray-50 rounded-lg transition-colors group",children:S.jsx(O,{className:"w-5 h-5 text-gray-600 group-hover:text-blue-600"})}),!v&&S.jsx(r.Dropdown,{menu:{items:oe},children:S.jsx("button",{className:"p-2 hover:bg-gray-50 rounded-lg transition-colors group",children:S.jsx(re,{className:"w-5 h-5 text-gray-600 group-hover:text-blue-600"})})}),v&&l&&S.jsx(r.Tooltip,{title:"恢复原文",children:S.jsx("button",{onClick:()=>{r.Modal.confirm({title:"确认恢复原文吗?",okText:"确认",okType:"danger",onOk:()=>{null==l||l(),b(!1)}})},className:"p-2 hover:bg-blue-50 rounded-lg transition-colors group",children:S.jsx(H,{className:"w-5 h-5 text-blue-600"})})}),v&&S.jsx("button",{onClick:()=>{null==s||s({content:y,id:i}),b(!1)},className:"p-2 hover:bg-green-50 rounded-lg transition-colors group",title:"保存",children:S.jsx(Y,{className:"w-5 h-5 text-green-600"})}),v&&S.jsx("div",{className:"tailwind-scoped",children:S.jsx("button",{onClick:()=>b(!1),className:"p-2 hover:bg-red-50 rounded-lg transition-colors group",title:"取消",children:S.jsx(ne,{className:"w-5 h-5 text-red-600"})})})]}),v?S.jsx("div",{className:"tailwind-scoped",style:{height:"100%"},children:S.jsxs("div",{className:"space-y-4 h-full",children:[S.jsx("textarea",{value:y,onChange:e=>A(e.target.value),className:"h-[calc(100%-100px)] mt-10 bg-white w-full min-h-[200px] px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-purple-500 focus:border-transparent resize-none font-mono text-sm",placeholder:"在此编辑内容,支持Markdown格式...",maxLength:g}),S.jsxs("div",{className:"flex items-center justify-between text-sm text-gray-500",children:[S.jsx("span",{children:"支持Markdown格式化"}),S.jsxs("span",{children:[(null==y?void 0:y.length)||0,"/",g]})]})]})}):S.jsxs("div",{className:"md",children:[x&&S.jsx("div",{className:"customInputArea",children:S.jsx(r.Input.Search,{type:"text",size:"middle",placeholder:"请输入自定义优化要求,例如:用鲁迅的风格解释、针对后端开发者解释...",value:T,onChange:e=>k(e.target.value),enterButton:"优化",onSearch:()=>{U(!0),null==c||c(`${T}`),C(!1)}})}),w&&S.jsxs("div",{className:"createArea",children:[S.jsxs("div",{className:"top",children:[S.jsxs("div",{className:"titleArea",children:[S.jsx(F,{}),S.jsx("div",{className:"title",children:"AI优化建议"}),S.jsxs("div",{className:"type",children:["[",null==(n=oe.find(e=>e.key===R))?void 0:n.label,"]"]})]}),S.jsx("div",{className:"close",onClick:()=>U(!1),children:S.jsx(ne,{})})]}),S.jsx("div",{className:"content",children:S.jsx(Eq,{children:u})}),S.jsxs("div",{className:"bottom",children:[S.jsx(r.Button,{onClick:()=>{se(),U(!1),null==p||p(u)},type:"primary",icon:S.jsx(kt,{}),disabled:!0===d,children:"替换原文"}),S.jsx(r.Button,{onClick:()=>{se(),U(!1),null==h||h(u)},type:"primary",icon:S.jsx(vt,{}),disabled:!0===d,children:"插入最下方"})]})]}),S.jsxs("div",{ref:$,className:"mdContent",children:[S.jsx(Eq,{children:a}),I&&S.jsxs("div",{ref:ee,className:"selectionPopup",style:{left:`${D.x}px`,top:`${D.y}px`},children:[!M&&!J&&S.jsxs("div",{className:"popupButtons",children:[S.jsxs("button",{onClick:e=>ie(e),className:"popupButton",children:[S.jsx(L,{className:"w-4 h-4"})," 高亮"]}),S.jsxs("button",{onClick:e=>(e=>{e.stopPropagation(),G(!0)})(e),className:"popupButton",children:[S.jsx(j,{className:"w-4 h-4"})," 向AI提问"]})]}),(M||J)&&S.jsx("div",{className:"popupClose",children:S.jsx("div",{onClick:()=>B(!1),className:"closeBtn",children:S.jsx(ne,{className:"w-4 h-4"})})}),M&&S.jsxs("div",{className:"aiQuestionInput",children:[S.jsx(r.Input,{placeholder:"输入你的问题...",value:Z,onChange:e=>Q(e.target.value),onPressEnter:ae}),S.jsx(r.Button,{type:"primary",onClick:e=>{e.stopPropagation(),ae()},disabled:m,children:"发送"})]}),J&&S.jsxs("div",{className:"aiAnswer",children:[S.jsx("div",{className:"aiAnswerContent",children:S.jsx(Eq,{children:V})}),S.jsxs("div",{className:"aiAnswerActions",children:[S.jsxs(r.Button,{onClick:e=>{e.stopPropagation(),navigator.clipboard.writeText(V),r.message.success("复制成功")},className:"aiAnswerActionButton "+(m?"disabledBtn":""),disabled:m,children:[S.jsx(O,{className:"w-4 h-4"})," 复制"]}),S.jsxs(r.Button,{onClick:e=>{e.stopPropagation(),null==h||h(V),B(!1)},className:"aiAnswerActionButton "+(m?"disabledBtn":""),disabled:m,children:[S.jsx(vt,{className:"w-4 h-4"})," 放到最下方"]})]})]})]})]})]})]})},kq=({htmlContent:e})=>{const r=t.useRef(null);return S.jsx("iframe",{ref:r,srcDoc:e,style:{width:"100%",border:"none",minHeight:"calc(100vh - 300px)",display:"block"},sandbox:"allow-scripts",title:"isolated-content"})},Fq=e=>{const{animationHtml:n,createAnimationLoading:i,createAnimationLoadingText:a,createAnimation:o,canReCreateAnimation:s,aiReCreateAnimationCallback:l}=e,[c,u]=t.useState(""),[d,p]=t.useState(!1);return S.jsxs("div",{className:"animationDemoContainer",id:`animationDemoContainer_${s}_${null==n?void 0:n.length}`,children:[s&&n?S.jsx("div",{className:"reCreateAnimationBtn",children:S.jsx(r.Button,{icon:S.jsx(re,{style:{width:"18px",height:"18px",marginTop:"2px"}}),type:"primary",onClick:()=>p(!0),children:"自定义"})}):null,d&&S.jsx("div",{className:"customInputArea",children:S.jsx(r.Input.Search,{type:"text",size:"middle",placeholder:"请输入自定义优化要求,例如:用卡通风格生成、加快速度、去掉多余元素、风格更简约...",value:c,onChange:e=>u(e.target.value),enterButton:"重新生成",onSearch:()=>{p(!1),u(""),null==l||l(`${c}`)}})}),S.jsx("div",{children:!0===i?S.jsx("div",{className:"tailwind-scoped",children:S.jsxs("div",{className:"bg-white p-12 text-center",children:[S.jsx("div",{className:"w-16 h-16 bg-pink-50 text-pink-600 rounded-2xl flex items-center justify-center mx-auto mb-6 animate-bounce",children:S.jsx(M,{className:"w-8 h-8 opacity-50"})}),S.jsx("h3",{className:"text-lg font-bold text-gray-900 mb-2",children:"正在为您生成动画演示..."}),S.jsx("p",{className:"text-sm text-gray-400 animate-pulse",children:a||"动画生成中..."}),S.jsx("div",{className:"mx-auto w-full mt-10 flex gap-6",children:S.jsxs("div",{className:"p-10 flex gap-6 overflow-hidden w-full border border-gray-100 rounded-[32px] shadow-sm text-left",children:[S.jsx(r.Skeleton,{}),S.jsx(r.Skeleton.Image,{active:!0})]})})]})}):n?S.jsx(kq,{htmlContent:n}):S.jsx("div",{className:"tailwind-scoped",children:S.jsxs("div",{className:"mt-4 bg-white rounded-[32px] border border-gray-100 p-12 text-center",children:[S.jsx("div",{className:"w-16 h-16 bg-pink-50 text-pink-600 rounded-2xl flex items-center justify-center mx-auto mb-6",children:S.jsx(M,{className:"w-8 h-8"})}),S.jsx("h3",{className:"text-lg font-bold text-gray-900 mb-2",children:"生成动画演示"}),S.jsx("p",{className:"text-sm text-gray-400 max-w-sm mx-auto mb-8",children:"AI将尽力为您生成生动有趣的动画。"}),S.jsx("button",{onClick:()=>o(),className:"mx-auto bg-pink-600 hover:bg-pink-700 text-white rounded-xl h-11 px-8 font-bold shadow-lg shadow-purple-100",children:"开始生成"})]})})})]})},Wq=n.Component({createEl:function(e){const t=document.createElement("div");t.className="progress-marker-container";const r=document.createElement("div");r.className="marker-text",t.appendChild(r),e.appendChild(t),this.container=t,this.timeoutId=null},markerDotOver:function(e,t){let r=t.progressMarker;this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null);const n=this.container.querySelector(".marker-text");document.querySelectorAll(".prism-thumbnail").forEach(e=>{e&&(e.style.opacity="0")}),this.timeoutId=setTimeout(()=>{document.querySelectorAll(".progress-marker-container").forEach(e=>{if(!e)return;const t=parseFloat(e.style.left);t<10?(e.style.transform="none",e.classList.add("leftAfter")):t>80&&(e.style.transform="translateX(-100%)",e.classList.add("rightAfter"))}),this.timeoutId=null},0),n&&(n.textContent=r.text),this.container.style.left=100*t.left+"%",this.container.style.display="flex"},markerDotOut:function(e,t){this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null),this.container.style.display="none",document.querySelectorAll(".prism-thumbnail").forEach(e=>{e.style.opacity="1"}),document.querySelectorAll(".progress-marker-container").forEach(e=>{e.style.transform="translateX(-50%)",e.classList.remove("leftAfter"),e.classList.remove("rightAfter")})},destroy:function(){this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null),this.container=null}}),Nq=()=>n.Component({init:function(){this.pipActive=!1,this.video=document.querySelector("video"),this.boundTogglePip=this.togglePip.bind(this),this.boundOnEnterPip=this.onEnterPip.bind(this),this.boundOnLeavePip=this.onLeavePip.bind(this),this.button=document.createElement("div"),this.button&&(this.button.className="prism-pip-btn",this.button.innerHTML='\n <div class="pip-content">\n <div class="pip-content-text">画中画</div>\n <svg t="1751253366278" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2319" width="200" height="200"><path d="M768 213.333333H256a85.333333 85.333333 0 0 0-85.333333 85.333334v426.666666a85.333333 85.333333 0 0 0 85.333333 85.333334h170.666667a42.666667 42.666667 0 1 1 0 85.333333H256a170.666667 170.666667 0 0 1-170.666667-170.666667V298.666667a170.666667 170.666667 0 0 1 170.666667-170.666667h512a170.666667 170.666667 0 0 1 170.666667 170.666667v128a42.666667 42.666667 0 1 1-85.333334 0V298.666667a85.333333 85.333333 0 0 0-85.333333-85.333334z m-128 341.333334a128 128 0 0 0-128 128v85.333333a128 128 0 0 0 128 128h170.666667a128 128 0 0 0 128-128v-85.333333a128 128 0 0 0-128-128h-170.666667z" fill="#ffffff" p-id="2320"></path></svg>\n </div>\n ',this.button.addEventListener("click",this.boundTogglePip))},createEl:function(e){e.appendChild(this.button),this.video.addEventListener("enterpictureinpicture",this.boundOnEnterPip),this.video.addEventListener("leavepictureinpicture",this.boundOnLeavePip)},destroy:function(){this.button&&this.boundTogglePip&&this.button.removeEventListener("click",this.boundTogglePip),this.video&&this.boundOnEnterPip&&this.video.removeEventListener("enterpictureinpicture",this.boundOnEnterPip),this.video&&this.boundOnLeavePip&&this.video.removeEventListener("leavepictureinpicture",this.boundOnLeavePip),this.button=null,this.video=null,this.boundTogglePip=null,this.boundOnEnterPip=null,this.boundOnLeavePip=null},onEnterPip:function(){},onLeavePip:function(){},togglePip:async function(){try{this.pipActive&&document.pictureInPictureElement?await document.exitPictureInPicture():await this.video.requestPictureInPicture()}catch(e){}}}),Kq=e=>{const{playerRef:i,url:a,license:o,containerId:s,vidPlayAuth:l}=e,c=t.useRef(null),u=[];t.useEffect(()=>{const e=-1===a.indexOf("http");if((!e||l)&&(e||o))return i.current=new n({id:s,source:e?"":a,vid:e?a:"",playauth:e?l:"",width:"100%",height:"500px",autoplay:!1,isLive:!1,rePlay:!1,playsinline:!0,preload:!0,controlBarVisibility:"hover",progressMarkers:u,useH5Prism:!0,license:{...o},components:[{name:"progressMarkerComponent",type:Wq},{name:"pipButton",type:Nq()}],extraInfo:{crossOrigin:"anonymous"},skinLayout:[{name:"bigPlayButton",align:"blabs",x:30,y:80},{name:"H5Loading",align:"cc"},{name:"errorDisplay",align:"tlabs",x:0,y:0},{name:"infoDisplay"},{name:"tooltip",align:"blabs",x:0,y:56},{name:"thumbnail"},{name:"controlBar",align:"blabs",x:0,y:0,children:[{name:"progress",align:"blabs",x:0,y:44},{name:"playButton",align:"tl",x:15,y:12},{name:"timeDisplay",align:"tl",x:10,y:5},{name:"snapshot",align:"tr",x:45,y:8},{name:"fullScreenButton",align:"tr",x:14,y:12},{name:"setting",align:"tr",x:15,y:12},{name:"volume",align:"tr",x:15,y:10}]}]}),i.current.on("snapshoted",d),i.current.on("play",()=>{c.current&&clearTimeout(c.current)}),i.current.on("showBar",()=>{const e=document.querySelector(".prism-pip-btn");e&&(e.style.display="block")}),i.current.on("hideBar",()=>{const e=document.querySelector(".prism-pip-btn");e&&(e.style.display="none")}),()=>{var e,t;c.current&&clearTimeout(c.current),i.current&&(null==(t=(e=i.current).dispose)||t.call(e),i.current=null)}},[a,o,l]);const d=async e=>{const t=e.paramData.base64;try{const e=t.match(/^data:(image\/\w+);base64,(.*)$/);if(!e)throw new Error("无效的Base64图片格式");const i=e[1],a=e[2];try{return await p(i,a),void r.message.success("图片已成功复制到剪贴板!")}catch(n){}const o=await h(t);await q(o),r.message.success("图片已成功复制到剪贴板!")}catch(n){}},p=async(e,t)=>{const r=atob(t),n=[];for(let a=0;a<r.length;a+=1024){const e=r.slice(a,a+1024),t=new Array(e.length);for(let r=0;r<e.length;r++)t[r]=e.charCodeAt(r);const i=new Uint8Array(t);n.push(i)}const i=new Blob(n,{type:e});await navigator.clipboard.write([new ClipboardItem({[i.type]:i})])},h=e=>new Promise((t,r)=>{const n=new Image;n.src=e,n.onload=()=>{const e=document.createElement("canvas");e.width=n.width,e.height=n.height,e.getContext("2d").drawImage(n,0,0),e.toBlob(e=>{e?t(e):r(new Error("无法转换图片为PNG格式"))},"image/png")},n.onerror=()=>{r(new Error("图片加载失败"))}}),q=async e=>{try{await navigator.clipboard.write([new ClipboardItem({[e.type]:e})])}catch(t){}};return S.jsx("div",{className:"videoPlayer",children:S.jsx("div",{id:s,ref:i})})},Oq=(e,t)=>e.length===t.length&&e.every(e=>t.includes(e)),Pq=e=>{try{if(!e||"string"!=typeof e)return null;return JSON.parse(e)}catch(t){return null}},Iq=(e,t=500,r=!1)=>{let n=null;return(...i)=>{const a=r&&!n;n&&clearTimeout(n),n=setTimeout(()=>{n=null,r||e(...i)},t),a&&e(...i)}},Lq=e=>{const t=Math.floor(e/3600),r=Math.floor(e%3600/60),n=e%60;return`${t<10?"0"+t:t+""}:${r<10?"0"+r:r+""}:${n<10?"0"+n:n+""}`},Bq=e=>{if(!e)return"00:00:00";let t=e;if("string"==typeof t&&-1!==t.indexOf(":"))return t;t=Math.max(0,Math.floor(Number(t)||0));const r=Math.floor(t/3600),n=Math.floor(t%3600/60),i=t%60;return[r.toString().padStart(2,"0"),n.toString().padStart(2,"0"),i.toString().padStart(2,"0")].join(":")},Dq=e=>e>=1e4?`${(e/1e4).toFixed(1)}w`:e>=1e3?`${(e/1e3).toFixed(1)}k`:e.toString(),Xq=e=>{if(!e)return 0;if("number"==typeof e)return e;if("string"==typeof e&&-1!==e.indexOf(":")){const t=e.split(":");let r=0,n=0,i=0;return 2===t.length?(n=t[0]?Number(t[0]):0,i=t[1]?Number(t[1]):0):3===t.length&&(r=t[0]?Number(t[0]):0,n=t[1]?Number(t[1]):0,i=t[2]?Number(t[2]):0),3600*r+60*n+i}return 0},jq=e=>{const{videoTitle:r,videoUrl:n,videoLicense:i,playerRef:a,vidPlayAuth:o,videoTime:s}=e;return t.useEffect(()=>{var e;if(s&&a.current){const t=Xq(s);null==(e=a.current)||e.seek(t)}},[s,a]),S.jsxs("div",{className:"videoContainer",children:[r&&S.jsx("div",{className:"videoTitle",children:r}),S.jsx("div",{className:"playerArea",children:S.jsx(Kq,{url:n,license:i,playerRef:a,containerId:"videoTutorialOfKnowledgeCard",vidPlayAuth:o})})]})};var Mq,zq=(e=>(e.RADIO="radio",e.CHECKBOX="checkbox",e.COMPLETION="completion",e.ANSWER="answer",e.ACM="acm",e.CCM="ccm",e))(zq||{}),Gq=(e=>(e.NONE="NONE",e.INPUT_OUTPUT="INPUT_OUTPUT",e.SUBJECTIVE="SUBJECTIVE",e))(Gq||{}),Zq=(e=>(e.PREADD="preadd",e.ADD="add",e.PREVIEW="preview",e.EXAM="exam",e.MARK="mark",e.VIEW="view",e))(Zq||{}),Hq={exports:{}};self,Hq.exports=(Mq=i,(()=>{var e={857:e=>{e.exports=Mq}},t={};function r(n){var i=t[n];if(void 0!==i)return i.exports;var a=t[n]={exports:{}};return e[n](a,a.exports,r),a.exports}r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};return(()=>{r.r(n),r.d(n,{default:()=>o});var e=r(857),t={"*":"list-item","-":"list-item","+":"list-item",">":"blockquote","#":"header1","##":"header2","###":"header3","####":"header4","#####":"header5"},i={"---":"divider","----":"divider","-----":"divider","------":"divider"};function a(t){var r=t.selection;if(null==r)return{beforeText:"",range:null};var n=r.anchor,i=e.SlateEditor.above(t,{match:function(r){return e.SlateEditor.isBlock(t,r)}});if(null==i)return{beforeText:"",range:null};var a=i[1],o={anchor:n,focus:e.SlateEditor.start(t,a)};return{beforeText:e.SlateEditor.string(t,o)||"",range:o}}const o={editorPlugin:function(r){var n=r.insertBreak,o=r.insertText,s=r;return s.insertText=function(n){var i=r.selection;if(null==i)return o(n);if(e.SlateRange.isExpanded(i))return o(n);if(null==e.DomEditor.getSelectedNodeByType(r,"paragraph"))return o(n);if(" "!==n)return o(n);var s=a(r),l=s.beforeText,c=s.range;if(!l||!c)return o(n);var u=t[l];if(!u)return o(n);e.SlateTransforms.select(r,c),e.SlateTransforms.delete(r);var d={type:u};e.SlateTransforms.setNodes(r,d,{match:function(t){return e.SlateEditor.isBlock(r,t)}}),"list-item"===u&&e.SlateTransforms.wrapNodes(r,{type:"bulleted-list",children:[]},{match:function(t){return"list-item"===e.DomEditor.getNodeType(t)}})},s.insertBreak=function(){var t=r.selection;if(null==t)return n();if(e.SlateRange.isExpanded(t))return n();if(null==e.DomEditor.getSelectedNodeByType(r,"paragraph"))return n();var o=a(r),s=o.beforeText,l=o.range;if(!s||!l)return n();if(0!==s.indexOf("```")){var c=i[s];if(!c)return n();e.SlateTransforms.select(r,l),e.SlateTransforms.delete(r);var u={type:c};e.SlateTransforms.setNodes(r,u,{match:function(t){return e.SlateEditor.isBlock(r,t)}})}else{var d=s.slice(3).toLowerCase().trim();"js"===d&&(d="javascript"),"ts"===d&&(d="typescript"),"md"===d&&(d="markdown"),"py"===d&&(d="python"),"vb"===d&&(d="visual-basic"),"c#"===d&&(d="csharp");var p=((r.getConfig().MENU_CONF||{}).codeSelectLang||[]).codeLangs;if(d&&!(void 0===p?[]:p).some(function(e){return e.value===d}))return n();e.SlateTransforms.select(r,l),e.SlateTransforms.delete(r);var h={type:"pre",children:[{type:"code",language:d,children:[{text:""}]}]};e.SlateTransforms.insertNodes(r,h)}},s}}})(),n})());const Yq=f(Hq.exports);function Qq(e,t,r,n,i){return{sel:e,data:t,children:r,text:n,elm:i,key:void 0===t?void 0:t.key}}const Jq=Array.isArray;function _q(e){return"string"==typeof e||"number"==typeof e||e instanceof String||e instanceof Number}function $q(e,t,r){if(e.ns="http://www.w3.org/2000/svg","foreignObject"!==r&&void 0!==t)for(let n=0;n<t.length;++n){const e=t[n];if("string"==typeof e)continue;const r=e.data;void 0!==r&&$q(r,e.children,e.sel)}}function ef(e,t,r){let n,i,a,o={};if(null!=t&&(Jq(t)?n=t:_q(t)?i=t.toString():t&&t.sel?n=[t]:o=t),void 0!==n)for(a=0;a<n.length;++a)_q(n[a])&&(n[a]=Qq(void 0,void 0,void 0,n[a],void 0));return!e.startsWith("svg")||3!==e.length&&"."!==e[3]&&"#"!==e[3]||$q(o,n,e),Qq(e,o,n,i,void 0)}const tf=[];for(let N0=0;N0<256;++N0)tf.push((N0+256).toString(16).slice(1));let rf;const nf=new Uint8Array(16),af={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function of(e,t,r){return af.randomUUID&&!e?af.randomUUID():function(e){var t;const r=(e=e||{}).random??(null==(t=e.rng)?void 0:t.call(e))??function(){if(!rf){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");rf=crypto.getRandomValues.bind(crypto)}return rf(nf)}();if(r.length<16)throw new Error("Random bytes length must be >= 16");return r[6]=15&r[6]|64,r[8]=63&r[8]|128,function(e,t=0){return(tf[e[t+0]]+tf[e[t+1]]+tf[e[t+2]]+tf[e[t+3]]+"-"+tf[e[t+4]]+tf[e[t+5]]+"-"+tf[e[t+6]]+tf[e[t+7]]+"-"+tf[e[t+8]]+tf[e[t+9]]+"-"+tf[e[t+10]]+tf[e[t+11]]+tf[e[t+12]]+tf[e[t+13]]+tf[e[t+14]]+tf[e[t+15]]).toLowerCase()}(r)}(e)}class sf{constructor(){c(this,"title","插入填空项"),c(this,"tag","button")}getValue(e){return""}isActive(e){return!1}isDisabled(e){var t;return null==e.selection||(null==(t=e.getElemsByType("fill-blank"))?void 0:t.length)>=20}exec(e,t){if(this.isDisabled(e))return;const r=[{text:" "},{type:"fill-blank",key:of(),children:[{text:""}]},{text:" "}];i.SlateTransforms.insertNodes(e,r)}}let lf=[];const cf={editorPlugin:function(e){const{isInline:t,isVoid:r}=e,n=e;return n.isInline=e=>"fill-blank"===i.DomEditor.getNodeType(e)||t(e),n.isVoid=e=>"fill-blank"===i.DomEditor.getNodeType(e)||r(e),n},renderElems:[{type:"fill-blank",renderElem:(e,t,r)=>{const n=null==r?void 0:r.getElemsByType("fill-blank"),i=(null==n?void 0:n.findIndex(t=>t.key===e.key&&!lf.includes(t.id)))||0;return i===n.length-1?lf=[]:lf.push(n[i].id),ef("input",{attrs:{class:"w-e-fill-blank","data-w-e-type":"fill-blank","data-w-e-is-void":"true","data-w-e-is-inline":"true",readonly:!0,placeholder:i+1}})}}],elemsToHtml:[{type:"fill-blank",elemToHtml:(e,t,r)=>'<input class="w-e-fill-blank" data-w-e-type="fill-blank" data-w-e-is-void="true" data-w-e-is-inline="true" readonly="true">'}],parseElemsHtml:[{selector:"input[data-w-e-type='fill-blank']",parseElemHtml:(e,t,r)=>({type:"fill-blank",key:of(),children:[{text:""}]})},{selector:"pre:not([data-w-e-type])>code",parseElemHtml:(e,t,r)=>{let n=(null==e?void 0:e.innerHTML)||"";const i='<input class="w-e-fill-blank" data-w-e-type="fill-blank" data-w-e-is-void="true" data-w-e-is-inline="true" readonly="true">',a=(null==t?void 0:t.filter(e=>"fill-blank"===(null==e?void 0:e.type)))||[];let o=[];return(null==a?void 0:a.length)&&(null==t||t.forEach((e,r)=>{var a;if(o.push(e),"fill-blank"===(null==e?void 0:e.type))if("fill-blank"===(null==(a=t[r+1])?void 0:a.type)){const e=null==n?void 0:n.indexOf(i,1);let t=null==n?void 0:n.slice(0,e);n=null==n?void 0:n.replace(t,""),t=t.replace(i,""),o.push({text:t})}else n=null==n?void 0:n.replace(i,"");else n=null==n?void 0:n.replace(null==e?void 0:e.text,"")})),{type:"code",language:"",children:(null==a?void 0:a.length)?o:[{text:(null==e?void 0:e.textContent)||""}]}}}],menus:[{key:"fill-blank",factory:()=>new sf}]},uf=t.createContext(null);let df=!1;const pf=t.forwardRef((e,r)=>{const{topProps:n}=(()=>{const e=t.useContext(uf);if(!e)throw new Error("useMyContext must be used within a MyContext.Provider");return e})(),{uploadImg:o}=n,{defaultValue:s="",readOnly:l=!1,editorHeight:c=300,placeholder:u="请输入内容...",isBorder:d=!0,autoHeight:p,onChange:h,customToolbarKeys:q,mode:f="default",noPadding:m=!1}=e;t.useEffect(()=>{if(!df)try{i.Boot.registerModule(cf),i.Boot.registerModule(Yq),df=!0}catch(e){}},[]);const[V,g]=t.useState(null),[v]=t.useState({toolbarKeys:q??["undo","redo","fullScreen","|","headerSelect","bold","underline","italic","color","bgColor","|","bulletedList","numberedList",{key:"group-justify",title:"对齐",iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M204.8 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M505.6 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M806.4 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path></svg>',menuKeys:["justifyLeft","justifyRight","justifyCenter","justifyJustify"]},{key:"group-indent",title:"缩进",iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',menuKeys:["indent","delIndent"]},"insertLink",{key:"group-image",title:"图片",iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M959.877 128l0.123 0.123v767.775l-0.123 0.122H64.102l-0.122-0.122V128.123l0.122-0.123h895.775zM960 64H64C28.795 64 0 92.795 0 128v768c0 35.205 28.795 64 64 64h896c35.205 0 64-28.795 64-64V128c0-35.205-28.795-64-64-64zM832 288.01c0 53.023-42.988 96.01-96.01 96.01s-96.01-42.987-96.01-96.01S682.967 192 735.99 192 832 234.988 832 288.01zM896 832H128V704l224.01-384 256 320h64l224.01-192z"></path></svg>',menuKeys:["insertImage","uploadImage"]},"insertTable","codeBlock","divider","|"]}),b={placeholder:u,autoFocus:!1,MENU_CONF:{uploadImage:{async customUpload(e,t){if(!e||!o)return;const r=new FormData;r.append("file",e);const n=await o({file:r});(null==n?void 0:n.url)&&t(null==n?void 0:n.url,null==n?void 0:n.url,null==n?void 0:n.url)}}}},y=t.useRef(null);t.useEffect(()=>()=>{null!=V&&(y.current&&clearTimeout(y.current),y.current=setTimeout(()=>{null==V||V.destroy(),g(null)},500))},[V]),t.useEffect(()=>{l?null==V||V.disable():null==V||V.enable()},[l,V]);const A=t.useCallback((e="")=>e.replace(/<\/?p>/g,"").replace(/ /gi,"").replace(/<br\/?>/g,""),[]);t.useImperativeHandle(r,()=>({getHtml:()=>{if(null==V?void 0:V.isEmpty())return"";{const e=(null==V?void 0:V.getHtml())??"",t=A(e);return/\S+/.test(t)?e:""}},setValue:(e="")=>!!V&&(null==V||V.setHtml(e),!0)}));const w={};return l&&p?(w.minHeight=p.min+"px",w.maxHeight=p.max+"px",w.overflowY="auto"):w.height="number"==typeof c?c+"px":c,S.jsx(S.Fragment,{children:S.jsxs("div",{"data-nopadding":m,style:{border:d?"1px solid #E5E5E5":"",zIndex:99},className:"richeditor",children:[!l&&S.jsx(a.Toolbar,{editor:V,defaultConfig:v,mode:"default",style:{borderBottom:"1px solid #E5E5E5"}}),S.jsx(a.Editor,{defaultConfig:b,value:s,onCreated:g,mode:f,onChange:e=>{if(null==e?void 0:e.isEmpty())null==h||h("",e);else{const t=(null==e?void 0:e.getHtml())??"",r=A(t);/\S+/.test(r)?null==h||h(t,e):null==h||h("",e)}},style:{fontSize:"16px",...w}})]})})});zq.RADIO,zq.CHECKBOX,zq.COMPLETION,zq.ANSWER,zq.ACM,zq.CCM,zq.RADIO,zq.COMPLETION,zq.ANSWER,zq.CCM;const hf={low:"简单",middle:"中等",high:"困难"},qf="https://quiz.cloudlab.top",ff="https://run.cloudlab.top",mf=e=>{switch(e){case"radio":case"checkbox":return S.jsx($,{className:"w-4 h-4"});case"acm":case"ccm":return S.jsx(K,{className:"w-4 h-4"});case"completion":return S.jsx(z,{className:"w-4 h-4"});case"answer":return S.jsx(j,{className:"w-4 h-4"});default:return S.jsx(P,{className:"w-4 h-4"})}},Vf=e=>{switch(e){case"radio":return"单选题";case"checkbox":return"多选题";case"acm":case"ccm":return"编码测验";case"completion":return"填空题";case"answer":return"问答题";default:return"题目"}},gf=e=>{switch(e){case"low":return"text-green-600 bg-green-100";case"middle":return"text-yellow-600 bg-yellow-100";case"high":return"text-red-600 bg-red-100";default:return"text-gray-600 bg-gray-100"}},vf=e=>{const{currentIndex:t,questionsCount:r,type:n,difficulty:i="low",score:a}=e;return S.jsxs("div",{className:"questionHeader tailwind-scoped",children:[t&&r&&S.jsxs("div",{className:"questionIndex itemWrapper",children:["题目 ",t,"/",r]}),S.jsxs("span",{className:"questionType itemWrapper",children:[mf(n)," ",Vf(n)]}),i&&S.jsx("div",{className:`difficulty itemWrapper ${gf(i)}`,children:S.jsx("span",{className:"difficulty",children:hf[i]})}),a&&S.jsxs("div",{className:"score itemWrapper",children:[S.jsx(_,{})," ",a," 分"]})]})},bf=e=>{var n;const{data:i,onSubmit:a,buttonText:o,showQuestionTip:s,showResult:l,onNextQuestion:c}=e,{optionJson:u,answer:d,userAnswer:p,score:h,type:q,topic:f,content:m,auxiliary:V,difficulty:g,currentIndex:v,questionsCount:b}=i,[y,A]=t.useState(!0),[w,U]=t.useState(void 0),[x,C]=t.useState(),[R,E]=t.useState(""),[T,k]=t.useState([]);t.useEffect(()=>{p&&!x&&(C(p),p.indexOf(",")>-1?k(null==p?void 0:p.split(",")):E(p),F(p))},[i]);const F=e=>{if(!x&&!e)return void r.message.warning("请先作答!");const t=x||e;a&&!e&&void 0===w&&a(t),void 0!==w&&(null==c||c()),d&&l&&(t===d||t&&Oq(null==t?void 0:t.split(","),null==d?void 0:d.split(","))?U(1):U(0))},K=["A","B","C","D","E","F","G","H","I","J"];return S.jsx("div",{className:"video-player-interaction tailwind-scoped",children:S.jsx("div",{className:"video-player-interaction-content",children:S.jsxs("div",{className:"video-player-interaction-content-main",children:[S.jsx(vf,{score:h,type:q,difficulty:g,currentIndex:v,questionsCount:b}),S.jsx("div",{className:"video-player-interaction-content-desc",children:S.jsx(pf,{defaultValue:f||m,readOnly:!0,noPadding:!0})}),S.jsx("div",{className:"video-player-interaction-content-options",children:"radio"===q?null==u?void 0:u.map(({key:e,value:t},r)=>S.jsx("button",{onClick:()=>(e=>{U(void 0),C(e+""),E(e+"")})(e),disabled:void 0!==w,className:`block w-full text-left p-4 rounded-lg border-2 transition-all ${R===e?"border-blue-500 bg-blue-50":"border-gray-200 hover:border-gray-300"} ${void 0!==w?e===d?"border-green-500 bg-green-50":R===e&&e!==d?"border-red-500 bg-red-50":"border-gray-200":""}`,children:S.jsxs("div",{className:"flex items-center justify-between",children:[S.jsxs("span",{children:[K[r],"、",t]}),void 0!==w&&e===d&&S.jsx(W,{className:"w-5 h-5 text-green-600"}),void 0!==w&&R===e&&e!==d&&S.jsx(N,{className:"w-5 h-5 text-red-600"})]})},e)):null==u?void 0:u.map(({key:e,value:t},r)=>S.jsx("button",{onClick:()=>(e=>{U(void 0);let t=x||"";if(t&&(null==t?void 0:t.indexOf(e))>-1){let r=t.split(",");r=r.filter(t=>t!==e),t=null==r?void 0:r.join(",")}else t=t?t+","+e:e;C(t)})(String(e)),disabled:void 0!==w,className:`block w-full text-left p-4 rounded-lg border-2 transition-all ${x&&(null==x?void 0:x.indexOf(e))>-1?"border-blue-500 bg-blue-50":"border-gray-200 hover:border-gray-300"} ${void 0!==w?d.indexOf(e)>-1?(null==x||x.indexOf(e),"border-green-500 bg-green-50"):x&&(null==x?void 0:x.indexOf(e))>-1&&-1===d.indexOf(e)?"border-red-500 bg-red-50":"border-gray-200":""}`,children:S.jsxs("div",{className:"flex items-center justify-between",children:[S.jsxs("span",{children:[K[r],"、",t]}),void 0!==w&&d.indexOf(e)>-1&&S.jsx(W,{className:"w-5 h-5 text-green-600"}),void 0!==w&&x&&(null==x?void 0:x.indexOf(e))>-1&&-1===d.indexOf(e)&&S.jsx(N,{className:"w-5 h-5 text-red-600"})]})},e+t))}),s&&0===w&&V&&(null==V?void 0:V.length)>0&&S.jsxs("div",{className:"video-player-interaction-content-tip",children:[S.jsxs("div",{className:"video-player-interaction-content-tip-icons",onClick:()=>{A(!y)},children:[S.jsx("img",{src:"data:image/svg+xml,%3csvg%20width='17'%20height='16'%20viewBox='0%200%2017%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20opacity='0.01'%20x='0.535156'%20width='16'%20height='16'%20fill='black'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M8.53516%201C4.66953%201%201.53516%204.13438%201.53516%208C1.53516%2011.8656%204.66953%2015%208.53516%2015C12.4008%2015%2015.5352%2011.8656%2015.5352%208C15.5352%204.13438%2012.4008%201%208.53516%201ZM8.03516%204.625C8.03516%204.55625%208.09141%204.5%208.16016%204.5H8.91016C8.97891%204.5%209.03516%204.55625%209.03516%204.625V8.875C9.03516%208.94375%208.97891%209%208.91016%209H8.16016C8.09141%209%208.03516%208.94375%208.03516%208.875V4.625ZM8.53516%2011.5C8.12109%2011.5%207.78516%2011.1641%207.78516%2010.75C7.78516%2010.3359%208.12109%2010%208.53516%2010C8.94922%2010%209.28516%2010.3359%209.28516%2010.75C9.28516%2011.1641%208.94922%2011.5%208.53516%2011.5Z'%20fill='%23FAAD14'/%3e%3c/svg%3e"}),S.jsx("span",{children:"提示"}),S.jsx("img",{src:"data:image/svg+xml,%3csvg%20width='17'%20height='16'%20viewBox='0%200%2017%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20opacity='0.01'%20x='16.5352'%20y='16'%20width='16'%20height='16'%20transform='rotate(-180%2016.5352%2016)'%20fill='black'/%3e%3cpath%20d='M4.75455%2010.7326L8.71709%206.43956L12.68%2010.7326C12.8843%2010.9541%2013.2295%2010.9679%2013.4509%2010.7636C13.6723%2010.5592%2013.6862%2010.2141%2013.4818%209.99265L9.11818%205.26537C9.01492%205.15344%208.86956%205.08977%208.71727%205.08977C8.56498%205.08977%208.41963%205.15344%208.31636%205.26537L3.95273%209.99265C3.74838%2010.2141%203.76222%2010.5592%203.98364%2010.7636C4.20505%2010.9679%204.5502%2010.9541%204.75455%2010.7326'%20fill='%23FAAD14'/%3e%3c/svg%3e",style:{transform:y?"rotate(0deg)":"rotate(180deg)"}})]}),y&&S.jsxs("div",{className:"video-player-interaction-content-tip-text",children:[S.jsx(pf,{defaultValue:null==(n=null==V?void 0:V[0])?void 0:n.description,readOnly:!0}),S.jsx("img",{src:"data:image/svg+xml,%3csvg%20width='32'%20height='32'%20viewBox='0%200%2032%2032'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clipPath='url(%23clip0_954_6949)'%3e%3cg%20filter='url(%23filter0_i_954_6949)'%3e%3cpath%20d='M26.9806%2012.2299L29.1814%2011.1896C29.9321%2013.1617%2030.1883%2015.2877%2029.9274%2017.3817C29.6665%2019.4757%2028.8965%2021.4739%2027.6848%2023.2015L25.6975%2021.81C26.6636%2020.4329%2027.2845%2018.8438%2027.5078%2017.1765C27.7311%2015.5092%2027.5503%2013.8127%2026.9806%2012.2299ZM17.053%205.27772C15.3709%205.28347%2013.7147%205.69355%2012.2243%206.47339C10.7338%207.25323%209.45264%208.37997%208.48881%209.75864L6.50399%208.36886C7.71308%206.63945%209.32747%205.23262%2011.206%204.27141C13.0845%203.31019%2015.1699%202.82387%2017.2798%202.85497L17.0554%205.2795L17.053%205.27772ZM12.325%2028.2294C12.0815%2028.5771%2011.772%2028.8734%2011.414%2029.1015C11.056%2029.3295%2010.6566%2029.4848%2010.2386%2029.5586C9.82061%2029.6323%209.39218%2029.6229%208.97778%2029.531C8.56339%2029.4392%208.17115%2029.2666%207.82346%2029.0231C7.47577%2028.7796%207.17943%2028.4701%206.95138%2028.1121C6.72332%2027.7541%206.56801%2027.3547%206.49431%2026.9367C6.34546%2026.0925%206.53806%2025.2237%207.02975%2024.5216L12.325%2028.2294ZM23.7127%2020.4202L20.9314%2024.3923L20.2555%2028.9549C20.2148%2029.2272%2020.1052%2029.4845%2019.9371%2029.7026C19.769%2029.9206%2019.548%2030.0921%2019.295%2030.2008C19.042%2030.3094%2018.7655%2030.3516%2018.4916%2030.3234C18.2178%2030.2952%2017.9556%2030.1974%2017.7301%2030.0395L3.48051%2020.0642C3.25433%2019.9064%203.07227%2019.6935%202.95167%2019.4455C2.83107%2019.1975%202.77592%2018.9228%202.79149%2018.6475C2.80706%2018.3721%202.89282%2018.1054%203.04062%2017.8726C3.18841%2017.6398%203.39332%2017.4487%203.63584%2017.3174L7.69207%2015.1218L10.4747%2011.15C11.3766%209.86202%2012.6346%208.8651%2014.0946%208.28134C15.5545%207.69757%2017.153%207.55231%2018.6943%207.86334L19.0811%207.31281C19.3203%206.95534%2019.6285%206.64922%2019.9876%206.41239C20.3467%206.17556%2020.7494%206.01279%2021.1722%205.93362C21.595%205.85444%2022.0293%205.86046%2022.4498%205.95132C22.8702%206.04217%2023.2683%206.21604%2023.6206%206.46273C23.973%206.70941%2024.2726%207.02396%2024.5018%207.38792C24.7311%207.75188%2024.8854%208.15794%2024.9557%208.5823C25.0259%209.00666%2025.0108%209.44078%2024.9111%209.85922C24.8115%2010.2777%2024.6293%2010.672%2024.3753%2011.0191L23.9911%2011.5701C24.811%2012.9126%2025.2214%2014.4651%2025.1719%2016.0374C25.1224%2017.6096%2024.6152%2019.1333%2023.7125%2020.4215L23.7127%2020.4202Z'%20fill='%23FFCC33'%20fill-opacity='0.15'/%3e%3c/g%3e%3cpath%20d='M21.3721%2019.6161C22.2185%2018.4077%2022.6941%2016.9787%2022.7405%2015.5041C22.787%2014.0291%2022.402%2012.5726%2021.6328%2011.3131L21.4625%2011.0344L21.6493%2010.7665L22.0335%2010.2156L22.04%2010.2062L22.0401%2010.2062C22.2549%209.91283%2022.4089%209.5795%2022.4931%209.2258C22.5774%208.87209%2022.5901%208.50513%2022.5307%208.14642C22.4713%207.78771%2022.3409%207.44447%2022.1471%207.13681C21.9534%206.82916%2021.7001%206.56327%2021.4023%206.35475C21.1044%206.14623%2020.7679%205.99926%2020.4125%205.92246C20.0571%205.84566%2019.69%205.84057%2019.3326%205.9075C18.9752%205.97442%2018.6348%206.11201%2018.3313%206.3122C18.0277%206.51239%2017.7672%206.77116%2017.565%207.07333L17.5587%207.08276L17.5586%207.08268L17.1718%207.63321L16.984%207.9005L16.6638%207.83588C15.2178%207.54409%2013.7182%207.68037%2012.3486%208.22802C10.9789%208.77567%209.79875%209.71092%208.95263%2010.9192L8.95257%2010.9193L6.16993%2014.8911L6.10222%2014.9877L5.99845%2015.0439L1.94222%2017.2396L1.94216%2017.2396C1.77467%2017.3302%201.63316%2017.4622%201.5311%2017.623C1.42903%2017.7838%201.36981%2017.968%201.35905%2018.1581C1.3483%2018.3482%201.38638%2018.538%201.46967%2018.7092C1.55296%2018.8805%201.67869%2019.0276%201.83489%2019.1365L1.83562%2019.137L16.0852%2029.1123L16.0854%2029.1124C16.2411%2029.2215%2016.4221%2029.289%2016.6112%2029.3084C16.8004%2029.3279%2016.9913%2029.2988%2017.166%2029.2238C17.3407%2029.1487%2017.4934%2029.0303%2017.6095%2028.8797C17.7254%2028.7293%2017.8011%2028.5518%2017.8293%2028.364L21.3721%2019.6161ZM21.3721%2019.6161L21.3715%2019.6158L18.5902%2023.5879L18.5225%2023.6846L18.5052%2023.8014L17.8294%2028.3634L21.3721%2019.6161ZM14.7994%202.84116L14.6671%204.27101C13.0611%204.34269%2011.4885%204.76584%2010.0608%205.51279C8.64735%206.25234%207.41357%207.28968%206.44341%208.55102L5.27665%207.73406C6.40133%206.25582%207.84479%205.04697%209.50211%204.19894C11.147%203.35725%2012.957%202.89436%2014.7994%202.84116ZM26.0717%2016.7253C26.2855%2015.1291%2026.1457%2013.5074%2025.6647%2011.9743L26.964%2011.3601C27.5441%2013.1097%2027.728%2014.9688%2027.4996%2016.8023C27.2694%2018.6498%2026.627%2020.4196%2025.6224%2021.982L24.4533%2021.1634C25.3069%2019.8204%2025.86%2018.3064%2026.0717%2016.7253ZM5.05507%2026.3323C4.95858%2025.7851%205.03183%2025.2256%205.25868%2024.7268L9.6592%2027.8081C9.52376%2027.941%209.37452%2028.0598%209.21372%2028.1622C8.91111%2028.355%208.5735%2028.4863%208.22015%2028.5486C7.86681%2028.6109%207.50466%2028.603%207.15437%2028.5253C6.80408%2028.4476%206.47252%2028.3017%206.17861%2028.096C5.88471%2027.8902%205.63421%2027.6285%205.44143%2027.3259C5.24866%2027.0233%205.11737%2026.6857%205.05507%2026.3323Z'%20stroke='%23FAA600'%20stroke-opacity='0.4'/%3e%3c/g%3e%3cdefs%3e%3cfilter%20id='filter0_i_954_6949'%20x='2.78906'%20y='2.85352'%20width='27.2373'%20height='27.4785'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='BackgroundImageFix'%20result='shape'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'%20result='hardAlpha'/%3e%3cfeOffset%20dx='-2'%20dy='2'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='arithmetic'%20k2='-1'%20k3='1'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%200.96%200%200%200%200%200.832%200%200%200%200%200.576%200%200%200%200.3%200'/%3e%3cfeBlend%20mode='normal'%20in2='shape'%20result='effect1_innerShadow_954_6949'/%3e%3c/filter%3e%3cclipPath%20id='clip0_954_6949'%3e%3crect%20width='32'%20height='32'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e"})]})]}),a&&S.jsx("div",{className:"video-player-interaction-content-actions",children:S.jsx(r.Button,{type:"primary",onClick:()=>F(),children:o||(void 0===w?"提交":"下一题")})})]})})})};var yf={exports:{}},Sf={exports:{}};"undefined"!=typeof self&&self,Sf.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return{}.hasOwnProperty.call(e,t)},r.p="",r(r.s=0)}([function(e,t,r){function n(e){return"[object RegExp]"==={}.toString.call(e)}r.r(t),r.d(t,"Promise",function(){return W}),r.d(t,"TYPES",function(){return Qe}),r.d(t,"ProxyWindow",function(){return Ue}),r.d(t,"setup",function(){return He}),r.d(t,"destroy",function(){return Ye}),r.d(t,"serializeMessage",function(){return Me}),r.d(t,"deserializeMessage",function(){return ze}),r.d(t,"createProxyWindow",function(){return Ge}),r.d(t,"toProxyWindow",function(){return Ze}),r.d(t,"on",function(){return De}),r.d(t,"once",function(){return Xe}),r.d(t,"send",function(){return je}),r.d(t,"markWindowKnown",function(){return qe}),r.d(t,"cleanUpWindow",function(){return Je}),r.d(t,"bridge",function(){});var i="Call was rejected by callee.\r\n";function a(e){return void 0===e&&(e=window),e.location.protocol}function o(e){if(void 0===e&&(e=window),e.mockDomain){var t=e.mockDomain.split("//")[0];if(t)return t}return a(e)}function s(e){return void 0===e&&(e=window),"about:"===o(e)}function l(e){if(void 0===e&&(e=window),e)try{if(e.parent&&e.parent!==e)return e.parent}catch(t){}}function c(e){if(void 0===e&&(e=window),e&&!l(e))try{return e.opener}catch(t){}}function u(e){try{return!0}catch(t){}return!1}function d(e){void 0===e&&(e=window);var t=e.location;if(!t)throw new Error("Can not read window location");var r=a(e);if(!r)throw new Error("Can not read window protocol");if("file:"===r)return"file://";if("about:"===r){var n=l(e);return n&&u()?d(n):"about://"}var i=t.host;if(!i)throw new Error("Can not read window host");return r+"//"+i}function p(e){void 0===e&&(e=window);var t=d(e);return t&&e.mockDomain&&0===e.mockDomain.indexOf("mock:")?e.mockDomain:t}function h(e){if(!function(e){try{if(e===window)return!0}catch(n){}try{var t=Object.getOwnPropertyDescriptor(e,"location");if(t&&!1===t.enumerable)return!1}catch(n){}try{if(s(e)&&u())return!0}catch(n){}try{if(void 0===(r=e)&&(r=window),"mock:"===o(r)&&u())return!0}catch(n){}var r;try{if(d(e)===d(window))return!0}catch(n){}return!1}(e))return!1;try{if(e===window)return!0;if(s(e)&&u())return!0;if(p(window)===p(e))return!0}catch(t){}return!1}function q(e){if(!h(e))throw new Error("Expected window to be same domain");return e}function f(e,t){if(!e||!t)return!1;var r=l(t);return r?r===e:-1!==function(e){var t=[];try{for(;e.parent!==e;)t.push(e.parent),e=e.parent}catch(r){}return t}(t).indexOf(e)}function m(e){var t,r,n=[];try{t=e.frames}catch(l){t=e}try{r=t.length}catch(l){}if(0===r)return n;if(r){for(var i=0;i<r;i++){var a=void 0;try{a=t[i]}catch(l){continue}n.push(a)}return n}for(var o=0;o<100;o++){var s=void 0;try{s=t[o]}catch(l){return n}if(!s)return n;n.push(s)}return n}var V=[],g=[];function v(e,t){void 0===t&&(t=!0);try{if(e===window)return!1}catch(a){return!0}try{if(!e)return!0}catch(a){return!0}try{if(e.closed)return!0}catch(a){return!a||a.message!==i}if(t&&h(e))try{if(e.mockclosed)return!0}catch(a){}try{if(!e.parent||!e.top)return!0}catch(a){}var r=function(e,t){for(var r=0;r<e.length;r++)try{if(e[r]===t)return r}catch(a){}return-1}(V,e);if(-1!==r){var n=g[r];if(n&&function(e){if(!e.contentWindow)return!0;if(!e.parentNode)return!0;var t=e.ownerDocument;if(t&&t.documentElement&&!t.documentElement.contains(e)){for(var r=e;r.parentNode&&r.parentNode!==r;)r=r.parentNode;if(!r.host||!t.documentElement.contains(r.host))return!0}return!1}(n))return!0}return!1}function b(e){return void 0===e&&(e=window),c(e=e||window)||l(e)||void 0}function y(e,t){if("string"==typeof e){if("string"==typeof t)return"*"===e||t===e;if(n(t))return!1;if(Array.isArray(t))return!1}return n(e)?n(t)?e.toString()===t.toString():!Array.isArray(t)&&Boolean(t.match(e)):!!Array.isArray(e)&&(Array.isArray(t)?JSON.stringify(e)===JSON.stringify(t):!n(t)&&e.some(function(e){return y(e,t)}))}function S(e){try{if(e===window)return!0}catch(t){if(t&&t.message===i)return!0}try{if("[object Window]"==={}.toString.call(e))return!0}catch(t){if(t&&t.message===i)return!0}try{if(window.Window&&e instanceof window.Window)return!0}catch(t){if(t&&t.message===i)return!0}try{if(e&&e.self===e)return!0}catch(t){if(t&&t.message===i)return!0}try{if(e&&e.parent===e)return!0}catch(t){if(t&&t.message===i)return!0}try{if(e&&e.top===e)return!0}catch(t){if(t&&t.message===i)return!0}try{if(e&&"__unlikely_value__"===e.__cross_domain_utils_window_check__)return!1}catch(t){return!0}try{if("postMessage"in e&&"self"in e&&"location"in e)return!0}catch(t){}return!1}function A(e){if(h(e))return q(e).frameElement;for(var t=0,r=document.querySelectorAll("iframe");t<r.length;t++){var n=r[t];if(n&&n.contentWindow&&n.contentWindow===e)return n}}function w(e){if(void 0===(r=e)&&(r=window),Boolean(l(r))){var t=A(e);if(t&&t.parentElement)return void t.parentElement.removeChild(t)}var r;try{e.close()}catch(n){}}function U(e){try{if(!e)return!1;if("undefined"!=typeof Promise&&e instanceof Promise)return!0;if("undefined"!=typeof window&&"function"==typeof window.Window&&e instanceof window.Window)return!1;if("undefined"!=typeof window&&"function"==typeof window.constructor&&e instanceof window.constructor)return!1;var t={}.toString;if(t){var r=t.call(e);if("[object Window]"===r||"[object global]"===r||"[object DOMWindow]"===r)return!1}if("function"==typeof e.then)return!0}catch(n){return!1}return!1}var x,C=[],R=[],E=0;function T(){if(!E&&x){var e=x;x=null,e.resolve()}}function k(){E+=1}function F(){E-=1,T()}var W=function(){function e(e){var t=this;if(this.resolved=void 0,this.rejected=void 0,this.errorHandled=void 0,this.value=void 0,this.error=void 0,this.handlers=void 0,this.dispatching=void 0,this.stack=void 0,this.resolved=!1,this.rejected=!1,this.errorHandled=!1,this.handlers=[],e){var r,n,i=!1,a=!1,o=!1;k();try{e(function(e){o?t.resolve(e):(i=!0,r=e)},function(e){o?t.reject(e):(a=!0,n=e)})}catch(s){return F(),void this.reject(s)}F(),o=!0,i?this.resolve(r):a&&this.reject(n)}}var t=e.prototype;return t.resolve=function(e){if(this.resolved||this.rejected)return this;if(U(e))throw new Error("Can not resolve promise with another promise");return this.resolved=!0,this.value=e,this.dispatch(),this},t.reject=function(e){var t=this;if(this.resolved||this.rejected)return this;if(U(e))throw new Error("Can not reject promise with another promise");if(!e){var r=e&&"function"==typeof e.toString?e.toString():{}.toString.call(e);e=new Error("Expected reject to be called with Error, got "+r)}return this.rejected=!0,this.error=e,this.errorHandled||setTimeout(function(){t.errorHandled||function(e,t){if(-1===C.indexOf(e)){C.push(e),setTimeout(function(){throw e},1);for(var r=0;r<R.length;r++)R[r](e,t)}}(e,t)},1),this.dispatch(),this},t.asyncReject=function(e){return this.errorHandled=!0,this.reject(e),this},t.dispatch=function(){var t=this.resolved,r=this.rejected,n=this.handlers;if(!this.dispatching&&(t||r)){this.dispatching=!0,k();for(var i=function(e,t){return e.then(function(e){t.resolve(e)},function(e){t.reject(e)})},a=0;a<n.length;a++){var o=n[a],s=o.onSuccess,l=o.onError,c=o.promise,u=void 0;if(t)try{u=s?s(this.value):this.value}catch(p){c.reject(p);continue}else if(r){if(!l){c.reject(this.error);continue}try{u=l(this.error)}catch(p){c.reject(p);continue}}if(u instanceof e&&(u.resolved||u.rejected)){var d=u;d.resolved?c.resolve(d.value):c.reject(d.error),d.errorHandled=!0}else U(u)?u instanceof e&&(u.resolved||u.rejected)?u.resolved?c.resolve(u.value):c.reject(u.error):i(u,c):c.resolve(u)}n.length=0,this.dispatching=!1,F()}},t.then=function(t,r){if(t&&"function"!=typeof t&&!t.call)throw new Error("Promise.then expected a function for success handler");if(r&&"function"!=typeof r&&!r.call)throw new Error("Promise.then expected a function for error handler");var n=new e;return this.handlers.push({promise:n,onSuccess:t,onError:r}),this.errorHandled=!0,this.dispatch(),n},t.catch=function(e){return this.then(void 0,e)},t.finally=function(t){if(t&&"function"!=typeof t&&!t.call)throw new Error("Promise.finally expected a function");return this.then(function(r){return e.try(t).then(function(){return r})},function(r){return e.try(t).then(function(){throw r})})},t.timeout=function(e,t){var r=this;if(this.resolved||this.rejected)return this;var n=setTimeout(function(){r.resolved||r.rejected||r.reject(t||new Error("Promise timed out after "+e+"ms"))},e);return this.then(function(e){return clearTimeout(n),e})},t.toPromise=function(){if("undefined"==typeof Promise)throw new TypeError("Could not find Promise");return Promise.resolve(this)},t.lazy=function(){return this.errorHandled=!0,this},e.resolve=function(t){return t instanceof e?t:U(t)?new e(function(e,r){return t.then(e,r)}):(new e).resolve(t)},e.reject=function(t){return(new e).reject(t)},e.asyncReject=function(t){return(new e).asyncReject(t)},e.all=function(t){var r=new e,n=t.length,i=[].slice();if(!n)return r.resolve(i),r;for(var a=function(e,t,a){return t.then(function(t){i[e]=t,0==(n-=1)&&r.resolve(i)},function(e){a.reject(e)})},o=0;o<t.length;o++){var s=t[o];if(s instanceof e){if(s.resolved){i[o]=s.value,n-=1;continue}}else if(!U(s)){i[o]=s,n-=1;continue}a(o,e.resolve(s),r)}return 0===n&&r.resolve(i),r},e.hash=function(t){var r={},n=[],i=function(e){if(t.hasOwnProperty(e)){var i=t[e];U(i)?n.push(i.then(function(t){r[e]=t})):r[e]=i}};for(var a in t)i(a);return e.all(n).then(function(){return r})},e.map=function(t,r){return e.all(t.map(r))},e.onPossiblyUnhandledException=function(e){return t=e,R.push(t),{cancel:function(){R.splice(R.indexOf(t),1)}};var t},e.try=function(t,r,n){if(t&&"function"!=typeof t&&!t.call)throw new Error("Promise.try expected a function");var i;k();try{i=t.apply(r,n||[])}catch(a){return F(),e.reject(a)}return F(),e.resolve(i)},e.delay=function(t){return new e(function(e){setTimeout(e,t)})},e.isPromise=function(t){return!!(t&&t instanceof e)||U(t)},e.flush=function(){return t=x=x||new e,T(),t;var t},e}();function N(e,t){for(var r=0;r<e.length;r++)try{if(e[r]===t)return r}catch(n){}return-1}var K,O=function(){function e(){if(this.name=void 0,this.weakmap=void 0,this.keys=void 0,this.values=void 0,this.name="__weakmap_"+(1e9*Math.random()>>>0)+"__",function(){if("undefined"==typeof WeakMap)return!1;if(void 0===Object.freeze)return!1;try{var e=new WeakMap,t={};return Object.freeze(t),e.set(t,"__testvalue__"),"__testvalue__"===e.get(t)}catch(r){return!1}}())try{this.weakmap=new WeakMap}catch(e){}this.keys=[],this.values=[]}var t=e.prototype;return t._cleanupClosedWindows=function(){for(var e=this.weakmap,t=this.keys,r=0;r<t.length;r++){var n=t[r];if(S(n)&&v(n)){if(e)try{e.delete(n)}catch(i){}t.splice(r,1),this.values.splice(r,1),r-=1}}},t.isSafeToReadWrite=function(e){return!S(e)},t.set=function(e,t){if(!e)throw new Error("WeakMap expected key");var r=this.weakmap;if(r)try{r.set(e,t)}catch(l){delete this.weakmap}if(this.isSafeToReadWrite(e))try{var n=this.name,i=e[n];return void(i&&i[0]===e?i[1]=t:Object.defineProperty(e,n,{value:[e,t],writable:!0}))}catch(l){}this._cleanupClosedWindows();var a=this.keys,o=this.values,s=N(a,e);-1===s?(a.push(e),o.push(t)):o[s]=t},t.get=function(e){if(!e)throw new Error("WeakMap expected key");var t=this.weakmap;if(t)try{if(t.has(e))return t.get(e)}catch(i){delete this.weakmap}if(this.isSafeToReadWrite(e))try{var r=e[this.name];return r&&r[0]===e?r[1]:void 0}catch(i){}this._cleanupClosedWindows();var n=N(this.keys,e);if(-1!==n)return this.values[n]},t.delete=function(e){if(!e)throw new Error("WeakMap expected key");var t=this.weakmap;if(t)try{t.delete(e)}catch(a){delete this.weakmap}if(this.isSafeToReadWrite(e))try{var r=e[this.name];r&&r[0]===e&&(r[0]=r[1]=void 0)}catch(a){}this._cleanupClosedWindows();var n=this.keys,i=N(n,e);-1!==i&&(n.splice(i,1),this.values.splice(i,1))},t.has=function(e){if(!e)throw new Error("WeakMap expected key");var t=this.weakmap;if(t)try{if(t.has(e))return!0}catch(n){delete this.weakmap}if(this.isSafeToReadWrite(e))try{var r=e[this.name];return!(!r||r[0]!==e)}catch(n){}return this._cleanupClosedWindows(),-1!==N(this.keys,e)},t.getOrSet=function(e,t){if(this.has(e))return this.get(e);var r=t();return this.set(e,r),r},e}();function P(e){return e.name||e.__name__||e.displayName||"anonymous"}function I(e,t){try{delete e.name,e.name=t}catch(r){}return e.__name__=e.displayName=t,e}function L(){var e="0123456789abcdef";return"uid_"+"xxxxxxxxxx".replace(/./g,function(){return e.charAt(Math.floor(16*Math.random()))})+"_"+function(e){if("function"==typeof btoa)return btoa(encodeURIComponent(e).replace(/%([0-9A-F]{2})/g,function(e,t){return String.fromCharCode(parseInt(t,16))})).replace(/[=]/g,"");if("undefined"!=typeof Buffer)return Buffer.from(e,"utf8").toString("base64").replace(/[=]/g,"");throw new Error("Can not find window.btoa or Buffer")}((new Date).toISOString().slice(11,19).replace("T",".")).replace(/[^a-zA-Z0-9]/g,"").toLowerCase()}function B(e){try{return JSON.stringify([].slice.call(e),function(e,t){return"function"==typeof t?"memoize["+function(e){if(K=K||new O,null==e||"object"!=typeof e&&"function"!=typeof e)throw new Error("Invalid object");var t=K.get(e);return t||(t=typeof e+":"+L(),K.set(e,t)),t}(t)+"]":"undefined"!=typeof window&&t instanceof window.Element||null!==t&&"object"==typeof t&&1===t.nodeType&&"object"==typeof t.style&&"object"==typeof t.ownerDocument?{}:t})}catch(t){throw new Error("Arguments not serializable -- can not be used to memoize")}}function D(){return{}}var X=0,j=0;function M(e,t){void 0===t&&(t={});var r,n,i=t.thisNamespace,a=void 0!==i&&i,o=t.time,s=X;X+=1;var l=function(){for(var t=arguments.length,i=new Array(t),l=0;l<t;l++)i[l]=arguments[l];var c,u;s<j&&(r=null,n=null,s=X,X+=1),c=a?(n=n||new O).getOrSet(this,D):r=r||{};try{u=B(i)}catch(q){return e.apply(this,arguments)}var d=c[u];if(d&&o&&Date.now()-d.time<o&&(delete c[u],d=null),d)return d.value;var p=Date.now(),h=e.apply(this,arguments);return c[u]={time:p,value:h},h};return l.reset=function(){r=null,n=null},I(l,(t.name||P(e))+"::memoized")}function z(e){var t={};function r(){for(var r=arguments,n=this,i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];var s=B(a);return t.hasOwnProperty(s)||(t[s]=W.try(function(){return e.apply(n,r)}).finally(function(){delete t[s]})),t[s]}return r.reset=function(){t={}},I(r,P(e)+"::promiseMemoized")}function G(){}function Z(e,t){if(void 0===t&&(t=1),t>=3)return"stringifyError stack overflow";try{if(!e)return"<unknown error: "+{}.toString.call(e)+">";if("string"==typeof e)return e;if(e instanceof Error){var r=e&&e.stack,n=e&&e.message;if(r&&n)return-1!==r.indexOf(n)?r:n+"\n"+r;if(r)return r;if(n)return n}return e&&e.toString&&"function"==typeof e.toString?e.toString():{}.toString.call(e)}catch(i){return"Error while stringifying error: "+Z(i,t+1)}}function H(e){return"string"==typeof e?e:e.toString&&"function"==typeof e.toString?e.toString():{}.toString.call(e)}function Y(e){return"[object RegExp]"==={}.toString.call(e)}function Q(e,t,r){if(e.hasOwnProperty(t))return e[t];var n=r();return e[t]=n,n}function J(){var e=document.body;if(!e)throw new Error("Body element not found");return e}function _(){return Boolean(document.body)&&"complete"===document.readyState}function $(){return Boolean(document.body)&&"interactive"===document.readyState}M.clear=function(){j=X},M(function(e){if(Object.values)return Object.values(e);var t=[];for(var r in e)e.hasOwnProperty(r)&&t.push(e[r]);return t}),M(function(){return new W(function(e){if(_()||$())return e();var t=setInterval(function(){if(_()||$())return clearInterval(t),e()},10)})});var ee="undefined"!=typeof document?document.currentScript:null,te=M(function(){if(ee)return ee;if(ee=function(){try{var e=function(){try{throw new Error("_")}catch(e){return e.stack||""}}(),t=/.*at [^(]*\((.*):(.+):(.+)\)$/gi.exec(e),r=t&&t[1];if(!r)return;for(var n=0,i=[].slice.call(document.getElementsByTagName("script")).reverse();n<i.length;n++){var a=i[n];if(a.src&&a.src===r)return a}}catch(o){}}())return ee;throw new Error("Can not determine current script")}),re=L();function ne(e){void 0===e&&(e=window);var t="__post_robot_10_0_46__";return e!==window?e[t]:e[t]=e[t]||{}}M(function(){var e;try{e=te()}catch(n){return re}var t=e.getAttribute("data-uid");if(t&&"string"==typeof t)return t;if((t=e.getAttribute("data-uid-auto"))&&"string"==typeof t)return t;if(e.src){var r=function(e){for(var t="",r=0;r<e.length;r++){var n=e[r].charCodeAt(0)*r;e[r+1]&&(n+=e[r+1].charCodeAt(0)*(r-1)),t+=String.fromCharCode(97+Math.abs(n)%26)}return t}(JSON.stringify({src:e.src,dataset:e.dataset}));t="uid_"+r.slice(r.length-30)}else t=L();return e.setAttribute("data-uid-auto",t),t});var ie=function(){return{}};function ae(e,t){return void 0===e&&(e="store"),void 0===t&&(t=ie),Q(ne(),e,function(){var e=t();return{has:function(t){return e.hasOwnProperty(t)},get:function(t,r){return e.hasOwnProperty(t)?e[t]:r},set:function(t,r){return e[t]=r,r},del:function(t){delete e[t]},getOrSet:function(t,r){return Q(e,t,r)},reset:function(){e=t()},keys:function(){return Object.keys(e)}}})}var oe,se=function(){};function le(){var e=ne();return e.WINDOW_WILDCARD=e.WINDOW_WILDCARD||new se,e.WINDOW_WILDCARD}function ce(e,t){return void 0===e&&(e="store"),void 0===t&&(t=ie),ae("windowStore").getOrSet(e,function(){var r=new O,n=function(e){return r.getOrSet(e,t)};return{has:function(t){return n(t).hasOwnProperty(e)},get:function(t,r){var i=n(t);return i.hasOwnProperty(e)?i[e]:r},set:function(t,r){return n(t)[e]=r,r},del:function(t){delete n(t)[e]},getOrSet:function(t,r){return Q(n(t),e,r)}}})}function ue(){return ae("instance").getOrSet("instanceID",L)}function de(e,t){var r=t.domain,n=ce("helloPromises"),i=n.get(e);i&&i.resolve({domain:r});var a=W.resolve({domain:r});return n.set(e,a),a}function pe(e,t){return(0,t.send)(e,"postrobot_hello",{instanceID:ue()},{domain:"*",timeout:-1}).then(function(t){var r=t.origin,n=t.data.instanceID;return de(e,{domain:r}),{win:e,domain:r,instanceID:n}})}function he(e,t){var r=t.send;return ce("windowInstanceIDPromises").getOrSet(e,function(){return pe(e,{send:r}).then(function(e){return e.instanceID})})}function qe(e){ce("knownWindows").set(e,!0)}function fe(e){return"object"==typeof e&&null!==e&&"string"==typeof e.__type__}function me(e){return void 0===e?"undefined":null===e?"null":Array.isArray(e)?"array":"function"==typeof e?"function":"object"==typeof e?e instanceof Error?"error":"function"==typeof e.then?"promise":"[object RegExp]"==={}.toString.call(e)?"regex":"[object Date]"==={}.toString.call(e)?"date":"object":"string"==typeof e?"string":"number"==typeof e?"number":"boolean"==typeof e?"boolean":void 0}function Ve(e,t){return{__type__:e,__val__:t}}var ge,ve=((oe={}).function=function(){},oe.error=function(e){return Ve("error",{message:e.message,stack:e.stack,code:e.code,data:e.data})},oe.promise=function(){},oe.regex=function(e){return Ve("regex",e.source)},oe.date=function(e){return Ve("date",e.toJSON())},oe.array=function(e){return e},oe.object=function(e){return e},oe.string=function(e){return e},oe.number=function(e){return e},oe.boolean=function(e){return e},oe.null=function(e){return e},oe[void 0]=function(e){return Ve("undefined",e)},oe),be={},ye=((ge={}).function=function(){throw new Error("Function serialization is not implemented; nothing to deserialize")},ge.error=function(e){var t=e.stack,r=e.code,n=e.data,i=new Error(e.message);return i.code=r,n&&(i.data=n),i.stack=t+"\n\n"+i.stack,i},ge.promise=function(){throw new Error("Promise serialization is not implemented; nothing to deserialize")},ge.regex=function(e){return new RegExp(e)},ge.date=function(e){return new Date(e)},ge.array=function(e){return e},ge.object=function(e){return e},ge.string=function(e){return e},ge.number=function(e){return e},ge.boolean=function(e){return e},ge.null=function(e){return e},ge[void 0]=function(){},ge),Se={};function Ae(){for(var e=ae("idToProxyWindow"),t=0,r=e.keys();t<r.length;t++){var n=r[t];e.get(n).shouldClean()&&e.del(n)}}function we(e,t){var r=t.send,n=t.id,i=void 0===n?L():n,a=e.then(function(e){if(h(e))return q(e).name}),o=e.then(function(e){if(v(e))throw new Error("Window is closed, can not determine type");return c(e)?"popup":"iframe"});a.catch(G),o.catch(G);var s=function(){return e.then(function(e){if(!v(e))return h(e)?q(e).name:a})};return{id:i,getType:function(){return o},getInstanceID:z(function(){return e.then(function(e){return he(e,{send:r})})}),close:function(){return e.then(w)},getName:s,focus:function(){return e.then(function(e){e.focus()})},isClosed:function(){return e.then(function(e){return v(e)})},setLocation:function(t,r){return void 0===r&&(r={}),e.then(function(e){var n=window.location.protocol+"//"+window.location.host,i=r.method,a=void 0===i?"get":i,o=r.body;if(0===t.indexOf("/"))t=""+n+t;else if(!t.match(/^https?:\/\//)&&0!==t.indexOf(n))throw new Error("Expected url to be http or https url, or absolute path, got "+JSON.stringify(t));if("post"===a)return s().then(function(e){if(!e)throw new Error("Can not post to window without target name");!function(e){var t=e.url,r=e.target,n=e.body,i=e.method,a=void 0===i?"post":i,o=document.createElement("form");if(o.setAttribute("target",r),o.setAttribute("method",a),o.setAttribute("action",t),o.style.display="none",n)for(var s=0,l=Object.keys(n);s<l.length;s++){var c,u=l[s],d=document.createElement("input");d.setAttribute("name",u),d.setAttribute("value",null==(c=n[u])?void 0:c.toString()),o.appendChild(d)}J().appendChild(o),o.submit(),J().removeChild(o)}({url:t,target:e,method:a,body:o})});if("get"!==a)throw new Error("Unsupported method: "+a);if(h(e))try{if(e.location&&"function"==typeof e.location.replace)return void e.location.replace(t)}catch(l){}e.location=t})},setName:function(t){return e.then(function(e){var r=h(e),n=A(e);if(!r)throw new Error("Can not set name for cross-domain window: "+t);q(e).name=t,n&&n.setAttribute("name",t),a=W.resolve(t)})}}}new W(function(e){if(window.document&&window.document.body)return e(window.document.body);var t=setInterval(function(){if(window.document&&window.document.body)return clearInterval(t),e(window.document.body)},10)});var Ue=function(){function e(e){var t=e.send,r=e.win,n=e.serializedWindow;this.id=void 0,this.isProxyWindow=!0,this.serializedWindow=void 0,this.actualWindow=void 0,this.actualWindowPromise=void 0,this.send=void 0,this.name=void 0,this.actualWindowPromise=new W,this.serializedWindow=n||we(this.actualWindowPromise,{send:t}),ae("idToProxyWindow").set(this.getID(),this),r&&this.setWindow(r,{send:t})}var t=e.prototype;return t.getID=function(){return this.serializedWindow.id},t.getType=function(){return this.serializedWindow.getType()},t.isPopup=function(){return this.getType().then(function(e){return"popup"===e})},t.setLocation=function(e,t){var r=this;return this.serializedWindow.setLocation(e,t).then(function(){return r})},t.getName=function(){return this.serializedWindow.getName()},t.setName=function(e){var t=this;return this.serializedWindow.setName(e).then(function(){return t})},t.close=function(){var e=this;return this.serializedWindow.close().then(function(){return e})},t.focus=function(){var e=this,t=this.isPopup(),r=this.getName(),n=W.hash({isPopup:t,name:r}).then(function(e){var t=e.name;e.isPopup&&t&&window.open("",t,"noopener")}),i=this.serializedWindow.focus();return W.all([n,i]).then(function(){return e})},t.isClosed=function(){return this.serializedWindow.isClosed()},t.getWindow=function(){return this.actualWindow},t.setWindow=function(e,t){var r=t.send;this.actualWindow=e,this.actualWindowPromise.resolve(this.actualWindow),this.serializedWindow=we(this.actualWindowPromise,{send:r,id:this.getID()}),ce("winToProxyWindow").set(e,this)},t.awaitWindow=function(){return this.actualWindowPromise},t.matchWindow=function(e,t){var r=this,n=t.send;return W.try(function(){return r.actualWindow?e===r.actualWindow:W.hash({proxyInstanceID:r.getInstanceID(),knownWindowInstanceID:he(e,{send:n})}).then(function(t){var i=t.proxyInstanceID===t.knownWindowInstanceID;return i&&r.setWindow(e,{send:n}),i})})},t.unwrap=function(){return this.actualWindow||this},t.getInstanceID=function(){return this.serializedWindow.getInstanceID()},t.shouldClean=function(){return Boolean(this.actualWindow&&v(this.actualWindow))},t.serialize=function(){return this.serializedWindow},e.unwrap=function(t){return e.isProxyWindow(t)?t.unwrap():t},e.serialize=function(t,r){var n=r.send;return Ae(),e.toProxyWindow(t,{send:n}).serialize()},e.deserialize=function(t,r){var n=r.send;return Ae(),ae("idToProxyWindow").get(t.id)||new e({serializedWindow:t,send:n})},e.isProxyWindow=function(e){return Boolean(e&&!S(e)&&e.isProxyWindow)},e.toProxyWindow=function(t,r){var n=r.send;if(Ae(),e.isProxyWindow(t))return t;var i=t;return ce("winToProxyWindow").get(i)||new e({win:i,send:n})},e}();function xe(e,t,r,n,i){var a=ce("methodStore"),o=ae("proxyWindowMethods");Ue.isProxyWindow(n)?o.set(e,{val:t,name:r,domain:i,source:n}):(o.del(e),a.getOrSet(n,function(){return{}})[e]={domain:i,name:r,val:t,source:n})}function Ce(e,t){var r=ce("methodStore"),n=ae("proxyWindowMethods");return r.getOrSet(e,function(){return{}})[t]||n.get(t)}function Re(e,t,r,n,i){var a,o,s;o=(a={on:i.on,send:i.send}).on,s=a.send,ae("builtinListeners").getOrSet("functionCalls",function(){return o("postrobot_method",{domain:"*"},function(e){var t=e.source,r=e.origin,n=e.data,i=n.id,a=n.name,o=Ce(t,i);if(!o)throw new Error("Could not find method '"+a+"' with id: "+n.id+" in "+p(window));var l=o.source,c=o.domain,u=o.val;return W.try(function(){if(!y(c,r))throw new Error("Method '"+n.name+"' domain "+JSON.stringify(Y(o.domain)?o.domain.source:o.domain)+" does not match origin "+r+" in "+p(window));if(Ue.isProxyWindow(l))return l.matchWindow(t,{send:s}).then(function(e){if(!e)throw new Error("Method call '"+n.name+"' failed - proxy window does not match source in "+p(window))})}).then(function(){return u.apply({source:t,origin:r},n.args)},function(e){return W.try(function(){if(u.onError)return u.onError(e)}).then(function(){var t,r;throw e.stack&&(e.stack="Remote call to "+a+"("+(void 0===(t=n.args)&&(t=[]),(r=t,[].slice.call(r)).map(function(e){return"string"==typeof e?"'"+e+"'":void 0===e?"undefined":null===e?"null":"boolean"==typeof e?e.toString():Array.isArray(e)?"[ ... ]":"object"==typeof e?"{ ... }":"function"==typeof e?"() => { ... }":"<"+typeof e+">"}).join(", ")+") failed\n\n")+e.stack),e})}).then(function(e){return{result:e,id:i,name:a}})})});var l=r.__id__||L();e=Ue.unwrap(e);var c=r.__name__||r.name||n;return"string"==typeof c&&"function"==typeof c.indexOf&&0===c.indexOf("anonymous::")&&(c=c.replace("anonymous::",n+"::")),Ue.isProxyWindow(e)?(xe(l,r,c,e,t),e.awaitWindow().then(function(e){xe(l,r,c,e,t)})):xe(l,r,c,e,t),Ve("cross_domain_function",{id:l,name:c})}function Ee(e,t,r,n){var i,a=n.on,o=n.send;return function(e,t){void 0===t&&(t=be);var r=JSON.stringify(e,function(e){var r=this[e];if(fe(this))return r;var n=me(r);if(!n)return r;var i=t[n]||ve[n];return i?i(r,e):r});return void 0===r?"undefined":r}(r,((i={}).promise=function(r,n){return i=r,Ve("cross_domain_zalgo_promise",{then:Re(e,t,function(e,t){return i.then(e,t)},n,{on:(s={on:a,send:o}).on,send:s.send})});var i,s},i.function=function(r,n){return Re(e,t,r,n,{on:a,send:o})},i.object=function(e){return S(e)||Ue.isProxyWindow(e)?Ve("cross_domain_window",Ue.serialize(e,{send:o})):e},i))}function Te(e,t,r,n){var i,a=n.send;return function(e,t){if(void 0===t&&(t=Se),"undefined"!==e)return JSON.parse(e,function(e,r){if(fe(this))return r;var n,i;if(fe(r)?(n=r.__type__,i=r.__val__):(n=me(r),i=r),!n)return i;var a=t[n]||ye[n];return a?a(i,e):i})}(r,((i={}).cross_domain_zalgo_promise=function(e){return new W(e.then)},i.cross_domain_function=function(r){return n=e,i=t,s={send:a},l=(o=r).id,c=o.name,u=s.send,d=function(e){function t(){var r=arguments;return Ue.toProxyWindow(n,{send:u}).awaitWindow().then(function(n){var a=Ce(n,l);if(a&&a.val!==t)return a.val.apply({source:window,origin:p()},r);var o=[].slice.call(r);return e.fireAndForget?u(n,"postrobot_method",{id:l,name:c,args:o},{domain:i,fireAndForget:!0}):u(n,"postrobot_method",{id:l,name:c,args:o},{domain:i,fireAndForget:!1}).then(function(e){return e.data.result})}).catch(function(e){throw e})}return void 0===e&&(e={}),t.__name__=c,t.__origin__=i,t.__source__=n,t.__id__=l,t.origin=i,t},(h=d()).fireAndForget=d({fireAndForget:!0}),h;var n,i,o,s,l,c,u,d,h},i.cross_domain_window=function(e){return Ue.deserialize(e,{send:a})},i))}var ke={};function Fe(e,t,r,n){var i=n.on,a=n.send;return W.try(function(){var n=ce().getOrSet(e,function(){return{}});return n.buffer=n.buffer||[],n.buffer.push(r),n.flush=n.flush||W.flush().then(function(){if(v(e))throw new Error("Window is closed");var r,o=Ee(e,t,((r={}).__post_robot_10_0_46__=n.buffer||[],r),{on:i,send:a});delete n.buffer;for(var s=Object.keys(ke),l=[],c=0;c<s.length;c++){var u=s[c];try{ke[u](e,o,t)}catch(d){l.push(d)}}if(l.length===s.length)throw new Error("All post-robot messaging strategies failed:\n\n"+l.map(function(e,t){return t+". "+Z(e)}).join("\n\n"))}),n.flush.then(function(){delete n.flush})}).then(G)}function We(e){return ae("responseListeners").get(e)}function Ne(e){ae("responseListeners").del(e)}function Ke(e){return ae("erroredResponseListeners").has(e)}function Oe(e){var t=e.name,r=e.win,n=e.domain,i=ce("requestListeners");if("*"===r&&(r=null),"*"===n&&(n=null),!t)throw new Error("Name required to get request listener");for(var a=0,o=[r,le()];a<o.length;a++){var s=o[a];if(s){var l=i.get(s);if(l){var c=l[t];if(c){if(n&&"string"==typeof n){if(c[n])return c[n];if(c.__domain_regex__)for(var u=0,d=c.__domain_regex__;u<d.length;u++){var p=d[u],h=p.listener;if(y(p.regex,n))return h}}if(c["*"])return c["*"]}}}}}function Pe(e,t,r,n){var i=n.on,a=n.send,o=Oe({name:r.name,win:e,domain:t}),s="postrobot_method"===r.name&&r.data&&"string"==typeof r.data.name?r.data.name+"()":r.name;function l(n,o,l){return W.flush().then(function(){if(!r.fireAndForget&&!v(e))try{return Fe(e,t,{id:L(),origin:p(window),type:"postrobot_message_response",hash:r.hash,name:r.name,ack:n,data:o,error:l},{on:i,send:a})}catch(c){throw new Error("Send response message failed for "+s+" in "+p()+"\n\n"+Z(c))}})}return W.all([W.flush().then(function(){if(!r.fireAndForget&&!v(e))try{return Fe(e,t,{id:L(),origin:p(window),type:"postrobot_message_ack",hash:r.hash,name:r.name},{on:i,send:a})}catch(n){throw new Error("Send ack message failed for "+s+" in "+p()+"\n\n"+Z(n))}}),W.try(function(){if(!o)throw new Error("No handler found for post message: "+r.name+" from "+t+" in "+window.location.protocol+"//"+window.location.host+window.location.pathname);return o.handler({source:e,origin:t,data:r.data})}).then(function(e){return l("success",e)},function(e){return l("error",null,e)})]).then(G).catch(function(e){if(o&&o.handleError)return o.handleError(e);throw e})}function Ie(e,t,r){if(!Ke(r.hash)){var n=We(r.hash);if(!n)throw new Error("No handler found for post message ack for message: "+r.name+" from "+t+" in "+window.location.protocol+"//"+window.location.host+window.location.pathname);try{if(!y(n.domain,t))throw new Error("Ack origin "+t+" does not match domain "+n.domain.toString());if(e!==n.win)throw new Error("Ack source does not match registered window")}catch(i){n.promise.reject(i)}n.ack=!0}}function Le(e,t,r){if(!Ke(r.hash)){var i,a=We(r.hash);if(!a)throw new Error("No handler found for post message response for message: "+r.name+" from "+t+" in "+window.location.protocol+"//"+window.location.host+window.location.pathname);if(!y(a.domain,t))throw new Error("Response origin "+t+" does not match domain "+(i=a.domain,Array.isArray(i)?"("+i.join(" | ")+")":n(i)?"RegExp("+i.toString()+")":i.toString()));if(e!==a.win)throw new Error("Response source does not match registered window");Ne(r.hash),"error"===r.ack?a.promise.reject(r.error):"success"===r.ack&&a.promise.resolve({source:e,origin:t,data:r.data})}}function Be(e,t){var r=t.on,n=t.send,i=ae("receivedMessages");try{if(!window||window.closed||!e.source)return}catch(u){return}var a=e.source,o=e.origin,s=function(e,t,r,n){var i,a=n.on,o=n.send;try{i=Te(t,r,e,{on:a,send:o})}catch(u){return}if(i&&"object"==typeof i&&null!==i){var s=i.__post_robot_10_0_46__;if(Array.isArray(s))return s}}(e.data,a,o,{on:r,send:n});if(s){qe(a);for(var l=0;l<s.length;l++){var c=s[l];if(i.has(c.id))return;if(i.set(c.id,!0),v(a)&&!c.fireAndForget)return;0===c.origin.indexOf("file:")&&(o="file://");try{"postrobot_message_request"===c.type?Pe(a,o,c,{on:r,send:n}):"postrobot_message_response"===c.type?Le(a,o,c):"postrobot_message_ack"===c.type&&Ie(a,o,c)}catch(u){setTimeout(function(){throw u},0)}}}}function De(e,t,r){if(!e)throw new Error("Expected name");if("function"==typeof(t=t||{})&&(r=t,t={}),!r)throw new Error("Expected handler");var n=function e(t,r){var n=t.name,i=t.win,a=t.domain,o=ce("requestListeners");if(!n||"string"!=typeof n)throw new Error("Name required to add request listener");if(i&&"*"!==i&&Ue.isProxyWindow(i)){var s=i.awaitWindow().then(function(t){return e({name:n,win:t,domain:a},r)});return{cancel:function(){s.then(function(e){return e.cancel()},G)}}}var l=i;if(Array.isArray(l)){for(var c=[],u=0,d=l;u<d.length;u++)c.push(e({name:n,domain:a,win:d[u]},r));return{cancel:function(){for(var e=0;e<c.length;e++)c[e].cancel()}}}if(Array.isArray(a)){for(var p=[],h=0,q=a;h<q.length;h++)p.push(e({name:n,win:l,domain:q[h]},r));return{cancel:function(){for(var e=0;e<p.length;e++)p[e].cancel()}}}var f=Oe({name:n,win:l,domain:a});l&&"*"!==l||(l=le());var m=(a=a||"*").toString();if(f)throw l&&a?new Error("Request listener already exists for "+n+" on domain "+a.toString()+" for "+(l===le()?"wildcard":"specified")+" window"):l?new Error("Request listener already exists for "+n+" for "+(l===le()?"wildcard":"specified")+" window"):a?new Error("Request listener already exists for "+n+" on domain "+a.toString()):new Error("Request listener already exists for "+n);var V,g,v=o.getOrSet(l,function(){return{}}),b=Q(v,n,function(){return{}});return Y(a)?(V=Q(b,"__domain_regex__",function(){return[]})).push(g={regex:a,listener:r}):b[m]=r,{cancel:function(){delete b[m],g&&(V.splice(V.indexOf(g,1)),V.length||delete b.__domain_regex__),Object.keys(b).length||delete v[n],l&&!Object.keys(v).length&&o.del(l)}}}({name:e,win:t.window,domain:t.domain||"*"},{handler:r||t.handler,handleError:t.errorHandler||function(e){throw e}});return{cancel:function(){n.cancel()}}}function Xe(e,t,r){"function"==typeof(t=t||{})&&(r=t,t={});var n,i=new W;return t.errorHandler=function(e){n.cancel(),i.reject(e)},n=De(e,t,function(e){if(n.cancel(),i.resolve(e),r)return r(e)}),i.cancel=n.cancel,i}ke.postrobot_post_message=function(e,t,r){0===r.indexOf("file:")&&(r="*"),e.postMessage(t,r)};var je=function e(t,r,n,i){var a=(i=i||{}).domain||"*",o=i.timeout||-1,s=i.timeout||5e3,c=i.fireAndForget||!1;return Ue.toProxyWindow(t,{send:e}).awaitWindow().then(function(t){return W.try(function(){if(function(e,t,r){if(!e)throw new Error("Expected name");if("string"!=typeof r&&!Array.isArray(r)&&!Y(r))throw new TypeError("Can not send "+e+". Expected domain "+JSON.stringify(r)+" to be a string, array, or regex");if(v(t))throw new Error("Can not send "+e+". Target window is closed")}(r,t,a),function(e,t){var r=b(t);if(r)return r===e;if(t===e)return!1;if(function(e){void 0===e&&(e=window);try{if(e.top)return e.top}catch(i){}if(l(e)===e)return e;try{if(f(window,e)&&window.top)return window.top}catch(i){}try{if(f(e,window)&&window.top)return window.top}catch(i){}for(var t=0,r=function e(t){for(var r=[],n=0,i=m(t);n<i.length;n++){var a=i[n];r.push(a);for(var o=0,s=e(a);o<s.length;o++)r.push(s[o])}return r}(e);t<r.length;t++){var n=r[t];try{if(n.top)return n.top}catch(i){}if(l(n)===n)return n}}(t)===t)return!1;for(var n=0,i=m(e);n<i.length;n++)if(i[n]===t)return!0;return!1}(window,t))return function(e,t,r){void 0===t&&(t=5e3),void 0===r&&(r="Window");var n,i=(n=e,ce("helloPromises").getOrSet(n,function(){return new W}));return-1!==t&&(i=i.timeout(t,new Error(r+" did not load after "+t+"ms"))),i}(t,s)}).then(function(r){return n=t,i=a,o=(void 0===r?{}:r).domain,s=e,W.try(function(){return"string"==typeof i?i:W.try(function(){return o||pe(n,{send:s}).then(function(e){return e.domain})}).then(function(e){if(!y(i,i))throw new Error("Domain "+H(i)+" does not match "+H(i));return e})});var n,i,o,s}).then(function(i){var a,s,l,u,d=i,h="postrobot_method"===r&&n&&"string"==typeof n.name?n.name+"()":r,q=new W,f=r+"_"+L();if(!c){var m={name:r,win:t,domain:d,promise:q};l=f,u=m,ae("responseListeners").set(l,u);var V=ce("requestPromises").getOrSet(t,function(){return[]});V.push(q),q.catch(function(){!function(e){ae("erroredResponseListeners").set(e,!0)}(f),Ne(f)});var g=(s=t,ce("knownWindows").get(s,!1)?1e4:2e3),b=o,y=g,S=b,A=(function e(){a=setTimeout(function(){v(t)?q.reject(new Error("Window closed for "+r+" before "+(m.ack?"response":"ack"))):m.cancelled?q.reject(new Error("Response listener was cancelled for "+r)):(y=Math.max(y-500,0),-1!==S&&(S=Math.max(S-500,0)),m.ack||0!==y?0===S&&q.reject(new Error("No response for postMessage "+h+" in "+p()+" in "+b+"ms")):q.reject(new Error("No ack for postMessage "+h+" in "+p()+" in "+g+"ms"))),e()},500)}(),{cancel:function(){clearTimeout(a)}});q.finally(function(){A.cancel(),V.splice(V.indexOf(q,1))}).catch(G)}return Fe(t,d,{id:L(),origin:p(window),type:"postrobot_message_request",hash:f,name:r,data:n,fireAndForget:c},{on:De,send:e}).then(function(){return c?q.resolve():q},function(e){throw new Error("Send request message failed for "+h+" in "+p()+"\n\n"+Z(e))})})})};function Me(e,t,r){return Ee(e,t,r,{on:De,send:je})}function ze(e,t,r){return Te(e,t,r,{send:je})}function Ge(e){return new Ue({send:je,win:e})}function Ze(e){return Ue.toProxyWindow(e,{send:je})}function He(){var e,t,r,n,i,a,o;ne().initialized||(ne().initialized=!0,i=(n={on:De,send:je}).on,a=n.send,(o=ne()).receiveMessage=o.receiveMessage||function(e){return Be(e,{on:i,send:a})},t=(e={on:De,send:je}).on,r=e.send,ae().getOrSet("postMessageListener",function(){return e=window,n=function(e){var n,i,a,o;n=e,a=(i={on:t,send:r}).on,o=i.send,W.try(function(){var e=n.source||n.sourceElement,t=n.origin||n.originalEvent&&n.originalEvent.origin,r=n.data;if("null"===t&&(t="file://"),e){if(!t)throw new Error("Post message did not have origin domain");Be({source:e,origin:t,data:r},{on:a,send:o})}})},e.addEventListener("message",n),{cancel:function(){e.removeEventListener("message",n)}};var e,n}),function(e){var t=e.on,r=e.send;ae("builtinListeners").getOrSet("helloListener",function(){var e=t("postrobot_hello",{domain:"*"},function(e){return de(e.source,{domain:e.origin}),{instanceID:ue()}}),n=b();return n&&pe(n,{send:r}).catch(function(e){}),e})}({on:De,send:je}))}function Ye(){var e;!function(){for(var e=ae("responseListeners"),t=0,r=e.keys();t<r.length;t++){var n=r[t],i=e.get(n);i&&(i.cancelled=!0),e.del(n)}}(),(e=ae().get("postMessageListener"))&&e.cancel(),delete window.__post_robot_10_0_46__}var Qe=!0;function Je(e){for(var t=0,r=ce("requestPromises").get(e,[]);t<r.length;t++)r[t].reject(new Error("Window "+(v(e)?"closed":"cleaned up")+" before response")).catch(G)}He()}]);var Af=Sf.exports;!function(e){e.exports=Af,e.exports.default=e.exports}(yf);const wf=f(yf.exports),Uf=e=>{const{data:n,buttonText:i,codeTestURL:a=qf,codeplayerURL:o=ff,toRunCodeQuestion:s}=e,{verifyMode:l="",content:c="",topic:u,example:d,lang:p,cases:h}=n;t.useEffect(()=>()=>{q.current&&clearTimeout(q.current)},[]);const q=t.useRef(null);return S.jsx("div",{className:"question-preview",children:S.jsx("div",{className:"content",children:S.jsx("div",{className:"preview-container",children:S.jsx("div",{className:"preview",children:S.jsxs("div",{className:"preview-content",children:[S.jsx(vf,{score:n.score,type:n.type,difficulty:n.difficulty,currentIndex:null==n?void 0:n.currentIndex,questionsCount:null==n?void 0:n.questionsCount}),u&&S.jsx("div",{className:"topic",children:u}),c.trim()?S.jsx(pf,{editorHeight:"fit-content",readOnly:!0,isBorder:!1,defaultValue:c,noPadding:!0}):S.jsx("p",{}),S.jsx(r.Button,{className:"submitBtn",onClick:()=>{if(s)s();else if(l===Gq.INPUT_OUTPUT){const e=window.open(a),t=null==h?void 0:h.map(({input:e,output:t})=>Array.isArray(e)?{input:e,output:t}:{input:[e],output:t});wf.send(e,"send",{title:u,content:c,initCode:d,code:d,lang:null==p?void 0:p.toLocaleLowerCase(),cases:t,submitCases:t,noSubmit:!0,aiEnabled:!0})}else{const e=window.open(`${o}`),t=()=>{let t=[d];if("html"===n.lang&&d)try{const e=JSON.parse(d);t=[e.html??"",e.css??"",e.js??""]}catch(r){}wf.send(e,"send",{title:u,content:c,lang:null==p?void 0:p.toLocaleLowerCase(),code:t,aiEnabled:!0,run:!1,dark:!0})};t(),wf.on("refresh",{window:e},async function(){q.current&&clearTimeout(q.current),q.current=setTimeout(()=>{(null==e?void 0:e.closed)||t()},500)}),wf.on("change",{window:e},e=>{})}},type:"primary",style:{minWidth:"88px"},children:i||"去答题"})]})})})})})},{TextArea:xf}=r.Input,Cf=e=>{const{status:n,data:i,onSubmit:a,buttonText:o,onNextQuestion:s}=e,{answerOption:l,userAnswer:c,topic:u}=i,[d,p]=t.useState([]),[h,q]=t.useState(),[f,m]=t.useState(!1),V=e=>{if(g&&!e)return void r.message.warning("请先进行填空!");if(f&&!e)return void(null==s||s());const t=e||d,n=null==l?void 0:l.every((e,r)=>{var n;return(null==e?void 0:e.answer)===(null==(n=t[r])?void 0:n.answer)});q(n),m(!0),!e&&(null==a||a(t))},g=t.useMemo(()=>d.every(e=>!(null==e?void 0:e.answer)),[d]);return t.useEffect(()=>{let e;"string"==typeof c&&(e=Pq(c));const t=(e||c||l||[]).map(e=>({answer:n===Zq.ADD||c?null==e?void 0:e.answer:void 0}))??[];p(t),c&&V(t)},[n,c,l]),S.jsxs("div",{className:"completion",children:[S.jsx("div",{className:"completion-title",children:S.jsxs("div",{className:"completion-title-content",children:[S.jsx(vf,{score:i.score,type:i.type,difficulty:i.difficulty,currentIndex:null==i?void 0:i.currentIndex,questionsCount:null==i?void 0:i.questionsCount}),S.jsx(pf,{isBorder:!1,defaultValue:u.indexOf("<code")>-1?u.replace(/<code[^>]*>|<\/code>/g,""):u,readOnly:!0,autoHeight:{min:0,max:1e5},noPadding:!0})]})}),S.jsx("div",{className:"completion-content",children:null==d?void 0:d.map((e,t)=>{var r,i,a;return S.jsxs("div",{className:"item-warpper",children:[S.jsxs("div",{className:"completion-content-item",children:[S.jsxs("span",{children:["填空",t+1]}),S.jsx(xf,{style:{resize:"none"},placeholder:n===Zq.EXAM||n===Zq.PREVIEW?"请输入答案":"",disabled:n===Zq.ADD||f,autoSize:{maxRows:3},value:null==e?void 0:e.answer,onChange:e=>((e,t)=>{q(void 0),m(!1);const r=e.target.value,n=[...d];n[t].answer=r,p(n)})(e,t)})]}),f&&S.jsx("div",{className:"item-result "+((null==e?void 0:e.answer)===(null==(r=l[t])?void 0:r.answer)?"right":"error"),children:(null==e?void 0:e.answer)===(null==(i=l[t])?void 0:i.answer)?S.jsxs("span",{children:[S.jsx($e,{})," 正确"]}):S.jsxs("span",{children:[S.jsx(st,{})," 错误, ",S.jsxs("span",{className:"answer",children:["正确答案:",null==(a=l[t])?void 0:a.answer]})]})})]},String(t))})}),a&&S.jsx("div",{className:"submit-btn",children:S.jsx(r.Button,{type:"primary",onClick:()=>V(),children:o||(f?"下一题":"提交")})})]})},Rf=e=>{const{status:n=Zq.EXAM,data:i,onSubmit:a,buttonText:o,onNextQuestion:s}=e,[l,c]=t.useState(),[u,d]=t.useState(!1),p=t.useRef(null);t.useEffect(()=>{i.userAnswer&&(c(i.userAnswer),h(i.userAnswer))},[i]);const h=e=>{if(u&&!e)return void(null==s||s());const t=e||l;t?(d(!0),!e&&a&&a(t)):r.message.warning("请输入答案!")},q=[];return[Zq.ADD,Zq.MARK].includes(n)&&i&&(i.answer&&q.push({key:"1",label:S.jsxs(S.Fragment,{children:[S.jsx("span",{style:{fontWeight:"bold"},children:"参考答案"}),S.jsx("span",{style:{fontSize:"12px",color:"#999999"},children:"(学生不可见)"})]}),children:S.jsx(pf,{readOnly:!0,isBorder:!1,defaultValue:i.answer,autoHeight:{min:0,max:1e4}})}),i.judgeNorm&&q.push({key:"2",label:S.jsxs(S.Fragment,{children:[S.jsx("span",{style:{fontWeight:"bold"},children:"判分标准"}),S.jsx("span",{style:{fontSize:"12px",color:"#999999"},children:"(学生不可见)"})]}),children:S.jsx(pf,{readOnly:!0,defaultValue:i.judgeNorm,isBorder:!1,autoHeight:{min:0,max:1e4}})})),S.jsxs("div",{className:"essay-question",children:[S.jsx("div",{className:"essay-question-title",children:S.jsxs("div",{className:"essay-question-title-content",children:[S.jsx(vf,{score:i.score,type:i.type,difficulty:i.difficulty,currentIndex:null==i?void 0:i.currentIndex,questionsCount:null==i?void 0:i.questionsCount}),S.jsx(pf,{defaultValue:null==i?void 0:i.topic,readOnly:!0,isBorder:!1,autoHeight:{min:0,max:1e5},noPadding:!0})]})}),S.jsxs("div",{className:"essay-question-content",children:[[Zq.MARK,Zq.VIEW,Zq.EXAM,Zq.PREVIEW].includes(n)&&S.jsx(pf,{ref:p,readOnly:n===Zq.ADD||n===Zq.MARK||n===Zq.VIEW,editorHeight:220,defaultValue:(null==i?void 0:i.userAnswer)||"",placeholder:n===Zq.EXAM||n===Zq.PREVIEW?"请输入回答":"",onChange:e=>{c(e)},customToolbarKeys:["undo","redo","fullScreen","|","headerSelect","bold",{key:"group-image",title:"图片",iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M959.877 128l0.123 0.123v767.775l-0.123 0.122H64.102l-0.122-0.122V128.123l0.122-0.123h895.775zM960 64H64C28.795 64 0 92.795 0 128v768c0 35.205 28.795 64 64 64h896c35.205 0 64-28.795 64-64V128c0-35.205-28.795-64-64-64zM832 288.01c0 53.023-42.988 96.01-96.01 96.01s-96.01-42.987-96.01-96.01S682.967 192 735.99 192 832 234.988 832 288.01zM896 832H128V704l224.01-384 256 320h64l224.01-192z"></path></svg>',menuKeys:["insertImage","uploadImage"]},"insertTable"],uploadImageLimit:e=>e.size>3145728&&(r.message.destroy(),r.message.warning("仅能上传大小为3MB内的图片噢~"),!0)}),[Zq.ADD,Zq.MARK].includes(n)&&S.jsx(r.Collapse,{defaultActiveKey:n===Zq.ADD?["1","2"].filter(e=>!("1"===e&&!(null==i?void 0:i.answer)||"2"===e&&!(null==i?void 0:i.judgeNorm))):[],ghost:!0,expandIcon:({isActive:e})=>S.jsx(Ye,{rotate:e?90:0}),items:q})]}),a&&S.jsx("div",{className:"submit-btn",children:S.jsx(r.Button,{type:"primary",onClick:()=>h(),children:o||u?"下一题":"提交"})})]})},Ef=t.forwardRef((e,r)=>{const{data:n,questionProps:i={}}=e,{onSubmit:a,onNextQuestion:o,buttonText:s="",showQuestionTip:l=!1,showResult:c,status:u=Zq.PREVIEW,className:d="",styles:p={},uploadImg:h,codeTestURL:q,codeplayerURL:f,unknowQesutionRender:m,toRunCodeQuestion:V}=i,g=t.useMemo(()=>{const e={...n},{optionJson:t,type:r}=n;return!t||r!==zq.ACM&&r!==zq.CCM||(e.lang=null==t?void 0:t.defaultLanguage),e},[n]),v=e=>S.jsx(uf.Provider,{value:{topProps:{uploadImg:h}},children:S.jsx("div",{className:`question-wrapper ${d}`,style:{...p},children:e})}),b={data:g,onSubmit:a,buttonText:s,status:u,onNextQuestion:o};switch(g.type){case zq.RADIO:case zq.CHECKBOX:return(()=>{const e=S.jsx(bf,{showQuestionTip:l,showResult:c,...b});return v(e)})();case zq.ACM:case zq.CCM:return(()=>{const e=S.jsx(Uf,{codeTestURL:q,codeplayerURL:f,toRunCodeQuestion:V,...b});return v(e)})();case zq.COMPLETION:return(()=>{const e=S.jsx(Cf,{showResult:c,...b});return v(e)})();case zq.ANSWER:return(()=>{const e=S.jsx(Rf,{...b});return v(e)})();default:return m?m(g):S.jsx("div",{children:"未知题型"})}});var Tf={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};function kf(e){Tf=e}var Ff={exec:()=>null};function Wf(e,t=""){let r="string"==typeof e?e:e.source,n={replace:(e,t)=>{let i="string"==typeof t?t:t.source;return i=i.replace(Nf.caret,"$1"),r=r.replace(e,i),n},getRegex:()=>new RegExp(r,t)};return n}var Nf={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[\t ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},Kf=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Of=/(?:[*+-]|\d{1,9}[.)])/,Pf=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,If=Wf(Pf).replace(/bull/g,Of).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),Lf=Wf(Pf).replace(/bull/g,Of).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Bf=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Df=/(?!\s*\])(?:\\.|[^\[\]\\])+/,Xf=Wf(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Df).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),jf=Wf(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Of).getRegex(),Mf="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",zf=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Gf=Wf("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$))","i").replace("comment",zf).replace("tag",Mf).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Zf=Wf(Bf).replace("hr",Kf).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Mf).getRegex(),Hf={blockquote:Wf(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Zf).getRegex(),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:Xf,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:Kf,html:Gf,lheading:If,list:jf,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:Zf,table:Ff,text:/^[^\n]+/},Yf=Wf("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Kf).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3}\t)[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Mf).getRegex(),Qf={...Hf,lheading:Lf,table:Yf,paragraph:Wf(Bf).replace("hr",Kf).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Yf).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Mf).getRegex()},Jf={...Hf,html:Wf("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",zf).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Ff,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Wf(Bf).replace("hr",Kf).replace("heading"," *#{1,6} *[^\n]").replace("lheading",If).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},_f=/^( {2,}|\\)\n(?!\s*$)/,$f=/[\p{P}\p{S}]/u,em=/[\s\p{P}\p{S}]/u,tm=/[^\s\p{P}\p{S}]/u,rm=Wf(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,em).getRegex(),nm=/(?!~)[\p{P}\p{S}]/u,im=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,am=Wf(im,"u").replace(/punct/g,$f).getRegex(),om=Wf(im,"u").replace(/punct/g,nm).getRegex(),sm="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",lm=Wf(sm,"gu").replace(/notPunctSpace/g,tm).replace(/punctSpace/g,em).replace(/punct/g,$f).getRegex(),cm=Wf(sm,"gu").replace(/notPunctSpace/g,/(?:[^\s\p{P}\p{S}]|~)/u).replace(/punctSpace/g,/(?!~)[\s\p{P}\p{S}]/u).replace(/punct/g,nm).getRegex(),um=Wf("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,tm).replace(/punctSpace/g,em).replace(/punct/g,$f).getRegex(),dm=Wf(/\\(punct)/,"gu").replace(/punct/g,$f).getRegex(),pm=Wf(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),hm=Wf(zf).replace("(?:--\x3e|$)","--\x3e").getRegex(),qm=Wf("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",hm).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),fm=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,mm=Wf(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",fm).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Vm=Wf(/^!?\[(label)\]\[(ref)\]/).replace("label",fm).replace("ref",Df).getRegex(),gm=Wf(/^!?\[(ref)\](?:\[\])?/).replace("ref",Df).getRegex(),vm={_backpedal:Ff,anyPunctuation:dm,autolink:pm,blockSkip:/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<(?! )[^<>]*?>/g,br:_f,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:Ff,emStrongLDelim:am,emStrongRDelimAst:lm,emStrongRDelimUnd:um,escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,link:mm,nolink:gm,punctuation:rm,reflink:Vm,reflinkSearch:Wf("reflink|nolink(?!\\()","g").replace("reflink",Vm).replace("nolink",gm).getRegex(),tag:qm,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:Ff},bm={...vm,link:Wf(/^!?\[(label)\]\((.*?)\)/).replace("label",fm).getRegex(),reflink:Wf(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",fm).getRegex()},ym={...vm,emStrongRDelimAst:cm,emStrongLDelim:om,url:Wf(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},Sm={...ym,br:Wf(_f).replace("{2,}","*").getRegex(),text:Wf(ym.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Am={normal:Hf,gfm:Qf,pedantic:Jf},wm={normal:vm,gfm:ym,breaks:Sm,pedantic:bm},Um={"&":"&","<":"<",">":">",'"':""","'":"'"},xm=e=>Um[e];function Cm(e,t){if(t){if(Nf.escapeTest.test(e))return e.replace(Nf.escapeReplace,xm)}else if(Nf.escapeTestNoEncode.test(e))return e.replace(Nf.escapeReplaceNoEncode,xm);return e}function Rm(e){try{e=encodeURI(e).replace(Nf.percentDecode,"%")}catch{return null}return e}function Em(e,t){var r;let n=e.replace(Nf.findPipe,(e,t,r)=>{let n=!1,i=t;for(;--i>=0&&"\\"===r[i];)n=!n;return n?"|":" |"}).split(Nf.splitPipe),i=0;if(n[0].trim()||n.shift(),n.length>0&&!(null==(r=n.at(-1))?void 0:r.trim())&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;i<n.length;i++)n[i]=n[i].trim().replace(Nf.slashPipe,"|");return n}function Tm(e,t,r){let n=e.length;if(0===n)return"";let i=0;for(;i<n&&e.charAt(n-i-1)===t;)i++;return e.slice(0,n-i)}function km(e,t,r,n,i){let a=t.href,o=t.title||null,s=e[1].replace(i.other.outputLinkReplace,"$1");n.state.inLink=!0;let l={type:"!"===e[0].charAt(0)?"image":"link",raw:r,href:a,title:o,text:s,tokens:n.inlineTokens(s)};return n.state.inLink=!1,l}var Fm=class{constructor(e){c(this,"options"),c(this,"rules"),c(this,"lexer"),this.options=e||Tf}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let e=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:Tm(e,"\n")}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let e=t[0],r=function(e,t,r){let n=e.match(r.other.indentCodeCompensation);if(null===n)return t;let i=n[1];return t.split("\n").map(e=>{let t=e.match(r.other.beginningSpace);if(null===t)return e;let[n]=t;return n.length>=i.length?e.slice(i.length):e}).join("\n")}(e,t[3]||"",this.rules);return{type:"code",raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:r}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(this.rules.other.endingHash.test(e)){let t=Tm(e,"#");(this.options.pedantic||!t||this.rules.other.endingSpaceChar.test(t))&&(e=t.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:Tm(t[0],"\n")}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let e=Tm(t[0],"\n").split("\n"),r="",n="",i=[];for(;e.length>0;){let t,a=!1,o=[];for(t=0;t<e.length;t++)if(this.rules.other.blockquoteStart.test(e[t]))o.push(e[t]),a=!0;else{if(a)break;o.push(e[t])}e=e.slice(t);let s=o.join("\n"),l=s.replace(this.rules.other.blockquoteSetextReplace,"\n $1").replace(this.rules.other.blockquoteSetextReplace2,"");r=r?`${r}\n${s}`:s,n=n?`${n}\n${l}`:l;let c=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(l,i,!0),this.lexer.state.top=c,0===e.length)break;let u=i.at(-1);if("code"===(null==u?void 0:u.type))break;if("blockquote"===(null==u?void 0:u.type)){let t=u,a=t.raw+"\n"+e.join("\n"),o=this.blockquote(a);i[i.length-1]=o,r=r.substring(0,r.length-t.raw.length)+o.raw,n=n.substring(0,n.length-t.text.length)+o.text;break}if("list"===(null==u?void 0:u.type)){let t=u,a=t.raw+"\n"+e.join("\n"),o=this.list(a);i[i.length-1]=o,r=r.substring(0,r.length-u.raw.length)+o.raw,n=n.substring(0,n.length-t.raw.length)+o.raw,e=a.substring(i.at(-1).raw.length).split("\n");continue}}return{type:"blockquote",raw:r,tokens:i,text:n}}}list(e){let t=this.rules.block.list.exec(e);if(t){let r=t[1].trim(),n=r.length>1,i={type:"list",raw:"",ordered:n,start:n?+r.slice(0,-1):"",loose:!1,items:[]};r=n?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=n?r:"[*+-]");let a=this.rules.other.listItemRegex(r),o=!1;for(;e;){let r=!1,n="",s="";if(!(t=a.exec(e))||this.rules.block.hr.test(e))break;n=t[0],e=e.substring(n.length);let l=t[2].split("\n",1)[0].replace(this.rules.other.listReplaceTabs,e=>" ".repeat(3*e.length)),c=e.split("\n",1)[0],u=!l.trim(),d=0;if(this.options.pedantic?(d=2,s=l.trimStart()):u?d=t[1].length+1:(d=t[2].search(this.rules.other.nonSpaceChar),d=d>4?1:d,s=l.slice(d),d+=t[1].length),u&&this.rules.other.blankLine.test(c)&&(n+=c+"\n",e=e.substring(c.length+1),r=!0),!r){let t=this.rules.other.nextBulletRegex(d),r=this.rules.other.hrRegex(d),i=this.rules.other.fencesBeginRegex(d),a=this.rules.other.headingBeginRegex(d),o=this.rules.other.htmlBeginRegex(d);for(;e;){let p,h=e.split("\n",1)[0];if(c=h,this.options.pedantic?(c=c.replace(this.rules.other.listReplaceNesting," "),p=c):p=c.replace(this.rules.other.tabCharGlobal," "),i.test(c)||a.test(c)||o.test(c)||t.test(c)||r.test(c))break;if(p.search(this.rules.other.nonSpaceChar)>=d||!c.trim())s+="\n"+p.slice(d);else{if(u||l.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||i.test(l)||a.test(l)||r.test(l))break;s+="\n"+c}!u&&!c.trim()&&(u=!0),n+=h+"\n",e=e.substring(h.length+1),l=p.slice(d)}}i.loose||(o?i.loose=!0:this.rules.other.doubleBlankLine.test(n)&&(o=!0));let p,h=null;this.options.gfm&&(h=this.rules.other.listIsTask.exec(s),h&&(p="[ ] "!==h[0],s=s.replace(this.rules.other.listReplaceTask,""))),i.items.push({type:"list_item",raw:n,task:!!h,checked:p,loose:!1,text:s,tokens:[]}),i.raw+=n}let s=i.items.at(-1);if(!s)return;s.raw=s.raw.trimEnd(),s.text=s.text.trimEnd(),i.raw=i.raw.trimEnd();for(let e=0;e<i.items.length;e++)if(this.lexer.state.top=!1,i.items[e].tokens=this.lexer.blockTokens(i.items[e].text,[]),!i.loose){let t=i.items[e].tokens.filter(e=>"space"===e.type),r=t.length>0&&t.some(e=>this.rules.other.anyLine.test(e.raw));i.loose=r}if(i.loose)for(let e=0;e<i.items.length;e++)i.items[e].loose=!0;return i}}html(e){let t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:"pre"===t[1]||"script"===t[1]||"style"===t[1],text:t[0]}}def(e){let t=this.rules.block.def.exec(e);if(t){let e=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),r=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",n=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:e,raw:t[0],href:r,title:n}}}table(e){var t;let r=this.rules.block.table.exec(e);if(!r||!this.rules.other.tableDelimiter.test(r[2]))return;let n=Em(r[1]),i=r[2].replace(this.rules.other.tableAlignChars,"").split("|"),a=(null==(t=r[3])?void 0:t.trim())?r[3].replace(this.rules.other.tableRowBlankLine,"").split("\n"):[],o={type:"table",raw:r[0],header:[],align:[],rows:[]};if(n.length===i.length){for(let e of i)this.rules.other.tableAlignRight.test(e)?o.align.push("right"):this.rules.other.tableAlignCenter.test(e)?o.align.push("center"):this.rules.other.tableAlignLeft.test(e)?o.align.push("left"):o.align.push(null);for(let e=0;e<n.length;e++)o.header.push({text:n[e],tokens:this.lexer.inline(n[e]),header:!0,align:o.align[e]});for(let e of a)o.rows.push(Em(e,o.header.length).map((e,t)=>({text:e,tokens:this.lexer.inline(e),header:!1,align:o.align[t]})));return o}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let e="\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let e=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(e)){if(!this.rules.other.endAngleBracket.test(e))return;let t=Tm(e.slice(0,-1),"\\");if((e.length-t.length)%2==0)return}else{let e=function(e,t){if(-1===e.indexOf(t[1]))return-1;let r=0;for(let n=0;n<e.length;n++)if("\\"===e[n])n++;else if(e[n]===t[0])r++;else if(e[n]===t[1]&&(r--,r<0))return n;return r>0?-2:-1}(t[2],"()");if(-2===e)return;if(e>-1){let r=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,r).trim(),t[3]=""}}let r=t[2],n="";if(this.options.pedantic){let e=this.rules.other.pedanticHrefTitle.exec(r);e&&(r=e[1],n=e[3])}else n=t[3]?t[3].slice(1,-1):"";return r=r.trim(),this.rules.other.startAngleBracket.test(r)&&(r=this.options.pedantic&&!this.rules.other.endAngleBracket.test(e)?r.slice(1):r.slice(1,-1)),km(t,{href:r&&r.replace(this.rules.inline.anyPunctuation,"$1"),title:n&&n.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let r;if((r=this.rules.inline.reflink.exec(e))||(r=this.rules.inline.nolink.exec(e))){let e=t[(r[2]||r[1]).replace(this.rules.other.multipleSpaceGlobal," ").toLowerCase()];if(!e){let e=r[0].charAt(0);return{type:"text",raw:e,text:e}}return km(r,e,r[0],this.lexer,this.rules)}}emStrong(e,t,r=""){let n=this.rules.inline.emStrongLDelim.exec(e);if(!(!n||n[3]&&r.match(this.rules.other.unicodeAlphaNumeric))&&(!n[1]&&!n[2]||!r||this.rules.inline.punctuation.exec(r))){let r,i,a=[...n[0]].length-1,o=a,s=0,l="*"===n[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(l.lastIndex=0,t=t.slice(-1*e.length+a);null!=(n=l.exec(t));){if(r=n[1]||n[2]||n[3]||n[4]||n[5]||n[6],!r)continue;if(i=[...r].length,n[3]||n[4]){o+=i;continue}if((n[5]||n[6])&&a%3&&!((a+i)%3)){s+=i;continue}if(o-=i,o>0)continue;i=Math.min(i,i+o+s);let t=[...n[0]][0].length,l=e.slice(0,a+n.index+t+i);if(Math.min(a,i)%2){let e=l.slice(1,-1);return{type:"em",raw:l,text:e,tokens:this.lexer.inlineTokens(e)}}let c=l.slice(2,-2);return{type:"strong",raw:l,text:c,tokens:this.lexer.inlineTokens(c)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(this.rules.other.newLineCharGlobal," "),r=this.rules.other.nonSpaceChar.test(e),n=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);return r&&n&&(e=e.substring(1,e.length-1)),{type:"codespan",raw:t[0],text:e}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){let t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let e,r;return"@"===t[2]?(e=t[1],r="mailto:"+e):(e=t[1],r=e),{type:"link",raw:t[0],text:e,href:r,tokens:[{type:"text",raw:e,text:e}]}}}url(e){var t;let r;if(r=this.rules.inline.url.exec(e)){let e,n;if("@"===r[2])e=r[0],n="mailto:"+e;else{let i;do{i=r[0],r[0]=(null==(t=this.rules.inline._backpedal.exec(r[0]))?void 0:t[0])??""}while(i!==r[0]);e=r[0],n="www."===r[1]?"http://"+r[0]:r[0]}return{type:"link",raw:r[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let e=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:e}}}},Wm=class e{constructor(e){c(this,"tokens"),c(this,"options"),c(this,"state"),c(this,"tokenizer"),c(this,"inlineQueue"),this.tokens=[],this.tokens.links=Object.create(null),this.options=e||Tf,this.options.tokenizer=this.options.tokenizer||new Fm,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let t={other:Nf,block:Am.normal,inline:wm.normal};this.options.pedantic?(t.block=Am.pedantic,t.inline=wm.pedantic):this.options.gfm&&(t.block=Am.gfm,this.options.breaks?t.inline=wm.breaks:t.inline=wm.gfm),this.tokenizer.rules=t}static get rules(){return{block:Am,inline:wm}}static lex(t,r){return new e(r).lex(t)}static lexInline(t,r){return new e(r).inlineTokens(t)}lex(e){e=e.replace(Nf.carriageReturn,"\n"),this.blockTokens(e,this.tokens);for(let t=0;t<this.inlineQueue.length;t++){let e=this.inlineQueue[t];this.inlineTokens(e.src,e.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],r=!1){var n,i,a;for(this.options.pedantic&&(e=e.replace(Nf.tabCharGlobal," ").replace(Nf.spaceLine,""));e;){let o;if(null==(i=null==(n=this.options.extensions)?void 0:n.block)?void 0:i.some(r=>!!(o=r.call({lexer:this},e,t))&&(e=e.substring(o.raw.length),t.push(o),!0)))continue;if(o=this.tokenizer.space(e)){e=e.substring(o.raw.length);let r=t.at(-1);1===o.raw.length&&void 0!==r?r.raw+="\n":t.push(o);continue}if(o=this.tokenizer.code(e)){e=e.substring(o.raw.length);let r=t.at(-1);"paragraph"===(null==r?void 0:r.type)||"text"===(null==r?void 0:r.type)?(r.raw+=(r.raw.endsWith("\n")?"":"\n")+o.raw,r.text+="\n"+o.text,this.inlineQueue.at(-1).src=r.text):t.push(o);continue}if(o=this.tokenizer.fences(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.heading(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.hr(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.blockquote(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.list(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.html(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.def(e)){e=e.substring(o.raw.length);let r=t.at(-1);"paragraph"===(null==r?void 0:r.type)||"text"===(null==r?void 0:r.type)?(r.raw+=(r.raw.endsWith("\n")?"":"\n")+o.raw,r.text+="\n"+o.raw,this.inlineQueue.at(-1).src=r.text):this.tokens.links[o.tag]||(this.tokens.links[o.tag]={href:o.href,title:o.title});continue}if(o=this.tokenizer.table(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.lheading(e)){e=e.substring(o.raw.length),t.push(o);continue}let s=e;if(null==(a=this.options.extensions)?void 0:a.startBlock){let t,r=1/0,n=e.slice(1);this.options.extensions.startBlock.forEach(e=>{t=e.call({lexer:this},n),"number"==typeof t&&t>=0&&(r=Math.min(r,t))}),r<1/0&&r>=0&&(s=e.substring(0,r+1))}if(this.state.top&&(o=this.tokenizer.paragraph(s))){let n=t.at(-1);r&&"paragraph"===(null==n?void 0:n.type)?(n.raw+=(n.raw.endsWith("\n")?"":"\n")+o.raw,n.text+="\n"+o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):t.push(o),r=s.length!==e.length,e=e.substring(o.raw.length);continue}if(o=this.tokenizer.text(e)){e=e.substring(o.raw.length);let r=t.at(-1);"text"===(null==r?void 0:r.type)?(r.raw+=(r.raw.endsWith("\n")?"":"\n")+o.raw,r.text+="\n"+o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=r.text):t.push(o);continue}if(e){let t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent)break;throw new Error(t)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){var r,n,i;let a=e,o=null;if(this.tokens.links){let e=Object.keys(this.tokens.links);if(e.length>0)for(;null!=(o=this.tokenizer.rules.inline.reflinkSearch.exec(a));)e.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(a=a.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(o=this.tokenizer.rules.inline.anyPunctuation.exec(a));)a=a.slice(0,o.index)+"++"+a.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;null!=(o=this.tokenizer.rules.inline.blockSkip.exec(a));)a=a.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);let s=!1,l="";for(;e;){let o;if(s||(l=""),s=!1,null==(n=null==(r=this.options.extensions)?void 0:r.inline)?void 0:n.some(r=>!!(o=r.call({lexer:this},e,t))&&(e=e.substring(o.raw.length),t.push(o),!0)))continue;if(o=this.tokenizer.escape(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.tag(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.link(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(o.raw.length);let r=t.at(-1);"text"===o.type&&"text"===(null==r?void 0:r.type)?(r.raw+=o.raw,r.text+=o.text):t.push(o);continue}if(o=this.tokenizer.emStrong(e,a,l)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.codespan(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.br(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.del(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.autolink(e)){e=e.substring(o.raw.length),t.push(o);continue}if(!this.state.inLink&&(o=this.tokenizer.url(e))){e=e.substring(o.raw.length),t.push(o);continue}let c=e;if(null==(i=this.options.extensions)?void 0:i.startInline){let t,r=1/0,n=e.slice(1);this.options.extensions.startInline.forEach(e=>{t=e.call({lexer:this},n),"number"==typeof t&&t>=0&&(r=Math.min(r,t))}),r<1/0&&r>=0&&(c=e.substring(0,r+1))}if(o=this.tokenizer.inlineText(c)){e=e.substring(o.raw.length),"_"!==o.raw.slice(-1)&&(l=o.raw.slice(-1)),s=!0;let r=t.at(-1);"text"===(null==r?void 0:r.type)?(r.raw+=o.raw,r.text+=o.text):t.push(o);continue}if(e){let t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent)break;throw new Error(t)}}return t}},Nm=class{constructor(e){c(this,"options"),c(this,"parser"),this.options=e||Tf}space(e){return""}code({text:e,lang:t,escaped:r}){var n;let i=null==(n=(t||"").match(Nf.notSpaceStart))?void 0:n[0],a=e.replace(Nf.endingNewline,"")+"\n";return i?'<pre><code class="language-'+Cm(i)+'">'+(r?a:Cm(a,!0))+"</code></pre>\n":"<pre><code>"+(r?a:Cm(a,!0))+"</code></pre>\n"}blockquote({tokens:e}){return`<blockquote>\n${this.parser.parse(e)}</blockquote>\n`}html({text:e}){return e}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>\n`}hr(e){return"<hr>\n"}list(e){let t=e.ordered,r=e.start,n="";for(let a=0;a<e.items.length;a++){let t=e.items[a];n+=this.listitem(t)}let i=t?"ol":"ul";return"<"+i+(t&&1!==r?' start="'+r+'"':"")+">\n"+n+"</"+i+">\n"}listitem(e){var t;let r="";if(e.task){let n=this.checkbox({checked:!!e.checked});e.loose?"paragraph"===(null==(t=e.tokens[0])?void 0:t.type)?(e.tokens[0].text=n+" "+e.tokens[0].text,e.tokens[0].tokens&&e.tokens[0].tokens.length>0&&"text"===e.tokens[0].tokens[0].type&&(e.tokens[0].tokens[0].text=n+" "+Cm(e.tokens[0].tokens[0].text),e.tokens[0].tokens[0].escaped=!0)):e.tokens.unshift({type:"text",raw:n+" ",text:n+" ",escaped:!0}):r+=n+" "}return r+=this.parser.parse(e.tokens,!!e.loose),`<li>${r}</li>\n`}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>\n`}table(e){let t="",r="";for(let i=0;i<e.header.length;i++)r+=this.tablecell(e.header[i]);t+=this.tablerow({text:r});let n="";for(let i=0;i<e.rows.length;i++){let t=e.rows[i];r="";for(let e=0;e<t.length;e++)r+=this.tablecell(t[e]);n+=this.tablerow({text:r})}return n&&(n=`<tbody>${n}</tbody>`),"<table>\n<thead>\n"+t+"</thead>\n"+n+"</table>\n"}tablerow({text:e}){return`<tr>\n${e}</tr>\n`}tablecell(e){let t=this.parser.parseInline(e.tokens),r=e.header?"th":"td";return(e.align?`<${r} align="${e.align}">`:`<${r}>`)+t+`</${r}>\n`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${Cm(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:r}){let n=this.parser.parseInline(r),i=Rm(e);if(null===i)return n;let a='<a href="'+(e=i)+'"';return t&&(a+=' title="'+Cm(t)+'"'),a+=">"+n+"</a>",a}image({href:e,title:t,text:r,tokens:n}){n&&(r=this.parser.parseInline(n,this.parser.textRenderer));let i=Rm(e);if(null===i)return Cm(r);let a=`<img src="${e=i}" alt="${r}"`;return t&&(a+=` title="${Cm(t)}"`),a+=">",a}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:Cm(e.text)}},Km=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}},Om=class e{constructor(e){c(this,"options"),c(this,"renderer"),c(this,"textRenderer"),this.options=e||Tf,this.options.renderer=this.options.renderer||new Nm,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Km}static parse(t,r){return new e(r).parse(t)}static parseInline(t,r){return new e(r).parseInline(t)}parse(e,t=!0){var r,n;let i="";for(let a=0;a<e.length;a++){let o=e[a];if(null==(n=null==(r=this.options.extensions)?void 0:r.renderers)?void 0:n[o.type]){let e=o,t=this.options.extensions.renderers[e.type].call({parser:this},e);if(!1!==t||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(e.type)){i+=t||"";continue}}let s=o;switch(s.type){case"space":i+=this.renderer.space(s);continue;case"hr":i+=this.renderer.hr(s);continue;case"heading":i+=this.renderer.heading(s);continue;case"code":i+=this.renderer.code(s);continue;case"table":i+=this.renderer.table(s);continue;case"blockquote":i+=this.renderer.blockquote(s);continue;case"list":i+=this.renderer.list(s);continue;case"html":i+=this.renderer.html(s);continue;case"paragraph":i+=this.renderer.paragraph(s);continue;case"text":{let r=s,n=this.renderer.text(r);for(;a+1<e.length&&"text"===e[a+1].type;)r=e[++a],n+="\n"+this.renderer.text(r);i+=t?this.renderer.paragraph({type:"paragraph",raw:n,text:n,tokens:[{type:"text",raw:n,text:n,escaped:!0}]}):n;continue}default:{let e='Token with "'+s.type+'" type was not found.';if(this.options.silent)return"";throw new Error(e)}}}return i}parseInline(e,t=this.renderer){var r,n;let i="";for(let a=0;a<e.length;a++){let o=e[a];if(null==(n=null==(r=this.options.extensions)?void 0:r.renderers)?void 0:n[o.type]){let e=this.options.extensions.renderers[o.type].call({parser:this},o);if(!1!==e||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(o.type)){i+=e||"";continue}}let s=o;switch(s.type){case"escape":case"text":i+=t.text(s);break;case"html":i+=t.html(s);break;case"link":i+=t.link(s);break;case"image":i+=t.image(s);break;case"strong":i+=t.strong(s);break;case"em":i+=t.em(s);break;case"codespan":i+=t.codespan(s);break;case"br":i+=t.br(s);break;case"del":i+=t.del(s);break;default:{let e='Token with "'+s.type+'" type was not found.';if(this.options.silent)return"";throw new Error(e)}}}return i}},Pm=(s=class{constructor(e){c(this,"options"),c(this,"block"),this.options=e||Tf}preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}provideLexer(){return this.block?Wm.lex:Wm.lexInline}provideParser(){return this.block?Om.parse:Om.parseInline}},c(s,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"])),s),Im=new class{constructor(...e){c(this,"defaults",{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}),c(this,"options",this.setOptions),c(this,"parse",this.parseMarkdown(!0)),c(this,"parseInline",this.parseMarkdown(!1)),c(this,"Parser",Om),c(this,"Renderer",Nm),c(this,"TextRenderer",Km),c(this,"Lexer",Wm),c(this,"Tokenizer",Fm),c(this,"Hooks",Pm),this.use(...e)}walkTokens(e,t){var r,n;let i=[];for(let a of e)switch(i=i.concat(t.call(this,a)),a.type){case"table":{let e=a;for(let r of e.header)i=i.concat(this.walkTokens(r.tokens,t));for(let r of e.rows)for(let e of r)i=i.concat(this.walkTokens(e.tokens,t));break}case"list":{let e=a;i=i.concat(this.walkTokens(e.items,t));break}default:{let e=a;(null==(n=null==(r=this.defaults.extensions)?void 0:r.childTokens)?void 0:n[e.type])?this.defaults.extensions.childTokens[e.type].forEach(r=>{let n=e[r].flat(1/0);i=i.concat(this.walkTokens(n,t))}):e.tokens&&(i=i.concat(this.walkTokens(e.tokens,t)))}}return i}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(e=>{let r={...e};if(r.async=this.defaults.async||r.async||!1,e.extensions&&(e.extensions.forEach(e=>{if(!e.name)throw new Error("extension name required");if("renderer"in e){let r=t.renderers[e.name];t.renderers[e.name]=r?function(...t){let n=e.renderer.apply(this,t);return!1===n&&(n=r.apply(this,t)),n}:e.renderer}if("tokenizer"in e){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw new Error("extension level must be 'block' or 'inline'");let r=t[e.level];r?r.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&("block"===e.level?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:"inline"===e.level&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}"childTokens"in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)}),r.extensions=t),e.renderer){let t=this.defaults.renderer||new Nm(this.defaults);for(let r in e.renderer){if(!(r in t))throw new Error(`renderer '${r}' does not exist`);if(["options","parser"].includes(r))continue;let n=r,i=e.renderer[n],a=t[n];t[n]=(...e)=>{let r=i.apply(t,e);return!1===r&&(r=a.apply(t,e)),r||""}}r.renderer=t}if(e.tokenizer){let t=this.defaults.tokenizer||new Fm(this.defaults);for(let r in e.tokenizer){if(!(r in t))throw new Error(`tokenizer '${r}' does not exist`);if(["options","rules","lexer"].includes(r))continue;let n=r,i=e.tokenizer[n],a=t[n];t[n]=(...e)=>{let r=i.apply(t,e);return!1===r&&(r=a.apply(t,e)),r}}r.tokenizer=t}if(e.hooks){let t=this.defaults.hooks||new Pm;for(let r in e.hooks){if(!(r in t))throw new Error(`hook '${r}' does not exist`);if(["options","block"].includes(r))continue;let n=r,i=e.hooks[n],a=t[n];Pm.passThroughHooks.has(r)?t[n]=e=>{if(this.defaults.async)return Promise.resolve(i.call(t,e)).then(e=>a.call(t,e));let r=i.call(t,e);return a.call(t,r)}:t[n]=(...e)=>{let r=i.apply(t,e);return!1===r&&(r=a.apply(t,e)),r}}r.hooks=t}if(e.walkTokens){let t=this.defaults.walkTokens,n=e.walkTokens;r.walkTokens=function(e){let r=[];return r.push(n.call(this,e)),t&&(r=r.concat(t.call(this,e))),r}}this.defaults={...this.defaults,...r}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return Wm.lex(e,t??this.defaults)}parser(e,t){return Om.parse(e,t??this.defaults)}parseMarkdown(e){return(t,r)=>{let n={...r},i={...this.defaults,...n},a=this.onError(!!i.silent,!!i.async);if(!0===this.defaults.async&&!1===n.async)return a(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof t>"u"||null===t)return a(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof t)return a(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));i.hooks&&(i.hooks.options=i,i.hooks.block=e);let o=i.hooks?i.hooks.provideLexer():e?Wm.lex:Wm.lexInline,s=i.hooks?i.hooks.provideParser():e?Om.parse:Om.parseInline;if(i.async)return Promise.resolve(i.hooks?i.hooks.preprocess(t):t).then(e=>o(e,i)).then(e=>i.hooks?i.hooks.processAllTokens(e):e).then(e=>i.walkTokens?Promise.all(this.walkTokens(e,i.walkTokens)).then(()=>e):e).then(e=>s(e,i)).then(e=>i.hooks?i.hooks.postprocess(e):e).catch(a);try{i.hooks&&(t=i.hooks.preprocess(t));let e=o(t,i);i.hooks&&(e=i.hooks.processAllTokens(e)),i.walkTokens&&this.walkTokens(e,i.walkTokens);let r=s(e,i);return i.hooks&&(r=i.hooks.postprocess(r)),r}catch(l){return a(l)}}}onError(e,t){return r=>{if(r.message+="\nPlease report this to https://github.com/markedjs/marked.",e){let e="<p>An error occurred:</p><pre>"+Cm(r.message+"",!0)+"</pre>";return t?Promise.resolve(e):e}if(t)return Promise.reject(r);throw r}}};function Lm(e,t){return Im.parse(e,t)}Lm.options=Lm.setOptions=function(e){return Im.setOptions(e),Lm.defaults=Im.defaults,kf(Lm.defaults),Lm},Lm.getDefaults=function(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}},Lm.defaults=Tf,Lm.use=function(...e){return Im.use(...e),Lm.defaults=Im.defaults,kf(Lm.defaults),Lm},Lm.walkTokens=function(e,t){return Im.walkTokens(e,t)},Lm.parseInline=Im.parseInline,Lm.Parser=Om,Lm.parser=Om.parse,Lm.Renderer=Nm,Lm.TextRenderer=Km,Lm.Lexer=Wm,Lm.lexer=Wm.lex,Lm.Tokenizer=Fm,Lm.Hooks=Pm,Lm.parse=Lm,Lm.options,Lm.setOptions,Lm.use,Lm.walkTokens,Lm.parseInline,Om.parse,Wm.lex;const Bm=t.forwardRef((e,n)=>{const{envStatus:i,podName:a,runnerBaseUrl:o}=t.useContext(cP),{data:s,hasTitle:l=!0,toScore:c,errorHanle:u,codeChange:d}=e,p=t.useRef(null),[h,q]=t.useState(!0),[f,m]=t.useState(!1),V=Iq(e=>{null==d||d(e.code)}),g=t.useRef(null);return t.useEffect(()=>(m(!1),q(!0),g.current&&clearTimeout(g.current),g.current=setTimeout(()=>{m(!0)},1e3),()=>{g.current&&clearTimeout(g.current)}),[s]),t.useImperativeHandle(n,()=>({toInstallPackage:e=>{var t,r;(null==(t=p.current)?void 0:t.contentWindow)&&wf.send(null==(r=p.current)?void 0:r.contentWindow,"vgenPackages",{packages:e})}})),S.jsx(r.Spin,{spinning:h,children:S.jsx("div",{className:"codePlayer",children:S.jsx("div",{className:"codePlayerContent",style:{height:l?"":"100%"},children:f&&S.jsx("iframe",{ref:p,allowFullScreen:!0,allow:"clipboard-write;clipboard-read",src:`${o||"https://run.cloudlab.top"}/embedded?fromVgen=true`,style:{border:"none"},title:"CodeRunner",className:"CodeRunner-iframe",onLoad:async()=>{var e,t,n,o;try{q(!1);const d=null==(e=p.current)?void 0:e.contentWindow,{topic:h="",content:f="",lang:m="",code:g="",cases:v=[],css:b="",js:y=""}=s;let S=f;try{S=Lm.parse(f)}catch(l){}let A=[];if("html"===m)if(b||y)A=[g,b||"",y||""];else try{const e=JSON.parse(g);A=[e.html,e.css,e.js]}catch(l){}"html"!==m||A.length||(A=[g,"",""]);let w={...s};const U={title:h,content:S,lang:m,code:"html"===m?A:g,aiEnabled:!1,run:!1,cases:v,customButtons:c?[{name:"提交",value:"submit",style:{background:"#0064ff",color:"#ffffff"}}]:[]};i&&a&&(U.podName=a,U.nameSpace="pty-prod"),wf.send(d,"send",U),c&&wf.on("submit",{window:d},async function(e){var t,n;(null==(t=e.data)?void 0:t.code)?(r.message.success("提交成功,AI开始自动评分..."),c(null==(n=e.data)?void 0:n.code)):r.message.warning("请先作答!")}),wf.on("change",{window:null==(t=p.current)?void 0:t.contentWindow},async function(e){var t,r,n,i,a;if("html"===m)try{const i={html:(null==(t=e.data)?void 0:t[0])??"",css:(null==(r=e.data)?void 0:r[1])??"",js:(null==(n=e.data)?void 0:n[2])??""};w.code=JSON.stringify(i)}catch(l){w.code=(null==(i=e.data)?void 0:i[0])??""}else w.code=(null==(a=e.data)?void 0:a[0])??"";V(w)}),wf.on("errorHandle",{window:null==(n=p.current)?void 0:n.contentWindow},async function(e){var t,r,n;null==u||u({lang:null==(t=e.data)?void 0:t.lang,code:null==(r=e.data)?void 0:r.code,error:null==(n=e.data)?void 0:n.error})}),wf.on("getToken",{window:null==(o=p.current)?void 0:o.contentWindow},async e=>({token:localStorage.getItem("token")}))}catch(l){}}})})})})}),Dm=e=>{const{data:n,hasTitle:i=!0,toScore:a,codeChange:o}=e,{quizBaseUrl:s}=t.useContext(cP),l=t.useRef(null),[c,u]=t.useState(!0),[d,p]=t.useState(!1),h=Iq(e=>{null==o||o(e.code)}),q=t.useRef(null);return t.useEffect(()=>(p(!1),u(!0),q.current&&clearTimeout(q.current),q.current=setTimeout(()=>{p(!0)},1e3),()=>{q.current&&clearTimeout(q.current)}),[n]),S.jsx(r.Spin,{spinning:c,children:S.jsxs("div",{className:"codeQuiz",children:[i&&S.jsx("div",{className:"codeQuizTitle",children:"CodeQuiz"}),S.jsx("div",{className:"codeQuizContent",style:{height:i?"":"100%"},children:d&&S.jsx("iframe",{ref:l,allowFullScreen:!0,allow:"clipboard-write;clipboard-read",src:`${s||"https://quiz.cloudlab.top"}`,style:{border:"none"},title:"CodeQuiz",className:"codeQuiz-iframe",onLoad:async()=>{var e,t,i;try{u(!1);const s=null==(e=l.current)?void 0:e.contentWindow,{topic:c="",content:d="",lang:p="",code:q="",cases:f=[]}=n;let m=f;m=f.map(e=>"string"==typeof e.input?{...e,input:Pq(e.input)||[]}:{...e});let V=d;try{V=Lm.parse(d)}catch(o){}let g={...n};wf.send(s,"send",{title:c,content:V,lang:p,code:q,cases:m,aiEnabled:!1,run:!1,customButtons:a?[{name:"判分",value:"submit",style:{background:"#0064ff",color:"#ffffff"}}]:[]}),a&&wf.on("submit",{window:s},async function(e){var t,n;(null==(t=e.data)?void 0:t.code)?(r.message.success("提交成功,AI开始自动评分..."),a(null==(n=e.data)?void 0:n.code)):r.message.warning("请先作答!")}),wf.on("change",{window:null==(t=l.current)?void 0:t.contentWindow},async function(e){var t,r,n,i;if("html"===p)try{const i={html:(null==(t=e.data)?void 0:t[0])??"",css:(null==(r=e.data)?void 0:r[1])??"",js:(null==(n=e.data)?void 0:n[2])??""};g.code=JSON.stringify(i)}catch(o){g.code=(null==(i=e.data)?void 0:i[0])??""}else g.code=e.data??"";h(g)}),wf.on("getToken",{window:null==(i=l.current)?void 0:i.contentWindow},async e=>({token:localStorage.getItem("token")}))}catch(o){}}})})]})})};var Xm={exports:{}};
|
|
26
|
+
*/function oe(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=oe(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}const se={aliceblue:"9ehhb",antiquewhite:"9sgk7",aqua:"1ekf",aquamarine:"4zsno",azure:"9eiv3",beige:"9lhp8",bisque:"9zg04",black:"0",blanchedalmond:"9zhe5",blue:"73",blueviolet:"5e31e",brown:"6g016",burlywood:"8ouiv",cadetblue:"3qba8",chartreuse:"4zshs",chocolate:"87k0u",coral:"9yvyo",cornflowerblue:"3xael",cornsilk:"9zjz0",crimson:"8l4xo",cyan:"1ekf",darkblue:"3v",darkcyan:"rkb",darkgoldenrod:"776yz",darkgray:"6mbhl",darkgreen:"jr4",darkgrey:"6mbhl",darkkhaki:"7ehkb",darkmagenta:"5f91n",darkolivegreen:"3bzfz",darkorange:"9yygw",darkorchid:"5z6x8",darkred:"5f8xs",darksalmon:"9441m",darkseagreen:"5lwgf",darkslateblue:"2th1n",darkslategray:"1ugcv",darkslategrey:"1ugcv",darkturquoise:"14up",darkviolet:"5rw7n",deeppink:"9yavn",deepskyblue:"11xb",dimgray:"442g9",dimgrey:"442g9",dodgerblue:"16xof",firebrick:"6y7tu",floralwhite:"9zkds",forestgreen:"1cisi",fuchsia:"9y70f",gainsboro:"8m8kc",ghostwhite:"9pq0v",goldenrod:"8j4f4",gold:"9zda8",gray:"50i2o",green:"pa8",greenyellow:"6senj",grey:"50i2o",honeydew:"9eiuo",hotpink:"9yrp0",indianred:"80gnw",indigo:"2xcoy",ivory:"9zldc",khaki:"9edu4",lavenderblush:"9ziet",lavender:"90c8q",lawngreen:"4vk74",lemonchiffon:"9zkct",lightblue:"6s73a",lightcoral:"9dtog",lightcyan:"8s1rz",lightgoldenrodyellow:"9sjiq",lightgray:"89jo3",lightgreen:"5nkwg",lightgrey:"89jo3",lightpink:"9z6wx",lightsalmon:"9z2ii",lightseagreen:"19xgq",lightskyblue:"5arju",lightslategray:"4nwk9",lightslategrey:"4nwk9",lightsteelblue:"6wau6",lightyellow:"9zlcw",lime:"1edc",limegreen:"1zcxe",linen:"9shk6",magenta:"9y70f",maroon:"4zsow",mediumaquamarine:"40eju",mediumblue:"5p",mediumorchid:"79qkz",mediumpurple:"5r3rv",mediumseagreen:"2d9ip",mediumslateblue:"4tcku",mediumspringgreen:"1di2",mediumturquoise:"2uabw",mediumvioletred:"7rn9h",midnightblue:"z980",mintcream:"9ljp6",mistyrose:"9zg0x",moccasin:"9zfzp",navajowhite:"9zest",navy:"3k",oldlace:"9wq92",olive:"50hz4",olivedrab:"472ub",orange:"9z3eo",orangered:"9ykg0",orchid:"8iu3a",palegoldenrod:"9bl4a",palegreen:"5yw0o",paleturquoise:"6v4ku",palevioletred:"8k8lv",papayawhip:"9zi6t",peachpuff:"9ze0p",peru:"80oqn",pink:"9z8wb",plum:"8nba5",powderblue:"6wgdi",purple:"4zssg",rebeccapurple:"3zk49",red:"9y6tc",rosybrown:"7cv4f",royalblue:"2jvtt",saddlebrown:"5fmkz",salmon:"9rvci",sandybrown:"9jn1c",seagreen:"1tdnb",seashell:"9zje6",sienna:"6973h",silver:"7ir40",skyblue:"5arjf",slateblue:"45e4t",slategray:"4e100",slategrey:"4e100",snow:"9zke2",springgreen:"1egv",steelblue:"2r1kk",tan:"87yx8",teal:"pds",thistle:"8ggk8",tomato:"9yqfb",turquoise:"2j4r4",violet:"9b10u",wheat:"9ld4j",white:"9zldr",whitesmoke:"9lhpx",yellow:"9zl6o",yellowgreen:"61fzm"},le=Math.round;function ce(e,t){const r=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],n=r.map(e=>parseFloat(e));for(let i=0;i<3;i+=1)n[i]=t(n[i]||0,r[i]||"",i);return r[3]?n[3]=r[3].includes("%")?n[3]/100:n[3]:n[3]=1,n}const ue=(e,t,r)=>0===r?e:e/100;function de(e,t){const r=t||255;return e>r?r:e<0?0:e}class pe{constructor(e){function t(t){return t[0]in e&&t[1]in e&&t[2]in e}if(c(this,"isValid",!0),c(this,"r",0),c(this,"g",0),c(this,"b",0),c(this,"a",1),c(this,"_h"),c(this,"_s"),c(this,"_l"),c(this,"_v"),c(this,"_max"),c(this,"_min"),c(this,"_brightness"),e)if("string"==typeof e){let t=function(e){return r.startsWith(e)};const r=e.trim();if(/^#?[A-F\d]{3,8}$/i.test(r))this.fromHexString(r);else if(t("rgb"))this.fromRgbString(r);else if(t("hsl"))this.fromHslString(r);else if(t("hsv")||t("hsb"))this.fromHsvString(r);else{const e=se[r.toLowerCase()];e&&this.fromHexString(parseInt(e,36).toString(16).padStart(6,"0"))}}else if(e instanceof pe)this.r=e.r,this.g=e.g,this.b=e.b,this.a=e.a,this._h=e._h,this._s=e._s,this._l=e._l,this._v=e._v;else if(t("rgb"))this.r=de(e.r),this.g=de(e.g),this.b=de(e.b),this.a="number"==typeof e.a?de(e.a,1):1;else if(t("hsl"))this.fromHsl(e);else{if(!t("hsv"))throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(e));this.fromHsv(e)}}setR(e){return this._sc("r",e)}setG(e){return this._sc("g",e)}setB(e){return this._sc("b",e)}setA(e){return this._sc("a",e,1)}setHue(e){const t=this.toHsv();return t.h=e,this._c(t)}getLuminance(){function e(e){const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}return.2126*e(this.r)+.7152*e(this.g)+.0722*e(this.b)}getHue(){if(void 0===this._h){const e=this.getMax()-this.getMin();this._h=0===e?0:le(60*(this.r===this.getMax()?(this.g-this.b)/e+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/e+2:(this.r-this.g)/e+4))}return this._h}getSaturation(){if(void 0===this._s){const e=this.getMax()-this.getMin();this._s=0===e?0:e/this.getMax()}return this._s}getLightness(){return void 0===this._l&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return void 0===this._v&&(this._v=this.getMax()/255),this._v}getBrightness(){return void 0===this._brightness&&(this._brightness=(299*this.r+587*this.g+114*this.b)/1e3),this._brightness}darken(e=10){const t=this.getHue(),r=this.getSaturation();let n=this.getLightness()-e/100;return n<0&&(n=0),this._c({h:t,s:r,l:n,a:this.a})}lighten(e=10){const t=this.getHue(),r=this.getSaturation();let n=this.getLightness()+e/100;return n>1&&(n=1),this._c({h:t,s:r,l:n,a:this.a})}mix(e,t=50){const r=this._c(e),n=t/100,i=e=>(r[e]-this[e])*n+this[e],a={r:le(i("r")),g:le(i("g")),b:le(i("b")),a:le(100*i("a"))/100};return this._c(a)}tint(e=10){return this.mix({r:255,g:255,b:255,a:1},e)}shade(e=10){return this.mix({r:0,g:0,b:0,a:1},e)}onBackground(e){const t=this._c(e),r=this.a+t.a*(1-this.a),n=e=>le((this[e]*this.a+t[e]*t.a*(1-this.a))/r);return this._c({r:n("r"),g:n("g"),b:n("b"),a:r})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}clone(){return this._c(this)}toHexString(){let e="#";const t=(this.r||0).toString(16);e+=2===t.length?t:"0"+t;const r=(this.g||0).toString(16);e+=2===r.length?r:"0"+r;const n=(this.b||0).toString(16);if(e+=2===n.length?n:"0"+n,"number"==typeof this.a&&this.a>=0&&this.a<1){const t=le(255*this.a).toString(16);e+=2===t.length?t:"0"+t}return e}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const e=this.getHue(),t=le(100*this.getSaturation()),r=le(100*this.getLightness());return 1!==this.a?`hsla(${e},${t}%,${r}%,${this.a})`:`hsl(${e},${t}%,${r}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return 1!==this.a?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(e,t,r){const n=this.clone();return n[e]=de(t,r),n}_c(e){return new this.constructor(e)}getMax(){return void 0===this._max&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return void 0===this._min&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(e){const t=e.replace("#","");function r(e,r){return parseInt(t[e]+t[r||e],16)}t.length<6?(this.r=r(0),this.g=r(1),this.b=r(2),this.a=t[3]?r(3)/255:1):(this.r=r(0,1),this.g=r(2,3),this.b=r(4,5),this.a=t[6]?r(6,7)/255:1)}fromHsl({h:e,s:t,l:r,a:n}){if(this._h=e%360,this._s=t,this._l=r,this.a="number"==typeof n?n:1,t<=0){const e=le(255*r);this.r=e,this.g=e,this.b=e}let i=0,a=0,o=0;const s=e/60,l=(1-Math.abs(2*r-1))*t,c=l*(1-Math.abs(s%2-1));s>=0&&s<1?(i=l,a=c):s>=1&&s<2?(i=c,a=l):s>=2&&s<3?(a=l,o=c):s>=3&&s<4?(a=c,o=l):s>=4&&s<5?(i=c,o=l):s>=5&&s<6&&(i=l,o=c);const u=r-l/2;this.r=le(255*(i+u)),this.g=le(255*(a+u)),this.b=le(255*(o+u))}fromHsv({h:e,s:t,v:r,a:n}){this._h=e%360,this._s=t,this._v=r,this.a="number"==typeof n?n:1;const i=le(255*r);if(this.r=i,this.g=i,this.b=i,t<=0)return;const a=e/60,o=Math.floor(a),s=a-o,l=le(r*(1-t)*255),c=le(r*(1-t*s)*255),u=le(r*(1-t*(1-s))*255);switch(o){case 0:this.g=u,this.b=l;break;case 1:this.r=c,this.b=l;break;case 2:this.r=l,this.b=u;break;case 3:this.r=l,this.g=c;break;case 4:this.r=u,this.g=l;break;default:this.g=l,this.b=c}}fromHsvString(e){const t=ce(e,ue);this.fromHsv({h:t[0],s:t[1],v:t[2],a:t[3]})}fromHslString(e){const t=ce(e,ue);this.fromHsl({h:t[0],s:t[1],l:t[2],a:t[3]})}fromRgbString(e){const t=ce(e,(e,t)=>t.includes("%")?le(e/100*255):e);this.r=t[0],this.g=t[1],this.b=t[2],this.a=t[3]}}const he=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function qe(e,t,r){let n;return n=Math.round(e.h)>=60&&Math.round(e.h)<=240?r?Math.round(e.h)-2*t:Math.round(e.h)+2*t:r?Math.round(e.h)+2*t:Math.round(e.h)-2*t,n<0?n+=360:n>=360&&(n-=360),n}function fe(e,t,r){if(0===e.h&&0===e.s)return e.s;let n;return n=r?e.s-.16*t:4===t?e.s+.16:e.s+.05*t,n>1&&(n=1),r&&5===t&&n>.1&&(n=.1),n<.06&&(n=.06),Math.round(100*n)/100}function me(e,t,r){let n;return n=r?e.v+.05*t:e.v-.15*t,n=Math.max(0,Math.min(1,n)),Math.round(100*n)/100}const Ve=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Ve.primary=Ve[5];const ge="data-rc-order",ve="data-rc-priority",be=new Map;function ye({mark:e}={}){return e?e.startsWith("data-")?e:`data-${e}`:"rc-util-key"}function Se(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function Ae(e){return Array.from((be.get(e)||e).children).filter(e=>"STYLE"===e.tagName)}function we(e,t={}){if("undefined"==typeof window||!window.document||!window.document.createElement)return null;const{csp:r,prepend:n,priority:i=0}=t,a=function(e){return"queue"===e?"prependQueue":e?"prepend":"append"}(n),o="prependQueue"===a,s=document.createElement("style");s.setAttribute(ge,a),o&&i&&s.setAttribute(ve,`${i}`),(null==r?void 0:r.nonce)&&(s.nonce=null==r?void 0:r.nonce),s.innerHTML=e;const l=Se(t),{firstChild:c}=l;if(n){if(o){const e=(t.styles||Ae(l)).filter(e=>{if(!["prepend","prependQueue"].includes(e.getAttribute(ge)))return!1;const t=Number(e.getAttribute(ve)||0);return i>=t});if(e.length)return l.insertBefore(s,e[e.length-1].nextSibling),s}l.insertBefore(s,c)}else l.appendChild(s);return s}function Ue(e){var t;return null==(t=null==e?void 0:e.getRootNode)?void 0:t.call(e)}let xe={};const Ce=[];function Re(e,t){"production"===process.env.NODE_ENV||e||void 0===console||Ce.reduce((e,t)=>t(e??"","warning"),t)}function Ee(e,t){"production"===process.env.NODE_ENV||e||void 0===console||Ce.reduce((e,t)=>t(e??"","note"),t)}function Te(e,t,r){t||xe[r]||(e(!1,r),xe[r]=!0)}function ke(e,t){Te(Re,e,t)}function Fe(e){return"object"==typeof e&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"==typeof e.icon||"function"==typeof e.icon)}function We(e={}){return Object.keys(e).reduce((t,r)=>{const n=e[r];var i;return"class"===r?(t.className=n,delete t.class):(delete t[r],t[(i=r,i.replace(/-(.)/g,(e,t)=>t.toUpperCase()))]=n),t},{})}function Ne(e,r,n){return n?t.createElement(e.tag,{key:r,...We(e.attrs),...n},(e.children||[]).map((t,n)=>Ne(t,`${r}-${e.tag}-${n}`))):t.createElement(e.tag,{key:r,...We(e.attrs)},(e.children||[]).map((t,n)=>Ne(t,`${r}-${e.tag}-${n}`)))}function Ke(e){return function(e,t={}){const r=[],n=new pe(e),i=n.toHsv();for(let a=5;a>0;a-=1){const e=new pe({h:qe(i,a,!0),s:fe(i,a,!0),v:me(i,a,!0)});r.push(e)}r.push(n);for(let a=1;a<=4;a+=1){const e=new pe({h:qe(i,a),s:fe(i,a),v:me(i,a)});r.push(e)}return"dark"===t.theme?he.map(({index:e,amount:n})=>new pe(t.backgroundColor||"#141414").mix(r[e],n).toHexString()):r.map(e=>e.toHexString())}(e)[0]}function Oe(e){return e?Array.isArray(e)?e:[e]:[]}ke.preMessage=e=>{Ce.push(e)},ke.resetWarned=function(){xe={}},ke.noteOnce=function(e,t){Te(Ee,e,t)};const Pe={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1},Ie=e=>{const{icon:r,className:n,onClick:i,style:a,primaryColor:o,secondaryColor:s,...l}=e,c=p.useRef(null);let u=Pe;if(o&&(u={primaryColor:o,secondaryColor:s||Ke(o)}),(e=>{const{csp:r,prefixCls:n,layer:i}=t.useContext(ae);let a="\n.anticon {\n display: inline-flex;\n align-items: center;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n vertical-align: inherit;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n";n&&(a=a.replace(/anticon/g,n)),i&&(a=`@layer ${i} {\n${a}\n}`),t.useEffect(()=>{const t=function(e){return Ue(e)instanceof ShadowRoot}(n=e.current)?Ue(n):null;var n;!function(e,t,r={}){var n,i,a;const o=Se(r),s=Ae(o),l={...r,styles:s};!function(e,t){const r=be.get(e);if(!r||!function(e,t){if(!e)return!1;if(e.contains)return e.contains(t);let r=t;for(;r;){if(r===e)return!0;r=r.parentNode}return!1}(document,r)){const r=we("",t),{parentNode:n}=r;be.set(e,n),e.removeChild(r)}}(o,l);const c=function(e,t={}){let{styles:r}=t;return r||(r=Ae(Se(t))),r.find(r=>r.getAttribute(ye(t))===e)}(t,l);if(c)return(null==(n=l.csp)?void 0:n.nonce)&&c.nonce!==(null==(i=l.csp)?void 0:i.nonce)&&(c.nonce=null==(a=l.csp)?void 0:a.nonce),c.innerHTML!==e&&(c.innerHTML=e),c;const u=we(e,l);u.setAttribute(ye(l),t)}(a,"@ant-design-icons",{prepend:!i,csp:r,attachTo:t})},[])})(c),ke(Fe(r),`[@ant-design/icons] icon should be icon definiton, but got ${r}`),!Fe(r))return null;let d=r;return d&&"function"==typeof d.icon&&(d={...d,icon:d.icon(u.primaryColor,u.secondaryColor)}),Ne(d.icon,`svg-${d.name}`,{className:n,onClick:i,style:a,"data-icon":d.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",...l,ref:c})};function Le(e){const[t,r]=Oe(e);return Ie.setTwoToneColors({primaryColor:t,secondaryColor:r})}function Be(){return Be=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Be.apply(this,arguments)}Ie.displayName="IconReact",Ie.getTwoToneColors=function(){return{...Pe}},Ie.setTwoToneColors=function({primaryColor:e,secondaryColor:t}){Pe.primaryColor=e,Pe.secondaryColor=t||Ke(e),Pe.calculated=!!t},Le(Ve.primary);const De=p.forwardRef((e,t)=>{const{className:r,icon:n,spin:i,rotate:a,tabIndex:o,onClick:s,twoToneColor:l,...c}=e,{prefixCls:u="anticon",rootClassName:d}=p.useContext(ae),h=function(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=oe(e))&&(n&&(n+=" "),n+=t);return n}(d,u,{[`${u}-${n.name}`]:!!n.name,[`${u}-spin`]:!!i||"loading"===n.name},r);let q=o;void 0===q&&s&&(q=-1);const f=a?{msTransform:`rotate(${a}deg)`,transform:`rotate(${a}deg)`}:void 0,[m,V]=Oe(l);return p.createElement("span",Be({role:"img","aria-label":n.name},c,{ref:t,tabIndex:q,onClick:s,className:h}),p.createElement(Ie,{icon:n,primaryColor:m,secondaryColor:V,style:f}))});De.getTwoToneColor=function(){const e=Ie.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},De.setTwoToneColor=Le,"production"!==process.env.NODE_ENV&&(De.displayName="AntdIcon");var Xe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M120 230h496c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm0 424h496c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm784 140H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-424H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z"}}]},name:"align-left",theme:"outlined"};function je(){return je=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},je.apply(this,arguments)}const Me=(e,t)=>p.createElement(De,je({},e,{ref:t,icon:Xe})),ze=p.forwardRef(Me);"production"!==process.env.NODE_ENV&&(ze.displayName="AlignLeftOutlined");var Ge={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M715.8 493.5L335 165.1c-14.2-12.2-35-1.2-35 18.5v656.8c0 19.7 20.8 30.7 35 18.5l380.8-328.4c10.9-9.4 10.9-27.6 0-37z"}}]},name:"caret-right",theme:"outlined"};function Ze(){return Ze=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ze.apply(this,arguments)}const He=(e,t)=>p.createElement(De,Ze({},e,{ref:t,icon:Ge})),Ye=p.forwardRef(He);"production"!==process.env.NODE_ENV&&(Ye.displayName="CaretRightOutlined");var Qe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"};function Je(){return Je=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Je.apply(this,arguments)}const _e=(e,t)=>p.createElement(De,Je({},e,{ref:t,icon:Qe})),$e=p.forwardRef(_e);"production"!==process.env.NODE_ENV&&($e.displayName="CheckCircleFilled");var et={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"};function tt(){return tt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},tt.apply(this,arguments)}const rt=(e,t)=>p.createElement(De,tt({},e,{ref:t,icon:et})),nt=p.forwardRef(rt);"production"!==process.env.NODE_ENV&&(nt.displayName="ClockCircleOutlined");var it={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"};function at(){return at=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},at.apply(this,arguments)}const ot=(e,t)=>p.createElement(De,at({},e,{ref:t,icon:it})),st=p.forwardRef(ot);"production"!==process.env.NODE_ENV&&(st.displayName="CloseCircleFilled");var lt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M704 446H320c-4.4 0-8 3.6-8 8v402c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8V454c0-4.4-3.6-8-8-8zm-328 64h272v117H376V510zm272 290H376V683h272v117z"}},{tag:"path",attrs:{d:"M424 748a32 32 0 1064 0 32 32 0 10-64 0zm0-178a32 32 0 1064 0 32 32 0 10-64 0z"}},{tag:"path",attrs:{d:"M811.4 368.9C765.6 248 648.9 162 512.2 162S258.8 247.9 213 368.8C126.9 391.5 63.5 470.2 64 563.6 64.6 668 145.6 752.9 247.6 762c4.7.4 8.7-3.3 8.7-8v-60.4c0-4-3-7.4-7-7.9-27-3.4-52.5-15.2-72.1-34.5-24-23.5-37.2-55.1-37.2-88.6 0-28 9.1-54.4 26.2-76.4 16.7-21.4 40.2-36.9 66.1-43.7l37.9-10 13.9-36.7c8.6-22.8 20.6-44.2 35.7-63.5 14.9-19.2 32.6-36 52.4-50 41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.3c19.9 14 37.5 30.8 52.4 50 15.1 19.3 27.1 40.7 35.7 63.5l13.8 36.6 37.8 10c54.2 14.4 92.1 63.7 92.1 120 0 33.6-13.2 65.1-37.2 88.6-19.5 19.2-44.9 31.1-71.9 34.5-4 .5-6.9 3.9-6.9 7.9V754c0 4.7 4.1 8.4 8.8 8 101.7-9.2 182.5-94 183.2-198.2.6-93.4-62.7-172.1-148.6-194.9z"}}]},name:"cloud-server",theme:"outlined"};function ct(){return ct=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ct.apply(this,arguments)}const ut=(e,t)=>p.createElement(De,ct({},e,{ref:t,icon:lt})),dt=p.forwardRef(ut);"production"!==process.env.NODE_ENV&&(dt.displayName="CloudServerOutlined");var pt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 140H96c-17.7 0-32 14.3-32 32v496c0 17.7 14.3 32 32 32h380v112H304c-8.8 0-16 7.2-16 16v48c0 4.4 3.6 8 8 8h432c4.4 0 8-3.6 8-8v-48c0-8.8-7.2-16-16-16H548V700h380c17.7 0 32-14.3 32-32V172c0-17.7-14.3-32-32-32zm-40 488H136V212h752v416z"}}]},name:"desktop",theme:"outlined"};function ht(){return ht=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ht.apply(this,arguments)}const qt=(e,t)=>p.createElement(De,ht({},e,{ref:t,icon:pt})),ft=p.forwardRef(qt);"production"!==process.env.NODE_ENV&&(ft.displayName="DesktopOutlined");var mt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"};function Vt(){return Vt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Vt.apply(this,arguments)}const gt=(e,t)=>p.createElement(De,Vt({},e,{ref:t,icon:mt})),vt=p.forwardRef(gt);"production"!==process.env.NODE_ENV&&(vt.displayName="EnterOutlined");var bt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-600 72h560v208H232V136zm560 480H232V408h560v208zm0 272H232V680h560v208zM496 208H312c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM312 544h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H312c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zm328 244a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"hdd",theme:"outlined"};function yt(){return yt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},yt.apply(this,arguments)}const St=(e,t)=>p.createElement(De,yt({},e,{ref:t,icon:bt})),At=p.forwardRef(St);"production"!==process.env.NODE_ENV&&(At.displayName="HddOutlined");var wt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm144.1 454.9L437.7 677.8a8.02 8.02 0 01-12.7-6.5V353.7a8 8 0 0112.7-6.5L656.1 506a7.9 7.9 0 010 12.9z"}}]},name:"play-circle",theme:"filled"};function Ut(){return Ut=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ut.apply(this,arguments)}const xt=(e,t)=>p.createElement(De,Ut({},e,{ref:t,icon:wt})),Ct=p.forwardRef(xt);"production"!==process.env.NODE_ENV&&(Ct.displayName="PlayCircleFilled");var Rt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M847.9 592H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h605.2L612.9 851c-4.1 5.2-.4 13 6.3 13h72.5c4.9 0 9.5-2.2 12.6-6.1l168.8-214.1c16.5-21 1.6-51.8-25.2-51.8zM872 356H266.8l144.3-183c4.1-5.2.4-13-6.3-13h-72.5c-4.9 0-9.5 2.2-12.6 6.1L150.9 380.2c-16.5 21-1.6 51.8 25.1 51.8h696c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"swap",theme:"outlined"};function Et(){return Et=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Et.apply(this,arguments)}const Tt=(e,t)=>p.createElement(De,Et({},e,{ref:t,icon:Rt})),kt=p.forwardRef(Tt);"production"!==process.env.NODE_ENV&&(kt.displayName="SwapOutlined");var Ft={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M848 359.3H627.7L825.8 109c4.1-5.3.4-13-6.3-13H436c-2.8 0-5.5 1.5-6.9 4L170 547.5c-3.1 5.3.7 12 6.9 12h174.4l-89.4 357.6c-1.9 7.8 7.5 13.3 13.3 7.7L853.5 373c5.2-4.9 1.7-13.7-5.5-13.7zM378.2 732.5l60.3-241H281.1l189.6-327.4h224.6L487 427.4h211L378.2 732.5z"}}]},name:"thunderbolt",theme:"outlined"};function Wt(){return Wt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Wt.apply(this,arguments)}const Nt=(e,t)=>p.createElement(De,Wt({},e,{ref:t,icon:Ft})),Kt=p.forwardRef(Nt);"production"!==process.env.NODE_ENV&&(Kt.displayName="ThunderboltOutlined");var Ot={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 302.3L784 376V224c0-35.3-28.7-64-64-64H128c-35.3 0-64 28.7-64 64v576c0 35.3 28.7 64 64 64h592c35.3 0 64-28.7 64-64V648l128 73.7c21.3 12.3 48-3.1 48-27.6V330c0-24.6-26.7-40-48-27.7zM328 352c0 4.4-3.6 8-8 8H208c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h112c4.4 0 8 3.6 8 8v48zm560 273l-104-59.8V458.9L888 399v226z"}}]},name:"video-camera",theme:"filled"};function Pt(){return Pt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Pt.apply(this,arguments)}const It=(e,t)=>p.createElement(De,Pt({},e,{ref:t,icon:Ot})),Lt=p.forwardRef(It);"production"!==process.env.NODE_ENV&&(Lt.displayName="VideoCameraFilled");var Bt,Dt,Xt={exports:{}},jt={},Mt={};"production"===process.env.NODE_ENV?Xt.exports=function(){if(Bt)return jt;Bt=1;var e,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),q=Symbol.for("react.offscreen");function f(e){if("object"==typeof e&&null!==e){var q=e.$$typeof;switch(q){case t:switch(e=e.type){case n:case a:case i:case u:case d:return e;default:switch(e=e&&e.$$typeof){case l:case s:case c:case h:case p:case o:return e;default:return q}}case r:return q}}}return e=Symbol.for("react.module.reference"),jt.ContextConsumer=s,jt.ContextProvider=o,jt.Element=t,jt.ForwardRef=c,jt.Fragment=n,jt.Lazy=h,jt.Memo=p,jt.Portal=r,jt.Profiler=a,jt.StrictMode=i,jt.Suspense=u,jt.SuspenseList=d,jt.isAsyncMode=function(){return!1},jt.isConcurrentMode=function(){return!1},jt.isContextConsumer=function(e){return f(e)===s},jt.isContextProvider=function(e){return f(e)===o},jt.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},jt.isForwardRef=function(e){return f(e)===c},jt.isFragment=function(e){return f(e)===n},jt.isLazy=function(e){return f(e)===h},jt.isMemo=function(e){return f(e)===p},jt.isPortal=function(e){return f(e)===r},jt.isProfiler=function(e){return f(e)===a},jt.isStrictMode=function(e){return f(e)===i},jt.isSuspense=function(e){return f(e)===u},jt.isSuspenseList=function(e){return f(e)===d},jt.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===n||t===a||t===i||t===u||t===d||t===q||"object"==typeof t&&null!==t&&(t.$$typeof===h||t.$$typeof===p||t.$$typeof===o||t.$$typeof===s||t.$$typeof===c||t.$$typeof===e||void 0!==t.getModuleId)},jt.typeOf=f,jt}():Xt.exports=(Dt||(Dt=1,"production"!==process.env.NODE_ENV&&function(){var e,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),q=Symbol.for("react.offscreen");function f(e){if("object"==typeof e&&null!==e){var q=e.$$typeof;switch(q){case t:var f=e.type;switch(f){case n:case a:case i:case u:case d:return f;default:var m=f&&f.$$typeof;switch(m){case l:case s:case c:case h:case p:case o:return m;default:return q}}case r:return q}}}e=Symbol.for("react.module.reference");var m=s,V=o,g=t,v=c,b=n,y=h,S=p,A=r,w=a,U=i,x=u,C=d,R=!1,E=!1;Mt.ContextConsumer=m,Mt.ContextProvider=V,Mt.Element=g,Mt.ForwardRef=v,Mt.Fragment=b,Mt.Lazy=y,Mt.Memo=S,Mt.Portal=A,Mt.Profiler=w,Mt.StrictMode=U,Mt.Suspense=x,Mt.SuspenseList=C,Mt.isAsyncMode=function(e){return R||(R=!0),!1},Mt.isConcurrentMode=function(e){return E||(E=!0),!1},Mt.isContextConsumer=function(e){return f(e)===s},Mt.isContextProvider=function(e){return f(e)===o},Mt.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Mt.isForwardRef=function(e){return f(e)===c},Mt.isFragment=function(e){return f(e)===n},Mt.isLazy=function(e){return f(e)===h},Mt.isMemo=function(e){return f(e)===p},Mt.isPortal=function(e){return f(e)===r},Mt.isProfiler=function(e){return f(e)===a},Mt.isStrictMode=function(e){return f(e)===i},Mt.isSuspense=function(e){return f(e)===u},Mt.isSuspenseList=function(e){return f(e)===d},Mt.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===n||t===a||t===i||t===u||t===d||t===q||"object"==typeof t&&null!==t&&(t.$$typeof===h||t.$$typeof===p||t.$$typeof===o||t.$$typeof===s||t.$$typeof===c||t.$$typeof===e||void 0!==t.getModuleId)},Mt.typeOf=f}()),Mt);var zt=Xt.exports;function Gt(){}function Zt(){}function Ht(e){const t=[],r=String(e||"");let n=r.indexOf(","),i=0,a=!1;for(;!a;){-1===n&&(n=r.length,a=!0);const e=r.slice(i,n).trim();!e&&a||t.push(e),i=n+1,n=r.indexOf(",",i)}return t}const Yt=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Qt=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Jt={};function _t(e,t){return(Jt.jsx?Qt:Yt).test(e)}const $t=/[ \t\n\f\r]/g;function er(e){return""===e.replace($t,"")}let tr=class{constructor(e,t,r){this.normal=t,this.property=e,r&&(this.space=r)}};function rr(e,t){const r={},n={};for(const i of e)Object.assign(r,i.property),Object.assign(n,i.normal);return new tr(r,n,t)}function nr(e){return e.toLowerCase()}tr.prototype.normal={},tr.prototype.property={},tr.prototype.space=void 0;let ir=class{constructor(e,t){this.attribute=t,this.property=e}};ir.prototype.attribute="",ir.prototype.booleanish=!1,ir.prototype.boolean=!1,ir.prototype.commaOrSpaceSeparated=!1,ir.prototype.commaSeparated=!1,ir.prototype.defined=!1,ir.prototype.mustUseProperty=!1,ir.prototype.number=!1,ir.prototype.overloadedBoolean=!1,ir.prototype.property="",ir.prototype.spaceSeparated=!1,ir.prototype.space=void 0;let ar=0;const or=hr(),sr=hr(),lr=hr(),cr=hr(),ur=hr(),dr=hr(),pr=hr();function hr(){return 2**++ar}const qr=Object.freeze(Object.defineProperty({__proto__:null,boolean:or,booleanish:sr,commaOrSpaceSeparated:pr,commaSeparated:dr,number:cr,overloadedBoolean:lr,spaceSeparated:ur},Symbol.toStringTag,{value:"Module"})),fr=Object.keys(qr);let mr=class extends ir{constructor(e,t,r,n){let i=-1;if(super(e,t),Vr(this,"space",n),"number"==typeof r)for(;++i<fr.length;){const e=fr[i];Vr(this,fr[i],(r&qr[e])===qr[e])}}};function Vr(e,t,r){r&&(e[t]=r)}function gr(e){const t={},r={};for(const[n,i]of Object.entries(e.properties)){const a=new mr(n,e.transform(e.attributes||{},n),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(n)&&(a.mustUseProperty=!0),t[n]=a,r[nr(n)]=n,r[nr(a.attribute)]=n}return new tr(t,r,e.space)}mr.prototype.defined=!0;const vr=gr({properties:{ariaActiveDescendant:null,ariaAtomic:sr,ariaAutoComplete:null,ariaBusy:sr,ariaChecked:sr,ariaColCount:cr,ariaColIndex:cr,ariaColSpan:cr,ariaControls:ur,ariaCurrent:null,ariaDescribedBy:ur,ariaDetails:null,ariaDisabled:sr,ariaDropEffect:ur,ariaErrorMessage:null,ariaExpanded:sr,ariaFlowTo:ur,ariaGrabbed:sr,ariaHasPopup:null,ariaHidden:sr,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ur,ariaLevel:cr,ariaLive:null,ariaModal:sr,ariaMultiLine:sr,ariaMultiSelectable:sr,ariaOrientation:null,ariaOwns:ur,ariaPlaceholder:null,ariaPosInSet:cr,ariaPressed:sr,ariaReadOnly:sr,ariaRelevant:null,ariaRequired:sr,ariaRoleDescription:ur,ariaRowCount:cr,ariaRowIndex:cr,ariaRowSpan:cr,ariaSelected:sr,ariaSetSize:cr,ariaSort:null,ariaValueMax:cr,ariaValueMin:cr,ariaValueNow:cr,ariaValueText:null,role:null},transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase()});function br(e,t){return t in e?e[t]:t}function yr(e,t){return br(e,t.toLowerCase())}const Sr=gr({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:dr,acceptCharset:ur,accessKey:ur,action:null,allow:null,allowFullScreen:or,allowPaymentRequest:or,allowUserMedia:or,alt:null,as:null,async:or,autoCapitalize:null,autoComplete:ur,autoFocus:or,autoPlay:or,blocking:ur,capture:null,charSet:null,checked:or,cite:null,className:ur,cols:cr,colSpan:null,content:null,contentEditable:sr,controls:or,controlsList:ur,coords:cr|dr,crossOrigin:null,data:null,dateTime:null,decoding:null,default:or,defer:or,dir:null,dirName:null,disabled:or,download:lr,draggable:sr,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:or,formTarget:null,headers:ur,height:cr,hidden:lr,high:cr,href:null,hrefLang:null,htmlFor:ur,httpEquiv:ur,id:null,imageSizes:null,imageSrcSet:null,inert:or,inputMode:null,integrity:null,is:null,isMap:or,itemId:null,itemProp:ur,itemRef:ur,itemScope:or,itemType:ur,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:or,low:cr,manifest:null,max:null,maxLength:cr,media:null,method:null,min:null,minLength:cr,multiple:or,muted:or,name:null,nonce:null,noModule:or,noValidate:or,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:or,optimum:cr,pattern:null,ping:ur,placeholder:null,playsInline:or,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:or,referrerPolicy:null,rel:ur,required:or,reversed:or,rows:cr,rowSpan:cr,sandbox:ur,scope:null,scoped:or,seamless:or,selected:or,shadowRootClonable:or,shadowRootDelegatesFocus:or,shadowRootMode:null,shape:null,size:cr,sizes:null,slot:null,span:cr,spellCheck:sr,src:null,srcDoc:null,srcLang:null,srcSet:null,start:cr,step:null,style:null,tabIndex:cr,target:null,title:null,translate:null,type:null,typeMustMatch:or,useMap:null,value:sr,width:cr,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ur,axis:null,background:null,bgColor:null,border:cr,borderColor:null,bottomMargin:cr,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:or,declare:or,event:null,face:null,frame:null,frameBorder:null,hSpace:cr,leftMargin:cr,link:null,longDesc:null,lowSrc:null,marginHeight:cr,marginWidth:cr,noResize:or,noHref:or,noShade:or,noWrap:or,object:null,profile:null,prompt:null,rev:null,rightMargin:cr,rules:null,scheme:null,scrolling:sr,standby:null,summary:null,text:null,topMargin:cr,valueType:null,version:null,vAlign:null,vLink:null,vSpace:cr,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:or,disableRemotePlayback:or,prefix:null,property:null,results:cr,security:null,unselectable:null},space:"html",transform:yr}),Ar=gr({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:pr,accentHeight:cr,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:cr,amplitude:cr,arabicForm:null,ascent:cr,attributeName:null,attributeType:null,azimuth:cr,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:cr,by:null,calcMode:null,capHeight:cr,className:ur,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:cr,diffuseConstant:cr,direction:null,display:null,dur:null,divisor:cr,dominantBaseline:null,download:or,dx:null,dy:null,edgeMode:null,editable:null,elevation:cr,enableBackground:null,end:null,event:null,exponent:cr,externalResourcesRequired:null,fill:null,fillOpacity:cr,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:dr,g2:dr,glyphName:dr,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:cr,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:cr,horizOriginX:cr,horizOriginY:cr,id:null,ideographic:cr,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:cr,k:cr,k1:cr,k2:cr,k3:cr,k4:cr,kernelMatrix:pr,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:cr,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:cr,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:cr,overlineThickness:cr,paintOrder:null,panose1:null,path:null,pathLength:cr,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ur,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:cr,pointsAtY:cr,pointsAtZ:cr,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:pr,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:pr,rev:pr,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:pr,requiredFeatures:pr,requiredFonts:pr,requiredFormats:pr,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:cr,specularExponent:cr,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:cr,strikethroughThickness:cr,string:null,stroke:null,strokeDashArray:pr,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:cr,strokeOpacity:cr,strokeWidth:null,style:null,surfaceScale:cr,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:pr,tabIndex:cr,tableValues:null,target:null,targetX:cr,targetY:cr,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:pr,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:cr,underlineThickness:cr,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:cr,values:null,vAlphabetic:cr,vMathematical:cr,vectorEffect:null,vHanging:cr,vIdeographic:cr,version:null,vertAdvY:cr,vertOriginX:cr,vertOriginY:cr,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:cr,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:br}),wr=gr({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase()}),Ur=gr({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:yr}),xr=gr({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase()}),Cr={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},Rr=/[A-Z]/g,Er=/-[a-z]/g,Tr=/^data[-\w.:]+$/i;function kr(e,t){const r=nr(t);let n=t,i=ir;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&"data"===r.slice(0,4)&&Tr.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace(Er,Wr);n="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!Er.test(e)){let r=e.replace(Rr,Fr);"-"!==r.charAt(0)&&(r="-"+r),t="data"+r}}i=mr}return new i(n,t)}function Fr(e){return"-"+e.toLowerCase()}function Wr(e){return e.charAt(1).toUpperCase()}const Nr=rr([vr,Sr,wr,Ur,xr],"html"),Kr=rr([vr,Ar,wr,Ur,xr],"svg");function Or(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}var Pr={},Ir=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Lr=/\n/g,Br=/^\s*/,Dr=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Xr=/^:\s*/,jr=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Mr=/^[;\s]*/,zr=/^\s+|\s+$/g,Gr="";function Zr(e){return e?e.replace(zr,Gr):Gr}var Hr=q&&q.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Pr,"__esModule",{value:!0}),Pr.default=function(e,t){let r=null;if(!e||"string"!=typeof e)return r;const n=(0,Yr.default)(e),i="function"==typeof t;return n.forEach(e=>{if("declaration"!==e.type)return;const{property:n,value:a}=e;i?t(n,a,e):a&&(r=r||{},r[n]=a)}),r};const Yr=Hr(function(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var r=1,n=1;function i(e){var t=e.match(Lr);t&&(r+=t.length);var i=e.lastIndexOf("\n");n=~i?e.length-i:n+e.length}function a(){var e={line:r,column:n};return function(t){return t.position=new o(e),c(),t}}function o(e){this.start=e,this.end={line:r,column:n},this.source=t.source}function s(i){var a=new Error(t.source+":"+r+":"+n+": "+i);if(a.reason=i,a.filename=t.source,a.line=r,a.column=n,a.source=e,!t.silent)throw a}function l(t){var r=t.exec(e);if(r){var n=r[0];return i(n),e=e.slice(n.length),r}}function c(){l(Br)}function u(e){var t;for(e=e||[];t=d();)!1!==t&&e.push(t);return e}function d(){var t=a();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var r=2;Gr!=e.charAt(r)&&("*"!=e.charAt(r)||"/"!=e.charAt(r+1));)++r;if(r+=2,Gr===e.charAt(r-1))return s("End of comment missing");var o=e.slice(2,r-2);return n+=2,i(o),e=e.slice(r),n+=2,t({type:"comment",comment:o})}}function p(){var e=a(),t=l(Dr);if(t){if(d(),!l(Xr))return s("property missing ':'");var r=l(jr),n=e({type:"declaration",property:Zr(t[0].replace(Ir,Gr)),value:r?Zr(r[0].replace(Ir,Gr)):Gr});return l(Mr),n}}return o.prototype.content=e,c(),function(){var e,t=[];for(u(t);e=p();)!1!==e&&(t.push(e),u(t));return t}()});var Qr={};Object.defineProperty(Qr,"__esModule",{value:!0}),Qr.camelCase=void 0;var Jr=/^--[a-zA-Z0-9_-]+$/,_r=/-([a-z])/g,$r=/^[^-]+$/,en=/^-(webkit|moz|ms|o|khtml)-/,tn=/^-(ms)-/,rn=function(e,t){return t.toUpperCase()},nn=function(e,t){return"".concat(t,"-")};Qr.camelCase=function(e,t){return void 0===t&&(t={}),function(e){return!e||$r.test(e)||Jr.test(e)}(e)?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(tn,nn):e.replace(en,nn)).replace(_r,rn))};var an=(q&&q.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(Pr),on=Qr;function sn(e,t){var r={};return e&&"string"==typeof e?((0,an.default)(e,function(e,n){e&&n&&(r[(0,on.camelCase)(e,t)]=n)}),r):r}sn.default=sn;const ln=f(sn),cn=dn("end"),un=dn("start");function dn(e){return function(t){const r=t&&t.position&&t.position[e]||{};if("number"==typeof r.line&&r.line>0&&"number"==typeof r.column&&r.column>0)return{line:r.line,column:r.column,offset:"number"==typeof r.offset&&r.offset>-1?r.offset:void 0}}}function pn(e){return e&&"object"==typeof e?"position"in e||"type"in e?qn(e.position):"start"in e||"end"in e?qn(e):"line"in e||"column"in e?hn(e):"":""}function hn(e){return fn(e&&e.line)+":"+fn(e&&e.column)}function qn(e){return hn(e&&e.start)+"-"+hn(e&&e.end)}function fn(e){return e&&"number"==typeof e?e:1}class mn extends Error{constructor(e,t,r){super(),"string"==typeof t&&(r=t,t=void 0);let n="",i={},a=!1;if(t&&(i="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"==typeof e?n=e:!i.cause&&e&&(a=!0,n=e.message,i.cause=e),!i.ruleId&&!i.source&&"string"==typeof r){const e=r.indexOf(":");-1===e?i.ruleId=r:(i.source=r.slice(0,e),i.ruleId=r.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){const e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}const o=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file="",this.message=n,this.line=o?o.line:void 0,this.name=pn(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=a&&i.cause&&"string"==typeof i.cause.stack?i.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}mn.prototype.file="",mn.prototype.name="",mn.prototype.reason="",mn.prototype.message="",mn.prototype.stack="",mn.prototype.column=void 0,mn.prototype.line=void 0,mn.prototype.ancestors=void 0,mn.prototype.cause=void 0,mn.prototype.fatal=void 0,mn.prototype.place=void 0,mn.prototype.ruleId=void 0,mn.prototype.source=void 0;const Vn={}.hasOwnProperty,gn=new Map,vn=/[A-Z]/g,bn=new Set(["table","tbody","thead","tfoot","tr"]),yn=new Set(["td","th"]),Sn="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function An(e,t,r){return"element"===t.type?function(e,t,r){const n=e.schema;let i=n;"svg"===t.tagName.toLowerCase()&&"html"===n.space&&(i=Kr,e.schema=i),e.ancestors.push(t);const a=Rn(e,t.tagName,!1),o=function(e,t){const r={};let n,i;for(i in t.properties)if("children"!==i&&Vn.call(t.properties,i)){const a=Cn(e,i,t.properties[i]);if(a){const[i,o]=a;e.tableCellAlignToStyle&&"align"===i&&"string"==typeof o&&yn.has(t.tagName)?n=o:r[i]=o}}return n&&((r.style||(r.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=n),r}(e,t);let s=xn(e,t);return bn.has(t.tagName)&&(s=s.filter(function(e){return"string"!=typeof e||!("object"==typeof(t=e)?"text"===t.type&&er(t.value):er(t));var t})),wn(e,o,a,t),Un(o,s),e.ancestors.pop(),e.schema=n,e.create(t,a,o,r)}(e,t,r):"mdxFlowExpression"===t.type||"mdxTextExpression"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}En(e,t.position)}(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?function(e,t,r){const n=e.schema;let i=n;"svg"===t.name&&"html"===n.space&&(i=Kr,e.schema=i),e.ancestors.push(t);const a=null===t.name?e.Fragment:Rn(e,t.name,!0),o=function(e,t){const r={};for(const n of t.attributes)if("mdxJsxExpressionAttribute"===n.type)if(n.data&&n.data.estree&&e.evaluater){const t=n.data.estree.body[0];Gt(t.type);const i=t.expression;Gt(i.type);const a=i.properties[0];Gt(a.type),Object.assign(r,e.evaluater.evaluateExpression(a.argument))}else En(e,t.position);else{const i=n.name;let a;if(n.value&&"object"==typeof n.value)if(n.value.data&&n.value.data.estree&&e.evaluater){const t=n.value.data.estree.body[0];Gt(t.type),a=e.evaluater.evaluateExpression(t.expression)}else En(e,t.position);else a=null===n.value||n.value;r[i]=a}return r}(e,t),s=xn(e,t);return wn(e,o,a,t),Un(o,s),e.ancestors.pop(),e.schema=n,e.create(t,a,o,r)}(e,t,r):"mdxjsEsm"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);En(e,t.position)}(e,t):"root"===t.type?function(e,t,r){const n={};return Un(n,xn(e,t)),e.create(t,e.Fragment,n,r)}(e,t,r):"text"===t.type?function(e,t){return t.value}(0,t):void 0}function wn(e,t,r,n){"string"!=typeof r&&r!==e.Fragment&&e.passNode&&(t.node=n)}function Un(e,t){if(t.length>0){const r=t.length>1?t:t[0];r&&(e.children=r)}}function xn(e,t){const r=[];let n=-1;const i=e.passKeys?new Map:gn;for(;++n<t.children.length;){const a=t.children[n];let o;if(e.passKeys){const e="element"===a.type?a.tagName:"mdxJsxFlowElement"===a.type||"mdxJsxTextElement"===a.type?a.name:void 0;if(e){const t=i.get(e)||0;o=e+"-"+t,i.set(e,t+1)}}const s=An(e,a,o);void 0!==s&&r.push(s)}return r}function Cn(e,t,r){const n=kr(e.schema,t);if(!(null==r||"number"==typeof r&&Number.isNaN(r))){if(Array.isArray(r)&&(r=n.commaSeparated?function(e){const t={};return(""===e[e.length-1]?[...e,""]:e).join((t.padRight?" ":"")+","+(!1===t.padLeft?"":" ")).trim()}(r):r.join(" ").trim()),"style"===n.property){let t="object"==typeof r?r:function(e,t){try{return ln(t,{reactCompat:!0})}catch(r){if(e.ignoreInvalidStyle)return{};const t=r,n=new mn("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:t,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=Sn+"#cannot-parse-style-attribute",n}}(e,String(r));return"css"===e.stylePropertyNameCase&&(t=function(e){const t={};let r;for(r in e)Vn.call(e,r)&&(t[Tn(r)]=e[r]);return t}(t)),["style",t]}return["react"===e.elementAttributeNameCase&&n.space?Cr[n.property]||n.property:n.attribute,r]}}function Rn(e,t,r){let n;if(r)if(t.includes(".")){const e=t.split(".");let r,i=-1;for(;++i<e.length;){const t=_t(e[i])?{type:"Identifier",name:e[i]}:{type:"Literal",value:e[i]};r=r?{type:"MemberExpression",object:r,property:t,computed:Boolean(i&&"Literal"===t.type),optional:!1}:t}n=r}else n=_t(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};else n={type:"Literal",value:t};if("Literal"===n.type){const t=n.value;return Vn.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(n);En(e)}function En(e,t){const r=new mn("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=Sn+"#cannot-handle-mdx-estrees-without-createevaluater",r}function Tn(e){let t=e.replace(vn,kn);return"ms-"===t.slice(0,3)&&(t="-"+t),t}function kn(e){return"-"+e.toLowerCase()}const Fn={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},Wn={};function Nn(e,t){return Kn(e,"boolean"!=typeof Wn.includeImageAlt||Wn.includeImageAlt,"boolean"!=typeof Wn.includeHtml||Wn.includeHtml)}function Kn(e,t,r){if(function(e){return Boolean(e&&"object"==typeof e)}(e)){if("value"in e)return"html"!==e.type||r?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return On(e.children,t,r)}return Array.isArray(e)?On(e,t,r):""}function On(e,t,r){const n=[];let i=-1;for(;++i<e.length;)n[i]=Kn(e[i],t,r);return n.join("")}const Pn=document.createElement("i");function In(e){const t="&"+e+";";Pn.innerHTML=t;const r=Pn.textContent;return(59!==r.charCodeAt(r.length-1)||"semi"===e)&&r!==t&&r}function Ln(e,t,r,n){const i=e.length;let a,o=0;if(t=t<0?-t>i?0:i+t:t>i?i:t,r=r>0?r:0,n.length<1e4)a=Array.from(n),a.unshift(t,r),e.splice(...a);else for(r&&e.splice(t,r);o<n.length;)a=n.slice(o,o+1e4),a.unshift(t,0),e.splice(...a),o+=1e4,t+=1e4}function Bn(e,t){return e.length>0?(Ln(e,e.length,0,t),e):t}const Dn={}.hasOwnProperty;function Xn(e){const t={};let r=-1;for(;++r<e.length;)jn(t,e[r]);return t}function jn(e,t){let r;for(r in t){const n=(Dn.call(e,r)?e[r]:void 0)||(e[r]={}),i=t[r];let a;if(i)for(a in i){Dn.call(n,a)||(n[a]=[]);const e=i[a];Mn(n[a],Array.isArray(e)?e:e?[e]:[])}}}function Mn(e,t){let r=-1;const n=[];for(;++r<t.length;)("after"===t[r].add?e:n).push(t[r]);Ln(e,0,0,n)}function zn(e,t){const r=Number.parseInt(e,t);return r<9||11===r||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||!(65535&~r)||65534==(65535&r)||r>1114111?"�":String.fromCodePoint(r)}function Gn(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Zn=ai(/[A-Za-z]/),Hn=ai(/[\dA-Za-z]/),Yn=ai(/[#-'*+\--9=?A-Z^-~]/);function Qn(e){return null!==e&&(e<32||127===e)}const Jn=ai(/\d/),_n=ai(/[\dA-Fa-f]/),$n=ai(/[!-/:-@[-`{-~]/);function ei(e){return null!==e&&e<-2}function ti(e){return null!==e&&(e<0||32===e)}function ri(e){return-2===e||-1===e||32===e}const ni=ai(new RegExp("\\p{P}|\\p{S}","u")),ii=ai(/\s/);function ai(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function oi(e){const t=[];let r=-1,n=0,i=0;for(;++r<e.length;){const a=e.charCodeAt(r);let o="";if(37===a&&Hn(e.charCodeAt(r+1))&&Hn(e.charCodeAt(r+2)))i=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(o=String.fromCharCode(a));else if(a>55295&&a<57344){const t=e.charCodeAt(r+1);a<56320&&t>56319&&t<57344?(o=String.fromCharCode(a,t),i=1):o="�"}else o=String.fromCharCode(a);o&&(t.push(e.slice(n,r),encodeURIComponent(o)),n=r+i+1,o=""),i&&(r+=i,i=0)}return t.join("")+e.slice(n)}function si(e,t,r,n){const i=n?n-1:Number.POSITIVE_INFINITY;let a=0;return function(n){return ri(n)?(e.enter(r),o(n)):t(n)};function o(n){return ri(n)&&a++<i?(e.consume(n),o):(e.exit(r),t(n))}}const li={tokenize:function(e){const t=e.attempt(this.parser.constructs.contentInitial,function(r){if(null!==r)return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),si(e,t,"linePrefix");e.consume(r)},function(t){return e.enter("paragraph"),n(t)});let r;return t;function n(t){const n=e.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=n),r=n,i(t)}function i(t){return null===t?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(t)):ei(t)?(e.consume(t),e.exit("chunkText"),n):(e.consume(t),i)}}},ci={tokenize:function(e){const t=this,r=[];let n,i,a,o=0;return s;function s(n){if(o<r.length){const i=r[o];return t.containerState=i[1],e.attempt(i[0].continuation,l,c)(n)}return c(n)}function l(e){if(o++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,n&&g();const r=t.events.length;let i,a=r;for(;a--;)if("exit"===t.events[a][0]&&"chunkFlow"===t.events[a][1].type){i=t.events[a][1].end;break}V(o);let s=r;for(;s<t.events.length;)t.events[s][1].end={...i},s++;return Ln(t.events,a+1,0,t.events.slice(r)),t.events.length=s,c(e)}return s(e)}function c(i){if(o===r.length){if(!n)return p(i);if(n.currentConstruct&&n.currentConstruct.concrete)return q(i);t.interrupt=Boolean(n.currentConstruct&&!n._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(ui,u,d)(i)}function u(e){return n&&g(),V(o),p(e)}function d(e){return t.parser.lazy[t.now().line]=o!==r.length,a=t.now().offset,q(e)}function p(r){return t.containerState={},e.attempt(ui,h,q)(r)}function h(e){return o++,r.push([t.currentConstruct,t.containerState]),p(e)}function q(r){return null===r?(n&&g(),V(0),void e.consume(r)):(n=n||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:n,contentType:"flow",previous:i}),f(r))}function f(r){return null===r?(m(e.exit("chunkFlow"),!0),V(0),void e.consume(r)):ei(r)?(e.consume(r),m(e.exit("chunkFlow")),o=0,t.interrupt=void 0,s):(e.consume(r),f)}function m(e,r){const s=t.sliceStream(e);if(r&&s.push(null),e.previous=i,i&&(i.next=e),i=e,n.defineSkip(e.start),n.write(s),t.parser.lazy[e.start.line]){let e=n.events.length;for(;e--;)if(n.events[e][1].start.offset<a&&(!n.events[e][1].end||n.events[e][1].end.offset>a))return;const r=t.events.length;let i,s,l=r;for(;l--;)if("exit"===t.events[l][0]&&"chunkFlow"===t.events[l][1].type){if(i){s=t.events[l][1].end;break}i=!0}for(V(o),e=r;e<t.events.length;)t.events[e][1].end={...s},e++;Ln(t.events,l+1,0,t.events.slice(r)),t.events.length=e}}function V(n){let i=r.length;for(;i-- >n;){const n=r[i];t.containerState=n[1],n[0].exit.call(t,e)}r.length=n}function g(){n.write([null]),i=void 0,n=void 0,t.containerState._closeFlow=void 0}}},ui={tokenize:function(e,t,r){return si(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};function di(e){return null===e||ti(e)||ii(e)?1:ni(e)?2:void 0}function pi(e,t,r){const n=[];let i=-1;for(;++i<e.length;){const a=e[i].resolveAll;a&&!n.includes(a)&&(t=a(t,r),n.push(a))}return t}const hi={name:"attention",resolveAll:function(e,t){let r,n,i,a,o,s,l,c,u=-1;for(;++u<e.length;)if("enter"===e[u][0]&&"attentionSequence"===e[u][1].type&&e[u][1]._close)for(r=u;r--;)if("exit"===e[r][0]&&"attentionSequence"===e[r][1].type&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[u][1]).charCodeAt(0)){if((e[r][1]._close||e[u][1]._open)&&(e[u][1].end.offset-e[u][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[u][1].end.offset-e[u][1].start.offset)%3))continue;s=e[r][1].end.offset-e[r][1].start.offset>1&&e[u][1].end.offset-e[u][1].start.offset>1?2:1;const d={...e[r][1].end},p={...e[u][1].start};qi(d,-s),qi(p,s),a={type:s>1?"strongSequence":"emphasisSequence",start:d,end:{...e[r][1].end}},o={type:s>1?"strongSequence":"emphasisSequence",start:{...e[u][1].start},end:p},i={type:s>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[u][1].start}},n={type:s>1?"strong":"emphasis",start:{...a.start},end:{...o.end}},e[r][1].end={...a.start},e[u][1].start={...o.end},l=[],e[r][1].end.offset-e[r][1].start.offset&&(l=Bn(l,[["enter",e[r][1],t],["exit",e[r][1],t]])),l=Bn(l,[["enter",n,t],["enter",a,t],["exit",a,t],["enter",i,t]]),l=Bn(l,pi(t.parser.constructs.insideSpan.null,e.slice(r+1,u),t)),l=Bn(l,[["exit",i,t],["enter",o,t],["exit",o,t],["exit",n,t]]),e[u][1].end.offset-e[u][1].start.offset?(c=2,l=Bn(l,[["enter",e[u][1],t],["exit",e[u][1],t]])):c=0,Ln(e,r-1,u-r+3,l),u=r+l.length-c-2;break}for(u=-1;++u<e.length;)"attentionSequence"===e[u][1].type&&(e[u][1].type="data");return e},tokenize:function(e,t){const r=this.parser.constructs.attentionMarkers.null,n=this.previous,i=di(n);let a;return function(t){return a=t,e.enter("attentionSequence"),o(t)};function o(s){if(s===a)return e.consume(s),o;const l=e.exit("attentionSequence"),c=di(s),u=!c||2===c&&i||r.includes(s),d=!i||2===i&&c||r.includes(n);return l._open=Boolean(42===a?u:u&&(i||!d)),l._close=Boolean(42===a?d:d&&(c||!u)),t(s)}}};function qi(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const fi={name:"autolink",tokenize:function(e,t,r){let n=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i};function i(t){return Zn(t)?(e.consume(t),a):64===t?r(t):l(t)}function a(e){return 43===e||45===e||46===e||Hn(e)?(n=1,o(e)):l(e)}function o(t){return 58===t?(e.consume(t),n=0,s):(43===t||45===t||46===t||Hn(t))&&n++<32?(e.consume(t),o):(n=0,l(t))}function s(n){return 62===n?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(n),e.exit("autolinkMarker"),e.exit("autolink"),t):null===n||32===n||60===n||Qn(n)?r(n):(e.consume(n),s)}function l(t){return 64===t?(e.consume(t),c):Yn(t)?(e.consume(t),l):r(t)}function c(e){return Hn(e)?u(e):r(e)}function u(r){return 46===r?(e.consume(r),n=0,c):62===r?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):d(r)}function d(t){if((45===t||Hn(t))&&n++<63){const r=45===t?d:u;return e.consume(t),r}return r(t)}}},mi={partial:!0,tokenize:function(e,t,r){return function(t){return ri(t)?si(e,n,"linePrefix")(t):n(t)};function n(e){return null===e||ei(e)?t(e):r(e)}}},Vi={continuation:{tokenize:function(e,t,r){const n=this;return function(t){return ri(t)?si(e,i,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):i(t)};function i(n){return e.attempt(Vi,t,r)(n)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,t,r){const n=this;return function(t){if(62===t){const r=n.containerState;return r.open||(e.enter("blockQuote",{_container:!0}),r.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),i}return r(t)};function i(r){return ri(r)?(e.enter("blockQuotePrefixWhitespace"),e.consume(r),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(r))}}},gi={name:"characterEscape",tokenize:function(e,t,r){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),n};function n(n){return $n(n)?(e.enter("characterEscapeValue"),e.consume(n),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(n)}}},vi={name:"characterReference",tokenize:function(e,t,r){const n=this;let i,a,o=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),s};function s(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),i=31,a=Hn,c(t))}function l(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),i=6,a=_n,c):(e.enter("characterReferenceValue"),i=7,a=Jn,c(t))}function c(s){if(59===s&&o){const i=e.exit("characterReferenceValue");return a!==Hn||In(n.sliceSerialize(i))?(e.enter("characterReferenceMarker"),e.consume(s),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):r(s)}return a(s)&&o++<i?(e.consume(s),c):r(s)}}},bi={partial:!0,tokenize:function(e,t,r){const n=this;return function(t){return null===t?r(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i)};function i(e){return n.parser.lazy[n.now().line]?r(e):t(e)}}},yi={concrete:!0,name:"codeFenced",tokenize:function(e,t,r){const n=this,i={partial:!0,tokenize:function(e,t,r){let i=0;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o};function o(t){return e.enter("codeFencedFence"),ri(t)?si(e,l,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):l(t)}function l(t){return t===a?(e.enter("codeFencedFenceSequence"),c(t)):r(t)}function c(t){return t===a?(i++,e.consume(t),c):i>=s?(e.exit("codeFencedFenceSequence"),ri(t)?si(e,u,"whitespace")(t):u(t)):r(t)}function u(n){return null===n||ei(n)?(e.exit("codeFencedFence"),t(n)):r(n)}}};let a,o=0,s=0;return function(t){return function(t){const r=n.events[n.events.length-1];return o=r&&"linePrefix"===r[1].type?r[2].sliceSerialize(r[1],!0).length:0,a=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),l(t)}(t)};function l(t){return t===a?(s++,e.consume(t),l):s<3?r(t):(e.exit("codeFencedFenceSequence"),ri(t)?si(e,c,"whitespace")(t):c(t))}function c(r){return null===r||ei(r)?(e.exit("codeFencedFence"),n.interrupt?t(r):e.check(bi,h,g)(r)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),u(r))}function u(t){return null===t||ei(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(t)):ri(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),si(e,d,"whitespace")(t)):96===t&&t===a?r(t):(e.consume(t),u)}function d(t){return null===t||ei(t)?c(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),p(t))}function p(t){return null===t||ei(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(t)):96===t&&t===a?r(t):(e.consume(t),p)}function h(t){return e.attempt(i,g,q)(t)}function q(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),f}function f(t){return o>0&&ri(t)?si(e,m,"linePrefix",o+1)(t):m(t)}function m(t){return null===t||ei(t)?e.check(bi,h,g)(t):(e.enter("codeFlowValue"),V(t))}function V(t){return null===t||ei(t)?(e.exit("codeFlowValue"),m(t)):(e.consume(t),V)}function g(r){return e.exit("codeFenced"),t(r)}}},Si={name:"codeIndented",tokenize:function(e,t,r){const n=this;return function(t){return e.enter("codeIndented"),si(e,i,"linePrefix",5)(t)};function i(e){const t=n.events[n.events.length-1];return t&&"linePrefix"===t[1].type&&t[2].sliceSerialize(t[1],!0).length>=4?a(e):r(e)}function a(t){return null===t?s(t):ei(t)?e.attempt(Ai,a,s)(t):(e.enter("codeFlowValue"),o(t))}function o(t){return null===t||ei(t)?(e.exit("codeFlowValue"),a(t)):(e.consume(t),o)}function s(r){return e.exit("codeIndented"),t(r)}}},Ai={partial:!0,tokenize:function(e,t,r){const n=this;return i;function i(t){return n.parser.lazy[n.now().line]?r(t):ei(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):si(e,a,"linePrefix",5)(t)}function a(e){const a=n.events[n.events.length-1];return a&&"linePrefix"===a[1].type&&a[2].sliceSerialize(a[1],!0).length>=4?t(e):ei(e)?i(e):r(e)}}},wi={name:"codeText",previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type},resolve:function(e){let t,r,n=e.length-4,i=3;if(!("lineEnding"!==e[i][1].type&&"space"!==e[i][1].type||"lineEnding"!==e[n][1].type&&"space"!==e[n][1].type))for(t=i;++t<n;)if("codeTextData"===e[t][1].type){e[i][1].type="codeTextPadding",e[n][1].type="codeTextPadding",i+=2,n-=2;break}for(t=i-1,n++;++t<=n;)void 0===r?t!==n&&"lineEnding"!==e[t][1].type&&(r=t):t!==n&&"lineEnding"!==e[t][1].type||(e[r][1].type="codeTextData",t!==r+2&&(e[r][1].end=e[t-1][1].end,e.splice(r+2,t-r-2),n-=t-r-2,t=r+2),r=void 0);return e},tokenize:function(e,t,r){let n,i,a=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),o(t)};function o(t){return 96===t?(e.consume(t),a++,o):(e.exit("codeTextSequence"),s(t))}function s(t){return null===t?r(t):32===t?(e.enter("space"),e.consume(t),e.exit("space"),s):96===t?(i=e.enter("codeTextSequence"),n=0,c(t)):ei(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),s):(e.enter("codeTextData"),l(t))}function l(t){return null===t||32===t||96===t||ei(t)?(e.exit("codeTextData"),s(t)):(e.consume(t),l)}function c(r){return 96===r?(e.consume(r),n++,c):n===a?(e.exit("codeTextSequence"),e.exit("codeText"),t(r)):(i.type="codeTextData",l(r))}}};class Ui{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){const r=null==t?Number.POSITIVE_INFINITY:t;return r<this.left.length?this.left.slice(e,r):e>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(e,t,r){const n=t||0;this.setCursor(Math.trunc(e));const i=this.right.splice(this.right.length-n,Number.POSITIVE_INFINITY);return r&&xi(this.left,r),i.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),xi(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),xi(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&0===this.right.length||e<0&&0===this.left.length))if(e<this.left.length){const t=this.left.splice(e,Number.POSITIVE_INFINITY);xi(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);xi(this.left,t.reverse())}}}function xi(e,t){let r=0;if(t.length<1e4)e.push(...t);else for(;r<t.length;)e.push(...t.slice(r,r+1e4)),r+=1e4}function Ci(e){const t={};let r,n,i,a,o,s,l,c=-1;const u=new Ui(e);for(;++c<u.length;){for(;c in t;)c=t[c];if(r=u.get(c),c&&"chunkFlow"===r[1].type&&"listItemPrefix"===u.get(c-1)[1].type&&(s=r[1]._tokenizer.events,i=0,i<s.length&&"lineEndingBlank"===s[i][1].type&&(i+=2),i<s.length&&"content"===s[i][1].type))for(;++i<s.length&&"content"!==s[i][1].type;)"chunkText"===s[i][1].type&&(s[i][1]._isInFirstContentOfListItem=!0,i++);if("enter"===r[0])r[1].contentType&&(Object.assign(t,Ri(u,c)),c=t[c],l=!0);else if(r[1]._container){for(i=c,n=void 0;i--;)if(a=u.get(i),"lineEnding"===a[1].type||"lineEndingBlank"===a[1].type)"enter"===a[0]&&(n&&(u.get(n)[1].type="lineEndingBlank"),a[1].type="lineEnding",n=i);else if("linePrefix"!==a[1].type&&"listItemIndent"!==a[1].type)break;n&&(r[1].end={...u.get(n)[1].start},o=u.slice(n,c),o.unshift(r),u.splice(n,c-n+1,o))}}return Ln(e,0,Number.POSITIVE_INFINITY,u.slice(0)),!l}function Ri(e,t){const r=e.get(t)[1],n=e.get(t)[2];let i=t-1;const a=[];let o=r._tokenizer;o||(o=n.parser[r.contentType](r.start),r._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));const s=o.events,l=[],c={};let u,d,p=-1,h=r,q=0,f=0;const m=[f];for(;h;){for(;e.get(++i)[1]!==h;);a.push(i),h._tokenizer||(u=n.sliceStream(h),h.next||u.push(null),d&&o.defineSkip(h.start),h._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(u),h._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),d=h,h=h.next}for(h=r;++p<s.length;)"exit"===s[p][0]&&"enter"===s[p-1][0]&&s[p][1].type===s[p-1][1].type&&s[p][1].start.line!==s[p][1].end.line&&(f=p+1,m.push(f),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(o.events=[],h?(h._tokenizer=void 0,h.previous=void 0):m.pop(),p=m.length;p--;){const t=s.slice(m[p],m[p+1]),r=a.pop();l.push([r,r+t.length-1]),e.splice(r,2,t)}for(l.reverse(),p=-1;++p<l.length;)c[q+l[p][0]]=q+l[p][1],q+=l[p][1]-l[p][0]-1;return c}const Ei={resolve:function(e){return Ci(e),e},tokenize:function(e,t){let r;return function(t){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),n(t)};function n(t){return null===t?i(t):ei(t)?e.check(Ti,a,i)(t):(e.consume(t),n)}function i(r){return e.exit("chunkContent"),e.exit("content"),t(r)}function a(t){return e.consume(t),e.exit("chunkContent"),r.next=e.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,n}}},Ti={partial:!0,tokenize:function(e,t,r){const n=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),si(e,i,"linePrefix")};function i(i){if(null===i||ei(i))return r(i);const a=n.events[n.events.length-1];return!n.parser.constructs.disable.null.includes("codeIndented")&&a&&"linePrefix"===a[1].type&&a[2].sliceSerialize(a[1],!0).length>=4?t(i):e.interrupt(n.parser.constructs.flow,r,t)(i)}}};function ki(e,t,r,n,i,a,o,s,l){const c=l||Number.POSITIVE_INFINITY;let u=0;return function(t){return 60===t?(e.enter(n),e.enter(i),e.enter(a),e.consume(t),e.exit(a),d):null===t||32===t||41===t||Qn(t)?r(t):(e.enter(n),e.enter(o),e.enter(s),e.enter("chunkString",{contentType:"string"}),q(t))};function d(r){return 62===r?(e.enter(a),e.consume(r),e.exit(a),e.exit(i),e.exit(n),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),p(r))}function p(t){return 62===t?(e.exit("chunkString"),e.exit(s),d(t)):null===t||60===t||ei(t)?r(t):(e.consume(t),92===t?h:p)}function h(t){return 60===t||62===t||92===t?(e.consume(t),p):p(t)}function q(i){return u||null!==i&&41!==i&&!ti(i)?u<c&&40===i?(e.consume(i),u++,q):41===i?(e.consume(i),u--,q):null===i||32===i||40===i||Qn(i)?r(i):(e.consume(i),92===i?f:q):(e.exit("chunkString"),e.exit(s),e.exit(o),e.exit(n),t(i))}function f(t){return 40===t||41===t||92===t?(e.consume(t),q):q(t)}}function Fi(e,t,r,n,i,a){const o=this;let s,l=0;return function(t){return e.enter(n),e.enter(i),e.consume(t),e.exit(i),e.enter(a),c};function c(d){return l>999||null===d||91===d||93===d&&!s||94===d&&!l&&"_hiddenFootnoteSupport"in o.parser.constructs?r(d):93===d?(e.exit(a),e.enter(i),e.consume(d),e.exit(i),e.exit(n),t):ei(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),u(d))}function u(t){return null===t||91===t||93===t||ei(t)||l++>999?(e.exit("chunkString"),c(t)):(e.consume(t),s||(s=!ri(t)),92===t?d:u)}function d(t){return 91===t||92===t||93===t?(e.consume(t),l++,u):u(t)}}function Wi(e,t,r,n,i,a){let o;return function(t){return 34===t||39===t||40===t?(e.enter(n),e.enter(i),e.consume(t),e.exit(i),o=40===t?41:t,s):r(t)};function s(r){return r===o?(e.enter(i),e.consume(r),e.exit(i),e.exit(n),t):(e.enter(a),l(r))}function l(t){return t===o?(e.exit(a),s(o)):null===t?r(t):ei(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),si(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(t))}function c(t){return t===o||null===t||ei(t)?(e.exit("chunkString"),l(t)):(e.consume(t),92===t?u:c)}function u(t){return t===o||92===t?(e.consume(t),c):c(t)}}function Ni(e,t){let r;return function n(i){return ei(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),r=!0,n):ri(i)?si(e,n,r?"linePrefix":"lineSuffix")(i):t(i)}}const Ki={name:"definition",tokenize:function(e,t,r){const n=this;let i;return function(t){return e.enter("definition"),function(t){return Fi.call(n,e,a,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)}(t)};function a(t){return i=Gn(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),o):r(t)}function o(t){return ti(t)?Ni(e,s)(t):s(t)}function s(t){return ki(e,l,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function l(t){return e.attempt(Oi,c,c)(t)}function c(t){return ri(t)?si(e,u,"whitespace")(t):u(t)}function u(a){return null===a||ei(a)?(e.exit("definition"),n.parser.defined.push(i),t(a)):r(a)}}},Oi={partial:!0,tokenize:function(e,t,r){return function(t){return ti(t)?Ni(e,n)(t):r(t)};function n(t){return Wi(e,i,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function i(t){return ri(t)?si(e,a,"whitespace")(t):a(t)}function a(e){return null===e||ei(e)?t(e):r(e)}}},Pi={name:"hardBreakEscape",tokenize:function(e,t,r){return function(t){return e.enter("hardBreakEscape"),e.consume(t),n};function n(n){return ei(n)?(e.exit("hardBreakEscape"),t(n)):r(n)}}},Ii={name:"headingAtx",resolve:function(e,t){let r,n,i=e.length-2,a=3;return"whitespace"===e[a][1].type&&(a+=2),i-2>a&&"whitespace"===e[i][1].type&&(i-=2),"atxHeadingSequence"===e[i][1].type&&(a===i-1||i-4>a&&"whitespace"===e[i-2][1].type)&&(i-=a+1===i?2:4),i>a&&(r={type:"atxHeadingText",start:e[a][1].start,end:e[i][1].end},n={type:"chunkText",start:e[a][1].start,end:e[i][1].end,contentType:"text"},Ln(e,a,i-a+1,[["enter",r,t],["enter",n,t],["exit",n,t],["exit",r,t]])),e},tokenize:function(e,t,r){let n=0;return function(t){return e.enter("atxHeading"),function(t){return e.enter("atxHeadingSequence"),i(t)}(t)};function i(t){return 35===t&&n++<6?(e.consume(t),i):null===t||ti(t)?(e.exit("atxHeadingSequence"),a(t)):r(t)}function a(r){return 35===r?(e.enter("atxHeadingSequence"),o(r)):null===r||ei(r)?(e.exit("atxHeading"),t(r)):ri(r)?si(e,a,"whitespace")(r):(e.enter("atxHeadingText"),s(r))}function o(t){return 35===t?(e.consume(t),o):(e.exit("atxHeadingSequence"),a(t))}function s(t){return null===t||35===t||ti(t)?(e.exit("atxHeadingText"),a(t)):(e.consume(t),s)}}},Li=["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"],Bi=["pre","script","style","textarea"],Di={concrete:!0,name:"htmlFlow",resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););return t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e},tokenize:function(e,t,r){const n=this;let i,a,o,s,l;return function(t){return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),c}(t)};function c(s){return 33===s?(e.consume(s),u):47===s?(e.consume(s),a=!0,h):63===s?(e.consume(s),i=3,n.interrupt?t:N):Zn(s)?(e.consume(s),o=String.fromCharCode(s),q):r(s)}function u(a){return 45===a?(e.consume(a),i=2,d):91===a?(e.consume(a),i=5,s=0,p):Zn(a)?(e.consume(a),i=4,n.interrupt?t:N):r(a)}function d(i){return 45===i?(e.consume(i),n.interrupt?t:N):r(i)}function p(i){return i==="CDATA[".charCodeAt(s++)?(e.consume(i),6===s?n.interrupt?t:x:p):r(i)}function h(t){return Zn(t)?(e.consume(t),o=String.fromCharCode(t),q):r(t)}function q(s){if(null===s||47===s||62===s||ti(s)){const l=47===s,c=o.toLowerCase();return l||a||!Bi.includes(c)?Li.includes(o.toLowerCase())?(i=6,l?(e.consume(s),f):n.interrupt?t(s):x(s)):(i=7,n.interrupt&&!n.parser.lazy[n.now().line]?r(s):a?m(s):V(s)):(i=1,n.interrupt?t(s):x(s))}return 45===s||Hn(s)?(e.consume(s),o+=String.fromCharCode(s),q):r(s)}function f(i){return 62===i?(e.consume(i),n.interrupt?t:x):r(i)}function m(t){return ri(t)?(e.consume(t),m):w(t)}function V(t){return 47===t?(e.consume(t),w):58===t||95===t||Zn(t)?(e.consume(t),g):ri(t)?(e.consume(t),V):w(t)}function g(t){return 45===t||46===t||58===t||95===t||Hn(t)?(e.consume(t),g):v(t)}function v(t){return 61===t?(e.consume(t),b):ri(t)?(e.consume(t),v):V(t)}function b(t){return null===t||60===t||61===t||62===t||96===t?r(t):34===t||39===t?(e.consume(t),l=t,y):ri(t)?(e.consume(t),b):S(t)}function y(t){return t===l?(e.consume(t),l=null,A):null===t||ei(t)?r(t):(e.consume(t),y)}function S(t){return null===t||34===t||39===t||47===t||60===t||61===t||62===t||96===t||ti(t)?v(t):(e.consume(t),S)}function A(e){return 47===e||62===e||ri(e)?V(e):r(e)}function w(t){return 62===t?(e.consume(t),U):r(t)}function U(t){return null===t||ei(t)?x(t):ri(t)?(e.consume(t),U):r(t)}function x(t){return 45===t&&2===i?(e.consume(t),T):60===t&&1===i?(e.consume(t),k):62===t&&4===i?(e.consume(t),K):63===t&&3===i?(e.consume(t),N):93===t&&5===i?(e.consume(t),W):!ei(t)||6!==i&&7!==i?null===t||ei(t)?(e.exit("htmlFlowData"),C(t)):(e.consume(t),x):(e.exit("htmlFlowData"),e.check(Xi,O,C)(t))}function C(t){return e.check(ji,R,O)(t)}function R(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),E}function E(t){return null===t||ei(t)?C(t):(e.enter("htmlFlowData"),x(t))}function T(t){return 45===t?(e.consume(t),N):x(t)}function k(t){return 47===t?(e.consume(t),o="",F):x(t)}function F(t){if(62===t){const r=o.toLowerCase();return Bi.includes(r)?(e.consume(t),K):x(t)}return Zn(t)&&o.length<8?(e.consume(t),o+=String.fromCharCode(t),F):x(t)}function W(t){return 93===t?(e.consume(t),N):x(t)}function N(t){return 62===t?(e.consume(t),K):45===t&&2===i?(e.consume(t),N):x(t)}function K(t){return null===t||ei(t)?(e.exit("htmlFlowData"),O(t)):(e.consume(t),K)}function O(r){return e.exit("htmlFlow"),t(r)}}},Xi={partial:!0,tokenize:function(e,t,r){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),e.attempt(mi,t,r)}}},ji={partial:!0,tokenize:function(e,t,r){const n=this;return function(t){return ei(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):r(t)};function i(e){return n.parser.lazy[n.now().line]?r(e):t(e)}}},Mi={name:"htmlText",tokenize:function(e,t,r){const n=this;let i,a,o;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),s};function s(t){return 33===t?(e.consume(t),l):47===t?(e.consume(t),b):63===t?(e.consume(t),g):Zn(t)?(e.consume(t),A):r(t)}function l(t){return 45===t?(e.consume(t),c):91===t?(e.consume(t),a=0,h):Zn(t)?(e.consume(t),V):r(t)}function c(t){return 45===t?(e.consume(t),p):r(t)}function u(t){return null===t?r(t):45===t?(e.consume(t),d):ei(t)?(o=u,F(t)):(e.consume(t),u)}function d(t){return 45===t?(e.consume(t),p):u(t)}function p(e){return 62===e?k(e):45===e?d(e):u(e)}function h(t){return t==="CDATA[".charCodeAt(a++)?(e.consume(t),6===a?q:h):r(t)}function q(t){return null===t?r(t):93===t?(e.consume(t),f):ei(t)?(o=q,F(t)):(e.consume(t),q)}function f(t){return 93===t?(e.consume(t),m):q(t)}function m(t){return 62===t?k(t):93===t?(e.consume(t),m):q(t)}function V(t){return null===t||62===t?k(t):ei(t)?(o=V,F(t)):(e.consume(t),V)}function g(t){return null===t?r(t):63===t?(e.consume(t),v):ei(t)?(o=g,F(t)):(e.consume(t),g)}function v(e){return 62===e?k(e):g(e)}function b(t){return Zn(t)?(e.consume(t),y):r(t)}function y(t){return 45===t||Hn(t)?(e.consume(t),y):S(t)}function S(t){return ei(t)?(o=S,F(t)):ri(t)?(e.consume(t),S):k(t)}function A(t){return 45===t||Hn(t)?(e.consume(t),A):47===t||62===t||ti(t)?w(t):r(t)}function w(t){return 47===t?(e.consume(t),k):58===t||95===t||Zn(t)?(e.consume(t),U):ei(t)?(o=w,F(t)):ri(t)?(e.consume(t),w):k(t)}function U(t){return 45===t||46===t||58===t||95===t||Hn(t)?(e.consume(t),U):x(t)}function x(t){return 61===t?(e.consume(t),C):ei(t)?(o=x,F(t)):ri(t)?(e.consume(t),x):w(t)}function C(t){return null===t||60===t||61===t||62===t||96===t?r(t):34===t||39===t?(e.consume(t),i=t,R):ei(t)?(o=C,F(t)):ri(t)?(e.consume(t),C):(e.consume(t),E)}function R(t){return t===i?(e.consume(t),i=void 0,T):null===t?r(t):ei(t)?(o=R,F(t)):(e.consume(t),R)}function E(t){return null===t||34===t||39===t||60===t||61===t||96===t?r(t):47===t||62===t||ti(t)?w(t):(e.consume(t),E)}function T(e){return 47===e||62===e||ti(e)?w(e):r(e)}function k(n){return 62===n?(e.consume(n),e.exit("htmlTextData"),e.exit("htmlText"),t):r(n)}function F(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),W}function W(t){return ri(t)?si(e,N,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):N(t)}function N(t){return e.enter("htmlTextData"),o(t)}}},zi={name:"labelEnd",resolveAll:function(e){let t=-1;const r=[];for(;++t<e.length;){const n=e[t][1];if(r.push(e[t]),"labelImage"===n.type||"labelLink"===n.type||"labelEnd"===n.type){const e="labelImage"===n.type?4:2;n.type="data",t+=e}}return e.length!==r.length&&Ln(e,0,e.length,r),e},resolveTo:function(e,t){let r,n,i,a,o=e.length,s=0;for(;o--;)if(r=e[o][1],n){if("link"===r.type||"labelLink"===r.type&&r._inactive)break;"enter"===e[o][0]&&"labelLink"===r.type&&(r._inactive=!0)}else if(i){if("enter"===e[o][0]&&("labelImage"===r.type||"labelLink"===r.type)&&!r._balanced&&(n=o,"labelLink"!==r.type)){s=2;break}}else"labelEnd"===r.type&&(i=o);const l={type:"labelLink"===e[n][1].type?"link":"image",start:{...e[n][1].start},end:{...e[e.length-1][1].end}},c={type:"label",start:{...e[n][1].start},end:{...e[i][1].end}},u={type:"labelText",start:{...e[n+s+2][1].end},end:{...e[i-2][1].start}};return a=[["enter",l,t],["enter",c,t]],a=Bn(a,e.slice(n+1,n+s+3)),a=Bn(a,[["enter",u,t]]),a=Bn(a,pi(t.parser.constructs.insideSpan.null,e.slice(n+s+4,i-3),t)),a=Bn(a,[["exit",u,t],e[i-2],e[i-1],["exit",c,t]]),a=Bn(a,e.slice(i+1)),a=Bn(a,[["exit",l,t]]),Ln(e,n,e.length,a),e},tokenize:function(e,t,r){const n=this;let i,a,o=n.events.length;for(;o--;)if(("labelImage"===n.events[o][1].type||"labelLink"===n.events[o][1].type)&&!n.events[o][1]._balanced){i=n.events[o][1];break}return function(t){return i?i._inactive?u(t):(a=n.parser.defined.includes(Gn(n.sliceSerialize({start:i.end,end:n.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),s):r(t)};function s(t){return 40===t?e.attempt(Gi,c,a?c:u)(t):91===t?e.attempt(Zi,c,a?l:u)(t):a?c(t):u(t)}function l(t){return e.attempt(Hi,c,u)(t)}function c(e){return t(e)}function u(e){return i._balanced=!0,r(e)}}},Gi={tokenize:function(e,t,r){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),n};function n(t){return ti(t)?Ni(e,i)(t):i(t)}function i(t){return 41===t?c(t):ki(e,a,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function a(t){return ti(t)?Ni(e,s)(t):c(t)}function o(e){return r(e)}function s(t){return 34===t||39===t||40===t?Wi(e,l,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):c(t)}function l(t){return ti(t)?Ni(e,c)(t):c(t)}function c(n){return 41===n?(e.enter("resourceMarker"),e.consume(n),e.exit("resourceMarker"),e.exit("resource"),t):r(n)}}},Zi={tokenize:function(e,t,r){const n=this;return function(t){return Fi.call(n,e,i,a,"reference","referenceMarker","referenceString")(t)};function i(e){return n.parser.defined.includes(Gn(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)))?t(e):r(e)}function a(e){return r(e)}}},Hi={tokenize:function(e,t,r){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),n};function n(n){return 93===n?(e.enter("referenceMarker"),e.consume(n),e.exit("referenceMarker"),e.exit("reference"),t):r(n)}}},Yi={name:"labelStartImage",resolveAll:zi.resolveAll,tokenize:function(e,t,r){const n=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),i};function i(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),a):r(t)}function a(e){return 94===e&&"_hiddenFootnoteSupport"in n.parser.constructs?r(e):t(e)}}},Qi={name:"labelStartLink",resolveAll:zi.resolveAll,tokenize:function(e,t,r){const n=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),i};function i(e){return 94===e&&"_hiddenFootnoteSupport"in n.parser.constructs?r(e):t(e)}}},Ji={name:"lineEnding",tokenize:function(e,t){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),si(e,t,"linePrefix")}}},_i={name:"thematicBreak",tokenize:function(e,t,r){let n,i=0;return function(t){return e.enter("thematicBreak"),function(e){return n=e,a(e)}(t)};function a(a){return a===n?(e.enter("thematicBreakSequence"),o(a)):i>=3&&(null===a||ei(a))?(e.exit("thematicBreak"),t(a)):r(a)}function o(t){return t===n?(e.consume(t),i++,o):(e.exit("thematicBreakSequence"),ri(t)?si(e,a,"whitespace")(t):a(t))}}},$i={continuation:{tokenize:function(e,t,r){const n=this;return n.containerState._closeFlow=void 0,e.check(mi,function(r){return n.containerState.furtherBlankLines=n.containerState.furtherBlankLines||n.containerState.initialBlankLine,si(e,t,"listItemIndent",n.containerState.size+1)(r)},function(r){return n.containerState.furtherBlankLines||!ri(r)?(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,i(r)):(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,e.attempt(ta,t,i)(r))});function i(i){return n.containerState._closeFlow=!0,n.interrupt=void 0,si(e,e.attempt($i,t,r),"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,t,r){const n=this,i=n.events[n.events.length-1];let a=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0,o=0;return function(t){const i=n.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===i?!n.containerState.marker||t===n.containerState.marker:Jn(t)){if(n.containerState.type||(n.containerState.type=i,e.enter(i,{_container:!0})),"listUnordered"===i)return e.enter("listItemPrefix"),42===t||45===t?e.check(_i,r,l)(t):l(t);if(!n.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(t)}return r(t)};function s(t){return Jn(t)&&++o<10?(e.consume(t),s):(!n.interrupt||o<2)&&(n.containerState.marker?t===n.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),l(t)):r(t)}function l(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),n.containerState.marker=n.containerState.marker||t,e.check(mi,n.interrupt?r:c,e.attempt(ea,d,u))}function c(e){return n.containerState.initialBlankLine=!0,a++,d(e)}function u(t){return ri(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),d):r(t)}function d(r){return n.containerState.size=a+n.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(r)}}},ea={partial:!0,tokenize:function(e,t,r){const n=this;return si(e,function(e){const i=n.events[n.events.length-1];return!ri(e)&&i&&"listItemPrefixWhitespace"===i[1].type?t(e):r(e)},"listItemPrefixWhitespace",n.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},ta={partial:!0,tokenize:function(e,t,r){const n=this;return si(e,function(e){const i=n.events[n.events.length-1];return i&&"listItemIndent"===i[1].type&&i[2].sliceSerialize(i[1],!0).length===n.containerState.size?t(e):r(e)},"listItemIndent",n.containerState.size+1)}},ra={name:"setextUnderline",resolveTo:function(e,t){let r,n,i,a=e.length;for(;a--;)if("enter"===e[a][0]){if("content"===e[a][1].type){r=a;break}"paragraph"===e[a][1].type&&(n=a)}else"content"===e[a][1].type&&e.splice(a,1),i||"definition"!==e[a][1].type||(i=a);const o={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[n][1].type="setextHeadingText",i?(e.splice(n,0,["enter",o,t]),e.splice(i+1,0,["exit",e[r][1],t]),e[r][1].end={...e[i][1].end}):e[r][1]=o,e.push(["exit",o,t]),e},tokenize:function(e,t,r){const n=this;let i;return function(t){let o,s=n.events.length;for(;s--;)if("lineEnding"!==n.events[s][1].type&&"linePrefix"!==n.events[s][1].type&&"content"!==n.events[s][1].type){o="paragraph"===n.events[s][1].type;break}return n.parser.lazy[n.now().line]||!n.interrupt&&!o?r(t):(e.enter("setextHeadingLine"),i=t,function(t){return e.enter("setextHeadingLineSequence"),a(t)}(t))};function a(t){return t===i?(e.consume(t),a):(e.exit("setextHeadingLineSequence"),ri(t)?si(e,o,"lineSuffix")(t):o(t))}function o(n){return null===n||ei(n)?(e.exit("setextHeadingLine"),t(n)):r(n)}}},na={tokenize:function(e){const t=this,r=e.attempt(mi,function(n){if(null!==n)return e.enter("lineEndingBlank"),e.consume(n),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r;e.consume(n)},e.attempt(this.parser.constructs.flowInitial,n,si(e,e.attempt(this.parser.constructs.flow,n,e.attempt(Ei,n)),"linePrefix")));return r;function n(n){if(null!==n)return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),t.currentConstruct=void 0,r;e.consume(n)}}},ia={resolveAll:la()},aa=sa("string"),oa=sa("text");function sa(e){return{resolveAll:la("text"===e?ca:void 0),tokenize:function(t){const r=this,n=this.parser.constructs[e],i=t.attempt(n,a,o);return a;function a(e){return l(e)?i(e):o(e)}function o(e){if(null!==e)return t.enter("data"),t.consume(e),s;t.consume(e)}function s(e){return l(e)?(t.exit("data"),i(e)):(t.consume(e),s)}function l(e){if(null===e)return!0;const t=n[e];let i=-1;if(t)for(;++i<t.length;){const e=t[i];if(!e.previous||e.previous.call(r,r.previous))return!0}return!1}}}}function la(e){return function(t,r){let n,i=-1;for(;++i<=t.length;)void 0===n?t[i]&&"data"===t[i][1].type&&(n=i,i++):t[i]&&"data"===t[i][1].type||(i!==n+2&&(t[n][1].end=t[i-1][1].end,t.splice(n+2,i-n-2),i=n+2),n=void 0);return e?e(t,r):t}}function ca(e,t){let r=0;for(;++r<=e.length;)if((r===e.length||"lineEnding"===e[r][1].type)&&"data"===e[r-1][1].type){const n=e[r-1][1],i=t.sliceStream(n);let a,o=i.length,s=-1,l=0;for(;o--;){const e=i[o];if("string"==typeof e){for(s=e.length;32===e.charCodeAt(s-1);)l++,s--;if(s)break;s=-1}else if(-2===e)a=!0,l++;else if(-1!==e){o++;break}}if(t._contentTypeTextTrailing&&r===e.length&&(l=0),l){const i={type:r===e.length||a||l<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?s:n.start._bufferIndex+s,_index:n.start._index+o,line:n.end.line,column:n.end.column-l,offset:n.end.offset-l},end:{...n.end}};n.end={...i.start},n.start.offset===n.end.offset?Object.assign(n,i):(e.splice(r,0,["enter",i,t],["exit",i,t]),r+=2)}r++}return e}const ua={42:$i,43:$i,45:$i,48:$i,49:$i,50:$i,51:$i,52:$i,53:$i,54:$i,55:$i,56:$i,57:$i,62:Vi},da={91:Ki},pa={[-2]:Si,[-1]:Si,32:Si},ha={35:Ii,42:_i,45:[ra,_i],60:Di,61:ra,95:_i,96:yi,126:yi},qa={38:vi,92:gi},fa={[-5]:Ji,[-4]:Ji,[-3]:Ji,33:Yi,38:vi,42:hi,60:[fi,Mi],91:Qi,92:[Pi,gi],93:zi,95:hi,96:wi},ma={null:[hi,ia]},Va=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:da,disable:{null:[]},document:ua,flow:ha,flowInitial:pa,insideSpan:ma,string:qa,text:fa},Symbol.toStringTag,{value:"Module"}));function ga(e,t,r){let n={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0};const i={},a=[];let o=[],s=[];const l={attempt:f(function(e,t){m(e,t.from)}),check:f(q),consume:function(e){ei(e)?(n.line++,n.column=1,n.offset+=-3===e?2:1,V()):-1!==e&&(n.column++,n.offset++),n._bufferIndex<0?n._index++:(n._bufferIndex++,n._bufferIndex===o[n._index].length&&(n._bufferIndex=-1,n._index++)),c.previous=e},enter:function(e,t){const r=t||{};return r.type=e,r.start=p(),c.events.push(["enter",r,c]),s.push(r),r},exit:function(e){const t=s.pop();return t.end=p(),c.events.push(["exit",t,c]),t},interrupt:f(q,{interrupt:!0})},c={code:null,containerState:{},defineSkip:function(e){i[e.line]=e.column,V()},events:[],now:p,parser:e,previous:null,sliceSerialize:function(e,t){return function(e,t){let r=-1;const n=[];let i;for(;++r<e.length;){const a=e[r];let o;if("string"==typeof a)o=a;else switch(a){case-5:o="\r";break;case-4:o="\n";break;case-3:o="\r\n";break;case-2:o=t?" ":"\t";break;case-1:if(!t&&i)continue;o=" ";break;default:o=String.fromCharCode(a)}i=-2===a,n.push(o)}return n.join("")}(d(e),t)},sliceStream:d,write:function(e){return o=Bn(o,e),function(){let e;for(;n._index<o.length;){const t=o[n._index];if("string"==typeof t)for(e=n._index,n._bufferIndex<0&&(n._bufferIndex=0);n._index===e&&n._bufferIndex<t.length;)h(t.charCodeAt(n._bufferIndex));else h(t)}}(),null!==o[o.length-1]?[]:(m(t,0),c.events=pi(a,c.events,c),c.events)}};let u=t.tokenize.call(c,l);return t.resolveAll&&a.push(t),c;function d(e){return function(e,t){const r=t.start._index,n=t.start._bufferIndex,i=t.end._index,a=t.end._bufferIndex;let o;if(r===i)o=[e[r].slice(n,a)];else{if(o=e.slice(r,i),n>-1){const e=o[0];"string"==typeof e?o[0]=e.slice(n):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}(o,e)}function p(){const{_bufferIndex:e,_index:t,line:r,column:i,offset:a}=n;return{_bufferIndex:e,_index:t,line:r,column:i,offset:a}}function h(e){u=u(e)}function q(e,t){t.restore()}function f(e,t){return function(r,i,a){let o,u,d,h;return Array.isArray(r)?f(r):"tokenize"in r?f([r]):(q=r,function(e){const t=null!==e&&q[e],r=null!==e&&q.null;return f([...Array.isArray(t)?t:t?[t]:[],...Array.isArray(r)?r:r?[r]:[]])(e)});var q;function f(e){return o=e,u=0,0===e.length?a:m(e[u])}function m(e){return function(r){return h=function(){const e=p(),t=c.previous,r=c.currentConstruct,i=c.events.length,a=Array.from(s);return{from:i,restore:function(){n=e,c.previous=t,c.currentConstruct=r,c.events.length=i,s=a,V()}}}(),d=e,e.partial||(c.currentConstruct=e),e.name&&c.parser.constructs.disable.null.includes(e.name)?v():e.tokenize.call(t?Object.assign(Object.create(c),t):c,l,g,v)(r)}}function g(t){return e(d,h),i}function v(e){return h.restore(),++u<o.length?m(o[u]):a}}}function m(e,t){e.resolveAll&&!a.includes(e)&&a.push(e),e.resolve&&Ln(c.events,t,c.events.length-t,e.resolve(c.events.slice(t),c)),e.resolveTo&&(c.events=e.resolveTo(c.events,c))}function V(){n.line in i&&n.column<2&&(n.column=i[n.line],n.offset+=i[n.line]-1)}}const va=/[\0\t\n\r]/g,ba=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function ya(e,t,r){if(t)return t;if(35===r.charCodeAt(0)){const e=r.charCodeAt(1),t=120===e||88===e;return zn(r.slice(t?2:1),t?16:10)}return In(r)||e}const Sa={}.hasOwnProperty;function Aa(e,t,r){return"string"!=typeof t&&(r=t,t=void 0),function(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:i(g),autolinkProtocol:u,autolinkEmail:u,atxHeading:i(f),blockQuote:i(function(){return{type:"blockquote",children:[]}}),characterEscape:u,characterReference:u,codeFenced:i(q),codeFencedFenceInfo:a,codeFencedFenceMeta:a,codeIndented:i(q,a),codeText:i(function(){return{type:"inlineCode",value:""}},a),codeTextData:u,data:u,codeFlowValue:u,definition:i(function(){return{type:"definition",identifier:"",label:null,title:null,url:""}}),definitionDestinationString:a,definitionLabelString:a,definitionTitleString:a,emphasis:i(function(){return{type:"emphasis",children:[]}}),hardBreakEscape:i(m),hardBreakTrailing:i(m),htmlFlow:i(V,a),htmlFlowData:u,htmlText:i(V,a),htmlTextData:u,image:i(function(){return{type:"image",title:null,url:"",alt:null}}),label:a,link:i(g),listItem:i(function(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}),listItemValue:function(e){this.data.expectingFirstListItemValue&&(this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0)},listOrdered:i(v,function(){this.data.expectingFirstListItemValue=!0}),listUnordered:i(v),paragraph:i(function(){return{type:"paragraph",children:[]}}),reference:function(){this.data.referenceType="collapsed"},referenceString:a,resourceDestinationString:a,resourceTitleString:a,setextHeading:i(f),strong:i(function(){return{type:"strong",children:[]}}),thematicBreak:i(function(){return{type:"thematicBreak"}})},exit:{atxHeading:s(),atxHeadingSequence:function(e){const t=this.stack[this.stack.length-1];if(!t.depth){const r=this.sliceSerialize(e).length;t.depth=r}},autolink:s(),autolinkEmail:function(e){d.call(this,e),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)},autolinkProtocol:function(e){d.call(this,e),this.stack[this.stack.length-1].url=this.sliceSerialize(e)},blockQuote:s(),characterEscapeValue:d,characterReferenceMarkerHexadecimal:h,characterReferenceMarkerNumeric:h,characterReferenceValue:function(e){const t=this.sliceSerialize(e),r=this.data.characterReferenceType;let n;r?(n=zn(t,"characterReferenceMarkerNumeric"===r?10:16),this.data.characterReferenceType=void 0):n=In(t);this.stack[this.stack.length-1].value+=n},characterReference:function(e){this.stack.pop().position.end=wa(e.end)},codeFenced:s(function(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}),codeFencedFence:function(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)},codeFencedFenceInfo:function(){const e=this.resume();this.stack[this.stack.length-1].lang=e},codeFencedFenceMeta:function(){const e=this.resume();this.stack[this.stack.length-1].meta=e},codeFlowValue:d,codeIndented:s(function(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}),codeText:s(function(){const e=this.resume();this.stack[this.stack.length-1].value=e}),codeTextData:d,data:d,definition:s(),definitionDestinationString:function(){const e=this.resume();this.stack[this.stack.length-1].url=e},definitionLabelString:function(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.label=t,r.identifier=Gn(this.sliceSerialize(e)).toLowerCase()},definitionTitleString:function(){const e=this.resume();this.stack[this.stack.length-1].title=e},emphasis:s(),hardBreakEscape:s(p),hardBreakTrailing:s(p),htmlFlow:s(function(){const e=this.resume();this.stack[this.stack.length-1].value=e}),htmlFlowData:d,htmlText:s(function(){const e=this.resume();this.stack[this.stack.length-1].value=e}),htmlTextData:d,image:s(function(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),label:function(){const e=this.stack[this.stack.length-1],t=this.resume(),r=this.stack[this.stack.length-1];if(this.data.inReference=!0,"link"===r.type){const t=e.children;r.children=t}else r.alt=t},labelText:function(e){const t=this.sliceSerialize(e),r=this.stack[this.stack.length-2];r.label=function(e){return e.replace(ba,ya)}(t),r.identifier=Gn(t).toLowerCase()},lineEnding:function(e){const r=this.stack[this.stack.length-1];if(this.data.atHardBreak)return r.children[r.children.length-1].position.end=wa(e.end),void(this.data.atHardBreak=void 0);!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(r.type)&&(u.call(this,e),d.call(this,e))},link:s(function(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),listItem:s(),listOrdered:s(),listUnordered:s(),paragraph:s(),referenceString:function(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.label=t,r.identifier=Gn(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"},resourceDestinationString:function(){const e=this.resume();this.stack[this.stack.length-1].url=e},resourceTitleString:function(){const e=this.resume();this.stack[this.stack.length-1].title=e},resource:function(){this.data.inReference=void 0},setextHeading:s(function(){this.data.setextHeadingSlurpLineEnding=void 0}),setextHeadingLineSequence:function(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2},setextHeadingText:function(){this.data.setextHeadingSlurpLineEnding=!0},strong:s(),thematicBreak:s()}};Ua(t,(e||{}).mdastExtensions||[]);const r={};return function(e){let i={type:"root",children:[]};const s={stack:[i],tokenStack:[],config:t,enter:o,exit:l,buffer:a,resume:c,data:r},u=[];let d=-1;for(;++d<e.length;)"listOrdered"!==e[d][1].type&&"listUnordered"!==e[d][1].type||("enter"===e[d][0]?u.push(d):d=n(e,u.pop(),d));for(d=-1;++d<e.length;){const r=t[e[d][0]];Sa.call(r,e[d][1].type)&&r[e[d][1].type].call(Object.assign({sliceSerialize:e[d][2].sliceSerialize},s),e[d][1])}if(s.tokenStack.length>0){const e=s.tokenStack[s.tokenStack.length-1];(e[1]||Ca).call(s,void 0,e[0])}for(i.position={start:wa(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:wa(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},d=-1;++d<t.transforms.length;)i=t.transforms[d](i)||i;return i};function n(e,t,r){let n,i,a,o,s=t-1,l=-1,c=!1;for(;++s<=r;){const t=e[s];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?l++:l--,o=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(!n||o||l||a||(a=s),o=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:o=void 0}if(!l&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===l&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(n){let o=s;for(i=void 0;o--;){const t=e[o];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;i&&(e[i][1].type="lineEndingBlank",c=!0),t[1].type="lineEnding",i=o}else if("linePrefix"!==t[1].type&&"blockQuotePrefix"!==t[1].type&&"blockQuotePrefixWhitespace"!==t[1].type&&"blockQuoteMarker"!==t[1].type&&"listItemIndent"!==t[1].type)break}a&&(!i||a<i)&&(n._spread=!0),n.end=Object.assign({},i?e[i][1].start:t[1].end),e.splice(i||s,0,["exit",n,t[2]]),s++,r++}if("listItemPrefix"===t[1].type){const i={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0};n=i,e.splice(s,0,["enter",i,t[2]]),s++,r++,a=void 0,o=!0}}}return e[t][1]._spread=c,r}function i(e,t){return function(r){o.call(this,e(r),r),t&&t.call(this,r)}}function a(){this.stack.push({type:"fragment",children:[]})}function o(e,t,r){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,r||void 0]),e.position={start:wa(t.start),end:void 0}}function s(e){return function(t){e&&e.call(this,t),l.call(this,t)}}function l(e,t){const r=this.stack.pop(),n=this.tokenStack.pop();if(!n)throw new Error("Cannot close `"+e.type+"` ("+pn({start:e.start,end:e.end})+"): it’s not open");n[0].type!==e.type&&(t?t.call(this,e,n[0]):(n[1]||Ca).call(this,e,n[0])),r.position.end=wa(e.end)}function c(){return Nn(this.stack.pop())}function u(e){const t=this.stack[this.stack.length-1].children;let r=t[t.length-1];r&&"text"===r.type||(r={type:"text",value:""},r.position={start:wa(e.start),end:void 0},t.push(r)),this.stack.push(r)}function d(e){const t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=wa(e.end)}function p(){this.data.atHardBreak=!0}function h(e){this.data.characterReferenceType=e.type}function q(){return{type:"code",lang:null,meta:null,value:""}}function f(){return{type:"heading",depth:0,children:[]}}function m(){return{type:"break"}}function V(){return{type:"html",value:""}}function g(){return{type:"link",title:null,url:"",children:[]}}function v(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}}(r)(function(e){for(;!Ci(e););return e}(function(e){const t={constructs:Xn([Va,...(e||{}).extensions||[]]),content:r(li),defined:[],document:r(ci),flow:r(na),lazy:{},string:r(aa),text:r(oa)};return t;function r(e){return function(r){return ga(t,e,r)}}}(r).document().write(function(){let e,t=1,r="",n=!0;return function(i,a,o){const s=[];let l,c,u,d,p;for(i=r+("string"==typeof i?i.toString():new TextDecoder(a||void 0).decode(i)),u=0,r="",n&&(65279===i.charCodeAt(0)&&u++,n=void 0);u<i.length;){if(va.lastIndex=u,l=va.exec(i),d=l&&void 0!==l.index?l.index:i.length,p=i.charCodeAt(d),!l){r=i.slice(u);break}if(10===p&&u===d&&e)s.push(-3),e=void 0;else switch(e&&(s.push(-5),e=void 0),u<d&&(s.push(i.slice(u,d)),t+=d-u),p){case 0:s.push(65533),t++;break;case 9:for(c=4*Math.ceil(t/4),s.push(-2);t++<c;)s.push(-1);break;case 10:s.push(-4),t=1;break;default:e=!0,t=1}u=d+1}return o&&(e&&s.push(-5),r&&s.push(r),s.push(null)),s}}()(e,t,!0))))}function wa(e){return{line:e.line,column:e.column,offset:e.offset}}function Ua(e,t){let r=-1;for(;++r<t.length;){const n=t[r];Array.isArray(n)?Ua(e,n):xa(e,n)}}function xa(e,t){let r;for(r in t)if(Sa.call(t,r))switch(r){case"canContainEols":{const n=t[r];n&&e[r].push(...n);break}case"transforms":{const n=t[r];n&&e[r].push(...n);break}case"enter":case"exit":{const n=t[r];n&&Object.assign(e[r],n);break}}}function Ca(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+pn({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+pn({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+pn({start:t.start,end:t.end})+") is still open")}function Ra(e){const t=this;t.parser=function(r){return Aa(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function Ea(e,t){const r=t.referenceType;let n="]";if("collapsed"===r?n+="[]":"full"===r&&(n+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+n}];const i=e.all(t),a=i[0];a&&"text"===a.type?a.value="["+a.value:i.unshift({type:"text",value:"["});const o=i[i.length-1];return o&&"text"===o.type?o.value+=n:i.push({type:"text",value:n}),i}function Ta(e){const t=e.spread;return null==t?e.children.length>1:t}function ka(e){const t=String(e),r=/\r?\n|\r/g;let n=r.exec(t),i=0;const a=[];for(;n;)a.push(Fa(t.slice(i,n.index),i>0,!0),n[0]),i=n.index+n[0].length,n=r.exec(t);return a.push(Fa(t.slice(i),i>0,!1)),a.join("")}function Fa(e,t,r){let n=0,i=e.length;if(t){let t=e.codePointAt(n);for(;9===t||32===t;)n++,t=e.codePointAt(n)}if(r){let t=e.codePointAt(i-1);for(;9===t||32===t;)i--,t=e.codePointAt(i-1)}return i>n?e.slice(n,i):""}const Wa={blockquote:function(e,t){const r={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,r),e.applyData(t,r)},break:function(e,t){const r={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,r),[e.applyData(t,r),{type:"text",value:"\n"}]},code:function(e,t){const r=t.value?t.value+"\n":"",n={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(n.className=["language-"+i[0]]);let a={type:"element",tagName:"code",properties:n,children:[{type:"text",value:r}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:"element",tagName:"pre",properties:{},children:[a]},e.patch(t,a),a},delete:function(e,t){const r={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},emphasis:function(e,t){const r={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},footnoteReference:function(e,t){const r="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",n=String(t.identifier).toUpperCase(),i=oi(n.toLowerCase()),a=e.footnoteOrder.indexOf(n);let o,s=e.footnoteCounts.get(n);void 0===s?(s=0,e.footnoteOrder.push(n),o=e.footnoteOrder.length):o=a+1,s+=1,e.footnoteCounts.set(n,s);const l={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+i,id:r+"fnref-"+i+(s>1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(t,l);const c={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,c),e.applyData(t,c)},heading:function(e,t){const r={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},html:function(e,t){if(e.options.allowDangerousHtml){const r={type:"raw",value:t.value};return e.patch(t,r),e.applyData(t,r)}},imageReference:function(e,t){const r=String(t.identifier).toUpperCase(),n=e.definitionById.get(r);if(!n)return Ea(e,t);const i={src:oi(n.url||""),alt:t.alt};null!==n.title&&void 0!==n.title&&(i.title=n.title);const a={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)},image:function(e,t){const r={src:oi(t.url)};null!==t.alt&&void 0!==t.alt&&(r.alt=t.alt),null!==t.title&&void 0!==t.title&&(r.title=t.title);const n={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,n),e.applyData(t,n)},inlineCode:function(e,t){const r={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,r);const n={type:"element",tagName:"code",properties:{},children:[r]};return e.patch(t,n),e.applyData(t,n)},linkReference:function(e,t){const r=String(t.identifier).toUpperCase(),n=e.definitionById.get(r);if(!n)return Ea(e,t);const i={href:oi(n.url||"")};null!==n.title&&void 0!==n.title&&(i.title=n.title);const a={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)},link:function(e,t){const r={href:oi(t.url)};null!==t.title&&void 0!==t.title&&(r.title=t.title);const n={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},listItem:function(e,t,r){const n=e.all(t),i=r?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;const r=e.children;let n=-1;for(;!t&&++n<r.length;)t=Ta(r[n])}return t}(r):Ta(t),a={},o=[];if("boolean"==typeof t.checked){const e=n[0];let r;e&&"element"===e.type&&"p"===e.tagName?r=e:(r={type:"element",tagName:"p",properties:{},children:[]},n.unshift(r)),r.children.length>0&&r.children.unshift({type:"text",value:" "}),r.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let s=-1;for(;++s<n.length;){const e=n[s];(i||0!==s||"element"!==e.type||"p"!==e.tagName)&&o.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||i?o.push(e):o.push(...e.children)}const l=n[n.length-1];l&&(i||"element"!==l.type||"p"!==l.tagName)&&o.push({type:"text",value:"\n"});const c={type:"element",tagName:"li",properties:a,children:o};return e.patch(t,c),e.applyData(t,c)},list:function(e,t){const r={},n=e.all(t);let i=-1;for("number"==typeof t.start&&1!==t.start&&(r.start=t.start);++i<n.length;){const e=n[i];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}const a={type:"element",tagName:t.ordered?"ol":"ul",properties:r,children:e.wrap(n,!0)};return e.patch(t,a),e.applyData(t,a)},paragraph:function(e,t){const r={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},root:function(e,t){const r={type:"root",children:e.wrap(e.all(t))};return e.patch(t,r),e.applyData(t,r)},strong:function(e,t){const r={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},table:function(e,t){const r=e.all(t),n=r.shift(),i=[];if(n){const r={type:"element",tagName:"thead",properties:{},children:e.wrap([n],!0)};e.patch(t.children[0],r),i.push(r)}if(r.length>0){const n={type:"element",tagName:"tbody",properties:{},children:e.wrap(r,!0)},a=un(t.children[1]),o=cn(t.children[t.children.length-1]);a&&o&&(n.position={start:a,end:o}),i.push(n)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)},tableCell:function(e,t){const r={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},tableRow:function(e,t,r){const n=r?r.children:void 0,i=0===(n?n.indexOf(t):1)?"th":"td",a=r&&"table"===r.type?r.align:void 0,o=a?a.length:t.children.length;let s=-1;const l=[];for(;++s<o;){const r=t.children[s],n={},o=a?a[s]:void 0;o&&(n.align=o);let c={type:"element",tagName:i,properties:n,children:[]};r&&(c.children=e.all(r),e.patch(r,c),c=e.applyData(r,c)),l.push(c)}const c={type:"element",tagName:"tr",properties:{},children:e.wrap(l,!0)};return e.patch(t,c),e.applyData(t,c)},text:function(e,t){const r={type:"text",value:ka(String(t.value))};return e.patch(t,r),e.applyData(t,r)},thematicBreak:function(e,t){const r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,r),e.applyData(t,r)},toml:Na,yaml:Na,definition:Na,footnoteDefinition:Na};function Na(){}const Ka="object"==typeof self?self:globalThis,Oa=e=>((e,t)=>{const r=(t,r)=>(e.set(r,t),t),n=i=>{if(e.has(i))return e.get(i);const[a,o]=t[i];switch(a){case 0:case-1:return r(o,i);case 1:{const e=r([],i);for(const t of o)e.push(n(t));return e}case 2:{const e=r({},i);for(const[t,r]of o)e[n(t)]=n(r);return e}case 3:return r(new Date(o),i);case 4:{const{source:e,flags:t}=o;return r(new RegExp(e,t),i)}case 5:{const e=r(new Map,i);for(const[t,r]of o)e.set(n(t),n(r));return e}case 6:{const e=r(new Set,i);for(const t of o)e.add(n(t));return e}case 7:{const{name:e,message:t}=o;return r(new Ka[e](t),i)}case 8:return r(BigInt(o),i);case"BigInt":return r(Object(BigInt(o)),i);case"ArrayBuffer":return r(new Uint8Array(o).buffer,o);case"DataView":{const{buffer:e}=new Uint8Array(o);return r(new DataView(e),o)}}return r(new Ka[a](o),i)};return n})(new Map,e)(0),Pa="",{toString:Ia}={},{keys:La}=Object,Ba=e=>{const t=typeof e;if("object"!==t||!e)return[0,t];const r=Ia.call(e).slice(8,-1);switch(r){case"Array":return[1,Pa];case"Object":return[2,Pa];case"Date":return[3,Pa];case"RegExp":return[4,Pa];case"Map":return[5,Pa];case"Set":return[6,Pa];case"DataView":return[1,r]}return r.includes("Array")?[1,r]:r.includes("Error")?[7,r]:[2,r]},Da=([e,t])=>0===e&&("function"===t||"symbol"===t),Xa=(e,{json:t,lossy:r}={})=>{const n=[];return((e,t,r,n)=>{const i=(e,t)=>{const i=n.push(e)-1;return r.set(t,i),i},a=n=>{if(r.has(n))return r.get(n);let[o,s]=Ba(n);switch(o){case 0:{let t=n;switch(s){case"bigint":o=8,t=n.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+s);t=null;break;case"undefined":return i([-1],n)}return i([o,t],n)}case 1:{if(s){let e=n;return"DataView"===s?e=new Uint8Array(n.buffer):"ArrayBuffer"===s&&(e=new Uint8Array(n)),i([s,[...e]],n)}const e=[],t=i([o,e],n);for(const r of n)e.push(a(r));return t}case 2:{if(s)switch(s){case"BigInt":return i([s,n.toString()],n);case"Boolean":case"Number":case"String":return i([s,n.valueOf()],n)}if(t&&"toJSON"in n)return a(n.toJSON());const r=[],l=i([o,r],n);for(const t of La(n))!e&&Da(Ba(n[t]))||r.push([a(t),a(n[t])]);return l}case 3:return i([o,n.toISOString()],n);case 4:{const{source:e,flags:t}=n;return i([o,{source:e,flags:t}],n)}case 5:{const t=[],r=i([o,t],n);for(const[i,o]of n)(e||!Da(Ba(i))&&!Da(Ba(o)))&&t.push([a(i),a(o)]);return r}case 6:{const t=[],r=i([o,t],n);for(const i of n)!e&&Da(Ba(i))||t.push(a(i));return r}}const{message:l}=n;return i([o,{name:s,message:l}],n)};return a})(!(t||r),!!t,new Map,n)(e),n},ja="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?Oa(Xa(e,t)):structuredClone(e):(e,t)=>Oa(Xa(e,t));function Ma(e,t){const r=[{type:"text",value:"↩"}];return t>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),r}function za(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}const Ga=function(e){if(null==e)return Ha;if("function"==typeof e)return Za(e);if("object"==typeof e)return Array.isArray(e)?function(e){const t=[];let r=-1;for(;++r<e.length;)t[r]=Ga(e[r]);return Za(function(...e){let r=-1;for(;++r<t.length;)if(t[r].apply(this,e))return!0;return!1})}(e):function(e){const t=e;return Za(function(r){const n=r;let i;for(i in e)if(n[i]!==t[i])return!1;return!0})}(e);if("string"==typeof e)return t=e,Za(function(e){return e&&e.type===t});var t;throw new Error("Expected function, string, or object as test")};function Za(e){return function(t,r,n){return Boolean(function(e){return null!==e&&"object"==typeof e&&"type"in e}(t)&&e.call(this,t,"number"==typeof r?r:void 0,n||void 0))}}function Ha(){return!0}const Ya=[],Qa=!1,Ja="skip";function _a(e,t,r,n){let i;"function"==typeof t&&"function"!=typeof r?(n=r,r=t):i=t;const a=Ga(i),o=n?-1:1;!function e(i,s,l){const c=i&&"object"==typeof i?i:{};if("string"==typeof c.type){const e="string"==typeof c.tagName?c.tagName:"string"==typeof c.name?c.name:void 0;Object.defineProperty(u,"name",{value:"node ("+i.type+(e?"<"+e+">":"")+")"})}return u;function u(){let c,u,d,p=Ya;if((!t||a(i,s,l[l.length-1]||void 0))&&(p=function(e){return Array.isArray(e)?e:"number"==typeof e?[true,e]:null==e?Ya:[e]}(r(i,l)),p[0]===Qa))return p;if("children"in i&&i.children){const t=i;if(t.children&&p[0]!==Ja)for(u=(n?t.children.length:-1)+o,d=l.concat(t);u>-1&&u<t.children.length;){const r=t.children[u];if(c=e(r,u,d)(),c[0]===Qa)return c;u="number"==typeof c[1]?c[1]:u+o}}return p}}(e,void 0,[])()}function $a(e,t,r,n){let i,a,o;"function"==typeof t&&"function"!=typeof r?(a=void 0,o=t,i=r):(a=t,o=r,i=n),_a(e,a,function(e,t){const r=t[t.length-1],n=r?r.children.indexOf(e):void 0;return o(e,n,r)},i)}const eo={}.hasOwnProperty,to={};function ro(e,t){e.position&&(t.position=function(e){const t=un(e),r=cn(e);if(t&&r)return{start:t,end:r}}(e))}function no(e,t){let r=t;if(e&&e.data){const t=e.data.hName,n=e.data.hChildren,i=e.data.hProperties;"string"==typeof t&&("element"===r.type?r.tagName=t:r={type:"element",tagName:t,properties:{},children:"children"in r?r.children:[r]}),"element"===r.type&&i&&Object.assign(r.properties,ja(i)),"children"in r&&r.children&&null!=n&&(r.children=n)}return r}function io(e,t){const r=t.data||{},n=!("value"in t)||eo.call(r,"hProperties")||eo.call(r,"hChildren")?{type:"element",tagName:"div",properties:{},children:e.all(t)}:{type:"text",value:t.value};return e.patch(t,n),e.applyData(t,n)}function ao(e,t){const r=[];let n=-1;for(t&&r.push({type:"text",value:"\n"});++n<e.length;)n&&r.push({type:"text",value:"\n"}),r.push(e[n]);return t&&e.length>0&&r.push({type:"text",value:"\n"}),r}function oo(e){let t=0,r=e.charCodeAt(t);for(;9===r||32===r;)t++,r=e.charCodeAt(t);return e.slice(t)}function so(e,t){const r=function(e,t){const r=t||to,n=new Map,i=new Map,a=new Map,o={...Wa,...r.handlers},s={all:function(e){const t=[];if("children"in e){const r=e.children;let n=-1;for(;++n<r.length;){const i=s.one(r[n],e);if(i){if(n&&"break"===r[n-1].type&&(Array.isArray(i)||"text"!==i.type||(i.value=oo(i.value)),!Array.isArray(i)&&"element"===i.type)){const e=i.children[0];e&&"text"===e.type&&(e.value=oo(e.value))}Array.isArray(i)?t.push(...i):t.push(i)}}}return t},applyData:no,definitionById:n,footnoteById:i,footnoteCounts:a,footnoteOrder:[],handlers:o,one:function(e,t){const r=e.type,n=s.handlers[r];if(eo.call(s.handlers,r)&&n)return n(s,e,t);if(s.options.passThrough&&s.options.passThrough.includes(r)){if("children"in e){const{children:t,...r}=e,n=ja(r);return n.children=s.all(e),n}return ja(e)}return(s.options.unknownHandler||io)(s,e,t)},options:r,patch:ro,wrap:ao};return $a(e,function(e){if("definition"===e.type||"footnoteDefinition"===e.type){const t="definition"===e.type?n:i,r=String(e.identifier).toUpperCase();t.has(r)||t.set(r,e)}}),s}(e,t),n=r.one(e,void 0),i=function(e){const t="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||Ma,n=e.options.footnoteBackLabel||za,i=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let l=-1;for(;++l<e.footnoteOrder.length;){const i=e.footnoteById.get(e.footnoteOrder[l]);if(!i)continue;const a=e.all(i),o=String(i.identifier).toUpperCase(),c=oi(o.toLowerCase());let u=0;const d=[],p=e.footnoteCounts.get(o);for(;void 0!==p&&++u<=p;){d.length>0&&d.push({type:"text",value:" "});let e="string"==typeof r?r:r(l,u);"string"==typeof e&&(e={type:"text",value:e}),d.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+c+(u>1?"-"+u:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof n?n:n(l,u),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}const h=a[a.length-1];if(h&&"element"===h.type&&"p"===h.tagName){const e=h.children[h.children.length-1];e&&"text"===e.type?e.value+=" ":h.children.push({type:"text",value:" "}),h.children.push(...d)}else a.push(...d);const q={type:"element",tagName:"li",properties:{id:t+"fn-"+c},children:e.wrap(a,!0)};e.patch(i,q),s.push(q)}if(0!==s.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...ja(o),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:"\n"}]}}(r),a=Array.isArray(n)?{type:"root",children:n}:n||{type:"root",children:[]};return i&&a.children.push({type:"text",value:"\n"},i),a}function lo(e,t){return e&&"run"in e?async function(r,n){const i=so(r,{file:n,...t});await e.run(i,n)}:function(r,n){return so(r,{file:n,...e||t})}}function co(e){if(e)throw e}var uo=Object.prototype.hasOwnProperty,po=Object.prototype.toString,ho=Object.defineProperty,qo=Object.getOwnPropertyDescriptor,fo=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===po.call(e)},mo=function(e){if(!e||"[object Object]"!==po.call(e))return!1;var t,r=uo.call(e,"constructor"),n=e.constructor&&e.constructor.prototype&&uo.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!r&&!n)return!1;for(t in e);return void 0===t||uo.call(e,t)},Vo=function(e,t){ho&&"__proto__"===t.name?ho(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},go=function(e,t){if("__proto__"===t){if(!uo.call(e,t))return;if(qo)return qo(e,t).value}return e[t]},vo=function e(){var t,r,n,i,a,o,s=arguments[0],l=1,c=arguments.length,u=!1;for("boolean"==typeof s&&(u=s,s=arguments[1]||{},l=2),(null==s||"object"!=typeof s&&"function"!=typeof s)&&(s={});l<c;++l)if(null!=(t=arguments[l]))for(r in t)n=go(s,r),s!==(i=go(t,r))&&(u&&i&&(mo(i)||(a=fo(i)))?(a?(a=!1,o=n&&fo(n)?n:[]):o=n&&mo(n)?n:{},Vo(s,{name:r,newValue:e(u,o,i)})):void 0!==i&&Vo(s,{name:r,newValue:i}));return s};const bo=f(vo);function yo(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}const So=function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');Co(e);let r,n=0,i=-1,a=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;a--;)if(47===e.codePointAt(a)){if(r){n=a+1;break}}else i<0&&(r=!0,i=a+1);return i<0?"":e.slice(n,i)}if(t===e)return"";let o=-1,s=t.length-1;for(;a--;)if(47===e.codePointAt(a)){if(r){n=a+1;break}}else o<0&&(r=!0,o=a+1),s>-1&&(e.codePointAt(a)===t.codePointAt(s--)?s<0&&(i=a):(s=-1,i=o));return n===i?i=o:i<0&&(i=e.length),e.slice(n,i)},Ao=function(e){if(Co(e),0===e.length)return".";let t,r=-1,n=e.length;for(;--n;)if(47===e.codePointAt(n)){if(t){r=n;break}}else t||(t=!0);return r<0?47===e.codePointAt(0)?"/":".":1===r&&47===e.codePointAt(0)?"//":e.slice(0,r)},wo=function(e){Co(e);let t,r=e.length,n=-1,i=0,a=-1,o=0;for(;r--;){const s=e.codePointAt(r);if(47!==s)n<0&&(t=!0,n=r+1),46===s?a<0?a=r:1!==o&&(o=1):a>-1&&(o=-1);else if(t){i=r+1;break}}return a<0||n<0||0===o||1===o&&a===n-1&&a===i+1?"":e.slice(a,n)},Uo=function(...e){let t,r=-1;for(;++r<e.length;)Co(e[r]),e[r]&&(t=void 0===t?e[r]:t+"/"+e[r]);return void 0===t?".":function(e){Co(e);const t=47===e.codePointAt(0);let r=function(e,t){let r,n,i="",a=0,o=-1,s=0,l=-1;for(;++l<=e.length;){if(l<e.length)r=e.codePointAt(l);else{if(47===r)break;r=47}if(47===r){if(o===l-1||1===s);else if(o!==l-1&&2===s){if(i.length<2||2!==a||46!==i.codePointAt(i.length-1)||46!==i.codePointAt(i.length-2))if(i.length>2){if(n=i.lastIndexOf("/"),n!==i.length-1){n<0?(i="",a=0):(i=i.slice(0,n),a=i.length-1-i.lastIndexOf("/")),o=l,s=0;continue}}else if(i.length>0){i="",a=0,o=l,s=0;continue}t&&(i=i.length>0?i+"/..":"..",a=2)}else i.length>0?i+="/"+e.slice(o+1,l):i=e.slice(o+1,l),a=l-o-1;o=l,s=0}else 46===r&&s>-1?s++:s=-1}return i}(e,!t);return 0!==r.length||t||(r="."),r.length>0&&47===e.codePointAt(e.length-1)&&(r+="/"),t?"/"+r:r}(t)},xo="/";function Co(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Ro=function(){return"/"};function Eo(e){return Boolean(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}const To=["history","path","basename","stem","extname","dirname"];class ko{constructor(e){let t;t=e?Eo(e)?{path:e}:"string"==typeof e||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)?{value:e}:e:{},this.cwd="cwd"in t?"":Ro(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r,n=-1;for(;++n<To.length;){const e=To[n];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(r in t)To.includes(r)||(this[r]=t[r])}get basename(){return"string"==typeof this.path?So(this.path):void 0}set basename(e){Wo(e,"basename"),Fo(e,"basename"),this.path=Uo(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?Ao(this.path):void 0}set dirname(e){No(this.basename,"dirname"),this.path=Uo(e||"",this.basename)}get extname(){return"string"==typeof this.path?wo(this.path):void 0}set extname(e){if(Fo(e,"extname"),No(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Uo(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){Eo(e)&&(e=function(e){if("string"==typeof e)e=new URL(e);else if(!Eo(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){const e=new TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}const t=e.pathname;let r=-1;for(;++r<t.length;)if(37===t.codePointAt(r)&&50===t.codePointAt(r+1)){const e=t.codePointAt(r+2);if(70===e||102===e){const e=new TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}(e)),Wo(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?So(this.path,this.extname):void 0}set stem(e){Wo(e,"stem"),Fo(e,"stem"),this.path=Uo(this.dirname||"",e+(this.extname||""))}fail(e,t,r){const n=this.message(e,t,r);throw n.fatal=!0,n}info(e,t,r){const n=this.message(e,t,r);return n.fatal=void 0,n}message(e,t,r){const n=new mn(e,t,r);return this.path&&(n.name=this.path+":"+n.name,n.file=this.path),n.fatal=!1,this.messages.push(n),n}toString(e){return void 0===this.value?"":"string"==typeof this.value?this.value:new TextDecoder(e||void 0).decode(this.value)}}function Fo(e,t){if(e&&e.includes(xo))throw new Error("`"+t+"` cannot be a path: did not expect `"+xo+"`")}function Wo(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function No(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}const Ko=function(e){const t=this.constructor.prototype,r=t[e],n=function(){return r.apply(n,arguments)};return Object.setPrototypeOf(n,t),n},Oo={}.hasOwnProperty;class Po extends Ko{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=function(){const e=[],t={run:function(...t){let r=-1;const n=t.pop();if("function"!=typeof n)throw new TypeError("Expected function as last argument, not "+n);!function i(a,...o){const s=e[++r];let l=-1;if(a)n(a);else{for(;++l<t.length;)null!==o[l]&&void 0!==o[l]||(o[l]=t[l]);t=o,s?function(e,t){let r;return function(...t){const o=e.length>t.length;let s;o&&t.push(n);try{s=e.apply(this,t)}catch(a){if(o&&r)throw a;return n(a)}o||(s&&s.then&&"function"==typeof s.then?s.then(i,n):s instanceof Error?n(s):i(s))};function n(e,...n){r||(r=!0,t(e,...n))}function i(e){n(null,e)}}(s,i)(...o):n(null,...o)}}(null,...t)},use:function(r){if("function"!=typeof r)throw new TypeError("Expected `middelware` to be a function, not "+r);return e.push(r),t}};return t}()}copy(){const e=new Po;let t=-1;for(;++t<this.attachers.length;){const r=this.attachers[t];e.use(...r)}return e.data(bo(!0,{},this.namespace)),e}data(e,t){return"string"==typeof e?2===arguments.length?(Do("data",this.frozen),this.namespace[e]=t,this):Oo.call(this.namespace,e)&&this.namespace[e]||void 0:e?(Do("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;const e=this;for(;++this.freezeIndex<this.attachers.length;){const[t,...r]=this.attachers[this.freezeIndex];if(!1===r[0])continue;!0===r[0]&&(r[0]=void 0);const n=t.call(e,...r);"function"==typeof n&&this.transformers.use(n)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();const t=Mo(e),r=this.parser||this.Parser;return Lo("parse",r),r(String(t),t)}process(e,t){const r=this;return this.freeze(),Lo("process",this.parser||this.Parser),Bo("process",this.compiler||this.Compiler),t?n(void 0,t):new Promise(n);function n(n,i){const a=Mo(e),o=r.parse(a);function s(e,r){e||!r?i(e):n?n(r):t(void 0,r)}r.run(o,a,function(e,t,n){if(e||!t||!n)return s(e);const i=t,a=r.stringify(i,n);var o;"string"==typeof(o=a)||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(o)?n.value=a:n.result=a,s(e,n)})}}processSync(e){let t,r=!1;return this.freeze(),Lo("processSync",this.parser||this.Parser),Bo("processSync",this.compiler||this.Compiler),this.process(e,function(e,n){r=!0,co(e),t=n}),jo("processSync","process",r),t}run(e,t,r){Xo(e),this.freeze();const n=this.transformers;return r||"function"!=typeof t||(r=t,t=void 0),r?i(void 0,r):new Promise(i);function i(i,a){const o=Mo(t);n.run(e,o,function(t,n,o){const s=n||e;t?a(t):i?i(s):r(void 0,s,o)})}}runSync(e,t){let r,n=!1;return this.run(e,t,function(e,t){co(e),r=t,n=!0}),jo("runSync","run",n),r}stringify(e,t){this.freeze();const r=Mo(t),n=this.compiler||this.Compiler;return Bo("stringify",n),Xo(e),n(e,r)}use(e,...t){const r=this.attachers,n=this.namespace;if(Do("use",this.frozen),null==e);else if("function"==typeof e)s(e,t);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");Array.isArray(e)?o(e):a(e)}return this;function i(e){if("function"==typeof e)s(e,[]);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");if(Array.isArray(e)){const[t,...r]=e;s(t,r)}else a(e)}}function a(e){if(!("plugins"in e)&&!("settings"in e))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");o(e.plugins),e.settings&&(n.settings=bo(!0,n.settings,e.settings))}function o(e){let t=-1;if(null==e);else{if(!Array.isArray(e))throw new TypeError("Expected a list of plugins, not `"+e+"`");for(;++t<e.length;)i(e[t])}}function s(e,t){let n=-1,i=-1;for(;++n<r.length;)if(r[n][0]===e){i=n;break}if(-1===i)r.push([e,...t]);else if(t.length>0){let[n,...a]=t;const o=r[i][1];yo(o)&&yo(n)&&(n=bo(!0,o,n)),r[i]=[e,n,...a]}}}}const Io=(new Po).freeze();function Lo(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `parser`")}function Bo(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `compiler`")}function Do(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Xo(e){if(!yo(e)||"string"!=typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function jo(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Mo(e){return function(e){return Boolean(e&&"object"==typeof e&&"message"in e&&"messages"in e)}(e)?e:new ko(e)}const zo=[],Go={allowDangerousHtml:!0},Zo=/^(https?|ircs?|mailto|xmpp)$/i,Ho=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function Yo(e){const t=function(e){const t=e.rehypePlugins||zo,r=e.remarkPlugins||zo,n=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Go}:Go;return Io().use(Ra).use(r).use(lo,n).use(t)}(e),r=function(e){const t=e.children||"",r=new ko;return"string"==typeof t&&(r.value=t),r}(e);return function(e,t){const r=t.allowedElements,n=t.allowElement,i=t.components,a=t.disallowedElements,o=t.skipHtml,s=t.unwrapDisallowed,l=t.urlTransform||Qo;for(const c of Ho)Object.hasOwn(t,c.from)&&Zt((c.from,c.to&&c.to,c.id));return $a(e,function(e,t,i){if("raw"===e.type&&i&&"number"==typeof t)return o?i.children.splice(t,1):i.children[t]={type:"text",value:e.value},t;if("element"===e.type){let t;for(t in Fn)if(Object.hasOwn(Fn,t)&&Object.hasOwn(e.properties,t)){const r=e.properties[t],n=Fn[t];(null===n||n.includes(e.tagName))&&(e.properties[t]=l(String(r||""),t,e))}}if("element"===e.type){let o=r?!r.includes(e.tagName):!!a&&a.includes(e.tagName);if(!o&&n&&"number"==typeof t&&(o=!n(e,t,i)),o&&i&&"number"==typeof t)return s&&e.children?i.children.splice(t,1,...e.children):i.children.splice(t,1),t}}),function(e,t){if(!t||void 0===t.Fragment)throw new TypeError("Expected `Fragment` in options");const r=t.filePath||void 0;let n;if(t.development){if("function"!=typeof t.jsxDEV)throw new TypeError("Expected `jsxDEV` in options when `development: true`");n=function(e,t){return function(r,n,i,a){const o=Array.isArray(i.children),s=un(r);return t(n,i,a,o,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}(r,t.jsxDEV)}else{if("function"!=typeof t.jsx)throw new TypeError("Expected `jsx` in production options");if("function"!=typeof t.jsxs)throw new TypeError("Expected `jsxs` in production options");i=t.jsx,a=t.jsxs,n=function(e,t,r,n){const o=Array.isArray(r.children)?a:i;return n?o(t,r,n):o(t,r)}}var i,a;const o={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:n,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:r,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?Kr:Nr,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},s=An(o,e,void 0);return s&&"string"!=typeof s?s:o.create(e,o.Fragment,{children:s||void 0},void 0)}(e,{Fragment:S.Fragment,components:i,ignoreInvalidStyle:!0,jsx:S.jsx,jsxs:S.jsxs,passKeys:!0,passNode:!0})}(t.runSync(t.parse(r),r),e)}function Qo(e){const t=e.indexOf(":"),r=e.indexOf("?"),n=e.indexOf("#"),i=e.indexOf("/");return-1===t||-1!==i&&t>i||-1!==r&&t>r||-1!==n&&t>n||Zo.test(e.slice(0,t))?e:""}function Jo(e,t){const r=String(e);if("string"!=typeof t)throw new TypeError("Expected character");let n=0,i=r.indexOf(t);for(;-1!==i;)n++,i=r.indexOf(t,i+t.length);return n}function _o(e){return"string"==typeof e?new RegExp(function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(e),"g"):e}function $o(e){return"function"==typeof e?e:function(){return e}}const es="phrasing",ts=["autolink","link","image","label"];function rs(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function ns(e){this.config.enter.autolinkProtocol.call(this,e)}function is(e){this.config.exit.autolinkProtocol.call(this,e)}function as(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function os(e){this.config.exit.autolinkEmail.call(this,e)}function ss(e){this.exit(e)}function ls(e){!function(e,t,r){const n=Ga((r||{}).ignore||[]),i=function(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const r=!e[0]||Array.isArray(e[0])?e:[e];let n=-1;for(;++n<r.length;){const e=r[n];t.push([_o(e[0]),$o(e[1])])}return t}(t);let a=-1;for(;++a<i.length;)_a(e,"text",o);function o(e,t){let r,o=-1;for(;++o<t.length;){const e=t[o],i=r?r.children:void 0;if(n(e,i?i.indexOf(e):void 0,r))return;r=e}if(r)return function(e,t){const r=t[t.length-1],n=i[a][0],o=i[a][1];let s=0;const l=r.children.indexOf(e);let c=!1,u=[];n.lastIndex=0;let d=n.exec(e.value);for(;d;){const r=d.index,i={index:d.index,input:d.input,stack:[...t,e]};let a=o(...d,i);if("string"==typeof a&&(a=a.length>0?{type:"text",value:a}:void 0),!1===a?n.lastIndex=r+1:(s!==r&&u.push({type:"text",value:e.value.slice(s,r)}),Array.isArray(a)?u.push(...a):a&&u.push(a),s=r+d[0].length,c=!0),!n.global)break;d=n.exec(e.value)}return c?(s<e.value.length&&u.push({type:"text",value:e.value.slice(s)}),r.children.splice(l,1,...u)):u=[e],l+u.length}(e,t)}}(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,cs],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),us]],{ignore:["link","linkReference"]})}function cs(e,t,r,n,i){let a="";if(!ds(i))return!1;if(/^w/i.test(t)&&(r=t+r,t="",a="http://"),!function(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}(r))return!1;const o=function(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let r=t[0],n=r.indexOf(")");const i=Jo(e,"(");let a=Jo(e,")");for(;-1!==n&&i>a;)e+=r.slice(0,n+1),r=r.slice(n+1),n=r.indexOf(")"),a++;return[e,r]}(r+n);if(!o[0])return!1;const s={type:"link",title:null,url:a+t+o[0],children:[{type:"text",value:t+o[0]}]};return o[1]?[s,{type:"text",value:o[1]}]:s}function us(e,t,r,n){return!(!ds(n,!0)||/[-\d_]$/.test(r))&&{type:"link",title:null,url:"mailto:"+t+"@"+r,children:[{type:"text",value:t+"@"+r}]}}function ds(e,t){const r=e.input.charCodeAt(e.index-1);return(0===e.index||ii(r)||ni(r))&&(!t||47!==r)}function ps(){this.buffer()}function hs(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function qs(){this.buffer()}function fs(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function ms(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=Gn(this.sliceSerialize(e)).toLowerCase(),r.label=t}function Vs(e){this.exit(e)}function gs(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=Gn(this.sliceSerialize(e)).toLowerCase(),r.label=t}function vs(e){this.exit(e)}function bs(e,t,r,n){const i=r.createTracker(n);let a=i.move("[^");const o=r.enter("footnoteReference"),s=r.enter("reference");return a+=i.move(r.safe(r.associationId(e),{after:"]",before:a})),s(),o(),a+=i.move("]"),a}function ys(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:function(e,r,n,i){const a=n.createTracker(i);let o=a.move("[^");const s=n.enter("footnoteDefinition"),l=n.enter("label");return o+=a.move(n.safe(n.associationId(e),{before:o,after:"]"})),l(),o+=a.move("]:"),e.children&&e.children.length>0&&(a.shift(4),o+=a.move((t?"\n":" ")+n.indentLines(n.containerFlow(e,a.current()),t?As:Ss))),s(),o},footnoteReference:bs},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]}}function Ss(e,t,r){return 0===t?e:As(e,0,r)}function As(e,t,r){return(r?"":" ")+e}bs.peek=function(){return"["};const ws=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function Us(e){this.enter({type:"delete",children:[]},e)}function xs(e){this.exit(e)}function Cs(e,t,r,n){const i=r.createTracker(n),a=r.enter("strikethrough");let o=i.move("~~");return o+=r.containerPhrasing(e,{...i.current(),before:o,after:"~"}),o+=i.move("~~"),a(),o}function Rs(e){return e.length}function Es(e){return null==e?"":String(e)}function Ts(e){const t="string"==typeof e?e.codePointAt(0):0;return 67===t||99===t?99:76===t||108===t?108:82===t||114===t?114:0}function ks(e,t,r){return">"+(r?"":" ")+e}function Fs(e,t){return Ws(e,t.inConstruct,!0)&&!Ws(e,t.notInConstruct,!1)}function Ws(e,t,r){if("string"==typeof t&&(t=[t]),!t||0===t.length)return r;let n=-1;for(;++n<t.length;)if(e.includes(t[n]))return!0;return!1}function Ns(e,t,r,n){let i=-1;for(;++i<r.unsafe.length;)if("\n"===r.unsafe[i].character&&Fs(r.stack,r.unsafe[i]))return/[ \t]/.test(n.before)?"":" ";return"\\\n"}function Ks(e,t){const r=String(e);let n=r.indexOf(t),i=n,a=0,o=0;if("string"!=typeof t)throw new TypeError("Expected substring");for(;-1!==n;)n===i?++a>o&&(o=a):a=1,i=n+t.length,n=r.indexOf(t,i);return o}function Os(e,t,r){return(r?"":" ")+e}function Ps(e){const t=e.options.quote||'"';if('"'!==t&&"'"!==t)throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function Is(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Ls(e,t,r){const n=di(e),i=di(t);return void 0===n?void 0===i?"_"===r?{inside:!0,outside:!0}:{inside:!1,outside:!1}:1===i?{inside:!0,outside:!0}:{inside:!1,outside:!0}:1===n?void 0===i?{inside:!1,outside:!1}:1===i?{inside:!0,outside:!0}:{inside:!1,outside:!1}:void 0===i?{inside:!1,outside:!1}:1===i?{inside:!0,outside:!1}:{inside:!1,outside:!1}}function Bs(e,t,r,n){const i=function(e){const t=e.options.emphasis||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}(r),a=r.enter("emphasis"),o=r.createTracker(n),s=o.move(i);let l=o.move(r.containerPhrasing(e,{after:i,before:s,...o.current()}));const c=l.charCodeAt(0),u=Ls(n.before.charCodeAt(n.before.length-1),c,i);u.inside&&(l=Is(c)+l.slice(1));const d=l.charCodeAt(l.length-1),p=Ls(n.after.charCodeAt(0),d,i);p.inside&&(l=l.slice(0,-1)+Is(d));const h=o.move(i);return a(),r.attentionEncodeSurroundingInfo={after:p.outside,before:u.outside},s+l+h}function Ds(e){return e.value||""}function Xs(e,t,r,n){const i=Ps(r),a='"'===i?"Quote":"Apostrophe",o=r.enter("image");let s=r.enter("label");const l=r.createTracker(n);let c=l.move("![");return c+=l.move(r.safe(e.alt,{before:c,after:"]",...l.current()})),c+=l.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=r.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(r.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(s=r.enter("destinationRaw"),c+=l.move(r.safe(e.url,{before:c,after:e.title?" ":")",...l.current()}))),s(),e.title&&(s=r.enter(`title${a}`),c+=l.move(" "+i),c+=l.move(r.safe(e.title,{before:c,after:i,...l.current()})),c+=l.move(i),s()),c+=l.move(")"),o(),c}function js(e,t,r,n){const i=e.referenceType,a=r.enter("imageReference");let o=r.enter("label");const s=r.createTracker(n);let l=s.move("![");const c=r.safe(e.alt,{before:l,after:"]",...s.current()});l+=s.move(c+"]["),o();const u=r.stack;r.stack=[],o=r.enter("reference");const d=r.safe(r.associationId(e),{before:l,after:"]",...s.current()});return o(),r.stack=u,a(),"full"!==i&&c&&c===d?"shortcut"===i?l=l.slice(0,-1):l+=s.move("]"):l+=s.move(d+"]"),l}function Ms(e,t,r){let n=e.value||"",i="`",a=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(n);)i+="`";for(/[^ \r\n]/.test(n)&&(/^[ \r\n]/.test(n)&&/[ \r\n]$/.test(n)||/^`|`$/.test(n))&&(n=" "+n+" ");++a<r.unsafe.length;){const e=r.unsafe[a],t=r.compilePattern(e);let i;if(e.atBreak)for(;i=t.exec(n);){let e=i.index;10===n.charCodeAt(e)&&13===n.charCodeAt(e-1)&&e--,n=n.slice(0,e)+" "+n.slice(i.index+1)}}return i+n+i}function zs(e,t){const r=Nn(e);return Boolean(!t.options.resourceLink&&e.url&&!e.title&&e.children&&1===e.children.length&&"text"===e.children[0].type&&(r===e.url||"mailto:"+r===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}function Gs(e,t,r,n){const i=Ps(r),a='"'===i?"Quote":"Apostrophe",o=r.createTracker(n);let s,l;if(zs(e,r)){const t=r.stack;r.stack=[],s=r.enter("autolink");let n=o.move("<");return n+=o.move(r.containerPhrasing(e,{before:n,after:">",...o.current()})),n+=o.move(">"),s(),r.stack=t,n}s=r.enter("link"),l=r.enter("label");let c=o.move("[");return c+=o.move(r.containerPhrasing(e,{before:c,after:"](",...o.current()})),c+=o.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=r.enter("destinationLiteral"),c+=o.move("<"),c+=o.move(r.safe(e.url,{before:c,after:">",...o.current()})),c+=o.move(">")):(l=r.enter("destinationRaw"),c+=o.move(r.safe(e.url,{before:c,after:e.title?" ":")",...o.current()}))),l(),e.title&&(l=r.enter(`title${a}`),c+=o.move(" "+i),c+=o.move(r.safe(e.title,{before:c,after:i,...o.current()})),c+=o.move(i),l()),c+=o.move(")"),s(),c}function Zs(e,t,r,n){const i=e.referenceType,a=r.enter("linkReference");let o=r.enter("label");const s=r.createTracker(n);let l=s.move("[");const c=r.containerPhrasing(e,{before:l,after:"]",...s.current()});l+=s.move(c+"]["),o();const u=r.stack;r.stack=[],o=r.enter("reference");const d=r.safe(r.associationId(e),{before:l,after:"]",...s.current()});return o(),r.stack=u,a(),"full"!==i&&c&&c===d?"shortcut"===i?l=l.slice(0,-1):l+=s.move("]"):l+=s.move(d+"]"),l}function Hs(e){const t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function Ys(e){const t=e.options.rule||"*";if("*"!==t&&"-"!==t&&"_"!==t)throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}Cs.peek=function(){return"~"},Bs.peek=function(e,t,r){return r.options.emphasis||"*"},Ds.peek=function(){return"<"},Xs.peek=function(){return"!"},js.peek=function(){return"!"},Ms.peek=function(){return"`"},Gs.peek=function(e,t,r){return zs(e,r)?"<":"["},Zs.peek=function(){return"["};const Qs=Ga(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Js(e,t,r,n){const i=function(e){const t=e.options.strong||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}(r),a=r.enter("strong"),o=r.createTracker(n),s=o.move(i+i);let l=o.move(r.containerPhrasing(e,{after:i,before:s,...o.current()}));const c=l.charCodeAt(0),u=Ls(n.before.charCodeAt(n.before.length-1),c,i);u.inside&&(l=Is(c)+l.slice(1));const d=l.charCodeAt(l.length-1),p=Ls(n.after.charCodeAt(0),d,i);p.inside&&(l=l.slice(0,-1)+Is(d));const h=o.move(i+i);return a(),r.attentionEncodeSurroundingInfo={after:p.outside,before:u.outside},s+l+h}Js.peek=function(e,t,r){return r.options.strong||"*"};const _s={blockquote:function(e,t,r,n){const i=r.enter("blockquote"),a=r.createTracker(n);a.move("> "),a.shift(2);const o=r.indentLines(r.containerFlow(e,a.current()),ks);return i(),o},break:Ns,code:function(e,t,r,n){const i=function(e){const t=e.options.fence||"`";if("`"!==t&&"~"!==t)throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}(r),a=e.value||"",o="`"===i?"GraveAccent":"Tilde";if(function(e,t){return Boolean(!1===t.options.fences&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}(e,r)){const e=r.enter("codeIndented"),t=r.indentLines(a,Os);return e(),t}const s=r.createTracker(n),l=i.repeat(Math.max(Ks(a,i)+1,3)),c=r.enter("codeFenced");let u=s.move(l);if(e.lang){const t=r.enter(`codeFencedLang${o}`);u+=s.move(r.safe(e.lang,{before:u,after:" ",encode:["`"],...s.current()})),t()}if(e.lang&&e.meta){const t=r.enter(`codeFencedMeta${o}`);u+=s.move(" "),u+=s.move(r.safe(e.meta,{before:u,after:"\n",encode:["`"],...s.current()})),t()}return u+=s.move("\n"),a&&(u+=s.move(a+"\n")),u+=s.move(l),c(),u},definition:function(e,t,r,n){const i=Ps(r),a='"'===i?"Quote":"Apostrophe",o=r.enter("definition");let s=r.enter("label");const l=r.createTracker(n);let c=l.move("[");return c+=l.move(r.safe(r.associationId(e),{before:c,after:"]",...l.current()})),c+=l.move("]: "),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=r.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(r.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(s=r.enter("destinationRaw"),c+=l.move(r.safe(e.url,{before:c,after:e.title?" ":"\n",...l.current()}))),s(),e.title&&(s=r.enter(`title${a}`),c+=l.move(" "+i),c+=l.move(r.safe(e.title,{before:c,after:i,...l.current()})),c+=l.move(i),s()),o(),c},emphasis:Bs,hardBreak:Ns,heading:function(e,t,r,n){const i=Math.max(Math.min(6,e.depth||1),1),a=r.createTracker(n);if(function(e,t){let r=!1;return $a(e,function(e){if("value"in e&&/\r?\n|\r/.test(e.value)||"break"===e.type)return r=!0,Qa}),Boolean((!e.depth||e.depth<3)&&Nn(e)&&(t.options.setext||r))}(e,r)){const t=r.enter("headingSetext"),n=r.enter("phrasing"),o=r.containerPhrasing(e,{...a.current(),before:"\n",after:"\n"});return n(),t(),o+"\n"+(1===i?"=":"-").repeat(o.length-(Math.max(o.lastIndexOf("\r"),o.lastIndexOf("\n"))+1))}const o="#".repeat(i),s=r.enter("headingAtx"),l=r.enter("phrasing");a.move(o+" ");let c=r.containerPhrasing(e,{before:"# ",after:"\n",...a.current()});return/^[\t ]/.test(c)&&(c=Is(c.charCodeAt(0))+c.slice(1)),c=c?o+" "+c:o,r.options.closeAtx&&(c+=" "+o),l(),s(),c},html:Ds,image:Xs,imageReference:js,inlineCode:Ms,link:Gs,linkReference:Zs,list:function(e,t,r,n){const i=r.enter("list"),a=r.bulletCurrent;let o=e.ordered?function(e){const t=e.options.bulletOrdered||".";if("."!==t&&")"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}(r):Hs(r);const s=e.ordered?"."===o?")":".":function(e){const t=Hs(e),r=e.options.bulletOther;if(!r)return"*"===t?"-":"*";if("*"!==r&&"+"!==r&&"-"!==r)throw new Error("Cannot serialize items with `"+r+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(r===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+r+"`) to be different");return r}(r);let l=!(!t||!r.bulletLastUsed)&&o===r.bulletLastUsed;if(!e.ordered){const t=e.children?e.children[0]:void 0;if("*"!==o&&"-"!==o||!t||t.children&&t.children[0]||"list"!==r.stack[r.stack.length-1]||"listItem"!==r.stack[r.stack.length-2]||"list"!==r.stack[r.stack.length-3]||"listItem"!==r.stack[r.stack.length-4]||0!==r.indexStack[r.indexStack.length-1]||0!==r.indexStack[r.indexStack.length-2]||0!==r.indexStack[r.indexStack.length-3]||(l=!0),Ys(r)===o&&t){let t=-1;for(;++t<e.children.length;){const r=e.children[t];if(r&&"listItem"===r.type&&r.children&&r.children[0]&&"thematicBreak"===r.children[0].type){l=!0;break}}}}l&&(o=s),r.bulletCurrent=o;const c=r.containerFlow(e,n);return r.bulletLastUsed=o,r.bulletCurrent=a,i(),c},listItem:function(e,t,r,n){const i=function(e){const t=e.options.listItemIndent||"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}(r);let a=r.bulletCurrent||Hs(r);t&&"list"===t.type&&t.ordered&&(a=("number"==typeof t.start&&t.start>-1?t.start:1)+(!1===r.options.incrementListMarker?0:t.children.indexOf(e))+a);let o=a.length+1;("tab"===i||"mixed"===i&&(t&&"list"===t.type&&t.spread||e.spread))&&(o=4*Math.ceil(o/4));const s=r.createTracker(n);s.move(a+" ".repeat(o-a.length)),s.shift(o);const l=r.enter("listItem"),c=r.indentLines(r.containerFlow(e,s.current()),function(e,t,r){return t?(r?"":" ".repeat(o))+e:(r?a:a+" ".repeat(o-a.length))+e});return l(),c},paragraph:function(e,t,r,n){const i=r.enter("paragraph"),a=r.enter("phrasing"),o=r.containerPhrasing(e,n);return a(),i(),o},root:function(e,t,r,n){return(e.children.some(function(e){return Qs(e)})?r.containerPhrasing:r.containerFlow).call(r,e,n)},strong:Js,text:function(e,t,r,n){return r.safe(e.value,n)},thematicBreak:function(e,t,r){const n=(Ys(r)+(r.options.ruleSpaces?" ":"")).repeat(function(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}(r));return r.options.ruleSpaces?n.slice(0,-1):n}};function $s(e){const t=e._align;this.enter({type:"table",align:t.map(function(e){return"none"===e?null:e}),children:[]},e),this.data.inTable=!0}function el(e){this.exit(e),this.data.inTable=void 0}function tl(e){this.enter({type:"tableRow",children:[]},e)}function rl(e){this.exit(e)}function nl(e){this.enter({type:"tableCell",children:[]},e)}function il(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,al));const r=this.stack[this.stack.length-1];r.type,r.value=t,this.exit(e)}function al(e,t){return"|"===t?t:e}function ol(e){const t=e||{},r=t.tableCellPadding,n=t.tablePipeAlign,i=t.stringLength,a=r?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[\t :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:function(e,t,r){let n=_s.inlineCode(e,t,r);return r.stack.includes("tableCell")&&(n=n.replace(/\|/g,"\\$&")),n},table:function(e,t,r,n){return s(function(e,t,r){const n=e.children;let i=-1;const a=[],o=t.enter("table");for(;++i<n.length;)a[i]=l(n[i],t,r);return o(),a}(e,r,n),e.align)},tableCell:o,tableRow:function(e,t,r,n){const i=s([l(e,r,n)]);return i.slice(0,i.indexOf("\n"))}}};function o(e,t,r,n){const i=r.enter("tableCell"),o=r.enter("phrasing"),s=r.containerPhrasing(e,{...n,before:a,after:a});return o(),i(),s}function s(e,t){return function(e,t){const r=t||{},n=(r.align||[]).concat(),i=r.stringLength||Rs,a=[],o=[],s=[],l=[];let c=0,u=-1;for(;++u<e.length;){const t=[],n=[];let a=-1;for(e[u].length>c&&(c=e[u].length);++a<e[u].length;){const o=Es(e[u][a]);if(!1!==r.alignDelimiters){const e=i(o);n[a]=e,(void 0===l[a]||e>l[a])&&(l[a]=e)}t.push(o)}o[u]=t,s[u]=n}let d=-1;if("object"==typeof n&&"length"in n)for(;++d<c;)a[d]=Ts(n[d]);else{const e=Ts(n);for(;++d<c;)a[d]=e}d=-1;const p=[],h=[];for(;++d<c;){const e=a[d];let t="",n="";99===e?(t=":",n=":"):108===e?t=":":114===e&&(n=":");let i=!1===r.alignDelimiters?1:Math.max(1,l[d]-t.length-n.length);const o=t+"-".repeat(i)+n;!1!==r.alignDelimiters&&(i=t.length+i+n.length,i>l[d]&&(l[d]=i),h[d]=i),p[d]=o}o.splice(1,0,p),s.splice(1,0,h),u=-1;const q=[];for(;++u<o.length;){const e=o[u],t=s[u];d=-1;const n=[];for(;++d<c;){const i=e[d]||"";let o="",s="";if(!1!==r.alignDelimiters){const e=l[d]-(t[d]||0),r=a[d];114===r?o=" ".repeat(e):99===r?e%2?(o=" ".repeat(e/2+.5),s=" ".repeat(e/2-.5)):(o=" ".repeat(e/2),s=o):s=" ".repeat(e)}!1===r.delimiterStart||d||n.push("|"),!1===r.padding||!1===r.alignDelimiters&&""===i||!1===r.delimiterStart&&!d||n.push(" "),!1!==r.alignDelimiters&&n.push(o),n.push(i),!1!==r.alignDelimiters&&n.push(s),!1!==r.padding&&n.push(" "),!1===r.delimiterEnd&&d===c-1||n.push("|")}q.push(!1===r.delimiterEnd?n.join("").replace(/ +$/,""):n.join(""))}return q.join("\n")}(e,{align:t,alignDelimiters:n,padding:r,stringLength:i})}function l(e,t,r){const n=e.children;let i=-1;const a=[],s=t.enter("tableRow");for(;++i<n.length;)a[i]=o(n[i],0,t,r);return s(),a}}function sl(e){const t=this.stack[this.stack.length-2];t.type,t.checked="taskListCheckValueChecked"===e.type}function ll(e){const t=this.stack[this.stack.length-2];if(t&&"listItem"===t.type&&"boolean"==typeof t.checked){const e=this.stack[this.stack.length-1];e.type;const r=e.children[0];if(r&&"text"===r.type){const n=t.children;let i,a=-1;for(;++a<n.length;){const e=n[a];if("paragraph"===e.type){i=e;break}}i===e&&(r.value=r.value.slice(1),0===r.value.length?e.children.shift():e.position&&r.position&&"number"==typeof r.position.start.offset&&(r.position.start.column++,r.position.start.offset++,e.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function cl(e,t,r,n){const i=e.children[0],a="boolean"==typeof e.checked&&i&&"paragraph"===i.type,o="["+(e.checked?"x":" ")+"] ",s=r.createTracker(n);a&&s.move(o);let l=_s.listItem(e,t,r,{...n,...s.current()});return a&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,function(e){return e+o})),l}const ul={tokenize:function(e,t,r){let n=0;return function t(a){return(87===a||119===a)&&n<3?(n++,e.consume(a),t):46===a&&3===n?(e.consume(a),i):r(a)};function i(e){return null===e?r(e):t(e)}},partial:!0},dl={tokenize:function(e,t,r){let n,i,a;return o;function o(t){return 46===t||95===t?e.check(hl,l,s)(t):null===t||ti(t)||ii(t)||45!==t&&ni(t)?l(t):(a=!0,e.consume(t),o)}function s(t){return 95===t?n=!0:(i=n,n=void 0),e.consume(t),o}function l(e){return i||n||!a?r(e):t(e)}},partial:!0},pl={tokenize:function(e,t){let r=0,n=0;return i;function i(o){return 40===o?(r++,e.consume(o),i):41===o&&n<r?a(o):33===o||34===o||38===o||39===o||41===o||42===o||44===o||46===o||58===o||59===o||60===o||63===o||93===o||95===o||126===o?e.check(hl,t,a)(o):null===o||ti(o)||ii(o)?t(o):(e.consume(o),i)}function a(t){return 41===t&&n++,e.consume(t),i}},partial:!0},hl={tokenize:function(e,t,r){return n;function n(o){return 33===o||34===o||39===o||41===o||42===o||44===o||46===o||58===o||59===o||63===o||95===o||126===o?(e.consume(o),n):38===o?(e.consume(o),a):93===o?(e.consume(o),i):60===o||null===o||ti(o)||ii(o)?t(o):r(o)}function i(e){return null===e||40===e||91===e||ti(e)||ii(e)?t(e):n(e)}function a(e){return Zn(e)?o(e):r(e)}function o(t){return 59===t?(e.consume(t),n):Zn(t)?(e.consume(t),o):r(t)}},partial:!0},ql={tokenize:function(e,t,r){return function(t){return e.consume(t),n};function n(e){return Hn(e)?r(e):t(e)}},partial:!0},fl={name:"wwwAutolink",tokenize:function(e,t,r){const n=this;return function(t){return 87!==t&&119!==t||!bl.call(n,n.previous)||wl(n.events)?r(t):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(ul,e.attempt(dl,e.attempt(pl,i),r),r)(t))};function i(r){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(r)}},previous:bl},ml={name:"protocolAutolink",tokenize:function(e,t,r){const n=this;let i="",a=!1;return function(t){return 72!==t&&104!==t||!yl.call(n,n.previous)||wl(n.events)?r(t):(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(t),e.consume(t),o)};function o(t){if(Zn(t)&&i.length<5)return i+=String.fromCodePoint(t),e.consume(t),o;if(58===t){const r=i.toLowerCase();if("http"===r||"https"===r)return e.consume(t),s}return r(t)}function s(t){return 47===t?(e.consume(t),a?l:(a=!0,s)):r(t)}function l(t){return null===t||Qn(t)||ti(t)||ii(t)||ni(t)?r(t):e.attempt(dl,e.attempt(pl,c),r)(t)}function c(r){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(r)}},previous:yl},Vl={name:"emailAutolink",tokenize:function(e,t,r){const n=this;let i,a;return function(t){return Al(t)&&Sl.call(n,n.previous)&&!wl(n.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),o(t)):r(t)};function o(t){return Al(t)?(e.consume(t),o):64===t?(e.consume(t),s):r(t)}function s(t){return 46===t?e.check(ql,c,l)(t):45===t||95===t||Hn(t)?(a=!0,e.consume(t),s):c(t)}function l(t){return e.consume(t),i=!0,s}function c(o){return a&&i&&Zn(n.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(o)):r(o)}},previous:Sl},gl={};let vl=48;for(;vl<123;)gl[vl]=Vl,vl++,58===vl?vl=65:91===vl&&(vl=97);function bl(e){return null===e||40===e||42===e||95===e||91===e||93===e||126===e||ti(e)}function yl(e){return!Zn(e)}function Sl(e){return!(47===e||Al(e))}function Al(e){return 43===e||45===e||46===e||95===e||Hn(e)}function wl(e){let t=e.length,r=!1;for(;t--;){const n=e[t][1];if(("labelLink"===n.type||"labelImage"===n.type)&&!n._balanced){r=!0;break}if(n._gfmAutolinkLiteralWalkedInto){r=!1;break}}return e.length>0&&!r&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),r}gl[43]=Vl,gl[45]=Vl,gl[46]=Vl,gl[95]=Vl,gl[72]=[Vl,ml],gl[104]=[Vl,ml],gl[87]=[Vl,fl],gl[119]=[Vl,fl];const Ul={tokenize:function(e,t,r){const n=this;return si(e,function(e){const i=n.events[n.events.length-1];return i&&"gfmFootnoteDefinitionIndent"===i[1].type&&4===i[2].sliceSerialize(i[1],!0).length?t(e):r(e)},"gfmFootnoteDefinitionIndent",5)},partial:!0};function xl(e,t,r){const n=this;let i=n.events.length;const a=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let o;for(;i--;){const e=n.events[i][1];if("labelImage"===e.type){o=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(i){if(!o||!o._balanced)return r(i);const s=Gn(n.sliceSerialize({start:o.end,end:n.now()}));return 94===s.codePointAt(0)&&a.includes(s.slice(1))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(i),e.exit("gfmFootnoteCallLabelMarker"),t(i)):r(i)}}function Cl(e,t){let r=e.length;for(;r--;)if("labelImage"===e[r][1].type&&"enter"===e[r][0]){e[r][1];break}e[r+1][1].type="data",e[r+3][1].type="gfmFootnoteCallLabelMarker";const n={type:"gfmFootnoteCall",start:Object.assign({},e[r+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[r+3][1].end),end:Object.assign({},e[r+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},s=[e[r+1],e[r+2],["enter",n,t],e[r+3],e[r+4],["enter",i,t],["exit",i,t],["enter",a,t],["enter",o,t],["exit",o,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",n,t]];return e.splice(r,e.length-r+1,...s),e}function Rl(e,t,r){const n=this,i=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let a,o=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),s};function s(t){return 94!==t?r(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",l)}function l(s){if(o>999||93===s&&!a||null===s||91===s||ti(s))return r(s);if(93===s){e.exit("chunkString");const a=e.exit("gfmFootnoteCallString");return i.includes(Gn(n.sliceSerialize(a)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):r(s)}return ti(s)||(a=!0),o++,e.consume(s),92===s?c:l}function c(t){return 91===t||92===t||93===t?(e.consume(t),o++,l):l(t)}}function El(e,t,r){const n=this,i=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let a,o,s=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),l};function l(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):r(t)}function c(t){if(s>999||93===t&&!o||null===t||91===t||ti(t))return r(t);if(93===t){e.exit("chunkString");const r=e.exit("gfmFootnoteDefinitionLabelString");return a=Gn(n.sliceSerialize(r)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),d}return ti(t)||(o=!0),s++,e.consume(t),92===t?u:c}function u(t){return 91===t||92===t||93===t?(e.consume(t),s++,c):c(t)}function d(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),i.includes(a)||i.push(a),si(e,p,"gfmFootnoteDefinitionWhitespace")):r(t)}function p(e){return t(e)}}function Tl(e,t,r){return e.check(mi,t,e.attempt(Ul,t,r))}function kl(e){e.exit("gfmFootnoteDefinition")}function Fl(e){let t=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:function(e,r,n){const i=this.previous,a=this.events;let o=0;return function(t){return 126===i&&"characterEscape"!==a[a.length-1][1].type?n(t):(e.enter("strikethroughSequenceTemporary"),s(t))};function s(a){const l=di(i);if(126===a)return o>1?n(a):(e.consume(a),o++,s);if(o<2&&!t)return n(a);const c=e.exit("strikethroughSequenceTemporary"),u=di(a);return c._open=!u||2===u&&Boolean(l),c._close=!l||2===l&&Boolean(u),r(a)}},resolveAll:function(e,t){let r=-1;for(;++r<e.length;)if("enter"===e[r][0]&&"strikethroughSequenceTemporary"===e[r][1].type&&e[r][1]._close){let n=r;for(;n--;)if("exit"===e[n][0]&&"strikethroughSequenceTemporary"===e[n][1].type&&e[n][1]._open&&e[r][1].end.offset-e[r][1].start.offset===e[n][1].end.offset-e[n][1].start.offset){e[r][1].type="strikethroughSequence",e[n][1].type="strikethroughSequence";const i={type:"strikethrough",start:Object.assign({},e[n][1].start),end:Object.assign({},e[r][1].end)},a={type:"strikethroughText",start:Object.assign({},e[n][1].end),end:Object.assign({},e[r][1].start)},o=[["enter",i,t],["enter",e[n][1],t],["exit",e[n][1],t],["enter",a,t]],s=t.parser.constructs.insideSpan.null;s&&Ln(o,o.length,0,pi(s,e.slice(n+1,r),t)),Ln(o,o.length,0,[["exit",a,t],["enter",e[r][1],t],["exit",e[r][1],t],["exit",i,t]]),Ln(e,n-1,r-n+3,o),r=n+o.length-2;break}}for(r=-1;++r<e.length;)"strikethroughSequenceTemporary"===e[r][1].type&&(e[r][1].type="data");return e}};return null==t&&(t=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}}}class Wl{constructor(){this.map=[]}add(e,t,r){!function(e,t,r,n){let i=0;if(0!==r||0!==n.length){for(;i<e.map.length;){if(e.map[i][0]===t)return e.map[i][1]+=r,void e.map[i][2].push(...n);i+=1}e.map.push([t,r,n])}}(this,e,t,r)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),0===this.map.length)return;let t=this.map.length;const r=[];for(;t>0;)t-=1,r.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];r.push(e.slice()),e.length=0;let n=r.pop();for(;n;){for(const t of n)e.push(t);n=r.pop()}this.map.length=0}}function Nl(e,t){let r=!1;const n=[];for(;t<e.length;){const i=e[t];if(r){if("enter"===i[0])"tableContent"===i[1].type&&n.push("tableDelimiterMarker"===e[t+1][1].type?"left":"none");else if("tableContent"===i[1].type){if("tableDelimiterMarker"===e[t-1][1].type){const e=n.length-1;n[e]="left"===n[e]?"center":"right"}}else if("tableDelimiterRow"===i[1].type)break}else"enter"===i[0]&&"tableDelimiterRow"===i[1].type&&(r=!0);t+=1}return n}function Kl(e,t,r){const n=this;let i,a=0,o=0;return function(e){let t=n.events.length-1;for(;t>-1;){const e=n.events[t][1].type;if("lineEnding"!==e&&"linePrefix"!==e)break;t--}const i=t>-1?n.events[t][1].type:null,a="tableHead"===i||"tableRow"===i?b:s;return a===b&&n.parser.lazy[n.now().line]?r(e):a(e)};function s(t){return e.enter("tableHead"),e.enter("tableRow"),function(e){return 124===e||(i=!0,o+=1),l(e)}(t)}function l(t){return null===t?r(t):ei(t)?o>1?(o=0,n.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),d):r(t):ri(t)?si(e,l,"whitespace")(t):(o+=1,i&&(i=!1,a+=1),124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),i=!0,l):(e.enter("data"),c(t)))}function c(t){return null===t||124===t||ti(t)?(e.exit("data"),l(t)):(e.consume(t),92===t?u:c)}function u(t){return 92===t||124===t?(e.consume(t),c):c(t)}function d(t){return n.interrupt=!1,n.parser.lazy[n.now().line]?r(t):(e.enter("tableDelimiterRow"),i=!1,ri(t)?si(e,p,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):p(t))}function p(t){return 45===t||58===t?q(t):124===t?(i=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),h):v(t)}function h(t){return ri(t)?si(e,q,"whitespace")(t):q(t)}function q(t){return 58===t?(o+=1,i=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),f):45===t?(o+=1,f(t)):null===t||ei(t)?g(t):v(t)}function f(t){return 45===t?(e.enter("tableDelimiterFiller"),m(t)):v(t)}function m(t){return 45===t?(e.consume(t),m):58===t?(i=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),V):(e.exit("tableDelimiterFiller"),V(t))}function V(t){return ri(t)?si(e,g,"whitespace")(t):g(t)}function g(r){return 124===r?p(r):(null===r||ei(r))&&i&&a===o?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(r)):v(r)}function v(e){return r(e)}function b(t){return e.enter("tableRow"),y(t)}function y(r){return 124===r?(e.enter("tableCellDivider"),e.consume(r),e.exit("tableCellDivider"),y):null===r||ei(r)?(e.exit("tableRow"),t(r)):ri(r)?si(e,y,"whitespace")(r):(e.enter("data"),S(r))}function S(t){return null===t||124===t||ti(t)?(e.exit("data"),y(t)):(e.consume(t),92===t?A:S)}function A(t){return 92===t||124===t?(e.consume(t),S):S(t)}}function Ol(e,t){let r,n,i,a=-1,o=!0,s=0,l=[0,0,0,0],c=[0,0,0,0],u=!1,d=0;const p=new Wl;for(;++a<e.length;){const h=e[a],q=h[1];"enter"===h[0]?"tableHead"===q.type?(u=!1,0!==d&&(Il(p,t,d,r,n),n=void 0,d=0),r={type:"table",start:Object.assign({},q.start),end:Object.assign({},q.end)},p.add(a,0,[["enter",r,t]])):"tableRow"===q.type||"tableDelimiterRow"===q.type?(o=!0,i=void 0,l=[0,0,0,0],c=[0,a+1,0,0],u&&(u=!1,n={type:"tableBody",start:Object.assign({},q.start),end:Object.assign({},q.end)},p.add(a,0,[["enter",n,t]])),s="tableDelimiterRow"===q.type?2:n?3:1):!s||"data"!==q.type&&"tableDelimiterMarker"!==q.type&&"tableDelimiterFiller"!==q.type?"tableCellDivider"===q.type&&(o?o=!1:(0!==l[1]&&(c[0]=c[1],i=Pl(p,t,l,s,void 0,i)),l=c,c=[l[1],a,0,0])):(o=!1,0===c[2]&&(0!==l[1]&&(c[0]=c[1],i=Pl(p,t,l,s,void 0,i),l=[0,0,0,0]),c[2]=a)):"tableHead"===q.type?(u=!0,d=a):"tableRow"===q.type||"tableDelimiterRow"===q.type?(d=a,0!==l[1]?(c[0]=c[1],i=Pl(p,t,l,s,a,i)):0!==c[1]&&(i=Pl(p,t,c,s,a,i)),s=0):!s||"data"!==q.type&&"tableDelimiterMarker"!==q.type&&"tableDelimiterFiller"!==q.type||(c[3]=a)}for(0!==d&&Il(p,t,d,r,n),p.consume(t.events),a=-1;++a<t.events.length;){const e=t.events[a];"enter"===e[0]&&"table"===e[1].type&&(e[1]._align=Nl(t.events,a))}return e}function Pl(e,t,r,n,i,a){const o=1===n?"tableHeader":2===n?"tableDelimiter":"tableData";0!==r[0]&&(a.end=Object.assign({},Ll(t.events,r[0])),e.add(r[0],0,[["exit",a,t]]));const s=Ll(t.events,r[1]);if(a={type:o,start:Object.assign({},s),end:Object.assign({},s)},e.add(r[1],0,[["enter",a,t]]),0!==r[2]){const i=Ll(t.events,r[2]),a=Ll(t.events,r[3]),o={type:"tableContent",start:Object.assign({},i),end:Object.assign({},a)};if(e.add(r[2],0,[["enter",o,t]]),2!==n){const n=t.events[r[2]],i=t.events[r[3]];if(n[1].end=Object.assign({},i[1].end),n[1].type="chunkText",n[1].contentType="text",r[3]>r[2]+1){const t=r[2]+1,n=r[3]-r[2]-1;e.add(t,n,[])}}e.add(r[3]+1,0,[["exit",o,t]])}return void 0!==i&&(a.end=Object.assign({},Ll(t.events,i)),e.add(i,0,[["exit",a,t]]),a=void 0),a}function Il(e,t,r,n,i){const a=[],o=Ll(t.events,r);i&&(i.end=Object.assign({},o),a.push(["exit",i,t])),n.end=Object.assign({},o),a.push(["exit",n,t]),e.add(r+1,0,a)}function Ll(e,t){const r=e[t],n="enter"===r[0]?"start":"end";return r[1][n]}const Bl={name:"tasklistCheck",tokenize:function(e,t,r){const n=this;return function(t){return null===n.previous&&n._gfmTasklistFirstContentOfListItem?(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),i):r(t)};function i(t){return ti(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),a):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),a):r(t)}function a(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),o):r(t)}function o(n){return ei(n)?t(n):ri(n)?e.check({tokenize:Dl},t,r)(n):r(n)}}};function Dl(e,t,r){return si(e,function(e){return null===e?r(e):t(e)},"whitespace")}const Xl={};function jl(e){const t=e||Xl,r=this.data(),n=r.micromarkExtensions||(r.micromarkExtensions=[]),i=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),a=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);n.push(function(e){return Xn([{text:gl},{document:{91:{name:"gfmFootnoteDefinition",tokenize:El,continuation:{tokenize:Tl},exit:kl}},text:{91:{name:"gfmFootnoteCall",tokenize:Rl},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:xl,resolveTo:Cl}}},Fl(e),{flow:{null:{name:"table",tokenize:Kl,resolveAll:Ol}}},{text:{91:Bl}}])}(t)),i.push([{transforms:[ls],enter:{literalAutolink:rs,literalAutolinkEmail:ns,literalAutolinkHttp:ns,literalAutolinkWww:ns},exit:{literalAutolink:ss,literalAutolinkEmail:os,literalAutolinkHttp:is,literalAutolinkWww:as}},{enter:{gfmFootnoteCallString:ps,gfmFootnoteCall:hs,gfmFootnoteDefinitionLabelString:qs,gfmFootnoteDefinition:fs},exit:{gfmFootnoteCallString:ms,gfmFootnoteCall:Vs,gfmFootnoteDefinitionLabelString:gs,gfmFootnoteDefinition:vs}},{canContainEols:["delete"],enter:{strikethrough:Us},exit:{strikethrough:xs}},{enter:{table:$s,tableData:nl,tableHeader:nl,tableRow:tl},exit:{codeText:il,table:el,tableData:rl,tableHeader:rl,tableRow:rl}},{exit:{taskListCheckValueChecked:sl,taskListCheckValueUnchecked:sl,paragraph:ll}}]),a.push(function(e){return{extensions:[{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:es,notInConstruct:ts},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:es,notInConstruct:ts},{character:":",before:"[ps]",after:"\\/",inConstruct:es,notInConstruct:ts}]},ys(e),{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:ws}],handlers:{delete:Cs}},ol(e),{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:cl}}]}}(t))}const Ml={tokenize:function(e,t,r){const n=this,i=n.events[n.events.length-1],a=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0;let o=0;return function(t){return e.enter("mathFlow"),e.enter("mathFlowFence"),e.enter("mathFlowFenceSequence"),s(t)};function s(t){return 36===t?(e.consume(t),o++,s):o<2?r(t):(e.exit("mathFlowFenceSequence"),si(e,l,"whitespace")(t))}function l(t){return null===t||ei(t)?u(t):(e.enter("mathFlowFenceMeta"),e.enter("chunkString",{contentType:"string"}),c(t))}function c(t){return null===t||ei(t)?(e.exit("chunkString"),e.exit("mathFlowFenceMeta"),u(t)):36===t?r(t):(e.consume(t),c)}function u(r){return e.exit("mathFlowFence"),n.interrupt?t(r):e.attempt(zl,d,f)(r)}function d(t){return e.attempt({tokenize:m,partial:!0},f,p)(t)}function p(t){return(a?si(e,h,"linePrefix",a+1):h)(t)}function h(t){return null===t?f(t):ei(t)?e.attempt(zl,d,f)(t):(e.enter("mathFlowValue"),q(t))}function q(t){return null===t||ei(t)?(e.exit("mathFlowValue"),h(t)):(e.consume(t),q)}function f(r){return e.exit("mathFlow"),t(r)}function m(e,t,r){let i=0;return si(e,function(t){return e.enter("mathFlowFence"),e.enter("mathFlowFenceSequence"),a(t)},"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function a(t){return 36===t?(i++,e.consume(t),a):i<o?r(t):(e.exit("mathFlowFenceSequence"),si(e,s,"whitespace")(t))}function s(n){return null===n||ei(n)?(e.exit("mathFlowFence"),t(n)):r(n)}}},concrete:!0,name:"mathFlow"},zl={tokenize:function(e,t,r){const n=this;return function(r){return null===r?t(r):(e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),i)};function i(e){return n.parser.lazy[n.now().line]?r(e):t(e)}},partial:!0};function Gl(e){let t=(e||{}).singleDollarTextMath;return null==t&&(t=!0),{tokenize:function(e,r,n){let i,a,o=0;return function(t){return e.enter("mathText"),e.enter("mathTextSequence"),s(t)};function s(r){return 36===r?(e.consume(r),o++,s):o<2&&!t?n(r):(e.exit("mathTextSequence"),l(r))}function l(t){return null===t?n(t):36===t?(a=e.enter("mathTextSequence"),i=0,u(t)):32===t?(e.enter("space"),e.consume(t),e.exit("space"),l):ei(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),l):(e.enter("mathTextData"),c(t))}function c(t){return null===t||32===t||36===t||ei(t)?(e.exit("mathTextData"),l(t)):(e.consume(t),c)}function u(t){return 36===t?(e.consume(t),i++,u):i===o?(e.exit("mathTextSequence"),e.exit("mathText"),r(t)):(a.type="mathTextData",c(t))}},resolve:Zl,previous:Hl,name:"mathText"}}function Zl(e){let t,r,n=e.length-4,i=3;if(!("lineEnding"!==e[i][1].type&&"space"!==e[i][1].type||"lineEnding"!==e[n][1].type&&"space"!==e[n][1].type))for(t=i;++t<n;)if("mathTextData"===e[t][1].type){e[n][1].type="mathTextPadding",e[i][1].type="mathTextPadding",i+=2,n-=2;break}for(t=i-1,n++;++t<=n;)void 0===r?t!==n&&"lineEnding"!==e[t][1].type&&(r=t):t!==n&&"lineEnding"!==e[t][1].type||(e[r][1].type="mathTextData",t!==r+2&&(e[r][1].end=e[t-1][1].end,e.splice(r+2,t-r-2),n-=t-r-2,t=r+2),r=void 0);return e}function Hl(e){return 36!==e||"characterEscape"===this.events[this.events.length-1][1].type}class Yl extends Error{constructor(e,t){var r,n,i="KaTeX parse error: "+e,a=t&&t.loc;if(a&&a.start<=a.end){var o=a.lexer.input;r=a.start,n=a.end,r===o.length?i+=" at end of input: ":i+=" at position "+(r+1)+": ";var s=o.slice(r,n).replace(/[^]/g,"$&̲");i+=(r>15?"…"+o.slice(r-15,r):o.slice(0,r))+s+(n+15<o.length?o.slice(n,n+15)+"…":o.slice(n))}super(i),this.name="ParseError",Object.setPrototypeOf(this,Yl.prototype),this.position=r,null!=r&&null!=n&&(this.length=n-r),this.rawMessage=e}}var Ql=/([A-Z])/g,Jl=e=>e.replace(Ql,"-$1").toLowerCase(),_l={"&":"&",">":">","<":"<",'"':""","'":"'"},$l=/[&><"']/g,ec=e=>String(e).replace($l,e=>_l[e]),tc=e=>"ordgroup"===e.type||"color"===e.type?1===e.body.length?tc(e.body[0]):e:"font"===e.type?tc(e.body):e,rc=new Set(["mathord","textord","atom"]),nc=e=>rc.has(tc(e).type),ic={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format <type>"},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color <color>",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:e=>"#"+e},macros:{type:"object",cli:"-m, --macro <def>",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:"--min-rule-thickness <size>",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:e=>Math.max(0,e),cli:"-s, --max-size <n>",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:e=>Math.max(0,e),cli:"-e, --max-expand <n>",cliProcessor:e=>"Infinity"===e?1/0:parseInt(e)},globalGroup:{type:"boolean",cli:!1}};function ac(e){if("default"in e)return e.default;var t=e.type,r=Array.isArray(t)?t[0]:t;if("string"!=typeof r)return r.enum[0];switch(r){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}class oc{constructor(e){for(var t of(void 0===e&&(e={}),e=e||{},Object.keys(ic))){var r=ic[t],n=e[t];this[t]=void 0!==n?r.processor?r.processor(n):n:ac(r)}}reportNonstrict(e,t,r){var n=this.strict;if("function"==typeof n&&(n=n(e,t,r)),n&&"ignore"!==n&&(!0===n||"error"===n))throw new Yl("LaTeX-incompatible input and strict mode is set to 'error': "+t+" ["+e+"]",r)}useStrictBehavior(e,t,r){var n=this.strict;if("function"==typeof n)try{n=n(e,t,r)}catch(i){n="error"}return!(!n||"ignore"===n||!0!==n&&"error"!==n)}isTrusted(e){if("url"in e&&e.url&&!e.protocol){var t=(e=>{var t=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(e);return t?":"!==t[2]?null:/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(t[1])?t[1].toLowerCase():null:"_relative"})(e.url);if(null==t)return!1;e.protocol=t}var r="function"==typeof this.trust?this.trust(e):this.trust;return Boolean(r)}}class sc{constructor(e,t,r){this.id=e,this.size=t,this.cramped=r}sup(){return lc[cc[this.id]]}sub(){return lc[uc[this.id]]}fracNum(){return lc[dc[this.id]]}fracDen(){return lc[pc[this.id]]}cramp(){return lc[hc[this.id]]}text(){return lc[qc[this.id]]}isTight(){return this.size>=2}}var lc=[new sc(0,0,!1),new sc(1,0,!0),new sc(2,1,!1),new sc(3,1,!0),new sc(4,2,!1),new sc(5,2,!0),new sc(6,3,!1),new sc(7,3,!0)],cc=[4,5,4,5,6,7,6,7],uc=[5,5,5,5,7,7,7,7],dc=[2,3,4,5,6,7,6,7],pc=[3,3,5,5,7,7,7,7],hc=[1,1,3,3,5,5,7,7],qc=[0,1,2,3,2,3,2,3],fc={DISPLAY:lc[0],TEXT:lc[2],SCRIPT:lc[4],SCRIPTSCRIPT:lc[6]},mc=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}],Vc=[];function gc(e){for(var t=0;t<Vc.length;t+=2)if(e>=Vc[t]&&e<=Vc[t+1])return!0;return!1}mc.forEach(e=>e.blocks.forEach(e=>Vc.push(...e)));var vc={doubleleftarrow:"M262 157\nl10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3\n 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28\n 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5\nc2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5\n 157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87\n-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7\n-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z\nm8 0v40h399730v-40zm0 194v40h399730v-40z",doublerightarrow:"M399738 392l\n-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5\n 14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88\n-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68\n-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18\n-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782\nc-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3\n-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z",leftarrow:"M400000 241H110l3-3c68.7-52.7 113.7-120\n 135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8\n-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247\nc-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208\n 490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3\n 1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202\n l-3-3h399890zM100 241v40h399900v-40z",leftbrace:"M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117\n-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7\n 5-6 9-10 13-.7 1-7.3 1-20 1H6z",leftbraceunder:"M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13\n 35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688\n 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7\n-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z",leftgroup:"M400000 80\nH435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0\n 435 0h399565z",leftgroupunder:"M400000 262\nH435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219\n 435 219h399565z",leftharpoon:"M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3\n-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5\n-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7\n-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z",leftharpoonplus:"M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5\n 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3\n-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7\n-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z\nm0 0v40h400000v-40z",leftharpoondown:"M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333\n 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5\n 1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667\n-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z",leftharpoondownplus:"M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12\n 10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7\n-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0\nv40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z",lefthook:"M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5\n-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3\n-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21\n 71.5 23h399859zM103 281v-40h399897v40z",leftlinesegment:"M40 281 V428 H0 V94 H40 V241 H400000 v40z\nM40 281 V428 H0 V94 H40 V241 H400000 v40z",leftmapsto:"M40 281 V448H0V74H40V241H400000v40z\nM40 281 V448H0V74H40V241H400000v40z",leftToFrom:"M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23\n-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8\nc28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3\n 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z",longequal:"M0 50 h400000 v40H0z m0 194h40000v40H0z\nM0 50 h400000 v40H0z m0 194h40000v40H0z",midbrace:"M200428 334\nc-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14\n-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7\n 311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11\n 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z",midbraceunder:"M199572 214\nc100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14\n 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3\n 11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0\n-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z",oiintSize1:"M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6\n-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z\nm368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8\n60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z",oiintSize2:"M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8\n-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z\nm502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2\nc0 110 84 276 504 276s502.4-166 502.4-276z",oiiintSize1:"M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6\n-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z\nm525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0\n85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z",oiiintSize2:"M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8\n-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z\nm770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1\nc0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z",rightarrow:"M0 241v40h399891c-47.3 35.3-84 78-110 128\n-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20\n 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7\n 39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85\n-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5\n-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67\n 151.7 139 205zm0 0v40h399900v-40z",rightbrace:"M400000 542l\n-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5\ns-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1\nc124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z",rightbraceunder:"M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3\n 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237\n-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z",rightgroup:"M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0\n 3-1 3-3v-38c-76-158-257-219-435-219H0z",rightgroupunder:"M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18\n 0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z",rightharpoon:"M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3\n-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2\n-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58\n 69.2 92 94.5zm0 0v40h399900v-40z",rightharpoonplus:"M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11\n-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7\n 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z\nm0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z",rightharpoondown:"M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8\n 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5\n-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95\n-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z",rightharpoondownplus:"M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8\n 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3\n 8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3\n-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z\nm0-194v40h400000v-40zm0 0v40h400000v-40z",righthook:"M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3\n 15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0\n-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21\n 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z",rightlinesegment:"M399960 241 V94 h40 V428 h-40 V281 H0 v-40z\nM399960 241 V94 h40 V428 h-40 V281 H0 v-40z",rightToFrom:"M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23\n 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32\n-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142\n-167z M100 147v40h399900v-40zM0 341v40h399900v-40z",twoheadleftarrow:"M0 167c68 40\n 115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69\n-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3\n-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19\n-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101\n 10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z",twoheadrightarrow:"M400000 167\nc-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3\n 41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42\n 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333\n-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70\n 101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z",tilde1:"M200 55.538c-77 0-168 73.953-177 73.953-3 0-7\n-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0\n 114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0\n 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128\n-68.267.847-113-73.952-191-73.952z",tilde2:"M344 55.266c-142 0-300.638 81.316-311.5 86.418\n-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9\n 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114\nc1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751\n 181.476 676 181.476c-149 0-189-126.21-332-126.21z",tilde3:"M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457\n-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0\n 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697\n 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696\n -338 0-409-156.573-744-156.573z",tilde4:"M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345\n-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409\n 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9\n 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409\n -175.236-744-175.236z",vec:"M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5\n3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11\n10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63\n-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1\n-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59\nH213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359\nc-16-25.333-24-45-24-59z",widehat1:"M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22\nc-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z",widehat2:"M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widehat3:"M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widehat4:"M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widecheck1:"M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,\n-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z",widecheck2:"M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",widecheck3:"M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",widecheck4:"M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",baraboveleftarrow:"M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202\nc4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5\nc-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130\ns-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47\n121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6\ns2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11\nc0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z\nM100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z",rightarrowabovebar:"M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32\n-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0\n13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39\n-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5\n-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5\n-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67\n151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z",baraboveshortleftharpoon:"M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17\nc2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21\nc-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40\nc-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z\nM0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z",rightharpoonaboveshortbar:"M0,241 l0,40c399126,0,399993,0,399993,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6\nc-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z\nM0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z",shortbaraboveleftharpoon:"M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,\n1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,\n-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z\nM93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z",shortrightharpoonabovebar:"M53,241l0,40c398570,0,399437,0,399437,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6\nc-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z\nM500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z"};class bc{constructor(e){this.children=e,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(e){return this.classes.includes(e)}toNode(){for(var e=document.createDocumentFragment(),t=0;t<this.children.length;t++)e.appendChild(this.children[t].toNode());return e}toMarkup(){for(var e="",t=0;t<this.children.length;t++)e+=this.children[t].toMarkup();return e}toText(){return this.children.map(e=>e.toText()).join("")}}var yc={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:1.00375,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:1.00375},Sc={ex:!0,em:!0,mu:!0},Ac=function(e){return"string"!=typeof e&&(e=e.unit),e in yc||e in Sc||"ex"===e},wc=function(e,t){var r;if(e.unit in yc)r=yc[e.unit]/t.fontMetrics().ptPerEm/t.sizeMultiplier;else if("mu"===e.unit)r=t.fontMetrics().cssEmPerMu;else{var n;if(n=t.style.isTight()?t.havingStyle(t.style.text()):t,"ex"===e.unit)r=n.fontMetrics().xHeight;else{if("em"!==e.unit)throw new Yl("Invalid unit: '"+e.unit+"'");r=n.fontMetrics().quad}n!==t&&(r*=n.sizeMultiplier/t.sizeMultiplier)}return Math.min(e.number*r,t.maxSize)},Uc=function(e){return+e.toFixed(4)+"em"},xc=function(e){return e.filter(e=>e).join(" ")},Cc=function(e,t,r){if(this.classes=e||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=r||{},t){t.style.isTight()&&this.classes.push("mtight");var n=t.getColor();n&&(this.style.color=n)}},Rc=function(e){var t=document.createElement(e);for(var r of(t.className=xc(this.classes),Object.keys(this.style)))t.style[r]=this.style[r];for(var n of Object.keys(this.attributes))t.setAttribute(n,this.attributes[n]);for(var i=0;i<this.children.length;i++)t.appendChild(this.children[i].toNode());return t},Ec=/[\s"'>/=\x00-\x1f]/,Tc=function(e){var t="<"+e;this.classes.length&&(t+=' class="'+ec(xc(this.classes))+'"');var r="";for(var n of Object.keys(this.style))r+=Jl(n)+":"+this.style[n]+";";for(var i of(r&&(t+=' style="'+ec(r)+'"'),Object.keys(this.attributes))){if(Ec.test(i))throw new Yl("Invalid attribute name '"+i+"'");t+=" "+i+'="'+ec(this.attributes[i])+'"'}t+=">";for(var a=0;a<this.children.length;a++)t+=this.children[a].toMarkup();return t+"</"+e+">"};class kc{constructor(e,t,r,n){Cc.call(this,e,r,n),this.children=t||[]}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return this.classes.includes(e)}toNode(){return Rc.call(this,"span")}toMarkup(){return Tc.call(this,"span")}}class Fc{constructor(e,t,r,n){Cc.call(this,t,n),this.children=r||[],this.setAttribute("href",e)}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return this.classes.includes(e)}toNode(){return Rc.call(this,"a")}toMarkup(){return Tc.call(this,"a")}}class Wc{constructor(e,t,r){this.alt=t,this.src=e,this.classes=["mord"],this.height=0,this.depth=0,this.maxFontSize=0,this.style=r}hasClass(e){return this.classes.includes(e)}toNode(){var e=document.createElement("img");for(var t of(e.src=this.src,e.alt=this.alt,e.className="mord",Object.keys(this.style)))e.style[t]=this.style[t];return e}toMarkup(){var e='<img src="'+ec(this.src)+'" alt="'+ec(this.alt)+'"',t="";for(var r of Object.keys(this.style))t+=Jl(r)+":"+this.style[r]+";";return t&&(e+=' style="'+ec(t)+'"'),e+"'/>"}}var Nc={"î":"ı̂","ï":"ı̈","í":"ı́","ì":"ı̀"};class Kc{constructor(e,t,r,n,i,a,o,s){this.text=e,this.height=t||0,this.depth=r||0,this.italic=n||0,this.skew=i||0,this.width=a||0,this.classes=o||[],this.style=s||{},this.maxFontSize=0;var l=function(e){for(var t=0;t<mc.length;t++)for(var r=mc[t],n=0;n<r.blocks.length;n++){var i=r.blocks[n];if(e>=i[0]&&e<=i[1])return r.name}return null}(this.text.charCodeAt(0));l&&this.classes.push(l+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=Nc[this.text])}hasClass(e){return this.classes.includes(e)}toNode(){var e=document.createTextNode(this.text),t=null;for(var r of(this.italic>0&&((t=document.createElement("span")).style.marginRight=Uc(this.italic)),this.classes.length>0&&((t=t||document.createElement("span")).className=xc(this.classes)),Object.keys(this.style)))(t=t||document.createElement("span")).style[r]=this.style[r];return t?(t.appendChild(e),t):e}toMarkup(){var e=!1,t="<span";this.classes.length&&(e=!0,t+=' class="',t+=ec(xc(this.classes)),t+='"');var r="";for(var n of(this.italic>0&&(r+="margin-right:"+this.italic+"em;"),Object.keys(this.style)))r+=Jl(n)+":"+this.style[n]+";";r&&(e=!0,t+=' style="'+ec(r)+'"');var i=ec(this.text);return e?(t+=">",t+=i,t+="</span>"):i}}class Oc{constructor(e,t){this.children=e||[],this.attributes=t||{}}toNode(){var e=document.createElementNS("http://www.w3.org/2000/svg","svg");for(var t of Object.keys(this.attributes))e.setAttribute(t,this.attributes[t]);for(var r=0;r<this.children.length;r++)e.appendChild(this.children[r].toNode());return e}toMarkup(){var e='<svg xmlns="http://www.w3.org/2000/svg"';for(var t of Object.keys(this.attributes))e+=" "+t+'="'+ec(this.attributes[t])+'"';e+=">";for(var r=0;r<this.children.length;r++)e+=this.children[r].toMarkup();return e+"</svg>"}}class Pc{constructor(e,t){this.pathName=e,this.alternate=t}toNode(){var e=document.createElementNS("http://www.w3.org/2000/svg","path");return this.alternate?e.setAttribute("d",this.alternate):e.setAttribute("d",vc[this.pathName]),e}toMarkup(){return this.alternate?'<path d="'+ec(this.alternate)+'"/>':'<path d="'+ec(vc[this.pathName])+'"/>'}}class Ic{constructor(e){this.attributes=e||{}}toNode(){var e=document.createElementNS("http://www.w3.org/2000/svg","line");for(var t of Object.keys(this.attributes))e.setAttribute(t,this.attributes[t]);return e}toMarkup(){var e="<line";for(var t of Object.keys(this.attributes))e+=" "+t+'="'+ec(this.attributes[t])+'"';return e+"/>"}}var Lc={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},Bc={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},Dc={"Å":"A","Ð":"D","Þ":"o","å":"a","ð":"d","þ":"o","А":"A","Б":"B","В":"B","Г":"F","Д":"A","Е":"E","Ж":"K","З":"3","И":"N","Й":"N","К":"K","Л":"N","М":"M","Н":"H","О":"O","П":"N","Р":"P","С":"C","Т":"T","У":"y","Ф":"O","Х":"X","Ц":"U","Ч":"h","Ш":"W","Щ":"W","Ъ":"B","Ы":"X","Ь":"B","Э":"3","Ю":"X","Я":"R","а":"a","б":"b","в":"a","г":"r","д":"y","е":"e","ж":"m","з":"e","и":"n","й":"n","к":"n","л":"n","м":"m","н":"n","о":"o","п":"n","р":"p","с":"c","т":"o","у":"y","ф":"b","х":"x","ц":"n","ч":"n","ш":"w","щ":"w","ъ":"a","ы":"m","ь":"a","э":"e","ю":"m","я":"r"};function Xc(e,t,r){if(!Lc[t])throw new Error("Font metrics not found for font: "+t+".");var n=e.charCodeAt(0),i=Lc[t][n];if(!i&&e[0]in Dc&&(n=Dc[e[0]].charCodeAt(0),i=Lc[t][n]),i||"text"!==r||gc(n)&&(i=Lc[t][77]),i)return{depth:i[0],height:i[1],italic:i[2],skew:i[3],width:i[4]}}var jc={},Mc={bin:1,close:1,inner:1,open:1,punct:1,rel:1},zc={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},Gc={math:{},text:{}};function Zc(e,t,r,n,i,a){Gc[e][i]={font:t,group:r,replace:n},a&&n&&(Gc[e][n]=Gc[e][i])}var Hc="math",Yc="text",Qc="main",Jc="ams",_c="accent-token",$c="bin",eu="close",tu="inner",ru="mathord",nu="op-token",iu="open",au="punct",ou="rel",su="spacing",lu="textord";Zc(Hc,Qc,ou,"≡","\\equiv",!0),Zc(Hc,Qc,ou,"≺","\\prec",!0),Zc(Hc,Qc,ou,"≻","\\succ",!0),Zc(Hc,Qc,ou,"∼","\\sim",!0),Zc(Hc,Qc,ou,"⊥","\\perp"),Zc(Hc,Qc,ou,"⪯","\\preceq",!0),Zc(Hc,Qc,ou,"⪰","\\succeq",!0),Zc(Hc,Qc,ou,"≃","\\simeq",!0),Zc(Hc,Qc,ou,"∣","\\mid",!0),Zc(Hc,Qc,ou,"≪","\\ll",!0),Zc(Hc,Qc,ou,"≫","\\gg",!0),Zc(Hc,Qc,ou,"≍","\\asymp",!0),Zc(Hc,Qc,ou,"∥","\\parallel"),Zc(Hc,Qc,ou,"⋈","\\bowtie",!0),Zc(Hc,Qc,ou,"⌣","\\smile",!0),Zc(Hc,Qc,ou,"⊑","\\sqsubseteq",!0),Zc(Hc,Qc,ou,"⊒","\\sqsupseteq",!0),Zc(Hc,Qc,ou,"≐","\\doteq",!0),Zc(Hc,Qc,ou,"⌢","\\frown",!0),Zc(Hc,Qc,ou,"∋","\\ni",!0),Zc(Hc,Qc,ou,"∝","\\propto",!0),Zc(Hc,Qc,ou,"⊢","\\vdash",!0),Zc(Hc,Qc,ou,"⊣","\\dashv",!0),Zc(Hc,Qc,ou,"∋","\\owns"),Zc(Hc,Qc,au,".","\\ldotp"),Zc(Hc,Qc,au,"⋅","\\cdotp"),Zc(Hc,Qc,au,"⋅","·"),Zc(Yc,Qc,lu,"⋅","·"),Zc(Hc,Qc,lu,"#","\\#"),Zc(Yc,Qc,lu,"#","\\#"),Zc(Hc,Qc,lu,"&","\\&"),Zc(Yc,Qc,lu,"&","\\&"),Zc(Hc,Qc,lu,"ℵ","\\aleph",!0),Zc(Hc,Qc,lu,"∀","\\forall",!0),Zc(Hc,Qc,lu,"ℏ","\\hbar",!0),Zc(Hc,Qc,lu,"∃","\\exists",!0),Zc(Hc,Qc,lu,"∇","\\nabla",!0),Zc(Hc,Qc,lu,"♭","\\flat",!0),Zc(Hc,Qc,lu,"ℓ","\\ell",!0),Zc(Hc,Qc,lu,"♮","\\natural",!0),Zc(Hc,Qc,lu,"♣","\\clubsuit",!0),Zc(Hc,Qc,lu,"℘","\\wp",!0),Zc(Hc,Qc,lu,"♯","\\sharp",!0),Zc(Hc,Qc,lu,"♢","\\diamondsuit",!0),Zc(Hc,Qc,lu,"ℜ","\\Re",!0),Zc(Hc,Qc,lu,"♡","\\heartsuit",!0),Zc(Hc,Qc,lu,"ℑ","\\Im",!0),Zc(Hc,Qc,lu,"♠","\\spadesuit",!0),Zc(Hc,Qc,lu,"§","\\S",!0),Zc(Yc,Qc,lu,"§","\\S"),Zc(Hc,Qc,lu,"¶","\\P",!0),Zc(Yc,Qc,lu,"¶","\\P"),Zc(Hc,Qc,lu,"†","\\dag"),Zc(Yc,Qc,lu,"†","\\dag"),Zc(Yc,Qc,lu,"†","\\textdagger"),Zc(Hc,Qc,lu,"‡","\\ddag"),Zc(Yc,Qc,lu,"‡","\\ddag"),Zc(Yc,Qc,lu,"‡","\\textdaggerdbl"),Zc(Hc,Qc,eu,"⎱","\\rmoustache",!0),Zc(Hc,Qc,iu,"⎰","\\lmoustache",!0),Zc(Hc,Qc,eu,"⟯","\\rgroup",!0),Zc(Hc,Qc,iu,"⟮","\\lgroup",!0),Zc(Hc,Qc,$c,"∓","\\mp",!0),Zc(Hc,Qc,$c,"⊖","\\ominus",!0),Zc(Hc,Qc,$c,"⊎","\\uplus",!0),Zc(Hc,Qc,$c,"⊓","\\sqcap",!0),Zc(Hc,Qc,$c,"∗","\\ast"),Zc(Hc,Qc,$c,"⊔","\\sqcup",!0),Zc(Hc,Qc,$c,"◯","\\bigcirc",!0),Zc(Hc,Qc,$c,"∙","\\bullet",!0),Zc(Hc,Qc,$c,"‡","\\ddagger"),Zc(Hc,Qc,$c,"≀","\\wr",!0),Zc(Hc,Qc,$c,"⨿","\\amalg"),Zc(Hc,Qc,$c,"&","\\And"),Zc(Hc,Qc,ou,"⟵","\\longleftarrow",!0),Zc(Hc,Qc,ou,"⇐","\\Leftarrow",!0),Zc(Hc,Qc,ou,"⟸","\\Longleftarrow",!0),Zc(Hc,Qc,ou,"⟶","\\longrightarrow",!0),Zc(Hc,Qc,ou,"⇒","\\Rightarrow",!0),Zc(Hc,Qc,ou,"⟹","\\Longrightarrow",!0),Zc(Hc,Qc,ou,"↔","\\leftrightarrow",!0),Zc(Hc,Qc,ou,"⟷","\\longleftrightarrow",!0),Zc(Hc,Qc,ou,"⇔","\\Leftrightarrow",!0),Zc(Hc,Qc,ou,"⟺","\\Longleftrightarrow",!0),Zc(Hc,Qc,ou,"↦","\\mapsto",!0),Zc(Hc,Qc,ou,"⟼","\\longmapsto",!0),Zc(Hc,Qc,ou,"↗","\\nearrow",!0),Zc(Hc,Qc,ou,"↩","\\hookleftarrow",!0),Zc(Hc,Qc,ou,"↪","\\hookrightarrow",!0),Zc(Hc,Qc,ou,"↘","\\searrow",!0),Zc(Hc,Qc,ou,"↼","\\leftharpoonup",!0),Zc(Hc,Qc,ou,"⇀","\\rightharpoonup",!0),Zc(Hc,Qc,ou,"↙","\\swarrow",!0),Zc(Hc,Qc,ou,"↽","\\leftharpoondown",!0),Zc(Hc,Qc,ou,"⇁","\\rightharpoondown",!0),Zc(Hc,Qc,ou,"↖","\\nwarrow",!0),Zc(Hc,Qc,ou,"⇌","\\rightleftharpoons",!0),Zc(Hc,Jc,ou,"≮","\\nless",!0),Zc(Hc,Jc,ou,"","\\@nleqslant"),Zc(Hc,Jc,ou,"","\\@nleqq"),Zc(Hc,Jc,ou,"⪇","\\lneq",!0),Zc(Hc,Jc,ou,"≨","\\lneqq",!0),Zc(Hc,Jc,ou,"","\\@lvertneqq"),Zc(Hc,Jc,ou,"⋦","\\lnsim",!0),Zc(Hc,Jc,ou,"⪉","\\lnapprox",!0),Zc(Hc,Jc,ou,"⊀","\\nprec",!0),Zc(Hc,Jc,ou,"⋠","\\npreceq",!0),Zc(Hc,Jc,ou,"⋨","\\precnsim",!0),Zc(Hc,Jc,ou,"⪹","\\precnapprox",!0),Zc(Hc,Jc,ou,"≁","\\nsim",!0),Zc(Hc,Jc,ou,"","\\@nshortmid"),Zc(Hc,Jc,ou,"∤","\\nmid",!0),Zc(Hc,Jc,ou,"⊬","\\nvdash",!0),Zc(Hc,Jc,ou,"⊭","\\nvDash",!0),Zc(Hc,Jc,ou,"⋪","\\ntriangleleft"),Zc(Hc,Jc,ou,"⋬","\\ntrianglelefteq",!0),Zc(Hc,Jc,ou,"⊊","\\subsetneq",!0),Zc(Hc,Jc,ou,"","\\@varsubsetneq"),Zc(Hc,Jc,ou,"⫋","\\subsetneqq",!0),Zc(Hc,Jc,ou,"","\\@varsubsetneqq"),Zc(Hc,Jc,ou,"≯","\\ngtr",!0),Zc(Hc,Jc,ou,"","\\@ngeqslant"),Zc(Hc,Jc,ou,"","\\@ngeqq"),Zc(Hc,Jc,ou,"⪈","\\gneq",!0),Zc(Hc,Jc,ou,"≩","\\gneqq",!0),Zc(Hc,Jc,ou,"","\\@gvertneqq"),Zc(Hc,Jc,ou,"⋧","\\gnsim",!0),Zc(Hc,Jc,ou,"⪊","\\gnapprox",!0),Zc(Hc,Jc,ou,"⊁","\\nsucc",!0),Zc(Hc,Jc,ou,"⋡","\\nsucceq",!0),Zc(Hc,Jc,ou,"⋩","\\succnsim",!0),Zc(Hc,Jc,ou,"⪺","\\succnapprox",!0),Zc(Hc,Jc,ou,"≆","\\ncong",!0),Zc(Hc,Jc,ou,"","\\@nshortparallel"),Zc(Hc,Jc,ou,"∦","\\nparallel",!0),Zc(Hc,Jc,ou,"⊯","\\nVDash",!0),Zc(Hc,Jc,ou,"⋫","\\ntriangleright"),Zc(Hc,Jc,ou,"⋭","\\ntrianglerighteq",!0),Zc(Hc,Jc,ou,"","\\@nsupseteqq"),Zc(Hc,Jc,ou,"⊋","\\supsetneq",!0),Zc(Hc,Jc,ou,"","\\@varsupsetneq"),Zc(Hc,Jc,ou,"⫌","\\supsetneqq",!0),Zc(Hc,Jc,ou,"","\\@varsupsetneqq"),Zc(Hc,Jc,ou,"⊮","\\nVdash",!0),Zc(Hc,Jc,ou,"⪵","\\precneqq",!0),Zc(Hc,Jc,ou,"⪶","\\succneqq",!0),Zc(Hc,Jc,ou,"","\\@nsubseteqq"),Zc(Hc,Jc,$c,"⊴","\\unlhd"),Zc(Hc,Jc,$c,"⊵","\\unrhd"),Zc(Hc,Jc,ou,"↚","\\nleftarrow",!0),Zc(Hc,Jc,ou,"↛","\\nrightarrow",!0),Zc(Hc,Jc,ou,"⇍","\\nLeftarrow",!0),Zc(Hc,Jc,ou,"⇏","\\nRightarrow",!0),Zc(Hc,Jc,ou,"↮","\\nleftrightarrow",!0),Zc(Hc,Jc,ou,"⇎","\\nLeftrightarrow",!0),Zc(Hc,Jc,ou,"△","\\vartriangle"),Zc(Hc,Jc,lu,"ℏ","\\hslash"),Zc(Hc,Jc,lu,"▽","\\triangledown"),Zc(Hc,Jc,lu,"◊","\\lozenge"),Zc(Hc,Jc,lu,"Ⓢ","\\circledS"),Zc(Hc,Jc,lu,"®","\\circledR"),Zc(Yc,Jc,lu,"®","\\circledR"),Zc(Hc,Jc,lu,"∡","\\measuredangle",!0),Zc(Hc,Jc,lu,"∄","\\nexists"),Zc(Hc,Jc,lu,"℧","\\mho"),Zc(Hc,Jc,lu,"Ⅎ","\\Finv",!0),Zc(Hc,Jc,lu,"⅁","\\Game",!0),Zc(Hc,Jc,lu,"‵","\\backprime"),Zc(Hc,Jc,lu,"▲","\\blacktriangle"),Zc(Hc,Jc,lu,"▼","\\blacktriangledown"),Zc(Hc,Jc,lu,"■","\\blacksquare"),Zc(Hc,Jc,lu,"⧫","\\blacklozenge"),Zc(Hc,Jc,lu,"★","\\bigstar"),Zc(Hc,Jc,lu,"∢","\\sphericalangle",!0),Zc(Hc,Jc,lu,"∁","\\complement",!0),Zc(Hc,Jc,lu,"ð","\\eth",!0),Zc(Yc,Qc,lu,"ð","ð"),Zc(Hc,Jc,lu,"╱","\\diagup"),Zc(Hc,Jc,lu,"╲","\\diagdown"),Zc(Hc,Jc,lu,"□","\\square"),Zc(Hc,Jc,lu,"□","\\Box"),Zc(Hc,Jc,lu,"◊","\\Diamond"),Zc(Hc,Jc,lu,"¥","\\yen",!0),Zc(Yc,Jc,lu,"¥","\\yen",!0),Zc(Hc,Jc,lu,"✓","\\checkmark",!0),Zc(Yc,Jc,lu,"✓","\\checkmark"),Zc(Hc,Jc,lu,"ℶ","\\beth",!0),Zc(Hc,Jc,lu,"ℸ","\\daleth",!0),Zc(Hc,Jc,lu,"ℷ","\\gimel",!0),Zc(Hc,Jc,lu,"ϝ","\\digamma",!0),Zc(Hc,Jc,lu,"ϰ","\\varkappa"),Zc(Hc,Jc,iu,"┌","\\@ulcorner",!0),Zc(Hc,Jc,eu,"┐","\\@urcorner",!0),Zc(Hc,Jc,iu,"└","\\@llcorner",!0),Zc(Hc,Jc,eu,"┘","\\@lrcorner",!0),Zc(Hc,Jc,ou,"≦","\\leqq",!0),Zc(Hc,Jc,ou,"⩽","\\leqslant",!0),Zc(Hc,Jc,ou,"⪕","\\eqslantless",!0),Zc(Hc,Jc,ou,"≲","\\lesssim",!0),Zc(Hc,Jc,ou,"⪅","\\lessapprox",!0),Zc(Hc,Jc,ou,"≊","\\approxeq",!0),Zc(Hc,Jc,$c,"⋖","\\lessdot"),Zc(Hc,Jc,ou,"⋘","\\lll",!0),Zc(Hc,Jc,ou,"≶","\\lessgtr",!0),Zc(Hc,Jc,ou,"⋚","\\lesseqgtr",!0),Zc(Hc,Jc,ou,"⪋","\\lesseqqgtr",!0),Zc(Hc,Jc,ou,"≑","\\doteqdot"),Zc(Hc,Jc,ou,"≓","\\risingdotseq",!0),Zc(Hc,Jc,ou,"≒","\\fallingdotseq",!0),Zc(Hc,Jc,ou,"∽","\\backsim",!0),Zc(Hc,Jc,ou,"⋍","\\backsimeq",!0),Zc(Hc,Jc,ou,"⫅","\\subseteqq",!0),Zc(Hc,Jc,ou,"⋐","\\Subset",!0),Zc(Hc,Jc,ou,"⊏","\\sqsubset",!0),Zc(Hc,Jc,ou,"≼","\\preccurlyeq",!0),Zc(Hc,Jc,ou,"⋞","\\curlyeqprec",!0),Zc(Hc,Jc,ou,"≾","\\precsim",!0),Zc(Hc,Jc,ou,"⪷","\\precapprox",!0),Zc(Hc,Jc,ou,"⊲","\\vartriangleleft"),Zc(Hc,Jc,ou,"⊴","\\trianglelefteq"),Zc(Hc,Jc,ou,"⊨","\\vDash",!0),Zc(Hc,Jc,ou,"⊪","\\Vvdash",!0),Zc(Hc,Jc,ou,"⌣","\\smallsmile"),Zc(Hc,Jc,ou,"⌢","\\smallfrown"),Zc(Hc,Jc,ou,"≏","\\bumpeq",!0),Zc(Hc,Jc,ou,"≎","\\Bumpeq",!0),Zc(Hc,Jc,ou,"≧","\\geqq",!0),Zc(Hc,Jc,ou,"⩾","\\geqslant",!0),Zc(Hc,Jc,ou,"⪖","\\eqslantgtr",!0),Zc(Hc,Jc,ou,"≳","\\gtrsim",!0),Zc(Hc,Jc,ou,"⪆","\\gtrapprox",!0),Zc(Hc,Jc,$c,"⋗","\\gtrdot"),Zc(Hc,Jc,ou,"⋙","\\ggg",!0),Zc(Hc,Jc,ou,"≷","\\gtrless",!0),Zc(Hc,Jc,ou,"⋛","\\gtreqless",!0),Zc(Hc,Jc,ou,"⪌","\\gtreqqless",!0),Zc(Hc,Jc,ou,"≖","\\eqcirc",!0),Zc(Hc,Jc,ou,"≗","\\circeq",!0),Zc(Hc,Jc,ou,"≜","\\triangleq",!0),Zc(Hc,Jc,ou,"∼","\\thicksim"),Zc(Hc,Jc,ou,"≈","\\thickapprox"),Zc(Hc,Jc,ou,"⫆","\\supseteqq",!0),Zc(Hc,Jc,ou,"⋑","\\Supset",!0),Zc(Hc,Jc,ou,"⊐","\\sqsupset",!0),Zc(Hc,Jc,ou,"≽","\\succcurlyeq",!0),Zc(Hc,Jc,ou,"⋟","\\curlyeqsucc",!0),Zc(Hc,Jc,ou,"≿","\\succsim",!0),Zc(Hc,Jc,ou,"⪸","\\succapprox",!0),Zc(Hc,Jc,ou,"⊳","\\vartriangleright"),Zc(Hc,Jc,ou,"⊵","\\trianglerighteq"),Zc(Hc,Jc,ou,"⊩","\\Vdash",!0),Zc(Hc,Jc,ou,"∣","\\shortmid"),Zc(Hc,Jc,ou,"∥","\\shortparallel"),Zc(Hc,Jc,ou,"≬","\\between",!0),Zc(Hc,Jc,ou,"⋔","\\pitchfork",!0),Zc(Hc,Jc,ou,"∝","\\varpropto"),Zc(Hc,Jc,ou,"◀","\\blacktriangleleft"),Zc(Hc,Jc,ou,"∴","\\therefore",!0),Zc(Hc,Jc,ou,"∍","\\backepsilon"),Zc(Hc,Jc,ou,"▶","\\blacktriangleright"),Zc(Hc,Jc,ou,"∵","\\because",!0),Zc(Hc,Jc,ou,"⋘","\\llless"),Zc(Hc,Jc,ou,"⋙","\\gggtr"),Zc(Hc,Jc,$c,"⊲","\\lhd"),Zc(Hc,Jc,$c,"⊳","\\rhd"),Zc(Hc,Jc,ou,"≂","\\eqsim",!0),Zc(Hc,Qc,ou,"⋈","\\Join"),Zc(Hc,Jc,ou,"≑","\\Doteq",!0),Zc(Hc,Jc,$c,"∔","\\dotplus",!0),Zc(Hc,Jc,$c,"∖","\\smallsetminus"),Zc(Hc,Jc,$c,"⋒","\\Cap",!0),Zc(Hc,Jc,$c,"⋓","\\Cup",!0),Zc(Hc,Jc,$c,"⩞","\\doublebarwedge",!0),Zc(Hc,Jc,$c,"⊟","\\boxminus",!0),Zc(Hc,Jc,$c,"⊞","\\boxplus",!0),Zc(Hc,Jc,$c,"⋇","\\divideontimes",!0),Zc(Hc,Jc,$c,"⋉","\\ltimes",!0),Zc(Hc,Jc,$c,"⋊","\\rtimes",!0),Zc(Hc,Jc,$c,"⋋","\\leftthreetimes",!0),Zc(Hc,Jc,$c,"⋌","\\rightthreetimes",!0),Zc(Hc,Jc,$c,"⋏","\\curlywedge",!0),Zc(Hc,Jc,$c,"⋎","\\curlyvee",!0),Zc(Hc,Jc,$c,"⊝","\\circleddash",!0),Zc(Hc,Jc,$c,"⊛","\\circledast",!0),Zc(Hc,Jc,$c,"⋅","\\centerdot"),Zc(Hc,Jc,$c,"⊺","\\intercal",!0),Zc(Hc,Jc,$c,"⋒","\\doublecap"),Zc(Hc,Jc,$c,"⋓","\\doublecup"),Zc(Hc,Jc,$c,"⊠","\\boxtimes",!0),Zc(Hc,Jc,ou,"⇢","\\dashrightarrow",!0),Zc(Hc,Jc,ou,"⇠","\\dashleftarrow",!0),Zc(Hc,Jc,ou,"⇇","\\leftleftarrows",!0),Zc(Hc,Jc,ou,"⇆","\\leftrightarrows",!0),Zc(Hc,Jc,ou,"⇚","\\Lleftarrow",!0),Zc(Hc,Jc,ou,"↞","\\twoheadleftarrow",!0),Zc(Hc,Jc,ou,"↢","\\leftarrowtail",!0),Zc(Hc,Jc,ou,"↫","\\looparrowleft",!0),Zc(Hc,Jc,ou,"⇋","\\leftrightharpoons",!0),Zc(Hc,Jc,ou,"↶","\\curvearrowleft",!0),Zc(Hc,Jc,ou,"↺","\\circlearrowleft",!0),Zc(Hc,Jc,ou,"↰","\\Lsh",!0),Zc(Hc,Jc,ou,"⇈","\\upuparrows",!0),Zc(Hc,Jc,ou,"↿","\\upharpoonleft",!0),Zc(Hc,Jc,ou,"⇃","\\downharpoonleft",!0),Zc(Hc,Qc,ou,"⊶","\\origof",!0),Zc(Hc,Qc,ou,"⊷","\\imageof",!0),Zc(Hc,Jc,ou,"⊸","\\multimap",!0),Zc(Hc,Jc,ou,"↭","\\leftrightsquigarrow",!0),Zc(Hc,Jc,ou,"⇉","\\rightrightarrows",!0),Zc(Hc,Jc,ou,"⇄","\\rightleftarrows",!0),Zc(Hc,Jc,ou,"↠","\\twoheadrightarrow",!0),Zc(Hc,Jc,ou,"↣","\\rightarrowtail",!0),Zc(Hc,Jc,ou,"↬","\\looparrowright",!0),Zc(Hc,Jc,ou,"↷","\\curvearrowright",!0),Zc(Hc,Jc,ou,"↻","\\circlearrowright",!0),Zc(Hc,Jc,ou,"↱","\\Rsh",!0),Zc(Hc,Jc,ou,"⇊","\\downdownarrows",!0),Zc(Hc,Jc,ou,"↾","\\upharpoonright",!0),Zc(Hc,Jc,ou,"⇂","\\downharpoonright",!0),Zc(Hc,Jc,ou,"⇝","\\rightsquigarrow",!0),Zc(Hc,Jc,ou,"⇝","\\leadsto"),Zc(Hc,Jc,ou,"⇛","\\Rrightarrow",!0),Zc(Hc,Jc,ou,"↾","\\restriction"),Zc(Hc,Qc,lu,"‘","`"),Zc(Hc,Qc,lu,"$","\\$"),Zc(Yc,Qc,lu,"$","\\$"),Zc(Yc,Qc,lu,"$","\\textdollar"),Zc(Hc,Qc,lu,"%","\\%"),Zc(Yc,Qc,lu,"%","\\%"),Zc(Hc,Qc,lu,"_","\\_"),Zc(Yc,Qc,lu,"_","\\_"),Zc(Yc,Qc,lu,"_","\\textunderscore"),Zc(Hc,Qc,lu,"∠","\\angle",!0),Zc(Hc,Qc,lu,"∞","\\infty",!0),Zc(Hc,Qc,lu,"′","\\prime"),Zc(Hc,Qc,lu,"△","\\triangle"),Zc(Hc,Qc,lu,"Γ","\\Gamma",!0),Zc(Hc,Qc,lu,"Δ","\\Delta",!0),Zc(Hc,Qc,lu,"Θ","\\Theta",!0),Zc(Hc,Qc,lu,"Λ","\\Lambda",!0),Zc(Hc,Qc,lu,"Ξ","\\Xi",!0),Zc(Hc,Qc,lu,"Π","\\Pi",!0),Zc(Hc,Qc,lu,"Σ","\\Sigma",!0),Zc(Hc,Qc,lu,"Υ","\\Upsilon",!0),Zc(Hc,Qc,lu,"Φ","\\Phi",!0),Zc(Hc,Qc,lu,"Ψ","\\Psi",!0),Zc(Hc,Qc,lu,"Ω","\\Omega",!0),Zc(Hc,Qc,lu,"A","Α"),Zc(Hc,Qc,lu,"B","Β"),Zc(Hc,Qc,lu,"E","Ε"),Zc(Hc,Qc,lu,"Z","Ζ"),Zc(Hc,Qc,lu,"H","Η"),Zc(Hc,Qc,lu,"I","Ι"),Zc(Hc,Qc,lu,"K","Κ"),Zc(Hc,Qc,lu,"M","Μ"),Zc(Hc,Qc,lu,"N","Ν"),Zc(Hc,Qc,lu,"O","Ο"),Zc(Hc,Qc,lu,"P","Ρ"),Zc(Hc,Qc,lu,"T","Τ"),Zc(Hc,Qc,lu,"X","Χ"),Zc(Hc,Qc,lu,"¬","\\neg",!0),Zc(Hc,Qc,lu,"¬","\\lnot"),Zc(Hc,Qc,lu,"⊤","\\top"),Zc(Hc,Qc,lu,"⊥","\\bot"),Zc(Hc,Qc,lu,"∅","\\emptyset"),Zc(Hc,Jc,lu,"∅","\\varnothing"),Zc(Hc,Qc,ru,"α","\\alpha",!0),Zc(Hc,Qc,ru,"β","\\beta",!0),Zc(Hc,Qc,ru,"γ","\\gamma",!0),Zc(Hc,Qc,ru,"δ","\\delta",!0),Zc(Hc,Qc,ru,"ϵ","\\epsilon",!0),Zc(Hc,Qc,ru,"ζ","\\zeta",!0),Zc(Hc,Qc,ru,"η","\\eta",!0),Zc(Hc,Qc,ru,"θ","\\theta",!0),Zc(Hc,Qc,ru,"ι","\\iota",!0),Zc(Hc,Qc,ru,"κ","\\kappa",!0),Zc(Hc,Qc,ru,"λ","\\lambda",!0),Zc(Hc,Qc,ru,"μ","\\mu",!0),Zc(Hc,Qc,ru,"ν","\\nu",!0),Zc(Hc,Qc,ru,"ξ","\\xi",!0),Zc(Hc,Qc,ru,"ο","\\omicron",!0),Zc(Hc,Qc,ru,"π","\\pi",!0),Zc(Hc,Qc,ru,"ρ","\\rho",!0),Zc(Hc,Qc,ru,"σ","\\sigma",!0),Zc(Hc,Qc,ru,"τ","\\tau",!0),Zc(Hc,Qc,ru,"υ","\\upsilon",!0),Zc(Hc,Qc,ru,"ϕ","\\phi",!0),Zc(Hc,Qc,ru,"χ","\\chi",!0),Zc(Hc,Qc,ru,"ψ","\\psi",!0),Zc(Hc,Qc,ru,"ω","\\omega",!0),Zc(Hc,Qc,ru,"ε","\\varepsilon",!0),Zc(Hc,Qc,ru,"ϑ","\\vartheta",!0),Zc(Hc,Qc,ru,"ϖ","\\varpi",!0),Zc(Hc,Qc,ru,"ϱ","\\varrho",!0),Zc(Hc,Qc,ru,"ς","\\varsigma",!0),Zc(Hc,Qc,ru,"φ","\\varphi",!0),Zc(Hc,Qc,$c,"∗","*",!0),Zc(Hc,Qc,$c,"+","+"),Zc(Hc,Qc,$c,"−","-",!0),Zc(Hc,Qc,$c,"⋅","\\cdot",!0),Zc(Hc,Qc,$c,"∘","\\circ",!0),Zc(Hc,Qc,$c,"÷","\\div",!0),Zc(Hc,Qc,$c,"±","\\pm",!0),Zc(Hc,Qc,$c,"×","\\times",!0),Zc(Hc,Qc,$c,"∩","\\cap",!0),Zc(Hc,Qc,$c,"∪","\\cup",!0),Zc(Hc,Qc,$c,"∖","\\setminus",!0),Zc(Hc,Qc,$c,"∧","\\land"),Zc(Hc,Qc,$c,"∨","\\lor"),Zc(Hc,Qc,$c,"∧","\\wedge",!0),Zc(Hc,Qc,$c,"∨","\\vee",!0),Zc(Hc,Qc,lu,"√","\\surd"),Zc(Hc,Qc,iu,"⟨","\\langle",!0),Zc(Hc,Qc,iu,"∣","\\lvert"),Zc(Hc,Qc,iu,"∥","\\lVert"),Zc(Hc,Qc,eu,"?","?"),Zc(Hc,Qc,eu,"!","!"),Zc(Hc,Qc,eu,"⟩","\\rangle",!0),Zc(Hc,Qc,eu,"∣","\\rvert"),Zc(Hc,Qc,eu,"∥","\\rVert"),Zc(Hc,Qc,ou,"=","="),Zc(Hc,Qc,ou,":",":"),Zc(Hc,Qc,ou,"≈","\\approx",!0),Zc(Hc,Qc,ou,"≅","\\cong",!0),Zc(Hc,Qc,ou,"≥","\\ge"),Zc(Hc,Qc,ou,"≥","\\geq",!0),Zc(Hc,Qc,ou,"←","\\gets"),Zc(Hc,Qc,ou,">","\\gt",!0),Zc(Hc,Qc,ou,"∈","\\in",!0),Zc(Hc,Qc,ou,"","\\@not"),Zc(Hc,Qc,ou,"⊂","\\subset",!0),Zc(Hc,Qc,ou,"⊃","\\supset",!0),Zc(Hc,Qc,ou,"⊆","\\subseteq",!0),Zc(Hc,Qc,ou,"⊇","\\supseteq",!0),Zc(Hc,Jc,ou,"⊈","\\nsubseteq",!0),Zc(Hc,Jc,ou,"⊉","\\nsupseteq",!0),Zc(Hc,Qc,ou,"⊨","\\models"),Zc(Hc,Qc,ou,"←","\\leftarrow",!0),Zc(Hc,Qc,ou,"≤","\\le"),Zc(Hc,Qc,ou,"≤","\\leq",!0),Zc(Hc,Qc,ou,"<","\\lt",!0),Zc(Hc,Qc,ou,"→","\\rightarrow",!0),Zc(Hc,Qc,ou,"→","\\to"),Zc(Hc,Jc,ou,"≱","\\ngeq",!0),Zc(Hc,Jc,ou,"≰","\\nleq",!0),Zc(Hc,Qc,su," ","\\ "),Zc(Hc,Qc,su," ","\\space"),Zc(Hc,Qc,su," ","\\nobreakspace"),Zc(Yc,Qc,su," ","\\ "),Zc(Yc,Qc,su," "," "),Zc(Yc,Qc,su," ","\\space"),Zc(Yc,Qc,su," ","\\nobreakspace"),Zc(Hc,Qc,su,null,"\\nobreak"),Zc(Hc,Qc,su,null,"\\allowbreak"),Zc(Hc,Qc,au,",",","),Zc(Hc,Qc,au,";",";"),Zc(Hc,Jc,$c,"⊼","\\barwedge",!0),Zc(Hc,Jc,$c,"⊻","\\veebar",!0),Zc(Hc,Qc,$c,"⊙","\\odot",!0),Zc(Hc,Qc,$c,"⊕","\\oplus",!0),Zc(Hc,Qc,$c,"⊗","\\otimes",!0),Zc(Hc,Qc,lu,"∂","\\partial",!0),Zc(Hc,Qc,$c,"⊘","\\oslash",!0),Zc(Hc,Jc,$c,"⊚","\\circledcirc",!0),Zc(Hc,Jc,$c,"⊡","\\boxdot",!0),Zc(Hc,Qc,$c,"△","\\bigtriangleup"),Zc(Hc,Qc,$c,"▽","\\bigtriangledown"),Zc(Hc,Qc,$c,"†","\\dagger"),Zc(Hc,Qc,$c,"⋄","\\diamond"),Zc(Hc,Qc,$c,"⋆","\\star"),Zc(Hc,Qc,$c,"◃","\\triangleleft"),Zc(Hc,Qc,$c,"▹","\\triangleright"),Zc(Hc,Qc,iu,"{","\\{"),Zc(Yc,Qc,lu,"{","\\{"),Zc(Yc,Qc,lu,"{","\\textbraceleft"),Zc(Hc,Qc,eu,"}","\\}"),Zc(Yc,Qc,lu,"}","\\}"),Zc(Yc,Qc,lu,"}","\\textbraceright"),Zc(Hc,Qc,iu,"{","\\lbrace"),Zc(Hc,Qc,eu,"}","\\rbrace"),Zc(Hc,Qc,iu,"[","\\lbrack",!0),Zc(Yc,Qc,lu,"[","\\lbrack",!0),Zc(Hc,Qc,eu,"]","\\rbrack",!0),Zc(Yc,Qc,lu,"]","\\rbrack",!0),Zc(Hc,Qc,iu,"(","\\lparen",!0),Zc(Hc,Qc,eu,")","\\rparen",!0),Zc(Yc,Qc,lu,"<","\\textless",!0),Zc(Yc,Qc,lu,">","\\textgreater",!0),Zc(Hc,Qc,iu,"⌊","\\lfloor",!0),Zc(Hc,Qc,eu,"⌋","\\rfloor",!0),Zc(Hc,Qc,iu,"⌈","\\lceil",!0),Zc(Hc,Qc,eu,"⌉","\\rceil",!0),Zc(Hc,Qc,lu,"\\","\\backslash"),Zc(Hc,Qc,lu,"∣","|"),Zc(Hc,Qc,lu,"∣","\\vert"),Zc(Yc,Qc,lu,"|","\\textbar",!0),Zc(Hc,Qc,lu,"∥","\\|"),Zc(Hc,Qc,lu,"∥","\\Vert"),Zc(Yc,Qc,lu,"∥","\\textbardbl"),Zc(Yc,Qc,lu,"~","\\textasciitilde"),Zc(Yc,Qc,lu,"\\","\\textbackslash"),Zc(Yc,Qc,lu,"^","\\textasciicircum"),Zc(Hc,Qc,ou,"↑","\\uparrow",!0),Zc(Hc,Qc,ou,"⇑","\\Uparrow",!0),Zc(Hc,Qc,ou,"↓","\\downarrow",!0),Zc(Hc,Qc,ou,"⇓","\\Downarrow",!0),Zc(Hc,Qc,ou,"↕","\\updownarrow",!0),Zc(Hc,Qc,ou,"⇕","\\Updownarrow",!0),Zc(Hc,Qc,nu,"∐","\\coprod"),Zc(Hc,Qc,nu,"⋁","\\bigvee"),Zc(Hc,Qc,nu,"⋀","\\bigwedge"),Zc(Hc,Qc,nu,"⨄","\\biguplus"),Zc(Hc,Qc,nu,"⋂","\\bigcap"),Zc(Hc,Qc,nu,"⋃","\\bigcup"),Zc(Hc,Qc,nu,"∫","\\int"),Zc(Hc,Qc,nu,"∫","\\intop"),Zc(Hc,Qc,nu,"∬","\\iint"),Zc(Hc,Qc,nu,"∭","\\iiint"),Zc(Hc,Qc,nu,"∏","\\prod"),Zc(Hc,Qc,nu,"∑","\\sum"),Zc(Hc,Qc,nu,"⨂","\\bigotimes"),Zc(Hc,Qc,nu,"⨁","\\bigoplus"),Zc(Hc,Qc,nu,"⨀","\\bigodot"),Zc(Hc,Qc,nu,"∮","\\oint"),Zc(Hc,Qc,nu,"∯","\\oiint"),Zc(Hc,Qc,nu,"∰","\\oiiint"),Zc(Hc,Qc,nu,"⨆","\\bigsqcup"),Zc(Hc,Qc,nu,"∫","\\smallint"),Zc(Yc,Qc,tu,"…","\\textellipsis"),Zc(Hc,Qc,tu,"…","\\mathellipsis"),Zc(Yc,Qc,tu,"…","\\ldots",!0),Zc(Hc,Qc,tu,"…","\\ldots",!0),Zc(Hc,Qc,tu,"⋯","\\@cdots",!0),Zc(Hc,Qc,tu,"⋱","\\ddots",!0),Zc(Hc,Qc,lu,"⋮","\\varvdots"),Zc(Yc,Qc,lu,"⋮","\\varvdots"),Zc(Hc,Qc,_c,"ˊ","\\acute"),Zc(Hc,Qc,_c,"ˋ","\\grave"),Zc(Hc,Qc,_c,"¨","\\ddot"),Zc(Hc,Qc,_c,"~","\\tilde"),Zc(Hc,Qc,_c,"ˉ","\\bar"),Zc(Hc,Qc,_c,"˘","\\breve"),Zc(Hc,Qc,_c,"ˇ","\\check"),Zc(Hc,Qc,_c,"^","\\hat"),Zc(Hc,Qc,_c,"⃗","\\vec"),Zc(Hc,Qc,_c,"˙","\\dot"),Zc(Hc,Qc,_c,"˚","\\mathring"),Zc(Hc,Qc,ru,"","\\@imath"),Zc(Hc,Qc,ru,"","\\@jmath"),Zc(Hc,Qc,lu,"ı","ı"),Zc(Hc,Qc,lu,"ȷ","ȷ"),Zc(Yc,Qc,lu,"ı","\\i",!0),Zc(Yc,Qc,lu,"ȷ","\\j",!0),Zc(Yc,Qc,lu,"ß","\\ss",!0),Zc(Yc,Qc,lu,"æ","\\ae",!0),Zc(Yc,Qc,lu,"œ","\\oe",!0),Zc(Yc,Qc,lu,"ø","\\o",!0),Zc(Yc,Qc,lu,"Æ","\\AE",!0),Zc(Yc,Qc,lu,"Œ","\\OE",!0),Zc(Yc,Qc,lu,"Ø","\\O",!0),Zc(Yc,Qc,_c,"ˊ","\\'"),Zc(Yc,Qc,_c,"ˋ","\\`"),Zc(Yc,Qc,_c,"ˆ","\\^"),Zc(Yc,Qc,_c,"˜","\\~"),Zc(Yc,Qc,_c,"ˉ","\\="),Zc(Yc,Qc,_c,"˘","\\u"),Zc(Yc,Qc,_c,"˙","\\."),Zc(Yc,Qc,_c,"¸","\\c"),Zc(Yc,Qc,_c,"˚","\\r"),Zc(Yc,Qc,_c,"ˇ","\\v"),Zc(Yc,Qc,_c,"¨",'\\"'),Zc(Yc,Qc,_c,"˝","\\H"),Zc(Yc,Qc,_c,"◯","\\textcircled");var cu={"--":!0,"---":!0,"``":!0,"''":!0};Zc(Yc,Qc,lu,"–","--",!0),Zc(Yc,Qc,lu,"–","\\textendash"),Zc(Yc,Qc,lu,"—","---",!0),Zc(Yc,Qc,lu,"—","\\textemdash"),Zc(Yc,Qc,lu,"‘","`",!0),Zc(Yc,Qc,lu,"‘","\\textquoteleft"),Zc(Yc,Qc,lu,"’","'",!0),Zc(Yc,Qc,lu,"’","\\textquoteright"),Zc(Yc,Qc,lu,"“","``",!0),Zc(Yc,Qc,lu,"“","\\textquotedblleft"),Zc(Yc,Qc,lu,"”","''",!0),Zc(Yc,Qc,lu,"”","\\textquotedblright"),Zc(Hc,Qc,lu,"°","\\degree",!0),Zc(Yc,Qc,lu,"°","\\degree"),Zc(Yc,Qc,lu,"°","\\textdegree",!0),Zc(Hc,Qc,lu,"£","\\pounds"),Zc(Hc,Qc,lu,"£","\\mathsterling",!0),Zc(Yc,Qc,lu,"£","\\pounds"),Zc(Yc,Qc,lu,"£","\\textsterling",!0),Zc(Hc,Jc,lu,"✠","\\maltese"),Zc(Yc,Jc,lu,"✠","\\maltese");for(var uu=0;uu<14;uu++){var du='0123456789/@."'.charAt(uu);Zc(Hc,Qc,lu,du,du)}for(var pu=0;pu<25;pu++){var hu='0123456789!@*()-=+";:?/.,'.charAt(pu);Zc(Yc,Qc,lu,hu,hu)}for(var qu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",fu=0;fu<52;fu++){var mu=qu.charAt(fu);Zc(Hc,Qc,ru,mu,mu),Zc(Yc,Qc,lu,mu,mu)}Zc(Hc,Jc,lu,"C","ℂ"),Zc(Yc,Jc,lu,"C","ℂ"),Zc(Hc,Jc,lu,"H","ℍ"),Zc(Yc,Jc,lu,"H","ℍ"),Zc(Hc,Jc,lu,"N","ℕ"),Zc(Yc,Jc,lu,"N","ℕ"),Zc(Hc,Jc,lu,"P","ℙ"),Zc(Yc,Jc,lu,"P","ℙ"),Zc(Hc,Jc,lu,"Q","ℚ"),Zc(Yc,Jc,lu,"Q","ℚ"),Zc(Hc,Jc,lu,"R","ℝ"),Zc(Yc,Jc,lu,"R","ℝ"),Zc(Hc,Jc,lu,"Z","ℤ"),Zc(Yc,Jc,lu,"Z","ℤ"),Zc(Hc,Qc,ru,"h","ℎ"),Zc(Yc,Qc,ru,"h","ℎ");for(var Vu="",gu=0;gu<52;gu++){var vu=qu.charAt(gu);Zc(Hc,Qc,ru,vu,Vu=String.fromCharCode(55349,56320+gu)),Zc(Yc,Qc,lu,vu,Vu),Zc(Hc,Qc,ru,vu,Vu=String.fromCharCode(55349,56372+gu)),Zc(Yc,Qc,lu,vu,Vu),Zc(Hc,Qc,ru,vu,Vu=String.fromCharCode(55349,56424+gu)),Zc(Yc,Qc,lu,vu,Vu),Zc(Hc,Qc,ru,vu,Vu=String.fromCharCode(55349,56580+gu)),Zc(Yc,Qc,lu,vu,Vu),Zc(Hc,Qc,ru,vu,Vu=String.fromCharCode(55349,56684+gu)),Zc(Yc,Qc,lu,vu,Vu),Zc(Hc,Qc,ru,vu,Vu=String.fromCharCode(55349,56736+gu)),Zc(Yc,Qc,lu,vu,Vu),Zc(Hc,Qc,ru,vu,Vu=String.fromCharCode(55349,56788+gu)),Zc(Yc,Qc,lu,vu,Vu),Zc(Hc,Qc,ru,vu,Vu=String.fromCharCode(55349,56840+gu)),Zc(Yc,Qc,lu,vu,Vu),Zc(Hc,Qc,ru,vu,Vu=String.fromCharCode(55349,56944+gu)),Zc(Yc,Qc,lu,vu,Vu),gu<26&&(Zc(Hc,Qc,ru,vu,Vu=String.fromCharCode(55349,56632+gu)),Zc(Yc,Qc,lu,vu,Vu),Zc(Hc,Qc,ru,vu,Vu=String.fromCharCode(55349,56476+gu)),Zc(Yc,Qc,lu,vu,Vu))}Zc(Hc,Qc,ru,"k",Vu=String.fromCharCode(55349,56668)),Zc(Yc,Qc,lu,"k",Vu);for(var bu=0;bu<10;bu++){var yu=bu.toString();Zc(Hc,Qc,ru,yu,Vu=String.fromCharCode(55349,57294+bu)),Zc(Yc,Qc,lu,yu,Vu),Zc(Hc,Qc,ru,yu,Vu=String.fromCharCode(55349,57314+bu)),Zc(Yc,Qc,lu,yu,Vu),Zc(Hc,Qc,ru,yu,Vu=String.fromCharCode(55349,57324+bu)),Zc(Yc,Qc,lu,yu,Vu),Zc(Hc,Qc,ru,yu,Vu=String.fromCharCode(55349,57334+bu)),Zc(Yc,Qc,lu,yu,Vu)}for(var Su=0;Su<3;Su++){var Au="ÐÞþ".charAt(Su);Zc(Hc,Qc,ru,Au,Au),Zc(Yc,Qc,lu,Au,Au)}var wu=[["mathbf","textbf","Main-Bold"],["mathbf","textbf","Main-Bold"],["mathnormal","textit","Math-Italic"],["mathnormal","textit","Math-Italic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["mathscr","textscr","Script-Regular"],["","",""],["","",""],["","",""],["mathfrak","textfrak","Fraktur-Regular"],["mathfrak","textfrak","Fraktur-Regular"],["mathbb","textbb","AMS-Regular"],["mathbb","textbb","AMS-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathitsf","textitsf","SansSerif-Italic"],["mathitsf","textitsf","SansSerif-Italic"],["","",""],["","",""],["mathtt","texttt","Typewriter-Regular"],["mathtt","texttt","Typewriter-Regular"]],Uu=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],xu=function(e,t,r){if(Gc[r][e]){var n=Gc[r][e].replace;n&&(e=n)}return{value:e,metrics:Xc(e,t,r)}},Cu=function(e,t,r,n,i){var a,o=xu(e,t,r),s=o.metrics;if(e=o.value,s){var l=s.italic;("text"===r||n&&"mathit"===n.font)&&(l=0),a=new Kc(e,s.height,s.depth,l,s.skew,s.width,i)}else a=new Kc(e,0,0,0,0,0,i);if(n){a.maxFontSize=n.sizeMultiplier,n.style.isTight()&&a.classes.push("mtight");var c=n.getColor();c&&(a.style.color=c)}return a},Ru=function(e,t,r,n){return void 0===n&&(n=[]),"boldsymbol"===r.font&&xu(e,"Main-Bold",t).metrics?Cu(e,"Main-Bold",t,r,n.concat(["mathbf"])):"\\"===e||"main"===Gc[t][e].font?Cu(e,"Main-Regular",t,r,n):Cu(e,"AMS-Regular",t,r,n.concat(["amsrm"]))},Eu=function(e,t,r){var n=e.mode,i=e.text,a=["mord"],o="math"===n||"text"===n&&t.font,s=o?t.font:t.fontFamily,l="",c="";if(55349===i.charCodeAt(0)&&([l,c]=((e,t)=>{var r=1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536,n="math"===t?0:1;if(119808<=r&&r<120484){var i=Math.floor((r-119808)/26);return[wu[i][2],wu[i][n]]}if(120782<=r&&r<=120831){var a=Math.floor((r-120782)/10);return[Uu[a][2],Uu[a][n]]}if(120485===r||120486===r)return[wu[0][2],wu[0][n]];if(120486<r&&r<120782)return["",""];throw new Yl("Unsupported character: "+e)})(i,n)),l.length>0)return Cu(i,l,n,t,a.concat(c));if(s){var u,d;if("boldsymbol"===s){var p=function(e,t,r,n,i){return"textord"!==i&&xu(e,"Math-BoldItalic",t).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}}(i,n,0,0,r);u=p.fontName,d=[p.fontClass]}else o?(u=Du[s].fontName,d=[s]):(u=Bu(s,t.fontWeight,t.fontShape),d=[s,t.fontWeight,t.fontShape]);if(xu(i,u,n).metrics)return Cu(i,u,n,t,a.concat(d));if(cu.hasOwnProperty(i)&&"Typewriter"===u.slice(0,10)){for(var h=[],q=0;q<i.length;q++)h.push(Cu(i[q],u,n,t,a.concat(d)));return Ou(h)}}if("mathord"===r)return Cu(i,"Math-Italic",n,t,a.concat(["mathnormal"]));if("textord"===r){var f=Gc[n][i]&&Gc[n][i].font;if("ams"===f){var m=Bu("amsrm",t.fontWeight,t.fontShape);return Cu(i,m,n,t,a.concat("amsrm",t.fontWeight,t.fontShape))}if("main"!==f&&f){var V=Bu(f,t.fontWeight,t.fontShape);return Cu(i,V,n,t,a.concat(V,t.fontWeight,t.fontShape))}var g=Bu("textrm",t.fontWeight,t.fontShape);return Cu(i,g,n,t,a.concat(t.fontWeight,t.fontShape))}throw new Error("unexpected type: "+r+" in makeOrd")},Tu=(e,t)=>{if(xc(e.classes)!==xc(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize||0!==e.italic&&e.hasClass("mathnormal"))return!1;if(1===e.classes.length){var r=e.classes[0];if("mbin"===r||"mord"===r)return!1}for(var n of Object.keys(e.style))if(e.style[n]!==t.style[n])return!1;for(var i of Object.keys(t.style))if(e.style[i]!==t.style[i])return!1;return!0},ku=e=>{for(var t=0;t<e.length-1;t++){var r=e[t],n=e[t+1];r instanceof Kc&&n instanceof Kc&&Tu(r,n)&&(r.text+=n.text,r.height=Math.max(r.height,n.height),r.depth=Math.max(r.depth,n.depth),r.italic=n.italic,e.splice(t+1,1),t--)}return e},Fu=function(e){for(var t=0,r=0,n=0,i=0;i<e.children.length;i++){var a=e.children[i];a.height>t&&(t=a.height),a.depth>r&&(r=a.depth),a.maxFontSize>n&&(n=a.maxFontSize)}e.height=t,e.depth=r,e.maxFontSize=n},Wu=function(e,t,r,n){var i=new kc(e,t,r,n);return Fu(i),i},Nu=(e,t,r,n)=>new kc(e,t,r,n),Ku=function(e,t,r){var n=Wu([e],[],t);return n.height=Math.max(r||t.fontMetrics().defaultRuleThickness,t.minRuleThickness),n.style.borderBottomWidth=Uc(n.height),n.maxFontSize=1,n},Ou=function(e){var t=new bc(e);return Fu(t),t},Pu=function(e,t){return e instanceof bc?Wu([],[e],t):e},Iu=function(e,t){for(var{children:r,depth:n}=function(e){if("individualShift"===e.positionType){for(var t=e.children,r=[t[0]],n=-t[0].shift-t[0].elem.depth,i=n,a=1;a<t.length;a++){var o=-t[a].shift-i-t[a].elem.depth,s=o-(t[a-1].elem.height+t[a-1].elem.depth);i+=o,r.push({type:"kern",size:s}),r.push(t[a])}return{children:r,depth:n}}var l;if("top"===e.positionType){for(var c=e.positionData,u=0;u<e.children.length;u++){var d=e.children[u];c-="kern"===d.type?d.size:d.elem.height+d.elem.depth}l=c}else if("bottom"===e.positionType)l=-e.positionData;else{var p=e.children[0];if("elem"!==p.type)throw new Error('First child must have type "elem".');if("shift"===e.positionType)l=-p.elem.depth-e.positionData;else{if("firstBaseline"!==e.positionType)throw new Error("Invalid positionType "+e.positionType+".");l=-p.elem.depth}}return{children:e.children,depth:l}}(e),i=0,a=0;a<r.length;a++){var o=r[a];if("elem"===o.type){var s=o.elem;i=Math.max(i,s.maxFontSize,s.height)}}i+=2;var l=Wu(["pstrut"],[]);l.style.height=Uc(i);for(var c=[],u=n,d=n,p=n,h=0;h<r.length;h++){var q=r[h];if("kern"===q.type)p+=q.size;else{var f=q.elem,m=q.wrapperClasses||[],V=q.wrapperStyle||{},g=Wu(m,[l,f],void 0,V);g.style.top=Uc(-i-p-f.depth),q.marginLeft&&(g.style.marginLeft=q.marginLeft),q.marginRight&&(g.style.marginRight=q.marginRight),c.push(g),p+=f.height+f.depth}u=Math.min(u,p),d=Math.max(d,p)}var v,b=Wu(["vlist"],c);if(b.style.height=Uc(d),u<0){var y=Wu([],[]),S=Wu(["vlist"],[y]);S.style.height=Uc(-u);var A=Wu(["vlist-s"],[new Kc("")]);v=[Wu(["vlist-r"],[b,A]),Wu(["vlist-r"],[S])]}else v=[Wu(["vlist-r"],[b])];var w=Wu(["vlist-t"],v);return 2===v.length&&w.classes.push("vlist-t2"),w.height=d,w.depth=-u,w},Lu=(e,t)=>{var r=Wu(["mspace"],[],t),n=wc(e,t);return r.style.marginRight=Uc(n),r},Bu=function(e,t,r){var n="";switch(e){case"amsrm":n="AMS";break;case"textrm":n="Main";break;case"textsf":n="SansSerif";break;case"texttt":n="Typewriter";break;default:n=e}return n+"-"+("textbf"===t&&"textit"===r?"BoldItalic":"textbf"===t?"Bold":"textit"===t?"Italic":"Regular")},Du={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathsfit:{variant:"sans-serif-italic",fontName:"SansSerif-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},Xu={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},ju=function(e,t){var[r,n,i]=Xu[e],a=new Pc(r),o=new Oc([a],{width:Uc(n),height:Uc(i),style:"width:"+Uc(n),viewBox:"0 0 "+1e3*n+" "+1e3*i,preserveAspectRatio:"xMinYMin"}),s=Nu(["overlay"],[o],t);return s.height=i,s.style.height=Uc(i),s.style.width=Uc(n),s},Mu={number:3,unit:"mu"},zu={number:4,unit:"mu"},Gu={number:5,unit:"mu"},Zu={mord:{mop:Mu,mbin:zu,mrel:Gu,minner:Mu},mop:{mord:Mu,mop:Mu,mrel:Gu,minner:Mu},mbin:{mord:zu,mop:zu,mopen:zu,minner:zu},mrel:{mord:Gu,mop:Gu,mopen:Gu,minner:Gu},mopen:{},mclose:{mop:Mu,mbin:zu,mrel:Gu,minner:Mu},mpunct:{mord:Mu,mop:Mu,mrel:Gu,mopen:Mu,mclose:Mu,mpunct:Mu,minner:Mu},minner:{mord:Mu,mop:Mu,mbin:zu,mrel:Gu,mopen:Mu,mpunct:Mu,minner:Mu}},Hu={mord:{mop:Mu},mop:{mord:Mu,mop:Mu},mbin:{},mrel:{},mopen:{},mclose:{mop:Mu},mpunct:{},minner:{mop:Mu}},Yu={},Qu={},Ju={};function _u(e){for(var{type:t,names:r,props:n,handler:i,htmlBuilder:a,mathmlBuilder:o}=e,s={type:t,numArgs:n.numArgs,argTypes:n.argTypes,allowedInArgument:!!n.allowedInArgument,allowedInText:!!n.allowedInText,allowedInMath:void 0===n.allowedInMath||n.allowedInMath,numOptionalArgs:n.numOptionalArgs||0,infix:!!n.infix,primitive:!!n.primitive,handler:i},l=0;l<r.length;++l)Yu[r[l]]=s;t&&(a&&(Qu[t]=a),o&&(Ju[t]=o))}function $u(e){var{type:t,htmlBuilder:r,mathmlBuilder:n}=e;_u({type:t,names:[],props:{numArgs:0},handler(){throw new Error("Should never be called.")},htmlBuilder:r,mathmlBuilder:n})}var ed=function(e){return"ordgroup"===e.type&&1===e.body.length?e.body[0]:e},td=function(e){return"ordgroup"===e.type?e.body:[e]},rd=new Set(["leftmost","mbin","mopen","mrel","mop","mpunct"]),nd=new Set(["rightmost","mrel","mclose","mpunct"]),id={display:fc.DISPLAY,text:fc.TEXT,script:fc.SCRIPT,scriptscript:fc.SCRIPTSCRIPT},ad={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},od=function(e,t,r,n){void 0===n&&(n=[null,null]);for(var i=[],a=0;a<e.length;a++){var o=pd(e[a],t);if(o instanceof bc){var s=o.children;i.push(...s)}else i.push(o)}if(ku(i),!r)return i;var l=t;if(1===e.length){var c=e[0];"sizing"===c.type?l=t.havingSize(c.size):"styling"===c.type&&(l=t.havingStyle(id[c.style]))}var u=Wu([n[0]||"leftmost"],[],t),d=Wu([n[1]||"rightmost"],[],t),p="root"===r;return sd(i,(e,t)=>{var r=t.classes[0],n=e.classes[0];"mbin"===r&&nd.has(n)?t.classes[0]="mord":"mbin"===n&&rd.has(r)&&(e.classes[0]="mord")},{node:u},d,p),sd(i,(e,t)=>{var r,n,i=ud(t),a=ud(e),o=i&&a?e.hasClass("mtight")?null==(r=Hu[i])?void 0:r[a]:null==(n=Zu[i])?void 0:n[a]:null;if(o)return Lu(o,l)},{node:u},d,p),i},sd=function(e,t,r,n,i){n&&e.push(n);for(var a=0;a<e.length;a++){var o=e[a],s=ld(o);if(s)sd(s.children,t,r,null,i);else{var l=!o.hasClass("mspace");if(l){var c=t(o,r.node);c&&(r.insertAfter?r.insertAfter(c):(e.unshift(c),a++))}l?r.node=o:i&&o.hasClass("newline")&&(r.node=Wu(["leftmost"])),r.insertAfter=(t=>r=>{e.splice(t+1,0,r),a++})(a)}}n&&e.pop()},ld=function(e){return e instanceof bc||e instanceof Fc||e instanceof kc&&e.hasClass("enclosing")?e:null},cd=function(e,t){var r=ld(e);if(r){var n=r.children;if(n.length){if("right"===t)return cd(n[n.length-1],"right");if("left"===t)return cd(n[0],"left")}}return e},ud=function(e,t){if(!e)return null;t&&(e=cd(e,t));var r=e.classes[0];return ad[r]||null},dd=function(e,t){var r=["nulldelimiter"].concat(e.baseSizingClasses());return Wu(t.concat(r))},pd=function(e,t,r){if(!e)return Wu();if(Qu[e.type]){var n=Qu[e.type](e,t);if(r&&t.size!==r.size){n=Wu(t.sizingClasses(r),[n],t);var i=t.sizeMultiplier/r.sizeMultiplier;n.height*=i,n.depth*=i}return n}throw new Yl("Got group of unknown type: '"+e.type+"'")};function hd(e,t){var r=Wu(["base"],e,t),n=Wu(["strut"]);return n.style.height=Uc(r.height+r.depth),r.depth&&(n.style.verticalAlign=Uc(-r.depth)),r.children.unshift(n),r}function qd(e,t){var r=null;1===e.length&&"tag"===e[0].type&&(r=e[0].tag,e=e[0].body);var n,i=od(e,t,"root");2===i.length&&i[1].hasClass("tag")&&(n=i.pop());for(var a,o=[],s=[],l=0;l<i.length;l++)if(s.push(i[l]),i[l].hasClass("mbin")||i[l].hasClass("mrel")||i[l].hasClass("allowbreak")){for(var c=!1;l<i.length-1&&i[l+1].hasClass("mspace")&&!i[l+1].hasClass("newline");)l++,s.push(i[l]),i[l].hasClass("nobreak")&&(c=!0);c||(o.push(hd(s,t)),s=[])}else i[l].hasClass("newline")&&(s.pop(),s.length>0&&(o.push(hd(s,t)),s=[]),o.push(i[l]));s.length>0&&o.push(hd(s,t)),r?((a=hd(od(r,t,!0),t)).classes=["tag"],o.push(a)):n&&o.push(n);var u=Wu(["katex-html"],o);if(u.setAttribute("aria-hidden","true"),a){var d=a.children[0];d.style.height=Uc(u.height+u.depth),u.depth&&(d.style.verticalAlign=Uc(-u.depth))}return u}function fd(e){return new bc(e)}class md{constructor(e,t,r){this.type=e,this.attributes={},this.children=t||[],this.classes=r||[]}setAttribute(e,t){this.attributes[e]=t}getAttribute(e){return this.attributes[e]}toNode(){var e=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);this.classes.length>0&&(e.className=xc(this.classes));for(var r=0;r<this.children.length;r++)if(this.children[r]instanceof Vd&&this.children[r+1]instanceof Vd){for(var n=this.children[r].toText()+this.children[++r].toText();this.children[r+1]instanceof Vd;)n+=this.children[++r].toText();e.appendChild(new Vd(n).toNode())}else e.appendChild(this.children[r].toNode());return e}toMarkup(){var e="<"+this.type;for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&(e+=" "+t+'="',e+=ec(this.attributes[t]),e+='"');this.classes.length>0&&(e+=' class ="'+ec(xc(this.classes))+'"'),e+=">";for(var r=0;r<this.children.length;r++)e+=this.children[r].toMarkup();return e+"</"+this.type+">"}toText(){return this.children.map(e=>e.toText()).join("")}}class Vd{constructor(e){this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return ec(this.toText())}toText(){return this.text}}class gd{constructor(e){this.width=e,this.character=e>=.05555&&e<=.05556?" ":e>=.1666&&e<=.1667?" ":e>=.2222&&e<=.2223?" ":e>=.2777&&e<=.2778?" ":e>=-.05556&&e<=-.05555?" ":e>=-.1667&&e<=-.1666?" ":e>=-.2223&&e<=-.2222?" ":e>=-.2778&&e<=-.2777?" ":null}toNode(){if(this.character)return document.createTextNode(this.character);var e=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return e.setAttribute("width",Uc(this.width)),e}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+Uc(this.width)+'"/>'}toText(){return this.character?this.character:" "}}var vd=new Set(["\\imath","\\jmath"]),bd=new Set(["mrow","mtable"]),yd=function(e,t,r){return!Gc[t][e]||!Gc[t][e].replace||55349===e.charCodeAt(0)||cu.hasOwnProperty(e)&&r&&(r.fontFamily&&"tt"===r.fontFamily.slice(4,6)||r.font&&"tt"===r.font.slice(4,6))||(e=Gc[t][e].replace),new Vd(e)},Sd=function(e){return 1===e.length?e[0]:new md("mrow",e)},Ad=function(e,t){if("texttt"===t.fontFamily)return"monospace";if("textsf"===t.fontFamily)return"textit"===t.fontShape&&"textbf"===t.fontWeight?"sans-serif-bold-italic":"textit"===t.fontShape?"sans-serif-italic":"textbf"===t.fontWeight?"bold-sans-serif":"sans-serif";if("textit"===t.fontShape&&"textbf"===t.fontWeight)return"bold-italic";if("textit"===t.fontShape)return"italic";if("textbf"===t.fontWeight)return"bold";var r=t.font;if(!r||"mathnormal"===r)return null;var n=e.mode;if("mathit"===r)return"italic";if("boldsymbol"===r)return"textord"===e.type?"bold":"bold-italic";if("mathbf"===r)return"bold";if("mathbb"===r)return"double-struck";if("mathsfit"===r)return"sans-serif-italic";if("mathfrak"===r)return"fraktur";if("mathscr"===r||"mathcal"===r)return"script";if("mathsf"===r)return"sans-serif";if("mathtt"===r)return"monospace";var i=e.text;if(vd.has(i))return null;if(Gc[n][i]){var a=Gc[n][i].replace;a&&(i=a)}return Xc(i,Du[r].fontName,n)?Du[r].variant:null};function wd(e){if(!e)return!1;if("mi"===e.type&&1===e.children.length){var t=e.children[0];return t instanceof Vd&&"."===t.text}if("mo"===e.type&&1===e.children.length&&"true"===e.getAttribute("separator")&&"0em"===e.getAttribute("lspace")&&"0em"===e.getAttribute("rspace")){var r=e.children[0];return r instanceof Vd&&","===r.text}return!1}var Ud=function(e,t,r){if(1===e.length){var n=Cd(e[0],t);return r&&n instanceof md&&"mo"===n.type&&(n.setAttribute("lspace","0em"),n.setAttribute("rspace","0em")),[n]}for(var i,a=[],o=0;o<e.length;o++){var s=Cd(e[o],t);if(s instanceof md&&i instanceof md){if("mtext"===s.type&&"mtext"===i.type&&s.getAttribute("mathvariant")===i.getAttribute("mathvariant")){i.children.push(...s.children);continue}if("mn"===s.type&&"mn"===i.type){i.children.push(...s.children);continue}if(wd(s)&&"mn"===i.type){i.children.push(...s.children);continue}if("mn"===s.type&&wd(i))s.children=[...i.children,...s.children],a.pop();else if(("msup"===s.type||"msub"===s.type)&&s.children.length>=1&&("mn"===i.type||wd(i))){var l=s.children[0];l instanceof md&&"mn"===l.type&&(l.children=[...i.children,...l.children],a.pop())}else if("mi"===i.type&&1===i.children.length){var c=i.children[0];if(c instanceof Vd&&"̸"===c.text&&("mo"===s.type||"mi"===s.type||"mn"===s.type)){var u=s.children[0];u instanceof Vd&&u.text.length>0&&(u.text=u.text.slice(0,1)+"̸"+u.text.slice(1),a.pop())}}}a.push(s),i=s}return a},xd=function(e,t,r){return Sd(Ud(e,t,r))},Cd=function(e,t){if(!e)return new md("mrow");if(Ju[e.type])return Ju[e.type](e,t);throw new Yl("Got group of unknown type: '"+e.type+"'")};function Rd(e,t,r,n,i){var a,o=Ud(e,r);a=1===o.length&&o[0]instanceof md&&bd.has(o[0].type)?o[0]:new md("mrow",o);var s=new md("annotation",[new Vd(t)]);s.setAttribute("encoding","application/x-tex");var l=new md("semantics",[a,s]),c=new md("math",[l]);return c.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),n&&c.setAttribute("display","block"),Wu([i?"katex":"katex-mathml"],[c])}var Ed=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],Td=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],kd=function(e,t){return t.size<2?e:Ed[e-1][t.size-1]};class Fd{constructor(e){this.style=e.style,this.color=e.color,this.size=e.size||Fd.BASESIZE,this.textSize=e.textSize||this.size,this.phantom=!!e.phantom,this.font=e.font||"",this.fontFamily=e.fontFamily||"",this.fontWeight=e.fontWeight||"",this.fontShape=e.fontShape||"",this.sizeMultiplier=Td[this.size-1],this.maxSize=e.maxSize,this.minRuleThickness=e.minRuleThickness,this._fontMetrics=void 0}extend(e){var t={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};return Object.assign(t,e),new Fd(t)}havingStyle(e){return this.style===e?this:this.extend({style:e,size:kd(this.textSize,e)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(e){return this.size===e&&this.textSize===e?this:this.extend({style:this.style.text(),size:e,textSize:e,sizeMultiplier:Td[e-1]})}havingBaseStyle(e){e=e||this.style.text();var t=kd(Fd.BASESIZE,e);return this.size===t&&this.textSize===Fd.BASESIZE&&this.style===e?this:this.extend({style:e,size:t})}havingBaseSizing(){var e;switch(this.style.id){case 4:case 5:e=3;break;case 6:case 7:e=1;break;default:e=6}return this.extend({style:this.style.text(),size:e})}withColor(e){return this.extend({color:e})}withPhantom(){return this.extend({phantom:!0})}withFont(e){return this.extend({font:e})}withTextFontFamily(e){return this.extend({fontFamily:e,font:""})}withTextFontWeight(e){return this.extend({fontWeight:e,font:""})}withTextFontShape(e){return this.extend({fontShape:e,font:""})}sizingClasses(e){return e.size!==this.size?["sizing","reset-size"+e.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==Fd.BASESIZE?["sizing","reset-size"+this.size,"size"+Fd.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=function(e){var t;if(!jc[t=e>=5?0:e>=3?1:2]){var r=jc[t]={cssEmPerMu:Bc.quad[t]/18};for(var n in Bc)Bc.hasOwnProperty(n)&&(r[n]=Bc[n][t])}return jc[t]}(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}Fd.BASESIZE=6;var Wd={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋","\\cdrightarrow":"→","\\cdleftarrow":"←","\\cdlongequal":"="},Nd=function(e){var t=new md("mo",[new Vd(Wd[e.replace(/^\\/,"")])]);return t.setAttribute("stretchy","true"),t},Kd={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},Od=new Set(["widehat","widecheck","widetilde","utilde"]),Pd=function(e,t){var{span:r,minWidth:n,height:i}=function(){var r=4e5,n=e.label.slice(1);if(Od.has(n)){var i,a,o,s=e,l="ordgroup"===s.base.type?s.base.body.length:1;if(l>5)"widehat"===n||"widecheck"===n?(i=420,r=2364,o=.42,a=n+"4"):(i=312,r=2340,o=.34,a="tilde4");else{var c=[1,1,2,2,3,3][l];"widehat"===n||"widecheck"===n?(r=[0,1062,2364,2364,2364][c],i=[0,239,300,360,420][c],o=[0,.24,.3,.3,.36,.42][c],a=n+c):(r=[0,600,1033,2339,2340][c],i=[0,260,286,306,312][c],o=[0,.26,.286,.3,.306,.34][c],a="tilde"+c)}var u=new Pc(a),d=new Oc([u],{width:"100%",height:Uc(o),viewBox:"0 0 "+r+" "+i,preserveAspectRatio:"none"});return{span:Nu([],[d],t),minWidth:0,height:o}}var p,h,q=[],f=Kd[n],[m,V,g]=f,v=g/1e3,b=m.length;if(1===b)p=["hide-tail"],h=[f[3]];else if(2===b)p=["halfarrow-left","halfarrow-right"],h=["xMinYMin","xMaxYMin"];else{if(3!==b)throw new Error("Correct katexImagesData or update code here to support\n "+b+" children.");p=["brace-left","brace-center","brace-right"],h=["xMinYMin","xMidYMin","xMaxYMin"]}for(var y=0;y<b;y++){var S=new Pc(m[y]),A=new Oc([S],{width:"400em",height:Uc(v),viewBox:"0 0 "+r+" "+g,preserveAspectRatio:h[y]+" slice"}),w=Nu([p[y]],[A],t);if(1===b)return{span:w,minWidth:V,height:v};w.style.height=Uc(v),q.push(w)}return{span:Wu(["stretchy"],q,t),minWidth:V,height:v}}();return r.height=i,r.style.height=Uc(i),n>0&&(r.style.minWidth=Uc(n)),r};function Id(e,t){if(!e||e.type!==t)throw new Error("Expected node of type "+t+", but got "+(e?"node of type "+e.type:String(e)));return e}function Ld(e){var t=Bd(e);if(!t)throw new Error("Expected node of symbol group type, but got "+(e?"node of type "+e.type:String(e)));return t}function Bd(e){return e&&("atom"===e.type||zc.hasOwnProperty(e.type))?e:null}var Dd=e=>{return e instanceof Kc?e:((t=e)instanceof kc||t instanceof Fc||t instanceof bc)&&1===e.children.length?Dd(e.children[0]):void 0;var t},Xd=(e,t)=>{var r,n,i;e&&"supsub"===e.type?(r=(n=Id(e.base,"accent")).base,e.base=r,i=function(e){if(e instanceof kc)return e;throw new Error("Expected span<HtmlDomNode> but got "+String(e)+".")}(pd(e,t)),e.base=n):r=(n=Id(e,"accent")).base;var a,o,s=pd(r,t.havingCrampedStyle()),l=0;n.isShifty&&nc(r)&&(l=null!=(a=null==(o=Dd(s))?void 0:o.skew)?a:0);var c,u="\\c"===n.label,d=u?s.height+s.depth:Math.min(s.height,t.fontMetrics().xHeight);if(n.isStretchy)c=Pd(n,t),c=Iu({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"elem",elem:c,wrapperClasses:["svg-align"],wrapperStyle:l>0?{width:"calc(100% - "+Uc(2*l)+")",marginLeft:Uc(2*l)}:void 0}]});else{var p,h;"\\vec"===n.label?(p=ju("vec",t),h=Xu.vec[1]):(p=function(e){if(e instanceof Kc)return e;throw new Error("Expected symbolNode but got "+String(e)+".")}(p=Eu({mode:n.mode,text:n.label},t,"textord")),p.italic=0,h=p.width,u&&(d+=p.depth)),c=Wu(["accent-body"],[p]);var q="\\textcircled"===n.label;q&&(c.classes.push("accent-full"),d=s.height);var f=l;q||(f-=h/2),c.style.left=Uc(f),"\\textcircled"===n.label&&(c.style.top=".2em"),c=Iu({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"kern",size:-d},{type:"elem",elem:c}]})}var m=Wu(["mord","accent"],[c],t);return i?(i.children[0]=m,i.height=Math.max(m.height,i.height),i.classes[0]="mord",i):m},jd=(e,t)=>{var r=e.isStretchy?Nd(e.label):new md("mo",[yd(e.label,e.mode)]),n=new md("mover",[Cd(e.base,t),r]);return n.setAttribute("accent","true"),n},Md=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(e=>"\\"+e).join("|"));_u({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(e,t)=>{var r=ed(t[0]),n=!Md.test(e.funcName),i=!n||"\\widehat"===e.funcName||"\\widetilde"===e.funcName||"\\widecheck"===e.funcName;return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:n,isShifty:i,base:r}},htmlBuilder:Xd,mathmlBuilder:jd}),_u({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(e,t)=>{var r=t[0],n=e.parser.mode;return"math"===n&&(e.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+e.funcName+" works only in text mode"),n="text"),{type:"accent",mode:n,label:e.funcName,isStretchy:!1,isShifty:!0,base:r}},htmlBuilder:Xd,mathmlBuilder:jd}),_u({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(e,t)=>{var{parser:r,funcName:n}=e,i=t[0];return{type:"accentUnder",mode:r.mode,label:n,base:i}},htmlBuilder:(e,t)=>{var r=pd(e.base,t),n=Pd(e,t),i="\\utilde"===e.label?.12:0,a=Iu({positionType:"top",positionData:r.height,children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:i},{type:"elem",elem:r}]});return Wu(["mord","accentunder"],[a],t)},mathmlBuilder:(e,t)=>{var r=Nd(e.label),n=new md("munder",[Cd(e.base,t),r]);return n.setAttribute("accentunder","true"),n}});var zd=e=>{var t=new md("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};function Gd(e,t){var r=od(e.body,t,!0);return Wu([e.mclass],r,t)}function Zd(e,t){var r,n=Ud(e.body,t);return"minner"===e.mclass?r=new md("mpadded",n):"mord"===e.mclass?e.isCharacterBox?(r=n[0]).type="mi":r=new md("mi",n):(e.isCharacterBox?(r=n[0]).type="mo":r=new md("mo",n),"mbin"===e.mclass?(r.attributes.lspace="0.22em",r.attributes.rspace="0.22em"):"mpunct"===e.mclass?(r.attributes.lspace="0em",r.attributes.rspace="0.17em"):"mopen"===e.mclass||"mclose"===e.mclass?(r.attributes.lspace="0em",r.attributes.rspace="0em"):"minner"===e.mclass&&(r.attributes.lspace="0.0556em",r.attributes.width="+0.1111em")),r}_u({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,r){var{parser:n,funcName:i}=e;return{type:"xArrow",mode:n.mode,label:i,body:t[0],below:r[0]}},htmlBuilder(e,t){var r,n=t.style,i=t.havingStyle(n.sup()),a=Pu(pd(e.body,i,t),t),o="\\x"===e.label.slice(0,2)?"x":"cd";a.classes.push(o+"-arrow-pad"),e.below&&(i=t.havingStyle(n.sub()),(r=Pu(pd(e.below,i,t),t)).classes.push(o+"-arrow-pad"));var s,l=Pd(e,t),c=-t.fontMetrics().axisHeight+.5*l.height,u=-t.fontMetrics().axisHeight-.5*l.height-.111;if((a.depth>.25||"\\xleftequilibrium"===e.label)&&(u-=a.depth),r){var d=-t.fontMetrics().axisHeight+r.height+.5*l.height+.111;s=Iu({positionType:"individualShift",children:[{type:"elem",elem:a,shift:u},{type:"elem",elem:l,shift:c},{type:"elem",elem:r,shift:d}]})}else s=Iu({positionType:"individualShift",children:[{type:"elem",elem:a,shift:u},{type:"elem",elem:l,shift:c}]});return s.children[0].children[0].children[1].classes.push("svg-align"),Wu(["mrel","x-arrow"],[s],t)},mathmlBuilder(e,t){var r,n=Nd(e.label);if(n.setAttribute("minsize","x"===e.label.charAt(0)?"1.75em":"3.0em"),e.body){var i=zd(Cd(e.body,t));if(e.below){var a=zd(Cd(e.below,t));r=new md("munderover",[n,a,i])}else r=new md("mover",[n,i])}else if(e.below){var o=zd(Cd(e.below,t));r=new md("munder",[n,o])}else r=zd(),r=new md("mover",[n,r]);return r}}),_u({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(e,t){var{parser:r,funcName:n}=e,i=t[0];return{type:"mclass",mode:r.mode,mclass:"m"+n.slice(5),body:td(i),isCharacterBox:nc(i)}},htmlBuilder:Gd,mathmlBuilder:Zd});var Hd=e=>{var t="ordgroup"===e.type&&e.body.length?e.body[0]:e;return"atom"!==t.type||"bin"!==t.family&&"rel"!==t.family?"mord":"m"+t.family};_u({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(e,t){var{parser:r}=e;return{type:"mclass",mode:r.mode,mclass:Hd(t[0]),body:td(t[1]),isCharacterBox:nc(t[1])}}}),_u({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(e,t){var r,{parser:n,funcName:i}=e,a=t[1],o=t[0];r="\\stackrel"!==i?Hd(a):"mrel";var s={type:"op",mode:a.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:"\\stackrel"!==i,body:td(a)},l={type:"supsub",mode:o.mode,base:s,sup:"\\underset"===i?null:o,sub:"\\underset"===i?o:null};return{type:"mclass",mode:n.mode,mclass:r,body:[l],isCharacterBox:nc(l)}},htmlBuilder:Gd,mathmlBuilder:Zd}),_u({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"pmb",mode:r.mode,mclass:Hd(t[0]),body:td(t[0])}},htmlBuilder(e,t){var r=od(e.body,t,!0),n=Wu([e.mclass],r,t);return n.style.textShadow="0.02em 0.01em 0.04px",n},mathmlBuilder(e,t){var r=Ud(e.body,t),n=new md("mstyle",r);return n.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),n}});var Yd={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},Qd=()=>({type:"styling",body:[],mode:"math",style:"display"}),Jd=e=>"textord"===e.type&&"@"===e.text,_d=(e,t)=>("mathord"===e.type||"atom"===e.type)&&e.text===t;function $d(e,t,r){var n=Yd[e];switch(n){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return r.callFunction(n,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":var i={type:"atom",text:n,mode:"math",family:"rel"},a={type:"ordgroup",mode:"math",body:[r.callFunction("\\\\cdleft",[t[0]],[]),r.callFunction("\\Big",[i],[]),r.callFunction("\\\\cdright",[t[1]],[])]};return r.callFunction("\\\\cdparent",[a],[]);case"\\\\cdlongequal":return r.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":return r.callFunction("\\Big",[{type:"textord",text:"\\Vert",mode:"math"}],[]);default:return{type:"textord",text:" ",mode:"math"}}}_u({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:n}=e;return{type:"cdlabel",mode:r.mode,side:n.slice(4),label:t[0]}},htmlBuilder(e,t){var r=t.havingStyle(t.style.sup()),n=Pu(pd(e.label,r,t),t);return n.classes.push("cd-label-"+e.side),n.style.bottom=Uc(.8-n.depth),n.height=0,n.depth=0,n},mathmlBuilder(e,t){var r=new md("mrow",[Cd(e.label,t)]);return(r=new md("mpadded",[r])).setAttribute("width","0"),"left"===e.side&&r.setAttribute("lspace","-1width"),r.setAttribute("voffset","0.7em"),(r=new md("mstyle",[r])).setAttribute("displaystyle","false"),r.setAttribute("scriptlevel","1"),r}}),_u({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(e,t){var{parser:r}=e;return{type:"cdlabelparent",mode:r.mode,fragment:t[0]}},htmlBuilder(e,t){var r=Pu(pd(e.fragment,t),t);return r.classes.push("cd-vert-arrow"),r},mathmlBuilder:(e,t)=>new md("mrow",[Cd(e.fragment,t)])}),_u({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:r}=e,n=Id(t[0],"ordgroup").body,i="",a=0;a<n.length;a++)i+=Id(n[a],"textord").text;var o,s=parseInt(i);if(isNaN(s))throw new Yl("\\@char has non-numeric argument "+i);if(s<0||s>=1114111)throw new Yl("\\@char with invalid code point "+i);return s<=65535?o=String.fromCharCode(s):(s-=65536,o=String.fromCharCode(55296+(s>>10),56320+(1023&s))),{type:"textord",mode:r.mode,text:o}}});var ep=(e,t)=>{var r=od(e.body,t.withColor(e.color),!1);return Ou(r)},tp=(e,t)=>{var r=Ud(e.body,t.withColor(e.color)),n=new md("mstyle",r);return n.setAttribute("mathcolor",e.color),n};_u({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(e,t){var{parser:r}=e,n=Id(t[0],"color-token").color,i=t[1];return{type:"color",mode:r.mode,color:n,body:td(i)}},htmlBuilder:ep,mathmlBuilder:tp}),_u({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(e,t){var{parser:r,breakOnTokenText:n}=e,i=Id(t[0],"color-token").color;r.gullet.macros.set("\\current@color",i);var a=r.parseExpression(!0,n);return{type:"color",mode:r.mode,color:i,body:a}},htmlBuilder:ep,mathmlBuilder:tp}),_u({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,r){var{parser:n}=e,i="["===n.gullet.future().text?n.parseSizeGroup(!0):null,a=!n.settings.displayMode||!n.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:n.mode,newLine:a,size:i&&Id(i,"size").value}},htmlBuilder(e,t){var r=Wu(["mspace"],[],t);return e.newLine&&(r.classes.push("newline"),e.size&&(r.style.marginTop=Uc(wc(e.size,t)))),r},mathmlBuilder(e,t){var r=new md("mspace");return e.newLine&&(r.setAttribute("linebreak","newline"),e.size&&r.setAttribute("height",Uc(wc(e.size,t)))),r}});var rp={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},np=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new Yl("Expected a control sequence",e);return t},ip=(e,t,r,n)=>{var i=e.gullet.macros.get(r.text);null==i&&(r.noexpand=!0,i={tokens:[r],numArgs:0,unexpandable:!e.gullet.isExpandable(r.text)}),e.gullet.macros.set(t,i,n)};_u({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t,funcName:r}=e;t.consumeSpaces();var n=t.fetch();if(rp[n.text])return"\\global"!==r&&"\\\\globallong"!==r||(n.text=rp[n.text]),Id(t.parseFunction(),"internal");throw new Yl("Invalid token after macro prefix",n)}}),_u({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,n=t.gullet.popToken(),i=n.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(i))throw new Yl("Expected a control sequence",n);for(var a,o=0,s=[[]];"{"!==t.gullet.future().text;)if("#"===(n=t.gullet.popToken()).text){if("{"===t.gullet.future().text){a=t.gullet.future(),s[o].push("{");break}if(n=t.gullet.popToken(),!/^[1-9]$/.test(n.text))throw new Yl('Invalid argument number "'+n.text+'"');if(parseInt(n.text)!==o+1)throw new Yl('Argument number "'+n.text+'" out of order');o++,s.push([])}else{if("EOF"===n.text)throw new Yl("Expected a macro definition");s[o].push(n.text)}var{tokens:l}=t.gullet.consumeArg();return a&&l.unshift(a),"\\edef"!==r&&"\\xdef"!==r||(l=t.gullet.expandTokens(l)).reverse(),t.gullet.macros.set(i,{tokens:l,numArgs:o,delimiters:s},r===rp[r]),{type:"internal",mode:t.mode}}}),_u({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,n=np(t.gullet.popToken());t.gullet.consumeSpaces();var i=(e=>{var t=e.gullet.popToken();return"="===t.text&&" "===(t=e.gullet.popToken()).text&&(t=e.gullet.popToken()),t})(t);return ip(t,n,i,"\\\\globallet"===r),{type:"internal",mode:t.mode}}}),_u({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,n=np(t.gullet.popToken()),i=t.gullet.popToken(),a=t.gullet.popToken();return ip(t,n,a,"\\\\globalfuture"===r),t.gullet.pushToken(a),t.gullet.pushToken(i),{type:"internal",mode:t.mode}}});var ap=function(e,t,r){var n=Xc(Gc.math[e]&&Gc.math[e].replace||e,t,r);if(!n)throw new Error("Unsupported symbol "+e+" and font size "+t+".");return n},op=function(e,t,r,n){var i=r.havingBaseStyle(t),a=Wu(n.concat(i.sizingClasses(r)),[e],r),o=i.sizeMultiplier/r.sizeMultiplier;return a.height*=o,a.depth*=o,a.maxFontSize=i.sizeMultiplier,a},sp=function(e,t,r){var n=t.havingBaseStyle(r),i=(1-t.sizeMultiplier/n.sizeMultiplier)*t.fontMetrics().axisHeight;e.classes.push("delimcenter"),e.style.top=Uc(i),e.height-=i,e.depth+=i},lp=function(e,t,r,n,i,a){var o=function(e,t,r,n){return Cu(e,"Size"+t+"-Regular",r,n)}(e,t,i,n),s=op(Wu(["delimsizing","size"+t],[o],n),fc.TEXT,n,a);return r&&sp(s,n,fc.TEXT),s},cp=function(e,t,r){return{type:"elem",elem:Wu(["delimsizinginner","Size1-Regular"===t?"delim-size1":"delim-size4"],[Wu([],[Cu(e,t,r)])])}},up=function(e,t,r){var n=Lc["Size4-Regular"][e.charCodeAt(0)]?Lc["Size4-Regular"][e.charCodeAt(0)][4]:Lc["Size1-Regular"][e.charCodeAt(0)][4],i=new Pc("inner",function(e,t){switch(e){case"⎜":return"M291 0 H417 V"+t+" H291z M291 0 H417 V"+t+" H291z";case"∣":return"M145 0 H188 V"+t+" H145z M145 0 H188 V"+t+" H145z";case"∥":return"M145 0 H188 V"+t+" H145z M145 0 H188 V"+t+" H145zM367 0 H410 V"+t+" H367z M367 0 H410 V"+t+" H367z";case"⎟":return"M457 0 H583 V"+t+" H457z M457 0 H583 V"+t+" H457z";case"⎢":return"M319 0 H403 V"+t+" H319z M319 0 H403 V"+t+" H319z";case"⎥":return"M263 0 H347 V"+t+" H263z M263 0 H347 V"+t+" H263z";case"⎪":return"M384 0 H504 V"+t+" H384z M384 0 H504 V"+t+" H384z";case"⏐":return"M312 0 H355 V"+t+" H312z M312 0 H355 V"+t+" H312z";case"‖":return"M257 0 H300 V"+t+" H257z M257 0 H300 V"+t+" H257zM478 0 H521 V"+t+" H478z M478 0 H521 V"+t+" H478z";default:return""}}(e,Math.round(1e3*t))),a=new Oc([i],{width:Uc(n),height:Uc(t),style:"width:"+Uc(n),viewBox:"0 0 "+1e3*n+" "+Math.round(1e3*t),preserveAspectRatio:"xMinYMin"}),o=Nu([],[a],r);return o.height=t,o.style.height=Uc(t),o.style.width=Uc(n),{type:"elem",elem:o}},dp={type:"kern",size:-.008},pp=new Set(["|","\\lvert","\\rvert","\\vert"]),hp=new Set(["\\|","\\lVert","\\rVert","\\Vert"]),qp=function(e,t,r,n,i,a){var o,s,l,c,u="",d=0;o=l=c=e,s=null;var p="Size1-Regular";"\\uparrow"===e?l=c="⏐":"\\Uparrow"===e?l=c="‖":"\\downarrow"===e?o=l="⏐":"\\Downarrow"===e?o=l="‖":"\\updownarrow"===e?(o="\\uparrow",l="⏐",c="\\downarrow"):"\\Updownarrow"===e?(o="\\Uparrow",l="‖",c="\\Downarrow"):pp.has(e)?(l="∣",u="vert",d=333):hp.has(e)?(l="∥",u="doublevert",d=556):"["===e||"\\lbrack"===e?(o="⎡",l="⎢",c="⎣",p="Size4-Regular",u="lbrack",d=667):"]"===e||"\\rbrack"===e?(o="⎤",l="⎥",c="⎦",p="Size4-Regular",u="rbrack",d=667):"\\lfloor"===e||"⌊"===e?(l=o="⎢",c="⎣",p="Size4-Regular",u="lfloor",d=667):"\\lceil"===e||"⌈"===e?(o="⎡",l=c="⎢",p="Size4-Regular",u="lceil",d=667):"\\rfloor"===e||"⌋"===e?(l=o="⎥",c="⎦",p="Size4-Regular",u="rfloor",d=667):"\\rceil"===e||"⌉"===e?(o="⎤",l=c="⎥",p="Size4-Regular",u="rceil",d=667):"("===e||"\\lparen"===e?(o="⎛",l="⎜",c="⎝",p="Size4-Regular",u="lparen",d=875):")"===e||"\\rparen"===e?(o="⎞",l="⎟",c="⎠",p="Size4-Regular",u="rparen",d=875):"\\{"===e||"\\lbrace"===e?(o="⎧",s="⎨",c="⎩",l="⎪",p="Size4-Regular"):"\\}"===e||"\\rbrace"===e?(o="⎫",s="⎬",c="⎭",l="⎪",p="Size4-Regular"):"\\lgroup"===e||"⟮"===e?(o="⎧",c="⎩",l="⎪",p="Size4-Regular"):"\\rgroup"===e||"⟯"===e?(o="⎫",c="⎭",l="⎪",p="Size4-Regular"):"\\lmoustache"===e||"⎰"===e?(o="⎧",c="⎭",l="⎪",p="Size4-Regular"):"\\rmoustache"!==e&&"⎱"!==e||(o="⎫",c="⎩",l="⎪",p="Size4-Regular");var h=ap(o,p,i),q=h.height+h.depth,f=ap(l,p,i),m=f.height+f.depth,V=ap(c,p,i),g=V.height+V.depth,v=0,b=1;if(null!==s){var y=ap(s,p,i);v=y.height+y.depth,b=2}var S=q+g+v,A=S+Math.max(0,Math.ceil((t-S)/(b*m)))*b*m,w=n.fontMetrics().axisHeight;r&&(w*=n.sizeMultiplier);var U=A/2-w,x=[];if(u.length>0){var C=A-q-g,R=Math.round(1e3*A),E=function(e,t){switch(e){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+t+" v1759 h347 v-84\nH403z M403 1759 V0 H319 V1759 v"+t+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+t+" v1759 H0 v84 H347z\nM347 1759 V0 H263 V1759 v"+t+" v1759 h84z";case"vert":return"M145 15 v585 v"+t+" v585 c2.667,10,9.667,15,21,15\nc10,0,16.667,-5,20,-15 v-585 v"+-t+" v-585 c-2.667,-10,-9.667,-15,-21,-15\nc-10,0,-16.667,5,-20,15z M188 15 H145 v585 v"+t+" v585 h43z";case"doublevert":return"M145 15 v585 v"+t+" v585 c2.667,10,9.667,15,21,15\nc10,0,16.667,-5,20,-15 v-585 v"+-t+" v-585 c-2.667,-10,-9.667,-15,-21,-15\nc-10,0,-16.667,5,-20,15z M188 15 H145 v585 v"+t+" v585 h43z\nM367 15 v585 v"+t+" v585 c2.667,10,9.667,15,21,15\nc10,0,16.667,-5,20,-15 v-585 v"+-t+" v-585 c-2.667,-10,-9.667,-15,-21,-15\nc-10,0,-16.667,5,-20,15z M410 15 H367 v585 v"+t+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+t+" v1715 h263 v84 H319z\nMM319 602 V0 H403 V602 v"+t+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+t+" v1799 H0 v-84 H319z\nMM319 602 V0 H403 V602 v"+t+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+t+" v602 h84z\nM403 1759 V0 H319 V1759 v"+t+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+t+" v602 h84z\nM347 1759 V0 h-84 V1759 v"+t+" v602 h84z";case"lparen":return"M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1\nc-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349,\n-36,557 l0,"+(t+84)+"c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,\n949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9\nc0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5,\n-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189\nl0,-"+(t+92)+"c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,\n-210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z";case"rparen":return"M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3,\n63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5\nc11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,"+(t+9)+"\nc-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664\nc-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11\nc0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17\nc242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558\nl0,-"+(t+144)+"c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,\n-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z";default:throw new Error("Unknown stretchy delimiter.")}}(u,Math.round(1e3*C)),T=new Pc(u,E),k=(d/1e3).toFixed(3)+"em",F=(R/1e3).toFixed(3)+"em",W=new Oc([T],{width:k,height:F,viewBox:"0 0 "+d+" "+R}),N=Nu([],[W],n);N.height=R/1e3,N.style.width=k,N.style.height=F,x.push({type:"elem",elem:N})}else{if(x.push(cp(c,p,i)),x.push(dp),null===s){var K=A-q-g+.016;x.push(up(l,K,n))}else{var O=(A-q-g-v)/2+.016;x.push(up(l,O,n)),x.push(dp),x.push(cp(s,p,i)),x.push(dp),x.push(up(l,O,n))}x.push(dp),x.push(cp(o,p,i))}var P=n.havingBaseStyle(fc.TEXT),I=Iu({positionType:"bottom",positionData:U,children:x});return op(Wu(["delimsizing","mult"],[I],P),fc.TEXT,n,a)},fp=.08,mp=function(e,t,r,n,i){var a=function(e,t,r){t*=1e3;var n="";switch(e){case"sqrtMain":n=function(e){return"M95,"+(622+e+80)+"\nc-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14\nc0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54\nc44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10\ns173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429\nc69,-144,104.5,-217.7,106.5,-221\nl"+e/2.075+" -"+e+"\nc5.3,-9.3,12,-14,20,-14\nH400000v"+(40+e)+"H845.2724\ns-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7\nc-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z\nM"+(834+e)+" 80h400000v"+(40+e)+"h-400000z"}(t);break;case"sqrtSize1":n=function(e){return"M263,"+(601+e+80)+"c0.7,0,18,39.7,52,119\nc34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120\nc340,-704.7,510.7,-1060.3,512,-1067\nl"+e/2.084+" -"+e+"\nc4.7,-7.3,11,-11,19,-11\nH40000v"+(40+e)+"H1012.3\ns-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232\nc-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1\ns-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26\nc-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z\nM"+(1001+e)+" 80h400000v"+(40+e)+"h-400000z"}(t);break;case"sqrtSize2":n=function(e){return"M983 "+(10+e+80)+"\nl"+e/3.13+" -"+e+"\nc4,-6.7,10,-10,18,-10 H400000v"+(40+e)+"\nH1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7\ns-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744\nc-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30\nc26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722\nc56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5\nc53.7,-170.3,84.5,-266.8,92.5,-289.5z\nM"+(1001+e)+" 80h400000v"+(40+e)+"h-400000z"}(t);break;case"sqrtSize3":n=function(e){return"M424,"+(2398+e+80)+"\nc-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514\nc0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20\ns-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121\ns209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081\nl"+e/4.223+" -"+e+"c4,-6.7,10,-10,18,-10 H400000\nv"+(40+e)+"H1014.6\ns-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185\nc-2,6,-10,9,-24,9\nc-8,0,-12,-0.7,-12,-2z M"+(1001+e)+" 80\nh400000v"+(40+e)+"h-400000z"}(t);break;case"sqrtSize4":n=function(e){return"M473,"+(2713+e+80)+"\nc339.3,-1799.3,509.3,-2700,510,-2702 l"+e/5.298+" -"+e+"\nc3.3,-7.3,9.3,-11,18,-11 H400000v"+(40+e)+"H1017.7\ns-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9\nc-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200\nc0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26\ns76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,\n606zM"+(1001+e)+" 80h400000v"+(40+e)+"H1017.7z"}(t);break;case"sqrtTall":n=function(e,t,r){return"M702 "+(e+80)+"H400000"+(40+e)+"\nH742v"+(r-54-80-e)+"l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1\nh-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170\nc-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667\n219 661 l218 661zM702 80H400000v"+(40+e)+"H742z"}(t,0,r)}return n}(e,n,r),o=new Pc(e,a),s=new Oc([o],{width:"400em",height:Uc(t),viewBox:"0 0 400000 "+r,preserveAspectRatio:"xMinYMin slice"});return Nu(["hide-tail"],[s],i)},Vp=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"]),gp=new Set(["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"]),vp=new Set(["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"]),bp=[0,1.2,1.8,2.4,3],yp=function(e,t,r,n,i){if("<"===e||"\\lt"===e||"⟨"===e?e="\\langle":">"!==e&&"\\gt"!==e&&"⟩"!==e||(e="\\rangle"),Vp.has(e)||vp.has(e))return lp(e,t,!1,r,n,i);if(gp.has(e))return qp(e,bp[t],!1,r,n,i);throw new Yl("Illegal delimiter: '"+e+"'")},Sp=[{type:"small",style:fc.SCRIPTSCRIPT},{type:"small",style:fc.SCRIPT},{type:"small",style:fc.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],Ap=[{type:"small",style:fc.SCRIPTSCRIPT},{type:"small",style:fc.SCRIPT},{type:"small",style:fc.TEXT},{type:"stack"}],wp=[{type:"small",style:fc.SCRIPTSCRIPT},{type:"small",style:fc.SCRIPT},{type:"small",style:fc.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],Up=function(e){if("small"===e.type)return"Main-Regular";if("large"===e.type)return"Size"+e.size+"-Regular";if("stack"===e.type)return"Size4-Regular";var t=e.type;throw new Error("Add support for delim type '"+t+"' here.")},xp=function(e,t,r,n){for(var i=Math.min(2,3-n.style.size);i<r.length;i++){var a=r[i];if("stack"===a.type)break;var o=ap(e,Up(a),"math"),s=o.height+o.depth;if("small"===a.type&&(s*=n.havingBaseStyle(a.style).sizeMultiplier),s>t)return a}return r[r.length-1]},Cp=function(e,t,r,n,i,a){var o;"<"===e||"\\lt"===e||"⟨"===e?e="\\langle":">"!==e&&"\\gt"!==e&&"⟩"!==e||(e="\\rangle"),o=vp.has(e)?Sp:Vp.has(e)?wp:Ap;var s=xp(e,t,o,n);return"small"===s.type?function(e,t,r,n,i,a){var o=Cu(e,"Main-Regular",i,n),s=op(o,t,n,a);return sp(s,n,t),s}(e,s.style,0,n,i,a):"large"===s.type?lp(e,s.size,r,n,i,a):qp(e,t,r,n,i,a)},Rp=function(e,t,r,n,i,a){var o=n.fontMetrics().axisHeight*n.sizeMultiplier,s=5/n.fontMetrics().ptPerEm,l=Math.max(t-o,r+o),c=Math.max(l/500*901,2*l-s);return Cp(e,c,!0,n,i,a)},Ep={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},Tp=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."]);function kp(e,t){var r=Bd(e);if(r&&Tp.has(r.text))return r;throw new Yl(r?"Invalid delimiter '"+r.text+"' after '"+t.funcName+"'":"Invalid delimiter type '"+e.type+"'",e)}function Fp(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}_u({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(e,t)=>{var r=kp(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:Ep[e.funcName].size,mclass:Ep[e.funcName].mclass,delim:r.text}},htmlBuilder:(e,t)=>"."===e.delim?Wu([e.mclass]):yp(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];"."!==e.delim&&t.push(yd(e.delim,e.mode));var r=new md("mo",t);"mopen"===e.mclass||"mclose"===e.mclass?r.setAttribute("fence","true"):r.setAttribute("fence","false"),r.setAttribute("stretchy","true");var n=Uc(bp[e.size]);return r.setAttribute("minsize",n),r.setAttribute("maxsize",n),r}}),_u({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=e.parser.gullet.macros.get("\\current@color");if(r&&"string"!=typeof r)throw new Yl("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:kp(t[0],e).text,color:r}}}),_u({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=kp(t[0],e),n=e.parser;++n.leftrightDepth;var i=n.parseExpression(!1);--n.leftrightDepth,n.expect("\\right",!1);var a=Id(n.parseFunction(),"leftright-right");return{type:"leftright",mode:n.mode,body:i,left:r.text,right:a.delim,rightColor:a.color}},htmlBuilder:(e,t)=>{Fp(e);for(var r,n,i=od(e.body,t,!0,["mopen","mclose"]),a=0,o=0,s=!1,l=0;l<i.length;l++)i[l].isMiddle?s=!0:(a=Math.max(i[l].height,a),o=Math.max(i[l].depth,o));if(a*=t.sizeMultiplier,o*=t.sizeMultiplier,r="."===e.left?dd(t,["mopen"]):Rp(e.left,a,o,t,e.mode,["mopen"]),i.unshift(r),s)for(var c=1;c<i.length;c++){var u=i[c].isMiddle;u&&(i[c]=Rp(u.delim,a,o,u.options,e.mode,[]))}if("."===e.right)n=dd(t,["mclose"]);else{var d=e.rightColor?t.withColor(e.rightColor):t;n=Rp(e.right,a,o,d,e.mode,["mclose"])}return i.push(n),Wu(["minner"],i,t)},mathmlBuilder:(e,t)=>{Fp(e);var r=Ud(e.body,t);if("."!==e.left){var n=new md("mo",[yd(e.left,e.mode)]);n.setAttribute("fence","true"),r.unshift(n)}if("."!==e.right){var i=new md("mo",[yd(e.right,e.mode)]);i.setAttribute("fence","true"),e.rightColor&&i.setAttribute("mathcolor",e.rightColor),r.push(i)}return Sd(r)}}),_u({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=kp(t[0],e);if(!e.parser.leftrightDepth)throw new Yl("\\middle without preceding \\left",r);return{type:"middle",mode:e.parser.mode,delim:r.text}},htmlBuilder:(e,t)=>{var r;if("."===e.delim)r=dd(t,[]);else{r=yp(e.delim,1,t,e.mode,[]);var n={delim:e.delim,options:t};r.isMiddle=n}return r},mathmlBuilder:(e,t)=>{var r="\\vert"===e.delim||"|"===e.delim?yd("|","text"):yd(e.delim,e.mode),n=new md("mo",[r]);return n.setAttribute("fence","true"),n.setAttribute("lspace","0.05em"),n.setAttribute("rspace","0.05em"),n}});var Wp=(e,t)=>{var r,n,i,a=Pu(pd(e.body,t),t),o=e.label.slice(1),s=t.sizeMultiplier,l=0,c=nc(e.body);if("sout"===o)(r=Wu(["stretchy","sout"])).height=t.fontMetrics().defaultRuleThickness/s,l=-.5*t.fontMetrics().xHeight;else if("phase"===o){var u=wc({number:.6,unit:"pt"},t),d=wc({number:.35,unit:"ex"},t);s/=t.havingBaseSizing().sizeMultiplier;var p=a.height+a.depth+u+d;a.style.paddingLeft=Uc(p/2+u);var h=Math.floor(1e3*p*s),q="M400000 "+(n=h)+" H0 L"+n/2+" 0 l65 45 L145 "+(n-80)+" H400000z",f=new Oc([new Pc("phase",q)],{width:"400em",height:Uc(h/1e3),viewBox:"0 0 400000 "+h,preserveAspectRatio:"xMinYMin slice"});(r=Nu(["hide-tail"],[f],t)).style.height=Uc(p),l=a.depth+u+d}else{/cancel/.test(o)?c||a.classes.push("cancel-pad"):"angl"===o?a.classes.push("anglpad"):a.classes.push("boxpad");var m=0,V=0,g=0;/box/.test(o)?(g=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),V=m=t.fontMetrics().fboxsep+("colorbox"===o?0:g)):"angl"===o?(m=4*(g=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness)),V=Math.max(0,.25-a.depth)):V=m=c?.2:0,r=function(e,t,r,n,i){var a,o=e.height+e.depth+r+n;if(/fbox|color|angl/.test(t)){if(a=Wu(["stretchy",t],[],i),"fbox"===t){var s=i.color&&i.getColor();s&&(a.style.borderColor=s)}}else{var l=[];/^[bx]cancel$/.test(t)&&l.push(new Ic({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(t)&&l.push(new Ic({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var c=new Oc(l,{width:"100%",height:Uc(o)});a=Nu([],[c],i)}return a.height=o,a.style.height=Uc(o),a}(a,o,m,V,t),/fbox|boxed|fcolorbox/.test(o)?(r.style.borderStyle="solid",r.style.borderWidth=Uc(g)):"angl"===o&&.049!==g&&(r.style.borderTopWidth=Uc(g),r.style.borderRightWidth=Uc(g)),l=a.depth+V,e.backgroundColor&&(r.style.backgroundColor=e.backgroundColor,e.borderColor&&(r.style.borderColor=e.borderColor))}if(e.backgroundColor)i=Iu({positionType:"individualShift",children:[{type:"elem",elem:r,shift:l},{type:"elem",elem:a,shift:0}]});else{var v=/cancel|phase/.test(o)?["svg-align"]:[];i=Iu({positionType:"individualShift",children:[{type:"elem",elem:a,shift:0},{type:"elem",elem:r,shift:l,wrapperClasses:v}]})}return/cancel/.test(o)&&(i.height=a.height,i.depth=a.depth),/cancel/.test(o)&&!c?Wu(["mord","cancel-lap"],[i],t):Wu(["mord"],[i],t)},Np=(e,t)=>{var r=0,n=new md(e.label.includes("colorbox")?"mpadded":"menclose",[Cd(e.body,t)]);switch(e.label){case"\\cancel":n.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":n.setAttribute("notation","downdiagonalstrike");break;case"\\phase":n.setAttribute("notation","phasorangle");break;case"\\sout":n.setAttribute("notation","horizontalstrike");break;case"\\fbox":n.setAttribute("notation","box");break;case"\\angl":n.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(r=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,n.setAttribute("width","+"+2*r+"pt"),n.setAttribute("height","+"+2*r+"pt"),n.setAttribute("lspace",r+"pt"),n.setAttribute("voffset",r+"pt"),"\\fcolorbox"===e.label){var i=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);n.setAttribute("style","border: "+i+"em solid "+String(e.borderColor))}break;case"\\xcancel":n.setAttribute("notation","updiagonalstrike downdiagonalstrike")}return e.backgroundColor&&n.setAttribute("mathbackground",e.backgroundColor),n};_u({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(e,t,r){var{parser:n,funcName:i}=e,a=Id(t[0],"color-token").color,o=t[1];return{type:"enclose",mode:n.mode,label:i,backgroundColor:a,body:o}},htmlBuilder:Wp,mathmlBuilder:Np}),_u({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(e,t,r){var{parser:n,funcName:i}=e,a=Id(t[0],"color-token").color,o=Id(t[1],"color-token").color,s=t[2];return{type:"enclose",mode:n.mode,label:i,backgroundColor:o,borderColor:a,body:s}},htmlBuilder:Wp,mathmlBuilder:Np}),_u({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"enclose",mode:r.mode,label:"\\fbox",body:t[0]}}}),_u({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:n}=e,i=t[0];return{type:"enclose",mode:r.mode,label:n,body:i}},htmlBuilder:Wp,mathmlBuilder:Np}),_u({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(e,t){var{parser:r}=e;return{type:"enclose",mode:r.mode,label:"\\angl",body:t[0]}}});var Kp={};function Op(e){for(var{type:t,names:r,props:n,handler:i,htmlBuilder:a,mathmlBuilder:o}=e,s={type:t,numArgs:n.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:i},l=0;l<r.length;++l)Kp[r[l]]=s;a&&(Qu[t]=a),o&&(Ju[t]=o)}var Pp={};function Ip(e,t){Pp[e]=t}class Lp{constructor(e,t,r){this.lexer=e,this.start=t,this.end=r}static range(e,t){return t?e&&e.loc&&t.loc&&e.loc.lexer===t.loc.lexer?new Lp(e.loc.lexer,e.loc.start,t.loc.end):null:e&&e.loc}}class Bp{constructor(e,t){this.text=e,this.loc=t}range(e,t){return new Bp(t,Lp.range(this,e))}}function Dp(e){var t=[];e.consumeSpaces();var r=e.fetch().text;for("\\relax"===r&&(e.consume(),e.consumeSpaces(),r=e.fetch().text);"\\hline"===r||"\\hdashline"===r;)e.consume(),t.push("\\hdashline"===r),e.consumeSpaces(),r=e.fetch().text;return t}var Xp=e=>{if(!e.parser.settings.displayMode)throw new Yl("{"+e.envName+"} can be used only in display mode.")},jp=new Set(["gather","gather*"]);function Mp(e){if(!e.includes("ed"))return!e.includes("*")}function zp(e,t,r){var{hskipBeforeAndAfter:n,addJot:i,cols:a,arraystretch:o,colSeparationType:s,autoTag:l,singleRow:c,emptySingleRow:u,maxNumCols:d,leqno:p}=t;if(e.gullet.beginGroup(),c||e.gullet.macros.set("\\cr","\\\\\\relax"),!o){var h=e.gullet.expandMacroAsText("\\arraystretch");if(null==h)o=1;else if(!(o=parseFloat(h))||o<0)throw new Yl("Invalid \\arraystretch: "+h)}e.gullet.beginGroup();var q=[],f=[q],m=[],V=[],g=null!=l?[]:void 0;function v(){l&&e.gullet.macros.set("\\@eqnsw","1",!0)}function b(){g&&(e.gullet.macros.get("\\df@tag")?(g.push(e.subparse([new Bp("\\df@tag")])),e.gullet.macros.set("\\df@tag",void 0,!0)):g.push(Boolean(l)&&"1"===e.gullet.macros.get("\\@eqnsw")))}for(v(),V.push(Dp(e));;){var y=e.parseExpression(!1,c?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup();var S={type:"ordgroup",mode:e.mode,body:y};r&&(S={type:"styling",mode:e.mode,style:r,body:[S]}),q.push(S);var A=e.fetch().text;if("&"===A){if(d&&q.length===d){if(c||s)throw new Yl("Too many tab characters: &",e.nextToken);e.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}e.consume()}else{if("\\end"===A){b(),1===q.length&&"styling"===S.type&&1===S.body.length&&"ordgroup"===S.body[0].type&&0===S.body[0].body.length&&(f.length>1||!u)&&f.pop(),V.length<f.length+1&&V.push([]);break}if("\\\\"!==A)throw new Yl("Expected & or \\\\ or \\cr or \\end",e.nextToken);e.consume();var w=void 0;" "!==e.gullet.future().text&&(w=e.parseSizeGroup(!0)),m.push(w?w.value:null),b(),V.push(Dp(e)),q=[],f.push(q),v()}}return e.gullet.endGroup(),e.gullet.endGroup(),{type:"array",mode:e.mode,addJot:i,arraystretch:o,body:f,cols:a,rowGaps:m,hskipBeforeAndAfter:n,hLinesBeforeRow:V,colSeparationType:s,tags:g,leqno:p}}function Gp(e){return"d"===e.slice(0,1)?"display":"text"}var Zp=function(e,t){var r,n,i=e.body.length,a=e.hLinesBeforeRow,o=0,s=new Array(i),l=[],c=Math.max(t.fontMetrics().arrayRuleWidth,t.minRuleThickness),u=1/t.fontMetrics().ptPerEm,d=5*u;e.colSeparationType&&"small"===e.colSeparationType&&(d=t.havingStyle(fc.SCRIPT).sizeMultiplier/t.sizeMultiplier*.2778);var p="CD"===e.colSeparationType?wc({number:3,unit:"ex"},t):12*u,h=3*u,q=e.arraystretch*p,f=.7*q,m=.3*q,V=0;function g(e){for(var t=0;t<e.length;++t)t>0&&(V+=.25),l.push({pos:V,isDashed:e[t]})}for(g(a[0]),r=0;r<e.body.length;++r){var v=e.body[r],b=f,y=m;o<v.length&&(o=v.length);var S=new Array(v.length);for(n=0;n<v.length;++n){var A=pd(v[n],t);y<A.depth&&(y=A.depth),b<A.height&&(b=A.height),S[n]=A}var w=e.rowGaps[r],U=0;w&&(U=wc(w,t))>0&&(y<(U+=m)&&(y=U),U=0),e.addJot&&(y+=h),S.height=b,S.depth=y,V+=b,S.pos=V,V+=y+U,s[r]=S,g(a[r+1])}var x,C,R=V/2+t.fontMetrics().axisHeight,E=e.cols||[],T=[],k=[];if(e.tags&&e.tags.some(e=>e))for(r=0;r<i;++r){var F=s[r],W=F.pos-R,N=e.tags[r],K=void 0;(K=!0===N?Wu(["eqn-num"],[],t):Wu([],!1===N?[]:od(N,t,!0),t)).depth=F.depth,K.height=F.height,k.push({type:"elem",elem:K,shift:W})}for(n=0,C=0;n<o||C<E.length;++n,++C){for(var O,P=E[C],I=!0;"separator"===(null==(L=P)?void 0:L.type);){var L;if(I||((x=Wu(["arraycolsep"],[])).style.width=Uc(t.fontMetrics().doubleRuleSep),T.push(x)),"|"!==P.separator&&":"!==P.separator)throw new Yl("Invalid separator type: "+P.separator);var B="|"===P.separator?"solid":"dashed",D=Wu(["vertical-separator"],[],t);D.style.height=Uc(V),D.style.borderRightWidth=Uc(c),D.style.borderRightStyle=B,D.style.margin="0 "+Uc(-c/2);var X=V-R;X&&(D.style.verticalAlign=Uc(-X)),T.push(D),P=E[++C],I=!1}if(!(n>=o)){var j,M,z=void 0;(n>0||e.hskipBeforeAndAfter)&&0!==(z=null!=(j=null==(M=P)?void 0:M.pregap)?j:d)&&((x=Wu(["arraycolsep"],[])).style.width=Uc(z),T.push(x));var G=[];for(r=0;r<i;++r){var Z=s[r],H=Z[n];if(H){var Y=Z.pos-R;H.depth=Z.depth,H.height=Z.height,G.push({type:"elem",elem:H,shift:Y})}}var Q,J,_=Iu({positionType:"individualShift",children:G}),$=Wu(["col-align-"+((null==(O=P)?void 0:O.align)||"c")],[_]);T.push($),(n<o-1||e.hskipBeforeAndAfter)&&0!==(z=null!=(Q=null==(J=P)?void 0:J.postgap)?Q:d)&&((x=Wu(["arraycolsep"],[])).style.width=Uc(z),T.push(x))}}var ee=Wu(["mtable"],T);if(l.length>0){for(var te=Ku("hline",t,c),re=Ku("hdashline",t,c),ne=[{type:"elem",elem:ee,shift:0}];l.length>0;){var ie=l.pop(),ae=ie.pos-R;ie.isDashed?ne.push({type:"elem",elem:re,shift:ae}):ne.push({type:"elem",elem:te,shift:ae})}ee=Iu({positionType:"individualShift",children:ne})}if(0===k.length)return Wu(["mord"],[ee],t);var oe=Iu({positionType:"individualShift",children:k}),se=Wu(["tag"],[oe],t);return Ou([ee,se])},Hp={c:"center ",l:"left ",r:"right "},Yp=function(e,t){for(var r=[],n=new md("mtd",[],["mtr-glue"]),i=new md("mtd",[],["mml-eqn-num"]),a=0;a<e.body.length;a++){for(var o=e.body[a],s=[],l=0;l<o.length;l++)s.push(new md("mtd",[Cd(o[l],t)]));e.tags&&e.tags[a]&&(s.unshift(n),s.push(n),e.leqno?s.unshift(i):s.push(i)),r.push(new md("mtr",s))}var c=new md("mtable",r),u=.5===e.arraystretch?.1:.16+e.arraystretch-1+(e.addJot?.09:0);c.setAttribute("rowspacing",Uc(u));var d="",p="";if(e.cols&&e.cols.length>0){var h=e.cols,q="",f=!1,m=0,V=h.length;"separator"===h[0].type&&(d+="top ",m=1),"separator"===h[h.length-1].type&&(d+="bottom ",V-=1);for(var g=m;g<V;g++){var v=h[g];"align"===v.type?(p+=Hp[v.align],f&&(q+="none "),f=!0):"separator"===v.type&&f&&(q+="|"===v.separator?"solid ":"dashed ",f=!1)}c.setAttribute("columnalign",p.trim()),/[sd]/.test(q)&&c.setAttribute("columnlines",q.trim())}if("align"===e.colSeparationType){for(var b=e.cols||[],y="",S=1;S<b.length;S++)y+=S%2?"0em ":"1em ";c.setAttribute("columnspacing",y.trim())}else"alignat"===e.colSeparationType||"gather"===e.colSeparationType?c.setAttribute("columnspacing","0em"):"small"===e.colSeparationType?c.setAttribute("columnspacing","0.2778em"):"CD"===e.colSeparationType?c.setAttribute("columnspacing","0.5em"):c.setAttribute("columnspacing","1em");var A="",w=e.hLinesBeforeRow;d+=w[0].length>0?"left ":"",d+=w[w.length-1].length>0?"right ":"";for(var U=1;U<w.length-1;U++)A+=0===w[U].length?"none ":w[U][0]?"dashed ":"solid ";return/[sd]/.test(A)&&c.setAttribute("rowlines",A.trim()),""!==d&&(c=new md("menclose",[c])).setAttribute("notation",d.trim()),e.arraystretch&&e.arraystretch<1&&(c=new md("mstyle",[c])).setAttribute("scriptlevel","1"),c},Qp=function(e,t){e.envName.includes("ed")||Xp(e);var r=[],n=e.envName.includes("at")?"alignat":"align",i="split"===e.envName,a=zp(e.parser,{cols:r,addJot:!0,autoTag:i?void 0:Mp(e.envName),emptySingleRow:!0,colSeparationType:n,maxNumCols:i?2:void 0,leqno:e.parser.settings.leqno},"display"),o=0,s=0,l={type:"ordgroup",mode:e.mode,body:[]};if(t[0]&&"ordgroup"===t[0].type){for(var c="",u=0;u<t[0].body.length;u++)c+=Id(t[0].body[u],"textord").text;o=Number(c),s=2*o}var d=!s;a.body.forEach(function(e){for(var t=1;t<e.length;t+=2){var r=Id(e[t],"styling");Id(r.body[0],"ordgroup").body.unshift(l)}if(d)s<e.length&&(s=e.length);else{var n=e.length/2;if(o<n)throw new Yl("Too many math in a row: expected "+o+", but got "+n,e[0])}});for(var p=0;p<s;++p){var h="r",q=0;p%2==1?h="l":p>0&&d&&(q=1),r[p]={type:"align",align:h,pregap:q,postgap:0}}return a.colSeparationType=d?"align":"alignat",a};Op({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,t){var r=(Bd(t[0])?[t[0]]:Id(t[0],"ordgroup").body).map(function(e){var t=Ld(e).text;if("lcr".includes(t))return{type:"align",align:t};if("|"===t)return{type:"separator",separator:"|"};if(":"===t)return{type:"separator",separator:":"};throw new Yl("Unknown column alignment: "+t,e)}),n={cols:r,hskipBeforeAndAfter:!0,maxNumCols:r.length};return zp(e.parser,n,Gp(e.envName))},htmlBuilder:Zp,mathmlBuilder:Yp}),Op({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(e){var t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName.replace("*","")],r="c",n={hskipBeforeAndAfter:!1,cols:[{type:"align",align:r}]};if("*"===e.envName.charAt(e.envName.length-1)){var i=e.parser;if(i.consumeSpaces(),"["===i.fetch().text){if(i.consume(),i.consumeSpaces(),r=i.fetch().text,!"lcr".includes(r))throw new Yl("Expected l or c or r",i.nextToken);i.consume(),i.consumeSpaces(),i.expect("]"),i.consume(),n.cols=[{type:"align",align:r}]}}var a=zp(e.parser,n,Gp(e.envName)),o=Math.max(0,...a.body.map(e=>e.length));return a.cols=new Array(o).fill({type:"align",align:r}),t?{type:"leftright",mode:e.mode,body:[a],left:t[0],right:t[1],rightColor:void 0}:a},htmlBuilder:Zp,mathmlBuilder:Yp}),Op({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){var t=zp(e.parser,{arraystretch:.5},"script");return t.colSeparationType="small",t},htmlBuilder:Zp,mathmlBuilder:Yp}),Op({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){var r=(Bd(t[0])?[t[0]]:Id(t[0],"ordgroup").body).map(function(e){var t=Ld(e).text;if("lc".includes(t))return{type:"align",align:t};throw new Yl("Unknown column alignment: "+t,e)});if(r.length>1)throw new Yl("{subarray} can contain only one column");var n={cols:r,hskipBeforeAndAfter:!1,arraystretch:.5},i=zp(e.parser,n,"script");if(i.body.length>0&&i.body[0].length>1)throw new Yl("{subarray} can contain only one column");return i},htmlBuilder:Zp,mathmlBuilder:Yp}),Op({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(e){var t=zp(e.parser,{arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},Gp(e.envName));return{type:"leftright",mode:e.mode,body:[t],left:e.envName.includes("r")?".":"\\{",right:e.envName.includes("r")?"\\}":".",rightColor:void 0}},htmlBuilder:Zp,mathmlBuilder:Yp}),Op({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:Qp,htmlBuilder:Zp,mathmlBuilder:Yp}),Op({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){jp.has(e.envName)&&Xp(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:Mp(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return zp(e.parser,t,"display")},htmlBuilder:Zp,mathmlBuilder:Yp}),Op({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:Qp,htmlBuilder:Zp,mathmlBuilder:Yp}),Op({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){Xp(e);var t={autoTag:Mp(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return zp(e.parser,t,"display")},htmlBuilder:Zp,mathmlBuilder:Yp}),Op({type:"array",names:["CD"],props:{numArgs:0},handler:e=>(Xp(e),function(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set("\\cr","\\\\\\relax"),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,"\\\\")),e.gullet.endGroup(),e.gullet.beginGroup();var r=e.fetch().text;if("&"!==r&&"\\\\"!==r){if("\\end"===r){0===t[t.length-1].length&&t.pop();break}throw new Yl("Expected \\\\ or \\cr or \\end",e.nextToken)}e.consume()}for(var n=[],i=[n],a=0;a<t.length;a++){for(var o=t[a],s=Qd(),l=0;l<o.length;l++)if(Jd(o[l])){n.push(s);var c=Ld(o[l+=1]).text,u=new Array(2);if(u[0]={type:"ordgroup",mode:"math",body:[]},u[1]={type:"ordgroup",mode:"math",body:[]},"=|.".includes(c));else{if(!"<>AV".includes(c))throw new Yl('Expected one of "<>AV=|." after @',o[l]);for(var d=0;d<2;d++){for(var p=!0,h=l+1;h<o.length;h++){if(_d(o[h],c)){p=!1,l=h;break}if(Jd(o[h]))throw new Yl("Missing a "+c+" character to complete a CD arrow.",o[h]);u[d].body.push(o[h])}if(p)throw new Yl("Missing a "+c+" character to complete a CD arrow.",o[l])}}var q={type:"styling",body:[$d(c,u,e)],mode:"math",style:"display"};n.push(q),s=Qd()}else s.body.push(o[l]);a%2==0?n.push(s):n.shift(),n=[],i.push(n)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:"array",mode:"math",body:i,arraystretch:1,addJot:!0,rowGaps:[null],cols:new Array(i[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25}),colSeparationType:"CD",hLinesBeforeRow:new Array(i.length+1).fill([])}}(e.parser)),htmlBuilder:Zp,mathmlBuilder:Yp}),Ip("\\nonumber","\\gdef\\@eqnsw{0}"),Ip("\\notag","\\nonumber"),_u({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new Yl(e.funcName+" valid only within array environment")}});var Jp=Kp;_u({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(e,t){var{parser:r,funcName:n}=e,i=t[0];if("ordgroup"!==i.type)throw new Yl("Invalid environment name",i);for(var a="",o=0;o<i.body.length;++o)a+=Id(i.body[o],"textord").text;if("\\begin"===n){if(!Jp.hasOwnProperty(a))throw new Yl("No such environment: "+a,i);var s=Jp[a],{args:l,optArgs:c}=r.parseArguments("\\begin{"+a+"}",s),u={mode:r.mode,envName:a,parser:r},d=s.handler(u,l,c);r.expect("\\end",!1);var p=r.nextToken,h=Id(r.parseFunction(),"environment");if(h.name!==a)throw new Yl("Mismatch: \\begin{"+a+"} matched by \\end{"+h.name+"}",p);return d}return{type:"environment",mode:r.mode,name:a,nameGroup:i}}});var _p=(e,t)=>{var r=e.font,n=t.withFont(r);return pd(e.body,n)},$p=(e,t)=>{var r=e.font,n=t.withFont(r);return Cd(e.body,n)},eh={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};_u({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathsfit","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(e,t)=>{var{parser:r,funcName:n}=e,i=ed(t[0]),a=n;return a in eh&&(a=eh[a]),{type:"font",mode:r.mode,font:a.slice(1),body:i}},htmlBuilder:_p,mathmlBuilder:$p}),_u({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(e,t)=>{var{parser:r}=e,n=t[0];return{type:"mclass",mode:r.mode,mclass:Hd(n),body:[{type:"font",mode:r.mode,font:"boldsymbol",body:n}],isCharacterBox:nc(n)}}}),_u({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{parser:r,funcName:n,breakOnTokenText:i}=e,{mode:a}=r,o=r.parseExpression(!0,i);return{type:"font",mode:a,font:"math"+n.slice(1),body:{type:"ordgroup",mode:r.mode,body:o}}},htmlBuilder:_p,mathmlBuilder:$p});var th=(e,t)=>t?{type:"styling",mode:e.mode,style:t,body:[e]}:e;_u({type:"genfrac",names:["\\cfrac","\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(e,t)=>{var r,{parser:n,funcName:i}=e,a=t[0],o=t[1],s=null,l=null;switch(i){case"\\cfrac":case"\\dfrac":case"\\frac":case"\\tfrac":r=!0;break;case"\\\\atopfrac":r=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":r=!1,s="(",l=")";break;case"\\\\bracefrac":r=!1,s="\\{",l="\\}";break;case"\\\\brackfrac":r=!1,s="[",l="]";break;default:throw new Error("Unrecognized genfrac command")}var c="\\cfrac"===i,u=null;return c||i.startsWith("\\d")?u="display":i.startsWith("\\t")&&(u="text"),th({type:"genfrac",mode:n.mode,numer:a,denom:o,continued:c,hasBarLine:r,leftDelim:s,rightDelim:l,barSize:null},u)},htmlBuilder:(e,t)=>{var r,n=t.style,i=n.fracNum(),a=n.fracDen();r=t.havingStyle(i);var o=pd(e.numer,r,t);if(e.continued){var s=8.5/t.fontMetrics().ptPerEm,l=3.5/t.fontMetrics().ptPerEm;o.height=o.height<s?s:o.height,o.depth=o.depth<l?l:o.depth}r=t.havingStyle(a);var c,u,d,p,h,q,f,m,V,g,v=pd(e.denom,r,t);if(e.hasBarLine?(e.barSize?(u=wc(e.barSize,t),c=Ku("frac-line",t,u)):c=Ku("frac-line",t),u=c.height,d=c.height):(c=null,u=0,d=t.fontMetrics().defaultRuleThickness),n.size===fc.DISPLAY.size?(p=t.fontMetrics().num1,h=u>0?3*d:7*d,q=t.fontMetrics().denom1):(u>0?(p=t.fontMetrics().num2,h=d):(p=t.fontMetrics().num3,h=3*d),q=t.fontMetrics().denom2),c){var b=t.fontMetrics().axisHeight;p-o.depth-(b+.5*u)<h&&(p+=h-(p-o.depth-(b+.5*u))),b-.5*u-(v.height-q)<h&&(q+=h-(b-.5*u-(v.height-q))),f=Iu({positionType:"individualShift",children:[{type:"elem",elem:v,shift:q},{type:"elem",elem:c,shift:-(b-.5*u)},{type:"elem",elem:o,shift:-p}]})}else{var y=p-o.depth-(v.height-q);y<h&&(p+=.5*(h-y),q+=.5*(h-y)),f=Iu({positionType:"individualShift",children:[{type:"elem",elem:v,shift:q},{type:"elem",elem:o,shift:-p}]})}return r=t.havingStyle(n),f.height*=r.sizeMultiplier/t.sizeMultiplier,f.depth*=r.sizeMultiplier/t.sizeMultiplier,m=n.size===fc.DISPLAY.size?t.fontMetrics().delim1:n.size===fc.SCRIPTSCRIPT.size?t.havingStyle(fc.SCRIPT).fontMetrics().delim2:t.fontMetrics().delim2,V=null==e.leftDelim?dd(t,["mopen"]):Cp(e.leftDelim,m,!0,t.havingStyle(n),e.mode,["mopen"]),g=e.continued?Wu([]):null==e.rightDelim?dd(t,["mclose"]):Cp(e.rightDelim,m,!0,t.havingStyle(n),e.mode,["mclose"]),Wu(["mord"].concat(r.sizingClasses(t)),[V,Wu(["mfrac"],[f]),g],t)},mathmlBuilder:(e,t)=>{var r=new md("mfrac",[Cd(e.numer,t),Cd(e.denom,t)]);if(e.hasBarLine){if(e.barSize){var n=wc(e.barSize,t);r.setAttribute("linethickness",Uc(n))}}else r.setAttribute("linethickness","0px");if(null!=e.leftDelim||null!=e.rightDelim){var i=[];if(null!=e.leftDelim){var a=new md("mo",[new Vd(e.leftDelim.replace("\\",""))]);a.setAttribute("fence","true"),i.push(a)}if(i.push(r),null!=e.rightDelim){var o=new md("mo",[new Vd(e.rightDelim.replace("\\",""))]);o.setAttribute("fence","true"),i.push(o)}return Sd(i)}return r}}),_u({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(e){var t,{parser:r,funcName:n,token:i}=e;switch(n){case"\\over":t="\\frac";break;case"\\choose":t="\\binom";break;case"\\atop":t="\\\\atopfrac";break;case"\\brace":t="\\\\bracefrac";break;case"\\brack":t="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:r.mode,replaceWith:t,token:i}}});var rh=["display","text","script","scriptscript"],nh=function(e){var t=null;return e.length>0&&(t="."===(t=e)?null:t),t};_u({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(e,t){var r,{parser:n}=e,i=t[4],a=t[5],o=ed(t[0]),s="atom"===o.type&&"open"===o.family?nh(o.text):null,l=ed(t[1]),c="atom"===l.type&&"close"===l.family?nh(l.text):null,u=Id(t[2],"size"),d=null;r=!!u.isBlank||(d=u.value).number>0;var p=null,h=t[3];if("ordgroup"===h.type){if(h.body.length>0){var q=Id(h.body[0],"textord");p=rh[Number(q.text)]}}else h=Id(h,"textord"),p=rh[Number(h.text)];return th({type:"genfrac",mode:n.mode,numer:i,denom:a,continued:!1,hasBarLine:r,barSize:d,leftDelim:s,rightDelim:c},p)}}),_u({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(e,t){var{parser:r,funcName:n,token:i}=e;return{type:"infix",mode:r.mode,replaceWith:"\\\\abovefrac",size:Id(t[0],"size").value,token:i}}}),_u({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(e,t)=>{var{parser:r,funcName:n}=e,i=t[0],a=Id(t[1],"infix").size;if(!a)throw new Error("\\\\abovefrac expected size, but got "+String(a));var o=t[2],s=a.number>0;return{type:"genfrac",mode:r.mode,numer:i,denom:o,continued:!1,hasBarLine:s,barSize:a,leftDelim:null,rightDelim:null}}});var ih=(e,t)=>{var r,n,i=t.style;"supsub"===e.type?(r=e.sup?pd(e.sup,t.havingStyle(i.sup()),t):pd(e.sub,t.havingStyle(i.sub()),t),n=Id(e.base,"horizBrace")):n=Id(e,"horizBrace");var a,o=pd(n.base,t.havingBaseStyle(fc.DISPLAY)),s=Pd(n,t);if(n.isOver?(a=Iu({positionType:"firstBaseline",children:[{type:"elem",elem:o},{type:"kern",size:.1},{type:"elem",elem:s}]})).children[0].children[0].children[1].classes.push("svg-align"):(a=Iu({positionType:"bottom",positionData:o.depth+.1+s.height,children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:o}]})).children[0].children[0].children[0].classes.push("svg-align"),r){var l=Wu(["mord",n.isOver?"mover":"munder"],[a],t);a=n.isOver?Iu({positionType:"firstBaseline",children:[{type:"elem",elem:l},{type:"kern",size:.2},{type:"elem",elem:r}]}):Iu({positionType:"bottom",positionData:l.depth+.2+r.height+r.depth,children:[{type:"elem",elem:r},{type:"kern",size:.2},{type:"elem",elem:l}]})}return Wu(["mord",n.isOver?"mover":"munder"],[a],t)};_u({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:n}=e;return{type:"horizBrace",mode:r.mode,label:n,isOver:/^\\over/.test(n),base:t[0]}},htmlBuilder:ih,mathmlBuilder:(e,t)=>{var r=Nd(e.label);return new md(e.isOver?"mover":"munder",[Cd(e.base,t),r])}}),_u({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=t[1],i=Id(t[0],"url").url;return r.settings.isTrusted({command:"\\href",url:i})?{type:"href",mode:r.mode,href:i,body:td(n)}:r.formatUnsupportedCmd("\\href")},htmlBuilder:(e,t)=>{var r=od(e.body,t,!1);return function(e,t,r,n){var i=new Fc(e,[],r,n);return Fu(i),i}(e.href,0,r,t)},mathmlBuilder:(e,t)=>{var r=xd(e.body,t);return r instanceof md||(r=new md("mrow",[r])),r.setAttribute("href",e.href),r}}),_u({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=Id(t[0],"url").url;if(!r.settings.isTrusted({command:"\\url",url:n}))return r.formatUnsupportedCmd("\\url");for(var i=[],a=0;a<n.length;a++){var o=n[a];"~"===o&&(o="\\textasciitilde"),i.push({type:"textord",mode:"text",text:o})}var s={type:"text",mode:r.mode,font:"\\texttt",body:i};return{type:"href",mode:r.mode,href:n,body:td(s)}}}),_u({type:"hbox",names:["\\hbox"],props:{numArgs:1,argTypes:["text"],allowedInText:!0,primitive:!0},handler(e,t){var{parser:r}=e;return{type:"hbox",mode:r.mode,body:td(t[0])}},htmlBuilder(e,t){var r=od(e.body,t,!1);return Ou(r)},mathmlBuilder:(e,t)=>new md("mrow",Ud(e.body,t))}),_u({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:(e,t)=>{var r,{parser:n,funcName:i,token:a}=e,o=Id(t[0],"raw").string,s=t[1];n.settings.strict&&n.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var l={};switch(i){case"\\htmlClass":l.class=o,r={command:"\\htmlClass",class:o};break;case"\\htmlId":l.id=o,r={command:"\\htmlId",id:o};break;case"\\htmlStyle":l.style=o,r={command:"\\htmlStyle",style:o};break;case"\\htmlData":for(var c=o.split(","),u=0;u<c.length;u++){var d=c[u],p=d.indexOf("=");if(p<0)throw new Yl("\\htmlData key/value '"+d+"' missing equals sign");var h=d.slice(0,p),q=d.slice(p+1);l["data-"+h.trim()]=q}r={command:"\\htmlData",attributes:l};break;default:throw new Error("Unrecognized html command")}return n.settings.isTrusted(r)?{type:"html",mode:n.mode,attributes:l,body:td(s)}:n.formatUnsupportedCmd(i)},htmlBuilder:(e,t)=>{var r=od(e.body,t,!1),n=["enclosing"];e.attributes.class&&n.push(...e.attributes.class.trim().split(/\s+/));var i=Wu(n,r,t);for(var a in e.attributes)"class"!==a&&e.attributes.hasOwnProperty(a)&&i.setAttribute(a,e.attributes[a]);return i},mathmlBuilder:(e,t)=>xd(e.body,t)}),_u({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInArgument:!0,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e;return{type:"htmlmathml",mode:r.mode,html:td(t[0]),mathml:td(t[1])}},htmlBuilder:(e,t)=>{var r=od(e.html,t,!1);return Ou(r)},mathmlBuilder:(e,t)=>xd(e.mathml,t)});var ah=function(e){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e))return{number:+e,unit:"bp"};var t=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e);if(!t)throw new Yl("Invalid size: '"+e+"' in \\includegraphics");var r={number:+(t[1]+t[2]),unit:t[3]};if(!Ac(r))throw new Yl("Invalid unit: '"+r.unit+"' in \\includegraphics.");return r};_u({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(e,t,r)=>{var{parser:n}=e,i={number:0,unit:"em"},a={number:.9,unit:"em"},o={number:0,unit:"em"},s="";if(r[0])for(var l=Id(r[0],"raw").string.split(","),c=0;c<l.length;c++){var u=l[c].split("=");if(2===u.length){var d=u[1].trim();switch(u[0].trim()){case"alt":s=d;break;case"width":i=ah(d);break;case"height":a=ah(d);break;case"totalheight":o=ah(d);break;default:throw new Yl("Invalid key: '"+u[0]+"' in \\includegraphics.")}}}var p=Id(t[0],"url").url;return""===s&&(s=(s=(s=p).replace(/^.*[\\/]/,"")).substring(0,s.lastIndexOf("."))),n.settings.isTrusted({command:"\\includegraphics",url:p})?{type:"includegraphics",mode:n.mode,alt:s,width:i,height:a,totalheight:o,src:p}:n.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:(e,t)=>{var r=wc(e.height,t),n=0;e.totalheight.number>0&&(n=wc(e.totalheight,t)-r);var i=0;e.width.number>0&&(i=wc(e.width,t));var a={height:Uc(r+n)};i>0&&(a.width=Uc(i)),n>0&&(a.verticalAlign=Uc(-n));var o=new Wc(e.src,e.alt,a);return o.height=r,o.depth=n,o},mathmlBuilder:(e,t)=>{var r=new md("mglyph",[]);r.setAttribute("alt",e.alt);var n=wc(e.height,t),i=0;if(e.totalheight.number>0&&(i=wc(e.totalheight,t)-n,r.setAttribute("valign",Uc(-i))),r.setAttribute("height",Uc(n+i)),e.width.number>0){var a=wc(e.width,t);r.setAttribute("width",Uc(a))}return r.setAttribute("src",e.src),r}}),_u({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(e,t){var{parser:r,funcName:n}=e,i=Id(t[0],"size");if(r.settings.strict){var a="m"===n[1],o="mu"===i.value.unit;a?(o||r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" supports only mu units, not "+i.value.unit+" units"),"math"!==r.mode&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" works only in math mode")):o&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" doesn't support mu units")}return{type:"kern",mode:r.mode,dimension:i.value}},htmlBuilder:(e,t)=>Lu(e.dimension,t),mathmlBuilder(e,t){var r=wc(e.dimension,t);return new gd(r)}}),_u({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r,funcName:n}=e,i=t[0];return{type:"lap",mode:r.mode,alignment:n.slice(5),body:i}},htmlBuilder:(e,t)=>{var r;"clap"===e.alignment?(r=Wu([],[pd(e.body,t)]),r=Wu(["inner"],[r],t)):r=Wu(["inner"],[pd(e.body,t)]);var n=Wu(["fix"],[]),i=Wu([e.alignment],[r,n],t),a=Wu(["strut"]);return a.style.height=Uc(i.height+i.depth),i.depth&&(a.style.verticalAlign=Uc(-i.depth)),i.children.unshift(a),i=Wu(["thinbox"],[i],t),Wu(["mord","vbox"],[i],t)},mathmlBuilder:(e,t)=>{var r=new md("mpadded",[Cd(e.body,t)]);if("rlap"!==e.alignment){var n="llap"===e.alignment?"-1":"-0.5";r.setAttribute("lspace",n+"width")}return r.setAttribute("width","0px"),r}}),_u({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:r,parser:n}=e,i=n.mode;n.switchMode("math");var a="\\("===r?"\\)":"$",o=n.parseExpression(!1,a);return n.expect(a),n.switchMode(i),{type:"styling",mode:n.mode,style:"text",body:o}}}),_u({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new Yl("Mismatched "+e.funcName)}});var oh=(e,t)=>{switch(t.style.size){case fc.DISPLAY.size:return e.display;case fc.TEXT.size:return e.text;case fc.SCRIPT.size:return e.script;case fc.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};_u({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:r}=e;return{type:"mathchoice",mode:r.mode,display:td(t[0]),text:td(t[1]),script:td(t[2]),scriptscript:td(t[3])}},htmlBuilder:(e,t)=>{var r=oh(e,t),n=od(r,t,!1);return Ou(n)},mathmlBuilder:(e,t)=>{var r=oh(e,t);return xd(r,t)}});var sh=(e,t,r,n,i,a,o)=>{e=Wu([],[e]);var s,l,c,u=r&&nc(r);if(t){var d=pd(t,n.havingStyle(i.sup()),n);l={elem:d,kern:Math.max(n.fontMetrics().bigOpSpacing1,n.fontMetrics().bigOpSpacing3-d.depth)}}if(r){var p=pd(r,n.havingStyle(i.sub()),n);s={elem:p,kern:Math.max(n.fontMetrics().bigOpSpacing2,n.fontMetrics().bigOpSpacing4-p.height)}}if(l&&s){var h=n.fontMetrics().bigOpSpacing5+s.elem.height+s.elem.depth+s.kern+e.depth+o;c=Iu({positionType:"bottom",positionData:h,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:s.elem,marginLeft:Uc(-a)},{type:"kern",size:s.kern},{type:"elem",elem:e},{type:"kern",size:l.kern},{type:"elem",elem:l.elem,marginLeft:Uc(a)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]})}else if(s){var q=e.height-o;c=Iu({positionType:"top",positionData:q,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:s.elem,marginLeft:Uc(-a)},{type:"kern",size:s.kern},{type:"elem",elem:e}]})}else{if(!l)return e;var f=e.depth+o;c=Iu({positionType:"bottom",positionData:f,children:[{type:"elem",elem:e},{type:"kern",size:l.kern},{type:"elem",elem:l.elem,marginLeft:Uc(a)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]})}var m=[c];if(s&&0!==a&&!u){var V=Wu(["mspace"],[],n);V.style.marginRight=Uc(a),m.unshift(V)}return Wu(["mop","op-limits"],m,n)},lh=new Set(["\\smallint"]),ch=(e,t)=>{var r,n,i,a=!1;"supsub"===e.type?(r=e.sup,n=e.sub,i=Id(e.base,"op"),a=!0):i=Id(e,"op");var o,s=t.style,l=!1;if(s.size===fc.DISPLAY.size&&i.symbol&&!lh.has(i.name)&&(l=!0),i.symbol){var c=l?"Size2-Regular":"Size1-Regular",u="";if("\\oiint"!==i.name&&"\\oiiint"!==i.name||(u=i.name.slice(1),i.name="oiint"===u?"\\iint":"\\iiint"),o=Cu(i.name,c,"math",t,["mop","op-symbol",l?"large-op":"small-op"]),u.length>0){var d=o.italic,p=ju(u+"Size"+(l?"2":"1"),t);o=Iu({positionType:"individualShift",children:[{type:"elem",elem:o,shift:0},{type:"elem",elem:p,shift:l?.08:0}]}),i.name="\\"+u,o.classes.unshift("mop"),o.italic=d}}else if(i.body){var h=od(i.body,t,!0);1===h.length&&h[0]instanceof Kc?(o=h[0]).classes[0]="mop":o=Wu(["mop"],h,t)}else{for(var q=[],f=1;f<i.name.length;f++)q.push(Ru(i.name[f],i.mode,t));o=Wu(["mop"],q,t)}var m=0,V=0;return(o instanceof Kc||"\\oiint"===i.name||"\\oiiint"===i.name)&&!i.suppressBaseShift&&(m=(o.height-o.depth)/2-t.fontMetrics().axisHeight,V=o.italic||0),a?sh(o,r,n,t,s,V,m):(m&&(o.style.position="relative",o.style.top=Uc(m)),o)},uh=(e,t)=>{var r;if(e.symbol)r=new md("mo",[yd(e.name,e.mode)]),lh.has(e.name)&&r.setAttribute("largeop","false");else if(e.body)r=new md("mo",Ud(e.body,t));else{r=new md("mi",[new Vd(e.name.slice(1))]);var n=new md("mo",[yd("","text")]);r=e.parentIsSupSub?new md("mrow",[r,n]):fd([r,n])}return r},dh={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};_u({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:(e,t)=>{var{parser:r,funcName:n}=e,i=n;return 1===i.length&&(i=dh[i]),{type:"op",mode:r.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:i}},htmlBuilder:ch,mathmlBuilder:uh}),_u({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var{parser:r}=e,n=t[0];return{type:"op",mode:r.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:td(n)}},htmlBuilder:ch,mathmlBuilder:uh});var ph={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};_u({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(e){var{parser:t,funcName:r}=e;return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:r}},htmlBuilder:ch,mathmlBuilder:uh}),_u({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(e){var{parser:t,funcName:r}=e;return{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:r}},htmlBuilder:ch,mathmlBuilder:uh}),_u({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0,allowedInArgument:!0},handler(e){var{parser:t,funcName:r}=e,n=r;return 1===n.length&&(n=ph[n]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:n}},htmlBuilder:ch,mathmlBuilder:uh});var hh=(e,t)=>{var r,n,i,a,o=!1;if("supsub"===e.type?(r=e.sup,n=e.sub,i=Id(e.base,"operatorname"),o=!0):i=Id(e,"operatorname"),i.body.length>0){for(var s=(i.body.map(e=>{var t="text"in e?e.text:void 0;return"string"==typeof t?{type:"textord",mode:e.mode,text:t}:e})),l=od(s,t.withFont("mathrm"),!0),c=0;c<l.length;c++){var u=l[c];u instanceof Kc&&(u.text=u.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}a=Wu(["mop"],l,t)}else a=Wu(["mop"],[],t);return o?sh(a,r,n,t,t.style,0,0):a};function qh(e,t,r){for(var n=od(e,t,!1),i=t.sizeMultiplier/r.sizeMultiplier,a=0;a<n.length;a++){var o=n[a].classes.indexOf("sizing");o<0?Array.prototype.push.apply(n[a].classes,t.sizingClasses(r)):n[a].classes[o+1]==="reset-size"+t.size&&(n[a].classes[o+1]="reset-size"+r.size),n[a].height*=i,n[a].depth*=i}return Ou(n)}_u({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(e,t)=>{var{parser:r,funcName:n}=e,i=t[0];return{type:"operatorname",mode:r.mode,body:td(i),alwaysHandleSupSub:"\\operatornamewithlimits"===n,limits:!1,parentIsSupSub:!1}},htmlBuilder:hh,mathmlBuilder:(e,t)=>{for(var r=Ud(e.body,t.withFont("mathrm")),n=!0,i=0;i<r.length;i++){var a=r[i];if(a instanceof gd);else if(a instanceof md)switch(a.type){case"mi":case"mn":case"mspace":case"mtext":break;case"mo":var o=a.children[0];1===a.children.length&&o instanceof Vd?o.text=o.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):n=!1;break;default:n=!1}else n=!1}if(n){var s=r.map(e=>e.toText()).join("");r=[new Vd(s)]}var l=new md("mi",r);l.setAttribute("mathvariant","normal");var c=new md("mo",[yd("","text")]);return e.parentIsSupSub?new md("mrow",[l,c]):fd([l,c])}}),Ip("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@"),$u({type:"ordgroup",htmlBuilder:(e,t)=>e.semisimple?Ou(od(e.body,t,!1)):Wu(["mord"],od(e.body,t,!0),t),mathmlBuilder:(e,t)=>xd(e.body,t,!0)}),_u({type:"overline",names:["\\overline"],props:{numArgs:1},handler(e,t){var{parser:r}=e,n=t[0];return{type:"overline",mode:r.mode,body:n}},htmlBuilder(e,t){var r=pd(e.body,t.havingCrampedStyle()),n=Ku("overline-line",t),i=t.fontMetrics().defaultRuleThickness,a=Iu({positionType:"firstBaseline",children:[{type:"elem",elem:r},{type:"kern",size:3*i},{type:"elem",elem:n},{type:"kern",size:i}]});return Wu(["mord","overline"],[a],t)},mathmlBuilder(e,t){var r=new md("mo",[new Vd("‾")]);r.setAttribute("stretchy","true");var n=new md("mover",[Cd(e.body,t),r]);return n.setAttribute("accent","true"),n}}),_u({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=t[0];return{type:"phantom",mode:r.mode,body:td(n)}},htmlBuilder:(e,t)=>{var r=od(e.body,t.withPhantom(),!1);return Ou(r)},mathmlBuilder:(e,t)=>{var r=Ud(e.body,t);return new md("mphantom",r)}}),Ip("\\hphantom","\\smash{\\phantom{#1}}"),_u({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=t[0];return{type:"vphantom",mode:r.mode,body:n}},htmlBuilder:(e,t)=>{var r=Wu(["inner"],[pd(e.body,t.withPhantom())]),n=Wu(["fix"],[]);return Wu(["mord","rlap"],[r,n],t)},mathmlBuilder:(e,t)=>{var r=Ud(td(e.body),t),n=new md("mphantom",r),i=new md("mpadded",[n]);return i.setAttribute("width","0px"),i}}),_u({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(e,t){var{parser:r}=e,n=Id(t[0],"size").value,i=t[1];return{type:"raisebox",mode:r.mode,dy:n,body:i}},htmlBuilder(e,t){var r=pd(e.body,t),n=wc(e.dy,t);return Iu({positionType:"shift",positionData:-n,children:[{type:"elem",elem:r}]})},mathmlBuilder(e,t){var r=new md("mpadded",[Cd(e.body,t)]),n=e.dy.number+e.dy.unit;return r.setAttribute("voffset",n),r}}),_u({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(e){var{parser:t}=e;return{type:"internal",mode:t.mode}}}),_u({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"]},handler(e,t,r){var{parser:n}=e,i=r[0],a=Id(t[0],"size"),o=Id(t[1],"size");return{type:"rule",mode:n.mode,shift:i&&Id(i,"size").value,width:a.value,height:o.value}},htmlBuilder(e,t){var r=Wu(["mord","rule"],[],t),n=wc(e.width,t),i=wc(e.height,t),a=e.shift?wc(e.shift,t):0;return r.style.borderRightWidth=Uc(n),r.style.borderTopWidth=Uc(i),r.style.bottom=Uc(a),r.width=n,r.height=i+a,r.depth=-a,r.maxFontSize=1.125*i*t.sizeMultiplier,r},mathmlBuilder(e,t){var r=wc(e.width,t),n=wc(e.height,t),i=e.shift?wc(e.shift,t):0,a=t.color&&t.getColor()||"black",o=new md("mspace");o.setAttribute("mathbackground",a),o.setAttribute("width",Uc(r)),o.setAttribute("height",Uc(n));var s=new md("mpadded",[o]);return i>=0?s.setAttribute("height",Uc(i)):(s.setAttribute("height",Uc(i)),s.setAttribute("depth",Uc(-i))),s.setAttribute("voffset",Uc(i)),s}});var fh=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"];_u({type:"sizing",names:fh,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{breakOnTokenText:r,funcName:n,parser:i}=e,a=i.parseExpression(!1,r);return{type:"sizing",mode:i.mode,size:fh.indexOf(n)+1,body:a}},htmlBuilder:(e,t)=>{var r=t.havingSize(e.size);return qh(e.body,r,t)},mathmlBuilder:(e,t)=>{var r=t.havingSize(e.size),n=Ud(e.body,r),i=new md("mstyle",n);return i.setAttribute("mathsize",Uc(r.sizeMultiplier)),i}}),_u({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,r)=>{var{parser:n}=e,i=!1,a=!1,o=r[0]&&Id(r[0],"ordgroup");if(o)for(var s="",l=0;l<o.body.length;++l)if("t"===(s=Ld(o.body[l]).text))i=!0;else{if("b"!==s){i=!1,a=!1;break}a=!0}else i=!0,a=!0;var c=t[0];return{type:"smash",mode:n.mode,body:c,smashHeight:i,smashDepth:a}},htmlBuilder:(e,t)=>{var r=Wu([],[pd(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return r;if(e.smashHeight&&(r.height=0),e.smashDepth&&(r.depth=0),e.smashHeight&&e.smashDepth)return Wu(["mord","smash"],[r],t);if(r.children)for(var n=0;n<r.children.length;n++)e.smashHeight&&(r.children[n].height=0),e.smashDepth&&(r.children[n].depth=0);var i=Iu({positionType:"firstBaseline",children:[{type:"elem",elem:r}]});return Wu(["mord"],[i],t)},mathmlBuilder:(e,t)=>{var r=new md("mpadded",[Cd(e.body,t)]);return e.smashHeight&&r.setAttribute("height","0px"),e.smashDepth&&r.setAttribute("depth","0px"),r}}),_u({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,r){var{parser:n}=e,i=r[0],a=t[0];return{type:"sqrt",mode:n.mode,body:a,index:i}},htmlBuilder(e,t){var r=pd(e.body,t.havingCrampedStyle());0===r.height&&(r.height=t.fontMetrics().xHeight),r=Pu(r,t);var n=t.fontMetrics().defaultRuleThickness,i=n;t.style.id<fc.TEXT.id&&(i=t.fontMetrics().xHeight);var a=n+i/4,o=r.height+r.depth+a+n,{span:s,ruleWidth:l,advanceWidth:c}=function(e,t){var r,n,i=t.havingBaseSizing(),a=xp("\\surd",e*i.sizeMultiplier,wp,i),o=i.sizeMultiplier,s=Math.max(0,t.minRuleThickness-t.fontMetrics().sqrtRuleThickness),l=0,c=0,u=0;return"small"===a.type?(e<1?o=1:e<1.4&&(o=.7),c=(1+s)/o,(r=mp("sqrtMain",l=(1+s+fp)/o,u=1e3+1e3*s+80,s,t)).style.minWidth="0.853em",n=.833/o):"large"===a.type?(u=1080*bp[a.size],c=(bp[a.size]+s)/o,l=(bp[a.size]+s+fp)/o,(r=mp("sqrtSize"+a.size,l,u,s,t)).style.minWidth="1.02em",n=1/o):(l=e+s+fp,c=e+s,u=Math.floor(1e3*e+s)+80,(r=mp("sqrtTall",l,u,s,t)).style.minWidth="0.742em",n=1.056),r.height=c,r.style.height=Uc(l),{span:r,advanceWidth:n,ruleWidth:(t.fontMetrics().sqrtRuleThickness+s)*o}}(o,t),u=s.height-l;u>r.height+r.depth+a&&(a=(a+u-r.height-r.depth)/2);var d=s.height-r.height-a-l;r.style.paddingLeft=Uc(c);var p=Iu({positionType:"firstBaseline",children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:-(r.height+d)},{type:"elem",elem:s},{type:"kern",size:l}]});if(e.index){var h=t.havingStyle(fc.SCRIPTSCRIPT),q=pd(e.index,h,t),f=.6*(p.height-p.depth),m=Iu({positionType:"shift",positionData:-f,children:[{type:"elem",elem:q}]}),V=Wu(["root"],[m]);return Wu(["mord","sqrt"],[V,p],t)}return Wu(["mord","sqrt"],[p],t)},mathmlBuilder(e,t){var{body:r,index:n}=e;return n?new md("mroot",[Cd(r,t),Cd(n,t)]):new md("msqrt",[Cd(r,t)])}});var mh={display:fc.DISPLAY,text:fc.TEXT,script:fc.SCRIPT,scriptscript:fc.SCRIPTSCRIPT};_u({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:r,funcName:n,parser:i}=e,a=i.parseExpression(!0,r),o=n.slice(1,n.length-5);return{type:"styling",mode:i.mode,style:o,body:a}},htmlBuilder(e,t){var r=mh[e.style],n=t.havingStyle(r).withFont("");return qh(e.body,n,t)},mathmlBuilder(e,t){var r=mh[e.style],n=t.havingStyle(r),i=Ud(e.body,n),a=new md("mstyle",i),o={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]}[e.style];return a.setAttribute("scriptlevel",o[0]),a.setAttribute("displaystyle",o[1]),a}}),$u({type:"supsub",htmlBuilder(e,t){var r=function(e,t){var r=e.base;return r?"op"===r.type?r.limits&&(t.style.size===fc.DISPLAY.size||r.alwaysHandleSupSub)?ch:null:"operatorname"===r.type?r.alwaysHandleSupSub&&(t.style.size===fc.DISPLAY.size||r.limits)?hh:null:"accent"===r.type?nc(r.base)?Xd:null:"horizBrace"===r.type&&!e.sub===r.isOver?ih:null:null}(e,t);if(r)return r(e,t);var n,i,a,{base:o,sup:s,sub:l}=e,c=pd(o,t),u=t.fontMetrics(),d=0,p=0,h=o&&nc(o);if(s){var q=t.havingStyle(t.style.sup());n=pd(s,q,t),h||(d=c.height-q.fontMetrics().supDrop*q.sizeMultiplier/t.sizeMultiplier)}if(l){var f=t.havingStyle(t.style.sub());i=pd(l,f,t),h||(p=c.depth+f.fontMetrics().subDrop*f.sizeMultiplier/t.sizeMultiplier)}a=t.style===fc.DISPLAY?u.sup1:t.style.cramped?u.sup3:u.sup2;var m,V=t.sizeMultiplier,g=Uc(.5/u.ptPerEm/V),v=null;if(i){var b=e.base&&"op"===e.base.type&&e.base.name&&("\\oiint"===e.base.name||"\\oiiint"===e.base.name);(c instanceof Kc||b)&&(v=Uc(-c.italic))}if(n&&i){d=Math.max(d,a,n.depth+.25*u.xHeight),p=Math.max(p,u.sub2);var y=4*u.defaultRuleThickness;if(d-n.depth-(i.height-p)<y){p=y-(d-n.depth)+i.height;var S=.8*u.xHeight-(d-n.depth);S>0&&(d+=S,p-=S)}m=Iu({positionType:"individualShift",children:[{type:"elem",elem:i,shift:p,marginRight:g,marginLeft:v},{type:"elem",elem:n,shift:-d,marginRight:g}]})}else if(i)p=Math.max(p,u.sub1,i.height-.8*u.xHeight),m=Iu({positionType:"shift",positionData:p,children:[{type:"elem",elem:i,marginLeft:v,marginRight:g}]});else{if(!n)throw new Error("supsub must have either sup or sub.");d=Math.max(d,a,n.depth+.25*u.xHeight),m=Iu({positionType:"shift",positionData:-d,children:[{type:"elem",elem:n,marginRight:g}]})}var A=ud(c,"right")||"mord";return Wu([A],[c,Wu(["msupsub"],[m])],t)},mathmlBuilder(e,t){var r,n=!1;e.base&&"horizBrace"===e.base.type&&!!e.sup===e.base.isOver&&(n=!0,r=e.base.isOver),!e.base||"op"!==e.base.type&&"operatorname"!==e.base.type||(e.base.parentIsSupSub=!0);var i,a=[Cd(e.base,t)];if(e.sub&&a.push(Cd(e.sub,t)),e.sup&&a.push(Cd(e.sup,t)),n)i=r?"mover":"munder";else if(e.sub)if(e.sup){var o=e.base;i=o&&"op"===o.type&&o.limits&&t.style===fc.DISPLAY||o&&"operatorname"===o.type&&o.alwaysHandleSupSub&&(t.style===fc.DISPLAY||o.limits)?"munderover":"msubsup"}else{var s=e.base;i=s&&"op"===s.type&&s.limits&&(t.style===fc.DISPLAY||s.alwaysHandleSupSub)||s&&"operatorname"===s.type&&s.alwaysHandleSupSub&&(s.limits||t.style===fc.DISPLAY)?"munder":"msub"}else{var l=e.base;i=l&&"op"===l.type&&l.limits&&(t.style===fc.DISPLAY||l.alwaysHandleSupSub)||l&&"operatorname"===l.type&&l.alwaysHandleSupSub&&(l.limits||t.style===fc.DISPLAY)?"mover":"msup"}return new md(i,a)}}),$u({type:"atom",htmlBuilder:(e,t)=>Ru(e.text,e.mode,t,["m"+e.family]),mathmlBuilder(e,t){var r=new md("mo",[yd(e.text,e.mode)]);if("bin"===e.family){var n=Ad(e,t);"bold-italic"===n&&r.setAttribute("mathvariant",n)}else"punct"===e.family?r.setAttribute("separator","true"):"open"!==e.family&&"close"!==e.family||r.setAttribute("stretchy","false");return r}});var Vh={mi:"italic",mn:"normal",mtext:"normal"};$u({type:"mathord",htmlBuilder:(e,t)=>Eu(e,t,"mathord"),mathmlBuilder(e,t){var r=new md("mi",[yd(e.text,e.mode,t)]),n=Ad(e,t)||"italic";return n!==Vh[r.type]&&r.setAttribute("mathvariant",n),r}}),$u({type:"textord",htmlBuilder:(e,t)=>Eu(e,t,"textord"),mathmlBuilder(e,t){var r,n=yd(e.text,e.mode,t),i=Ad(e,t)||"normal";return r="text"===e.mode?new md("mtext",[n]):/[0-9]/.test(e.text)?new md("mn",[n]):"\\prime"===e.text?new md("mo",[n]):new md("mi",[n]),i!==Vh[r.type]&&r.setAttribute("mathvariant",i),r}});var gh={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},vh={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};$u({type:"spacing",htmlBuilder(e,t){if(vh.hasOwnProperty(e.text)){var r=vh[e.text].className||"";if("text"===e.mode){var n=Eu(e,t,"textord");return n.classes.push(r),n}return Wu(["mspace",r],[Ru(e.text,e.mode,t)],t)}if(gh.hasOwnProperty(e.text))return Wu(["mspace",gh[e.text]],[],t);throw new Yl('Unknown type of space "'+e.text+'"')},mathmlBuilder(e,t){if(!vh.hasOwnProperty(e.text)){if(gh.hasOwnProperty(e.text))return new md("mspace");throw new Yl('Unknown type of space "'+e.text+'"')}return new md("mtext",[new Vd(" ")])}});var bh=()=>{var e=new md("mtd",[]);return e.setAttribute("width","50%"),e};$u({type:"tag",mathmlBuilder(e,t){var r=new md("mtable",[new md("mtr",[bh(),new md("mtd",[xd(e.body,t)]),bh(),new md("mtd",[xd(e.tag,t)])])]);return r.setAttribute("width","100%"),r}});var yh={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},Sh={"\\textbf":"textbf","\\textmd":"textmd"},Ah={"\\textit":"textit","\\textup":"textup"},wh=(e,t)=>{var r=e.font;return r?yh[r]?t.withTextFontFamily(yh[r]):Sh[r]?t.withTextFontWeight(Sh[r]):"\\emph"===r?"textit"===t.fontShape?t.withTextFontShape("textup"):t.withTextFontShape("textit"):t.withTextFontShape(Ah[r]):t};_u({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(e,t){var{parser:r,funcName:n}=e,i=t[0];return{type:"text",mode:r.mode,body:td(i),font:n}},htmlBuilder(e,t){var r=wh(e,t),n=od(e.body,r,!0);return Wu(["mord","text"],n,r)},mathmlBuilder(e,t){var r=wh(e,t);return xd(e.body,r)}}),_u({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"underline",mode:r.mode,body:t[0]}},htmlBuilder(e,t){var r=pd(e.body,t),n=Ku("underline-line",t),i=t.fontMetrics().defaultRuleThickness,a=Iu({positionType:"top",positionData:r.height,children:[{type:"kern",size:i},{type:"elem",elem:n},{type:"kern",size:3*i},{type:"elem",elem:r}]});return Wu(["mord","underline"],[a],t)},mathmlBuilder(e,t){var r=new md("mo",[new Vd("‾")]);r.setAttribute("stretchy","true");var n=new md("munder",[Cd(e.body,t),r]);return n.setAttribute("accentunder","true"),n}}),_u({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(e,t){var{parser:r}=e;return{type:"vcenter",mode:r.mode,body:t[0]}},htmlBuilder(e,t){var r=pd(e.body,t),n=t.fontMetrics().axisHeight,i=.5*(r.height-n-(r.depth+n));return Iu({positionType:"shift",positionData:i,children:[{type:"elem",elem:r}]})},mathmlBuilder:(e,t)=>new md("mpadded",[Cd(e.body,t)],["vcenter"])}),_u({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,r){throw new Yl("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,t){for(var r=Uh(e),n=[],i=t.havingStyle(t.style.text()),a=0;a<r.length;a++){var o=r[a];"~"===o&&(o="\\textasciitilde"),n.push(Cu(o,"Typewriter-Regular",e.mode,i,["mord","texttt"]))}return Wu(["mord","text"].concat(i.sizingClasses(t)),ku(n),i)},mathmlBuilder(e,t){var r=new Vd(Uh(e)),n=new md("mtext",[r]);return n.setAttribute("mathvariant","monospace"),n}});var Uh=e=>e.body.replace(/ /g,e.star?"␣":" "),xh=Yu,Ch="[ \r\n\t]",Rh="(\\\\[a-zA-Z@]+)"+Ch+"*",Eh="[̀-ͯ]",Th=new RegExp(Eh+"+$"),kh="("+Ch+"+)|\\\\(\n|[ \r\t]+\n?)[ \r\t]*|([!-\\[\\]-‧-豈-]"+Eh+"*|[\ud800-\udbff][\udc00-\udfff]"+Eh+"*|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5|"+Rh+"|\\\\[^\ud800-\udfff])";class Fh{constructor(e,t){this.input=e,this.settings=t,this.tokenRegex=new RegExp(kh,"g"),this.catcodes={"%":14,"~":13}}setCatcode(e,t){this.catcodes[e]=t}lex(){var e=this.input,t=this.tokenRegex.lastIndex;if(t===e.length)return new Bp("EOF",new Lp(this,t,t));var r=this.tokenRegex.exec(e);if(null===r||r.index!==t)throw new Yl("Unexpected character: '"+e[t]+"'",new Bp(e[t],new Lp(this,t,t+1)));var n=r[6]||r[3]||(r[2]?"\\ ":" ");if(14===this.catcodes[n]){var i=e.indexOf("\n",this.tokenRegex.lastIndex);return-1===i?(this.tokenRegex.lastIndex=e.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=i+1,this.lex()}return new Bp(n,new Lp(this,t,this.tokenRegex.lastIndex))}}class Wh{constructor(e,t){void 0===e&&(e={}),void 0===t&&(t={}),this.current=t,this.builtins=e,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(0===this.undefStack.length)throw new Yl("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var e=this.undefStack.pop();for(var t in e)e.hasOwnProperty(t)&&(null==e[t]?delete this.current[t]:this.current[t]=e[t])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(e){return this.current.hasOwnProperty(e)||this.builtins.hasOwnProperty(e)}get(e){return this.current.hasOwnProperty(e)?this.current[e]:this.builtins[e]}set(e,t,r){if(void 0===r&&(r=!1),r){for(var n=0;n<this.undefStack.length;n++)delete this.undefStack[n][e];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][e]=t)}else{var i=this.undefStack[this.undefStack.length-1];i&&!i.hasOwnProperty(e)&&(i[e]=this.current[e])}null==t?delete this.current[e]:this.current[e]=t}}var Nh=Pp;Ip("\\noexpand",function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}}),Ip("\\expandafter",function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}}),Ip("\\@firstoftwo",function(e){return{tokens:e.consumeArgs(2)[0],numArgs:0}}),Ip("\\@secondoftwo",function(e){return{tokens:e.consumeArgs(2)[1],numArgs:0}}),Ip("\\@ifnextchar",function(e){var t=e.consumeArgs(3);e.consumeSpaces();var r=e.future();return 1===t[0].length&&t[0][0].text===r.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}}),Ip("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),Ip("\\TextOrMath",function(e){var t=e.consumeArgs(2);return"text"===e.mode?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var Kh={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};Ip("\\char",function(e){var t,r=e.popToken(),n=0;if("'"===r.text)t=8,r=e.popToken();else if('"'===r.text)t=16,r=e.popToken();else if("`"===r.text)if("\\"===(r=e.popToken()).text[0])n=r.text.charCodeAt(1);else{if("EOF"===r.text)throw new Yl("\\char` missing argument");n=r.text.charCodeAt(0)}else t=10;if(t){if(null==(n=Kh[r.text])||n>=t)throw new Yl("Invalid base-"+t+" digit "+r.text);for(var i;null!=(i=Kh[e.future().text])&&i<t;)n*=t,n+=i,e.popToken()}return"\\@char{"+n+"}"});var Oh=(e,t,r,n)=>{var i=e.consumeArg().tokens;if(1!==i.length)throw new Yl("\\newcommand's first argument must be a macro name");var a=i[0].text,o=e.isDefined(a);if(o&&!t)throw new Yl("\\newcommand{"+a+"} attempting to redefine "+a+"; use \\renewcommand");if(!o&&!r)throw new Yl("\\renewcommand{"+a+"} when command "+a+" does not yet exist; use \\newcommand");var s=0;if(1===(i=e.consumeArg().tokens).length&&"["===i[0].text){for(var l="",c=e.expandNextToken();"]"!==c.text&&"EOF"!==c.text;)l+=c.text,c=e.expandNextToken();if(!l.match(/^\s*[0-9]+\s*$/))throw new Yl("Invalid number of arguments: "+l);s=parseInt(l),i=e.consumeArg().tokens}return o&&n||e.macros.set(a,{tokens:i,numArgs:s}),""};Ip("\\newcommand",e=>Oh(e,!1,!0,!1)),Ip("\\renewcommand",e=>Oh(e,!0,!1,!1)),Ip("\\providecommand",e=>Oh(e,!0,!0,!0)),Ip("\\message",e=>(e.consumeArgs(1)[0],"")),Ip("\\errmessage",e=>(e.consumeArgs(1)[0],"")),Ip("\\show",e=>(e.popToken().text,"")),Ip("\\bgroup","{"),Ip("\\egroup","}"),Ip("~","\\nobreakspace"),Ip("\\lq","`"),Ip("\\rq","'"),Ip("\\aa","\\r a"),Ip("\\AA","\\r A"),Ip("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}"),Ip("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}"),Ip("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}"),Ip("ℬ","\\mathscr{B}"),Ip("ℰ","\\mathscr{E}"),Ip("ℱ","\\mathscr{F}"),Ip("ℋ","\\mathscr{H}"),Ip("ℐ","\\mathscr{I}"),Ip("ℒ","\\mathscr{L}"),Ip("ℳ","\\mathscr{M}"),Ip("ℛ","\\mathscr{R}"),Ip("ℭ","\\mathfrak{C}"),Ip("ℌ","\\mathfrak{H}"),Ip("ℨ","\\mathfrak{Z}"),Ip("\\Bbbk","\\Bbb{k}"),Ip("\\llap","\\mathllap{\\textrm{#1}}"),Ip("\\rlap","\\mathrlap{\\textrm{#1}}"),Ip("\\clap","\\mathclap{\\textrm{#1}}"),Ip("\\mathstrut","\\vphantom{(}"),Ip("\\underbar","\\underline{\\text{#1}}"),Ip("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}\\nobreak}{\\char"338}'),Ip("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}"),Ip("\\ne","\\neq"),Ip("≠","\\neq"),Ip("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}"),Ip("∉","\\notin"),Ip("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}"),Ip("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}"),Ip("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}"),Ip("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}"),Ip("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}"),Ip("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}"),Ip("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}"),Ip("⟂","\\perp"),Ip("‼","\\mathclose{!\\mkern-0.8mu!}"),Ip("∌","\\notni"),Ip("⌜","\\ulcorner"),Ip("⌝","\\urcorner"),Ip("⌞","\\llcorner"),Ip("⌟","\\lrcorner"),Ip("©","\\copyright"),Ip("®","\\textregistered"),Ip("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}'),Ip("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}'),Ip("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}'),Ip("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}'),Ip("\\vdots","{\\varvdots\\rule{0pt}{15pt}}"),Ip("⋮","\\vdots"),Ip("\\varGamma","\\mathit{\\Gamma}"),Ip("\\varDelta","\\mathit{\\Delta}"),Ip("\\varTheta","\\mathit{\\Theta}"),Ip("\\varLambda","\\mathit{\\Lambda}"),Ip("\\varXi","\\mathit{\\Xi}"),Ip("\\varPi","\\mathit{\\Pi}"),Ip("\\varSigma","\\mathit{\\Sigma}"),Ip("\\varUpsilon","\\mathit{\\Upsilon}"),Ip("\\varPhi","\\mathit{\\Phi}"),Ip("\\varPsi","\\mathit{\\Psi}"),Ip("\\varOmega","\\mathit{\\Omega}"),Ip("\\substack","\\begin{subarray}{c}#1\\end{subarray}"),Ip("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax"),Ip("\\boxed","\\fbox{$\\displaystyle{#1}$}"),Ip("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;"),Ip("\\implies","\\DOTSB\\;\\Longrightarrow\\;"),Ip("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;"),Ip("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}"),Ip("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");var Ph={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"},Ih=new Set(["bin","rel"]);Ip("\\dots",function(e){var t="\\dotso",r=e.expandAfterFuture().text;return r in Ph?t=Ph[r]:("\\not"===r.slice(0,4)||r in Gc.math&&Ih.has(Gc.math[r].group))&&(t="\\dotsb"),t});var Lh={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};Ip("\\dotso",function(e){return e.future().text in Lh?"\\ldots\\,":"\\ldots"}),Ip("\\dotsc",function(e){var t=e.future().text;return t in Lh&&","!==t?"\\ldots\\,":"\\ldots"}),Ip("\\cdots",function(e){return e.future().text in Lh?"\\@cdots\\,":"\\@cdots"}),Ip("\\dotsb","\\cdots"),Ip("\\dotsm","\\cdots"),Ip("\\dotsi","\\!\\cdots"),Ip("\\dotsx","\\ldots\\,"),Ip("\\DOTSI","\\relax"),Ip("\\DOTSB","\\relax"),Ip("\\DOTSX","\\relax"),Ip("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),Ip("\\,","\\tmspace+{3mu}{.1667em}"),Ip("\\thinspace","\\,"),Ip("\\>","\\mskip{4mu}"),Ip("\\:","\\tmspace+{4mu}{.2222em}"),Ip("\\medspace","\\:"),Ip("\\;","\\tmspace+{5mu}{.2777em}"),Ip("\\thickspace","\\;"),Ip("\\!","\\tmspace-{3mu}{.1667em}"),Ip("\\negthinspace","\\!"),Ip("\\negmedspace","\\tmspace-{4mu}{.2222em}"),Ip("\\negthickspace","\\tmspace-{5mu}{.277em}"),Ip("\\enspace","\\kern.5em "),Ip("\\enskip","\\hskip.5em\\relax"),Ip("\\quad","\\hskip1em\\relax"),Ip("\\qquad","\\hskip2em\\relax"),Ip("\\tag","\\@ifstar\\tag@literal\\tag@paren"),Ip("\\tag@paren","\\tag@literal{({#1})}"),Ip("\\tag@literal",e=>{if(e.macros.get("\\df@tag"))throw new Yl("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"}),Ip("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),Ip("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),Ip("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),Ip("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),Ip("\\newline","\\\\\\relax"),Ip("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var Bh=Uc(Lc["Main-Regular"]["T".charCodeAt(0)][1]-.7*Lc["Main-Regular"]["A".charCodeAt(0)][1]);Ip("\\LaTeX","\\textrm{\\html@mathml{L\\kern-.36em\\raisebox{"+Bh+"}{\\scriptstyle A}\\kern-.15em\\TeX}{LaTeX}}"),Ip("\\KaTeX","\\textrm{\\html@mathml{K\\kern-.17em\\raisebox{"+Bh+"}{\\scriptstyle A}\\kern-.15em\\TeX}{KaTeX}}"),Ip("\\hspace","\\@ifstar\\@hspacer\\@hspace"),Ip("\\@hspace","\\hskip #1\\relax"),Ip("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),Ip("\\ordinarycolon",":"),Ip("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),Ip("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),Ip("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),Ip("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),Ip("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),Ip("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),Ip("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),Ip("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),Ip("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),Ip("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),Ip("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),Ip("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),Ip("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),Ip("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),Ip("∷","\\dblcolon"),Ip("∹","\\eqcolon"),Ip("≔","\\coloneqq"),Ip("≕","\\eqqcolon"),Ip("⩴","\\Coloneqq"),Ip("\\ratio","\\vcentcolon"),Ip("\\coloncolon","\\dblcolon"),Ip("\\colonequals","\\coloneqq"),Ip("\\coloncolonequals","\\Coloneqq"),Ip("\\equalscolon","\\eqqcolon"),Ip("\\equalscoloncolon","\\Eqqcolon"),Ip("\\colonminus","\\coloneq"),Ip("\\coloncolonminus","\\Coloneq"),Ip("\\minuscolon","\\eqcolon"),Ip("\\minuscoloncolon","\\Eqcolon"),Ip("\\coloncolonapprox","\\Colonapprox"),Ip("\\coloncolonsim","\\Colonsim"),Ip("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),Ip("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),Ip("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),Ip("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),Ip("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}"),Ip("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),Ip("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),Ip("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}"),Ip("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}"),Ip("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}"),Ip("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}"),Ip("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}"),Ip("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}"),Ip("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}"),Ip("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}"),Ip("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}"),Ip("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}"),Ip("\\nleqq","\\html@mathml{\\@nleqq}{≰}"),Ip("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}"),Ip("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}"),Ip("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}"),Ip("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}"),Ip("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}"),Ip("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}"),Ip("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}"),Ip("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}"),Ip("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}"),Ip("\\imath","\\html@mathml{\\@imath}{ı}"),Ip("\\jmath","\\html@mathml{\\@jmath}{ȷ}"),Ip("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}"),Ip("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}"),Ip("⟦","\\llbracket"),Ip("⟧","\\rrbracket"),Ip("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}"),Ip("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}"),Ip("⦃","\\lBrace"),Ip("⦄","\\rBrace"),Ip("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}"),Ip("⦵","\\minuso"),Ip("\\darr","\\downarrow"),Ip("\\dArr","\\Downarrow"),Ip("\\Darr","\\Downarrow"),Ip("\\lang","\\langle"),Ip("\\rang","\\rangle"),Ip("\\uarr","\\uparrow"),Ip("\\uArr","\\Uparrow"),Ip("\\Uarr","\\Uparrow"),Ip("\\N","\\mathbb{N}"),Ip("\\R","\\mathbb{R}"),Ip("\\Z","\\mathbb{Z}"),Ip("\\alef","\\aleph"),Ip("\\alefsym","\\aleph"),Ip("\\Alpha","\\mathrm{A}"),Ip("\\Beta","\\mathrm{B}"),Ip("\\bull","\\bullet"),Ip("\\Chi","\\mathrm{X}"),Ip("\\clubs","\\clubsuit"),Ip("\\cnums","\\mathbb{C}"),Ip("\\Complex","\\mathbb{C}"),Ip("\\Dagger","\\ddagger"),Ip("\\diamonds","\\diamondsuit"),Ip("\\empty","\\emptyset"),Ip("\\Epsilon","\\mathrm{E}"),Ip("\\Eta","\\mathrm{H}"),Ip("\\exist","\\exists"),Ip("\\harr","\\leftrightarrow"),Ip("\\hArr","\\Leftrightarrow"),Ip("\\Harr","\\Leftrightarrow"),Ip("\\hearts","\\heartsuit"),Ip("\\image","\\Im"),Ip("\\infin","\\infty"),Ip("\\Iota","\\mathrm{I}"),Ip("\\isin","\\in"),Ip("\\Kappa","\\mathrm{K}"),Ip("\\larr","\\leftarrow"),Ip("\\lArr","\\Leftarrow"),Ip("\\Larr","\\Leftarrow"),Ip("\\lrarr","\\leftrightarrow"),Ip("\\lrArr","\\Leftrightarrow"),Ip("\\Lrarr","\\Leftrightarrow"),Ip("\\Mu","\\mathrm{M}"),Ip("\\natnums","\\mathbb{N}"),Ip("\\Nu","\\mathrm{N}"),Ip("\\Omicron","\\mathrm{O}"),Ip("\\plusmn","\\pm"),Ip("\\rarr","\\rightarrow"),Ip("\\rArr","\\Rightarrow"),Ip("\\Rarr","\\Rightarrow"),Ip("\\real","\\Re"),Ip("\\reals","\\mathbb{R}"),Ip("\\Reals","\\mathbb{R}"),Ip("\\Rho","\\mathrm{P}"),Ip("\\sdot","\\cdot"),Ip("\\sect","\\S"),Ip("\\spades","\\spadesuit"),Ip("\\sub","\\subset"),Ip("\\sube","\\subseteq"),Ip("\\supe","\\supseteq"),Ip("\\Tau","\\mathrm{T}"),Ip("\\thetasym","\\vartheta"),Ip("\\weierp","\\wp"),Ip("\\Zeta","\\mathrm{Z}"),Ip("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),Ip("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),Ip("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),Ip("\\bra","\\mathinner{\\langle{#1}|}"),Ip("\\ket","\\mathinner{|{#1}\\rangle}"),Ip("\\braket","\\mathinner{\\langle{#1}\\rangle}"),Ip("\\Bra","\\left\\langle#1\\right|"),Ip("\\Ket","\\left|#1\\right\\rangle");var Dh=e=>t=>{var r=t.consumeArg().tokens,n=t.consumeArg().tokens,i=t.consumeArg().tokens,a=t.consumeArg().tokens,o=t.macros.get("|"),s=t.macros.get("\\|");t.macros.beginGroup();var l=t=>r=>{e&&(r.macros.set("|",o),i.length&&r.macros.set("\\|",s));var a=t;return!t&&i.length&&"|"===r.future().text&&(r.popToken(),a=!0),{tokens:a?i:n,numArgs:0}};t.macros.set("|",l(!1)),i.length&&t.macros.set("\\|",l(!0));var c=t.consumeArg().tokens,u=t.expandTokens([...a,...c,...r]);return t.macros.endGroup(),{tokens:u.reverse(),numArgs:0}};Ip("\\bra@ket",Dh(!1)),Ip("\\bra@set",Dh(!0)),Ip("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}"),Ip("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}"),Ip("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}"),Ip("\\angln","{\\angl n}"),Ip("\\blue","\\textcolor{##6495ed}{#1}"),Ip("\\orange","\\textcolor{##ffa500}{#1}"),Ip("\\pink","\\textcolor{##ff00af}{#1}"),Ip("\\red","\\textcolor{##df0030}{#1}"),Ip("\\green","\\textcolor{##28ae7b}{#1}"),Ip("\\gray","\\textcolor{gray}{#1}"),Ip("\\purple","\\textcolor{##9d38bd}{#1}"),Ip("\\blueA","\\textcolor{##ccfaff}{#1}"),Ip("\\blueB","\\textcolor{##80f6ff}{#1}"),Ip("\\blueC","\\textcolor{##63d9ea}{#1}"),Ip("\\blueD","\\textcolor{##11accd}{#1}"),Ip("\\blueE","\\textcolor{##0c7f99}{#1}"),Ip("\\tealA","\\textcolor{##94fff5}{#1}"),Ip("\\tealB","\\textcolor{##26edd5}{#1}"),Ip("\\tealC","\\textcolor{##01d1c1}{#1}"),Ip("\\tealD","\\textcolor{##01a995}{#1}"),Ip("\\tealE","\\textcolor{##208170}{#1}"),Ip("\\greenA","\\textcolor{##b6ffb0}{#1}"),Ip("\\greenB","\\textcolor{##8af281}{#1}"),Ip("\\greenC","\\textcolor{##74cf70}{#1}"),Ip("\\greenD","\\textcolor{##1fab54}{#1}"),Ip("\\greenE","\\textcolor{##0d923f}{#1}"),Ip("\\goldA","\\textcolor{##ffd0a9}{#1}"),Ip("\\goldB","\\textcolor{##ffbb71}{#1}"),Ip("\\goldC","\\textcolor{##ff9c39}{#1}"),Ip("\\goldD","\\textcolor{##e07d10}{#1}"),Ip("\\goldE","\\textcolor{##a75a05}{#1}"),Ip("\\redA","\\textcolor{##fca9a9}{#1}"),Ip("\\redB","\\textcolor{##ff8482}{#1}"),Ip("\\redC","\\textcolor{##f9685d}{#1}"),Ip("\\redD","\\textcolor{##e84d39}{#1}"),Ip("\\redE","\\textcolor{##bc2612}{#1}"),Ip("\\maroonA","\\textcolor{##ffbde0}{#1}"),Ip("\\maroonB","\\textcolor{##ff92c6}{#1}"),Ip("\\maroonC","\\textcolor{##ed5fa6}{#1}"),Ip("\\maroonD","\\textcolor{##ca337c}{#1}"),Ip("\\maroonE","\\textcolor{##9e034e}{#1}"),Ip("\\purpleA","\\textcolor{##ddd7ff}{#1}"),Ip("\\purpleB","\\textcolor{##c6b9fc}{#1}"),Ip("\\purpleC","\\textcolor{##aa87ff}{#1}"),Ip("\\purpleD","\\textcolor{##7854ab}{#1}"),Ip("\\purpleE","\\textcolor{##543b78}{#1}"),Ip("\\mintA","\\textcolor{##f5f9e8}{#1}"),Ip("\\mintB","\\textcolor{##edf2df}{#1}"),Ip("\\mintC","\\textcolor{##e0e5cc}{#1}"),Ip("\\grayA","\\textcolor{##f6f7f7}{#1}"),Ip("\\grayB","\\textcolor{##f0f1f2}{#1}"),Ip("\\grayC","\\textcolor{##e3e5e6}{#1}"),Ip("\\grayD","\\textcolor{##d6d8da}{#1}"),Ip("\\grayE","\\textcolor{##babec2}{#1}"),Ip("\\grayF","\\textcolor{##888d93}{#1}"),Ip("\\grayG","\\textcolor{##626569}{#1}"),Ip("\\grayH","\\textcolor{##3b3e40}{#1}"),Ip("\\grayI","\\textcolor{##21242c}{#1}"),Ip("\\kaBlue","\\textcolor{##314453}{#1}"),Ip("\\kaGreen","\\textcolor{##71B307}{#1}");var Xh={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class jh{constructor(e,t,r){this.settings=t,this.expansionCount=0,this.feed(e),this.macros=new Wh(Nh,t.macros),this.mode=r,this.stack=[]}feed(e){this.lexer=new Fh(e,this.settings)}switchMode(e){this.mode=e}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return 0===this.stack.length&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(e){this.stack.push(e)}pushTokens(e){this.stack.push(...e)}scanArgument(e){var t,r,n;if(e){if(this.consumeSpaces(),"["!==this.future().text)return null;t=this.popToken(),({tokens:n,end:r}=this.consumeArg(["]"]))}else({tokens:n,start:t,end:r}=this.consumeArg());return this.pushToken(new Bp("EOF",r.loc)),this.pushTokens(n),new Bp("",Lp.range(t,r))}consumeSpaces(){for(;" "===this.future().text;)this.stack.pop()}consumeArg(e){var t=[],r=e&&e.length>0;r||this.consumeSpaces();var n,i=this.future(),a=0,o=0;do{if(n=this.popToken(),t.push(n),"{"===n.text)++a;else if("}"===n.text){if(-1===--a)throw new Yl("Extra }",n)}else if("EOF"===n.text)throw new Yl("Unexpected end of input in a macro argument, expected '"+(e&&r?e[o]:"}")+"'",n);if(e&&r)if((0===a||1===a&&"{"===e[o])&&n.text===e[o]){if(++o===e.length){t.splice(-o,o);break}}else o=0}while(0!==a||r);return"{"===i.text&&"}"===t[t.length-1].text&&(t.pop(),t.shift()),t.reverse(),{tokens:t,start:i,end:n}}consumeArgs(e,t){if(t){if(t.length!==e+1)throw new Yl("The length of delimiters doesn't match the number of args!");for(var r=t[0],n=0;n<r.length;n++){var i=this.popToken();if(r[n]!==i.text)throw new Yl("Use of the macro doesn't match its definition",i)}}for(var a=[],o=0;o<e;o++)a.push(this.consumeArg(t&&t[o+1]).tokens);return a}countExpansion(e){if(this.expansionCount+=e,this.expansionCount>this.settings.maxExpand)throw new Yl("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(e){var t=this.popToken(),r=t.text,n=t.noexpand?null:this._getExpansion(r);if(null==n||e&&n.unexpandable){if(e&&null==n&&"\\"===r[0]&&!this.isDefined(r))throw new Yl("Undefined control sequence: "+r);return this.pushToken(t),!1}this.countExpansion(1);var i=n.tokens,a=this.consumeArgs(n.numArgs,n.delimiters);if(n.numArgs)for(var o=(i=i.slice()).length-1;o>=0;--o){var s=i[o];if("#"===s.text){if(0===o)throw new Yl("Incomplete placeholder at end of macro body",s);if("#"===(s=i[--o]).text)i.splice(o+1,1);else{if(!/^[1-9]$/.test(s.text))throw new Yl("Not a valid argument number",s);i.splice(o,2,...a[+s.text-1])}}}return this.pushTokens(i),i.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(!1===this.expandOnce()){var e=this.stack.pop();return e.treatAsRelax&&(e.text="\\relax"),e}}expandMacro(e){return this.macros.has(e)?this.expandTokens([new Bp(e)]):void 0}expandTokens(e){var t=[],r=this.stack.length;for(this.pushTokens(e);this.stack.length>r;)if(!1===this.expandOnce(!0)){var n=this.stack.pop();n.treatAsRelax&&(n.noexpand=!1,n.treatAsRelax=!1),t.push(n)}return this.countExpansion(t.length),t}expandMacroAsText(e){var t=this.expandMacro(e);return t?t.map(e=>e.text).join(""):t}_getExpansion(e){var t=this.macros.get(e);if(null==t)return t;if(1===e.length){var r=this.lexer.catcodes[e];if(null!=r&&13!==r)return}var n="function"==typeof t?t(this):t;if("string"==typeof n){var i=0;if(n.includes("#"))for(var a=n.replace(/##/g,"");a.includes("#"+(i+1));)++i;for(var o=new Fh(n,this.settings),s=[],l=o.lex();"EOF"!==l.text;)s.push(l),l=o.lex();return s.reverse(),{tokens:s,numArgs:i}}return n}isDefined(e){return this.macros.has(e)||xh.hasOwnProperty(e)||Gc.math.hasOwnProperty(e)||Gc.text.hasOwnProperty(e)||Xh.hasOwnProperty(e)}isExpandable(e){var t=this.macros.get(e);return null!=t?"string"==typeof t||"function"==typeof t||!t.unexpandable:xh.hasOwnProperty(e)&&!xh[e].primitive}}var Mh=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,zh=Object.freeze({"₊":"+","₋":"-","₌":"=","₍":"(","₎":")","₀":"0","₁":"1","₂":"2","₃":"3","₄":"4","₅":"5","₆":"6","₇":"7","₈":"8","₉":"9","ₐ":"a","ₑ":"e","ₕ":"h","ᵢ":"i","ⱼ":"j","ₖ":"k","ₗ":"l","ₘ":"m","ₙ":"n","ₒ":"o","ₚ":"p","ᵣ":"r","ₛ":"s","ₜ":"t","ᵤ":"u","ᵥ":"v","ₓ":"x","ᵦ":"β","ᵧ":"γ","ᵨ":"ρ","ᵩ":"ϕ","ᵪ":"χ","⁺":"+","⁻":"-","⁼":"=","⁽":"(","⁾":")","⁰":"0","¹":"1","²":"2","³":"3","⁴":"4","⁵":"5","⁶":"6","⁷":"7","⁸":"8","⁹":"9","ᴬ":"A","ᴮ":"B","ᴰ":"D","ᴱ":"E","ᴳ":"G","ᴴ":"H","ᴵ":"I","ᴶ":"J","ᴷ":"K","ᴸ":"L","ᴹ":"M","ᴺ":"N","ᴼ":"O","ᴾ":"P","ᴿ":"R","ᵀ":"T","ᵁ":"U","ⱽ":"V","ᵂ":"W","ᵃ":"a","ᵇ":"b","ᶜ":"c","ᵈ":"d","ᵉ":"e","ᶠ":"f","ᵍ":"g","ʰ":"h","ⁱ":"i","ʲ":"j","ᵏ":"k","ˡ":"l","ᵐ":"m","ⁿ":"n","ᵒ":"o","ᵖ":"p","ʳ":"r","ˢ":"s","ᵗ":"t","ᵘ":"u","ᵛ":"v","ʷ":"w","ˣ":"x","ʸ":"y","ᶻ":"z","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),Gh={"́":{text:"\\'",math:"\\acute"},"̀":{text:"\\`",math:"\\grave"},"̈":{text:'\\"',math:"\\ddot"},"̃":{text:"\\~",math:"\\tilde"},"̄":{text:"\\=",math:"\\bar"},"̆":{text:"\\u",math:"\\breve"},"̌":{text:"\\v",math:"\\check"},"̂":{text:"\\^",math:"\\hat"},"̇":{text:"\\.",math:"\\dot"},"̊":{text:"\\r",math:"\\mathring"},"̋":{text:"\\H"},"̧":{text:"\\c"}},Zh={"á":"á","à":"à","ä":"ä","ǟ":"ǟ","ã":"ã","ā":"ā","ă":"ă","ắ":"ắ","ằ":"ằ","ẵ":"ẵ","ǎ":"ǎ","â":"â","ấ":"ấ","ầ":"ầ","ẫ":"ẫ","ȧ":"ȧ","ǡ":"ǡ","å":"å","ǻ":"ǻ","ḃ":"ḃ","ć":"ć","ḉ":"ḉ","č":"č","ĉ":"ĉ","ċ":"ċ","ç":"ç","ď":"ď","ḋ":"ḋ","ḑ":"ḑ","é":"é","è":"è","ë":"ë","ẽ":"ẽ","ē":"ē","ḗ":"ḗ","ḕ":"ḕ","ĕ":"ĕ","ḝ":"ḝ","ě":"ě","ê":"ê","ế":"ế","ề":"ề","ễ":"ễ","ė":"ė","ȩ":"ȩ","ḟ":"ḟ","ǵ":"ǵ","ḡ":"ḡ","ğ":"ğ","ǧ":"ǧ","ĝ":"ĝ","ġ":"ġ","ģ":"ģ","ḧ":"ḧ","ȟ":"ȟ","ĥ":"ĥ","ḣ":"ḣ","ḩ":"ḩ","í":"í","ì":"ì","ï":"ï","ḯ":"ḯ","ĩ":"ĩ","ī":"ī","ĭ":"ĭ","ǐ":"ǐ","î":"î","ǰ":"ǰ","ĵ":"ĵ","ḱ":"ḱ","ǩ":"ǩ","ķ":"ķ","ĺ":"ĺ","ľ":"ľ","ļ":"ļ","ḿ":"ḿ","ṁ":"ṁ","ń":"ń","ǹ":"ǹ","ñ":"ñ","ň":"ň","ṅ":"ṅ","ņ":"ņ","ó":"ó","ò":"ò","ö":"ö","ȫ":"ȫ","õ":"õ","ṍ":"ṍ","ṏ":"ṏ","ȭ":"ȭ","ō":"ō","ṓ":"ṓ","ṑ":"ṑ","ŏ":"ŏ","ǒ":"ǒ","ô":"ô","ố":"ố","ồ":"ồ","ỗ":"ỗ","ȯ":"ȯ","ȱ":"ȱ","ő":"ő","ṕ":"ṕ","ṗ":"ṗ","ŕ":"ŕ","ř":"ř","ṙ":"ṙ","ŗ":"ŗ","ś":"ś","ṥ":"ṥ","š":"š","ṧ":"ṧ","ŝ":"ŝ","ṡ":"ṡ","ş":"ş","ẗ":"ẗ","ť":"ť","ṫ":"ṫ","ţ":"ţ","ú":"ú","ù":"ù","ü":"ü","ǘ":"ǘ","ǜ":"ǜ","ǖ":"ǖ","ǚ":"ǚ","ũ":"ũ","ṹ":"ṹ","ū":"ū","ṻ":"ṻ","ŭ":"ŭ","ǔ":"ǔ","û":"û","ů":"ů","ű":"ű","ṽ":"ṽ","ẃ":"ẃ","ẁ":"ẁ","ẅ":"ẅ","ŵ":"ŵ","ẇ":"ẇ","ẘ":"ẘ","ẍ":"ẍ","ẋ":"ẋ","ý":"ý","ỳ":"ỳ","ÿ":"ÿ","ỹ":"ỹ","ȳ":"ȳ","ŷ":"ŷ","ẏ":"ẏ","ẙ":"ẙ","ź":"ź","ž":"ž","ẑ":"ẑ","ż":"ż","Á":"Á","À":"À","Ä":"Ä","Ǟ":"Ǟ","Ã":"Ã","Ā":"Ā","Ă":"Ă","Ắ":"Ắ","Ằ":"Ằ","Ẵ":"Ẵ","Ǎ":"Ǎ","Â":"Â","Ấ":"Ấ","Ầ":"Ầ","Ẫ":"Ẫ","Ȧ":"Ȧ","Ǡ":"Ǡ","Å":"Å","Ǻ":"Ǻ","Ḃ":"Ḃ","Ć":"Ć","Ḉ":"Ḉ","Č":"Č","Ĉ":"Ĉ","Ċ":"Ċ","Ç":"Ç","Ď":"Ď","Ḋ":"Ḋ","Ḑ":"Ḑ","É":"É","È":"È","Ë":"Ë","Ẽ":"Ẽ","Ē":"Ē","Ḗ":"Ḗ","Ḕ":"Ḕ","Ĕ":"Ĕ","Ḝ":"Ḝ","Ě":"Ě","Ê":"Ê","Ế":"Ế","Ề":"Ề","Ễ":"Ễ","Ė":"Ė","Ȩ":"Ȩ","Ḟ":"Ḟ","Ǵ":"Ǵ","Ḡ":"Ḡ","Ğ":"Ğ","Ǧ":"Ǧ","Ĝ":"Ĝ","Ġ":"Ġ","Ģ":"Ģ","Ḧ":"Ḧ","Ȟ":"Ȟ","Ĥ":"Ĥ","Ḣ":"Ḣ","Ḩ":"Ḩ","Í":"Í","Ì":"Ì","Ï":"Ï","Ḯ":"Ḯ","Ĩ":"Ĩ","Ī":"Ī","Ĭ":"Ĭ","Ǐ":"Ǐ","Î":"Î","İ":"İ","Ĵ":"Ĵ","Ḱ":"Ḱ","Ǩ":"Ǩ","Ķ":"Ķ","Ĺ":"Ĺ","Ľ":"Ľ","Ļ":"Ļ","Ḿ":"Ḿ","Ṁ":"Ṁ","Ń":"Ń","Ǹ":"Ǹ","Ñ":"Ñ","Ň":"Ň","Ṅ":"Ṅ","Ņ":"Ņ","Ó":"Ó","Ò":"Ò","Ö":"Ö","Ȫ":"Ȫ","Õ":"Õ","Ṍ":"Ṍ","Ṏ":"Ṏ","Ȭ":"Ȭ","Ō":"Ō","Ṓ":"Ṓ","Ṑ":"Ṑ","Ŏ":"Ŏ","Ǒ":"Ǒ","Ô":"Ô","Ố":"Ố","Ồ":"Ồ","Ỗ":"Ỗ","Ȯ":"Ȯ","Ȱ":"Ȱ","Ő":"Ő","Ṕ":"Ṕ","Ṗ":"Ṗ","Ŕ":"Ŕ","Ř":"Ř","Ṙ":"Ṙ","Ŗ":"Ŗ","Ś":"Ś","Ṥ":"Ṥ","Š":"Š","Ṧ":"Ṧ","Ŝ":"Ŝ","Ṡ":"Ṡ","Ş":"Ş","Ť":"Ť","Ṫ":"Ṫ","Ţ":"Ţ","Ú":"Ú","Ù":"Ù","Ü":"Ü","Ǘ":"Ǘ","Ǜ":"Ǜ","Ǖ":"Ǖ","Ǚ":"Ǚ","Ũ":"Ũ","Ṹ":"Ṹ","Ū":"Ū","Ṻ":"Ṻ","Ŭ":"Ŭ","Ǔ":"Ǔ","Û":"Û","Ů":"Ů","Ű":"Ű","Ṽ":"Ṽ","Ẃ":"Ẃ","Ẁ":"Ẁ","Ẅ":"Ẅ","Ŵ":"Ŵ","Ẇ":"Ẇ","Ẍ":"Ẍ","Ẋ":"Ẋ","Ý":"Ý","Ỳ":"Ỳ","Ÿ":"Ÿ","Ỹ":"Ỹ","Ȳ":"Ȳ","Ŷ":"Ŷ","Ẏ":"Ẏ","Ź":"Ź","Ž":"Ž","Ẑ":"Ẑ","Ż":"Ż","ά":"ά","ὰ":"ὰ","ᾱ":"ᾱ","ᾰ":"ᾰ","έ":"έ","ὲ":"ὲ","ή":"ή","ὴ":"ὴ","ί":"ί","ὶ":"ὶ","ϊ":"ϊ","ΐ":"ΐ","ῒ":"ῒ","ῑ":"ῑ","ῐ":"ῐ","ό":"ό","ὸ":"ὸ","ύ":"ύ","ὺ":"ὺ","ϋ":"ϋ","ΰ":"ΰ","ῢ":"ῢ","ῡ":"ῡ","ῠ":"ῠ","ώ":"ώ","ὼ":"ὼ","Ύ":"Ύ","Ὺ":"Ὺ","Ϋ":"Ϋ","Ῡ":"Ῡ","Ῠ":"Ῠ","Ώ":"Ώ","Ὼ":"Ὼ"};class Hh{constructor(e,t){this.mode="math",this.gullet=new jh(e,t,this.mode),this.settings=t,this.leftrightDepth=0,this.nextToken=null}expect(e,t){if(void 0===t&&(t=!0),this.fetch().text!==e)throw new Yl("Expected '"+e+"', got '"+this.fetch().text+"'",this.fetch());t&&this.consume()}consume(){this.nextToken=null}fetch(){return null==this.nextToken&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(e){this.mode=e,this.gullet.switchMode(e)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var e=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),e}finally{this.gullet.endGroups()}}subparse(e){var t=this.nextToken;this.consume(),this.gullet.pushToken(new Bp("}")),this.gullet.pushTokens(e);var r=this.parseExpression(!1);return this.expect("}"),this.nextToken=t,r}parseExpression(e,t){for(var r=[];;){"math"===this.mode&&this.consumeSpaces();var n=this.fetch();if(Hh.endOfExpression.has(n.text))break;if(t&&n.text===t)break;if(e&&xh[n.text]&&xh[n.text].infix)break;var i=this.parseAtom(t);if(!i)break;"internal"!==i.type&&r.push(i)}return"text"===this.mode&&this.formLigatures(r),this.handleInfixNodes(r)}handleInfixNodes(e){for(var t,r=-1,n=0;n<e.length;n++){var i=e[n];if("infix"===i.type){if(-1!==r)throw new Yl("only one infix operator per group",i.token);r=n,t=i.replaceWith}}if(-1!==r&&t){var a,o,s=e.slice(0,r),l=e.slice(r+1);return a=1===s.length&&"ordgroup"===s[0].type?s[0]:{type:"ordgroup",mode:this.mode,body:s},o=1===l.length&&"ordgroup"===l[0].type?l[0]:{type:"ordgroup",mode:this.mode,body:l},["\\\\abovefrac"===t?this.callFunction(t,[a,e[r],o],[]):this.callFunction(t,[a,o],[])]}return e}handleSupSubscript(e){var t,r=this.fetch(),n=r.text;this.consume(),this.consumeSpaces();do{var i;t=this.parseGroup(e)}while("internal"===(null==(i=t)?void 0:i.type));if(!t)throw new Yl("Expected group after '"+n+"'",r);return t}formatUnsupportedCmd(e){for(var t=[],r=0;r<e.length;r++)t.push({type:"textord",mode:"text",text:e[r]});var n={type:"text",mode:this.mode,body:t};return{type:"color",mode:this.mode,color:this.settings.errorColor,body:[n]}}parseAtom(e){var t,r,n=this.parseGroup("atom",e);if("internal"===(null==n?void 0:n.type))return n;if("text"===this.mode)return n;for(;;){this.consumeSpaces();var i=this.fetch();if("\\limits"===i.text||"\\nolimits"===i.text){if(n&&"op"===n.type){var a="\\limits"===i.text;n.limits=a,n.alwaysHandleSupSub=!0}else{if(!n||"operatorname"!==n.type)throw new Yl("Limit controls must follow a math operator",i);n.alwaysHandleSupSub&&(n.limits="\\limits"===i.text)}this.consume()}else if("^"===i.text){if(t)throw new Yl("Double superscript",i);t=this.handleSupSubscript("superscript")}else if("_"===i.text){if(r)throw new Yl("Double subscript",i);r=this.handleSupSubscript("subscript")}else if("'"===i.text){if(t)throw new Yl("Double superscript",i);var o={type:"textord",mode:this.mode,text:"\\prime"},s=[o];for(this.consume();"'"===this.fetch().text;)s.push(o),this.consume();"^"===this.fetch().text&&s.push(this.handleSupSubscript("superscript")),t={type:"ordgroup",mode:this.mode,body:s}}else{if(!zh[i.text])break;var l=Mh.test(i.text),c=[];for(c.push(new Bp(zh[i.text])),this.consume();;){var u=this.fetch().text;if(!zh[u])break;if(Mh.test(u)!==l)break;c.unshift(new Bp(zh[u])),this.consume()}var d=this.subparse(c);l?r={type:"ordgroup",mode:"math",body:d}:t={type:"ordgroup",mode:"math",body:d}}}return t||r?{type:"supsub",mode:this.mode,base:n,sup:t,sub:r}:n}parseFunction(e,t){var r=this.fetch(),n=r.text,i=xh[n];if(!i)return null;if(this.consume(),t&&"atom"!==t&&!i.allowedInArgument)throw new Yl("Got function '"+n+"' with no arguments"+(t?" as "+t:""),r);if("text"===this.mode&&!i.allowedInText)throw new Yl("Can't use function '"+n+"' in text mode",r);if("math"===this.mode&&!1===i.allowedInMath)throw new Yl("Can't use function '"+n+"' in math mode",r);var{args:a,optArgs:o}=this.parseArguments(n,i);return this.callFunction(n,a,o,r,e)}callFunction(e,t,r,n,i){var a={funcName:e,parser:this,token:n,breakOnTokenText:i},o=xh[e];if(o&&o.handler)return o.handler(a,t,r);throw new Yl("No function handler for "+e)}parseArguments(e,t){var r=t.numArgs+t.numOptionalArgs;if(0===r)return{args:[],optArgs:[]};for(var n=[],i=[],a=0;a<r;a++){var o=t.argTypes&&t.argTypes[a],s=a<t.numOptionalArgs;("primitive"in t&&t.primitive&&null==o||"sqrt"===t.type&&1===a&&null==i[0])&&(o="primitive");var l=this.parseGroupOfType("argument to '"+e+"'",o,s);if(s)i.push(l);else{if(null==l)throw new Yl("Null argument, please report this as a bug");n.push(l)}}return{args:n,optArgs:i}}parseGroupOfType(e,t,r){switch(t){case"color":return this.parseColorGroup(r);case"size":return this.parseSizeGroup(r);case"url":return this.parseUrlGroup(r);case"math":case"text":return this.parseArgumentGroup(r,t);case"hbox":var n=this.parseArgumentGroup(r,"text");return null!=n?{type:"styling",mode:n.mode,body:[n],style:"text"}:null;case"raw":var i=this.parseStringGroup("raw",r);return null!=i?{type:"raw",mode:"text",string:i.text}:null;case"primitive":if(r)throw new Yl("A primitive argument cannot be optional");var a=this.parseGroup(e);if(null==a)throw new Yl("Expected group as "+e,this.fetch());return a;case"original":case null:case void 0:return this.parseArgumentGroup(r);default:throw new Yl("Unknown group type as "+e,this.fetch())}}consumeSpaces(){for(;" "===this.fetch().text;)this.consume()}parseStringGroup(e,t){var r=this.gullet.scanArgument(t);if(null==r)return null;for(var n,i="";"EOF"!==(n=this.fetch()).text;)i+=n.text,this.consume();return this.consume(),r.text=i,r}parseRegexGroup(e,t){for(var r,n=this.fetch(),i=n,a="";"EOF"!==(r=this.fetch()).text&&e.test(a+r.text);)a+=(i=r).text,this.consume();if(""===a)throw new Yl("Invalid "+t+": '"+n.text+"'",n);return n.range(i,a)}parseColorGroup(e){var t=this.parseStringGroup("color",e);if(null==t)return null;var r=/^(#[a-f0-9]{3,4}|#[a-f0-9]{6}|#[a-f0-9]{8}|[a-f0-9]{6}|[a-z]+)$/i.exec(t.text);if(!r)throw new Yl("Invalid color: '"+t.text+"'",t);var n=r[0];return/^[0-9a-f]{6}$/i.test(n)&&(n="#"+n),{type:"color-token",mode:this.mode,color:n}}parseSizeGroup(e){var t,r=!1;if(this.gullet.consumeSpaces(),!(t=e||"{"===this.gullet.future().text?this.parseStringGroup("size",e):this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size")))return null;e||0!==t.text.length||(t.text="0pt",r=!0);var n=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t.text);if(!n)throw new Yl("Invalid size: '"+t.text+"'",t);var i={number:+(n[1]+n[2]),unit:n[3]};if(!Ac(i))throw new Yl("Invalid unit: '"+i.unit+"'",t);return{type:"size",mode:this.mode,value:i,isBlank:r}}parseUrlGroup(e){this.gullet.lexer.setCatcode("%",13),this.gullet.lexer.setCatcode("~",12);var t=this.parseStringGroup("url",e);if(this.gullet.lexer.setCatcode("%",14),this.gullet.lexer.setCatcode("~",13),null==t)return null;var r=t.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:r}}parseArgumentGroup(e,t){var r=this.gullet.scanArgument(e);if(null==r)return null;var n=this.mode;t&&this.switchMode(t),this.gullet.beginGroup();var i=this.parseExpression(!1,"EOF");this.expect("EOF"),this.gullet.endGroup();var a={type:"ordgroup",mode:this.mode,loc:r.loc,body:i};return t&&this.switchMode(n),a}parseGroup(e,t){var r,n=this.fetch(),i=n.text;if("{"===i||"\\begingroup"===i){this.consume();var a="{"===i?"}":"\\endgroup";this.gullet.beginGroup();var o=this.parseExpression(!1,a),s=this.fetch();this.expect(a),this.gullet.endGroup(),r={type:"ordgroup",mode:this.mode,loc:Lp.range(n,s),body:o,semisimple:"\\begingroup"===i||void 0}}else if(null==(r=this.parseFunction(t,e)||this.parseSymbol())&&"\\"===i[0]&&!Xh.hasOwnProperty(i)){if(this.settings.throwOnError)throw new Yl("Undefined control sequence: "+i,n);r=this.formatUnsupportedCmd(i),this.consume()}return r}formLigatures(e){for(var t=e.length-1,r=0;r<t;++r){var n=e[r];if("textord"===n.type){var i=n.text,a=e[r+1];if(a&&"textord"===a.type){if("-"===i&&"-"===a.text){var o=e[r+2];r+1<t&&o&&"textord"===o.type&&"-"===o.text?(e.splice(r,3,{type:"textord",mode:"text",loc:Lp.range(n,o),text:"---"}),t-=2):(e.splice(r,2,{type:"textord",mode:"text",loc:Lp.range(n,a),text:"--"}),t-=1)}"'"!==i&&"`"!==i||a.text!==i||(e.splice(r,2,{type:"textord",mode:"text",loc:Lp.range(n,a),text:i+i}),t-=1)}}}}parseSymbol(){var e=this.fetch(),t=e.text;if(/^\\verb[^a-zA-Z]/.test(t)){this.consume();var r=t.slice(5),n="*"===r.charAt(0);if(n&&(r=r.slice(1)),r.length<2||r.charAt(0)!==r.slice(-1))throw new Yl("\\verb assertion failed --\n please report what input caused this bug");return{type:"verb",mode:"text",body:r=r.slice(1,-1),star:n}}Zh.hasOwnProperty(t[0])&&!Gc[this.mode][t[0]]&&(this.settings.strict&&"math"===this.mode&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+t[0]+'" used in math mode',e),t=Zh[t[0]]+t.slice(1));var i,a=Th.exec(t);if(a&&("i"===(t=t.substring(0,a.index))?t="ı":"j"===t&&(t="ȷ")),Gc[this.mode][t]){this.settings.strict&&"math"===this.mode&&"ÐÞþ".includes(t)&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+t[0]+'" used in math mode',e);var o,s=Gc[this.mode][t].group,l=Lp.range(e);if(Mc.hasOwnProperty(s)){var c=s;o={type:"atom",mode:this.mode,family:c,loc:l,text:t}}else o={type:s,mode:this.mode,loc:l,text:t};i=o}else{if(!(t.charCodeAt(0)>=128))return null;this.settings.strict&&(gc(t.charCodeAt(0))?"math"===this.mode&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+t[0]+'" used in math mode',e):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+t[0]+'" ('+t.charCodeAt(0)+")",e)),i={type:"textord",mode:"text",loc:Lp.range(e),text:t}}if(this.consume(),a)for(var u=0;u<a[0].length;u++){var d=a[0][u];if(!Gh[d])throw new Yl("Unknown accent ' "+d+"'",e);var p=Gh[d][this.mode]||Gh[d].text;if(!p)throw new Yl("Accent "+d+" unsupported in "+this.mode+" mode",e);i={type:"accent",mode:this.mode,loc:Lp.range(e),label:p,isStretchy:!1,isShifty:!0,base:i}}return i}}Hh.endOfExpression=new Set(["}","\\endgroup","\\end","\\right","&"]);"undefined"!=typeof document&&document.compatMode;var Yh=function(e,t){var r=new oc(t);try{return function(e,t,r){var n,i=function(e){return new Fd({style:e.displayMode?fc.DISPLAY:fc.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness})}(r);if("mathml"===r.output)return Rd(e,t,i,r.displayMode,!0);if("html"===r.output){var a=qd(e,i);n=Wu(["katex"],[a])}else{var o=Rd(e,t,i,r.displayMode,!1),s=qd(e,i);n=Wu(["katex"],[o,s])}return function(e,t){if(t.displayMode){var r=["katex-display"];t.leqno&&r.push("leqno"),t.fleqn&&r.push("fleqn"),e=Wu(r,[e])}return e}(n,r)}(function(e,t){if(!("string"==typeof e||e instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var r=new Hh(e,t);delete r.gullet.macros.current["\\df@tag"];var n=r.parse();if(delete r.gullet.macros.current["\\current@color"],delete r.gullet.macros.current["\\color"],r.gullet.macros.get("\\df@tag")){if(!t.displayMode)throw new Yl("\\tag works only in display equations");n=[{type:"tag",mode:"text",body:n,tag:r.subparse([new Bp("\\df@tag")])}]}return n}(e,r),e,r)}catch(n){return function(e,t,r){if(r.throwOnError||!(e instanceof Yl))throw e;var n=Wu(["katex-error"],[new Kc(t)]);return n.setAttribute("title",e.toString()),n.setAttribute("style","color:"+r.errorColor),n}(n,e,r)}},Qh=function(e,t){return Yh(e,t).toMarkup()};const Jh={};function _h(e){const t=e||Jh,r=this.data(),n=r.micromarkExtensions||(r.micromarkExtensions=[]),i=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),a=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);n.push(function(e){return{flow:{36:Ml},text:{36:Gl(e)}}}(t)),i.push(function(){return{enter:{mathFlow:function(e){this.enter({type:"math",meta:null,value:"",data:{hName:"pre",hChildren:[{type:"element",tagName:"code",properties:{className:["language-math","math-display"]},children:[]}]}},e)},mathFlowFenceMeta:function(){this.buffer()},mathText:function(e){this.enter({type:"inlineMath",value:"",data:{hName:"code",hProperties:{className:["language-math","math-inline"]},hChildren:[]}},e),this.buffer()}},exit:{mathFlow:function(e){const t=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),r=this.stack[this.stack.length-1];r.type,this.exit(e),r.value=t;const n=r.data.hChildren[0];n.type,n.tagName,n.children.push({type:"text",value:t}),this.data.mathFlowInside=void 0},mathFlowFence:function(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)},mathFlowFenceMeta:function(){const e=this.resume(),t=this.stack[this.stack.length-1];t.type,t.meta=e},mathFlowValue:e,mathText:function(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.type,this.exit(e),r.value=t,r.data.hChildren.push({type:"text",value:t})},mathTextData:e}};function e(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}}()),a.push(function(e){let t=(e||{}).singleDollarTextMath;return null==t&&(t=!0),r.peek=function(){return"$"},{unsafe:[{character:"\r",inConstruct:"mathFlowMeta"},{character:"\n",inConstruct:"mathFlowMeta"},{character:"$",after:t?void 0:"\\$",inConstruct:"phrasing"},{character:"$",inConstruct:"mathFlowMeta"},{atBreak:!0,character:"$",after:"\\$"}],handlers:{math:function(e,t,r,n){const i=e.value||"",a=r.createTracker(n),o="$".repeat(Math.max(Ks(i,"$")+1,2)),s=r.enter("mathFlow");let l=a.move(o);if(e.meta){const t=r.enter("mathFlowMeta");l+=a.move(r.safe(e.meta,{after:"\n",before:l,encode:["$"],...a.current()})),t()}return l+=a.move("\n"),i&&(l+=a.move(i+"\n")),l+=a.move(o),s(),l},inlineMath:r}};function r(e,r,n){let i=e.value||"",a=1;for(t||a++;new RegExp("(^|[^$])"+"\\$".repeat(a)+"([^$]|$)").test(i);)a++;const o="$".repeat(a);/[^ \r\n]/.test(i)&&(/^[ \r\n]/.test(i)&&/[ \r\n]$/.test(i)||/^\$|\$$/.test(i))&&(i=" "+i+" ");let s=-1;for(;++s<n.unsafe.length;){const e=n.unsafe[s];if(!e.atBreak)continue;const t=n.compilePattern(e);let r;for(;r=t.exec(i);){let e=r.index;10===i.codePointAt(e)&&13===i.codePointAt(e-1)&&e--,i=i.slice(0,e)+" "+i.slice(r.index+1)}}return o+i+o}}(t))}const $h=/[#.]/g;function eq(e,t,r){const n=r?function(e){const t=new Map;for(const r of e)t.set(r.toLowerCase(),r);return t}(r):void 0;return function(r,i,...a){let o;if(null==r){o={type:"root",children:[]};const e=i;a.unshift(e)}else{o=function(e,t){const r=e||"",n={};let i,a,o=0;for(;o<r.length;){$h.lastIndex=o;const e=$h.exec(r),t=r.slice(o,e?e.index:r.length);t&&(i?"#"===i?n.id=t:Array.isArray(n.className)?n.className.push(t):n.className=[t]:a=t,o+=t.length),e&&(i=e[0],o++)}return{type:"element",tagName:a||t||"div",properties:n,children:[]}}(r,t);const s=o.tagName.toLowerCase(),l=n?n.get(s):void 0;if(o.tagName=l||s,function(e){if(null===e||"object"!=typeof e||Array.isArray(e))return!0;if("string"!=typeof e.type)return!1;const t=e,r=Object.keys(e);for(const n of r){const e=t[n];if(e&&"object"==typeof e){if(!Array.isArray(e))return!0;const t=e;for(const e of t)if("number"!=typeof e&&"string"!=typeof e)return!0}}return!(!("children"in e)||!Array.isArray(e.children))}(i))a.unshift(i);else for(const[t,r]of Object.entries(i))tq(e,o.properties,t,r)}for(const e of a)rq(o.children,e);return"element"===o.type&&"template"===o.tagName&&(o.content={type:"root",children:o.children},o.children=[]),o}}function tq(e,t,r,n){const i=kr(e,r);let a;if(null!=n){if("number"==typeof n){if(Number.isNaN(n))return;a=n}else a="boolean"==typeof n?n:"string"==typeof n?i.spaceSeparated?Or(n):i.commaSeparated?Ht(n):i.commaOrSpaceSeparated?Or(Ht(n).join(" ")):nq(i,i.property,n):Array.isArray(n)?[...n]:"style"===i.property?function(e){const t=[];for(const[r,n]of Object.entries(e))t.push([r,n].join(": "));return t.join("; ")}(n):String(n);if(Array.isArray(a)){const e=[];for(const t of a)e.push(nq(i,i.property,t));a=e}"className"===i.property&&Array.isArray(t.className)&&(a=t.className.concat(a)),t[i.property]=a}}function rq(e,t){if(null==t);else if("number"==typeof t||"string"==typeof t)e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const r of t)rq(e,r);else{if("object"!=typeof t||!("type"in t))throw new Error("Expected node, nodes, or string, got `"+t+"`");"root"===t.type?rq(e,t.children):e.push(t)}}function nq(e,t,r){if("string"==typeof r){if(e.number&&r&&!Number.isNaN(Number(r)))return Number(r);if((e.boolean||e.overloadedBoolean)&&(""===r||nr(r)===nr(t)))return!0}return r}const iq=eq(Nr,"div"),aq=eq(Kr,"g",["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"]),oq="http://www.w3.org/1999/xhtml";function sq(e,t){const r=function(e,t){switch(e.nodeType){case 1:return function(e,t){const r=e.namespaceURI,n="http://www.w3.org/2000/svg"===r?aq:iq,i=r===oq?e.tagName.toLowerCase():e.tagName,a=r===oq&&"template"===i?e.content:e,o=e.getAttributeNames(),s={};let l=-1;for(;++l<o.length;)s[o[l]]=e.getAttribute(o[l])||"";return n(i,s,cq(a,t))}(e,t);case 3:return function(e){return{type:"text",value:e.nodeValue||""}}(e);case 8:return function(e){return{type:"comment",value:e.nodeValue||""}}(e);case 9:case 11:return lq(e,t);case 10:return{type:"doctype"};default:return}}(e,t);return r&&t.afterTransform&&t.afterTransform(e,r),r}function lq(e,t){return{type:"root",children:cq(e,t)}}function cq(e,t){const r=e.childNodes,n=[];let i=-1;for(;++i<r.length;){const e=sq(r[i],t);void 0!==e&&n.push(e)}return n}new DOMParser;const uq=function(e,t,r){const n=Ga(r);if(!e||!e.type||!e.children)throw new Error("Expected parent node");if("number"==typeof t){if(t<0||t===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index")}else if((t=e.children.indexOf(t))<0)throw new Error("Expected child node or index");for(;++t<e.children.length;)if(n(e.children[t],t,e))return e.children[t]},dq=function(e){if(null==e)return hq;if("string"==typeof e)return t=e,pq(function(e){return e.tagName===t});var t;if("object"==typeof e)return function(e){const t=[];let r=-1;for(;++r<e.length;)t[r]=dq(e[r]);return pq(function(...e){let r=-1;for(;++r<t.length;)if(t[r].apply(this,e))return!0;return!1})}(e);if("function"==typeof e)return pq(e);throw new Error("Expected function, string, or array as `test`")};function pq(e){return function(t,r,n){return Boolean(function(e){return null!==e&&"object"==typeof e&&"type"in e&&"tagName"in e}(t)&&e.call(this,t,"number"==typeof r?r:void 0,n||void 0))}}function hq(e){return Boolean(e&&"object"==typeof e&&"type"in e&&"element"===e.type&&"tagName"in e&&"string"==typeof e.tagName)}const qq=/\n/g,fq=/[\t ]+/g,mq=dq("br"),Vq=dq(function(e){return"td"===e.tagName||"th"===e.tagName}),gq=dq("p"),vq=dq("tr"),bq=dq(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",function(e){return Boolean((e.properties||{}).hidden)},function(e){return"dialog"===e.tagName&&!(e.properties||{}).open}]),yq=dq(["address","article","aside","blockquote","body","caption","center","dd","dialog","dir","dl","dt","div","figure","figcaption","footer","form,","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","legend","li","listing","main","menu","nav","ol","p","plaintext","pre","section","ul","xmp"]);function Sq(e,t,r){return"element"===e.type?function(e,t,r){const n=Uq(e,r),i=e.children||[];let a,o,s=-1,l=[];if(bq(e))return l;for(mq(e)||vq(e)&&uq(t,e,vq)?o="\n":gq(e)?(a=2,o=2):yq(e)&&(a=1,o=1);++s<i.length;)l=l.concat(Sq(i[s],e,{whitespace:n,breakBefore:s?void 0:a,breakAfter:s<i.length-1?mq(i[s+1]):o}));return Vq(e)&&uq(t,e,Vq)&&l.push("\t"),a&&l.unshift(a),o&&l.push(o),l}(e,t,r):"text"===e.type?"normal"===r.whitespace?Aq(e,r):function(e){return[String(e.value)]}(e):[]}function Aq(e,t){const r=String(e.value),n=[],i=[];let a=0;for(;a<=r.length;){qq.lastIndex=a;const e=qq.exec(r),i=e&&"index"in e?e.index:r.length;n.push(wq(r.slice(a,i).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),0!==a||t.breakBefore,i!==r.length||t.breakAfter)),a=i+1}let o,s=-1;for(;++s<n.length;)8203===n[s].charCodeAt(n[s].length-1)||s<n.length-1&&8203===n[s+1].charCodeAt(0)?(i.push(n[s]),o=void 0):n[s]?("number"==typeof o&&i.push(o),i.push(n[s]),o=0):0!==s&&s!==n.length-1||i.push(0);return i}function wq(e,t,r){const n=[];let i,a=0;for(;a<e.length;){fq.lastIndex=a;const r=fq.exec(e);i=r?r.index:e.length,a||i||!r||t||n.push(""),a!==i&&n.push(e.slice(a,i)),a=r?i+r[0].length:i}return a===i||r||n.push(""),n.join(" ")}function Uq(e,t){if("element"===e.type){const r=e.properties||{};switch(e.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return r.wrap?"pre-wrap":"pre";case"td":case"th":return r.noWrap?"nowrap":t.whitespace;case"textarea":return"pre-wrap"}}return t.whitespace}const xq={},Cq=[];function Rq(e){const t=e||xq;return function(e,r){_a(e,"element",function(e,n){const i=Array.isArray(e.properties.className)?e.properties.className:Cq,a=i.includes("language-math"),o=i.includes("math-display"),s=i.includes("math-inline");let l=o;if(!a&&!o&&!s)return;let c=n[n.length-1],u=e;if("code"===e.tagName&&a&&c&&"element"===c.type&&"pre"===c.tagName&&(u=c,c=n[n.length-2],l=!0),!c)return;const d=function(e){const t={whitespace:"pre"}||{},r="children"in e?e.children:[],n=yq(e),i=Uq(e,{whitespace:t.whitespace||"normal"}),a=[];"text"!==e.type&&"comment"!==e.type||a.push(...Aq(e,{breakBefore:!0,breakAfter:!0}));let o=-1;for(;++o<r.length;)a.push(...Sq(r[o],e,{whitespace:i,breakBefore:o?void 0:n,breakAfter:o<r.length-1?mq(r[o+1]):n}));const s=[];let l;for(o=-1;++o<a.length;){const e=a[o];"number"==typeof e?void 0!==l&&e>l&&(l=e):e&&(void 0!==l&&l>-1&&s.push("\n".repeat(l)||" "),l=-1,s.push(e))}return s.join("")}(u);let p;try{p=Qh(d,{...t,displayMode:l,throwOnError:!0})}catch(q){const i=q,a=i.name.toLowerCase();r.message("Could not render math with KaTeX",{ancestors:[...n,e],cause:i,place:e.position,ruleId:a,source:"rehype-katex"});try{p=Qh(d,{...t,displayMode:l,strict:"ignore",throwOnError:!1})}catch{p=[{type:"element",tagName:"span",properties:{className:["katex-error"],style:"color:"+(t.errorColor||"#cc0000"),title:String(q)},children:[{type:"text",value:d}]}]}}"string"==typeof p&&(p=function(e){const t=function(e){const t=document.createElement("template");return t.innerHTML=e,t.content}(e);return sq(t,{})||{type:"root",children:[]}}(p).children);const h=c.children.indexOf(u);return c.children.splice(h,1,...p),Ja})}}const Eq=({children:e})=>S.jsx("div",{className:"myReactMarkdown",children:S.jsx(Yo,{remarkPlugins:[_h,jl],rehypePlugins:[Rq],children:e})}),Tq=e=>{var n;const{knowledgeId:i,content:a,contentEditable:o,editCallBack:s,resetContentCallback:l,aiCreateContentCallback:c,aiCreateContent:u,createAiContenting:d,swapContentCallback:p,insertContentCallback:h,textSelectionEnable:q=!1,textAiConsultCallback:f,textAiConsulting:m,textAiConsultAnswer:V,contentMaxLength:g=1e3}=e,[v,b]=t.useState(!1),[y,A]=t.useState(a),[w,U]=t.useState(!1),[x,C]=t.useState(!1),[R,E]=t.useState("plain"),[T,k]=t.useState(""),[W,N]=t.useState(""),[K,P]=t.useState(null),[I,B]=t.useState(!1),[D,X]=t.useState({x:0,y:0}),[M,G]=t.useState(!1),[Z,Q]=t.useState(""),[J,_]=t.useState(!1),$=t.useRef(null),ee=t.useRef(null);t.useEffect(()=>{A(a)},[a]);const te=t.useMemo(()=>a?a.replace(/#{1,6}\s+/g,"").replace(/\*\*(.*?)\*\*/g,"$1").replace(/\*(.*?)\*/g,"$1").replace(/`([^`]+)`/g,"$1").replace(/~~(.*?)~~/g,"$1").replace(/\[([^\]]+)\]\([^)]+\)/g,"$1").replace(/!\[([^\]]*)\]\([^)]+\)/g,"$1").replace(/^\s*[-*+]\s+/gm,"").replace(/^\s*\d+\.\s+/gm,""):"",[a]);t.useEffect(()=>{if(!q||!$.current)return;const e=()=>{var e,t;const r=window.getSelection();if(r&&""!==r.toString().trim()){const n=r.getRangeAt(0),i=n.getBoundingClientRect(),a=null==(e=$.current)?void 0:e.getBoundingClientRect();if(a&&(null==(t=$.current)?void 0:t.contains(n.commonAncestorContainer))){const e=r.toString().trim();N(e),P({range:n,startContainer:n.startContainer,endContainer:n.endContainer,startOffset:n.startOffset,endOffset:n.endOffset});const t=i.left-a.left,o=i.top-a.top-50;let s=t;const l=220;s<0&&(s=0),s+l>a.width&&(s=a.width-l),X({x:s,y:o}),I||M||J||B(!0)}}else M||J||B(!1)},t=e=>{const t=document.querySelector(".selectionPopup");t&&t.contains(e.target)||$.current&&!$.current.contains(e.target)&&(B(!1),G(!1),_(!1))};return document.addEventListener("mouseup",e),document.addEventListener("click",t),()=>{document.removeEventListener("mouseup",e),document.removeEventListener("click",t)}},[I,M,J,q]),t.useEffect(()=>{W&&(B(!0),G(!1),_(!1))},[W]),t.useEffect(()=>{I||Q("")},[I]);const ie=e=>{if(e.stopPropagation(),K&&$.current){try{const{startContainer:e,startOffset:t,endContainer:n,endOffset:o}=K,l=((e,t,r,n,i)=>{var o,s;try{const l=document.createTreeWalker(e,NodeFilter.SHOW_TEXT,null);let c=null,u="",d=[];for(;c=l.nextNode();){const e=c.textContent||"";e.trim()&&(d.push({node:c,start:u.length,end:u.length+e.length}),u+=e)}let p=-1,h=-1;for(const e of d)e.node===t&&(p=e.start+Math.min(r,(null==(o=e.node.textContent)?void 0:o.length)||0)),e.node===n&&(h=e.start+Math.min(i,(null==(s=e.node.textContent)?void 0:s.length)||0));if(-1!==p&&-1!==h&&p<h){const e=u.substring(p,h),t=((e,t,r)=>{if(!t.trim())return-1;const n=[];let i=-1;const a=t.replace(/\s+/g," ").trim().toLowerCase(),o=e.toLowerCase();let s=0;for(;-1!==(i=o.indexOf(a,s));)n.push(i),s=i+1;if(0===n.length)return o.indexOf(a.substring(0,Math.min(20,a.length)));if(1===n.length)return n[0];const l=Math.floor(r*e.length);let c=n[0],u=Math.abs(n[0]-l);for(let d=1;d<n.length;d++){const e=Math.abs(n[d]-l);e<u&&(u=e,c=n[d])}return c})(a,e,p/u.length);if(-1!==t)return{startIndex:t,endIndex:t+e.length,selectedText:e}}}catch(l){}return null})($.current,e,t,n,o);if(l){const{startIndex:e,endIndex:t,selectedText:n}=l,a=y.substring(e,t);if("</span>"===y.substring(t,t+7))return void r.message.warning("已高亮,无需重复操作");const o=`<span style="color: #1677ff;">${a}</span>`,c=y.substring(0,e)+o+y.substring(t);return null==s||s({id:i,content:c,showTip:!1}),void B(!1)}}catch(t){}const e=K.range.toString().trim();if(!e)return;const n=e.replace(/\s+/g," ").trim(),o=n.toLowerCase(),l=$.current;l.scrollTop,l.clientHeight;let c=-1,u=0;for(;-1!==u;)if(u=te.toLowerCase().indexOf(o,u),-1!==u){c=u;break}if(-1!==c){let e=-1,t=Math.min(50,y.length-c);for(let r=Math.max(0,c-10);r<y.length;r++){const n=y.substring(r,r+t).toLowerCase();if(n.includes(o)){e=r+n.indexOf(o);break}}if(-1!==e){const t=`<span style="color: #1677ff;">${y.substring(e,e+n.length)}</span>`,r=y.substring(0,e)+t+y.substring(e+n.length);return null==s||s({id:i,content:r,showTip:!1}),void B(!1)}}r.message.warning("特殊语法无法高亮")}},ae=()=>{Q(""),null==f||f(W,Z),_(!0),G(!1)},oe=[{label:"通俗版",key:"plain",onClick:()=>{U(!0),null==c||c("通俗版"),E("plain"),C(!1)}},{label:"学术版",key:"academic",onClick:()=>{U(!0),null==c||c("学术版"),E("academic"),C(!1)}},{label:"类比版",key:"analogy",onClick:()=>{U(!0),null==c||c("类比版"),E("analogy"),C(!1)}},{label:"面试版",key:"interview",onClick:()=>{U(!0),C(!1),null==c||c("面试版"),E("interview")}},{label:"自定义",key:"custom",onClick:()=>{E("custom"),U(!1),k(""),C(!0)}}],se=()=>{const e=document.getElementById("knowledgeCard");e&&(e.scrollTop=110)};return S.jsxs("div",{className:"textExplanation",children:[o&&S.jsxs("div",{className:"editArea tailwind-scoped",children:[s&&!v&&S.jsx("button",{onClick:()=>b(!0),className:"p-2 hover:bg-gray-50 rounded-lg transition-colors group",children:S.jsx(z,{className:"w-5 h-5 text-gray-600 group-hover:text-blue-600"})}),!v&&S.jsx("button",{onClick:()=>{navigator.clipboard.writeText(a),r.message.success("复制成功")},className:"p-2 hover:bg-gray-50 rounded-lg transition-colors group",children:S.jsx(O,{className:"w-5 h-5 text-gray-600 group-hover:text-blue-600"})}),!v&&S.jsx(r.Dropdown,{menu:{items:oe},children:S.jsx("button",{className:"p-2 hover:bg-gray-50 rounded-lg transition-colors group",children:S.jsx(re,{className:"w-5 h-5 text-gray-600 group-hover:text-blue-600"})})}),v&&l&&S.jsx(r.Tooltip,{title:"恢复原文",children:S.jsx("button",{onClick:()=>{r.Modal.confirm({title:"确认恢复原文吗?",okText:"确认",okType:"danger",onOk:()=>{null==l||l(),b(!1)}})},className:"p-2 hover:bg-blue-50 rounded-lg transition-colors group",children:S.jsx(H,{className:"w-5 h-5 text-blue-600"})})}),v&&S.jsx("button",{onClick:()=>{null==s||s({content:y,id:i}),b(!1)},className:"p-2 hover:bg-green-50 rounded-lg transition-colors group",title:"保存",children:S.jsx(Y,{className:"w-5 h-5 text-green-600"})}),v&&S.jsx("div",{className:"tailwind-scoped",children:S.jsx("button",{onClick:()=>b(!1),className:"p-2 hover:bg-red-50 rounded-lg transition-colors group",title:"取消",children:S.jsx(ne,{className:"w-5 h-5 text-red-600"})})})]}),v?S.jsx("div",{className:"tailwind-scoped",style:{height:"100%"},children:S.jsxs("div",{className:"space-y-4 h-full",children:[S.jsx("textarea",{value:y,onChange:e=>A(e.target.value),className:"h-[calc(100%-100px)] mt-10 bg-white w-full min-h-[200px] px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-purple-500 focus:border-transparent resize-none font-mono text-sm",placeholder:"在此编辑内容,支持Markdown格式...",maxLength:g}),S.jsxs("div",{className:"flex items-center justify-between text-sm text-gray-500",children:[S.jsx("span",{children:"支持Markdown格式化"}),S.jsxs("span",{children:[(null==y?void 0:y.length)||0,"/",g]})]})]})}):S.jsxs("div",{className:"md",children:[x&&S.jsx("div",{className:"customInputArea",children:S.jsx(r.Input.Search,{type:"text",size:"middle",placeholder:"请输入自定义优化要求,例如:用鲁迅的风格解释、针对后端开发者解释...",value:T,onChange:e=>k(e.target.value),enterButton:"优化",onSearch:()=>{U(!0),null==c||c(`${T}`),C(!1)}})}),w&&S.jsxs("div",{className:"createArea",children:[S.jsxs("div",{className:"top",children:[S.jsxs("div",{className:"titleArea",children:[S.jsx(F,{}),S.jsx("div",{className:"title",children:"AI优化建议"}),S.jsxs("div",{className:"type",children:["[",null==(n=oe.find(e=>e.key===R))?void 0:n.label,"]"]})]}),S.jsx("div",{className:"close",onClick:()=>U(!1),children:S.jsx(ne,{})})]}),S.jsx("div",{className:"content",children:S.jsx(Eq,{children:u})}),S.jsxs("div",{className:"bottom",children:[S.jsx(r.Button,{onClick:()=>{se(),U(!1),null==p||p(u)},type:"primary",icon:S.jsx(kt,{}),disabled:!0===d,children:"替换原文"}),S.jsx(r.Button,{onClick:()=>{se(),U(!1),null==h||h(u)},type:"primary",icon:S.jsx(vt,{}),disabled:!0===d,children:"插入最下方"})]})]}),S.jsxs("div",{ref:$,className:"mdContent",children:[S.jsx(Eq,{children:a}),I&&S.jsxs("div",{ref:ee,className:"selectionPopup",style:{left:`${D.x}px`,top:`${D.y}px`},children:[!M&&!J&&S.jsxs("div",{className:"popupButtons",children:[S.jsxs("button",{onClick:e=>ie(e),className:"popupButton",children:[S.jsx(L,{className:"w-4 h-4"})," 高亮"]}),S.jsxs("button",{onClick:e=>(e=>{e.stopPropagation(),G(!0)})(e),className:"popupButton",children:[S.jsx(j,{className:"w-4 h-4"})," 向AI提问"]})]}),(M||J)&&S.jsx("div",{className:"popupClose",children:S.jsx("div",{onClick:()=>B(!1),className:"closeBtn",children:S.jsx(ne,{className:"w-4 h-4"})})}),M&&S.jsxs("div",{className:"aiQuestionInput",children:[S.jsx(r.Input,{placeholder:"输入你的问题...",value:Z,onChange:e=>Q(e.target.value),onPressEnter:ae}),S.jsx(r.Button,{type:"primary",onClick:e=>{e.stopPropagation(),ae()},disabled:m,children:"发送"})]}),J&&S.jsxs("div",{className:"aiAnswer",children:[S.jsx("div",{className:"aiAnswerContent",children:S.jsx(Eq,{children:V})}),S.jsxs("div",{className:"aiAnswerActions",children:[S.jsxs(r.Button,{onClick:e=>{e.stopPropagation(),navigator.clipboard.writeText(V),r.message.success("复制成功")},className:"aiAnswerActionButton "+(m?"disabledBtn":""),disabled:m,children:[S.jsx(O,{className:"w-4 h-4"})," 复制"]}),S.jsxs(r.Button,{onClick:e=>{e.stopPropagation(),null==h||h(V),B(!1)},className:"aiAnswerActionButton "+(m?"disabledBtn":""),disabled:m,children:[S.jsx(vt,{className:"w-4 h-4"})," 放到最下方"]})]})]})]})]})]})]})},kq=({htmlContent:e})=>{const r=t.useRef(null);return S.jsx("iframe",{ref:r,srcDoc:e,style:{width:"100%",border:"none",minHeight:"calc(100vh - 300px)",display:"block"},sandbox:"allow-scripts",title:"isolated-content"})},Fq=e=>{const{animationHtml:n,createAnimationLoading:i,createAnimationLoadingText:a,createAnimation:o,canReCreateAnimation:s,aiReCreateAnimationCallback:l}=e,[c,u]=t.useState(""),[d,p]=t.useState(!1);return S.jsxs("div",{className:"animationDemoContainer",children:[s&&n?S.jsx("div",{className:"reCreateAnimationBtn",children:S.jsx(r.Button,{icon:S.jsx(re,{style:{width:"18px",height:"18px",marginTop:"2px"}}),type:"primary",onClick:()=>p(!0),children:"自定义"})}):null,d&&S.jsx("div",{className:"customInputArea",children:S.jsx(r.Input.Search,{type:"text",size:"middle",placeholder:"请输入自定义优化要求,例如:用卡通风格生成、加快速度、去掉多余元素、风格更简约...",value:c,onChange:e=>u(e.target.value),enterButton:"重新生成",onSearch:()=>{p(!1),u(""),null==l||l(`${c}`)}})}),S.jsx("div",{children:!0===i?S.jsx("div",{className:"tailwind-scoped",children:S.jsxs("div",{className:"bg-white p-12 text-center",children:[S.jsx("div",{className:"w-16 h-16 bg-pink-50 text-pink-600 rounded-2xl flex items-center justify-center mx-auto mb-6 animate-bounce",children:S.jsx(M,{className:"w-8 h-8 opacity-50"})}),S.jsx("h3",{className:"text-lg font-bold text-gray-900 mb-2",children:"正在为您生成动画演示..."}),S.jsx("p",{className:"text-sm text-gray-400 animate-pulse",children:a||"动画生成中..."}),S.jsx("div",{className:"mx-auto w-full mt-10 flex gap-6",children:S.jsxs("div",{className:"p-10 flex gap-6 overflow-hidden w-full border border-gray-100 rounded-[32px] shadow-sm text-left",children:[S.jsx(r.Skeleton,{}),S.jsx(r.Skeleton.Image,{active:!0})]})})]})}):n?S.jsx(kq,{htmlContent:n}):S.jsx("div",{className:"tailwind-scoped",children:S.jsxs("div",{className:"mt-4 bg-white rounded-[32px] border border-gray-100 p-12 text-center",children:[S.jsx("div",{className:"w-16 h-16 bg-pink-50 text-pink-600 rounded-2xl flex items-center justify-center mx-auto mb-6",children:S.jsx(M,{className:"w-8 h-8"})}),S.jsx("h3",{className:"text-lg font-bold text-gray-900 mb-2",children:"生成动画演示"}),S.jsx("p",{className:"text-sm text-gray-400 max-w-sm mx-auto mb-8",children:"AI将尽力为您生成生动有趣的动画。"}),S.jsx("button",{onClick:()=>o(),className:"mx-auto bg-pink-600 hover:bg-pink-700 text-white rounded-xl h-11 px-8 font-bold shadow-lg shadow-purple-100",children:"开始生成"})]})})})]})},Wq=n.Component({createEl:function(e){const t=document.createElement("div");t.className="progress-marker-container";const r=document.createElement("div");r.className="marker-text",t.appendChild(r),e.appendChild(t),this.container=t,this.timeoutId=null},markerDotOver:function(e,t){let r=t.progressMarker;this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null);const n=this.container.querySelector(".marker-text");document.querySelectorAll(".prism-thumbnail").forEach(e=>{e&&(e.style.opacity="0")}),this.timeoutId=setTimeout(()=>{document.querySelectorAll(".progress-marker-container").forEach(e=>{if(!e)return;const t=parseFloat(e.style.left);t<10?(e.style.transform="none",e.classList.add("leftAfter")):t>80&&(e.style.transform="translateX(-100%)",e.classList.add("rightAfter"))}),this.timeoutId=null},0),n&&(n.textContent=r.text),this.container.style.left=100*t.left+"%",this.container.style.display="flex"},markerDotOut:function(e,t){this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null),this.container.style.display="none",document.querySelectorAll(".prism-thumbnail").forEach(e=>{e.style.opacity="1"}),document.querySelectorAll(".progress-marker-container").forEach(e=>{e.style.transform="translateX(-50%)",e.classList.remove("leftAfter"),e.classList.remove("rightAfter")})},destroy:function(){this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null),this.container=null}}),Nq=()=>n.Component({init:function(){this.pipActive=!1,this.video=document.querySelector("video"),this.boundTogglePip=this.togglePip.bind(this),this.boundOnEnterPip=this.onEnterPip.bind(this),this.boundOnLeavePip=this.onLeavePip.bind(this),this.button=document.createElement("div"),this.button&&(this.button.className="prism-pip-btn",this.button.innerHTML='\n <div class="pip-content">\n <div class="pip-content-text">画中画</div>\n <svg t="1751253366278" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2319" width="200" height="200"><path d="M768 213.333333H256a85.333333 85.333333 0 0 0-85.333333 85.333334v426.666666a85.333333 85.333333 0 0 0 85.333333 85.333334h170.666667a42.666667 42.666667 0 1 1 0 85.333333H256a170.666667 170.666667 0 0 1-170.666667-170.666667V298.666667a170.666667 170.666667 0 0 1 170.666667-170.666667h512a170.666667 170.666667 0 0 1 170.666667 170.666667v128a42.666667 42.666667 0 1 1-85.333334 0V298.666667a85.333333 85.333333 0 0 0-85.333333-85.333334z m-128 341.333334a128 128 0 0 0-128 128v85.333333a128 128 0 0 0 128 128h170.666667a128 128 0 0 0 128-128v-85.333333a128 128 0 0 0-128-128h-170.666667z" fill="#ffffff" p-id="2320"></path></svg>\n </div>\n ',this.button.addEventListener("click",this.boundTogglePip))},createEl:function(e){e.appendChild(this.button),this.video.addEventListener("enterpictureinpicture",this.boundOnEnterPip),this.video.addEventListener("leavepictureinpicture",this.boundOnLeavePip)},destroy:function(){this.button&&this.boundTogglePip&&this.button.removeEventListener("click",this.boundTogglePip),this.video&&this.boundOnEnterPip&&this.video.removeEventListener("enterpictureinpicture",this.boundOnEnterPip),this.video&&this.boundOnLeavePip&&this.video.removeEventListener("leavepictureinpicture",this.boundOnLeavePip),this.button=null,this.video=null,this.boundTogglePip=null,this.boundOnEnterPip=null,this.boundOnLeavePip=null},onEnterPip:function(){},onLeavePip:function(){},togglePip:async function(){try{this.pipActive&&document.pictureInPictureElement?await document.exitPictureInPicture():await this.video.requestPictureInPicture()}catch(e){}}}),Kq=e=>{const{playerRef:i,url:a,license:o,containerId:s,vidPlayAuth:l}=e,c=t.useRef(null),u=[];t.useEffect(()=>{const e=-1===a.indexOf("http");if((!e||l)&&(e||o))return i.current=new n({id:s,source:e?"":a,vid:e?a:"",playauth:e?l:"",width:"100%",height:"500px",autoplay:!1,isLive:!1,rePlay:!1,playsinline:!0,preload:!0,controlBarVisibility:"hover",progressMarkers:u,useH5Prism:!0,license:{...o},components:[{name:"progressMarkerComponent",type:Wq},{name:"pipButton",type:Nq()}],extraInfo:{crossOrigin:"anonymous"},skinLayout:[{name:"bigPlayButton",align:"blabs",x:30,y:80},{name:"H5Loading",align:"cc"},{name:"errorDisplay",align:"tlabs",x:0,y:0},{name:"infoDisplay"},{name:"tooltip",align:"blabs",x:0,y:56},{name:"thumbnail"},{name:"controlBar",align:"blabs",x:0,y:0,children:[{name:"progress",align:"blabs",x:0,y:44},{name:"playButton",align:"tl",x:15,y:12},{name:"timeDisplay",align:"tl",x:10,y:5},{name:"snapshot",align:"tr",x:45,y:8},{name:"fullScreenButton",align:"tr",x:14,y:12},{name:"setting",align:"tr",x:15,y:12},{name:"volume",align:"tr",x:15,y:10}]}]}),i.current.on("snapshoted",d),i.current.on("play",()=>{c.current&&clearTimeout(c.current)}),i.current.on("showBar",()=>{const e=document.querySelector(".prism-pip-btn");e&&(e.style.display="block")}),i.current.on("hideBar",()=>{const e=document.querySelector(".prism-pip-btn");e&&(e.style.display="none")}),()=>{var e,t;c.current&&clearTimeout(c.current),i.current&&(null==(t=(e=i.current).dispose)||t.call(e),i.current=null)}},[a,o,l]);const d=async e=>{const t=e.paramData.base64;try{const e=t.match(/^data:(image\/\w+);base64,(.*)$/);if(!e)throw new Error("无效的Base64图片格式");const i=e[1],a=e[2];try{return await p(i,a),void r.message.success("图片已成功复制到剪贴板!")}catch(n){}const o=await h(t);await q(o),r.message.success("图片已成功复制到剪贴板!")}catch(n){}},p=async(e,t)=>{const r=atob(t),n=[];for(let a=0;a<r.length;a+=1024){const e=r.slice(a,a+1024),t=new Array(e.length);for(let r=0;r<e.length;r++)t[r]=e.charCodeAt(r);const i=new Uint8Array(t);n.push(i)}const i=new Blob(n,{type:e});await navigator.clipboard.write([new ClipboardItem({[i.type]:i})])},h=e=>new Promise((t,r)=>{const n=new Image;n.src=e,n.onload=()=>{const e=document.createElement("canvas");e.width=n.width,e.height=n.height,e.getContext("2d").drawImage(n,0,0),e.toBlob(e=>{e?t(e):r(new Error("无法转换图片为PNG格式"))},"image/png")},n.onerror=()=>{r(new Error("图片加载失败"))}}),q=async e=>{try{await navigator.clipboard.write([new ClipboardItem({[e.type]:e})])}catch(t){}};return S.jsx("div",{className:"videoPlayer",children:S.jsx("div",{id:s,ref:i})})},Oq=(e,t)=>e.length===t.length&&e.every(e=>t.includes(e)),Pq=e=>{try{if(!e||"string"!=typeof e)return null;return JSON.parse(e)}catch(t){return null}},Iq=(e,t=500,r=!1)=>{let n=null;return(...i)=>{const a=r&&!n;n&&clearTimeout(n),n=setTimeout(()=>{n=null,r||e(...i)},t),a&&e(...i)}},Lq=e=>{const t=Math.floor(e/3600),r=Math.floor(e%3600/60),n=e%60;return`${t<10?"0"+t:t+""}:${r<10?"0"+r:r+""}:${n<10?"0"+n:n+""}`},Bq=e=>{if(!e)return"00:00:00";let t=e;if("string"==typeof t&&-1!==t.indexOf(":"))return t;t=Math.max(0,Math.floor(Number(t)||0));const r=Math.floor(t/3600),n=Math.floor(t%3600/60),i=t%60;return[r.toString().padStart(2,"0"),n.toString().padStart(2,"0"),i.toString().padStart(2,"0")].join(":")},Dq=e=>e>=1e4?`${(e/1e4).toFixed(1)}w`:e>=1e3?`${(e/1e3).toFixed(1)}k`:e.toString(),Xq=e=>{if(!e)return 0;if("number"==typeof e)return e;if("string"==typeof e&&-1!==e.indexOf(":")){const t=e.split(":");let r=0,n=0,i=0;return 2===t.length?(n=t[0]?Number(t[0]):0,i=t[1]?Number(t[1]):0):3===t.length&&(r=t[0]?Number(t[0]):0,n=t[1]?Number(t[1]):0,i=t[2]?Number(t[2]):0),3600*r+60*n+i}return 0},jq=e=>{const{videoTitle:r,videoUrl:n,videoLicense:i,playerRef:a,vidPlayAuth:o,videoTime:s}=e;return t.useEffect(()=>{var e;if(s&&a.current){const t=Xq(s);null==(e=a.current)||e.seek(t)}},[s,a]),S.jsxs("div",{className:"videoContainer",children:[r&&S.jsx("div",{className:"videoTitle",children:r}),S.jsx("div",{className:"playerArea",children:S.jsx(Kq,{url:n,license:i,playerRef:a,containerId:"videoTutorialOfKnowledgeCard",vidPlayAuth:o})})]})};var Mq,zq=(e=>(e.RADIO="radio",e.CHECKBOX="checkbox",e.COMPLETION="completion",e.ANSWER="answer",e.ACM="acm",e.CCM="ccm",e))(zq||{}),Gq=(e=>(e.NONE="NONE",e.INPUT_OUTPUT="INPUT_OUTPUT",e.SUBJECTIVE="SUBJECTIVE",e))(Gq||{}),Zq=(e=>(e.PREADD="preadd",e.ADD="add",e.PREVIEW="preview",e.EXAM="exam",e.MARK="mark",e.VIEW="view",e))(Zq||{}),Hq={exports:{}};self,Hq.exports=(Mq=i,(()=>{var e={857:e=>{e.exports=Mq}},t={};function r(n){var i=t[n];if(void 0!==i)return i.exports;var a=t[n]={exports:{}};return e[n](a,a.exports,r),a.exports}r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};return(()=>{r.r(n),r.d(n,{default:()=>o});var e=r(857),t={"*":"list-item","-":"list-item","+":"list-item",">":"blockquote","#":"header1","##":"header2","###":"header3","####":"header4","#####":"header5"},i={"---":"divider","----":"divider","-----":"divider","------":"divider"};function a(t){var r=t.selection;if(null==r)return{beforeText:"",range:null};var n=r.anchor,i=e.SlateEditor.above(t,{match:function(r){return e.SlateEditor.isBlock(t,r)}});if(null==i)return{beforeText:"",range:null};var a=i[1],o={anchor:n,focus:e.SlateEditor.start(t,a)};return{beforeText:e.SlateEditor.string(t,o)||"",range:o}}const o={editorPlugin:function(r){var n=r.insertBreak,o=r.insertText,s=r;return s.insertText=function(n){var i=r.selection;if(null==i)return o(n);if(e.SlateRange.isExpanded(i))return o(n);if(null==e.DomEditor.getSelectedNodeByType(r,"paragraph"))return o(n);if(" "!==n)return o(n);var s=a(r),l=s.beforeText,c=s.range;if(!l||!c)return o(n);var u=t[l];if(!u)return o(n);e.SlateTransforms.select(r,c),e.SlateTransforms.delete(r);var d={type:u};e.SlateTransforms.setNodes(r,d,{match:function(t){return e.SlateEditor.isBlock(r,t)}}),"list-item"===u&&e.SlateTransforms.wrapNodes(r,{type:"bulleted-list",children:[]},{match:function(t){return"list-item"===e.DomEditor.getNodeType(t)}})},s.insertBreak=function(){var t=r.selection;if(null==t)return n();if(e.SlateRange.isExpanded(t))return n();if(null==e.DomEditor.getSelectedNodeByType(r,"paragraph"))return n();var o=a(r),s=o.beforeText,l=o.range;if(!s||!l)return n();if(0!==s.indexOf("```")){var c=i[s];if(!c)return n();e.SlateTransforms.select(r,l),e.SlateTransforms.delete(r);var u={type:c};e.SlateTransforms.setNodes(r,u,{match:function(t){return e.SlateEditor.isBlock(r,t)}})}else{var d=s.slice(3).toLowerCase().trim();"js"===d&&(d="javascript"),"ts"===d&&(d="typescript"),"md"===d&&(d="markdown"),"py"===d&&(d="python"),"vb"===d&&(d="visual-basic"),"c#"===d&&(d="csharp");var p=((r.getConfig().MENU_CONF||{}).codeSelectLang||[]).codeLangs;if(d&&!(void 0===p?[]:p).some(function(e){return e.value===d}))return n();e.SlateTransforms.select(r,l),e.SlateTransforms.delete(r);var h={type:"pre",children:[{type:"code",language:d,children:[{text:""}]}]};e.SlateTransforms.insertNodes(r,h)}},s}}})(),n})());const Yq=f(Hq.exports);function Qq(e,t,r,n,i){return{sel:e,data:t,children:r,text:n,elm:i,key:void 0===t?void 0:t.key}}const Jq=Array.isArray;function _q(e){return"string"==typeof e||"number"==typeof e||e instanceof String||e instanceof Number}function $q(e,t,r){if(e.ns="http://www.w3.org/2000/svg","foreignObject"!==r&&void 0!==t)for(let n=0;n<t.length;++n){const e=t[n];if("string"==typeof e)continue;const r=e.data;void 0!==r&&$q(r,e.children,e.sel)}}function ef(e,t,r){let n,i,a,o={};if(null!=t&&(Jq(t)?n=t:_q(t)?i=t.toString():t&&t.sel?n=[t]:o=t),void 0!==n)for(a=0;a<n.length;++a)_q(n[a])&&(n[a]=Qq(void 0,void 0,void 0,n[a],void 0));return!e.startsWith("svg")||3!==e.length&&"."!==e[3]&&"#"!==e[3]||$q(o,n,e),Qq(e,o,n,i,void 0)}const tf=[];for(let N0=0;N0<256;++N0)tf.push((N0+256).toString(16).slice(1));let rf;const nf=new Uint8Array(16),af={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function of(e,t,r){return af.randomUUID&&!e?af.randomUUID():function(e){var t;const r=(e=e||{}).random??(null==(t=e.rng)?void 0:t.call(e))??function(){if(!rf){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");rf=crypto.getRandomValues.bind(crypto)}return rf(nf)}();if(r.length<16)throw new Error("Random bytes length must be >= 16");return r[6]=15&r[6]|64,r[8]=63&r[8]|128,function(e,t=0){return(tf[e[t+0]]+tf[e[t+1]]+tf[e[t+2]]+tf[e[t+3]]+"-"+tf[e[t+4]]+tf[e[t+5]]+"-"+tf[e[t+6]]+tf[e[t+7]]+"-"+tf[e[t+8]]+tf[e[t+9]]+"-"+tf[e[t+10]]+tf[e[t+11]]+tf[e[t+12]]+tf[e[t+13]]+tf[e[t+14]]+tf[e[t+15]]).toLowerCase()}(r)}(e)}class sf{constructor(){c(this,"title","插入填空项"),c(this,"tag","button")}getValue(e){return""}isActive(e){return!1}isDisabled(e){var t;return null==e.selection||(null==(t=e.getElemsByType("fill-blank"))?void 0:t.length)>=20}exec(e,t){if(this.isDisabled(e))return;const r=[{text:" "},{type:"fill-blank",key:of(),children:[{text:""}]},{text:" "}];i.SlateTransforms.insertNodes(e,r)}}let lf=[];const cf={editorPlugin:function(e){const{isInline:t,isVoid:r}=e,n=e;return n.isInline=e=>"fill-blank"===i.DomEditor.getNodeType(e)||t(e),n.isVoid=e=>"fill-blank"===i.DomEditor.getNodeType(e)||r(e),n},renderElems:[{type:"fill-blank",renderElem:(e,t,r)=>{const n=null==r?void 0:r.getElemsByType("fill-blank"),i=(null==n?void 0:n.findIndex(t=>t.key===e.key&&!lf.includes(t.id)))||0;return i===n.length-1?lf=[]:lf.push(n[i].id),ef("input",{attrs:{class:"w-e-fill-blank","data-w-e-type":"fill-blank","data-w-e-is-void":"true","data-w-e-is-inline":"true",readonly:!0,placeholder:i+1}})}}],elemsToHtml:[{type:"fill-blank",elemToHtml:(e,t,r)=>'<input class="w-e-fill-blank" data-w-e-type="fill-blank" data-w-e-is-void="true" data-w-e-is-inline="true" readonly="true">'}],parseElemsHtml:[{selector:"input[data-w-e-type='fill-blank']",parseElemHtml:(e,t,r)=>({type:"fill-blank",key:of(),children:[{text:""}]})},{selector:"pre:not([data-w-e-type])>code",parseElemHtml:(e,t,r)=>{let n=(null==e?void 0:e.innerHTML)||"";const i='<input class="w-e-fill-blank" data-w-e-type="fill-blank" data-w-e-is-void="true" data-w-e-is-inline="true" readonly="true">',a=(null==t?void 0:t.filter(e=>"fill-blank"===(null==e?void 0:e.type)))||[];let o=[];return(null==a?void 0:a.length)&&(null==t||t.forEach((e,r)=>{var a;if(o.push(e),"fill-blank"===(null==e?void 0:e.type))if("fill-blank"===(null==(a=t[r+1])?void 0:a.type)){const e=null==n?void 0:n.indexOf(i,1);let t=null==n?void 0:n.slice(0,e);n=null==n?void 0:n.replace(t,""),t=t.replace(i,""),o.push({text:t})}else n=null==n?void 0:n.replace(i,"");else n=null==n?void 0:n.replace(null==e?void 0:e.text,"")})),{type:"code",language:"",children:(null==a?void 0:a.length)?o:[{text:(null==e?void 0:e.textContent)||""}]}}}],menus:[{key:"fill-blank",factory:()=>new sf}]},uf=t.createContext(null);let df=!1;const pf=t.forwardRef((e,r)=>{const{topProps:n}=(()=>{const e=t.useContext(uf);if(!e)throw new Error("useMyContext must be used within a MyContext.Provider");return e})(),{uploadImg:o}=n,{defaultValue:s="",readOnly:l=!1,editorHeight:c=300,placeholder:u="请输入内容...",isBorder:d=!0,autoHeight:p,onChange:h,customToolbarKeys:q,mode:f="default",noPadding:m=!1}=e;t.useEffect(()=>{if(!df)try{i.Boot.registerModule(cf),i.Boot.registerModule(Yq),df=!0}catch(e){}},[]);const[V,g]=t.useState(null),[v]=t.useState({toolbarKeys:q??["undo","redo","fullScreen","|","headerSelect","bold","underline","italic","color","bgColor","|","bulletedList","numberedList",{key:"group-justify",title:"对齐",iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M204.8 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M505.6 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M806.4 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path></svg>',menuKeys:["justifyLeft","justifyRight","justifyCenter","justifyJustify"]},{key:"group-indent",title:"缩进",iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',menuKeys:["indent","delIndent"]},"insertLink",{key:"group-image",title:"图片",iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M959.877 128l0.123 0.123v767.775l-0.123 0.122H64.102l-0.122-0.122V128.123l0.122-0.123h895.775zM960 64H64C28.795 64 0 92.795 0 128v768c0 35.205 28.795 64 64 64h896c35.205 0 64-28.795 64-64V128c0-35.205-28.795-64-64-64zM832 288.01c0 53.023-42.988 96.01-96.01 96.01s-96.01-42.987-96.01-96.01S682.967 192 735.99 192 832 234.988 832 288.01zM896 832H128V704l224.01-384 256 320h64l224.01-192z"></path></svg>',menuKeys:["insertImage","uploadImage"]},"insertTable","codeBlock","divider","|"]}),b={placeholder:u,autoFocus:!1,MENU_CONF:{uploadImage:{async customUpload(e,t){if(!e||!o)return;const r=new FormData;r.append("file",e);const n=await o({file:r});(null==n?void 0:n.url)&&t(null==n?void 0:n.url,null==n?void 0:n.url,null==n?void 0:n.url)}}}},y=t.useRef(null);t.useEffect(()=>()=>{null!=V&&(y.current&&clearTimeout(y.current),y.current=setTimeout(()=>{null==V||V.destroy(),g(null)},500))},[V]),t.useEffect(()=>{l?null==V||V.disable():null==V||V.enable()},[l,V]);const A=t.useCallback((e="")=>e.replace(/<\/?p>/g,"").replace(/ /gi,"").replace(/<br\/?>/g,""),[]);t.useImperativeHandle(r,()=>({getHtml:()=>{if(null==V?void 0:V.isEmpty())return"";{const e=(null==V?void 0:V.getHtml())??"",t=A(e);return/\S+/.test(t)?e:""}},setValue:(e="")=>!!V&&(null==V||V.setHtml(e),!0)}));const w={};return l&&p?(w.minHeight=p.min+"px",w.maxHeight=p.max+"px",w.overflowY="auto"):w.height="number"==typeof c?c+"px":c,S.jsx(S.Fragment,{children:S.jsxs("div",{"data-nopadding":m,style:{border:d?"1px solid #E5E5E5":"",zIndex:99},className:"richeditor",children:[!l&&S.jsx(a.Toolbar,{editor:V,defaultConfig:v,mode:"default",style:{borderBottom:"1px solid #E5E5E5"}}),S.jsx(a.Editor,{defaultConfig:b,value:s,onCreated:g,mode:f,onChange:e=>{if(null==e?void 0:e.isEmpty())null==h||h("",e);else{const t=(null==e?void 0:e.getHtml())??"",r=A(t);/\S+/.test(r)?null==h||h(t,e):null==h||h("",e)}},style:{fontSize:"16px",...w}})]})})});zq.RADIO,zq.CHECKBOX,zq.COMPLETION,zq.ANSWER,zq.ACM,zq.CCM,zq.RADIO,zq.COMPLETION,zq.ANSWER,zq.CCM;const hf={low:"简单",middle:"中等",high:"困难"},qf="https://quiz.cloudlab.top",ff="https://run.cloudlab.top",mf=e=>{switch(e){case"radio":case"checkbox":return S.jsx($,{className:"w-4 h-4"});case"acm":case"ccm":return S.jsx(K,{className:"w-4 h-4"});case"completion":return S.jsx(z,{className:"w-4 h-4"});case"answer":return S.jsx(j,{className:"w-4 h-4"});default:return S.jsx(P,{className:"w-4 h-4"})}},Vf=e=>{switch(e){case"radio":return"单选题";case"checkbox":return"多选题";case"acm":case"ccm":return"编码测验";case"completion":return"填空题";case"answer":return"问答题";default:return"题目"}},gf=e=>{switch(e){case"low":return"text-green-600 bg-green-100";case"middle":return"text-yellow-600 bg-yellow-100";case"high":return"text-red-600 bg-red-100";default:return"text-gray-600 bg-gray-100"}},vf=e=>{const{currentIndex:t,questionsCount:r,type:n,difficulty:i="low",score:a}=e;return S.jsxs("div",{className:"questionHeader tailwind-scoped",children:[t&&r&&S.jsxs("div",{className:"questionIndex itemWrapper",children:["题目 ",t,"/",r]}),S.jsxs("span",{className:"questionType itemWrapper",children:[mf(n)," ",Vf(n)]}),i&&S.jsx("div",{className:`difficulty itemWrapper ${gf(i)}`,children:S.jsx("span",{className:"difficulty",children:hf[i]})}),a&&S.jsxs("div",{className:"score itemWrapper",children:[S.jsx(_,{})," ",a," 分"]})]})},bf=e=>{var n;const{data:i,onSubmit:a,buttonText:o,showQuestionTip:s,showResult:l,onNextQuestion:c}=e,{optionJson:u,answer:d,userAnswer:p,score:h,type:q,topic:f,content:m,auxiliary:V,difficulty:g,currentIndex:v,questionsCount:b}=i,[y,A]=t.useState(!0),[w,U]=t.useState(void 0),[x,C]=t.useState(),[R,E]=t.useState(""),[T,k]=t.useState([]);t.useEffect(()=>{p&&!x&&(C(p),p.indexOf(",")>-1?k(null==p?void 0:p.split(",")):E(p),F(p))},[i]);const F=e=>{if(!x&&!e)return void r.message.warning("请先作答!");const t=x||e;a&&!e&&void 0===w&&a(t),void 0!==w&&(null==c||c()),d&&l&&(t===d||t&&Oq(null==t?void 0:t.split(","),null==d?void 0:d.split(","))?U(1):U(0))},K=["A","B","C","D","E","F","G","H","I","J"];return S.jsx("div",{className:"video-player-interaction tailwind-scoped",children:S.jsx("div",{className:"video-player-interaction-content",children:S.jsxs("div",{className:"video-player-interaction-content-main",children:[S.jsx(vf,{score:h,type:q,difficulty:g,currentIndex:v,questionsCount:b}),S.jsx("div",{className:"video-player-interaction-content-desc",children:S.jsx(pf,{defaultValue:f||m,readOnly:!0,noPadding:!0})}),S.jsx("div",{className:"video-player-interaction-content-options",children:"radio"===q?null==u?void 0:u.map(({key:e,value:t},r)=>S.jsx("button",{onClick:()=>(e=>{U(void 0),C(e+""),E(e+"")})(e),disabled:void 0!==w,className:`block w-full text-left p-4 rounded-lg border-2 transition-all ${R===e?"border-blue-500 bg-blue-50":"border-gray-200 hover:border-gray-300"} ${void 0!==w?e===d?"border-green-500 bg-green-50":R===e&&e!==d?"border-red-500 bg-red-50":"border-gray-200":""}`,children:S.jsxs("div",{className:"flex items-center justify-between",children:[S.jsxs("span",{children:[K[r],"、",t]}),void 0!==w&&e===d&&S.jsx(W,{className:"w-5 h-5 text-green-600"}),void 0!==w&&R===e&&e!==d&&S.jsx(N,{className:"w-5 h-5 text-red-600"})]})},e)):null==u?void 0:u.map(({key:e,value:t},r)=>S.jsx("button",{onClick:()=>(e=>{U(void 0);let t=x||"";if(t&&(null==t?void 0:t.indexOf(e))>-1){let r=t.split(",");r=r.filter(t=>t!==e),t=null==r?void 0:r.join(",")}else t=t?t+","+e:e;C(t)})(String(e)),disabled:void 0!==w,className:`block w-full text-left p-4 rounded-lg border-2 transition-all ${x&&(null==x?void 0:x.indexOf(e))>-1?"border-blue-500 bg-blue-50":"border-gray-200 hover:border-gray-300"} ${void 0!==w?d.indexOf(e)>-1?(null==x||x.indexOf(e),"border-green-500 bg-green-50"):x&&(null==x?void 0:x.indexOf(e))>-1&&-1===d.indexOf(e)?"border-red-500 bg-red-50":"border-gray-200":""}`,children:S.jsxs("div",{className:"flex items-center justify-between",children:[S.jsxs("span",{children:[K[r],"、",t]}),void 0!==w&&d.indexOf(e)>-1&&S.jsx(W,{className:"w-5 h-5 text-green-600"}),void 0!==w&&x&&(null==x?void 0:x.indexOf(e))>-1&&-1===d.indexOf(e)&&S.jsx(N,{className:"w-5 h-5 text-red-600"})]})},e+t))}),s&&0===w&&V&&(null==V?void 0:V.length)>0&&S.jsxs("div",{className:"video-player-interaction-content-tip",children:[S.jsxs("div",{className:"video-player-interaction-content-tip-icons",onClick:()=>{A(!y)},children:[S.jsx("img",{src:"data:image/svg+xml,%3csvg%20width='17'%20height='16'%20viewBox='0%200%2017%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20opacity='0.01'%20x='0.535156'%20width='16'%20height='16'%20fill='black'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M8.53516%201C4.66953%201%201.53516%204.13438%201.53516%208C1.53516%2011.8656%204.66953%2015%208.53516%2015C12.4008%2015%2015.5352%2011.8656%2015.5352%208C15.5352%204.13438%2012.4008%201%208.53516%201ZM8.03516%204.625C8.03516%204.55625%208.09141%204.5%208.16016%204.5H8.91016C8.97891%204.5%209.03516%204.55625%209.03516%204.625V8.875C9.03516%208.94375%208.97891%209%208.91016%209H8.16016C8.09141%209%208.03516%208.94375%208.03516%208.875V4.625ZM8.53516%2011.5C8.12109%2011.5%207.78516%2011.1641%207.78516%2010.75C7.78516%2010.3359%208.12109%2010%208.53516%2010C8.94922%2010%209.28516%2010.3359%209.28516%2010.75C9.28516%2011.1641%208.94922%2011.5%208.53516%2011.5Z'%20fill='%23FAAD14'/%3e%3c/svg%3e"}),S.jsx("span",{children:"提示"}),S.jsx("img",{src:"data:image/svg+xml,%3csvg%20width='17'%20height='16'%20viewBox='0%200%2017%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20opacity='0.01'%20x='16.5352'%20y='16'%20width='16'%20height='16'%20transform='rotate(-180%2016.5352%2016)'%20fill='black'/%3e%3cpath%20d='M4.75455%2010.7326L8.71709%206.43956L12.68%2010.7326C12.8843%2010.9541%2013.2295%2010.9679%2013.4509%2010.7636C13.6723%2010.5592%2013.6862%2010.2141%2013.4818%209.99265L9.11818%205.26537C9.01492%205.15344%208.86956%205.08977%208.71727%205.08977C8.56498%205.08977%208.41963%205.15344%208.31636%205.26537L3.95273%209.99265C3.74838%2010.2141%203.76222%2010.5592%203.98364%2010.7636C4.20505%2010.9679%204.5502%2010.9541%204.75455%2010.7326'%20fill='%23FAAD14'/%3e%3c/svg%3e",style:{transform:y?"rotate(0deg)":"rotate(180deg)"}})]}),y&&S.jsxs("div",{className:"video-player-interaction-content-tip-text",children:[S.jsx(pf,{defaultValue:null==(n=null==V?void 0:V[0])?void 0:n.description,readOnly:!0}),S.jsx("img",{src:"data:image/svg+xml,%3csvg%20width='32'%20height='32'%20viewBox='0%200%2032%2032'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clipPath='url(%23clip0_954_6949)'%3e%3cg%20filter='url(%23filter0_i_954_6949)'%3e%3cpath%20d='M26.9806%2012.2299L29.1814%2011.1896C29.9321%2013.1617%2030.1883%2015.2877%2029.9274%2017.3817C29.6665%2019.4757%2028.8965%2021.4739%2027.6848%2023.2015L25.6975%2021.81C26.6636%2020.4329%2027.2845%2018.8438%2027.5078%2017.1765C27.7311%2015.5092%2027.5503%2013.8127%2026.9806%2012.2299ZM17.053%205.27772C15.3709%205.28347%2013.7147%205.69355%2012.2243%206.47339C10.7338%207.25323%209.45264%208.37997%208.48881%209.75864L6.50399%208.36886C7.71308%206.63945%209.32747%205.23262%2011.206%204.27141C13.0845%203.31019%2015.1699%202.82387%2017.2798%202.85497L17.0554%205.2795L17.053%205.27772ZM12.325%2028.2294C12.0815%2028.5771%2011.772%2028.8734%2011.414%2029.1015C11.056%2029.3295%2010.6566%2029.4848%2010.2386%2029.5586C9.82061%2029.6323%209.39218%2029.6229%208.97778%2029.531C8.56339%2029.4392%208.17115%2029.2666%207.82346%2029.0231C7.47577%2028.7796%207.17943%2028.4701%206.95138%2028.1121C6.72332%2027.7541%206.56801%2027.3547%206.49431%2026.9367C6.34546%2026.0925%206.53806%2025.2237%207.02975%2024.5216L12.325%2028.2294ZM23.7127%2020.4202L20.9314%2024.3923L20.2555%2028.9549C20.2148%2029.2272%2020.1052%2029.4845%2019.9371%2029.7026C19.769%2029.9206%2019.548%2030.0921%2019.295%2030.2008C19.042%2030.3094%2018.7655%2030.3516%2018.4916%2030.3234C18.2178%2030.2952%2017.9556%2030.1974%2017.7301%2030.0395L3.48051%2020.0642C3.25433%2019.9064%203.07227%2019.6935%202.95167%2019.4455C2.83107%2019.1975%202.77592%2018.9228%202.79149%2018.6475C2.80706%2018.3721%202.89282%2018.1054%203.04062%2017.8726C3.18841%2017.6398%203.39332%2017.4487%203.63584%2017.3174L7.69207%2015.1218L10.4747%2011.15C11.3766%209.86202%2012.6346%208.8651%2014.0946%208.28134C15.5545%207.69757%2017.153%207.55231%2018.6943%207.86334L19.0811%207.31281C19.3203%206.95534%2019.6285%206.64922%2019.9876%206.41239C20.3467%206.17556%2020.7494%206.01279%2021.1722%205.93362C21.595%205.85444%2022.0293%205.86046%2022.4498%205.95132C22.8702%206.04217%2023.2683%206.21604%2023.6206%206.46273C23.973%206.70941%2024.2726%207.02396%2024.5018%207.38792C24.7311%207.75188%2024.8854%208.15794%2024.9557%208.5823C25.0259%209.00666%2025.0108%209.44078%2024.9111%209.85922C24.8115%2010.2777%2024.6293%2010.672%2024.3753%2011.0191L23.9911%2011.5701C24.811%2012.9126%2025.2214%2014.4651%2025.1719%2016.0374C25.1224%2017.6096%2024.6152%2019.1333%2023.7125%2020.4215L23.7127%2020.4202Z'%20fill='%23FFCC33'%20fill-opacity='0.15'/%3e%3c/g%3e%3cpath%20d='M21.3721%2019.6161C22.2185%2018.4077%2022.6941%2016.9787%2022.7405%2015.5041C22.787%2014.0291%2022.402%2012.5726%2021.6328%2011.3131L21.4625%2011.0344L21.6493%2010.7665L22.0335%2010.2156L22.04%2010.2062L22.0401%2010.2062C22.2549%209.91283%2022.4089%209.5795%2022.4931%209.2258C22.5774%208.87209%2022.5901%208.50513%2022.5307%208.14642C22.4713%207.78771%2022.3409%207.44447%2022.1471%207.13681C21.9534%206.82916%2021.7001%206.56327%2021.4023%206.35475C21.1044%206.14623%2020.7679%205.99926%2020.4125%205.92246C20.0571%205.84566%2019.69%205.84057%2019.3326%205.9075C18.9752%205.97442%2018.6348%206.11201%2018.3313%206.3122C18.0277%206.51239%2017.7672%206.77116%2017.565%207.07333L17.5587%207.08276L17.5586%207.08268L17.1718%207.63321L16.984%207.9005L16.6638%207.83588C15.2178%207.54409%2013.7182%207.68037%2012.3486%208.22802C10.9789%208.77567%209.79875%209.71092%208.95263%2010.9192L8.95257%2010.9193L6.16993%2014.8911L6.10222%2014.9877L5.99845%2015.0439L1.94222%2017.2396L1.94216%2017.2396C1.77467%2017.3302%201.63316%2017.4622%201.5311%2017.623C1.42903%2017.7838%201.36981%2017.968%201.35905%2018.1581C1.3483%2018.3482%201.38638%2018.538%201.46967%2018.7092C1.55296%2018.8805%201.67869%2019.0276%201.83489%2019.1365L1.83562%2019.137L16.0852%2029.1123L16.0854%2029.1124C16.2411%2029.2215%2016.4221%2029.289%2016.6112%2029.3084C16.8004%2029.3279%2016.9913%2029.2988%2017.166%2029.2238C17.3407%2029.1487%2017.4934%2029.0303%2017.6095%2028.8797C17.7254%2028.7293%2017.8011%2028.5518%2017.8293%2028.364L21.3721%2019.6161ZM21.3721%2019.6161L21.3715%2019.6158L18.5902%2023.5879L18.5225%2023.6846L18.5052%2023.8014L17.8294%2028.3634L21.3721%2019.6161ZM14.7994%202.84116L14.6671%204.27101C13.0611%204.34269%2011.4885%204.76584%2010.0608%205.51279C8.64735%206.25234%207.41357%207.28968%206.44341%208.55102L5.27665%207.73406C6.40133%206.25582%207.84479%205.04697%209.50211%204.19894C11.147%203.35725%2012.957%202.89436%2014.7994%202.84116ZM26.0717%2016.7253C26.2855%2015.1291%2026.1457%2013.5074%2025.6647%2011.9743L26.964%2011.3601C27.5441%2013.1097%2027.728%2014.9688%2027.4996%2016.8023C27.2694%2018.6498%2026.627%2020.4196%2025.6224%2021.982L24.4533%2021.1634C25.3069%2019.8204%2025.86%2018.3064%2026.0717%2016.7253ZM5.05507%2026.3323C4.95858%2025.7851%205.03183%2025.2256%205.25868%2024.7268L9.6592%2027.8081C9.52376%2027.941%209.37452%2028.0598%209.21372%2028.1622C8.91111%2028.355%208.5735%2028.4863%208.22015%2028.5486C7.86681%2028.6109%207.50466%2028.603%207.15437%2028.5253C6.80408%2028.4476%206.47252%2028.3017%206.17861%2028.096C5.88471%2027.8902%205.63421%2027.6285%205.44143%2027.3259C5.24866%2027.0233%205.11737%2026.6857%205.05507%2026.3323Z'%20stroke='%23FAA600'%20stroke-opacity='0.4'/%3e%3c/g%3e%3cdefs%3e%3cfilter%20id='filter0_i_954_6949'%20x='2.78906'%20y='2.85352'%20width='27.2373'%20height='27.4785'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='BackgroundImageFix'%20result='shape'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'%20result='hardAlpha'/%3e%3cfeOffset%20dx='-2'%20dy='2'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='arithmetic'%20k2='-1'%20k3='1'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%200.96%200%200%200%200%200.832%200%200%200%200%200.576%200%200%200%200.3%200'/%3e%3cfeBlend%20mode='normal'%20in2='shape'%20result='effect1_innerShadow_954_6949'/%3e%3c/filter%3e%3cclipPath%20id='clip0_954_6949'%3e%3crect%20width='32'%20height='32'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e"})]})]}),a&&S.jsx("div",{className:"video-player-interaction-content-actions",children:S.jsx(r.Button,{type:"primary",onClick:()=>F(),children:o||(void 0===w?"提交":"下一题")})})]})})})};var yf={exports:{}},Sf={exports:{}};"undefined"!=typeof self&&self,Sf.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return{}.hasOwnProperty.call(e,t)},r.p="",r(r.s=0)}([function(e,t,r){function n(e){return"[object RegExp]"==={}.toString.call(e)}r.r(t),r.d(t,"Promise",function(){return W}),r.d(t,"TYPES",function(){return Qe}),r.d(t,"ProxyWindow",function(){return Ue}),r.d(t,"setup",function(){return He}),r.d(t,"destroy",function(){return Ye}),r.d(t,"serializeMessage",function(){return Me}),r.d(t,"deserializeMessage",function(){return ze}),r.d(t,"createProxyWindow",function(){return Ge}),r.d(t,"toProxyWindow",function(){return Ze}),r.d(t,"on",function(){return De}),r.d(t,"once",function(){return Xe}),r.d(t,"send",function(){return je}),r.d(t,"markWindowKnown",function(){return qe}),r.d(t,"cleanUpWindow",function(){return Je}),r.d(t,"bridge",function(){});var i="Call was rejected by callee.\r\n";function a(e){return void 0===e&&(e=window),e.location.protocol}function o(e){if(void 0===e&&(e=window),e.mockDomain){var t=e.mockDomain.split("//")[0];if(t)return t}return a(e)}function s(e){return void 0===e&&(e=window),"about:"===o(e)}function l(e){if(void 0===e&&(e=window),e)try{if(e.parent&&e.parent!==e)return e.parent}catch(t){}}function c(e){if(void 0===e&&(e=window),e&&!l(e))try{return e.opener}catch(t){}}function u(e){try{return!0}catch(t){}return!1}function d(e){void 0===e&&(e=window);var t=e.location;if(!t)throw new Error("Can not read window location");var r=a(e);if(!r)throw new Error("Can not read window protocol");if("file:"===r)return"file://";if("about:"===r){var n=l(e);return n&&u()?d(n):"about://"}var i=t.host;if(!i)throw new Error("Can not read window host");return r+"//"+i}function p(e){void 0===e&&(e=window);var t=d(e);return t&&e.mockDomain&&0===e.mockDomain.indexOf("mock:")?e.mockDomain:t}function h(e){if(!function(e){try{if(e===window)return!0}catch(n){}try{var t=Object.getOwnPropertyDescriptor(e,"location");if(t&&!1===t.enumerable)return!1}catch(n){}try{if(s(e)&&u())return!0}catch(n){}try{if(void 0===(r=e)&&(r=window),"mock:"===o(r)&&u())return!0}catch(n){}var r;try{if(d(e)===d(window))return!0}catch(n){}return!1}(e))return!1;try{if(e===window)return!0;if(s(e)&&u())return!0;if(p(window)===p(e))return!0}catch(t){}return!1}function q(e){if(!h(e))throw new Error("Expected window to be same domain");return e}function f(e,t){if(!e||!t)return!1;var r=l(t);return r?r===e:-1!==function(e){var t=[];try{for(;e.parent!==e;)t.push(e.parent),e=e.parent}catch(r){}return t}(t).indexOf(e)}function m(e){var t,r,n=[];try{t=e.frames}catch(l){t=e}try{r=t.length}catch(l){}if(0===r)return n;if(r){for(var i=0;i<r;i++){var a=void 0;try{a=t[i]}catch(l){continue}n.push(a)}return n}for(var o=0;o<100;o++){var s=void 0;try{s=t[o]}catch(l){return n}if(!s)return n;n.push(s)}return n}var V=[],g=[];function v(e,t){void 0===t&&(t=!0);try{if(e===window)return!1}catch(a){return!0}try{if(!e)return!0}catch(a){return!0}try{if(e.closed)return!0}catch(a){return!a||a.message!==i}if(t&&h(e))try{if(e.mockclosed)return!0}catch(a){}try{if(!e.parent||!e.top)return!0}catch(a){}var r=function(e,t){for(var r=0;r<e.length;r++)try{if(e[r]===t)return r}catch(a){}return-1}(V,e);if(-1!==r){var n=g[r];if(n&&function(e){if(!e.contentWindow)return!0;if(!e.parentNode)return!0;var t=e.ownerDocument;if(t&&t.documentElement&&!t.documentElement.contains(e)){for(var r=e;r.parentNode&&r.parentNode!==r;)r=r.parentNode;if(!r.host||!t.documentElement.contains(r.host))return!0}return!1}(n))return!0}return!1}function b(e){return void 0===e&&(e=window),c(e=e||window)||l(e)||void 0}function y(e,t){if("string"==typeof e){if("string"==typeof t)return"*"===e||t===e;if(n(t))return!1;if(Array.isArray(t))return!1}return n(e)?n(t)?e.toString()===t.toString():!Array.isArray(t)&&Boolean(t.match(e)):!!Array.isArray(e)&&(Array.isArray(t)?JSON.stringify(e)===JSON.stringify(t):!n(t)&&e.some(function(e){return y(e,t)}))}function S(e){try{if(e===window)return!0}catch(t){if(t&&t.message===i)return!0}try{if("[object Window]"==={}.toString.call(e))return!0}catch(t){if(t&&t.message===i)return!0}try{if(window.Window&&e instanceof window.Window)return!0}catch(t){if(t&&t.message===i)return!0}try{if(e&&e.self===e)return!0}catch(t){if(t&&t.message===i)return!0}try{if(e&&e.parent===e)return!0}catch(t){if(t&&t.message===i)return!0}try{if(e&&e.top===e)return!0}catch(t){if(t&&t.message===i)return!0}try{if(e&&"__unlikely_value__"===e.__cross_domain_utils_window_check__)return!1}catch(t){return!0}try{if("postMessage"in e&&"self"in e&&"location"in e)return!0}catch(t){}return!1}function A(e){if(h(e))return q(e).frameElement;for(var t=0,r=document.querySelectorAll("iframe");t<r.length;t++){var n=r[t];if(n&&n.contentWindow&&n.contentWindow===e)return n}}function w(e){if(void 0===(r=e)&&(r=window),Boolean(l(r))){var t=A(e);if(t&&t.parentElement)return void t.parentElement.removeChild(t)}var r;try{e.close()}catch(n){}}function U(e){try{if(!e)return!1;if("undefined"!=typeof Promise&&e instanceof Promise)return!0;if("undefined"!=typeof window&&"function"==typeof window.Window&&e instanceof window.Window)return!1;if("undefined"!=typeof window&&"function"==typeof window.constructor&&e instanceof window.constructor)return!1;var t={}.toString;if(t){var r=t.call(e);if("[object Window]"===r||"[object global]"===r||"[object DOMWindow]"===r)return!1}if("function"==typeof e.then)return!0}catch(n){return!1}return!1}var x,C=[],R=[],E=0;function T(){if(!E&&x){var e=x;x=null,e.resolve()}}function k(){E+=1}function F(){E-=1,T()}var W=function(){function e(e){var t=this;if(this.resolved=void 0,this.rejected=void 0,this.errorHandled=void 0,this.value=void 0,this.error=void 0,this.handlers=void 0,this.dispatching=void 0,this.stack=void 0,this.resolved=!1,this.rejected=!1,this.errorHandled=!1,this.handlers=[],e){var r,n,i=!1,a=!1,o=!1;k();try{e(function(e){o?t.resolve(e):(i=!0,r=e)},function(e){o?t.reject(e):(a=!0,n=e)})}catch(s){return F(),void this.reject(s)}F(),o=!0,i?this.resolve(r):a&&this.reject(n)}}var t=e.prototype;return t.resolve=function(e){if(this.resolved||this.rejected)return this;if(U(e))throw new Error("Can not resolve promise with another promise");return this.resolved=!0,this.value=e,this.dispatch(),this},t.reject=function(e){var t=this;if(this.resolved||this.rejected)return this;if(U(e))throw new Error("Can not reject promise with another promise");if(!e){var r=e&&"function"==typeof e.toString?e.toString():{}.toString.call(e);e=new Error("Expected reject to be called with Error, got "+r)}return this.rejected=!0,this.error=e,this.errorHandled||setTimeout(function(){t.errorHandled||function(e,t){if(-1===C.indexOf(e)){C.push(e),setTimeout(function(){throw e},1);for(var r=0;r<R.length;r++)R[r](e,t)}}(e,t)},1),this.dispatch(),this},t.asyncReject=function(e){return this.errorHandled=!0,this.reject(e),this},t.dispatch=function(){var t=this.resolved,r=this.rejected,n=this.handlers;if(!this.dispatching&&(t||r)){this.dispatching=!0,k();for(var i=function(e,t){return e.then(function(e){t.resolve(e)},function(e){t.reject(e)})},a=0;a<n.length;a++){var o=n[a],s=o.onSuccess,l=o.onError,c=o.promise,u=void 0;if(t)try{u=s?s(this.value):this.value}catch(p){c.reject(p);continue}else if(r){if(!l){c.reject(this.error);continue}try{u=l(this.error)}catch(p){c.reject(p);continue}}if(u instanceof e&&(u.resolved||u.rejected)){var d=u;d.resolved?c.resolve(d.value):c.reject(d.error),d.errorHandled=!0}else U(u)?u instanceof e&&(u.resolved||u.rejected)?u.resolved?c.resolve(u.value):c.reject(u.error):i(u,c):c.resolve(u)}n.length=0,this.dispatching=!1,F()}},t.then=function(t,r){if(t&&"function"!=typeof t&&!t.call)throw new Error("Promise.then expected a function for success handler");if(r&&"function"!=typeof r&&!r.call)throw new Error("Promise.then expected a function for error handler");var n=new e;return this.handlers.push({promise:n,onSuccess:t,onError:r}),this.errorHandled=!0,this.dispatch(),n},t.catch=function(e){return this.then(void 0,e)},t.finally=function(t){if(t&&"function"!=typeof t&&!t.call)throw new Error("Promise.finally expected a function");return this.then(function(r){return e.try(t).then(function(){return r})},function(r){return e.try(t).then(function(){throw r})})},t.timeout=function(e,t){var r=this;if(this.resolved||this.rejected)return this;var n=setTimeout(function(){r.resolved||r.rejected||r.reject(t||new Error("Promise timed out after "+e+"ms"))},e);return this.then(function(e){return clearTimeout(n),e})},t.toPromise=function(){if("undefined"==typeof Promise)throw new TypeError("Could not find Promise");return Promise.resolve(this)},t.lazy=function(){return this.errorHandled=!0,this},e.resolve=function(t){return t instanceof e?t:U(t)?new e(function(e,r){return t.then(e,r)}):(new e).resolve(t)},e.reject=function(t){return(new e).reject(t)},e.asyncReject=function(t){return(new e).asyncReject(t)},e.all=function(t){var r=new e,n=t.length,i=[].slice();if(!n)return r.resolve(i),r;for(var a=function(e,t,a){return t.then(function(t){i[e]=t,0==(n-=1)&&r.resolve(i)},function(e){a.reject(e)})},o=0;o<t.length;o++){var s=t[o];if(s instanceof e){if(s.resolved){i[o]=s.value,n-=1;continue}}else if(!U(s)){i[o]=s,n-=1;continue}a(o,e.resolve(s),r)}return 0===n&&r.resolve(i),r},e.hash=function(t){var r={},n=[],i=function(e){if(t.hasOwnProperty(e)){var i=t[e];U(i)?n.push(i.then(function(t){r[e]=t})):r[e]=i}};for(var a in t)i(a);return e.all(n).then(function(){return r})},e.map=function(t,r){return e.all(t.map(r))},e.onPossiblyUnhandledException=function(e){return t=e,R.push(t),{cancel:function(){R.splice(R.indexOf(t),1)}};var t},e.try=function(t,r,n){if(t&&"function"!=typeof t&&!t.call)throw new Error("Promise.try expected a function");var i;k();try{i=t.apply(r,n||[])}catch(a){return F(),e.reject(a)}return F(),e.resolve(i)},e.delay=function(t){return new e(function(e){setTimeout(e,t)})},e.isPromise=function(t){return!!(t&&t instanceof e)||U(t)},e.flush=function(){return t=x=x||new e,T(),t;var t},e}();function N(e,t){for(var r=0;r<e.length;r++)try{if(e[r]===t)return r}catch(n){}return-1}var K,O=function(){function e(){if(this.name=void 0,this.weakmap=void 0,this.keys=void 0,this.values=void 0,this.name="__weakmap_"+(1e9*Math.random()>>>0)+"__",function(){if("undefined"==typeof WeakMap)return!1;if(void 0===Object.freeze)return!1;try{var e=new WeakMap,t={};return Object.freeze(t),e.set(t,"__testvalue__"),"__testvalue__"===e.get(t)}catch(r){return!1}}())try{this.weakmap=new WeakMap}catch(e){}this.keys=[],this.values=[]}var t=e.prototype;return t._cleanupClosedWindows=function(){for(var e=this.weakmap,t=this.keys,r=0;r<t.length;r++){var n=t[r];if(S(n)&&v(n)){if(e)try{e.delete(n)}catch(i){}t.splice(r,1),this.values.splice(r,1),r-=1}}},t.isSafeToReadWrite=function(e){return!S(e)},t.set=function(e,t){if(!e)throw new Error("WeakMap expected key");var r=this.weakmap;if(r)try{r.set(e,t)}catch(l){delete this.weakmap}if(this.isSafeToReadWrite(e))try{var n=this.name,i=e[n];return void(i&&i[0]===e?i[1]=t:Object.defineProperty(e,n,{value:[e,t],writable:!0}))}catch(l){}this._cleanupClosedWindows();var a=this.keys,o=this.values,s=N(a,e);-1===s?(a.push(e),o.push(t)):o[s]=t},t.get=function(e){if(!e)throw new Error("WeakMap expected key");var t=this.weakmap;if(t)try{if(t.has(e))return t.get(e)}catch(i){delete this.weakmap}if(this.isSafeToReadWrite(e))try{var r=e[this.name];return r&&r[0]===e?r[1]:void 0}catch(i){}this._cleanupClosedWindows();var n=N(this.keys,e);if(-1!==n)return this.values[n]},t.delete=function(e){if(!e)throw new Error("WeakMap expected key");var t=this.weakmap;if(t)try{t.delete(e)}catch(a){delete this.weakmap}if(this.isSafeToReadWrite(e))try{var r=e[this.name];r&&r[0]===e&&(r[0]=r[1]=void 0)}catch(a){}this._cleanupClosedWindows();var n=this.keys,i=N(n,e);-1!==i&&(n.splice(i,1),this.values.splice(i,1))},t.has=function(e){if(!e)throw new Error("WeakMap expected key");var t=this.weakmap;if(t)try{if(t.has(e))return!0}catch(n){delete this.weakmap}if(this.isSafeToReadWrite(e))try{var r=e[this.name];return!(!r||r[0]!==e)}catch(n){}return this._cleanupClosedWindows(),-1!==N(this.keys,e)},t.getOrSet=function(e,t){if(this.has(e))return this.get(e);var r=t();return this.set(e,r),r},e}();function P(e){return e.name||e.__name__||e.displayName||"anonymous"}function I(e,t){try{delete e.name,e.name=t}catch(r){}return e.__name__=e.displayName=t,e}function L(){var e="0123456789abcdef";return"uid_"+"xxxxxxxxxx".replace(/./g,function(){return e.charAt(Math.floor(16*Math.random()))})+"_"+function(e){if("function"==typeof btoa)return btoa(encodeURIComponent(e).replace(/%([0-9A-F]{2})/g,function(e,t){return String.fromCharCode(parseInt(t,16))})).replace(/[=]/g,"");if("undefined"!=typeof Buffer)return Buffer.from(e,"utf8").toString("base64").replace(/[=]/g,"");throw new Error("Can not find window.btoa or Buffer")}((new Date).toISOString().slice(11,19).replace("T",".")).replace(/[^a-zA-Z0-9]/g,"").toLowerCase()}function B(e){try{return JSON.stringify([].slice.call(e),function(e,t){return"function"==typeof t?"memoize["+function(e){if(K=K||new O,null==e||"object"!=typeof e&&"function"!=typeof e)throw new Error("Invalid object");var t=K.get(e);return t||(t=typeof e+":"+L(),K.set(e,t)),t}(t)+"]":"undefined"!=typeof window&&t instanceof window.Element||null!==t&&"object"==typeof t&&1===t.nodeType&&"object"==typeof t.style&&"object"==typeof t.ownerDocument?{}:t})}catch(t){throw new Error("Arguments not serializable -- can not be used to memoize")}}function D(){return{}}var X=0,j=0;function M(e,t){void 0===t&&(t={});var r,n,i=t.thisNamespace,a=void 0!==i&&i,o=t.time,s=X;X+=1;var l=function(){for(var t=arguments.length,i=new Array(t),l=0;l<t;l++)i[l]=arguments[l];var c,u;s<j&&(r=null,n=null,s=X,X+=1),c=a?(n=n||new O).getOrSet(this,D):r=r||{};try{u=B(i)}catch(q){return e.apply(this,arguments)}var d=c[u];if(d&&o&&Date.now()-d.time<o&&(delete c[u],d=null),d)return d.value;var p=Date.now(),h=e.apply(this,arguments);return c[u]={time:p,value:h},h};return l.reset=function(){r=null,n=null},I(l,(t.name||P(e))+"::memoized")}function z(e){var t={};function r(){for(var r=arguments,n=this,i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];var s=B(a);return t.hasOwnProperty(s)||(t[s]=W.try(function(){return e.apply(n,r)}).finally(function(){delete t[s]})),t[s]}return r.reset=function(){t={}},I(r,P(e)+"::promiseMemoized")}function G(){}function Z(e,t){if(void 0===t&&(t=1),t>=3)return"stringifyError stack overflow";try{if(!e)return"<unknown error: "+{}.toString.call(e)+">";if("string"==typeof e)return e;if(e instanceof Error){var r=e&&e.stack,n=e&&e.message;if(r&&n)return-1!==r.indexOf(n)?r:n+"\n"+r;if(r)return r;if(n)return n}return e&&e.toString&&"function"==typeof e.toString?e.toString():{}.toString.call(e)}catch(i){return"Error while stringifying error: "+Z(i,t+1)}}function H(e){return"string"==typeof e?e:e.toString&&"function"==typeof e.toString?e.toString():{}.toString.call(e)}function Y(e){return"[object RegExp]"==={}.toString.call(e)}function Q(e,t,r){if(e.hasOwnProperty(t))return e[t];var n=r();return e[t]=n,n}function J(){var e=document.body;if(!e)throw new Error("Body element not found");return e}function _(){return Boolean(document.body)&&"complete"===document.readyState}function $(){return Boolean(document.body)&&"interactive"===document.readyState}M.clear=function(){j=X},M(function(e){if(Object.values)return Object.values(e);var t=[];for(var r in e)e.hasOwnProperty(r)&&t.push(e[r]);return t}),M(function(){return new W(function(e){if(_()||$())return e();var t=setInterval(function(){if(_()||$())return clearInterval(t),e()},10)})});var ee="undefined"!=typeof document?document.currentScript:null,te=M(function(){if(ee)return ee;if(ee=function(){try{var e=function(){try{throw new Error("_")}catch(e){return e.stack||""}}(),t=/.*at [^(]*\((.*):(.+):(.+)\)$/gi.exec(e),r=t&&t[1];if(!r)return;for(var n=0,i=[].slice.call(document.getElementsByTagName("script")).reverse();n<i.length;n++){var a=i[n];if(a.src&&a.src===r)return a}}catch(o){}}())return ee;throw new Error("Can not determine current script")}),re=L();function ne(e){void 0===e&&(e=window);var t="__post_robot_10_0_46__";return e!==window?e[t]:e[t]=e[t]||{}}M(function(){var e;try{e=te()}catch(n){return re}var t=e.getAttribute("data-uid");if(t&&"string"==typeof t)return t;if((t=e.getAttribute("data-uid-auto"))&&"string"==typeof t)return t;if(e.src){var r=function(e){for(var t="",r=0;r<e.length;r++){var n=e[r].charCodeAt(0)*r;e[r+1]&&(n+=e[r+1].charCodeAt(0)*(r-1)),t+=String.fromCharCode(97+Math.abs(n)%26)}return t}(JSON.stringify({src:e.src,dataset:e.dataset}));t="uid_"+r.slice(r.length-30)}else t=L();return e.setAttribute("data-uid-auto",t),t});var ie=function(){return{}};function ae(e,t){return void 0===e&&(e="store"),void 0===t&&(t=ie),Q(ne(),e,function(){var e=t();return{has:function(t){return e.hasOwnProperty(t)},get:function(t,r){return e.hasOwnProperty(t)?e[t]:r},set:function(t,r){return e[t]=r,r},del:function(t){delete e[t]},getOrSet:function(t,r){return Q(e,t,r)},reset:function(){e=t()},keys:function(){return Object.keys(e)}}})}var oe,se=function(){};function le(){var e=ne();return e.WINDOW_WILDCARD=e.WINDOW_WILDCARD||new se,e.WINDOW_WILDCARD}function ce(e,t){return void 0===e&&(e="store"),void 0===t&&(t=ie),ae("windowStore").getOrSet(e,function(){var r=new O,n=function(e){return r.getOrSet(e,t)};return{has:function(t){return n(t).hasOwnProperty(e)},get:function(t,r){var i=n(t);return i.hasOwnProperty(e)?i[e]:r},set:function(t,r){return n(t)[e]=r,r},del:function(t){delete n(t)[e]},getOrSet:function(t,r){return Q(n(t),e,r)}}})}function ue(){return ae("instance").getOrSet("instanceID",L)}function de(e,t){var r=t.domain,n=ce("helloPromises"),i=n.get(e);i&&i.resolve({domain:r});var a=W.resolve({domain:r});return n.set(e,a),a}function pe(e,t){return(0,t.send)(e,"postrobot_hello",{instanceID:ue()},{domain:"*",timeout:-1}).then(function(t){var r=t.origin,n=t.data.instanceID;return de(e,{domain:r}),{win:e,domain:r,instanceID:n}})}function he(e,t){var r=t.send;return ce("windowInstanceIDPromises").getOrSet(e,function(){return pe(e,{send:r}).then(function(e){return e.instanceID})})}function qe(e){ce("knownWindows").set(e,!0)}function fe(e){return"object"==typeof e&&null!==e&&"string"==typeof e.__type__}function me(e){return void 0===e?"undefined":null===e?"null":Array.isArray(e)?"array":"function"==typeof e?"function":"object"==typeof e?e instanceof Error?"error":"function"==typeof e.then?"promise":"[object RegExp]"==={}.toString.call(e)?"regex":"[object Date]"==={}.toString.call(e)?"date":"object":"string"==typeof e?"string":"number"==typeof e?"number":"boolean"==typeof e?"boolean":void 0}function Ve(e,t){return{__type__:e,__val__:t}}var ge,ve=((oe={}).function=function(){},oe.error=function(e){return Ve("error",{message:e.message,stack:e.stack,code:e.code,data:e.data})},oe.promise=function(){},oe.regex=function(e){return Ve("regex",e.source)},oe.date=function(e){return Ve("date",e.toJSON())},oe.array=function(e){return e},oe.object=function(e){return e},oe.string=function(e){return e},oe.number=function(e){return e},oe.boolean=function(e){return e},oe.null=function(e){return e},oe[void 0]=function(e){return Ve("undefined",e)},oe),be={},ye=((ge={}).function=function(){throw new Error("Function serialization is not implemented; nothing to deserialize")},ge.error=function(e){var t=e.stack,r=e.code,n=e.data,i=new Error(e.message);return i.code=r,n&&(i.data=n),i.stack=t+"\n\n"+i.stack,i},ge.promise=function(){throw new Error("Promise serialization is not implemented; nothing to deserialize")},ge.regex=function(e){return new RegExp(e)},ge.date=function(e){return new Date(e)},ge.array=function(e){return e},ge.object=function(e){return e},ge.string=function(e){return e},ge.number=function(e){return e},ge.boolean=function(e){return e},ge.null=function(e){return e},ge[void 0]=function(){},ge),Se={};function Ae(){for(var e=ae("idToProxyWindow"),t=0,r=e.keys();t<r.length;t++){var n=r[t];e.get(n).shouldClean()&&e.del(n)}}function we(e,t){var r=t.send,n=t.id,i=void 0===n?L():n,a=e.then(function(e){if(h(e))return q(e).name}),o=e.then(function(e){if(v(e))throw new Error("Window is closed, can not determine type");return c(e)?"popup":"iframe"});a.catch(G),o.catch(G);var s=function(){return e.then(function(e){if(!v(e))return h(e)?q(e).name:a})};return{id:i,getType:function(){return o},getInstanceID:z(function(){return e.then(function(e){return he(e,{send:r})})}),close:function(){return e.then(w)},getName:s,focus:function(){return e.then(function(e){e.focus()})},isClosed:function(){return e.then(function(e){return v(e)})},setLocation:function(t,r){return void 0===r&&(r={}),e.then(function(e){var n=window.location.protocol+"//"+window.location.host,i=r.method,a=void 0===i?"get":i,o=r.body;if(0===t.indexOf("/"))t=""+n+t;else if(!t.match(/^https?:\/\//)&&0!==t.indexOf(n))throw new Error("Expected url to be http or https url, or absolute path, got "+JSON.stringify(t));if("post"===a)return s().then(function(e){if(!e)throw new Error("Can not post to window without target name");!function(e){var t=e.url,r=e.target,n=e.body,i=e.method,a=void 0===i?"post":i,o=document.createElement("form");if(o.setAttribute("target",r),o.setAttribute("method",a),o.setAttribute("action",t),o.style.display="none",n)for(var s=0,l=Object.keys(n);s<l.length;s++){var c,u=l[s],d=document.createElement("input");d.setAttribute("name",u),d.setAttribute("value",null==(c=n[u])?void 0:c.toString()),o.appendChild(d)}J().appendChild(o),o.submit(),J().removeChild(o)}({url:t,target:e,method:a,body:o})});if("get"!==a)throw new Error("Unsupported method: "+a);if(h(e))try{if(e.location&&"function"==typeof e.location.replace)return void e.location.replace(t)}catch(l){}e.location=t})},setName:function(t){return e.then(function(e){var r=h(e),n=A(e);if(!r)throw new Error("Can not set name for cross-domain window: "+t);q(e).name=t,n&&n.setAttribute("name",t),a=W.resolve(t)})}}}new W(function(e){if(window.document&&window.document.body)return e(window.document.body);var t=setInterval(function(){if(window.document&&window.document.body)return clearInterval(t),e(window.document.body)},10)});var Ue=function(){function e(e){var t=e.send,r=e.win,n=e.serializedWindow;this.id=void 0,this.isProxyWindow=!0,this.serializedWindow=void 0,this.actualWindow=void 0,this.actualWindowPromise=void 0,this.send=void 0,this.name=void 0,this.actualWindowPromise=new W,this.serializedWindow=n||we(this.actualWindowPromise,{send:t}),ae("idToProxyWindow").set(this.getID(),this),r&&this.setWindow(r,{send:t})}var t=e.prototype;return t.getID=function(){return this.serializedWindow.id},t.getType=function(){return this.serializedWindow.getType()},t.isPopup=function(){return this.getType().then(function(e){return"popup"===e})},t.setLocation=function(e,t){var r=this;return this.serializedWindow.setLocation(e,t).then(function(){return r})},t.getName=function(){return this.serializedWindow.getName()},t.setName=function(e){var t=this;return this.serializedWindow.setName(e).then(function(){return t})},t.close=function(){var e=this;return this.serializedWindow.close().then(function(){return e})},t.focus=function(){var e=this,t=this.isPopup(),r=this.getName(),n=W.hash({isPopup:t,name:r}).then(function(e){var t=e.name;e.isPopup&&t&&window.open("",t,"noopener")}),i=this.serializedWindow.focus();return W.all([n,i]).then(function(){return e})},t.isClosed=function(){return this.serializedWindow.isClosed()},t.getWindow=function(){return this.actualWindow},t.setWindow=function(e,t){var r=t.send;this.actualWindow=e,this.actualWindowPromise.resolve(this.actualWindow),this.serializedWindow=we(this.actualWindowPromise,{send:r,id:this.getID()}),ce("winToProxyWindow").set(e,this)},t.awaitWindow=function(){return this.actualWindowPromise},t.matchWindow=function(e,t){var r=this,n=t.send;return W.try(function(){return r.actualWindow?e===r.actualWindow:W.hash({proxyInstanceID:r.getInstanceID(),knownWindowInstanceID:he(e,{send:n})}).then(function(t){var i=t.proxyInstanceID===t.knownWindowInstanceID;return i&&r.setWindow(e,{send:n}),i})})},t.unwrap=function(){return this.actualWindow||this},t.getInstanceID=function(){return this.serializedWindow.getInstanceID()},t.shouldClean=function(){return Boolean(this.actualWindow&&v(this.actualWindow))},t.serialize=function(){return this.serializedWindow},e.unwrap=function(t){return e.isProxyWindow(t)?t.unwrap():t},e.serialize=function(t,r){var n=r.send;return Ae(),e.toProxyWindow(t,{send:n}).serialize()},e.deserialize=function(t,r){var n=r.send;return Ae(),ae("idToProxyWindow").get(t.id)||new e({serializedWindow:t,send:n})},e.isProxyWindow=function(e){return Boolean(e&&!S(e)&&e.isProxyWindow)},e.toProxyWindow=function(t,r){var n=r.send;if(Ae(),e.isProxyWindow(t))return t;var i=t;return ce("winToProxyWindow").get(i)||new e({win:i,send:n})},e}();function xe(e,t,r,n,i){var a=ce("methodStore"),o=ae("proxyWindowMethods");Ue.isProxyWindow(n)?o.set(e,{val:t,name:r,domain:i,source:n}):(o.del(e),a.getOrSet(n,function(){return{}})[e]={domain:i,name:r,val:t,source:n})}function Ce(e,t){var r=ce("methodStore"),n=ae("proxyWindowMethods");return r.getOrSet(e,function(){return{}})[t]||n.get(t)}function Re(e,t,r,n,i){var a,o,s;o=(a={on:i.on,send:i.send}).on,s=a.send,ae("builtinListeners").getOrSet("functionCalls",function(){return o("postrobot_method",{domain:"*"},function(e){var t=e.source,r=e.origin,n=e.data,i=n.id,a=n.name,o=Ce(t,i);if(!o)throw new Error("Could not find method '"+a+"' with id: "+n.id+" in "+p(window));var l=o.source,c=o.domain,u=o.val;return W.try(function(){if(!y(c,r))throw new Error("Method '"+n.name+"' domain "+JSON.stringify(Y(o.domain)?o.domain.source:o.domain)+" does not match origin "+r+" in "+p(window));if(Ue.isProxyWindow(l))return l.matchWindow(t,{send:s}).then(function(e){if(!e)throw new Error("Method call '"+n.name+"' failed - proxy window does not match source in "+p(window))})}).then(function(){return u.apply({source:t,origin:r},n.args)},function(e){return W.try(function(){if(u.onError)return u.onError(e)}).then(function(){var t,r;throw e.stack&&(e.stack="Remote call to "+a+"("+(void 0===(t=n.args)&&(t=[]),(r=t,[].slice.call(r)).map(function(e){return"string"==typeof e?"'"+e+"'":void 0===e?"undefined":null===e?"null":"boolean"==typeof e?e.toString():Array.isArray(e)?"[ ... ]":"object"==typeof e?"{ ... }":"function"==typeof e?"() => { ... }":"<"+typeof e+">"}).join(", ")+") failed\n\n")+e.stack),e})}).then(function(e){return{result:e,id:i,name:a}})})});var l=r.__id__||L();e=Ue.unwrap(e);var c=r.__name__||r.name||n;return"string"==typeof c&&"function"==typeof c.indexOf&&0===c.indexOf("anonymous::")&&(c=c.replace("anonymous::",n+"::")),Ue.isProxyWindow(e)?(xe(l,r,c,e,t),e.awaitWindow().then(function(e){xe(l,r,c,e,t)})):xe(l,r,c,e,t),Ve("cross_domain_function",{id:l,name:c})}function Ee(e,t,r,n){var i,a=n.on,o=n.send;return function(e,t){void 0===t&&(t=be);var r=JSON.stringify(e,function(e){var r=this[e];if(fe(this))return r;var n=me(r);if(!n)return r;var i=t[n]||ve[n];return i?i(r,e):r});return void 0===r?"undefined":r}(r,((i={}).promise=function(r,n){return i=r,Ve("cross_domain_zalgo_promise",{then:Re(e,t,function(e,t){return i.then(e,t)},n,{on:(s={on:a,send:o}).on,send:s.send})});var i,s},i.function=function(r,n){return Re(e,t,r,n,{on:a,send:o})},i.object=function(e){return S(e)||Ue.isProxyWindow(e)?Ve("cross_domain_window",Ue.serialize(e,{send:o})):e},i))}function Te(e,t,r,n){var i,a=n.send;return function(e,t){if(void 0===t&&(t=Se),"undefined"!==e)return JSON.parse(e,function(e,r){if(fe(this))return r;var n,i;if(fe(r)?(n=r.__type__,i=r.__val__):(n=me(r),i=r),!n)return i;var a=t[n]||ye[n];return a?a(i,e):i})}(r,((i={}).cross_domain_zalgo_promise=function(e){return new W(e.then)},i.cross_domain_function=function(r){return n=e,i=t,s={send:a},l=(o=r).id,c=o.name,u=s.send,d=function(e){function t(){var r=arguments;return Ue.toProxyWindow(n,{send:u}).awaitWindow().then(function(n){var a=Ce(n,l);if(a&&a.val!==t)return a.val.apply({source:window,origin:p()},r);var o=[].slice.call(r);return e.fireAndForget?u(n,"postrobot_method",{id:l,name:c,args:o},{domain:i,fireAndForget:!0}):u(n,"postrobot_method",{id:l,name:c,args:o},{domain:i,fireAndForget:!1}).then(function(e){return e.data.result})}).catch(function(e){throw e})}return void 0===e&&(e={}),t.__name__=c,t.__origin__=i,t.__source__=n,t.__id__=l,t.origin=i,t},(h=d()).fireAndForget=d({fireAndForget:!0}),h;var n,i,o,s,l,c,u,d,h},i.cross_domain_window=function(e){return Ue.deserialize(e,{send:a})},i))}var ke={};function Fe(e,t,r,n){var i=n.on,a=n.send;return W.try(function(){var n=ce().getOrSet(e,function(){return{}});return n.buffer=n.buffer||[],n.buffer.push(r),n.flush=n.flush||W.flush().then(function(){if(v(e))throw new Error("Window is closed");var r,o=Ee(e,t,((r={}).__post_robot_10_0_46__=n.buffer||[],r),{on:i,send:a});delete n.buffer;for(var s=Object.keys(ke),l=[],c=0;c<s.length;c++){var u=s[c];try{ke[u](e,o,t)}catch(d){l.push(d)}}if(l.length===s.length)throw new Error("All post-robot messaging strategies failed:\n\n"+l.map(function(e,t){return t+". "+Z(e)}).join("\n\n"))}),n.flush.then(function(){delete n.flush})}).then(G)}function We(e){return ae("responseListeners").get(e)}function Ne(e){ae("responseListeners").del(e)}function Ke(e){return ae("erroredResponseListeners").has(e)}function Oe(e){var t=e.name,r=e.win,n=e.domain,i=ce("requestListeners");if("*"===r&&(r=null),"*"===n&&(n=null),!t)throw new Error("Name required to get request listener");for(var a=0,o=[r,le()];a<o.length;a++){var s=o[a];if(s){var l=i.get(s);if(l){var c=l[t];if(c){if(n&&"string"==typeof n){if(c[n])return c[n];if(c.__domain_regex__)for(var u=0,d=c.__domain_regex__;u<d.length;u++){var p=d[u],h=p.listener;if(y(p.regex,n))return h}}if(c["*"])return c["*"]}}}}}function Pe(e,t,r,n){var i=n.on,a=n.send,o=Oe({name:r.name,win:e,domain:t}),s="postrobot_method"===r.name&&r.data&&"string"==typeof r.data.name?r.data.name+"()":r.name;function l(n,o,l){return W.flush().then(function(){if(!r.fireAndForget&&!v(e))try{return Fe(e,t,{id:L(),origin:p(window),type:"postrobot_message_response",hash:r.hash,name:r.name,ack:n,data:o,error:l},{on:i,send:a})}catch(c){throw new Error("Send response message failed for "+s+" in "+p()+"\n\n"+Z(c))}})}return W.all([W.flush().then(function(){if(!r.fireAndForget&&!v(e))try{return Fe(e,t,{id:L(),origin:p(window),type:"postrobot_message_ack",hash:r.hash,name:r.name},{on:i,send:a})}catch(n){throw new Error("Send ack message failed for "+s+" in "+p()+"\n\n"+Z(n))}}),W.try(function(){if(!o)throw new Error("No handler found for post message: "+r.name+" from "+t+" in "+window.location.protocol+"//"+window.location.host+window.location.pathname);return o.handler({source:e,origin:t,data:r.data})}).then(function(e){return l("success",e)},function(e){return l("error",null,e)})]).then(G).catch(function(e){if(o&&o.handleError)return o.handleError(e);throw e})}function Ie(e,t,r){if(!Ke(r.hash)){var n=We(r.hash);if(!n)throw new Error("No handler found for post message ack for message: "+r.name+" from "+t+" in "+window.location.protocol+"//"+window.location.host+window.location.pathname);try{if(!y(n.domain,t))throw new Error("Ack origin "+t+" does not match domain "+n.domain.toString());if(e!==n.win)throw new Error("Ack source does not match registered window")}catch(i){n.promise.reject(i)}n.ack=!0}}function Le(e,t,r){if(!Ke(r.hash)){var i,a=We(r.hash);if(!a)throw new Error("No handler found for post message response for message: "+r.name+" from "+t+" in "+window.location.protocol+"//"+window.location.host+window.location.pathname);if(!y(a.domain,t))throw new Error("Response origin "+t+" does not match domain "+(i=a.domain,Array.isArray(i)?"("+i.join(" | ")+")":n(i)?"RegExp("+i.toString()+")":i.toString()));if(e!==a.win)throw new Error("Response source does not match registered window");Ne(r.hash),"error"===r.ack?a.promise.reject(r.error):"success"===r.ack&&a.promise.resolve({source:e,origin:t,data:r.data})}}function Be(e,t){var r=t.on,n=t.send,i=ae("receivedMessages");try{if(!window||window.closed||!e.source)return}catch(u){return}var a=e.source,o=e.origin,s=function(e,t,r,n){var i,a=n.on,o=n.send;try{i=Te(t,r,e,{on:a,send:o})}catch(u){return}if(i&&"object"==typeof i&&null!==i){var s=i.__post_robot_10_0_46__;if(Array.isArray(s))return s}}(e.data,a,o,{on:r,send:n});if(s){qe(a);for(var l=0;l<s.length;l++){var c=s[l];if(i.has(c.id))return;if(i.set(c.id,!0),v(a)&&!c.fireAndForget)return;0===c.origin.indexOf("file:")&&(o="file://");try{"postrobot_message_request"===c.type?Pe(a,o,c,{on:r,send:n}):"postrobot_message_response"===c.type?Le(a,o,c):"postrobot_message_ack"===c.type&&Ie(a,o,c)}catch(u){setTimeout(function(){throw u},0)}}}}function De(e,t,r){if(!e)throw new Error("Expected name");if("function"==typeof(t=t||{})&&(r=t,t={}),!r)throw new Error("Expected handler");var n=function e(t,r){var n=t.name,i=t.win,a=t.domain,o=ce("requestListeners");if(!n||"string"!=typeof n)throw new Error("Name required to add request listener");if(i&&"*"!==i&&Ue.isProxyWindow(i)){var s=i.awaitWindow().then(function(t){return e({name:n,win:t,domain:a},r)});return{cancel:function(){s.then(function(e){return e.cancel()},G)}}}var l=i;if(Array.isArray(l)){for(var c=[],u=0,d=l;u<d.length;u++)c.push(e({name:n,domain:a,win:d[u]},r));return{cancel:function(){for(var e=0;e<c.length;e++)c[e].cancel()}}}if(Array.isArray(a)){for(var p=[],h=0,q=a;h<q.length;h++)p.push(e({name:n,win:l,domain:q[h]},r));return{cancel:function(){for(var e=0;e<p.length;e++)p[e].cancel()}}}var f=Oe({name:n,win:l,domain:a});l&&"*"!==l||(l=le());var m=(a=a||"*").toString();if(f)throw l&&a?new Error("Request listener already exists for "+n+" on domain "+a.toString()+" for "+(l===le()?"wildcard":"specified")+" window"):l?new Error("Request listener already exists for "+n+" for "+(l===le()?"wildcard":"specified")+" window"):a?new Error("Request listener already exists for "+n+" on domain "+a.toString()):new Error("Request listener already exists for "+n);var V,g,v=o.getOrSet(l,function(){return{}}),b=Q(v,n,function(){return{}});return Y(a)?(V=Q(b,"__domain_regex__",function(){return[]})).push(g={regex:a,listener:r}):b[m]=r,{cancel:function(){delete b[m],g&&(V.splice(V.indexOf(g,1)),V.length||delete b.__domain_regex__),Object.keys(b).length||delete v[n],l&&!Object.keys(v).length&&o.del(l)}}}({name:e,win:t.window,domain:t.domain||"*"},{handler:r||t.handler,handleError:t.errorHandler||function(e){throw e}});return{cancel:function(){n.cancel()}}}function Xe(e,t,r){"function"==typeof(t=t||{})&&(r=t,t={});var n,i=new W;return t.errorHandler=function(e){n.cancel(),i.reject(e)},n=De(e,t,function(e){if(n.cancel(),i.resolve(e),r)return r(e)}),i.cancel=n.cancel,i}ke.postrobot_post_message=function(e,t,r){0===r.indexOf("file:")&&(r="*"),e.postMessage(t,r)};var je=function e(t,r,n,i){var a=(i=i||{}).domain||"*",o=i.timeout||-1,s=i.timeout||5e3,c=i.fireAndForget||!1;return Ue.toProxyWindow(t,{send:e}).awaitWindow().then(function(t){return W.try(function(){if(function(e,t,r){if(!e)throw new Error("Expected name");if("string"!=typeof r&&!Array.isArray(r)&&!Y(r))throw new TypeError("Can not send "+e+". Expected domain "+JSON.stringify(r)+" to be a string, array, or regex");if(v(t))throw new Error("Can not send "+e+". Target window is closed")}(r,t,a),function(e,t){var r=b(t);if(r)return r===e;if(t===e)return!1;if(function(e){void 0===e&&(e=window);try{if(e.top)return e.top}catch(i){}if(l(e)===e)return e;try{if(f(window,e)&&window.top)return window.top}catch(i){}try{if(f(e,window)&&window.top)return window.top}catch(i){}for(var t=0,r=function e(t){for(var r=[],n=0,i=m(t);n<i.length;n++){var a=i[n];r.push(a);for(var o=0,s=e(a);o<s.length;o++)r.push(s[o])}return r}(e);t<r.length;t++){var n=r[t];try{if(n.top)return n.top}catch(i){}if(l(n)===n)return n}}(t)===t)return!1;for(var n=0,i=m(e);n<i.length;n++)if(i[n]===t)return!0;return!1}(window,t))return function(e,t,r){void 0===t&&(t=5e3),void 0===r&&(r="Window");var n,i=(n=e,ce("helloPromises").getOrSet(n,function(){return new W}));return-1!==t&&(i=i.timeout(t,new Error(r+" did not load after "+t+"ms"))),i}(t,s)}).then(function(r){return n=t,i=a,o=(void 0===r?{}:r).domain,s=e,W.try(function(){return"string"==typeof i?i:W.try(function(){return o||pe(n,{send:s}).then(function(e){return e.domain})}).then(function(e){if(!y(i,i))throw new Error("Domain "+H(i)+" does not match "+H(i));return e})});var n,i,o,s}).then(function(i){var a,s,l,u,d=i,h="postrobot_method"===r&&n&&"string"==typeof n.name?n.name+"()":r,q=new W,f=r+"_"+L();if(!c){var m={name:r,win:t,domain:d,promise:q};l=f,u=m,ae("responseListeners").set(l,u);var V=ce("requestPromises").getOrSet(t,function(){return[]});V.push(q),q.catch(function(){!function(e){ae("erroredResponseListeners").set(e,!0)}(f),Ne(f)});var g=(s=t,ce("knownWindows").get(s,!1)?1e4:2e3),b=o,y=g,S=b,A=(function e(){a=setTimeout(function(){v(t)?q.reject(new Error("Window closed for "+r+" before "+(m.ack?"response":"ack"))):m.cancelled?q.reject(new Error("Response listener was cancelled for "+r)):(y=Math.max(y-500,0),-1!==S&&(S=Math.max(S-500,0)),m.ack||0!==y?0===S&&q.reject(new Error("No response for postMessage "+h+" in "+p()+" in "+b+"ms")):q.reject(new Error("No ack for postMessage "+h+" in "+p()+" in "+g+"ms"))),e()},500)}(),{cancel:function(){clearTimeout(a)}});q.finally(function(){A.cancel(),V.splice(V.indexOf(q,1))}).catch(G)}return Fe(t,d,{id:L(),origin:p(window),type:"postrobot_message_request",hash:f,name:r,data:n,fireAndForget:c},{on:De,send:e}).then(function(){return c?q.resolve():q},function(e){throw new Error("Send request message failed for "+h+" in "+p()+"\n\n"+Z(e))})})})};function Me(e,t,r){return Ee(e,t,r,{on:De,send:je})}function ze(e,t,r){return Te(e,t,r,{send:je})}function Ge(e){return new Ue({send:je,win:e})}function Ze(e){return Ue.toProxyWindow(e,{send:je})}function He(){var e,t,r,n,i,a,o;ne().initialized||(ne().initialized=!0,i=(n={on:De,send:je}).on,a=n.send,(o=ne()).receiveMessage=o.receiveMessage||function(e){return Be(e,{on:i,send:a})},t=(e={on:De,send:je}).on,r=e.send,ae().getOrSet("postMessageListener",function(){return e=window,n=function(e){var n,i,a,o;n=e,a=(i={on:t,send:r}).on,o=i.send,W.try(function(){var e=n.source||n.sourceElement,t=n.origin||n.originalEvent&&n.originalEvent.origin,r=n.data;if("null"===t&&(t="file://"),e){if(!t)throw new Error("Post message did not have origin domain");Be({source:e,origin:t,data:r},{on:a,send:o})}})},e.addEventListener("message",n),{cancel:function(){e.removeEventListener("message",n)}};var e,n}),function(e){var t=e.on,r=e.send;ae("builtinListeners").getOrSet("helloListener",function(){var e=t("postrobot_hello",{domain:"*"},function(e){return de(e.source,{domain:e.origin}),{instanceID:ue()}}),n=b();return n&&pe(n,{send:r}).catch(function(e){}),e})}({on:De,send:je}))}function Ye(){var e;!function(){for(var e=ae("responseListeners"),t=0,r=e.keys();t<r.length;t++){var n=r[t],i=e.get(n);i&&(i.cancelled=!0),e.del(n)}}(),(e=ae().get("postMessageListener"))&&e.cancel(),delete window.__post_robot_10_0_46__}var Qe=!0;function Je(e){for(var t=0,r=ce("requestPromises").get(e,[]);t<r.length;t++)r[t].reject(new Error("Window "+(v(e)?"closed":"cleaned up")+" before response")).catch(G)}He()}]);var Af=Sf.exports;!function(e){e.exports=Af,e.exports.default=e.exports}(yf);const wf=f(yf.exports),Uf=e=>{const{data:n,buttonText:i,codeTestURL:a=qf,codeplayerURL:o=ff,toRunCodeQuestion:s}=e,{verifyMode:l="",content:c="",topic:u,example:d,lang:p,cases:h}=n;t.useEffect(()=>()=>{q.current&&clearTimeout(q.current)},[]);const q=t.useRef(null);return S.jsx("div",{className:"question-preview",children:S.jsx("div",{className:"content",children:S.jsx("div",{className:"preview-container",children:S.jsx("div",{className:"preview",children:S.jsxs("div",{className:"preview-content",children:[S.jsx(vf,{score:n.score,type:n.type,difficulty:n.difficulty,currentIndex:null==n?void 0:n.currentIndex,questionsCount:null==n?void 0:n.questionsCount}),u&&S.jsx("div",{className:"topic",children:u}),c.trim()?S.jsx(pf,{editorHeight:"fit-content",readOnly:!0,isBorder:!1,defaultValue:c,noPadding:!0}):S.jsx("p",{}),S.jsx(r.Button,{className:"submitBtn",onClick:()=>{if(s)s();else if(l===Gq.INPUT_OUTPUT){const e=window.open(a),t=null==h?void 0:h.map(({input:e,output:t})=>Array.isArray(e)?{input:e,output:t}:{input:[e],output:t});wf.send(e,"send",{title:u,content:c,initCode:d,code:d,lang:null==p?void 0:p.toLocaleLowerCase(),cases:t,submitCases:t,noSubmit:!0,aiEnabled:!0})}else{const e=window.open(`${o}`),t=()=>{let t=[d];if("html"===n.lang&&d)try{const e=JSON.parse(d);t=[e.html??"",e.css??"",e.js??""]}catch(r){}wf.send(e,"send",{title:u,content:c,lang:null==p?void 0:p.toLocaleLowerCase(),code:t,aiEnabled:!0,run:!1,dark:!0})};t(),wf.on("refresh",{window:e},async function(){q.current&&clearTimeout(q.current),q.current=setTimeout(()=>{(null==e?void 0:e.closed)||t()},500)}),wf.on("change",{window:e},e=>{})}},type:"primary",style:{minWidth:"88px"},children:i||"去答题"})]})})})})})},{TextArea:xf}=r.Input,Cf=e=>{const{status:n,data:i,onSubmit:a,buttonText:o,onNextQuestion:s}=e,{answerOption:l,userAnswer:c,topic:u}=i,[d,p]=t.useState([]),[h,q]=t.useState(),[f,m]=t.useState(!1),V=e=>{if(g&&!e)return void r.message.warning("请先进行填空!");if(f&&!e)return void(null==s||s());const t=e||d,n=null==l?void 0:l.every((e,r)=>{var n;return(null==e?void 0:e.answer)===(null==(n=t[r])?void 0:n.answer)});q(n),m(!0),!e&&(null==a||a(t))},g=t.useMemo(()=>d.every(e=>!(null==e?void 0:e.answer)),[d]);return t.useEffect(()=>{let e;"string"==typeof c&&(e=Pq(c));const t=(e||c||l||[]).map(e=>({answer:n===Zq.ADD||c?null==e?void 0:e.answer:void 0}))??[];p(t),c&&V(t)},[n,c,l]),S.jsxs("div",{className:"completion",children:[S.jsx("div",{className:"completion-title",children:S.jsxs("div",{className:"completion-title-content",children:[S.jsx(vf,{score:i.score,type:i.type,difficulty:i.difficulty,currentIndex:null==i?void 0:i.currentIndex,questionsCount:null==i?void 0:i.questionsCount}),S.jsx(pf,{isBorder:!1,defaultValue:u.indexOf("<code")>-1?u.replace(/<code[^>]*>|<\/code>/g,""):u,readOnly:!0,autoHeight:{min:0,max:1e5},noPadding:!0})]})}),S.jsx("div",{className:"completion-content",children:null==d?void 0:d.map((e,t)=>{var r,i,a;return S.jsxs("div",{className:"item-warpper",children:[S.jsxs("div",{className:"completion-content-item",children:[S.jsxs("span",{children:["填空",t+1]}),S.jsx(xf,{style:{resize:"none"},placeholder:n===Zq.EXAM||n===Zq.PREVIEW?"请输入答案":"",disabled:n===Zq.ADD||f,autoSize:{maxRows:3},value:null==e?void 0:e.answer,onChange:e=>((e,t)=>{q(void 0),m(!1);const r=e.target.value,n=[...d];n[t].answer=r,p(n)})(e,t)})]}),f&&S.jsx("div",{className:"item-result "+((null==e?void 0:e.answer)===(null==(r=l[t])?void 0:r.answer)?"right":"error"),children:(null==e?void 0:e.answer)===(null==(i=l[t])?void 0:i.answer)?S.jsxs("span",{children:[S.jsx($e,{})," 正确"]}):S.jsxs("span",{children:[S.jsx(st,{})," 错误, ",S.jsxs("span",{className:"answer",children:["正确答案:",null==(a=l[t])?void 0:a.answer]})]})})]},String(t))})}),a&&S.jsx("div",{className:"submit-btn",children:S.jsx(r.Button,{type:"primary",onClick:()=>V(),children:o||(f?"下一题":"提交")})})]})},Rf=e=>{const{status:n=Zq.EXAM,data:i,onSubmit:a,buttonText:o,onNextQuestion:s}=e,[l,c]=t.useState(),[u,d]=t.useState(!1),p=t.useRef(null);t.useEffect(()=>{i.userAnswer&&(c(i.userAnswer),h(i.userAnswer))},[i]);const h=e=>{if(u&&!e)return void(null==s||s());const t=e||l;t?(d(!0),!e&&a&&a(t)):r.message.warning("请输入答案!")},q=[];return[Zq.ADD,Zq.MARK].includes(n)&&i&&(i.answer&&q.push({key:"1",label:S.jsxs(S.Fragment,{children:[S.jsx("span",{style:{fontWeight:"bold"},children:"参考答案"}),S.jsx("span",{style:{fontSize:"12px",color:"#999999"},children:"(学生不可见)"})]}),children:S.jsx(pf,{readOnly:!0,isBorder:!1,defaultValue:i.answer,autoHeight:{min:0,max:1e4}})}),i.judgeNorm&&q.push({key:"2",label:S.jsxs(S.Fragment,{children:[S.jsx("span",{style:{fontWeight:"bold"},children:"判分标准"}),S.jsx("span",{style:{fontSize:"12px",color:"#999999"},children:"(学生不可见)"})]}),children:S.jsx(pf,{readOnly:!0,defaultValue:i.judgeNorm,isBorder:!1,autoHeight:{min:0,max:1e4}})})),S.jsxs("div",{className:"essay-question",children:[S.jsx("div",{className:"essay-question-title",children:S.jsxs("div",{className:"essay-question-title-content",children:[S.jsx(vf,{score:i.score,type:i.type,difficulty:i.difficulty,currentIndex:null==i?void 0:i.currentIndex,questionsCount:null==i?void 0:i.questionsCount}),S.jsx(pf,{defaultValue:null==i?void 0:i.topic,readOnly:!0,isBorder:!1,autoHeight:{min:0,max:1e5},noPadding:!0})]})}),S.jsxs("div",{className:"essay-question-content",children:[[Zq.MARK,Zq.VIEW,Zq.EXAM,Zq.PREVIEW].includes(n)&&S.jsx(pf,{ref:p,readOnly:n===Zq.ADD||n===Zq.MARK||n===Zq.VIEW,editorHeight:220,defaultValue:(null==i?void 0:i.userAnswer)||"",placeholder:n===Zq.EXAM||n===Zq.PREVIEW?"请输入回答":"",onChange:e=>{c(e)},customToolbarKeys:["undo","redo","fullScreen","|","headerSelect","bold",{key:"group-image",title:"图片",iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M959.877 128l0.123 0.123v767.775l-0.123 0.122H64.102l-0.122-0.122V128.123l0.122-0.123h895.775zM960 64H64C28.795 64 0 92.795 0 128v768c0 35.205 28.795 64 64 64h896c35.205 0 64-28.795 64-64V128c0-35.205-28.795-64-64-64zM832 288.01c0 53.023-42.988 96.01-96.01 96.01s-96.01-42.987-96.01-96.01S682.967 192 735.99 192 832 234.988 832 288.01zM896 832H128V704l224.01-384 256 320h64l224.01-192z"></path></svg>',menuKeys:["insertImage","uploadImage"]},"insertTable"],uploadImageLimit:e=>e.size>3145728&&(r.message.destroy(),r.message.warning("仅能上传大小为3MB内的图片噢~"),!0)}),[Zq.ADD,Zq.MARK].includes(n)&&S.jsx(r.Collapse,{defaultActiveKey:n===Zq.ADD?["1","2"].filter(e=>!("1"===e&&!(null==i?void 0:i.answer)||"2"===e&&!(null==i?void 0:i.judgeNorm))):[],ghost:!0,expandIcon:({isActive:e})=>S.jsx(Ye,{rotate:e?90:0}),items:q})]}),a&&S.jsx("div",{className:"submit-btn",children:S.jsx(r.Button,{type:"primary",onClick:()=>h(),children:o||u?"下一题":"提交"})})]})},Ef=t.forwardRef((e,r)=>{const{data:n,questionProps:i={}}=e,{onSubmit:a,onNextQuestion:o,buttonText:s="",showQuestionTip:l=!1,showResult:c,status:u=Zq.PREVIEW,className:d="",styles:p={},uploadImg:h,codeTestURL:q,codeplayerURL:f,unknowQesutionRender:m,toRunCodeQuestion:V}=i,g=t.useMemo(()=>{const e={...n},{optionJson:t,type:r}=n;return!t||r!==zq.ACM&&r!==zq.CCM||(e.lang=null==t?void 0:t.defaultLanguage),e},[n]),v=e=>S.jsx(uf.Provider,{value:{topProps:{uploadImg:h}},children:S.jsx("div",{className:`question-wrapper ${d}`,style:{...p},children:e})}),b={data:g,onSubmit:a,buttonText:s,status:u,onNextQuestion:o};switch(g.type){case zq.RADIO:case zq.CHECKBOX:return(()=>{const e=S.jsx(bf,{showQuestionTip:l,showResult:c,...b});return v(e)})();case zq.ACM:case zq.CCM:return(()=>{const e=S.jsx(Uf,{codeTestURL:q,codeplayerURL:f,toRunCodeQuestion:V,...b});return v(e)})();case zq.COMPLETION:return(()=>{const e=S.jsx(Cf,{showResult:c,...b});return v(e)})();case zq.ANSWER:return(()=>{const e=S.jsx(Rf,{...b});return v(e)})();default:return m?m(g):S.jsx("div",{children:"未知题型"})}});var Tf={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};function kf(e){Tf=e}var Ff={exec:()=>null};function Wf(e,t=""){let r="string"==typeof e?e:e.source,n={replace:(e,t)=>{let i="string"==typeof t?t:t.source;return i=i.replace(Nf.caret,"$1"),r=r.replace(e,i),n},getRegex:()=>new RegExp(r,t)};return n}var Nf={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[\t ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},Kf=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Of=/(?:[*+-]|\d{1,9}[.)])/,Pf=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,If=Wf(Pf).replace(/bull/g,Of).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),Lf=Wf(Pf).replace(/bull/g,Of).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Bf=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Df=/(?!\s*\])(?:\\.|[^\[\]\\])+/,Xf=Wf(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Df).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),jf=Wf(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Of).getRegex(),Mf="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",zf=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Gf=Wf("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$))","i").replace("comment",zf).replace("tag",Mf).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Zf=Wf(Bf).replace("hr",Kf).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Mf).getRegex(),Hf={blockquote:Wf(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Zf).getRegex(),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:Xf,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:Kf,html:Gf,lheading:If,list:jf,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:Zf,table:Ff,text:/^[^\n]+/},Yf=Wf("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Kf).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3}\t)[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Mf).getRegex(),Qf={...Hf,lheading:Lf,table:Yf,paragraph:Wf(Bf).replace("hr",Kf).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Yf).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Mf).getRegex()},Jf={...Hf,html:Wf("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",zf).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Ff,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Wf(Bf).replace("hr",Kf).replace("heading"," *#{1,6} *[^\n]").replace("lheading",If).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},_f=/^( {2,}|\\)\n(?!\s*$)/,$f=/[\p{P}\p{S}]/u,em=/[\s\p{P}\p{S}]/u,tm=/[^\s\p{P}\p{S}]/u,rm=Wf(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,em).getRegex(),nm=/(?!~)[\p{P}\p{S}]/u,im=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,am=Wf(im,"u").replace(/punct/g,$f).getRegex(),om=Wf(im,"u").replace(/punct/g,nm).getRegex(),sm="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",lm=Wf(sm,"gu").replace(/notPunctSpace/g,tm).replace(/punctSpace/g,em).replace(/punct/g,$f).getRegex(),cm=Wf(sm,"gu").replace(/notPunctSpace/g,/(?:[^\s\p{P}\p{S}]|~)/u).replace(/punctSpace/g,/(?!~)[\s\p{P}\p{S}]/u).replace(/punct/g,nm).getRegex(),um=Wf("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,tm).replace(/punctSpace/g,em).replace(/punct/g,$f).getRegex(),dm=Wf(/\\(punct)/,"gu").replace(/punct/g,$f).getRegex(),pm=Wf(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),hm=Wf(zf).replace("(?:--\x3e|$)","--\x3e").getRegex(),qm=Wf("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",hm).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),fm=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,mm=Wf(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",fm).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Vm=Wf(/^!?\[(label)\]\[(ref)\]/).replace("label",fm).replace("ref",Df).getRegex(),gm=Wf(/^!?\[(ref)\](?:\[\])?/).replace("ref",Df).getRegex(),vm={_backpedal:Ff,anyPunctuation:dm,autolink:pm,blockSkip:/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<(?! )[^<>]*?>/g,br:_f,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:Ff,emStrongLDelim:am,emStrongRDelimAst:lm,emStrongRDelimUnd:um,escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,link:mm,nolink:gm,punctuation:rm,reflink:Vm,reflinkSearch:Wf("reflink|nolink(?!\\()","g").replace("reflink",Vm).replace("nolink",gm).getRegex(),tag:qm,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:Ff},bm={...vm,link:Wf(/^!?\[(label)\]\((.*?)\)/).replace("label",fm).getRegex(),reflink:Wf(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",fm).getRegex()},ym={...vm,emStrongRDelimAst:cm,emStrongLDelim:om,url:Wf(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},Sm={...ym,br:Wf(_f).replace("{2,}","*").getRegex(),text:Wf(ym.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Am={normal:Hf,gfm:Qf,pedantic:Jf},wm={normal:vm,gfm:ym,breaks:Sm,pedantic:bm},Um={"&":"&","<":"<",">":">",'"':""","'":"'"},xm=e=>Um[e];function Cm(e,t){if(t){if(Nf.escapeTest.test(e))return e.replace(Nf.escapeReplace,xm)}else if(Nf.escapeTestNoEncode.test(e))return e.replace(Nf.escapeReplaceNoEncode,xm);return e}function Rm(e){try{e=encodeURI(e).replace(Nf.percentDecode,"%")}catch{return null}return e}function Em(e,t){var r;let n=e.replace(Nf.findPipe,(e,t,r)=>{let n=!1,i=t;for(;--i>=0&&"\\"===r[i];)n=!n;return n?"|":" |"}).split(Nf.splitPipe),i=0;if(n[0].trim()||n.shift(),n.length>0&&!(null==(r=n.at(-1))?void 0:r.trim())&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;i<n.length;i++)n[i]=n[i].trim().replace(Nf.slashPipe,"|");return n}function Tm(e,t,r){let n=e.length;if(0===n)return"";let i=0;for(;i<n&&e.charAt(n-i-1)===t;)i++;return e.slice(0,n-i)}function km(e,t,r,n,i){let a=t.href,o=t.title||null,s=e[1].replace(i.other.outputLinkReplace,"$1");n.state.inLink=!0;let l={type:"!"===e[0].charAt(0)?"image":"link",raw:r,href:a,title:o,text:s,tokens:n.inlineTokens(s)};return n.state.inLink=!1,l}var Fm=class{constructor(e){c(this,"options"),c(this,"rules"),c(this,"lexer"),this.options=e||Tf}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let e=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:Tm(e,"\n")}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let e=t[0],r=function(e,t,r){let n=e.match(r.other.indentCodeCompensation);if(null===n)return t;let i=n[1];return t.split("\n").map(e=>{let t=e.match(r.other.beginningSpace);if(null===t)return e;let[n]=t;return n.length>=i.length?e.slice(i.length):e}).join("\n")}(e,t[3]||"",this.rules);return{type:"code",raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:r}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(this.rules.other.endingHash.test(e)){let t=Tm(e,"#");(this.options.pedantic||!t||this.rules.other.endingSpaceChar.test(t))&&(e=t.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:Tm(t[0],"\n")}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let e=Tm(t[0],"\n").split("\n"),r="",n="",i=[];for(;e.length>0;){let t,a=!1,o=[];for(t=0;t<e.length;t++)if(this.rules.other.blockquoteStart.test(e[t]))o.push(e[t]),a=!0;else{if(a)break;o.push(e[t])}e=e.slice(t);let s=o.join("\n"),l=s.replace(this.rules.other.blockquoteSetextReplace,"\n $1").replace(this.rules.other.blockquoteSetextReplace2,"");r=r?`${r}\n${s}`:s,n=n?`${n}\n${l}`:l;let c=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(l,i,!0),this.lexer.state.top=c,0===e.length)break;let u=i.at(-1);if("code"===(null==u?void 0:u.type))break;if("blockquote"===(null==u?void 0:u.type)){let t=u,a=t.raw+"\n"+e.join("\n"),o=this.blockquote(a);i[i.length-1]=o,r=r.substring(0,r.length-t.raw.length)+o.raw,n=n.substring(0,n.length-t.text.length)+o.text;break}if("list"===(null==u?void 0:u.type)){let t=u,a=t.raw+"\n"+e.join("\n"),o=this.list(a);i[i.length-1]=o,r=r.substring(0,r.length-u.raw.length)+o.raw,n=n.substring(0,n.length-t.raw.length)+o.raw,e=a.substring(i.at(-1).raw.length).split("\n");continue}}return{type:"blockquote",raw:r,tokens:i,text:n}}}list(e){let t=this.rules.block.list.exec(e);if(t){let r=t[1].trim(),n=r.length>1,i={type:"list",raw:"",ordered:n,start:n?+r.slice(0,-1):"",loose:!1,items:[]};r=n?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=n?r:"[*+-]");let a=this.rules.other.listItemRegex(r),o=!1;for(;e;){let r=!1,n="",s="";if(!(t=a.exec(e))||this.rules.block.hr.test(e))break;n=t[0],e=e.substring(n.length);let l=t[2].split("\n",1)[0].replace(this.rules.other.listReplaceTabs,e=>" ".repeat(3*e.length)),c=e.split("\n",1)[0],u=!l.trim(),d=0;if(this.options.pedantic?(d=2,s=l.trimStart()):u?d=t[1].length+1:(d=t[2].search(this.rules.other.nonSpaceChar),d=d>4?1:d,s=l.slice(d),d+=t[1].length),u&&this.rules.other.blankLine.test(c)&&(n+=c+"\n",e=e.substring(c.length+1),r=!0),!r){let t=this.rules.other.nextBulletRegex(d),r=this.rules.other.hrRegex(d),i=this.rules.other.fencesBeginRegex(d),a=this.rules.other.headingBeginRegex(d),o=this.rules.other.htmlBeginRegex(d);for(;e;){let p,h=e.split("\n",1)[0];if(c=h,this.options.pedantic?(c=c.replace(this.rules.other.listReplaceNesting," "),p=c):p=c.replace(this.rules.other.tabCharGlobal," "),i.test(c)||a.test(c)||o.test(c)||t.test(c)||r.test(c))break;if(p.search(this.rules.other.nonSpaceChar)>=d||!c.trim())s+="\n"+p.slice(d);else{if(u||l.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||i.test(l)||a.test(l)||r.test(l))break;s+="\n"+c}!u&&!c.trim()&&(u=!0),n+=h+"\n",e=e.substring(h.length+1),l=p.slice(d)}}i.loose||(o?i.loose=!0:this.rules.other.doubleBlankLine.test(n)&&(o=!0));let p,h=null;this.options.gfm&&(h=this.rules.other.listIsTask.exec(s),h&&(p="[ ] "!==h[0],s=s.replace(this.rules.other.listReplaceTask,""))),i.items.push({type:"list_item",raw:n,task:!!h,checked:p,loose:!1,text:s,tokens:[]}),i.raw+=n}let s=i.items.at(-1);if(!s)return;s.raw=s.raw.trimEnd(),s.text=s.text.trimEnd(),i.raw=i.raw.trimEnd();for(let e=0;e<i.items.length;e++)if(this.lexer.state.top=!1,i.items[e].tokens=this.lexer.blockTokens(i.items[e].text,[]),!i.loose){let t=i.items[e].tokens.filter(e=>"space"===e.type),r=t.length>0&&t.some(e=>this.rules.other.anyLine.test(e.raw));i.loose=r}if(i.loose)for(let e=0;e<i.items.length;e++)i.items[e].loose=!0;return i}}html(e){let t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:"pre"===t[1]||"script"===t[1]||"style"===t[1],text:t[0]}}def(e){let t=this.rules.block.def.exec(e);if(t){let e=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),r=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",n=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:e,raw:t[0],href:r,title:n}}}table(e){var t;let r=this.rules.block.table.exec(e);if(!r||!this.rules.other.tableDelimiter.test(r[2]))return;let n=Em(r[1]),i=r[2].replace(this.rules.other.tableAlignChars,"").split("|"),a=(null==(t=r[3])?void 0:t.trim())?r[3].replace(this.rules.other.tableRowBlankLine,"").split("\n"):[],o={type:"table",raw:r[0],header:[],align:[],rows:[]};if(n.length===i.length){for(let e of i)this.rules.other.tableAlignRight.test(e)?o.align.push("right"):this.rules.other.tableAlignCenter.test(e)?o.align.push("center"):this.rules.other.tableAlignLeft.test(e)?o.align.push("left"):o.align.push(null);for(let e=0;e<n.length;e++)o.header.push({text:n[e],tokens:this.lexer.inline(n[e]),header:!0,align:o.align[e]});for(let e of a)o.rows.push(Em(e,o.header.length).map((e,t)=>({text:e,tokens:this.lexer.inline(e),header:!1,align:o.align[t]})));return o}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let e="\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let e=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(e)){if(!this.rules.other.endAngleBracket.test(e))return;let t=Tm(e.slice(0,-1),"\\");if((e.length-t.length)%2==0)return}else{let e=function(e,t){if(-1===e.indexOf(t[1]))return-1;let r=0;for(let n=0;n<e.length;n++)if("\\"===e[n])n++;else if(e[n]===t[0])r++;else if(e[n]===t[1]&&(r--,r<0))return n;return r>0?-2:-1}(t[2],"()");if(-2===e)return;if(e>-1){let r=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,r).trim(),t[3]=""}}let r=t[2],n="";if(this.options.pedantic){let e=this.rules.other.pedanticHrefTitle.exec(r);e&&(r=e[1],n=e[3])}else n=t[3]?t[3].slice(1,-1):"";return r=r.trim(),this.rules.other.startAngleBracket.test(r)&&(r=this.options.pedantic&&!this.rules.other.endAngleBracket.test(e)?r.slice(1):r.slice(1,-1)),km(t,{href:r&&r.replace(this.rules.inline.anyPunctuation,"$1"),title:n&&n.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let r;if((r=this.rules.inline.reflink.exec(e))||(r=this.rules.inline.nolink.exec(e))){let e=t[(r[2]||r[1]).replace(this.rules.other.multipleSpaceGlobal," ").toLowerCase()];if(!e){let e=r[0].charAt(0);return{type:"text",raw:e,text:e}}return km(r,e,r[0],this.lexer,this.rules)}}emStrong(e,t,r=""){let n=this.rules.inline.emStrongLDelim.exec(e);if(!(!n||n[3]&&r.match(this.rules.other.unicodeAlphaNumeric))&&(!n[1]&&!n[2]||!r||this.rules.inline.punctuation.exec(r))){let r,i,a=[...n[0]].length-1,o=a,s=0,l="*"===n[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(l.lastIndex=0,t=t.slice(-1*e.length+a);null!=(n=l.exec(t));){if(r=n[1]||n[2]||n[3]||n[4]||n[5]||n[6],!r)continue;if(i=[...r].length,n[3]||n[4]){o+=i;continue}if((n[5]||n[6])&&a%3&&!((a+i)%3)){s+=i;continue}if(o-=i,o>0)continue;i=Math.min(i,i+o+s);let t=[...n[0]][0].length,l=e.slice(0,a+n.index+t+i);if(Math.min(a,i)%2){let e=l.slice(1,-1);return{type:"em",raw:l,text:e,tokens:this.lexer.inlineTokens(e)}}let c=l.slice(2,-2);return{type:"strong",raw:l,text:c,tokens:this.lexer.inlineTokens(c)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(this.rules.other.newLineCharGlobal," "),r=this.rules.other.nonSpaceChar.test(e),n=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);return r&&n&&(e=e.substring(1,e.length-1)),{type:"codespan",raw:t[0],text:e}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){let t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let e,r;return"@"===t[2]?(e=t[1],r="mailto:"+e):(e=t[1],r=e),{type:"link",raw:t[0],text:e,href:r,tokens:[{type:"text",raw:e,text:e}]}}}url(e){var t;let r;if(r=this.rules.inline.url.exec(e)){let e,n;if("@"===r[2])e=r[0],n="mailto:"+e;else{let i;do{i=r[0],r[0]=(null==(t=this.rules.inline._backpedal.exec(r[0]))?void 0:t[0])??""}while(i!==r[0]);e=r[0],n="www."===r[1]?"http://"+r[0]:r[0]}return{type:"link",raw:r[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let e=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:e}}}},Wm=class e{constructor(e){c(this,"tokens"),c(this,"options"),c(this,"state"),c(this,"tokenizer"),c(this,"inlineQueue"),this.tokens=[],this.tokens.links=Object.create(null),this.options=e||Tf,this.options.tokenizer=this.options.tokenizer||new Fm,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let t={other:Nf,block:Am.normal,inline:wm.normal};this.options.pedantic?(t.block=Am.pedantic,t.inline=wm.pedantic):this.options.gfm&&(t.block=Am.gfm,this.options.breaks?t.inline=wm.breaks:t.inline=wm.gfm),this.tokenizer.rules=t}static get rules(){return{block:Am,inline:wm}}static lex(t,r){return new e(r).lex(t)}static lexInline(t,r){return new e(r).inlineTokens(t)}lex(e){e=e.replace(Nf.carriageReturn,"\n"),this.blockTokens(e,this.tokens);for(let t=0;t<this.inlineQueue.length;t++){let e=this.inlineQueue[t];this.inlineTokens(e.src,e.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],r=!1){var n,i,a;for(this.options.pedantic&&(e=e.replace(Nf.tabCharGlobal," ").replace(Nf.spaceLine,""));e;){let o;if(null==(i=null==(n=this.options.extensions)?void 0:n.block)?void 0:i.some(r=>!!(o=r.call({lexer:this},e,t))&&(e=e.substring(o.raw.length),t.push(o),!0)))continue;if(o=this.tokenizer.space(e)){e=e.substring(o.raw.length);let r=t.at(-1);1===o.raw.length&&void 0!==r?r.raw+="\n":t.push(o);continue}if(o=this.tokenizer.code(e)){e=e.substring(o.raw.length);let r=t.at(-1);"paragraph"===(null==r?void 0:r.type)||"text"===(null==r?void 0:r.type)?(r.raw+=(r.raw.endsWith("\n")?"":"\n")+o.raw,r.text+="\n"+o.text,this.inlineQueue.at(-1).src=r.text):t.push(o);continue}if(o=this.tokenizer.fences(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.heading(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.hr(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.blockquote(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.list(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.html(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.def(e)){e=e.substring(o.raw.length);let r=t.at(-1);"paragraph"===(null==r?void 0:r.type)||"text"===(null==r?void 0:r.type)?(r.raw+=(r.raw.endsWith("\n")?"":"\n")+o.raw,r.text+="\n"+o.raw,this.inlineQueue.at(-1).src=r.text):this.tokens.links[o.tag]||(this.tokens.links[o.tag]={href:o.href,title:o.title});continue}if(o=this.tokenizer.table(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.lheading(e)){e=e.substring(o.raw.length),t.push(o);continue}let s=e;if(null==(a=this.options.extensions)?void 0:a.startBlock){let t,r=1/0,n=e.slice(1);this.options.extensions.startBlock.forEach(e=>{t=e.call({lexer:this},n),"number"==typeof t&&t>=0&&(r=Math.min(r,t))}),r<1/0&&r>=0&&(s=e.substring(0,r+1))}if(this.state.top&&(o=this.tokenizer.paragraph(s))){let n=t.at(-1);r&&"paragraph"===(null==n?void 0:n.type)?(n.raw+=(n.raw.endsWith("\n")?"":"\n")+o.raw,n.text+="\n"+o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):t.push(o),r=s.length!==e.length,e=e.substring(o.raw.length);continue}if(o=this.tokenizer.text(e)){e=e.substring(o.raw.length);let r=t.at(-1);"text"===(null==r?void 0:r.type)?(r.raw+=(r.raw.endsWith("\n")?"":"\n")+o.raw,r.text+="\n"+o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=r.text):t.push(o);continue}if(e){let t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent)break;throw new Error(t)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){var r,n,i;let a=e,o=null;if(this.tokens.links){let e=Object.keys(this.tokens.links);if(e.length>0)for(;null!=(o=this.tokenizer.rules.inline.reflinkSearch.exec(a));)e.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(a=a.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(o=this.tokenizer.rules.inline.anyPunctuation.exec(a));)a=a.slice(0,o.index)+"++"+a.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;null!=(o=this.tokenizer.rules.inline.blockSkip.exec(a));)a=a.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);let s=!1,l="";for(;e;){let o;if(s||(l=""),s=!1,null==(n=null==(r=this.options.extensions)?void 0:r.inline)?void 0:n.some(r=>!!(o=r.call({lexer:this},e,t))&&(e=e.substring(o.raw.length),t.push(o),!0)))continue;if(o=this.tokenizer.escape(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.tag(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.link(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(o.raw.length);let r=t.at(-1);"text"===o.type&&"text"===(null==r?void 0:r.type)?(r.raw+=o.raw,r.text+=o.text):t.push(o);continue}if(o=this.tokenizer.emStrong(e,a,l)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.codespan(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.br(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.del(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.autolink(e)){e=e.substring(o.raw.length),t.push(o);continue}if(!this.state.inLink&&(o=this.tokenizer.url(e))){e=e.substring(o.raw.length),t.push(o);continue}let c=e;if(null==(i=this.options.extensions)?void 0:i.startInline){let t,r=1/0,n=e.slice(1);this.options.extensions.startInline.forEach(e=>{t=e.call({lexer:this},n),"number"==typeof t&&t>=0&&(r=Math.min(r,t))}),r<1/0&&r>=0&&(c=e.substring(0,r+1))}if(o=this.tokenizer.inlineText(c)){e=e.substring(o.raw.length),"_"!==o.raw.slice(-1)&&(l=o.raw.slice(-1)),s=!0;let r=t.at(-1);"text"===(null==r?void 0:r.type)?(r.raw+=o.raw,r.text+=o.text):t.push(o);continue}if(e){let t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent)break;throw new Error(t)}}return t}},Nm=class{constructor(e){c(this,"options"),c(this,"parser"),this.options=e||Tf}space(e){return""}code({text:e,lang:t,escaped:r}){var n;let i=null==(n=(t||"").match(Nf.notSpaceStart))?void 0:n[0],a=e.replace(Nf.endingNewline,"")+"\n";return i?'<pre><code class="language-'+Cm(i)+'">'+(r?a:Cm(a,!0))+"</code></pre>\n":"<pre><code>"+(r?a:Cm(a,!0))+"</code></pre>\n"}blockquote({tokens:e}){return`<blockquote>\n${this.parser.parse(e)}</blockquote>\n`}html({text:e}){return e}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>\n`}hr(e){return"<hr>\n"}list(e){let t=e.ordered,r=e.start,n="";for(let a=0;a<e.items.length;a++){let t=e.items[a];n+=this.listitem(t)}let i=t?"ol":"ul";return"<"+i+(t&&1!==r?' start="'+r+'"':"")+">\n"+n+"</"+i+">\n"}listitem(e){var t;let r="";if(e.task){let n=this.checkbox({checked:!!e.checked});e.loose?"paragraph"===(null==(t=e.tokens[0])?void 0:t.type)?(e.tokens[0].text=n+" "+e.tokens[0].text,e.tokens[0].tokens&&e.tokens[0].tokens.length>0&&"text"===e.tokens[0].tokens[0].type&&(e.tokens[0].tokens[0].text=n+" "+Cm(e.tokens[0].tokens[0].text),e.tokens[0].tokens[0].escaped=!0)):e.tokens.unshift({type:"text",raw:n+" ",text:n+" ",escaped:!0}):r+=n+" "}return r+=this.parser.parse(e.tokens,!!e.loose),`<li>${r}</li>\n`}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>\n`}table(e){let t="",r="";for(let i=0;i<e.header.length;i++)r+=this.tablecell(e.header[i]);t+=this.tablerow({text:r});let n="";for(let i=0;i<e.rows.length;i++){let t=e.rows[i];r="";for(let e=0;e<t.length;e++)r+=this.tablecell(t[e]);n+=this.tablerow({text:r})}return n&&(n=`<tbody>${n}</tbody>`),"<table>\n<thead>\n"+t+"</thead>\n"+n+"</table>\n"}tablerow({text:e}){return`<tr>\n${e}</tr>\n`}tablecell(e){let t=this.parser.parseInline(e.tokens),r=e.header?"th":"td";return(e.align?`<${r} align="${e.align}">`:`<${r}>`)+t+`</${r}>\n`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${Cm(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:r}){let n=this.parser.parseInline(r),i=Rm(e);if(null===i)return n;let a='<a href="'+(e=i)+'"';return t&&(a+=' title="'+Cm(t)+'"'),a+=">"+n+"</a>",a}image({href:e,title:t,text:r,tokens:n}){n&&(r=this.parser.parseInline(n,this.parser.textRenderer));let i=Rm(e);if(null===i)return Cm(r);let a=`<img src="${e=i}" alt="${r}"`;return t&&(a+=` title="${Cm(t)}"`),a+=">",a}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:Cm(e.text)}},Km=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}},Om=class e{constructor(e){c(this,"options"),c(this,"renderer"),c(this,"textRenderer"),this.options=e||Tf,this.options.renderer=this.options.renderer||new Nm,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Km}static parse(t,r){return new e(r).parse(t)}static parseInline(t,r){return new e(r).parseInline(t)}parse(e,t=!0){var r,n;let i="";for(let a=0;a<e.length;a++){let o=e[a];if(null==(n=null==(r=this.options.extensions)?void 0:r.renderers)?void 0:n[o.type]){let e=o,t=this.options.extensions.renderers[e.type].call({parser:this},e);if(!1!==t||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(e.type)){i+=t||"";continue}}let s=o;switch(s.type){case"space":i+=this.renderer.space(s);continue;case"hr":i+=this.renderer.hr(s);continue;case"heading":i+=this.renderer.heading(s);continue;case"code":i+=this.renderer.code(s);continue;case"table":i+=this.renderer.table(s);continue;case"blockquote":i+=this.renderer.blockquote(s);continue;case"list":i+=this.renderer.list(s);continue;case"html":i+=this.renderer.html(s);continue;case"paragraph":i+=this.renderer.paragraph(s);continue;case"text":{let r=s,n=this.renderer.text(r);for(;a+1<e.length&&"text"===e[a+1].type;)r=e[++a],n+="\n"+this.renderer.text(r);i+=t?this.renderer.paragraph({type:"paragraph",raw:n,text:n,tokens:[{type:"text",raw:n,text:n,escaped:!0}]}):n;continue}default:{let e='Token with "'+s.type+'" type was not found.';if(this.options.silent)return"";throw new Error(e)}}}return i}parseInline(e,t=this.renderer){var r,n;let i="";for(let a=0;a<e.length;a++){let o=e[a];if(null==(n=null==(r=this.options.extensions)?void 0:r.renderers)?void 0:n[o.type]){let e=this.options.extensions.renderers[o.type].call({parser:this},o);if(!1!==e||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(o.type)){i+=e||"";continue}}let s=o;switch(s.type){case"escape":case"text":i+=t.text(s);break;case"html":i+=t.html(s);break;case"link":i+=t.link(s);break;case"image":i+=t.image(s);break;case"strong":i+=t.strong(s);break;case"em":i+=t.em(s);break;case"codespan":i+=t.codespan(s);break;case"br":i+=t.br(s);break;case"del":i+=t.del(s);break;default:{let e='Token with "'+s.type+'" type was not found.';if(this.options.silent)return"";throw new Error(e)}}}return i}},Pm=(s=class{constructor(e){c(this,"options"),c(this,"block"),this.options=e||Tf}preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}provideLexer(){return this.block?Wm.lex:Wm.lexInline}provideParser(){return this.block?Om.parse:Om.parseInline}},c(s,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"])),s),Im=new class{constructor(...e){c(this,"defaults",{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}),c(this,"options",this.setOptions),c(this,"parse",this.parseMarkdown(!0)),c(this,"parseInline",this.parseMarkdown(!1)),c(this,"Parser",Om),c(this,"Renderer",Nm),c(this,"TextRenderer",Km),c(this,"Lexer",Wm),c(this,"Tokenizer",Fm),c(this,"Hooks",Pm),this.use(...e)}walkTokens(e,t){var r,n;let i=[];for(let a of e)switch(i=i.concat(t.call(this,a)),a.type){case"table":{let e=a;for(let r of e.header)i=i.concat(this.walkTokens(r.tokens,t));for(let r of e.rows)for(let e of r)i=i.concat(this.walkTokens(e.tokens,t));break}case"list":{let e=a;i=i.concat(this.walkTokens(e.items,t));break}default:{let e=a;(null==(n=null==(r=this.defaults.extensions)?void 0:r.childTokens)?void 0:n[e.type])?this.defaults.extensions.childTokens[e.type].forEach(r=>{let n=e[r].flat(1/0);i=i.concat(this.walkTokens(n,t))}):e.tokens&&(i=i.concat(this.walkTokens(e.tokens,t)))}}return i}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(e=>{let r={...e};if(r.async=this.defaults.async||r.async||!1,e.extensions&&(e.extensions.forEach(e=>{if(!e.name)throw new Error("extension name required");if("renderer"in e){let r=t.renderers[e.name];t.renderers[e.name]=r?function(...t){let n=e.renderer.apply(this,t);return!1===n&&(n=r.apply(this,t)),n}:e.renderer}if("tokenizer"in e){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw new Error("extension level must be 'block' or 'inline'");let r=t[e.level];r?r.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&("block"===e.level?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:"inline"===e.level&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}"childTokens"in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)}),r.extensions=t),e.renderer){let t=this.defaults.renderer||new Nm(this.defaults);for(let r in e.renderer){if(!(r in t))throw new Error(`renderer '${r}' does not exist`);if(["options","parser"].includes(r))continue;let n=r,i=e.renderer[n],a=t[n];t[n]=(...e)=>{let r=i.apply(t,e);return!1===r&&(r=a.apply(t,e)),r||""}}r.renderer=t}if(e.tokenizer){let t=this.defaults.tokenizer||new Fm(this.defaults);for(let r in e.tokenizer){if(!(r in t))throw new Error(`tokenizer '${r}' does not exist`);if(["options","rules","lexer"].includes(r))continue;let n=r,i=e.tokenizer[n],a=t[n];t[n]=(...e)=>{let r=i.apply(t,e);return!1===r&&(r=a.apply(t,e)),r}}r.tokenizer=t}if(e.hooks){let t=this.defaults.hooks||new Pm;for(let r in e.hooks){if(!(r in t))throw new Error(`hook '${r}' does not exist`);if(["options","block"].includes(r))continue;let n=r,i=e.hooks[n],a=t[n];Pm.passThroughHooks.has(r)?t[n]=e=>{if(this.defaults.async)return Promise.resolve(i.call(t,e)).then(e=>a.call(t,e));let r=i.call(t,e);return a.call(t,r)}:t[n]=(...e)=>{let r=i.apply(t,e);return!1===r&&(r=a.apply(t,e)),r}}r.hooks=t}if(e.walkTokens){let t=this.defaults.walkTokens,n=e.walkTokens;r.walkTokens=function(e){let r=[];return r.push(n.call(this,e)),t&&(r=r.concat(t.call(this,e))),r}}this.defaults={...this.defaults,...r}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return Wm.lex(e,t??this.defaults)}parser(e,t){return Om.parse(e,t??this.defaults)}parseMarkdown(e){return(t,r)=>{let n={...r},i={...this.defaults,...n},a=this.onError(!!i.silent,!!i.async);if(!0===this.defaults.async&&!1===n.async)return a(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof t>"u"||null===t)return a(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof t)return a(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));i.hooks&&(i.hooks.options=i,i.hooks.block=e);let o=i.hooks?i.hooks.provideLexer():e?Wm.lex:Wm.lexInline,s=i.hooks?i.hooks.provideParser():e?Om.parse:Om.parseInline;if(i.async)return Promise.resolve(i.hooks?i.hooks.preprocess(t):t).then(e=>o(e,i)).then(e=>i.hooks?i.hooks.processAllTokens(e):e).then(e=>i.walkTokens?Promise.all(this.walkTokens(e,i.walkTokens)).then(()=>e):e).then(e=>s(e,i)).then(e=>i.hooks?i.hooks.postprocess(e):e).catch(a);try{i.hooks&&(t=i.hooks.preprocess(t));let e=o(t,i);i.hooks&&(e=i.hooks.processAllTokens(e)),i.walkTokens&&this.walkTokens(e,i.walkTokens);let r=s(e,i);return i.hooks&&(r=i.hooks.postprocess(r)),r}catch(l){return a(l)}}}onError(e,t){return r=>{if(r.message+="\nPlease report this to https://github.com/markedjs/marked.",e){let e="<p>An error occurred:</p><pre>"+Cm(r.message+"",!0)+"</pre>";return t?Promise.resolve(e):e}if(t)return Promise.reject(r);throw r}}};function Lm(e,t){return Im.parse(e,t)}Lm.options=Lm.setOptions=function(e){return Im.setOptions(e),Lm.defaults=Im.defaults,kf(Lm.defaults),Lm},Lm.getDefaults=function(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}},Lm.defaults=Tf,Lm.use=function(...e){return Im.use(...e),Lm.defaults=Im.defaults,kf(Lm.defaults),Lm},Lm.walkTokens=function(e,t){return Im.walkTokens(e,t)},Lm.parseInline=Im.parseInline,Lm.Parser=Om,Lm.parser=Om.parse,Lm.Renderer=Nm,Lm.TextRenderer=Km,Lm.Lexer=Wm,Lm.lexer=Wm.lex,Lm.Tokenizer=Fm,Lm.Hooks=Pm,Lm.parse=Lm,Lm.options,Lm.setOptions,Lm.use,Lm.walkTokens,Lm.parseInline,Om.parse,Wm.lex;const Bm=t.forwardRef((e,n)=>{const{envStatus:i,podName:a,runnerBaseUrl:o}=t.useContext(cP),{data:s,hasTitle:l=!0,toScore:c,errorHanle:u,codeChange:d}=e,p=t.useRef(null),[h,q]=t.useState(!0),[f,m]=t.useState(!1),V=Iq(e=>{null==d||d(e.code)}),g=t.useRef(null);return t.useEffect(()=>(m(!1),q(!0),g.current&&clearTimeout(g.current),g.current=setTimeout(()=>{m(!0)},1e3),()=>{g.current&&clearTimeout(g.current)}),[s]),t.useImperativeHandle(n,()=>({toInstallPackage:e=>{var t,r;(null==(t=p.current)?void 0:t.contentWindow)&&wf.send(null==(r=p.current)?void 0:r.contentWindow,"vgenPackages",{packages:e})}})),S.jsx(r.Spin,{spinning:h,children:S.jsx("div",{className:"codePlayer",children:S.jsx("div",{className:"codePlayerContent",style:{height:l?"":"100%"},children:f&&S.jsx("iframe",{ref:p,allowFullScreen:!0,allow:"clipboard-write;clipboard-read",src:`${o||"https://run.cloudlab.top"}/embedded?fromVgen=true`,style:{border:"none"},title:"CodeRunner",className:"CodeRunner-iframe",onLoad:async()=>{var e,t,n,o;try{q(!1);const d=null==(e=p.current)?void 0:e.contentWindow,{topic:h="",content:f="",lang:m="",code:g="",cases:v=[],css:b="",js:y=""}=s;let S=f;try{S=Lm.parse(f)}catch(l){}let A=[];if("html"===m)if(b||y)A=[g,b||"",y||""];else try{const e=JSON.parse(g);A=[e.html,e.css,e.js]}catch(l){}"html"!==m||A.length||(A=[g,"",""]);let w={...s};const U={title:h,content:S,lang:m,code:"html"===m?A:g,aiEnabled:!1,run:!1,cases:v,customButtons:c?[{name:"提交",value:"submit",style:{background:"#0064ff",color:"#ffffff"}}]:[]};i&&a&&(U.podName=a,U.nameSpace="pty-prod"),wf.send(d,"send",U),c&&wf.on("submit",{window:d},async function(e){var t,n;(null==(t=e.data)?void 0:t.code)?(r.message.success("提交成功,AI开始自动评分..."),c(null==(n=e.data)?void 0:n.code)):r.message.warning("请先作答!")}),wf.on("change",{window:null==(t=p.current)?void 0:t.contentWindow},async function(e){var t,r,n,i,a;if("html"===m)try{const i={html:(null==(t=e.data)?void 0:t[0])??"",css:(null==(r=e.data)?void 0:r[1])??"",js:(null==(n=e.data)?void 0:n[2])??""};w.code=JSON.stringify(i)}catch(l){w.code=(null==(i=e.data)?void 0:i[0])??""}else w.code=(null==(a=e.data)?void 0:a[0])??"";V(w)}),wf.on("errorHandle",{window:null==(n=p.current)?void 0:n.contentWindow},async function(e){var t,r,n;null==u||u({lang:null==(t=e.data)?void 0:t.lang,code:null==(r=e.data)?void 0:r.code,error:null==(n=e.data)?void 0:n.error})}),wf.on("getToken",{window:null==(o=p.current)?void 0:o.contentWindow},async e=>({token:localStorage.getItem("token")}))}catch(l){}}})})})})}),Dm=e=>{const{data:n,hasTitle:i=!0,toScore:a,codeChange:o}=e,{quizBaseUrl:s}=t.useContext(cP),l=t.useRef(null),[c,u]=t.useState(!0),[d,p]=t.useState(!1),h=Iq(e=>{null==o||o(e.code)}),q=t.useRef(null);return t.useEffect(()=>(p(!1),u(!0),q.current&&clearTimeout(q.current),q.current=setTimeout(()=>{p(!0)},1e3),()=>{q.current&&clearTimeout(q.current)}),[n]),S.jsx(r.Spin,{spinning:c,children:S.jsxs("div",{className:"codeQuiz",children:[i&&S.jsx("div",{className:"codeQuizTitle",children:"CodeQuiz"}),S.jsx("div",{className:"codeQuizContent",style:{height:i?"":"100%"},children:d&&S.jsx("iframe",{ref:l,allowFullScreen:!0,allow:"clipboard-write;clipboard-read",src:`${s||"https://quiz.cloudlab.top"}`,style:{border:"none"},title:"CodeQuiz",className:"codeQuiz-iframe",onLoad:async()=>{var e,t,i;try{u(!1);const s=null==(e=l.current)?void 0:e.contentWindow,{topic:c="",content:d="",lang:p="",code:q="",cases:f=[]}=n;let m=f;m=f.map(e=>"string"==typeof e.input?{...e,input:Pq(e.input)||[]}:{...e});let V=d;try{V=Lm.parse(d)}catch(o){}let g={...n};wf.send(s,"send",{title:c,content:V,lang:p,code:q,cases:m,aiEnabled:!1,run:!1,customButtons:a?[{name:"判分",value:"submit",style:{background:"#0064ff",color:"#ffffff"}}]:[]}),a&&wf.on("submit",{window:s},async function(e){var t,n;(null==(t=e.data)?void 0:t.code)?(r.message.success("提交成功,AI开始自动评分..."),a(null==(n=e.data)?void 0:n.code)):r.message.warning("请先作答!")}),wf.on("change",{window:null==(t=l.current)?void 0:t.contentWindow},async function(e){var t,r,n,i;if("html"===p)try{const i={html:(null==(t=e.data)?void 0:t[0])??"",css:(null==(r=e.data)?void 0:r[1])??"",js:(null==(n=e.data)?void 0:n[2])??""};g.code=JSON.stringify(i)}catch(o){g.code=(null==(i=e.data)?void 0:i[0])??""}else g.code=e.data??"";h(g)}),wf.on("getToken",{window:null==(i=l.current)?void 0:i.contentWindow},async e=>({token:localStorage.getItem("token")}))}catch(o){}}})})]})})};var Xm={exports:{}};
|
|
27
27
|
/*!
|
|
28
28
|
Copyright (c) 2018 Jed Watson.
|
|
29
29
|
Licensed under the MIT License (MIT), see
|