junhost 0.2.2 → 0.2.5
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/browser-mcp-server.js +1 -1
- package/dist/index.js +58 -59
- package/dist/mcp-server.js +11 -11
- package/package.json +1 -1
- package/ui-dist/assets/BrowserPage-BGBh4z-R.js +1 -0
- package/ui-dist/assets/DashboardPage-p5NKjE2b.js +1 -0
- package/ui-dist/assets/FilesPage-DhvtFQSF.js +64 -0
- package/ui-dist/assets/FormContext-CdQ9sDWR.js +1 -0
- package/ui-dist/assets/LogsPage-7aaauFsL.js +1 -0
- package/ui-dist/assets/McpPage-DtbL2uXL.js +1 -0
- package/ui-dist/assets/MemoriesPage-w0MWI88A.js +1 -0
- package/ui-dist/assets/{RunsPage-D0xR47tG.js → RunsPage-BNrvTKxB.js} +50 -50
- package/ui-dist/assets/SchedulesPage-BYsWhL4b.js +1 -0
- package/ui-dist/assets/SettingsPage-BVUtUDq9.js +1 -0
- package/ui-dist/assets/SkillsPage-C3SE9cvn.js +1 -0
- package/ui-dist/assets/api-DTaM-PBA.js +1 -0
- package/ui-dist/assets/architecture-7EHR7CIX-oae14Sjp.js +1 -0
- package/ui-dist/assets/{architectureDiagram-3BPJPVTR-k2gsD5OO.js → architectureDiagram-3BPJPVTR-CLvALvWH.js} +1 -1
- package/ui-dist/assets/badge-Czi0QcSt.js +1 -0
- package/ui-dist/assets/{blockDiagram-GPEHLZMM-DW56ELL9.js → blockDiagram-GPEHLZMM-agZaaW3b.js} +1 -1
- package/ui-dist/assets/button-C5SbvNQM.js +1 -0
- package/ui-dist/assets/{c4Diagram-AAUBKEIU-a19n5MC0.js → c4Diagram-AAUBKEIU-BtGNvFTN.js} +1 -1
- package/ui-dist/assets/channel-BJilWGHp.js +1 -0
- package/ui-dist/assets/checkbox-OXJcAFyD.js +1 -0
- package/ui-dist/assets/{chunk-2J33WTMH-Dq1oKvzF.js → chunk-2J33WTMH-Bz0Lx4CH.js} +1 -1
- package/ui-dist/assets/{chunk-3OPIFGDE-DOjepp5u.js → chunk-3OPIFGDE-DlqezFBL.js} +1 -1
- package/ui-dist/assets/{chunk-5ZQYHXKU-DQd7S-DN.js → chunk-5ZQYHXKU-06bRImiz.js} +1 -1
- package/ui-dist/assets/{chunk-727SXJPM-ZC51AjIP.js → chunk-727SXJPM-BACu39ui.js} +1 -1
- package/ui-dist/assets/{chunk-AQP2D5EJ-CWf39VtR.js → chunk-AQP2D5EJ-Chjw9I_j.js} +1 -1
- package/ui-dist/assets/{chunk-BO2N2NFS-HkysRQLG.js → chunk-BO2N2NFS-BH2X3sir.js} +4 -4
- package/ui-dist/assets/{chunk-CSCIHK7Q-Bbq9a-f4.js → chunk-CSCIHK7Q-cNr3wQ4T.js} +3 -3
- package/ui-dist/assets/{chunk-KSCS5N6A-BKp-kveo.js → chunk-KSCS5N6A-C0xPXGha.js} +1 -1
- package/ui-dist/assets/{chunk-L5ZTLDWV-C8BqtMre.js → chunk-L5ZTLDWV-CoUNWrar.js} +1 -1
- package/ui-dist/assets/{chunk-LZXEDZCA-Diyjko3L.js → chunk-LZXEDZCA-DPQ-Ldy1.js} +2 -2
- package/ui-dist/assets/{chunk-ND2GUHAM-BV6JTPNQ.js → chunk-ND2GUHAM-u6TfxADn.js} +1 -1
- package/ui-dist/assets/{chunk-NZK2D7GU-CB-RR-1q.js → chunk-NZK2D7GU-C1GtSkoM.js} +1 -1
- package/ui-dist/assets/{chunk-O5CBEL6O-Zyg3pbBu.js → chunk-O5CBEL6O-Di3YbCi3.js} +1 -1
- package/ui-dist/assets/{chunk-WU5MYG2G-CPYS59Yv.js → chunk-WU5MYG2G-C6fBWWCO.js} +1 -1
- package/ui-dist/assets/{circle-x-BSTd_gmE.js → circle-x-CAsSuVme.js} +1 -1
- package/ui-dist/assets/classDiagram-4FO5ZUOK-D9QMu2xp.js +1 -0
- package/ui-dist/assets/classDiagram-v2-Q7XG4LA2-D9QMu2xp.js +1 -0
- package/ui-dist/assets/collapsible-Dgd4Palj.js +1 -0
- package/ui-dist/assets/{dagre-BM42HDAG-B0nNmf3c.js → dagre-BM42HDAG-A8Y6yGN2.js} +1 -1
- package/ui-dist/assets/{diagram-2AECGRRQ-CmnP-Pwj.js → diagram-2AECGRRQ-CSy7jejs.js} +1 -1
- package/ui-dist/assets/{diagram-5GNKFQAL-DoplqwrH.js → diagram-5GNKFQAL-D00SleZk.js} +1 -1
- package/ui-dist/assets/{diagram-KO2AKTUF-C82yVEmF.js → diagram-KO2AKTUF-Bzkz5rYI.js} +1 -1
- package/ui-dist/assets/{diagram-LMA3HP47-CVf08v2e.js → diagram-LMA3HP47-C2enmWGa.js} +1 -1
- package/ui-dist/assets/{diagram-OG6HWLK6-GN7yiGuE.js → diagram-OG6HWLK6-SEm482Ky.js} +1 -1
- package/ui-dist/assets/dialog-BypJveGC.js +1 -0
- package/ui-dist/assets/{erDiagram-TEJ5UH35-1_XoHZAp.js → erDiagram-TEJ5UH35-D5-7flX_.js} +1 -1
- package/ui-dist/assets/eventmodeling-FCH6USID-Bxy3erui.js +1 -0
- package/ui-dist/assets/{external-link-DiZ5uX5z.js → external-link-DCXGJhiP.js} +1 -1
- package/ui-dist/assets/{flowDiagram-I6XJVG4X-c8jaDuzg.js → flowDiagram-I6XJVG4X-D6Kk1UFg.js} +1 -1
- package/ui-dist/assets/{ganttDiagram-6RSMTGT7-Ck7UsWeu.js → ganttDiagram-6RSMTGT7-SvRvoSwm.js} +1 -1
- package/ui-dist/assets/{gitGraph-WXDBUCRP-sFX7u0r_.js → gitGraph-WXDBUCRP-M4xvAR7q.js} +1 -1
- package/ui-dist/assets/{gitGraphDiagram-PVQCEYII-DSvNtio2.js → gitGraphDiagram-PVQCEYII-CsnXODOl.js} +1 -1
- package/ui-dist/assets/{highlighted-body-OFNGDK62-DesBT53i.js → highlighted-body-OFNGDK62-DHE0Z04J.js} +1 -1
- package/ui-dist/assets/index-BCipkFMc.js +12 -0
- package/ui-dist/assets/{index-CZzHSXB1.css → index-DEggNXsI.css} +1 -1
- package/ui-dist/assets/{info-J43DQDTF-Lf1TcbL5.js → info-J43DQDTF-DJfbaKer.js} +1 -1
- package/ui-dist/assets/{infoDiagram-5YYISTIA-CMVUnYwe.js → infoDiagram-5YYISTIA-ykgWzX2_.js} +1 -1
- package/ui-dist/assets/input-pcSINvE3.js +1 -0
- package/ui-dist/assets/{ishikawaDiagram-YF4QCWOH-8CQOcn5a.js → ishikawaDiagram-YF4QCWOH-CWlbevKa.js} +1 -1
- package/ui-dist/assets/{journeyDiagram-JHISSGLW-CrgcWtuA.js → journeyDiagram-JHISSGLW-Co9hkrSV.js} +1 -1
- package/ui-dist/assets/{kanban-definition-UN3LZRKU-DM4XwTkG.js → kanban-definition-UN3LZRKU-BqYnrzvT.js} +1 -1
- package/ui-dist/assets/katex-DzkW7LcA.js +1 -0
- package/ui-dist/assets/{key-round-D965pLEl.js → key-round-i_iJarVP.js} +1 -1
- package/ui-dist/assets/label-Bu19spuB.js +1 -0
- package/ui-dist/assets/{line-8DyrseaS.js → line-De084cjd.js} +1 -1
- package/ui-dist/assets/mermaid-GHXKKRXX-CD13uw1J.js +1 -0
- package/ui-dist/assets/{mermaid-parser.core-BflpgWAW.js → mermaid-parser.core-BgxY7hnP.js} +2 -2
- package/ui-dist/assets/{mindmap-definition-RKZ34NQL-Bjgr9zoF.js → mindmap-definition-RKZ34NQL-LkEZGFmn.js} +1 -1
- package/ui-dist/assets/{packet-YPE3B663-BhtAK3Ll.js → packet-YPE3B663-BkDiC9SL.js} +1 -1
- package/ui-dist/assets/{pause-h76ixDr5.js → pause-DhMeMeEd.js} +1 -1
- package/ui-dist/assets/{pie-LRSECV5Y-BsSRI3VF.js → pie-LRSECV5Y-C89oa4ep.js} +1 -1
- package/ui-dist/assets/{pieDiagram-4H26LBE5-Bp52danX.js → pieDiagram-4H26LBE5-dPB1x16f.js} +1 -1
- package/ui-dist/assets/play-D3mjFMmX.js +1 -0
- package/ui-dist/assets/{quadrantDiagram-W4KKPZXB-2-HXTKYE.js → quadrantDiagram-W4KKPZXB-C_mqMlKY.js} +1 -1
- package/ui-dist/assets/{radar-GUYGQ44K-jd5iouXS.js → radar-GUYGQ44K-DTBZ6zeL.js} +1 -1
- package/ui-dist/assets/{requirementDiagram-4Y6WPE33-BilSVdwW.js → requirementDiagram-4Y6WPE33-C02Lll9V.js} +1 -1
- package/ui-dist/assets/{rotate-cw-B1ZRM7VI.js → rotate-cw-BUTALXBe.js} +1 -1
- package/ui-dist/assets/{sankeyDiagram-5OEKKPKP-CoFgnJWS.js → sankeyDiagram-5OEKKPKP-BpCTN0fI.js} +1 -1
- package/ui-dist/assets/search-CKqhWG6h.js +1 -0
- package/ui-dist/assets/select-BPFroWD-.js +1 -0
- package/ui-dist/assets/{sequenceDiagram-3UESZ5HK-joTVEA7C.js → sequenceDiagram-3UESZ5HK-BSZzFC0b.js} +1 -1
- package/ui-dist/assets/square-COjZqkOL.js +1 -0
- package/ui-dist/assets/{stateDiagram-AJRCARHV-D79-k_XU.js → stateDiagram-AJRCARHV-sbrBtcyv.js} +1 -1
- package/ui-dist/assets/stateDiagram-v2-BHNVJYJU-Dvy9QnJ1.js +1 -0
- package/ui-dist/assets/tabs-RuXfAo0Q.js +1 -0
- package/ui-dist/assets/textarea-CwL3B5t5.js +1 -0
- package/ui-dist/assets/{timeline-definition-PNZ67QCA-D8MLBaMD.js → timeline-definition-PNZ67QCA-DerlFFtJ.js} +1 -1
- package/ui-dist/assets/{trash-2-D4CnL8wv.js → trash-2-D5W0vize.js} +1 -1
- package/ui-dist/assets/{treeView-BLDUP644-POJvg-dl.js → treeView-BLDUP644-CHplYEW1.js} +1 -1
- package/ui-dist/assets/{treemap-LRROVOQU-DS7TnyOD.js → treemap-LRROVOQU-DQciiAhX.js} +1 -1
- package/ui-dist/assets/useBaseUiId-DL38u1cQ.js +1 -0
- package/ui-dist/assets/useButton-kcIJA9wR.js +1 -0
- package/ui-dist/assets/useCompositeListItem-aicL7pEO.js +1 -0
- package/ui-dist/assets/useRegisterFieldControl-DOObtV36.js +1 -0
- package/ui-dist/assets/{vennDiagram-CIIHVFJN-D0EqM2aD.js → vennDiagram-CIIHVFJN-DItyMCJy.js} +1 -1
- package/ui-dist/assets/{wardley-L42UT6IY-ZBPaCQPM.js → wardley-L42UT6IY-rnuyIYo6.js} +1 -1
- package/ui-dist/assets/{wardleyDiagram-YWT4CUSO-CN9nmvW3.js → wardleyDiagram-YWT4CUSO-BfG0cbM-.js} +1 -1
- package/ui-dist/assets/{xychartDiagram-2RQKCTM6-CTV-CuX-.js → xychartDiagram-2RQKCTM6-DmzunUZx.js} +1 -1
- package/ui-dist/index.html +4 -4
- package/ui-dist/assets/BrowserPage-BwT5k8-s.js +0 -1
- package/ui-dist/assets/DashboardPage-BvxkAL6I.js +0 -1
- package/ui-dist/assets/FilesPage-Br3C0Pem.js +0 -64
- package/ui-dist/assets/FormContext-6Ydu-jal.js +0 -1
- package/ui-dist/assets/LogsPage-D7DXOEb9.js +0 -1
- package/ui-dist/assets/McpPage-CecHRhqq.js +0 -1
- package/ui-dist/assets/MemoriesPage-DBq4WGnc.js +0 -1
- package/ui-dist/assets/SchedulesPage-P4MkReA9.js +0 -1
- package/ui-dist/assets/SettingsPage-DCe6V1dk.js +0 -1
- package/ui-dist/assets/SkillsPage-CbJM3z7o.js +0 -1
- package/ui-dist/assets/architecture-7EHR7CIX-D_7WJiS2.js +0 -1
- package/ui-dist/assets/badge-DjyNiZCE.js +0 -1
- package/ui-dist/assets/button-Cg-0y2B2.js +0 -1
- package/ui-dist/assets/channel-D9Lx8ecr.js +0 -1
- package/ui-dist/assets/checkbox-Bwtgo2Iq.js +0 -1
- package/ui-dist/assets/classDiagram-4FO5ZUOK-DdMTKe_j.js +0 -1
- package/ui-dist/assets/classDiagram-v2-Q7XG4LA2-DdMTKe_j.js +0 -1
- package/ui-dist/assets/collapsible-BbFbh2zH.js +0 -1
- package/ui-dist/assets/dialog-BlNguSbT.js +0 -1
- package/ui-dist/assets/eventmodeling-FCH6USID-CYsRhu9T.js +0 -1
- package/ui-dist/assets/index-73cjKBdb.js +0 -12
- package/ui-dist/assets/input-DHLFV6Sc.js +0 -1
- package/ui-dist/assets/katex-9FE8ZsoR.js +0 -1
- package/ui-dist/assets/label-CxX4-RmK.js +0 -1
- package/ui-dist/assets/mermaid-GHXKKRXX-DBJCUbG7.js +0 -1
- package/ui-dist/assets/play-B4R5rXMZ.js +0 -1
- package/ui-dist/assets/search-09Pme-NO.js +0 -1
- package/ui-dist/assets/select-D9XYqRQR.js +0 -1
- package/ui-dist/assets/square-_9cV5Fet.js +0 -1
- package/ui-dist/assets/stateDiagram-v2-BHNVJYJU-BtJOy0q4.js +0 -1
- package/ui-dist/assets/tabs-DnAM3F1s.js +0 -1
- package/ui-dist/assets/textarea-5JHEEgU-.js +0 -1
- package/ui-dist/assets/useBaseUiId-dSIElxm7.js +0 -1
- package/ui-dist/assets/useButton-DKtiRcm8.js +0 -1
- package/ui-dist/assets/useCompositeListItem-C7NilwuX.js +0 -1
- package/ui-dist/assets/useRegisterFieldControl-CbOBCC3j.js +0 -1
- package/ui-dist/assets/utils-BX1Diber.js +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/angular-html-BKhkKBsm.js","assets/chunk-Cyuzqnbw.js","assets/html-Kpl3bQKd.js","assets/css-D7o5g6xi.js","assets/javascript-i_rUTyCW.js","assets/angular-ts-CYPbMJCA.js","assets/scss-CPnU-uuv.js","assets/apl-D7bENxmy.js","assets/json-DS5j4FfK.js","assets/xml-C33zriiW.js","assets/java-Cst_eZTE.js","assets/astro-B1l9MDUT.js","assets/postcss-BunjpCQr.js","assets/tsx-DFvk7AwW.js","assets/typescript-DHTLvXzV.js","assets/blade-BlkqRXu6.js","assets/html-derivative-BEEWNZ8Y.js","assets/sql-hpBkusIy.js","assets/bsl-DJOyloKD.js","assets/sdbl-DzilZtvS.js","assets/c-PpPxyn8g.js","assets/cairo-CDc8os0h.js","assets/python-DkGugaUl.js","assets/cobol-BoXxFQjh.js","assets/coffee-Dl-rf7k6.js","assets/cpp-CVIk4zoB.js","assets/glsl-MPwHyiXQ.js","assets/regexp-Bu0flJgP.js","assets/crystal-CvUuUt6_.js","assets/shellscript-BbTp1yjG.js","assets/edge-CmXZi-az.js","assets/elixir-BoRIkjDi.js","assets/elm-BN_gLVH_.js","assets/erb-DuMAGb6i.js","assets/ruby-CUQsVT6d.js","assets/graphql-NW854Khs.js","assets/jsx-CFyhNHav.js","assets/haml-Dmb1YmHj.js","assets/lua-VoGSg0xb.js","assets/yaml-w0rMsuN4.js","assets/erlang-Dej7b2OY.js","assets/markdown-Bk5jPFPK.js","assets/fortran-fixed-form-RVbzjQ2q.js","assets/fortran-free-form-EhmKDVgM.js","assets/fsharp-DKW21_Cq.js","assets/gdresource-b7MixKdf.js","assets/gdscript-DbNIuFFJ.js","assets/gdshader-C7BToOo8.js","assets/git-commit-BU_RZ1WH.js","assets/diff-COJGj3FI.js","assets/git-rebase-DfgjiXG9.js","assets/glimmer-js--VVKNatA.js","assets/glimmer-ts-Bfa_wiNC.js","assets/hack-CSl79E5u.js","assets/handlebars-Du8DtnRB.js","assets/http-CTnm0cit.js","assets/hurl-CpwzV4SP.js","assets/csv-aQe9eWwB.js","assets/hxml-B_tSdhCX.js","assets/haxe-BZXihDV-.js","assets/jinja-CaXggA6f.js","assets/jison-UUT3aynj.js","assets/julia-R8NNmfP1.js","assets/r-D2d3McyU.js","assets/just-BhhHYlS8.js","assets/perl-BLMySlFJ.js","assets/latex-D5k_uhWv.js","assets/tex-C3KbjgWU.js","assets/liquid-Q0_hzjly.js","assets/marko-D_aeUD__.js","assets/less-BGJv5CZz.js","assets/mdc-BSifqehP.js","assets/nextflow-Bbiyy34d.js","assets/nextflow-groovy-Dc_ddanL.js","assets/nginx-BNb4NZk1.js","assets/nim-BuixXxPS.js","assets/php-Czf_fybR.js","assets/pug-CsZglf8T.js","assets/qml-BPgOJK7U.js","assets/razor-oFpUW61Z.js","assets/csharp-Ct8U2NOr.js","assets/rst-U6Eu7ipE.js","assets/cmake-CbIxKMg_.js","assets/sas-CNBFrLhc.js","assets/shaderlab-QzRPXpa3.js","assets/hlsl-BxIm9IaD.js","assets/shellsession-BebtDBlY.js","assets/soy-CdbyEXp6.js","assets/sparql-BQ8pLLZr.js","assets/turtle-CA3RhB-1.js","assets/stata-DVbvk3qH.js","assets/surrealql-CiJ5GSG5.js","assets/svelte-DzNm5V2w.js","assets/templ-CsM0tTsw.js","assets/go-BJwz_mda.js","assets/ts-tags-Bf-FGGvT.js","assets/twig-VJ4-Ntm0.js","assets/vue-D3dSYZKz.js","assets/vue-html-n-yWadYX.js","assets/vue-vine-B67Dz05t.js","assets/stylus-BrO8Mu5X.js","assets/xsl-C2_ECGp9.js","assets/c4Diagram-AAUBKEIU-
|
|
2
|
-
import{a as e,i as t,n,r}from"./chunk-Cyuzqnbw.js";import{i,r as a}from"./bundle-mjs-DssaXR6m.js";import{t as o}from"./react-dom-Bm-PY09n.js";import{B as s,C as c,H as l,I as u,L as d,M as f,N as p,V as m,d as h,i as g,n as _,s as v,t as y,z as b}from"./utils-BX1Diber.js";import{i as x,t as S,u as C,v as w,x as T}from"./useBaseUiId-dSIElxm7.js";import{a as E,c as ee,i as te,l as D,n as ne,o as re,r as ie,s as ae,t as oe,u as se}from"./select-D9XYqRQR.js";import{i as ce,n as O,r as le,t as ue}from"./collapsible-BbFbh2zH.js";import{t as de}from"./circle-x-BSTd_gmE.js";import{t as fe}from"./key-round-D965pLEl.js";import{E as pe}from"./useCompositeListItem-C7NilwuX.js";import{t as me}from"./search-09Pme-NO.js";import{t as he}from"./square-_9cV5Fet.js";import{a as ge,c as _e,i as ve,l as ye,n as be,o as xe,r as Se,s as Ce,t as we}from"./dialog-BlNguSbT.js";import{At as Te,Bt as Ee,C as De,D as Oe,Gt as ke,H as Ae,Ht as je,Jt as Me,Kt as Ne,L as Pe,M as Fe,O as Ie,P as Le,Qt as Re,S as ze,T as Be,U as Ve,Ut as He,V as Ue,Wt as We,X as Ge,Yt as Ke,Zt as qe,_ as Je,a as Ye,b as Xe,d as Ze,en as Qe,f as $e,h as et,i as tt,k as nt,kt as rt,l as it,m as at,n as ot,nn as k,o as st,p as ct,r as lt,s as ut,v as dt,w as ft,wt as pt,x as mt,y as ht,z as gt}from"./index-73cjKBdb.js";import{n as _t,t as vt}from"./button-Cg-0y2B2.js";import{t as yt}from"./badge-DjyNiZCE.js";import{t as bt}from"./label-CxX4-RmK.js";import{C as xt,D as St,E as Ct,O as wt,S as Tt,T as Et,_ as Dt,b as Ot,c as kt,d as At,f as jt,g as Mt,h as Nt,l as Pt,m as Ft,o as It,p as Lt,r as Rt,s as zt,u as Bt,v as Vt,w as Ht,x as Ut,y as Wt}from"./chunk-BO2N2NFS-HkysRQLG.js";import{_ as Gt,g as Kt,h as A,p as qt}from"./src-D-NMWEou.js";import{$ as Jt,C as Yt,E as Xt,I as Zt,L as Qt,N as $t,P as en,Q as tn,S as nn,T as rn,V as an,W as on,X as sn,Z as cn,_ as ln,b as un,c as dn,g as fn,l as pn,m as mn,n as hn,p as gn,q as _n,r as vn,t as yn,u as bn}from"./chunk-CSCIHK7Q-Bbq9a-f4.js";import{S as xn,a as Sn,f as Cn,g as wn,h as Tn,i as En,o as Dn,v as On,x as kn,y as An}from"./chunk-5ZQYHXKU-DQd7S-DN.js";import{t as jn}from"./chunk-WU5MYG2G-CPYS59Yv.js";import{n as Mn,t as Nn}from"./chunk-XPW4576I-ru3A962d.js";import"./chunk-BSJP7CBP-DIpfLhEz.js";import"./chunk-L5ZTLDWV-C8BqtMre.js";import"./chunk-NZK2D7GU-CB-RR-1q.js";import{i as Pn,o as Fn}from"./chunk-O5CBEL6O-Zyg3pbBu.js";import"./chunk-3OPIFGDE-DOjepp5u.js";import"./chunk-KSCS5N6A-BKp-kveo.js";import{n as In}from"./chunk-LZXEDZCA-Diyjko3L.js";var Ln=T(`arrow-down`,[[`path`,{d:`M12 5v14`,key:`s699le`}],[`path`,{d:`m19 12-7 7-7-7`,key:`1idqje`}]]),Rn=T(`cpu`,[[`path`,{d:`M12 20v2`,key:`1lh1kg`}],[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M17 20v2`,key:`1rnc9c`}],[`path`,{d:`M17 2v2`,key:`11trls`}],[`path`,{d:`M2 12h2`,key:`1t8f8n`}],[`path`,{d:`M2 17h2`,key:`7oei6x`}],[`path`,{d:`M2 7h2`,key:`asdhe0`}],[`path`,{d:`M20 12h2`,key:`1q8mjw`}],[`path`,{d:`M20 17h2`,key:`1fpfkl`}],[`path`,{d:`M20 7h2`,key:`1o8tra`}],[`path`,{d:`M7 20v2`,key:`4gnj0m`}],[`path`,{d:`M7 2v2`,key:`1i4yhu`}],[`rect`,{x:`4`,y:`4`,width:`16`,height:`16`,rx:`2`,key:`1vbyd7`}],[`rect`,{x:`8`,y:`8`,width:`8`,height:`8`,rx:`1`,key:`z9xiuo`}]]),zn=T(`dot`,[[`circle`,{cx:`12.1`,cy:`12.1`,r:`1`,key:`18d7e5`}]]),Bn=T(`eraser`,[[`path`,{d:`M21 21H8a2 2 0 0 1-1.42-.587l-3.994-3.999a2 2 0 0 1 0-2.828l10-10a2 2 0 0 1 2.829 0l5.999 6a2 2 0 0 1 0 2.828L12.834 21`,key:`g5wo59`}],[`path`,{d:`m5.082 11.09 8.828 8.828`,key:`1wx5vj`}]]),Vn=T(`file-pen`,[[`path`,{d:`M12.659 22H18a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v9.34`,key:`o6klzx`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10.378 12.622a1 1 0 0 1 3 3.003L8.36 20.637a2 2 0 0 1-.854.506l-2.867.837a.5.5 0 0 1-.62-.62l.836-2.869a2 2 0 0 1 .506-.853z`,key:`zhnas1`}]]),Hn=T(`file-text`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10 9H8`,key:`b1mrlr`}],[`path`,{d:`M16 13H8`,key:`t4e002`}],[`path`,{d:`M16 17H8`,key:`z1uh3a`}]]),Un=T(`image`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`,key:`1m3agn`}],[`circle`,{cx:`9`,cy:`9`,r:`2`,key:`af1f0g`}],[`path`,{d:`m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21`,key:`1xmnt7`}]]),Wn=T(`music-2`,[[`circle`,{cx:`8`,cy:`18`,r:`4`,key:`1fc0mg`}],[`path`,{d:`M12 18V2l7 4`,key:`g04rme`}]]),Gn=T(`paperclip`,[[`path`,{d:`m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551`,key:`1miecu`}]]),Kn=T(`shield-question-mark`,[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`M9.1 9a3 3 0 0 1 5.82 1c0 2-3 3-3 3`,key:`mhlwft`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]]),qn=T(`sliders-horizontal`,[[`path`,{d:`M10 5H3`,key:`1qgfaw`}],[`path`,{d:`M12 19H3`,key:`yhmn1j`}],[`path`,{d:`M14 3v4`,key:`1sua03`}],[`path`,{d:`M16 17v4`,key:`1q0r14`}],[`path`,{d:`M21 12h-9`,key:`1o4lsq`}],[`path`,{d:`M21 19h-5`,key:`1rlt1p`}],[`path`,{d:`M21 5h-7`,key:`1oszz2`}],[`path`,{d:`M8 10v4`,key:`tgpxqk`}],[`path`,{d:`M8 12H3`,key:`a7s4jb`}]]),Jn=T(`terminal`,[[`path`,{d:`M12 19h8`,key:`baeox8`}],[`path`,{d:`m4 17 6-6-6-6`,key:`1yngyt`}]]),Yn=T(`video`,[[`path`,{d:`m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5`,key:`ftymec`}],[`rect`,{x:`2`,y:`6`,width:`14`,height:`12`,rx:`2`,key:`158x01`}]]),Xn=T(`wrench`,[[`path`,{d:`M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z`,key:`1ngwbx`}]]);function Zn(e,t,n,r){return{left:e,top:t,right:n,bottom:r,x:e,y:t,width:n-e,height:r-t}}function Qn(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom,width:e.width,height:e.height}}function $n(e){let t=[],n,r=1/0,i=1/0,a=-1/0,o=-1/0;for(let s of Array.from(e).sort((e,t)=>e.top-t.top)){if(r=Math.min(r,s.left),i=Math.min(i,s.top),a=Math.max(a,s.right),o=Math.max(o,s.bottom),!n||s.top-n.top>n.height/2)t.push(Qn(s));else{let e=t[t.length-1];e.left=Math.min(e.left,s.left),e.right=Math.max(e.right,s.right),e.bottom=Math.max(e.bottom,s.bottom),e.width=e.right-e.left,e.height=e.bottom-e.top}n=s}return{lines:t,fallback:Zn(r,i,a,o)}}function er(e,t,n){return e.findIndex(e=>t>e.left-2&&t<e.right+2&&n>e.top-2&&n<e.bottom+2)}function tr(e){return Zn(e.left,e.top,e.right,e.bottom)}function nr(e,t,n){let{lines:r}=$n(e.getClientRects());if(r.length<2)return;let i=er(r,t,n);return{x:t,y:n,lineIndex:i===-1?void 0:i,element:e}}function rr(e,t,n){let{lines:r,fallback:i}=$n(e.getClientRects());if(r.length<2)return null;let a=n?.x,o=n?.y,s=t[0];if(n?.lineIndex!=null&&r[n.lineIndex])return tr(r[n.lineIndex]);if(a!=null&&o!=null){let e=er(r,a,o);if(e!==-1)return tr(r[e])}if(r.length===2&&r[0].left>r[1].right&&a!=null&&o!=null)return i;if(s===`t`||s===`b`){let e=r[0],t=r[r.length-1],n=s===`t`?e:t;return Zn(n.left,e.top,n.right,t.bottom)}let c=s===`l`,l=r[0].left,u=r[0].right,d=c?1/0:-1/0,f=r[0],p=r[0];for(let e of r){l=Math.min(l,e.left),u=Math.max(u,e.right);let t=c?e.left:e.right;c&&t<d||!c&&t>d?(d=t,f=e,p=e):t===d&&(p=e)}return Zn(l,f.top,u,p.bottom)}function ir(e){return`contextElement`in e&&e.contextElement?e.contextElement:c(e)?e:void 0}function ar(e,t){function n(t){or(e,t.currentTarget,t.clientX,t.clientY)}function r(e){t||n(e)}return{onFocus(){e.current=void 0},onMouseEnter:n,onMouseMove:r}}function or(e,t,n,r){let i=nr(t,n,r);return e.current=i,i}function sr(e){return{name:`inline`,async fn(t){let n=t.elements.reference;if(typeof n?.getClientRects!=`function`)return{};let r=ir(n),i=e.current,a=i?.element===n||i?.element===r?i:void 0,o=rr(n,t.placement,a);if(!o||typeof t.platform.getElementRects!=`function`)return{};let s=await t.platform.getElementRects({reference:{contextElement:r,getBoundingClientRect(){return o}},floating:t.elements.floating,strategy:t.strategy});return t.rects.reference.x===s.reference.x&&t.rects.reference.y===s.reference.y&&t.rects.reference.width===s.reference.width&&t.rects.reference.height===s.reference.height?{}:{reset:{rects:s}}}}}var j=e(i(),1);function cr(e){let t=[],n=null;for(let r of e){if(r.kind===`user`){t.push(r),n=null;continue}if(n||(n={kind:`assistant-turn`,key:`turn:${r.key}`,blocks:[]},t.push(n)),r.kind===`tool`){let e=n.blocks[n.blocks.length-1];e?.kind===`tools`?e.tools.push(r):n.blocks.push({kind:`tools`,key:`tools:${r.key}`,tools:[r]})}else n.blocks.push(r)}return t}var lr=e=>typeof e==`object`&&e?e:{},M=e=>typeof e==`string`?e:void 0,ur=new Set([`run.failed`,`codex.error`]);function dr(e){let t=new Set,n=[];for(let r of e)t.has(r.id)||(t.add(r.id),n.push(r));return n}function fr(e,t){switch(e){case`commandExecution`:{let e=t.command;return typeof e==`string`?e:Array.isArray(e)?e.join(` `):`Run command`}case`fileChange`:{let e=(Array.isArray(t.changes)?t.changes:[]).map(e=>M(lr(e).path)).filter(Boolean).map(e=>String(e).split(/[\\/]/).pop());return e.length>0?`Edit ${e.join(`, `)}`:`Edit files`}case`mcpToolCall`:return[M(t.server)??M(t.serverName),M(t.tool)??M(t.toolName)].filter(Boolean).join(`.`)||`MCP tool call`;case`webSearch`:return M(t.query)??`Web search`;default:return e}}function pr(e,t){switch(e){case`commandExecution`:return{command:t.command,cwd:t.cwd};case`fileChange`:return t.changes??t;case`mcpToolCall`:return t.args??t.arguments??t;default:{let{id:e,type:n,...r}=t;return r}}}function mr(e){let t=lr(e),n=Array.isArray(t.entries)?t.entries:[],r=Array.isArray(t.threadIds)?t.threadIds.filter(e=>typeof e==`string`):[],i=n.map(e=>{let t=lr(e),n=M(t.path);return n?{path:n,lineStart:typeof t.lineStart==`number`?t.lineStart:0,lineEnd:typeof t.lineEnd==`number`?t.lineEnd:0,note:M(t.note)??``}:null}).filter(e=>e!==null);if(!(i.length===0&&r.length===0))return{threadIds:r,entries:i}}function hr(e){let t=M(e.status);return t===`failed`||t===`error`||t===`declined`}function gr(e){let t=lr(e);if(typeof t.reason==`string`)return t.reason;let n=JSON.stringify(e);return!n||n===`{}`?``:n.length>200?n.slice(0,200)+`…`:n}function _r(e){let t=[],n=new Map,r=new Map,i=new Map,a=new Map;for(let o of e){let e=lr(o.payload);if(o.type===`run.started`||o.type===`run.resumed`||o.type===`run.steered`){t.push({kind:`user`,key:o.id,text:M(e.prompt)??``,attachments:Array.isArray(e.attachments)?e.attachments:[]});continue}if(o.type===`run.review.started`){let n=M(e.instructions);t.push({kind:`user`,key:o.id,text:n?`/review ${n}`:`/review uncommitted changes`,attachments:[]});continue}if(o.type===`run.compact.started`){t.push({kind:`event`,key:o.id,type:`compact`,summary:`Compacting conversation context…`});continue}if(o.type===`run.fast`){t.push({kind:`event`,key:o.id,type:`fast`,summary:e.enabled===!0?`Fast mode on — 1.5x speed, increased usage`:`Fast mode off`});continue}if(o.type===`codex.message.delta`){let r=M(e.itemId)??o.id,i=M(e.delta)??M(e.text)??``,a=n.get(r);if(a)a.text+=i;else{let e={kind:`assistant`,key:`msg:${r}`,text:i};n.set(r,e),t.push(e)}continue}if(o.type===`codex.item.reasoning.summaryPartAdded`){let t=M(e.itemId),n=t?r.get(t):void 0;n&&n.text.length>0&&(n.text+=`
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/angular-html-BKhkKBsm.js","assets/chunk-Cyuzqnbw.js","assets/html-Kpl3bQKd.js","assets/css-D7o5g6xi.js","assets/javascript-i_rUTyCW.js","assets/angular-ts-CYPbMJCA.js","assets/scss-CPnU-uuv.js","assets/apl-D7bENxmy.js","assets/json-DS5j4FfK.js","assets/xml-C33zriiW.js","assets/java-Cst_eZTE.js","assets/astro-B1l9MDUT.js","assets/postcss-BunjpCQr.js","assets/tsx-DFvk7AwW.js","assets/typescript-DHTLvXzV.js","assets/blade-BlkqRXu6.js","assets/html-derivative-BEEWNZ8Y.js","assets/sql-hpBkusIy.js","assets/bsl-DJOyloKD.js","assets/sdbl-DzilZtvS.js","assets/c-PpPxyn8g.js","assets/cairo-CDc8os0h.js","assets/python-DkGugaUl.js","assets/cobol-BoXxFQjh.js","assets/coffee-Dl-rf7k6.js","assets/cpp-CVIk4zoB.js","assets/glsl-MPwHyiXQ.js","assets/regexp-Bu0flJgP.js","assets/crystal-CvUuUt6_.js","assets/shellscript-BbTp1yjG.js","assets/edge-CmXZi-az.js","assets/elixir-BoRIkjDi.js","assets/elm-BN_gLVH_.js","assets/erb-DuMAGb6i.js","assets/ruby-CUQsVT6d.js","assets/graphql-NW854Khs.js","assets/jsx-CFyhNHav.js","assets/haml-Dmb1YmHj.js","assets/lua-VoGSg0xb.js","assets/yaml-w0rMsuN4.js","assets/erlang-Dej7b2OY.js","assets/markdown-Bk5jPFPK.js","assets/fortran-fixed-form-RVbzjQ2q.js","assets/fortran-free-form-EhmKDVgM.js","assets/fsharp-DKW21_Cq.js","assets/gdresource-b7MixKdf.js","assets/gdscript-DbNIuFFJ.js","assets/gdshader-C7BToOo8.js","assets/git-commit-BU_RZ1WH.js","assets/diff-COJGj3FI.js","assets/git-rebase-DfgjiXG9.js","assets/glimmer-js--VVKNatA.js","assets/glimmer-ts-Bfa_wiNC.js","assets/hack-CSl79E5u.js","assets/handlebars-Du8DtnRB.js","assets/http-CTnm0cit.js","assets/hurl-CpwzV4SP.js","assets/csv-aQe9eWwB.js","assets/hxml-B_tSdhCX.js","assets/haxe-BZXihDV-.js","assets/jinja-CaXggA6f.js","assets/jison-UUT3aynj.js","assets/julia-R8NNmfP1.js","assets/r-D2d3McyU.js","assets/just-BhhHYlS8.js","assets/perl-BLMySlFJ.js","assets/latex-D5k_uhWv.js","assets/tex-C3KbjgWU.js","assets/liquid-Q0_hzjly.js","assets/marko-D_aeUD__.js","assets/less-BGJv5CZz.js","assets/mdc-BSifqehP.js","assets/nextflow-Bbiyy34d.js","assets/nextflow-groovy-Dc_ddanL.js","assets/nginx-BNb4NZk1.js","assets/nim-BuixXxPS.js","assets/php-Czf_fybR.js","assets/pug-CsZglf8T.js","assets/qml-BPgOJK7U.js","assets/razor-oFpUW61Z.js","assets/csharp-Ct8U2NOr.js","assets/rst-U6Eu7ipE.js","assets/cmake-CbIxKMg_.js","assets/sas-CNBFrLhc.js","assets/shaderlab-QzRPXpa3.js","assets/hlsl-BxIm9IaD.js","assets/shellsession-BebtDBlY.js","assets/soy-CdbyEXp6.js","assets/sparql-BQ8pLLZr.js","assets/turtle-CA3RhB-1.js","assets/stata-DVbvk3qH.js","assets/surrealql-CiJ5GSG5.js","assets/svelte-DzNm5V2w.js","assets/templ-CsM0tTsw.js","assets/go-BJwz_mda.js","assets/ts-tags-Bf-FGGvT.js","assets/twig-VJ4-Ntm0.js","assets/vue-D3dSYZKz.js","assets/vue-html-n-yWadYX.js","assets/vue-vine-B67Dz05t.js","assets/stylus-BrO8Mu5X.js","assets/xsl-C2_ECGp9.js","assets/c4Diagram-AAUBKEIU-BtGNvFTN.js","assets/dist-D4B_Bs5p.js","assets/src-D-NMWEou.js","assets/chunk-5ZQYHXKU-06bRImiz.js","assets/chunk-CSCIHK7Q-cNr3wQ4T.js","assets/index-BCipkFMc.js","assets/api-DTaM-PBA.js","assets/bundle-mjs-DssaXR6m.js","assets/useBaseUiId-DL38u1cQ.js","assets/react-dom-Bm-PY09n.js","assets/index-DEggNXsI.css","assets/chunk-ND2GUHAM-u6TfxADn.js","assets/flowDiagram-I6XJVG4X-D6Kk1UFg.js","assets/chunk-O5CBEL6O-Di3YbCi3.js","assets/channel-BJilWGHp.js","assets/chunk-2J33WTMH-Bz0Lx4CH.js","assets/chunk-3OPIFGDE-DlqezFBL.js","assets/chunk-L5ZTLDWV-CoUNWrar.js","assets/chunk-NZK2D7GU-C1GtSkoM.js","assets/rough.esm-CSKSodPl.js","assets/chunk-55IACEB6-QyFAFTWp.js","assets/chunk-BSJP7CBP-DIpfLhEz.js","assets/chunk-FMBD7UC4-C9D6P7Uq.js","assets/chunk-KSCS5N6A-C0xPXGha.js","assets/line-De084cjd.js","assets/path-BWPyau1x.js","assets/array-BifhSqXX.js","assets/chunk-LZXEDZCA-DPQ-Ldy1.js","assets/chunk-XPW4576I-ru3A962d.js","assets/erDiagram-TEJ5UH35-D5-7flX_.js","assets/gitGraphDiagram-PVQCEYII-CsnXODOl.js","assets/mermaid-parser.core-BgxY7hnP.js","assets/chunk-NNHCCRGN-DlpIbxXb.js","assets/chunk-4BX2VUAB-C0kf5ycP.js","assets/chunk-QZHKN3VN-CyVdgm44.js","assets/ganttDiagram-6RSMTGT7-SvRvoSwm.js","assets/linear-BktLjFGX.js","assets/defaultLocale-C8Fc0cco.js","assets/init-D6jRqBbL.js","assets/infoDiagram-5YYISTIA-ykgWzX2_.js","assets/chunk-WU5MYG2G-C6fBWWCO.js","assets/pieDiagram-4H26LBE5-dPB1x16f.js","assets/ordinal-hYBb2elL.js","assets/arc-8BWbC-0s.js","assets/quadrantDiagram-W4KKPZXB-C_mqMlKY.js","assets/xychartDiagram-2RQKCTM6-DmzunUZx.js","assets/requirementDiagram-4Y6WPE33-C02Lll9V.js","assets/sequenceDiagram-3UESZ5HK-BSZzFC0b.js","assets/classDiagram-4FO5ZUOK-D9QMu2xp.js","assets/chunk-727SXJPM-BACu39ui.js","assets/classDiagram-v2-Q7XG4LA2-D9QMu2xp.js","assets/stateDiagram-AJRCARHV-sbrBtcyv.js","assets/dagre-Bx709z4p.js","assets/graphlib-B8gBHxth.js","assets/chunk-AQP2D5EJ-Chjw9I_j.js","assets/stateDiagram-v2-BHNVJYJU-Dvy9QnJ1.js","assets/journeyDiagram-JHISSGLW-Co9hkrSV.js","assets/timeline-definition-PNZ67QCA-DerlFFtJ.js","assets/mindmap-definition-RKZ34NQL-LkEZGFmn.js","assets/kanban-definition-UN3LZRKU-BqYnrzvT.js","assets/sankeyDiagram-5OEKKPKP-BpCTN0fI.js","assets/diagram-LMA3HP47-C2enmWGa.js","assets/diagram-2AECGRRQ-CSy7jejs.js","assets/blockDiagram-GPEHLZMM-agZaaW3b.js","assets/diagram-5GNKFQAL-D00SleZk.js","assets/architectureDiagram-3BPJPVTR-CLvALvWH.js","assets/cytoscape.esm-h6BdjjI9.js","assets/diagram-KO2AKTUF-Bzkz5rYI.js","assets/ishikawaDiagram-YF4QCWOH-CWlbevKa.js","assets/vennDiagram-CIIHVFJN-DItyMCJy.js","assets/diagram-OG6HWLK6-SEm482Ky.js","assets/wardleyDiagram-YWT4CUSO-BfG0cbM-.js","assets/angular-html-DrvEcI8G.js","assets/html-x4KE3xEi.js","assets/css-Dflf0SUa.js","assets/javascript-DywGHrES.js","assets/angular-ts-D8CUV3s9.js","assets/scss-DdIrFDxD.js","assets/apl-PcM4Dp7k.js","assets/json-BbGuGINB.js","assets/xml-DI0syHFL.js","assets/java-BIlOlX09.js","assets/astro-DcteBnKj.js","assets/postcss-BXeXVLqQ.js","assets/tsx-0GViXbh-.js","assets/typescript-C03X-V26.js","assets/blade-6YnoPBU8.js","assets/html-derivative-CWPAmHEG.js","assets/sql-DCFvu5RM.js","assets/bsl-BkkzgIyY.js","assets/sdbl-bTVj8UrX.js","assets/c-Y1DAQKNJ.js","assets/cairo-DLTphjLi.js","assets/python-gzcpVVnB.js","assets/cobol-IOjEjPmG.js","assets/coffee-B5TREocO.js","assets/cpp-C4ceAJBi.js","assets/glsl-dHcuwXfH.js","assets/regexp-zLCDTged.js","assets/crystal-CgtjlE18.js","assets/shellscript-IH5A6LQB.js","assets/edge-DoVTVjme.js","assets/elixir-CzgPtVDf.js","assets/elm-Cm7sFdI1.js","assets/erb-p0q977En.js","assets/ruby-BA7kcl5p.js","assets/graphql-CdhToEZf.js","assets/jsx-NH_i07l1.js","assets/haml-qGg_91I2.js","assets/lua-SpZ12qGF.js","assets/yaml-DtN9Ue11.js","assets/erlang-Cphh6RMH.js","assets/markdown-BYOwaDjH.js","assets/fortran-fixed-form-DEKoE2YW.js","assets/fortran-free-form-CYNrtFtB.js","assets/fsharp-D13ZGOAj.js","assets/gdresource-C0sCabJj.js","assets/gdscript-Cp2uCuqX.js","assets/gdshader-CBce3t8t.js","assets/git-commit-BSykSTBG.js","assets/diff-woXpYk--.js","assets/git-rebase-D2tSwjJb.js","assets/glimmer-js-JMWzPMQ2.js","assets/glimmer-ts-DG5GCT78.js","assets/hack-C4J_0T1S.js","assets/handlebars-BU7OV8YS.js","assets/http-HvMG3K54.js","assets/hurl-CLh1t2ES.js","assets/csv-Dx-8-gkx.js","assets/hxml-B0Qn7Nwc.js","assets/haxe-OTjmBuCE.js","assets/jinja-ISwn25cN.js","assets/jison-D9Fg2JgN.js","assets/julia-BRnC1exM.js","assets/r-B1OEipip.js","assets/just-BWbKChh7.js","assets/perl-CAUsHq6V.js","assets/latex-DoFV6f5B.js","assets/tex-B0f_hYr8.js","assets/liquid-BGxpJKqJ.js","assets/marko-E8KxKzjy.js","assets/less-DVTAwKKz.js","assets/mdc-ytrN0-8H.js","assets/nextflow-BJtWHP5T.js","assets/nextflow-groovy-DJMQeKeT.js","assets/nginx-CgHaWcsO.js","assets/nim-xKCzf2o0.js","assets/php-Cn4rjz2P.js","assets/pug-DD9HHTGS.js","assets/qml-DcW_sT3t.js","assets/razor-30Cugjh2.js","assets/csharp-oqKa8noW.js","assets/rst-BIOjc2k6.js","assets/cmake-Bj61d0ZC.js","assets/sas-BHVT2N5I.js","assets/shaderlab-TOUzSsQk.js","assets/hlsl-Cvrh5tZx.js","assets/shellsession-BmAC8SMF.js","assets/soy-B5vCsGAN.js","assets/sparql-D_iOobhT.js","assets/turtle-ByJddavk.js","assets/stata-h02h04e7.js","assets/surrealql-DxccxuMd.js","assets/svelte-CsxBlEum.js","assets/templ-DmkwoHql.js","assets/go-rLFTqkRN.js","assets/ts-tags-CTs7_HT0.js","assets/twig-DgtEA5Er.js","assets/vue-CUpaeZ-j.js","assets/vue-html-DQch_7VQ.js","assets/vue-vine-BCPDker4.js","assets/stylus-B6D30XZt.js","assets/xsl-BFS2wyMt.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{a as e,i as t,n,r}from"./chunk-Cyuzqnbw.js";import{i,r as a}from"./bundle-mjs-DssaXR6m.js";import{t as o}from"./react-dom-Bm-PY09n.js";import{i as s,t as c,u as l,v as u,x as d}from"./useBaseUiId-DL38u1cQ.js";import{a as f,c as p,i as m,l as h,n as g,o as _,r as v,s as y,t as b,u as x}from"./select-BPFroWD-.js";import{i as S,n as C,r as w,t as T}from"./collapsible-Dgd4Palj.js";import{t as E}from"./circle-x-CAsSuVme.js";import{t as ee}from"./key-round-i_iJarVP.js";import{E as te}from"./useCompositeListItem-aicL7pEO.js";import{t as ne}from"./search-CKqhWG6h.js";import{t as re}from"./square-COjZqkOL.js";import{a as ie,c as ae,i as oe,l as se,n as D,o as ce,r as le,s as ue,t as de}from"./dialog-BypJveGC.js";import{A as fe,B as pe,a as me,c as O,d as he,l as ge,m as _e,n as ve,o as ye,r as be,s as xe,v as Se,z as Ce}from"./api-DTaM-PBA.js";import{At as we,Bt as Te,C as Ee,D as De,Gt as Oe,H as ke,Ht as Ae,Jt as je,Kt as Me,L as Ne,M as Pe,O as Fe,P as Ie,Qt as Le,S as Re,T as ze,U as Be,Ut as Ve,V as He,Wt as Ue,X as We,Yt as Ge,Zt as Ke,_ as qe,a as Je,b as Ye,d as Xe,f as Ze,h as Qe,i as $e,k as et,kt as tt,l as nt,m as rt,n as it,o as at,p as ot,r as st,s as ct,tn as k,v as lt,w as ut,wt as dt,x as ft,y as pt,z as mt}from"./index-BCipkFMc.js";import{n as ht,t as gt}from"./button-C5SbvNQM.js";import{t as _t}from"./badge-Czi0QcSt.js";import{t as vt}from"./label-Bu19spuB.js";import{C as yt,D as bt,E as xt,O as St,S as Ct,T as wt,_ as Tt,b as Et,c as Dt,d as Ot,f as kt,g as At,h as jt,l as Mt,m as Nt,o as Pt,p as Ft,r as It,s as Lt,u as Rt,v as zt,w as Bt,x as Vt,y as Ht}from"./chunk-BO2N2NFS-BH2X3sir.js";import{_ as Ut,g as Wt,h as A,p as Gt}from"./src-D-NMWEou.js";import{$ as Kt,C as qt,E as Jt,I as Yt,L as Xt,N as Zt,P as Qt,Q as $t,S as en,T as tn,V as nn,W as rn,X as an,Z as on,_ as sn,b as cn,c as ln,g as un,l as dn,m as fn,n as pn,p as mn,q as hn,r as gn,t as _n,u as vn}from"./chunk-CSCIHK7Q-cNr3wQ4T.js";import{S as yn,a as bn,f as xn,g as Sn,h as Cn,i as wn,o as Tn,v as En,x as Dn,y as On}from"./chunk-5ZQYHXKU-06bRImiz.js";import{t as kn}from"./chunk-WU5MYG2G-C6fBWWCO.js";import{n as An,t as jn}from"./chunk-XPW4576I-ru3A962d.js";import"./chunk-BSJP7CBP-DIpfLhEz.js";import"./chunk-L5ZTLDWV-CoUNWrar.js";import"./chunk-NZK2D7GU-C1GtSkoM.js";import{i as Mn,o as Nn}from"./chunk-O5CBEL6O-Di3YbCi3.js";import"./chunk-3OPIFGDE-DlqezFBL.js";import"./chunk-KSCS5N6A-C0xPXGha.js";import{n as Pn}from"./chunk-LZXEDZCA-DPQ-Ldy1.js";var Fn=d(`arrow-down`,[[`path`,{d:`M12 5v14`,key:`s699le`}],[`path`,{d:`m19 12-7 7-7-7`,key:`1idqje`}]]),In=d(`cpu`,[[`path`,{d:`M12 20v2`,key:`1lh1kg`}],[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M17 20v2`,key:`1rnc9c`}],[`path`,{d:`M17 2v2`,key:`11trls`}],[`path`,{d:`M2 12h2`,key:`1t8f8n`}],[`path`,{d:`M2 17h2`,key:`7oei6x`}],[`path`,{d:`M2 7h2`,key:`asdhe0`}],[`path`,{d:`M20 12h2`,key:`1q8mjw`}],[`path`,{d:`M20 17h2`,key:`1fpfkl`}],[`path`,{d:`M20 7h2`,key:`1o8tra`}],[`path`,{d:`M7 20v2`,key:`4gnj0m`}],[`path`,{d:`M7 2v2`,key:`1i4yhu`}],[`rect`,{x:`4`,y:`4`,width:`16`,height:`16`,rx:`2`,key:`1vbyd7`}],[`rect`,{x:`8`,y:`8`,width:`8`,height:`8`,rx:`1`,key:`z9xiuo`}]]),Ln=d(`dot`,[[`circle`,{cx:`12.1`,cy:`12.1`,r:`1`,key:`18d7e5`}]]),Rn=d(`eraser`,[[`path`,{d:`M21 21H8a2 2 0 0 1-1.42-.587l-3.994-3.999a2 2 0 0 1 0-2.828l10-10a2 2 0 0 1 2.829 0l5.999 6a2 2 0 0 1 0 2.828L12.834 21`,key:`g5wo59`}],[`path`,{d:`m5.082 11.09 8.828 8.828`,key:`1wx5vj`}]]),zn=d(`file-pen`,[[`path`,{d:`M12.659 22H18a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v9.34`,key:`o6klzx`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10.378 12.622a1 1 0 0 1 3 3.003L8.36 20.637a2 2 0 0 1-.854.506l-2.867.837a.5.5 0 0 1-.62-.62l.836-2.869a2 2 0 0 1 .506-.853z`,key:`zhnas1`}]]),Bn=d(`file-text`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10 9H8`,key:`b1mrlr`}],[`path`,{d:`M16 13H8`,key:`t4e002`}],[`path`,{d:`M16 17H8`,key:`z1uh3a`}]]),Vn=d(`image`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`,key:`1m3agn`}],[`circle`,{cx:`9`,cy:`9`,r:`2`,key:`af1f0g`}],[`path`,{d:`m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21`,key:`1xmnt7`}]]),Hn=d(`music-2`,[[`circle`,{cx:`8`,cy:`18`,r:`4`,key:`1fc0mg`}],[`path`,{d:`M12 18V2l7 4`,key:`g04rme`}]]),Un=d(`paperclip`,[[`path`,{d:`m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551`,key:`1miecu`}]]),Wn=d(`shield-question-mark`,[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`M9.1 9a3 3 0 0 1 5.82 1c0 2-3 3-3 3`,key:`mhlwft`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]]),Gn=d(`sliders-horizontal`,[[`path`,{d:`M10 5H3`,key:`1qgfaw`}],[`path`,{d:`M12 19H3`,key:`yhmn1j`}],[`path`,{d:`M14 3v4`,key:`1sua03`}],[`path`,{d:`M16 17v4`,key:`1q0r14`}],[`path`,{d:`M21 12h-9`,key:`1o4lsq`}],[`path`,{d:`M21 19h-5`,key:`1rlt1p`}],[`path`,{d:`M21 5h-7`,key:`1oszz2`}],[`path`,{d:`M8 10v4`,key:`tgpxqk`}],[`path`,{d:`M8 12H3`,key:`a7s4jb`}]]),Kn=d(`terminal`,[[`path`,{d:`M12 19h8`,key:`baeox8`}],[`path`,{d:`m4 17 6-6-6-6`,key:`1yngyt`}]]),qn=d(`video`,[[`path`,{d:`m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5`,key:`ftymec`}],[`rect`,{x:`2`,y:`6`,width:`14`,height:`12`,rx:`2`,key:`158x01`}]]),Jn=d(`wrench`,[[`path`,{d:`M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z`,key:`1ngwbx`}]]);function Yn(e,t,n,r){return{left:e,top:t,right:n,bottom:r,x:e,y:t,width:n-e,height:r-t}}function Xn(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom,width:e.width,height:e.height}}function Zn(e){let t=[],n,r=1/0,i=1/0,a=-1/0,o=-1/0;for(let s of Array.from(e).sort((e,t)=>e.top-t.top)){if(r=Math.min(r,s.left),i=Math.min(i,s.top),a=Math.max(a,s.right),o=Math.max(o,s.bottom),!n||s.top-n.top>n.height/2)t.push(Xn(s));else{let e=t[t.length-1];e.left=Math.min(e.left,s.left),e.right=Math.max(e.right,s.right),e.bottom=Math.max(e.bottom,s.bottom),e.width=e.right-e.left,e.height=e.bottom-e.top}n=s}return{lines:t,fallback:Yn(r,i,a,o)}}function Qn(e,t,n){return e.findIndex(e=>t>e.left-2&&t<e.right+2&&n>e.top-2&&n<e.bottom+2)}function $n(e){return Yn(e.left,e.top,e.right,e.bottom)}function er(e,t,n){let{lines:r}=Zn(e.getClientRects());if(r.length<2)return;let i=Qn(r,t,n);return{x:t,y:n,lineIndex:i===-1?void 0:i,element:e}}function tr(e,t,n){let{lines:r,fallback:i}=Zn(e.getClientRects());if(r.length<2)return null;let a=n?.x,o=n?.y,s=t[0];if(n?.lineIndex!=null&&r[n.lineIndex])return $n(r[n.lineIndex]);if(a!=null&&o!=null){let e=Qn(r,a,o);if(e!==-1)return $n(r[e])}if(r.length===2&&r[0].left>r[1].right&&a!=null&&o!=null)return i;if(s===`t`||s===`b`){let e=r[0],t=r[r.length-1],n=s===`t`?e:t;return Yn(n.left,e.top,n.right,t.bottom)}let c=s===`l`,l=r[0].left,u=r[0].right,d=c?1/0:-1/0,f=r[0],p=r[0];for(let e of r){l=Math.min(l,e.left),u=Math.max(u,e.right);let t=c?e.left:e.right;c&&t<d||!c&&t>d?(d=t,f=e,p=e):t===d&&(p=e)}return Yn(l,f.top,u,p.bottom)}function nr(e){return`contextElement`in e&&e.contextElement?e.contextElement:fe(e)?e:void 0}function rr(e,t){function n(t){ir(e,t.currentTarget,t.clientX,t.clientY)}function r(e){t||n(e)}return{onFocus(){e.current=void 0},onMouseEnter:n,onMouseMove:r}}function ir(e,t,n,r){let i=er(t,n,r);return e.current=i,i}function ar(e){return{name:`inline`,async fn(t){let n=t.elements.reference;if(typeof n?.getClientRects!=`function`)return{};let r=nr(n),i=e.current,a=i?.element===n||i?.element===r?i:void 0,o=tr(n,t.placement,a);if(!o||typeof t.platform.getElementRects!=`function`)return{};let s=await t.platform.getElementRects({reference:{contextElement:r,getBoundingClientRect(){return o}},floating:t.elements.floating,strategy:t.strategy});return t.rects.reference.x===s.reference.x&&t.rects.reference.y===s.reference.y&&t.rects.reference.width===s.reference.width&&t.rects.reference.height===s.reference.height?{}:{reset:{rects:s}}}}}var j=e(i(),1);function or(e){let t=[],n=null;for(let r of e){if(r.kind===`user`){t.push(r),n=null;continue}if(n||(n={kind:`assistant-turn`,key:`turn:${r.key}`,blocks:[]},t.push(n)),r.kind===`tool`){let e=n.blocks[n.blocks.length-1];e?.kind===`tools`?e.tools.push(r):n.blocks.push({kind:`tools`,key:`tools:${r.key}`,tools:[r]})}else n.blocks.push(r)}return t}var sr=e=>typeof e==`object`&&e?e:{},M=e=>typeof e==`string`?e:void 0,cr=new Set([`run.failed`,`codex.error`]);function lr(e){let t=new Set,n=[];for(let r of e)t.has(r.id)||(t.add(r.id),n.push(r));return n}function ur(e,t){switch(e){case`commandExecution`:{let e=t.command;return typeof e==`string`?e:Array.isArray(e)?e.join(` `):`Run command`}case`fileChange`:{let e=(Array.isArray(t.changes)?t.changes:[]).map(e=>M(sr(e).path)).filter(Boolean).map(e=>String(e).split(/[\\/]/).pop());return e.length>0?`Edit ${e.join(`, `)}`:`Edit files`}case`mcpToolCall`:return[M(t.server)??M(t.serverName),M(t.tool)??M(t.toolName)].filter(Boolean).join(`.`)||`MCP tool call`;case`webSearch`:return M(t.query)??`Web search`;default:return e}}function dr(e,t){switch(e){case`commandExecution`:return{command:t.command,cwd:t.cwd};case`fileChange`:return t.changes??t;case`mcpToolCall`:return t.args??t.arguments??t;default:{let{id:e,type:n,...r}=t;return r}}}function fr(e){let t=sr(e),n=Array.isArray(t.entries)?t.entries:[],r=Array.isArray(t.threadIds)?t.threadIds.filter(e=>typeof e==`string`):[],i=n.map(e=>{let t=sr(e),n=M(t.path);return n?{path:n,lineStart:typeof t.lineStart==`number`?t.lineStart:0,lineEnd:typeof t.lineEnd==`number`?t.lineEnd:0,note:M(t.note)??``}:null}).filter(e=>e!==null);if(!(i.length===0&&r.length===0))return{threadIds:r,entries:i}}function pr(e){let t=M(e.status);return t===`failed`||t===`error`||t===`declined`}function mr(e){let t=sr(e);if(typeof t.reason==`string`)return t.reason;let n=JSON.stringify(e);return!n||n===`{}`?``:n.length>200?n.slice(0,200)+`…`:n}function hr(e){let t=[],n=new Map,r=new Map,i=new Map,a=new Map;for(let o of e){let e=sr(o.payload);if(o.type===`run.started`||o.type===`run.resumed`||o.type===`run.steered`){t.push({kind:`user`,key:o.id,text:M(e.prompt)??``,attachments:Array.isArray(e.attachments)?e.attachments:[]});continue}if(o.type===`run.review.started`){let n=M(e.instructions);t.push({kind:`user`,key:o.id,text:n?`/review ${n}`:`/review uncommitted changes`,attachments:[]});continue}if(o.type===`run.compact.started`){t.push({kind:`event`,key:o.id,type:`compact`,summary:`Compacting conversation context…`});continue}if(o.type===`run.fast`){t.push({kind:`event`,key:o.id,type:`fast`,summary:e.enabled===!0?`Fast mode on — 1.5x speed, increased usage`:`Fast mode off`});continue}if(o.type===`codex.message.delta`){let r=M(e.itemId)??o.id,i=M(e.delta)??M(e.text)??``,a=n.get(r);if(a)a.text+=i;else{let e={kind:`assistant`,key:`msg:${r}`,text:i};n.set(r,e),t.push(e)}continue}if(o.type===`codex.item.reasoning.summaryPartAdded`){let t=M(e.itemId),n=t?r.get(t):void 0;n&&n.text.length>0&&(n.text+=`
|
|
3
3
|
|
|
4
|
-
`);continue}if(o.type===`codex.reasoning.delta`||o.type===`codex.reasoning.summary.delta`){let n=M(e.itemId)??o.id,i=M(e.delta)??M(e.text)??``,a=r.get(n);if(a)a.text+=i;else{let e={kind:`reasoning`,key:`think:${n}`,text:i};r.set(n,e),t.push(e)}continue}if(o.type===`codex.item.started`||o.type===`codex.item.completed`){let r=lr(e.item),a=M(r.type)??`unknown`,s=M(r.id)??o.id;if(a===`agentMessage`){if(o.type===`codex.item.completed`){let e=M(r.text),i=mr(r.memoryCitation);if(e){let r=n.get(s);if(r)r.text=e,i&&(r.memoryCitation=i);else{let r={kind:`assistant`,key:`msg:${s}`,text:e,...i?{memoryCitation:i}:{}};n.set(s,r),t.push(r)}}}continue}if(a===`reasoning`||a===`userMessage`)continue;let c=i.get(s);if(c||(c={kind:`tool`,key:`tool:${s}`,toolType:a,title:fr(a,r),state:`input-available`,input:pr(a,r),output:``},i.set(s,c),t.push(c)),o.type===`codex.item.completed`){c.title=fr(a,r),c.input=pr(a,r);let e=M(r.aggregatedOutput)??M(r.output);e&&(c.output=e),hr(r)?(c.state=`output-error`,c.error=M(r.error)??M(r.statusMessage)??`failed`):c.state=`output-available`}continue}if(o.type===`codex.command.output`){let t=M(e.itemId),n=t?i.get(t):void 0,r=M(e.delta)??M(e.chunk)??M(e.output)??``;n&&(n.output+=r);continue}if(o.type===`codex.file_change.patch`){let t=M(e.itemId),n=t?i.get(t):void 0;n&&(n.input=e.changes??e.diff??n.input);continue}if(o.type.startsWith(`codex.approval.`)){let e=o.payload,n={kind:`approval`,key:o.id,eventType:o.type,payload:e};a.set(String(e?.requestId),n),t.push(n);continue}if(o.type===`approval.resolved`){let e=String(lr(o.payload).requestId),t=a.get(e);t&&(t.resolved=M(lr(o.payload).decision)??`resolved`,a.delete(e));continue}ur.has(o.type)&&t.push({kind:`event`,key:o.id,type:o.type,summary:gr(o.payload)})}return t}var vr=globalThis?.document?j.useLayoutEffect:()=>{},yr=j.useInsertionEffect||vr;function br({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){let[i,a,o]=xr({defaultProp:t,onChange:n}),s=e!==void 0,c=s?e:i;{let t=j.useRef(e!==void 0);j.useEffect(()=>{let e=t.current;e!==s&&console.warn(`${r} is changing from ${e?`controlled`:`uncontrolled`} to ${s?`controlled`:`uncontrolled`}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),t.current=s},[s,r])}return[c,j.useCallback(t=>{if(s){let n=Sr(t)?t(e):t;n!==e&&o.current?.(n)}else a(t)},[s,e,a,o])]}function xr({defaultProp:e,onChange:t}){let[n,r]=j.useState(e),i=j.useRef(n),a=j.useRef(t);return yr(()=>{a.current=t},[t]),j.useEffect(()=>{i.current!==n&&(a.current?.(n),i.current=n)},[n,i]),[n,r,a]}function Sr(e){return typeof e==`function`}var Cr={carriageReturn:-5,lineFeed:-4,carriageReturnLineFeed:-3,horizontalTab:-2,virtualSpace:-1,eof:null,nul:0,soh:1,stx:2,etx:3,eot:4,enq:5,ack:6,bel:7,bs:8,ht:9,lf:10,vt:11,ff:12,cr:13,so:14,si:15,dle:16,dc1:17,dc2:18,dc3:19,dc4:20,nak:21,syn:22,etb:23,can:24,em:25,sub:26,esc:27,fs:28,gs:29,rs:30,us:31,space:32,exclamationMark:33,quotationMark:34,numberSign:35,dollarSign:36,percentSign:37,ampersand:38,apostrophe:39,leftParenthesis:40,rightParenthesis:41,asterisk:42,plusSign:43,comma:44,dash:45,dot:46,slash:47,digit0:48,digit1:49,digit2:50,digit3:51,digit4:52,digit5:53,digit6:54,digit7:55,digit8:56,digit9:57,colon:58,semicolon:59,lessThan:60,equalsTo:61,greaterThan:62,questionMark:63,atSign:64,uppercaseA:65,uppercaseB:66,uppercaseC:67,uppercaseD:68,uppercaseE:69,uppercaseF:70,uppercaseG:71,uppercaseH:72,uppercaseI:73,uppercaseJ:74,uppercaseK:75,uppercaseL:76,uppercaseM:77,uppercaseN:78,uppercaseO:79,uppercaseP:80,uppercaseQ:81,uppercaseR:82,uppercaseS:83,uppercaseT:84,uppercaseU:85,uppercaseV:86,uppercaseW:87,uppercaseX:88,uppercaseY:89,uppercaseZ:90,leftSquareBracket:91,backslash:92,rightSquareBracket:93,caret:94,underscore:95,graveAccent:96,lowercaseA:97,lowercaseB:98,lowercaseC:99,lowercaseD:100,lowercaseE:101,lowercaseF:102,lowercaseG:103,lowercaseH:104,lowercaseI:105,lowercaseJ:106,lowercaseK:107,lowercaseL:108,lowercaseM:109,lowercaseN:110,lowercaseO:111,lowercaseP:112,lowercaseQ:113,lowercaseR:114,lowercaseS:115,lowercaseT:116,lowercaseU:117,lowercaseV:118,lowercaseW:119,lowercaseX:120,lowercaseY:121,lowercaseZ:122,leftCurlyBrace:123,verticalBar:124,rightCurlyBrace:125,tilde:126,del:127,byteOrderMarker:65279,replacementCharacter:65533},wr={attentionSideAfter:2,attentionSideBefore:1,atxHeadingOpeningFenceSizeMax:6,autolinkDomainSizeMax:63,autolinkSchemeSizeMax:32,cdataOpeningString:`CDATA[`,characterGroupPunctuation:2,characterGroupWhitespace:1,characterReferenceDecimalSizeMax:7,characterReferenceHexadecimalSizeMax:6,characterReferenceNamedSizeMax:31,codeFencedSequenceSizeMin:3,contentTypeContent:`content`,contentTypeDocument:`document`,contentTypeFlow:`flow`,contentTypeString:`string`,contentTypeText:`text`,hardBreakPrefixSizeMin:2,htmlBasic:6,htmlCdata:5,htmlComment:2,htmlComplete:7,htmlDeclaration:4,htmlInstruction:3,htmlRawSizeMax:8,htmlRaw:1,linkResourceDestinationBalanceMax:32,linkReferenceSizeMax:999,listItemValueSizeMax:10,numericBaseDecimal:10,numericBaseHexadecimal:16,tabSize:4,thematicBreakMarkerCountMin:3,v8MaxSafeChunkSize:1e4},Tr={data:`data`,whitespace:`whitespace`,lineEnding:`lineEnding`,lineEndingBlank:`lineEndingBlank`,linePrefix:`linePrefix`,lineSuffix:`lineSuffix`,atxHeading:`atxHeading`,atxHeadingSequence:`atxHeadingSequence`,atxHeadingText:`atxHeadingText`,autolink:`autolink`,autolinkEmail:`autolinkEmail`,autolinkMarker:`autolinkMarker`,autolinkProtocol:`autolinkProtocol`,characterEscape:`characterEscape`,characterEscapeValue:`characterEscapeValue`,characterReference:`characterReference`,characterReferenceMarker:`characterReferenceMarker`,characterReferenceMarkerNumeric:`characterReferenceMarkerNumeric`,characterReferenceMarkerHexadecimal:`characterReferenceMarkerHexadecimal`,characterReferenceValue:`characterReferenceValue`,codeFenced:`codeFenced`,codeFencedFence:`codeFencedFence`,codeFencedFenceSequence:`codeFencedFenceSequence`,codeFencedFenceInfo:`codeFencedFenceInfo`,codeFencedFenceMeta:`codeFencedFenceMeta`,codeFlowValue:`codeFlowValue`,codeIndented:`codeIndented`,codeText:`codeText`,codeTextData:`codeTextData`,codeTextPadding:`codeTextPadding`,codeTextSequence:`codeTextSequence`,content:`content`,definition:`definition`,definitionDestination:`definitionDestination`,definitionDestinationLiteral:`definitionDestinationLiteral`,definitionDestinationLiteralMarker:`definitionDestinationLiteralMarker`,definitionDestinationRaw:`definitionDestinationRaw`,definitionDestinationString:`definitionDestinationString`,definitionLabel:`definitionLabel`,definitionLabelMarker:`definitionLabelMarker`,definitionLabelString:`definitionLabelString`,definitionMarker:`definitionMarker`,definitionTitle:`definitionTitle`,definitionTitleMarker:`definitionTitleMarker`,definitionTitleString:`definitionTitleString`,emphasis:`emphasis`,emphasisSequence:`emphasisSequence`,emphasisText:`emphasisText`,escapeMarker:`escapeMarker`,hardBreakEscape:`hardBreakEscape`,hardBreakTrailing:`hardBreakTrailing`,htmlFlow:`htmlFlow`,htmlFlowData:`htmlFlowData`,htmlText:`htmlText`,htmlTextData:`htmlTextData`,image:`image`,label:`label`,labelText:`labelText`,labelLink:`labelLink`,labelImage:`labelImage`,labelMarker:`labelMarker`,labelImageMarker:`labelImageMarker`,labelEnd:`labelEnd`,link:`link`,paragraph:`paragraph`,reference:`reference`,referenceMarker:`referenceMarker`,referenceString:`referenceString`,resource:`resource`,resourceDestination:`resourceDestination`,resourceDestinationLiteral:`resourceDestinationLiteral`,resourceDestinationLiteralMarker:`resourceDestinationLiteralMarker`,resourceDestinationRaw:`resourceDestinationRaw`,resourceDestinationString:`resourceDestinationString`,resourceMarker:`resourceMarker`,resourceTitle:`resourceTitle`,resourceTitleMarker:`resourceTitleMarker`,resourceTitleString:`resourceTitleString`,setextHeading:`setextHeading`,setextHeadingText:`setextHeadingText`,setextHeadingLine:`setextHeadingLine`,setextHeadingLineSequence:`setextHeadingLineSequence`,strong:`strong`,strongSequence:`strongSequence`,strongText:`strongText`,thematicBreak:`thematicBreak`,thematicBreakSequence:`thematicBreakSequence`,blockQuote:`blockQuote`,blockQuotePrefix:`blockQuotePrefix`,blockQuoteMarker:`blockQuoteMarker`,blockQuotePrefixWhitespace:`blockQuotePrefixWhitespace`,listOrdered:`listOrdered`,listUnordered:`listUnordered`,listItemIndent:`listItemIndent`,listItemMarker:`listItemMarker`,listItemPrefix:`listItemPrefix`,listItemPrefixWhitespace:`listItemPrefixWhitespace`,listItemValue:`listItemValue`,chunkDocument:`chunkDocument`,chunkContent:`chunkContent`,chunkFlow:`chunkFlow`,chunkText:`chunkText`,chunkString:`chunkString`},Er=[161,161,164,164,167,168,170,170,173,174,176,180,182,186,188,191,198,198,208,208,215,216,222,225,230,230,232,234,236,237,240,240,242,243,247,250,252,252,254,254,257,257,273,273,275,275,283,283,294,295,299,299,305,307,312,312,319,322,324,324,328,331,333,333,338,339,358,359,363,363,462,462,464,464,466,466,468,468,470,470,472,472,474,474,476,476,593,593,609,609,708,708,711,711,713,715,717,717,720,720,728,731,733,733,735,735,768,879,913,929,931,937,945,961,963,969,1025,1025,1040,1103,1105,1105,8208,8208,8211,8214,8216,8217,8220,8221,8224,8226,8228,8231,8240,8240,8242,8243,8245,8245,8251,8251,8254,8254,8308,8308,8319,8319,8321,8324,8364,8364,8451,8451,8453,8453,8457,8457,8467,8467,8470,8470,8481,8482,8486,8486,8491,8491,8531,8532,8539,8542,8544,8555,8560,8569,8585,8585,8592,8601,8632,8633,8658,8658,8660,8660,8679,8679,8704,8704,8706,8707,8711,8712,8715,8715,8719,8719,8721,8721,8725,8725,8730,8730,8733,8736,8739,8739,8741,8741,8743,8748,8750,8750,8756,8759,8764,8765,8776,8776,8780,8780,8786,8786,8800,8801,8804,8807,8810,8811,8814,8815,8834,8835,8838,8839,8853,8853,8857,8857,8869,8869,8895,8895,8978,8978,9312,9449,9451,9547,9552,9587,9600,9615,9618,9621,9632,9633,9635,9641,9650,9651,9654,9655,9660,9661,9664,9665,9670,9672,9675,9675,9678,9681,9698,9701,9711,9711,9733,9734,9737,9737,9742,9743,9756,9756,9758,9758,9792,9792,9794,9794,9824,9825,9827,9829,9831,9834,9836,9837,9839,9839,9886,9887,9919,9919,9926,9933,9935,9939,9941,9953,9955,9955,9960,9961,9963,9969,9972,9972,9974,9977,9979,9980,9982,9983,10045,10045,10102,10111,11094,11097,12872,12879,57344,63743,65024,65039,65533,65533,127232,127242,127248,127277,127280,127337,127344,127373,127375,127376,127387,127404,917760,917999,983040,1048573,1048576,1114109],Dr=[12288,12288,65281,65376,65504,65510],Or=[8361,8361,65377,65470,65474,65479,65482,65487,65490,65495,65498,65500,65512,65518],kr=[32,126,162,163,165,166,172,172,175,175,10214,10221,10629,10630],Ar=[4352,4447,8986,8987,9001,9002,9193,9196,9200,9200,9203,9203,9725,9726,9748,9749,9776,9783,9800,9811,9855,9855,9866,9871,9875,9875,9889,9889,9898,9899,9917,9918,9924,9925,9934,9934,9940,9940,9962,9962,9970,9971,9973,9973,9978,9978,9981,9981,9989,9989,9994,9995,10024,10024,10060,10060,10062,10062,10067,10069,10071,10071,10133,10135,10160,10160,10175,10175,11035,11036,11088,11088,11093,11093,11904,11929,11931,12019,12032,12245,12272,12287,12289,12350,12353,12438,12441,12543,12549,12591,12593,12686,12688,12773,12783,12830,12832,12871,12880,42124,42128,42182,43360,43388,44032,55203,63744,64255,65040,65049,65072,65106,65108,65126,65128,65131,94176,94180,94192,94198,94208,101589,101631,101662,101760,101874,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,119552,119638,119648,119670,126980,126980,127183,127183,127374,127374,127377,127386,127488,127490,127504,127547,127552,127560,127568,127569,127584,127589,127744,127776,127789,127797,127799,127868,127870,127891,127904,127946,127951,127955,127968,127984,127988,127988,127992,128062,128064,128064,128066,128252,128255,128317,128331,128334,128336,128359,128378,128378,128405,128406,128420,128420,128507,128591,128640,128709,128716,128716,128720,128722,128725,128728,128732,128735,128747,128748,128756,128764,128992,129003,129008,129008,129292,129338,129340,129349,129351,129535,129648,129660,129664,129674,129678,129734,129736,129736,129741,129756,129759,129770,129775,129784,131072,196605,196608,262141],jr=(e,t)=>{let n=0,r=Math.floor(e.length/2)-1;for(;n<=r;){let i=Math.floor((n+r)/2),a=i*2;if(t<e[a])r=i-1;else if(t>e[a+1])n=i+1;else return!0}return!1},Mr=19968,[Nr,Pr]=Fr(Ar);function Fr(e){let t=e[0],n=e[1];for(let r=0;r<e.length;r+=2){let i=e[r],a=e[r+1];if(Mr>=i&&Mr<=a)return[i,a];a-i>n-t&&(t=i,n=a)}return[t,n]}var Ir=e=>e<161||e>1114109?!1:jr(Er,e),Lr=e=>e<12288||e>65510?!1:jr(Dr,e),Rr=e=>e<8361||e>65518?!1:jr(Or,e),zr=e=>e<32||e>10630?!1:jr(kr,e),Br=e=>e>=Nr&&e<=Pr?!0:e<4352||e>262141?!1:jr(Ar,e);function Vr(e){return Ir(e)?`ambiguous`:Lr(e)?`fullwidth`:Rr(e)?`halfwidth`:zr(e)?`narrow`:Br(e)?`wide`:`neutral`}function Hr(e){if(!Number.isSafeInteger(e))throw TypeError(`Expected a code point, got \`${typeof e}\`.`)}function Ur(e){return Hr(e),Vr(e)}function Wr(e){return/^\p{Emoji_Presentation}/u.test(String.fromCodePoint(e))}function Gr(e){if(!e||e<4352)return!1;switch(Ur(e)){case`fullwidth`:case`halfwidth`:return!0;case`wide`:return!Wr(e);case`narrow`:return!1;case`ambiguous`:return 917760<=e&&e<=917999?null:!1;case`neutral`:return/^\p{sc=Hangul}/u.test(String.fromCodePoint(e))}}function Kr(e,t){return t!==65025||!e||e<8216?!1:e===8216||e===8217||e===8220||e===8221}function qr(e){return e!==null&&e>=65024&&e<=65038}var Jr=Xr(/\p{P}|\p{S}/u),Yr=Xr(/\s/);function Xr(e){return t;function t(t){return t!==null&&t>-1&&e.test(String.fromCodePoint(t))}}function Zr(e){return!!(e&wr.characterGroupWhitespace)}function Qr(e){return(e&ii.cjkPunctuation)===wr.characterGroupPunctuation}function $r(e){return!!(e&ii.cjk)}function ei(e){return e===ii.ivs}function ti(e){return!!(e&ii.cjkOrIvs)}function ni(e){return e===ii.nonEmojiGeneralUseVS}function ri(e){return!!(e&ii.spaceOrPunctuation)}var ii;(function(e){e.spaceOrPunctuation=3,e.cjk=4096,e.cjkPunctuation=4098,e.ivs=8192,e.cjkOrIvs=12288,e.nonEmojiGeneralUseVS=16384,e.variationSelector=24576,e.ivsToCjkRightShift=1})(ii||={});function ai(e){if(e===Cr.eof||wt(e)||Yr(e))return wr.characterGroupWhitespace;let t=0;if(e>=4352){if(qr(e))return ii.nonEmojiGeneralUseVS;switch(Gr(e)){case null:return ii.ivs;case!0:t|=ii.cjk;break}}return Jr(e)&&(t|=wr.characterGroupPunctuation),t}function oi(e,t,n){if(!ni(e))return e;let r=t(),i=ai(r);return!r||Zr(i)?e:Kr(r,n)?ii.cjkPunctuation:si(i)}function si(e){return e&~ii.ivs}function ci(e){return!!(e&&e>=55296&&e<=56319)}function li(e){return!!(e&&e>=56320&&e<=57343)}function ui(e,t,n){if(t._bufferIndex<2)return e;let r=n({start:{...t,_bufferIndex:t._bufferIndex-2},end:t}).codePointAt(0);return r&&r>=65536?r:e}function di(e,t,n){let r=e>=65536?2:1;if(t._bufferIndex<1+r)return null;let i=t._bufferIndex-r-2,a=n({start:{...t,_bufferIndex:i>=0?i:0},end:{...t,_bufferIndex:t._bufferIndex-r}}),o=a.charCodeAt(a.length-1);if(Number.isNaN(o))return null;if(a.length<2||o<56320||57343<o)return o;let s=a.codePointAt(0);return s&&s>=65536?s:o}var fi=class{cachedValue=void 0;constructor(e,t,n){this.previousCode=e,this.nowPoint=t,this.sliceSerialize=n}value(){return this.cachedValue===void 0&&(this.cachedValue=di(this.previousCode,this.nowPoint,this.sliceSerialize)),this.cachedValue}};function pi(e,t,n){let r=n({start:t,end:{...t,_bufferIndex:t._bufferIndex+2}}).codePointAt(0);return r&&r>=65536?r:e}var mi={name:`attention`,resolveAll:hi,tokenize:gi};function hi(e,t){let n=-1,r,i,a,o,s,c,l,u;for(;++n<e.length;)if(e[n][0]===`enter`&&e[n][1].type===`attentionSequence`&&e[n][1]._close){for(r=n;r--;)if(e[r][0]===`exit`&&e[r][1].type===`attentionSequence`&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;c=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;let d={...e[r][1].end},f={...e[n][1].start};_i(d,-c),_i(f,c),o={type:c>1?Tr.strongSequence:Tr.emphasisSequence,start:d,end:{...e[r][1].end}},s={type:c>1?Tr.strongSequence:Tr.emphasisSequence,start:{...e[n][1].start},end:f},a={type:c>1?Tr.strongText:Tr.emphasisText,start:{...e[r][1].end},end:{...e[n][1].start}},i={type:c>1?Tr.strong:Tr.emphasis,start:{...o.start},end:{...s.end}},e[r][1].end={...o.start},e[n][1].start={...s.end},l=[],e[r][1].end.offset-e[r][1].start.offset&&(l=Et(l,[[`enter`,e[r][1],t],[`exit`,e[r][1],t]])),l=Et(l,[[`enter`,i,t],[`enter`,o,t],[`exit`,o,t],[`enter`,a,t]]),t.parser.constructs.insideSpan.null,l=Et(l,Ht(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),l=Et(l,[[`exit`,a,t],[`enter`,s,t],[`exit`,s,t],[`exit`,i,t]]),e[n][1].end.offset-e[n][1].start.offset?(u=2,l=Et(l,[[`enter`,e[n][1],t],[`exit`,e[n][1],t]])):u=0,Ct(e,r-1,n-r+3,l),n=r+l.length-u-2;break}}for(n=-1;++n<e.length;)e[n][1].type===`attentionSequence`&&(e[n][1].type=`data`);return e}function gi(e,t){let n=this.parser.constructs.attentionMarkers.null,{now:r,sliceSerialize:i,previous:a}=this,o=li(a)?ui(a,r(),i):a,s=ai(o),c=new fi(o,r(),i),l=oi(s,c.value.bind(c),o),u;return d;function d(t){return t===Cr.asterisk||Cr.underscore,u=t,e.enter(`attentionSequence`),f(t)}function f(a){if(a===u)return e.consume(a),f;let s=e.exit(`attentionSequence`),c=ai(ci(a)?pi(a,r(),i):a),d=Qr(l),p=d||Zr(l),m=Qr(c),h=m||Zr(c),g=ti(l),_=!h||m&&(p||g)||n.includes(a),v=!p||d&&(h||$r(c))||n.includes(o);return s._open=!!(u===Cr.asterisk?_:_&&(ri(l)||!v)),s._close=!!(u===Cr.asterisk?v:v&&(ri(c)||!_)),t(a)}}function _i(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}function vi(){return{text:{[Cr.asterisk]:mi,[Cr.underscore]:mi},insideSpan:{null:[mi]}}}function yi(){let e=this.data();(e.micromarkExtensions||=[]).push(vi())}function bi(e){let t=(e||{}).singleTilde,n={name:`strikethrough`,tokenize:i,resolveAll:r};return t??=!0,{text:{[Cr.tilde]:n},insideSpan:{null:[n]},attentionMarkers:{null:[Cr.tilde]}};function r(e,t){let n=-1;for(;++n<e.length;)if(e[n][0]===`enter`&&e[n][1].type===`strikethroughSequenceTemporary`&&e[n][1]._close){let r=n;for(;r--;)if(e[r][0]===`exit`&&e[r][1].type===`strikethroughSequenceTemporary`&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset===e[r][1].end.offset-e[r][1].start.offset){e[n][1].type=`strikethroughSequence`,e[r][1].type=`strikethroughSequence`;let i={type:`strikethrough`,start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},a={type:`strikethroughText`,start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},o=[[`enter`,i,t],[`enter`,e[r][1],t],[`exit`,e[r][1],t],[`enter`,a,t]],s=t.parser.constructs.insideSpan.null;s&&Ct(o,o.length,0,Ht(s,e.slice(r+1,n),t)),Ct(o,o.length,0,[[`exit`,a,t],[`enter`,e[n][1],t],[`exit`,e[n][1],t],[`exit`,i,t]]),Ct(e,r-1,n-r+3,o),n=r+o.length-2;break}}for(n=-1;++n<e.length;)e[n][1].type===`strikethroughSequenceTemporary`&&(e[n][1].type=Tr.data);return e}function i(e,n,r){let{now:i,sliceSerialize:a,previous:o}=this,s=li(o)?ui(o,i(),a):o,c=ai(s),l=new fi(s,i(),a),u=oi(c,l.value.bind(l),s),d=this.events,f=0;return p;function p(t){return Cr.tilde,s===Cr.tilde&&d[d.length-1][1].type!==Tr.characterEscape?r(t):(e.enter(`strikethroughSequenceTemporary`),m(t))}function m(o){let c=ai(s);if(o===Cr.tilde)return f>1?r(o):(e.consume(o),f++,m);if(f<2&&!t)return r(o);let l=e.exit(`strikethroughSequenceTemporary`),d=ai(ci(o)?pi(o,i(),a):o),p=Qr(u)||Zr(u),h=Qr(d)||Zr(d),g=$r(u)||ei(c);return l._open=!h||d===wr.attentionSideAfter&&(p||g),l._close=!p||c===wr.attentionSideAfter&&(h||$r(d)),n(o)}}}function xi(e){let t=this.data();(t.micromarkExtensions||=[]).push(bi(e))}var Si=new Set([`。`,`.`,`,`,`、`,`?`,`!`,`:`,`;`,`(`,`)`,`【`,`】`,`「`,`」`,`『`,`』`,`〈`,`〉`,`《`,`》`]),Ci=/^(https?:\/\/|mailto:|www\.)/i,wi=e=>{if(e.children.length!==1)return!1;let t=e.children[0];return t.type===`text`&&t.value===e.url},Ti=e=>{let t=0;for(let n of e){if(Si.has(n))return t;t+=n.length}return null},Ei=(e,t)=>({...t,url:e,children:[{type:`text`,value:e}]}),Di=e=>({type:`text`,value:e}),Oi=()=>e=>{Ot(e,`link`,(e,t,n)=>{if(!n||typeof t!=`number`||!wi(e)||!Ci.test(e.url))return;let r=Ti(e.url);if(r===null||r===0)return;let i=e.url.slice(0,r),a=e.url.slice(r),o=Ei(i,e),s=Di(a);return n.children.splice(t,1,o,s),t+1})};function ki(){let e=[yi],t=[Oi,xi];return{name:`cjk`,type:`cjk`,remarkPluginsBefore:e,remarkPluginsAfter:t,remarkPlugins:[...e,...t]}}var Ai=ki(),ji=class extends Error{constructor(e){super(e),this.name=`ShikiError`}};function Mi(e){return Ni(e)}function Ni(e){return Array.isArray(e)?Pi(e):e instanceof RegExp?e:typeof e==`object`?Fi(e):e}function Pi(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=Ni(e[n]);return t}function Fi(e){let t={};for(let n in e)t[n]=Ni(e[n]);return t}function Ii(e,...t){return t.forEach(t=>{for(let n in t)e[n]=t[n]}),e}function Li(e){let t=~e.lastIndexOf(`/`)||~e.lastIndexOf(`\\`);return t===0?e:~t===e.length-1?Li(e.substring(0,e.length-1)):e.substr(~t+1)}var Ri=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,zi=class{static hasCaptures(e){return e===null?!1:(Ri.lastIndex=0,Ri.test(e))}static replaceCaptures(e,t,n){return e.replace(Ri,(e,r,i,a)=>{let o=n[parseInt(r||i,10)];if(o){let e=t.substring(o.start,o.end);for(;e[0]===`.`;)e=e.substring(1);switch(a){case`downcase`:return e.toLowerCase();case`upcase`:return e.toUpperCase();default:return e}}else return e})}};function Bi(e,t){return e<t?-1:+(e>t)}function Vi(e,t){if(e===null&&t===null)return 0;if(!e)return-1;if(!t)return 1;let n=e.length,r=t.length;if(n===r){for(let r=0;r<n;r++){let n=Bi(e[r],t[r]);if(n!==0)return n}return 0}return n-r}function Hi(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))}function Ui(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,`\\$&`)}var Wi=class{constructor(e){this.fn=e}cache=new Map;get(e){if(this.cache.has(e))return this.cache.get(e);let t=this.fn(e);return this.cache.set(e,t),t}},Gi=class{constructor(e,t,n){this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(Xi(e),t)}static createFromParsedTheme(e,t){return $i(e,t)}_cachedMatchRoot=new Wi(e=>this._root.match(e));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(e===null)return this._defaults;let t=e.scopeName,n=this._cachedMatchRoot.get(t).find(t=>qi(e.parent,t.parentScopes));return n?new Yi(n.fontStyle,n.foreground,n.background):null}},Ki=class e{constructor(e,t){this.parent=e,this.scopeName=t}static push(t,n){for(let r of n)t=new e(t,r);return t}static from(...t){let n=null;for(let r=0;r<t.length;r++)n=new e(n,t[r]);return n}push(t){return new e(this,t)}getSegments(){let e=this,t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(` `)}extends(e){return this===e?!0:this.parent===null?!1:this.parent.extends(e)}getExtensionIfDefined(e){let t=[],n=this;for(;n&&n!==e;)t.push(n.scopeName),n=n.parent;return n===e?t.reverse():void 0}};function qi(e,t){if(t.length===0)return!0;for(let n=0;n<t.length;n++){let r=t[n],i=!1;if(r===`>`){if(n===t.length-1)return!1;r=t[++n],i=!0}for(;e&&!Ji(e.scopeName,r);){if(i)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function Ji(e,t){return t===e||e.startsWith(t)&&e[t.length]===`.`}var Yi=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}};function Xi(e){if(!e||!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],r=0;for(let e=0,i=t.length;e<i;e++){let i=t[e];if(!i.settings)continue;let a;if(typeof i.scope==`string`){let e=i.scope;e=e.replace(/^[,]+/,``),e=e.replace(/[,]+$/,``),a=e.split(`,`)}else a=Array.isArray(i.scope)?i.scope:[``];let o=-1;if(typeof i.settings.fontStyle==`string`){o=0;let e=i.settings.fontStyle.split(` `);for(let t=0,n=e.length;t<n;t++)switch(e[t]){case`italic`:o|=1;break;case`bold`:o|=2;break;case`underline`:o|=4;break;case`strikethrough`:o|=8;break}}let s=null;typeof i.settings.foreground==`string`&&Hi(i.settings.foreground)&&(s=i.settings.foreground);let c=null;typeof i.settings.background==`string`&&Hi(i.settings.background)&&(c=i.settings.background);for(let t=0,i=a.length;t<i;t++){let i=a[t].trim().split(` `),l=i[i.length-1],u=null;i.length>1&&(u=i.slice(0,i.length-1),u.reverse()),n[r++]=new Zi(l,u,e,o,s,c)}}return n}var Zi=class{constructor(e,t,n,r,i,a){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=r,this.foreground=i,this.background=a}},Qi=(e=>(e[e.NotSet=-1]=`NotSet`,e[e.None=0]=`None`,e[e.Italic=1]=`Italic`,e[e.Bold=2]=`Bold`,e[e.Underline=4]=`Underline`,e[e.Strikethrough=8]=`Strikethrough`,e))(Qi||{});function $i(e,t){e.sort((e,t)=>{let n=Bi(e.scope,t.scope);return n!==0||(n=Vi(e.parentScopes,t.parentScopes),n!==0)?n:e.index-t.index});let n=0,r=`#000000`,i=`#ffffff`;for(;e.length>=1&&e[0].scope===``;){let t=e.shift();t.fontStyle!==-1&&(n=t.fontStyle),t.foreground!==null&&(r=t.foreground),t.background!==null&&(i=t.background)}let a=new ea(t),o=new Yi(n,a.getId(r),a.getId(i)),s=new ra(new na(0,null,-1,0,0),[]);for(let t=0,n=e.length;t<n;t++){let n=e[t];s.insert(0,n.scope,n.parentScopes,n.fontStyle,a.getId(n.foreground),a.getId(n.background))}return new Gi(a,o,s)}var ea=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,n=e.length;t<n;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(e===null)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}},ta=Object.freeze([]),na=class e{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(e,t,n,r,i){this.scopeDepth=e,this.parentScopes=t||ta,this.fontStyle=n,this.foreground=r,this.background=i}clone(){return new e(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=e[n].clone();return t}acceptOverwrite(e,t,n,r){this.scopeDepth>e?console.log(`how did this happen?`):this.scopeDepth=e,t!==-1&&(this.fontStyle=t),n!==0&&(this.foreground=n),r!==0&&(this.background=r)}},ra=class e{constructor(e,t=[],n={}){this._mainRule=e,this._children=n,this._rulesWithParentScopes=t}_rulesWithParentScopes;static _cmpBySpecificity(e,t){if(e.scopeDepth!==t.scopeDepth)return t.scopeDepth-e.scopeDepth;let n=0,r=0;for(;e.parentScopes[n]===`>`&&n++,t.parentScopes[r]===`>`&&r++,!(n>=e.parentScopes.length||r>=t.parentScopes.length);){let i=t.parentScopes[r].length-e.parentScopes[n].length;if(i!==0)return i;n++,r++}return t.parentScopes.length-e.parentScopes.length}match(t){if(t!==``){let e=t.indexOf(`.`),n,r;if(e===-1?(n=t,r=``):(n=t.substring(0,e),r=t.substring(e+1)),this._children.hasOwnProperty(n))return this._children[n].match(r)}let n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(e._cmpBySpecificity),n}insert(t,n,r,i,a,o){if(n===``){this._doInsertHere(t,r,i,a,o);return}let s=n.indexOf(`.`),c,l;s===-1?(c=n,l=``):(c=n.substring(0,s),l=n.substring(s+1));let u;this._children.hasOwnProperty(c)?u=this._children[c]:(u=new e(this._mainRule.clone(),na.cloneArr(this._rulesWithParentScopes)),this._children[c]=u),u.insert(t+1,l,r,i,a,o)}_doInsertHere(e,t,n,r,i){if(t===null){this._mainRule.acceptOverwrite(e,n,r,i);return}for(let a=0,o=this._rulesWithParentScopes.length;a<o;a++){let o=this._rulesWithParentScopes[a];if(Vi(o.parentScopes,t)===0){o.acceptOverwrite(e,n,r,i);return}}n===-1&&(n=this._mainRule.fontStyle),r===0&&(r=this._mainRule.foreground),i===0&&(i=this._mainRule.background),this._rulesWithParentScopes.push(new na(e,t,n,r,i))}},ia=class e{static toBinaryStr(e){return e.toString(2).padStart(32,`0`)}static print(t){let n=e.getLanguageId(t),r=e.getTokenType(t),i=e.getFontStyle(t),a=e.getForeground(t),o=e.getBackground(t);console.log({languageId:n,tokenType:r,fontStyle:i,foreground:a,background:o})}static getLanguageId(e){return(e&255)>>>0}static getTokenType(e){return(e&768)>>>8}static containsBalancedBrackets(e){return(e&1024)!=0}static getFontStyle(e){return(e&30720)>>>11}static getForeground(e){return(e&16744448)>>>15}static getBackground(e){return(e&4278190080)>>>24}static set(t,n,r,i,a,o,s){let c=e.getLanguageId(t),l=e.getTokenType(t),u=+!!e.containsBalancedBrackets(t),d=e.getFontStyle(t),f=e.getForeground(t),p=e.getBackground(t);return n!==0&&(c=n),r!==8&&(l=oa(r)),i!==null&&(u=+!!i),a!==-1&&(d=a),o!==0&&(f=o),s!==0&&(p=s),(c<<0|l<<8|u<<10|d<<11|f<<15|p<<24)>>>0}};function aa(e){return e}function oa(e){return e}function sa(e,t){let n=[],r=la(e),i=r.next();for(;i!==null;){let e=0;if(i.length===2&&i.charAt(1)===`:`){switch(i.charAt(0)){case`R`:e=1;break;case`L`:e=-1;break;default:console.log(`Unknown priority ${i} in scope selector`)}i=r.next()}let t=o();if(n.push({matcher:t,priority:e}),i!==`,`)break;i=r.next()}return n;function a(){if(i===`-`){i=r.next();let e=a();return t=>!!e&&!e(t)}if(i===`(`){i=r.next();let e=s();return i===`)`&&(i=r.next()),e}if(ca(i)){let e=[];do e.push(i),i=r.next();while(ca(i));return n=>t(e,n)}return null}function o(){let e=[],t=a();for(;t;)e.push(t),t=a();return t=>e.every(e=>e(t))}function s(){let e=[],t=o();for(;t&&(e.push(t),i===`|`||i===`,`);){do i=r.next();while(i===`|`||i===`,`);t=o()}return t=>e.some(e=>e(t))}}function ca(e){return!!e&&!!e.match(/[\w\.:]+/)}function la(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=t.exec(e);return{next:()=>{if(!n)return null;let r=n[0];return n=t.exec(e),r}}}function ua(e){typeof e.dispose==`function`&&e.dispose()}var da=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},fa=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},pa=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(e){let t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},ma=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new da(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){let e=this.Q;this.Q=[];let t=new pa;for(let n of e)ha(n,this.initialScopeName,this.repo,t);for(let e of t.references)if(e instanceof da){if(this.seenFullScopeRequests.has(e.scopeName))continue;this.seenFullScopeRequests.add(e.scopeName),this.Q.push(e)}else{if(this.seenFullScopeRequests.has(e.scopeName)||this.seenPartialScopeRequests.has(e.toKey()))continue;this.seenPartialScopeRequests.add(e.toKey()),this.Q.push(e)}}};function ha(e,t,n,r){let i=n.lookup(e.scopeName);if(!i){if(e.scopeName===t)throw Error(`No grammar provided for <${t}>`);return}let a=n.lookup(t);e instanceof da?_a({baseGrammar:a,selfGrammar:i},r):ga(e.ruleName,{baseGrammar:a,selfGrammar:i,repository:i.repository},r);let o=n.injections(e.scopeName);if(o)for(let e of o)r.add(new da(e))}function ga(e,t,n){if(t.repository&&t.repository[e]){let r=t.repository[e];va([r],t,n)}}function _a(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&va(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&va(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function va(e,t,n){for(let r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);let e=r.repository?Ii({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&va(r.patterns,{...t,repository:e},n);let i=r.include;if(!i)continue;let a=wa(i);switch(a.kind){case 0:_a({...t,selfGrammar:t.baseGrammar},n);break;case 1:_a(t,n);break;case 2:ga(a.ruleName,{...t,repository:e},n);break;case 3:case 4:let r=a.scopeName===t.selfGrammar.scopeName?t.selfGrammar:a.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(r){let i={baseGrammar:t.baseGrammar,selfGrammar:r,repository:e};a.kind===4?ga(a.ruleName,i,n):_a(i,n)}else a.kind===4?n.add(new fa(a.scopeName,a.ruleName)):n.add(new da(a.scopeName));break}}}var ya=class{kind=0},ba=class{kind=1},xa=class{constructor(e){this.ruleName=e}kind=2},Sa=class{constructor(e){this.scopeName=e}kind=3},Ca=class{constructor(e,t){this.scopeName=e,this.ruleName=t}kind=4};function wa(e){if(e===`$base`)return new ya;if(e===`$self`)return new ba;let t=e.indexOf(`#`);return t===-1?new Sa(e):t===0?new xa(e.substring(1)):new Ca(e.substring(0,t),e.substring(t+1))}var Ta=/\\(\d+)/,Ea=/\\(\d+)/g,Da=-1,Oa=-2;function ka(e){return e}function Aa(e){return e}var ja=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,t,n,r){this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=zi.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=zi.hasCaptures(this._contentName)}get debugName(){let e=this.$location?`${Li(this.$location.filename)}:${this.$location.line}`:`unknown`;return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return!this._nameIsCapturing||this._name===null||e===null||t===null?this._name:zi.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:zi.replaceCaptures(this._contentName,e,t)}},Ma=class extends ja{retokenizeCapturedWithRuleId;constructor(e,t,n,r,i){super(e,t,n,r),this.retokenizeCapturedWithRuleId=i}dispose(){}collectPatterns(e,t){throw Error(`Not supported!`)}compile(e,t){throw Error(`Not supported!`)}compileAG(e,t,n,r){throw Error(`Not supported!`)}},Na=class extends ja{_match;captures;_cachedCompiledPatterns;constructor(e,t,n,r,i){super(e,t,n,null),this._match=new Ra(r,this.id),this.captures=i,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new za,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Pa=class extends ja{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,i){super(e,t,n,r),this.patterns=i.patterns,this.hasMissingPatterns=i.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),null)}collectPatterns(e,t){for(let n of this.patterns)e.getRule(n).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new za,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Fa=class extends ja{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,i,a,o,s,c,l){super(e,t,n,r),this._begin=new Ra(i,this.id),this.beginCaptures=a,this._end=new Ra(o||``,-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=s,this.applyEndPatternLast=c||!1,this.patterns=l.patterns,this.hasMissingPatterns=l.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e,t).compileAG(e,n,r)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new za;for(let t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}},Ia=class extends ja{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(e,t,n,r,i,a,o,s,c){super(e,t,n,r),this._begin=new Ra(i,this.id),this.beginCaptures=a,this.whileCaptures=s,this._while=new Ra(o,Oa),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),null),this._cachedCompiledWhilePatterns&&=(this._cachedCompiledWhilePatterns.dispose(),null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new za;for(let t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,n,r){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,n,r)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new za,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||``),this._cachedCompiledWhilePatterns}},La=class e{static createCaptureRule(e,t,n,r,i){return e.registerRule(e=>new Ma(t,e,n,r,i))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(i=>{if(t.id=i,t.match)return new Na(t.$vscodeTextmateLocation,t.id,t.name,t.match,e._compileCaptures(t.captures,n,r));if(t.begin===void 0){t.repository&&(r=Ii({},r,t.repository));let i=t.patterns;return i===void 0&&t.include&&(i=[{include:t.include}]),new Pa(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,e._compilePatterns(i,n,r))}return t.while?new Ia(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,n,r),t.while,e._compileCaptures(t.whileCaptures||t.captures,n,r),e._compilePatterns(t.patterns,n,r)):new Fa(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,n,r),t.end,e._compileCaptures(t.endCaptures||t.captures,n,r),t.applyEndPatternLast,e._compilePatterns(t.patterns,n,r))}),t.id}static _compileCaptures(t,n,r){let i=[];if(t){let a=0;for(let e in t){if(e===`$vscodeTextmateLocation`)continue;let t=parseInt(e,10);t>a&&(a=t)}for(let e=0;e<=a;e++)i[e]=null;for(let a in t){if(a===`$vscodeTextmateLocation`)continue;let o=parseInt(a,10),s=0;t[a].patterns&&(s=e.getCompiledRuleId(t[a],n,r)),i[o]=e.createCaptureRule(n,t[a].$vscodeTextmateLocation,t[a].name,t[a].contentName,s)}}return i}static _compilePatterns(t,n,r){let i=[];if(t)for(let a=0,o=t.length;a<o;a++){let o=t[a],s=-1;if(o.include){let t=wa(o.include);switch(t.kind){case 0:case 1:s=e.getCompiledRuleId(r[o.include],n,r);break;case 2:let i=r[t.ruleName];i&&(s=e.getCompiledRuleId(i,n,r));break;case 3:case 4:let a=t.scopeName,c=t.kind===4?t.ruleName:null,l=n.getExternalGrammar(a,r);if(l)if(c){let t=l.repository[c];t&&(s=e.getCompiledRuleId(t,n,l.repository))}else s=e.getCompiledRuleId(l.repository.$self,n,l.repository);break}}else s=e.getCompiledRuleId(o,n,r);if(s!==-1){let e=n.getRule(s),t=!1;if((e instanceof Pa||e instanceof Fa||e instanceof Ia)&&e.hasMissingPatterns&&e.patterns.length===0&&(t=!0),t)continue;i.push(s)}}return{patterns:i,hasMissingPatterns:(t?t.length:0)!==i.length}}},Ra=class e{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(e,t){if(e&&typeof e==`string`){let t=e.length,n=0,r=[],i=!1;for(let a=0;a<t;a++)if(e.charAt(a)===`\\`&&a+1<t){let t=e.charAt(a+1);t===`z`?(r.push(e.substring(n,a)),r.push(`$(?!\\n)(?<!\\n)`),n=a+2):(t===`A`||t===`G`)&&(i=!0),a++}this.hasAnchor=i,n===0?this.source=e:(r.push(e.substring(n,t)),this.source=r.join(``))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=t,typeof this.source==`string`?this.hasBackReferences=Ta.test(this.source):this.hasBackReferences=!1}clone(){return new e(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){if(typeof this.source!=`string`)throw Error(`This method should only be called if the source is a string`);let n=t.map(t=>e.substring(t.start,t.end));return Ea.lastIndex=0,this.source.replace(Ea,(e,t)=>Ui(n[parseInt(t,10)]||``))}_buildAnchorCache(){if(typeof this.source!=`string`)throw Error(`This method should only be called if the source is a string`);let e=[],t=[],n=[],r=[],i,a,o,s;for(i=0,a=this.source.length;i<a;i++)o=this.source.charAt(i),e[i]=o,t[i]=o,n[i]=o,r[i]=o,o===`\\`&&i+1<a&&(s=this.source.charAt(i+1),s===`A`?(e[i+1]=``,t[i+1]=``,n[i+1]=`A`,r[i+1]=`A`):s===`G`?(e[i+1]=``,t[i+1]=`G`,n[i+1]=``,r[i+1]=`G`):(e[i+1]=s,t[i+1]=s,n[i+1]=s,r[i+1]=s),i++);return{A0_G0:e.join(``),A0_G1:t.join(``),A1_G0:n.join(``),A1_G1:r.join(``)}}resolveAnchors(e,t){return!this.hasAnchor||!this._anchorCache||typeof this.source!=`string`?this.source:e?t?this._anchorCache.A1_G1:this._anchorCache.A1_G0:t?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},za=class{_items;_hasAnchors;_cached;_anchorCache;constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&=(this._cached.dispose(),null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map(e=>e.source);this._cached=new Ba(e,t,this._items.map(e=>e.ruleId))}return this._cached}compileAG(e,t,n){return this._hasAnchors?t?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G0):n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,n){return new Ba(e,this._items.map(e=>e.resolveAnchors(t,n)),this._items.map(e=>e.ruleId))}},Ba=class{constructor(e,t,n){this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}scanner;dispose(){typeof this.scanner.dispose==`function`&&this.scanner.dispose()}toString(){let e=[];for(let t=0,n=this.rules.length;t<n;t++)e.push(` - `+this.rules[t]+`: `+this.regExps[t]);return e.join(`
|
|
5
|
-
`)}findNextMatchSync(e,t,n){let r=this.scanner.findNextMatchSync(e,t,n);return r?{ruleId:this.rules[r.index],captureIndices:r.captureIndices}:null}},
|
|
6
|
-
`;let a=this.createOnigString(e),o=a.content.length,s=new fo(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),c=Ka(this,a,i,0,t,s,!0,r);return ua(a),{lineLength:o,lineTokens:s,ruleStack:c.stack,stoppedEarly:c.stoppedEarly}}};function so(e,t){return e=Mi(e),e.repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}var co=class e{constructor(e,t,n){this.parent=e,this.scopePath=t,this.tokenAttributes=n}static fromExtension(t,n){let r=t,i=t?.scopePath??null;for(let t of n)i=Ki.push(i,t.scopeNames),r=new e(r,i,t.encodedTokenAttributes);return r}static createRoot(t,n){return new e(null,new Ki(null,t),n)}static createRootAndLookUpScopeName(t,n,r){let i=r.getMetadataForScope(t),a=new Ki(null,t),o=r.themeProvider.themeMatch(a);return new e(null,a,e.mergeAttributes(n,i,o))}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(` `)}equals(t){return e.equals(this,t)}static equals(e,t){do{if(e===t||!e&&!t)return!0;if(!e||!t||e.scopeName!==t.scopeName||e.tokenAttributes!==t.tokenAttributes)return!1;e=e.parent,t=t.parent}while(!0)}static mergeAttributes(e,t,n){let r=-1,i=0,a=0;return n!==null&&(r=n.fontStyle,i=n.foregroundId,a=n.backgroundId),ia.set(e,t.languageId,t.tokenType,null,r,i,a)}pushAttributed(t,n){if(t===null)return this;if(t.indexOf(` `)===-1)return e._pushAttributed(this,t,n);let r=t.split(/ /g),i=this;for(let t of r)i=e._pushAttributed(i,t,n);return i}static _pushAttributed(t,n,r){let i=r.getMetadataForScope(n),a=t.scopePath.push(n),o=r.themeProvider.themeMatch(a);return new e(t,a,e.mergeAttributes(t.tokenAttributes,i,o))}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(e){let t=[],n=this;for(;n&&n!==e;)t.push({encodedTokenAttributes:n.tokenAttributes,scopeNames:n.scopePath.getExtensionIfDefined(n.parent?.scopePath??null)}),n=n.parent;return n===e?t.reverse():void 0}},lo=class e{constructor(e,t,n,r,i,a,o,s){this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=i,this.endRule=a,this.nameScopesList=o,this.contentNameScopesList=s,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=n,this._anchorPos=r}_stackElementBrand=void 0;static NULL=new e(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(t){return t===null?!1:e._equals(this,t)}static _equals(e,t){return e===t?!0:this._structuralEquals(e,t)?co.equals(e.contentNameScopesList,t.contentNameScopesList):!1}static _structuralEquals(e,t){do{if(e===t||!e&&!t)return!0;if(!e||!t||e.depth!==t.depth||e.ruleId!==t.ruleId||e.endRule!==t.endRule)return!1;e=e.parent,t=t.parent}while(!0)}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){e._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,n,r,i,a,o,s){return new e(this,t,n,r,i,a,o,s)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){let e=[];return this._writeString(e,0),`[`+e.join(`,`)+`]`}_writeString(e,t){return this.parent&&(t=this.parent._writeString(e,t)),e[t++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,t}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(t){return this.endRule===t?this:new e(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let t=this;for(;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1}toStateStackFrame(){return{ruleId:Aa(this.ruleId),beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList??null)??[],contentNameScopesList:this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList)??[]}}static pushFrame(t,n){let r=co.fromExtension(t?.nameScopesList??null,n.nameScopesList);return new e(t,ka(n.ruleId),n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,r,co.fromExtension(r,n.contentNameScopesList))}},uo=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(e,t){this.balancedBracketScopes=e.flatMap(e=>e===`*`?(this.allowAny=!0,[]):sa(e,io).map(e=>e.matcher)),this.unbalancedBracketScopes=t.flatMap(e=>sa(e,io).map(e=>e.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(e){for(let t of this.unbalancedBracketScopes)if(t(e))return!1;for(let t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}},fo=class{constructor(e,t,n,r){this.balancedBracketSelectors=r,this._emitBinaryTokens=e,this._tokenTypeOverrides=n,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}_emitBinaryTokens;_lineText;_tokens;_binaryTokens;_lastTokenEndIndex;_tokenTypeOverrides;produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let n=e?.tokenAttributes??0,r=!1;if(this.balancedBracketSelectors?.matchesAlways&&(r=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){let t=e?.getScopeNames()??[];for(let e of this._tokenTypeOverrides)e.matcher(t)&&(n=ia.set(n,0,aa(e.type),null,-1,0,0));this.balancedBracketSelectors&&(r=this.balancedBracketSelectors.match(t))}if(r&&(n=ia.set(n,0,8,r,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===n){this._lastTokenEndIndex=t;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(n),this._lastTokenEndIndex=t;return}let n=e?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:n}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);let n=new Uint32Array(this._binaryTokens.length);for(let e=0,t=this._binaryTokens.length;e<t;e++)n[e]=this._binaryTokens[e];return n}},po=class{constructor(e,t){this._onigLib=t,this._theme=e}_grammars=new Map;_rawGrammars=new Map;_injectionGrammars=new Map;_theme;dispose(){for(let e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}grammarForScopeName(e,t,n,r,i){if(!this._grammars.has(e)){let a=this._rawGrammars.get(e);if(!a)return null;this._grammars.set(e,no(e,a,t,n,r,i,this,this._onigLib))}return this._grammars.get(e)}},mo=class{_options;_syncRegistry;_ensureGrammarCache;constructor(e){this._options=e,this._syncRegistry=new po(Gi.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(Gi.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,n){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:n})}loadGrammarWithConfiguration(e,t,n){return this._loadGrammar(e,t,n.embeddedLanguages,n.tokenTypes,new uo(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}_loadGrammar(e,t,n,r,i){let a=new ma(this._syncRegistry,e);for(;a.Q.length>0;)a.Q.map(e=>this._loadSingleGrammar(e.scopeName)),a.processQueue();return this._grammarForScopeName(e,t,n,r,i)}_loadSingleGrammar(e){this._ensureGrammarCache.has(e)||(this._doLoadSingleGrammar(e),this._ensureGrammarCache.set(e,!0))}_doLoadSingleGrammar(e){let t=this._options.loadGrammar(e);if(t){let n=typeof this._options.getInjections==`function`?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,n)}}addGrammar(e,t=[],n=0,r=null){return this._syncRegistry.addGrammar(e,t),this._grammarForScopeName(e.scopeName,n,r)}_grammarForScopeName(e,t=0,n=null,r=null,i=null){return this._syncRegistry.grammarForScopeName(e,t,n,r,i)}},ho=lo.NULL,go=/["&'<>`]/g,_o=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,vo=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,yo=/[|\\{}()[\]^$+*?.]/g,bo=new WeakMap;function xo(e,t){if(e=e.replace(t.subset?So(t.subset):go,r),t.subset||t.escapeOnly)return e;return e.replace(_o,n).replace(vo,r);function n(e,n,r){return t.format((e.charCodeAt(0)-55296)*1024+e.charCodeAt(1)-56320+65536,r.charCodeAt(n+2),t)}function r(e,n,r){return t.format(e.charCodeAt(0),r.charCodeAt(n+1),t)}}function So(e){let t=bo.get(e);return t||(t=Co(e),bo.set(e,t)),t}function Co(e){let t=[],n=-1;for(;++n<e.length;)t.push(e[n].replace(yo,`\\$&`));return RegExp(`(?:`+t.join(`|`)+`)`,`g`)}var wo=/[\dA-Fa-f]/;function To(e,t,n){let r=`&#x`+e.toString(16).toUpperCase();return n&&t&&!wo.test(String.fromCharCode(t))?r:r+`;`}var Eo=/\d/;function Do(e,t,n){let r=`&#`+String(e);return n&&t&&!Eo.test(String.fromCharCode(t))?r:r+`;`}var Oo=`AElig.AMP.Aacute.Acirc.Agrave.Aring.Atilde.Auml.COPY.Ccedil.ETH.Eacute.Ecirc.Egrave.Euml.GT.Iacute.Icirc.Igrave.Iuml.LT.Ntilde.Oacute.Ocirc.Ograve.Oslash.Otilde.Ouml.QUOT.REG.THORN.Uacute.Ucirc.Ugrave.Uuml.Yacute.aacute.acirc.acute.aelig.agrave.amp.aring.atilde.auml.brvbar.ccedil.cedil.cent.copy.curren.deg.divide.eacute.ecirc.egrave.eth.euml.frac12.frac14.frac34.gt.iacute.icirc.iexcl.igrave.iquest.iuml.laquo.lt.macr.micro.middot.nbsp.not.ntilde.oacute.ocirc.ograve.ordf.ordm.oslash.otilde.ouml.para.plusmn.pound.quot.raquo.reg.sect.shy.sup1.sup2.sup3.szlig.thorn.times.uacute.ucirc.ugrave.uml.uuml.yacute.yen.yuml`.split(`.`),ko={nbsp:`\xA0`,iexcl:`¡`,cent:`¢`,pound:`£`,curren:`¤`,yen:`¥`,brvbar:`¦`,sect:`§`,uml:`¨`,copy:`©`,ordf:`ª`,laquo:`«`,not:`¬`,shy:``,reg:`®`,macr:`¯`,deg:`°`,plusmn:`±`,sup2:`²`,sup3:`³`,acute:`´`,micro:`µ`,para:`¶`,middot:`·`,cedil:`¸`,sup1:`¹`,ordm:`º`,raquo:`»`,frac14:`¼`,frac12:`½`,frac34:`¾`,iquest:`¿`,Agrave:`À`,Aacute:`Á`,Acirc:`Â`,Atilde:`Ã`,Auml:`Ä`,Aring:`Å`,AElig:`Æ`,Ccedil:`Ç`,Egrave:`È`,Eacute:`É`,Ecirc:`Ê`,Euml:`Ë`,Igrave:`Ì`,Iacute:`Í`,Icirc:`Î`,Iuml:`Ï`,ETH:`Ð`,Ntilde:`Ñ`,Ograve:`Ò`,Oacute:`Ó`,Ocirc:`Ô`,Otilde:`Õ`,Ouml:`Ö`,times:`×`,Oslash:`Ø`,Ugrave:`Ù`,Uacute:`Ú`,Ucirc:`Û`,Uuml:`Ü`,Yacute:`Ý`,THORN:`Þ`,szlig:`ß`,agrave:`à`,aacute:`á`,acirc:`â`,atilde:`ã`,auml:`ä`,aring:`å`,aelig:`æ`,ccedil:`ç`,egrave:`è`,eacute:`é`,ecirc:`ê`,euml:`ë`,igrave:`ì`,iacute:`í`,icirc:`î`,iuml:`ï`,eth:`ð`,ntilde:`ñ`,ograve:`ò`,oacute:`ó`,ocirc:`ô`,otilde:`õ`,ouml:`ö`,divide:`÷`,oslash:`ø`,ugrave:`ù`,uacute:`ú`,ucirc:`û`,uuml:`ü`,yacute:`ý`,thorn:`þ`,yuml:`ÿ`,fnof:`ƒ`,Alpha:`Α`,Beta:`Β`,Gamma:`Γ`,Delta:`Δ`,Epsilon:`Ε`,Zeta:`Ζ`,Eta:`Η`,Theta:`Θ`,Iota:`Ι`,Kappa:`Κ`,Lambda:`Λ`,Mu:`Μ`,Nu:`Ν`,Xi:`Ξ`,Omicron:`Ο`,Pi:`Π`,Rho:`Ρ`,Sigma:`Σ`,Tau:`Τ`,Upsilon:`Υ`,Phi:`Φ`,Chi:`Χ`,Psi:`Ψ`,Omega:`Ω`,alpha:`α`,beta:`β`,gamma:`γ`,delta:`δ`,epsilon:`ε`,zeta:`ζ`,eta:`η`,theta:`θ`,iota:`ι`,kappa:`κ`,lambda:`λ`,mu:`μ`,nu:`ν`,xi:`ξ`,omicron:`ο`,pi:`π`,rho:`ρ`,sigmaf:`ς`,sigma:`σ`,tau:`τ`,upsilon:`υ`,phi:`φ`,chi:`χ`,psi:`ψ`,omega:`ω`,thetasym:`ϑ`,upsih:`ϒ`,piv:`ϖ`,bull:`•`,hellip:`…`,prime:`′`,Prime:`″`,oline:`‾`,frasl:`⁄`,weierp:`℘`,image:`ℑ`,real:`ℜ`,trade:`™`,alefsym:`ℵ`,larr:`←`,uarr:`↑`,rarr:`→`,darr:`↓`,harr:`↔`,crarr:`↵`,lArr:`⇐`,uArr:`⇑`,rArr:`⇒`,dArr:`⇓`,hArr:`⇔`,forall:`∀`,part:`∂`,exist:`∃`,empty:`∅`,nabla:`∇`,isin:`∈`,notin:`∉`,ni:`∋`,prod:`∏`,sum:`∑`,minus:`−`,lowast:`∗`,radic:`√`,prop:`∝`,infin:`∞`,ang:`∠`,and:`∧`,or:`∨`,cap:`∩`,cup:`∪`,int:`∫`,there4:`∴`,sim:`∼`,cong:`≅`,asymp:`≈`,ne:`≠`,equiv:`≡`,le:`≤`,ge:`≥`,sub:`⊂`,sup:`⊃`,nsub:`⊄`,sube:`⊆`,supe:`⊇`,oplus:`⊕`,otimes:`⊗`,perp:`⊥`,sdot:`⋅`,lceil:`⌈`,rceil:`⌉`,lfloor:`⌊`,rfloor:`⌋`,lang:`〈`,rang:`〉`,loz:`◊`,spades:`♠`,clubs:`♣`,hearts:`♥`,diams:`♦`,quot:`"`,amp:`&`,lt:`<`,gt:`>`,OElig:`Œ`,oelig:`œ`,Scaron:`Š`,scaron:`š`,Yuml:`Ÿ`,circ:`ˆ`,tilde:`˜`,ensp:` `,emsp:` `,thinsp:` `,zwnj:``,zwj:``,lrm:``,rlm:``,ndash:`–`,mdash:`—`,lsquo:`‘`,rsquo:`’`,sbquo:`‚`,ldquo:`“`,rdquo:`”`,bdquo:`„`,dagger:`†`,Dagger:`‡`,permil:`‰`,lsaquo:`‹`,rsaquo:`›`,euro:`€`},Ao=[`cent`,`copy`,`divide`,`gt`,`lt`,`not`,`para`,`times`],jo={}.hasOwnProperty,Mo={},No;for(No in ko)jo.call(ko,No)&&(Mo[ko[No]]=No);var Po=/[^\dA-Za-z]/;function Fo(e,t,n,r){let i=String.fromCharCode(e);if(jo.call(Mo,i)){let e=Mo[i],a=`&`+e;return n&&Oo.includes(e)&&!Ao.includes(e)&&(!r||t&&t!==61&&Po.test(String.fromCharCode(t)))?a:a+`;`}return``}function Io(e,t,n){let r=To(e,t,n.omitOptionalSemicolons),i;if((n.useNamedReferences||n.useShortestReferences)&&(i=Fo(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!i)&&n.useShortestReferences){let i=Do(e,t,n.omitOptionalSemicolons);i.length<r.length&&(r=i)}return i&&(!n.useShortestReferences||i.length<r.length)?i:r}function Lo(e,t){return xo(e,Object.assign({format:Io},t))}var Ro=/^>|^->|<!--|-->|--!>|<!-$/g,zo=[`>`],Bo=[`<`,`>`];function Vo(e,t,n,r){return r.settings.bogusComments?`<?`+Lo(e.value,Object.assign({},r.settings.characterReferences,{subset:zo}))+`>`:`<!--`+e.value.replace(Ro,i)+`-->`;function i(e){return Lo(e,Object.assign({},r.settings.characterReferences,{subset:Bo}))}}function Ho(e,t,n,r){return`<!`+(r.settings.upperDoctype?`DOCTYPE`:`doctype`)+(r.settings.tightDoctype?``:` `)+`html>`}var Uo=Ko(1),Wo=Ko(-1),Go=[];function Ko(e){return t;function t(t,n,r){let i=t?t.children:Go,a=(n||0)+e,o=i[a];if(!r)for(;o&&At(o);)a+=e,o=i[a];return o}}var qo={}.hasOwnProperty;function Jo(e){return t;function t(t,n,r){return qo.call(e,t.tagName)&&e[t.tagName](t,n,r)}}var Yo=Jo({body:Qo,caption:Xo,colgroup:Xo,dd:ns,dt:ts,head:Xo,html:Zo,li:es,optgroup:is,option:as,p:$o,rp:rs,rt:rs,tbody:ss,td:us,tfoot:cs,th:us,thead:os,tr:ls});function Xo(e,t,n){let r=Uo(n,t,!0);return!r||r.type!==`comment`&&!(r.type===`text`&&At(r.value.charAt(0)))}function Zo(e,t,n){let r=Uo(n,t);return!r||r.type!==`comment`}function Qo(e,t,n){let r=Uo(n,t);return!r||r.type!==`comment`}function $o(e,t,n){let r=Uo(n,t);return r?r.type===`element`&&(r.tagName===`address`||r.tagName===`article`||r.tagName===`aside`||r.tagName===`blockquote`||r.tagName===`details`||r.tagName===`div`||r.tagName===`dl`||r.tagName===`fieldset`||r.tagName===`figcaption`||r.tagName===`figure`||r.tagName===`footer`||r.tagName===`form`||r.tagName===`h1`||r.tagName===`h2`||r.tagName===`h3`||r.tagName===`h4`||r.tagName===`h5`||r.tagName===`h6`||r.tagName===`header`||r.tagName===`hgroup`||r.tagName===`hr`||r.tagName===`main`||r.tagName===`menu`||r.tagName===`nav`||r.tagName===`ol`||r.tagName===`p`||r.tagName===`pre`||r.tagName===`section`||r.tagName===`table`||r.tagName===`ul`):!n||!(n.type===`element`&&(n.tagName===`a`||n.tagName===`audio`||n.tagName===`del`||n.tagName===`ins`||n.tagName===`map`||n.tagName===`noscript`||n.tagName===`video`))}function es(e,t,n){let r=Uo(n,t);return!r||r.type===`element`&&r.tagName===`li`}function ts(e,t,n){let r=Uo(n,t);return!!(r&&r.type===`element`&&(r.tagName===`dt`||r.tagName===`dd`))}function ns(e,t,n){let r=Uo(n,t);return!r||r.type===`element`&&(r.tagName===`dt`||r.tagName===`dd`)}function rs(e,t,n){let r=Uo(n,t);return!r||r.type===`element`&&(r.tagName===`rp`||r.tagName===`rt`)}function is(e,t,n){let r=Uo(n,t);return!r||r.type===`element`&&r.tagName===`optgroup`}function as(e,t,n){let r=Uo(n,t);return!r||r.type===`element`&&(r.tagName===`option`||r.tagName===`optgroup`)}function os(e,t,n){let r=Uo(n,t);return!!(r&&r.type===`element`&&(r.tagName===`tbody`||r.tagName===`tfoot`))}function ss(e,t,n){let r=Uo(n,t);return!r||r.type===`element`&&(r.tagName===`tbody`||r.tagName===`tfoot`)}function cs(e,t,n){return!Uo(n,t)}function ls(e,t,n){let r=Uo(n,t);return!r||r.type===`element`&&r.tagName===`tr`}function us(e,t,n){let r=Uo(n,t);return!r||r.type===`element`&&(r.tagName===`td`||r.tagName===`th`)}var ds=Jo({body:ms,colgroup:hs,head:ps,html:fs,tbody:gs});function fs(e){let t=Uo(e,-1);return!t||t.type!==`comment`}function ps(e){let t=new Set;for(let n of e.children)if(n.type===`element`&&(n.tagName===`base`||n.tagName===`title`)){if(t.has(n.tagName))return!1;t.add(n.tagName)}let n=e.children[0];return!n||n.type===`element`}function ms(e){let t=Uo(e,-1,!0);return!t||t.type!==`comment`&&!(t.type===`text`&&At(t.value.charAt(0)))&&!(t.type===`element`&&(t.tagName===`meta`||t.tagName===`link`||t.tagName===`script`||t.tagName===`style`||t.tagName===`template`))}function hs(e,t,n){let r=Wo(n,t),i=Uo(e,-1,!0);return n&&r&&r.type===`element`&&r.tagName===`colgroup`&&Yo(r,n.children.indexOf(r),n)?!1:!!(i&&i.type===`element`&&i.tagName===`col`)}function gs(e,t,n){let r=Wo(n,t),i=Uo(e,-1);return n&&r&&r.type===`element`&&(r.tagName===`thead`||r.tagName===`tbody`)&&Yo(r,n.children.indexOf(r),n)?!1:!!(i&&i.type===`element`&&i.tagName===`tr`)}var _s={name:[[`
|
|
4
|
+
`);continue}if(o.type===`codex.reasoning.delta`||o.type===`codex.reasoning.summary.delta`){let n=M(e.itemId)??o.id,i=M(e.delta)??M(e.text)??``,a=r.get(n);if(a)a.text+=i;else{let e={kind:`reasoning`,key:`think:${n}`,text:i};r.set(n,e),t.push(e)}continue}if(o.type===`codex.item.started`||o.type===`codex.item.completed`){let r=sr(e.item),a=M(r.type)??`unknown`,s=M(r.id)??o.id;if(a===`agentMessage`){if(o.type===`codex.item.completed`){let e=M(r.text),i=fr(r.memoryCitation);if(e){let r=n.get(s);if(r)r.text=e,i&&(r.memoryCitation=i);else{let r={kind:`assistant`,key:`msg:${s}`,text:e,...i?{memoryCitation:i}:{}};n.set(s,r),t.push(r)}}}continue}if(a===`reasoning`||a===`userMessage`)continue;let c=i.get(s);if(c||(c={kind:`tool`,key:`tool:${s}`,toolType:a,title:ur(a,r),state:`input-available`,input:dr(a,r),output:``},i.set(s,c),t.push(c)),o.type===`codex.item.completed`){c.title=ur(a,r),c.input=dr(a,r);let e=M(r.aggregatedOutput)??M(r.output);e&&(c.output=e),pr(r)?(c.state=`output-error`,c.error=M(r.error)??M(r.statusMessage)??`failed`):c.state=`output-available`}continue}if(o.type===`codex.command.output`){let t=M(e.itemId),n=t?i.get(t):void 0,r=M(e.delta)??M(e.chunk)??M(e.output)??``;n&&(n.output+=r);continue}if(o.type===`codex.file_change.patch`){let t=M(e.itemId),n=t?i.get(t):void 0;n&&(n.input=e.changes??e.diff??n.input);continue}if(o.type.startsWith(`codex.approval.`)){let e=o.payload,n={kind:`approval`,key:o.id,eventType:o.type,payload:e};a.set(String(e?.requestId),n),t.push(n);continue}if(o.type===`approval.resolved`){let e=String(sr(o.payload).requestId),t=a.get(e);t&&(t.resolved=M(sr(o.payload).decision)??`resolved`,a.delete(e));continue}cr.has(o.type)&&t.push({kind:`event`,key:o.id,type:o.type,summary:mr(o.payload)})}return t}var gr=globalThis?.document?j.useLayoutEffect:()=>{},_r=j.useInsertionEffect||gr;function vr({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){let[i,a,o]=yr({defaultProp:t,onChange:n}),s=e!==void 0,c=s?e:i;{let t=j.useRef(e!==void 0);j.useEffect(()=>{let e=t.current;e!==s&&console.warn(`${r} is changing from ${e?`controlled`:`uncontrolled`} to ${s?`controlled`:`uncontrolled`}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),t.current=s},[s,r])}return[c,j.useCallback(t=>{if(s){let n=br(t)?t(e):t;n!==e&&o.current?.(n)}else a(t)},[s,e,a,o])]}function yr({defaultProp:e,onChange:t}){let[n,r]=j.useState(e),i=j.useRef(n),a=j.useRef(t);return _r(()=>{a.current=t},[t]),j.useEffect(()=>{i.current!==n&&(a.current?.(n),i.current=n)},[n,i]),[n,r,a]}function br(e){return typeof e==`function`}var xr={carriageReturn:-5,lineFeed:-4,carriageReturnLineFeed:-3,horizontalTab:-2,virtualSpace:-1,eof:null,nul:0,soh:1,stx:2,etx:3,eot:4,enq:5,ack:6,bel:7,bs:8,ht:9,lf:10,vt:11,ff:12,cr:13,so:14,si:15,dle:16,dc1:17,dc2:18,dc3:19,dc4:20,nak:21,syn:22,etb:23,can:24,em:25,sub:26,esc:27,fs:28,gs:29,rs:30,us:31,space:32,exclamationMark:33,quotationMark:34,numberSign:35,dollarSign:36,percentSign:37,ampersand:38,apostrophe:39,leftParenthesis:40,rightParenthesis:41,asterisk:42,plusSign:43,comma:44,dash:45,dot:46,slash:47,digit0:48,digit1:49,digit2:50,digit3:51,digit4:52,digit5:53,digit6:54,digit7:55,digit8:56,digit9:57,colon:58,semicolon:59,lessThan:60,equalsTo:61,greaterThan:62,questionMark:63,atSign:64,uppercaseA:65,uppercaseB:66,uppercaseC:67,uppercaseD:68,uppercaseE:69,uppercaseF:70,uppercaseG:71,uppercaseH:72,uppercaseI:73,uppercaseJ:74,uppercaseK:75,uppercaseL:76,uppercaseM:77,uppercaseN:78,uppercaseO:79,uppercaseP:80,uppercaseQ:81,uppercaseR:82,uppercaseS:83,uppercaseT:84,uppercaseU:85,uppercaseV:86,uppercaseW:87,uppercaseX:88,uppercaseY:89,uppercaseZ:90,leftSquareBracket:91,backslash:92,rightSquareBracket:93,caret:94,underscore:95,graveAccent:96,lowercaseA:97,lowercaseB:98,lowercaseC:99,lowercaseD:100,lowercaseE:101,lowercaseF:102,lowercaseG:103,lowercaseH:104,lowercaseI:105,lowercaseJ:106,lowercaseK:107,lowercaseL:108,lowercaseM:109,lowercaseN:110,lowercaseO:111,lowercaseP:112,lowercaseQ:113,lowercaseR:114,lowercaseS:115,lowercaseT:116,lowercaseU:117,lowercaseV:118,lowercaseW:119,lowercaseX:120,lowercaseY:121,lowercaseZ:122,leftCurlyBrace:123,verticalBar:124,rightCurlyBrace:125,tilde:126,del:127,byteOrderMarker:65279,replacementCharacter:65533},Sr={attentionSideAfter:2,attentionSideBefore:1,atxHeadingOpeningFenceSizeMax:6,autolinkDomainSizeMax:63,autolinkSchemeSizeMax:32,cdataOpeningString:`CDATA[`,characterGroupPunctuation:2,characterGroupWhitespace:1,characterReferenceDecimalSizeMax:7,characterReferenceHexadecimalSizeMax:6,characterReferenceNamedSizeMax:31,codeFencedSequenceSizeMin:3,contentTypeContent:`content`,contentTypeDocument:`document`,contentTypeFlow:`flow`,contentTypeString:`string`,contentTypeText:`text`,hardBreakPrefixSizeMin:2,htmlBasic:6,htmlCdata:5,htmlComment:2,htmlComplete:7,htmlDeclaration:4,htmlInstruction:3,htmlRawSizeMax:8,htmlRaw:1,linkResourceDestinationBalanceMax:32,linkReferenceSizeMax:999,listItemValueSizeMax:10,numericBaseDecimal:10,numericBaseHexadecimal:16,tabSize:4,thematicBreakMarkerCountMin:3,v8MaxSafeChunkSize:1e4},Cr={data:`data`,whitespace:`whitespace`,lineEnding:`lineEnding`,lineEndingBlank:`lineEndingBlank`,linePrefix:`linePrefix`,lineSuffix:`lineSuffix`,atxHeading:`atxHeading`,atxHeadingSequence:`atxHeadingSequence`,atxHeadingText:`atxHeadingText`,autolink:`autolink`,autolinkEmail:`autolinkEmail`,autolinkMarker:`autolinkMarker`,autolinkProtocol:`autolinkProtocol`,characterEscape:`characterEscape`,characterEscapeValue:`characterEscapeValue`,characterReference:`characterReference`,characterReferenceMarker:`characterReferenceMarker`,characterReferenceMarkerNumeric:`characterReferenceMarkerNumeric`,characterReferenceMarkerHexadecimal:`characterReferenceMarkerHexadecimal`,characterReferenceValue:`characterReferenceValue`,codeFenced:`codeFenced`,codeFencedFence:`codeFencedFence`,codeFencedFenceSequence:`codeFencedFenceSequence`,codeFencedFenceInfo:`codeFencedFenceInfo`,codeFencedFenceMeta:`codeFencedFenceMeta`,codeFlowValue:`codeFlowValue`,codeIndented:`codeIndented`,codeText:`codeText`,codeTextData:`codeTextData`,codeTextPadding:`codeTextPadding`,codeTextSequence:`codeTextSequence`,content:`content`,definition:`definition`,definitionDestination:`definitionDestination`,definitionDestinationLiteral:`definitionDestinationLiteral`,definitionDestinationLiteralMarker:`definitionDestinationLiteralMarker`,definitionDestinationRaw:`definitionDestinationRaw`,definitionDestinationString:`definitionDestinationString`,definitionLabel:`definitionLabel`,definitionLabelMarker:`definitionLabelMarker`,definitionLabelString:`definitionLabelString`,definitionMarker:`definitionMarker`,definitionTitle:`definitionTitle`,definitionTitleMarker:`definitionTitleMarker`,definitionTitleString:`definitionTitleString`,emphasis:`emphasis`,emphasisSequence:`emphasisSequence`,emphasisText:`emphasisText`,escapeMarker:`escapeMarker`,hardBreakEscape:`hardBreakEscape`,hardBreakTrailing:`hardBreakTrailing`,htmlFlow:`htmlFlow`,htmlFlowData:`htmlFlowData`,htmlText:`htmlText`,htmlTextData:`htmlTextData`,image:`image`,label:`label`,labelText:`labelText`,labelLink:`labelLink`,labelImage:`labelImage`,labelMarker:`labelMarker`,labelImageMarker:`labelImageMarker`,labelEnd:`labelEnd`,link:`link`,paragraph:`paragraph`,reference:`reference`,referenceMarker:`referenceMarker`,referenceString:`referenceString`,resource:`resource`,resourceDestination:`resourceDestination`,resourceDestinationLiteral:`resourceDestinationLiteral`,resourceDestinationLiteralMarker:`resourceDestinationLiteralMarker`,resourceDestinationRaw:`resourceDestinationRaw`,resourceDestinationString:`resourceDestinationString`,resourceMarker:`resourceMarker`,resourceTitle:`resourceTitle`,resourceTitleMarker:`resourceTitleMarker`,resourceTitleString:`resourceTitleString`,setextHeading:`setextHeading`,setextHeadingText:`setextHeadingText`,setextHeadingLine:`setextHeadingLine`,setextHeadingLineSequence:`setextHeadingLineSequence`,strong:`strong`,strongSequence:`strongSequence`,strongText:`strongText`,thematicBreak:`thematicBreak`,thematicBreakSequence:`thematicBreakSequence`,blockQuote:`blockQuote`,blockQuotePrefix:`blockQuotePrefix`,blockQuoteMarker:`blockQuoteMarker`,blockQuotePrefixWhitespace:`blockQuotePrefixWhitespace`,listOrdered:`listOrdered`,listUnordered:`listUnordered`,listItemIndent:`listItemIndent`,listItemMarker:`listItemMarker`,listItemPrefix:`listItemPrefix`,listItemPrefixWhitespace:`listItemPrefixWhitespace`,listItemValue:`listItemValue`,chunkDocument:`chunkDocument`,chunkContent:`chunkContent`,chunkFlow:`chunkFlow`,chunkText:`chunkText`,chunkString:`chunkString`},wr=[161,161,164,164,167,168,170,170,173,174,176,180,182,186,188,191,198,198,208,208,215,216,222,225,230,230,232,234,236,237,240,240,242,243,247,250,252,252,254,254,257,257,273,273,275,275,283,283,294,295,299,299,305,307,312,312,319,322,324,324,328,331,333,333,338,339,358,359,363,363,462,462,464,464,466,466,468,468,470,470,472,472,474,474,476,476,593,593,609,609,708,708,711,711,713,715,717,717,720,720,728,731,733,733,735,735,768,879,913,929,931,937,945,961,963,969,1025,1025,1040,1103,1105,1105,8208,8208,8211,8214,8216,8217,8220,8221,8224,8226,8228,8231,8240,8240,8242,8243,8245,8245,8251,8251,8254,8254,8308,8308,8319,8319,8321,8324,8364,8364,8451,8451,8453,8453,8457,8457,8467,8467,8470,8470,8481,8482,8486,8486,8491,8491,8531,8532,8539,8542,8544,8555,8560,8569,8585,8585,8592,8601,8632,8633,8658,8658,8660,8660,8679,8679,8704,8704,8706,8707,8711,8712,8715,8715,8719,8719,8721,8721,8725,8725,8730,8730,8733,8736,8739,8739,8741,8741,8743,8748,8750,8750,8756,8759,8764,8765,8776,8776,8780,8780,8786,8786,8800,8801,8804,8807,8810,8811,8814,8815,8834,8835,8838,8839,8853,8853,8857,8857,8869,8869,8895,8895,8978,8978,9312,9449,9451,9547,9552,9587,9600,9615,9618,9621,9632,9633,9635,9641,9650,9651,9654,9655,9660,9661,9664,9665,9670,9672,9675,9675,9678,9681,9698,9701,9711,9711,9733,9734,9737,9737,9742,9743,9756,9756,9758,9758,9792,9792,9794,9794,9824,9825,9827,9829,9831,9834,9836,9837,9839,9839,9886,9887,9919,9919,9926,9933,9935,9939,9941,9953,9955,9955,9960,9961,9963,9969,9972,9972,9974,9977,9979,9980,9982,9983,10045,10045,10102,10111,11094,11097,12872,12879,57344,63743,65024,65039,65533,65533,127232,127242,127248,127277,127280,127337,127344,127373,127375,127376,127387,127404,917760,917999,983040,1048573,1048576,1114109],Tr=[12288,12288,65281,65376,65504,65510],Er=[8361,8361,65377,65470,65474,65479,65482,65487,65490,65495,65498,65500,65512,65518],Dr=[32,126,162,163,165,166,172,172,175,175,10214,10221,10629,10630],Or=[4352,4447,8986,8987,9001,9002,9193,9196,9200,9200,9203,9203,9725,9726,9748,9749,9776,9783,9800,9811,9855,9855,9866,9871,9875,9875,9889,9889,9898,9899,9917,9918,9924,9925,9934,9934,9940,9940,9962,9962,9970,9971,9973,9973,9978,9978,9981,9981,9989,9989,9994,9995,10024,10024,10060,10060,10062,10062,10067,10069,10071,10071,10133,10135,10160,10160,10175,10175,11035,11036,11088,11088,11093,11093,11904,11929,11931,12019,12032,12245,12272,12287,12289,12350,12353,12438,12441,12543,12549,12591,12593,12686,12688,12773,12783,12830,12832,12871,12880,42124,42128,42182,43360,43388,44032,55203,63744,64255,65040,65049,65072,65106,65108,65126,65128,65131,94176,94180,94192,94198,94208,101589,101631,101662,101760,101874,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,119552,119638,119648,119670,126980,126980,127183,127183,127374,127374,127377,127386,127488,127490,127504,127547,127552,127560,127568,127569,127584,127589,127744,127776,127789,127797,127799,127868,127870,127891,127904,127946,127951,127955,127968,127984,127988,127988,127992,128062,128064,128064,128066,128252,128255,128317,128331,128334,128336,128359,128378,128378,128405,128406,128420,128420,128507,128591,128640,128709,128716,128716,128720,128722,128725,128728,128732,128735,128747,128748,128756,128764,128992,129003,129008,129008,129292,129338,129340,129349,129351,129535,129648,129660,129664,129674,129678,129734,129736,129736,129741,129756,129759,129770,129775,129784,131072,196605,196608,262141],kr=(e,t)=>{let n=0,r=Math.floor(e.length/2)-1;for(;n<=r;){let i=Math.floor((n+r)/2),a=i*2;if(t<e[a])r=i-1;else if(t>e[a+1])n=i+1;else return!0}return!1},Ar=19968,[jr,Mr]=Nr(Or);function Nr(e){let t=e[0],n=e[1];for(let r=0;r<e.length;r+=2){let i=e[r],a=e[r+1];if(Ar>=i&&Ar<=a)return[i,a];a-i>n-t&&(t=i,n=a)}return[t,n]}var Pr=e=>e<161||e>1114109?!1:kr(wr,e),Fr=e=>e<12288||e>65510?!1:kr(Tr,e),Ir=e=>e<8361||e>65518?!1:kr(Er,e),Lr=e=>e<32||e>10630?!1:kr(Dr,e),Rr=e=>e>=jr&&e<=Mr?!0:e<4352||e>262141?!1:kr(Or,e);function zr(e){return Pr(e)?`ambiguous`:Fr(e)?`fullwidth`:Ir(e)?`halfwidth`:Lr(e)?`narrow`:Rr(e)?`wide`:`neutral`}function Br(e){if(!Number.isSafeInteger(e))throw TypeError(`Expected a code point, got \`${typeof e}\`.`)}function Vr(e){return Br(e),zr(e)}function Hr(e){return/^\p{Emoji_Presentation}/u.test(String.fromCodePoint(e))}function Ur(e){if(!e||e<4352)return!1;switch(Vr(e)){case`fullwidth`:case`halfwidth`:return!0;case`wide`:return!Hr(e);case`narrow`:return!1;case`ambiguous`:return 917760<=e&&e<=917999?null:!1;case`neutral`:return/^\p{sc=Hangul}/u.test(String.fromCodePoint(e))}}function Wr(e,t){return t!==65025||!e||e<8216?!1:e===8216||e===8217||e===8220||e===8221}function Gr(e){return e!==null&&e>=65024&&e<=65038}var Kr=Jr(/\p{P}|\p{S}/u),qr=Jr(/\s/);function Jr(e){return t;function t(t){return t!==null&&t>-1&&e.test(String.fromCodePoint(t))}}function Yr(e){return!!(e&Sr.characterGroupWhitespace)}function Xr(e){return(e&ni.cjkPunctuation)===Sr.characterGroupPunctuation}function Zr(e){return!!(e&ni.cjk)}function Qr(e){return e===ni.ivs}function $r(e){return!!(e&ni.cjkOrIvs)}function ei(e){return e===ni.nonEmojiGeneralUseVS}function ti(e){return!!(e&ni.spaceOrPunctuation)}var ni;(function(e){e.spaceOrPunctuation=3,e.cjk=4096,e.cjkPunctuation=4098,e.ivs=8192,e.cjkOrIvs=12288,e.nonEmojiGeneralUseVS=16384,e.variationSelector=24576,e.ivsToCjkRightShift=1})(ni||={});function ri(e){if(e===xr.eof||St(e)||qr(e))return Sr.characterGroupWhitespace;let t=0;if(e>=4352){if(Gr(e))return ni.nonEmojiGeneralUseVS;switch(Ur(e)){case null:return ni.ivs;case!0:t|=ni.cjk;break}}return Kr(e)&&(t|=Sr.characterGroupPunctuation),t}function ii(e,t,n){if(!ei(e))return e;let r=t(),i=ri(r);return!r||Yr(i)?e:Wr(r,n)?ni.cjkPunctuation:ai(i)}function ai(e){return e&~ni.ivs}function oi(e){return!!(e&&e>=55296&&e<=56319)}function si(e){return!!(e&&e>=56320&&e<=57343)}function ci(e,t,n){if(t._bufferIndex<2)return e;let r=n({start:{...t,_bufferIndex:t._bufferIndex-2},end:t}).codePointAt(0);return r&&r>=65536?r:e}function li(e,t,n){let r=e>=65536?2:1;if(t._bufferIndex<1+r)return null;let i=t._bufferIndex-r-2,a=n({start:{...t,_bufferIndex:i>=0?i:0},end:{...t,_bufferIndex:t._bufferIndex-r}}),o=a.charCodeAt(a.length-1);if(Number.isNaN(o))return null;if(a.length<2||o<56320||57343<o)return o;let s=a.codePointAt(0);return s&&s>=65536?s:o}var ui=class{cachedValue=void 0;constructor(e,t,n){this.previousCode=e,this.nowPoint=t,this.sliceSerialize=n}value(){return this.cachedValue===void 0&&(this.cachedValue=li(this.previousCode,this.nowPoint,this.sliceSerialize)),this.cachedValue}};function di(e,t,n){let r=n({start:t,end:{...t,_bufferIndex:t._bufferIndex+2}}).codePointAt(0);return r&&r>=65536?r:e}var fi={name:`attention`,resolveAll:pi,tokenize:mi};function pi(e,t){let n=-1,r,i,a,o,s,c,l,u;for(;++n<e.length;)if(e[n][0]===`enter`&&e[n][1].type===`attentionSequence`&&e[n][1]._close){for(r=n;r--;)if(e[r][0]===`exit`&&e[r][1].type===`attentionSequence`&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;c=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;let d={...e[r][1].end},f={...e[n][1].start};hi(d,-c),hi(f,c),o={type:c>1?Cr.strongSequence:Cr.emphasisSequence,start:d,end:{...e[r][1].end}},s={type:c>1?Cr.strongSequence:Cr.emphasisSequence,start:{...e[n][1].start},end:f},a={type:c>1?Cr.strongText:Cr.emphasisText,start:{...e[r][1].end},end:{...e[n][1].start}},i={type:c>1?Cr.strong:Cr.emphasis,start:{...o.start},end:{...s.end}},e[r][1].end={...o.start},e[n][1].start={...s.end},l=[],e[r][1].end.offset-e[r][1].start.offset&&(l=wt(l,[[`enter`,e[r][1],t],[`exit`,e[r][1],t]])),l=wt(l,[[`enter`,i,t],[`enter`,o,t],[`exit`,o,t],[`enter`,a,t]]),t.parser.constructs.insideSpan.null,l=wt(l,Bt(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),l=wt(l,[[`exit`,a,t],[`enter`,s,t],[`exit`,s,t],[`exit`,i,t]]),e[n][1].end.offset-e[n][1].start.offset?(u=2,l=wt(l,[[`enter`,e[n][1],t],[`exit`,e[n][1],t]])):u=0,xt(e,r-1,n-r+3,l),n=r+l.length-u-2;break}}for(n=-1;++n<e.length;)e[n][1].type===`attentionSequence`&&(e[n][1].type=`data`);return e}function mi(e,t){let n=this.parser.constructs.attentionMarkers.null,{now:r,sliceSerialize:i,previous:a}=this,o=si(a)?ci(a,r(),i):a,s=ri(o),c=new ui(o,r(),i),l=ii(s,c.value.bind(c),o),u;return d;function d(t){return t===xr.asterisk||xr.underscore,u=t,e.enter(`attentionSequence`),f(t)}function f(a){if(a===u)return e.consume(a),f;let s=e.exit(`attentionSequence`),c=ri(oi(a)?di(a,r(),i):a),d=Xr(l),p=d||Yr(l),m=Xr(c),h=m||Yr(c),g=$r(l),_=!h||m&&(p||g)||n.includes(a),v=!p||d&&(h||Zr(c))||n.includes(o);return s._open=!!(u===xr.asterisk?_:_&&(ti(l)||!v)),s._close=!!(u===xr.asterisk?v:v&&(ti(c)||!_)),t(a)}}function hi(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}function gi(){return{text:{[xr.asterisk]:fi,[xr.underscore]:fi},insideSpan:{null:[fi]}}}function _i(){let e=this.data();(e.micromarkExtensions||=[]).push(gi())}function vi(e){let t=(e||{}).singleTilde,n={name:`strikethrough`,tokenize:i,resolveAll:r};return t??=!0,{text:{[xr.tilde]:n},insideSpan:{null:[n]},attentionMarkers:{null:[xr.tilde]}};function r(e,t){let n=-1;for(;++n<e.length;)if(e[n][0]===`enter`&&e[n][1].type===`strikethroughSequenceTemporary`&&e[n][1]._close){let r=n;for(;r--;)if(e[r][0]===`exit`&&e[r][1].type===`strikethroughSequenceTemporary`&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset===e[r][1].end.offset-e[r][1].start.offset){e[n][1].type=`strikethroughSequence`,e[r][1].type=`strikethroughSequence`;let i={type:`strikethrough`,start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},a={type:`strikethroughText`,start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},o=[[`enter`,i,t],[`enter`,e[r][1],t],[`exit`,e[r][1],t],[`enter`,a,t]],s=t.parser.constructs.insideSpan.null;s&&xt(o,o.length,0,Bt(s,e.slice(r+1,n),t)),xt(o,o.length,0,[[`exit`,a,t],[`enter`,e[n][1],t],[`exit`,e[n][1],t],[`exit`,i,t]]),xt(e,r-1,n-r+3,o),n=r+o.length-2;break}}for(n=-1;++n<e.length;)e[n][1].type===`strikethroughSequenceTemporary`&&(e[n][1].type=Cr.data);return e}function i(e,n,r){let{now:i,sliceSerialize:a,previous:o}=this,s=si(o)?ci(o,i(),a):o,c=ri(s),l=new ui(s,i(),a),u=ii(c,l.value.bind(l),s),d=this.events,f=0;return p;function p(t){return xr.tilde,s===xr.tilde&&d[d.length-1][1].type!==Cr.characterEscape?r(t):(e.enter(`strikethroughSequenceTemporary`),m(t))}function m(o){let c=ri(s);if(o===xr.tilde)return f>1?r(o):(e.consume(o),f++,m);if(f<2&&!t)return r(o);let l=e.exit(`strikethroughSequenceTemporary`),d=ri(oi(o)?di(o,i(),a):o),p=Xr(u)||Yr(u),h=Xr(d)||Yr(d),g=Zr(u)||Qr(c);return l._open=!h||d===Sr.attentionSideAfter&&(p||g),l._close=!p||c===Sr.attentionSideAfter&&(h||Zr(d)),n(o)}}}function yi(e){let t=this.data();(t.micromarkExtensions||=[]).push(vi(e))}var bi=new Set([`。`,`.`,`,`,`、`,`?`,`!`,`:`,`;`,`(`,`)`,`【`,`】`,`「`,`」`,`『`,`』`,`〈`,`〉`,`《`,`》`]),xi=/^(https?:\/\/|mailto:|www\.)/i,Si=e=>{if(e.children.length!==1)return!1;let t=e.children[0];return t.type===`text`&&t.value===e.url},Ci=e=>{let t=0;for(let n of e){if(bi.has(n))return t;t+=n.length}return null},wi=(e,t)=>({...t,url:e,children:[{type:`text`,value:e}]}),Ti=e=>({type:`text`,value:e}),Ei=()=>e=>{Et(e,`link`,(e,t,n)=>{if(!n||typeof t!=`number`||!Si(e)||!xi.test(e.url))return;let r=Ci(e.url);if(r===null||r===0)return;let i=e.url.slice(0,r),a=e.url.slice(r),o=wi(i,e),s=Ti(a);return n.children.splice(t,1,o,s),t+1})};function Di(){let e=[_i],t=[Ei,yi];return{name:`cjk`,type:`cjk`,remarkPluginsBefore:e,remarkPluginsAfter:t,remarkPlugins:[...e,...t]}}var Oi=Di(),ki=class extends Error{constructor(e){super(e),this.name=`ShikiError`}};function Ai(e){return ji(e)}function ji(e){return Array.isArray(e)?Mi(e):e instanceof RegExp?e:typeof e==`object`?Ni(e):e}function Mi(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=ji(e[n]);return t}function Ni(e){let t={};for(let n in e)t[n]=ji(e[n]);return t}function Pi(e,...t){return t.forEach(t=>{for(let n in t)e[n]=t[n]}),e}function Fi(e){let t=~e.lastIndexOf(`/`)||~e.lastIndexOf(`\\`);return t===0?e:~t===e.length-1?Fi(e.substring(0,e.length-1)):e.substr(~t+1)}var Ii=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,Li=class{static hasCaptures(e){return e===null?!1:(Ii.lastIndex=0,Ii.test(e))}static replaceCaptures(e,t,n){return e.replace(Ii,(e,r,i,a)=>{let o=n[parseInt(r||i,10)];if(o){let e=t.substring(o.start,o.end);for(;e[0]===`.`;)e=e.substring(1);switch(a){case`downcase`:return e.toLowerCase();case`upcase`:return e.toUpperCase();default:return e}}else return e})}};function Ri(e,t){return e<t?-1:+(e>t)}function zi(e,t){if(e===null&&t===null)return 0;if(!e)return-1;if(!t)return 1;let n=e.length,r=t.length;if(n===r){for(let r=0;r<n;r++){let n=Ri(e[r],t[r]);if(n!==0)return n}return 0}return n-r}function Bi(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))}function Vi(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,`\\$&`)}var Hi=class{constructor(e){this.fn=e}cache=new Map;get(e){if(this.cache.has(e))return this.cache.get(e);let t=this.fn(e);return this.cache.set(e,t),t}},Ui=class{constructor(e,t,n){this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(Ji(e),t)}static createFromParsedTheme(e,t){return Zi(e,t)}_cachedMatchRoot=new Hi(e=>this._root.match(e));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(e===null)return this._defaults;let t=e.scopeName,n=this._cachedMatchRoot.get(t).find(t=>Gi(e.parent,t.parentScopes));return n?new qi(n.fontStyle,n.foreground,n.background):null}},Wi=class e{constructor(e,t){this.parent=e,this.scopeName=t}static push(t,n){for(let r of n)t=new e(t,r);return t}static from(...t){let n=null;for(let r=0;r<t.length;r++)n=new e(n,t[r]);return n}push(t){return new e(this,t)}getSegments(){let e=this,t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(` `)}extends(e){return this===e?!0:this.parent===null?!1:this.parent.extends(e)}getExtensionIfDefined(e){let t=[],n=this;for(;n&&n!==e;)t.push(n.scopeName),n=n.parent;return n===e?t.reverse():void 0}};function Gi(e,t){if(t.length===0)return!0;for(let n=0;n<t.length;n++){let r=t[n],i=!1;if(r===`>`){if(n===t.length-1)return!1;r=t[++n],i=!0}for(;e&&!Ki(e.scopeName,r);){if(i)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function Ki(e,t){return t===e||e.startsWith(t)&&e[t.length]===`.`}var qi=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}};function Ji(e){if(!e||!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],r=0;for(let e=0,i=t.length;e<i;e++){let i=t[e];if(!i.settings)continue;let a;if(typeof i.scope==`string`){let e=i.scope;e=e.replace(/^[,]+/,``),e=e.replace(/[,]+$/,``),a=e.split(`,`)}else a=Array.isArray(i.scope)?i.scope:[``];let o=-1;if(typeof i.settings.fontStyle==`string`){o=0;let e=i.settings.fontStyle.split(` `);for(let t=0,n=e.length;t<n;t++)switch(e[t]){case`italic`:o|=1;break;case`bold`:o|=2;break;case`underline`:o|=4;break;case`strikethrough`:o|=8;break}}let s=null;typeof i.settings.foreground==`string`&&Bi(i.settings.foreground)&&(s=i.settings.foreground);let c=null;typeof i.settings.background==`string`&&Bi(i.settings.background)&&(c=i.settings.background);for(let t=0,i=a.length;t<i;t++){let i=a[t].trim().split(` `),l=i[i.length-1],u=null;i.length>1&&(u=i.slice(0,i.length-1),u.reverse()),n[r++]=new Yi(l,u,e,o,s,c)}}return n}var Yi=class{constructor(e,t,n,r,i,a){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=r,this.foreground=i,this.background=a}},Xi=(e=>(e[e.NotSet=-1]=`NotSet`,e[e.None=0]=`None`,e[e.Italic=1]=`Italic`,e[e.Bold=2]=`Bold`,e[e.Underline=4]=`Underline`,e[e.Strikethrough=8]=`Strikethrough`,e))(Xi||{});function Zi(e,t){e.sort((e,t)=>{let n=Ri(e.scope,t.scope);return n!==0||(n=zi(e.parentScopes,t.parentScopes),n!==0)?n:e.index-t.index});let n=0,r=`#000000`,i=`#ffffff`;for(;e.length>=1&&e[0].scope===``;){let t=e.shift();t.fontStyle!==-1&&(n=t.fontStyle),t.foreground!==null&&(r=t.foreground),t.background!==null&&(i=t.background)}let a=new Qi(t),o=new qi(n,a.getId(r),a.getId(i)),s=new ta(new ea(0,null,-1,0,0),[]);for(let t=0,n=e.length;t<n;t++){let n=e[t];s.insert(0,n.scope,n.parentScopes,n.fontStyle,a.getId(n.foreground),a.getId(n.background))}return new Ui(a,o,s)}var Qi=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,n=e.length;t<n;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(e===null)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}},$i=Object.freeze([]),ea=class e{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(e,t,n,r,i){this.scopeDepth=e,this.parentScopes=t||$i,this.fontStyle=n,this.foreground=r,this.background=i}clone(){return new e(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=e[n].clone();return t}acceptOverwrite(e,t,n,r){this.scopeDepth>e?console.log(`how did this happen?`):this.scopeDepth=e,t!==-1&&(this.fontStyle=t),n!==0&&(this.foreground=n),r!==0&&(this.background=r)}},ta=class e{constructor(e,t=[],n={}){this._mainRule=e,this._children=n,this._rulesWithParentScopes=t}_rulesWithParentScopes;static _cmpBySpecificity(e,t){if(e.scopeDepth!==t.scopeDepth)return t.scopeDepth-e.scopeDepth;let n=0,r=0;for(;e.parentScopes[n]===`>`&&n++,t.parentScopes[r]===`>`&&r++,!(n>=e.parentScopes.length||r>=t.parentScopes.length);){let i=t.parentScopes[r].length-e.parentScopes[n].length;if(i!==0)return i;n++,r++}return t.parentScopes.length-e.parentScopes.length}match(t){if(t!==``){let e=t.indexOf(`.`),n,r;if(e===-1?(n=t,r=``):(n=t.substring(0,e),r=t.substring(e+1)),this._children.hasOwnProperty(n))return this._children[n].match(r)}let n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(e._cmpBySpecificity),n}insert(t,n,r,i,a,o){if(n===``){this._doInsertHere(t,r,i,a,o);return}let s=n.indexOf(`.`),c,l;s===-1?(c=n,l=``):(c=n.substring(0,s),l=n.substring(s+1));let u;this._children.hasOwnProperty(c)?u=this._children[c]:(u=new e(this._mainRule.clone(),ea.cloneArr(this._rulesWithParentScopes)),this._children[c]=u),u.insert(t+1,l,r,i,a,o)}_doInsertHere(e,t,n,r,i){if(t===null){this._mainRule.acceptOverwrite(e,n,r,i);return}for(let a=0,o=this._rulesWithParentScopes.length;a<o;a++){let o=this._rulesWithParentScopes[a];if(zi(o.parentScopes,t)===0){o.acceptOverwrite(e,n,r,i);return}}n===-1&&(n=this._mainRule.fontStyle),r===0&&(r=this._mainRule.foreground),i===0&&(i=this._mainRule.background),this._rulesWithParentScopes.push(new ea(e,t,n,r,i))}},na=class e{static toBinaryStr(e){return e.toString(2).padStart(32,`0`)}static print(t){let n=e.getLanguageId(t),r=e.getTokenType(t),i=e.getFontStyle(t),a=e.getForeground(t),o=e.getBackground(t);console.log({languageId:n,tokenType:r,fontStyle:i,foreground:a,background:o})}static getLanguageId(e){return(e&255)>>>0}static getTokenType(e){return(e&768)>>>8}static containsBalancedBrackets(e){return(e&1024)!=0}static getFontStyle(e){return(e&30720)>>>11}static getForeground(e){return(e&16744448)>>>15}static getBackground(e){return(e&4278190080)>>>24}static set(t,n,r,i,a,o,s){let c=e.getLanguageId(t),l=e.getTokenType(t),u=+!!e.containsBalancedBrackets(t),d=e.getFontStyle(t),f=e.getForeground(t),p=e.getBackground(t);return n!==0&&(c=n),r!==8&&(l=ia(r)),i!==null&&(u=+!!i),a!==-1&&(d=a),o!==0&&(f=o),s!==0&&(p=s),(c<<0|l<<8|u<<10|d<<11|f<<15|p<<24)>>>0}};function ra(e){return e}function ia(e){return e}function aa(e,t){let n=[],r=sa(e),i=r.next();for(;i!==null;){let e=0;if(i.length===2&&i.charAt(1)===`:`){switch(i.charAt(0)){case`R`:e=1;break;case`L`:e=-1;break;default:console.log(`Unknown priority ${i} in scope selector`)}i=r.next()}let t=o();if(n.push({matcher:t,priority:e}),i!==`,`)break;i=r.next()}return n;function a(){if(i===`-`){i=r.next();let e=a();return t=>!!e&&!e(t)}if(i===`(`){i=r.next();let e=s();return i===`)`&&(i=r.next()),e}if(oa(i)){let e=[];do e.push(i),i=r.next();while(oa(i));return n=>t(e,n)}return null}function o(){let e=[],t=a();for(;t;)e.push(t),t=a();return t=>e.every(e=>e(t))}function s(){let e=[],t=o();for(;t&&(e.push(t),i===`|`||i===`,`);){do i=r.next();while(i===`|`||i===`,`);t=o()}return t=>e.some(e=>e(t))}}function oa(e){return!!e&&!!e.match(/[\w\.:]+/)}function sa(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=t.exec(e);return{next:()=>{if(!n)return null;let r=n[0];return n=t.exec(e),r}}}function ca(e){typeof e.dispose==`function`&&e.dispose()}var la=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},ua=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},da=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(e){let t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},fa=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new la(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){let e=this.Q;this.Q=[];let t=new da;for(let n of e)pa(n,this.initialScopeName,this.repo,t);for(let e of t.references)if(e instanceof la){if(this.seenFullScopeRequests.has(e.scopeName))continue;this.seenFullScopeRequests.add(e.scopeName),this.Q.push(e)}else{if(this.seenFullScopeRequests.has(e.scopeName)||this.seenPartialScopeRequests.has(e.toKey()))continue;this.seenPartialScopeRequests.add(e.toKey()),this.Q.push(e)}}};function pa(e,t,n,r){let i=n.lookup(e.scopeName);if(!i){if(e.scopeName===t)throw Error(`No grammar provided for <${t}>`);return}let a=n.lookup(t);e instanceof la?ha({baseGrammar:a,selfGrammar:i},r):ma(e.ruleName,{baseGrammar:a,selfGrammar:i,repository:i.repository},r);let o=n.injections(e.scopeName);if(o)for(let e of o)r.add(new la(e))}function ma(e,t,n){if(t.repository&&t.repository[e]){let r=t.repository[e];ga([r],t,n)}}function ha(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&ga(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&ga(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function ga(e,t,n){for(let r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);let e=r.repository?Pi({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&ga(r.patterns,{...t,repository:e},n);let i=r.include;if(!i)continue;let a=Sa(i);switch(a.kind){case 0:ha({...t,selfGrammar:t.baseGrammar},n);break;case 1:ha(t,n);break;case 2:ma(a.ruleName,{...t,repository:e},n);break;case 3:case 4:let r=a.scopeName===t.selfGrammar.scopeName?t.selfGrammar:a.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(r){let i={baseGrammar:t.baseGrammar,selfGrammar:r,repository:e};a.kind===4?ma(a.ruleName,i,n):ha(i,n)}else a.kind===4?n.add(new ua(a.scopeName,a.ruleName)):n.add(new la(a.scopeName));break}}}var _a=class{kind=0},va=class{kind=1},ya=class{constructor(e){this.ruleName=e}kind=2},ba=class{constructor(e){this.scopeName=e}kind=3},xa=class{constructor(e,t){this.scopeName=e,this.ruleName=t}kind=4};function Sa(e){if(e===`$base`)return new _a;if(e===`$self`)return new va;let t=e.indexOf(`#`);return t===-1?new ba(e):t===0?new ya(e.substring(1)):new xa(e.substring(0,t),e.substring(t+1))}var Ca=/\\(\d+)/,wa=/\\(\d+)/g,Ta=-1,Ea=-2;function Da(e){return e}function Oa(e){return e}var ka=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,t,n,r){this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=Li.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=Li.hasCaptures(this._contentName)}get debugName(){let e=this.$location?`${Fi(this.$location.filename)}:${this.$location.line}`:`unknown`;return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return!this._nameIsCapturing||this._name===null||e===null||t===null?this._name:Li.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:Li.replaceCaptures(this._contentName,e,t)}},Aa=class extends ka{retokenizeCapturedWithRuleId;constructor(e,t,n,r,i){super(e,t,n,r),this.retokenizeCapturedWithRuleId=i}dispose(){}collectPatterns(e,t){throw Error(`Not supported!`)}compile(e,t){throw Error(`Not supported!`)}compileAG(e,t,n,r){throw Error(`Not supported!`)}},ja=class extends ka{_match;captures;_cachedCompiledPatterns;constructor(e,t,n,r,i){super(e,t,n,null),this._match=new Ia(r,this.id),this.captures=i,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new La,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Ma=class extends ka{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,i){super(e,t,n,r),this.patterns=i.patterns,this.hasMissingPatterns=i.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),null)}collectPatterns(e,t){for(let n of this.patterns)e.getRule(n).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new La,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Na=class extends ka{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,i,a,o,s,c,l){super(e,t,n,r),this._begin=new Ia(i,this.id),this.beginCaptures=a,this._end=new Ia(o||``,-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=s,this.applyEndPatternLast=c||!1,this.patterns=l.patterns,this.hasMissingPatterns=l.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e,t).compileAG(e,n,r)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new La;for(let t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}},Pa=class extends ka{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(e,t,n,r,i,a,o,s,c){super(e,t,n,r),this._begin=new Ia(i,this.id),this.beginCaptures=a,this.whileCaptures=s,this._while=new Ia(o,Ea),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),null),this._cachedCompiledWhilePatterns&&=(this._cachedCompiledWhilePatterns.dispose(),null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new La;for(let t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,n,r){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,n,r)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new La,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||``),this._cachedCompiledWhilePatterns}},Fa=class e{static createCaptureRule(e,t,n,r,i){return e.registerRule(e=>new Aa(t,e,n,r,i))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(i=>{if(t.id=i,t.match)return new ja(t.$vscodeTextmateLocation,t.id,t.name,t.match,e._compileCaptures(t.captures,n,r));if(t.begin===void 0){t.repository&&(r=Pi({},r,t.repository));let i=t.patterns;return i===void 0&&t.include&&(i=[{include:t.include}]),new Ma(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,e._compilePatterns(i,n,r))}return t.while?new Pa(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,n,r),t.while,e._compileCaptures(t.whileCaptures||t.captures,n,r),e._compilePatterns(t.patterns,n,r)):new Na(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,n,r),t.end,e._compileCaptures(t.endCaptures||t.captures,n,r),t.applyEndPatternLast,e._compilePatterns(t.patterns,n,r))}),t.id}static _compileCaptures(t,n,r){let i=[];if(t){let a=0;for(let e in t){if(e===`$vscodeTextmateLocation`)continue;let t=parseInt(e,10);t>a&&(a=t)}for(let e=0;e<=a;e++)i[e]=null;for(let a in t){if(a===`$vscodeTextmateLocation`)continue;let o=parseInt(a,10),s=0;t[a].patterns&&(s=e.getCompiledRuleId(t[a],n,r)),i[o]=e.createCaptureRule(n,t[a].$vscodeTextmateLocation,t[a].name,t[a].contentName,s)}}return i}static _compilePatterns(t,n,r){let i=[];if(t)for(let a=0,o=t.length;a<o;a++){let o=t[a],s=-1;if(o.include){let t=Sa(o.include);switch(t.kind){case 0:case 1:s=e.getCompiledRuleId(r[o.include],n,r);break;case 2:let i=r[t.ruleName];i&&(s=e.getCompiledRuleId(i,n,r));break;case 3:case 4:let a=t.scopeName,c=t.kind===4?t.ruleName:null,l=n.getExternalGrammar(a,r);if(l)if(c){let t=l.repository[c];t&&(s=e.getCompiledRuleId(t,n,l.repository))}else s=e.getCompiledRuleId(l.repository.$self,n,l.repository);break}}else s=e.getCompiledRuleId(o,n,r);if(s!==-1){let e=n.getRule(s),t=!1;if((e instanceof Ma||e instanceof Na||e instanceof Pa)&&e.hasMissingPatterns&&e.patterns.length===0&&(t=!0),t)continue;i.push(s)}}return{patterns:i,hasMissingPatterns:(t?t.length:0)!==i.length}}},Ia=class e{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(e,t){if(e&&typeof e==`string`){let t=e.length,n=0,r=[],i=!1;for(let a=0;a<t;a++)if(e.charAt(a)===`\\`&&a+1<t){let t=e.charAt(a+1);t===`z`?(r.push(e.substring(n,a)),r.push(`$(?!\\n)(?<!\\n)`),n=a+2):(t===`A`||t===`G`)&&(i=!0),a++}this.hasAnchor=i,n===0?this.source=e:(r.push(e.substring(n,t)),this.source=r.join(``))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=t,typeof this.source==`string`?this.hasBackReferences=Ca.test(this.source):this.hasBackReferences=!1}clone(){return new e(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){if(typeof this.source!=`string`)throw Error(`This method should only be called if the source is a string`);let n=t.map(t=>e.substring(t.start,t.end));return wa.lastIndex=0,this.source.replace(wa,(e,t)=>Vi(n[parseInt(t,10)]||``))}_buildAnchorCache(){if(typeof this.source!=`string`)throw Error(`This method should only be called if the source is a string`);let e=[],t=[],n=[],r=[],i,a,o,s;for(i=0,a=this.source.length;i<a;i++)o=this.source.charAt(i),e[i]=o,t[i]=o,n[i]=o,r[i]=o,o===`\\`&&i+1<a&&(s=this.source.charAt(i+1),s===`A`?(e[i+1]=``,t[i+1]=``,n[i+1]=`A`,r[i+1]=`A`):s===`G`?(e[i+1]=``,t[i+1]=`G`,n[i+1]=``,r[i+1]=`G`):(e[i+1]=s,t[i+1]=s,n[i+1]=s,r[i+1]=s),i++);return{A0_G0:e.join(``),A0_G1:t.join(``),A1_G0:n.join(``),A1_G1:r.join(``)}}resolveAnchors(e,t){return!this.hasAnchor||!this._anchorCache||typeof this.source!=`string`?this.source:e?t?this._anchorCache.A1_G1:this._anchorCache.A1_G0:t?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},La=class{_items;_hasAnchors;_cached;_anchorCache;constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&=(this._cached.dispose(),null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map(e=>e.source);this._cached=new Ra(e,t,this._items.map(e=>e.ruleId))}return this._cached}compileAG(e,t,n){return this._hasAnchors?t?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G0):n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,n){return new Ra(e,this._items.map(e=>e.resolveAnchors(t,n)),this._items.map(e=>e.ruleId))}},Ra=class{constructor(e,t,n){this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}scanner;dispose(){typeof this.scanner.dispose==`function`&&this.scanner.dispose()}toString(){let e=[];for(let t=0,n=this.rules.length;t<n;t++)e.push(` - `+this.rules[t]+`: `+this.regExps[t]);return e.join(`
|
|
5
|
+
`)}findNextMatchSync(e,t,n){let r=this.scanner.findNextMatchSync(e,t,n);return r?{ruleId:this.rules[r.index],captureIndices:r.captureIndices}:null}},za=class{constructor(e,t){this.languageId=e,this.tokenType=t}},Ba=class e{_defaultAttributes;_embeddedLanguagesMatcher;constructor(e,t){this._defaultAttributes=new za(e,8),this._embeddedLanguagesMatcher=new Va(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return t===null?e._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}static _NULL_SCOPE_METADATA=new za(0,0);_getBasicScopeAttributes=new Hi(e=>new za(this._scopeToLanguage(e),this._toStandardTokenType(e)));_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(t){let n=t.match(e.STANDARD_TOKEN_TYPE_REGEXP);if(!n)return 8;switch(n[1]){case`comment`:return 1;case`string`:return 2;case`regex`:return 3;case`meta.embedded`:return 0}throw Error(`Unexpected match for standard token type!`)}static STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/},Va=class{values;scopesRegExp;constructor(e){if(e.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);let t=e.map(([e,t])=>Vi(e));t.sort(),t.reverse(),this.scopesRegExp=RegExp(`^((${t.join(`)|(`)}))($|\\.)`,``)}}match(e){if(!this.scopesRegExp)return;let t=e.match(this.scopesRegExp);if(t)return this.values.get(t[1])}};typeof process<`u`&&{}.VSCODE_TEXTMATE_DEBUG;var Ha=!1,Ua=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function Wa(e,t,n,r,i,a,o,s){let c=t.content.length,l=!1,u=-1;if(o){let o=Ga(e,t,n,r,i,a);i=o.stack,r=o.linePos,n=o.isFirstLine,u=o.anchorPosition}let d=Date.now();for(;!l;){if(s!==0&&Date.now()-d>s)return new Ua(i,!0);f()}return new Ua(i,!1);function f(){let o=Ka(e,t,n,r,i,u);if(!o){a.produce(i,c),l=!0;return}let s=o.captureIndices,d=o.matchedRuleId,f=s&&s.length>0?s[0].end>r:!1;if(d===Ta){let o=i.getRule(e);a.produce(i,s[0].start),i=i.withContentNameScopesList(i.nameScopesList),Qa(e,t,n,i,a,o.endCaptures,s),a.produce(i,s[0].end);let d=i;if(i=i.parent,u=d.getAnchorPos(),!f&&d.getEnterPos()===r){i=d,a.produce(i,c),l=!0;return}}else{let o=e.getRule(d);a.produce(i,s[0].start);let p=i,m=o.getName(t.content,s),h=i.contentNameScopesList.pushAttributed(m,e);if(i=i.push(d,r,u,s[0].end===c,null,h,h),o instanceof Na){let r=o;Qa(e,t,n,i,a,r.beginCaptures,s),a.produce(i,s[0].end),u=s[0].end;let d=r.getContentName(t.content,s),m=h.pushAttributed(d,e);if(i=i.withContentNameScopesList(m),r.endHasBackReferences&&(i=i.withEndRule(r.getEndWithResolvedBackReferences(t.content,s))),!f&&p.hasSameRuleAs(i)){i=i.pop(),a.produce(i,c),l=!0;return}}else if(o instanceof Pa){let r=o;Qa(e,t,n,i,a,r.beginCaptures,s),a.produce(i,s[0].end),u=s[0].end;let d=r.getContentName(t.content,s),m=h.pushAttributed(d,e);if(i=i.withContentNameScopesList(m),r.whileHasBackReferences&&(i=i.withEndRule(r.getWhileWithResolvedBackReferences(t.content,s))),!f&&p.hasSameRuleAs(i)){i=i.pop(),a.produce(i,c),l=!0;return}}else if(Qa(e,t,n,i,a,o.captures,s),a.produce(i,s[0].end),i=i.pop(),!f){i=i.safePop(),a.produce(i,c),l=!0;return}}s[0].end>r&&(r=s[0].end,n=!1)}}function Ga(e,t,n,r,i,a){let o=i.beginRuleCapturedEOL?0:-1,s=[];for(let t=i;t;t=t.pop()){let n=t.getRule(e);n instanceof Pa&&s.push({rule:n,stack:t})}for(let c=s.pop();c;c=s.pop()){let{ruleScanner:s,findOptions:l}=Xa(c.rule,e,c.stack.endRule,n,r===o),u=s.findNextMatchSync(t,r,l);if(u){if(u.ruleId!==Ea){i=c.stack.pop();break}u.captureIndices&&u.captureIndices.length&&(a.produce(c.stack,u.captureIndices[0].start),Qa(e,t,n,c.stack,a,c.rule.whileCaptures,u.captureIndices),a.produce(c.stack,u.captureIndices[0].end),o=u.captureIndices[0].end,u.captureIndices[0].end>r&&(r=u.captureIndices[0].end,n=!1))}else{i=c.stack.pop();break}}return{stack:i,linePos:r,anchorPosition:o,isFirstLine:n}}function Ka(e,t,n,r,i,a){let o=qa(e,t,n,r,i,a),s=e.getInjections();if(s.length===0)return o;let c=Ja(s,e,t,n,r,i,a);if(!c)return o;if(!o)return c;let l=o.captureIndices[0].start,u=c.captureIndices[0].start;return u<l||c.priorityMatch&&u===l?c:o}function qa(e,t,n,r,i,a){let{ruleScanner:o,findOptions:s}=Ya(i.getRule(e),e,i.endRule,n,r===a),c=o.findNextMatchSync(t,r,s);return c?{captureIndices:c.captureIndices,matchedRuleId:c.ruleId}:null}function Ja(e,t,n,r,i,a,o){let s=Number.MAX_VALUE,c=null,l,u=0,d=a.contentNameScopesList.getScopeNames();for(let a=0,f=e.length;a<f;a++){let f=e[a];if(!f.matcher(d))continue;let{ruleScanner:p,findOptions:m}=Ya(t.getRule(f.ruleId),t,null,r,i===o),h=p.findNextMatchSync(n,i,m);if(!h)continue;let g=h.captureIndices[0].start;if(!(g>=s)&&(s=g,c=h.captureIndices,l=h.ruleId,u=f.priority,s===i))break}return c?{priorityMatch:u===-1,captureIndices:c,matchedRuleId:l}:null}function Ya(e,t,n,r,i){return Ha?{ruleScanner:e.compile(t,n),findOptions:Za(r,i)}:{ruleScanner:e.compileAG(t,n,r,i),findOptions:0}}function Xa(e,t,n,r,i){return Ha?{ruleScanner:e.compileWhile(t,n),findOptions:Za(r,i)}:{ruleScanner:e.compileWhileAG(t,n,r,i),findOptions:0}}function Za(e,t){let n=0;return e||(n|=1),t||(n|=4),n}function Qa(e,t,n,r,i,a,o){if(a.length===0)return;let s=t.content,c=Math.min(a.length,o.length),l=[],u=o[0].end;for(let t=0;t<c;t++){let c=a[t];if(c===null)continue;let d=o[t];if(d.length===0)continue;if(d.start>u)break;for(;l.length>0&&l[l.length-1].endPos<=d.start;)i.produceFromScopes(l[l.length-1].scopes,l[l.length-1].endPos),l.pop();if(l.length>0?i.produceFromScopes(l[l.length-1].scopes,d.start):i.produce(r,d.start),c.retokenizeCapturedWithRuleId){let t=c.getName(s,o),a=r.contentNameScopesList.pushAttributed(t,e),l=c.getContentName(s,o),u=a.pushAttributed(l,e),f=r.push(c.retokenizeCapturedWithRuleId,d.start,-1,!1,null,a,u),p=e.createOnigString(s.substring(0,d.end));Wa(e,p,n&&d.start===0,d.start,f,i,!1,0),ca(p);continue}let f=c.getName(s,o);if(f!==null){let t=(l.length>0?l[l.length-1].scopes:r.contentNameScopesList).pushAttributed(f,e);l.push(new $a(t,d.end))}}for(;l.length>0;)i.produceFromScopes(l[l.length-1].scopes,l[l.length-1].endPos),l.pop()}var $a=class{scopes;endPos;constructor(e,t){this.scopes=e,this.endPos=t}};function eo(e,t,n,r,i,a,o,s){return new io(e,t,n,r,i,a,o,s)}function to(e,t,n,r,i){let a=aa(t,no),o=Fa.getCompiledRuleId(n,r,i.repository);for(let n of a)e.push({debugSelector:t,matcher:n.matcher,ruleId:o,grammar:i,priority:n.priority})}function no(e,t){if(t.length<e.length)return!1;let n=0;return e.every(e=>{for(let r=n;r<t.length;r++)if(ro(t[r],e))return n=r+1,!0;return!1})}function ro(e,t){if(!e)return!1;if(e===t)return!0;let n=t.length;return e.length>n&&e.substr(0,n)===t&&e[n]===`.`}var io=class{constructor(e,t,n,r,i,a,o,s){if(this._rootScopeName=e,this.balancedBracketSelectors=a,this._onigLib=s,this._basicScopeAttributesProvider=new Ba(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=o,this._grammar=ao(t,null),this._injections=null,this._tokenTypeMatchers=[],i)for(let e of Object.keys(i)){let t=aa(e,no);for(let n of t)this._tokenTypeMatchers.push({matcher:n.matcher,type:i[e]})}}_rootId;_lastRuleId;_ruleId2desc;_includedGrammars;_grammarRepository;_grammar;_injections;_basicScopeAttributesProvider;_tokenTypeMatchers;get themeProvider(){return this._grammarRepository}dispose(){for(let e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){let e={lookup:e=>e===this._rootScopeName?this._grammar:this.getExternalGrammar(e),injections:e=>this._grammarRepository.injections(e)},t=[],n=this._rootScopeName,r=e.lookup(n);if(r){let e=r.injections;if(e)for(let n in e)to(t,n,e[n],this,r);let i=this._grammarRepository.injections(n);i&&i.forEach(e=>{let n=this.getExternalGrammar(e);if(n){let e=n.injectionSelector;e&&to(t,e,n,this,n)}})}return t.sort((e,t)=>e.priority-t.priority),t}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(e){let t=++this._lastRuleId,n=e(Da(t));return this._ruleId2desc[t]=n,n}getRule(e){return this._ruleId2desc[Oa(e)]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){let n=this._grammarRepository.lookup(e);if(n)return this._includedGrammars[e]=ao(n,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,n=0){let r=this._tokenize(e,t,!1,n);return{tokens:r.lineTokens.getResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}tokenizeLine2(e,t,n=0){let r=this._tokenize(e,t,!0,n);return{tokens:r.lineTokens.getBinaryResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}_tokenize(e,t,n,r){this._rootId===-1&&(this._rootId=Fa.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let i;if(!t||t===so.NULL){i=!0;let e=this._basicScopeAttributesProvider.getDefaultAttributes(),n=this.themeProvider.getDefaults(),r=na.set(0,e.languageId,e.tokenType,null,n.fontStyle,n.foregroundId,n.backgroundId),a=this.getRule(this._rootId).getName(null,null),o;o=a?oo.createRootAndLookUpScopeName(a,r,this):oo.createRoot(`unknown`,r),t=new so(null,this._rootId,-1,-1,!1,null,o,o)}else i=!1,t.reset();e+=`
|
|
6
|
+
`;let a=this.createOnigString(e),o=a.content.length,s=new lo(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),c=Wa(this,a,i,0,t,s,!0,r);return ca(a),{lineLength:o,lineTokens:s,ruleStack:c.stack,stoppedEarly:c.stoppedEarly}}};function ao(e,t){return e=Ai(e),e.repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}var oo=class e{constructor(e,t,n){this.parent=e,this.scopePath=t,this.tokenAttributes=n}static fromExtension(t,n){let r=t,i=t?.scopePath??null;for(let t of n)i=Wi.push(i,t.scopeNames),r=new e(r,i,t.encodedTokenAttributes);return r}static createRoot(t,n){return new e(null,new Wi(null,t),n)}static createRootAndLookUpScopeName(t,n,r){let i=r.getMetadataForScope(t),a=new Wi(null,t),o=r.themeProvider.themeMatch(a);return new e(null,a,e.mergeAttributes(n,i,o))}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(` `)}equals(t){return e.equals(this,t)}static equals(e,t){do{if(e===t||!e&&!t)return!0;if(!e||!t||e.scopeName!==t.scopeName||e.tokenAttributes!==t.tokenAttributes)return!1;e=e.parent,t=t.parent}while(!0)}static mergeAttributes(e,t,n){let r=-1,i=0,a=0;return n!==null&&(r=n.fontStyle,i=n.foregroundId,a=n.backgroundId),na.set(e,t.languageId,t.tokenType,null,r,i,a)}pushAttributed(t,n){if(t===null)return this;if(t.indexOf(` `)===-1)return e._pushAttributed(this,t,n);let r=t.split(/ /g),i=this;for(let t of r)i=e._pushAttributed(i,t,n);return i}static _pushAttributed(t,n,r){let i=r.getMetadataForScope(n),a=t.scopePath.push(n),o=r.themeProvider.themeMatch(a);return new e(t,a,e.mergeAttributes(t.tokenAttributes,i,o))}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(e){let t=[],n=this;for(;n&&n!==e;)t.push({encodedTokenAttributes:n.tokenAttributes,scopeNames:n.scopePath.getExtensionIfDefined(n.parent?.scopePath??null)}),n=n.parent;return n===e?t.reverse():void 0}},so=class e{constructor(e,t,n,r,i,a,o,s){this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=i,this.endRule=a,this.nameScopesList=o,this.contentNameScopesList=s,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=n,this._anchorPos=r}_stackElementBrand=void 0;static NULL=new e(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(t){return t===null?!1:e._equals(this,t)}static _equals(e,t){return e===t?!0:this._structuralEquals(e,t)?oo.equals(e.contentNameScopesList,t.contentNameScopesList):!1}static _structuralEquals(e,t){do{if(e===t||!e&&!t)return!0;if(!e||!t||e.depth!==t.depth||e.ruleId!==t.ruleId||e.endRule!==t.endRule)return!1;e=e.parent,t=t.parent}while(!0)}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){e._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,n,r,i,a,o,s){return new e(this,t,n,r,i,a,o,s)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){let e=[];return this._writeString(e,0),`[`+e.join(`,`)+`]`}_writeString(e,t){return this.parent&&(t=this.parent._writeString(e,t)),e[t++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,t}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(t){return this.endRule===t?this:new e(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let t=this;for(;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1}toStateStackFrame(){return{ruleId:Oa(this.ruleId),beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList??null)??[],contentNameScopesList:this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList)??[]}}static pushFrame(t,n){let r=oo.fromExtension(t?.nameScopesList??null,n.nameScopesList);return new e(t,Da(n.ruleId),n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,r,oo.fromExtension(r,n.contentNameScopesList))}},co=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(e,t){this.balancedBracketScopes=e.flatMap(e=>e===`*`?(this.allowAny=!0,[]):aa(e,no).map(e=>e.matcher)),this.unbalancedBracketScopes=t.flatMap(e=>aa(e,no).map(e=>e.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(e){for(let t of this.unbalancedBracketScopes)if(t(e))return!1;for(let t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}},lo=class{constructor(e,t,n,r){this.balancedBracketSelectors=r,this._emitBinaryTokens=e,this._tokenTypeOverrides=n,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}_emitBinaryTokens;_lineText;_tokens;_binaryTokens;_lastTokenEndIndex;_tokenTypeOverrides;produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let n=e?.tokenAttributes??0,r=!1;if(this.balancedBracketSelectors?.matchesAlways&&(r=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){let t=e?.getScopeNames()??[];for(let e of this._tokenTypeOverrides)e.matcher(t)&&(n=na.set(n,0,ra(e.type),null,-1,0,0));this.balancedBracketSelectors&&(r=this.balancedBracketSelectors.match(t))}if(r&&(n=na.set(n,0,8,r,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===n){this._lastTokenEndIndex=t;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(n),this._lastTokenEndIndex=t;return}let n=e?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:n}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);let n=new Uint32Array(this._binaryTokens.length);for(let e=0,t=this._binaryTokens.length;e<t;e++)n[e]=this._binaryTokens[e];return n}},uo=class{constructor(e,t){this._onigLib=t,this._theme=e}_grammars=new Map;_rawGrammars=new Map;_injectionGrammars=new Map;_theme;dispose(){for(let e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}grammarForScopeName(e,t,n,r,i){if(!this._grammars.has(e)){let a=this._rawGrammars.get(e);if(!a)return null;this._grammars.set(e,eo(e,a,t,n,r,i,this,this._onigLib))}return this._grammars.get(e)}},fo=class{_options;_syncRegistry;_ensureGrammarCache;constructor(e){this._options=e,this._syncRegistry=new uo(Ui.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(Ui.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,n){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:n})}loadGrammarWithConfiguration(e,t,n){return this._loadGrammar(e,t,n.embeddedLanguages,n.tokenTypes,new co(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}_loadGrammar(e,t,n,r,i){let a=new fa(this._syncRegistry,e);for(;a.Q.length>0;)a.Q.map(e=>this._loadSingleGrammar(e.scopeName)),a.processQueue();return this._grammarForScopeName(e,t,n,r,i)}_loadSingleGrammar(e){this._ensureGrammarCache.has(e)||(this._doLoadSingleGrammar(e),this._ensureGrammarCache.set(e,!0))}_doLoadSingleGrammar(e){let t=this._options.loadGrammar(e);if(t){let n=typeof this._options.getInjections==`function`?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,n)}}addGrammar(e,t=[],n=0,r=null){return this._syncRegistry.addGrammar(e,t),this._grammarForScopeName(e.scopeName,n,r)}_grammarForScopeName(e,t=0,n=null,r=null,i=null){return this._syncRegistry.grammarForScopeName(e,t,n,r,i)}},po=so.NULL,mo=/["&'<>`]/g,ho=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,go=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,_o=/[|\\{}()[\]^$+*?.]/g,vo=new WeakMap;function yo(e,t){if(e=e.replace(t.subset?bo(t.subset):mo,r),t.subset||t.escapeOnly)return e;return e.replace(ho,n).replace(go,r);function n(e,n,r){return t.format((e.charCodeAt(0)-55296)*1024+e.charCodeAt(1)-56320+65536,r.charCodeAt(n+2),t)}function r(e,n,r){return t.format(e.charCodeAt(0),r.charCodeAt(n+1),t)}}function bo(e){let t=vo.get(e);return t||(t=xo(e),vo.set(e,t)),t}function xo(e){let t=[],n=-1;for(;++n<e.length;)t.push(e[n].replace(_o,`\\$&`));return RegExp(`(?:`+t.join(`|`)+`)`,`g`)}var So=/[\dA-Fa-f]/;function Co(e,t,n){let r=`&#x`+e.toString(16).toUpperCase();return n&&t&&!So.test(String.fromCharCode(t))?r:r+`;`}var wo=/\d/;function To(e,t,n){let r=`&#`+String(e);return n&&t&&!wo.test(String.fromCharCode(t))?r:r+`;`}var Eo=`AElig.AMP.Aacute.Acirc.Agrave.Aring.Atilde.Auml.COPY.Ccedil.ETH.Eacute.Ecirc.Egrave.Euml.GT.Iacute.Icirc.Igrave.Iuml.LT.Ntilde.Oacute.Ocirc.Ograve.Oslash.Otilde.Ouml.QUOT.REG.THORN.Uacute.Ucirc.Ugrave.Uuml.Yacute.aacute.acirc.acute.aelig.agrave.amp.aring.atilde.auml.brvbar.ccedil.cedil.cent.copy.curren.deg.divide.eacute.ecirc.egrave.eth.euml.frac12.frac14.frac34.gt.iacute.icirc.iexcl.igrave.iquest.iuml.laquo.lt.macr.micro.middot.nbsp.not.ntilde.oacute.ocirc.ograve.ordf.ordm.oslash.otilde.ouml.para.plusmn.pound.quot.raquo.reg.sect.shy.sup1.sup2.sup3.szlig.thorn.times.uacute.ucirc.ugrave.uml.uuml.yacute.yen.yuml`.split(`.`),Do={nbsp:`\xA0`,iexcl:`¡`,cent:`¢`,pound:`£`,curren:`¤`,yen:`¥`,brvbar:`¦`,sect:`§`,uml:`¨`,copy:`©`,ordf:`ª`,laquo:`«`,not:`¬`,shy:``,reg:`®`,macr:`¯`,deg:`°`,plusmn:`±`,sup2:`²`,sup3:`³`,acute:`´`,micro:`µ`,para:`¶`,middot:`·`,cedil:`¸`,sup1:`¹`,ordm:`º`,raquo:`»`,frac14:`¼`,frac12:`½`,frac34:`¾`,iquest:`¿`,Agrave:`À`,Aacute:`Á`,Acirc:`Â`,Atilde:`Ã`,Auml:`Ä`,Aring:`Å`,AElig:`Æ`,Ccedil:`Ç`,Egrave:`È`,Eacute:`É`,Ecirc:`Ê`,Euml:`Ë`,Igrave:`Ì`,Iacute:`Í`,Icirc:`Î`,Iuml:`Ï`,ETH:`Ð`,Ntilde:`Ñ`,Ograve:`Ò`,Oacute:`Ó`,Ocirc:`Ô`,Otilde:`Õ`,Ouml:`Ö`,times:`×`,Oslash:`Ø`,Ugrave:`Ù`,Uacute:`Ú`,Ucirc:`Û`,Uuml:`Ü`,Yacute:`Ý`,THORN:`Þ`,szlig:`ß`,agrave:`à`,aacute:`á`,acirc:`â`,atilde:`ã`,auml:`ä`,aring:`å`,aelig:`æ`,ccedil:`ç`,egrave:`è`,eacute:`é`,ecirc:`ê`,euml:`ë`,igrave:`ì`,iacute:`í`,icirc:`î`,iuml:`ï`,eth:`ð`,ntilde:`ñ`,ograve:`ò`,oacute:`ó`,ocirc:`ô`,otilde:`õ`,ouml:`ö`,divide:`÷`,oslash:`ø`,ugrave:`ù`,uacute:`ú`,ucirc:`û`,uuml:`ü`,yacute:`ý`,thorn:`þ`,yuml:`ÿ`,fnof:`ƒ`,Alpha:`Α`,Beta:`Β`,Gamma:`Γ`,Delta:`Δ`,Epsilon:`Ε`,Zeta:`Ζ`,Eta:`Η`,Theta:`Θ`,Iota:`Ι`,Kappa:`Κ`,Lambda:`Λ`,Mu:`Μ`,Nu:`Ν`,Xi:`Ξ`,Omicron:`Ο`,Pi:`Π`,Rho:`Ρ`,Sigma:`Σ`,Tau:`Τ`,Upsilon:`Υ`,Phi:`Φ`,Chi:`Χ`,Psi:`Ψ`,Omega:`Ω`,alpha:`α`,beta:`β`,gamma:`γ`,delta:`δ`,epsilon:`ε`,zeta:`ζ`,eta:`η`,theta:`θ`,iota:`ι`,kappa:`κ`,lambda:`λ`,mu:`μ`,nu:`ν`,xi:`ξ`,omicron:`ο`,pi:`π`,rho:`ρ`,sigmaf:`ς`,sigma:`σ`,tau:`τ`,upsilon:`υ`,phi:`φ`,chi:`χ`,psi:`ψ`,omega:`ω`,thetasym:`ϑ`,upsih:`ϒ`,piv:`ϖ`,bull:`•`,hellip:`…`,prime:`′`,Prime:`″`,oline:`‾`,frasl:`⁄`,weierp:`℘`,image:`ℑ`,real:`ℜ`,trade:`™`,alefsym:`ℵ`,larr:`←`,uarr:`↑`,rarr:`→`,darr:`↓`,harr:`↔`,crarr:`↵`,lArr:`⇐`,uArr:`⇑`,rArr:`⇒`,dArr:`⇓`,hArr:`⇔`,forall:`∀`,part:`∂`,exist:`∃`,empty:`∅`,nabla:`∇`,isin:`∈`,notin:`∉`,ni:`∋`,prod:`∏`,sum:`∑`,minus:`−`,lowast:`∗`,radic:`√`,prop:`∝`,infin:`∞`,ang:`∠`,and:`∧`,or:`∨`,cap:`∩`,cup:`∪`,int:`∫`,there4:`∴`,sim:`∼`,cong:`≅`,asymp:`≈`,ne:`≠`,equiv:`≡`,le:`≤`,ge:`≥`,sub:`⊂`,sup:`⊃`,nsub:`⊄`,sube:`⊆`,supe:`⊇`,oplus:`⊕`,otimes:`⊗`,perp:`⊥`,sdot:`⋅`,lceil:`⌈`,rceil:`⌉`,lfloor:`⌊`,rfloor:`⌋`,lang:`〈`,rang:`〉`,loz:`◊`,spades:`♠`,clubs:`♣`,hearts:`♥`,diams:`♦`,quot:`"`,amp:`&`,lt:`<`,gt:`>`,OElig:`Œ`,oelig:`œ`,Scaron:`Š`,scaron:`š`,Yuml:`Ÿ`,circ:`ˆ`,tilde:`˜`,ensp:` `,emsp:` `,thinsp:` `,zwnj:``,zwj:``,lrm:``,rlm:``,ndash:`–`,mdash:`—`,lsquo:`‘`,rsquo:`’`,sbquo:`‚`,ldquo:`“`,rdquo:`”`,bdquo:`„`,dagger:`†`,Dagger:`‡`,permil:`‰`,lsaquo:`‹`,rsaquo:`›`,euro:`€`},Oo=[`cent`,`copy`,`divide`,`gt`,`lt`,`not`,`para`,`times`],ko={}.hasOwnProperty,Ao={},jo;for(jo in Do)ko.call(Do,jo)&&(Ao[Do[jo]]=jo);var Mo=/[^\dA-Za-z]/;function No(e,t,n,r){let i=String.fromCharCode(e);if(ko.call(Ao,i)){let e=Ao[i],a=`&`+e;return n&&Eo.includes(e)&&!Oo.includes(e)&&(!r||t&&t!==61&&Mo.test(String.fromCharCode(t)))?a:a+`;`}return``}function Po(e,t,n){let r=Co(e,t,n.omitOptionalSemicolons),i;if((n.useNamedReferences||n.useShortestReferences)&&(i=No(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!i)&&n.useShortestReferences){let i=To(e,t,n.omitOptionalSemicolons);i.length<r.length&&(r=i)}return i&&(!n.useShortestReferences||i.length<r.length)?i:r}function Fo(e,t){return yo(e,Object.assign({format:Po},t))}var Io=/^>|^->|<!--|-->|--!>|<!-$/g,Lo=[`>`],Ro=[`<`,`>`];function zo(e,t,n,r){return r.settings.bogusComments?`<?`+Fo(e.value,Object.assign({},r.settings.characterReferences,{subset:Lo}))+`>`:`<!--`+e.value.replace(Io,i)+`-->`;function i(e){return Fo(e,Object.assign({},r.settings.characterReferences,{subset:Ro}))}}function Bo(e,t,n,r){return`<!`+(r.settings.upperDoctype?`DOCTYPE`:`doctype`)+(r.settings.tightDoctype?``:` `)+`html>`}var Vo=Wo(1),Ho=Wo(-1),Uo=[];function Wo(e){return t;function t(t,n,r){let i=t?t.children:Uo,a=(n||0)+e,o=i[a];if(!r)for(;o&&Ot(o);)a+=e,o=i[a];return o}}var Go={}.hasOwnProperty;function Ko(e){return t;function t(t,n,r){return Go.call(e,t.tagName)&&e[t.tagName](t,n,r)}}var qo=Ko({body:Xo,caption:Jo,colgroup:Jo,dd:es,dt:$o,head:Jo,html:Yo,li:Qo,optgroup:ns,option:rs,p:Zo,rp:ts,rt:ts,tbody:as,td:cs,tfoot:os,th:cs,thead:is,tr:ss});function Jo(e,t,n){let r=Vo(n,t,!0);return!r||r.type!==`comment`&&!(r.type===`text`&&Ot(r.value.charAt(0)))}function Yo(e,t,n){let r=Vo(n,t);return!r||r.type!==`comment`}function Xo(e,t,n){let r=Vo(n,t);return!r||r.type!==`comment`}function Zo(e,t,n){let r=Vo(n,t);return r?r.type===`element`&&(r.tagName===`address`||r.tagName===`article`||r.tagName===`aside`||r.tagName===`blockquote`||r.tagName===`details`||r.tagName===`div`||r.tagName===`dl`||r.tagName===`fieldset`||r.tagName===`figcaption`||r.tagName===`figure`||r.tagName===`footer`||r.tagName===`form`||r.tagName===`h1`||r.tagName===`h2`||r.tagName===`h3`||r.tagName===`h4`||r.tagName===`h5`||r.tagName===`h6`||r.tagName===`header`||r.tagName===`hgroup`||r.tagName===`hr`||r.tagName===`main`||r.tagName===`menu`||r.tagName===`nav`||r.tagName===`ol`||r.tagName===`p`||r.tagName===`pre`||r.tagName===`section`||r.tagName===`table`||r.tagName===`ul`):!n||!(n.type===`element`&&(n.tagName===`a`||n.tagName===`audio`||n.tagName===`del`||n.tagName===`ins`||n.tagName===`map`||n.tagName===`noscript`||n.tagName===`video`))}function Qo(e,t,n){let r=Vo(n,t);return!r||r.type===`element`&&r.tagName===`li`}function $o(e,t,n){let r=Vo(n,t);return!!(r&&r.type===`element`&&(r.tagName===`dt`||r.tagName===`dd`))}function es(e,t,n){let r=Vo(n,t);return!r||r.type===`element`&&(r.tagName===`dt`||r.tagName===`dd`)}function ts(e,t,n){let r=Vo(n,t);return!r||r.type===`element`&&(r.tagName===`rp`||r.tagName===`rt`)}function ns(e,t,n){let r=Vo(n,t);return!r||r.type===`element`&&r.tagName===`optgroup`}function rs(e,t,n){let r=Vo(n,t);return!r||r.type===`element`&&(r.tagName===`option`||r.tagName===`optgroup`)}function is(e,t,n){let r=Vo(n,t);return!!(r&&r.type===`element`&&(r.tagName===`tbody`||r.tagName===`tfoot`))}function as(e,t,n){let r=Vo(n,t);return!r||r.type===`element`&&(r.tagName===`tbody`||r.tagName===`tfoot`)}function os(e,t,n){return!Vo(n,t)}function ss(e,t,n){let r=Vo(n,t);return!r||r.type===`element`&&r.tagName===`tr`}function cs(e,t,n){let r=Vo(n,t);return!r||r.type===`element`&&(r.tagName===`td`||r.tagName===`th`)}var ls=Ko({body:fs,colgroup:ps,head:ds,html:us,tbody:ms});function us(e){let t=Vo(e,-1);return!t||t.type!==`comment`}function ds(e){let t=new Set;for(let n of e.children)if(n.type===`element`&&(n.tagName===`base`||n.tagName===`title`)){if(t.has(n.tagName))return!1;t.add(n.tagName)}let n=e.children[0];return!n||n.type===`element`}function fs(e){let t=Vo(e,-1,!0);return!t||t.type!==`comment`&&!(t.type===`text`&&Ot(t.value.charAt(0)))&&!(t.type===`element`&&(t.tagName===`meta`||t.tagName===`link`||t.tagName===`script`||t.tagName===`style`||t.tagName===`template`))}function ps(e,t,n){let r=Ho(n,t),i=Vo(e,-1,!0);return n&&r&&r.type===`element`&&r.tagName===`colgroup`&&qo(r,n.children.indexOf(r),n)?!1:!!(i&&i.type===`element`&&i.tagName===`col`)}function ms(e,t,n){let r=Ho(n,t),i=Vo(e,-1);return n&&r&&r.type===`element`&&(r.tagName===`thead`||r.tagName===`tbody`)&&qo(r,n.children.indexOf(r),n)?!1:!!(i&&i.type===`element`&&i.tagName===`tr`)}var hs={name:[[`
|
|
7
7
|
\f\r &/=>`.split(``),`
|
|
8
8
|
\f\r "&'/=>\``.split(``)],[`\0
|
|
9
9
|
\f\r "&'/<=>`.split(``),`\0
|
|
@@ -11,10 +11,10 @@ import{a as e,i as t,n,r}from"./chunk-Cyuzqnbw.js";import{i,r as a}from"./bundle
|
|
|
11
11
|
\f\r &>`.split(``),`\0
|
|
12
12
|
\f\r "&'<=>\``.split(``)],[`\0
|
|
13
13
|
\f\r "&'<=>\``.split(``),`\0
|
|
14
|
-
\f\r "&'<=>\``.split(``)]],single:[[`&'`.split(``),`"&'\``.split(``)],[`\0&'`.split(``),`\0"&'\``.split(``)]],double:[[`"&`.split(``),`"&'\``.split(``)],[`\0"&`.split(``),`\0"&'\``.split(``)]]};function vs(e,t,n,r){let i=r.schema,a=i.space===`svg`?!1:r.settings.omitOptionalTags,o=i.space===`svg`?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase()),s=[],c;i.space===`html`&&e.tagName===`svg`&&(r.schema=Dt);let l=ys(r,e.properties),u=r.all(i.space===`html`&&e.tagName===`template`?e.content:e);return r.schema=i,u&&(o=!1),(l||!a||!ds(e,t,n))&&(s.push(`<`,e.tagName,l?` `+l:``),o&&(i.space===`svg`||r.settings.closeSelfClosing)&&(c=l.charAt(l.length-1),(!r.settings.tightSelfClosing||c===`/`||c&&c!==`"`&&c!==`'`)&&s.push(` `),s.push(`/`)),s.push(`>`)),s.push(u),!o&&(!a||!Yo(e,t,n))&&s.push(`</`+e.tagName+`>`),s.join(``)}function ys(e,t){let n=[],r=-1,i;if(t){for(i in t)if(t[i]!==null&&t[i]!==void 0){let r=bs(e,i,t[i]);r&&n.push(r)}}for(;++r<n.length;){let t=e.settings.tightAttributes?n[r].charAt(n[r].length-1):void 0;r!==n.length-1&&t!==`"`&&t!==`'`&&(n[r]+=` `)}return n.join(``)}function bs(e,t,n){let r=Vt(e.schema,t),i=e.settings.allowParseErrors&&e.schema.space===`html`?0:1,a=+!e.settings.allowDangerousCharacters,o=e.quote,s;if(r.overloadedBoolean&&(n===r.attribute||n===``)?n=!0:(r.boolean||r.overloadedBoolean)&&(typeof n!=`string`||n===r.attribute||n===``)&&(n=!!n),n==null||n===!1||typeof n==`number`&&Number.isNaN(n))return``;let c=Lo(r.attribute,Object.assign({},e.settings.characterReferences,{subset:_s.name[i][a]}));return n===!0||(n=Array.isArray(n)?(r.commaSeparated?Lt:jt)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?c:(e.settings.preferUnquoted&&(s=Lo(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:_s.unquoted[i][a]}))),s!==n&&(e.settings.quoteSmart&&Ft(n,o)>Ft(n,e.alternative)&&(o=e.alternative),s=o+Lo(n,Object.assign({},e.settings.characterReferences,{subset:(o===`'`?_s.single:_s.double)[i][a],attribute:!0}))+o),c+(s&&`=`+s))}var xs=[`<`,`&`];function Ss(e,t,n,r){return n&&n.type===`element`&&(n.tagName===`script`||n.tagName===`style`)?e.value:Lo(e.value,Object.assign({},r.settings.characterReferences,{subset:xs}))}function Cs(e,t,n,r){return r.settings.allowDangerousHtml?e.value:Ss(e,t,n,r)}function ws(e,t,n,r){return r.all(e)}var Ts=Nt(`type`,{invalid:Es,unknown:Ds,handlers:{comment:Vo,doctype:Ho,element:vs,raw:Cs,root:ws,text:Ss}});function Es(e){throw Error("Expected node, not `"+e+"`")}function Ds(e){throw Error("Cannot compile unknown node `"+e.type+"`")}var Os={},ks={},As=[];function js(e,t){let n=t||Os,r=n.quote||`"`,i=r===`"`?`'`:`"`;if(r!==`"`&&r!==`'`)throw Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:Ms,all:Ns,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||Wt,characterReferences:n.characterReferences||ks,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space===`svg`?Dt:Mt,quote:r,alternative:i}.one(Array.isArray(e)?{type:`root`,children:e}:e,void 0,void 0)}function Ms(e,t,n){return Ts(e,t,n,this)}function Ns(e){let t=[],n=e&&e.children||As,r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join(``)}function Ps(e,t){let n=typeof e==`string`?{}:{...e.colorReplacements},r=typeof e==`string`?e:e.name;for(let[e,i]of Object.entries(t?.colorReplacements||{}))typeof i==`string`?n[e]=i:e===r&&Object.assign(n,i);return n}function Fs(e,t){return e&&(t?.[e?.toLowerCase()]||e)}function Is(e){return Array.isArray(e)?e:[e]}async function Ls(e){return Promise.resolve(typeof e==`function`?e():e).then(e=>e.default||e)}function Rs(e){return!e||[`plaintext`,`txt`,`text`,`plain`].includes(e)}function zs(e){return e===`ansi`||Rs(e)}function Bs(e){return e===`none`}function Vs(e){return Bs(e)}function Hs(e,t){if(!t)return e;e.properties||={},e.properties.class||=[],typeof e.properties.class==`string`&&(e.properties.class=e.properties.class.split(/\s+/g)),Array.isArray(e.properties.class)||(e.properties.class=[]);let n=Array.isArray(t)?t:t.split(/\s+/g);for(let t of n)t&&!e.properties.class.includes(t)&&e.properties.class.push(t);return e}function Us(e,t=!1){if(e.length===0)return[[``,0]];let n=e.split(/(\r?\n)/g),r=0,i=[];for(let e=0;e<n.length;e+=2){let a=t?n[e]+(n[e+1]||``):n[e];i.push([a,r]),r+=n[e].length,r+=n[e+1]?.length||0}return i}function Ws(e){let t=Us(e,!0).map(([e])=>e);function n(n){if(n===e.length)return{line:t.length-1,character:t[t.length-1].length};let r=n,i=0;for(let e of t){if(r<e.length)break;r-=e.length,i++}return{line:i,character:r}}function r(e,n){let r=0;for(let n=0;n<e;n++)r+=t[n].length;return r+=n,r}return{lines:t,indexToPos:n,posToIndex:r}}function Gs(e,t,n){let r=new Set;for(let t of e.matchAll(/:?lang=["']([^"']+)["']/g)){let e=t[1].toLowerCase().trim();e&&r.add(e)}for(let t of e.matchAll(/(?:```|~~~)([\w-]+)/g)){let e=t[1].toLowerCase().trim();e&&r.add(e)}for(let t of e.matchAll(/\\begin\{([\w-]+)\}/g)){let e=t[1].toLowerCase().trim();e&&r.add(e)}for(let t of e.matchAll(/<script\s+(?:type|lang)=["']([^"']+)["']/gi)){let e=t[1].toLowerCase().trim(),n=e.includes(`/`)?e.split(`/`).pop():e;n&&r.add(n)}if(!n)return Array.from(r);let i=n.getBundledLanguages();return Array.from(r).filter(e=>e&&i[e])}var Ks=`light-dark()`,qs=[`color`,`background-color`];function Js(e,t){let n=0,r=[];for(let i of t)i>n&&r.push({...e,content:e.content.slice(n,i),offset:e.offset+n}),n=i;return n<e.content.length&&r.push({...e,content:e.content.slice(n),offset:e.offset+n}),r}function Ys(e,t){let n=Array.from(t instanceof Set?t:new Set(t)).sort((e,t)=>e-t);return n.length?e.map(e=>e.flatMap(e=>{let t=n.filter(t=>e.offset<t&&t<e.offset+e.content.length).map(t=>t-e.offset).sort((e,t)=>e-t);return t.length?Js(e,t):e})):e}function Xs(e,t,n,r,i=`css-vars`){let a={content:e.content,explanation:e.explanation,offset:e.offset},o=t.map(t=>Zs(e.variants[t])),s=new Set(o.flatMap(e=>Object.keys(e))),c={},l=(e,r)=>{let i=r===`color`?``:r===`background-color`?`-bg`:`-${r}`;return n+t[e]+(r===`color`?``:i)};return o.forEach((e,n)=>{for(let a of s){let s=e[a]||`inherit`;if(n===0&&r&&qs.includes(a))if(r===Ks&&o.length>1){let e=t.findIndex(e=>e===`light`),r=t.findIndex(e=>e===`dark`);if(e===-1||r===-1)throw new ji('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');c[a]=`light-dark(${o[e][a]||`inherit`}, ${o[r][a]||`inherit`})`,i===`css-vars`&&(c[l(n,a)]=s)}else c[a]=s;else i===`css-vars`&&(c[l(n,a)]=s)}}),a.htmlStyle=c,a}function Zs(e){let t={};if(e.color&&(t.color=e.color),e.bgColor&&(t[`background-color`]=e.bgColor),e.fontStyle){e.fontStyle&Qi.Italic&&(t[`font-style`]=`italic`),e.fontStyle&Qi.Bold&&(t[`font-weight`]=`bold`);let n=[];e.fontStyle&Qi.Underline&&n.push(`underline`),e.fontStyle&Qi.Strikethrough&&n.push(`line-through`),n.length&&(t[`text-decoration`]=n.join(` `))}return t}function Qs(e){return typeof e==`string`?e:Object.entries(e).map(([e,t])=>`${e}:${t}`).join(`;`)}var $s=new WeakMap;function ec(e,t){$s.set(e,t)}function tc(e){return $s.get(e)}var nc=class e{_stacks={};lang;get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(t,n){return new e(Object.fromEntries(Is(n).map(e=>[e,ho])),t)}constructor(...e){if(e.length===2){let[t,n]=e;this.lang=n,this._stacks=t}else{let[t,n,r]=e;this.lang=n,this._stacks={[r]:t}}}getInternalStack(e=this.theme){return this._stacks[e]}getScopes(e=this.theme){return rc(this._stacks[e])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}};function rc(e){let t=[],n=new Set;function r(e){if(n.has(e))return;n.add(e);let i=e?.nameScopesList?.scopeName;i&&t.push(i),e.parent&&r(e.parent)}return r(e),t}function ic(e,t){if(!(e instanceof nc))throw new ji(`Invalid grammar state`);return e.getInternalStack(t)}function ac(){let e=new WeakMap;function t(t){if(!e.has(t.meta)){let n=function(e){if(typeof e==`number`){if(e<0||e>t.source.length)throw new ji(`Invalid decoration offset: ${e}. Code length: ${t.source.length}`);return{...r.indexToPos(e),offset:e}}else{let t=r.lines[e.line];if(t===void 0)throw new ji(`Invalid decoration position ${JSON.stringify(e)}. Lines length: ${r.lines.length}`);let n=e.character;if(n<0&&(n=t.length+n),n<0||n>t.length)throw new ji(`Invalid decoration position ${JSON.stringify(e)}. Line ${e.line} length: ${t.length}`);return{...e,character:n,offset:r.posToIndex(e.line,n)}}},r=Ws(t.source),i=(t.options.decorations||[]).map(e=>({...e,start:n(e.start),end:n(e.end)}));oc(i),e.set(t.meta,{decorations:i,converter:r,source:t.source})}return e.get(t.meta)}return{name:`shiki:decorations`,tokens(e){if(this.options.decorations?.length)return Ys(e,t(this).decorations.flatMap(e=>[e.start.offset,e.end.offset]))},code(e){if(!this.options.decorations?.length)return;let n=t(this),r=Array.from(e.children).filter(e=>e.type===`element`&&e.tagName===`span`);if(r.length!==n.converter.lines.length)throw new ji(`Number of lines in code element (${r.length}) does not match the number of lines in the source (${n.converter.lines.length}). Failed to apply decorations.`);function i(e,t,n,i){let a=r[e],s=``,c=-1,l=-1;if(t===0&&(c=0),n===0&&(l=0),n===1/0&&(l=a.children.length),c===-1||l===-1)for(let e=0;e<a.children.length;e++)s+=sc(a.children[e]),c===-1&&s.length===t&&(c=e+1),l===-1&&s.length===n&&(l=e+1);if(c===-1)throw new ji(`Failed to find start index for decoration ${JSON.stringify(i.start)}`);if(l===-1)throw new ji(`Failed to find end index for decoration ${JSON.stringify(i.end)}`);let u=a.children.slice(c,l);if(!i.alwaysWrap&&u.length===a.children.length)o(a,i,`line`);else if(!i.alwaysWrap&&u.length===1&&u[0].type===`element`)o(u[0],i,`token`);else{let e={type:`element`,tagName:`span`,properties:{},children:u};o(e,i,`wrapper`),a.children.splice(c,u.length,e)}}function a(e,t){r[e]=o(r[e],t,`line`)}function o(e,t,n){let r=t.properties||{},i=t.transform||(e=>e);return e.tagName=t.tagName||`span`,e.properties={...e.properties,...r,class:e.properties.class},t.properties?.class&&Hs(e,t.properties.class),e=i(e,n)||e,e}let s=[],c=n.decorations.sort((e,t)=>t.start.offset-e.start.offset||e.end.offset-t.end.offset);for(let e of c){let{start:t,end:n}=e;if(t.line===n.line)i(t.line,t.character,n.character,e);else if(t.line<n.line){i(t.line,t.character,1/0,e);for(let r=t.line+1;r<n.line;r++)s.unshift(()=>a(r,e));i(n.line,0,n.character,e)}}s.forEach(e=>e())}}}function oc(e){for(let t=0;t<e.length;t++){let n=e[t];if(n.start.offset>n.end.offset)throw new ji(`Invalid decoration range: ${JSON.stringify(n.start)} - ${JSON.stringify(n.end)}`);for(let r=t+1;r<e.length;r++){let t=e[r],i=n.start.offset<=t.start.offset&&t.start.offset<n.end.offset,a=n.start.offset<t.end.offset&&t.end.offset<=n.end.offset,o=t.start.offset<=n.start.offset&&n.start.offset<t.end.offset,s=t.start.offset<n.end.offset&&n.end.offset<=t.end.offset;if(i||a||o||s){if(i&&a||o&&s||o&&n.start.offset===n.end.offset||a&&t.start.offset===t.end.offset)continue;throw new ji(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(t.start)} intersect.`)}}}}function sc(e){return e.type===`text`?e.value:e.type===`element`?e.children.map(sc).join(``):``}var cc=[ac()];function lc(e){let t=uc(e.transformers||[]);return[...t.pre,...t.normal,...t.post,...cc]}function uc(e){let t=[],n=[],r=[];for(let i of e)switch(i.enforce){case`pre`:t.push(i);break;case`post`:n.push(i);break;default:r.push(i)}return{pre:t,post:n,normal:r}}var dc=[`black`,`red`,`green`,`yellow`,`blue`,`magenta`,`cyan`,`white`,`brightBlack`,`brightRed`,`brightGreen`,`brightYellow`,`brightBlue`,`brightMagenta`,`brightCyan`,`brightWhite`],fc={1:`bold`,2:`dim`,3:`italic`,4:`underline`,7:`reverse`,8:`hidden`,9:`strikethrough`};function pc(e,t){let n=e.indexOf(`\x1B`,t);if(n!==-1&&e[n+1]===`[`){let t=e.indexOf(`m`,n);if(t!==-1)return{sequence:e.substring(n+2,t).split(`;`),startPosition:n,position:t+1}}return{position:e.length}}function mc(e){let t=e.shift();if(t===`2`){let t=e.splice(0,3).map(e=>Number.parseInt(e));return t.length!==3||t.some(e=>Number.isNaN(e))?void 0:{type:`rgb`,rgb:t}}else if(t===`5`){let t=e.shift();if(t)return{type:`table`,index:Number(t)}}}function hc(e){let t=[];for(;e.length>0;){let n=e.shift();if(!n)continue;let r=Number.parseInt(n);if(!Number.isNaN(r))if(r===0)t.push({type:`resetAll`});else if(r<=9)fc[r]&&t.push({type:`setDecoration`,value:fc[r]});else if(r<=29){let e=fc[r-20];e&&(t.push({type:`resetDecoration`,value:e}),e===`dim`&&t.push({type:`resetDecoration`,value:`bold`}))}else if(r<=37)t.push({type:`setForegroundColor`,value:{type:`named`,name:dc[r-30]}});else if(r===38){let n=mc(e);n&&t.push({type:`setForegroundColor`,value:n})}else if(r===39)t.push({type:`resetForegroundColor`});else if(r<=47)t.push({type:`setBackgroundColor`,value:{type:`named`,name:dc[r-40]}});else if(r===48){let n=mc(e);n&&t.push({type:`setBackgroundColor`,value:n})}else r===49?t.push({type:`resetBackgroundColor`}):r===53?t.push({type:`setDecoration`,value:`overline`}):r===55?t.push({type:`resetDecoration`,value:`overline`}):r>=90&&r<=97?t.push({type:`setForegroundColor`,value:{type:`named`,name:dc[r-90+8]}}):r>=100&&r<=107&&t.push({type:`setBackgroundColor`,value:{type:`named`,name:dc[r-100+8]}})}return t}function gc(){let e=null,t=null,n=new Set;return{parse(r){let i=[],a=0;do{let o=pc(r,a),s=o.sequence?r.substring(a,o.startPosition):r.substring(a);if(s.length>0&&i.push({value:s,foreground:e,background:t,decorations:new Set(n)}),o.sequence){let r=hc(o.sequence);for(let i of r)i.type===`resetAll`?(e=null,t=null,n.clear()):i.type===`resetForegroundColor`?e=null:i.type===`resetBackgroundColor`?t=null:i.type===`resetDecoration`&&n.delete(i.value);for(let i of r)i.type===`setForegroundColor`?e=i.value:i.type===`setBackgroundColor`?t=i.value:i.type===`setDecoration`&&n.add(i.value)}a=o.position}while(a<r.length);return i}}}var _c={black:`#000000`,red:`#bb0000`,green:`#00bb00`,yellow:`#bbbb00`,blue:`#0000bb`,magenta:`#ff00ff`,cyan:`#00bbbb`,white:`#eeeeee`,brightBlack:`#555555`,brightRed:`#ff5555`,brightGreen:`#00ff00`,brightYellow:`#ffff55`,brightBlue:`#5555ff`,brightMagenta:`#ff55ff`,brightCyan:`#55ffff`,brightWhite:`#ffffff`};function vc(e=_c){function t(t){return e[t]}function n(e){return`#${e.map(e=>Math.max(0,Math.min(e,255)).toString(16).padStart(2,`0`)).join(``)}`}let r;function i(){if(r)return r;r=[];for(let e=0;e<dc.length;e++)r.push(t(dc[e]));let e=[0,95,135,175,215,255];for(let t=0;t<6;t++)for(let i=0;i<6;i++)for(let a=0;a<6;a++)r.push(n([e[t],e[i],e[a]]));let i=8;for(let e=0;e<24;e++,i+=10)r.push(n([i,i,i]));return r}function a(e){return i()[e]}function o(e){switch(e.type){case`named`:return t(e.name);case`rgb`:return n(e.rgb);case`table`:return a(e.index)}}return{value:o}}var yc={black:`#000000`,red:`#cd3131`,green:`#0DBC79`,yellow:`#E5E510`,blue:`#2472C8`,magenta:`#BC3FBC`,cyan:`#11A8CD`,white:`#E5E5E5`,brightBlack:`#666666`,brightRed:`#F14C4C`,brightGreen:`#23D18B`,brightYellow:`#F5F543`,brightBlue:`#3B8EEA`,brightMagenta:`#D670D6`,brightCyan:`#29B8DB`,brightWhite:`#FFFFFF`};function bc(e,t,n){let r=Ps(e,n),i=Us(t),a=vc(Object.fromEntries(dc.map(t=>{let n=`terminal.ansi${t[0].toUpperCase()}${t.substring(1)}`;return[t,e.colors?.[n]||yc[t]]}))),o=gc();return i.map(t=>o.parse(t[0]).map(n=>{let i,o;n.decorations.has(`reverse`)?(i=n.background?a.value(n.background):e.bg,o=n.foreground?a.value(n.foreground):e.fg):(i=n.foreground?a.value(n.foreground):e.fg,o=n.background?a.value(n.background):void 0),i=Fs(i,r),o=Fs(o,r),n.decorations.has(`dim`)&&(i=xc(i));let s=Qi.None;return n.decorations.has(`bold`)&&(s|=Qi.Bold),n.decorations.has(`italic`)&&(s|=Qi.Italic),n.decorations.has(`underline`)&&(s|=Qi.Underline),n.decorations.has(`strikethrough`)&&(s|=Qi.Strikethrough),{content:n.value,offset:t[1],color:i,bgColor:o,fontStyle:s}}))}function xc(e){let t=e.match(/#([0-9a-f]{3,8})/i);if(t){let e=t[1];if(e.length===8){let t=Math.round(Number.parseInt(e.slice(6,8),16)/2).toString(16).padStart(2,`0`);return`#${e.slice(0,6)}${t}`}else if(e.length===6)return`#${e}80`;else if(e.length===4){let t=e[0],n=e[1],r=e[2],i=e[3];return`#${t}${t}${n}${n}${r}${r}${Math.round(Number.parseInt(`${i}${i}`,16)/2).toString(16).padStart(2,`0`)}`}else if(e.length===3){let t=e[0],n=e[1],r=e[2];return`#${t}${t}${n}${n}${r}${r}80`}}let n=e.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return n?`var(${n[1]}-dim)`:e}function Sc(e,t,n={}){let{theme:r=e.getLoadedThemes()[0]}=n,i=e.resolveLangAlias(n.lang||`text`);if(Rs(i)||Bs(r))return Us(t).map(e=>[{content:e[0],offset:e[1]}]);let{theme:a,colorMap:o}=e.setTheme(r);if(i===`ansi`)return bc(a,t,n);let s=e.getLanguage(n.lang||`text`);if(n.grammarState){if(n.grammarState.lang!==s.name)throw new ji(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${s.name}"`);if(!n.grammarState.themes.includes(a.name))throw new ji(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${a.name}"`)}return wc(t,s,a,o,n)}function Cc(...e){if(e.length===2)return tc(e[1]);let[t,n,r={}]=e,{lang:i=`text`,theme:a=t.getLoadedThemes()[0]}=r;if(Rs(i)||Bs(a))throw new ji(`Plain language does not have grammar state`);if(i===`ansi`)throw new ji(`ANSI language does not have grammar state`);let{theme:o,colorMap:s}=t.setTheme(a),c=t.getLanguage(i);return new nc(Tc(n,c,o,s,r).stateStack,c.name,o.name)}function wc(e,t,n,r,i){let a=Tc(e,t,n,r,i),o=new nc(a.stateStack,t.name,n.name);return ec(a.tokens,o),a.tokens}function Tc(e,t,n,r,i){let a=Ps(n,i),{tokenizeMaxLineLength:o=0,tokenizeTimeLimit:s=500}=i,c=Us(e),l=i.grammarState?ic(i.grammarState,n.name)??ho:i.grammarContextCode==null?ho:Tc(i.grammarContextCode,t,n,r,{...i,grammarState:void 0,grammarContextCode:void 0}).stateStack,u=[],d=[];for(let e=0,f=c.length;e<f;e++){let[f,p]=c[e];if(f===``){u=[],d.push([]);continue}if(o>0&&f.length>=o){u=[],d.push([{content:f,offset:p,color:``,fontStyle:0}]);continue}let m,h,g;i.includeExplanation&&(m=t.tokenizeLine(f,l,s),h=m.tokens,g=0);let _=t.tokenizeLine2(f,l,s),v=_.tokens.length/2;for(let e=0;e<v;e++){let t=_.tokens[2*e],o=e+1<v?_.tokens[2*e+2]:f.length;if(t===o)continue;let s=_.tokens[2*e+1],c=Fs(r[ia.getForeground(s)],a),l=ia.getFontStyle(s),d={content:f.substring(t,o),offset:p+t,color:c,fontStyle:l};if(i.includeExplanation){let e=[];if(i.includeExplanation!==`scopeName`)for(let t of n.settings){let n;switch(typeof t.scope){case`string`:n=t.scope.split(/,/).map(e=>e.trim());break;case`object`:n=t.scope;break;default:continue}e.push({settings:t,selectors:n.map(e=>e.split(/ /))})}d.explanation=[];let r=0;for(;t+r<o;){let t=h[g],n=f.substring(t.startIndex,t.endIndex);r+=n.length,d.explanation.push({content:n,scopes:i.includeExplanation===`scopeName`?Ec(t.scopes):Dc(e,t.scopes)}),g+=1}}u.push(d)}d.push(u),u=[],l=_.ruleStack}return{tokens:d,stateStack:l}}function Ec(e){return e.map(e=>({scopeName:e}))}function Dc(e,t){let n=[];for(let r=0,i=t.length;r<i;r++){let i=t[r];n[r]={scopeName:i,themeMatches:Ac(e,i,t.slice(0,r))}}return n}function Oc(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]===`.`}function kc(e,t,n){if(!Oc(e[e.length-1],t))return!1;let r=e.length-2,i=n.length-1;for(;r>=0&&i>=0;)Oc(e[r],n[i])&&--r,--i;return r===-1}function Ac(e,t,n){let r=[];for(let{selectors:i,settings:a}of e)for(let e of i)if(kc(e,t,n)){r.push(a);break}return r}function jc(e,t,n){let r=Object.entries(n.themes).filter(e=>e[1]).map(e=>({color:e[0],theme:e[1]})),i=r.map(r=>{let i=Sc(e,t,{...n,theme:r.theme});return{tokens:i,state:tc(i),theme:typeof r.theme==`string`?r.theme:r.theme.name}}),a=Mc(...i.map(e=>e.tokens)),o=a[0].map((e,t)=>e.map((e,i)=>{let o={content:e.content,variants:{},offset:e.offset};return`includeExplanation`in n&&n.includeExplanation&&(o.explanation=e.explanation),a.forEach((e,n)=>{let{content:a,explanation:s,offset:c,...l}=e[t][i];o.variants[r[n].color]=l}),o})),s=i[0].state?new nc(Object.fromEntries(i.map(e=>[e.theme,e.state?.getInternalStack(e.theme)])),i[0].state.lang):void 0;return s&&ec(o,s),o}function Mc(...e){let t=e.map(()=>[]),n=e.length;for(let r=0;r<e[0].length;r++){let i=e.map(e=>e[r]),a=t.map(()=>[]);t.forEach((e,t)=>e.push(a[t]));let o=i.map(()=>0),s=i.map(e=>e[0]);for(;s.every(e=>e);){let e=Math.min(...s.map(e=>e.content.length));for(let t=0;t<n;t++){let n=s[t];n.content.length===e?(a[t].push(n),o[t]+=1,s[t]=i[t][o[t]]):(a[t].push({...n,content:n.content.slice(0,e)}),s[t]={...n,content:n.content.slice(e),offset:n.offset+e})}}}return t}function Nc(e,t,n){let r,i,a,o,s,c;if(`themes`in n){let{defaultColor:l=`light`,cssVariablePrefix:u=`--shiki-`,colorsRendering:d=`css-vars`}=n,f=Object.entries(n.themes).filter(e=>e[1]).map(e=>({color:e[0],theme:e[1]})).sort((e,t)=>e.color===l?-1:+(t.color===l));if(f.length===0)throw new ji("`themes` option must not be empty");let p=jc(e,t,n);if(c=tc(p),l&&Ks!==l&&!f.find(e=>e.color===l))throw new ji(`\`themes\` option must contain the defaultColor key \`${l}\``);let m=f.map(t=>e.getTheme(t.theme)),h=f.map(e=>e.color);a=p.map(e=>e.map(e=>Xs(e,h,u,l,d))),c&&ec(a,c);let g=f.map(e=>Ps(e.theme,n));i=Pc(f,m,g,u,l,`fg`,d),r=Pc(f,m,g,u,l,`bg`,d),o=`shiki-themes ${m.map(e=>e.name).join(` `)}`,s=l?void 0:[i,r].join(`;`)}else if(`theme`in n){let s=Ps(n.theme,n);a=Sc(e,t,n);let l=e.getTheme(n.theme);r=Fs(l.bg,s),i=Fs(l.fg,s),o=l.name,c=tc(a)}else throw new ji("Invalid options, either `theme` or `themes` must be provided");return{tokens:a,fg:i,bg:r,themeName:o,rootStyle:s,grammarState:c}}function Pc(e,t,n,r,i,a,o){return e.map((s,c)=>{let l=Fs(t[c][a],n[c])||`inherit`,u=`${r+s.color}${a===`bg`?`-bg`:``}:${l}`;if(c===0&&i){if(i===Ks&&e.length>1){let r=e.findIndex(e=>e.color===`light`),i=e.findIndex(e=>e.color===`dark`);if(r===-1||i===-1)throw new ji('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');return`light-dark(${Fs(t[r][a],n[r])||`inherit`}, ${Fs(t[i][a],n[i])||`inherit`});${u}`}return l}return o===`css-vars`?u:null}).filter(e=>!!e).join(`;`)}function Fc(e,t,n,r={meta:{},options:n,codeToHast:(t,n)=>Fc(e,t,n),codeToTokens:(t,n)=>Nc(e,t,n)}){let i=t;for(let e of lc(n))i=e.preprocess?.call(r,i,n)||i;let{tokens:a,fg:o,bg:s,themeName:c,rootStyle:l,grammarState:u}=Nc(e,i,n),{mergeWhitespaces:d=!0,mergeSameStyleTokens:f=!1}=n;d===!0?a=Lc(a):d===`never`&&(a=Rc(a)),f&&(a=zc(a));let p={...r,get source(){return i}};for(let e of lc(n))a=e.tokens?.call(p,a)||a;return Ic(a,{...n,fg:o,bg:s,themeName:c,rootStyle:n.rootStyle===!1?!1:n.rootStyle??l},p,u)}function Ic(e,t,n,r=tc(e)){let i=lc(t),a=[],o={type:`root`,children:[]},{structure:s=`classic`,tabindex:c=`0`}=t,l={class:`shiki ${t.themeName||``}`};t.rootStyle!==!1&&(t.rootStyle==null?l.style=`background-color:${t.bg};color:${t.fg}`:l.style=t.rootStyle),c!==!1&&c!=null&&(l.tabindex=c.toString());for(let[e,n]of Object.entries(t.meta||{}))e.startsWith(`_`)||(l[e]=n);let u={type:`element`,tagName:`pre`,properties:l,children:[],data:t.data},d={type:`element`,tagName:`code`,properties:{},children:a},f=[],p={...n,structure:s,addClassToHast:Hs,get source(){return n.source},get tokens(){return e},get options(){return t},get root(){return o},get pre(){return u},get code(){return d},get lines(){return f}};if(e.forEach((e,t)=>{t&&(s===`inline`?o.children.push({type:`element`,tagName:`br`,properties:{},children:[]}):s===`classic`&&a.push({type:`text`,value:`
|
|
15
|
-
`}));let n={type:`element`,tagName:`span`,properties:{class:`line`},children:[]},r=0;for(let a of e){let e={type:`element`,tagName:`span`,properties:{...a.htmlAttrs},children:[{type:`text`,value:a.content}]},c=Qs(a.htmlStyle||Zs(a));c&&(e.properties.style=c);for(let o of i)e=o?.span?.call(p,e,t+1,r,n,a)||e;s===`inline`?o.children.push(e):s===`classic`&&n.children.push(e),r+=a.content.length}if(s===`classic`){for(let e of i)n=e?.line?.call(p,n,t+1)||n;f.push(n),a.push(n)}else s===`inline`&&f.push(n)}),s===`classic`){for(let e of i)d=e?.code?.call(p,d)||d;u.children.push(d);for(let e of i)u=e?.pre?.call(p,u)||u;o.children.push(u)}else if(s===`inline`){let e=[],t={type:`element`,tagName:`span`,properties:{class:`line`},children:[]};for(let n of o.children)n.type===`element`&&n.tagName===`br`?(e.push(t),t={type:`element`,tagName:`span`,properties:{class:`line`},children:[]}):(n.type===`element`||n.type===`text`)&&t.children.push(n);e.push(t);let n={type:`element`,tagName:`code`,properties:{},children:e};for(let e of i)n=e?.code?.call(p,n)||n;o.children=[];for(let e=0;e<n.children.length;e++){e>0&&o.children.push({type:`element`,tagName:`br`,properties:{},children:[]});let t=n.children[e];t.type===`element`&&o.children.push(...t.children)}}let m=o;for(let e of i)m=e?.root?.call(p,m)||m;return r&&ec(m,r),m}function Lc(e){return e.map(e=>{let t=[],n=``,r;return e.forEach((i,a)=>{let o=!(i.fontStyle&&(i.fontStyle&Qi.Underline||i.fontStyle&Qi.Strikethrough));o&&i.content.match(/^\s+$/)&&e[a+1]?(r===void 0&&(r=i.offset),n+=i.content):n?(o?t.push({...i,offset:r,content:n+i.content}):t.push({content:n,offset:r},i),r=void 0,n=``):t.push(i)}),t})}function Rc(e){return e.map(e=>e.flatMap(e=>{if(e.content.match(/^\s+$/))return e;let t=e.content.match(/^(\s*)(.*?)(\s*)$/);if(!t)return e;let[,n,r,i]=t;if(!n&&!i)return e;let a=[{...e,offset:e.offset+n.length,content:r}];return n&&a.unshift({content:n,offset:e.offset}),i&&a.push({content:i,offset:e.offset+n.length+r.length}),a}))}function zc(e){return e.map(e=>{let t=[];for(let n of e){if(t.length===0){t.push({...n});continue}let e=t[t.length-1],r=Qs(e.htmlStyle||Zs(e)),i=Qs(n.htmlStyle||Zs(n)),a=e.fontStyle&&(e.fontStyle&Qi.Underline||e.fontStyle&Qi.Strikethrough),o=n.fontStyle&&(n.fontStyle&Qi.Underline||n.fontStyle&Qi.Strikethrough);!a&&!o&&r===i?e.content+=n.content:t.push({...n})}return t})}var Bc=js;function Vc(e,t,n){let r={meta:{},options:n,codeToHast:(t,n)=>Fc(e,t,n),codeToTokens:(t,n)=>Nc(e,t,n)},i=Bc(Fc(e,t,n,r));for(let e of lc(n))i=e.postprocess?.call(r,i,n)||i;return i}var Hc={light:`#333333`,dark:`#bbbbbb`},Uc={light:`#fffffe`,dark:`#1e1e1e`},Wc=`__shiki_resolved`;function Gc(e){if(e?.[Wc])return e;let t={...e};t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||=`dark`,t.colorReplacements={...t.colorReplacements},t.settings||=[];let{bg:n,fg:r}=t;if(!n||!r){let e=t.settings?t.settings.find(e=>!e.name&&!e.scope):void 0;e?.settings?.foreground&&(r=e.settings.foreground),e?.settings?.background&&(n=e.settings.background),!r&&t?.colors?.[`editor.foreground`]&&(r=t.colors[`editor.foreground`]),!n&&t?.colors?.[`editor.background`]&&(n=t.colors[`editor.background`]),r||=t.type===`light`?Hc.light:Hc.dark,n||=t.type===`light`?Uc.light:Uc.dark,t.fg=r,t.bg=n}t.settings[0]&&t.settings[0].settings&&!t.settings[0].scope||t.settings.unshift({settings:{foreground:t.fg,background:t.bg}});let i=0,a=new Map;function o(e){if(a.has(e))return a.get(e);i+=1;let n=`#${i.toString(16).padStart(8,`0`).toLowerCase()}`;return t.colorReplacements?.[`#${n}`]?o(e):(a.set(e,n),n)}t.settings=t.settings.map(e=>{let n=e.settings?.foreground&&!e.settings.foreground.startsWith(`#`),r=e.settings?.background&&!e.settings.background.startsWith(`#`);if(!n&&!r)return e;let i={...e,settings:{...e.settings}};if(n){let n=o(e.settings.foreground);t.colorReplacements[n]=e.settings.foreground,i.settings.foreground=n}if(r){let n=o(e.settings.background);t.colorReplacements[n]=e.settings.background,i.settings.background=n}return i});for(let e of Object.keys(t.colors||{}))if((e===`editor.foreground`||e===`editor.background`||e.startsWith(`terminal.ansi`))&&!t.colors[e]?.startsWith(`#`)){let n=o(t.colors[e]);t.colorReplacements[n]=t.colors[e],t.colors[e]=n}return Object.defineProperty(t,Wc,{enumerable:!1,writable:!1,value:!0}),t}async function Kc(e){return Array.from(new Set((await Promise.all(e.filter(e=>!zs(e)).map(async e=>await Ls(e).then(e=>Array.isArray(e)?e:[e])))).flat()))}async function qc(e){return(await Promise.all(e.map(async e=>Vs(e)?null:Gc(await Ls(e))))).filter(e=>!!e)}var Jc=3,Yc=!1;function Xc(e,t=3){if(Jc&&!(typeof Jc==`number`&&t>Jc)){if(Yc)throw Error(`[SHIKI DEPRECATE]: ${e}`);console.trace(`[SHIKI DEPRECATE]: ${e}`)}}var Zc=class extends Error{constructor(e){super(e),this.name=`ShikiError`}};function Qc(e,t){if(!t)return e;if(t[e]){let n=new Set([e]);for(;t[e];){if(e=t[e],n.has(e))throw new Zc(`Circular alias \`${Array.from(n).join(` -> `)} -> ${e}\``);n.add(e)}}return e}var $c=class extends mo{constructor(e,t,n,r={}){super(e),this._resolver=e,this._themes=t,this._langs=n,this._alias=r,this._themes.map(e=>this.loadTheme(e)),this.loadLanguages(this._langs)}_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;getTheme(e){return typeof e==`string`?this._resolvedThemes.get(e):this.loadTheme(e)}loadTheme(e){let t=Gc(e);return t.name&&(this._resolvedThemes.set(t.name,t),this._loadedThemesCache=null),t}getLoadedThemes(){return this._loadedThemesCache||=[...this._resolvedThemes.keys()],this._loadedThemesCache}setTheme(e){let t=this._textmateThemeCache.get(e);t||(t=Gi.createFromRawTheme(e),this._textmateThemeCache.set(e,t)),this._syncRegistry.setTheme(t)}getGrammar(e){return e=Qc(e,this._alias),this._resolvedGrammars.get(e)}loadLanguage(e){if(this.getGrammar(e.name))return;let t=new Set([...this._langMap.values()].filter(t=>t.embeddedLangsLazy?.includes(e.name)));this._resolver.addLanguage(e);let n={balancedBracketSelectors:e.balancedBracketSelectors||[`*`],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(e.scopeName,e);let r=this.loadGrammarWithConfiguration(e.scopeName,1,n);if(r.name=e.name,this._resolvedGrammars.set(e.name,r),e.aliases&&e.aliases.forEach(t=>{this._alias[t]=e.name}),this._loadedLanguagesCache=null,t.size)for(let e of t)this._resolvedGrammars.delete(e.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(e.scopeName),this._syncRegistry?._grammars?.delete(e.scopeName),this.loadLanguage(this._langMap.get(e.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(e){for(let t of e)this.resolveEmbeddedLanguages(t);let t=Array.from(this._langGraph.entries()),n=t.filter(([e,t])=>!t);if(n.length){let e=t.filter(([e,t])=>t?(t.embeddedLanguages||t.embeddedLangs)?.some(e=>n.map(([e])=>e).includes(e)):!1).filter(e=>!n.includes(e));throw new Zc(`Missing languages ${n.map(([e])=>`\`${e}\``).join(`, `)}, required by ${e.map(([e])=>`\`${e}\``).join(`, `)}`)}for(let[e,n]of t)this._resolver.addLanguage(n);for(let[e,n]of t)this.loadLanguage(n)}getLoadedLanguages(){return this._loadedLanguagesCache||=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])],this._loadedLanguagesCache}resolveEmbeddedLanguages(e){this._langMap.set(e.name,e),this._langGraph.set(e.name,e);let t=e.embeddedLanguages??e.embeddedLangs;if(t)for(let e of t)this._langGraph.set(e,this._langMap.get(e))}},el=class{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLib;constructor(e,t){this._onigLib={createOnigScanner:t=>e.createScanner(t),createOnigString:t=>e.createString(t)},t.forEach(e=>this.addLanguage(e))}get onigLib(){return this._onigLib}getLangRegistration(e){return this._langs.get(e)}loadGrammar(e){return this._scopeToLang.get(e)}addLanguage(e){this._langs.set(e.name,e),e.aliases&&e.aliases.forEach(t=>{this._langs.set(t,e)}),this._scopeToLang.set(e.scopeName,e),e.injectTo&&e.injectTo.forEach(t=>{this._injections.get(t)||this._injections.set(t,[]),this._injections.get(t).push(e.scopeName)})}getInjections(e){let t=e.split(`.`),n=[];for(let e=1;e<=t.length;e++){let r=t.slice(0,e).join(`.`);n=[...n,...this._injections.get(r)||[]]}return n}},tl=0;function nl(e){tl+=1,e.warnings!==!1&&tl>=10&&tl%10==0&&console.warn(`[Shiki] ${tl} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let t=!1;if(!e.engine)throw new Zc("`engine` option is required for synchronous mode");let n=(e.langs||[]).flat(1),r=(e.themes||[]).flat(1).map(Gc),i=new $c(new el(e.engine,n),r,n,e.langAlias),a;function o(t){return Qc(t,e.langAlias)}function s(e){g();let t=i.getGrammar(typeof e==`string`?e:e.name);if(!t)throw new Zc(`Language \`${e}\` not found, you may need to load it first`);return t}function c(e){if(e===`none`)return{bg:``,fg:``,name:`none`,settings:[],type:`dark`};g();let t=i.getTheme(e);if(!t)throw new Zc(`Theme \`${e}\` not found, you may need to load it first`);return t}function l(e){g();let t=c(e);return a!==e&&(i.setTheme(t),a=e),{theme:t,colorMap:i.getColorMap()}}function u(){return g(),i.getLoadedThemes()}function d(){return g(),i.getLoadedLanguages()}function f(...e){g(),i.loadLanguages(e.flat(1))}async function p(...e){return f(await Kc(e))}function m(...e){g();for(let t of e.flat(1))i.loadTheme(t)}async function h(...e){return g(),m(await qc(e))}function g(){if(t)throw new Zc(`Shiki instance has been disposed`)}function _(){t||(t=!0,i.dispose(),--tl)}return{setTheme:l,getTheme:c,getLanguage:s,getLoadedThemes:u,getLoadedLanguages:d,resolveLangAlias:o,loadLanguage:p,loadLanguageSync:f,loadTheme:h,loadThemeSync:m,dispose:_,[Symbol.dispose]:_}}async function rl(e){e.engine||Xc("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");let[t,n,r]=await Promise.all([qc(e.themes||[]),Kc(e.langs||[]),e.engine]);return nl({...e,themes:t,langs:n,engine:r})}async function il(e){let t=await rl(e);return{getLastGrammarState:(...e)=>Cc(t,...e),codeToTokensBase:(e,n)=>Sc(t,e,n),codeToTokensWithThemes:(e,n)=>jc(t,e,n),codeToTokens:(e,n)=>Nc(t,e,n),codeToHast:(e,n)=>Fc(t,e,n),codeToHtml:(e,n)=>Vc(t,e,n),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}function al(e){let t=e.langs,n=e.themes,r=e.engine;async function i(e){function i(n){if(typeof n==`string`){if(n=e.langAlias?.[n]||n,zs(n))return[];let r=t[n];if(!r)throw new ji(`Language \`${n}\` is not included in this bundle. You may want to load it from external source.`);return r}return n}function a(e){if(Vs(e))return`none`;if(typeof e==`string`){let t=n[e];if(!t)throw new ji(`Theme \`${e}\` is not included in this bundle. You may want to load it from external source.`);return t}return e}let o=(e.themes??[]).map(e=>a(e)),s=(e.langs??[]).map(e=>i(e)),c=await il({engine:e.engine??r(),...e,themes:o,langs:s});return{...c,loadLanguage(...e){return c.loadLanguage(...e.map(i))},loadTheme(...e){return c.loadTheme(...e.map(a))},getBundledLanguages(){return t},getBundledThemes(){return n}}}return i}function ol(e){let t;async function n(n={}){if(t){let e=await t;return await Promise.all([e.loadTheme(...n.themes||[]),e.loadLanguage(...n.langs||[])]),e}else{t=e({...n,themes:[],langs:[]});let r=await t;return await Promise.all([r.loadTheme(...n.themes||[]),r.loadLanguage(...n.langs||[])]),r}}return n}function sl(e,t){let n=ol(e);async function r(e,r){let i=await n({langs:[r.lang],themes:`theme`in r?[r.theme]:Object.values(r.themes)}),a=await t?.guessEmbeddedLanguages?.(e,r.lang,i);return a&&await i.loadLanguage(...a),i}return{getSingletonHighlighter(e){return n(e)},async codeToHtml(e,t){return(await r(e,t)).codeToHtml(e,t)},async codeToHast(e,t){return(await r(e,t)).codeToHast(e,t)},async codeToTokens(e,t){return(await r(e,t)).codeToTokens(e,t)},async codeToTokensBase(e,t){return(await r(e,t)).codeToTokensBase(e,t)},async codeToTokensWithThemes(e,t){return(await r(e,t)).codeToTokensWithThemes(e,t)},async getLastGrammarState(e,t){return(await n({langs:[t.lang],themes:[t.theme]})).getLastGrammarState(e,t)}}}var cl=[{id:`abap`,name:`ABAP`,import:(()=>k(()=>import(`./abap-BF8NL95m.js`),[]))},{id:`actionscript-3`,name:`ActionScript`,import:(()=>k(()=>import(`./actionscript-3-8HxPlehu.js`),[]))},{id:`ada`,name:`Ada`,import:(()=>k(()=>import(`./ada-Bw5CILjN.js`),[]))},{id:`angular-html`,name:`Angular HTML`,import:(()=>k(()=>import(`./angular-html-BKhkKBsm.js`).then(e=>e.n),__vite__mapDeps([0,1,2,3,4])))},{id:`angular-ts`,name:`Angular TypeScript`,import:(()=>k(()=>import(`./angular-ts-CYPbMJCA.js`),__vite__mapDeps([5,0,1,2,3,4,6])))},{id:`apache`,name:`Apache Conf`,import:(()=>k(()=>import(`./apache-_o4xIZnD.js`),[]))},{id:`apex`,name:`Apex`,import:(()=>k(()=>import(`./apex-CGTLDQj6.js`),[]))},{id:`apl`,name:`APL`,import:(()=>k(()=>import(`./apl-D7bENxmy.js`),__vite__mapDeps([7,3,1,2,4,8,9,10])))},{id:`applescript`,name:`AppleScript`,import:(()=>k(()=>import(`./applescript-BeHGDHfZ.js`),[]))},{id:`ara`,name:`Ara`,import:(()=>k(()=>import(`./ara-DO_5Wseq.js`),[]))},{id:`asciidoc`,name:`AsciiDoc`,aliases:[`adoc`],import:(()=>k(()=>import(`./asciidoc-CibGaoXl.js`),[]))},{id:`asm`,name:`Assembly`,import:(()=>k(()=>import(`./asm-MXdQGneo.js`),[]))},{id:`astro`,name:`Astro`,import:(()=>k(()=>import(`./astro-B1l9MDUT.js`),__vite__mapDeps([11,3,1,4,8,12,13,14])))},{id:`awk`,name:`AWK`,import:(()=>k(()=>import(`./awk-DnQEBQqr.js`),[]))},{id:`ballerina`,name:`Ballerina`,import:(()=>k(()=>import(`./ballerina-CFI0x2Aa.js`),[]))},{id:`bat`,name:`Batch File`,aliases:[`batch`],import:(()=>k(()=>import(`./bat-DC-yen0F.js`),[]))},{id:`beancount`,name:`Beancount`,import:(()=>k(()=>import(`./beancount-D_qoziCN.js`),[]))},{id:`berry`,name:`Berry`,aliases:[`be`],import:(()=>k(()=>import(`./berry-BKmXRlIk.js`),[]))},{id:`bibtex`,name:`BibTeX`,import:(()=>k(()=>import(`./bibtex-DPT_ISlA.js`),[]))},{id:`bicep`,name:`Bicep`,import:(()=>k(()=>import(`./bicep-BSNFxtkx.js`),[]))},{id:`bird2`,name:`BIRD2 Configuration`,aliases:[`bird`],import:(()=>k(()=>import(`./bird2-C2hNVINV.js`),[]))},{id:`blade`,name:`Blade`,import:(()=>k(()=>import(`./blade-BlkqRXu6.js`),__vite__mapDeps([15,3,1,16,2,4,8,17,9,10])))},{id:`bsl`,name:`1C (Enterprise)`,aliases:[`1c`],import:(()=>k(()=>import(`./bsl-DJOyloKD.js`),__vite__mapDeps([18,19])))},{id:`c`,name:`C`,import:(()=>k(()=>import(`./c-PpPxyn8g.js`).then(e=>e.n),__vite__mapDeps([20,1])))},{id:`c3`,name:`C3`,import:(()=>k(()=>import(`./c3-CnJL0r0V.js`),[]))},{id:`cadence`,name:`Cadence`,aliases:[`cdc`],import:(()=>k(()=>import(`./cadence-Cfz1Ugii.js`),[]))},{id:`cairo`,name:`Cairo`,import:(()=>k(()=>import(`./cairo-CDc8os0h.js`),__vite__mapDeps([21,22])))},{id:`clarity`,name:`Clarity`,import:(()=>k(()=>import(`./clarity-CCl-fyB_.js`),[]))},{id:`clojure`,name:`Clojure`,aliases:[`clj`],import:(()=>k(()=>import(`./clojure-D5q7Jl6u.js`),[]))},{id:`cmake`,name:`CMake`,import:(()=>k(()=>import(`./cmake-CbIxKMg_.js`),[]))},{id:`cobol`,name:`COBOL`,import:(()=>k(()=>import(`./cobol-BoXxFQjh.js`),__vite__mapDeps([23,2,1,3,4,10])))},{id:`codeowners`,name:`CODEOWNERS`,import:(()=>k(()=>import(`./codeowners-BhqpE35O.js`),[]))},{id:`codeql`,name:`CodeQL`,aliases:[`ql`],import:(()=>k(()=>import(`./codeql-Bq651Y_e.js`),[]))},{id:`coffee`,name:`CoffeeScript`,aliases:[`coffeescript`],import:(()=>k(()=>import(`./coffee-Dl-rf7k6.js`),__vite__mapDeps([24,4,1])))},{id:`common-lisp`,name:`Common Lisp`,aliases:[`lisp`],import:(()=>k(()=>import(`./common-lisp-8vnVPjBz.js`),[]))},{id:`coq`,name:`Coq`,import:(()=>k(()=>import(`./coq-Bol-RJ7y.js`),[]))},{id:`cpp`,name:`C++`,aliases:[`c++`],import:(()=>k(()=>import(`./cpp-CVIk4zoB.js`).then(e=>e.n),__vite__mapDeps([25,1,26,20,27,17])))},{id:`crystal`,name:`Crystal`,import:(()=>k(()=>import(`./crystal-CvUuUt6_.js`),__vite__mapDeps([28,20,1,3,2,4,29,17])))},{id:`csharp`,name:`C#`,aliases:[`c#`,`cs`],import:(()=>k(()=>import(`./csharp-Ct8U2NOr.js`),[]))},{id:`css`,name:`CSS`,import:(()=>k(()=>import(`./css-D7o5g6xi.js`).then(e=>e.n),__vite__mapDeps([3,1])))},{id:`csv`,name:`CSV`,import:(()=>k(()=>import(`./csv-aQe9eWwB.js`),[]))},{id:`cue`,name:`CUE`,import:(()=>k(()=>import(`./cue-Dw4Jatp1.js`),[]))},{id:`cypher`,name:`Cypher`,aliases:[`cql`],import:(()=>k(()=>import(`./cypher-Ce1ftazo.js`),[]))},{id:`d`,name:`D`,import:(()=>k(()=>import(`./d-C5Cd7-kE.js`),[]))},{id:`dart`,name:`Dart`,import:(()=>k(()=>import(`./dart-DkHntEIa.js`),[]))},{id:`dax`,name:`DAX`,import:(()=>k(()=>import(`./dax-8Zbmoo6g.js`),[]))},{id:`desktop`,name:`Desktop`,import:(()=>k(()=>import(`./desktop-DfUumfaM.js`),[]))},{id:`diff`,name:`Diff`,import:(()=>k(()=>import(`./diff-COJGj3FI.js`),[]))},{id:`docker`,name:`Dockerfile`,aliases:[`dockerfile`],import:(()=>k(()=>import(`./docker-BRkDW2k5.js`),[]))},{id:`dotenv`,name:`dotEnv`,import:(()=>k(()=>import(`./dotenv-BCLQtltE.js`),[]))},{id:`dream-maker`,name:`Dream Maker`,import:(()=>k(()=>import(`./dream-maker-Bqk5m4Bz.js`),[]))},{id:`edge`,name:`Edge`,import:(()=>k(()=>import(`./edge-CmXZi-az.js`),__vite__mapDeps([30,16,2,1,3,4,14])))},{id:`elixir`,name:`Elixir`,import:(()=>k(()=>import(`./elixir-BoRIkjDi.js`),__vite__mapDeps([31,2,1,3,4])))},{id:`elm`,name:`Elm`,import:(()=>k(()=>import(`./elm-BN_gLVH_.js`),__vite__mapDeps([32,26,1,20])))},{id:`emacs-lisp`,name:`Emacs Lisp`,aliases:[`elisp`],import:(()=>k(()=>import(`./emacs-lisp-C9PiwqqW.js`),[]))},{id:`erb`,name:`ERB`,import:(()=>k(()=>import(`./erb-DuMAGb6i.js`),__vite__mapDeps([33,2,1,3,4,34,20,25,26,27,17,35,36,13,14,37,38,29,9,10,39])))},{id:`erlang`,name:`Erlang`,aliases:[`erl`],import:(()=>k(()=>import(`./erlang-Dej7b2OY.js`),__vite__mapDeps([40,41])))},{id:`fennel`,name:`Fennel`,import:(()=>k(()=>import(`./fennel-Bb9CuKP4.js`),[]))},{id:`fish`,name:`Fish`,import:(()=>k(()=>import(`./fish-3TGl8j7I.js`),[]))},{id:`fluent`,name:`Fluent`,aliases:[`ftl`],import:(()=>k(()=>import(`./fluent-D94vzzSS.js`),[]))},{id:`fortran-fixed-form`,name:`Fortran (Fixed Form)`,aliases:[`f`,`for`,`f77`],import:(()=>k(()=>import(`./fortran-fixed-form-RVbzjQ2q.js`),__vite__mapDeps([42,43])))},{id:`fortran-free-form`,name:`Fortran (Free Form)`,aliases:[`f90`,`f95`,`f03`,`f08`,`f18`],import:(()=>k(()=>import(`./fortran-free-form-EhmKDVgM.js`),[]))},{id:`fsharp`,name:`F#`,aliases:[`f#`,`fs`],import:(()=>k(()=>import(`./fsharp-DKW21_Cq.js`),__vite__mapDeps([44,41])))},{id:`gdresource`,name:`GDResource`,aliases:[`tscn`,`tres`],import:(()=>k(()=>import(`./gdresource-b7MixKdf.js`),__vite__mapDeps([45,46,47])))},{id:`gdscript`,name:`GDScript`,aliases:[`gd`],import:(()=>k(()=>import(`./gdscript-DbNIuFFJ.js`),[]))},{id:`gdshader`,name:`GDShader`,import:(()=>k(()=>import(`./gdshader-C7BToOo8.js`),[]))},{id:`genie`,name:`Genie`,import:(()=>k(()=>import(`./genie-Cxv98QxF.js`),[]))},{id:`gherkin`,name:`Gherkin`,import:(()=>k(()=>import(`./gherkin-CcdVVABv.js`),[]))},{id:`git-commit`,name:`Git Commit Message`,import:(()=>k(()=>import(`./git-commit-BU_RZ1WH.js`),__vite__mapDeps([48,49])))},{id:`git-rebase`,name:`Git Rebase Message`,import:(()=>k(()=>import(`./git-rebase-DfgjiXG9.js`),__vite__mapDeps([50,29,1])))},{id:`gleam`,name:`Gleam`,import:(()=>k(()=>import(`./gleam-B359wBlW.js`),[]))},{id:`glimmer-js`,name:`Glimmer JS`,aliases:[`gjs`],import:(()=>k(()=>import(`./glimmer-js--VVKNatA.js`),__vite__mapDeps([51,3,1,2,4,14])))},{id:`glimmer-ts`,name:`Glimmer TS`,aliases:[`gts`],import:(()=>k(()=>import(`./glimmer-ts-Bfa_wiNC.js`),__vite__mapDeps([52,3,1,2,4,14])))},{id:`glsl`,name:`GLSL`,import:(()=>k(()=>import(`./glsl-MPwHyiXQ.js`).then(e=>e.n),__vite__mapDeps([26,1,20])))},{id:`gn`,name:`GN`,import:(()=>k(()=>import(`./gn-BdcPb0jv.js`),[]))},{id:`gnuplot`,name:`Gnuplot`,import:(()=>k(()=>import(`./gnuplot-DKk0glG7.js`),[]))},{id:`go`,name:`Go`,import:(()=>k(()=>import(`./go-BJwz_mda.js`),[]))},{id:`graphql`,name:`GraphQL`,aliases:[`gql`],import:(()=>k(()=>import(`./graphql-NW854Khs.js`).then(e=>e.n),__vite__mapDeps([35,1,4,36,13,14])))},{id:`groovy`,name:`Groovy`,import:(()=>k(()=>import(`./groovy-DyoOSCFW.js`),[]))},{id:`hack`,name:`Hack`,import:(()=>k(()=>import(`./hack-CSl79E5u.js`),__vite__mapDeps([53,2,1,3,4,17])))},{id:`haml`,name:`Ruby Haml`,import:(()=>k(()=>import(`./haml-Dmb1YmHj.js`).then(e=>e.n),__vite__mapDeps([37,1,3,4])))},{id:`handlebars`,name:`Handlebars`,aliases:[`hbs`],import:(()=>k(()=>import(`./handlebars-Du8DtnRB.js`),__vite__mapDeps([54,3,1,2,4,39])))},{id:`haskell`,name:`Haskell`,aliases:[`hs`],import:(()=>k(()=>import(`./haskell-Dsfw-pfZ.js`),[]))},{id:`haxe`,name:`Haxe`,import:(()=>k(()=>import(`./haxe-BZXihDV-.js`),[]))},{id:`hcl`,name:`HashiCorp HCL`,import:(()=>k(()=>import(`./hcl-o1Ej_Blw.js`),[]))},{id:`hjson`,name:`Hjson`,import:(()=>k(()=>import(`./hjson-C0zQIMrr.js`),[]))},{id:`hlsl`,name:`HLSL`,import:(()=>k(()=>import(`./hlsl-BxIm9IaD.js`),[]))},{id:`html`,name:`HTML`,import:(()=>k(()=>import(`./html-Kpl3bQKd.js`).then(e=>e.n),__vite__mapDeps([2,1,3,4])))},{id:`html-derivative`,name:`HTML (Derivative)`,import:(()=>k(()=>import(`./html-derivative-BEEWNZ8Y.js`),__vite__mapDeps([16,2,1,3,4])))},{id:`http`,name:`HTTP`,import:(()=>k(()=>import(`./http-CTnm0cit.js`),__vite__mapDeps([55,35,1,4,36,13,14,8,29,9,10])))},{id:`hurl`,name:`Hurl`,import:(()=>k(()=>import(`./hurl-CpwzV4SP.js`),__vite__mapDeps([56,57,35,1,4,36,13,14,9,10])))},{id:`hxml`,name:`HXML`,import:(()=>k(()=>import(`./hxml-B_tSdhCX.js`),__vite__mapDeps([58,59])))},{id:`hy`,name:`Hy`,import:(()=>k(()=>import(`./hy-CPusJT2P.js`),[]))},{id:`imba`,name:`Imba`,import:(()=>k(()=>import(`./imba-BNhPHnyc.js`),[]))},{id:`ini`,name:`INI`,aliases:[`properties`],import:(()=>k(()=>import(`./ini-BXoOzk1L.js`),[]))},{id:`java`,name:`Java`,import:(()=>k(()=>import(`./java-Cst_eZTE.js`).then(e=>e.n),__vite__mapDeps([10,1])))},{id:`javascript`,name:`JavaScript`,aliases:[`js`,`cjs`,`mjs`],import:(()=>k(()=>import(`./javascript-i_rUTyCW.js`).then(e=>e.n),__vite__mapDeps([4,1])))},{id:`jinja`,name:`Jinja`,import:(()=>k(()=>import(`./jinja-CaXggA6f.js`),__vite__mapDeps([60,2,1,3,4])))},{id:`jison`,name:`Jison`,import:(()=>k(()=>import(`./jison-UUT3aynj.js`),__vite__mapDeps([61,4,1])))},{id:`json`,name:`JSON`,import:(()=>k(()=>import(`./json-DS5j4FfK.js`).then(e=>e.n),__vite__mapDeps([8,1])))},{id:`json5`,name:`JSON5`,import:(()=>k(()=>import(`./json5-BXepwZod.js`),[]))},{id:`jsonc`,name:`JSON with Comments`,import:(()=>k(()=>import(`./jsonc-jqjqAbF7.js`),[]))},{id:`jsonl`,name:`JSON Lines`,import:(()=>k(()=>import(`./jsonl-sJJpusUR.js`),[]))},{id:`jsonnet`,name:`Jsonnet`,import:(()=>k(()=>import(`./jsonnet-DKGWD1zU.js`),[]))},{id:`jssm`,name:`JSSM`,aliases:[`fsl`],import:(()=>k(()=>import(`./jssm-D6JwwFbv.js`),[]))},{id:`jsx`,name:`JSX`,import:(()=>k(()=>import(`./jsx-CFyhNHav.js`).then(e=>e.n),__vite__mapDeps([36,1])))},{id:`julia`,name:`Julia`,aliases:[`jl`],import:(()=>k(()=>import(`./julia-R8NNmfP1.js`),__vite__mapDeps([62,25,1,26,20,27,17,4,22,63])))},{id:`just`,name:`Just`,import:(()=>k(()=>import(`./just-BhhHYlS8.js`),__vite__mapDeps([64,4,1,65,3,2,17,9,10,22,34,20,25,26,27,35,36,13,14,37,38,29,39])))},{id:`kdl`,name:`KDL`,import:(()=>k(()=>import(`./kdl-HHaMlHFB.js`),[]))},{id:`kotlin`,name:`Kotlin`,aliases:[`kt`,`kts`],import:(()=>k(()=>import(`./kotlin-Bvjw1jyK.js`),[]))},{id:`kusto`,name:`Kusto`,aliases:[`kql`],import:(()=>k(()=>import(`./kusto-BUv0MjJC.js`),[]))},{id:`latex`,name:`LaTeX`,import:(()=>k(()=>import(`./latex-D5k_uhWv.js`),__vite__mapDeps([66,67,63,1])))},{id:`lean`,name:`Lean 4`,aliases:[`lean4`],import:(()=>k(()=>import(`./lean-B2IJXP9Y.js`),[]))},{id:`less`,name:`Less`,import:(()=>k(()=>import(`./less-BGJv5CZz.js`),[]))},{id:`liquid`,name:`Liquid`,import:(()=>k(()=>import(`./liquid-Q0_hzjly.js`),__vite__mapDeps([68,3,1,2,4,8])))},{id:`llvm`,name:`LLVM IR`,import:(()=>k(()=>import(`./llvm-DjdPfBRh.js`),[]))},{id:`log`,name:`Log file`,import:(()=>k(()=>import(`./log-CS10erYd.js`),[]))},{id:`logo`,name:`Logo`,import:(()=>k(()=>import(`./logo-CmXTaeCJ.js`),[]))},{id:`lua`,name:`Lua`,import:(()=>k(()=>import(`./lua-VoGSg0xb.js`).then(e=>e.n),__vite__mapDeps([38,1,20])))},{id:`luau`,name:`Luau`,import:(()=>k(()=>import(`./luau-CNKltnaQ.js`),[]))},{id:`make`,name:`Makefile`,aliases:[`makefile`],import:(()=>k(()=>import(`./make--KyFtISL.js`),[]))},{id:`markdown`,name:`Markdown`,aliases:[`md`],import:(()=>k(()=>import(`./markdown-Bk5jPFPK.js`),[]))},{id:`marko`,name:`Marko`,import:(()=>k(()=>import(`./marko-D_aeUD__.js`),__vite__mapDeps([69,3,1,70,6,14])))},{id:`matlab`,name:`MATLAB`,import:(()=>k(()=>import(`./matlab-CXouX2WE.js`),[]))},{id:`mdc`,name:`MDC`,import:(()=>k(()=>import(`./mdc-BSifqehP.js`),__vite__mapDeps([71,16,2,1,3,4,41,39])))},{id:`mdx`,name:`MDX`,import:(()=>k(()=>import(`./mdx-CT6rFF7S.js`),[]))},{id:`mermaid`,name:`Mermaid`,aliases:[`mmd`],import:(()=>k(()=>import(`./mermaid-CTmv7XD1.js`),[]))},{id:`mipsasm`,name:`MIPS Assembly`,aliases:[`mips`],import:(()=>k(()=>import(`./mipsasm-Dl8GaYxY.js`),[]))},{id:`mojo`,name:`Mojo`,import:(()=>k(()=>import(`./mojo-hMZsLDIK.js`),[]))},{id:`moonbit`,name:`MoonBit`,aliases:[`mbt`,`mbti`],import:(()=>k(()=>import(`./moonbit-BgUC1NvV.js`),[]))},{id:`move`,name:`Move`,import:(()=>k(()=>import(`./move-u3t7wi4x.js`),[]))},{id:`narrat`,name:`Narrat Language`,aliases:[`nar`],import:(()=>k(()=>import(`./narrat-4tTAKi-J.js`),[]))},{id:`nextflow`,name:`Nextflow`,aliases:[`nf`],import:(()=>k(()=>import(`./nextflow-Bbiyy34d.js`),__vite__mapDeps([72,73])))},{id:`nextflow-groovy`,name:`nextflow-groovy`,import:(()=>k(()=>import(`./nextflow-groovy-Dc_ddanL.js`),[]))},{id:`nginx`,name:`Nginx`,import:(()=>k(()=>import(`./nginx-BNb4NZk1.js`),__vite__mapDeps([74,38,1,20])))},{id:`nim`,name:`Nim`,import:(()=>k(()=>import(`./nim-BuixXxPS.js`),__vite__mapDeps([75,20,1,3,26,2,4,41,9,10])))},{id:`nix`,name:`Nix`,import:(()=>k(()=>import(`./nix-DGXJ-lch.js`),[]))},{id:`nushell`,name:`nushell`,aliases:[`nu`],import:(()=>k(()=>import(`./nushell-9zntkpRZ.js`),[]))},{id:`objective-c`,name:`Objective-C`,aliases:[`objc`],import:(()=>k(()=>import(`./objective-c-BfQime6S.js`),[]))},{id:`objective-cpp`,name:`Objective-C++`,import:(()=>k(()=>import(`./objective-cpp-BbSyPuOs.js`),[]))},{id:`ocaml`,name:`OCaml`,import:(()=>k(()=>import(`./ocaml--fvLg7Jk.js`),[]))},{id:`odin`,name:`Odin`,import:(()=>k(()=>import(`./odin-B25GiMk5.js`),[]))},{id:`openscad`,name:`OpenSCAD`,aliases:[`scad`],import:(()=>k(()=>import(`./openscad-Cc8OM7cV.js`),[]))},{id:`pascal`,name:`Pascal`,import:(()=>k(()=>import(`./pascal-DRxrTJXf.js`),[]))},{id:`perl`,name:`Perl`,import:(()=>k(()=>import(`./perl-BLMySlFJ.js`),__vite__mapDeps([65,3,1,2,4,17,9,10])))},{id:`php`,name:`PHP`,import:(()=>k(()=>import(`./php-Czf_fybR.js`),__vite__mapDeps([76,3,1,2,4,8,17,9,10])))},{id:`pkl`,name:`Pkl`,import:(()=>k(()=>import(`./pkl-C3VTVe07.js`),[]))},{id:`plsql`,name:`PL/SQL`,import:(()=>k(()=>import(`./plsql-DKCJv1ec.js`),[]))},{id:`po`,name:`Gettext PO`,aliases:[`pot`,`potx`],import:(()=>k(()=>import(`./po-DLYw31Q8.js`),[]))},{id:`polar`,name:`Polar`,import:(()=>k(()=>import(`./polar-D_X-vjiJ.js`),[]))},{id:`postcss`,name:`PostCSS`,import:(()=>k(()=>import(`./postcss-BunjpCQr.js`),[]))},{id:`powerquery`,name:`PowerQuery`,import:(()=>k(()=>import(`./powerquery-B6M5zXQ4.js`),[]))},{id:`powershell`,name:`PowerShell`,aliases:[`ps`,`ps1`],import:(()=>k(()=>import(`./powershell-DqZlBT-v.js`),[]))},{id:`prisma`,name:`Prisma`,import:(()=>k(()=>import(`./prisma-VLinVlWN.js`),[]))},{id:`prolog`,name:`Prolog`,import:(()=>k(()=>import(`./prolog-C--lwqXe.js`),[]))},{id:`proto`,name:`Protocol Buffer 3`,aliases:[`protobuf`],import:(()=>k(()=>import(`./proto-DSd2dzpT.js`),[]))},{id:`pug`,name:`Pug`,aliases:[`jade`],import:(()=>k(()=>import(`./pug-CsZglf8T.js`),__vite__mapDeps([77,3,1,2,4])))},{id:`puppet`,name:`Puppet`,import:(()=>k(()=>import(`./puppet-DDYKwRcl.js`),[]))},{id:`purescript`,name:`PureScript`,import:(()=>k(()=>import(`./purescript-C58zfXw7.js`),[]))},{id:`python`,name:`Python`,aliases:[`py`],import:(()=>k(()=>import(`./python-DkGugaUl.js`),[]))},{id:`qml`,name:`QML`,import:(()=>k(()=>import(`./qml-BPgOJK7U.js`),__vite__mapDeps([78,4,1])))},{id:`qmldir`,name:`QML Directory`,import:(()=>k(()=>import(`./qmldir-5WAoO9FS.js`),[]))},{id:`qss`,name:`Qt Style Sheets`,import:(()=>k(()=>import(`./qss-iwYQbQ5a.js`),[]))},{id:`r`,name:`R`,import:(()=>k(()=>import(`./r-D2d3McyU.js`).then(e=>e.n),__vite__mapDeps([63,1])))},{id:`racket`,name:`Racket`,import:(()=>k(()=>import(`./racket-ByduP6X2.js`),[]))},{id:`raku`,name:`Raku`,aliases:[`perl6`],import:(()=>k(()=>import(`./raku-CsvfXYUb.js`),[]))},{id:`razor`,name:`ASP.NET Razor`,import:(()=>k(()=>import(`./razor-oFpUW61Z.js`),__vite__mapDeps([79,80,2,1,3,4])))},{id:`reg`,name:`Windows Registry Script`,import:(()=>k(()=>import(`./reg-efiUL9qS.js`),[]))},{id:`regexp`,name:`RegExp`,aliases:[`regex`],import:(()=>k(()=>import(`./regexp-Bu0flJgP.js`).then(e=>e.n),__vite__mapDeps([27,1])))},{id:`rel`,name:`Rel`,import:(()=>k(()=>import(`./rel-BFvj_u7U.js`),[]))},{id:`riscv`,name:`RISC-V`,import:(()=>k(()=>import(`./riscv-CQLA6sFw.js`),[]))},{id:`ron`,name:`RON`,import:(()=>k(()=>import(`./ron-UVnZQNEl.js`),[]))},{id:`rosmsg`,name:`ROS Interface`,import:(()=>k(()=>import(`./rosmsg-Dwq6pEKS.js`),[]))},{id:`rst`,name:`reStructuredText`,import:(()=>k(()=>import(`./rst-U6Eu7ipE.js`),__vite__mapDeps([81,82,25,1,26,20,27,17,16,2,3,4,22,34,35,36,13,14,37,38,29,9,10,39])))},{id:`ruby`,name:`Ruby`,aliases:[`rb`],import:(()=>k(()=>import(`./ruby-CUQsVT6d.js`),__vite__mapDeps([34,20,1,25,26,27,17,3,35,4,36,13,14,37,2,38,29,9,10,39])))},{id:`rust`,name:`Rust`,aliases:[`rs`],import:(()=>k(()=>import(`./rust-DfhhoMHs.js`),[]))},{id:`sas`,name:`SAS`,import:(()=>k(()=>import(`./sas-CNBFrLhc.js`),__vite__mapDeps([83,17,1])))},{id:`sass`,name:`Sass`,import:(()=>k(()=>import(`./sass-DiF7DxUu.js`),[]))},{id:`scala`,name:`Scala`,import:(()=>k(()=>import(`./scala-F4M-xFqw.js`),[]))},{id:`scheme`,name:`Scheme`,import:(()=>k(()=>import(`./scheme-yKF7wU_W.js`),[]))},{id:`scss`,name:`SCSS`,import:(()=>k(()=>import(`./scss-CPnU-uuv.js`).then(e=>e.n),__vite__mapDeps([6,1,3])))},{id:`sdbl`,name:`1C (Query)`,aliases:[`1c-query`],import:(()=>k(()=>import(`./sdbl-DzilZtvS.js`),[]))},{id:`shaderlab`,name:`ShaderLab`,aliases:[`shader`],import:(()=>k(()=>import(`./shaderlab-QzRPXpa3.js`),__vite__mapDeps([84,85])))},{id:`shellscript`,name:`Shell`,aliases:[`bash`,`sh`,`shell`,`zsh`],import:(()=>k(()=>import(`./shellscript-BbTp1yjG.js`).then(e=>e.n),__vite__mapDeps([29,1])))},{id:`shellsession`,name:`Shell Session`,aliases:[`console`],import:(()=>k(()=>import(`./shellsession-BebtDBlY.js`),__vite__mapDeps([86,29,1])))},{id:`smalltalk`,name:`Smalltalk`,import:(()=>k(()=>import(`./smalltalk-Czn2qXp6.js`),[]))},{id:`solidity`,name:`Solidity`,import:(()=>k(()=>import(`./solidity-BOOD8PsF.js`),[]))},{id:`soy`,name:`Closure Templates`,aliases:[`closure-templates`],import:(()=>k(()=>import(`./soy-CdbyEXp6.js`),__vite__mapDeps([87,2,1,3,4])))},{id:`sparql`,name:`SPARQL`,import:(()=>k(()=>import(`./sparql-BQ8pLLZr.js`),__vite__mapDeps([88,89])))},{id:`splunk`,name:`Splunk Query Language`,aliases:[`spl`],import:(()=>k(()=>import(`./splunk-Dy5hSDrK.js`),[]))},{id:`sql`,name:`SQL`,import:(()=>k(()=>import(`./sql-hpBkusIy.js`).then(e=>e.n),__vite__mapDeps([17,1])))},{id:`ssh-config`,name:`SSH Config`,import:(()=>k(()=>import(`./ssh-config-DlA0k24P.js`),[]))},{id:`stata`,name:`Stata`,import:(()=>k(()=>import(`./stata-DVbvk3qH.js`),__vite__mapDeps([90,17,1])))},{id:`stylus`,name:`Stylus`,aliases:[`styl`],import:(()=>k(()=>import(`./stylus-BrO8Mu5X.js`),[]))},{id:`surrealql`,name:`SurrealQL`,aliases:[`surql`],import:(()=>k(()=>import(`./surrealql-CiJ5GSG5.js`),__vite__mapDeps([91,4,1])))},{id:`svelte`,name:`Svelte`,import:(()=>k(()=>import(`./svelte-DzNm5V2w.js`),__vite__mapDeps([92,3,1,4,12,14])))},{id:`swift`,name:`Swift`,import:(()=>k(()=>import(`./swift-aU1DoeFE.js`),[]))},{id:`system-verilog`,name:`SystemVerilog`,import:(()=>k(()=>import(`./system-verilog-CTJOgDVF.js`),[]))},{id:`systemd`,name:`Systemd Units`,import:(()=>k(()=>import(`./systemd-vW0EBnEZ.js`),[]))},{id:`talonscript`,name:`TalonScript`,aliases:[`talon`],import:(()=>k(()=>import(`./talonscript-DOWETJMR.js`),[]))},{id:`tasl`,name:`Tasl`,import:(()=>k(()=>import(`./tasl-BCK2yre5.js`),[]))},{id:`tcl`,name:`Tcl`,import:(()=>k(()=>import(`./tcl-DpJlRc9L.js`),[]))},{id:`templ`,name:`Templ`,import:(()=>k(()=>import(`./templ-CsM0tTsw.js`),__vite__mapDeps([93,3,1,94,4])))},{id:`terraform`,name:`Terraform`,aliases:[`tf`,`tfvars`],import:(()=>k(()=>import(`./terraform-BOmekhaT.js`),[]))},{id:`tex`,name:`TeX`,import:(()=>k(()=>import(`./tex-C3KbjgWU.js`),__vite__mapDeps([67,63,1])))},{id:`toml`,name:`TOML`,import:(()=>k(()=>import(`./toml-DPDNdnh9.js`),[]))},{id:`ts-tags`,name:`TypeScript with Tags`,aliases:[`lit`],import:(()=>k(()=>import(`./ts-tags-Bf-FGGvT.js`),__vite__mapDeps([95,3,1,26,20,2,4,17,14,9,10])))},{id:`tsv`,name:`TSV`,import:(()=>k(()=>import(`./tsv-BCypI0LB.js`),[]))},{id:`tsx`,name:`TSX`,import:(()=>k(()=>import(`./tsx-DFvk7AwW.js`).then(e=>e.n),__vite__mapDeps([13,1])))},{id:`turtle`,name:`Turtle`,import:(()=>k(()=>import(`./turtle-CA3RhB-1.js`),[]))},{id:`twig`,name:`Twig`,import:(()=>k(()=>import(`./twig-VJ4-Ntm0.js`),__vite__mapDeps([96,3,1,4,76,2,8,17,9,10,22,34,20,25,26,27,35,36,13,14,37,38,29,39,6])))},{id:`typescript`,name:`TypeScript`,aliases:[`ts`,`cts`,`mts`],import:(()=>k(()=>import(`./typescript-DHTLvXzV.js`).then(e=>e.n),__vite__mapDeps([14,1])))},{id:`typespec`,name:`TypeSpec`,aliases:[`tsp`],import:(()=>k(()=>import(`./typespec-B88KGewJ.js`),[]))},{id:`typst`,name:`Typst`,aliases:[`typ`],import:(()=>k(()=>import(`./typst-DR_hs4Gi.js`),[]))},{id:`v`,name:`V`,import:(()=>k(()=>import(`./v-ByGVE3cP.js`),[]))},{id:`vala`,name:`Vala`,import:(()=>k(()=>import(`./vala-DUFyzj-T.js`),[]))},{id:`vb`,name:`Visual Basic`,aliases:[`cmd`],import:(()=>k(()=>import(`./vb-DzJKgt2N.js`),[]))},{id:`verilog`,name:`Verilog`,import:(()=>k(()=>import(`./verilog-C0HRahXC.js`),[]))},{id:`vhdl`,name:`VHDL`,import:(()=>k(()=>import(`./vhdl-Dp1NtpV2.js`),[]))},{id:`viml`,name:`Vim Script`,aliases:[`vim`,`vimscript`],import:(()=>k(()=>import(`./viml-BLGuOzJC.js`),[]))},{id:`vue`,name:`Vue`,import:(()=>k(()=>import(`./vue-D3dSYZKz.js`),__vite__mapDeps([97,3,1,16,2,4,8,14])))},{id:`vue-html`,name:`Vue HTML`,import:(()=>k(()=>import(`./vue-html-n-yWadYX.js`),__vite__mapDeps([98,4,1])))},{id:`vue-vine`,name:`Vue Vine`,import:(()=>k(()=>import(`./vue-vine-B67Dz05t.js`),__vite__mapDeps([99,3,1,4,70,12,6,100])))},{id:`vyper`,name:`Vyper`,aliases:[`vy`],import:(()=>k(()=>import(`./vyper-DyY9EjYM.js`),[]))},{id:`wasm`,name:`WebAssembly`,import:(()=>k(()=>import(`./wasm-DpeUkDXq.js`),[]))},{id:`wenyan`,name:`Wenyan`,aliases:[`文言`],import:(()=>k(()=>import(`./wenyan-kGy6j2rl.js`),[]))},{id:`wgsl`,name:`WGSL`,import:(()=>k(()=>import(`./wgsl-CLosOKVB.js`),[]))},{id:`wikitext`,name:`Wikitext`,aliases:[`mediawiki`,`wiki`],import:(()=>k(()=>import(`./wikitext-B00H4D6m.js`),[]))},{id:`wit`,name:`WebAssembly Interface Types`,import:(()=>k(()=>import(`./wit-Ib9mjOBG.js`),[]))},{id:`wolfram`,name:`Wolfram`,aliases:[`wl`],import:(()=>k(()=>import(`./wolfram-ofSK-Pwc.js`),[]))},{id:`xml`,name:`XML`,import:(()=>k(()=>import(`./xml-C33zriiW.js`).then(e=>e.n),__vite__mapDeps([9,1,10])))},{id:`xsl`,name:`XSL`,import:(()=>k(()=>import(`./xsl-C2_ECGp9.js`),__vite__mapDeps([101,9,1,10])))},{id:`yaml`,name:`YAML`,aliases:[`yml`],import:(()=>k(()=>import(`./yaml-w0rMsuN4.js`).then(e=>e.n),__vite__mapDeps([39,1])))},{id:`zenscript`,name:`ZenScript`,import:(()=>k(()=>import(`./zenscript-WrGCG97x.js`),[]))},{id:`zig`,name:`Zig`,import:(()=>k(()=>import(`./zig-apmbPCW-.js`),[]))}],ll=Object.fromEntries(cl.map(e=>[e.id,e.import])),ul=Object.fromEntries(cl.flatMap(e=>e.aliases?.map(t=>[t,e.import])||[])),dl={...ll,...ul},fl=Object.fromEntries([{id:`andromeeda`,displayName:`Andromeeda`,type:`dark`,import:(()=>k(()=>import(`./andromeeda-WkhI09AS.js`),[]))},{id:`aurora-x`,displayName:`Aurora X`,type:`dark`,import:(()=>k(()=>import(`./aurora-x-C7CFqhAd.js`),[]))},{id:`ayu-dark`,displayName:`Ayu Dark`,type:`dark`,import:(()=>k(()=>import(`./ayu-dark-CRu61w6_.js`),[]))},{id:`ayu-light`,displayName:`Ayu Light`,type:`light`,import:(()=>k(()=>import(`./ayu-light-Dn6O_aYR.js`),[]))},{id:`ayu-mirage`,displayName:`Ayu Mirage`,type:`dark`,import:(()=>k(()=>import(`./ayu-mirage-CTjYAbs-.js`),[]))},{id:`catppuccin-frappe`,displayName:`Catppuccin Frappé`,type:`dark`,import:(()=>k(()=>import(`./catppuccin-frappe-DFlFW5gh.js`),[]))},{id:`catppuccin-latte`,displayName:`Catppuccin Latte`,type:`light`,import:(()=>k(()=>import(`./catppuccin-latte-CpxdcXpJ.js`),[]))},{id:`catppuccin-macchiato`,displayName:`Catppuccin Macchiato`,type:`dark`,import:(()=>k(()=>import(`./catppuccin-macchiato-DIdIQ04K.js`),[]))},{id:`catppuccin-mocha`,displayName:`Catppuccin Mocha`,type:`dark`,import:(()=>k(()=>import(`./catppuccin-mocha-Co3Xjl64.js`),[]))},{id:`dark-plus`,displayName:`Dark Plus`,type:`dark`,import:(()=>k(()=>import(`./dark-plus-GAt2ZgX8.js`),[]))},{id:`dracula`,displayName:`Dracula Theme`,type:`dark`,import:(()=>k(()=>import(`./dracula-C2uKkzgK.js`),[]))},{id:`dracula-soft`,displayName:`Dracula Theme Soft`,type:`dark`,import:(()=>k(()=>import(`./dracula-soft-D1bVjxWZ.js`),[]))},{id:`everforest-dark`,displayName:`Everforest Dark`,type:`dark`,import:(()=>k(()=>import(`./everforest-dark-D-DlICQR.js`),[]))},{id:`everforest-light`,displayName:`Everforest Light`,type:`light`,import:(()=>k(()=>import(`./everforest-light-CeVdGHYG.js`),[]))},{id:`github-dark`,displayName:`GitHub Dark`,type:`dark`,import:(()=>k(()=>import(`./github-dark-DwbbXv51.js`),[]))},{id:`github-dark-default`,displayName:`GitHub Dark Default`,type:`dark`,import:(()=>k(()=>import(`./github-dark-default-CxjRwzl6.js`),[]))},{id:`github-dark-dimmed`,displayName:`GitHub Dark Dimmed`,type:`dark`,import:(()=>k(()=>import(`./github-dark-dimmed-Cr1oaoul.js`),[]))},{id:`github-dark-high-contrast`,displayName:`GitHub Dark High Contrast`,type:`dark`,import:(()=>k(()=>import(`./github-dark-high-contrast-B4qJZLZa.js`),[]))},{id:`github-light`,displayName:`GitHub Light`,type:`light`,import:(()=>k(()=>import(`./github-light-CsVXhIlR.js`),[]))},{id:`github-light-default`,displayName:`GitHub Light Default`,type:`light`,import:(()=>k(()=>import(`./github-light-default-DB_IwZa6.js`),[]))},{id:`github-light-high-contrast`,displayName:`GitHub Light High Contrast`,type:`light`,import:(()=>k(()=>import(`./github-light-high-contrast-DLgVeSB-.js`),[]))},{id:`gruvbox-dark-hard`,displayName:`Gruvbox Dark Hard`,type:`dark`,import:(()=>k(()=>import(`./gruvbox-dark-hard-DXm60lX3.js`),[]))},{id:`gruvbox-dark-medium`,displayName:`Gruvbox Dark Medium`,type:`dark`,import:(()=>k(()=>import(`./gruvbox-dark-medium-GE2thSmD.js`),[]))},{id:`gruvbox-dark-soft`,displayName:`Gruvbox Dark Soft`,type:`dark`,import:(()=>k(()=>import(`./gruvbox-dark-soft-04Cj-4VZ.js`),[]))},{id:`gruvbox-light-hard`,displayName:`Gruvbox Light Hard`,type:`light`,import:(()=>k(()=>import(`./gruvbox-light-hard-K6wSn29D.js`),[]))},{id:`gruvbox-light-medium`,displayName:`Gruvbox Light Medium`,type:`light`,import:(()=>k(()=>import(`./gruvbox-light-medium-CVy3aSlc.js`),[]))},{id:`gruvbox-light-soft`,displayName:`Gruvbox Light Soft`,type:`light`,import:(()=>k(()=>import(`./gruvbox-light-soft-DNgJjaY0.js`),[]))},{id:`horizon`,displayName:`Horizon`,type:`dark`,import:(()=>k(()=>import(`./horizon-0-RkHfro.js`),[]))},{id:`horizon-bright`,displayName:`Horizon Bright`,type:`dark`,import:(()=>k(()=>import(`./horizon-bright-Br1oVSNq.js`),[]))},{id:`houston`,displayName:`Houston`,type:`dark`,import:(()=>k(()=>import(`./houston-KyjWKfuY.js`),[]))},{id:`kanagawa-dragon`,displayName:`Kanagawa Dragon`,type:`dark`,import:(()=>k(()=>import(`./kanagawa-dragon-7TqgsUPC.js`),[]))},{id:`kanagawa-lotus`,displayName:`Kanagawa Lotus`,type:`light`,import:(()=>k(()=>import(`./kanagawa-lotus-CqxMQulh.js`),[]))},{id:`kanagawa-wave`,displayName:`Kanagawa Wave`,type:`dark`,import:(()=>k(()=>import(`./kanagawa-wave-D8CNn6T_.js`),[]))},{id:`laserwave`,displayName:`LaserWave`,type:`dark`,import:(()=>k(()=>import(`./laserwave-CQkdhozh.js`),[]))},{id:`light-plus`,displayName:`Light Plus`,type:`light`,import:(()=>k(()=>import(`./light-plus-CNQ8_7Y0.js`),[]))},{id:`material-theme`,displayName:`Material Theme`,type:`dark`,import:(()=>k(()=>import(`./material-theme-CAtLaHa3.js`),[]))},{id:`material-theme-darker`,displayName:`Material Theme Darker`,type:`dark`,import:(()=>k(()=>import(`./material-theme-darker-k-s5Bc6K.js`),[]))},{id:`material-theme-lighter`,displayName:`Material Theme Lighter`,type:`light`,import:(()=>k(()=>import(`./material-theme-lighter-CD6a-c4d.js`),[]))},{id:`material-theme-ocean`,displayName:`Material Theme Ocean`,type:`dark`,import:(()=>k(()=>import(`./material-theme-ocean-B3mraInd.js`),[]))},{id:`material-theme-palenight`,displayName:`Material Theme Palenight`,type:`dark`,import:(()=>k(()=>import(`./material-theme-palenight-DEhAARHw.js`),[]))},{id:`min-dark`,displayName:`Min Dark`,type:`dark`,import:(()=>k(()=>import(`./min-dark-BFqTAwCr.js`),[]))},{id:`min-light`,displayName:`Min Light`,type:`light`,import:(()=>k(()=>import(`./min-light-O7UdaaxX.js`),[]))},{id:`monokai`,displayName:`Monokai`,type:`dark`,import:(()=>k(()=>import(`./monokai-C0p7Qecz.js`),[]))},{id:`night-owl`,displayName:`Night Owl`,type:`dark`,import:(()=>k(()=>import(`./night-owl-BsnCLAKc.js`),[]))},{id:`night-owl-light`,displayName:`Night Owl Light`,type:`light`,import:(()=>k(()=>import(`./night-owl-light-BODRhcTU.js`),[]))},{id:`nord`,displayName:`Nord`,type:`dark`,import:(()=>k(()=>import(`./nord-Cd-F4txO.js`),[]))},{id:`one-dark-pro`,displayName:`One Dark Pro`,type:`dark`,import:(()=>k(()=>import(`./one-dark-pro-DUS_IGRK.js`),[]))},{id:`one-light`,displayName:`One Light`,type:`light`,import:(()=>k(()=>import(`./one-light-CVUd7yD5.js`),[]))},{id:`plastic`,displayName:`Plastic`,type:`dark`,import:(()=>k(()=>import(`./plastic-CF8VZTnn.js`),[]))},{id:`poimandres`,displayName:`Poimandres`,type:`dark`,import:(()=>k(()=>import(`./poimandres-BX2TyY6j.js`),[]))},{id:`red`,displayName:`Red`,type:`dark`,import:(()=>k(()=>import(`./red-7ga_dcKu.js`),[]))},{id:`rose-pine`,displayName:`Rosé Pine`,type:`dark`,import:(()=>k(()=>import(`./rose-pine-rh6ipraJ.js`),[]))},{id:`rose-pine-dawn`,displayName:`Rosé Pine Dawn`,type:`light`,import:(()=>k(()=>import(`./rose-pine-dawn-DSuRaP6u.js`),[]))},{id:`rose-pine-moon`,displayName:`Rosé Pine Moon`,type:`dark`,import:(()=>k(()=>import(`./rose-pine-moon-DdHjCvFQ.js`),[]))},{id:`slack-dark`,displayName:`Slack Dark`,type:`dark`,import:(()=>k(()=>import(`./slack-dark-DYvUXyrP.js`),[]))},{id:`slack-ochin`,displayName:`Slack Ochin`,type:`light`,import:(()=>k(()=>import(`./slack-ochin-bqtMVDfH.js`),[]))},{id:`snazzy-light`,displayName:`Snazzy Light`,type:`light`,import:(()=>k(()=>import(`./snazzy-light-D8dzFmq5.js`),[]))},{id:`solarized-dark`,displayName:`Solarized Dark`,type:`dark`,import:(()=>k(()=>import(`./solarized-dark-BQwPDzxK.js`),[]))},{id:`solarized-light`,displayName:`Solarized Light`,type:`light`,import:(()=>k(()=>import(`./solarized-light-BLaijb3X.js`),[]))},{id:`synthwave-84`,displayName:`Synthwave '84`,type:`dark`,import:(()=>k(()=>import(`./synthwave-84-CIknw8y7.js`),[]))},{id:`tokyo-night`,displayName:`Tokyo Night`,type:`dark`,import:(()=>k(()=>import(`./tokyo-night-iIspnLcq.js`),[]))},{id:`vesper`,displayName:`Vesper`,type:`dark`,import:(()=>k(()=>import(`./vesper-D5bVUKB1.js`),[]))},{id:`vitesse-black`,displayName:`Vitesse Black`,type:`dark`,import:(()=>k(()=>import(`./vitesse-black-D082JcaE.js`),[]))},{id:`vitesse-dark`,displayName:`Vitesse Dark`,type:`dark`,import:(()=>k(()=>import(`./vitesse-dark-z-nr_5O8.js`),[]))},{id:`vitesse-light`,displayName:`Vitesse Light`,type:`light`,import:(()=>k(()=>import(`./vitesse-light-ojz42ZLy.js`),[]))}].map(e=>[e.id,e.import])),pl=class extends Error{constructor(e){super(e),this.name=`ShikiError`}};function ml(){return 2147483648}function hl(){return typeof performance<`u`?performance.now():Date.now()}var gl=(e,t)=>e+(t-e%t)%t;async function _l(e){let t,n,r={};function i(e){n=e,r.HEAPU8=new Uint8Array(e),r.HEAPU32=new Uint32Array(e)}function a(e,t,n){r.HEAPU8.copyWithin(e,t,t+n)}function o(e){try{return t.grow(e-n.byteLength+65535>>>16),i(t.buffer),1}catch{}}function s(e){let t=r.HEAPU8.length;e>>>=0;let n=ml();if(e>n)return!1;for(let r=1;r<=4;r*=2){let i=t*(1+.2/r);if(i=Math.min(i,e+100663296),o(Math.min(n,gl(Math.max(e,i),65536))))return!0}return!1}let c=typeof TextDecoder<`u`?new TextDecoder(`utf8`):void 0;function l(e,t,n=1024){let r=t+n,i=t;for(;e[i]&&!(i>=r);)++i;if(i-t>16&&e.buffer&&c)return c.decode(e.subarray(t,i));let a=``;for(;t<i;){let n=e[t++];if(!(n&128)){a+=String.fromCharCode(n);continue}let r=e[t++]&63;if((n&224)==192){a+=String.fromCharCode((n&31)<<6|r);continue}let i=e[t++]&63;if(n=(n&240)==224?(n&15)<<12|r<<6|i:(n&7)<<18|r<<12|i<<6|e[t++]&63,n<65536)a+=String.fromCharCode(n);else{let e=n-65536;a+=String.fromCharCode(55296|e>>10,56320|e&1023)}}return a}function u(e,t){return e?l(r.HEAPU8,e,t):``}let d={emscripten_get_now:hl,emscripten_memcpy_big:a,emscripten_resize_heap:s,fd_write:()=>0};async function f(){let n=await e({env:d,wasi_snapshot_preview1:d});t=n.memory,i(t.buffer),Object.assign(r,n),r.UTF8ToString=u}return await f(),r}var vl=Object.defineProperty,yl=(e,t,n)=>t in e?vl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,bl=(e,t,n)=>yl(e,typeof t==`symbol`?t:t+``,n),xl=null;function Sl(e){throw new pl(e.UTF8ToString(e.getLastOnigError()))}var Cl=class e{constructor(t){bl(this,`utf16Length`),bl(this,`utf8Length`),bl(this,`utf16Value`),bl(this,`utf8Value`),bl(this,`utf16OffsetToUtf8`),bl(this,`utf8OffsetToUtf16`);let n=t.length,r=e._utf8ByteLength(t),i=r!==n,a=i?new Uint32Array(n+1):null;i&&(a[n]=r);let o=i?new Uint32Array(r+1):null;i&&(o[r]=n);let s=new Uint8Array(r),c=0;for(let e=0;e<n;e++){let r=t.charCodeAt(e),l=r,u=!1;if(r>=55296&&r<=56319&&e+1<n){let n=t.charCodeAt(e+1);n>=56320&&n<=57343&&(l=(r-55296<<10)+65536|n-56320,u=!0)}i&&(a[e]=c,u&&(a[e+1]=c),l<=127?o[c+0]=e:l<=2047?(o[c+0]=e,o[c+1]=e):l<=65535?(o[c+0]=e,o[c+1]=e,o[c+2]=e):(o[c+0]=e,o[c+1]=e,o[c+2]=e,o[c+3]=e)),l<=127?s[c++]=l:l<=2047?(s[c++]=192|(l&1984)>>>6,s[c++]=128|(l&63)>>>0):l<=65535?(s[c++]=224|(l&61440)>>>12,s[c++]=128|(l&4032)>>>6,s[c++]=128|(l&63)>>>0):(s[c++]=240|(l&1835008)>>>18,s[c++]=128|(l&258048)>>>12,s[c++]=128|(l&4032)>>>6,s[c++]=128|(l&63)>>>0),u&&e++}this.utf16Length=n,this.utf8Length=r,this.utf16Value=t,this.utf8Value=s,this.utf16OffsetToUtf8=a,this.utf8OffsetToUtf16=o}static _utf8ByteLength(e){let t=0;for(let n=0,r=e.length;n<r;n++){let i=e.charCodeAt(n),a=i,o=!1;if(i>=55296&&i<=56319&&n+1<r){let t=e.charCodeAt(n+1);t>=56320&&t<=57343&&(a=(i-55296<<10)+65536|t-56320,o=!0)}a<=127?t+=1:a<=2047?t+=2:a<=65535?t+=3:t+=4,o&&n++}return t}createString(e){let t=e.omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}},wl=class e{constructor(t){if(bl(this,`id`,++e.LAST_ID),bl(this,`_onigBinding`),bl(this,`content`),bl(this,`utf16Length`),bl(this,`utf8Length`),bl(this,`utf16OffsetToUtf8`),bl(this,`utf8OffsetToUtf16`),bl(this,`ptr`),!xl)throw new pl(`Must invoke loadWasm first.`);this._onigBinding=xl,this.content=t;let n=new Cl(t);this.utf16Length=n.utf16Length,this.utf8Length=n.utf8Length,this.utf16OffsetToUtf8=n.utf16OffsetToUtf8,this.utf8OffsetToUtf16=n.utf8OffsetToUtf16,this.utf8Length<1e4&&!e._sharedPtrInUse?(e._sharedPtr||=xl.omalloc(1e4),e._sharedPtrInUse=!0,xl.HEAPU8.set(n.utf8Value,e._sharedPtr),this.ptr=e._sharedPtr):this.ptr=n.createString(xl)}convertUtf8OffsetToUtf16(e){return this.utf8OffsetToUtf16?e<0?0:e>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[e]:e}convertUtf16OffsetToUtf8(e){return this.utf16OffsetToUtf8?e<0?0:e>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[e]:e}dispose(){this.ptr===e._sharedPtr?e._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};bl(wl,`LAST_ID`,0),bl(wl,`_sharedPtr`,0),bl(wl,`_sharedPtrInUse`,!1);var Tl=wl,El=class{constructor(e){if(bl(this,`_onigBinding`),bl(this,`_ptr`),!xl)throw new pl(`Must invoke loadWasm first.`);let t=[],n=[];for(let r=0,i=e.length;r<i;r++){let i=new Cl(e[r]);t[r]=i.createString(xl),n[r]=i.utf8Length}let r=xl.omalloc(4*e.length);xl.HEAPU32.set(t,r/4);let i=xl.omalloc(4*e.length);xl.HEAPU32.set(n,i/4);let a=xl.createOnigScanner(r,i,e.length);for(let n=0,r=e.length;n<r;n++)xl.ofree(t[n]);xl.ofree(i),xl.ofree(r),a===0&&Sl(xl),this._onigBinding=xl,this._ptr=a}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(e,t,n){let r=0;if(typeof n==`number`&&(r=n),typeof e==`string`){e=new Tl(e);let n=this._findNextMatchSync(e,t,!1,r);return e.dispose(),n}return this._findNextMatchSync(e,t,!1,r)}_findNextMatchSync(e,t,n,r){let i=this._onigBinding,a=i.findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),r);if(a===0)return null;let o=i.HEAPU32,s=a/4,c=o[s++],l=o[s++],u=[];for(let t=0;t<l;t++){let n=e.convertUtf8OffsetToUtf16(o[s++]),r=e.convertUtf8OffsetToUtf16(o[s++]);u[t]={start:n,end:r,length:r-n}}return{index:c,captureIndices:u}}};function Dl(e){return typeof e.instantiator==`function`}function Ol(e){return typeof e.default==`function`}function kl(e){return e.data!==void 0}function Al(e){return typeof Response<`u`&&e instanceof Response}function jl(e){return typeof ArrayBuffer<`u`&&(e instanceof ArrayBuffer||ArrayBuffer.isView(e))||typeof Buffer<`u`&&Buffer.isBuffer?.(e)||typeof SharedArrayBuffer<`u`&&e instanceof SharedArrayBuffer||typeof Uint32Array<`u`&&e instanceof Uint32Array}var Ml;function Nl(e){if(Ml)return Ml;async function t(){xl=await _l(async t=>{let n=e;return n=await n,typeof n==`function`&&(n=await n(t)),typeof n==`function`&&(n=await n(t)),Dl(n)?n=await n.instantiator(t):Ol(n)?n=await n.default(t):(kl(n)&&(n=n.data),Al(n)?n=typeof WebAssembly.instantiateStreaming==`function`?await Fl(n)(t):await Il(n)(t):jl(n)||n instanceof WebAssembly.Module?n=await Pl(n)(t):`default`in n&&n.default instanceof WebAssembly.Module&&(n=await Pl(n.default)(t))),`instance`in n&&(n=n.instance),`exports`in n&&(n=n.exports),n})}return Ml=t(),Ml}function Pl(e){return t=>WebAssembly.instantiate(e,t)}function Fl(e){return t=>WebAssembly.instantiateStreaming(e,t)}function Il(e){return async t=>{let n=await e.arrayBuffer();return WebAssembly.instantiate(n,t)}}async function Ll(e){return e&&await Nl(e),{createScanner(e){return new El(e.map(e=>typeof e==`string`?e:e.source))},createString(e){return new Tl(e)}}}var Rl=al({langs:dl,themes:fl,engine:()=>Ll(k(()=>import(`./wasm-BJZAGh5c.js`),[]))}),{codeToHtml:zl,codeToHast:Bl,codeToTokens:Vl,codeToTokensBase:Hl,codeToTokensWithThemes:Ul,getSingletonHighlighter:Wl,getLastGrammarState:Gl}=sl(Rl,{guessEmbeddedLanguages:Gs});function Kl(e){if([...e].length!==1)throw Error(`Expected "${e}" to be a single code point`);return e.codePointAt(0)}function ql(e,t,n){return e.has(t)||e.set(t,n),e.get(t)}var Jl=new Set([`alnum`,`alpha`,`ascii`,`blank`,`cntrl`,`digit`,`graph`,`lower`,`print`,`punct`,`space`,`upper`,`word`,`xdigit`]),Yl=String.raw;function Xl(e,t){if(e==null)throw Error(t??`Value expected`);return e}var Zl=Yl`\[\^?`,Ql=`c.? | C(?:-.?)?|${Yl`[pP]\{(?:\^?[-\x20_]*[A-Za-z][-\x20\w]*\})?`}|${Yl`x[89A-Fa-f]\p{AHex}(?:\\x[89A-Fa-f]\p{AHex})*`}|${Yl`u(?:\p{AHex}{4})? | x\{[^\}]*\}? | x\p{AHex}{0,2}`}|${Yl`o\{[^\}]*\}?`}|${Yl`\d{1,3}`}`,$l=/[?*+][?+]?|\{(?:\d+(?:,\d*)?|,\d+)\}\??/,eu=new RegExp(Yl`
|
|
14
|
+
\f\r "&'<=>\``.split(``)]],single:[[`&'`.split(``),`"&'\``.split(``)],[`\0&'`.split(``),`\0"&'\``.split(``)]],double:[[`"&`.split(``),`"&'\``.split(``)],[`\0"&`.split(``),`\0"&'\``.split(``)]]};function gs(e,t,n,r){let i=r.schema,a=i.space===`svg`?!1:r.settings.omitOptionalTags,o=i.space===`svg`?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase()),s=[],c;i.space===`html`&&e.tagName===`svg`&&(r.schema=Tt);let l=_s(r,e.properties),u=r.all(i.space===`html`&&e.tagName===`template`?e.content:e);return r.schema=i,u&&(o=!1),(l||!a||!ls(e,t,n))&&(s.push(`<`,e.tagName,l?` `+l:``),o&&(i.space===`svg`||r.settings.closeSelfClosing)&&(c=l.charAt(l.length-1),(!r.settings.tightSelfClosing||c===`/`||c&&c!==`"`&&c!==`'`)&&s.push(` `),s.push(`/`)),s.push(`>`)),s.push(u),!o&&(!a||!qo(e,t,n))&&s.push(`</`+e.tagName+`>`),s.join(``)}function _s(e,t){let n=[],r=-1,i;if(t){for(i in t)if(t[i]!==null&&t[i]!==void 0){let r=vs(e,i,t[i]);r&&n.push(r)}}for(;++r<n.length;){let t=e.settings.tightAttributes?n[r].charAt(n[r].length-1):void 0;r!==n.length-1&&t!==`"`&&t!==`'`&&(n[r]+=` `)}return n.join(``)}function vs(e,t,n){let r=zt(e.schema,t),i=e.settings.allowParseErrors&&e.schema.space===`html`?0:1,a=+!e.settings.allowDangerousCharacters,o=e.quote,s;if(r.overloadedBoolean&&(n===r.attribute||n===``)?n=!0:(r.boolean||r.overloadedBoolean)&&(typeof n!=`string`||n===r.attribute||n===``)&&(n=!!n),n==null||n===!1||typeof n==`number`&&Number.isNaN(n))return``;let c=Fo(r.attribute,Object.assign({},e.settings.characterReferences,{subset:hs.name[i][a]}));return n===!0||(n=Array.isArray(n)?(r.commaSeparated?Ft:kt)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?c:(e.settings.preferUnquoted&&(s=Fo(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:hs.unquoted[i][a]}))),s!==n&&(e.settings.quoteSmart&&Nt(n,o)>Nt(n,e.alternative)&&(o=e.alternative),s=o+Fo(n,Object.assign({},e.settings.characterReferences,{subset:(o===`'`?hs.single:hs.double)[i][a],attribute:!0}))+o),c+(s&&`=`+s))}var ys=[`<`,`&`];function bs(e,t,n,r){return n&&n.type===`element`&&(n.tagName===`script`||n.tagName===`style`)?e.value:Fo(e.value,Object.assign({},r.settings.characterReferences,{subset:ys}))}function xs(e,t,n,r){return r.settings.allowDangerousHtml?e.value:bs(e,t,n,r)}function Ss(e,t,n,r){return r.all(e)}var Cs=jt(`type`,{invalid:ws,unknown:Ts,handlers:{comment:zo,doctype:Bo,element:gs,raw:xs,root:Ss,text:bs}});function ws(e){throw Error("Expected node, not `"+e+"`")}function Ts(e){throw Error("Cannot compile unknown node `"+e.type+"`")}var Es={},Ds={},Os=[];function ks(e,t){let n=t||Es,r=n.quote||`"`,i=r===`"`?`'`:`"`;if(r!==`"`&&r!==`'`)throw Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:As,all:js,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||Ht,characterReferences:n.characterReferences||Ds,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space===`svg`?Tt:At,quote:r,alternative:i}.one(Array.isArray(e)?{type:`root`,children:e}:e,void 0,void 0)}function As(e,t,n){return Cs(e,t,n,this)}function js(e){let t=[],n=e&&e.children||Os,r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join(``)}function Ms(e,t){let n=typeof e==`string`?{}:{...e.colorReplacements},r=typeof e==`string`?e:e.name;for(let[e,i]of Object.entries(t?.colorReplacements||{}))typeof i==`string`?n[e]=i:e===r&&Object.assign(n,i);return n}function Ns(e,t){return e&&(t?.[e?.toLowerCase()]||e)}function Ps(e){return Array.isArray(e)?e:[e]}async function Fs(e){return Promise.resolve(typeof e==`function`?e():e).then(e=>e.default||e)}function Is(e){return!e||[`plaintext`,`txt`,`text`,`plain`].includes(e)}function Ls(e){return e===`ansi`||Is(e)}function Rs(e){return e===`none`}function zs(e){return Rs(e)}function Bs(e,t){if(!t)return e;e.properties||={},e.properties.class||=[],typeof e.properties.class==`string`&&(e.properties.class=e.properties.class.split(/\s+/g)),Array.isArray(e.properties.class)||(e.properties.class=[]);let n=Array.isArray(t)?t:t.split(/\s+/g);for(let t of n)t&&!e.properties.class.includes(t)&&e.properties.class.push(t);return e}function Vs(e,t=!1){if(e.length===0)return[[``,0]];let n=e.split(/(\r?\n)/g),r=0,i=[];for(let e=0;e<n.length;e+=2){let a=t?n[e]+(n[e+1]||``):n[e];i.push([a,r]),r+=n[e].length,r+=n[e+1]?.length||0}return i}function Hs(e){let t=Vs(e,!0).map(([e])=>e);function n(n){if(n===e.length)return{line:t.length-1,character:t[t.length-1].length};let r=n,i=0;for(let e of t){if(r<e.length)break;r-=e.length,i++}return{line:i,character:r}}function r(e,n){let r=0;for(let n=0;n<e;n++)r+=t[n].length;return r+=n,r}return{lines:t,indexToPos:n,posToIndex:r}}function Us(e,t,n){let r=new Set;for(let t of e.matchAll(/:?lang=["']([^"']+)["']/g)){let e=t[1].toLowerCase().trim();e&&r.add(e)}for(let t of e.matchAll(/(?:```|~~~)([\w-]+)/g)){let e=t[1].toLowerCase().trim();e&&r.add(e)}for(let t of e.matchAll(/\\begin\{([\w-]+)\}/g)){let e=t[1].toLowerCase().trim();e&&r.add(e)}for(let t of e.matchAll(/<script\s+(?:type|lang)=["']([^"']+)["']/gi)){let e=t[1].toLowerCase().trim(),n=e.includes(`/`)?e.split(`/`).pop():e;n&&r.add(n)}if(!n)return Array.from(r);let i=n.getBundledLanguages();return Array.from(r).filter(e=>e&&i[e])}var Ws=`light-dark()`,Gs=[`color`,`background-color`];function Ks(e,t){let n=0,r=[];for(let i of t)i>n&&r.push({...e,content:e.content.slice(n,i),offset:e.offset+n}),n=i;return n<e.content.length&&r.push({...e,content:e.content.slice(n),offset:e.offset+n}),r}function qs(e,t){let n=Array.from(t instanceof Set?t:new Set(t)).sort((e,t)=>e-t);return n.length?e.map(e=>e.flatMap(e=>{let t=n.filter(t=>e.offset<t&&t<e.offset+e.content.length).map(t=>t-e.offset).sort((e,t)=>e-t);return t.length?Ks(e,t):e})):e}function Js(e,t,n,r,i=`css-vars`){let a={content:e.content,explanation:e.explanation,offset:e.offset},o=t.map(t=>Ys(e.variants[t])),s=new Set(o.flatMap(e=>Object.keys(e))),c={},l=(e,r)=>{let i=r===`color`?``:r===`background-color`?`-bg`:`-${r}`;return n+t[e]+(r===`color`?``:i)};return o.forEach((e,n)=>{for(let a of s){let s=e[a]||`inherit`;if(n===0&&r&&Gs.includes(a))if(r===Ws&&o.length>1){let e=t.findIndex(e=>e===`light`),r=t.findIndex(e=>e===`dark`);if(e===-1||r===-1)throw new ki('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');c[a]=`light-dark(${o[e][a]||`inherit`}, ${o[r][a]||`inherit`})`,i===`css-vars`&&(c[l(n,a)]=s)}else c[a]=s;else i===`css-vars`&&(c[l(n,a)]=s)}}),a.htmlStyle=c,a}function Ys(e){let t={};if(e.color&&(t.color=e.color),e.bgColor&&(t[`background-color`]=e.bgColor),e.fontStyle){e.fontStyle&Xi.Italic&&(t[`font-style`]=`italic`),e.fontStyle&Xi.Bold&&(t[`font-weight`]=`bold`);let n=[];e.fontStyle&Xi.Underline&&n.push(`underline`),e.fontStyle&Xi.Strikethrough&&n.push(`line-through`),n.length&&(t[`text-decoration`]=n.join(` `))}return t}function Xs(e){return typeof e==`string`?e:Object.entries(e).map(([e,t])=>`${e}:${t}`).join(`;`)}var Zs=new WeakMap;function Qs(e,t){Zs.set(e,t)}function $s(e){return Zs.get(e)}var ec=class e{_stacks={};lang;get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(t,n){return new e(Object.fromEntries(Ps(n).map(e=>[e,po])),t)}constructor(...e){if(e.length===2){let[t,n]=e;this.lang=n,this._stacks=t}else{let[t,n,r]=e;this.lang=n,this._stacks={[r]:t}}}getInternalStack(e=this.theme){return this._stacks[e]}getScopes(e=this.theme){return tc(this._stacks[e])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}};function tc(e){let t=[],n=new Set;function r(e){if(n.has(e))return;n.add(e);let i=e?.nameScopesList?.scopeName;i&&t.push(i),e.parent&&r(e.parent)}return r(e),t}function nc(e,t){if(!(e instanceof ec))throw new ki(`Invalid grammar state`);return e.getInternalStack(t)}function rc(){let e=new WeakMap;function t(t){if(!e.has(t.meta)){let n=function(e){if(typeof e==`number`){if(e<0||e>t.source.length)throw new ki(`Invalid decoration offset: ${e}. Code length: ${t.source.length}`);return{...r.indexToPos(e),offset:e}}else{let t=r.lines[e.line];if(t===void 0)throw new ki(`Invalid decoration position ${JSON.stringify(e)}. Lines length: ${r.lines.length}`);let n=e.character;if(n<0&&(n=t.length+n),n<0||n>t.length)throw new ki(`Invalid decoration position ${JSON.stringify(e)}. Line ${e.line} length: ${t.length}`);return{...e,character:n,offset:r.posToIndex(e.line,n)}}},r=Hs(t.source),i=(t.options.decorations||[]).map(e=>({...e,start:n(e.start),end:n(e.end)}));ic(i),e.set(t.meta,{decorations:i,converter:r,source:t.source})}return e.get(t.meta)}return{name:`shiki:decorations`,tokens(e){if(this.options.decorations?.length)return qs(e,t(this).decorations.flatMap(e=>[e.start.offset,e.end.offset]))},code(e){if(!this.options.decorations?.length)return;let n=t(this),r=Array.from(e.children).filter(e=>e.type===`element`&&e.tagName===`span`);if(r.length!==n.converter.lines.length)throw new ki(`Number of lines in code element (${r.length}) does not match the number of lines in the source (${n.converter.lines.length}). Failed to apply decorations.`);function i(e,t,n,i){let a=r[e],s=``,c=-1,l=-1;if(t===0&&(c=0),n===0&&(l=0),n===1/0&&(l=a.children.length),c===-1||l===-1)for(let e=0;e<a.children.length;e++)s+=ac(a.children[e]),c===-1&&s.length===t&&(c=e+1),l===-1&&s.length===n&&(l=e+1);if(c===-1)throw new ki(`Failed to find start index for decoration ${JSON.stringify(i.start)}`);if(l===-1)throw new ki(`Failed to find end index for decoration ${JSON.stringify(i.end)}`);let u=a.children.slice(c,l);if(!i.alwaysWrap&&u.length===a.children.length)o(a,i,`line`);else if(!i.alwaysWrap&&u.length===1&&u[0].type===`element`)o(u[0],i,`token`);else{let e={type:`element`,tagName:`span`,properties:{},children:u};o(e,i,`wrapper`),a.children.splice(c,u.length,e)}}function a(e,t){r[e]=o(r[e],t,`line`)}function o(e,t,n){let r=t.properties||{},i=t.transform||(e=>e);return e.tagName=t.tagName||`span`,e.properties={...e.properties,...r,class:e.properties.class},t.properties?.class&&Bs(e,t.properties.class),e=i(e,n)||e,e}let s=[],c=n.decorations.sort((e,t)=>t.start.offset-e.start.offset||e.end.offset-t.end.offset);for(let e of c){let{start:t,end:n}=e;if(t.line===n.line)i(t.line,t.character,n.character,e);else if(t.line<n.line){i(t.line,t.character,1/0,e);for(let r=t.line+1;r<n.line;r++)s.unshift(()=>a(r,e));i(n.line,0,n.character,e)}}s.forEach(e=>e())}}}function ic(e){for(let t=0;t<e.length;t++){let n=e[t];if(n.start.offset>n.end.offset)throw new ki(`Invalid decoration range: ${JSON.stringify(n.start)} - ${JSON.stringify(n.end)}`);for(let r=t+1;r<e.length;r++){let t=e[r],i=n.start.offset<=t.start.offset&&t.start.offset<n.end.offset,a=n.start.offset<t.end.offset&&t.end.offset<=n.end.offset,o=t.start.offset<=n.start.offset&&n.start.offset<t.end.offset,s=t.start.offset<n.end.offset&&n.end.offset<=t.end.offset;if(i||a||o||s){if(i&&a||o&&s||o&&n.start.offset===n.end.offset||a&&t.start.offset===t.end.offset)continue;throw new ki(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(t.start)} intersect.`)}}}}function ac(e){return e.type===`text`?e.value:e.type===`element`?e.children.map(ac).join(``):``}var oc=[rc()];function sc(e){let t=cc(e.transformers||[]);return[...t.pre,...t.normal,...t.post,...oc]}function cc(e){let t=[],n=[],r=[];for(let i of e)switch(i.enforce){case`pre`:t.push(i);break;case`post`:n.push(i);break;default:r.push(i)}return{pre:t,post:n,normal:r}}var lc=[`black`,`red`,`green`,`yellow`,`blue`,`magenta`,`cyan`,`white`,`brightBlack`,`brightRed`,`brightGreen`,`brightYellow`,`brightBlue`,`brightMagenta`,`brightCyan`,`brightWhite`],uc={1:`bold`,2:`dim`,3:`italic`,4:`underline`,7:`reverse`,8:`hidden`,9:`strikethrough`};function dc(e,t){let n=e.indexOf(`\x1B`,t);if(n!==-1&&e[n+1]===`[`){let t=e.indexOf(`m`,n);if(t!==-1)return{sequence:e.substring(n+2,t).split(`;`),startPosition:n,position:t+1}}return{position:e.length}}function fc(e){let t=e.shift();if(t===`2`){let t=e.splice(0,3).map(e=>Number.parseInt(e));return t.length!==3||t.some(e=>Number.isNaN(e))?void 0:{type:`rgb`,rgb:t}}else if(t===`5`){let t=e.shift();if(t)return{type:`table`,index:Number(t)}}}function pc(e){let t=[];for(;e.length>0;){let n=e.shift();if(!n)continue;let r=Number.parseInt(n);if(!Number.isNaN(r))if(r===0)t.push({type:`resetAll`});else if(r<=9)uc[r]&&t.push({type:`setDecoration`,value:uc[r]});else if(r<=29){let e=uc[r-20];e&&(t.push({type:`resetDecoration`,value:e}),e===`dim`&&t.push({type:`resetDecoration`,value:`bold`}))}else if(r<=37)t.push({type:`setForegroundColor`,value:{type:`named`,name:lc[r-30]}});else if(r===38){let n=fc(e);n&&t.push({type:`setForegroundColor`,value:n})}else if(r===39)t.push({type:`resetForegroundColor`});else if(r<=47)t.push({type:`setBackgroundColor`,value:{type:`named`,name:lc[r-40]}});else if(r===48){let n=fc(e);n&&t.push({type:`setBackgroundColor`,value:n})}else r===49?t.push({type:`resetBackgroundColor`}):r===53?t.push({type:`setDecoration`,value:`overline`}):r===55?t.push({type:`resetDecoration`,value:`overline`}):r>=90&&r<=97?t.push({type:`setForegroundColor`,value:{type:`named`,name:lc[r-90+8]}}):r>=100&&r<=107&&t.push({type:`setBackgroundColor`,value:{type:`named`,name:lc[r-100+8]}})}return t}function mc(){let e=null,t=null,n=new Set;return{parse(r){let i=[],a=0;do{let o=dc(r,a),s=o.sequence?r.substring(a,o.startPosition):r.substring(a);if(s.length>0&&i.push({value:s,foreground:e,background:t,decorations:new Set(n)}),o.sequence){let r=pc(o.sequence);for(let i of r)i.type===`resetAll`?(e=null,t=null,n.clear()):i.type===`resetForegroundColor`?e=null:i.type===`resetBackgroundColor`?t=null:i.type===`resetDecoration`&&n.delete(i.value);for(let i of r)i.type===`setForegroundColor`?e=i.value:i.type===`setBackgroundColor`?t=i.value:i.type===`setDecoration`&&n.add(i.value)}a=o.position}while(a<r.length);return i}}}var hc={black:`#000000`,red:`#bb0000`,green:`#00bb00`,yellow:`#bbbb00`,blue:`#0000bb`,magenta:`#ff00ff`,cyan:`#00bbbb`,white:`#eeeeee`,brightBlack:`#555555`,brightRed:`#ff5555`,brightGreen:`#00ff00`,brightYellow:`#ffff55`,brightBlue:`#5555ff`,brightMagenta:`#ff55ff`,brightCyan:`#55ffff`,brightWhite:`#ffffff`};function gc(e=hc){function t(t){return e[t]}function n(e){return`#${e.map(e=>Math.max(0,Math.min(e,255)).toString(16).padStart(2,`0`)).join(``)}`}let r;function i(){if(r)return r;r=[];for(let e=0;e<lc.length;e++)r.push(t(lc[e]));let e=[0,95,135,175,215,255];for(let t=0;t<6;t++)for(let i=0;i<6;i++)for(let a=0;a<6;a++)r.push(n([e[t],e[i],e[a]]));let i=8;for(let e=0;e<24;e++,i+=10)r.push(n([i,i,i]));return r}function a(e){return i()[e]}function o(e){switch(e.type){case`named`:return t(e.name);case`rgb`:return n(e.rgb);case`table`:return a(e.index)}}return{value:o}}var _c={black:`#000000`,red:`#cd3131`,green:`#0DBC79`,yellow:`#E5E510`,blue:`#2472C8`,magenta:`#BC3FBC`,cyan:`#11A8CD`,white:`#E5E5E5`,brightBlack:`#666666`,brightRed:`#F14C4C`,brightGreen:`#23D18B`,brightYellow:`#F5F543`,brightBlue:`#3B8EEA`,brightMagenta:`#D670D6`,brightCyan:`#29B8DB`,brightWhite:`#FFFFFF`};function vc(e,t,n){let r=Ms(e,n),i=Vs(t),a=gc(Object.fromEntries(lc.map(t=>{let n=`terminal.ansi${t[0].toUpperCase()}${t.substring(1)}`;return[t,e.colors?.[n]||_c[t]]}))),o=mc();return i.map(t=>o.parse(t[0]).map(n=>{let i,o;n.decorations.has(`reverse`)?(i=n.background?a.value(n.background):e.bg,o=n.foreground?a.value(n.foreground):e.fg):(i=n.foreground?a.value(n.foreground):e.fg,o=n.background?a.value(n.background):void 0),i=Ns(i,r),o=Ns(o,r),n.decorations.has(`dim`)&&(i=yc(i));let s=Xi.None;return n.decorations.has(`bold`)&&(s|=Xi.Bold),n.decorations.has(`italic`)&&(s|=Xi.Italic),n.decorations.has(`underline`)&&(s|=Xi.Underline),n.decorations.has(`strikethrough`)&&(s|=Xi.Strikethrough),{content:n.value,offset:t[1],color:i,bgColor:o,fontStyle:s}}))}function yc(e){let t=e.match(/#([0-9a-f]{3,8})/i);if(t){let e=t[1];if(e.length===8){let t=Math.round(Number.parseInt(e.slice(6,8),16)/2).toString(16).padStart(2,`0`);return`#${e.slice(0,6)}${t}`}else if(e.length===6)return`#${e}80`;else if(e.length===4){let t=e[0],n=e[1],r=e[2],i=e[3];return`#${t}${t}${n}${n}${r}${r}${Math.round(Number.parseInt(`${i}${i}`,16)/2).toString(16).padStart(2,`0`)}`}else if(e.length===3){let t=e[0],n=e[1],r=e[2];return`#${t}${t}${n}${n}${r}${r}80`}}let n=e.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return n?`var(${n[1]}-dim)`:e}function bc(e,t,n={}){let{theme:r=e.getLoadedThemes()[0]}=n,i=e.resolveLangAlias(n.lang||`text`);if(Is(i)||Rs(r))return Vs(t).map(e=>[{content:e[0],offset:e[1]}]);let{theme:a,colorMap:o}=e.setTheme(r);if(i===`ansi`)return vc(a,t,n);let s=e.getLanguage(n.lang||`text`);if(n.grammarState){if(n.grammarState.lang!==s.name)throw new ki(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${s.name}"`);if(!n.grammarState.themes.includes(a.name))throw new ki(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${a.name}"`)}return Sc(t,s,a,o,n)}function xc(...e){if(e.length===2)return $s(e[1]);let[t,n,r={}]=e,{lang:i=`text`,theme:a=t.getLoadedThemes()[0]}=r;if(Is(i)||Rs(a))throw new ki(`Plain language does not have grammar state`);if(i===`ansi`)throw new ki(`ANSI language does not have grammar state`);let{theme:o,colorMap:s}=t.setTheme(a),c=t.getLanguage(i);return new ec(Cc(n,c,o,s,r).stateStack,c.name,o.name)}function Sc(e,t,n,r,i){let a=Cc(e,t,n,r,i),o=new ec(a.stateStack,t.name,n.name);return Qs(a.tokens,o),a.tokens}function Cc(e,t,n,r,i){let a=Ms(n,i),{tokenizeMaxLineLength:o=0,tokenizeTimeLimit:s=500}=i,c=Vs(e),l=i.grammarState?nc(i.grammarState,n.name)??po:i.grammarContextCode==null?po:Cc(i.grammarContextCode,t,n,r,{...i,grammarState:void 0,grammarContextCode:void 0}).stateStack,u=[],d=[];for(let e=0,f=c.length;e<f;e++){let[f,p]=c[e];if(f===``){u=[],d.push([]);continue}if(o>0&&f.length>=o){u=[],d.push([{content:f,offset:p,color:``,fontStyle:0}]);continue}let m,h,g;i.includeExplanation&&(m=t.tokenizeLine(f,l,s),h=m.tokens,g=0);let _=t.tokenizeLine2(f,l,s),v=_.tokens.length/2;for(let e=0;e<v;e++){let t=_.tokens[2*e],o=e+1<v?_.tokens[2*e+2]:f.length;if(t===o)continue;let s=_.tokens[2*e+1],c=Ns(r[na.getForeground(s)],a),l=na.getFontStyle(s),d={content:f.substring(t,o),offset:p+t,color:c,fontStyle:l};if(i.includeExplanation){let e=[];if(i.includeExplanation!==`scopeName`)for(let t of n.settings){let n;switch(typeof t.scope){case`string`:n=t.scope.split(/,/).map(e=>e.trim());break;case`object`:n=t.scope;break;default:continue}e.push({settings:t,selectors:n.map(e=>e.split(/ /))})}d.explanation=[];let r=0;for(;t+r<o;){let t=h[g],n=f.substring(t.startIndex,t.endIndex);r+=n.length,d.explanation.push({content:n,scopes:i.includeExplanation===`scopeName`?wc(t.scopes):Tc(e,t.scopes)}),g+=1}}u.push(d)}d.push(u),u=[],l=_.ruleStack}return{tokens:d,stateStack:l}}function wc(e){return e.map(e=>({scopeName:e}))}function Tc(e,t){let n=[];for(let r=0,i=t.length;r<i;r++){let i=t[r];n[r]={scopeName:i,themeMatches:Oc(e,i,t.slice(0,r))}}return n}function Ec(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]===`.`}function Dc(e,t,n){if(!Ec(e[e.length-1],t))return!1;let r=e.length-2,i=n.length-1;for(;r>=0&&i>=0;)Ec(e[r],n[i])&&--r,--i;return r===-1}function Oc(e,t,n){let r=[];for(let{selectors:i,settings:a}of e)for(let e of i)if(Dc(e,t,n)){r.push(a);break}return r}function kc(e,t,n){let r=Object.entries(n.themes).filter(e=>e[1]).map(e=>({color:e[0],theme:e[1]})),i=r.map(r=>{let i=bc(e,t,{...n,theme:r.theme});return{tokens:i,state:$s(i),theme:typeof r.theme==`string`?r.theme:r.theme.name}}),a=Ac(...i.map(e=>e.tokens)),o=a[0].map((e,t)=>e.map((e,i)=>{let o={content:e.content,variants:{},offset:e.offset};return`includeExplanation`in n&&n.includeExplanation&&(o.explanation=e.explanation),a.forEach((e,n)=>{let{content:a,explanation:s,offset:c,...l}=e[t][i];o.variants[r[n].color]=l}),o})),s=i[0].state?new ec(Object.fromEntries(i.map(e=>[e.theme,e.state?.getInternalStack(e.theme)])),i[0].state.lang):void 0;return s&&Qs(o,s),o}function Ac(...e){let t=e.map(()=>[]),n=e.length;for(let r=0;r<e[0].length;r++){let i=e.map(e=>e[r]),a=t.map(()=>[]);t.forEach((e,t)=>e.push(a[t]));let o=i.map(()=>0),s=i.map(e=>e[0]);for(;s.every(e=>e);){let e=Math.min(...s.map(e=>e.content.length));for(let t=0;t<n;t++){let n=s[t];n.content.length===e?(a[t].push(n),o[t]+=1,s[t]=i[t][o[t]]):(a[t].push({...n,content:n.content.slice(0,e)}),s[t]={...n,content:n.content.slice(e),offset:n.offset+e})}}}return t}function jc(e,t,n){let r,i,a,o,s,c;if(`themes`in n){let{defaultColor:l=`light`,cssVariablePrefix:u=`--shiki-`,colorsRendering:d=`css-vars`}=n,f=Object.entries(n.themes).filter(e=>e[1]).map(e=>({color:e[0],theme:e[1]})).sort((e,t)=>e.color===l?-1:+(t.color===l));if(f.length===0)throw new ki("`themes` option must not be empty");let p=kc(e,t,n);if(c=$s(p),l&&Ws!==l&&!f.find(e=>e.color===l))throw new ki(`\`themes\` option must contain the defaultColor key \`${l}\``);let m=f.map(t=>e.getTheme(t.theme)),h=f.map(e=>e.color);a=p.map(e=>e.map(e=>Js(e,h,u,l,d))),c&&Qs(a,c);let g=f.map(e=>Ms(e.theme,n));i=Mc(f,m,g,u,l,`fg`,d),r=Mc(f,m,g,u,l,`bg`,d),o=`shiki-themes ${m.map(e=>e.name).join(` `)}`,s=l?void 0:[i,r].join(`;`)}else if(`theme`in n){let s=Ms(n.theme,n);a=bc(e,t,n);let l=e.getTheme(n.theme);r=Ns(l.bg,s),i=Ns(l.fg,s),o=l.name,c=$s(a)}else throw new ki("Invalid options, either `theme` or `themes` must be provided");return{tokens:a,fg:i,bg:r,themeName:o,rootStyle:s,grammarState:c}}function Mc(e,t,n,r,i,a,o){return e.map((s,c)=>{let l=Ns(t[c][a],n[c])||`inherit`,u=`${r+s.color}${a===`bg`?`-bg`:``}:${l}`;if(c===0&&i){if(i===Ws&&e.length>1){let r=e.findIndex(e=>e.color===`light`),i=e.findIndex(e=>e.color===`dark`);if(r===-1||i===-1)throw new ki('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');return`light-dark(${Ns(t[r][a],n[r])||`inherit`}, ${Ns(t[i][a],n[i])||`inherit`});${u}`}return l}return o===`css-vars`?u:null}).filter(e=>!!e).join(`;`)}function Nc(e,t,n,r={meta:{},options:n,codeToHast:(t,n)=>Nc(e,t,n),codeToTokens:(t,n)=>jc(e,t,n)}){let i=t;for(let e of sc(n))i=e.preprocess?.call(r,i,n)||i;let{tokens:a,fg:o,bg:s,themeName:c,rootStyle:l,grammarState:u}=jc(e,i,n),{mergeWhitespaces:d=!0,mergeSameStyleTokens:f=!1}=n;d===!0?a=Fc(a):d===`never`&&(a=Ic(a)),f&&(a=Lc(a));let p={...r,get source(){return i}};for(let e of sc(n))a=e.tokens?.call(p,a)||a;return Pc(a,{...n,fg:o,bg:s,themeName:c,rootStyle:n.rootStyle===!1?!1:n.rootStyle??l},p,u)}function Pc(e,t,n,r=$s(e)){let i=sc(t),a=[],o={type:`root`,children:[]},{structure:s=`classic`,tabindex:c=`0`}=t,l={class:`shiki ${t.themeName||``}`};t.rootStyle!==!1&&(t.rootStyle==null?l.style=`background-color:${t.bg};color:${t.fg}`:l.style=t.rootStyle),c!==!1&&c!=null&&(l.tabindex=c.toString());for(let[e,n]of Object.entries(t.meta||{}))e.startsWith(`_`)||(l[e]=n);let u={type:`element`,tagName:`pre`,properties:l,children:[],data:t.data},d={type:`element`,tagName:`code`,properties:{},children:a},f=[],p={...n,structure:s,addClassToHast:Bs,get source(){return n.source},get tokens(){return e},get options(){return t},get root(){return o},get pre(){return u},get code(){return d},get lines(){return f}};if(e.forEach((e,t)=>{t&&(s===`inline`?o.children.push({type:`element`,tagName:`br`,properties:{},children:[]}):s===`classic`&&a.push({type:`text`,value:`
|
|
15
|
+
`}));let n={type:`element`,tagName:`span`,properties:{class:`line`},children:[]},r=0;for(let a of e){let e={type:`element`,tagName:`span`,properties:{...a.htmlAttrs},children:[{type:`text`,value:a.content}]},c=Xs(a.htmlStyle||Ys(a));c&&(e.properties.style=c);for(let o of i)e=o?.span?.call(p,e,t+1,r,n,a)||e;s===`inline`?o.children.push(e):s===`classic`&&n.children.push(e),r+=a.content.length}if(s===`classic`){for(let e of i)n=e?.line?.call(p,n,t+1)||n;f.push(n),a.push(n)}else s===`inline`&&f.push(n)}),s===`classic`){for(let e of i)d=e?.code?.call(p,d)||d;u.children.push(d);for(let e of i)u=e?.pre?.call(p,u)||u;o.children.push(u)}else if(s===`inline`){let e=[],t={type:`element`,tagName:`span`,properties:{class:`line`},children:[]};for(let n of o.children)n.type===`element`&&n.tagName===`br`?(e.push(t),t={type:`element`,tagName:`span`,properties:{class:`line`},children:[]}):(n.type===`element`||n.type===`text`)&&t.children.push(n);e.push(t);let n={type:`element`,tagName:`code`,properties:{},children:e};for(let e of i)n=e?.code?.call(p,n)||n;o.children=[];for(let e=0;e<n.children.length;e++){e>0&&o.children.push({type:`element`,tagName:`br`,properties:{},children:[]});let t=n.children[e];t.type===`element`&&o.children.push(...t.children)}}let m=o;for(let e of i)m=e?.root?.call(p,m)||m;return r&&Qs(m,r),m}function Fc(e){return e.map(e=>{let t=[],n=``,r;return e.forEach((i,a)=>{let o=!(i.fontStyle&&(i.fontStyle&Xi.Underline||i.fontStyle&Xi.Strikethrough));o&&i.content.match(/^\s+$/)&&e[a+1]?(r===void 0&&(r=i.offset),n+=i.content):n?(o?t.push({...i,offset:r,content:n+i.content}):t.push({content:n,offset:r},i),r=void 0,n=``):t.push(i)}),t})}function Ic(e){return e.map(e=>e.flatMap(e=>{if(e.content.match(/^\s+$/))return e;let t=e.content.match(/^(\s*)(.*?)(\s*)$/);if(!t)return e;let[,n,r,i]=t;if(!n&&!i)return e;let a=[{...e,offset:e.offset+n.length,content:r}];return n&&a.unshift({content:n,offset:e.offset}),i&&a.push({content:i,offset:e.offset+n.length+r.length}),a}))}function Lc(e){return e.map(e=>{let t=[];for(let n of e){if(t.length===0){t.push({...n});continue}let e=t[t.length-1],r=Xs(e.htmlStyle||Ys(e)),i=Xs(n.htmlStyle||Ys(n)),a=e.fontStyle&&(e.fontStyle&Xi.Underline||e.fontStyle&Xi.Strikethrough),o=n.fontStyle&&(n.fontStyle&Xi.Underline||n.fontStyle&Xi.Strikethrough);!a&&!o&&r===i?e.content+=n.content:t.push({...n})}return t})}var Rc=ks;function zc(e,t,n){let r={meta:{},options:n,codeToHast:(t,n)=>Nc(e,t,n),codeToTokens:(t,n)=>jc(e,t,n)},i=Rc(Nc(e,t,n,r));for(let e of sc(n))i=e.postprocess?.call(r,i,n)||i;return i}var Bc={light:`#333333`,dark:`#bbbbbb`},Vc={light:`#fffffe`,dark:`#1e1e1e`},Hc=`__shiki_resolved`;function Uc(e){if(e?.[Hc])return e;let t={...e};t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||=`dark`,t.colorReplacements={...t.colorReplacements},t.settings||=[];let{bg:n,fg:r}=t;if(!n||!r){let e=t.settings?t.settings.find(e=>!e.name&&!e.scope):void 0;e?.settings?.foreground&&(r=e.settings.foreground),e?.settings?.background&&(n=e.settings.background),!r&&t?.colors?.[`editor.foreground`]&&(r=t.colors[`editor.foreground`]),!n&&t?.colors?.[`editor.background`]&&(n=t.colors[`editor.background`]),r||=t.type===`light`?Bc.light:Bc.dark,n||=t.type===`light`?Vc.light:Vc.dark,t.fg=r,t.bg=n}t.settings[0]&&t.settings[0].settings&&!t.settings[0].scope||t.settings.unshift({settings:{foreground:t.fg,background:t.bg}});let i=0,a=new Map;function o(e){if(a.has(e))return a.get(e);i+=1;let n=`#${i.toString(16).padStart(8,`0`).toLowerCase()}`;return t.colorReplacements?.[`#${n}`]?o(e):(a.set(e,n),n)}t.settings=t.settings.map(e=>{let n=e.settings?.foreground&&!e.settings.foreground.startsWith(`#`),r=e.settings?.background&&!e.settings.background.startsWith(`#`);if(!n&&!r)return e;let i={...e,settings:{...e.settings}};if(n){let n=o(e.settings.foreground);t.colorReplacements[n]=e.settings.foreground,i.settings.foreground=n}if(r){let n=o(e.settings.background);t.colorReplacements[n]=e.settings.background,i.settings.background=n}return i});for(let e of Object.keys(t.colors||{}))if((e===`editor.foreground`||e===`editor.background`||e.startsWith(`terminal.ansi`))&&!t.colors[e]?.startsWith(`#`)){let n=o(t.colors[e]);t.colorReplacements[n]=t.colors[e],t.colors[e]=n}return Object.defineProperty(t,Hc,{enumerable:!1,writable:!1,value:!0}),t}async function Wc(e){return Array.from(new Set((await Promise.all(e.filter(e=>!Ls(e)).map(async e=>await Fs(e).then(e=>Array.isArray(e)?e:[e])))).flat()))}async function Gc(e){return(await Promise.all(e.map(async e=>zs(e)?null:Uc(await Fs(e))))).filter(e=>!!e)}var Kc=3,qc=!1;function Jc(e,t=3){if(Kc&&!(typeof Kc==`number`&&t>Kc)){if(qc)throw Error(`[SHIKI DEPRECATE]: ${e}`);console.trace(`[SHIKI DEPRECATE]: ${e}`)}}var Yc=class extends Error{constructor(e){super(e),this.name=`ShikiError`}};function Xc(e,t){if(!t)return e;if(t[e]){let n=new Set([e]);for(;t[e];){if(e=t[e],n.has(e))throw new Yc(`Circular alias \`${Array.from(n).join(` -> `)} -> ${e}\``);n.add(e)}}return e}var Zc=class extends fo{constructor(e,t,n,r={}){super(e),this._resolver=e,this._themes=t,this._langs=n,this._alias=r,this._themes.map(e=>this.loadTheme(e)),this.loadLanguages(this._langs)}_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;getTheme(e){return typeof e==`string`?this._resolvedThemes.get(e):this.loadTheme(e)}loadTheme(e){let t=Uc(e);return t.name&&(this._resolvedThemes.set(t.name,t),this._loadedThemesCache=null),t}getLoadedThemes(){return this._loadedThemesCache||=[...this._resolvedThemes.keys()],this._loadedThemesCache}setTheme(e){let t=this._textmateThemeCache.get(e);t||(t=Ui.createFromRawTheme(e),this._textmateThemeCache.set(e,t)),this._syncRegistry.setTheme(t)}getGrammar(e){return e=Xc(e,this._alias),this._resolvedGrammars.get(e)}loadLanguage(e){if(this.getGrammar(e.name))return;let t=new Set([...this._langMap.values()].filter(t=>t.embeddedLangsLazy?.includes(e.name)));this._resolver.addLanguage(e);let n={balancedBracketSelectors:e.balancedBracketSelectors||[`*`],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(e.scopeName,e);let r=this.loadGrammarWithConfiguration(e.scopeName,1,n);if(r.name=e.name,this._resolvedGrammars.set(e.name,r),e.aliases&&e.aliases.forEach(t=>{this._alias[t]=e.name}),this._loadedLanguagesCache=null,t.size)for(let e of t)this._resolvedGrammars.delete(e.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(e.scopeName),this._syncRegistry?._grammars?.delete(e.scopeName),this.loadLanguage(this._langMap.get(e.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(e){for(let t of e)this.resolveEmbeddedLanguages(t);let t=Array.from(this._langGraph.entries()),n=t.filter(([e,t])=>!t);if(n.length){let e=t.filter(([e,t])=>t?(t.embeddedLanguages||t.embeddedLangs)?.some(e=>n.map(([e])=>e).includes(e)):!1).filter(e=>!n.includes(e));throw new Yc(`Missing languages ${n.map(([e])=>`\`${e}\``).join(`, `)}, required by ${e.map(([e])=>`\`${e}\``).join(`, `)}`)}for(let[e,n]of t)this._resolver.addLanguage(n);for(let[e,n]of t)this.loadLanguage(n)}getLoadedLanguages(){return this._loadedLanguagesCache||=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])],this._loadedLanguagesCache}resolveEmbeddedLanguages(e){this._langMap.set(e.name,e),this._langGraph.set(e.name,e);let t=e.embeddedLanguages??e.embeddedLangs;if(t)for(let e of t)this._langGraph.set(e,this._langMap.get(e))}},Qc=class{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLib;constructor(e,t){this._onigLib={createOnigScanner:t=>e.createScanner(t),createOnigString:t=>e.createString(t)},t.forEach(e=>this.addLanguage(e))}get onigLib(){return this._onigLib}getLangRegistration(e){return this._langs.get(e)}loadGrammar(e){return this._scopeToLang.get(e)}addLanguage(e){this._langs.set(e.name,e),e.aliases&&e.aliases.forEach(t=>{this._langs.set(t,e)}),this._scopeToLang.set(e.scopeName,e),e.injectTo&&e.injectTo.forEach(t=>{this._injections.get(t)||this._injections.set(t,[]),this._injections.get(t).push(e.scopeName)})}getInjections(e){let t=e.split(`.`),n=[];for(let e=1;e<=t.length;e++){let r=t.slice(0,e).join(`.`);n=[...n,...this._injections.get(r)||[]]}return n}},$c=0;function el(e){$c+=1,e.warnings!==!1&&$c>=10&&$c%10==0&&console.warn(`[Shiki] ${$c} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let t=!1;if(!e.engine)throw new Yc("`engine` option is required for synchronous mode");let n=(e.langs||[]).flat(1),r=(e.themes||[]).flat(1).map(Uc),i=new Zc(new Qc(e.engine,n),r,n,e.langAlias),a;function o(t){return Xc(t,e.langAlias)}function s(e){g();let t=i.getGrammar(typeof e==`string`?e:e.name);if(!t)throw new Yc(`Language \`${e}\` not found, you may need to load it first`);return t}function c(e){if(e===`none`)return{bg:``,fg:``,name:`none`,settings:[],type:`dark`};g();let t=i.getTheme(e);if(!t)throw new Yc(`Theme \`${e}\` not found, you may need to load it first`);return t}function l(e){g();let t=c(e);return a!==e&&(i.setTheme(t),a=e),{theme:t,colorMap:i.getColorMap()}}function u(){return g(),i.getLoadedThemes()}function d(){return g(),i.getLoadedLanguages()}function f(...e){g(),i.loadLanguages(e.flat(1))}async function p(...e){return f(await Wc(e))}function m(...e){g();for(let t of e.flat(1))i.loadTheme(t)}async function h(...e){return g(),m(await Gc(e))}function g(){if(t)throw new Yc(`Shiki instance has been disposed`)}function _(){t||(t=!0,i.dispose(),--$c)}return{setTheme:l,getTheme:c,getLanguage:s,getLoadedThemes:u,getLoadedLanguages:d,resolveLangAlias:o,loadLanguage:p,loadLanguageSync:f,loadTheme:h,loadThemeSync:m,dispose:_,[Symbol.dispose]:_}}async function tl(e){e.engine||Jc("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");let[t,n,r]=await Promise.all([Gc(e.themes||[]),Wc(e.langs||[]),e.engine]);return el({...e,themes:t,langs:n,engine:r})}async function nl(e){let t=await tl(e);return{getLastGrammarState:(...e)=>xc(t,...e),codeToTokensBase:(e,n)=>bc(t,e,n),codeToTokensWithThemes:(e,n)=>kc(t,e,n),codeToTokens:(e,n)=>jc(t,e,n),codeToHast:(e,n)=>Nc(t,e,n),codeToHtml:(e,n)=>zc(t,e,n),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}function rl(e){let t=e.langs,n=e.themes,r=e.engine;async function i(e){function i(n){if(typeof n==`string`){if(n=e.langAlias?.[n]||n,Ls(n))return[];let r=t[n];if(!r)throw new ki(`Language \`${n}\` is not included in this bundle. You may want to load it from external source.`);return r}return n}function a(e){if(zs(e))return`none`;if(typeof e==`string`){let t=n[e];if(!t)throw new ki(`Theme \`${e}\` is not included in this bundle. You may want to load it from external source.`);return t}return e}let o=(e.themes??[]).map(e=>a(e)),s=(e.langs??[]).map(e=>i(e)),c=await nl({engine:e.engine??r(),...e,themes:o,langs:s});return{...c,loadLanguage(...e){return c.loadLanguage(...e.map(i))},loadTheme(...e){return c.loadTheme(...e.map(a))},getBundledLanguages(){return t},getBundledThemes(){return n}}}return i}function il(e){let t;async function n(n={}){if(t){let e=await t;return await Promise.all([e.loadTheme(...n.themes||[]),e.loadLanguage(...n.langs||[])]),e}else{t=e({...n,themes:[],langs:[]});let r=await t;return await Promise.all([r.loadTheme(...n.themes||[]),r.loadLanguage(...n.langs||[])]),r}}return n}function al(e,t){let n=il(e);async function r(e,r){let i=await n({langs:[r.lang],themes:`theme`in r?[r.theme]:Object.values(r.themes)}),a=await t?.guessEmbeddedLanguages?.(e,r.lang,i);return a&&await i.loadLanguage(...a),i}return{getSingletonHighlighter(e){return n(e)},async codeToHtml(e,t){return(await r(e,t)).codeToHtml(e,t)},async codeToHast(e,t){return(await r(e,t)).codeToHast(e,t)},async codeToTokens(e,t){return(await r(e,t)).codeToTokens(e,t)},async codeToTokensBase(e,t){return(await r(e,t)).codeToTokensBase(e,t)},async codeToTokensWithThemes(e,t){return(await r(e,t)).codeToTokensWithThemes(e,t)},async getLastGrammarState(e,t){return(await n({langs:[t.lang],themes:[t.theme]})).getLastGrammarState(e,t)}}}var ol=[{id:`abap`,name:`ABAP`,import:(()=>k(()=>import(`./abap-BF8NL95m.js`),[]))},{id:`actionscript-3`,name:`ActionScript`,import:(()=>k(()=>import(`./actionscript-3-8HxPlehu.js`),[]))},{id:`ada`,name:`Ada`,import:(()=>k(()=>import(`./ada-Bw5CILjN.js`),[]))},{id:`angular-html`,name:`Angular HTML`,import:(()=>k(()=>import(`./angular-html-BKhkKBsm.js`).then(e=>e.n),__vite__mapDeps([0,1,2,3,4])))},{id:`angular-ts`,name:`Angular TypeScript`,import:(()=>k(()=>import(`./angular-ts-CYPbMJCA.js`),__vite__mapDeps([5,0,1,2,3,4,6])))},{id:`apache`,name:`Apache Conf`,import:(()=>k(()=>import(`./apache-_o4xIZnD.js`),[]))},{id:`apex`,name:`Apex`,import:(()=>k(()=>import(`./apex-CGTLDQj6.js`),[]))},{id:`apl`,name:`APL`,import:(()=>k(()=>import(`./apl-D7bENxmy.js`),__vite__mapDeps([7,3,1,2,4,8,9,10])))},{id:`applescript`,name:`AppleScript`,import:(()=>k(()=>import(`./applescript-BeHGDHfZ.js`),[]))},{id:`ara`,name:`Ara`,import:(()=>k(()=>import(`./ara-DO_5Wseq.js`),[]))},{id:`asciidoc`,name:`AsciiDoc`,aliases:[`adoc`],import:(()=>k(()=>import(`./asciidoc-CibGaoXl.js`),[]))},{id:`asm`,name:`Assembly`,import:(()=>k(()=>import(`./asm-MXdQGneo.js`),[]))},{id:`astro`,name:`Astro`,import:(()=>k(()=>import(`./astro-B1l9MDUT.js`),__vite__mapDeps([11,3,1,4,8,12,13,14])))},{id:`awk`,name:`AWK`,import:(()=>k(()=>import(`./awk-DnQEBQqr.js`),[]))},{id:`ballerina`,name:`Ballerina`,import:(()=>k(()=>import(`./ballerina-CFI0x2Aa.js`),[]))},{id:`bat`,name:`Batch File`,aliases:[`batch`],import:(()=>k(()=>import(`./bat-DC-yen0F.js`),[]))},{id:`beancount`,name:`Beancount`,import:(()=>k(()=>import(`./beancount-D_qoziCN.js`),[]))},{id:`berry`,name:`Berry`,aliases:[`be`],import:(()=>k(()=>import(`./berry-BKmXRlIk.js`),[]))},{id:`bibtex`,name:`BibTeX`,import:(()=>k(()=>import(`./bibtex-DPT_ISlA.js`),[]))},{id:`bicep`,name:`Bicep`,import:(()=>k(()=>import(`./bicep-BSNFxtkx.js`),[]))},{id:`bird2`,name:`BIRD2 Configuration`,aliases:[`bird`],import:(()=>k(()=>import(`./bird2-C2hNVINV.js`),[]))},{id:`blade`,name:`Blade`,import:(()=>k(()=>import(`./blade-BlkqRXu6.js`),__vite__mapDeps([15,3,1,16,2,4,8,17,9,10])))},{id:`bsl`,name:`1C (Enterprise)`,aliases:[`1c`],import:(()=>k(()=>import(`./bsl-DJOyloKD.js`),__vite__mapDeps([18,19])))},{id:`c`,name:`C`,import:(()=>k(()=>import(`./c-PpPxyn8g.js`).then(e=>e.n),__vite__mapDeps([20,1])))},{id:`c3`,name:`C3`,import:(()=>k(()=>import(`./c3-CnJL0r0V.js`),[]))},{id:`cadence`,name:`Cadence`,aliases:[`cdc`],import:(()=>k(()=>import(`./cadence-Cfz1Ugii.js`),[]))},{id:`cairo`,name:`Cairo`,import:(()=>k(()=>import(`./cairo-CDc8os0h.js`),__vite__mapDeps([21,22])))},{id:`clarity`,name:`Clarity`,import:(()=>k(()=>import(`./clarity-CCl-fyB_.js`),[]))},{id:`clojure`,name:`Clojure`,aliases:[`clj`],import:(()=>k(()=>import(`./clojure-D5q7Jl6u.js`),[]))},{id:`cmake`,name:`CMake`,import:(()=>k(()=>import(`./cmake-CbIxKMg_.js`),[]))},{id:`cobol`,name:`COBOL`,import:(()=>k(()=>import(`./cobol-BoXxFQjh.js`),__vite__mapDeps([23,2,1,3,4,10])))},{id:`codeowners`,name:`CODEOWNERS`,import:(()=>k(()=>import(`./codeowners-BhqpE35O.js`),[]))},{id:`codeql`,name:`CodeQL`,aliases:[`ql`],import:(()=>k(()=>import(`./codeql-Bq651Y_e.js`),[]))},{id:`coffee`,name:`CoffeeScript`,aliases:[`coffeescript`],import:(()=>k(()=>import(`./coffee-Dl-rf7k6.js`),__vite__mapDeps([24,4,1])))},{id:`common-lisp`,name:`Common Lisp`,aliases:[`lisp`],import:(()=>k(()=>import(`./common-lisp-8vnVPjBz.js`),[]))},{id:`coq`,name:`Coq`,import:(()=>k(()=>import(`./coq-Bol-RJ7y.js`),[]))},{id:`cpp`,name:`C++`,aliases:[`c++`],import:(()=>k(()=>import(`./cpp-CVIk4zoB.js`).then(e=>e.n),__vite__mapDeps([25,1,26,20,27,17])))},{id:`crystal`,name:`Crystal`,import:(()=>k(()=>import(`./crystal-CvUuUt6_.js`),__vite__mapDeps([28,20,1,3,2,4,29,17])))},{id:`csharp`,name:`C#`,aliases:[`c#`,`cs`],import:(()=>k(()=>import(`./csharp-Ct8U2NOr.js`),[]))},{id:`css`,name:`CSS`,import:(()=>k(()=>import(`./css-D7o5g6xi.js`).then(e=>e.n),__vite__mapDeps([3,1])))},{id:`csv`,name:`CSV`,import:(()=>k(()=>import(`./csv-aQe9eWwB.js`),[]))},{id:`cue`,name:`CUE`,import:(()=>k(()=>import(`./cue-Dw4Jatp1.js`),[]))},{id:`cypher`,name:`Cypher`,aliases:[`cql`],import:(()=>k(()=>import(`./cypher-Ce1ftazo.js`),[]))},{id:`d`,name:`D`,import:(()=>k(()=>import(`./d-C5Cd7-kE.js`),[]))},{id:`dart`,name:`Dart`,import:(()=>k(()=>import(`./dart-DkHntEIa.js`),[]))},{id:`dax`,name:`DAX`,import:(()=>k(()=>import(`./dax-8Zbmoo6g.js`),[]))},{id:`desktop`,name:`Desktop`,import:(()=>k(()=>import(`./desktop-DfUumfaM.js`),[]))},{id:`diff`,name:`Diff`,import:(()=>k(()=>import(`./diff-COJGj3FI.js`),[]))},{id:`docker`,name:`Dockerfile`,aliases:[`dockerfile`],import:(()=>k(()=>import(`./docker-BRkDW2k5.js`),[]))},{id:`dotenv`,name:`dotEnv`,import:(()=>k(()=>import(`./dotenv-BCLQtltE.js`),[]))},{id:`dream-maker`,name:`Dream Maker`,import:(()=>k(()=>import(`./dream-maker-Bqk5m4Bz.js`),[]))},{id:`edge`,name:`Edge`,import:(()=>k(()=>import(`./edge-CmXZi-az.js`),__vite__mapDeps([30,16,2,1,3,4,14])))},{id:`elixir`,name:`Elixir`,import:(()=>k(()=>import(`./elixir-BoRIkjDi.js`),__vite__mapDeps([31,2,1,3,4])))},{id:`elm`,name:`Elm`,import:(()=>k(()=>import(`./elm-BN_gLVH_.js`),__vite__mapDeps([32,26,1,20])))},{id:`emacs-lisp`,name:`Emacs Lisp`,aliases:[`elisp`],import:(()=>k(()=>import(`./emacs-lisp-C9PiwqqW.js`),[]))},{id:`erb`,name:`ERB`,import:(()=>k(()=>import(`./erb-DuMAGb6i.js`),__vite__mapDeps([33,2,1,3,4,34,20,25,26,27,17,35,36,13,14,37,38,29,9,10,39])))},{id:`erlang`,name:`Erlang`,aliases:[`erl`],import:(()=>k(()=>import(`./erlang-Dej7b2OY.js`),__vite__mapDeps([40,41])))},{id:`fennel`,name:`Fennel`,import:(()=>k(()=>import(`./fennel-Bb9CuKP4.js`),[]))},{id:`fish`,name:`Fish`,import:(()=>k(()=>import(`./fish-3TGl8j7I.js`),[]))},{id:`fluent`,name:`Fluent`,aliases:[`ftl`],import:(()=>k(()=>import(`./fluent-D94vzzSS.js`),[]))},{id:`fortran-fixed-form`,name:`Fortran (Fixed Form)`,aliases:[`f`,`for`,`f77`],import:(()=>k(()=>import(`./fortran-fixed-form-RVbzjQ2q.js`),__vite__mapDeps([42,43])))},{id:`fortran-free-form`,name:`Fortran (Free Form)`,aliases:[`f90`,`f95`,`f03`,`f08`,`f18`],import:(()=>k(()=>import(`./fortran-free-form-EhmKDVgM.js`),[]))},{id:`fsharp`,name:`F#`,aliases:[`f#`,`fs`],import:(()=>k(()=>import(`./fsharp-DKW21_Cq.js`),__vite__mapDeps([44,41])))},{id:`gdresource`,name:`GDResource`,aliases:[`tscn`,`tres`],import:(()=>k(()=>import(`./gdresource-b7MixKdf.js`),__vite__mapDeps([45,46,47])))},{id:`gdscript`,name:`GDScript`,aliases:[`gd`],import:(()=>k(()=>import(`./gdscript-DbNIuFFJ.js`),[]))},{id:`gdshader`,name:`GDShader`,import:(()=>k(()=>import(`./gdshader-C7BToOo8.js`),[]))},{id:`genie`,name:`Genie`,import:(()=>k(()=>import(`./genie-Cxv98QxF.js`),[]))},{id:`gherkin`,name:`Gherkin`,import:(()=>k(()=>import(`./gherkin-CcdVVABv.js`),[]))},{id:`git-commit`,name:`Git Commit Message`,import:(()=>k(()=>import(`./git-commit-BU_RZ1WH.js`),__vite__mapDeps([48,49])))},{id:`git-rebase`,name:`Git Rebase Message`,import:(()=>k(()=>import(`./git-rebase-DfgjiXG9.js`),__vite__mapDeps([50,29,1])))},{id:`gleam`,name:`Gleam`,import:(()=>k(()=>import(`./gleam-B359wBlW.js`),[]))},{id:`glimmer-js`,name:`Glimmer JS`,aliases:[`gjs`],import:(()=>k(()=>import(`./glimmer-js--VVKNatA.js`),__vite__mapDeps([51,3,1,2,4,14])))},{id:`glimmer-ts`,name:`Glimmer TS`,aliases:[`gts`],import:(()=>k(()=>import(`./glimmer-ts-Bfa_wiNC.js`),__vite__mapDeps([52,3,1,2,4,14])))},{id:`glsl`,name:`GLSL`,import:(()=>k(()=>import(`./glsl-MPwHyiXQ.js`).then(e=>e.n),__vite__mapDeps([26,1,20])))},{id:`gn`,name:`GN`,import:(()=>k(()=>import(`./gn-BdcPb0jv.js`),[]))},{id:`gnuplot`,name:`Gnuplot`,import:(()=>k(()=>import(`./gnuplot-DKk0glG7.js`),[]))},{id:`go`,name:`Go`,import:(()=>k(()=>import(`./go-BJwz_mda.js`),[]))},{id:`graphql`,name:`GraphQL`,aliases:[`gql`],import:(()=>k(()=>import(`./graphql-NW854Khs.js`).then(e=>e.n),__vite__mapDeps([35,1,4,36,13,14])))},{id:`groovy`,name:`Groovy`,import:(()=>k(()=>import(`./groovy-DyoOSCFW.js`),[]))},{id:`hack`,name:`Hack`,import:(()=>k(()=>import(`./hack-CSl79E5u.js`),__vite__mapDeps([53,2,1,3,4,17])))},{id:`haml`,name:`Ruby Haml`,import:(()=>k(()=>import(`./haml-Dmb1YmHj.js`).then(e=>e.n),__vite__mapDeps([37,1,3,4])))},{id:`handlebars`,name:`Handlebars`,aliases:[`hbs`],import:(()=>k(()=>import(`./handlebars-Du8DtnRB.js`),__vite__mapDeps([54,3,1,2,4,39])))},{id:`haskell`,name:`Haskell`,aliases:[`hs`],import:(()=>k(()=>import(`./haskell-Dsfw-pfZ.js`),[]))},{id:`haxe`,name:`Haxe`,import:(()=>k(()=>import(`./haxe-BZXihDV-.js`),[]))},{id:`hcl`,name:`HashiCorp HCL`,import:(()=>k(()=>import(`./hcl-o1Ej_Blw.js`),[]))},{id:`hjson`,name:`Hjson`,import:(()=>k(()=>import(`./hjson-C0zQIMrr.js`),[]))},{id:`hlsl`,name:`HLSL`,import:(()=>k(()=>import(`./hlsl-BxIm9IaD.js`),[]))},{id:`html`,name:`HTML`,import:(()=>k(()=>import(`./html-Kpl3bQKd.js`).then(e=>e.n),__vite__mapDeps([2,1,3,4])))},{id:`html-derivative`,name:`HTML (Derivative)`,import:(()=>k(()=>import(`./html-derivative-BEEWNZ8Y.js`),__vite__mapDeps([16,2,1,3,4])))},{id:`http`,name:`HTTP`,import:(()=>k(()=>import(`./http-CTnm0cit.js`),__vite__mapDeps([55,35,1,4,36,13,14,8,29,9,10])))},{id:`hurl`,name:`Hurl`,import:(()=>k(()=>import(`./hurl-CpwzV4SP.js`),__vite__mapDeps([56,57,35,1,4,36,13,14,9,10])))},{id:`hxml`,name:`HXML`,import:(()=>k(()=>import(`./hxml-B_tSdhCX.js`),__vite__mapDeps([58,59])))},{id:`hy`,name:`Hy`,import:(()=>k(()=>import(`./hy-CPusJT2P.js`),[]))},{id:`imba`,name:`Imba`,import:(()=>k(()=>import(`./imba-BNhPHnyc.js`),[]))},{id:`ini`,name:`INI`,aliases:[`properties`],import:(()=>k(()=>import(`./ini-BXoOzk1L.js`),[]))},{id:`java`,name:`Java`,import:(()=>k(()=>import(`./java-Cst_eZTE.js`).then(e=>e.n),__vite__mapDeps([10,1])))},{id:`javascript`,name:`JavaScript`,aliases:[`js`,`cjs`,`mjs`],import:(()=>k(()=>import(`./javascript-i_rUTyCW.js`).then(e=>e.n),__vite__mapDeps([4,1])))},{id:`jinja`,name:`Jinja`,import:(()=>k(()=>import(`./jinja-CaXggA6f.js`),__vite__mapDeps([60,2,1,3,4])))},{id:`jison`,name:`Jison`,import:(()=>k(()=>import(`./jison-UUT3aynj.js`),__vite__mapDeps([61,4,1])))},{id:`json`,name:`JSON`,import:(()=>k(()=>import(`./json-DS5j4FfK.js`).then(e=>e.n),__vite__mapDeps([8,1])))},{id:`json5`,name:`JSON5`,import:(()=>k(()=>import(`./json5-BXepwZod.js`),[]))},{id:`jsonc`,name:`JSON with Comments`,import:(()=>k(()=>import(`./jsonc-jqjqAbF7.js`),[]))},{id:`jsonl`,name:`JSON Lines`,import:(()=>k(()=>import(`./jsonl-sJJpusUR.js`),[]))},{id:`jsonnet`,name:`Jsonnet`,import:(()=>k(()=>import(`./jsonnet-DKGWD1zU.js`),[]))},{id:`jssm`,name:`JSSM`,aliases:[`fsl`],import:(()=>k(()=>import(`./jssm-D6JwwFbv.js`),[]))},{id:`jsx`,name:`JSX`,import:(()=>k(()=>import(`./jsx-CFyhNHav.js`).then(e=>e.n),__vite__mapDeps([36,1])))},{id:`julia`,name:`Julia`,aliases:[`jl`],import:(()=>k(()=>import(`./julia-R8NNmfP1.js`),__vite__mapDeps([62,25,1,26,20,27,17,4,22,63])))},{id:`just`,name:`Just`,import:(()=>k(()=>import(`./just-BhhHYlS8.js`),__vite__mapDeps([64,4,1,65,3,2,17,9,10,22,34,20,25,26,27,35,36,13,14,37,38,29,39])))},{id:`kdl`,name:`KDL`,import:(()=>k(()=>import(`./kdl-HHaMlHFB.js`),[]))},{id:`kotlin`,name:`Kotlin`,aliases:[`kt`,`kts`],import:(()=>k(()=>import(`./kotlin-Bvjw1jyK.js`),[]))},{id:`kusto`,name:`Kusto`,aliases:[`kql`],import:(()=>k(()=>import(`./kusto-BUv0MjJC.js`),[]))},{id:`latex`,name:`LaTeX`,import:(()=>k(()=>import(`./latex-D5k_uhWv.js`),__vite__mapDeps([66,67,63,1])))},{id:`lean`,name:`Lean 4`,aliases:[`lean4`],import:(()=>k(()=>import(`./lean-B2IJXP9Y.js`),[]))},{id:`less`,name:`Less`,import:(()=>k(()=>import(`./less-BGJv5CZz.js`),[]))},{id:`liquid`,name:`Liquid`,import:(()=>k(()=>import(`./liquid-Q0_hzjly.js`),__vite__mapDeps([68,3,1,2,4,8])))},{id:`llvm`,name:`LLVM IR`,import:(()=>k(()=>import(`./llvm-DjdPfBRh.js`),[]))},{id:`log`,name:`Log file`,import:(()=>k(()=>import(`./log-CS10erYd.js`),[]))},{id:`logo`,name:`Logo`,import:(()=>k(()=>import(`./logo-CmXTaeCJ.js`),[]))},{id:`lua`,name:`Lua`,import:(()=>k(()=>import(`./lua-VoGSg0xb.js`).then(e=>e.n),__vite__mapDeps([38,1,20])))},{id:`luau`,name:`Luau`,import:(()=>k(()=>import(`./luau-CNKltnaQ.js`),[]))},{id:`make`,name:`Makefile`,aliases:[`makefile`],import:(()=>k(()=>import(`./make--KyFtISL.js`),[]))},{id:`markdown`,name:`Markdown`,aliases:[`md`],import:(()=>k(()=>import(`./markdown-Bk5jPFPK.js`),[]))},{id:`marko`,name:`Marko`,import:(()=>k(()=>import(`./marko-D_aeUD__.js`),__vite__mapDeps([69,3,1,70,6,14])))},{id:`matlab`,name:`MATLAB`,import:(()=>k(()=>import(`./matlab-CXouX2WE.js`),[]))},{id:`mdc`,name:`MDC`,import:(()=>k(()=>import(`./mdc-BSifqehP.js`),__vite__mapDeps([71,16,2,1,3,4,41,39])))},{id:`mdx`,name:`MDX`,import:(()=>k(()=>import(`./mdx-CT6rFF7S.js`),[]))},{id:`mermaid`,name:`Mermaid`,aliases:[`mmd`],import:(()=>k(()=>import(`./mermaid-CTmv7XD1.js`),[]))},{id:`mipsasm`,name:`MIPS Assembly`,aliases:[`mips`],import:(()=>k(()=>import(`./mipsasm-Dl8GaYxY.js`),[]))},{id:`mojo`,name:`Mojo`,import:(()=>k(()=>import(`./mojo-hMZsLDIK.js`),[]))},{id:`moonbit`,name:`MoonBit`,aliases:[`mbt`,`mbti`],import:(()=>k(()=>import(`./moonbit-BgUC1NvV.js`),[]))},{id:`move`,name:`Move`,import:(()=>k(()=>import(`./move-u3t7wi4x.js`),[]))},{id:`narrat`,name:`Narrat Language`,aliases:[`nar`],import:(()=>k(()=>import(`./narrat-4tTAKi-J.js`),[]))},{id:`nextflow`,name:`Nextflow`,aliases:[`nf`],import:(()=>k(()=>import(`./nextflow-Bbiyy34d.js`),__vite__mapDeps([72,73])))},{id:`nextflow-groovy`,name:`nextflow-groovy`,import:(()=>k(()=>import(`./nextflow-groovy-Dc_ddanL.js`),[]))},{id:`nginx`,name:`Nginx`,import:(()=>k(()=>import(`./nginx-BNb4NZk1.js`),__vite__mapDeps([74,38,1,20])))},{id:`nim`,name:`Nim`,import:(()=>k(()=>import(`./nim-BuixXxPS.js`),__vite__mapDeps([75,20,1,3,26,2,4,41,9,10])))},{id:`nix`,name:`Nix`,import:(()=>k(()=>import(`./nix-DGXJ-lch.js`),[]))},{id:`nushell`,name:`nushell`,aliases:[`nu`],import:(()=>k(()=>import(`./nushell-9zntkpRZ.js`),[]))},{id:`objective-c`,name:`Objective-C`,aliases:[`objc`],import:(()=>k(()=>import(`./objective-c-BfQime6S.js`),[]))},{id:`objective-cpp`,name:`Objective-C++`,import:(()=>k(()=>import(`./objective-cpp-BbSyPuOs.js`),[]))},{id:`ocaml`,name:`OCaml`,import:(()=>k(()=>import(`./ocaml--fvLg7Jk.js`),[]))},{id:`odin`,name:`Odin`,import:(()=>k(()=>import(`./odin-B25GiMk5.js`),[]))},{id:`openscad`,name:`OpenSCAD`,aliases:[`scad`],import:(()=>k(()=>import(`./openscad-Cc8OM7cV.js`),[]))},{id:`pascal`,name:`Pascal`,import:(()=>k(()=>import(`./pascal-DRxrTJXf.js`),[]))},{id:`perl`,name:`Perl`,import:(()=>k(()=>import(`./perl-BLMySlFJ.js`),__vite__mapDeps([65,3,1,2,4,17,9,10])))},{id:`php`,name:`PHP`,import:(()=>k(()=>import(`./php-Czf_fybR.js`),__vite__mapDeps([76,3,1,2,4,8,17,9,10])))},{id:`pkl`,name:`Pkl`,import:(()=>k(()=>import(`./pkl-C3VTVe07.js`),[]))},{id:`plsql`,name:`PL/SQL`,import:(()=>k(()=>import(`./plsql-DKCJv1ec.js`),[]))},{id:`po`,name:`Gettext PO`,aliases:[`pot`,`potx`],import:(()=>k(()=>import(`./po-DLYw31Q8.js`),[]))},{id:`polar`,name:`Polar`,import:(()=>k(()=>import(`./polar-D_X-vjiJ.js`),[]))},{id:`postcss`,name:`PostCSS`,import:(()=>k(()=>import(`./postcss-BunjpCQr.js`),[]))},{id:`powerquery`,name:`PowerQuery`,import:(()=>k(()=>import(`./powerquery-B6M5zXQ4.js`),[]))},{id:`powershell`,name:`PowerShell`,aliases:[`ps`,`ps1`],import:(()=>k(()=>import(`./powershell-DqZlBT-v.js`),[]))},{id:`prisma`,name:`Prisma`,import:(()=>k(()=>import(`./prisma-VLinVlWN.js`),[]))},{id:`prolog`,name:`Prolog`,import:(()=>k(()=>import(`./prolog-C--lwqXe.js`),[]))},{id:`proto`,name:`Protocol Buffer 3`,aliases:[`protobuf`],import:(()=>k(()=>import(`./proto-DSd2dzpT.js`),[]))},{id:`pug`,name:`Pug`,aliases:[`jade`],import:(()=>k(()=>import(`./pug-CsZglf8T.js`),__vite__mapDeps([77,3,1,2,4])))},{id:`puppet`,name:`Puppet`,import:(()=>k(()=>import(`./puppet-DDYKwRcl.js`),[]))},{id:`purescript`,name:`PureScript`,import:(()=>k(()=>import(`./purescript-C58zfXw7.js`),[]))},{id:`python`,name:`Python`,aliases:[`py`],import:(()=>k(()=>import(`./python-DkGugaUl.js`),[]))},{id:`qml`,name:`QML`,import:(()=>k(()=>import(`./qml-BPgOJK7U.js`),__vite__mapDeps([78,4,1])))},{id:`qmldir`,name:`QML Directory`,import:(()=>k(()=>import(`./qmldir-5WAoO9FS.js`),[]))},{id:`qss`,name:`Qt Style Sheets`,import:(()=>k(()=>import(`./qss-iwYQbQ5a.js`),[]))},{id:`r`,name:`R`,import:(()=>k(()=>import(`./r-D2d3McyU.js`).then(e=>e.n),__vite__mapDeps([63,1])))},{id:`racket`,name:`Racket`,import:(()=>k(()=>import(`./racket-ByduP6X2.js`),[]))},{id:`raku`,name:`Raku`,aliases:[`perl6`],import:(()=>k(()=>import(`./raku-CsvfXYUb.js`),[]))},{id:`razor`,name:`ASP.NET Razor`,import:(()=>k(()=>import(`./razor-oFpUW61Z.js`),__vite__mapDeps([79,80,2,1,3,4])))},{id:`reg`,name:`Windows Registry Script`,import:(()=>k(()=>import(`./reg-efiUL9qS.js`),[]))},{id:`regexp`,name:`RegExp`,aliases:[`regex`],import:(()=>k(()=>import(`./regexp-Bu0flJgP.js`).then(e=>e.n),__vite__mapDeps([27,1])))},{id:`rel`,name:`Rel`,import:(()=>k(()=>import(`./rel-BFvj_u7U.js`),[]))},{id:`riscv`,name:`RISC-V`,import:(()=>k(()=>import(`./riscv-CQLA6sFw.js`),[]))},{id:`ron`,name:`RON`,import:(()=>k(()=>import(`./ron-UVnZQNEl.js`),[]))},{id:`rosmsg`,name:`ROS Interface`,import:(()=>k(()=>import(`./rosmsg-Dwq6pEKS.js`),[]))},{id:`rst`,name:`reStructuredText`,import:(()=>k(()=>import(`./rst-U6Eu7ipE.js`),__vite__mapDeps([81,82,25,1,26,20,27,17,16,2,3,4,22,34,35,36,13,14,37,38,29,9,10,39])))},{id:`ruby`,name:`Ruby`,aliases:[`rb`],import:(()=>k(()=>import(`./ruby-CUQsVT6d.js`),__vite__mapDeps([34,20,1,25,26,27,17,3,35,4,36,13,14,37,2,38,29,9,10,39])))},{id:`rust`,name:`Rust`,aliases:[`rs`],import:(()=>k(()=>import(`./rust-DfhhoMHs.js`),[]))},{id:`sas`,name:`SAS`,import:(()=>k(()=>import(`./sas-CNBFrLhc.js`),__vite__mapDeps([83,17,1])))},{id:`sass`,name:`Sass`,import:(()=>k(()=>import(`./sass-DiF7DxUu.js`),[]))},{id:`scala`,name:`Scala`,import:(()=>k(()=>import(`./scala-F4M-xFqw.js`),[]))},{id:`scheme`,name:`Scheme`,import:(()=>k(()=>import(`./scheme-yKF7wU_W.js`),[]))},{id:`scss`,name:`SCSS`,import:(()=>k(()=>import(`./scss-CPnU-uuv.js`).then(e=>e.n),__vite__mapDeps([6,1,3])))},{id:`sdbl`,name:`1C (Query)`,aliases:[`1c-query`],import:(()=>k(()=>import(`./sdbl-DzilZtvS.js`),[]))},{id:`shaderlab`,name:`ShaderLab`,aliases:[`shader`],import:(()=>k(()=>import(`./shaderlab-QzRPXpa3.js`),__vite__mapDeps([84,85])))},{id:`shellscript`,name:`Shell`,aliases:[`bash`,`sh`,`shell`,`zsh`],import:(()=>k(()=>import(`./shellscript-BbTp1yjG.js`).then(e=>e.n),__vite__mapDeps([29,1])))},{id:`shellsession`,name:`Shell Session`,aliases:[`console`],import:(()=>k(()=>import(`./shellsession-BebtDBlY.js`),__vite__mapDeps([86,29,1])))},{id:`smalltalk`,name:`Smalltalk`,import:(()=>k(()=>import(`./smalltalk-Czn2qXp6.js`),[]))},{id:`solidity`,name:`Solidity`,import:(()=>k(()=>import(`./solidity-BOOD8PsF.js`),[]))},{id:`soy`,name:`Closure Templates`,aliases:[`closure-templates`],import:(()=>k(()=>import(`./soy-CdbyEXp6.js`),__vite__mapDeps([87,2,1,3,4])))},{id:`sparql`,name:`SPARQL`,import:(()=>k(()=>import(`./sparql-BQ8pLLZr.js`),__vite__mapDeps([88,89])))},{id:`splunk`,name:`Splunk Query Language`,aliases:[`spl`],import:(()=>k(()=>import(`./splunk-Dy5hSDrK.js`),[]))},{id:`sql`,name:`SQL`,import:(()=>k(()=>import(`./sql-hpBkusIy.js`).then(e=>e.n),__vite__mapDeps([17,1])))},{id:`ssh-config`,name:`SSH Config`,import:(()=>k(()=>import(`./ssh-config-DlA0k24P.js`),[]))},{id:`stata`,name:`Stata`,import:(()=>k(()=>import(`./stata-DVbvk3qH.js`),__vite__mapDeps([90,17,1])))},{id:`stylus`,name:`Stylus`,aliases:[`styl`],import:(()=>k(()=>import(`./stylus-BrO8Mu5X.js`),[]))},{id:`surrealql`,name:`SurrealQL`,aliases:[`surql`],import:(()=>k(()=>import(`./surrealql-CiJ5GSG5.js`),__vite__mapDeps([91,4,1])))},{id:`svelte`,name:`Svelte`,import:(()=>k(()=>import(`./svelte-DzNm5V2w.js`),__vite__mapDeps([92,3,1,4,12,14])))},{id:`swift`,name:`Swift`,import:(()=>k(()=>import(`./swift-aU1DoeFE.js`),[]))},{id:`system-verilog`,name:`SystemVerilog`,import:(()=>k(()=>import(`./system-verilog-CTJOgDVF.js`),[]))},{id:`systemd`,name:`Systemd Units`,import:(()=>k(()=>import(`./systemd-vW0EBnEZ.js`),[]))},{id:`talonscript`,name:`TalonScript`,aliases:[`talon`],import:(()=>k(()=>import(`./talonscript-DOWETJMR.js`),[]))},{id:`tasl`,name:`Tasl`,import:(()=>k(()=>import(`./tasl-BCK2yre5.js`),[]))},{id:`tcl`,name:`Tcl`,import:(()=>k(()=>import(`./tcl-DpJlRc9L.js`),[]))},{id:`templ`,name:`Templ`,import:(()=>k(()=>import(`./templ-CsM0tTsw.js`),__vite__mapDeps([93,3,1,94,4])))},{id:`terraform`,name:`Terraform`,aliases:[`tf`,`tfvars`],import:(()=>k(()=>import(`./terraform-BOmekhaT.js`),[]))},{id:`tex`,name:`TeX`,import:(()=>k(()=>import(`./tex-C3KbjgWU.js`),__vite__mapDeps([67,63,1])))},{id:`toml`,name:`TOML`,import:(()=>k(()=>import(`./toml-DPDNdnh9.js`),[]))},{id:`ts-tags`,name:`TypeScript with Tags`,aliases:[`lit`],import:(()=>k(()=>import(`./ts-tags-Bf-FGGvT.js`),__vite__mapDeps([95,3,1,26,20,2,4,17,14,9,10])))},{id:`tsv`,name:`TSV`,import:(()=>k(()=>import(`./tsv-BCypI0LB.js`),[]))},{id:`tsx`,name:`TSX`,import:(()=>k(()=>import(`./tsx-DFvk7AwW.js`).then(e=>e.n),__vite__mapDeps([13,1])))},{id:`turtle`,name:`Turtle`,import:(()=>k(()=>import(`./turtle-CA3RhB-1.js`),[]))},{id:`twig`,name:`Twig`,import:(()=>k(()=>import(`./twig-VJ4-Ntm0.js`),__vite__mapDeps([96,3,1,4,76,2,8,17,9,10,22,34,20,25,26,27,35,36,13,14,37,38,29,39,6])))},{id:`typescript`,name:`TypeScript`,aliases:[`ts`,`cts`,`mts`],import:(()=>k(()=>import(`./typescript-DHTLvXzV.js`).then(e=>e.n),__vite__mapDeps([14,1])))},{id:`typespec`,name:`TypeSpec`,aliases:[`tsp`],import:(()=>k(()=>import(`./typespec-B88KGewJ.js`),[]))},{id:`typst`,name:`Typst`,aliases:[`typ`],import:(()=>k(()=>import(`./typst-DR_hs4Gi.js`),[]))},{id:`v`,name:`V`,import:(()=>k(()=>import(`./v-ByGVE3cP.js`),[]))},{id:`vala`,name:`Vala`,import:(()=>k(()=>import(`./vala-DUFyzj-T.js`),[]))},{id:`vb`,name:`Visual Basic`,aliases:[`cmd`],import:(()=>k(()=>import(`./vb-DzJKgt2N.js`),[]))},{id:`verilog`,name:`Verilog`,import:(()=>k(()=>import(`./verilog-C0HRahXC.js`),[]))},{id:`vhdl`,name:`VHDL`,import:(()=>k(()=>import(`./vhdl-Dp1NtpV2.js`),[]))},{id:`viml`,name:`Vim Script`,aliases:[`vim`,`vimscript`],import:(()=>k(()=>import(`./viml-BLGuOzJC.js`),[]))},{id:`vue`,name:`Vue`,import:(()=>k(()=>import(`./vue-D3dSYZKz.js`),__vite__mapDeps([97,3,1,16,2,4,8,14])))},{id:`vue-html`,name:`Vue HTML`,import:(()=>k(()=>import(`./vue-html-n-yWadYX.js`),__vite__mapDeps([98,4,1])))},{id:`vue-vine`,name:`Vue Vine`,import:(()=>k(()=>import(`./vue-vine-B67Dz05t.js`),__vite__mapDeps([99,3,1,4,70,12,6,100])))},{id:`vyper`,name:`Vyper`,aliases:[`vy`],import:(()=>k(()=>import(`./vyper-DyY9EjYM.js`),[]))},{id:`wasm`,name:`WebAssembly`,import:(()=>k(()=>import(`./wasm-DpeUkDXq.js`),[]))},{id:`wenyan`,name:`Wenyan`,aliases:[`文言`],import:(()=>k(()=>import(`./wenyan-kGy6j2rl.js`),[]))},{id:`wgsl`,name:`WGSL`,import:(()=>k(()=>import(`./wgsl-CLosOKVB.js`),[]))},{id:`wikitext`,name:`Wikitext`,aliases:[`mediawiki`,`wiki`],import:(()=>k(()=>import(`./wikitext-B00H4D6m.js`),[]))},{id:`wit`,name:`WebAssembly Interface Types`,import:(()=>k(()=>import(`./wit-Ib9mjOBG.js`),[]))},{id:`wolfram`,name:`Wolfram`,aliases:[`wl`],import:(()=>k(()=>import(`./wolfram-ofSK-Pwc.js`),[]))},{id:`xml`,name:`XML`,import:(()=>k(()=>import(`./xml-C33zriiW.js`).then(e=>e.n),__vite__mapDeps([9,1,10])))},{id:`xsl`,name:`XSL`,import:(()=>k(()=>import(`./xsl-C2_ECGp9.js`),__vite__mapDeps([101,9,1,10])))},{id:`yaml`,name:`YAML`,aliases:[`yml`],import:(()=>k(()=>import(`./yaml-w0rMsuN4.js`).then(e=>e.n),__vite__mapDeps([39,1])))},{id:`zenscript`,name:`ZenScript`,import:(()=>k(()=>import(`./zenscript-WrGCG97x.js`),[]))},{id:`zig`,name:`Zig`,import:(()=>k(()=>import(`./zig-apmbPCW-.js`),[]))}],sl=Object.fromEntries(ol.map(e=>[e.id,e.import])),cl=Object.fromEntries(ol.flatMap(e=>e.aliases?.map(t=>[t,e.import])||[])),ll={...sl,...cl},ul=Object.fromEntries([{id:`andromeeda`,displayName:`Andromeeda`,type:`dark`,import:(()=>k(()=>import(`./andromeeda-WkhI09AS.js`),[]))},{id:`aurora-x`,displayName:`Aurora X`,type:`dark`,import:(()=>k(()=>import(`./aurora-x-C7CFqhAd.js`),[]))},{id:`ayu-dark`,displayName:`Ayu Dark`,type:`dark`,import:(()=>k(()=>import(`./ayu-dark-CRu61w6_.js`),[]))},{id:`ayu-light`,displayName:`Ayu Light`,type:`light`,import:(()=>k(()=>import(`./ayu-light-Dn6O_aYR.js`),[]))},{id:`ayu-mirage`,displayName:`Ayu Mirage`,type:`dark`,import:(()=>k(()=>import(`./ayu-mirage-CTjYAbs-.js`),[]))},{id:`catppuccin-frappe`,displayName:`Catppuccin Frappé`,type:`dark`,import:(()=>k(()=>import(`./catppuccin-frappe-DFlFW5gh.js`),[]))},{id:`catppuccin-latte`,displayName:`Catppuccin Latte`,type:`light`,import:(()=>k(()=>import(`./catppuccin-latte-CpxdcXpJ.js`),[]))},{id:`catppuccin-macchiato`,displayName:`Catppuccin Macchiato`,type:`dark`,import:(()=>k(()=>import(`./catppuccin-macchiato-DIdIQ04K.js`),[]))},{id:`catppuccin-mocha`,displayName:`Catppuccin Mocha`,type:`dark`,import:(()=>k(()=>import(`./catppuccin-mocha-Co3Xjl64.js`),[]))},{id:`dark-plus`,displayName:`Dark Plus`,type:`dark`,import:(()=>k(()=>import(`./dark-plus-GAt2ZgX8.js`),[]))},{id:`dracula`,displayName:`Dracula Theme`,type:`dark`,import:(()=>k(()=>import(`./dracula-C2uKkzgK.js`),[]))},{id:`dracula-soft`,displayName:`Dracula Theme Soft`,type:`dark`,import:(()=>k(()=>import(`./dracula-soft-D1bVjxWZ.js`),[]))},{id:`everforest-dark`,displayName:`Everforest Dark`,type:`dark`,import:(()=>k(()=>import(`./everforest-dark-D-DlICQR.js`),[]))},{id:`everforest-light`,displayName:`Everforest Light`,type:`light`,import:(()=>k(()=>import(`./everforest-light-CeVdGHYG.js`),[]))},{id:`github-dark`,displayName:`GitHub Dark`,type:`dark`,import:(()=>k(()=>import(`./github-dark-DwbbXv51.js`),[]))},{id:`github-dark-default`,displayName:`GitHub Dark Default`,type:`dark`,import:(()=>k(()=>import(`./github-dark-default-CxjRwzl6.js`),[]))},{id:`github-dark-dimmed`,displayName:`GitHub Dark Dimmed`,type:`dark`,import:(()=>k(()=>import(`./github-dark-dimmed-Cr1oaoul.js`),[]))},{id:`github-dark-high-contrast`,displayName:`GitHub Dark High Contrast`,type:`dark`,import:(()=>k(()=>import(`./github-dark-high-contrast-B4qJZLZa.js`),[]))},{id:`github-light`,displayName:`GitHub Light`,type:`light`,import:(()=>k(()=>import(`./github-light-CsVXhIlR.js`),[]))},{id:`github-light-default`,displayName:`GitHub Light Default`,type:`light`,import:(()=>k(()=>import(`./github-light-default-DB_IwZa6.js`),[]))},{id:`github-light-high-contrast`,displayName:`GitHub Light High Contrast`,type:`light`,import:(()=>k(()=>import(`./github-light-high-contrast-DLgVeSB-.js`),[]))},{id:`gruvbox-dark-hard`,displayName:`Gruvbox Dark Hard`,type:`dark`,import:(()=>k(()=>import(`./gruvbox-dark-hard-DXm60lX3.js`),[]))},{id:`gruvbox-dark-medium`,displayName:`Gruvbox Dark Medium`,type:`dark`,import:(()=>k(()=>import(`./gruvbox-dark-medium-GE2thSmD.js`),[]))},{id:`gruvbox-dark-soft`,displayName:`Gruvbox Dark Soft`,type:`dark`,import:(()=>k(()=>import(`./gruvbox-dark-soft-04Cj-4VZ.js`),[]))},{id:`gruvbox-light-hard`,displayName:`Gruvbox Light Hard`,type:`light`,import:(()=>k(()=>import(`./gruvbox-light-hard-K6wSn29D.js`),[]))},{id:`gruvbox-light-medium`,displayName:`Gruvbox Light Medium`,type:`light`,import:(()=>k(()=>import(`./gruvbox-light-medium-CVy3aSlc.js`),[]))},{id:`gruvbox-light-soft`,displayName:`Gruvbox Light Soft`,type:`light`,import:(()=>k(()=>import(`./gruvbox-light-soft-DNgJjaY0.js`),[]))},{id:`horizon`,displayName:`Horizon`,type:`dark`,import:(()=>k(()=>import(`./horizon-0-RkHfro.js`),[]))},{id:`horizon-bright`,displayName:`Horizon Bright`,type:`dark`,import:(()=>k(()=>import(`./horizon-bright-Br1oVSNq.js`),[]))},{id:`houston`,displayName:`Houston`,type:`dark`,import:(()=>k(()=>import(`./houston-KyjWKfuY.js`),[]))},{id:`kanagawa-dragon`,displayName:`Kanagawa Dragon`,type:`dark`,import:(()=>k(()=>import(`./kanagawa-dragon-7TqgsUPC.js`),[]))},{id:`kanagawa-lotus`,displayName:`Kanagawa Lotus`,type:`light`,import:(()=>k(()=>import(`./kanagawa-lotus-CqxMQulh.js`),[]))},{id:`kanagawa-wave`,displayName:`Kanagawa Wave`,type:`dark`,import:(()=>k(()=>import(`./kanagawa-wave-D8CNn6T_.js`),[]))},{id:`laserwave`,displayName:`LaserWave`,type:`dark`,import:(()=>k(()=>import(`./laserwave-CQkdhozh.js`),[]))},{id:`light-plus`,displayName:`Light Plus`,type:`light`,import:(()=>k(()=>import(`./light-plus-CNQ8_7Y0.js`),[]))},{id:`material-theme`,displayName:`Material Theme`,type:`dark`,import:(()=>k(()=>import(`./material-theme-CAtLaHa3.js`),[]))},{id:`material-theme-darker`,displayName:`Material Theme Darker`,type:`dark`,import:(()=>k(()=>import(`./material-theme-darker-k-s5Bc6K.js`),[]))},{id:`material-theme-lighter`,displayName:`Material Theme Lighter`,type:`light`,import:(()=>k(()=>import(`./material-theme-lighter-CD6a-c4d.js`),[]))},{id:`material-theme-ocean`,displayName:`Material Theme Ocean`,type:`dark`,import:(()=>k(()=>import(`./material-theme-ocean-B3mraInd.js`),[]))},{id:`material-theme-palenight`,displayName:`Material Theme Palenight`,type:`dark`,import:(()=>k(()=>import(`./material-theme-palenight-DEhAARHw.js`),[]))},{id:`min-dark`,displayName:`Min Dark`,type:`dark`,import:(()=>k(()=>import(`./min-dark-BFqTAwCr.js`),[]))},{id:`min-light`,displayName:`Min Light`,type:`light`,import:(()=>k(()=>import(`./min-light-O7UdaaxX.js`),[]))},{id:`monokai`,displayName:`Monokai`,type:`dark`,import:(()=>k(()=>import(`./monokai-C0p7Qecz.js`),[]))},{id:`night-owl`,displayName:`Night Owl`,type:`dark`,import:(()=>k(()=>import(`./night-owl-BsnCLAKc.js`),[]))},{id:`night-owl-light`,displayName:`Night Owl Light`,type:`light`,import:(()=>k(()=>import(`./night-owl-light-BODRhcTU.js`),[]))},{id:`nord`,displayName:`Nord`,type:`dark`,import:(()=>k(()=>import(`./nord-Cd-F4txO.js`),[]))},{id:`one-dark-pro`,displayName:`One Dark Pro`,type:`dark`,import:(()=>k(()=>import(`./one-dark-pro-DUS_IGRK.js`),[]))},{id:`one-light`,displayName:`One Light`,type:`light`,import:(()=>k(()=>import(`./one-light-CVUd7yD5.js`),[]))},{id:`plastic`,displayName:`Plastic`,type:`dark`,import:(()=>k(()=>import(`./plastic-CF8VZTnn.js`),[]))},{id:`poimandres`,displayName:`Poimandres`,type:`dark`,import:(()=>k(()=>import(`./poimandres-BX2TyY6j.js`),[]))},{id:`red`,displayName:`Red`,type:`dark`,import:(()=>k(()=>import(`./red-7ga_dcKu.js`),[]))},{id:`rose-pine`,displayName:`Rosé Pine`,type:`dark`,import:(()=>k(()=>import(`./rose-pine-rh6ipraJ.js`),[]))},{id:`rose-pine-dawn`,displayName:`Rosé Pine Dawn`,type:`light`,import:(()=>k(()=>import(`./rose-pine-dawn-DSuRaP6u.js`),[]))},{id:`rose-pine-moon`,displayName:`Rosé Pine Moon`,type:`dark`,import:(()=>k(()=>import(`./rose-pine-moon-DdHjCvFQ.js`),[]))},{id:`slack-dark`,displayName:`Slack Dark`,type:`dark`,import:(()=>k(()=>import(`./slack-dark-DYvUXyrP.js`),[]))},{id:`slack-ochin`,displayName:`Slack Ochin`,type:`light`,import:(()=>k(()=>import(`./slack-ochin-bqtMVDfH.js`),[]))},{id:`snazzy-light`,displayName:`Snazzy Light`,type:`light`,import:(()=>k(()=>import(`./snazzy-light-D8dzFmq5.js`),[]))},{id:`solarized-dark`,displayName:`Solarized Dark`,type:`dark`,import:(()=>k(()=>import(`./solarized-dark-BQwPDzxK.js`),[]))},{id:`solarized-light`,displayName:`Solarized Light`,type:`light`,import:(()=>k(()=>import(`./solarized-light-BLaijb3X.js`),[]))},{id:`synthwave-84`,displayName:`Synthwave '84`,type:`dark`,import:(()=>k(()=>import(`./synthwave-84-CIknw8y7.js`),[]))},{id:`tokyo-night`,displayName:`Tokyo Night`,type:`dark`,import:(()=>k(()=>import(`./tokyo-night-iIspnLcq.js`),[]))},{id:`vesper`,displayName:`Vesper`,type:`dark`,import:(()=>k(()=>import(`./vesper-D5bVUKB1.js`),[]))},{id:`vitesse-black`,displayName:`Vitesse Black`,type:`dark`,import:(()=>k(()=>import(`./vitesse-black-D082JcaE.js`),[]))},{id:`vitesse-dark`,displayName:`Vitesse Dark`,type:`dark`,import:(()=>k(()=>import(`./vitesse-dark-z-nr_5O8.js`),[]))},{id:`vitesse-light`,displayName:`Vitesse Light`,type:`light`,import:(()=>k(()=>import(`./vitesse-light-ojz42ZLy.js`),[]))}].map(e=>[e.id,e.import])),dl=class extends Error{constructor(e){super(e),this.name=`ShikiError`}};function fl(){return 2147483648}function pl(){return typeof performance<`u`?performance.now():Date.now()}var ml=(e,t)=>e+(t-e%t)%t;async function hl(e){let t,n,r={};function i(e){n=e,r.HEAPU8=new Uint8Array(e),r.HEAPU32=new Uint32Array(e)}function a(e,t,n){r.HEAPU8.copyWithin(e,t,t+n)}function o(e){try{return t.grow(e-n.byteLength+65535>>>16),i(t.buffer),1}catch{}}function s(e){let t=r.HEAPU8.length;e>>>=0;let n=fl();if(e>n)return!1;for(let r=1;r<=4;r*=2){let i=t*(1+.2/r);if(i=Math.min(i,e+100663296),o(Math.min(n,ml(Math.max(e,i),65536))))return!0}return!1}let c=typeof TextDecoder<`u`?new TextDecoder(`utf8`):void 0;function l(e,t,n=1024){let r=t+n,i=t;for(;e[i]&&!(i>=r);)++i;if(i-t>16&&e.buffer&&c)return c.decode(e.subarray(t,i));let a=``;for(;t<i;){let n=e[t++];if(!(n&128)){a+=String.fromCharCode(n);continue}let r=e[t++]&63;if((n&224)==192){a+=String.fromCharCode((n&31)<<6|r);continue}let i=e[t++]&63;if(n=(n&240)==224?(n&15)<<12|r<<6|i:(n&7)<<18|r<<12|i<<6|e[t++]&63,n<65536)a+=String.fromCharCode(n);else{let e=n-65536;a+=String.fromCharCode(55296|e>>10,56320|e&1023)}}return a}function u(e,t){return e?l(r.HEAPU8,e,t):``}let d={emscripten_get_now:pl,emscripten_memcpy_big:a,emscripten_resize_heap:s,fd_write:()=>0};async function f(){let n=await e({env:d,wasi_snapshot_preview1:d});t=n.memory,i(t.buffer),Object.assign(r,n),r.UTF8ToString=u}return await f(),r}var gl=Object.defineProperty,_l=(e,t,n)=>t in e?gl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,vl=(e,t,n)=>_l(e,typeof t==`symbol`?t:t+``,n),yl=null;function bl(e){throw new dl(e.UTF8ToString(e.getLastOnigError()))}var xl=class e{constructor(t){vl(this,`utf16Length`),vl(this,`utf8Length`),vl(this,`utf16Value`),vl(this,`utf8Value`),vl(this,`utf16OffsetToUtf8`),vl(this,`utf8OffsetToUtf16`);let n=t.length,r=e._utf8ByteLength(t),i=r!==n,a=i?new Uint32Array(n+1):null;i&&(a[n]=r);let o=i?new Uint32Array(r+1):null;i&&(o[r]=n);let s=new Uint8Array(r),c=0;for(let e=0;e<n;e++){let r=t.charCodeAt(e),l=r,u=!1;if(r>=55296&&r<=56319&&e+1<n){let n=t.charCodeAt(e+1);n>=56320&&n<=57343&&(l=(r-55296<<10)+65536|n-56320,u=!0)}i&&(a[e]=c,u&&(a[e+1]=c),l<=127?o[c+0]=e:l<=2047?(o[c+0]=e,o[c+1]=e):l<=65535?(o[c+0]=e,o[c+1]=e,o[c+2]=e):(o[c+0]=e,o[c+1]=e,o[c+2]=e,o[c+3]=e)),l<=127?s[c++]=l:l<=2047?(s[c++]=192|(l&1984)>>>6,s[c++]=128|(l&63)>>>0):l<=65535?(s[c++]=224|(l&61440)>>>12,s[c++]=128|(l&4032)>>>6,s[c++]=128|(l&63)>>>0):(s[c++]=240|(l&1835008)>>>18,s[c++]=128|(l&258048)>>>12,s[c++]=128|(l&4032)>>>6,s[c++]=128|(l&63)>>>0),u&&e++}this.utf16Length=n,this.utf8Length=r,this.utf16Value=t,this.utf8Value=s,this.utf16OffsetToUtf8=a,this.utf8OffsetToUtf16=o}static _utf8ByteLength(e){let t=0;for(let n=0,r=e.length;n<r;n++){let i=e.charCodeAt(n),a=i,o=!1;if(i>=55296&&i<=56319&&n+1<r){let t=e.charCodeAt(n+1);t>=56320&&t<=57343&&(a=(i-55296<<10)+65536|t-56320,o=!0)}a<=127?t+=1:a<=2047?t+=2:a<=65535?t+=3:t+=4,o&&n++}return t}createString(e){let t=e.omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}},Sl=class e{constructor(t){if(vl(this,`id`,++e.LAST_ID),vl(this,`_onigBinding`),vl(this,`content`),vl(this,`utf16Length`),vl(this,`utf8Length`),vl(this,`utf16OffsetToUtf8`),vl(this,`utf8OffsetToUtf16`),vl(this,`ptr`),!yl)throw new dl(`Must invoke loadWasm first.`);this._onigBinding=yl,this.content=t;let n=new xl(t);this.utf16Length=n.utf16Length,this.utf8Length=n.utf8Length,this.utf16OffsetToUtf8=n.utf16OffsetToUtf8,this.utf8OffsetToUtf16=n.utf8OffsetToUtf16,this.utf8Length<1e4&&!e._sharedPtrInUse?(e._sharedPtr||=yl.omalloc(1e4),e._sharedPtrInUse=!0,yl.HEAPU8.set(n.utf8Value,e._sharedPtr),this.ptr=e._sharedPtr):this.ptr=n.createString(yl)}convertUtf8OffsetToUtf16(e){return this.utf8OffsetToUtf16?e<0?0:e>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[e]:e}convertUtf16OffsetToUtf8(e){return this.utf16OffsetToUtf8?e<0?0:e>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[e]:e}dispose(){this.ptr===e._sharedPtr?e._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};vl(Sl,`LAST_ID`,0),vl(Sl,`_sharedPtr`,0),vl(Sl,`_sharedPtrInUse`,!1);var Cl=Sl,wl=class{constructor(e){if(vl(this,`_onigBinding`),vl(this,`_ptr`),!yl)throw new dl(`Must invoke loadWasm first.`);let t=[],n=[];for(let r=0,i=e.length;r<i;r++){let i=new xl(e[r]);t[r]=i.createString(yl),n[r]=i.utf8Length}let r=yl.omalloc(4*e.length);yl.HEAPU32.set(t,r/4);let i=yl.omalloc(4*e.length);yl.HEAPU32.set(n,i/4);let a=yl.createOnigScanner(r,i,e.length);for(let n=0,r=e.length;n<r;n++)yl.ofree(t[n]);yl.ofree(i),yl.ofree(r),a===0&&bl(yl),this._onigBinding=yl,this._ptr=a}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(e,t,n){let r=0;if(typeof n==`number`&&(r=n),typeof e==`string`){e=new Cl(e);let n=this._findNextMatchSync(e,t,!1,r);return e.dispose(),n}return this._findNextMatchSync(e,t,!1,r)}_findNextMatchSync(e,t,n,r){let i=this._onigBinding,a=i.findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),r);if(a===0)return null;let o=i.HEAPU32,s=a/4,c=o[s++],l=o[s++],u=[];for(let t=0;t<l;t++){let n=e.convertUtf8OffsetToUtf16(o[s++]),r=e.convertUtf8OffsetToUtf16(o[s++]);u[t]={start:n,end:r,length:r-n}}return{index:c,captureIndices:u}}};function Tl(e){return typeof e.instantiator==`function`}function El(e){return typeof e.default==`function`}function Dl(e){return e.data!==void 0}function Ol(e){return typeof Response<`u`&&e instanceof Response}function kl(e){return typeof ArrayBuffer<`u`&&(e instanceof ArrayBuffer||ArrayBuffer.isView(e))||typeof Buffer<`u`&&Buffer.isBuffer?.(e)||typeof SharedArrayBuffer<`u`&&e instanceof SharedArrayBuffer||typeof Uint32Array<`u`&&e instanceof Uint32Array}var Al;function jl(e){if(Al)return Al;async function t(){yl=await hl(async t=>{let n=e;return n=await n,typeof n==`function`&&(n=await n(t)),typeof n==`function`&&(n=await n(t)),Tl(n)?n=await n.instantiator(t):El(n)?n=await n.default(t):(Dl(n)&&(n=n.data),Ol(n)?n=typeof WebAssembly.instantiateStreaming==`function`?await Nl(n)(t):await Pl(n)(t):kl(n)||n instanceof WebAssembly.Module?n=await Ml(n)(t):`default`in n&&n.default instanceof WebAssembly.Module&&(n=await Ml(n.default)(t))),`instance`in n&&(n=n.instance),`exports`in n&&(n=n.exports),n})}return Al=t(),Al}function Ml(e){return t=>WebAssembly.instantiate(e,t)}function Nl(e){return t=>WebAssembly.instantiateStreaming(e,t)}function Pl(e){return async t=>{let n=await e.arrayBuffer();return WebAssembly.instantiate(n,t)}}async function Fl(e){return e&&await jl(e),{createScanner(e){return new wl(e.map(e=>typeof e==`string`?e:e.source))},createString(e){return new Cl(e)}}}var Il=rl({langs:ll,themes:ul,engine:()=>Fl(k(()=>import(`./wasm-BJZAGh5c.js`),[]))}),{codeToHtml:Ll,codeToHast:Rl,codeToTokens:zl,codeToTokensBase:Bl,codeToTokensWithThemes:Vl,getSingletonHighlighter:Hl,getLastGrammarState:Ul}=al(Il,{guessEmbeddedLanguages:Us});function Wl(e){if([...e].length!==1)throw Error(`Expected "${e}" to be a single code point`);return e.codePointAt(0)}function Gl(e,t,n){return e.has(t)||e.set(t,n),e.get(t)}var Kl=new Set([`alnum`,`alpha`,`ascii`,`blank`,`cntrl`,`digit`,`graph`,`lower`,`print`,`punct`,`space`,`upper`,`word`,`xdigit`]),ql=String.raw;function Jl(e,t){if(e==null)throw Error(t??`Value expected`);return e}var Yl=ql`\[\^?`,Xl=`c.? | C(?:-.?)?|${ql`[pP]\{(?:\^?[-\x20_]*[A-Za-z][-\x20\w]*\})?`}|${ql`x[89A-Fa-f]\p{AHex}(?:\\x[89A-Fa-f]\p{AHex})*`}|${ql`u(?:\p{AHex}{4})? | x\{[^\}]*\}? | x\p{AHex}{0,2}`}|${ql`o\{[^\}]*\}?`}|${ql`\d{1,3}`}`,Zl=/[?*+][?+]?|\{(?:\d+(?:,\d*)?|,\d+)\}\??/,Ql=new RegExp(ql`
|
|
16
16
|
\\ (?:
|
|
17
|
-
${
|
|
17
|
+
${Xl}
|
|
18
18
|
| [gk]<[^>]*>?
|
|
19
19
|
| [gk]'[^']*'?
|
|
20
20
|
| .
|
|
@@ -31,20 +31,20 @@ import{a as e,i as t,n,r}from"./chunk-Cyuzqnbw.js";import{i,r as a}from"./bundle
|
|
|
31
31
|
)?
|
|
32
32
|
| \*[^\)]*\)?
|
|
33
33
|
)?
|
|
34
|
-
| (?:${
|
|
35
|
-
| ${
|
|
34
|
+
| (?:${Zl.source})+
|
|
35
|
+
| ${Yl}
|
|
36
36
|
| .
|
|
37
|
-
`.replace(/\s+/g,``),`gsu`)
|
|
37
|
+
`.replace(/\s+/g,``),`gsu`),$l=new RegExp(ql`
|
|
38
38
|
\\ (?:
|
|
39
|
-
${
|
|
39
|
+
${Xl}
|
|
40
40
|
| .
|
|
41
41
|
)
|
|
42
42
|
| \[:(?:\^?\p{Alpha}+|\^):\]
|
|
43
|
-
| ${
|
|
43
|
+
| ${Yl}
|
|
44
44
|
| &&
|
|
45
45
|
| .
|
|
46
|
-
`.replace(/\s+/g,``),`gsu`);function
|
|
47
|
-
`,r);return{lastIndex:e===-1?t.length:e}}if(/^\s$/.test(n)){let e=/\s+/y;return e.lastIndex=r,{lastIndex:e.exec(t)?e.lastIndex:r}}}return n===`.`?{token:hu(`dot`,n)}:n===`^`||n===`$`?{token:cu(e.singleline?{"^":Yl`\A`,$:Yl`\Z`}[n]:n,n)}:n===`|`?{token:su(n)}:$l.test(n)?{tokens:Fu(n)}:{token:uu(Kl(n),n)}}function iu(e,t,n){let r=[mu(t[1]===`^`,t)],i=1,a;for(tu.lastIndex=n;a=tu.exec(e);){let e=a[0];if(e[0]===`[`&&e[1]!==`:`)i++,r.push(mu(e[1]===`^`,e));else if(e===`]`){if(r.at(-1).type===`CharacterClassOpen`)r.push(uu(93,e));else if(i--,r.push(du(e)),!i)break}else{let t=au(e);Array.isArray(t)?r.push(...t):r.push(t)}}return{tokens:r,lastIndex:tu.lastIndex||e.length}}function au(e){if(e[0]===`\\`)return ou(e,{inCharClass:!0});if(e[0]===`[`){let t=/\[:(?<negate>\^?)(?<name>[a-z]+):\]/.exec(e);if(!t||!Jl.has(t.groups.name))throw Error(`Invalid POSIX class "${e}"`);return hu(`posix`,e,{value:t.groups.name,negate:!!t.groups.negate})}return e===`-`?fu(e):e===`&&`?pu(e):uu(Kl(e),e)}function ou(e,{inCharClass:t}){let n=e[1];if(n===`c`||n===`C`)return Tu(e);if(`dDhHsSwW`.includes(n))return ku(e);if(e.startsWith(Yl`\o{`))throw Error(`Incomplete, invalid, or unsupported octal code point "${e}"`);if(/^\\[pP]\{/.test(e)){if(e.length===3)throw Error(`Incomplete or invalid Unicode property "${e}"`);return Au(e)}if(/^\\x[89A-Fa-f]\p{AHex}/u.test(e))try{let t=e.split(/\\x/).slice(1).map(e=>parseInt(e,16)),n=new TextDecoder(`utf-8`,{ignoreBOM:!0,fatal:!0}).decode(new Uint8Array(t)),r=new TextEncoder;return[...n].map(e=>{let t=[...r.encode(e)].map(e=>`\\x${e.toString(16)}`).join(``);return uu(Kl(e),t)})}catch{throw Error(`Multibyte code "${e}" incomplete or invalid in Oniguruma`)}if(n===`u`||n===`x`)return uu(Nu(e),e);if(wu.has(n))return uu(wu.get(n),e);if(/\d/.test(n))return _u(t,e);if(e===`\\`)throw Error(Yl`Incomplete escape "\"`);if(n===`M`)throw Error(`Unsupported meta "${e}"`);if([...e].length===2)return uu(e.codePointAt(1),e);throw Error(`Unexpected escape "${e}"`)}function su(e){return{type:`Alternator`,raw:e}}function cu(e,t){return{type:`Assertion`,kind:e,raw:t}}function lu(e){return{type:`Backreference`,raw:e}}function uu(e,t){return{type:`Character`,value:e,raw:t}}function du(e){return{type:`CharacterClassClose`,raw:e}}function fu(e){return{type:`CharacterClassHyphen`,raw:e}}function pu(e){return{type:`CharacterClassIntersector`,raw:e}}function mu(e,t){return{type:`CharacterClassOpen`,negate:e,raw:t}}function hu(e,t,n={}){return{type:`CharacterSet`,kind:e,...n,raw:t}}function gu(e,t,n={}){return e===`keep`?{type:`Directive`,kind:e,raw:t}:{type:`Directive`,kind:e,flags:Xl(n.flags),raw:t}}function _u(e,t){return{type:`EscapedNumber`,inCharClass:e,raw:t}}function vu(e){return{type:`GroupClose`,raw:e}}function yu(e,t,n={}){return{type:`GroupOpen`,kind:e,...n,raw:t}}function bu(e,t,n,r){return{type:`NamedCallout`,kind:e,tag:t,arguments:n,raw:r}}function xu(e,t,n,r){return{type:`Quantifier`,kind:e,min:t,max:n,raw:r}}function Su(e){return{type:`Subroutine`,raw:e}}var Cu=new Set([`COUNT`,`CMP`,`ERROR`,`FAIL`,`MAX`,`MISMATCH`,`SKIP`,`TOTAL_COUNT`]),wu=new Map([[`a`,7],[`b`,8],[`e`,27],[`f`,12],[`n`,10],[`r`,13],[`t`,9],[`v`,11]]);function Tu(e){let t=e[1]===`c`?e[2]:e[3];if(!t||!/[A-Za-z]/.test(t))throw Error(`Unsupported control character "${e}"`);return uu(Kl(t.toUpperCase())-64,e)}function Eu(e,t){let{on:n,off:r}=/^\(\?(?<on>[imx]*)(?:-(?<off>[-imx]*))?/.exec(e).groups;r??=``;let i=(t.getCurrentModX()||n.includes(`x`))&&!r.includes(`x`),a=ju(n),o=ju(r),s={};if(a&&(s.enable=a),o&&(s.disable=o),e.endsWith(`)`))return t.replaceCurrentModX(i),gu(`flags`,e,{flags:s});if(e.endsWith(`:`))return t.pushModX(i),t.numOpenGroups++,yu(`group`,e,{...(a||o)&&{flags:s}});throw Error(`Unexpected flag modifier "${e}"`)}function Du(e){let t=/\(\*(?<name>[A-Za-z_]\w*)?(?:\[(?<tag>(?:[A-Za-z_]\w*)?)\])?(?:\{(?<args>[^}]*)\})?\)/.exec(e);if(!t)throw Error(`Incomplete or invalid named callout "${e}"`);let{name:n,tag:r,args:i}=t.groups;if(!n)throw Error(`Invalid named callout "${e}"`);if(r===``)throw Error(`Named callout tag with empty value not allowed "${e}"`);let a=i?i.split(`,`).filter(e=>e!==``).map(e=>/^[+-]?\d+$/.test(e)?+e:e):[],[o,s,c]=a,l=Cu.has(n)?n.toLowerCase():`custom`;switch(l){case`fail`:case`mismatch`:case`skip`:if(a.length>0)throw Error(`Named callout arguments not allowed "${a}"`);break;case`error`:if(a.length>1)throw Error(`Named callout allows only one argument "${a}"`);if(typeof o==`string`)throw Error(`Named callout argument must be a number "${o}"`);break;case`max`:if(!a.length||a.length>2)throw Error(`Named callout must have one or two arguments "${a}"`);if(typeof o==`string`&&!/^[A-Za-z_]\w*$/.test(o))throw Error(`Named callout argument one must be a tag or number "${o}"`);if(a.length===2&&(typeof s==`number`||!/^[<>X]$/.test(s)))throw Error(`Named callout optional argument two must be '<', '>', or 'X' "${s}"`);break;case`count`:case`total_count`:if(a.length>1)throw Error(`Named callout allows only one argument "${a}"`);if(a.length===1&&(typeof o==`number`||!/^[<>X]$/.test(o)))throw Error(`Named callout optional argument must be '<', '>', or 'X' "${o}"`);break;case`cmp`:if(a.length!==3)throw Error(`Named callout must have three arguments "${a}"`);if(typeof o==`string`&&!/^[A-Za-z_]\w*$/.test(o))throw Error(`Named callout argument one must be a tag or number "${o}"`);if(typeof s==`number`||!/^(?:[<>!=]=|[<>])$/.test(s))throw Error(`Named callout argument two must be '==', '!=', '>', '<', '>=', or '<=' "${s}"`);if(typeof c==`string`&&!/^[A-Za-z_]\w*$/.test(c))throw Error(`Named callout argument three must be a tag or number "${c}"`);break;case`custom`:throw Error(`Undefined callout name "${n}"`);default:throw Error(`Unexpected named callout kind "${l}"`)}return bu(l,r??null,i?.split(`,`)??null,e)}function Ou(e){let t=null,n,r;if(e[0]===`{`){let{minStr:i,maxStr:a}=/^\{(?<minStr>\d*)(?:,(?<maxStr>\d*))?/.exec(e).groups,o=1e5;if(+i>o||a&&+a>o)throw Error(`Quantifier value unsupported in Oniguruma`);if(n=+i,r=a===void 0?+i:a===``?1/0:+a,n>r&&(t=`possessive`,[n,r]=[r,n]),e.endsWith(`?`)){if(t===`possessive`)throw Error(`Unsupported possessive interval quantifier chain with "?"`);t=`lazy`}else t||=`greedy`}else n=+(e[0]===`+`),r=e[0]===`?`?1:1/0,t=e[1]===`+`?`possessive`:e[1]===`?`?`lazy`:`greedy`;return xu(t,n,r,e)}function ku(e){let t=e[1].toLowerCase();return hu({d:`digit`,h:`hex`,s:`space`,w:`word`}[t],e,{negate:e[1]!==t})}function Au(e){let{p:t,neg:n,value:r}=/^\\(?<p>[pP])\{(?<neg>\^?)(?<value>[^}]+)/.exec(e).groups;return hu(`property`,e,{value:r,negate:t===`P`&&!n||t===`p`&&!!n})}function ju(e){let t={};return e.includes(`i`)&&(t.ignoreCase=!0),e.includes(`m`)&&(t.dotAll=!0),e.includes(`x`)&&(t.extended=!0),Object.keys(t).length?t:null}function Mu(e){let t={ignoreCase:!1,dotAll:!1,extended:!1,digitIsAscii:!1,posixIsAscii:!1,spaceIsAscii:!1,wordIsAscii:!1,textSegmentMode:null};for(let n=0;n<e.length;n++){let r=e[n];if(!`imxDPSWy`.includes(r))throw Error(`Invalid flag "${r}"`);if(r===`y`){if(!/^y{[gw]}/.test(e.slice(n)))throw Error(`Invalid or unspecified flag "y" mode`);t.textSegmentMode=e[n+2]===`g`?`grapheme`:`word`,n+=3;continue}t[{i:`ignoreCase`,m:`dotAll`,x:`extended`,D:`digitIsAscii`,P:`posixIsAscii`,S:`spaceIsAscii`,W:`wordIsAscii`}[r]]=!0}return t}function Nu(e){if(/^(?:\\u(?!\p{AHex}{4})|\\x(?!\p{AHex}{1,2}|\{\p{AHex}{1,8}\}))/u.test(e))throw Error(`Incomplete or invalid escape "${e}"`);let t=e[2]===`{`?/^\\x\{\s*(?<hex>\p{AHex}+)/u.exec(e).groups.hex:e.slice(2);return parseInt(t,16)}function Pu(e,t){let{raw:n,inCharClass:r}=e,i=n.slice(1);if(!r&&(i!==`0`&&i.length===1||i[0]!==`0`&&+i<=t))return[lu(n)];let a=[],o=i.match(/^[0-7]+|\d/g);for(let e=0;e<o.length;e++){let t=o[e],r;if(e===0&&t!==`8`&&t!==`9`){if(r=parseInt(t,8),r>127)throw Error(Yl`Octal encoded byte above 177 unsupported "${n}"`)}else r=Kl(t);a.push(uu(r,(e===0?`\\`:``)+t))}return a}function Fu(e){let t=[],n=new RegExp($l,`gy`),r;for(;r=n.exec(e);){let e=r[0];if(e[0]===`{`){let r=/^\{(?<min>\d+),(?<max>\d+)\}\??$/.exec(e);if(r){let{min:i,max:a}=r.groups;if(+i>+a&&e.endsWith(`?`)){n.lastIndex--,t.push(Ou(e.slice(0,-1)));continue}}}t.push(Ou(e))}return t}function Iu(e,t){if(!Array.isArray(e.body))throw Error(`Expected node with body array`);if(e.body.length!==1)return!1;let n=e.body[0];return!t||Object.keys(t).every(e=>t[e]===n[e])}function Lu(e){return Ru.has(e.type)}var Ru=new Set([`AbsenceFunction`,`Backreference`,`CapturingGroup`,`Character`,`CharacterClass`,`CharacterSet`,`Group`,`Quantifier`,`Subroutine`]);function zu(e,t={}){let n={flags:``,normalizeUnknownPropertyNames:!1,skipBackrefValidation:!1,skipLookbehindValidation:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t,rules:{captureGroup:!1,singleline:!1,...t.rules}},r=nu(e,{flags:n.flags,rules:{captureGroup:n.rules.captureGroup,singleline:n.rules.singleline}}),i=(e,t)=>{let n=r.tokens[a.nextIndex];switch(a.parent=e,a.nextIndex++,n.type){case`Alternator`:return Yu();case`Assertion`:return Bu(n);case`Backreference`:return Vu(n,a);case`Character`:return $u(n.value,{useLastValid:!!t.isCheckingRangeEnd});case`CharacterClassHyphen`:return Hu(n,a,t);case`CharacterClassOpen`:return Uu(n,a,t);case`CharacterSet`:return Wu(n,a);case`Directive`:return rd(n.kind,{flags:n.flags});case`GroupOpen`:return Gu(n,a,t);case`NamedCallout`:return sd(n.kind,n.tag,n.arguments);case`Quantifier`:return Ku(n,a);case`Subroutine`:return qu(n,a);default:throw Error(`Unexpected token type "${n.type}"`)}},a={capturingGroups:[],hasNumberedRef:!1,namedGroupsByName:new Map,nextIndex:0,normalizeUnknownPropertyNames:n.normalizeUnknownPropertyNames,parent:null,skipBackrefValidation:n.skipBackrefValidation,skipLookbehindValidation:n.skipLookbehindValidation,skipPropertyNameValidation:n.skipPropertyNameValidation,subroutines:[],tokens:r.tokens,unicodePropertyMap:n.unicodePropertyMap,walk:i},o=ud(id(r.flags)),s=o.body[0];for(;a.nextIndex<r.tokens.length;){let e=i(s,{});e.type===`Alternative`?(o.body.push(e),s=e):s.body.push(e)}let{capturingGroups:c,hasNumberedRef:l,namedGroupsByName:u,subroutines:d}=a;if(l&&u.size&&!n.rules.captureGroup)throw Error(`Numbered backref/subroutine not allowed when using named capture`);for(let{ref:e}of d)if(typeof e==`number`){if(e>c.length)throw Error(`Subroutine uses a group number that's not defined`);e&&(c[e-1].isSubroutined=!0)}else if(u.has(e)){if(u.get(e).length>1)throw Error(Yl`Subroutine uses a duplicate group name "\g<${e}>"`);u.get(e)[0].isSubroutined=!0}else throw Error(Yl`Subroutine uses a group name that's not defined "\g<${e}>"`);return o}function Bu({kind:e}){return Xu(Xl({"^":`line_start`,$:`line_end`,"\\A":`string_start`,"\\b":`word_boundary`,"\\B":`word_boundary`,"\\G":`search_start`,"\\y":`text_segment_boundary`,"\\Y":`text_segment_boundary`,"\\z":`string_end`,"\\Z":`string_end_newline`}[e],`Unexpected assertion kind "${e}"`),{negate:e===Yl`\B`||e===Yl`\Y`})}function Vu({raw:e},t){let n=/^\\k[<']/.test(e),r=n?e.slice(3,-1):e.slice(1),i=(n,r=!1)=>{let i=t.capturingGroups.length,a=!1;if(n>i)if(t.skipBackrefValidation)a=!0;else throw Error(`Not enough capturing groups defined to the left "${e}"`);return t.hasNumberedRef=!0,Zu(r?i+1-n:n,{orphan:a})};if(n){let n=/^(?<sign>-?)0*(?<num>[1-9]\d*)$/.exec(r);if(n)return i(+n.groups.num,!!n.groups.sign);if(/[-+]/.test(r))throw Error(`Invalid backref name "${e}"`);if(!t.namedGroupsByName.has(r))throw Error(`Group name not defined to the left "${e}"`);return Zu(r)}return i(+r)}function Hu(e,t,n){let{tokens:r,walk:i}=t,a=t.parent,o=a.body.at(-1),s=r[t.nextIndex];if(!n.isCheckingRangeEnd&&o&&o.type!==`CharacterClass`&&o.type!==`CharacterClassRange`&&s&&s.type!==`CharacterClassOpen`&&s.type!==`CharacterClassClose`&&s.type!==`CharacterClassIntersector`){let e=i(a,{...n,isCheckingRangeEnd:!0});if(o.type===`Character`&&e.type===`Character`)return a.body.pop(),td(o,e);throw Error(`Invalid character class range`)}return $u(Kl(`-`))}function Uu({negate:e},t,n){let{tokens:r,walk:i}=t,a=[ed()],o=r[t.nextIndex],s=xd(o);for(;s.type!==`CharacterClassClose`;){if(s.type===`CharacterClassIntersector`)a.push(ed()),t.nextIndex++;else{let e=a.at(-1);e.body.push(i(e,n))}s=xd(r[t.nextIndex],o)}let c=ed({negate:e});return a.length===1?c.body=a[0].body:(c.kind=`intersection`,c.body=a.map(e=>e.body.length===1?e.body[0]:e)),t.nextIndex++,c}function Wu({kind:e,negate:t,value:n},r){let{normalizeUnknownPropertyNames:i,skipPropertyNameValidation:a,unicodePropertyMap:o}=r;if(e===`property`){let r=bd(n);if(Jl.has(r)&&!o?.has(r))e=`posix`,n=r;else return fd(n,{negate:t,normalizeUnknownPropertyNames:i,skipPropertyNameValidation:a,unicodePropertyMap:o})}return e===`posix`?cd(n,{negate:t}):nd(e,{negate:t})}function Gu(e,t,n){let{tokens:r,capturingGroups:i,namedGroupsByName:a,skipLookbehindValidation:o,walk:s}=t,c=pd(e),l=c.type===`AbsenceFunction`,u=_d(c),d=u&&c.negate;if(c.type===`CapturingGroup`&&(i.push(c),c.name&&ql(a,c.name,[]).push(c)),l&&n.isInAbsenceFunction)throw Error(`Nested absence function not supported by Oniguruma`);let f=Sd(r[t.nextIndex]);for(;f.type!==`GroupClose`;){if(f.type===`Alternator`)c.body.push(Yu()),t.nextIndex++;else{let e=c.body.at(-1),t=s(e,{...n,isInAbsenceFunction:n.isInAbsenceFunction||l,isInLookbehind:n.isInLookbehind||u,isInNegLookbehind:n.isInNegLookbehind||d});if(e.body.push(t),(u||n.isInLookbehind)&&!o){let e=`Lookbehind includes a pattern not allowed by Oniguruma`;if(d||n.isInNegLookbehind){if(gd(t)||t.type===`CapturingGroup`)throw Error(e)}else if(gd(t)||_d(t)&&t.negate)throw Error(e)}}f=Sd(r[t.nextIndex])}return t.nextIndex++,c}function Ku({kind:e,min:t,max:n},r){let i=r.parent,a=i.body.at(-1);if(!a||!Lu(a))throw Error(`Quantifier requires a repeatable token`);let o=ld(e,t,n,a);return i.body.pop(),o}function qu({raw:e},t){let{capturingGroups:n,subroutines:r}=t,i=e.slice(3,-1),a=/^(?<sign>[-+]?)0*(?<num>[1-9]\d*)$/.exec(i);if(a){let e=+a.groups.num,r=n.length;if(t.hasNumberedRef=!0,i={"":e,"+":r+e,"-":r+1-e}[a.groups.sign],i<1)throw Error(`Invalid subroutine number`)}else i===`0`&&(i=0);let o=dd(i);return r.push(o),o}function Ju(e,t){if(e!==`repeater`)throw Error(`Unexpected absence function kind "${e}"`);return{type:`AbsenceFunction`,kind:e,body:md(t?.body)}}function Yu(e){return{type:`Alternative`,body:hd(e?.body)}}function Xu(e,t){let n={type:`Assertion`,kind:e};return(e===`word_boundary`||e===`text_segment_boundary`)&&(n.negate=!!t?.negate),n}function Zu(e,t){let n=!!t?.orphan;return{type:`Backreference`,ref:e,...n&&{orphan:n}}}function Qu(e,t){let n={name:void 0,isSubroutined:!1,...t};if(n.name!==void 0&&!vd(n.name))throw Error(`Group name "${n.name}" invalid in Oniguruma`);return{type:`CapturingGroup`,number:e,...n.name&&{name:n.name},...n.isSubroutined&&{isSubroutined:n.isSubroutined},body:md(t?.body)}}function $u(e,t){let n={useLastValid:!1,...t};if(e>1114111){let t=e.toString(16);if(n.useLastValid)e=1114111;else throw Error(e>1310719?`Invalid code point out of range "\\x{${t}}"`:`Invalid code point out of range in JS "\\x{${t}}"`)}return{type:`Character`,value:e}}function ed(e){let t={kind:`union`,negate:!1,...e};return{type:`CharacterClass`,kind:t.kind,negate:t.negate,body:hd(e?.body)}}function td(e,t){if(t.value<e.value)throw Error(`Character class range out of order`);return{type:`CharacterClassRange`,min:e,max:t}}function nd(e,t){let n=!!t?.negate,r={type:`CharacterSet`,kind:e};return(e===`digit`||e===`hex`||e===`newline`||e===`space`||e===`word`)&&(r.negate=n),(e===`text_segment`||e===`newline`&&!n)&&(r.variableLength=!0),r}function rd(e,t={}){if(e===`keep`)return{type:`Directive`,kind:e};if(e===`flags`)return{type:`Directive`,kind:e,flags:Xl(t.flags)};throw Error(`Unexpected directive kind "${e}"`)}function id(e){return{type:`Flags`,...e}}function ad(e){let t=e?.atomic,n=e?.flags;if(t&&n)throw Error(`Atomic group cannot have flags`);return{type:`Group`,...t&&{atomic:t},...n&&{flags:n},body:md(e?.body)}}function od(e){let t={behind:!1,negate:!1,...e};return{type:`LookaroundAssertion`,kind:t.behind?`lookbehind`:`lookahead`,negate:t.negate,body:md(e?.body)}}function sd(e,t,n){return{type:`NamedCallout`,kind:e,tag:t,arguments:n}}function cd(e,t){let n=!!t?.negate;if(!Jl.has(e))throw Error(`Invalid POSIX class "${e}"`);return{type:`CharacterSet`,kind:`posix`,value:e,negate:n}}function ld(e,t,n,r){if(t>n)throw Error(`Invalid reversed quantifier range`);return{type:`Quantifier`,kind:e,min:t,max:n,body:r}}function ud(e,t){return{type:`Regex`,body:md(t?.body),flags:e}}function dd(e){return{type:`Subroutine`,ref:e}}function fd(e,t){let n={negate:!1,normalizeUnknownPropertyNames:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t},r=n.unicodePropertyMap?.get(bd(e));if(!r){if(n.normalizeUnknownPropertyNames)r=yd(e);else if(n.unicodePropertyMap&&!n.skipPropertyNameValidation)throw Error(Yl`Invalid Unicode property "\p{${e}}"`)}return{type:`CharacterSet`,kind:`property`,value:r??e,negate:n.negate}}function pd({flags:e,kind:t,name:n,negate:r,number:i}){switch(t){case`absence_repeater`:return Ju(`repeater`);case`atomic`:return ad({atomic:!0});case`capturing`:return Qu(i,{name:n});case`group`:return ad({flags:e});case`lookahead`:case`lookbehind`:return od({behind:t===`lookbehind`,negate:r});default:throw Error(`Unexpected group kind "${t}"`)}}function md(e){if(e===void 0)e=[Yu()];else if(!Array.isArray(e)||!e.length||!e.every(e=>e.type===`Alternative`))throw Error(`Invalid body; expected array of one or more Alternative nodes`);return e}function hd(e){if(e===void 0)e=[];else if(!Array.isArray(e)||!e.every(e=>!!e.type))throw Error(`Invalid body; expected array of nodes`);return e}function gd(e){return e.type===`LookaroundAssertion`&&e.kind===`lookahead`}function _d(e){return e.type===`LookaroundAssertion`&&e.kind===`lookbehind`}function vd(e){return/^[\p{Alpha}\p{Pc}][^)]*$/u.test(e)}function yd(e){return e.trim().replace(/[- _]+/g,`_`).replace(/[A-Z][a-z]+(?=[A-Z])/g,`$&_`).replace(/[A-Za-z]+/g,e=>e[0].toUpperCase()+e.slice(1).toLowerCase())}function bd(e){return e.replace(/[- _]+/g,``).toLowerCase()}function xd(e,t){let n=t;return Xl(e,`Unclosed character class${n?.type===`Character`&&n.value===93&&n.raw===`]`?` (started with "]")`:``}`)}function Sd(e){return Xl(e,`Unclosed group`)}function Cd(e,t,n=null){function r(e,t){for(let n=0;n<e.length;n++){let r=i(e[n],t,n,e);n=Math.max(-1,n+r)}}function i(a,o=null,s=null,c=null){let l=0,u=!1,d={node:a,parent:o,key:s,container:c,root:e,remove(){wd(c).splice(Math.max(0,Td(s)+l),1),l--,u=!0},removeAllNextSiblings(){return wd(c).splice(Td(s)+1)},removeAllPrevSiblings(){let e=Td(s)+l;return l-=e,wd(c).splice(0,Math.max(0,e))},replaceWith(e,t={}){let n=!!t.traverse;c?c[Math.max(0,Td(s)+l)]=e:Xl(o,`Can't replace root node`)[s]=e,n&&i(e,o,s,c),u=!0},replaceWithMultiple(e,t={}){let n=!!t.traverse;if(wd(c).splice(Math.max(0,Td(s)+l),1,...e),l+=e.length-1,n){let t=0;for(let n=0;n<e.length;n++)t+=i(e[n],o,Td(s)+n+t,c)}u=!0},skip(){u=!0}},{type:f}=a,p=t[`*`],m=t[f],h=typeof p==`function`?p:p?.enter,g=typeof m==`function`?m:m?.enter;if(h?.(d,n),g?.(d,n),!u)switch(f){case`AbsenceFunction`:case`Alternative`:case`CapturingGroup`:case`CharacterClass`:case`Group`:case`LookaroundAssertion`:r(a.body,a);break;case`Assertion`:case`Backreference`:case`Character`:case`CharacterSet`:case`Directive`:case`Flags`:case`NamedCallout`:case`Subroutine`:break;case`CharacterClassRange`:i(a.min,a,`min`),i(a.max,a,`max`);break;case`Quantifier`:i(a.body,a,`body`);break;case`Regex`:r(a.body,a),i(a.flags,a,`flags`);break;default:throw Error(`Unexpected node type "${f}"`)}return m?.exit?.(d,n),p?.exit?.(d,n),l}return i(e),e}function wd(e){if(!Array.isArray(e))throw Error(`Container expected`);return e}function Td(e){if(typeof e!=`number`)throw Error(`Numeric key expected`);return e}var Ed=String.raw`\(\?(?:[:=!>A-Za-z\-]|<[=!]|\(DEFINE\))`;function Dd(e,t){for(let n=0;n<e.length;n++)e[n]>=t&&e[n]++}function Od(e,t,n,r){return e.slice(0,t)+r+e.slice(t+n.length)}var kd=Object.freeze({DEFAULT:`DEFAULT`,CHAR_CLASS:`CHAR_CLASS`});function Ad(e,t,n,r){let i=new RegExp(String.raw`${t}|(?<$skip>\[\^?|\\?.)`,`gsu`),a=[!1],o=0,s=``;for(let t of e.matchAll(i)){let{0:e,groups:{$skip:i}}=t;if(!i&&(!r||r===kd.DEFAULT==!o)){n instanceof Function?s+=n(t,{context:o?kd.CHAR_CLASS:kd.DEFAULT,negated:a[a.length-1]}):s+=n;continue}e[0]===`[`?(o++,a.push(e[1]===`^`)):e===`]`&&o&&(o--,a.pop()),s+=e}return s}function jd(e,t,n,r){Ad(e,t,n,r)}function Md(e,t,n=0,r){if(!new RegExp(t,`su`).test(e))return null;let i=RegExp(`${t}|(?<$skip>\\\\?.)`,`gsu`);i.lastIndex=n;let a=0,o;for(;o=i.exec(e);){let{0:e,groups:{$skip:t}}=o;if(!t&&(!r||r===kd.DEFAULT==!a))return o;e===`[`?a++:e===`]`&&a&&a--,i.lastIndex==o.index&&i.lastIndex++}return null}function Nd(e,t,n){return!!Md(e,t,0,n)}function Pd(e,t){let n=/\\?./gsu;n.lastIndex=t;let r=e.length,i=0,a=1,o;for(;o=n.exec(e);){let[e]=o;if(e===`[`)i++;else if(i)e===`]`&&i--;else if(e===`(`)a++;else if(e===`)`&&(a--,!a)){r=o.index;break}}return e.slice(t,r)}var Fd=new RegExp(String.raw`(?<noncapturingStart>${Ed})|(?<capturingStart>\((?:\?<[^>]+>)?)|\\?.`,`gsu`);function Id(e,t){let n=t?.hiddenCaptures??[],r=t?.captureTransfers??new Map;if(!/\(\?>/.test(e))return{pattern:e,captureTransfers:r,hiddenCaptures:n};let i=[0],a=[],o=0,s=0,c=NaN,l;do{l=!1;let t=0,u=0,d=!1,f;for(Fd.lastIndex=Number.isNaN(c)?0:c+7;f=Fd.exec(e);){let{0:p,index:m,groups:{capturingStart:h,noncapturingStart:g}}=f;if(p===`[`)t++;else if(t)p===`]`&&t--;else if(p===`(?>`&&!d)c=m,d=!0;else if(d&&g)u++;else if(h)d?u++:(o++,i.push(o+s));else if(p===`)`&&d){if(!u){s++;let t=o+s;if(e=`${e.slice(0,c)}(?:(?=(${e.slice(c+3,m)}))<$$${t}>)${e.slice(m+1)}`,l=!0,a.push(t),Dd(n,t),r.size){let e=new Map;r.forEach((n,r)=>{e.set(r>=t?r+1:r,n.map(e=>e>=t?e+1:e))}),r=e}break}u--}}}while(l);return n.push(...a),e=Ad(e,String.raw`\\(?<backrefNum>[1-9]\d*)|<\$\$(?<wrappedBackrefNum>\d+)>`,({0:e,groups:{backrefNum:t,wrappedBackrefNum:n}})=>{if(t){let n=+t;if(n>i.length-1)throw Error(`Backref "${e}" greater than number of captures`);return`\\${i[n]}`}return`\\${n}`},kd.DEFAULT),{pattern:e,captureTransfers:r,hiddenCaptures:n}}var Ld=String.raw`(?:[?*+]|\{\d+(?:,\d*)?\})`,Rd=new RegExp(String.raw`
|
|
46
|
+
`.replace(/\s+/g,``),`gsu`);function eu(e,t={}){let n={flags:``,...t,rules:{captureGroup:!1,singleline:!1,...t.rules}};if(typeof e!=`string`)throw Error(`String expected as pattern`);let r=Au(n.flags),i=[r.extended],a={captureGroup:n.rules.captureGroup,getCurrentModX(){return i.at(-1)},numOpenGroups:0,popModX(){i.pop()},pushModX(e){i.push(e)},replaceCurrentModX(e){i[i.length-1]=e},singleline:n.rules.singleline},o=[],s;for(Ql.lastIndex=0;s=Ql.exec(e);){let t=tu(a,e,s[0],Ql.lastIndex);t.tokens?o.push(...t.tokens):t.token&&o.push(t.token),t.lastIndex!==void 0&&(Ql.lastIndex=t.lastIndex)}let c=[],l=0;o.filter(e=>e.type===`GroupOpen`).forEach(e=>{e.kind===`capturing`?e.number=++l:e.raw===`(`&&c.push(e)}),l||c.forEach((e,t)=>{e.kind=`capturing`,e.number=t+1});let u=l||c.length;return{tokens:o.map(e=>e.type===`EscapedNumber`?Mu(e,u):e).flat(),flags:r}}function tu(e,t,n,r){let[i,a]=n;if(n===`[`||n===`[^`){let e=nu(t,n,r);return{tokens:e.tokens,lastIndex:e.lastIndex}}if(i===`\\`){if(`AbBGyYzZ`.includes(a))return{token:ou(n,n)};if(/^\\g[<']/.test(n)){if(!/^\\g(?:<[^>]+>|'[^']+')$/.test(n))throw Error(`Invalid group name "${n}"`);return{token:bu(n)}}if(/^\\k[<']/.test(n)){if(!/^\\k(?:<[^>]+>|'[^']+')$/.test(n))throw Error(`Invalid group name "${n}"`);return{token:su(n)}}if(a===`K`)return{token:mu(`keep`,n)};if(a===`N`||a===`R`)return{token:pu(`newline`,n,{negate:a===`N`})};if(a===`O`)return{token:pu(`any`,n)};if(a===`X`)return{token:pu(`text_segment`,n)};let e=iu(n,{inCharClass:!1});return Array.isArray(e)?{tokens:e}:{token:e}}if(i===`(`){if(a===`*`)return{token:Tu(n)};if(n===`(?{`)throw Error(`Unsupported callout "${n}"`);if(n.startsWith(`(?#`)){if(t[r]!==`)`)throw Error(`Unclosed comment group "(?#"`);return{lastIndex:r+1}}if(/^\(\?[-imx]+[:)]$/.test(n))return{token:wu(n,e)};if(e.pushModX(e.getCurrentModX()),e.numOpenGroups++,n===`(`&&!e.captureGroup||n===`(?:`)return{token:_u(`group`,n)};if(n===`(?>`)return{token:_u(`atomic`,n)};if(n===`(?=`||n===`(?!`||n===`(?<=`||n===`(?<!`)return{token:_u(n[2]===`<`?`lookbehind`:`lookahead`,n,{negate:n.endsWith(`!`)})};if(n===`(`&&e.captureGroup||n.startsWith(`(?<`)&&n.endsWith(`>`)||n.startsWith(`(?'`)&&n.endsWith(`'`))return{token:_u(`capturing`,n,{...n!==`(`&&{name:n.slice(3,-1)}})};if(n.startsWith(`(?~`)){if(n===`(?~|`)throw Error(`Unsupported absence function kind "${n}"`);return{token:_u(`absence_repeater`,n)}}throw Error(n===`(?(`?`Unsupported conditional "${n}"`:`Invalid or unsupported group option "${n}"`)}if(n===`)`){if(e.popModX(),e.numOpenGroups--,e.numOpenGroups<0)throw Error(`Unmatched ")"`);return{token:gu(n)}}if(e.getCurrentModX()){if(n===`#`){let e=t.indexOf(`
|
|
47
|
+
`,r);return{lastIndex:e===-1?t.length:e}}if(/^\s$/.test(n)){let e=/\s+/y;return e.lastIndex=r,{lastIndex:e.exec(t)?e.lastIndex:r}}}return n===`.`?{token:pu(`dot`,n)}:n===`^`||n===`$`?{token:ou(e.singleline?{"^":ql`\A`,$:ql`\Z`}[n]:n,n)}:n===`|`?{token:au(n)}:Zl.test(n)?{tokens:Nu(n)}:{token:cu(Wl(n),n)}}function nu(e,t,n){let r=[fu(t[1]===`^`,t)],i=1,a;for($l.lastIndex=n;a=$l.exec(e);){let e=a[0];if(e[0]===`[`&&e[1]!==`:`)i++,r.push(fu(e[1]===`^`,e));else if(e===`]`){if(r.at(-1).type===`CharacterClassOpen`)r.push(cu(93,e));else if(i--,r.push(lu(e)),!i)break}else{let t=ru(e);Array.isArray(t)?r.push(...t):r.push(t)}}return{tokens:r,lastIndex:$l.lastIndex||e.length}}function ru(e){if(e[0]===`\\`)return iu(e,{inCharClass:!0});if(e[0]===`[`){let t=/\[:(?<negate>\^?)(?<name>[a-z]+):\]/.exec(e);if(!t||!Kl.has(t.groups.name))throw Error(`Invalid POSIX class "${e}"`);return pu(`posix`,e,{value:t.groups.name,negate:!!t.groups.negate})}return e===`-`?uu(e):e===`&&`?du(e):cu(Wl(e),e)}function iu(e,{inCharClass:t}){let n=e[1];if(n===`c`||n===`C`)return Cu(e);if(`dDhHsSwW`.includes(n))return Du(e);if(e.startsWith(ql`\o{`))throw Error(`Incomplete, invalid, or unsupported octal code point "${e}"`);if(/^\\[pP]\{/.test(e)){if(e.length===3)throw Error(`Incomplete or invalid Unicode property "${e}"`);return Ou(e)}if(/^\\x[89A-Fa-f]\p{AHex}/u.test(e))try{let t=e.split(/\\x/).slice(1).map(e=>parseInt(e,16)),n=new TextDecoder(`utf-8`,{ignoreBOM:!0,fatal:!0}).decode(new Uint8Array(t)),r=new TextEncoder;return[...n].map(e=>{let t=[...r.encode(e)].map(e=>`\\x${e.toString(16)}`).join(``);return cu(Wl(e),t)})}catch{throw Error(`Multibyte code "${e}" incomplete or invalid in Oniguruma`)}if(n===`u`||n===`x`)return cu(ju(e),e);if(Su.has(n))return cu(Su.get(n),e);if(/\d/.test(n))return hu(t,e);if(e===`\\`)throw Error(ql`Incomplete escape "\"`);if(n===`M`)throw Error(`Unsupported meta "${e}"`);if([...e].length===2)return cu(e.codePointAt(1),e);throw Error(`Unexpected escape "${e}"`)}function au(e){return{type:`Alternator`,raw:e}}function ou(e,t){return{type:`Assertion`,kind:e,raw:t}}function su(e){return{type:`Backreference`,raw:e}}function cu(e,t){return{type:`Character`,value:e,raw:t}}function lu(e){return{type:`CharacterClassClose`,raw:e}}function uu(e){return{type:`CharacterClassHyphen`,raw:e}}function du(e){return{type:`CharacterClassIntersector`,raw:e}}function fu(e,t){return{type:`CharacterClassOpen`,negate:e,raw:t}}function pu(e,t,n={}){return{type:`CharacterSet`,kind:e,...n,raw:t}}function mu(e,t,n={}){return e===`keep`?{type:`Directive`,kind:e,raw:t}:{type:`Directive`,kind:e,flags:Jl(n.flags),raw:t}}function hu(e,t){return{type:`EscapedNumber`,inCharClass:e,raw:t}}function gu(e){return{type:`GroupClose`,raw:e}}function _u(e,t,n={}){return{type:`GroupOpen`,kind:e,...n,raw:t}}function vu(e,t,n,r){return{type:`NamedCallout`,kind:e,tag:t,arguments:n,raw:r}}function yu(e,t,n,r){return{type:`Quantifier`,kind:e,min:t,max:n,raw:r}}function bu(e){return{type:`Subroutine`,raw:e}}var xu=new Set([`COUNT`,`CMP`,`ERROR`,`FAIL`,`MAX`,`MISMATCH`,`SKIP`,`TOTAL_COUNT`]),Su=new Map([[`a`,7],[`b`,8],[`e`,27],[`f`,12],[`n`,10],[`r`,13],[`t`,9],[`v`,11]]);function Cu(e){let t=e[1]===`c`?e[2]:e[3];if(!t||!/[A-Za-z]/.test(t))throw Error(`Unsupported control character "${e}"`);return cu(Wl(t.toUpperCase())-64,e)}function wu(e,t){let{on:n,off:r}=/^\(\?(?<on>[imx]*)(?:-(?<off>[-imx]*))?/.exec(e).groups;r??=``;let i=(t.getCurrentModX()||n.includes(`x`))&&!r.includes(`x`),a=ku(n),o=ku(r),s={};if(a&&(s.enable=a),o&&(s.disable=o),e.endsWith(`)`))return t.replaceCurrentModX(i),mu(`flags`,e,{flags:s});if(e.endsWith(`:`))return t.pushModX(i),t.numOpenGroups++,_u(`group`,e,{...(a||o)&&{flags:s}});throw Error(`Unexpected flag modifier "${e}"`)}function Tu(e){let t=/\(\*(?<name>[A-Za-z_]\w*)?(?:\[(?<tag>(?:[A-Za-z_]\w*)?)\])?(?:\{(?<args>[^}]*)\})?\)/.exec(e);if(!t)throw Error(`Incomplete or invalid named callout "${e}"`);let{name:n,tag:r,args:i}=t.groups;if(!n)throw Error(`Invalid named callout "${e}"`);if(r===``)throw Error(`Named callout tag with empty value not allowed "${e}"`);let a=i?i.split(`,`).filter(e=>e!==``).map(e=>/^[+-]?\d+$/.test(e)?+e:e):[],[o,s,c]=a,l=xu.has(n)?n.toLowerCase():`custom`;switch(l){case`fail`:case`mismatch`:case`skip`:if(a.length>0)throw Error(`Named callout arguments not allowed "${a}"`);break;case`error`:if(a.length>1)throw Error(`Named callout allows only one argument "${a}"`);if(typeof o==`string`)throw Error(`Named callout argument must be a number "${o}"`);break;case`max`:if(!a.length||a.length>2)throw Error(`Named callout must have one or two arguments "${a}"`);if(typeof o==`string`&&!/^[A-Za-z_]\w*$/.test(o))throw Error(`Named callout argument one must be a tag or number "${o}"`);if(a.length===2&&(typeof s==`number`||!/^[<>X]$/.test(s)))throw Error(`Named callout optional argument two must be '<', '>', or 'X' "${s}"`);break;case`count`:case`total_count`:if(a.length>1)throw Error(`Named callout allows only one argument "${a}"`);if(a.length===1&&(typeof o==`number`||!/^[<>X]$/.test(o)))throw Error(`Named callout optional argument must be '<', '>', or 'X' "${o}"`);break;case`cmp`:if(a.length!==3)throw Error(`Named callout must have three arguments "${a}"`);if(typeof o==`string`&&!/^[A-Za-z_]\w*$/.test(o))throw Error(`Named callout argument one must be a tag or number "${o}"`);if(typeof s==`number`||!/^(?:[<>!=]=|[<>])$/.test(s))throw Error(`Named callout argument two must be '==', '!=', '>', '<', '>=', or '<=' "${s}"`);if(typeof c==`string`&&!/^[A-Za-z_]\w*$/.test(c))throw Error(`Named callout argument three must be a tag or number "${c}"`);break;case`custom`:throw Error(`Undefined callout name "${n}"`);default:throw Error(`Unexpected named callout kind "${l}"`)}return vu(l,r??null,i?.split(`,`)??null,e)}function Eu(e){let t=null,n,r;if(e[0]===`{`){let{minStr:i,maxStr:a}=/^\{(?<minStr>\d*)(?:,(?<maxStr>\d*))?/.exec(e).groups,o=1e5;if(+i>o||a&&+a>o)throw Error(`Quantifier value unsupported in Oniguruma`);if(n=+i,r=a===void 0?+i:a===``?1/0:+a,n>r&&(t=`possessive`,[n,r]=[r,n]),e.endsWith(`?`)){if(t===`possessive`)throw Error(`Unsupported possessive interval quantifier chain with "?"`);t=`lazy`}else t||=`greedy`}else n=+(e[0]===`+`),r=e[0]===`?`?1:1/0,t=e[1]===`+`?`possessive`:e[1]===`?`?`lazy`:`greedy`;return yu(t,n,r,e)}function Du(e){let t=e[1].toLowerCase();return pu({d:`digit`,h:`hex`,s:`space`,w:`word`}[t],e,{negate:e[1]!==t})}function Ou(e){let{p:t,neg:n,value:r}=/^\\(?<p>[pP])\{(?<neg>\^?)(?<value>[^}]+)/.exec(e).groups;return pu(`property`,e,{value:r,negate:t===`P`&&!n||t===`p`&&!!n})}function ku(e){let t={};return e.includes(`i`)&&(t.ignoreCase=!0),e.includes(`m`)&&(t.dotAll=!0),e.includes(`x`)&&(t.extended=!0),Object.keys(t).length?t:null}function Au(e){let t={ignoreCase:!1,dotAll:!1,extended:!1,digitIsAscii:!1,posixIsAscii:!1,spaceIsAscii:!1,wordIsAscii:!1,textSegmentMode:null};for(let n=0;n<e.length;n++){let r=e[n];if(!`imxDPSWy`.includes(r))throw Error(`Invalid flag "${r}"`);if(r===`y`){if(!/^y{[gw]}/.test(e.slice(n)))throw Error(`Invalid or unspecified flag "y" mode`);t.textSegmentMode=e[n+2]===`g`?`grapheme`:`word`,n+=3;continue}t[{i:`ignoreCase`,m:`dotAll`,x:`extended`,D:`digitIsAscii`,P:`posixIsAscii`,S:`spaceIsAscii`,W:`wordIsAscii`}[r]]=!0}return t}function ju(e){if(/^(?:\\u(?!\p{AHex}{4})|\\x(?!\p{AHex}{1,2}|\{\p{AHex}{1,8}\}))/u.test(e))throw Error(`Incomplete or invalid escape "${e}"`);let t=e[2]===`{`?/^\\x\{\s*(?<hex>\p{AHex}+)/u.exec(e).groups.hex:e.slice(2);return parseInt(t,16)}function Mu(e,t){let{raw:n,inCharClass:r}=e,i=n.slice(1);if(!r&&(i!==`0`&&i.length===1||i[0]!==`0`&&+i<=t))return[su(n)];let a=[],o=i.match(/^[0-7]+|\d/g);for(let e=0;e<o.length;e++){let t=o[e],r;if(e===0&&t!==`8`&&t!==`9`){if(r=parseInt(t,8),r>127)throw Error(ql`Octal encoded byte above 177 unsupported "${n}"`)}else r=Wl(t);a.push(cu(r,(e===0?`\\`:``)+t))}return a}function Nu(e){let t=[],n=new RegExp(Zl,`gy`),r;for(;r=n.exec(e);){let e=r[0];if(e[0]===`{`){let r=/^\{(?<min>\d+),(?<max>\d+)\}\??$/.exec(e);if(r){let{min:i,max:a}=r.groups;if(+i>+a&&e.endsWith(`?`)){n.lastIndex--,t.push(Eu(e.slice(0,-1)));continue}}}t.push(Eu(e))}return t}function Pu(e,t){if(!Array.isArray(e.body))throw Error(`Expected node with body array`);if(e.body.length!==1)return!1;let n=e.body[0];return!t||Object.keys(t).every(e=>t[e]===n[e])}function Fu(e){return Iu.has(e.type)}var Iu=new Set([`AbsenceFunction`,`Backreference`,`CapturingGroup`,`Character`,`CharacterClass`,`CharacterSet`,`Group`,`Quantifier`,`Subroutine`]);function Lu(e,t={}){let n={flags:``,normalizeUnknownPropertyNames:!1,skipBackrefValidation:!1,skipLookbehindValidation:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t,rules:{captureGroup:!1,singleline:!1,...t.rules}},r=eu(e,{flags:n.flags,rules:{captureGroup:n.rules.captureGroup,singleline:n.rules.singleline}}),i=(e,t)=>{let n=r.tokens[a.nextIndex];switch(a.parent=e,a.nextIndex++,n.type){case`Alternator`:return qu();case`Assertion`:return Ru(n);case`Backreference`:return zu(n,a);case`Character`:return Zu(n.value,{useLastValid:!!t.isCheckingRangeEnd});case`CharacterClassHyphen`:return Bu(n,a,t);case`CharacterClassOpen`:return Vu(n,a,t);case`CharacterSet`:return Hu(n,a);case`Directive`:return td(n.kind,{flags:n.flags});case`GroupOpen`:return Uu(n,a,t);case`NamedCallout`:return ad(n.kind,n.tag,n.arguments);case`Quantifier`:return Wu(n,a);case`Subroutine`:return Gu(n,a);default:throw Error(`Unexpected token type "${n.type}"`)}},a={capturingGroups:[],hasNumberedRef:!1,namedGroupsByName:new Map,nextIndex:0,normalizeUnknownPropertyNames:n.normalizeUnknownPropertyNames,parent:null,skipBackrefValidation:n.skipBackrefValidation,skipLookbehindValidation:n.skipLookbehindValidation,skipPropertyNameValidation:n.skipPropertyNameValidation,subroutines:[],tokens:r.tokens,unicodePropertyMap:n.unicodePropertyMap,walk:i},o=cd(nd(r.flags)),s=o.body[0];for(;a.nextIndex<r.tokens.length;){let e=i(s,{});e.type===`Alternative`?(o.body.push(e),s=e):s.body.push(e)}let{capturingGroups:c,hasNumberedRef:l,namedGroupsByName:u,subroutines:d}=a;if(l&&u.size&&!n.rules.captureGroup)throw Error(`Numbered backref/subroutine not allowed when using named capture`);for(let{ref:e}of d)if(typeof e==`number`){if(e>c.length)throw Error(`Subroutine uses a group number that's not defined`);e&&(c[e-1].isSubroutined=!0)}else if(u.has(e)){if(u.get(e).length>1)throw Error(ql`Subroutine uses a duplicate group name "\g<${e}>"`);u.get(e)[0].isSubroutined=!0}else throw Error(ql`Subroutine uses a group name that's not defined "\g<${e}>"`);return o}function Ru({kind:e}){return Ju(Jl({"^":`line_start`,$:`line_end`,"\\A":`string_start`,"\\b":`word_boundary`,"\\B":`word_boundary`,"\\G":`search_start`,"\\y":`text_segment_boundary`,"\\Y":`text_segment_boundary`,"\\z":`string_end`,"\\Z":`string_end_newline`}[e],`Unexpected assertion kind "${e}"`),{negate:e===ql`\B`||e===ql`\Y`})}function zu({raw:e},t){let n=/^\\k[<']/.test(e),r=n?e.slice(3,-1):e.slice(1),i=(n,r=!1)=>{let i=t.capturingGroups.length,a=!1;if(n>i)if(t.skipBackrefValidation)a=!0;else throw Error(`Not enough capturing groups defined to the left "${e}"`);return t.hasNumberedRef=!0,Yu(r?i+1-n:n,{orphan:a})};if(n){let n=/^(?<sign>-?)0*(?<num>[1-9]\d*)$/.exec(r);if(n)return i(+n.groups.num,!!n.groups.sign);if(/[-+]/.test(r))throw Error(`Invalid backref name "${e}"`);if(!t.namedGroupsByName.has(r))throw Error(`Group name not defined to the left "${e}"`);return Yu(r)}return i(+r)}function Bu(e,t,n){let{tokens:r,walk:i}=t,a=t.parent,o=a.body.at(-1),s=r[t.nextIndex];if(!n.isCheckingRangeEnd&&o&&o.type!==`CharacterClass`&&o.type!==`CharacterClassRange`&&s&&s.type!==`CharacterClassOpen`&&s.type!==`CharacterClassClose`&&s.type!==`CharacterClassIntersector`){let e=i(a,{...n,isCheckingRangeEnd:!0});if(o.type===`Character`&&e.type===`Character`)return a.body.pop(),$u(o,e);throw Error(`Invalid character class range`)}return Zu(Wl(`-`))}function Vu({negate:e},t,n){let{tokens:r,walk:i}=t,a=[Qu()],o=r[t.nextIndex],s=yd(o);for(;s.type!==`CharacterClassClose`;){if(s.type===`CharacterClassIntersector`)a.push(Qu()),t.nextIndex++;else{let e=a.at(-1);e.body.push(i(e,n))}s=yd(r[t.nextIndex],o)}let c=Qu({negate:e});return a.length===1?c.body=a[0].body:(c.kind=`intersection`,c.body=a.map(e=>e.body.length===1?e.body[0]:e)),t.nextIndex++,c}function Hu({kind:e,negate:t,value:n},r){let{normalizeUnknownPropertyNames:i,skipPropertyNameValidation:a,unicodePropertyMap:o}=r;if(e===`property`){let r=vd(n);if(Kl.has(r)&&!o?.has(r))e=`posix`,n=r;else return ud(n,{negate:t,normalizeUnknownPropertyNames:i,skipPropertyNameValidation:a,unicodePropertyMap:o})}return e===`posix`?od(n,{negate:t}):ed(e,{negate:t})}function Uu(e,t,n){let{tokens:r,capturingGroups:i,namedGroupsByName:a,skipLookbehindValidation:o,walk:s}=t,c=dd(e),l=c.type===`AbsenceFunction`,u=hd(c),d=u&&c.negate;if(c.type===`CapturingGroup`&&(i.push(c),c.name&&Gl(a,c.name,[]).push(c)),l&&n.isInAbsenceFunction)throw Error(`Nested absence function not supported by Oniguruma`);let f=bd(r[t.nextIndex]);for(;f.type!==`GroupClose`;){if(f.type===`Alternator`)c.body.push(qu()),t.nextIndex++;else{let e=c.body.at(-1),t=s(e,{...n,isInAbsenceFunction:n.isInAbsenceFunction||l,isInLookbehind:n.isInLookbehind||u,isInNegLookbehind:n.isInNegLookbehind||d});if(e.body.push(t),(u||n.isInLookbehind)&&!o){let e=`Lookbehind includes a pattern not allowed by Oniguruma`;if(d||n.isInNegLookbehind){if(md(t)||t.type===`CapturingGroup`)throw Error(e)}else if(md(t)||hd(t)&&t.negate)throw Error(e)}}f=bd(r[t.nextIndex])}return t.nextIndex++,c}function Wu({kind:e,min:t,max:n},r){let i=r.parent,a=i.body.at(-1);if(!a||!Fu(a))throw Error(`Quantifier requires a repeatable token`);let o=sd(e,t,n,a);return i.body.pop(),o}function Gu({raw:e},t){let{capturingGroups:n,subroutines:r}=t,i=e.slice(3,-1),a=/^(?<sign>[-+]?)0*(?<num>[1-9]\d*)$/.exec(i);if(a){let e=+a.groups.num,r=n.length;if(t.hasNumberedRef=!0,i={"":e,"+":r+e,"-":r+1-e}[a.groups.sign],i<1)throw Error(`Invalid subroutine number`)}else i===`0`&&(i=0);let o=ld(i);return r.push(o),o}function Ku(e,t){if(e!==`repeater`)throw Error(`Unexpected absence function kind "${e}"`);return{type:`AbsenceFunction`,kind:e,body:fd(t?.body)}}function qu(e){return{type:`Alternative`,body:pd(e?.body)}}function Ju(e,t){let n={type:`Assertion`,kind:e};return(e===`word_boundary`||e===`text_segment_boundary`)&&(n.negate=!!t?.negate),n}function Yu(e,t){let n=!!t?.orphan;return{type:`Backreference`,ref:e,...n&&{orphan:n}}}function Xu(e,t){let n={name:void 0,isSubroutined:!1,...t};if(n.name!==void 0&&!gd(n.name))throw Error(`Group name "${n.name}" invalid in Oniguruma`);return{type:`CapturingGroup`,number:e,...n.name&&{name:n.name},...n.isSubroutined&&{isSubroutined:n.isSubroutined},body:fd(t?.body)}}function Zu(e,t){let n={useLastValid:!1,...t};if(e>1114111){let t=e.toString(16);if(n.useLastValid)e=1114111;else throw Error(e>1310719?`Invalid code point out of range "\\x{${t}}"`:`Invalid code point out of range in JS "\\x{${t}}"`)}return{type:`Character`,value:e}}function Qu(e){let t={kind:`union`,negate:!1,...e};return{type:`CharacterClass`,kind:t.kind,negate:t.negate,body:pd(e?.body)}}function $u(e,t){if(t.value<e.value)throw Error(`Character class range out of order`);return{type:`CharacterClassRange`,min:e,max:t}}function ed(e,t){let n=!!t?.negate,r={type:`CharacterSet`,kind:e};return(e===`digit`||e===`hex`||e===`newline`||e===`space`||e===`word`)&&(r.negate=n),(e===`text_segment`||e===`newline`&&!n)&&(r.variableLength=!0),r}function td(e,t={}){if(e===`keep`)return{type:`Directive`,kind:e};if(e===`flags`)return{type:`Directive`,kind:e,flags:Jl(t.flags)};throw Error(`Unexpected directive kind "${e}"`)}function nd(e){return{type:`Flags`,...e}}function rd(e){let t=e?.atomic,n=e?.flags;if(t&&n)throw Error(`Atomic group cannot have flags`);return{type:`Group`,...t&&{atomic:t},...n&&{flags:n},body:fd(e?.body)}}function id(e){let t={behind:!1,negate:!1,...e};return{type:`LookaroundAssertion`,kind:t.behind?`lookbehind`:`lookahead`,negate:t.negate,body:fd(e?.body)}}function ad(e,t,n){return{type:`NamedCallout`,kind:e,tag:t,arguments:n}}function od(e,t){let n=!!t?.negate;if(!Kl.has(e))throw Error(`Invalid POSIX class "${e}"`);return{type:`CharacterSet`,kind:`posix`,value:e,negate:n}}function sd(e,t,n,r){if(t>n)throw Error(`Invalid reversed quantifier range`);return{type:`Quantifier`,kind:e,min:t,max:n,body:r}}function cd(e,t){return{type:`Regex`,body:fd(t?.body),flags:e}}function ld(e){return{type:`Subroutine`,ref:e}}function ud(e,t){let n={negate:!1,normalizeUnknownPropertyNames:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t},r=n.unicodePropertyMap?.get(vd(e));if(!r){if(n.normalizeUnknownPropertyNames)r=_d(e);else if(n.unicodePropertyMap&&!n.skipPropertyNameValidation)throw Error(ql`Invalid Unicode property "\p{${e}}"`)}return{type:`CharacterSet`,kind:`property`,value:r??e,negate:n.negate}}function dd({flags:e,kind:t,name:n,negate:r,number:i}){switch(t){case`absence_repeater`:return Ku(`repeater`);case`atomic`:return rd({atomic:!0});case`capturing`:return Xu(i,{name:n});case`group`:return rd({flags:e});case`lookahead`:case`lookbehind`:return id({behind:t===`lookbehind`,negate:r});default:throw Error(`Unexpected group kind "${t}"`)}}function fd(e){if(e===void 0)e=[qu()];else if(!Array.isArray(e)||!e.length||!e.every(e=>e.type===`Alternative`))throw Error(`Invalid body; expected array of one or more Alternative nodes`);return e}function pd(e){if(e===void 0)e=[];else if(!Array.isArray(e)||!e.every(e=>!!e.type))throw Error(`Invalid body; expected array of nodes`);return e}function md(e){return e.type===`LookaroundAssertion`&&e.kind===`lookahead`}function hd(e){return e.type===`LookaroundAssertion`&&e.kind===`lookbehind`}function gd(e){return/^[\p{Alpha}\p{Pc}][^)]*$/u.test(e)}function _d(e){return e.trim().replace(/[- _]+/g,`_`).replace(/[A-Z][a-z]+(?=[A-Z])/g,`$&_`).replace(/[A-Za-z]+/g,e=>e[0].toUpperCase()+e.slice(1).toLowerCase())}function vd(e){return e.replace(/[- _]+/g,``).toLowerCase()}function yd(e,t){let n=t;return Jl(e,`Unclosed character class${n?.type===`Character`&&n.value===93&&n.raw===`]`?` (started with "]")`:``}`)}function bd(e){return Jl(e,`Unclosed group`)}function xd(e,t,n=null){function r(e,t){for(let n=0;n<e.length;n++){let r=i(e[n],t,n,e);n=Math.max(-1,n+r)}}function i(a,o=null,s=null,c=null){let l=0,u=!1,d={node:a,parent:o,key:s,container:c,root:e,remove(){Sd(c).splice(Math.max(0,Cd(s)+l),1),l--,u=!0},removeAllNextSiblings(){return Sd(c).splice(Cd(s)+1)},removeAllPrevSiblings(){let e=Cd(s)+l;return l-=e,Sd(c).splice(0,Math.max(0,e))},replaceWith(e,t={}){let n=!!t.traverse;c?c[Math.max(0,Cd(s)+l)]=e:Jl(o,`Can't replace root node`)[s]=e,n&&i(e,o,s,c),u=!0},replaceWithMultiple(e,t={}){let n=!!t.traverse;if(Sd(c).splice(Math.max(0,Cd(s)+l),1,...e),l+=e.length-1,n){let t=0;for(let n=0;n<e.length;n++)t+=i(e[n],o,Cd(s)+n+t,c)}u=!0},skip(){u=!0}},{type:f}=a,p=t[`*`],m=t[f],h=typeof p==`function`?p:p?.enter,g=typeof m==`function`?m:m?.enter;if(h?.(d,n),g?.(d,n),!u)switch(f){case`AbsenceFunction`:case`Alternative`:case`CapturingGroup`:case`CharacterClass`:case`Group`:case`LookaroundAssertion`:r(a.body,a);break;case`Assertion`:case`Backreference`:case`Character`:case`CharacterSet`:case`Directive`:case`Flags`:case`NamedCallout`:case`Subroutine`:break;case`CharacterClassRange`:i(a.min,a,`min`),i(a.max,a,`max`);break;case`Quantifier`:i(a.body,a,`body`);break;case`Regex`:r(a.body,a),i(a.flags,a,`flags`);break;default:throw Error(`Unexpected node type "${f}"`)}return m?.exit?.(d,n),p?.exit?.(d,n),l}return i(e),e}function Sd(e){if(!Array.isArray(e))throw Error(`Container expected`);return e}function Cd(e){if(typeof e!=`number`)throw Error(`Numeric key expected`);return e}var wd=String.raw`\(\?(?:[:=!>A-Za-z\-]|<[=!]|\(DEFINE\))`;function Td(e,t){for(let n=0;n<e.length;n++)e[n]>=t&&e[n]++}function Ed(e,t,n,r){return e.slice(0,t)+r+e.slice(t+n.length)}var Dd=Object.freeze({DEFAULT:`DEFAULT`,CHAR_CLASS:`CHAR_CLASS`});function Od(e,t,n,r){let i=new RegExp(String.raw`${t}|(?<$skip>\[\^?|\\?.)`,`gsu`),a=[!1],o=0,s=``;for(let t of e.matchAll(i)){let{0:e,groups:{$skip:i}}=t;if(!i&&(!r||r===Dd.DEFAULT==!o)){n instanceof Function?s+=n(t,{context:o?Dd.CHAR_CLASS:Dd.DEFAULT,negated:a[a.length-1]}):s+=n;continue}e[0]===`[`?(o++,a.push(e[1]===`^`)):e===`]`&&o&&(o--,a.pop()),s+=e}return s}function kd(e,t,n,r){Od(e,t,n,r)}function Ad(e,t,n=0,r){if(!new RegExp(t,`su`).test(e))return null;let i=RegExp(`${t}|(?<$skip>\\\\?.)`,`gsu`);i.lastIndex=n;let a=0,o;for(;o=i.exec(e);){let{0:e,groups:{$skip:t}}=o;if(!t&&(!r||r===Dd.DEFAULT==!a))return o;e===`[`?a++:e===`]`&&a&&a--,i.lastIndex==o.index&&i.lastIndex++}return null}function jd(e,t,n){return!!Ad(e,t,0,n)}function Md(e,t){let n=/\\?./gsu;n.lastIndex=t;let r=e.length,i=0,a=1,o;for(;o=n.exec(e);){let[e]=o;if(e===`[`)i++;else if(i)e===`]`&&i--;else if(e===`(`)a++;else if(e===`)`&&(a--,!a)){r=o.index;break}}return e.slice(t,r)}var Nd=new RegExp(String.raw`(?<noncapturingStart>${wd})|(?<capturingStart>\((?:\?<[^>]+>)?)|\\?.`,`gsu`);function Pd(e,t){let n=t?.hiddenCaptures??[],r=t?.captureTransfers??new Map;if(!/\(\?>/.test(e))return{pattern:e,captureTransfers:r,hiddenCaptures:n};let i=[0],a=[],o=0,s=0,c=NaN,l;do{l=!1;let t=0,u=0,d=!1,f;for(Nd.lastIndex=Number.isNaN(c)?0:c+7;f=Nd.exec(e);){let{0:p,index:m,groups:{capturingStart:h,noncapturingStart:g}}=f;if(p===`[`)t++;else if(t)p===`]`&&t--;else if(p===`(?>`&&!d)c=m,d=!0;else if(d&&g)u++;else if(h)d?u++:(o++,i.push(o+s));else if(p===`)`&&d){if(!u){s++;let t=o+s;if(e=`${e.slice(0,c)}(?:(?=(${e.slice(c+3,m)}))<$$${t}>)${e.slice(m+1)}`,l=!0,a.push(t),Td(n,t),r.size){let e=new Map;r.forEach((n,r)=>{e.set(r>=t?r+1:r,n.map(e=>e>=t?e+1:e))}),r=e}break}u--}}}while(l);return n.push(...a),e=Od(e,String.raw`\\(?<backrefNum>[1-9]\d*)|<\$\$(?<wrappedBackrefNum>\d+)>`,({0:e,groups:{backrefNum:t,wrappedBackrefNum:n}})=>{if(t){let n=+t;if(n>i.length-1)throw Error(`Backref "${e}" greater than number of captures`);return`\\${i[n]}`}return`\\${n}`},Dd.DEFAULT),{pattern:e,captureTransfers:r,hiddenCaptures:n}}var Fd=String.raw`(?:[?*+]|\{\d+(?:,\d*)?\})`,Id=new RegExp(String.raw`
|
|
48
48
|
\\(?: \d+
|
|
49
49
|
| c[A-Za-z]
|
|
50
50
|
| [gk]<[^>]+>
|
|
@@ -57,9 +57,9 @@ import{a as e,i as t,n,r}from"./chunk-Cyuzqnbw.js";import{i,r as a}from"./bundle
|
|
|
57
57
|
| [A-Za-z\-]+:
|
|
58
58
|
| \(DEFINE\)
|
|
59
59
|
))?
|
|
60
|
-
| (?<qBase>${
|
|
60
|
+
| (?<qBase>${Fd})(?<qMod>[?+]?)(?<invalidQ>[?*+\{]?)
|
|
61
61
|
| \\?.
|
|
62
|
-
`.replace(/\s+/g,``),`gsu`);function
|
|
62
|
+
`.replace(/\s+/g,``),`gsu`);function Ld(e){if(!RegExp(`${Fd}\\+`).test(e))return{pattern:e};let t=[],n=null,r=null,i=``,a=0,o;for(Id.lastIndex=0;o=Id.exec(e);){let{0:s,index:c,groups:{qBase:l,qMod:u,invalidQ:d}}=o;if(s===`[`)a||(r=c),a++;else if(s===`]`)a?a--:r=null;else if(!a)if(u===`+`&&i&&!i.startsWith(`(`)){if(d)throw Error(`Invalid quantifier "${s}"`);let t=-1;if(/^\{\d+\}$/.test(l))e=Ed(e,c+l.length,u,``);else{if(i===`)`||i===`]`){let t=i===`)`?n:r;if(t===null)throw Error(`Invalid unmatched "${i}"`);e=`${e.slice(0,t)}(?>${e.slice(t,c)}${l})${e.slice(c+s.length)}`}else e=`${e.slice(0,c-i.length)}(?>${i}${l})${e.slice(c+s.length)}`;t+=4}Id.lastIndex+=t}else s[0]===`(`?t.push(c):s===`)`&&(n=t.length?t.pop():null);i=s}return{pattern:e}}var Rd=String.raw,zd=Rd`\(\?R=(?<rDepth>[^\)]+)\)|${Rd`\\g<(?<gRNameOrNum>[^>&]+)&R=(?<gRDepth>[^>]+)>`}`,Bd=Rd`\(\?<(?![=!])(?<captureName>[^>]+)>`,Vd=Rd`${Bd}|(?<unnamed>\()(?!\?)`,Hd=new RegExp(Rd`${Bd}|${zd}|\(\?|\\?.`,`gsu`),Ud=`Cannot use multiple overlapping recursions`;function Wd(e,t){let{hiddenCaptures:n,mode:r}={hiddenCaptures:[],mode:`plugin`,...t},i=t?.captureTransfers??new Map;if(!new RegExp(zd,`su`).test(e))return{pattern:e,captureTransfers:i,hiddenCaptures:n};if(r===`plugin`&&jd(e,Rd`\(\?\(DEFINE\)`,Dd.DEFAULT))throw Error(`DEFINE groups cannot be used with recursion`);let a=[],o=jd(e,Rd`\\[1-9]`,Dd.DEFAULT),s=new Map,c=[],l=!1,u=0,d=0,f;for(Hd.lastIndex=0;f=Hd.exec(e);){let{0:t,groups:{captureName:p,rDepth:m,gRNameOrNum:h,gRDepth:g}}=f;if(t===`[`)u++;else if(u)t===`]`&&u--;else if(m){if(Gd(m),l)throw Error(Ud);if(o)throw Error(`${r===`external`?`Backrefs`:`Numbered backrefs`} cannot be used with global recursion`);let t=e.slice(0,f.index),s=e.slice(Hd.lastIndex);if(jd(s,zd,Dd.DEFAULT))throw Error(Ud);let c=m-1;e=Kd(t,s,c,!1,n,a,d),i=Yd(i,t,c,a.length,0,d);break}else if(h){Gd(g);let u=!1;for(let e of c)if(e.name===h||e.num===+h){if(u=!0,e.hasRecursedWithin)throw Error(Ud);break}if(!u)throw Error(Rd`Recursive \g cannot be used outside the referenced group "${r===`external`?h:Rd`\g<${h}&R=${g}>`}"`);let p=s.get(h),m=Md(e,p);if(o&&jd(m,Rd`${Bd}|\((?!\?)`,Dd.DEFAULT))throw Error(`${r===`external`?`Backrefs`:`Numbered backrefs`} cannot be used with recursion of capturing groups`);let _=e.slice(p,f.index),v=m.slice(_.length+t.length),y=a.length,b=g-1,x=Kd(_,v,b,!0,n,a,d);i=Yd(i,_,b,a.length-y,y,d),e=`${e.slice(0,p)}${x}${e.slice(p+m.length)}`,Hd.lastIndex+=x.length-t.length-_.length-v.length,c.forEach(e=>e.hasRecursedWithin=!0),l=!0}else if(p)d++,s.set(String(d),Hd.lastIndex),s.set(p,Hd.lastIndex),c.push({num:d,name:p});else if(t[0]===`(`){let e=t===`(`;e&&(d++,s.set(String(d),Hd.lastIndex)),c.push(e?{num:d}:{})}else t===`)`&&c.pop()}return n.push(...a),{pattern:e,captureTransfers:i,hiddenCaptures:n}}function Gd(e){let t=`Max depth must be integer between 2 and 100; used ${e}`;if(!/^[1-9]\d*$/.test(e)||(e=+e,e<2||e>100))throw Error(t)}function Kd(e,t,n,r,i,a,o){let s=new Set;r&&kd(e+t,Bd,({groups:{captureName:e}})=>{s.add(e)},Dd.DEFAULT);let c=[n,r?s:null,i,a,o];return`${e}${qd(`(?:${e}`,`forward`,...c)}(?:)${qd(`${t})`,`backward`,...c)}${t}`}function qd(e,t,n,r,i,a,o){let s=e=>t===`forward`?e+2:n-e+2-1,c=``;for(let t=0;t<n;t++){let n=s(t);c+=Od(e,Rd`${Vd}|\\k<(?<backref>[^>]+)>`,({0:e,groups:{captureName:t,unnamed:s,backref:c}})=>{if(c&&r&&!r.has(c))return e;let l=`_$${n}`;if(s||t){let n=o+a.length+1;return a.push(n),Jd(i,n),s?e:`(?<${t}${l}>`}return Rd`\k<${c}${l}>`},Dd.DEFAULT)}return c}function Jd(e,t){for(let n=0;n<e.length;n++)e[n]>=t&&e[n]++}function Yd(e,t,n,r,i,a){if(e.size&&r){let o=0;kd(t,Vd,()=>o++,Dd.DEFAULT);let s=a-o+i,c=new Map;return e.forEach((e,t)=>{let i=(r-o*n)/n,a=o*n,l=t>s+o?t+r:t,u=[];for(let t of e)if(t<=s)u.push(t);else if(t>s+o+i)u.push(t+r);else if(t<=s+o)for(let e=0;e<=n;e++)u.push(t+o*e);else for(let e=0;e<=n;e++)u.push(t+a+i*e);c.set(l,u)}),c}return e}var Xd=String.fromCodePoint,N=String.raw,Zd={},Qd=globalThis.RegExp;Zd.flagGroups=(()=>{try{new Qd(`(?i:)`)}catch{return!1}return!0})(),Zd.unicodeSets=(()=>{try{new Qd(`[[]]`,`v`)}catch{return!1}return!0})(),Zd.bugFlagVLiteralHyphenIsRange=Zd.unicodeSets?(()=>{try{new Qd(N`[\d\-a]`,`v`)}catch{return!0}return!1})():!1,Zd.bugNestedClassIgnoresNegation=Zd.unicodeSets&&new Qd(`[[^a]]`,`v`).test(`a`);function $d(e,{enable:t,disable:n}){return{dotAll:!n?.dotAll&&!!(t?.dotAll||e.dotAll),ignoreCase:!n?.ignoreCase&&!!(t?.ignoreCase||e.ignoreCase)}}function ef(e,t,n){return e.has(t)||e.set(t,n),e.get(t)}function tf(e,t){return rf[e]>=rf[t]}function nf(e,t){if(e==null)throw Error(t??`Value expected`);return e}var rf={ES2025:2025,ES2024:2024,ES2018:2018},af={auto:`auto`,ES2025:`ES2025`,ES2024:`ES2024`,ES2018:`ES2018`};function of(e={}){if({}.toString.call(e)!==`[object Object]`)throw Error(`Unexpected options`);if(e.target!==void 0&&!af[e.target])throw Error(`Unexpected target "${e.target}"`);let t={accuracy:`default`,avoidSubclass:!1,flags:``,global:!1,hasIndices:!1,lazyCompileLength:1/0,target:`auto`,verbose:!1,...e,rules:{allowOrphanBackrefs:!1,asciiWordBoundaries:!1,captureGroup:!1,recursionLimit:20,singleline:!1,...e.rules}};return t.target===`auto`&&(t.target=Zd.flagGroups?`ES2025`:Zd.unicodeSets?`ES2024`:`ES2018`),t}var sf=`[ -\r ]`,cf=new Set([Xd(304),Xd(305)]),lf=N`[\p{L}\p{M}\p{N}\p{Pc}]`;function uf(e){if(cf.has(e))return[e];let t=new Set,n=e.toLowerCase(),r=n.toUpperCase(),i=mf.get(n),a=ff.get(n),o=pf.get(n);return[...r].length===1&&t.add(r),o&&t.add(o),i&&t.add(i),t.add(n),a&&t.add(a),[...t]}var df=new Map(`C Other
|
|
63
63
|
Cc Control cntrl
|
|
64
64
|
Cf Format
|
|
65
65
|
Cn Unassigned
|
|
@@ -149,12 +149,12 @@ Uppercase Upper
|
|
|
149
149
|
Variation_Selector VS
|
|
150
150
|
White_Space space
|
|
151
151
|
XID_Continue XIDC
|
|
152
|
-
XID_Start XIDS`.split(/\s/).map(e=>[
|
|
152
|
+
XID_Start XIDS`.split(/\s/).map(e=>[vd(e),e])),ff=new Map([[`s`,Xd(383)],[Xd(383),`s`]]),pf=new Map([[Xd(223),Xd(7838)],[Xd(107),Xd(8490)],[Xd(229),Xd(8491)],[Xd(969),Xd(8486)]]),mf=new Map([_f(453),_f(456),_f(459),_f(498),...vf(8072,8079),...vf(8088,8095),...vf(8104,8111),_f(8124),_f(8140),_f(8188)]),hf=new Map([[`alnum`,N`[\p{Alpha}\p{Nd}]`],[`alpha`,N`\p{Alpha}`],[`ascii`,N`\p{ASCII}`],[`blank`,N`[\p{Zs}\t]`],[`cntrl`,N`\p{Cc}`],[`digit`,N`\p{Nd}`],[`graph`,N`[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]`],[`lower`,N`\p{Lower}`],[`print`,N`[[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]\p{Zs}]`],[`punct`,N`[\p{P}\p{S}]`],[`space`,N`\p{space}`],[`upper`,N`\p{Upper}`],[`word`,N`[\p{Alpha}\p{M}\p{Nd}\p{Pc}]`],[`xdigit`,N`\p{AHex}`]]);function gf(e,t){let n=[];for(let r=e;r<=t;r++)n.push(r);return n}function _f(e){let t=Xd(e);return[t.toLowerCase(),t]}function vf(e,t){return gf(e,t).map(e=>_f(e))}var yf=new Set([`Lower`,`Lowercase`,`Upper`,`Uppercase`,`Ll`,`Lowercase_Letter`,`Lt`,`Titlecase_Letter`,`Lu`,`Uppercase_Letter`]);function bf(e,t){let n={accuracy:`default`,asciiWordBoundaries:!1,avoidSubclass:!1,bestEffortTarget:`ES2025`,...t};wf(e);let r={accuracy:n.accuracy,asciiWordBoundaries:n.asciiWordBoundaries,avoidSubclass:n.avoidSubclass,flagDirectivesByAlt:new Map,jsGroupNameMap:new Map,minTargetEs2024:tf(n.bestEffortTarget,`ES2024`),passedLookbehind:!1,strategy:null,subroutineRefMap:new Map,supportedGNodes:new Set,digitIsAscii:e.flags.digitIsAscii,spaceIsAscii:e.flags.spaceIsAscii,wordIsAscii:e.flags.wordIsAscii};xd(e,xf,r);let i={dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},a={currentFlags:i,prevFlags:null,globalFlags:i,groupOriginByCopy:new Map,groupsByName:new Map,multiplexCapturesToLeftByRef:new Map,openRefs:new Map,reffedNodesByReferencer:new Map,subroutineRefMap:r.subroutineRefMap};return xd(e,Sf,a),xd(e,Cf,{groupsByName:a.groupsByName,highestOrphanBackref:0,numCapturesToLeft:0,reffedNodesByReferencer:a.reffedNodesByReferencer}),e._originMap=a.groupOriginByCopy,e._strategy=r.strategy,e}var xf={AbsenceFunction({node:e,parent:t,replaceWith:n}){let{body:r,kind:i}=e;if(i===`repeater`){let e=rd();e.body[0].body.push(id({negate:!0,body:r}),ud(`Any`));let i=rd();i.body[0].body.push(sd(`greedy`,0,1/0,e)),n(Uf(i,t),{traverse:!0})}else throw Error(`Unsupported absence function "(?~|"`)},Alternative:{enter({node:e,parent:t,key:n},{flagDirectivesByAlt:r}){let i=e.body.filter(e=>e.kind===`flags`);for(let e=n+1;e<t.body.length;e++){let n=t.body[e];ef(r,n,[]).push(...i)}},exit({node:e},{flagDirectivesByAlt:t}){if(t.get(e)?.length){let n=jf(t.get(e));if(n){let t=rd({flags:n});t.body[0].body=e.body,e.body=[Uf(t,e)]}}}},Assertion({node:e,parent:t,key:n,container:r,root:i,remove:a,replaceWith:o},s){let{kind:c,negate:l}=e,{asciiWordBoundaries:u,avoidSubclass:d,supportedGNodes:f,wordIsAscii:p}=s;if(c===`text_segment_boundary`)throw Error(`Unsupported text segment boundary "\\${l?`Y`:`y`}"`);if(c===`line_end`)o(Uf(id({body:[qu({body:[Ju(`string_end`)]}),qu({body:[Zu(10)]})]}),t));else if(c===`line_start`)o(Uf(Bf(N`(?<=\A|\n(?!\z))`,{skipLookbehindValidation:!0}),t));else if(c===`search_start`)if(f.has(e))i.flags.sticky=!0,a();else{let e=r[n-1];if(e&&Lf(e))o(Uf(id({negate:!0}),t));else if(d)throw Error(N`Uses "\G" in a way that requires a subclass`);else o(Hf(Ju(`string_start`),t)),s.strategy=`clip_search`}else if(!(c===`string_end`||c===`string_start`))if(c===`string_end_newline`)o(Uf(Bf(N`(?=\n?\z)`),t));else if(c===`word_boundary`){if(!p&&!u){let e=`(?:(?<=${lf})(?!${lf})|(?<!${lf})(?=${lf}))`,n=`(?:(?<=${lf})(?=${lf})|(?<!${lf})(?!${lf}))`;o(Uf(Bf(l?n:e),t))}}else throw Error(`Unexpected assertion kind "${c}"`)},Backreference({node:e},{jsGroupNameMap:t}){let{ref:n}=e;typeof n==`string`&&!zf(n)&&(n=Af(n,t),e.ref=n)},CapturingGroup({node:e},{jsGroupNameMap:t,subroutineRefMap:n}){let{name:r}=e;r&&!zf(r)&&(r=Af(r,t),e.name=r),n.set(e.number,e),r&&n.set(r,e)},CharacterClassRange({node:e,parent:t,replaceWith:n}){t.kind===`intersection`&&n(Uf(Qu({body:[e]}),t),{traverse:!0})},CharacterSet({node:e,parent:t,replaceWith:n},{accuracy:r,minTargetEs2024:i,digitIsAscii:a,spaceIsAscii:o,wordIsAscii:s}){let{kind:c,negate:l,value:u}=e;if(a&&(c===`digit`||u===`digit`)){n(Hf(ed(`digit`,{negate:l}),t));return}if(o&&(c===`space`||u===`space`)){n(Uf(Vf(Bf(sf),l),t));return}if(s&&(c===`word`||u===`word`)){n(Hf(ed(`word`,{negate:l}),t));return}if(c===`any`)n(Hf(ud(`Any`),t));else if(c===`digit`)n(Hf(ud(`Nd`,{negate:l}),t));else if(c!==`dot`)if(c===`text_segment`){if(r===`strict`)throw Error(N`Use of "\X" requires non-strict accuracy`);let e=`\\p{Emoji}(?:\\p{EMod}|\\uFE0F\\u20E3?|[\\x{E0020}-\\x{E007E}]+\\x{E007F})?`,a=N`\p{RI}{2}|${e}(?:\u200D${e})*`;n(Uf(Bf(N`(?>\r\n|${i?N`\p{RGI_Emoji}`:a}|\P{M}\p{M}*)`,{skipPropertyNameValidation:!0}),t))}else if(c===`hex`)n(Hf(ud(`AHex`,{negate:l}),t));else if(c===`newline`)n(Uf(Bf(l?`[^
|
|
153
153
|
]`:`(?>\r
|
|
154
154
|
?|[
|
|
155
|
-
\v\f
\u2028\u2029])`),t));else if(c===`posix`)if(!i&&(u===`graph`||u===`print`)){if(r===`strict`)throw Error(`POSIX class "${u}" requires min target ES2024 or non-strict accuracy`);let e={graph:`!-~`,print:` -~`}[u];l&&(e=`\0-${Qd(e.codePointAt(0)-1)}${Qd(e.codePointAt(2)+1)}-\u{10FFFF}`),n(Gf(Hf(`[${e}]`),t))}else n(Gf(Uf(Hf(_f.get(u)),l),t));else if(c===`property`)pf.has(bd(u))||(e.key=`sc`);else if(c===`space`)n(Wf(fd(`space`,{negate:l}),t));else if(c===`word`)n(Gf(Uf(Hf(df),l),t));else throw Error(`Unexpected character set kind "${c}"`)},Directive({node:e,parent:t,root:n,remove:r,replaceWith:i,removeAllPrevSiblings:a,removeAllNextSiblings:o}){let{kind:s,flags:c}=e;if(s===`flags`)if(!c.enable&&!c.disable)r();else{let e=ad({flags:c});e.body[0].body=o(),i(Gf(e,t),{traverse:!0})}else if(s===`keep`){let e=n.body[0],r=n.body.length===1&&Iu(e,{type:`Group`})&&e.body[0].body.length===1?e.body[0]:n;if(t.parent!==r||r.body.length>1)throw Error(N`Uses "\K" in a way that's unsupported`);let o=od({behind:!0});o.body[0].body=a(),i(Gf(o,t))}else throw Error(`Unexpected directive kind "${s}"`)},Flags({node:e,parent:t}){if(e.posixIsAscii)throw Error(`Unsupported flag "P"`);if(e.textSegmentMode===`word`)throw Error(`Unsupported flag "y{w}"`);[`digitIsAscii`,`extended`,`posixIsAscii`,`spaceIsAscii`,`wordIsAscii`,`textSegmentMode`].forEach(t=>delete e[t]),Object.assign(e,{global:!1,hasIndices:!1,multiline:!1,sticky:e.sticky??!1}),t.options={disable:{x:!0,n:!0},force:{v:!0}}},Group({node:e}){if(!e.flags)return;let{enable:t,disable:n}=e.flags;t?.extended&&delete t.extended,n?.extended&&delete n.extended,t?.dotAll&&n?.dotAll&&delete t.dotAll,t?.ignoreCase&&n?.ignoreCase&&delete t.ignoreCase,t&&!Object.keys(t).length&&delete e.flags.enable,n&&!Object.keys(n).length&&delete e.flags.disable,!e.flags.enable&&!e.flags.disable&&delete e.flags},LookaroundAssertion({node:e},t){let{kind:n}=e;n===`lookbehind`&&(t.passedLookbehind=!0)},NamedCallout({node:e,parent:t,replaceWith:n}){let{kind:r}=e;if(r===`fail`)n(Gf(od({negate:!0}),t));else throw Error(`Unsupported named callout "(*${r.toUpperCase()}"`)},Quantifier({node:e}){if(e.body.type===`Quantifier`){let t=ad();t.body[0].body.push(e.body),e.body=Gf(t,e)}},Regex:{enter({node:e},{supportedGNodes:t}){let n=[],r=!1,i=!1;for(let t of e.body)if(t.body.length===1&&t.body[0].kind===`search_start`)t.body.pop();else{let e=If(t.body);e?(r=!0,Array.isArray(e)?n.push(...e):n.push(e)):i=!0}r&&!i&&n.forEach(e=>t.add(e))},exit(e,{accuracy:t,passedLookbehind:n,strategy:r}){if(t===`strict`&&n&&r)throw Error(N`Uses "\G" in a way that requires non-strict accuracy`)}},Subroutine({node:e},{jsGroupNameMap:t}){let{ref:n}=e;typeof n==`string`&&!Vf(n)&&(n=Mf(n,t),e.ref=n)}},wf={Backreference({node:e},{multiplexCapturesToLeftByRef:t,reffedNodesByReferencer:n}){let{orphan:r,ref:i}=e;r||n.set(e,[...t.get(i).map(({node:e})=>e)])},CapturingGroup:{enter({node:e,parent:t,replaceWith:n,skip:r},{groupOriginByCopy:i,groupsByName:a,multiplexCapturesToLeftByRef:o,openRefs:s,reffedNodesByReferencer:c}){let l=i.get(e);if(l&&s.has(e.number)){let r=Wf(Af(e.number),t);c.set(r,s.get(e.number)),n(r);return}s.set(e.number,e),o.set(e.number,[]),e.name&&nf(o,e.name,[]);let u=o.get(e.name??e.number);for(let t=0;t<u.length;t++){let n=u[t];if(l===n.node||l&&l===n.origin||e===n.origin){u.splice(t,1);break}}if(o.get(e.number).push({node:e,origin:l}),e.name&&o.get(e.name).push({node:e,origin:l}),e.name){let t=nf(a,e.name,new Map),n=!1;if(l)n=!0;else for(let e of t.values())if(!e.hasDuplicateNameToRemove){n=!0;break}a.get(e.name).set(e,{node:e,hasDuplicateNameToRemove:n})}},exit({node:e},{openRefs:t}){t.get(e.number)===e&&t.delete(e.number)}},Group:{enter({node:e},t){t.prevFlags=t.currentFlags,e.flags&&(t.currentFlags=tf(t.currentFlags,e.flags))},exit(e,t){t.currentFlags=t.prevFlags}},Subroutine({node:e,parent:t,replaceWith:n},r){let{isRecursive:i,ref:a}=e;if(i){let n=t;for(;(n=n.parent)&&!(n.type===`CapturingGroup`&&(n.name===a||n.number===a)););r.reffedNodesByReferencer.set(e,n);return}let o=r.subroutineRefMap.get(a),s=a===0,c=s?Af(0):kf(o,r.groupOriginByCopy,null),l=c;if(!s){let e=Nf(jf(o,e=>e.type===`Group`&&!!e.flags)),t=e?tf(r.globalFlags,e):r.globalFlags;Df(t,r.currentFlags)||(l=ad({flags:Pf(t)}),l.body[0].body.push(c))}n(Gf(l,t),{traverse:!s})}},Tf={Backreference({node:e,parent:t,replaceWith:n},r){if(e.orphan){r.highestOrphanBackref=Math.max(r.highestOrphanBackref,e.ref);return}let i=r.reffedNodesByReferencer.get(e).filter(t=>Of(t,e));i.length?i.length>1?n(Gf(ad({atomic:!0,body:i.reverse().map(e=>Yu({body:[Zu(e.number)]}))}),t)):e.ref=i[0].number:n(Gf(od({negate:!0}),t))},CapturingGroup({node:e},t){e.number=++t.numCapturesToLeft,e.name&&t.groupsByName.get(e.name).get(e).hasDuplicateNameToRemove&&delete e.name},Regex:{exit({node:e},t){let n=Math.max(t.highestOrphanBackref-t.numCapturesToLeft,0);for(let t=0;t<n;t++){let t=Qu();e.body.at(-1).body.push(t)}}},Subroutine({node:e},t){!e.isRecursive||e.ref===0||(e.ref=t.reffedNodesByReferencer.get(e).number)}};function Ef(e){Cd(e,{"*"({node:e,parent:t}){e.parent=t}})}function Df(e,t){return e.dotAll===t.dotAll&&e.ignoreCase===t.ignoreCase}function Of(e,t){let n=t;do{if(n.type===`Regex`)return!1;if(n.type===`Alternative`)continue;if(n===e)return!1;let t=Ff(n.parent);for(let r of t){if(r===n)break;if(r===e||Lf(r,e))return!0}}while(n=n.parent);throw Error(`Unexpected path`)}function kf(e,t,n,r){let i=Array.isArray(e)?[]:{};for(let[a,o]of Object.entries(e))a===`parent`?i.parent=Array.isArray(n)?r:n:o&&typeof o==`object`?i[a]=kf(o,t,i,n):(a===`type`&&o===`CapturingGroup`&&t.set(i,t.get(e)??e),i[a]=o);return i}function Af(e){let t=dd(e);return t.isRecursive=!0,t}function jf(e,t){let n=[];for(;e=e.parent;)(!t||t(e))&&n.push(e);return n}function Mf(e,t){if(t.has(e))return t.get(e);let n=`$${t.size}_${e.replace(/^[^$_\p{IDS}]|[^$\u200C\u200D\p{IDC}]/gu,`_`)}`;return t.set(e,n),n}function Nf(e){let t=[`dotAll`,`ignoreCase`],n={enable:{},disable:{}};return e.forEach(({flags:e})=>{t.forEach(t=>{e.enable?.[t]&&(delete n.disable[t],n.enable[t]=!0),e.disable?.[t]&&(n.disable[t]=!0)})}),Object.keys(n.enable).length||delete n.enable,Object.keys(n.disable).length||delete n.disable,n.enable||n.disable?n:null}function Pf({dotAll:e,ignoreCase:t}){let n={};return(e||t)&&(n.enable={},e&&(n.enable.dotAll=!0),t&&(n.enable.ignoreCase=!0)),(!e||!t)&&(n.disable={},!e&&(n.disable.dotAll=!0),!t&&(n.disable.ignoreCase=!0)),n}function Ff(e){if(!e)throw Error(`Node expected`);let{body:t}=e;return Array.isArray(t)?t:t?[t]:null}function If(e){let t=e.find(e=>e.kind===`search_start`||Bf(e,{negate:!1})||!Rf(e));if(!t)return null;if(t.kind===`search_start`)return t;if(t.type===`LookaroundAssertion`)return t.body[0].body[0];if(t.type===`CapturingGroup`||t.type===`Group`){let e=[];for(let n of t.body){let t=If(n.body);if(!t)return null;Array.isArray(t)?e.push(...t):e.push(t)}return e}return null}function Lf(e,t){let n=Ff(e)??[];for(let e of n)if(e===t||Lf(e,t))return!0;return!1}function Rf({type:e}){return e===`Assertion`||e===`Directive`||e===`LookaroundAssertion`}function zf(e){let t=[`Character`,`CharacterClass`,`CharacterSet`];return t.includes(e.type)||e.type===`Quantifier`&&e.min&&t.includes(e.body.type)}function Bf(e,t){let n={negate:null,...t};return e.type===`LookaroundAssertion`&&(n.negate===null||e.negate===n.negate)&&e.body.length===1&&Iu(e.body[0],{type:`Assertion`,kind:`search_start`})}function Vf(e){return/^[$_\p{IDS}][$\u200C\u200D\p{IDC}]*$/u.test(e)}function Hf(e,t){let n=zu(e,{...t,unicodePropertyMap:pf}).body;return n.length>1||n[0].body.length>1?ad({body:n}):n[0].body[0]}function Uf(e,t){return e.negate=t,e}function Wf(e,t){return e.parent=t,e}function Gf(e,t){return Ef(e),e.parent=t,e}function Kf(e,t){let n=cf(t),r=rf(n.target,`ES2024`),i=rf(n.target,`ES2025`),a=n.rules.recursionLimit;if(!Number.isInteger(a)||a<2||a>20)throw Error(`Invalid recursionLimit; use 2-20`);let o=null,s=null;if(!i){let t=[e.flags.ignoreCase];Cd(e,qf,{getCurrentModI:()=>t.at(-1),popModI(){t.pop()},pushModI(e){t.push(e)},setHasCasedChar(){t.at(-1)?o=!0:s=!0}})}let c={dotAll:e.flags.dotAll,ignoreCase:!!((e.flags.ignoreCase||o)&&!s)},l=e,u={accuracy:n.accuracy,appliedGlobalFlags:c,captureMap:new Map,currentFlags:{dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},inCharClass:!1,lastNode:l,originMap:e._originMap,recursionLimit:a,useAppliedIgnoreCase:!!(!i&&o&&s),useFlagMods:i,useFlagV:r,verbose:n.verbose};function d(e){return u.lastNode=l,l=e,af(Jf[e.type],`Unexpected node type "${e.type}"`)(e,u,d)}let f={pattern:e.body.map(d).join(`|`),flags:d(e.flags),options:{...e.options}};return r||(delete f.options.force.v,f.options.disable.v=!0,f.options.unicodeSetsPlugin=null),f._captureTransfers=new Map,f._hiddenCaptures=[],u.captureMap.forEach((e,t)=>{e.hidden&&f._hiddenCaptures.push(t),e.transferTo&&nf(f._captureTransfers,e.transferTo,[]).push(t)}),f}var qf={"*":{enter({node:e},t){if(op(e)){let n=t.getCurrentModI();t.pushModI(e.flags?tf({ignoreCase:n},e.flags).ignoreCase:n)}},exit({node:e},t){op(e)&&t.popModI()}},Backreference(e,t){t.setHasCasedChar()},Character({node:e},t){ep(Qd(e.value))&&t.setHasCasedChar()},CharacterClassRange({node:e,skip:t},n){t(),tp(e,{firstOnly:!0}).length&&n.setHasCasedChar()},CharacterSet({node:e},t){e.kind===`property`&&xf.has(e.value)&&t.setHasCasedChar()}},Jf={Alternative({body:e},t,n){return e.map(n).join(``)},Assertion({kind:e,negate:t}){if(e===`string_end`)return`$`;if(e===`string_start`)return`^`;if(e===`word_boundary`)return t?N`\B`:N`\b`;throw Error(`Unexpected assertion kind "${e}"`)},Backreference({ref:e},t){if(typeof e!=`number`)throw Error(`Unexpected named backref in transformed AST`);if(!t.useFlagMods&&t.accuracy===`strict`&&t.currentFlags.ignoreCase&&!t.captureMap.get(e).ignoreCase)throw Error(`Use of case-insensitive backref to case-sensitive group requires target ES2025 or non-strict accuracy`);return`\\`+e},CapturingGroup(e,t,n){let{body:r,name:i,number:a}=e,o={ignoreCase:t.currentFlags.ignoreCase},s=t.originMap.get(e);return s&&(o.hidden=!0,a>s.number&&(o.transferTo=s.number)),t.captureMap.set(a,o),`(${i?`?<${i}>`:``}${r.map(n).join(`|`)})`},Character({value:e},t){let n=Qd(e),r=np(e,{escDigit:t.lastNode.type===`Backreference`,inCharClass:t.inCharClass,useFlagV:t.useFlagV});if(r!==n)return r;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase&&ep(n)){let e=ff(n);return t.inCharClass?e.join(``):e.length>1?`[${e.join(``)}]`:e[0]}return n},CharacterClass(e,t,n){let{kind:r,negate:i,parent:a}=e,{body:o}=e;if(r===`intersection`&&!t.useFlagV)throw Error(`Use of character class intersection requires min target ES2024`);$d.bugFlagVLiteralHyphenIsRange&&t.useFlagV&&o.some(cp)&&(o=[$u(45),...o.filter(e=>!cp(e))]);let s=()=>`[${i?`^`:``}${o.map(n).join(r===`intersection`?`&&`:``)}]`;if(!t.inCharClass){if((!t.useFlagV||$d.bugNestedClassIgnoresNegation)&&!i){let t=o.filter(e=>e.type===`CharacterClass`&&e.kind===`union`&&e.negate);if(t.length){let r=ad(),i=r.body[0];return r.parent=a,i.parent=r,o=o.filter(e=>!t.includes(e)),e.body=o,o.length?(e.parent=i,i.body.push(e)):r.body.pop(),t.forEach(e=>{let t=Yu({body:[e]});e.parent=t,t.parent=r,r.body.push(t)}),n(r)}}t.inCharClass=!0;let r=s();return t.inCharClass=!1,r}let c=o[0];if(r===`union`&&!i&&c&&((!t.useFlagV||!t.verbose)&&a.kind===`union`&&!($d.bugFlagVLiteralHyphenIsRange&&t.useFlagV)||!t.verbose&&a.kind===`intersection`&&o.length===1&&c.type!==`CharacterClassRange`))return o.map(n).join(``);if(!t.useFlagV&&a.type===`CharacterClass`)throw Error(`Uses nested character class in a way that requires min target ES2024`);return s()},CharacterClassRange(e,t){let n=e.min.value,r=e.max.value,i={escDigit:!1,inCharClass:!0,useFlagV:t.useFlagV},a=np(n,i),o=np(r,i),s=new Set;return t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase&&rp(tp(e)).forEach(e=>{s.add(Array.isArray(e)?`${np(e[0],i)}-${np(e[1],i)}`:np(e,i))}),`${a}-${o}${[...s].join(``)}`},CharacterSet({kind:e,negate:t,value:n,key:r},i){if(e===`dot`)return i.currentFlags.dotAll?i.appliedGlobalFlags.dotAll||i.useFlagMods?`.`:`[^]`:N`[^\n]`;if(e===`digit`)return t?N`\D`:N`\d`;if(e===`property`){if(i.useAppliedIgnoreCase&&i.currentFlags.ignoreCase&&xf.has(n))throw Error(`Unicode property "${n}" can't be case-insensitive when other chars have specific case`);return`${t?N`\P`:N`\p`}{${r?`${r}=`:``}${n}}`}if(e===`word`)return t?N`\W`:N`\w`;throw Error(`Unexpected character set kind "${e}"`)},Flags(e,t){return(t.appliedGlobalFlags.ignoreCase?`i`:``)+(e.dotAll?`s`:``)+(e.sticky?`y`:``)},Group({atomic:e,body:t,flags:n,parent:r},i,a){let o=i.currentFlags;n&&(i.currentFlags=tf(o,n));let s=t.map(a).join(`|`),c=!i.verbose&&t.length===1&&r.type!==`Quantifier`&&!e&&(!i.useFlagMods||!n)?s:`(?${ip(e,n,i.useFlagMods)}${s})`;return i.currentFlags=o,c},LookaroundAssertion({body:e,kind:t,negate:n},r,i){return`(?${`${t===`lookahead`?``:`<`}${n?`!`:`=`}`}${e.map(i).join(`|`)})`},Quantifier(e,t,n){return n(e.body)+ap(e)},Subroutine({isRecursive:e,ref:t},n){if(!e)throw Error(`Unexpected non-recursive subroutine in transformed AST`);let r=n.recursionLimit;return t===0?`(?R=${r})`:N`\g<${t}&R=${r}>`}},Yf=new Set([`$`,`(`,`)`,`*`,`+`,`.`,`?`,`[`,`\\`,`]`,`^`,`{`,`|`,`}`]),Xf=new Set([`-`,`\\`,`]`,`^`,`[`]),Zf=new Set("()-/[\\]^{|}!#$%&*+,.:;<=>?@`~".split(``)),Qf=new Map([[9,N`\t`],[10,N`\n`],[11,N`\v`],[12,N`\f`],[13,N`\r`],[8232,N`\u2028`],[8233,N`\u2029`],[65279,N`\uFEFF`]]),$f=/^\p{Cased}$/u;function ep(e){return $f.test(e)}function tp(e,t){let n=!!t?.firstOnly,r=e.min.value,i=e.max.value,a=[];if(r<65&&(i===65535||i>=131071)||r===65536&&i>=131071)return a;for(let e=r;e<=i;e++){let t=Qd(e);if(!ep(t))continue;let o=ff(t).filter(e=>{let t=e.codePointAt(0);return t<r||t>i});if(o.length&&(a.push(...o),n))break}return a}function np(e,{escDigit:t,inCharClass:n,useFlagV:r}){if(Qf.has(e))return Qf.get(e);if(e<32||e>126&&e<160||e>262143||t&&sp(e))return e>255?`\\u{${e.toString(16).toUpperCase()}}`:`\\x${e.toString(16).toUpperCase().padStart(2,`0`)}`;let i=n?r?Zf:Xf:Yf,a=Qd(e);return(i.has(a)?`\\`:``)+a}function rp(e){let t=e.map(e=>e.codePointAt(0)).sort((e,t)=>e-t),n=[],r=null;for(let e=0;e<t.length;e++)t[e+1]===t[e]+1?r??=t[e]:r===null?n.push(t[e]):(n.push([r,t[e]]),r=null);return n}function ip(e,t,n){if(e)return`>`;let r=``;if(t&&n){let{enable:e,disable:n}=t;r=(e?.ignoreCase?`i`:``)+(e?.dotAll?`s`:``)+(n?`-`:``)+(n?.ignoreCase?`i`:``)+(n?.dotAll?`s`:``)}return`${r}:`}function ap({kind:e,max:t,min:n}){let r;return r=!n&&t===1?`?`:!n&&t===1/0?`*`:n===1&&t===1/0?`+`:n===t?`{${n}}`:`{${n},${t===1/0?``:t}}`,r+{greedy:``,lazy:`?`,possessive:`+`}[e]}function op({type:e}){return e===`CapturingGroup`||e===`Group`||e===`LookaroundAssertion`}function sp(e){return e>47&&e<58}function cp({type:e,value:t}){return e===`Character`&&t===45}var lp=class e extends RegExp{#e=new Map;#t=null;#n;#r=null;#i=null;rawOptions={};get source(){return this.#n||`(?:)`}constructor(t,n,r){let i=!!r?.lazyCompile;if(t instanceof RegExp){if(r)throw Error(`Cannot provide options when copying a regexp`);let i=t;super(i,n),this.#n=i.source,i instanceof e&&(this.#e=i.#e,this.#r=i.#r,this.#i=i.#i,this.rawOptions=i.rawOptions)}else{let e={hiddenCaptures:[],strategy:null,transfers:[],...r};super(i?``:t,n),this.#n=t,this.#e=dp(e.hiddenCaptures,e.transfers),this.#i=e.strategy,this.rawOptions=r??{}}i||(this.#t=this)}exec(t){if(!this.#t){let{lazyCompile:t,...n}=this.rawOptions;this.#t=new e(this.#n,this.flags,n)}let n=this.global||this.sticky,r=this.lastIndex;if(this.#i===`clip_search`&&n&&r){this.lastIndex=0;let e=this.#a(t.slice(r));return e&&(up(e,r,t,this.hasIndices),this.lastIndex+=r),e}return this.#a(t)}#a(e){this.#t.lastIndex=this.lastIndex;let t=super.exec.call(this.#t,e);if(this.lastIndex=this.#t.lastIndex,!t||!this.#e.size)return t;let n=[...t];t.length=1;let r;this.hasIndices&&(r=[...t.indices],t.indices.length=1);let i=[0];for(let e=1;e<n.length;e++){let{hidden:a,transferTo:o}=this.#e.get(e)??{};if(a?i.push(null):(i.push(t.length),t.push(n[e]),this.hasIndices&&t.indices.push(r[e])),o&&n[e]!==void 0){let a=i[o];if(!a)throw Error(`Invalid capture transfer to "${a}"`);if(t[a]=n[e],this.hasIndices&&(t.indices[a]=r[e]),t.groups){this.#r||=fp(this.source);let i=this.#r.get(o);i&&(t.groups[i]=n[e],this.hasIndices&&(t.indices.groups[i]=r[e]))}}}return t}};function up(e,t,n,r){if(e.index+=t,e.input=n,r){let n=e.indices;for(let e=0;e<n.length;e++){let r=n[e];r&&(n[e]=[r[0]+t,r[1]+t])}let r=n.groups;r&&Object.keys(r).forEach(e=>{let n=r[e];n&&(r[e]=[n[0]+t,n[1]+t])})}}function dp(e,t){let n=new Map;for(let t of e)n.set(t,{hidden:!0});for(let[e,r]of t)for(let t of r)nf(n,t,{}).transferTo=e;return n}function fp(e){let t=/(?<capture>\((?:\?<(?![=!])(?<name>[^>]+)>|(?!\?)))|\\?./gsu,n=new Map,r=0,i=0,a;for(;a=t.exec(e);){let{0:e,groups:{capture:t,name:o}}=a;e===`[`?r++:r?e===`]`&&r--:t&&(i++,o&&n.set(i,o))}return n}function pp(e,t){let n=mp(e,t);return n.options?new lp(n.pattern,n.flags,n.options):new RegExp(n.pattern,n.flags)}function mp(e,t){let n=cf(t),r=Sf(zu(e,{flags:n.flags,normalizeUnknownPropertyNames:!0,rules:{captureGroup:n.rules.captureGroup,singleline:n.rules.singleline},skipBackrefValidation:n.rules.allowOrphanBackrefs,unicodePropertyMap:pf}),{accuracy:n.accuracy,asciiWordBoundaries:n.rules.asciiWordBoundaries,avoidSubclass:n.avoidSubclass,bestEffortTarget:n.target}),i=Kf(r,n),a=Kd(i.pattern,{captureTransfers:i._captureTransfers,hiddenCaptures:i._hiddenCaptures,mode:`external`}),o=Id(zd(a.pattern).pattern,{captureTransfers:a.captureTransfers,hiddenCaptures:a.hiddenCaptures}),s={pattern:o.pattern,flags:`${n.hasIndices?`d`:``}${n.global?`g`:``}${i.flags}${i.options.disable.v?`u`:`v`}`};if(n.avoidSubclass){if(n.lazyCompileLength!==1/0)throw Error(`Lazy compilation requires subclass`)}else{let e=o.hiddenCaptures.sort((e,t)=>e-t),t=Array.from(o.captureTransfers),i=r._strategy,a=s.pattern.length>=n.lazyCompileLength;(e.length||t.length||i||a)&&(s.options={...e.length&&{hiddenCaptures:e},...t.length&&{transfers:t},...i&&{strategy:i},...a&&{lazyCompile:a}})}return s}var hp=4294967295,gp=class{constructor(e,t={}){this.patterns=e,this.options=t;let{forgiving:n=!1,cache:r,regexConstructor:i}=t;if(!i)throw Error("Option `regexConstructor` is not provided");this.regexps=e.map(e=>{if(typeof e!=`string`)return e;let t=r?.get(e);if(t){if(t instanceof RegExp)return t;if(n)return null;throw t}try{let t=i(e);return r?.set(e,t),t}catch(t){if(r?.set(e,t),n)return null;throw t}})}regexps;findNextMatchSync(e,t,n){let r=typeof e==`string`?e:e.content,i=[];function a(e,t,n=0){return{index:e,captureIndices:t.indices.map(e=>e==null?{start:hp,end:hp,length:0}:{start:e[0]+n,end:e[1]+n,length:e[1]-e[0]})}}for(let e=0;e<this.regexps.length;e++){let n=this.regexps[e];if(n)try{n.lastIndex=t;let o=n.exec(r);if(!o)continue;if(o.index===t)return a(e,o,0);i.push([e,o,0])}catch(e){if(this.options.forgiving)continue;throw e}}if(i.length){let e=Math.min(...i.map(e=>e[1].index));for(let[t,n,r]of i)if(n.index===e)return a(t,n,r)}return null}};function _p(e,t){return pp(e,{global:!0,hasIndices:!0,lazyCompileLength:3e3,rules:{allowOrphanBackrefs:!0,asciiWordBoundaries:!0,captureGroup:!0,recursionLimit:5,singleline:!0},...t})}function vp(e={}){let t=Object.assign({target:`auto`,cache:new Map},e);return t.regexConstructor||=e=>_p(e,{target:t.target}),{createScanner(e){return new gp(e,t)},createString(e){return{content:e}}}}var yp=vp({forgiving:!0}),bp=Object.fromEntries(cl.flatMap(e=>(e.aliases??[]).map(t=>[t,e.id]))),xp=new Set(Object.keys(dl)),Sp=e=>{let t=e.trim().toLowerCase();return bp[t]||(xp.has(t),t)},Cp=new Map,wp=new Map,Tp=new Map,Ep=e=>typeof e==`string`?e:e.name??`custom`,Dp=(e,t)=>`${e}-${Ep(t[0])}-${Ep(t[1])}`,Op=(e,t,n)=>{let r=e.slice(0,100),i=e.length>100?e.slice(-100):``;return`${t}:${n[0]}:${n[1]}:${e.length}:${r}:${i}`},kp=(e,t)=>{let n=Dp(e,t);if(Cp.has(n))return Cp.get(n);let r=Rl({themes:t,langs:[e],engine:yp});return Cp.set(n,r),r};function Ap(e={}){let t=e.themes??[`github-light`,`github-dark`];return{name:`shiki`,type:`code-highlighter`,supportsLanguage(e){let t=Sp(e);return xp.has(t)},getSupportedLanguages(){return Array.from(xp)},getThemes(){return t},highlight({code:e,language:t,themes:n},r){let i=Sp(t),a=[Ep(n[0]),Ep(n[1])],o=Op(e,i,a);return wp.has(o)?wp.get(o):(r&&(Tp.has(o)||Tp.set(o,new Set),Tp.get(o).add(r)),kp(xp.has(i)?i:`text`,n).then(t=>{let n=t.getLoadedLanguages().includes(i)?i:`text`,r=t.codeToTokens(e,{lang:n,themes:{light:a[0],dark:a[1]}});wp.set(o,r);let s=Tp.get(o);if(s){for(let e of s)e(r);Tp.delete(o)}}).catch(e=>{console.error(`[Streamdown Code] Failed to highlight code:`,e),Tp.delete(o)}),null)}}}var jp=Ap();function Mp(e,t){return Np(e,t||{})||{type:`root`,children:[]}}function Np(e,t){let n=Pp(e,t);return n&&t.afterTransform&&t.afterTransform(e,n),n}function Pp(e,t){switch(e.nodeType){case 1:return zp(e,t);case 3:return Lp(e);case 8:return Rp(e);case 9:return Fp(e,t);case 10:return Ip();case 11:return Fp(e,t);default:return}}function Fp(e,t){return{type:`root`,children:Bp(e,t)}}function Ip(){return{type:`doctype`}}function Lp(e){return{type:`text`,value:e.nodeValue||``}}function Rp(e){return{type:`comment`,value:e.nodeValue||``}}function zp(e,t){let n=e.namespaceURI,r=n===kt.svg?Bt:Pt,i=n===kt.html?e.tagName.toLowerCase():e.tagName,a=n===kt.html&&i===`template`?e.content:e,o=e.getAttributeNames(),s={},c=-1;for(;++c<o.length;)s[o[c]]=e.getAttribute(o[c])||``;return r(i,s,Bp(a,t))}function Bp(e,t){let n=e.childNodes,r=[],i=-1;for(;++i<n.length;){let e=Np(n[i],t);e!==void 0&&r.push(e)}return r}var Vp=new DOMParser;function Hp(e,t){return Mp(t?.fragment?Up(e):Vp.parseFromString(e,`text/html`))}function Up(e){let t=document.createElement(`template`);return t.innerHTML=e,t.content}var Wp=(function(e,t,n){let r=xt(n);if(!e||!e.type||!e.children)throw Error(`Expected parent node`);if(typeof t==`number`){if(t<0||t===1/0)throw Error(`Expected positive finite number as index`)}else if(t=e.children.indexOf(t),t<0)throw Error(`Expected child node or index`);for(;++t<e.children.length;)if(r(e.children[t],t,e))return e.children[t]}),Gp=(function(e){if(e==null)return Yp;if(typeof e==`string`)return qp(e);if(typeof e==`object`)return Kp(e);if(typeof e==`function`)return Jp(e);throw Error("Expected function, string, or array as `test`")});function Kp(e){let t=[],n=-1;for(;++n<e.length;)t[n]=Gp(e[n]);return Jp(r);function r(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1}}function qp(e){return Jp(t);function t(t){return t.tagName===e}}function Jp(e){return t;function t(t,n,r){return!!(Xp(t)&&e.call(this,t,typeof n==`number`?n:void 0,r||void 0))}}function Yp(e){return!!(e&&typeof e==`object`&&`type`in e&&e.type===`element`&&`tagName`in e&&typeof e.tagName==`string`)}function Xp(e){return typeof e==`object`&&!!e&&`type`in e&&`tagName`in e}var Zp=/\n/g,Qp=/[\t ]+/g,$p=Gp(`br`),em=Gp(pm),tm=Gp(`p`),nm=Gp(`tr`),rm=Gp([`datalist`,`head`,`noembed`,`noframes`,`noscript`,`rp`,`script`,`style`,`template`,`title`,fm,mm]),im=Gp(`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`.split(`.`));function am(e,t){let n=t||{},r=`children`in e?e.children:[],i=im(e),a=dm(e,{whitespace:n.whitespace||`normal`,breakBefore:!1,breakAfter:!1}),o=[];(e.type===`text`||e.type===`comment`)&&o.push(...cm(e,{whitespace:a,breakBefore:!0,breakAfter:!0}));let s=-1;for(;++s<r.length;)o.push(...om(r[s],e,{whitespace:a,breakBefore:s?void 0:i,breakAfter:s<r.length-1?$p(r[s+1]):i}));let c=[],l;for(s=-1;++s<o.length;){let e=o[s];typeof e==`number`?l!==void 0&&e>l&&(l=e):e&&(l!==void 0&&l>-1&&c.push(`
|
|
156
|
-
`.repeat(l)||` `),l=-1,c.push(e))}return c.join(``)}function
|
|
157
|
-
|
|
155
|
+
\v\f
\u2028\u2029])`),t));else if(c===`posix`)if(!i&&(u===`graph`||u===`print`)){if(r===`strict`)throw Error(`POSIX class "${u}" requires min target ES2024 or non-strict accuracy`);let e={graph:`!-~`,print:` -~`}[u];l&&(e=`\0-${Xd(e.codePointAt(0)-1)}${Xd(e.codePointAt(2)+1)}-\u{10FFFF}`),n(Uf(Bf(`[${e}]`),t))}else n(Uf(Vf(Bf(hf.get(u)),l),t));else if(c===`property`)df.has(vd(u))||(e.key=`sc`);else if(c===`space`)n(Hf(ud(`space`,{negate:l}),t));else if(c===`word`)n(Uf(Vf(Bf(lf),l),t));else throw Error(`Unexpected character set kind "${c}"`)},Directive({node:e,parent:t,root:n,remove:r,replaceWith:i,removeAllPrevSiblings:a,removeAllNextSiblings:o}){let{kind:s,flags:c}=e;if(s===`flags`)if(!c.enable&&!c.disable)r();else{let e=rd({flags:c});e.body[0].body=o(),i(Uf(e,t),{traverse:!0})}else if(s===`keep`){let e=n.body[0],r=n.body.length===1&&Pu(e,{type:`Group`})&&e.body[0].body.length===1?e.body[0]:n;if(t.parent!==r||r.body.length>1)throw Error(N`Uses "\K" in a way that's unsupported`);let o=id({behind:!0});o.body[0].body=a(),i(Uf(o,t))}else throw Error(`Unexpected directive kind "${s}"`)},Flags({node:e,parent:t}){if(e.posixIsAscii)throw Error(`Unsupported flag "P"`);if(e.textSegmentMode===`word`)throw Error(`Unsupported flag "y{w}"`);[`digitIsAscii`,`extended`,`posixIsAscii`,`spaceIsAscii`,`wordIsAscii`,`textSegmentMode`].forEach(t=>delete e[t]),Object.assign(e,{global:!1,hasIndices:!1,multiline:!1,sticky:e.sticky??!1}),t.options={disable:{x:!0,n:!0},force:{v:!0}}},Group({node:e}){if(!e.flags)return;let{enable:t,disable:n}=e.flags;t?.extended&&delete t.extended,n?.extended&&delete n.extended,t?.dotAll&&n?.dotAll&&delete t.dotAll,t?.ignoreCase&&n?.ignoreCase&&delete t.ignoreCase,t&&!Object.keys(t).length&&delete e.flags.enable,n&&!Object.keys(n).length&&delete e.flags.disable,!e.flags.enable&&!e.flags.disable&&delete e.flags},LookaroundAssertion({node:e},t){let{kind:n}=e;n===`lookbehind`&&(t.passedLookbehind=!0)},NamedCallout({node:e,parent:t,replaceWith:n}){let{kind:r}=e;if(r===`fail`)n(Uf(id({negate:!0}),t));else throw Error(`Unsupported named callout "(*${r.toUpperCase()}"`)},Quantifier({node:e}){if(e.body.type===`Quantifier`){let t=rd();t.body[0].body.push(e.body),e.body=Uf(t,e)}},Regex:{enter({node:e},{supportedGNodes:t}){let n=[],r=!1,i=!1;for(let t of e.body)if(t.body.length===1&&t.body[0].kind===`search_start`)t.body.pop();else{let e=Pf(t.body);e?(r=!0,Array.isArray(e)?n.push(...e):n.push(e)):i=!0}r&&!i&&n.forEach(e=>t.add(e))},exit(e,{accuracy:t,passedLookbehind:n,strategy:r}){if(t===`strict`&&n&&r)throw Error(N`Uses "\G" in a way that requires non-strict accuracy`)}},Subroutine({node:e},{jsGroupNameMap:t}){let{ref:n}=e;typeof n==`string`&&!zf(n)&&(n=Af(n,t),e.ref=n)}},Sf={Backreference({node:e},{multiplexCapturesToLeftByRef:t,reffedNodesByReferencer:n}){let{orphan:r,ref:i}=e;r||n.set(e,[...t.get(i).map(({node:e})=>e)])},CapturingGroup:{enter({node:e,parent:t,replaceWith:n,skip:r},{groupOriginByCopy:i,groupsByName:a,multiplexCapturesToLeftByRef:o,openRefs:s,reffedNodesByReferencer:c}){let l=i.get(e);if(l&&s.has(e.number)){let r=Hf(Of(e.number),t);c.set(r,s.get(e.number)),n(r);return}s.set(e.number,e),o.set(e.number,[]),e.name&&ef(o,e.name,[]);let u=o.get(e.name??e.number);for(let t=0;t<u.length;t++){let n=u[t];if(l===n.node||l&&l===n.origin||e===n.origin){u.splice(t,1);break}}if(o.get(e.number).push({node:e,origin:l}),e.name&&o.get(e.name).push({node:e,origin:l}),e.name){let t=ef(a,e.name,new Map),n=!1;if(l)n=!0;else for(let e of t.values())if(!e.hasDuplicateNameToRemove){n=!0;break}a.get(e.name).set(e,{node:e,hasDuplicateNameToRemove:n})}},exit({node:e},{openRefs:t}){t.get(e.number)===e&&t.delete(e.number)}},Group:{enter({node:e},t){t.prevFlags=t.currentFlags,e.flags&&(t.currentFlags=$d(t.currentFlags,e.flags))},exit(e,t){t.currentFlags=t.prevFlags}},Subroutine({node:e,parent:t,replaceWith:n},r){let{isRecursive:i,ref:a}=e;if(i){let n=t;for(;(n=n.parent)&&!(n.type===`CapturingGroup`&&(n.name===a||n.number===a)););r.reffedNodesByReferencer.set(e,n);return}let o=r.subroutineRefMap.get(a),s=a===0,c=s?Of(0):Df(o,r.groupOriginByCopy,null),l=c;if(!s){let e=jf(kf(o,e=>e.type===`Group`&&!!e.flags)),t=e?$d(r.globalFlags,e):r.globalFlags;Tf(t,r.currentFlags)||(l=rd({flags:Mf(t)}),l.body[0].body.push(c))}n(Uf(l,t),{traverse:!s})}},Cf={Backreference({node:e,parent:t,replaceWith:n},r){if(e.orphan){r.highestOrphanBackref=Math.max(r.highestOrphanBackref,e.ref);return}let i=r.reffedNodesByReferencer.get(e).filter(t=>Ef(t,e));i.length?i.length>1?n(Uf(rd({atomic:!0,body:i.reverse().map(e=>qu({body:[Yu(e.number)]}))}),t)):e.ref=i[0].number:n(Uf(id({negate:!0}),t))},CapturingGroup({node:e},t){e.number=++t.numCapturesToLeft,e.name&&t.groupsByName.get(e.name).get(e).hasDuplicateNameToRemove&&delete e.name},Regex:{exit({node:e},t){let n=Math.max(t.highestOrphanBackref-t.numCapturesToLeft,0);for(let t=0;t<n;t++){let t=Xu();e.body.at(-1).body.push(t)}}},Subroutine({node:e},t){!e.isRecursive||e.ref===0||(e.ref=t.reffedNodesByReferencer.get(e).number)}};function wf(e){xd(e,{"*"({node:e,parent:t}){e.parent=t}})}function Tf(e,t){return e.dotAll===t.dotAll&&e.ignoreCase===t.ignoreCase}function Ef(e,t){let n=t;do{if(n.type===`Regex`)return!1;if(n.type===`Alternative`)continue;if(n===e)return!1;let t=Nf(n.parent);for(let r of t){if(r===n)break;if(r===e||Ff(r,e))return!0}}while(n=n.parent);throw Error(`Unexpected path`)}function Df(e,t,n,r){let i=Array.isArray(e)?[]:{};for(let[a,o]of Object.entries(e))a===`parent`?i.parent=Array.isArray(n)?r:n:o&&typeof o==`object`?i[a]=Df(o,t,i,n):(a===`type`&&o===`CapturingGroup`&&t.set(i,t.get(e)??e),i[a]=o);return i}function Of(e){let t=ld(e);return t.isRecursive=!0,t}function kf(e,t){let n=[];for(;e=e.parent;)(!t||t(e))&&n.push(e);return n}function Af(e,t){if(t.has(e))return t.get(e);let n=`$${t.size}_${e.replace(/^[^$_\p{IDS}]|[^$\u200C\u200D\p{IDC}]/gu,`_`)}`;return t.set(e,n),n}function jf(e){let t=[`dotAll`,`ignoreCase`],n={enable:{},disable:{}};return e.forEach(({flags:e})=>{t.forEach(t=>{e.enable?.[t]&&(delete n.disable[t],n.enable[t]=!0),e.disable?.[t]&&(n.disable[t]=!0)})}),Object.keys(n.enable).length||delete n.enable,Object.keys(n.disable).length||delete n.disable,n.enable||n.disable?n:null}function Mf({dotAll:e,ignoreCase:t}){let n={};return(e||t)&&(n.enable={},e&&(n.enable.dotAll=!0),t&&(n.enable.ignoreCase=!0)),(!e||!t)&&(n.disable={},!e&&(n.disable.dotAll=!0),!t&&(n.disable.ignoreCase=!0)),n}function Nf(e){if(!e)throw Error(`Node expected`);let{body:t}=e;return Array.isArray(t)?t:t?[t]:null}function Pf(e){let t=e.find(e=>e.kind===`search_start`||Rf(e,{negate:!1})||!If(e));if(!t)return null;if(t.kind===`search_start`)return t;if(t.type===`LookaroundAssertion`)return t.body[0].body[0];if(t.type===`CapturingGroup`||t.type===`Group`){let e=[];for(let n of t.body){let t=Pf(n.body);if(!t)return null;Array.isArray(t)?e.push(...t):e.push(t)}return e}return null}function Ff(e,t){let n=Nf(e)??[];for(let e of n)if(e===t||Ff(e,t))return!0;return!1}function If({type:e}){return e===`Assertion`||e===`Directive`||e===`LookaroundAssertion`}function Lf(e){let t=[`Character`,`CharacterClass`,`CharacterSet`];return t.includes(e.type)||e.type===`Quantifier`&&e.min&&t.includes(e.body.type)}function Rf(e,t){let n={negate:null,...t};return e.type===`LookaroundAssertion`&&(n.negate===null||e.negate===n.negate)&&e.body.length===1&&Pu(e.body[0],{type:`Assertion`,kind:`search_start`})}function zf(e){return/^[$_\p{IDS}][$\u200C\u200D\p{IDC}]*$/u.test(e)}function Bf(e,t){let n=Lu(e,{...t,unicodePropertyMap:df}).body;return n.length>1||n[0].body.length>1?rd({body:n}):n[0].body[0]}function Vf(e,t){return e.negate=t,e}function Hf(e,t){return e.parent=t,e}function Uf(e,t){return wf(e),e.parent=t,e}function Wf(e,t){let n=of(t),r=tf(n.target,`ES2024`),i=tf(n.target,`ES2025`),a=n.rules.recursionLimit;if(!Number.isInteger(a)||a<2||a>20)throw Error(`Invalid recursionLimit; use 2-20`);let o=null,s=null;if(!i){let t=[e.flags.ignoreCase];xd(e,Gf,{getCurrentModI:()=>t.at(-1),popModI(){t.pop()},pushModI(e){t.push(e)},setHasCasedChar(){t.at(-1)?o=!0:s=!0}})}let c={dotAll:e.flags.dotAll,ignoreCase:!!((e.flags.ignoreCase||o)&&!s)},l=e,u={accuracy:n.accuracy,appliedGlobalFlags:c,captureMap:new Map,currentFlags:{dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},inCharClass:!1,lastNode:l,originMap:e._originMap,recursionLimit:a,useAppliedIgnoreCase:!!(!i&&o&&s),useFlagMods:i,useFlagV:r,verbose:n.verbose};function d(e){return u.lastNode=l,l=e,nf(Kf[e.type],`Unexpected node type "${e.type}"`)(e,u,d)}let f={pattern:e.body.map(d).join(`|`),flags:d(e.flags),options:{...e.options}};return r||(delete f.options.force.v,f.options.disable.v=!0,f.options.unicodeSetsPlugin=null),f._captureTransfers=new Map,f._hiddenCaptures=[],u.captureMap.forEach((e,t)=>{e.hidden&&f._hiddenCaptures.push(t),e.transferTo&&ef(f._captureTransfers,e.transferTo,[]).push(t)}),f}var Gf={"*":{enter({node:e},t){if(ip(e)){let n=t.getCurrentModI();t.pushModI(e.flags?$d({ignoreCase:n},e.flags).ignoreCase:n)}},exit({node:e},t){ip(e)&&t.popModI()}},Backreference(e,t){t.setHasCasedChar()},Character({node:e},t){Qf(Xd(e.value))&&t.setHasCasedChar()},CharacterClassRange({node:e,skip:t},n){t(),$f(e,{firstOnly:!0}).length&&n.setHasCasedChar()},CharacterSet({node:e},t){e.kind===`property`&&yf.has(e.value)&&t.setHasCasedChar()}},Kf={Alternative({body:e},t,n){return e.map(n).join(``)},Assertion({kind:e,negate:t}){if(e===`string_end`)return`$`;if(e===`string_start`)return`^`;if(e===`word_boundary`)return t?N`\B`:N`\b`;throw Error(`Unexpected assertion kind "${e}"`)},Backreference({ref:e},t){if(typeof e!=`number`)throw Error(`Unexpected named backref in transformed AST`);if(!t.useFlagMods&&t.accuracy===`strict`&&t.currentFlags.ignoreCase&&!t.captureMap.get(e).ignoreCase)throw Error(`Use of case-insensitive backref to case-sensitive group requires target ES2025 or non-strict accuracy`);return`\\`+e},CapturingGroup(e,t,n){let{body:r,name:i,number:a}=e,o={ignoreCase:t.currentFlags.ignoreCase},s=t.originMap.get(e);return s&&(o.hidden=!0,a>s.number&&(o.transferTo=s.number)),t.captureMap.set(a,o),`(${i?`?<${i}>`:``}${r.map(n).join(`|`)})`},Character({value:e},t){let n=Xd(e),r=ep(e,{escDigit:t.lastNode.type===`Backreference`,inCharClass:t.inCharClass,useFlagV:t.useFlagV});if(r!==n)return r;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase&&Qf(n)){let e=uf(n);return t.inCharClass?e.join(``):e.length>1?`[${e.join(``)}]`:e[0]}return n},CharacterClass(e,t,n){let{kind:r,negate:i,parent:a}=e,{body:o}=e;if(r===`intersection`&&!t.useFlagV)throw Error(`Use of character class intersection requires min target ES2024`);Zd.bugFlagVLiteralHyphenIsRange&&t.useFlagV&&o.some(op)&&(o=[Zu(45),...o.filter(e=>!op(e))]);let s=()=>`[${i?`^`:``}${o.map(n).join(r===`intersection`?`&&`:``)}]`;if(!t.inCharClass){if((!t.useFlagV||Zd.bugNestedClassIgnoresNegation)&&!i){let t=o.filter(e=>e.type===`CharacterClass`&&e.kind===`union`&&e.negate);if(t.length){let r=rd(),i=r.body[0];return r.parent=a,i.parent=r,o=o.filter(e=>!t.includes(e)),e.body=o,o.length?(e.parent=i,i.body.push(e)):r.body.pop(),t.forEach(e=>{let t=qu({body:[e]});e.parent=t,t.parent=r,r.body.push(t)}),n(r)}}t.inCharClass=!0;let r=s();return t.inCharClass=!1,r}let c=o[0];if(r===`union`&&!i&&c&&((!t.useFlagV||!t.verbose)&&a.kind===`union`&&!(Zd.bugFlagVLiteralHyphenIsRange&&t.useFlagV)||!t.verbose&&a.kind===`intersection`&&o.length===1&&c.type!==`CharacterClassRange`))return o.map(n).join(``);if(!t.useFlagV&&a.type===`CharacterClass`)throw Error(`Uses nested character class in a way that requires min target ES2024`);return s()},CharacterClassRange(e,t){let n=e.min.value,r=e.max.value,i={escDigit:!1,inCharClass:!0,useFlagV:t.useFlagV},a=ep(n,i),o=ep(r,i),s=new Set;return t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase&&tp($f(e)).forEach(e=>{s.add(Array.isArray(e)?`${ep(e[0],i)}-${ep(e[1],i)}`:ep(e,i))}),`${a}-${o}${[...s].join(``)}`},CharacterSet({kind:e,negate:t,value:n,key:r},i){if(e===`dot`)return i.currentFlags.dotAll?i.appliedGlobalFlags.dotAll||i.useFlagMods?`.`:`[^]`:N`[^\n]`;if(e===`digit`)return t?N`\D`:N`\d`;if(e===`property`){if(i.useAppliedIgnoreCase&&i.currentFlags.ignoreCase&&yf.has(n))throw Error(`Unicode property "${n}" can't be case-insensitive when other chars have specific case`);return`${t?N`\P`:N`\p`}{${r?`${r}=`:``}${n}}`}if(e===`word`)return t?N`\W`:N`\w`;throw Error(`Unexpected character set kind "${e}"`)},Flags(e,t){return(t.appliedGlobalFlags.ignoreCase?`i`:``)+(e.dotAll?`s`:``)+(e.sticky?`y`:``)},Group({atomic:e,body:t,flags:n,parent:r},i,a){let o=i.currentFlags;n&&(i.currentFlags=$d(o,n));let s=t.map(a).join(`|`),c=!i.verbose&&t.length===1&&r.type!==`Quantifier`&&!e&&(!i.useFlagMods||!n)?s:`(?${np(e,n,i.useFlagMods)}${s})`;return i.currentFlags=o,c},LookaroundAssertion({body:e,kind:t,negate:n},r,i){return`(?${`${t===`lookahead`?``:`<`}${n?`!`:`=`}`}${e.map(i).join(`|`)})`},Quantifier(e,t,n){return n(e.body)+rp(e)},Subroutine({isRecursive:e,ref:t},n){if(!e)throw Error(`Unexpected non-recursive subroutine in transformed AST`);let r=n.recursionLimit;return t===0?`(?R=${r})`:N`\g<${t}&R=${r}>`}},qf=new Set([`$`,`(`,`)`,`*`,`+`,`.`,`?`,`[`,`\\`,`]`,`^`,`{`,`|`,`}`]),Jf=new Set([`-`,`\\`,`]`,`^`,`[`]),Yf=new Set("()-/[\\]^{|}!#$%&*+,.:;<=>?@`~".split(``)),Xf=new Map([[9,N`\t`],[10,N`\n`],[11,N`\v`],[12,N`\f`],[13,N`\r`],[8232,N`\u2028`],[8233,N`\u2029`],[65279,N`\uFEFF`]]),Zf=/^\p{Cased}$/u;function Qf(e){return Zf.test(e)}function $f(e,t){let n=!!t?.firstOnly,r=e.min.value,i=e.max.value,a=[];if(r<65&&(i===65535||i>=131071)||r===65536&&i>=131071)return a;for(let e=r;e<=i;e++){let t=Xd(e);if(!Qf(t))continue;let o=uf(t).filter(e=>{let t=e.codePointAt(0);return t<r||t>i});if(o.length&&(a.push(...o),n))break}return a}function ep(e,{escDigit:t,inCharClass:n,useFlagV:r}){if(Xf.has(e))return Xf.get(e);if(e<32||e>126&&e<160||e>262143||t&&ap(e))return e>255?`\\u{${e.toString(16).toUpperCase()}}`:`\\x${e.toString(16).toUpperCase().padStart(2,`0`)}`;let i=n?r?Yf:Jf:qf,a=Xd(e);return(i.has(a)?`\\`:``)+a}function tp(e){let t=e.map(e=>e.codePointAt(0)).sort((e,t)=>e-t),n=[],r=null;for(let e=0;e<t.length;e++)t[e+1]===t[e]+1?r??=t[e]:r===null?n.push(t[e]):(n.push([r,t[e]]),r=null);return n}function np(e,t,n){if(e)return`>`;let r=``;if(t&&n){let{enable:e,disable:n}=t;r=(e?.ignoreCase?`i`:``)+(e?.dotAll?`s`:``)+(n?`-`:``)+(n?.ignoreCase?`i`:``)+(n?.dotAll?`s`:``)}return`${r}:`}function rp({kind:e,max:t,min:n}){let r;return r=!n&&t===1?`?`:!n&&t===1/0?`*`:n===1&&t===1/0?`+`:n===t?`{${n}}`:`{${n},${t===1/0?``:t}}`,r+{greedy:``,lazy:`?`,possessive:`+`}[e]}function ip({type:e}){return e===`CapturingGroup`||e===`Group`||e===`LookaroundAssertion`}function ap(e){return e>47&&e<58}function op({type:e,value:t}){return e===`Character`&&t===45}var sp=class e extends RegExp{#e=new Map;#t=null;#n;#r=null;#i=null;rawOptions={};get source(){return this.#n||`(?:)`}constructor(t,n,r){let i=!!r?.lazyCompile;if(t instanceof RegExp){if(r)throw Error(`Cannot provide options when copying a regexp`);let i=t;super(i,n),this.#n=i.source,i instanceof e&&(this.#e=i.#e,this.#r=i.#r,this.#i=i.#i,this.rawOptions=i.rawOptions)}else{let e={hiddenCaptures:[],strategy:null,transfers:[],...r};super(i?``:t,n),this.#n=t,this.#e=lp(e.hiddenCaptures,e.transfers),this.#i=e.strategy,this.rawOptions=r??{}}i||(this.#t=this)}exec(t){if(!this.#t){let{lazyCompile:t,...n}=this.rawOptions;this.#t=new e(this.#n,this.flags,n)}let n=this.global||this.sticky,r=this.lastIndex;if(this.#i===`clip_search`&&n&&r){this.lastIndex=0;let e=this.#a(t.slice(r));return e&&(cp(e,r,t,this.hasIndices),this.lastIndex+=r),e}return this.#a(t)}#a(e){this.#t.lastIndex=this.lastIndex;let t=super.exec.call(this.#t,e);if(this.lastIndex=this.#t.lastIndex,!t||!this.#e.size)return t;let n=[...t];t.length=1;let r;this.hasIndices&&(r=[...t.indices],t.indices.length=1);let i=[0];for(let e=1;e<n.length;e++){let{hidden:a,transferTo:o}=this.#e.get(e)??{};if(a?i.push(null):(i.push(t.length),t.push(n[e]),this.hasIndices&&t.indices.push(r[e])),o&&n[e]!==void 0){let a=i[o];if(!a)throw Error(`Invalid capture transfer to "${a}"`);if(t[a]=n[e],this.hasIndices&&(t.indices[a]=r[e]),t.groups){this.#r||=up(this.source);let i=this.#r.get(o);i&&(t.groups[i]=n[e],this.hasIndices&&(t.indices.groups[i]=r[e]))}}}return t}};function cp(e,t,n,r){if(e.index+=t,e.input=n,r){let n=e.indices;for(let e=0;e<n.length;e++){let r=n[e];r&&(n[e]=[r[0]+t,r[1]+t])}let r=n.groups;r&&Object.keys(r).forEach(e=>{let n=r[e];n&&(r[e]=[n[0]+t,n[1]+t])})}}function lp(e,t){let n=new Map;for(let t of e)n.set(t,{hidden:!0});for(let[e,r]of t)for(let t of r)ef(n,t,{}).transferTo=e;return n}function up(e){let t=/(?<capture>\((?:\?<(?![=!])(?<name>[^>]+)>|(?!\?)))|\\?./gsu,n=new Map,r=0,i=0,a;for(;a=t.exec(e);){let{0:e,groups:{capture:t,name:o}}=a;e===`[`?r++:r?e===`]`&&r--:t&&(i++,o&&n.set(i,o))}return n}function dp(e,t){let n=fp(e,t);return n.options?new sp(n.pattern,n.flags,n.options):new RegExp(n.pattern,n.flags)}function fp(e,t){let n=of(t),r=bf(Lu(e,{flags:n.flags,normalizeUnknownPropertyNames:!0,rules:{captureGroup:n.rules.captureGroup,singleline:n.rules.singleline},skipBackrefValidation:n.rules.allowOrphanBackrefs,unicodePropertyMap:df}),{accuracy:n.accuracy,asciiWordBoundaries:n.rules.asciiWordBoundaries,avoidSubclass:n.avoidSubclass,bestEffortTarget:n.target}),i=Wf(r,n),a=Wd(i.pattern,{captureTransfers:i._captureTransfers,hiddenCaptures:i._hiddenCaptures,mode:`external`}),o=Pd(Ld(a.pattern).pattern,{captureTransfers:a.captureTransfers,hiddenCaptures:a.hiddenCaptures}),s={pattern:o.pattern,flags:`${n.hasIndices?`d`:``}${n.global?`g`:``}${i.flags}${i.options.disable.v?`u`:`v`}`};if(n.avoidSubclass){if(n.lazyCompileLength!==1/0)throw Error(`Lazy compilation requires subclass`)}else{let e=o.hiddenCaptures.sort((e,t)=>e-t),t=Array.from(o.captureTransfers),i=r._strategy,a=s.pattern.length>=n.lazyCompileLength;(e.length||t.length||i||a)&&(s.options={...e.length&&{hiddenCaptures:e},...t.length&&{transfers:t},...i&&{strategy:i},...a&&{lazyCompile:a}})}return s}var pp=4294967295,mp=class{constructor(e,t={}){this.patterns=e,this.options=t;let{forgiving:n=!1,cache:r,regexConstructor:i}=t;if(!i)throw Error("Option `regexConstructor` is not provided");this.regexps=e.map(e=>{if(typeof e!=`string`)return e;let t=r?.get(e);if(t){if(t instanceof RegExp)return t;if(n)return null;throw t}try{let t=i(e);return r?.set(e,t),t}catch(t){if(r?.set(e,t),n)return null;throw t}})}regexps;findNextMatchSync(e,t,n){let r=typeof e==`string`?e:e.content,i=[];function a(e,t,n=0){return{index:e,captureIndices:t.indices.map(e=>e==null?{start:pp,end:pp,length:0}:{start:e[0]+n,end:e[1]+n,length:e[1]-e[0]})}}for(let e=0;e<this.regexps.length;e++){let n=this.regexps[e];if(n)try{n.lastIndex=t;let o=n.exec(r);if(!o)continue;if(o.index===t)return a(e,o,0);i.push([e,o,0])}catch(e){if(this.options.forgiving)continue;throw e}}if(i.length){let e=Math.min(...i.map(e=>e[1].index));for(let[t,n,r]of i)if(n.index===e)return a(t,n,r)}return null}};function hp(e,t){return dp(e,{global:!0,hasIndices:!0,lazyCompileLength:3e3,rules:{allowOrphanBackrefs:!0,asciiWordBoundaries:!0,captureGroup:!0,recursionLimit:5,singleline:!0},...t})}function gp(e={}){let t=Object.assign({target:`auto`,cache:new Map},e);return t.regexConstructor||=e=>hp(e,{target:t.target}),{createScanner(e){return new mp(e,t)},createString(e){return{content:e}}}}var _p=gp({forgiving:!0}),vp=Object.fromEntries(ol.flatMap(e=>(e.aliases??[]).map(t=>[t,e.id]))),yp=new Set(Object.keys(ll)),bp=e=>{let t=e.trim().toLowerCase();return vp[t]||(yp.has(t),t)},xp=new Map,Sp=new Map,Cp=new Map,wp=e=>typeof e==`string`?e:e.name??`custom`,Tp=(e,t)=>`${e}-${wp(t[0])}-${wp(t[1])}`,Ep=(e,t,n)=>{let r=e.slice(0,100),i=e.length>100?e.slice(-100):``;return`${t}:${n[0]}:${n[1]}:${e.length}:${r}:${i}`},Dp=(e,t)=>{let n=Tp(e,t);if(xp.has(n))return xp.get(n);let r=Il({themes:t,langs:[e],engine:_p});return xp.set(n,r),r};function Op(e={}){let t=e.themes??[`github-light`,`github-dark`];return{name:`shiki`,type:`code-highlighter`,supportsLanguage(e){let t=bp(e);return yp.has(t)},getSupportedLanguages(){return Array.from(yp)},getThemes(){return t},highlight({code:e,language:t,themes:n},r){let i=bp(t),a=[wp(n[0]),wp(n[1])],o=Ep(e,i,a);return Sp.has(o)?Sp.get(o):(r&&(Cp.has(o)||Cp.set(o,new Set),Cp.get(o).add(r)),Dp(yp.has(i)?i:`text`,n).then(t=>{let n=t.getLoadedLanguages().includes(i)?i:`text`,r=t.codeToTokens(e,{lang:n,themes:{light:a[0],dark:a[1]}});Sp.set(o,r);let s=Cp.get(o);if(s){for(let e of s)e(r);Cp.delete(o)}}).catch(e=>{console.error(`[Streamdown Code] Failed to highlight code:`,e),Cp.delete(o)}),null)}}}var kp=Op();function Ap(e,t){return jp(e,t||{})||{type:`root`,children:[]}}function jp(e,t){let n=Mp(e,t);return n&&t.afterTransform&&t.afterTransform(e,n),n}function Mp(e,t){switch(e.nodeType){case 1:return Lp(e,t);case 3:return Fp(e);case 8:return Ip(e);case 9:return Np(e,t);case 10:return Pp();case 11:return Np(e,t);default:return}}function Np(e,t){return{type:`root`,children:Rp(e,t)}}function Pp(){return{type:`doctype`}}function Fp(e){return{type:`text`,value:e.nodeValue||``}}function Ip(e){return{type:`comment`,value:e.nodeValue||``}}function Lp(e,t){let n=e.namespaceURI,r=n===Dt.svg?Rt:Mt,i=n===Dt.html?e.tagName.toLowerCase():e.tagName,a=n===Dt.html&&i===`template`?e.content:e,o=e.getAttributeNames(),s={},c=-1;for(;++c<o.length;)s[o[c]]=e.getAttribute(o[c])||``;return r(i,s,Rp(a,t))}function Rp(e,t){let n=e.childNodes,r=[],i=-1;for(;++i<n.length;){let e=jp(n[i],t);e!==void 0&&r.push(e)}return r}var zp=new DOMParser;function Bp(e,t){return Ap(t?.fragment?Vp(e):zp.parseFromString(e,`text/html`))}function Vp(e){let t=document.createElement(`template`);return t.innerHTML=e,t.content}var Hp=(function(e,t,n){let r=yt(n);if(!e||!e.type||!e.children)throw Error(`Expected parent node`);if(typeof t==`number`){if(t<0||t===1/0)throw Error(`Expected positive finite number as index`)}else if(t=e.children.indexOf(t),t<0)throw Error(`Expected child node or index`);for(;++t<e.children.length;)if(r(e.children[t],t,e))return e.children[t]}),Up=(function(e){if(e==null)return qp;if(typeof e==`string`)return Gp(e);if(typeof e==`object`)return Wp(e);if(typeof e==`function`)return Kp(e);throw Error("Expected function, string, or array as `test`")});function Wp(e){let t=[],n=-1;for(;++n<e.length;)t[n]=Up(e[n]);return Kp(r);function r(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1}}function Gp(e){return Kp(t);function t(t){return t.tagName===e}}function Kp(e){return t;function t(t,n,r){return!!(Jp(t)&&e.call(this,t,typeof n==`number`?n:void 0,r||void 0))}}function qp(e){return!!(e&&typeof e==`object`&&`type`in e&&e.type===`element`&&`tagName`in e&&typeof e.tagName==`string`)}function Jp(e){return typeof e==`object`&&!!e&&`type`in e&&`tagName`in e}var Yp=/\n/g,Xp=/[\t ]+/g,Zp=Up(`br`),Qp=Up(dm),$p=Up(`p`),em=Up(`tr`),tm=Up([`datalist`,`head`,`noembed`,`noframes`,`noscript`,`rp`,`script`,`style`,`template`,`title`,um,fm]),nm=Up(`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`.split(`.`));function rm(e,t){let n=t||{},r=`children`in e?e.children:[],i=nm(e),a=lm(e,{whitespace:n.whitespace||`normal`,breakBefore:!1,breakAfter:!1}),o=[];(e.type===`text`||e.type===`comment`)&&o.push(...om(e,{whitespace:a,breakBefore:!0,breakAfter:!0}));let s=-1;for(;++s<r.length;)o.push(...im(r[s],e,{whitespace:a,breakBefore:s?void 0:i,breakAfter:s<r.length-1?Zp(r[s+1]):i}));let c=[],l;for(s=-1;++s<o.length;){let e=o[s];typeof e==`number`?l!==void 0&&e>l&&(l=e):e&&(l!==void 0&&l>-1&&c.push(`
|
|
156
|
+
`.repeat(l)||` `),l=-1,c.push(e))}return c.join(``)}function im(e,t,n){return e.type===`element`?am(e,t,n):e.type===`text`?n.whitespace===`normal`?om(e,n):sm(e):[]}function am(e,t,n){let r=lm(e,n),i=e.children||[],a=-1,o=[];if(tm(e))return o;let s,c;for(Zp(e)||em(e)&&Hp(t,e,em)?c=`
|
|
157
|
+
`:$p(e)?(s=2,c=2):nm(e)&&(s=1,c=1);++a<i.length;)o=o.concat(im(i[a],e,{whitespace:r,breakBefore:a?void 0:s,breakAfter:a<i.length-1?Zp(i[a+1]):c}));return Qp(e)&&Hp(t,e,Qp)&&o.push(` `),s&&o.unshift(s),c&&o.push(c),o}function om(e,t){let n=String(e.value),r=[],i=[],a=0;for(;a<=n.length;){Yp.lastIndex=a;let e=Yp.exec(n),i=e&&`index`in e?e.index:n.length;r.push(cm(n.slice(a,i).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,``),a===0?t.breakBefore:!0,i===n.length?t.breakAfter:!0)),a=i+1}let o=-1,s;for(;++o<r.length;)r[o].charCodeAt(r[o].length-1)===8203||o<r.length-1&&r[o+1].charCodeAt(0)===8203?(i.push(r[o]),s=void 0):r[o]?(typeof s==`number`&&i.push(s),i.push(r[o]),s=0):(o===0||o===r.length-1)&&i.push(0);return i}function sm(e){return[String(e.value)]}function cm(e,t,n){let r=[],i=0,a;for(;i<e.length;){Xp.lastIndex=i;let n=Xp.exec(e);a=n?n.index:e.length,!i&&!a&&n&&!t&&r.push(``),i!==a&&r.push(e.slice(i,a)),i=n?a+n[0].length:a}return i!==a&&!n&&r.push(``),r.join(` `)}function lm(e,t){if(e.type===`element`){let n=e.properties||{};switch(e.tagName){case`listing`:case`plaintext`:case`xmp`:return`pre`;case`nobr`:return`nowrap`;case`pre`:return n.wrap?`pre-wrap`:`pre`;case`td`:case`th`:return n.noWrap?`nowrap`:t.whitespace;case`textarea`:return`pre-wrap`;default:}}return t.whitespace}function um(e){return!!(e.properties||{}).hidden}function dm(e){return e.tagName===`td`||e.tagName===`th`}function fm(e){return e.tagName===`dialog`&&!(e.properties||{}).open}var P=class e extends Error{constructor(t,n){var r=`KaTeX parse error: `+t,i,a,o=n&&n.loc;if(o&&o.start<=o.end){var s=o.lexer.input;i=o.start,a=o.end,i===s.length?r+=` at end of input: `:r+=` at position `+(i+1)+`: `;var c=s.slice(i,a).replace(/[^]/g,`$&̲`),l=i>15?`…`+s.slice(i-15,i):s.slice(0,i),u=a+15<s.length?s.slice(a,a+15)+`…`:s.slice(a);r+=l+c+u}super(r),this.name=`ParseError`,this.position=void 0,this.length=void 0,this.rawMessage=void 0,Object.setPrototypeOf(this,e.prototype),this.position=i,i!=null&&a!=null&&(this.length=a-i),this.rawMessage=t}},pm=/([A-Z])/g,mm=e=>e.replace(pm,`-$1`).toLowerCase(),hm={"&":`&`,">":`>`,"<":`<`,'"':`"`,"'":`'`},gm=/[&><"']/g,_m=e=>String(e).replace(gm,e=>hm[e]),vm=e=>e.type===`ordgroup`||e.type===`color`?e.body.length===1?vm(e.body[0]):e:e.type===`font`?vm(e.body):e,ym=new Set([`mathord`,`textord`,`atom`]),bm=e=>ym.has(vm(e).type),xm=e=>{var t=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(e);return t?t[2]!==`:`||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(t[1])?null:t[1].toLowerCase():`_relative`},Sm={displayMode:{type:`boolean`,description:`Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.`,cli:`-d, --display-mode`},output:{type:{enum:[`htmlAndMathml`,`html`,`mathml`]},description:`Determines the markup language of the output.`,cli:`-F, --format <type>`},leqno:{type:`boolean`,description:`Render display math in leqno style (left-justified tags).`},fleqn:{type:`boolean`,description:`Render display math flush left.`},throwOnError:{type:`boolean`,default:!0,cli:`-t, --no-throw-on-error`,cliDescription:`Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error.`},errorColor:{type:`string`,default:`#cc0000`,cli:`-c, --error-color <color>`,cliDescription:`A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.`,cliProcessor:e=>`#`+e},macros:{type:`object`,cli:`-m, --macro <def>`,cliDescription:`Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).`,cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:`number`,description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:`--min-rule-thickness <size>`,cliProcessor:parseFloat},colorIsTextColor:{type:`boolean`,description:`Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.`,cli:`-b, --color-is-text-color`},strict:{type:[{enum:[`warn`,`ignore`,`error`]},`boolean`,`function`],description:`Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.`,cli:`-S, --strict`,cliDefault:!1},trust:{type:[`boolean`,`function`],description:`Trust the input, enabling all HTML features such as \\url.`,cli:`-T, --trust`},maxSize:{type:`number`,default:1/0,description:`If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large`,processor:e=>Math.max(0,e),cli:`-s, --max-size <n>`,cliProcessor:parseInt},maxExpand:{type:`number`,default:1e3,description:`Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.`,processor:e=>Math.max(0,e),cli:`-e, --max-expand <n>`,cliProcessor:e=>e===`Infinity`?1/0:parseInt(e)},globalGroup:{type:`boolean`,cli:!1}};function Cm(e){if(typeof e!=`string`)return e.enum[0];switch(e){case`boolean`:return!1;case`string`:return``;case`number`:return 0;case`object`:return{};default:throw Error(`Unexpected schema type; settings must declare an explicit default.`)}}function wm(e){return e.default===void 0?Cm(Array.isArray(e.type)?e.type[0]:e.type):e.default}function Tm(e,t,n,r){var i=n[t];e[t]=i===void 0?wm(r):r.processor?r.processor(i):i}var Em=class{constructor(e){e===void 0&&(e={}),this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,e||={};for(var t of Object.keys(Sm)){var n=Sm[t];n&&Tm(this,t,e,n)}}reportNonstrict(e,t,n){var r=this.strict;if(typeof r==`function`&&(r=r(e,t,n)),!(!r||r===`ignore`)){if(r===!0||r===`error`)throw new P(`LaTeX-incompatible input and strict mode is set to 'error': `+(t+` [`+e+`]`),n);r===`warn`?typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to 'warn': `+(t+` [`+e+`]`)):typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to `+(`unrecognized '`+r+`': `+t+` [`+e+`]`))}}useStrictBehavior(e,t,n){var r=this.strict;if(typeof r==`function`)try{r=r(e,t,n)}catch{r=`error`}return!r||r===`ignore`?!1:r===!0||r===`error`?!0:r===`warn`?(typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to 'warn': `+(t+` [`+e+`]`)),!1):(typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to `+(`unrecognized '`+r+`': `+t+` [`+e+`]`)),!1)}isTrusted(e){if(`url`in e&&e.url&&!e.protocol){var t=xm(e.url);if(t==null)return!1;e.protocol=t}return!!(typeof this.trust==`function`?this.trust(e):this.trust)}},Dm=class{constructor(e,t,n){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=t,this.cramped=n}sup(){return Im[Lm[this.id]]}sub(){return Im[Rm[this.id]]}fracNum(){return Im[zm[this.id]]}fracDen(){return Im[Bm[this.id]]}cramp(){return Im[Vm[this.id]]}text(){return Im[Hm[this.id]]}isTight(){return this.size>=2}},Om=0,km=1,Am=2,jm=3,Mm=4,Nm=5,Pm=6,Fm=7,Im=[new Dm(Om,0,!1),new Dm(km,0,!0),new Dm(Am,1,!1),new Dm(jm,1,!0),new Dm(Mm,2,!1),new Dm(Nm,2,!0),new Dm(Pm,3,!1),new Dm(Fm,3,!0)],Lm=[Mm,Nm,Mm,Nm,Pm,Fm,Pm,Fm],Rm=[Nm,Nm,Nm,Nm,Fm,Fm,Fm,Fm],zm=[Am,jm,Mm,Nm,Pm,Fm,Pm,Fm],Bm=[jm,jm,Nm,Nm,Fm,Fm,Fm,Fm],Vm=[km,km,jm,jm,Nm,Nm,Fm,Fm],Hm=[Om,km,Am,jm,Am,jm,Am,jm],F={DISPLAY:Im[Om],TEXT:Im[Am],SCRIPT:Im[Mm],SCRIPTSCRIPT:Im[Pm]},Um=[{name:`latin`,blocks:[[256,591],[768,879]]},{name:`cyrillic`,blocks:[[1024,1279]]},{name:`armenian`,blocks:[[1328,1423]]},{name:`brahmic`,blocks:[[2304,4255]]},{name:`georgian`,blocks:[[4256,4351]]},{name:`cjk`,blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:`hangul`,blocks:[[44032,55215]]}];function Wm(e){for(var t=0;t<Um.length;t++)for(var n=Um[t],r=0;r<n.blocks.length;r++){var i=n.blocks[r];if(e>=i[0]&&e<=i[1])return n.name}return null}var Gm=[];Um.forEach(e=>e.blocks.forEach(e=>Gm.push(...e)));function Km(e){for(var t=0;t<Gm.length;t+=2)if(e>=Gm[t]&&e<=Gm[t+1])return!0;return!1}var qm=e=>e+` `+e,Jm=80,Ym=function(e,t){return`M95,`+(622+e+t)+`
|
|
158
158
|
c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
|
|
159
159
|
c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
|
|
160
160
|
c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10
|
|
@@ -165,7 +165,7 @@ c5.3,-9.3,12,-14,20,-14
|
|
|
165
165
|
H400000v`+(40+e)+`H845.2724
|
|
166
166
|
s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
|
|
167
167
|
c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
|
|
168
|
-
M`+(834+e)+` `+t+`h400000v`+(40+e)+`h-400000z`},
|
|
168
|
+
M`+(834+e)+` `+t+`h400000v`+(40+e)+`h-400000z`},Xm=function(e,t){return`M263,`+(601+e+t)+`c0.7,0,18,39.7,52,119
|
|
169
169
|
c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
|
|
170
170
|
c340,-704.7,510.7,-1060.3,512,-1067
|
|
171
171
|
l`+e/2.084+` -`+e+`
|
|
@@ -175,7 +175,7 @@ s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,
|
|
|
175
175
|
c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1
|
|
176
176
|
s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
|
|
177
177
|
c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
|
|
178
|
-
M`+(1001+e)+` `+t+`h400000v`+(40+e)+`h-400000z`}
|
|
178
|
+
M`+(1001+e)+` `+t+`h400000v`+(40+e)+`h-400000z`},Zm=function(e,t){return`M983 `+(10+e+t)+`
|
|
179
179
|
l`+e/3.13+` -`+e+`
|
|
180
180
|
c4,-6.7,10,-10,18,-10 H400000v`+(40+e)+`
|
|
181
181
|
H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7
|
|
@@ -184,7 +184,7 @@ c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30
|
|
|
184
184
|
c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722
|
|
185
185
|
c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5
|
|
186
186
|
c53.7,-170.3,84.5,-266.8,92.5,-289.5z
|
|
187
|
-
M`+(1001+e)+` `+t+`h400000v`+(40+e)+`h-400000z`},
|
|
187
|
+
M`+(1001+e)+` `+t+`h400000v`+(40+e)+`h-400000z`},Qm=function(e,t){return`M424,`+(2398+e+t)+`
|
|
188
188
|
c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
|
|
189
189
|
c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20
|
|
190
190
|
s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121
|
|
@@ -194,18 +194,18 @@ v`+(40+e)+`H1014.6
|
|
|
194
194
|
s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185
|
|
195
195
|
c-2,6,-10,9,-24,9
|
|
196
196
|
c-8,0,-12,-0.7,-12,-2z M`+(1001+e)+` `+t+`
|
|
197
|
-
h400000v`+(40+e)+`h-400000z`}
|
|
197
|
+
h400000v`+(40+e)+`h-400000z`},$m=function(e,t){return`M473,`+(2713+e+t)+`
|
|
198
198
|
c339.3,-1799.3,509.3,-2700,510,-2702 l`+e/5.298+` -`+e+`
|
|
199
199
|
c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+e)+`H1017.7
|
|
200
200
|
s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9
|
|
201
201
|
c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200
|
|
202
202
|
c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26
|
|
203
203
|
s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,
|
|
204
|
-
606zM`+(1001+e)+` `+t+`h400000v`+(40+e)+`H1017.7z`},
|
|
204
|
+
606zM`+(1001+e)+` `+t+`h400000v`+(40+e)+`H1017.7z`},eh=function(e){var t=e/2;return`M400000 `+e+` H0 L`+t+` 0 l65 45 L145 `+(e-80)+` H400000z`},th=function(e,t,n){var r=n-54-t-e;return`M702 `+(e+t)+`H400000`+(40+e)+`
|
|
205
205
|
H742v`+r+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1
|
|
206
206
|
h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170
|
|
207
207
|
c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
|
|
208
|
-
219 661 l218 661zM702 `+t+`H400000v`+(40+e)+`H742z`},
|
|
208
|
+
219 661 l218 661zM702 `+t+`H400000v`+(40+e)+`H742z`},nh=function(e,t,n){t=1e3*t;var r=``;switch(e){case`sqrtMain`:r=Ym(t,Jm);break;case`sqrtSize1`:r=Xm(t,Jm);break;case`sqrtSize2`:r=Zm(t,Jm);break;case`sqrtSize3`:r=Qm(t,Jm);break;case`sqrtSize4`:r=$m(t,Jm);break;case`sqrtTall`:r=th(t,Jm,n)}return r},rh=function(e,t){switch(e){case`⎜`:return qm(`M291 0 H417 V`+t+` H291z`);case`∣`:return qm(`M145 0 H188 V`+t+` H145z`);case`∥`:return qm(`M145 0 H188 V`+t+` H145z`)+qm(`M367 0 H410 V`+t+` H367z`);case`⎟`:return qm(`M457 0 H583 V`+t+` H457z`);case`⎢`:return qm(`M319 0 H403 V`+t+` H319z`);case`⎥`:return qm(`M263 0 H347 V`+t+` H263z`);case`⎪`:return qm(`M384 0 H504 V`+t+` H384z`);case`⏐`:return qm(`M312 0 H355 V`+t+` H312z`);case`‖`:return qm(`M257 0 H300 V`+t+` H257z`)+qm(`M478 0 H521 V`+t+` H478z`);default:return``}},ih={doubleleftarrow:`M262 157
|
|
209
209
|
l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3
|
|
210
210
|
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
|
|
211
211
|
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
|
|
@@ -251,10 +251,10 @@ m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9
|
|
|
251
251
|
v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5
|
|
252
252
|
-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
|
|
253
253
|
-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
|
|
254
|
-
71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:
|
|
254
|
+
71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:qm(`M40 281 V428 H0 V94 H40 V241 H400000 v40z`),leftbracketunder:qm(`M0 0 h120 V290 H399995 v120 H0z`),leftbracketover:qm(`M0 440 h120 V150 H399995 v-120 H0z`),leftmapsto:qm(`M40 281 V448H0V74H40V241H400000v40z`),leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23
|
|
255
255
|
-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8
|
|
256
256
|
c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3
|
|
257
|
-
68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:
|
|
257
|
+
68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:qm(`M0 50 h400000 v40H0z m0 194h40000v40H0z`),midbrace:`M200428 334
|
|
258
258
|
c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14
|
|
259
259
|
-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7
|
|
260
260
|
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
|
|
@@ -303,7 +303,7 @@ m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown
|
|
|
303
303
|
m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3
|
|
304
304
|
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
|
|
305
305
|
-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
|
|
306
|
-
66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:
|
|
306
|
+
66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:qm(`M399960 241 V94 h40 V428 h-40 V281 H0 v-40z`),rightbracketunder:qm(`M399995 0 h-120 V290 H0 v120 H400000z`),rightbracketover:qm(`M399995 440 h-120 V150 H0 v-120 H399995z`),rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23
|
|
307
307
|
1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32
|
|
308
308
|
-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
|
|
309
309
|
-167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40
|
|
@@ -376,7 +376,7 @@ M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`
|
|
|
376
376
|
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
|
|
377
377
|
-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
|
|
378
378
|
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
|
|
379
|
-
M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},
|
|
379
|
+
M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},ah=function(e,t){switch(e){case`lbrack`:return`M403 1759 V84 H666 V0 H319 V1759 v`+t+` v1759 v84 h347 v-84
|
|
380
380
|
H403z M403 1759 V0 H319 V1759 v`+t+` v1759 v84 h84z`;case`rbrack`:return`M347 1759 V0 H0 V84 H263 V1759 v`+t+` v1759 H0 v84 H347z
|
|
381
381
|
M347 1759 V0 H263 V1759 v`+t+` v1759 h84z`;case`vert`:return`M145 15 v585 v`+t+` v585 c2.667,10,9.667,15,21,15
|
|
382
382
|
c10,0,16.667,-5,20,-15 v-585 v`+-t+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
|
@@ -404,26 +404,26 @@ c-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6
|
|
|
404
404
|
c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17
|
|
405
405
|
c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558
|
|
406
406
|
l0,-`+(t+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
407
|
-
-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw Error(`Unknown stretchy delimiter.`)}};function ch(e){return`toText`in e}var lh=class{constructor(e){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=e,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(e){return this.classes.includes(e)}toNode(){for(var e=document.createDocumentFragment(),t=0;t<this.children.length;t++)e.appendChild(this.children[t].toNode());return e}toMarkup(){for(var e=``,t=0;t<this.children.length;t++)e+=this.children[t].toMarkup();return e}toText(){return this.children.map(e=>{if(ch(e))return e.toText();throw Error(`Expected MathDomNode with toText, got `+e.constructor.name)}).join(``)}},uh={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},dh={ex:!0,em:!0,mu:!0},fh=function(e){return typeof e!=`string`&&(e=e.unit),e in uh||e in dh||e===`ex`},ph=function(e,t){var n;if(e.unit in uh)n=uh[e.unit]/t.fontMetrics().ptPerEm/t.sizeMultiplier;else if(e.unit===`mu`)n=t.fontMetrics().cssEmPerMu;else{var r=t.style.isTight()?t.havingStyle(t.style.text()):t;if(e.unit===`ex`)n=r.fontMetrics().xHeight;else if(e.unit===`em`)n=r.fontMetrics().quad;else throw new P(`Invalid unit: '`+e.unit+`'`);r!==t&&(n*=r.sizeMultiplier/t.sizeMultiplier)}return Math.min(e.number*n,t.maxSize)},I=function(e){return+e.toFixed(4)+`em`},mh=function(e){return e.filter(e=>e).join(` `)},hh=function(e){var t=``;for(var n of Object.keys(e)){var r=e[n];r!==void 0&&(t+=gm(n)+`:`+r+`;`)}return t},gh=function(e,t,n){if(this.classes=e||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=n||{},t){t.style.isTight()&&this.classes.push(`mtight`);var r=t.getColor();r&&(this.style.color=r)}},_h=function(e){var t=document.createElement(e);t.className=mh(this.classes),Object.assign(t.style,this.style);for(var n of Object.keys(this.attributes))t.setAttribute(n,this.attributes[n]);for(var r=0;r<this.children.length;r++)t.appendChild(this.children[r].toNode());return t},vh=/[\s"'>/=\x00-\x1f]/,yh=function(e){var t=`<`+e;this.classes.length&&(t+=` class="`+ym(mh(this.classes))+`"`);var n=hh(this.style);n&&(t+=` style="`+ym(n)+`"`);for(var r of Object.keys(this.attributes)){if(vh.test(r))throw new P(`Invalid attribute name '`+r+`'`);t+=` `+r+`="`+ym(this.attributes[r])+`"`}t+=`>`;for(var i=0;i<this.children.length;i++)t+=this.children[i].toMarkup();return t+=`</`+e+`>`,t},bh=class{constructor(e,t,n,r){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,this.italic=void 0,gh.call(this,e,n,r),this.children=t||[]}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return this.classes.includes(e)}toNode(){return _h.call(this,`span`)}toMarkup(){return yh.call(this,`span`)}},xh=class{constructor(e,t,n,r){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,gh.call(this,t,r),this.children=n||[],this.setAttribute(`href`,e)}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return this.classes.includes(e)}toNode(){return _h.call(this,`a`)}toMarkup(){return yh.call(this,`a`)}},Sh=class{constructor(e,t,n){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=t,this.src=e,this.classes=[`mord`],this.height=0,this.depth=0,this.maxFontSize=0,this.style=n}hasClass(e){return this.classes.includes(e)}toNode(){var e=document.createElement(`img`);return e.src=this.src,e.alt=this.alt,e.className=`mord`,Object.assign(e.style,this.style),e}toMarkup(){var e=`<img src="`+ym(this.src)+`"`+(` alt="`+ym(this.alt)+`"`),t=hh(this.style);return t&&(e+=` style="`+ym(t)+`"`),e+=`'/>`,e}},Ch={î:`ı̂`,ï:`ı̈`,í:`ı́`,ì:`ı̀`},wh=class{constructor(e,t,n,r,i,a,o,s){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=e,this.height=t||0,this.depth=n||0,this.italic=r||0,this.skew=i||0,this.width=a||0,this.classes=o||[],this.style=s||{},this.maxFontSize=0;var c=Km(this.text.charCodeAt(0));c&&this.classes.push(c+`_fallback`),/[îïíì]/.test(this.text)&&(this.text=Ch[this.text])}hasClass(e){return this.classes.includes(e)}toNode(){var e=document.createTextNode(this.text),t=null;return this.italic>0&&(t=document.createElement(`span`),t.style.marginRight=I(this.italic)),this.classes.length>0&&(t||=document.createElement(`span`),t.className=mh(this.classes)),Object.keys(this.style).length>0&&(t||=document.createElement(`span`),Object.assign(t.style,this.style)),t?(t.appendChild(e),t):e}toMarkup(){var e=!1,t=`<span`;this.classes.length&&(e=!0,t+=` class="`,t+=ym(mh(this.classes)),t+=`"`);var n=``;this.italic>0&&(n+=`margin-right:`+I(this.italic)+`;`),n+=hh(this.style),n&&(e=!0,t+=` style="`+ym(n)+`"`);var r=ym(this.text);return e?(t+=`>`,t+=r,t+=`</span>`,t):r}},Th=class{constructor(e,t){this.children=void 0,this.attributes=void 0,this.children=e||[],this.attributes=t||{}}toNode(){var e=document.createElementNS(`http://www.w3.org/2000/svg`,`svg`);for(var t of Object.keys(this.attributes))e.setAttribute(t,this.attributes[t]);for(var n=0;n<this.children.length;n++)e.appendChild(this.children[n].toNode());return e}toMarkup(){var e=`<svg xmlns="http://www.w3.org/2000/svg"`;for(var t of Object.keys(this.attributes))e+=` `+t+`="`+ym(this.attributes[t])+`"`;e+=`>`;for(var n=0;n<this.children.length;n++)e+=this.children[n].toMarkup();return e+=`</svg>`,e}},Eh=class{constructor(e,t){this.pathName=void 0,this.alternate=void 0,this.pathName=e,this.alternate=t}toNode(){var e=document.createElementNS(`http://www.w3.org/2000/svg`,`path`);return this.alternate?e.setAttribute(`d`,this.alternate):e.setAttribute(`d`,oh[this.pathName]),e}toMarkup(){return this.alternate?`<path d="`+ym(this.alternate)+`"/>`:`<path d="`+ym(oh[this.pathName])+`"/>`}},Dh=class{constructor(e){this.attributes=void 0,this.attributes=e||{}}toNode(){var e=document.createElementNS(`http://www.w3.org/2000/svg`,`line`);for(var t of Object.keys(this.attributes))e.setAttribute(t,this.attributes[t]);return e}toMarkup(){var e=`<line`;for(var t of Object.keys(this.attributes))e+=` `+t+`="`+ym(this.attributes[t])+`"`;return e+=`/>`,e}};function Oh(e){if(e instanceof wh)return e;throw Error(`Expected symbolNode but got `+String(e)+`.`)}function kh(e){if(e instanceof bh)return e;throw Error(`Expected span<HtmlDomNode> but got `+String(e)+`.`)}var Ah=e=>e instanceof bh||e instanceof xh||e instanceof lh,jh={"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]}},Mh={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]},Nh={Å:`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 Ph(e,t){jh[e]=t}function Fh(e,t,n){if(!jh[t])throw Error(`Font metrics not found for font: `+t+`.`);var r=e.charCodeAt(0),i=jh[t][r];if(!i&&e[0]in Nh&&(r=Nh[e[0]].charCodeAt(0),i=jh[t][r]),!i&&n===`text`&&Jm(r)&&(i=jh[t][77]),i)return{depth:i[0],height:i[1],italic:i[2],skew:i[3],width:i[4]}}var Ih={};function Lh(e){var t=e>=5?0:e>=3?1:2;if(!Ih[t]){var n=Ih[t]={cssEmPerMu:Mh.quad[t]/18};for(var r in Mh)Mh.hasOwnProperty(r)&&(n[r]=Mh[r][t])}return Ih[t]}var Rh={math:{},text:{}};function L(e,t,n,r,i,a){Rh[e][i]={font:t,group:n,replace:r},a&&r&&(Rh[e][r]=Rh[e][i])}var R=`math`,z=`text`,B=`main`,V=`ams`,zh=`accent-token`,H=`bin`,Bh=`close`,Vh=`inner`,U=`mathord`,Hh=`op-token`,Uh=`open`,Wh=`punct`,W=`rel`,Gh=`spacing`,G=`textord`;L(R,B,W,`≡`,`\\equiv`,!0),L(R,B,W,`≺`,`\\prec`,!0),L(R,B,W,`≻`,`\\succ`,!0),L(R,B,W,`∼`,`\\sim`,!0),L(R,B,W,`⊥`,`\\perp`),L(R,B,W,`⪯`,`\\preceq`,!0),L(R,B,W,`⪰`,`\\succeq`,!0),L(R,B,W,`≃`,`\\simeq`,!0),L(R,B,W,`∣`,`\\mid`,!0),L(R,B,W,`≪`,`\\ll`,!0),L(R,B,W,`≫`,`\\gg`,!0),L(R,B,W,`≍`,`\\asymp`,!0),L(R,B,W,`∥`,`\\parallel`),L(R,B,W,`⋈`,`\\bowtie`,!0),L(R,B,W,`⌣`,`\\smile`,!0),L(R,B,W,`⊑`,`\\sqsubseteq`,!0),L(R,B,W,`⊒`,`\\sqsupseteq`,!0),L(R,B,W,`≐`,`\\doteq`,!0),L(R,B,W,`⌢`,`\\frown`,!0),L(R,B,W,`∋`,`\\ni`,!0),L(R,B,W,`∝`,`\\propto`,!0),L(R,B,W,`⊢`,`\\vdash`,!0),L(R,B,W,`⊣`,`\\dashv`,!0),L(R,B,W,`∋`,`\\owns`),L(R,B,Wh,`.`,`\\ldotp`),L(R,B,Wh,`⋅`,`\\cdotp`),L(R,B,Wh,`⋅`,`·`),L(z,B,G,`⋅`,`·`),L(R,B,G,`#`,`\\#`),L(z,B,G,`#`,`\\#`),L(R,B,G,`&`,`\\&`),L(z,B,G,`&`,`\\&`),L(R,B,G,`ℵ`,`\\aleph`,!0),L(R,B,G,`∀`,`\\forall`,!0),L(R,B,G,`ℏ`,`\\hbar`,!0),L(R,B,G,`∃`,`\\exists`,!0),L(R,B,G,`∇`,`\\nabla`,!0),L(R,B,G,`♭`,`\\flat`,!0),L(R,B,G,`ℓ`,`\\ell`,!0),L(R,B,G,`♮`,`\\natural`,!0),L(R,B,G,`♣`,`\\clubsuit`,!0),L(R,B,G,`℘`,`\\wp`,!0),L(R,B,G,`♯`,`\\sharp`,!0),L(R,B,G,`♢`,`\\diamondsuit`,!0),L(R,B,G,`ℜ`,`\\Re`,!0),L(R,B,G,`♡`,`\\heartsuit`,!0),L(R,B,G,`ℑ`,`\\Im`,!0),L(R,B,G,`♠`,`\\spadesuit`,!0),L(R,B,G,`§`,`\\S`,!0),L(z,B,G,`§`,`\\S`),L(R,B,G,`¶`,`\\P`,!0),L(z,B,G,`¶`,`\\P`),L(R,B,G,`†`,`\\dag`),L(z,B,G,`†`,`\\dag`),L(z,B,G,`†`,`\\textdagger`),L(R,B,G,`‡`,`\\ddag`),L(z,B,G,`‡`,`\\ddag`),L(z,B,G,`‡`,`\\textdaggerdbl`),L(R,B,Bh,`⎱`,`\\rmoustache`,!0),L(R,B,Uh,`⎰`,`\\lmoustache`,!0),L(R,B,Bh,`⟯`,`\\rgroup`,!0),L(R,B,Uh,`⟮`,`\\lgroup`,!0),L(R,B,H,`∓`,`\\mp`,!0),L(R,B,H,`⊖`,`\\ominus`,!0),L(R,B,H,`⊎`,`\\uplus`,!0),L(R,B,H,`⊓`,`\\sqcap`,!0),L(R,B,H,`∗`,`\\ast`),L(R,B,H,`⊔`,`\\sqcup`,!0),L(R,B,H,`◯`,`\\bigcirc`,!0),L(R,B,H,`∙`,`\\bullet`,!0),L(R,B,H,`‡`,`\\ddagger`),L(R,B,H,`≀`,`\\wr`,!0),L(R,B,H,`⨿`,`\\amalg`),L(R,B,H,`&`,`\\And`),L(R,B,W,`⟵`,`\\longleftarrow`,!0),L(R,B,W,`⇐`,`\\Leftarrow`,!0),L(R,B,W,`⟸`,`\\Longleftarrow`,!0),L(R,B,W,`⟶`,`\\longrightarrow`,!0),L(R,B,W,`⇒`,`\\Rightarrow`,!0),L(R,B,W,`⟹`,`\\Longrightarrow`,!0),L(R,B,W,`↔`,`\\leftrightarrow`,!0),L(R,B,W,`⟷`,`\\longleftrightarrow`,!0),L(R,B,W,`⇔`,`\\Leftrightarrow`,!0),L(R,B,W,`⟺`,`\\Longleftrightarrow`,!0),L(R,B,W,`↦`,`\\mapsto`,!0),L(R,B,W,`⟼`,`\\longmapsto`,!0),L(R,B,W,`↗`,`\\nearrow`,!0),L(R,B,W,`↩`,`\\hookleftarrow`,!0),L(R,B,W,`↪`,`\\hookrightarrow`,!0),L(R,B,W,`↘`,`\\searrow`,!0),L(R,B,W,`↼`,`\\leftharpoonup`,!0),L(R,B,W,`⇀`,`\\rightharpoonup`,!0),L(R,B,W,`↙`,`\\swarrow`,!0),L(R,B,W,`↽`,`\\leftharpoondown`,!0),L(R,B,W,`⇁`,`\\rightharpoondown`,!0),L(R,B,W,`↖`,`\\nwarrow`,!0),L(R,B,W,`⇌`,`\\rightleftharpoons`,!0),L(R,V,W,`≮`,`\\nless`,!0),L(R,V,W,``,`\\@nleqslant`),L(R,V,W,``,`\\@nleqq`),L(R,V,W,`⪇`,`\\lneq`,!0),L(R,V,W,`≨`,`\\lneqq`,!0),L(R,V,W,``,`\\@lvertneqq`),L(R,V,W,`⋦`,`\\lnsim`,!0),L(R,V,W,`⪉`,`\\lnapprox`,!0),L(R,V,W,`⊀`,`\\nprec`,!0),L(R,V,W,`⋠`,`\\npreceq`,!0),L(R,V,W,`⋨`,`\\precnsim`,!0),L(R,V,W,`⪹`,`\\precnapprox`,!0),L(R,V,W,`≁`,`\\nsim`,!0),L(R,V,W,``,`\\@nshortmid`),L(R,V,W,`∤`,`\\nmid`,!0),L(R,V,W,`⊬`,`\\nvdash`,!0),L(R,V,W,`⊭`,`\\nvDash`,!0),L(R,V,W,`⋪`,`\\ntriangleleft`),L(R,V,W,`⋬`,`\\ntrianglelefteq`,!0),L(R,V,W,`⊊`,`\\subsetneq`,!0),L(R,V,W,``,`\\@varsubsetneq`),L(R,V,W,`⫋`,`\\subsetneqq`,!0),L(R,V,W,``,`\\@varsubsetneqq`),L(R,V,W,`≯`,`\\ngtr`,!0),L(R,V,W,``,`\\@ngeqslant`),L(R,V,W,``,`\\@ngeqq`),L(R,V,W,`⪈`,`\\gneq`,!0),L(R,V,W,`≩`,`\\gneqq`,!0),L(R,V,W,``,`\\@gvertneqq`),L(R,V,W,`⋧`,`\\gnsim`,!0),L(R,V,W,`⪊`,`\\gnapprox`,!0),L(R,V,W,`⊁`,`\\nsucc`,!0),L(R,V,W,`⋡`,`\\nsucceq`,!0),L(R,V,W,`⋩`,`\\succnsim`,!0),L(R,V,W,`⪺`,`\\succnapprox`,!0),L(R,V,W,`≆`,`\\ncong`,!0),L(R,V,W,``,`\\@nshortparallel`),L(R,V,W,`∦`,`\\nparallel`,!0),L(R,V,W,`⊯`,`\\nVDash`,!0),L(R,V,W,`⋫`,`\\ntriangleright`),L(R,V,W,`⋭`,`\\ntrianglerighteq`,!0),L(R,V,W,``,`\\@nsupseteqq`),L(R,V,W,`⊋`,`\\supsetneq`,!0),L(R,V,W,``,`\\@varsupsetneq`),L(R,V,W,`⫌`,`\\supsetneqq`,!0),L(R,V,W,``,`\\@varsupsetneqq`),L(R,V,W,`⊮`,`\\nVdash`,!0),L(R,V,W,`⪵`,`\\precneqq`,!0),L(R,V,W,`⪶`,`\\succneqq`,!0),L(R,V,W,``,`\\@nsubseteqq`),L(R,V,H,`⊴`,`\\unlhd`),L(R,V,H,`⊵`,`\\unrhd`),L(R,V,W,`↚`,`\\nleftarrow`,!0),L(R,V,W,`↛`,`\\nrightarrow`,!0),L(R,V,W,`⇍`,`\\nLeftarrow`,!0),L(R,V,W,`⇏`,`\\nRightarrow`,!0),L(R,V,W,`↮`,`\\nleftrightarrow`,!0),L(R,V,W,`⇎`,`\\nLeftrightarrow`,!0),L(R,V,W,`△`,`\\vartriangle`),L(R,V,G,`ℏ`,`\\hslash`),L(R,V,G,`▽`,`\\triangledown`),L(R,V,G,`◊`,`\\lozenge`),L(R,V,G,`Ⓢ`,`\\circledS`),L(R,V,G,`®`,`\\circledR`),L(z,V,G,`®`,`\\circledR`),L(R,V,G,`∡`,`\\measuredangle`,!0),L(R,V,G,`∄`,`\\nexists`),L(R,V,G,`℧`,`\\mho`),L(R,V,G,`Ⅎ`,`\\Finv`,!0),L(R,V,G,`⅁`,`\\Game`,!0),L(R,V,G,`‵`,`\\backprime`),L(R,V,G,`▲`,`\\blacktriangle`),L(R,V,G,`▼`,`\\blacktriangledown`),L(R,V,G,`■`,`\\blacksquare`),L(R,V,G,`⧫`,`\\blacklozenge`),L(R,V,G,`★`,`\\bigstar`),L(R,V,G,`∢`,`\\sphericalangle`,!0),L(R,V,G,`∁`,`\\complement`,!0),L(R,V,G,`ð`,`\\eth`,!0),L(z,B,G,`ð`,`ð`),L(R,V,G,`╱`,`\\diagup`),L(R,V,G,`╲`,`\\diagdown`),L(R,V,G,`□`,`\\square`),L(R,V,G,`□`,`\\Box`),L(R,V,G,`◊`,`\\Diamond`),L(R,V,G,`¥`,`\\yen`,!0),L(z,V,G,`¥`,`\\yen`,!0),L(R,V,G,`✓`,`\\checkmark`,!0),L(z,V,G,`✓`,`\\checkmark`),L(R,V,G,`ℶ`,`\\beth`,!0),L(R,V,G,`ℸ`,`\\daleth`,!0),L(R,V,G,`ℷ`,`\\gimel`,!0),L(R,V,G,`ϝ`,`\\digamma`,!0),L(R,V,G,`ϰ`,`\\varkappa`),L(R,V,Uh,`┌`,`\\@ulcorner`,!0),L(R,V,Bh,`┐`,`\\@urcorner`,!0),L(R,V,Uh,`└`,`\\@llcorner`,!0),L(R,V,Bh,`┘`,`\\@lrcorner`,!0),L(R,V,W,`≦`,`\\leqq`,!0),L(R,V,W,`⩽`,`\\leqslant`,!0),L(R,V,W,`⪕`,`\\eqslantless`,!0),L(R,V,W,`≲`,`\\lesssim`,!0),L(R,V,W,`⪅`,`\\lessapprox`,!0),L(R,V,W,`≊`,`\\approxeq`,!0),L(R,V,H,`⋖`,`\\lessdot`),L(R,V,W,`⋘`,`\\lll`,!0),L(R,V,W,`≶`,`\\lessgtr`,!0),L(R,V,W,`⋚`,`\\lesseqgtr`,!0),L(R,V,W,`⪋`,`\\lesseqqgtr`,!0),L(R,V,W,`≑`,`\\doteqdot`),L(R,V,W,`≓`,`\\risingdotseq`,!0),L(R,V,W,`≒`,`\\fallingdotseq`,!0),L(R,V,W,`∽`,`\\backsim`,!0),L(R,V,W,`⋍`,`\\backsimeq`,!0),L(R,V,W,`⫅`,`\\subseteqq`,!0),L(R,V,W,`⋐`,`\\Subset`,!0),L(R,V,W,`⊏`,`\\sqsubset`,!0),L(R,V,W,`≼`,`\\preccurlyeq`,!0),L(R,V,W,`⋞`,`\\curlyeqprec`,!0),L(R,V,W,`≾`,`\\precsim`,!0),L(R,V,W,`⪷`,`\\precapprox`,!0),L(R,V,W,`⊲`,`\\vartriangleleft`),L(R,V,W,`⊴`,`\\trianglelefteq`),L(R,V,W,`⊨`,`\\vDash`,!0),L(R,V,W,`⊪`,`\\Vvdash`,!0),L(R,V,W,`⌣`,`\\smallsmile`),L(R,V,W,`⌢`,`\\smallfrown`),L(R,V,W,`≏`,`\\bumpeq`,!0),L(R,V,W,`≎`,`\\Bumpeq`,!0),L(R,V,W,`≧`,`\\geqq`,!0),L(R,V,W,`⩾`,`\\geqslant`,!0),L(R,V,W,`⪖`,`\\eqslantgtr`,!0),L(R,V,W,`≳`,`\\gtrsim`,!0),L(R,V,W,`⪆`,`\\gtrapprox`,!0),L(R,V,H,`⋗`,`\\gtrdot`),L(R,V,W,`⋙`,`\\ggg`,!0),L(R,V,W,`≷`,`\\gtrless`,!0),L(R,V,W,`⋛`,`\\gtreqless`,!0),L(R,V,W,`⪌`,`\\gtreqqless`,!0),L(R,V,W,`≖`,`\\eqcirc`,!0),L(R,V,W,`≗`,`\\circeq`,!0),L(R,V,W,`≜`,`\\triangleq`,!0),L(R,V,W,`∼`,`\\thicksim`),L(R,V,W,`≈`,`\\thickapprox`),L(R,V,W,`⫆`,`\\supseteqq`,!0),L(R,V,W,`⋑`,`\\Supset`,!0),L(R,V,W,`⊐`,`\\sqsupset`,!0),L(R,V,W,`≽`,`\\succcurlyeq`,!0),L(R,V,W,`⋟`,`\\curlyeqsucc`,!0),L(R,V,W,`≿`,`\\succsim`,!0),L(R,V,W,`⪸`,`\\succapprox`,!0),L(R,V,W,`⊳`,`\\vartriangleright`),L(R,V,W,`⊵`,`\\trianglerighteq`),L(R,V,W,`⊩`,`\\Vdash`,!0),L(R,V,W,`∣`,`\\shortmid`),L(R,V,W,`∥`,`\\shortparallel`),L(R,V,W,`≬`,`\\between`,!0),L(R,V,W,`⋔`,`\\pitchfork`,!0),L(R,V,W,`∝`,`\\varpropto`),L(R,V,W,`◀`,`\\blacktriangleleft`),L(R,V,W,`∴`,`\\therefore`,!0),L(R,V,W,`∍`,`\\backepsilon`),L(R,V,W,`▶`,`\\blacktriangleright`),L(R,V,W,`∵`,`\\because`,!0),L(R,V,W,`⋘`,`\\llless`),L(R,V,W,`⋙`,`\\gggtr`),L(R,V,H,`⊲`,`\\lhd`),L(R,V,H,`⊳`,`\\rhd`),L(R,V,W,`≂`,`\\eqsim`,!0),L(R,B,W,`⋈`,`\\Join`),L(R,V,W,`≑`,`\\Doteq`,!0),L(R,V,H,`∔`,`\\dotplus`,!0),L(R,V,H,`∖`,`\\smallsetminus`),L(R,V,H,`⋒`,`\\Cap`,!0),L(R,V,H,`⋓`,`\\Cup`,!0),L(R,V,H,`⩞`,`\\doublebarwedge`,!0),L(R,V,H,`⊟`,`\\boxminus`,!0),L(R,V,H,`⊞`,`\\boxplus`,!0),L(R,V,H,`⋇`,`\\divideontimes`,!0),L(R,V,H,`⋉`,`\\ltimes`,!0),L(R,V,H,`⋊`,`\\rtimes`,!0),L(R,V,H,`⋋`,`\\leftthreetimes`,!0),L(R,V,H,`⋌`,`\\rightthreetimes`,!0),L(R,V,H,`⋏`,`\\curlywedge`,!0),L(R,V,H,`⋎`,`\\curlyvee`,!0),L(R,V,H,`⊝`,`\\circleddash`,!0),L(R,V,H,`⊛`,`\\circledast`,!0),L(R,V,H,`⋅`,`\\centerdot`),L(R,V,H,`⊺`,`\\intercal`,!0),L(R,V,H,`⋒`,`\\doublecap`),L(R,V,H,`⋓`,`\\doublecup`),L(R,V,H,`⊠`,`\\boxtimes`,!0),L(R,V,W,`⇢`,`\\dashrightarrow`,!0),L(R,V,W,`⇠`,`\\dashleftarrow`,!0),L(R,V,W,`⇇`,`\\leftleftarrows`,!0),L(R,V,W,`⇆`,`\\leftrightarrows`,!0),L(R,V,W,`⇚`,`\\Lleftarrow`,!0),L(R,V,W,`↞`,`\\twoheadleftarrow`,!0),L(R,V,W,`↢`,`\\leftarrowtail`,!0),L(R,V,W,`↫`,`\\looparrowleft`,!0),L(R,V,W,`⇋`,`\\leftrightharpoons`,!0),L(R,V,W,`↶`,`\\curvearrowleft`,!0),L(R,V,W,`↺`,`\\circlearrowleft`,!0),L(R,V,W,`↰`,`\\Lsh`,!0),L(R,V,W,`⇈`,`\\upuparrows`,!0),L(R,V,W,`↿`,`\\upharpoonleft`,!0),L(R,V,W,`⇃`,`\\downharpoonleft`,!0),L(R,B,W,`⊶`,`\\origof`,!0),L(R,B,W,`⊷`,`\\imageof`,!0),L(R,V,W,`⊸`,`\\multimap`,!0),L(R,V,W,`↭`,`\\leftrightsquigarrow`,!0),L(R,V,W,`⇉`,`\\rightrightarrows`,!0),L(R,V,W,`⇄`,`\\rightleftarrows`,!0),L(R,V,W,`↠`,`\\twoheadrightarrow`,!0),L(R,V,W,`↣`,`\\rightarrowtail`,!0),L(R,V,W,`↬`,`\\looparrowright`,!0),L(R,V,W,`↷`,`\\curvearrowright`,!0),L(R,V,W,`↻`,`\\circlearrowright`,!0),L(R,V,W,`↱`,`\\Rsh`,!0),L(R,V,W,`⇊`,`\\downdownarrows`,!0),L(R,V,W,`↾`,`\\upharpoonright`,!0),L(R,V,W,`⇂`,`\\downharpoonright`,!0),L(R,V,W,`⇝`,`\\rightsquigarrow`,!0),L(R,V,W,`⇝`,`\\leadsto`),L(R,V,W,`⇛`,`\\Rrightarrow`,!0),L(R,V,W,`↾`,`\\restriction`),L(R,B,G,`‘`,"`"),L(R,B,G,`$`,`\\$`),L(z,B,G,`$`,`\\$`),L(z,B,G,`$`,`\\textdollar`),L(R,B,G,`%`,`\\%`),L(z,B,G,`%`,`\\%`),L(R,B,G,`_`,`\\_`),L(z,B,G,`_`,`\\_`),L(z,B,G,`_`,`\\textunderscore`),L(R,B,G,`∠`,`\\angle`,!0),L(R,B,G,`∞`,`\\infty`,!0),L(R,B,G,`′`,`\\prime`),L(R,B,G,`△`,`\\triangle`),L(R,B,G,`Γ`,`\\Gamma`,!0),L(R,B,G,`Δ`,`\\Delta`,!0),L(R,B,G,`Θ`,`\\Theta`,!0),L(R,B,G,`Λ`,`\\Lambda`,!0),L(R,B,G,`Ξ`,`\\Xi`,!0),L(R,B,G,`Π`,`\\Pi`,!0),L(R,B,G,`Σ`,`\\Sigma`,!0),L(R,B,G,`Υ`,`\\Upsilon`,!0),L(R,B,G,`Φ`,`\\Phi`,!0),L(R,B,G,`Ψ`,`\\Psi`,!0),L(R,B,G,`Ω`,`\\Omega`,!0),L(R,B,G,`A`,`Α`),L(R,B,G,`B`,`Β`),L(R,B,G,`E`,`Ε`),L(R,B,G,`Z`,`Ζ`),L(R,B,G,`H`,`Η`),L(R,B,G,`I`,`Ι`),L(R,B,G,`K`,`Κ`),L(R,B,G,`M`,`Μ`),L(R,B,G,`N`,`Ν`),L(R,B,G,`O`,`Ο`),L(R,B,G,`P`,`Ρ`),L(R,B,G,`T`,`Τ`),L(R,B,G,`X`,`Χ`),L(R,B,G,`¬`,`\\neg`,!0),L(R,B,G,`¬`,`\\lnot`),L(R,B,G,`⊤`,`\\top`),L(R,B,G,`⊥`,`\\bot`),L(R,B,G,`∅`,`\\emptyset`),L(R,V,G,`∅`,`\\varnothing`),L(R,B,U,`α`,`\\alpha`,!0),L(R,B,U,`β`,`\\beta`,!0),L(R,B,U,`γ`,`\\gamma`,!0),L(R,B,U,`δ`,`\\delta`,!0),L(R,B,U,`ϵ`,`\\epsilon`,!0),L(R,B,U,`ζ`,`\\zeta`,!0),L(R,B,U,`η`,`\\eta`,!0),L(R,B,U,`θ`,`\\theta`,!0),L(R,B,U,`ι`,`\\iota`,!0),L(R,B,U,`κ`,`\\kappa`,!0),L(R,B,U,`λ`,`\\lambda`,!0),L(R,B,U,`μ`,`\\mu`,!0),L(R,B,U,`ν`,`\\nu`,!0),L(R,B,U,`ξ`,`\\xi`,!0),L(R,B,U,`ο`,`\\omicron`,!0),L(R,B,U,`π`,`\\pi`,!0),L(R,B,U,`ρ`,`\\rho`,!0),L(R,B,U,`σ`,`\\sigma`,!0),L(R,B,U,`τ`,`\\tau`,!0),L(R,B,U,`υ`,`\\upsilon`,!0),L(R,B,U,`ϕ`,`\\phi`,!0),L(R,B,U,`χ`,`\\chi`,!0),L(R,B,U,`ψ`,`\\psi`,!0),L(R,B,U,`ω`,`\\omega`,!0),L(R,B,U,`ε`,`\\varepsilon`,!0),L(R,B,U,`ϑ`,`\\vartheta`,!0),L(R,B,U,`ϖ`,`\\varpi`,!0),L(R,B,U,`ϱ`,`\\varrho`,!0),L(R,B,U,`ς`,`\\varsigma`,!0),L(R,B,U,`φ`,`\\varphi`,!0),L(R,B,H,`∗`,`*`,!0),L(R,B,H,`+`,`+`),L(R,B,H,`−`,`-`,!0),L(R,B,H,`⋅`,`\\cdot`,!0),L(R,B,H,`∘`,`\\circ`,!0),L(R,B,H,`÷`,`\\div`,!0),L(R,B,H,`±`,`\\pm`,!0),L(R,B,H,`×`,`\\times`,!0),L(R,B,H,`∩`,`\\cap`,!0),L(R,B,H,`∪`,`\\cup`,!0),L(R,B,H,`∖`,`\\setminus`,!0),L(R,B,H,`∧`,`\\land`),L(R,B,H,`∨`,`\\lor`),L(R,B,H,`∧`,`\\wedge`,!0),L(R,B,H,`∨`,`\\vee`,!0),L(R,B,G,`√`,`\\surd`),L(R,B,Uh,`⟨`,`\\langle`,!0),L(R,B,Uh,`∣`,`\\lvert`),L(R,B,Uh,`∥`,`\\lVert`),L(R,B,Bh,`?`,`?`),L(R,B,Bh,`!`,`!`),L(R,B,Bh,`⟩`,`\\rangle`,!0),L(R,B,Bh,`∣`,`\\rvert`),L(R,B,Bh,`∥`,`\\rVert`),L(R,B,W,`=`,`=`),L(R,B,W,`:`,`:`),L(R,B,W,`≈`,`\\approx`,!0),L(R,B,W,`≅`,`\\cong`,!0),L(R,B,W,`≥`,`\\ge`),L(R,B,W,`≥`,`\\geq`,!0),L(R,B,W,`←`,`\\gets`),L(R,B,W,`>`,`\\gt`,!0),L(R,B,W,`∈`,`\\in`,!0),L(R,B,W,``,`\\@not`),L(R,B,W,`⊂`,`\\subset`,!0),L(R,B,W,`⊃`,`\\supset`,!0),L(R,B,W,`⊆`,`\\subseteq`,!0),L(R,B,W,`⊇`,`\\supseteq`,!0),L(R,V,W,`⊈`,`\\nsubseteq`,!0),L(R,V,W,`⊉`,`\\nsupseteq`,!0),L(R,B,W,`⊨`,`\\models`),L(R,B,W,`←`,`\\leftarrow`,!0),L(R,B,W,`≤`,`\\le`),L(R,B,W,`≤`,`\\leq`,!0),L(R,B,W,`<`,`\\lt`,!0),L(R,B,W,`→`,`\\rightarrow`,!0),L(R,B,W,`→`,`\\to`),L(R,V,W,`≱`,`\\ngeq`,!0),L(R,V,W,`≰`,`\\nleq`,!0),L(R,B,Gh,`\xA0`,`\\ `),L(R,B,Gh,`\xA0`,`\\space`),L(R,B,Gh,`\xA0`,`\\nobreakspace`),L(z,B,Gh,`\xA0`,`\\ `),L(z,B,Gh,`\xA0`,` `),L(z,B,Gh,`\xA0`,`\\space`),L(z,B,Gh,`\xA0`,`\\nobreakspace`),L(R,B,Gh,``,`\\nobreak`),L(R,B,Gh,``,`\\allowbreak`),L(R,B,Wh,`,`,`,`),L(R,B,Wh,`;`,`;`),L(R,V,H,`⊼`,`\\barwedge`,!0),L(R,V,H,`⊻`,`\\veebar`,!0),L(R,B,H,`⊙`,`\\odot`,!0),L(R,B,H,`⊕`,`\\oplus`,!0),L(R,B,H,`⊗`,`\\otimes`,!0),L(R,B,G,`∂`,`\\partial`,!0),L(R,B,H,`⊘`,`\\oslash`,!0),L(R,V,H,`⊚`,`\\circledcirc`,!0),L(R,V,H,`⊡`,`\\boxdot`,!0),L(R,B,H,`△`,`\\bigtriangleup`),L(R,B,H,`▽`,`\\bigtriangledown`),L(R,B,H,`†`,`\\dagger`),L(R,B,H,`⋄`,`\\diamond`),L(R,B,H,`⋆`,`\\star`),L(R,B,H,`◃`,`\\triangleleft`),L(R,B,H,`▹`,`\\triangleright`),L(R,B,Uh,`{`,`\\{`),L(z,B,G,`{`,`\\{`),L(z,B,G,`{`,`\\textbraceleft`),L(R,B,Bh,`}`,`\\}`),L(z,B,G,`}`,`\\}`),L(z,B,G,`}`,`\\textbraceright`),L(R,B,Uh,`{`,`\\lbrace`),L(R,B,Bh,`}`,`\\rbrace`),L(R,B,Uh,`[`,`\\lbrack`,!0),L(z,B,G,`[`,`\\lbrack`,!0),L(R,B,Bh,`]`,`\\rbrack`,!0),L(z,B,G,`]`,`\\rbrack`,!0),L(R,B,Uh,`(`,`\\lparen`,!0),L(R,B,Bh,`)`,`\\rparen`,!0),L(z,B,G,`<`,`\\textless`,!0),L(z,B,G,`>`,`\\textgreater`,!0),L(R,B,Uh,`⌊`,`\\lfloor`,!0),L(R,B,Bh,`⌋`,`\\rfloor`,!0),L(R,B,Uh,`⌈`,`\\lceil`,!0),L(R,B,Bh,`⌉`,`\\rceil`,!0),L(R,B,G,`\\`,`\\backslash`),L(R,B,G,`∣`,`|`),L(R,B,G,`∣`,`\\vert`),L(z,B,G,`|`,`\\textbar`,!0),L(R,B,G,`∥`,`\\|`),L(R,B,G,`∥`,`\\Vert`),L(z,B,G,`∥`,`\\textbardbl`),L(z,B,G,`~`,`\\textasciitilde`),L(z,B,G,`\\`,`\\textbackslash`),L(z,B,G,`^`,`\\textasciicircum`),L(R,B,W,`↑`,`\\uparrow`,!0),L(R,B,W,`⇑`,`\\Uparrow`,!0),L(R,B,W,`↓`,`\\downarrow`,!0),L(R,B,W,`⇓`,`\\Downarrow`,!0),L(R,B,W,`↕`,`\\updownarrow`,!0),L(R,B,W,`⇕`,`\\Updownarrow`,!0),L(R,B,Hh,`∐`,`\\coprod`),L(R,B,Hh,`⋁`,`\\bigvee`),L(R,B,Hh,`⋀`,`\\bigwedge`),L(R,B,Hh,`⨄`,`\\biguplus`),L(R,B,Hh,`⋂`,`\\bigcap`),L(R,B,Hh,`⋃`,`\\bigcup`),L(R,B,Hh,`∫`,`\\int`),L(R,B,Hh,`∫`,`\\intop`),L(R,B,Hh,`∬`,`\\iint`),L(R,B,Hh,`∭`,`\\iiint`),L(R,B,Hh,`∏`,`\\prod`),L(R,B,Hh,`∑`,`\\sum`),L(R,B,Hh,`⨂`,`\\bigotimes`),L(R,B,Hh,`⨁`,`\\bigoplus`),L(R,B,Hh,`⨀`,`\\bigodot`),L(R,B,Hh,`∮`,`\\oint`),L(R,B,Hh,`∯`,`\\oiint`),L(R,B,Hh,`∰`,`\\oiiint`),L(R,B,Hh,`⨆`,`\\bigsqcup`),L(R,B,Hh,`∫`,`\\smallint`),L(z,B,Vh,`…`,`\\textellipsis`),L(R,B,Vh,`…`,`\\mathellipsis`),L(z,B,Vh,`…`,`\\ldots`,!0),L(R,B,Vh,`…`,`\\ldots`,!0),L(R,B,Vh,`⋯`,`\\@cdots`,!0),L(R,B,Vh,`⋱`,`\\ddots`,!0),L(R,B,G,`⋮`,`\\varvdots`),L(z,B,G,`⋮`,`\\varvdots`),L(R,B,zh,`ˊ`,`\\acute`),L(R,B,zh,`ˋ`,`\\grave`),L(R,B,zh,`¨`,`\\ddot`),L(R,B,zh,`~`,`\\tilde`),L(R,B,zh,`ˉ`,`\\bar`),L(R,B,zh,`˘`,`\\breve`),L(R,B,zh,`ˇ`,`\\check`),L(R,B,zh,`^`,`\\hat`),L(R,B,zh,`⃗`,`\\vec`),L(R,B,zh,`˙`,`\\dot`),L(R,B,zh,`˚`,`\\mathring`),L(R,B,U,``,`\\@imath`),L(R,B,U,``,`\\@jmath`),L(R,B,G,`ı`,`ı`),L(R,B,G,`ȷ`,`ȷ`),L(z,B,G,`ı`,`\\i`,!0),L(z,B,G,`ȷ`,`\\j`,!0),L(z,B,G,`ß`,`\\ss`,!0),L(z,B,G,`æ`,`\\ae`,!0),L(z,B,G,`œ`,`\\oe`,!0),L(z,B,G,`ø`,`\\o`,!0),L(z,B,G,`Æ`,`\\AE`,!0),L(z,B,G,`Œ`,`\\OE`,!0),L(z,B,G,`Ø`,`\\O`,!0),L(z,B,zh,`ˊ`,`\\'`),L(z,B,zh,`ˋ`,"\\`"),L(z,B,zh,`ˆ`,`\\^`),L(z,B,zh,`˜`,`\\~`),L(z,B,zh,`ˉ`,`\\=`),L(z,B,zh,`˘`,`\\u`),L(z,B,zh,`˙`,`\\.`),L(z,B,zh,`¸`,`\\c`),L(z,B,zh,`˚`,`\\r`),L(z,B,zh,`ˇ`,`\\v`),L(z,B,zh,`¨`,`\\"`),L(z,B,zh,`˝`,`\\H`),L(z,B,zh,`◯`,`\\textcircled`);var Kh={"--":!0,"---":!0,"``":!0,"''":!0};L(z,B,G,`–`,`--`,!0),L(z,B,G,`–`,`\\textendash`),L(z,B,G,`—`,`---`,!0),L(z,B,G,`—`,`\\textemdash`),L(z,B,G,`‘`,"`",!0),L(z,B,G,`‘`,`\\textquoteleft`),L(z,B,G,`’`,`'`,!0),L(z,B,G,`’`,`\\textquoteright`),L(z,B,G,`“`,"``",!0),L(z,B,G,`“`,`\\textquotedblleft`),L(z,B,G,`”`,`''`,!0),L(z,B,G,`”`,`\\textquotedblright`),L(R,B,G,`°`,`\\degree`,!0),L(z,B,G,`°`,`\\degree`),L(z,B,G,`°`,`\\textdegree`,!0),L(R,B,G,`£`,`\\pounds`),L(R,B,G,`£`,`\\mathsterling`,!0),L(z,B,G,`£`,`\\pounds`),L(z,B,G,`£`,`\\textsterling`,!0),L(R,V,G,`✠`,`\\maltese`),L(z,V,G,`✠`,`\\maltese`);for(var qh=`0123456789/@."`,Jh=0;Jh<qh.length;Jh++){var Yh=qh.charAt(Jh);L(R,B,G,Yh,Yh)}for(var Xh=`0123456789!@*()-=+";:?/.,`,Zh=0;Zh<Xh.length;Zh++){var Qh=Xh.charAt(Zh);L(z,B,G,Qh,Qh)}for(var $h=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz`,eg=0;eg<$h.length;eg++){var tg=$h.charAt(eg);L(R,B,U,tg,tg),L(z,B,G,tg,tg)}L(R,V,G,`C`,`ℂ`),L(z,V,G,`C`,`ℂ`),L(R,V,G,`H`,`ℍ`),L(z,V,G,`H`,`ℍ`),L(R,V,G,`N`,`ℕ`),L(z,V,G,`N`,`ℕ`),L(R,V,G,`P`,`ℙ`),L(z,V,G,`P`,`ℙ`),L(R,V,G,`Q`,`ℚ`),L(z,V,G,`Q`,`ℚ`),L(R,V,G,`R`,`ℝ`),L(z,V,G,`R`,`ℝ`),L(R,V,G,`Z`,`ℤ`),L(z,V,G,`Z`,`ℤ`),L(R,B,U,`h`,`ℎ`),L(z,B,U,`h`,`ℎ`);for(var K,ng=0;ng<$h.length;ng++){var rg=$h.charAt(ng);K=String.fromCharCode(55349,56320+ng),L(R,B,U,rg,K),L(z,B,G,rg,K),K=String.fromCharCode(55349,56372+ng),L(R,B,U,rg,K),L(z,B,G,rg,K),K=String.fromCharCode(55349,56424+ng),L(R,B,U,rg,K),L(z,B,G,rg,K),K=String.fromCharCode(55349,56580+ng),L(R,B,U,rg,K),L(z,B,G,rg,K),K=String.fromCharCode(55349,56684+ng),L(R,B,U,rg,K),L(z,B,G,rg,K),K=String.fromCharCode(55349,56736+ng),L(R,B,U,rg,K),L(z,B,G,rg,K),K=String.fromCharCode(55349,56788+ng),L(R,B,U,rg,K),L(z,B,G,rg,K),K=String.fromCharCode(55349,56840+ng),L(R,B,U,rg,K),L(z,B,G,rg,K),K=String.fromCharCode(55349,56944+ng),L(R,B,U,rg,K),L(z,B,G,rg,K),ng<26&&(K=String.fromCharCode(55349,56632+ng),L(R,B,U,rg,K),L(z,B,G,rg,K),K=String.fromCharCode(55349,56476+ng),L(R,B,U,rg,K),L(z,B,G,rg,K))}K=String.fromCharCode(55349,56668),L(R,B,U,`k`,K),L(z,B,G,`k`,K);for(var ig=0;ig<10;ig++){var ag=ig.toString();K=String.fromCharCode(55349,57294+ig),L(R,B,U,ag,K),L(z,B,G,ag,K),K=String.fromCharCode(55349,57314+ig),L(R,B,U,ag,K),L(z,B,G,ag,K),K=String.fromCharCode(55349,57324+ig),L(R,B,U,ag,K),L(z,B,G,ag,K),K=String.fromCharCode(55349,57334+ig),L(R,B,U,ag,K),L(z,B,G,ag,K)}for(var og=`ÐÞþ`,sg=0;sg<og.length;sg++){var cg=og.charAt(sg);L(R,B,U,cg,cg),L(z,B,G,cg,cg)}var lg={mathClass:`mathbf`,textClass:`textbf`,font:`Main-Bold`},ug={mathClass:`mathnormal`,textClass:`textit`,font:`Math-Italic`},dg={mathClass:`boldsymbol`,textClass:`boldsymbol`,font:`Main-BoldItalic`},fg={mathClass:`mathscr`,textClass:`textscr`,font:`Script-Regular`},pg={mathClass:``,textClass:``,font:``},mg={mathClass:`mathfrak`,textClass:`textfrak`,font:`Fraktur-Regular`},hg={mathClass:`mathbb`,textClass:`textbb`,font:`AMS-Regular`},gg={mathClass:`mathboldfrak`,textClass:`textboldfrak`,font:`Fraktur-Regular`},_g={mathClass:`mathsf`,textClass:`textsf`,font:`SansSerif-Regular`},vg={mathClass:`mathboldsf`,textClass:`textboldsf`,font:`SansSerif-Bold`},yg={mathClass:`mathitsf`,textClass:`textitsf`,font:`SansSerif-Italic`},bg={mathClass:`mathtt`,textClass:`texttt`,font:`Typewriter-Regular`},xg=[lg,lg,ug,ug,dg,dg,fg,pg,pg,pg,mg,mg,hg,hg,gg,gg,_g,_g,vg,vg,yg,yg,pg,pg,bg,bg],Sg=[lg,pg,_g,vg,bg],Cg=e=>{var t=e.charCodeAt(0),n=e.charCodeAt(1),r=(t-55296)*1024+(n-56320)+65536;if(119808<=r&&r<120484)return xg[Math.floor((r-119808)/26)];if(120782<=r&&r<=120831)return Sg[Math.floor((r-120782)/10)];if(r===120485||r===120486)return xg[0];if(120486<r&&r<120782)return pg;throw new P(`Unsupported character: `+e)},wg=function(e,t,n){if(Rh[n][e]){var r=Rh[n][e].replace;r&&(e=r)}return{value:e,metrics:Fh(e,t,n)}},Tg=function(e,t,n,r,i){var a=wg(e,t,n),o=a.metrics;e=a.value;var s;if(o){var c=o.italic;(n===`text`||r&&r.font===`mathit`)&&(c=0),s=new wh(e,o.height,o.depth,c,o.skew,o.width,i)}else typeof console<`u`&&console.warn(`No character metrics `+(`for '`+e+`' in style '`+t+`' and mode '`+n+`'`)),s=new wh(e,0,0,0,0,0,i);if(r){s.maxFontSize=r.sizeMultiplier,r.style.isTight()&&s.classes.push(`mtight`);var l=r.getColor();l&&(s.style.color=l)}return s},Eg=function(e,t,n,r){return r===void 0&&(r=[]),n.font===`boldsymbol`&&wg(e,`Main-Bold`,t).metrics?Tg(e,`Main-Bold`,t,n,r.concat([`mathbf`])):e===`\\`||Rh[t][e].font===`main`?Tg(e,`Main-Regular`,t,n,r):Tg(e,`AMS-Regular`,t,n,r.concat([`amsrm`]))},Dg=function(e,t,n){return n!==`textord`&&wg(e,`Math-BoldItalic`,t).metrics?{fontName:`Math-BoldItalic`,fontClass:`boldsymbol`}:{fontName:`Main-Bold`,fontClass:`mathbf`}},Og=function(e,t,n){var r=e.mode,i=e.text,a=[`mord`],{font:o,fontFamily:s,fontWeight:c,fontShape:l}=t,u=r===`math`||r===`text`&&!!o,d=u?o:s,f=``,p=``;if(i.charCodeAt(0)===55349){var m=Cg(i);f=m.font,p=m[r+`Class`]}if(f)return Tg(i,f,r,t,a.concat(p));if(d){var h,g;if(d===`boldsymbol`){var _=Dg(i,r,n);h=_.fontName,g=[_.fontClass]}else u?(h=Vg[o].fontName,g=[o]):(h=Bg(s,c,l),g=[s,c,l]);if(wg(i,h,r).metrics)return Tg(i,h,r,t,a.concat(g));if(Kh.hasOwnProperty(i)&&h.slice(0,10)===`Typewriter`){for(var v=[],y=0;y<i.length;y++)v.push(Tg(i[y],h,r,t,a.concat(g)));return Fg(v)}}if(n===`mathord`)return Tg(i,`Math-Italic`,r,t,a.concat([`mathnormal`]));if(n===`textord`){var b=Rh[r][i]&&Rh[r][i].font;if(b===`ams`)return Tg(i,Bg(`amsrm`,c,l),r,t,a.concat(`amsrm`,c,l));if(b===`main`||!b)return Tg(i,Bg(`textrm`,c,l),r,t,a.concat(c,l));var x=Bg(b,c,l);return Tg(i,x,r,t,a.concat(x,c,l))}else throw Error(`unexpected type: `+n+` in makeOrd`)},kg=(e,t)=>{if(mh(e.classes)!==mh(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize||e.italic!==0&&e.hasClass(`mathnormal`))return!1;if(e.classes.length===1){var n=e.classes[0];if(n===`mbin`||n===`mord`)return!1}for(var r of Object.keys(e.style))if(e.style[r]!==t.style[r])return!1;for(var i of Object.keys(t.style))if(e.style[i]!==t.style[i])return!1;return!0},Ag=e=>{for(var t=0;t<e.length-1;t++){var n=e[t],r=e[t+1];n instanceof wh&&r instanceof wh&&kg(n,r)&&(n.text+=r.text,n.height=Math.max(n.height,r.height),n.depth=Math.max(n.depth,r.depth),n.italic=r.italic,e.splice(t+1,1),t--)}return e},jg=function(e){for(var t=0,n=0,r=0,i=0;i<e.children.length;i++){var a=e.children[i];a.height>t&&(t=a.height),a.depth>n&&(n=a.depth),a.maxFontSize>r&&(r=a.maxFontSize)}e.height=t,e.depth=n,e.maxFontSize=r},q=function(e,t,n,r){var i=new bh(e,t,n,r);return jg(i),i},Mg=(e,t,n,r)=>new bh(e,t,n,r),Ng=function(e,t,n){var r=q([e],[],t);return r.height=Math.max(n||t.fontMetrics().defaultRuleThickness,t.minRuleThickness),r.style.borderBottomWidth=I(r.height),r.maxFontSize=1,r},Pg=function(e,t,n,r){var i=new xh(e,t,n,r);return jg(i),i},Fg=function(e){var t=new lh(e);return jg(t),t},Ig=function(e,t){return e instanceof lh?q([],[e],t):e},Lg=function(e){if(e.positionType===`individualShift`){for(var t=e.children,n=[t[0]],r=-t[0].shift-t[0].elem.depth,i=r,a=1;a<t.length;a++){var o=-t[a].shift-i-t[a].elem.depth,s=o-(t[a-1].elem.height+t[a-1].elem.depth);i+=o,n.push({type:`kern`,size:s}),n.push(t[a])}return{children:n,depth:r}}var c;if(e.positionType===`top`){for(var l=e.positionData,u=0;u<e.children.length;u++){var d=e.children[u];l-=d.type===`kern`?d.size:d.elem.height+d.elem.depth}c=l}else if(e.positionType===`bottom`)c=-e.positionData;else{var f=e.children[0];if(f.type!==`elem`)throw Error(`First child must have type "elem".`);if(e.positionType===`shift`)c=-f.elem.depth-e.positionData;else if(e.positionType===`firstBaseline`)c=-f.elem.depth;else throw Error(`Invalid positionType `+e.positionType+`.`)}return{children:e.children,depth:c}},Rg=function(e,t){for(var{children:n,depth:r}=Lg(e),i=0,a=0;a<n.length;a++){var o=n[a];if(o.type===`elem`){var s=o.elem;i=Math.max(i,s.maxFontSize,s.height)}}i+=2;var c=q([`pstrut`],[]);c.style.height=I(i);for(var l=[],u=r,d=r,f=r,p=0;p<n.length;p++){var m=n[p];if(m.type===`kern`)f+=m.size;else{var h=m.elem,g=m.wrapperClasses||[],_=m.wrapperStyle||{},v=q(g,[c,h],void 0,_);v.style.top=I(-i-f-h.depth),m.marginLeft&&(v.style.marginLeft=m.marginLeft),m.marginRight&&(v.style.marginRight=m.marginRight),l.push(v),f+=h.height+h.depth}u=Math.min(u,f),d=Math.max(d,f)}var y=q([`vlist`],l);y.style.height=I(d);var b;if(u<0){var x=q([`vlist`],[q([],[])]);x.style.height=I(-u),b=[q([`vlist-r`],[y,q([`vlist-s`],[new wh(``)])]),q([`vlist-r`],[x])]}else b=[q([`vlist-r`],[y])];var S=q([`vlist-t`],b);return b.length===2&&S.classes.push(`vlist-t2`),S.height=d,S.depth=-u,S},zg=(e,t)=>{var n=q([`mspace`],[],t),r=ph(e,t);return n.style.marginRight=I(r),n},Bg=(e,t,n)=>{var r,i;switch(e){case`amsrm`:r=`AMS`;break;case`textrm`:r=`Main`;break;case`textsf`:r=`SansSerif`;break;case`texttt`:r=`Typewriter`;break;default:r=e}return i=t===`textbf`&&n===`textit`?`BoldItalic`:t===`textbf`?`Bold`:n===`textit`?`Italic`:`Regular`,r+`-`+i},Vg={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`}},Hg={vec:[`vec`,.471,.714],oiintSize1:[`oiintSize1`,.957,.499],oiintSize2:[`oiintSize2`,1.472,.659],oiiintSize1:[`oiiintSize1`,1.304,.499],oiiintSize2:[`oiiintSize2`,1.98,.659]},Ug=function(e,t){var[n,r,i]=Hg[e],a=Mg([`overlay`],[new Th([new Eh(n)],{width:I(r),height:I(i),style:`width:`+I(r),viewBox:`0 0 `+1e3*r+` `+1e3*i,preserveAspectRatio:`xMinYMin`})],t);return a.height=i,a.style.height=I(i),a.style.width=I(r),a},Wg={number:3,unit:`mu`},Gg={number:4,unit:`mu`},Kg={number:5,unit:`mu`},qg={mord:{mop:Wg,mbin:Gg,mrel:Kg,minner:Wg},mop:{mord:Wg,mop:Wg,mrel:Kg,minner:Wg},mbin:{mord:Gg,mop:Gg,mopen:Gg,minner:Gg},mrel:{mord:Kg,mop:Kg,mopen:Kg,minner:Kg},mopen:{},mclose:{mop:Wg,mbin:Gg,mrel:Kg,minner:Wg},mpunct:{mord:Wg,mop:Wg,mrel:Kg,mopen:Wg,mclose:Wg,mpunct:Wg,minner:Wg},minner:{mord:Wg,mop:Wg,mbin:Gg,mrel:Kg,mopen:Wg,mpunct:Wg,minner:Wg}},Jg={mord:{mop:Wg},mop:{mord:Wg,mop:Wg},mbin:{},mrel:{},mopen:{},mclose:{mop:Wg},mpunct:{},minner:{mop:Wg}},Yg={},Xg={},Zg={};function J(e){for(var{type:t,names:n,props:r,handler:i,htmlBuilder:a,mathmlBuilder:o}=e,s={type:t,numArgs:r.numArgs,argTypes:r.argTypes,allowedInArgument:!!r.allowedInArgument,allowedInText:!!r.allowedInText,allowedInMath:r.allowedInMath===void 0?!0:r.allowedInMath,numOptionalArgs:r.numOptionalArgs||0,infix:!!r.infix,primitive:!!r.primitive,handler:i},c=0;c<n.length;++c)Yg[n[c]]=s;t&&(a&&(Xg[t]=a),o&&(Zg[t]=o))}function Qg(e){var{type:t,htmlBuilder:n,mathmlBuilder:r}=e;J({type:t,names:[],props:{numArgs:0},handler(){throw Error(`Should never be called.`)},htmlBuilder:n,mathmlBuilder:r})}var $g=function(e){return e.type===`ordgroup`&&e.body.length===1?e.body[0]:e},e_=function(e){return e.type===`ordgroup`?e.body:[e]},t_=new Set([`leftmost`,`mbin`,`mopen`,`mrel`,`mop`,`mpunct`]),n_=new Set([`rightmost`,`mrel`,`mclose`,`mpunct`]),r_={display:F.DISPLAY,text:F.TEXT,script:F.SCRIPT,scriptscript:F.SCRIPTSCRIPT},i_={mord:`mord`,mop:`mop`,mbin:`mbin`,mrel:`mrel`,mopen:`mopen`,mclose:`mclose`,mpunct:`mpunct`,minner:`minner`},a_=function(e,t,n,r){r===void 0&&(r=[null,null]);for(var i=[],a=0;a<e.length;a++){var o=d_(e[a],t);if(o instanceof lh){var s=o.children;i.push(...s)}else i.push(o)}if(Ag(i),!n)return i;var c=t;if(e.length===1){var l=e[0];l.type===`sizing`?c=t.havingSize(l.size):l.type===`styling`&&(c=t.havingStyle(r_[l.style]))}var u=q([r[0]||`leftmost`],[],t),d=q([r[1]||`rightmost`],[],t),f=n===`root`;return o_(i,(e,t)=>{var n=t.classes[0],r=e.classes[0];n===`mbin`&&n_.has(r)?t.classes[0]=`mord`:r===`mbin`&&t_.has(n)&&(e.classes[0]=`mord`)},{node:u},d,f),o_(i,(e,t)=>{var n=l_(t),r=l_(e),i=n&&r?e.hasClass(`mtight`)?Jg[n]?.[r]:qg[n]?.[r]:null;if(i)return zg(i,c)},{node:u},d,f),i},o_=function(e,t,n,r,i){r&&e.push(r);for(var a=0;a<e.length;a++){var o=e[a],s=s_(o);if(s){o_(s.children,t,n,null,i);continue}var c=!o.hasClass(`mspace`);if(c){var l=t(o,n.node);l&&(n.insertAfter?n.insertAfter(l):(e.unshift(l),a++))}c?n.node=o:i&&o.hasClass(`newline`)&&(n.node=q([`leftmost`])),n.insertAfter=(t=>n=>{e.splice(t+1,0,n),a++})(a)}r&&e.pop()},s_=function(e){return e instanceof lh||e instanceof xh||e instanceof bh&&e.hasClass(`enclosing`)?e:null},c_=function(e,t){var n=s_(e);if(n){var r=n.children;if(r.length){if(t===`right`)return c_(r[r.length-1],`right`);if(t===`left`)return c_(r[0],`left`)}}return e},l_=function(e,t){return e?(t&&(e=c_(e,t)),i_[e.classes[0]]||null):null},u_=function(e,t){var n=[`nulldelimiter`].concat(e.baseSizingClasses());return q(t.concat(n))},d_=function(e,t,n){if(!e)return q();if(Xg[e.type]){var r=Xg[e.type](e,t);if(n&&t.size!==n.size){r=q(t.sizingClasses(n),[r],t);var i=t.sizeMultiplier/n.sizeMultiplier;r.height*=i,r.depth*=i}return r}else throw new P(`Got group of unknown type: '`+e.type+`'`)};function f_(e,t){var n=q([`base`],e,t),r=q([`strut`]);return r.style.height=I(n.height+n.depth),n.depth&&(r.style.verticalAlign=I(-n.depth)),n.children.unshift(r),n}function p_(e,t){var n=null;e.length===1&&e[0].type===`tag`&&(n=e[0].tag,e=e[0].body);var r=a_(e,t,`root`),i;r.length===2&&r[1].hasClass(`tag`)&&(i=r.pop());for(var a=[],o=[],s=0;s<r.length;s++)if(o.push(r[s]),r[s].hasClass(`mbin`)||r[s].hasClass(`mrel`)||r[s].hasClass(`allowbreak`)){for(var c=!1;s<r.length-1&&r[s+1].hasClass(`mspace`)&&!r[s+1].hasClass(`newline`);)s++,o.push(r[s]),r[s].hasClass(`nobreak`)&&(c=!0);c||(a.push(f_(o,t)),o=[])}else r[s].hasClass(`newline`)&&(o.pop(),o.length>0&&(a.push(f_(o,t)),o=[]),a.push(r[s]));o.length>0&&a.push(f_(o,t));var l;n?(l=f_(a_(n,t,!0),t),l.classes=[`tag`],a.push(l)):i&&a.push(i);var u=q([`katex-html`],a);if(u.setAttribute(`aria-hidden`,`true`),l){var d=l.children[0];d.style.height=I(u.height+u.depth),u.depth&&(d.style.verticalAlign=I(-u.depth))}return u}function m_(e){return new lh(e)}var Y=class{constructor(e,t,n){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=e,this.attributes={},this.children=t||[],this.classes=n||[]}setAttribute(e,t){this.attributes[e]=t}getAttribute(e){return this.attributes[e]}toNode(){var e=document.createElementNS(`http://www.w3.org/1998/Math/MathML`,this.type);for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);this.classes.length>0&&(e.className=mh(this.classes));for(var n=0;n<this.children.length;n++)if(this.children[n]instanceof h_&&this.children[n+1]instanceof h_){for(var r=this.children[n].toText()+this.children[++n].toText();this.children[n+1]instanceof h_;)r+=this.children[++n].toText();e.appendChild(new h_(r).toNode())}else e.appendChild(this.children[n].toNode());return e}toMarkup(){var e=`<`+this.type;for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&(e+=` `+t+`="`,e+=ym(this.attributes[t]),e+=`"`);this.classes.length>0&&(e+=` class ="`+ym(mh(this.classes))+`"`),e+=`>`;for(var n=0;n<this.children.length;n++)e+=this.children[n].toMarkup();return e+=`</`+this.type+`>`,e}toText(){return this.children.map(e=>e.toText()).join(``)}},h_=class{constructor(e){this.text=void 0,this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return ym(this.toText())}toText(){return this.text}},g_=class{constructor(e){this.width=void 0,this.character=void 0,this.width=e,e>=.05555&&e<=.05556?this.character=` `:e>=.1666&&e<=.1667?this.character=` `:e>=.2222&&e<=.2223?this.character=` `:e>=.2777&&e<=.2778?this.character=` `:e>=-.05556&&e<=-.05555?this.character=` `:e>=-.1667&&e<=-.1666?this.character=` `:e>=-.2223&&e<=-.2222?this.character=` `:e>=-.2778&&e<=-.2777?this.character=` `:this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var e=document.createElementNS(`http://www.w3.org/1998/Math/MathML`,`mspace`);return e.setAttribute(`width`,I(this.width)),e}toMarkup(){return this.character?`<mtext>`+this.character+`</mtext>`:`<mspace width="`+I(this.width)+`"/>`}toText(){return this.character?this.character:` `}},__=new Set([`\\imath`,`\\jmath`]),v_=new Set([`mrow`,`mtable`]),y_=function(e,t,n){return Rh[t][e]&&Rh[t][e].replace&&e.charCodeAt(0)!==55349&&!(Kh.hasOwnProperty(e)&&n&&(n.fontFamily&&n.fontFamily.slice(4,6)===`tt`||n.font&&n.font.slice(4,6)===`tt`))&&(e=Rh[t][e].replace),new h_(e)},b_=function(e){return e.length===1?e[0]:new Y(`mrow`,e)},x_={mathit:`italic`,boldsymbol:e=>e.type===`textord`?`bold`:`bold-italic`,mathbf:`bold`,mathbb:`double-struck`,mathsfit:`sans-serif-italic`,mathfrak:`fraktur`,mathscr:`script`,mathcal:`script`,mathsf:`sans-serif`,mathtt:`monospace`},S_=(e,t)=>{if(e.mode===`text`){if(t.fontFamily===`texttt`)return`monospace`;if(t.fontFamily===`textsf`)return t.fontShape===`textit`&&t.fontWeight===`textbf`?`sans-serif-bold-italic`:t.fontShape===`textit`?`sans-serif-italic`:t.fontWeight===`textbf`?`bold-sans-serif`:`sans-serif`;if(t.fontShape===`textit`&&t.fontWeight===`textbf`)return`bold-italic`;if(t.fontShape===`textit`)return`italic`;if(t.fontWeight===`textbf`)return`bold`}var n=t.font;if(!n||n===`mathnormal`)return null;var r=e.mode,i=x_[n];if(i)return typeof i==`function`?i(e):i;var a=e.text;if(__.has(a))return null;if(Rh[r][a]){var o=Rh[r][a].replace;o&&(a=o)}var s=Vg[n].fontName;return Fh(a,s,r)?Vg[n].variant:null};function C_(e){if(!e)return!1;if(e.type===`mi`&&e.children.length===1){var t=e.children[0];return t instanceof h_&&t.text===`.`}else if(e.type===`mo`&&e.children.length===1&&e.getAttribute(`separator`)===`true`&&e.getAttribute(`lspace`)===`0em`&&e.getAttribute(`rspace`)===`0em`){var n=e.children[0];return n instanceof h_&&n.text===`,`}else return!1}var w_=function(e,t,n){if(e.length===1){var r=E_(e[0],t);return n&&r instanceof Y&&r.type===`mo`&&(r.setAttribute(`lspace`,`0em`),r.setAttribute(`rspace`,`0em`)),[r]}for(var i=[],a,o=0;o<e.length;o++){var s=E_(e[o],t);if(s instanceof Y&&a instanceof Y){if(s.type===`mtext`&&a.type===`mtext`&&s.getAttribute(`mathvariant`)===a.getAttribute(`mathvariant`)){a.children.push(...s.children);continue}else if(s.type===`mn`&&a.type===`mn`){a.children.push(...s.children);continue}else if(C_(s)&&a.type===`mn`){a.children.push(...s.children);continue}else if(s.type===`mn`&&C_(a))s.children=[...a.children,...s.children],i.pop();else if((s.type===`msup`||s.type===`msub`)&&s.children.length>=1&&(a.type===`mn`||C_(a))){var c=s.children[0];c instanceof Y&&c.type===`mn`&&(c.children=[...a.children,...c.children],i.pop())}else if(a.type===`mi`&&a.children.length===1){var l=a.children[0];if(l instanceof h_&&l.text===`̸`&&(s.type===`mo`||s.type===`mi`||s.type===`mn`)){var u=s.children[0];u instanceof h_&&u.text.length>0&&(u.text=u.text.slice(0,1)+`̸`+u.text.slice(1),i.pop())}}}i.push(s),a=s}return i},T_=function(e,t,n){return b_(w_(e,t,n))},E_=function(e,t){if(!e)return new Y(`mrow`);if(Zg[e.type])return Zg[e.type](e,t);throw new P(`Got group of unknown type: '`+e.type+`'`)};function D_(e,t,n,r,i){var a=w_(e,n),o=a.length===1&&a[0]instanceof Y&&v_.has(a[0].type)?a[0]:new Y(`mrow`,a),s=new Y(`annotation`,[new h_(t)]);s.setAttribute(`encoding`,`application/x-tex`);var c=new Y(`math`,[new Y(`semantics`,[o,s])]);return c.setAttribute(`xmlns`,`http://www.w3.org/1998/Math/MathML`),r&&c.setAttribute(`display`,`block`),q([i?`katex`:`katex-mathml`],[c])}var O_=[[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]],k_=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],A_=function(e,t){return t.size<2?e:O_[e-1][t.size-1]},j_=class e{constructor(t){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=t.style,this.color=t.color,this.size=t.size||e.BASESIZE,this.textSize=t.textSize||this.size,this.phantom=!!t.phantom,this.font=t.font||``,this.fontFamily=t.fontFamily||``,this.fontWeight=t.fontWeight||``,this.fontShape=t.fontShape||``,this.sizeMultiplier=k_[this.size-1],this.maxSize=t.maxSize,this.minRuleThickness=t.minRuleThickness,this._fontMetrics=void 0}extend(t){var n={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};return Object.assign(n,t),new e(n)}havingStyle(e){return this.style===e?this:this.extend({style:e,size:A_(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:k_[e-1]})}havingBaseStyle(t){t||=this.style.text();var n=A_(e.BASESIZE,t);return this.size===n&&this.textSize===e.BASESIZE&&this.style===t?this:this.extend({style:t,size:n})}havingBaseSizing(){var e;switch(this.style.id){case 4:case 5:e=3;break;case 6:case 7:e=1;break;default:e=6}return this.extend({style:this.style.text(),size:e})}withColor(e){return this.extend({color:e})}withPhantom(){return this.extend({phantom:!0})}withFont(e){return this.extend({font:e})}withTextFontFamily(e){return this.extend({fontFamily:e,font:``})}withTextFontWeight(e){return this.extend({fontWeight:e,font:``})}withTextFontShape(e){return this.extend({fontShape:e,font:``})}sizingClasses(e){return e.size===this.size?[]:[`sizing`,`reset-size`+e.size,`size`+this.size]}baseSizingClasses(){return this.size===e.BASESIZE?[]:[`sizing`,`reset-size`+this.size,`size`+e.BASESIZE]}fontMetrics(){return this._fontMetrics||=Lh(this.size),this._fontMetrics}getColor(){return this.phantom?`transparent`:this.color}};j_.BASESIZE=6;var M_=function(e){return new j_({style:e.displayMode?F.DISPLAY:F.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness})},N_=function(e,t){if(t.displayMode){var n=[`katex-display`];t.leqno&&n.push(`leqno`),t.fleqn&&n.push(`fleqn`),e=q(n,[e])}return e},P_=function(e,t,n){var r=M_(n),i;return n.output===`mathml`?D_(e,t,r,n.displayMode,!0):(i=n.output===`html`?q([`katex`],[p_(e,r)]):q([`katex`],[D_(e,t,r,n.displayMode,!1),p_(e,r)]),N_(i,n))},F_=function(e,t,n){return N_(q([`katex`],[p_(e,M_(n))]),n)},I_={widehat:`^`,widecheck:`ˇ`,widetilde:`~`,utilde:`~`,overleftarrow:`←`,underleftarrow:`←`,xleftarrow:`←`,overrightarrow:`→`,underrightarrow:`→`,xrightarrow:`→`,underbrace:`⏟`,overbrace:`⏞`,underbracket:`⎵`,overbracket:`⎴`,overgroup:`⏠`,undergroup:`⏡`,overleftrightarrow:`↔`,underleftrightarrow:`↔`,xleftrightarrow:`↔`,Overrightarrow:`⇒`,xRightarrow:`⇒`,overleftharpoon:`↼`,xleftharpoonup:`↼`,overrightharpoon:`⇀`,xrightharpoonup:`⇀`,xLeftarrow:`⇐`,xLeftrightarrow:`⇔`,xhookleftarrow:`↩`,xhookrightarrow:`↪`,xmapsto:`↦`,xrightharpoondown:`⇁`,xleftharpoondown:`↽`,xrightleftharpoons:`⇌`,xleftrightharpoons:`⇋`,xtwoheadleftarrow:`↞`,xtwoheadrightarrow:`↠`,xlongequal:`=`,xtofrom:`⇄`,xrightleftarrows:`⇄`,xrightequilibrium:`⇌`,xleftequilibrium:`⇋`,"\\cdrightarrow":`→`,"\\cdleftarrow":`←`,"\\cdlongequal":`=`},L_=function(e){var t=new Y(`mo`,[new h_(I_[e.replace(/^\\/,``)])]);return t.setAttribute(`stretchy`,`true`),t},R_={overrightarrow:[[`rightarrow`],.888,522,`xMaxYMin`],overleftarrow:[[`leftarrow`],.888,522,`xMinYMin`],underrightarrow:[[`rightarrow`],.888,522,`xMaxYMin`],underleftarrow:[[`leftarrow`],.888,522,`xMinYMin`],xrightarrow:[[`rightarrow`],1.469,522,`xMaxYMin`],"\\cdrightarrow":[[`rightarrow`],3,522,`xMaxYMin`],xleftarrow:[[`leftarrow`],1.469,522,`xMinYMin`],"\\cdleftarrow":[[`leftarrow`],3,522,`xMinYMin`],Overrightarrow:[[`doublerightarrow`],.888,560,`xMaxYMin`],xRightarrow:[[`doublerightarrow`],1.526,560,`xMaxYMin`],xLeftarrow:[[`doubleleftarrow`],1.526,560,`xMinYMin`],overleftharpoon:[[`leftharpoon`],.888,522,`xMinYMin`],xleftharpoonup:[[`leftharpoon`],.888,522,`xMinYMin`],xleftharpoondown:[[`leftharpoondown`],.888,522,`xMinYMin`],overrightharpoon:[[`rightharpoon`],.888,522,`xMaxYMin`],xrightharpoonup:[[`rightharpoon`],.888,522,`xMaxYMin`],xrightharpoondown:[[`rightharpoondown`],.888,522,`xMaxYMin`],xlongequal:[[`longequal`],.888,334,`xMinYMin`],"\\cdlongequal":[[`longequal`],3,334,`xMinYMin`],xtwoheadleftarrow:[[`twoheadleftarrow`],.888,334,`xMinYMin`],xtwoheadrightarrow:[[`twoheadrightarrow`],.888,334,`xMaxYMin`],overleftrightarrow:[[`leftarrow`,`rightarrow`],.888,522],overbrace:[[`leftbrace`,`midbrace`,`rightbrace`],1.6,548],underbrace:[[`leftbraceunder`,`midbraceunder`,`rightbraceunder`],1.6,548],underleftrightarrow:[[`leftarrow`,`rightarrow`],.888,522],xleftrightarrow:[[`leftarrow`,`rightarrow`],1.75,522],xLeftrightarrow:[[`doubleleftarrow`,`doublerightarrow`],1.75,560],xrightleftharpoons:[[`leftharpoondownplus`,`rightharpoonplus`],1.75,716],xleftrightharpoons:[[`leftharpoonplus`,`rightharpoondownplus`],1.75,716],xhookleftarrow:[[`leftarrow`,`righthook`],1.08,522],xhookrightarrow:[[`lefthook`,`rightarrow`],1.08,522],overlinesegment:[[`leftlinesegment`,`rightlinesegment`],.888,522],underlinesegment:[[`leftlinesegment`,`rightlinesegment`],.888,522],overbracket:[[`leftbracketover`,`rightbracketover`],1.6,440],underbracket:[[`leftbracketunder`,`rightbracketunder`],1.6,410],overgroup:[[`leftgroup`,`rightgroup`],.888,342],undergroup:[[`leftgroupunder`,`rightgroupunder`],.888,342],xmapsto:[[`leftmapsto`,`rightarrow`],1.5,522],xtofrom:[[`leftToFrom`,`rightToFrom`],1.75,528],xrightleftarrows:[[`baraboveleftarrow`,`rightarrowabovebar`],1.75,901],xrightequilibrium:[[`baraboveshortleftharpoon`,`rightharpoonaboveshortbar`],1.75,716],xleftequilibrium:[[`shortbaraboveleftharpoon`,`shortrightharpoonabovebar`],1.75,716]},z_=new Set([`widehat`,`widecheck`,`widetilde`,`utilde`]),B_=function(e,t){function n(){var n=4e5,r=e.label.slice(1);if(z_.has(r)&&`base`in e){var i=e.base.type===`ordgroup`?e.base.body.length:1,a,o,s;if(i>5)r===`widehat`||r===`widecheck`?(a=420,n=2364,s=.42,o=r+`4`):(a=312,n=2340,s=.34,o=`tilde4`);else{var c=[1,1,2,2,3,3][i];r===`widehat`||r===`widecheck`?(n=[0,1062,2364,2364,2364][c],a=[0,239,300,360,420][c],s=[0,.24,.3,.3,.36,.42][c],o=r+c):(n=[0,600,1033,2339,2340][c],a=[0,260,286,306,312][c],s=[0,.26,.286,.3,.306,.34][c],o=`tilde`+c)}return{span:Mg([],[new Th([new Eh(o)],{width:`100%`,height:I(s),viewBox:`0 0 `+n+` `+a,preserveAspectRatio:`none`})],t),minWidth:0,height:s}}else{var l=[],u=R_[r];if(!u)throw Error(`No SVG data for "`+r+`".`);var[d,f,p]=u,m=p/1e3,h=d.length,g,_;if(h===1){if(u.length!==4)throw Error(`Expected 4-tuple for single-path SVG data "`+r+`".`);g=[`hide-tail`],_=[u[3]]}else if(h===2)g=[`halfarrow-left`,`halfarrow-right`],_=[`xMinYMin`,`xMaxYMin`];else if(h===3)g=[`brace-left`,`brace-center`,`brace-right`],_=[`xMinYMin`,`xMidYMin`,`xMaxYMin`];else throw Error(`Correct katexImagesData or update code here to support
|
|
408
|
-
`+h+` children.`);for(var v=0;v<h;v++){var y=new Th([new Eh(d[v])],{width:`400em`,height:I(m),viewBox:`0 0 `+n+` `+p,preserveAspectRatio:_[v]+` slice`}),b=Mg([g[v]],[y],t);if(h===1)return{span:b,minWidth:f,height:m};b.style.height=I(m),l.push(b)}return{span:q([`stretchy`],l,t),minWidth:f,height:m}}}var{span:r,minWidth:i,height:a}=n();return r.height=a,r.style.height=I(a),i>0&&(r.style.minWidth=I(i)),r},V_=function(e,t,n,r,i){var a,o=e.height+e.depth+n+r;if(/fbox|color|angl/.test(t)){if(a=q([`stretchy`,t],[],i),t===`fbox`){var s=i.color&&i.getColor();s&&(a.style.borderColor=s)}}else{var c=[];/^[bx]cancel$/.test(t)&&c.push(new Dh({x1:`0`,y1:`0`,x2:`100%`,y2:`100%`,"stroke-width":`0.046em`})),/^x?cancel$/.test(t)&&c.push(new Dh({x1:`0`,y1:`100%`,x2:`100%`,y2:`0`,"stroke-width":`0.046em`})),a=Mg([],[new Th(c,{width:`100%`,height:I(o)})],i)}return a.height=o,a.style.height=I(o),a},H_={bin:1,close:1,inner:1,open:1,punct:1,rel:1},U_={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1};function W_(e){return e in H_}function X(e,t){if(!e||e.type!==t)throw Error(`Expected node of type `+t+`, but got `+(e?`node of type `+e.type:String(e)));return e}function G_(e){var t=K_(e);if(!t)throw Error(`Expected node of symbol group type, but got `+(e?`node of type `+e.type:String(e)));return t}function K_(e){return e&&(e.type===`atom`||U_.hasOwnProperty(e.type))?e:null}var q_=e=>{if(e instanceof wh)return e;if(Ah(e)&&e.children.length===1)return q_(e.children[0])},J_=(e,t)=>{var n,r,i;e&&e.type===`supsub`?(r=X(e.base,`accent`),n=r.base,e.base=n,i=kh(d_(e,t)),e.base=r):(r=X(e,`accent`),n=r.base);var a=d_(n,t.havingCrampedStyle()),o=r.isShifty&&Sm(n),s=0;o&&(s=q_(a)?.skew??0);var c=r.label===`\\c`,l=c?a.height+a.depth:Math.min(a.height,t.fontMetrics().xHeight),u;if(r.isStretchy)u=B_(r,t),u=Rg({positionType:`firstBaseline`,children:[{type:`elem`,elem:a},{type:`elem`,elem:u,wrapperClasses:[`svg-align`],wrapperStyle:s>0?{width:`calc(100% - `+I(2*s)+`)`,marginLeft:I(2*s)}:void 0}]});else{var d,f;r.label===`\\vec`?(d=Ug(`vec`,t),f=Hg.vec[1]):(d=Og({type:`textord`,mode:r.mode,text:r.label},t,`textord`),d=Oh(d),d.italic=0,f=d.width,c&&(l+=d.depth)),u=q([`accent-body`],[d]);var p=r.label===`\\textcircled`;p&&(u.classes.push(`accent-full`),l=a.height);var m=s;p||(m-=f/2),u.style.left=I(m),r.label===`\\textcircled`&&(u.style.top=`.2em`),u=Rg({positionType:`firstBaseline`,children:[{type:`elem`,elem:a},{type:`kern`,size:-l},{type:`elem`,elem:u}]})}var h=q([`mord`,`accent`],[u],t);return i?(i.children[0]=h,i.height=Math.max(h.height,i.height),i.classes[0]=`mord`,i):h},Y_=(e,t)=>{var n=e.isStretchy?L_(e.label):new Y(`mo`,[y_(e.label,e.mode)]),r=new Y(`mover`,[E_(e.base,t),n]);return r.setAttribute(`accent`,`true`),r},X_=new RegExp([`\\acute`,`\\grave`,`\\ddot`,`\\tilde`,`\\bar`,`\\breve`,`\\check`,`\\hat`,`\\vec`,`\\dot`,`\\mathring`].map(e=>`\\`+e).join(`|`));J({type:`accent`,names:[`\\acute`,`\\grave`,`\\ddot`,`\\tilde`,`\\bar`,`\\breve`,`\\check`,`\\hat`,`\\vec`,`\\dot`,`\\mathring`,`\\widecheck`,`\\widehat`,`\\widetilde`,`\\overrightarrow`,`\\overleftarrow`,`\\Overrightarrow`,`\\overleftrightarrow`,`\\overgroup`,`\\overlinesegment`,`\\overleftharpoon`,`\\overrightharpoon`],props:{numArgs:1},handler:(e,t)=>{var n=$g(t[0]),r=!X_.test(e.funcName),i=!r||e.funcName===`\\widehat`||e.funcName===`\\widetilde`||e.funcName===`\\widecheck`;return{type:`accent`,mode:e.parser.mode,label:e.funcName,isStretchy:r,isShifty:i,base:n}},htmlBuilder:J_,mathmlBuilder:Y_}),J({type:`accent`,names:[`\\'`,"\\`",`\\^`,`\\~`,`\\=`,`\\u`,`\\.`,`\\"`,`\\c`,`\\r`,`\\H`,`\\v`,`\\textcircled`],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:[`primitive`]},handler:(e,t)=>{var n=t[0],r=e.parser.mode;return r===`math`&&(e.parser.settings.reportNonstrict(`mathVsTextAccents`,`LaTeX's accent `+e.funcName+` works only in text mode`),r=`text`),{type:`accent`,mode:r,label:e.funcName,isStretchy:!1,isShifty:!0,base:n}},htmlBuilder:J_,mathmlBuilder:Y_}),J({type:`accentUnder`,names:[`\\underleftarrow`,`\\underrightarrow`,`\\underleftrightarrow`,`\\undergroup`,`\\underlinesegment`,`\\utilde`],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:`accentUnder`,mode:n.mode,label:r,base:i}},htmlBuilder:(e,t)=>{var n=d_(e.base,t),r=B_(e,t),i=e.label===`\\utilde`?.12:0;return q([`mord`,`accentunder`],[Rg({positionType:`top`,positionData:n.height,children:[{type:`elem`,elem:r,wrapperClasses:[`svg-align`]},{type:`kern`,size:i},{type:`elem`,elem:n}]})],t)},mathmlBuilder:(e,t)=>{var n=L_(e.label),r=new Y(`munder`,[E_(e.base,t),n]);return r.setAttribute(`accentunder`,`true`),r}});var Z_=e=>{var t=new Y(`mpadded`,e?[e]:[]);return t.setAttribute(`width`,`+0.6em`),t.setAttribute(`lspace`,`0.3em`),t};J({type:`xArrow`,names:[`\\xleftarrow`,`\\xrightarrow`,`\\xLeftarrow`,`\\xRightarrow`,`\\xleftrightarrow`,`\\xLeftrightarrow`,`\\xhookleftarrow`,`\\xhookrightarrow`,`\\xmapsto`,`\\xrightharpoondown`,`\\xrightharpoonup`,`\\xleftharpoondown`,`\\xleftharpoonup`,`\\xrightleftharpoons`,`\\xleftrightharpoons`,`\\xlongequal`,`\\xtwoheadrightarrow`,`\\xtwoheadleftarrow`,`\\xtofrom`,`\\xrightleftarrows`,`\\xrightequilibrium`,`\\xleftequilibrium`,`\\\\cdrightarrow`,`\\\\cdleftarrow`,`\\\\cdlongequal`],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:r,funcName:i}=e;return{type:`xArrow`,mode:r.mode,label:i,body:t[0],below:n[0]}},htmlBuilder(e,t){var n=t.style,r=t.havingStyle(n.sup()),i=Ig(d_(e.body,r,t),t),a=e.label.slice(0,2)===`\\x`?`x`:`cd`;i.classes.push(a+`-arrow-pad`);var o;e.below&&(r=t.havingStyle(n.sub()),o=Ig(d_(e.below,r,t),t),o.classes.push(a+`-arrow-pad`));var s=B_(e,t),c=-t.fontMetrics().axisHeight+.5*s.height,l=-t.fontMetrics().axisHeight-.5*s.height-.111;(i.depth>.25||e.label===`\\xleftequilibrium`)&&(l-=i.depth);var u;if(o){var d=-t.fontMetrics().axisHeight+o.height+.5*s.height+.111;u=Rg({positionType:`individualShift`,children:[{type:`elem`,elem:i,shift:l},{type:`elem`,elem:s,shift:c,wrapperClasses:[`svg-align`]},{type:`elem`,elem:o,shift:d}]})}else u=Rg({positionType:`individualShift`,children:[{type:`elem`,elem:i,shift:l},{type:`elem`,elem:s,shift:c,wrapperClasses:[`svg-align`]}]});return q([`mrel`,`x-arrow`],[u],t)},mathmlBuilder(e,t){var n=L_(e.label);n.setAttribute(`minsize`,e.label.charAt(0)===`x`?`1.75em`:`3.0em`);var r;if(e.body){var i=Z_(E_(e.body,t));r=e.below?new Y(`munderover`,[n,Z_(E_(e.below,t)),i]):new Y(`mover`,[n,i])}else e.below?r=new Y(`munder`,[n,Z_(E_(e.below,t))]):(r=Z_(),r=new Y(`mover`,[n,r]));return r}});function Q_(e,t){var n=a_(e.body,t,!0);return q([e.mclass],n,t)}function $_(e,t){var n,r=w_(e.body,t);return e.mclass===`minner`?n=new Y(`mpadded`,r):e.mclass===`mord`?e.isCharacterBox?(n=r[0],n.type=`mi`):n=new Y(`mi`,r):(e.isCharacterBox?(n=r[0],n.type=`mo`):n=new Y(`mo`,r),e.mclass===`mbin`?(n.attributes.lspace=`0.22em`,n.attributes.rspace=`0.22em`):e.mclass===`mpunct`?(n.attributes.lspace=`0em`,n.attributes.rspace=`0.17em`):e.mclass===`mopen`||e.mclass===`mclose`?(n.attributes.lspace=`0em`,n.attributes.rspace=`0em`):e.mclass===`minner`&&(n.attributes.lspace=`0.0556em`,n.attributes.width=`+0.1111em`)),n}J({type:`mclass`,names:[`\\mathord`,`\\mathbin`,`\\mathrel`,`\\mathopen`,`\\mathclose`,`\\mathpunct`,`\\mathinner`],props:{numArgs:1,primitive:!0},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:`mclass`,mode:n.mode,mclass:`m`+r.slice(5),body:e_(i),isCharacterBox:Sm(i)}},htmlBuilder:Q_,mathmlBuilder:$_});var ev=e=>{var t=e.type===`ordgroup`&&e.body.length?e.body[0]:e;return t.type===`atom`&&(t.family===`bin`||t.family===`rel`)?`m`+t.family:`mord`};J({type:`mclass`,names:[`\\@binrel`],props:{numArgs:2},handler(e,t){var{parser:n}=e;return{type:`mclass`,mode:n.mode,mclass:ev(t[0]),body:e_(t[1]),isCharacterBox:Sm(t[1])}}}),J({type:`mclass`,names:[`\\stackrel`,`\\overset`,`\\underset`],props:{numArgs:2},handler(e,t){var{parser:n,funcName:r}=e,i=t[1],a=t[0],o=r===`\\stackrel`?`mrel`:ev(i),s={type:`op`,mode:i.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:r!==`\\stackrel`,body:e_(i)},c={type:`supsub`,mode:a.mode,base:s,sup:r===`\\underset`?null:a,sub:r===`\\underset`?a:null};return{type:`mclass`,mode:n.mode,mclass:o,body:[c],isCharacterBox:Sm(c)}},htmlBuilder:Q_,mathmlBuilder:$_}),J({type:`pmb`,names:[`\\pmb`],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:`pmb`,mode:n.mode,mclass:ev(t[0]),body:e_(t[0])}},htmlBuilder(e,t){var n=a_(e.body,t,!0),r=q([e.mclass],n,t);return r.style.textShadow=`0.02em 0.01em 0.04px`,r},mathmlBuilder(e,t){var n=new Y(`mstyle`,w_(e.body,t));return n.setAttribute(`style`,`text-shadow: 0.02em 0.01em 0.04px`),n}});var tv={">":`\\\\cdrightarrow`,"<":`\\\\cdleftarrow`,"=":`\\\\cdlongequal`,A:`\\uparrow`,V:`\\downarrow`,"|":`\\Vert`,".":`no arrow`},nv=()=>({type:`styling`,body:[],mode:`math`,style:`display`,resetFont:!0}),rv=e=>e.type===`textord`&&e.text===`@`,iv=(e,t)=>(e.type===`mathord`||e.type===`atom`)&&e.text===t;function av(e,t,n){var r=tv[e];switch(r){case`\\\\cdrightarrow`:case`\\\\cdleftarrow`:return n.callFunction(r,[t[0]],[t[1]]);case`\\uparrow`:case`\\downarrow`:var i=n.callFunction(`\\\\cdleft`,[t[0]],[]),a={type:`atom`,text:r,mode:`math`,family:`rel`},o={type:`ordgroup`,mode:`math`,body:[i,n.callFunction(`\\Big`,[a],[]),n.callFunction(`\\\\cdright`,[t[1]],[])]};return n.callFunction(`\\\\cdparent`,[o],[]);case`\\\\cdlongequal`:return n.callFunction(`\\\\cdlongequal`,[],[]);case`\\Vert`:return n.callFunction(`\\Big`,[{type:`textord`,text:`\\Vert`,mode:`math`}],[]);default:return{type:`textord`,text:` `,mode:`math`}}}function ov(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set(`\\cr`,`\\\\\\relax`),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,`\\\\`)),e.gullet.endGroup(),e.gullet.beginGroup();var n=e.fetch().text;if(n===`&`||n===`\\\\`)e.consume();else if(n===`\\end`){t[t.length-1].length===0&&t.pop();break}else throw new P(`Expected \\\\ or \\cr or \\end`,e.nextToken)}for(var r=[],i=[r],a=0;a<t.length;a++){for(var o=t[a],s=nv(),c=0;c<o.length;c++)if(!rv(o[c]))s.body.push(o[c]);else{r.push(s),c+=1;var l=G_(o[c]).text,u=[,,];if(u[0]={type:`ordgroup`,mode:`math`,body:[]},u[1]={type:`ordgroup`,mode:`math`,body:[]},!`=|.`.includes(l))if(`<>AV`.includes(l))for(var d=0;d<2;d++){for(var f=!0,p=c+1;p<o.length;p++){if(iv(o[p],l)){f=!1,c=p;break}if(rv(o[p]))throw new P(`Missing a `+l+` character to complete a CD arrow.`,o[p]);u[d].body.push(o[p])}if(f)throw new P(`Missing a `+l+` character to complete a CD arrow.`,o[c])}else throw new P(`Expected one of "<>AV=|." after @`,o[c]);var m={type:`styling`,body:[av(l,u,e)],mode:`math`,style:`display`,resetFont:!0};r.push(m),s=nv()}a%2==0?r.push(s):r.shift(),r=[],i.push(r)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:`array`,mode:`math`,body:i,arraystretch:1,addJot:!0,rowGaps:[null],cols:Array(i[0].length).fill({type:`align`,align:`c`,pregap:.25,postgap:.25}),colSeparationType:`CD`,hLinesBeforeRow:Array(i.length+1).fill([])}}J({type:`cdlabel`,names:[`\\\\cdleft`,`\\\\cdright`],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e;return{type:`cdlabel`,mode:n.mode,side:r.slice(4),label:t[0]}},htmlBuilder(e,t){var n=t.havingStyle(t.style.sup()),r=Ig(d_(e.label,n,t),t);return r.classes.push(`cd-label-`+e.side),r.style.bottom=I(.8-r.depth),r.height=0,r.depth=0,r},mathmlBuilder(e,t){var n=new Y(`mrow`,[E_(e.label,t)]);return n=new Y(`mpadded`,[n]),n.setAttribute(`width`,`0`),e.side===`left`&&n.setAttribute(`lspace`,`-1width`),n.setAttribute(`voffset`,`0.7em`),n=new Y(`mstyle`,[n]),n.setAttribute(`displaystyle`,`false`),n.setAttribute(`scriptlevel`,`1`),n}}),J({type:`cdlabelparent`,names:[`\\\\cdparent`],props:{numArgs:1},handler(e,t){var{parser:n}=e;return{type:`cdlabelparent`,mode:n.mode,fragment:t[0]}},htmlBuilder(e,t){var n=Ig(d_(e.fragment,t),t);return n.classes.push(`cd-vert-arrow`),n},mathmlBuilder(e,t){return new Y(`mrow`,[E_(e.fragment,t)])}}),J({type:`textord`,names:[`\\@char`],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:n}=e,r=X(t[0],`ordgroup`).body,i=``,a=0;a<r.length;a++){var o=X(r[a],`textord`);i+=o.text}var s=parseInt(i),c;if(isNaN(s))throw new P(`\\@char has non-numeric argument `+i);if(s<0||s>=1114111)throw new P(`\\@char with invalid code point `+i);return s<=65535?c=String.fromCharCode(s):(s-=65536,c=String.fromCharCode((s>>10)+55296,(s&1023)+56320)),{type:`textord`,mode:n.mode,text:c}}});var sv=(e,t)=>Fg(a_(e.body,t.withColor(e.color),!1)),cv=(e,t)=>{var n=new Y(`mstyle`,w_(e.body,t.withColor(e.color)));return n.setAttribute(`mathcolor`,e.color),n};J({type:`color`,names:[`\\textcolor`],props:{numArgs:2,allowedInText:!0,argTypes:[`color`,`original`]},handler(e,t){var{parser:n}=e,r=X(t[0],`color-token`).color,i=t[1];return{type:`color`,mode:n.mode,color:r,body:e_(i)}},htmlBuilder:sv,mathmlBuilder:cv}),J({type:`color`,names:[`\\color`],props:{numArgs:1,allowedInText:!0,argTypes:[`color`]},handler(e,t){var{parser:n,breakOnTokenText:r}=e,i=X(t[0],`color-token`).color;n.gullet.macros.set(`\\current@color`,i);var a=n.parseExpression(!0,r);return{type:`color`,mode:n.mode,color:i,body:a}},htmlBuilder:sv,mathmlBuilder:cv}),J({type:`cr`,names:[`\\\\`],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,n){var{parser:r}=e,i=r.gullet.future().text===`[`?r.parseSizeGroup(!0):null,a=!r.settings.displayMode||!r.settings.useStrictBehavior(`newLineInDisplayMode`,`In LaTeX, \\\\ or \\newline does nothing in display mode`);return{type:`cr`,mode:r.mode,newLine:a,size:i&&X(i,`size`).value}},htmlBuilder(e,t){var n=q([`mspace`],[],t);return e.newLine&&(n.classes.push(`newline`),e.size&&(n.style.marginTop=I(ph(e.size,t)))),n},mathmlBuilder(e,t){var n=new Y(`mspace`);return e.newLine&&(n.setAttribute(`linebreak`,`newline`),e.size&&n.setAttribute(`height`,I(ph(e.size,t)))),n}});var lv={"\\global":`\\global`,"\\long":`\\\\globallong`,"\\\\globallong":`\\\\globallong`,"\\def":`\\gdef`,"\\gdef":`\\gdef`,"\\edef":`\\xdef`,"\\xdef":`\\xdef`,"\\let":`\\\\globallet`,"\\futurelet":`\\\\globalfuture`},uv=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new P(`Expected a control sequence`,e);return t},dv=e=>{var t=e.gullet.popToken();return t.text===`=`&&(t=e.gullet.popToken(),t.text===` `&&(t=e.gullet.popToken())),t},fv=(e,t,n,r)=>{var i=e.gullet.macros.get(n.text);i??=(n.noexpand=!0,{tokens:[n],numArgs:0,unexpandable:!e.gullet.isExpandable(n.text)}),e.gullet.macros.set(t,i,r)};J({type:`internal`,names:[`\\global`,`\\long`,`\\\\globallong`],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t,funcName:n}=e;t.consumeSpaces();var r=t.fetch();if(lv[r.text])return(n===`\\global`||n===`\\\\globallong`)&&(r.text=lv[r.text]),X(t.parseFunction(),`internal`);throw new P(`Invalid token after macro prefix`,r)}}),J({type:`internal`,names:[`\\def`,`\\gdef`,`\\edef`,`\\xdef`],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=t.gullet.popToken(),i=r.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(i))throw new P(`Expected a control sequence`,r);for(var a=0,o,s=[[]];t.gullet.future().text!==`{`;)if(r=t.gullet.popToken(),r.text===`#`){if(t.gullet.future().text===`{`){o=t.gullet.future(),s[a].push(`{`);break}if(r=t.gullet.popToken(),!/^[1-9]$/.test(r.text))throw new P(`Invalid argument number "`+r.text+`"`);if(parseInt(r.text)!==a+1)throw new P(`Argument number "`+r.text+`" out of order`);a++,s.push([])}else if(r.text===`EOF`)throw new P(`Expected a macro definition`);else s[a].push(r.text);var{tokens:c}=t.gullet.consumeArg();return o&&c.unshift(o),(n===`\\edef`||n===`\\xdef`)&&(c=t.gullet.expandTokens(c),c.reverse()),t.gullet.macros.set(i,{tokens:c,numArgs:a,delimiters:s},n===lv[n]),{type:`internal`,mode:t.mode}}}),J({type:`internal`,names:[`\\let`,`\\\\globallet`],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=uv(t.gullet.popToken());return t.gullet.consumeSpaces(),fv(t,r,dv(t),n===`\\\\globallet`),{type:`internal`,mode:t.mode}}}),J({type:`internal`,names:[`\\futurelet`,`\\\\globalfuture`],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=uv(t.gullet.popToken()),i=t.gullet.popToken(),a=t.gullet.popToken();return fv(t,r,a,n===`\\\\globalfuture`),t.gullet.pushToken(a),t.gullet.pushToken(i),{type:`internal`,mode:t.mode}}});var pv=function(e,t,n){var r=Fh(Rh.math[e]&&Rh.math[e].replace||e,t,n);if(!r)throw Error(`Unsupported symbol `+e+` and font size `+t+`.`);return r},mv=function(e,t,n,r){var i=n.havingBaseStyle(t),a=q(r.concat(i.sizingClasses(n)),[e],n),o=i.sizeMultiplier/n.sizeMultiplier;return a.height*=o,a.depth*=o,a.maxFontSize=i.sizeMultiplier,a},hv=function(e,t,n){var r=t.havingBaseStyle(n),i=(1-t.sizeMultiplier/r.sizeMultiplier)*t.fontMetrics().axisHeight;e.classes.push(`delimcenter`),e.style.top=I(i),e.height-=i,e.depth+=i},gv=function(e,t,n,r,i,a){var o=mv(Tg(e,`Main-Regular`,i,r),t,r,a);return n&&hv(o,r,t),o},_v=function(e,t,n,r){return Tg(e,`Size`+t+`-Regular`,n,r)},vv=function(e,t,n,r,i,a){var o=_v(e,t,i,r),s=mv(q([`delimsizing`,`size`+t],[o],r),F.TEXT,r,a);return n&&hv(s,r,F.TEXT),s},yv=function(e,t,n){return{type:`elem`,elem:q([`delimsizinginner`,t===`Size1-Regular`?`delim-size1`:`delim-size4`],[q([],[Tg(e,t,n)])])}},bv=function(e,t,n){var r=jh[`Size4-Regular`][e.charCodeAt(0)]?jh[`Size4-Regular`][e.charCodeAt(0)][4]:jh[`Size1-Regular`][e.charCodeAt(0)][4],i=Mg([],[new Th([new Eh(`inner`,ah(e,Math.round(1e3*t)))],{width:I(r),height:I(t),style:`width:`+I(r),viewBox:`0 0 `+1e3*r+` `+Math.round(1e3*t),preserveAspectRatio:`xMinYMin`})],n);return i.height=t,i.style.height=I(t),i.style.width=I(r),{type:`elem`,elem:i}},xv=.008,Sv={type:`kern`,size:-1*xv},Cv=new Set([`|`,`\\lvert`,`\\rvert`,`\\vert`]),wv=new Set([`\\|`,`\\lVert`,`\\rVert`,`\\Vert`]),Tv=function(e,t,n,r,i,a){var o,s,c,l,u=``,d=0;o=c=l=e,s=null;var f=`Size1-Regular`;e===`\\uparrow`?c=l=`⏐`:e===`\\Uparrow`?c=l=`‖`:e===`\\downarrow`?o=c=`⏐`:e===`\\Downarrow`?o=c=`‖`:e===`\\updownarrow`?(o=`\\uparrow`,c=`⏐`,l=`\\downarrow`):e===`\\Updownarrow`?(o=`\\Uparrow`,c=`‖`,l=`\\Downarrow`):Cv.has(e)?(c=`∣`,u=`vert`,d=333):wv.has(e)?(c=`∥`,u=`doublevert`,d=556):e===`[`||e===`\\lbrack`?(o=`⎡`,c=`⎢`,l=`⎣`,f=`Size4-Regular`,u=`lbrack`,d=667):e===`]`||e===`\\rbrack`?(o=`⎤`,c=`⎥`,l=`⎦`,f=`Size4-Regular`,u=`rbrack`,d=667):e===`\\lfloor`||e===`⌊`?(c=o=`⎢`,l=`⎣`,f=`Size4-Regular`,u=`lfloor`,d=667):e===`\\lceil`||e===`⌈`?(o=`⎡`,c=l=`⎢`,f=`Size4-Regular`,u=`lceil`,d=667):e===`\\rfloor`||e===`⌋`?(c=o=`⎥`,l=`⎦`,f=`Size4-Regular`,u=`rfloor`,d=667):e===`\\rceil`||e===`⌉`?(o=`⎤`,c=l=`⎥`,f=`Size4-Regular`,u=`rceil`,d=667):e===`(`||e===`\\lparen`?(o=`⎛`,c=`⎜`,l=`⎝`,f=`Size4-Regular`,u=`lparen`,d=875):e===`)`||e===`\\rparen`?(o=`⎞`,c=`⎟`,l=`⎠`,f=`Size4-Regular`,u=`rparen`,d=875):e===`\\{`||e===`\\lbrace`?(o=`⎧`,s=`⎨`,l=`⎩`,c=`⎪`,f=`Size4-Regular`):e===`\\}`||e===`\\rbrace`?(o=`⎫`,s=`⎬`,l=`⎭`,c=`⎪`,f=`Size4-Regular`):e===`\\lgroup`||e===`⟮`?(o=`⎧`,l=`⎩`,c=`⎪`,f=`Size4-Regular`):e===`\\rgroup`||e===`⟯`?(o=`⎫`,l=`⎭`,c=`⎪`,f=`Size4-Regular`):e===`\\lmoustache`||e===`⎰`?(o=`⎧`,l=`⎭`,c=`⎪`,f=`Size4-Regular`):(e===`\\rmoustache`||e===`⎱`)&&(o=`⎫`,l=`⎩`,c=`⎪`,f=`Size4-Regular`);var p=pv(o,f,i),m=p.height+p.depth,h=pv(c,f,i),g=h.height+h.depth,_=pv(l,f,i),v=_.height+_.depth,y=0,b=1;if(s!==null){var x=pv(s,f,i);y=x.height+x.depth,b=2}var S=m+v+y,C=S+Math.max(0,Math.ceil((t-S)/(b*g)))*b*g,w=r.fontMetrics().axisHeight;n&&(w*=r.sizeMultiplier);var T=C/2-w,E=[];if(u.length>0){var ee=C-m-v,te=Math.round(C*1e3),D=sh(u,Math.round(ee*1e3)),ne=new Eh(u,D),re=I(d/1e3),ie=I(te/1e3),ae=Mg([],[new Th([ne],{width:re,height:ie,viewBox:`0 0 `+d+` `+te})],r);ae.height=te/1e3,ae.style.width=re,ae.style.height=ie,E.push({type:`elem`,elem:ae})}else{if(E.push(yv(l,f,i)),E.push(Sv),s===null){var oe=C-m-v+2*xv;E.push(bv(c,oe,r))}else{var se=(C-m-v-y)/2+2*xv;E.push(bv(c,se,r)),E.push(Sv),E.push(yv(s,f,i)),E.push(Sv),E.push(bv(c,se,r))}E.push(Sv),E.push(yv(o,f,i))}var ce=r.havingBaseStyle(F.TEXT);return mv(q([`delimsizing`,`mult`],[Rg({positionType:`bottom`,positionData:T,children:E})],ce),F.TEXT,r,a)},Ev=80,Dv=.08,Ov=function(e,t,n,r,i){return Mg([`hide-tail`],[new Th([new Eh(e,ih(e,r,n))],{width:`400em`,height:I(t),viewBox:`0 0 400000 `+n,preserveAspectRatio:`xMinYMin slice`})],i)},kv=function(e,t){var n=t.havingBaseSizing(),r=zv(`\\surd`,e*n.sizeMultiplier,Lv,n),i=n.sizeMultiplier,a=Math.max(0,t.minRuleThickness-t.fontMetrics().sqrtRuleThickness),o,s,c,l,u;return r.type===`small`?(l=1e3+1e3*a+Ev,e<1?i=1:e<1.4&&(i=.7),s=(1+a+Dv)/i,c=(1+a)/i,o=Ov(`sqrtMain`,s,l,a,t),o.style.minWidth=`0.853em`,u=.833/i):r.type===`large`?(l=(1e3+Ev)*Nv[r.size],c=(Nv[r.size]+a)/i,s=(Nv[r.size]+a+Dv)/i,o=Ov(`sqrtSize`+r.size,s,l,a,t),o.style.minWidth=`1.02em`,u=1/i):(s=e+a+Dv,c=e+a,l=Math.floor(1e3*e+a)+Ev,o=Ov(`sqrtTall`,s,l,a,t),o.style.minWidth=`0.742em`,u=1.056),o.height=c,o.style.height=I(s),{span:o,advanceWidth:u,ruleWidth:(t.fontMetrics().sqrtRuleThickness+a)*i}},Av=new Set([`(`,`\\lparen`,`)`,`\\rparen`,`[`,`\\lbrack`,`]`,`\\rbrack`,`\\{`,`\\lbrace`,`\\}`,`\\rbrace`,`\\lfloor`,`\\rfloor`,`⌊`,`⌋`,`\\lceil`,`\\rceil`,`⌈`,`⌉`,`\\surd`]),jv=new Set([`\\uparrow`,`\\downarrow`,`\\updownarrow`,`\\Uparrow`,`\\Downarrow`,`\\Updownarrow`,`|`,`\\|`,`\\vert`,`\\Vert`,`\\lvert`,`\\rvert`,`\\lVert`,`\\rVert`,`\\lgroup`,`\\rgroup`,`⟮`,`⟯`,`\\lmoustache`,`\\rmoustache`,`⎰`,`⎱`]),Mv=new Set([`<`,`>`,`\\langle`,`\\rangle`,`/`,`\\backslash`,`\\lt`,`\\gt`]),Nv=[0,1.2,1.8,2.4,3],Pv=function(e,t,n,r,i){if(e===`<`||e===`\\lt`||e===`⟨`?e=`\\langle`:(e===`>`||e===`\\gt`||e===`⟩`)&&(e=`\\rangle`),Av.has(e)||Mv.has(e))return vv(e,t,!1,n,r,i);if(jv.has(e))return Tv(e,Nv[t],!1,n,r,i);throw new P(`Illegal delimiter: '`+e+`'`)},Fv=[{type:`small`,style:F.SCRIPTSCRIPT},{type:`small`,style:F.SCRIPT},{type:`small`,style:F.TEXT},{type:`large`,size:1},{type:`large`,size:2},{type:`large`,size:3},{type:`large`,size:4}],Iv=[{type:`small`,style:F.SCRIPTSCRIPT},{type:`small`,style:F.SCRIPT},{type:`small`,style:F.TEXT},{type:`stack`}],Lv=[{type:`small`,style:F.SCRIPTSCRIPT},{type:`small`,style:F.SCRIPT},{type:`small`,style:F.TEXT},{type:`large`,size:1},{type:`large`,size:2},{type:`large`,size:3},{type:`large`,size:4},{type:`stack`}],Rv=function(e){if(e.type===`small`)return`Main-Regular`;if(e.type===`large`)return`Size`+e.size+`-Regular`;if(e.type===`stack`)return`Size4-Regular`;var t=e.type;throw Error(`Add support for delim type '`+t+`' here.`)},zv=function(e,t,n,r){for(var i=Math.min(2,3-r.style.size);i<n.length;i++){var a=n[i];if(a.type===`stack`)break;var o=pv(e,Rv(a),`math`),s=o.height+o.depth;if(a.type===`small`){var c=r.havingBaseStyle(a.style);s*=c.sizeMultiplier}if(s>t)return a}return n[n.length-1]},Bv=function(e,t,n,r,i,a){e===`<`||e===`\\lt`||e===`⟨`?e=`\\langle`:(e===`>`||e===`\\gt`||e===`⟩`)&&(e=`\\rangle`);var o=Mv.has(e)?Fv:Av.has(e)?Lv:Iv,s=zv(e,t,o,r);return s.type===`small`?gv(e,s.style,n,r,i,a):s.type===`large`?vv(e,s.size,n,r,i,a):Tv(e,t,n,r,i,a)},Vv=function(e,t,n,r,i,a){var o=r.fontMetrics().axisHeight*r.sizeMultiplier,s=901,c=5/r.fontMetrics().ptPerEm,l=Math.max(t-o,n+o);return Bv(e,Math.max(l/500*s,2*l-c),!0,r,i,a)},Hv={"\\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}},Uv=new Set(`(,\\lparen,),\\rparen,[,\\lbrack,],\\rbrack,\\{,\\lbrace,\\},\\rbrace,\\lfloor,\\rfloor,⌊,⌋,\\lceil,\\rceil,⌈,⌉,<,>,\\langle,⟨,\\rangle,⟩,\\lt,\\gt,\\lvert,\\rvert,\\lVert,\\rVert,\\lgroup,\\rgroup,⟮,⟯,\\lmoustache,\\rmoustache,⎰,⎱,/,\\backslash,|,\\vert,\\|,\\Vert,\\uparrow,\\Uparrow,\\downarrow,\\Downarrow,\\updownarrow,\\Updownarrow,.`.split(`,`));function Wv(e){return`isMiddle`in e}function Gv(e,t){var n=K_(e);if(n&&Uv.has(n.text))return n;throw n?new P(`Invalid delimiter '`+n.text+`' after '`+t.funcName+`'`,e):new P(`Invalid delimiter type '`+e.type+`'`,e)}J({type:`delimsizing`,names:[`\\bigl`,`\\Bigl`,`\\biggl`,`\\Biggl`,`\\bigr`,`\\Bigr`,`\\biggr`,`\\Biggr`,`\\bigm`,`\\Bigm`,`\\biggm`,`\\Biggm`,`\\big`,`\\Big`,`\\bigg`,`\\Bigg`],props:{numArgs:1,argTypes:[`primitive`]},handler:(e,t)=>{var n=Gv(t[0],e);return{type:`delimsizing`,mode:e.parser.mode,size:Hv[e.funcName].size,mclass:Hv[e.funcName].mclass,delim:n.text}},htmlBuilder:(e,t)=>e.delim===`.`?q([e.mclass]):Pv(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];e.delim!==`.`&&t.push(y_(e.delim,e.mode));var n=new Y(`mo`,t);e.mclass===`mopen`||e.mclass===`mclose`?n.setAttribute(`fence`,`true`):n.setAttribute(`fence`,`false`),n.setAttribute(`stretchy`,`true`);var r=I(Nv[e.size]);return n.setAttribute(`minsize`,r),n.setAttribute(`maxsize`,r),n}});function Kv(e){if(!e.body)throw Error(`Bug: The leftright ParseNode wasn't fully parsed.`)}J({type:`leftright-right`,names:[`\\right`],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=e.parser.gullet.macros.get(`\\current@color`);if(n&&typeof n!=`string`)throw new P(`\\current@color set to non-string in \\right`);return{type:`leftright-right`,mode:e.parser.mode,delim:Gv(t[0],e).text,color:n}}}),J({type:`leftright`,names:[`\\left`],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=Gv(t[0],e),r=e.parser;++r.leftrightDepth;var i=r.parseExpression(!1);--r.leftrightDepth,r.expect(`\\right`,!1);var a=X(r.parseFunction(),`leftright-right`);return{type:`leftright`,mode:r.mode,body:i,left:n.text,right:a.delim,rightColor:a.color}},htmlBuilder:(e,t)=>{Kv(e);for(var n=a_(e.body,t,!0,[`mopen`,`mclose`]),r=0,i=0,a=!1,o=0;o<n.length;o++){var s=n[o];Wv(s)?a=!0:(r=Math.max(n[o].height,r),i=Math.max(n[o].depth,i))}r*=t.sizeMultiplier,i*=t.sizeMultiplier;var c=e.left===`.`?u_(t,[`mopen`]):Vv(e.left,r,i,t,e.mode,[`mopen`]);if(n.unshift(c),a)for(var l=1;l<n.length;l++){var u=n[l];if(Wv(u)){var d=u.isMiddle;n[l]=Vv(d.delim,r,i,d.options,e.mode,[])}}var f;if(e.right===`.`)f=u_(t,[`mclose`]);else{var p=e.rightColor?t.withColor(e.rightColor):t;f=Vv(e.right,r,i,p,e.mode,[`mclose`])}return n.push(f),q([`minner`],n,t)},mathmlBuilder:(e,t)=>{Kv(e);var n=w_(e.body,t);if(e.left!==`.`){var r=new Y(`mo`,[y_(e.left,e.mode)]);r.setAttribute(`fence`,`true`),n.unshift(r)}if(e.right!==`.`){var i=new Y(`mo`,[y_(e.right,e.mode)]);i.setAttribute(`fence`,`true`),e.rightColor&&i.setAttribute(`mathcolor`,e.rightColor),n.push(i)}return b_(n)}}),J({type:`middle`,names:[`\\middle`],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=Gv(t[0],e);if(!e.parser.leftrightDepth)throw new P(`\\middle without preceding \\left`,n);return{type:`middle`,mode:e.parser.mode,delim:n.text}},htmlBuilder:(e,t)=>{var n;return e.delim===`.`?n=u_(t,[]):(n=Pv(e.delim,1,t,e.mode,[]),n.isMiddle={delim:e.delim,options:t}),n},mathmlBuilder:(e,t)=>{var n=new Y(`mo`,[e.delim===`\\vert`||e.delim===`|`?y_(`|`,`text`):y_(e.delim,e.mode)]);return n.setAttribute(`fence`,`true`),n.setAttribute(`lspace`,`0.05em`),n.setAttribute(`rspace`,`0.05em`),n}});var qv=(e,t)=>{var n=Ig(d_(e.body,t),t),r=e.label.slice(1),i=t.sizeMultiplier,a,o,s=Sm(e.body);if(r===`sout`)a=q([`stretchy`,`sout`]),a.height=t.fontMetrics().defaultRuleThickness/i,o=-.5*t.fontMetrics().xHeight;else if(r===`phase`){var c=ph({number:.6,unit:`pt`},t),l=ph({number:.35,unit:`ex`},t),u=t.havingBaseSizing();i/=u.sizeMultiplier;var d=n.height+n.depth+c+l;n.style.paddingLeft=I(d/2+c);var f=Math.floor(1e3*d*i);a=Mg([`hide-tail`],[new Th([new Eh(`phase`,nh(f))],{width:`400em`,height:I(f/1e3),viewBox:`0 0 400000 `+f,preserveAspectRatio:`xMinYMin slice`})],t),a.style.height=I(d),o=n.depth+c+l}else{/cancel/.test(r)?s||n.classes.push(`cancel-pad`):r===`angl`?n.classes.push(`anglpad`):n.classes.push(`boxpad`);var p,m,h=0;/box/.test(r)?(h=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),p=t.fontMetrics().fboxsep+(r===`colorbox`?0:h),m=p):r===`angl`?(h=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),p=4*h,m=Math.max(0,.25-n.depth)):(p=s?.2:0,m=p),a=V_(n,r,p,m,t),/fbox|boxed|fcolorbox/.test(r)?(a.style.borderStyle=`solid`,a.style.borderWidth=I(h)):r===`angl`&&h!==.049&&(a.style.borderTopWidth=I(h),a.style.borderRightWidth=I(h)),o=n.depth+m,e.backgroundColor&&(a.style.backgroundColor=e.backgroundColor,e.borderColor&&(a.style.borderColor=e.borderColor))}var g;if(e.backgroundColor)g=Rg({positionType:`individualShift`,children:[{type:`elem`,elem:a,shift:o},{type:`elem`,elem:n,shift:0}]});else{var _=/cancel|phase/.test(r)?[`svg-align`]:[];g=Rg({positionType:`individualShift`,children:[{type:`elem`,elem:n,shift:0},{type:`elem`,elem:a,shift:o,wrapperClasses:_}]})}return/cancel/.test(r)&&(g.height=n.height,g.depth=n.depth),/cancel/.test(r)&&!s?q([`mord`,`cancel-lap`],[g],t):q([`mord`],[g],t)},Jv=(e,t)=>{var n,r=new Y(e.label.includes(`colorbox`)?`mpadded`:`menclose`,[E_(e.body,t)]);switch(e.label){case`\\cancel`:r.setAttribute(`notation`,`updiagonalstrike`);break;case`\\bcancel`:r.setAttribute(`notation`,`downdiagonalstrike`);break;case`\\phase`:r.setAttribute(`notation`,`phasorangle`);break;case`\\sout`:r.setAttribute(`notation`,`horizontalstrike`);break;case`\\fbox`:r.setAttribute(`notation`,`box`);break;case`\\angl`:r.setAttribute(`notation`,`actuarial`);break;case`\\fcolorbox`:case`\\colorbox`:if(n=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,r.setAttribute(`width`,`+`+2*n+`pt`),r.setAttribute(`height`,`+`+2*n+`pt`),r.setAttribute(`lspace`,n+`pt`),r.setAttribute(`voffset`,n+`pt`),e.label===`\\fcolorbox`){var i=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);r.setAttribute(`style`,`border: `+I(i)+` solid `+e.borderColor)}break;case`\\xcancel`:r.setAttribute(`notation`,`updiagonalstrike downdiagonalstrike`);break}return e.backgroundColor&&r.setAttribute(`mathbackground`,e.backgroundColor),r};J({type:`enclose`,names:[`\\colorbox`],props:{numArgs:2,allowedInText:!0,argTypes:[`color`,`hbox`]},handler(e,t,n){var{parser:r,funcName:i}=e,a=X(t[0],`color-token`).color,o=t[1];return{type:`enclose`,mode:r.mode,label:i,backgroundColor:a,body:o}},htmlBuilder:qv,mathmlBuilder:Jv}),J({type:`enclose`,names:[`\\fcolorbox`],props:{numArgs:3,allowedInText:!0,argTypes:[`color`,`color`,`hbox`]},handler(e,t,n){var{parser:r,funcName:i}=e,a=X(t[0],`color-token`).color,o=X(t[1],`color-token`).color,s=t[2];return{type:`enclose`,mode:r.mode,label:i,backgroundColor:o,borderColor:a,body:s}},htmlBuilder:qv,mathmlBuilder:Jv}),J({type:`enclose`,names:[`\\fbox`],props:{numArgs:1,argTypes:[`hbox`],allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:`enclose`,mode:n.mode,label:`\\fbox`,body:t[0]}}}),J({type:`enclose`,names:[`\\cancel`,`\\bcancel`,`\\xcancel`,`\\phase`],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:`enclose`,mode:n.mode,label:r,body:i}},htmlBuilder:qv,mathmlBuilder:Jv}),J({type:`enclose`,names:[`\\sout`],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e;n.mode===`math`&&n.settings.reportNonstrict(`mathVsSout`,`LaTeX's \\sout works only in text mode`);var i=t[0];return{type:`enclose`,mode:n.mode,label:r,body:i}},htmlBuilder:qv,mathmlBuilder:Jv}),J({type:`enclose`,names:[`\\angl`],props:{numArgs:1,argTypes:[`hbox`],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:`enclose`,mode:n.mode,label:`\\angl`,body:t[0]}}});var Yv={};function Xv(e){for(var{type:t,names:n,props:r,handler:i,htmlBuilder:a,mathmlBuilder:o}=e,s={type:t,numArgs:r.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:i},c=0;c<n.length;++c)Yv[n[c]]=s;a&&(Xg[t]=a),o&&(Zg[t]=o)}var Zv={};function Z(e,t){Zv[e]=t}var Qv=class e{constructor(e,t,n){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=e,this.start=t,this.end=n}static range(t,n){return n?!t||!t.loc||!n.loc||t.loc.lexer!==n.loc.lexer?null:new e(t.loc.lexer,t.loc.start,n.loc.end):t&&t.loc}},$v=class e{constructor(e,t){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=e,this.loc=t}range(t,n){return new e(n,Qv.range(this,t))}};function ey(e){var t=[];e.consumeSpaces();var n=e.fetch().text;for(n===`\\relax`&&(e.consume(),e.consumeSpaces(),n=e.fetch().text);n===`\\hline`||n===`\\hdashline`;)e.consume(),t.push(n===`\\hdashline`),e.consumeSpaces(),n=e.fetch().text;return t}var ty=e=>{if(!e.parser.settings.displayMode)throw new P(`{`+e.envName+`} can be used only in display mode.`)},ny=new Set([`gather`,`gather*`]);function ry(e){if(!e.includes(`ed`))return!e.includes(`*`)}function iy(e,t,n){var{hskipBeforeAndAfter:r,addJot:i,cols:a,arraystretch:o,colSeparationType:s,autoTag:c,singleRow:l,emptySingleRow:u,maxNumCols:d,leqno:f}=t;if(e.gullet.beginGroup(),l||e.gullet.macros.set(`\\cr`,`\\\\\\relax`),!o){var p=e.gullet.expandMacroAsText(`\\arraystretch`);if(p==null)o=1;else if(o=parseFloat(p),!o||o<0)throw new P(`Invalid \\arraystretch: `+p)}e.gullet.beginGroup();var m=[],h=[m],g=[],_=[],v=c==null?void 0:[];function y(){c&&e.gullet.macros.set(`\\@eqnsw`,`1`,!0)}function b(){v&&(e.gullet.macros.get(`\\df@tag`)?(v.push(e.subparse([new $v(`\\df@tag`)])),e.gullet.macros.set(`\\df@tag`,void 0,!0)):v.push(!!c&&e.gullet.macros.get(`\\@eqnsw`)===`1`))}for(y(),_.push(ey(e));;){var x=e.parseExpression(!1,l?`\\end`:`\\\\`);e.gullet.endGroup(),e.gullet.beginGroup();var S={type:`ordgroup`,mode:e.mode,body:x};n&&(S={type:`styling`,mode:e.mode,style:n,resetFont:!0,body:[S]}),m.push(S);var C=e.fetch().text;if(C===`&`){if(d&&m.length===d){if(l||s)throw new P(`Too many tab characters: &`,e.nextToken);e.settings.reportNonstrict(`textEnv`,`Too few columns specified in the {array} column argument.`)}e.consume()}else if(C===`\\end`){b(),m.length===1&&S.type===`styling`&&S.body.length===1&&S.body[0].type===`ordgroup`&&S.body[0].body.length===0&&(h.length>1||!u)&&h.pop(),_.length<h.length+1&&_.push([]);break}else if(C===`\\\\`){e.consume();var w=void 0;e.gullet.future().text!==` `&&(w=e.parseSizeGroup(!0)),g.push(w?w.value:null),b(),_.push(ey(e)),m=[],h.push(m),y()}else throw new P(`Expected & or \\\\ or \\cr or \\end`,e.nextToken)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:`array`,mode:e.mode,addJot:i,arraystretch:o,body:h,cols:a,rowGaps:g,hskipBeforeAndAfter:r,hLinesBeforeRow:_,colSeparationType:s,tags:v,leqno:f}}function ay(e){return e.slice(0,1)===`d`?`display`:`text`}var oy=function(e,t){var n,r,i=e.body.length,a=e.hLinesBeforeRow,o=0,s=Array(i),c=[],l=Math.max(t.fontMetrics().arrayRuleWidth,t.minRuleThickness),u=1/t.fontMetrics().ptPerEm,d=5*u;e.colSeparationType&&e.colSeparationType===`small`&&(d=.2778*(t.havingStyle(F.SCRIPT).sizeMultiplier/t.sizeMultiplier));var f=e.colSeparationType===`CD`?ph({number:3,unit:`ex`},t):12*u,p=3*u,m=e.arraystretch*f,h=.7*m,g=.3*m,_=0;function v(e){for(var t=0;t<e.length;++t)t>0&&(_+=.25),c.push({pos:_,isDashed:e[t]})}for(v(a[0]),n=0;n<e.body.length;++n){var y=e.body[n],b=h,x=g;o<y.length&&(o=y.length);var S={cells:Array(y.length),height:0,depth:0,pos:0};for(r=0;r<y.length;++r){var C=d_(y[r],t);x<C.depth&&(x=C.depth),b<C.height&&(b=C.height),S.cells[r]=C}var w=e.rowGaps[n],T=0;w&&(T=ph(w,t),T>0&&(T+=g,x<T&&(x=T),T=0)),e.addJot&&n<e.body.length-1&&(x+=p),S.height=b,S.depth=x,_+=b,S.pos=_,_+=x+T,s[n]=S,v(a[n+1])}var E=_/2+t.fontMetrics().axisHeight,ee=e.cols||[],te=[],D,ne,re=[];if(e.tags&&e.tags.some(e=>e))for(n=0;n<i;++n){var ie=s[n],ae=ie.pos-E,oe=e.tags[n],se=void 0;se=oe===!0?q([`eqn-num`],[],t):oe===!1?q([],[],t):q([],a_(oe,t,!0),t),se.depth=ie.depth,se.height=ie.height,re.push({type:`elem`,elem:se,shift:ae})}for(r=0,ne=0;r<o||ne<ee.length;++r,++ne){for(var ce=ee[ne],O=!0;(le=ce)?.type===`separator`;){var le;if(O||(D=q([`arraycolsep`],[]),D.style.width=I(t.fontMetrics().doubleRuleSep),te.push(D)),ce.separator===`|`||ce.separator===`:`){var ue=ce.separator===`|`?`solid`:`dashed`,de=q([`vertical-separator`],[],t);de.style.height=I(_),de.style.borderRightWidth=I(l),de.style.borderRightStyle=ue,de.style.margin=`0 `+I(-l/2);var fe=_-E;fe&&(de.style.verticalAlign=I(-fe)),te.push(de)}else throw new P(`Invalid separator type: `+ce.separator);ne++,ce=ee[ne],O=!1}if(!(r>=o)){var pe=void 0;(r>0||e.hskipBeforeAndAfter)&&(pe=ce?.pregap??d,pe!==0&&(D=q([`arraycolsep`],[]),D.style.width=I(pe),te.push(D)));var me=[];for(n=0;n<i;++n){var he=s[n],ge=he.cells[r];if(ge){var _e=he.pos-E;ge.depth=he.depth,ge.height=he.height,me.push({type:`elem`,elem:ge,shift:_e})}}var ve=Rg({positionType:`individualShift`,children:me}),ye=q([`col-align-`+(ce?.align||`c`)],[ve]);te.push(ye),(r<o-1||e.hskipBeforeAndAfter)&&(pe=ce?.postgap??d,pe!==0&&(D=q([`arraycolsep`],[]),D.style.width=I(pe),te.push(D)))}}var be=q([`mtable`],te);if(c.length>0){for(var xe=Ng(`hline`,t,l),Se=Ng(`hdashline`,t,l),Ce=[{type:`elem`,elem:be,shift:0}];c.length>0;){var we=c.pop(),Te=we.pos-E;we.isDashed?Ce.push({type:`elem`,elem:Se,shift:Te}):Ce.push({type:`elem`,elem:xe,shift:Te})}be=Rg({positionType:`individualShift`,children:Ce})}if(re.length===0)return q([`mord`],[be],t);var Ee=q([`tag`],[Rg({positionType:`individualShift`,children:re})],t);return Fg([be,Ee])},sy={c:`center `,l:`left `,r:`right `},cy=function(e,t){for(var n=[],r=new Y(`mtd`,[],[`mtr-glue`]),i=new Y(`mtd`,[],[`mml-eqn-num`]),a=0;a<e.body.length;a++){for(var o=e.body[a],s=[],c=0;c<o.length;c++)s.push(new Y(`mtd`,[E_(o[c],t)]));e.tags&&e.tags[a]&&(s.unshift(r),s.push(r),e.leqno?s.unshift(i):s.push(i)),n.push(new Y(`mtr`,s))}var l=new Y(`mtable`,n),u=e.arraystretch===.5?.1:.16+e.arraystretch-1+(e.addJot?.09:0);l.setAttribute(`rowspacing`,I(u));var d=``,f=``;if(e.cols&&e.cols.length>0){var p=e.cols,m=``,h=!1,g=0,_=p.length;p[0].type===`separator`&&(d+=`top `,g=1),p[p.length-1].type===`separator`&&(d+=`bottom `,--_);for(var v=g;v<_;v++){var y=p[v];y.type===`align`?(f+=sy[y.align],h&&(m+=`none `),h=!0):y.type===`separator`&&(h&&=(m+=y.separator===`|`?`solid `:`dashed `,!1))}l.setAttribute(`columnalign`,f.trim()),/[sd]/.test(m)&&l.setAttribute(`columnlines`,m.trim())}if(e.colSeparationType===`align`){for(var b=e.cols||[],x=``,S=1;S<b.length;S++)x+=S%2?`0em `:`1em `;l.setAttribute(`columnspacing`,x.trim())}else e.colSeparationType===`alignat`||e.colSeparationType===`gather`?l.setAttribute(`columnspacing`,`0em`):e.colSeparationType===`small`?l.setAttribute(`columnspacing`,`0.2778em`):e.colSeparationType===`CD`?l.setAttribute(`columnspacing`,`0.5em`):l.setAttribute(`columnspacing`,`1em`);var C=``,w=e.hLinesBeforeRow;d+=w[0].length>0?`left `:``,d+=w[w.length-1].length>0?`right `:``;for(var T=1;T<w.length-1;T++)C+=w[T].length===0?`none `:w[T][0]?`dashed `:`solid `;return/[sd]/.test(C)&&l.setAttribute(`rowlines`,C.trim()),d!==``&&(l=new Y(`menclose`,[l]),l.setAttribute(`notation`,d.trim())),e.arraystretch&&e.arraystretch<1&&(l=new Y(`mstyle`,[l]),l.setAttribute(`scriptlevel`,`1`)),l},ly=function(e,t){e.envName.includes(`ed`)||ty(e);var n=[],r=e.envName.includes(`at`)?`alignat`:`align`,i=e.envName===`split`,a=iy(e.parser,{cols:n,addJot:!0,autoTag:i?void 0:ry(e.envName),emptySingleRow:!0,colSeparationType:r,maxNumCols:i?2:void 0,leqno:e.parser.settings.leqno},`display`),o=0,s=0,c={type:`ordgroup`,mode:e.mode,body:[]};if(t[0]&&t[0].type===`ordgroup`){for(var l=``,u=0;u<t[0].body.length;u++){var d=X(t[0].body[u],`textord`);l+=d.text}o=Number(l),s=o*2}var f=!s;a.body.forEach(function(e){for(var t=1;t<e.length;t+=2)X(X(e[t],`styling`).body[0],`ordgroup`).body.unshift(c);if(f)s<e.length&&(s=e.length);else{var n=e.length/2;if(o<n)throw new P(`Too many math in a row: `+(`expected `+o+`, but got `+n),e[0])}});for(var p=0;p<s;++p){var m=`r`,h=0;p%2==1?m=`l`:p>0&&f&&(h=1),n[p]={type:`align`,align:m,pregap:h,postgap:0}}return a.colSeparationType=f?`align`:`alignat`,a};Xv({type:`array`,names:[`array`,`darray`],props:{numArgs:1},handler(e,t){var n=(K_(t[0])?[t[0]]:X(t[0],`ordgroup`).body).map(function(e){var t=G_(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 P(`Unknown column alignment: `+t,e)}),r={cols:n,hskipBeforeAndAfter:!0,maxNumCols:n.length};return iy(e.parser,r,ay(e.envName))},htmlBuilder:oy,mathmlBuilder:cy}),Xv({type:`array`,names:[`matrix`,`pmatrix`,`bmatrix`,`Bmatrix`,`vmatrix`,`Vmatrix`,`matrix*`,`pmatrix*`,`bmatrix*`,`Bmatrix*`,`vmatrix*`,`Vmatrix*`],props:{numArgs:0},handler(e){var t={matrix:null,pmatrix:[`(`,`)`],bmatrix:[`[`,`]`],Bmatrix:[`\\{`,`\\}`],vmatrix:[`|`,`|`],Vmatrix:[`\\Vert`,`\\Vert`]}[e.envName.replace(`*`,``)],n=`c`,r={hskipBeforeAndAfter:!1,cols:[{type:`align`,align:n}]};if(e.envName.charAt(e.envName.length-1)===`*`){var i=e.parser;if(i.consumeSpaces(),i.fetch().text===`[`){if(i.consume(),i.consumeSpaces(),n=i.fetch().text,!`lcr`.includes(n))throw new P(`Expected l or c or r`,i.nextToken);i.consume(),i.consumeSpaces(),i.expect(`]`),i.consume(),r.cols=[{type:`align`,align:n}]}}var a=iy(e.parser,r,ay(e.envName)),o=Math.max(0,...a.body.map(e=>e.length));return a.cols=Array(o).fill({type:`align`,align:n}),t?{type:`leftright`,mode:e.mode,body:[a],left:t[0],right:t[1],rightColor:void 0}:a},htmlBuilder:oy,mathmlBuilder:cy}),Xv({type:`array`,names:[`smallmatrix`],props:{numArgs:0},handler(e){var t=iy(e.parser,{arraystretch:.5},`script`);return t.colSeparationType=`small`,t},htmlBuilder:oy,mathmlBuilder:cy}),Xv({type:`array`,names:[`subarray`],props:{numArgs:1},handler(e,t){var n=(K_(t[0])?[t[0]]:X(t[0],`ordgroup`).body).map(function(e){var t=G_(e).text;if(`lc`.includes(t))return{type:`align`,align:t};throw new P(`Unknown column alignment: `+t,e)});if(n.length>1)throw new P(`{subarray} can contain only one column`);var r={cols:n,hskipBeforeAndAfter:!1,arraystretch:.5},i=iy(e.parser,r,`script`);if(i.body.length>0&&i.body[0].length>1)throw new P(`{subarray} can contain only one column`);return i},htmlBuilder:oy,mathmlBuilder:cy}),Xv({type:`array`,names:[`cases`,`dcases`,`rcases`,`drcases`],props:{numArgs:0},handler(e){var t=iy(e.parser,{arraystretch:1.2,cols:[{type:`align`,align:`l`,pregap:0,postgap:1},{type:`align`,align:`l`,pregap:0,postgap:0}]},ay(e.envName));return{type:`leftright`,mode:e.mode,body:[t],left:e.envName.includes(`r`)?`.`:`\\{`,right:e.envName.includes(`r`)?`\\}`:`.`,rightColor:void 0}},htmlBuilder:oy,mathmlBuilder:cy}),Xv({type:`array`,names:[`align`,`align*`,`aligned`,`split`],props:{numArgs:0},handler:ly,htmlBuilder:oy,mathmlBuilder:cy}),Xv({type:`array`,names:[`gathered`,`gather`,`gather*`],props:{numArgs:0},handler(e){ny.has(e.envName)&&ty(e);var t={cols:[{type:`align`,align:`c`}],addJot:!0,colSeparationType:`gather`,autoTag:ry(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return iy(e.parser,t,`display`)},htmlBuilder:oy,mathmlBuilder:cy}),Xv({type:`array`,names:[`alignat`,`alignat*`,`alignedat`],props:{numArgs:1},handler:ly,htmlBuilder:oy,mathmlBuilder:cy}),Xv({type:`array`,names:[`equation`,`equation*`],props:{numArgs:0},handler(e){ty(e);var t={autoTag:ry(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return iy(e.parser,t,`display`)},htmlBuilder:oy,mathmlBuilder:cy}),Xv({type:`array`,names:[`CD`],props:{numArgs:0},handler(e){return ty(e),ov(e.parser)},htmlBuilder:oy,mathmlBuilder:cy}),Z(`\\nonumber`,`\\gdef\\@eqnsw{0}`),Z(`\\notag`,`\\nonumber`),J({type:`text`,names:[`\\hline`,`\\hdashline`],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new P(e.funcName+` valid only within array environment`)}});var uy=Yv;J({type:`environment`,names:[`\\begin`,`\\end`],props:{numArgs:1,argTypes:[`text`]},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];if(i.type!==`ordgroup`)throw new P(`Invalid environment name`,i);for(var a=``,o=0;o<i.body.length;++o)a+=X(i.body[o],`textord`).text;if(r===`\\begin`){if(!uy.hasOwnProperty(a))throw new P(`No such environment: `+a,i);var s=uy[a],{args:c,optArgs:l}=n.parseArguments(`\\begin{`+a+`}`,s),u={mode:n.mode,envName:a,parser:n},d=s.handler(u,c,l);n.expect(`\\end`,!1);var f=n.nextToken,p=X(n.parseFunction(),`environment`);if(p.name!==a)throw new P(`Mismatch: \\begin{`+a+`} matched by \\end{`+p.name+`}`,f);return d}return{type:`environment`,mode:n.mode,name:a,nameGroup:i}}});var dy=(e,t)=>{var n=e.font,r=t.withFont(n);return d_(e.body,r)},fy=(e,t)=>{var n=e.font,r=t.withFont(n);return E_(e.body,r)},py={"\\Bbb":`\\mathbb`,"\\bold":`\\mathbf`,"\\frak":`\\mathfrak`};J({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:n,funcName:r}=e,i=$g(t[0]),a=r;return a in py&&(a=py[a]),{type:`font`,mode:n.mode,font:a.slice(1),body:i}},htmlBuilder:dy,mathmlBuilder:fy}),J({type:`mclass`,names:[`\\boldsymbol`,`\\bm`],props:{numArgs:1},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:`mclass`,mode:n.mode,mclass:ev(r),body:[{type:`font`,mode:n.mode,font:`boldsymbol`,body:r}],isCharacterBox:Sm(r)}}}),J({type:`font`,names:[`\\rm`,`\\sf`,`\\tt`,`\\bf`,`\\it`,`\\cal`],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r,breakOnTokenText:i}=e,{mode:a}=n,o=n.parseExpression(!0,i);return{type:`font`,mode:a,font:`math`+r.slice(1),body:{type:`ordgroup`,mode:n.mode,body:o}}},htmlBuilder:dy,mathmlBuilder:fy});var my=(e,t)=>{var n=t.style,r=n.fracNum(),i=n.fracDen(),a=t.havingStyle(r),o=d_(e.numer,a,t);if(e.continued){var s=8.5/t.fontMetrics().ptPerEm,c=3.5/t.fontMetrics().ptPerEm;o.height=o.height<s?s:o.height,o.depth=o.depth<c?c:o.depth}a=t.havingStyle(i);var l=d_(e.denom,a,t),u,d,f;e.hasBarLine?(e.barSize?(d=ph(e.barSize,t),u=Ng(`frac-line`,t,d)):u=Ng(`frac-line`,t),d=u.height,f=u.height):(u=null,d=0,f=t.fontMetrics().defaultRuleThickness);var p,m,h;n.size===F.DISPLAY.size?(p=t.fontMetrics().num1,m=d>0?3*f:7*f,h=t.fontMetrics().denom1):(d>0?(p=t.fontMetrics().num2,m=f):(p=t.fontMetrics().num3,m=3*f),h=t.fontMetrics().denom2);var g;if(u){var _=t.fontMetrics().axisHeight;p-o.depth-(_+.5*d)<m&&(p+=m-(p-o.depth-(_+.5*d))),_-.5*d-(l.height-h)<m&&(h+=m-(_-.5*d-(l.height-h)));var v=-(_-.5*d);g=Rg({positionType:`individualShift`,children:[{type:`elem`,elem:l,shift:h},{type:`elem`,elem:u,shift:v},{type:`elem`,elem:o,shift:-p}]})}else{var y=p-o.depth-(l.height-h);y<m&&(p+=.5*(m-y),h+=.5*(m-y)),g=Rg({positionType:`individualShift`,children:[{type:`elem`,elem:l,shift:h},{type:`elem`,elem:o,shift:-p}]})}a=t.havingStyle(n),g.height*=a.sizeMultiplier/t.sizeMultiplier,g.depth*=a.sizeMultiplier/t.sizeMultiplier;var b=n.size===F.DISPLAY.size?t.fontMetrics().delim1:n.size===F.SCRIPTSCRIPT.size?t.havingStyle(F.SCRIPT).fontMetrics().delim2:t.fontMetrics().delim2,x=e.leftDelim==null?u_(t,[`mopen`]):Bv(e.leftDelim,b,!0,t.havingStyle(n),e.mode,[`mopen`]),S=e.continued?q([]):e.rightDelim==null?u_(t,[`mclose`]):Bv(e.rightDelim,b,!0,t.havingStyle(n),e.mode,[`mclose`]);return q([`mord`].concat(a.sizingClasses(t)),[x,q([`mfrac`],[g]),S],t)},hy=(e,t)=>{var n=new Y(`mfrac`,[E_(e.numer,t),E_(e.denom,t)]);if(!e.hasBarLine)n.setAttribute(`linethickness`,`0px`);else if(e.barSize){var r=ph(e.barSize,t);n.setAttribute(`linethickness`,I(r))}if(e.leftDelim!=null||e.rightDelim!=null){var i=[];if(e.leftDelim!=null){var a=new Y(`mo`,[new h_(e.leftDelim.replace(`\\`,``))]);a.setAttribute(`fence`,`true`),i.push(a)}if(i.push(n),e.rightDelim!=null){var o=new Y(`mo`,[new h_(e.rightDelim.replace(`\\`,``))]);o.setAttribute(`fence`,`true`),i.push(o)}return b_(i)}return n},gy=(e,t)=>t?{type:`styling`,mode:e.mode,style:t,body:[e]}:e;J({type:`genfrac`,names:[`\\cfrac`,`\\dfrac`,`\\frac`,`\\tfrac`,`\\dbinom`,`\\binom`,`\\tbinom`,`\\\\atopfrac`,`\\\\bracefrac`,`\\\\brackfrac`],props:{numArgs:2,allowedInArgument:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0],a=t[1],o,s=null,c=null;switch(r){case`\\cfrac`:case`\\dfrac`:case`\\frac`:case`\\tfrac`:o=!0;break;case`\\\\atopfrac`:o=!1;break;case`\\dbinom`:case`\\binom`:case`\\tbinom`:o=!1,s=`(`,c=`)`;break;case`\\\\bracefrac`:o=!1,s=`\\{`,c=`\\}`;break;case`\\\\brackfrac`:o=!1,s=`[`,c=`]`;break;default:throw Error(`Unrecognized genfrac command`)}var l=r===`\\cfrac`,u=null;return l||r.startsWith(`\\d`)?u=`display`:r.startsWith(`\\t`)&&(u=`text`),gy({type:`genfrac`,mode:n.mode,numer:i,denom:a,continued:l,hasBarLine:o,leftDelim:s,rightDelim:c,barSize:null},u)},htmlBuilder:my,mathmlBuilder:hy}),J({type:`infix`,names:[`\\over`,`\\choose`,`\\atop`,`\\brace`,`\\brack`],props:{numArgs:0,infix:!0},handler(e){var{parser:t,funcName:n,token:r}=e,i;switch(n){case`\\over`:i=`\\frac`;break;case`\\choose`:i=`\\binom`;break;case`\\atop`:i=`\\\\atopfrac`;break;case`\\brace`:i=`\\\\bracefrac`;break;case`\\brack`:i=`\\\\brackfrac`;break;default:throw Error(`Unrecognized infix genfrac command`)}return{type:`infix`,mode:t.mode,replaceWith:i,token:r}}});var _y=[`display`,`text`,`script`,`scriptscript`],vy=function(e){var t=null;return e.length>0&&(t=e,t=t===`.`?null:t),t};J({type:`genfrac`,names:[`\\genfrac`],props:{numArgs:6,allowedInArgument:!0,argTypes:[`math`,`math`,`size`,`text`,`math`,`math`]},handler(e,t){var{parser:n}=e,r=t[4],i=t[5],a=$g(t[0]),o=a.type===`atom`&&a.family===`open`?vy(a.text):null,s=$g(t[1]),c=s.type===`atom`&&s.family===`close`?vy(s.text):null,l=X(t[2],`size`),u,d=null;l.isBlank?u=!0:(d=l.value,u=d.number>0);var f=null,p=t[3];if(p.type===`ordgroup`){if(p.body.length>0){var m=X(p.body[0],`textord`);f=_y[Number(m.text)]}}else p=X(p,`textord`),f=_y[Number(p.text)];return gy({type:`genfrac`,mode:n.mode,numer:r,denom:i,continued:!1,hasBarLine:u,barSize:d,leftDelim:o,rightDelim:c},f)}}),J({type:`infix`,names:[`\\above`],props:{numArgs:1,argTypes:[`size`],infix:!0},handler(e,t){var{parser:n,funcName:r,token:i}=e;return{type:`infix`,mode:n.mode,replaceWith:`\\\\abovefrac`,size:X(t[0],`size`).value,token:i}}}),J({type:`genfrac`,names:[`\\\\abovefrac`],props:{numArgs:3,argTypes:[`math`,`size`,`math`]},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0],a=X(t[1],`infix`).size;if(!a)throw Error(`\\\\abovefrac expected size, but got `+String(a));var o=t[2],s=a.number>0;return{type:`genfrac`,mode:n.mode,numer:i,denom:o,continued:!1,hasBarLine:s,barSize:a,leftDelim:null,rightDelim:null}}});var yy=(e,t)=>{var n=t.style,r,i;e.type===`supsub`?(r=e.sup?d_(e.sup,t.havingStyle(n.sup()),t):d_(e.sub,t.havingStyle(n.sub()),t),i=X(e.base,`horizBrace`)):i=X(e,`horizBrace`);var a=d_(i.base,t.havingBaseStyle(F.DISPLAY)),o=B_(i,t),s=i.isOver?Rg({positionType:`firstBaseline`,children:[{type:`elem`,elem:a},{type:`kern`,size:.1},{type:`elem`,elem:o,wrapperClasses:[`svg-align`]}]}):Rg({positionType:`bottom`,positionData:a.depth+.1+o.height,children:[{type:`elem`,elem:o,wrapperClasses:[`svg-align`]},{type:`kern`,size:.1},{type:`elem`,elem:a}]});if(r){var c=q([`minner`,i.isOver?`mover`:`munder`],[s],t);s=i.isOver?Rg({positionType:`firstBaseline`,children:[{type:`elem`,elem:c},{type:`kern`,size:.2},{type:`elem`,elem:r}]}):Rg({positionType:`bottom`,positionData:c.depth+.2+r.height+r.depth,children:[{type:`elem`,elem:r},{type:`kern`,size:.2},{type:`elem`,elem:c}]})}return q([`minner`,i.isOver?`mover`:`munder`],[s],t)};J({type:`horizBrace`,names:[`\\overbrace`,`\\underbrace`,`\\overbracket`,`\\underbracket`],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e;return{type:`horizBrace`,mode:n.mode,label:r,isOver:r.includes(`\\over`),base:t[0]}},htmlBuilder:yy,mathmlBuilder:(e,t)=>{var n=L_(e.label);return new Y(e.isOver?`mover`:`munder`,[E_(e.base,t),n])}}),J({type:`href`,names:[`\\href`],props:{numArgs:2,argTypes:[`url`,`original`],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[1],i=X(t[0],`url`).url;return n.settings.isTrusted({command:`\\href`,url:i})?{type:`href`,mode:n.mode,href:i,body:e_(r)}:n.formatUnsupportedCmd(`\\href`)},htmlBuilder:(e,t)=>{var n=a_(e.body,t,!1);return Pg(e.href,[],n,t)},mathmlBuilder:(e,t)=>{var n=T_(e.body,t);return n instanceof Y||(n=new Y(`mrow`,[n])),n.setAttribute(`href`,e.href),n}}),J({type:`href`,names:[`\\url`],props:{numArgs:1,argTypes:[`url`],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=X(t[0],`url`).url;if(!n.settings.isTrusted({command:`\\url`,url:r}))return n.formatUnsupportedCmd(`\\url`);for(var i=[],a=0;a<r.length;a++){var o=r[a];o===`~`&&(o=`\\textasciitilde`),i.push({type:`textord`,mode:`text`,text:o})}var s={type:`text`,mode:n.mode,font:`\\texttt`,body:i};return{type:`href`,mode:n.mode,href:r,body:e_(s)}}}),J({type:`hbox`,names:[`\\hbox`],props:{numArgs:1,argTypes:[`text`],allowedInText:!0,primitive:!0},handler(e,t){var{parser:n}=e;return{type:`hbox`,mode:n.mode,body:e_(t[0])}},htmlBuilder(e,t){return Fg(a_(e.body,t.withFont(``),!1))},mathmlBuilder(e,t){return new Y(`mrow`,w_(e.body,t.withFont(``)))}}),J({type:`html`,names:[`\\htmlClass`,`\\htmlId`,`\\htmlStyle`,`\\htmlData`],props:{numArgs:2,argTypes:[`raw`,`original`],allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r,token:i}=e,a=X(t[0],`raw`).string,o=t[1];n.settings.strict&&n.settings.reportNonstrict(`htmlExtension`,`HTML extension is disabled on strict mode`);var s,c={};switch(r){case`\\htmlClass`:c.class=a,s={command:`\\htmlClass`,class:a};break;case`\\htmlId`:c.id=a,s={command:`\\htmlId`,id:a};break;case`\\htmlStyle`:c.style=a,s={command:`\\htmlStyle`,style:a};break;case`\\htmlData`:for(var l=a.split(`,`),u=0;u<l.length;u++){var d=l[u],f=d.indexOf(`=`);if(f<0)throw new P(`\\htmlData key/value '`+d+`' missing equals sign`);var p=d.slice(0,f),m=d.slice(f+1);c[`data-`+p.trim()]=m}s={command:`\\htmlData`,attributes:c};break;default:throw Error(`Unrecognized html command`)}return n.settings.isTrusted(s)?{type:`html`,mode:n.mode,attributes:c,body:e_(o)}:n.formatUnsupportedCmd(r)},htmlBuilder:(e,t)=>{var n=a_(e.body,t,!1),r=[`enclosing`];e.attributes.class&&r.push(...e.attributes.class.trim().split(/\s+/));var i=q(r,n,t);for(var a in e.attributes)a!==`class`&&e.attributes.hasOwnProperty(a)&&i.setAttribute(a,e.attributes[a]);return i},mathmlBuilder:(e,t)=>T_(e.body,t)}),J({type:`htmlmathml`,names:[`\\html@mathml`],props:{numArgs:2,allowedInArgument:!0,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e;return{type:`htmlmathml`,mode:n.mode,html:e_(t[0]),mathml:e_(t[1])}},htmlBuilder:(e,t)=>Fg(a_(e.html,t,!1)),mathmlBuilder:(e,t)=>T_(e.mathml,t)});var by=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 P(`Invalid size: '`+e+`' in \\includegraphics`);var n={number:+(t[1]+t[2]),unit:t[3]};if(!fh(n))throw new P(`Invalid unit: '`+n.unit+`' in \\includegraphics.`);return n};J({type:`includegraphics`,names:[`\\includegraphics`],props:{numArgs:1,numOptionalArgs:1,argTypes:[`raw`,`url`],allowedInText:!1},handler:(e,t,n)=>{var{parser:r}=e,i={number:0,unit:`em`},a={number:.9,unit:`em`},o={number:0,unit:`em`},s=``;if(n[0])for(var c=X(n[0],`raw`).string.split(`,`),l=0;l<c.length;l++){var u=c[l].split(`=`);if(u.length===2){var d=u[1].trim();switch(u[0].trim()){case`alt`:s=d;break;case`width`:i=by(d);break;case`height`:a=by(d);break;case`totalheight`:o=by(d);break;default:throw new P(`Invalid key: '`+u[0]+`' in \\includegraphics.`)}}}var f=X(t[0],`url`).url;return s===``&&(s=f,s=s.replace(/^.*[\\/]/,``),s=s.substring(0,s.lastIndexOf(`.`))),r.settings.isTrusted({command:`\\includegraphics`,url:f})?{type:`includegraphics`,mode:r.mode,alt:s,width:i,height:a,totalheight:o,src:f}:r.formatUnsupportedCmd(`\\includegraphics`)},htmlBuilder:(e,t)=>{var n=ph(e.height,t),r=0;e.totalheight.number>0&&(r=ph(e.totalheight,t)-n);var i=0;e.width.number>0&&(i=ph(e.width,t));var a={height:I(n+r)};i>0&&(a.width=I(i)),r>0&&(a.verticalAlign=I(-r));var o=new Sh(e.src,e.alt,a);return o.height=n,o.depth=r,o},mathmlBuilder:(e,t)=>{var n=new Y(`mglyph`,[]);n.setAttribute(`alt`,e.alt);var r=ph(e.height,t),i=0;if(e.totalheight.number>0&&(i=ph(e.totalheight,t)-r,n.setAttribute(`valign`,I(-i))),n.setAttribute(`height`,I(r+i)),e.width.number>0){var a=ph(e.width,t);n.setAttribute(`width`,I(a))}return n.setAttribute(`src`,e.src),n}}),J({type:`kern`,names:[`\\kern`,`\\mkern`,`\\hskip`,`\\mskip`],props:{numArgs:1,argTypes:[`size`],primitive:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e,i=X(t[0],`size`);if(n.settings.strict){var a=r[1]===`m`,o=i.value.unit===`mu`;a?(o||n.settings.reportNonstrict(`mathVsTextUnits`,`LaTeX's `+r+` supports only mu units, `+(`not `+i.value.unit+` units`)),n.mode!==`math`&&n.settings.reportNonstrict(`mathVsTextUnits`,`LaTeX's `+r+` works only in math mode`)):o&&n.settings.reportNonstrict(`mathVsTextUnits`,`LaTeX's `+r+` doesn't support mu units`)}return{type:`kern`,mode:n.mode,dimension:i.value}},htmlBuilder(e,t){return zg(e.dimension,t)},mathmlBuilder(e,t){return new g_(ph(e.dimension,t))}}),J({type:`lap`,names:[`\\mathllap`,`\\mathrlap`,`\\mathclap`],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:`lap`,mode:n.mode,alignment:r.slice(5),body:i}},htmlBuilder:(e,t)=>{var n;e.alignment===`clap`?(n=q([],[d_(e.body,t)]),n=q([`inner`],[n],t)):n=q([`inner`],[d_(e.body,t)]);var r=q([`fix`],[]),i=q([e.alignment],[n,r],t),a=q([`strut`]);return a.style.height=I(i.height+i.depth),i.depth&&(a.style.verticalAlign=I(-i.depth)),i.children.unshift(a),i=q([`thinbox`],[i],t),q([`mord`,`vbox`],[i],t)},mathmlBuilder:(e,t)=>{var n=new Y(`mpadded`,[E_(e.body,t)]);if(e.alignment!==`rlap`){var r=e.alignment===`llap`?`-1`:`-0.5`;n.setAttribute(`lspace`,r+`width`)}return n.setAttribute(`width`,`0px`),n}}),J({type:`styling`,names:[`\\(`,`$`],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:n,parser:r}=e,i=r.mode;r.switchMode(`math`);var a=n===`\\(`?`\\)`:`$`,o=r.parseExpression(!1,a);return r.expect(a),r.switchMode(i),{type:`styling`,mode:r.mode,style:`text`,resetFont:!0,body:o}}}),J({type:`text`,names:[`\\)`,`\\]`],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new P(`Mismatched `+e.funcName)}});var xy=(e,t)=>{switch(t.style.size){case F.DISPLAY.size:return e.display;case F.TEXT.size:return e.text;case F.SCRIPT.size:return e.script;case F.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};J({type:`mathchoice`,names:[`\\mathchoice`],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:n}=e;return{type:`mathchoice`,mode:n.mode,display:e_(t[0]),text:e_(t[1]),script:e_(t[2]),scriptscript:e_(t[3])}},htmlBuilder:(e,t)=>Fg(a_(xy(e,t),t,!1)),mathmlBuilder:(e,t)=>T_(xy(e,t),t)});var Sy=(e,t,n,r,i,a,o)=>{e=q([],[e]);var s=n&&Sm(n),c,l;if(t){var u=d_(t,r.havingStyle(i.sup()),r);l={elem:u,kern:Math.max(r.fontMetrics().bigOpSpacing1,r.fontMetrics().bigOpSpacing3-u.depth)}}if(n){var d=d_(n,r.havingStyle(i.sub()),r);c={elem:d,kern:Math.max(r.fontMetrics().bigOpSpacing2,r.fontMetrics().bigOpSpacing4-d.height)}}var f;if(l&&c)f=Rg({positionType:`bottom`,positionData:r.fontMetrics().bigOpSpacing5+c.elem.height+c.elem.depth+c.kern+e.depth+o,children:[{type:`kern`,size:r.fontMetrics().bigOpSpacing5},{type:`elem`,elem:c.elem,marginLeft:I(-a)},{type:`kern`,size:c.kern},{type:`elem`,elem:e},{type:`kern`,size:l.kern},{type:`elem`,elem:l.elem,marginLeft:I(a)},{type:`kern`,size:r.fontMetrics().bigOpSpacing5}]});else if(c)f=Rg({positionType:`top`,positionData:e.height-o,children:[{type:`kern`,size:r.fontMetrics().bigOpSpacing5},{type:`elem`,elem:c.elem,marginLeft:I(-a)},{type:`kern`,size:c.kern},{type:`elem`,elem:e}]});else if(l)f=Rg({positionType:`bottom`,positionData:e.depth+o,children:[{type:`elem`,elem:e},{type:`kern`,size:l.kern},{type:`elem`,elem:l.elem,marginLeft:I(a)},{type:`kern`,size:r.fontMetrics().bigOpSpacing5}]});else return e;var p=[f];if(c&&a!==0&&!s){var m=q([`mspace`],[],r);m.style.marginRight=I(a),p.unshift(m)}return q([`mop`,`op-limits`],p,r)},Cy=new Set([`\\smallint`]),wy=(e,t)=>{var n,r,i=!1,a;e.type===`supsub`?(n=e.sup,r=e.sub,a=X(e.base,`op`),i=!0):a=X(e,`op`);var o=t.style,s=!1;o.size===F.DISPLAY.size&&a.symbol&&!Cy.has(a.name)&&(s=!0);var c,l;if(a.symbol){var u=s?`Size2-Regular`:`Size1-Regular`,d=``;if((a.name===`\\oiint`||a.name===`\\oiiint`)&&(d=a.name.slice(1),a.name=d===`oiint`?`\\iint`:`\\iiint`),c=Tg(a.name,u,`math`,t,[`mop`,`op-symbol`,s?`large-op`:`small-op`]),l=c.italic,d.length>0){var f=Ug(d+`Size`+(s?`2`:`1`),t);c=Rg({positionType:`individualShift`,children:[{type:`elem`,elem:c,shift:0},{type:`elem`,elem:f,shift:s?.08:0}]}),a.name=`\\`+d,c.classes.unshift(`mop`),c.italic=l}}else if(a.body){var p=a_(a.body,t,!0);p.length===1&&p[0]instanceof wh?(c=p[0],c.classes[0]=`mop`):c=q([`mop`],p,t)}else{for(var m=[],h=1;h<a.name.length;h++)m.push(Eg(a.name[h],a.mode,t));c=q([`mop`],m,t)}var g=0,_=0;return(c instanceof wh||a.name===`\\oiint`||a.name===`\\oiiint`)&&!a.suppressBaseShift&&(g=(c.height-c.depth)/2-t.fontMetrics().axisHeight,_=c.italic??0),i?Sy(c,n,r,t,o,_,g):(g&&(c.style.position=`relative`,c.style.top=I(g)),c)},Ty=(e,t)=>{var n;if(e.symbol)n=new Y(`mo`,[y_(e.name,e.mode)]),Cy.has(e.name)&&n.setAttribute(`largeop`,`false`);else if(e.body)n=new Y(`mo`,w_(e.body,t));else{n=new Y(`mi`,[new h_(e.name.slice(1))]);var r=new Y(`mo`,[y_(``,`text`)]);n=e.parentIsSupSub?new Y(`mrow`,[n,r]):m_([n,r])}return n},Ey={"∏":`\\prod`,"∐":`\\coprod`,"∑":`\\sum`,"⋀":`\\bigwedge`,"⋁":`\\bigvee`,"⋂":`\\bigcap`,"⋃":`\\bigcup`,"⨀":`\\bigodot`,"⨁":`\\bigoplus`,"⨂":`\\bigotimes`,"⨄":`\\biguplus`,"⨆":`\\bigsqcup`};J({type:`op`,names:`\\coprod.\\bigvee.\\bigwedge.\\biguplus.\\bigcap.\\bigcup.\\intop.\\prod.\\sum.\\bigotimes.\\bigoplus.\\bigodot.\\bigsqcup.\\smallint.∏.∐.∑.⋀.⋁.⋂.⋃.⨀.⨁.⨂.⨄.⨆`.split(`.`),props:{numArgs:0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=r;return i.length===1&&(i=Ey[i]),{type:`op`,mode:n.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:i}},htmlBuilder:wy,mathmlBuilder:Ty}),J({type:`op`,names:[`\\mathop`],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:`op`,mode:n.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:e_(r)}},htmlBuilder:wy,mathmlBuilder:Ty});var Dy={"∫":`\\int`,"∬":`\\iint`,"∭":`\\iiint`,"∮":`\\oint`,"∯":`\\oiint`,"∰":`\\oiiint`};J({type:`op`,names:`\\arcsin.\\arccos.\\arctan.\\arctg.\\arcctg.\\arg.\\ch.\\cos.\\cosec.\\cosh.\\cot.\\cotg.\\coth.\\csc.\\ctg.\\cth.\\deg.\\dim.\\exp.\\hom.\\ker.\\lg.\\ln.\\log.\\sec.\\sin.\\sinh.\\sh.\\tan.\\tanh.\\tg.\\th`.split(`.`),props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:`op`,mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:wy,mathmlBuilder:Ty}),J({type:`op`,names:[`\\det`,`\\gcd`,`\\inf`,`\\lim`,`\\max`,`\\min`,`\\Pr`,`\\sup`],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:`op`,mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:wy,mathmlBuilder:Ty}),J({type:`op`,names:[`\\int`,`\\iint`,`\\iiint`,`\\oint`,`\\oiint`,`\\oiiint`,`∫`,`∬`,`∭`,`∮`,`∯`,`∰`],props:{numArgs:0,allowedInArgument:!0},handler(e){var{parser:t,funcName:n}=e,r=n;return r.length===1&&(r=Dy[r]),{type:`op`,mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:r}},htmlBuilder:wy,mathmlBuilder:Ty});var Oy=(e,t)=>{var n,r,i=!1,a;e.type===`supsub`?(n=e.sup,r=e.sub,a=X(e.base,`operatorname`),i=!0):a=X(e,`operatorname`);var o;if(a.body.length>0){for(var s=a_(a.body.map(e=>{var t=`text`in e?e.text:void 0;return typeof t==`string`?{type:`textord`,mode:e.mode,text:t}:e}),t.withFont(`mathrm`),!0),c=0;c<s.length;c++){var l=s[c];l instanceof wh&&(l.text=l.text.replace(/\u2212/,`-`).replace(/\u2217/,`*`))}o=q([`mop`],s,t)}else o=q([`mop`],[],t);return i?Sy(o,n,r,t,t.style,0,0):o};J({type:`operatorname`,names:[`\\operatorname@`,`\\operatornamewithlimits`],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:`operatorname`,mode:n.mode,body:e_(i),alwaysHandleSupSub:r===`\\operatornamewithlimits`,limits:!1,parentIsSupSub:!1}},htmlBuilder:Oy,mathmlBuilder:(e,t)=>{for(var n=w_(e.body,t.withFont(`mathrm`)),r=!0,i=0;i<n.length;i++){var a=n[i];if(!(a instanceof g_))if(a instanceof Y)switch(a.type){case`mi`:case`mn`:case`mspace`:case`mtext`:break;case`mo`:var o=a.children[0];a.children.length===1&&o instanceof h_?o.text=o.text.replace(/\u2212/,`-`).replace(/\u2217/,`*`):r=!1;break;default:r=!1}else r=!1}r&&(n=[new h_(n.map(e=>e.toText()).join(``))]);var s=new Y(`mi`,n);s.setAttribute(`mathvariant`,`normal`);var c=new Y(`mo`,[y_(``,`text`)]);return e.parentIsSupSub?new Y(`mrow`,[s,c]):m_([s,c])}}),Z(`\\operatorname`,`\\@ifstar\\operatornamewithlimits\\operatorname@`),Qg({type:`ordgroup`,htmlBuilder(e,t){return e.semisimple?Fg(a_(e.body,t,!1)):q([`mord`],a_(e.body,t,!0),t)},mathmlBuilder(e,t){return T_(e.body,t,!0)}}),J({type:`overline`,names:[`\\overline`],props:{numArgs:1},handler(e,t){var{parser:n}=e,r=t[0];return{type:`overline`,mode:n.mode,body:r}},htmlBuilder(e,t){var n=d_(e.body,t.havingCrampedStyle()),r=Ng(`overline-line`,t),i=t.fontMetrics().defaultRuleThickness;return q([`mord`,`overline`],[Rg({positionType:`firstBaseline`,children:[{type:`elem`,elem:n},{type:`kern`,size:3*i},{type:`elem`,elem:r},{type:`kern`,size:i}]})],t)},mathmlBuilder(e,t){var n=new Y(`mo`,[new h_(`‾`)]);n.setAttribute(`stretchy`,`true`);var r=new Y(`mover`,[E_(e.body,t),n]);return r.setAttribute(`accent`,`true`),r}}),J({type:`phantom`,names:[`\\phantom`],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:`phantom`,mode:n.mode,body:e_(r)}},htmlBuilder:(e,t)=>Fg(a_(e.body,t.withPhantom(),!1)),mathmlBuilder:(e,t)=>new Y(`mphantom`,w_(e.body,t))}),Z(`\\hphantom`,`\\smash{\\phantom{#1}}`),J({type:`vphantom`,names:[`\\vphantom`],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:`vphantom`,mode:n.mode,body:r}},htmlBuilder:(e,t)=>q([`mord`,`rlap`],[q([`inner`],[d_(e.body,t.withPhantom())]),q([`fix`],[])],t),mathmlBuilder:(e,t)=>{var n=new Y(`mpadded`,[new Y(`mphantom`,w_(e_(e.body),t))]);return n.setAttribute(`width`,`0px`),n}}),J({type:`raisebox`,names:[`\\raisebox`],props:{numArgs:2,argTypes:[`size`,`hbox`],allowedInText:!0},handler(e,t){var{parser:n}=e,r=X(t[0],`size`).value,i=t[1];return{type:`raisebox`,mode:n.mode,dy:r,body:i}},htmlBuilder(e,t){var n=d_(e.body,t);return Rg({positionType:`shift`,positionData:-ph(e.dy,t),children:[{type:`elem`,elem:n}]})},mathmlBuilder(e,t){var n=new Y(`mpadded`,[E_(e.body,t)]),r=e.dy.number+e.dy.unit;return n.setAttribute(`voffset`,r),n}}),J({type:`internal`,names:[`\\relax`],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(e){var{parser:t}=e;return{type:`internal`,mode:t.mode}}}),J({type:`rule`,names:[`\\rule`],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:[`size`,`size`,`size`]},handler(e,t,n){var{parser:r}=e,i=n[0],a=X(t[0],`size`),o=X(t[1],`size`);return{type:`rule`,mode:r.mode,shift:i&&X(i,`size`).value,width:a.value,height:o.value}},htmlBuilder(e,t){var n=q([`mord`,`rule`],[],t),r=ph(e.width,t),i=ph(e.height,t),a=e.shift?ph(e.shift,t):0;return n.style.borderRightWidth=I(r),n.style.borderTopWidth=I(i),n.style.bottom=I(a),n.width=r,n.height=i+a,n.depth=-a,n.maxFontSize=i*1.125*t.sizeMultiplier,n},mathmlBuilder(e,t){var n=ph(e.width,t),r=ph(e.height,t),i=e.shift?ph(e.shift,t):0,a=t.color&&t.getColor()||`black`,o=new Y(`mspace`);o.setAttribute(`mathbackground`,a),o.setAttribute(`width`,I(n)),o.setAttribute(`height`,I(r));var s=new Y(`mpadded`,[o]);return i>=0?s.setAttribute(`height`,I(i)):(s.setAttribute(`height`,I(i)),s.setAttribute(`depth`,I(-i))),s.setAttribute(`voffset`,I(i)),s}});function ky(e,t,n){for(var r=a_(e,t,!1),i=t.sizeMultiplier/n.sizeMultiplier,a=0;a<r.length;a++){var o=r[a].classes.indexOf(`sizing`);o<0?Array.prototype.push.apply(r[a].classes,t.sizingClasses(n)):r[a].classes[o+1]===`reset-size`+t.size&&(r[a].classes[o+1]=`reset-size`+n.size),r[a].height*=i,r[a].depth*=i}return Fg(r)}var Ay=[`\\tiny`,`\\sixptsize`,`\\scriptsize`,`\\footnotesize`,`\\small`,`\\normalsize`,`\\large`,`\\Large`,`\\LARGE`,`\\huge`,`\\Huge`];J({type:`sizing`,names:Ay,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{breakOnTokenText:n,funcName:r,parser:i}=e,a=i.parseExpression(!1,n);return{type:`sizing`,mode:i.mode,size:Ay.indexOf(r)+1,body:a}},htmlBuilder:(e,t)=>{var n=t.havingSize(e.size);return ky(e.body,n,t)},mathmlBuilder:(e,t)=>{var n=t.havingSize(e.size),r=new Y(`mstyle`,w_(e.body,n));return r.setAttribute(`mathsize`,I(n.sizeMultiplier)),r}}),J({type:`smash`,names:[`\\smash`],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,n)=>{var{parser:r}=e,i=!1,a=!1,o=n[0]&&X(n[0],`ordgroup`);if(o)for(var s,c=0;c<o.body.length;++c){var l=o.body[c];if(s=G_(l).text,s===`t`)i=!0;else if(s===`b`)a=!0;else{i=!1,a=!1;break}}else i=!0,a=!0;var u=t[0];return{type:`smash`,mode:r.mode,body:u,smashHeight:i,smashDepth:a}},htmlBuilder:(e,t)=>{var n=q([],[d_(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return n;if(e.smashHeight&&(n.height=0),e.smashDepth&&(n.depth=0),e.smashHeight&&e.smashDepth)return q([`mord`,`smash`],[n],t);if(n.children)for(var r=0;r<n.children.length;r++)e.smashHeight&&(n.children[r].height=0),e.smashDepth&&(n.children[r].depth=0);return q([`mord`],[Rg({positionType:`firstBaseline`,children:[{type:`elem`,elem:n}]})],t)},mathmlBuilder:(e,t)=>{var n=new Y(`mpadded`,[E_(e.body,t)]);return e.smashHeight&&n.setAttribute(`height`,`0px`),e.smashDepth&&n.setAttribute(`depth`,`0px`),n}}),J({type:`sqrt`,names:[`\\sqrt`],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:r}=e,i=n[0],a=t[0];return{type:`sqrt`,mode:r.mode,body:a,index:i}},htmlBuilder(e,t){var n=d_(e.body,t.havingCrampedStyle());n.height===0&&(n.height=t.fontMetrics().xHeight),n=Ig(n,t);var r=t.fontMetrics().defaultRuleThickness,i=r;t.style.id<F.TEXT.id&&(i=t.fontMetrics().xHeight);var a=r+i/4,{span:o,ruleWidth:s,advanceWidth:c}=kv(n.height+n.depth+a+r,t),l=o.height-s;l>n.height+n.depth+a&&(a=(a+l-n.height-n.depth)/2);var u=o.height-n.height-a-s;n.style.paddingLeft=I(c);var d=Rg({positionType:`firstBaseline`,children:[{type:`elem`,elem:n,wrapperClasses:[`svg-align`]},{type:`kern`,size:-(n.height+u)},{type:`elem`,elem:o},{type:`kern`,size:s}]});if(e.index){var f=t.havingStyle(F.SCRIPTSCRIPT),p=d_(e.index,f,t);return q([`mord`,`sqrt`],[q([`root`],[Rg({positionType:`shift`,positionData:-(.6*(d.height-d.depth)),children:[{type:`elem`,elem:p}]})]),d],t)}else return q([`mord`,`sqrt`],[d],t)},mathmlBuilder(e,t){var{body:n,index:r}=e;return r?new Y(`mroot`,[E_(n,t),E_(r,t)]):new Y(`msqrt`,[E_(n,t)])}});var jy={display:F.DISPLAY,text:F.TEXT,script:F.SCRIPT,scriptscript:F.SCRIPTSCRIPT};function My(e){return e in jy}J({type:`styling`,names:[`\\displaystyle`,`\\textstyle`,`\\scriptstyle`,`\\scriptscriptstyle`],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:n,funcName:r,parser:i}=e,a=i.parseExpression(!0,n),o=r.slice(1,r.length-5);if(!My(o))throw Error(`Unknown style: `+o);return{type:`styling`,mode:i.mode,style:o,body:a}},htmlBuilder(e,t){var n=jy[e.style],r=t.havingStyle(n);return e.resetFont&&(r=r.withFont(``)),ky(e.body,r,t)},mathmlBuilder(e,t){var n=jy[e.style],r=t.havingStyle(n);e.resetFont&&(r=r.withFont(``));var i=new Y(`mstyle`,w_(e.body,r)),a={display:[`0`,`true`],text:[`0`,`false`],script:[`1`,`false`],scriptscript:[`2`,`false`]}[e.style];return i.setAttribute(`scriptlevel`,a[0]),i.setAttribute(`displaystyle`,a[1]),i}});var Ny=function(e,t){var n=e.base;return n?n.type===`op`?n.limits&&(t.style.size===F.DISPLAY.size||n.alwaysHandleSupSub)?wy:null:n.type===`operatorname`?n.alwaysHandleSupSub&&(t.style.size===F.DISPLAY.size||n.limits)?Oy:null:n.type===`accent`?Sm(n.base)?J_:null:n.type===`horizBrace`&&!e.sub===n.isOver?yy:null:null};Qg({type:`supsub`,htmlBuilder(e,t){var n=Ny(e,t);if(n)return n(e,t);var{base:r,sup:i,sub:a}=e,o=d_(r,t),s,c,l=t.fontMetrics(),u=0,d=0,f=r&&Sm(r);if(i){var p=t.havingStyle(t.style.sup());s=d_(i,p,t),f||(u=o.height-p.fontMetrics().supDrop*p.sizeMultiplier/t.sizeMultiplier)}if(a){var m=t.havingStyle(t.style.sub());c=d_(a,m,t),f||(d=o.depth+m.fontMetrics().subDrop*m.sizeMultiplier/t.sizeMultiplier)}var h=t.style===F.DISPLAY?l.sup1:t.style.cramped?l.sup3:l.sup2,g=t.sizeMultiplier,_=I(.5/l.ptPerEm/g),v=null;if(c){var y=e.base&&e.base.type===`op`&&e.base.name&&(e.base.name===`\\oiint`||e.base.name===`\\oiiint`);(o instanceof wh||y)&&(v=I(-(o.italic??0)))}var b;if(s&&c){u=Math.max(u,h,s.depth+.25*l.xHeight),d=Math.max(d,l.sub2);var x=4*l.defaultRuleThickness;if(u-s.depth-(c.height-d)<x){d=x-(u-s.depth)+c.height;var S=.8*l.xHeight-(u-s.depth);S>0&&(u+=S,d-=S)}b=Rg({positionType:`individualShift`,children:[{type:`elem`,elem:c,shift:d,marginRight:_,marginLeft:v},{type:`elem`,elem:s,shift:-u,marginRight:_}]})}else if(c)d=Math.max(d,l.sub1,c.height-.8*l.xHeight),b=Rg({positionType:`shift`,positionData:d,children:[{type:`elem`,elem:c,marginLeft:v,marginRight:_}]});else if(s)u=Math.max(u,h,s.depth+.25*l.xHeight),b=Rg({positionType:`shift`,positionData:-u,children:[{type:`elem`,elem:s,marginRight:_}]});else throw Error(`supsub must have either sup or sub.`);return q([l_(o,`right`)||`mord`],[o,q([`msupsub`],[b])],t)},mathmlBuilder(e,t){var n=!1,r,i;e.base&&e.base.type===`horizBrace`&&(i=!!e.sup,i===e.base.isOver&&(n=!0,r=e.base.isOver)),e.base&&(e.base.type===`op`||e.base.type===`operatorname`)&&(e.base.parentIsSupSub=!0);var a=[E_(e.base,t)];e.sub&&a.push(E_(e.sub,t)),e.sup&&a.push(E_(e.sup,t));var o;if(n)o=r?`mover`:`munder`;else if(!e.sub){var s=e.base;o=s&&s.type===`op`&&s.limits&&(t.style===F.DISPLAY||s.alwaysHandleSupSub)||s&&s.type===`operatorname`&&s.alwaysHandleSupSub&&(s.limits||t.style===F.DISPLAY)?`mover`:`msup`}else if(e.sup){var c=e.base;o=c&&c.type===`op`&&c.limits&&t.style===F.DISPLAY||c&&c.type===`operatorname`&&c.alwaysHandleSupSub&&(t.style===F.DISPLAY||c.limits)?`munderover`:`msubsup`}else{var l=e.base;o=l&&l.type===`op`&&l.limits&&(t.style===F.DISPLAY||l.alwaysHandleSupSub)||l&&l.type===`operatorname`&&l.alwaysHandleSupSub&&(l.limits||t.style===F.DISPLAY)?`munder`:`msub`}return new Y(o,a)}}),Qg({type:`atom`,htmlBuilder(e,t){return Eg(e.text,e.mode,t,[`m`+e.family])},mathmlBuilder(e,t){var n=new Y(`mo`,[y_(e.text,e.mode)]);if(e.family===`bin`){var r=S_(e,t);r===`bold-italic`&&n.setAttribute(`mathvariant`,r)}else e.family===`punct`?n.setAttribute(`separator`,`true`):(e.family===`open`||e.family===`close`)&&n.setAttribute(`stretchy`,`false`);return n}});var Py={mi:`italic`,mn:`normal`,mtext:`normal`};Qg({type:`mathord`,htmlBuilder(e,t){return Og(e,t,`mathord`)},mathmlBuilder(e,t){var n=new Y(`mi`,[y_(e.text,e.mode,t)]),r=S_(e,t)||`italic`;return r!==Py[n.type]&&n.setAttribute(`mathvariant`,r),n}}),Qg({type:`textord`,htmlBuilder(e,t){return Og(e,t,`textord`)},mathmlBuilder(e,t){var n=y_(e.text,e.mode,t),r=S_(e,t)||`normal`,i=e.mode===`text`?new Y(`mtext`,[n]):/[0-9]/.test(e.text)?new Y(`mn`,[n]):e.text===`\\prime`?new Y(`mo`,[n]):new Y(`mi`,[n]);return r!==Py[i.type]&&i.setAttribute(`mathvariant`,r),i}});var Fy={"\\nobreak":`nobreak`,"\\allowbreak":`allowbreak`},Iy={" ":{},"\\ ":{},"~":{className:`nobreak`},"\\space":{},"\\nobreakspace":{className:`nobreak`}};Qg({type:`spacing`,htmlBuilder(e,t){if(Iy.hasOwnProperty(e.text)){var n=Iy[e.text].className||``;if(e.mode===`text`){var r=Og(e,t,`textord`);return r.classes.push(n),r}else return q([`mspace`,n],[Eg(e.text,e.mode,t)],t)}else if(Fy.hasOwnProperty(e.text))return q([`mspace`,Fy[e.text]],[],t);else throw new P(`Unknown type of space "`+e.text+`"`)},mathmlBuilder(e,t){var n;if(Iy.hasOwnProperty(e.text))n=new Y(`mtext`,[new h_(`\xA0`)]);else if(Fy.hasOwnProperty(e.text))return new Y(`mspace`);else throw new P(`Unknown type of space "`+e.text+`"`);return n}});var Ly=()=>{var e=new Y(`mtd`,[]);return e.setAttribute(`width`,`50%`),e};Qg({type:`tag`,mathmlBuilder(e,t){var n=new Y(`mtable`,[new Y(`mtr`,[Ly(),new Y(`mtd`,[T_(e.body,t)]),Ly(),new Y(`mtd`,[T_(e.tag,t)])])]);return n.setAttribute(`width`,`100%`),n}});var Ry={"\\text":void 0,"\\textrm":`textrm`,"\\textsf":`textsf`,"\\texttt":`texttt`,"\\textnormal":`textrm`},zy={"\\textbf":`textbf`,"\\textmd":`textmd`},By={"\\textit":`textit`,"\\textup":`textup`},Vy=(e,t)=>{var n=e.font;return n?Ry[n]?t.withTextFontFamily(Ry[n]):zy[n]?t.withTextFontWeight(zy[n]):n===`\\emph`?t.fontShape===`textit`?t.withTextFontShape(`textup`):t.withTextFontShape(`textit`):t.withTextFontShape(By[n]):t};J({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:n,funcName:r}=e,i=t[0];return{type:`text`,mode:n.mode,body:e_(i),font:r}},htmlBuilder(e,t){var n=Vy(e,t);return q([`mord`,`text`],a_(e.body,n,!0),n)},mathmlBuilder(e,t){var n=Vy(e,t);return T_(e.body,n)}}),J({type:`underline`,names:[`\\underline`],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:`underline`,mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=d_(e.body,t),r=Ng(`underline-line`,t),i=t.fontMetrics().defaultRuleThickness;return q([`mord`,`underline`],[Rg({positionType:`top`,positionData:n.height,children:[{type:`kern`,size:i},{type:`elem`,elem:r},{type:`kern`,size:3*i},{type:`elem`,elem:n}]})],t)},mathmlBuilder(e,t){var n=new Y(`mo`,[new h_(`‾`)]);n.setAttribute(`stretchy`,`true`);var r=new Y(`munder`,[E_(e.body,t),n]);return r.setAttribute(`accentunder`,`true`),r}}),J({type:`vcenter`,names:[`\\vcenter`],props:{numArgs:1,argTypes:[`original`],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:`vcenter`,mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=d_(e.body,t),r=t.fontMetrics().axisHeight;return Rg({positionType:`shift`,positionData:.5*(n.height-r-(n.depth+r)),children:[{type:`elem`,elem:n}]})},mathmlBuilder(e,t){return new Y(`mrow`,[new Y(`mpadded`,[E_(e.body,t)],[`vcenter`])])}}),J({type:`verb`,names:[`\\verb`],props:{numArgs:0,allowedInText:!0},handler(e,t,n){throw new P(`\\verb ended by end of line instead of matching delimiter`)},htmlBuilder(e,t){for(var n=Hy(e),r=[],i=t.havingStyle(t.style.text()),a=0;a<n.length;a++){var o=n[a];o===`~`&&(o=`\\textasciitilde`),r.push(Tg(o,`Typewriter-Regular`,e.mode,i,[`mord`,`texttt`]))}return q([`mord`,`text`].concat(i.sizingClasses(t)),Ag(r),i)},mathmlBuilder(e,t){var n=new Y(`mtext`,[new h_(Hy(e))]);return n.setAttribute(`mathvariant`,`monospace`),n}});var Hy=e=>e.body.replace(/ /g,e.star?`␣`:`\xA0`),Uy=Yg,Wy=`[ \r
|
|
409
|
-
]`,
|
|
407
|
+
-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw Error(`Unknown stretchy delimiter.`)}};function oh(e){return`toText`in e}var sh=class{constructor(e){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=e,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(e){return this.classes.includes(e)}toNode(){for(var e=document.createDocumentFragment(),t=0;t<this.children.length;t++)e.appendChild(this.children[t].toNode());return e}toMarkup(){for(var e=``,t=0;t<this.children.length;t++)e+=this.children[t].toMarkup();return e}toText(){return this.children.map(e=>{if(oh(e))return e.toText();throw Error(`Expected MathDomNode with toText, got `+e.constructor.name)}).join(``)}},ch={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},lh={ex:!0,em:!0,mu:!0},uh=function(e){return typeof e!=`string`&&(e=e.unit),e in ch||e in lh||e===`ex`},dh=function(e,t){var n;if(e.unit in ch)n=ch[e.unit]/t.fontMetrics().ptPerEm/t.sizeMultiplier;else if(e.unit===`mu`)n=t.fontMetrics().cssEmPerMu;else{var r=t.style.isTight()?t.havingStyle(t.style.text()):t;if(e.unit===`ex`)n=r.fontMetrics().xHeight;else if(e.unit===`em`)n=r.fontMetrics().quad;else throw new P(`Invalid unit: '`+e.unit+`'`);r!==t&&(n*=r.sizeMultiplier/t.sizeMultiplier)}return Math.min(e.number*n,t.maxSize)},I=function(e){return+e.toFixed(4)+`em`},fh=function(e){return e.filter(e=>e).join(` `)},ph=function(e){var t=``;for(var n of Object.keys(e)){var r=e[n];r!==void 0&&(t+=mm(n)+`:`+r+`;`)}return t},mh=function(e,t,n){if(this.classes=e||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=n||{},t){t.style.isTight()&&this.classes.push(`mtight`);var r=t.getColor();r&&(this.style.color=r)}},hh=function(e){var t=document.createElement(e);t.className=fh(this.classes),Object.assign(t.style,this.style);for(var n of Object.keys(this.attributes))t.setAttribute(n,this.attributes[n]);for(var r=0;r<this.children.length;r++)t.appendChild(this.children[r].toNode());return t},gh=/[\s"'>/=\x00-\x1f]/,_h=function(e){var t=`<`+e;this.classes.length&&(t+=` class="`+_m(fh(this.classes))+`"`);var n=ph(this.style);n&&(t+=` style="`+_m(n)+`"`);for(var r of Object.keys(this.attributes)){if(gh.test(r))throw new P(`Invalid attribute name '`+r+`'`);t+=` `+r+`="`+_m(this.attributes[r])+`"`}t+=`>`;for(var i=0;i<this.children.length;i++)t+=this.children[i].toMarkup();return t+=`</`+e+`>`,t},vh=class{constructor(e,t,n,r){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,this.italic=void 0,mh.call(this,e,n,r),this.children=t||[]}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return this.classes.includes(e)}toNode(){return hh.call(this,`span`)}toMarkup(){return _h.call(this,`span`)}},yh=class{constructor(e,t,n,r){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,mh.call(this,t,r),this.children=n||[],this.setAttribute(`href`,e)}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return this.classes.includes(e)}toNode(){return hh.call(this,`a`)}toMarkup(){return _h.call(this,`a`)}},bh=class{constructor(e,t,n){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=t,this.src=e,this.classes=[`mord`],this.height=0,this.depth=0,this.maxFontSize=0,this.style=n}hasClass(e){return this.classes.includes(e)}toNode(){var e=document.createElement(`img`);return e.src=this.src,e.alt=this.alt,e.className=`mord`,Object.assign(e.style,this.style),e}toMarkup(){var e=`<img src="`+_m(this.src)+`"`+(` alt="`+_m(this.alt)+`"`),t=ph(this.style);return t&&(e+=` style="`+_m(t)+`"`),e+=`'/>`,e}},xh={î:`ı̂`,ï:`ı̈`,í:`ı́`,ì:`ı̀`},Sh=class{constructor(e,t,n,r,i,a,o,s){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=e,this.height=t||0,this.depth=n||0,this.italic=r||0,this.skew=i||0,this.width=a||0,this.classes=o||[],this.style=s||{},this.maxFontSize=0;var c=Wm(this.text.charCodeAt(0));c&&this.classes.push(c+`_fallback`),/[îïíì]/.test(this.text)&&(this.text=xh[this.text])}hasClass(e){return this.classes.includes(e)}toNode(){var e=document.createTextNode(this.text),t=null;return this.italic>0&&(t=document.createElement(`span`),t.style.marginRight=I(this.italic)),this.classes.length>0&&(t||=document.createElement(`span`),t.className=fh(this.classes)),Object.keys(this.style).length>0&&(t||=document.createElement(`span`),Object.assign(t.style,this.style)),t?(t.appendChild(e),t):e}toMarkup(){var e=!1,t=`<span`;this.classes.length&&(e=!0,t+=` class="`,t+=_m(fh(this.classes)),t+=`"`);var n=``;this.italic>0&&(n+=`margin-right:`+I(this.italic)+`;`),n+=ph(this.style),n&&(e=!0,t+=` style="`+_m(n)+`"`);var r=_m(this.text);return e?(t+=`>`,t+=r,t+=`</span>`,t):r}},Ch=class{constructor(e,t){this.children=void 0,this.attributes=void 0,this.children=e||[],this.attributes=t||{}}toNode(){var e=document.createElementNS(`http://www.w3.org/2000/svg`,`svg`);for(var t of Object.keys(this.attributes))e.setAttribute(t,this.attributes[t]);for(var n=0;n<this.children.length;n++)e.appendChild(this.children[n].toNode());return e}toMarkup(){var e=`<svg xmlns="http://www.w3.org/2000/svg"`;for(var t of Object.keys(this.attributes))e+=` `+t+`="`+_m(this.attributes[t])+`"`;e+=`>`;for(var n=0;n<this.children.length;n++)e+=this.children[n].toMarkup();return e+=`</svg>`,e}},wh=class{constructor(e,t){this.pathName=void 0,this.alternate=void 0,this.pathName=e,this.alternate=t}toNode(){var e=document.createElementNS(`http://www.w3.org/2000/svg`,`path`);return this.alternate?e.setAttribute(`d`,this.alternate):e.setAttribute(`d`,ih[this.pathName]),e}toMarkup(){return this.alternate?`<path d="`+_m(this.alternate)+`"/>`:`<path d="`+_m(ih[this.pathName])+`"/>`}},Th=class{constructor(e){this.attributes=void 0,this.attributes=e||{}}toNode(){var e=document.createElementNS(`http://www.w3.org/2000/svg`,`line`);for(var t of Object.keys(this.attributes))e.setAttribute(t,this.attributes[t]);return e}toMarkup(){var e=`<line`;for(var t of Object.keys(this.attributes))e+=` `+t+`="`+_m(this.attributes[t])+`"`;return e+=`/>`,e}};function Eh(e){if(e instanceof Sh)return e;throw Error(`Expected symbolNode but got `+String(e)+`.`)}function Dh(e){if(e instanceof vh)return e;throw Error(`Expected span<HtmlDomNode> but got `+String(e)+`.`)}var Oh=e=>e instanceof vh||e instanceof yh||e instanceof sh,kh={"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]}},Ah={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]},jh={Å:`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 Mh(e,t){kh[e]=t}function Nh(e,t,n){if(!kh[t])throw Error(`Font metrics not found for font: `+t+`.`);var r=e.charCodeAt(0),i=kh[t][r];if(!i&&e[0]in jh&&(r=jh[e[0]].charCodeAt(0),i=kh[t][r]),!i&&n===`text`&&Km(r)&&(i=kh[t][77]),i)return{depth:i[0],height:i[1],italic:i[2],skew:i[3],width:i[4]}}var Ph={};function Fh(e){var t=e>=5?0:e>=3?1:2;if(!Ph[t]){var n=Ph[t]={cssEmPerMu:Ah.quad[t]/18};for(var r in Ah)Ah.hasOwnProperty(r)&&(n[r]=Ah[r][t])}return Ph[t]}var Ih={math:{},text:{}};function L(e,t,n,r,i,a){Ih[e][i]={font:t,group:n,replace:r},a&&r&&(Ih[e][r]=Ih[e][i])}var R=`math`,z=`text`,B=`main`,V=`ams`,Lh=`accent-token`,H=`bin`,Rh=`close`,zh=`inner`,U=`mathord`,Bh=`op-token`,Vh=`open`,Hh=`punct`,W=`rel`,Uh=`spacing`,G=`textord`;L(R,B,W,`≡`,`\\equiv`,!0),L(R,B,W,`≺`,`\\prec`,!0),L(R,B,W,`≻`,`\\succ`,!0),L(R,B,W,`∼`,`\\sim`,!0),L(R,B,W,`⊥`,`\\perp`),L(R,B,W,`⪯`,`\\preceq`,!0),L(R,B,W,`⪰`,`\\succeq`,!0),L(R,B,W,`≃`,`\\simeq`,!0),L(R,B,W,`∣`,`\\mid`,!0),L(R,B,W,`≪`,`\\ll`,!0),L(R,B,W,`≫`,`\\gg`,!0),L(R,B,W,`≍`,`\\asymp`,!0),L(R,B,W,`∥`,`\\parallel`),L(R,B,W,`⋈`,`\\bowtie`,!0),L(R,B,W,`⌣`,`\\smile`,!0),L(R,B,W,`⊑`,`\\sqsubseteq`,!0),L(R,B,W,`⊒`,`\\sqsupseteq`,!0),L(R,B,W,`≐`,`\\doteq`,!0),L(R,B,W,`⌢`,`\\frown`,!0),L(R,B,W,`∋`,`\\ni`,!0),L(R,B,W,`∝`,`\\propto`,!0),L(R,B,W,`⊢`,`\\vdash`,!0),L(R,B,W,`⊣`,`\\dashv`,!0),L(R,B,W,`∋`,`\\owns`),L(R,B,Hh,`.`,`\\ldotp`),L(R,B,Hh,`⋅`,`\\cdotp`),L(R,B,Hh,`⋅`,`·`),L(z,B,G,`⋅`,`·`),L(R,B,G,`#`,`\\#`),L(z,B,G,`#`,`\\#`),L(R,B,G,`&`,`\\&`),L(z,B,G,`&`,`\\&`),L(R,B,G,`ℵ`,`\\aleph`,!0),L(R,B,G,`∀`,`\\forall`,!0),L(R,B,G,`ℏ`,`\\hbar`,!0),L(R,B,G,`∃`,`\\exists`,!0),L(R,B,G,`∇`,`\\nabla`,!0),L(R,B,G,`♭`,`\\flat`,!0),L(R,B,G,`ℓ`,`\\ell`,!0),L(R,B,G,`♮`,`\\natural`,!0),L(R,B,G,`♣`,`\\clubsuit`,!0),L(R,B,G,`℘`,`\\wp`,!0),L(R,B,G,`♯`,`\\sharp`,!0),L(R,B,G,`♢`,`\\diamondsuit`,!0),L(R,B,G,`ℜ`,`\\Re`,!0),L(R,B,G,`♡`,`\\heartsuit`,!0),L(R,B,G,`ℑ`,`\\Im`,!0),L(R,B,G,`♠`,`\\spadesuit`,!0),L(R,B,G,`§`,`\\S`,!0),L(z,B,G,`§`,`\\S`),L(R,B,G,`¶`,`\\P`,!0),L(z,B,G,`¶`,`\\P`),L(R,B,G,`†`,`\\dag`),L(z,B,G,`†`,`\\dag`),L(z,B,G,`†`,`\\textdagger`),L(R,B,G,`‡`,`\\ddag`),L(z,B,G,`‡`,`\\ddag`),L(z,B,G,`‡`,`\\textdaggerdbl`),L(R,B,Rh,`⎱`,`\\rmoustache`,!0),L(R,B,Vh,`⎰`,`\\lmoustache`,!0),L(R,B,Rh,`⟯`,`\\rgroup`,!0),L(R,B,Vh,`⟮`,`\\lgroup`,!0),L(R,B,H,`∓`,`\\mp`,!0),L(R,B,H,`⊖`,`\\ominus`,!0),L(R,B,H,`⊎`,`\\uplus`,!0),L(R,B,H,`⊓`,`\\sqcap`,!0),L(R,B,H,`∗`,`\\ast`),L(R,B,H,`⊔`,`\\sqcup`,!0),L(R,B,H,`◯`,`\\bigcirc`,!0),L(R,B,H,`∙`,`\\bullet`,!0),L(R,B,H,`‡`,`\\ddagger`),L(R,B,H,`≀`,`\\wr`,!0),L(R,B,H,`⨿`,`\\amalg`),L(R,B,H,`&`,`\\And`),L(R,B,W,`⟵`,`\\longleftarrow`,!0),L(R,B,W,`⇐`,`\\Leftarrow`,!0),L(R,B,W,`⟸`,`\\Longleftarrow`,!0),L(R,B,W,`⟶`,`\\longrightarrow`,!0),L(R,B,W,`⇒`,`\\Rightarrow`,!0),L(R,B,W,`⟹`,`\\Longrightarrow`,!0),L(R,B,W,`↔`,`\\leftrightarrow`,!0),L(R,B,W,`⟷`,`\\longleftrightarrow`,!0),L(R,B,W,`⇔`,`\\Leftrightarrow`,!0),L(R,B,W,`⟺`,`\\Longleftrightarrow`,!0),L(R,B,W,`↦`,`\\mapsto`,!0),L(R,B,W,`⟼`,`\\longmapsto`,!0),L(R,B,W,`↗`,`\\nearrow`,!0),L(R,B,W,`↩`,`\\hookleftarrow`,!0),L(R,B,W,`↪`,`\\hookrightarrow`,!0),L(R,B,W,`↘`,`\\searrow`,!0),L(R,B,W,`↼`,`\\leftharpoonup`,!0),L(R,B,W,`⇀`,`\\rightharpoonup`,!0),L(R,B,W,`↙`,`\\swarrow`,!0),L(R,B,W,`↽`,`\\leftharpoondown`,!0),L(R,B,W,`⇁`,`\\rightharpoondown`,!0),L(R,B,W,`↖`,`\\nwarrow`,!0),L(R,B,W,`⇌`,`\\rightleftharpoons`,!0),L(R,V,W,`≮`,`\\nless`,!0),L(R,V,W,``,`\\@nleqslant`),L(R,V,W,``,`\\@nleqq`),L(R,V,W,`⪇`,`\\lneq`,!0),L(R,V,W,`≨`,`\\lneqq`,!0),L(R,V,W,``,`\\@lvertneqq`),L(R,V,W,`⋦`,`\\lnsim`,!0),L(R,V,W,`⪉`,`\\lnapprox`,!0),L(R,V,W,`⊀`,`\\nprec`,!0),L(R,V,W,`⋠`,`\\npreceq`,!0),L(R,V,W,`⋨`,`\\precnsim`,!0),L(R,V,W,`⪹`,`\\precnapprox`,!0),L(R,V,W,`≁`,`\\nsim`,!0),L(R,V,W,``,`\\@nshortmid`),L(R,V,W,`∤`,`\\nmid`,!0),L(R,V,W,`⊬`,`\\nvdash`,!0),L(R,V,W,`⊭`,`\\nvDash`,!0),L(R,V,W,`⋪`,`\\ntriangleleft`),L(R,V,W,`⋬`,`\\ntrianglelefteq`,!0),L(R,V,W,`⊊`,`\\subsetneq`,!0),L(R,V,W,``,`\\@varsubsetneq`),L(R,V,W,`⫋`,`\\subsetneqq`,!0),L(R,V,W,``,`\\@varsubsetneqq`),L(R,V,W,`≯`,`\\ngtr`,!0),L(R,V,W,``,`\\@ngeqslant`),L(R,V,W,``,`\\@ngeqq`),L(R,V,W,`⪈`,`\\gneq`,!0),L(R,V,W,`≩`,`\\gneqq`,!0),L(R,V,W,``,`\\@gvertneqq`),L(R,V,W,`⋧`,`\\gnsim`,!0),L(R,V,W,`⪊`,`\\gnapprox`,!0),L(R,V,W,`⊁`,`\\nsucc`,!0),L(R,V,W,`⋡`,`\\nsucceq`,!0),L(R,V,W,`⋩`,`\\succnsim`,!0),L(R,V,W,`⪺`,`\\succnapprox`,!0),L(R,V,W,`≆`,`\\ncong`,!0),L(R,V,W,``,`\\@nshortparallel`),L(R,V,W,`∦`,`\\nparallel`,!0),L(R,V,W,`⊯`,`\\nVDash`,!0),L(R,V,W,`⋫`,`\\ntriangleright`),L(R,V,W,`⋭`,`\\ntrianglerighteq`,!0),L(R,V,W,``,`\\@nsupseteqq`),L(R,V,W,`⊋`,`\\supsetneq`,!0),L(R,V,W,``,`\\@varsupsetneq`),L(R,V,W,`⫌`,`\\supsetneqq`,!0),L(R,V,W,``,`\\@varsupsetneqq`),L(R,V,W,`⊮`,`\\nVdash`,!0),L(R,V,W,`⪵`,`\\precneqq`,!0),L(R,V,W,`⪶`,`\\succneqq`,!0),L(R,V,W,``,`\\@nsubseteqq`),L(R,V,H,`⊴`,`\\unlhd`),L(R,V,H,`⊵`,`\\unrhd`),L(R,V,W,`↚`,`\\nleftarrow`,!0),L(R,V,W,`↛`,`\\nrightarrow`,!0),L(R,V,W,`⇍`,`\\nLeftarrow`,!0),L(R,V,W,`⇏`,`\\nRightarrow`,!0),L(R,V,W,`↮`,`\\nleftrightarrow`,!0),L(R,V,W,`⇎`,`\\nLeftrightarrow`,!0),L(R,V,W,`△`,`\\vartriangle`),L(R,V,G,`ℏ`,`\\hslash`),L(R,V,G,`▽`,`\\triangledown`),L(R,V,G,`◊`,`\\lozenge`),L(R,V,G,`Ⓢ`,`\\circledS`),L(R,V,G,`®`,`\\circledR`),L(z,V,G,`®`,`\\circledR`),L(R,V,G,`∡`,`\\measuredangle`,!0),L(R,V,G,`∄`,`\\nexists`),L(R,V,G,`℧`,`\\mho`),L(R,V,G,`Ⅎ`,`\\Finv`,!0),L(R,V,G,`⅁`,`\\Game`,!0),L(R,V,G,`‵`,`\\backprime`),L(R,V,G,`▲`,`\\blacktriangle`),L(R,V,G,`▼`,`\\blacktriangledown`),L(R,V,G,`■`,`\\blacksquare`),L(R,V,G,`⧫`,`\\blacklozenge`),L(R,V,G,`★`,`\\bigstar`),L(R,V,G,`∢`,`\\sphericalangle`,!0),L(R,V,G,`∁`,`\\complement`,!0),L(R,V,G,`ð`,`\\eth`,!0),L(z,B,G,`ð`,`ð`),L(R,V,G,`╱`,`\\diagup`),L(R,V,G,`╲`,`\\diagdown`),L(R,V,G,`□`,`\\square`),L(R,V,G,`□`,`\\Box`),L(R,V,G,`◊`,`\\Diamond`),L(R,V,G,`¥`,`\\yen`,!0),L(z,V,G,`¥`,`\\yen`,!0),L(R,V,G,`✓`,`\\checkmark`,!0),L(z,V,G,`✓`,`\\checkmark`),L(R,V,G,`ℶ`,`\\beth`,!0),L(R,V,G,`ℸ`,`\\daleth`,!0),L(R,V,G,`ℷ`,`\\gimel`,!0),L(R,V,G,`ϝ`,`\\digamma`,!0),L(R,V,G,`ϰ`,`\\varkappa`),L(R,V,Vh,`┌`,`\\@ulcorner`,!0),L(R,V,Rh,`┐`,`\\@urcorner`,!0),L(R,V,Vh,`└`,`\\@llcorner`,!0),L(R,V,Rh,`┘`,`\\@lrcorner`,!0),L(R,V,W,`≦`,`\\leqq`,!0),L(R,V,W,`⩽`,`\\leqslant`,!0),L(R,V,W,`⪕`,`\\eqslantless`,!0),L(R,V,W,`≲`,`\\lesssim`,!0),L(R,V,W,`⪅`,`\\lessapprox`,!0),L(R,V,W,`≊`,`\\approxeq`,!0),L(R,V,H,`⋖`,`\\lessdot`),L(R,V,W,`⋘`,`\\lll`,!0),L(R,V,W,`≶`,`\\lessgtr`,!0),L(R,V,W,`⋚`,`\\lesseqgtr`,!0),L(R,V,W,`⪋`,`\\lesseqqgtr`,!0),L(R,V,W,`≑`,`\\doteqdot`),L(R,V,W,`≓`,`\\risingdotseq`,!0),L(R,V,W,`≒`,`\\fallingdotseq`,!0),L(R,V,W,`∽`,`\\backsim`,!0),L(R,V,W,`⋍`,`\\backsimeq`,!0),L(R,V,W,`⫅`,`\\subseteqq`,!0),L(R,V,W,`⋐`,`\\Subset`,!0),L(R,V,W,`⊏`,`\\sqsubset`,!0),L(R,V,W,`≼`,`\\preccurlyeq`,!0),L(R,V,W,`⋞`,`\\curlyeqprec`,!0),L(R,V,W,`≾`,`\\precsim`,!0),L(R,V,W,`⪷`,`\\precapprox`,!0),L(R,V,W,`⊲`,`\\vartriangleleft`),L(R,V,W,`⊴`,`\\trianglelefteq`),L(R,V,W,`⊨`,`\\vDash`,!0),L(R,V,W,`⊪`,`\\Vvdash`,!0),L(R,V,W,`⌣`,`\\smallsmile`),L(R,V,W,`⌢`,`\\smallfrown`),L(R,V,W,`≏`,`\\bumpeq`,!0),L(R,V,W,`≎`,`\\Bumpeq`,!0),L(R,V,W,`≧`,`\\geqq`,!0),L(R,V,W,`⩾`,`\\geqslant`,!0),L(R,V,W,`⪖`,`\\eqslantgtr`,!0),L(R,V,W,`≳`,`\\gtrsim`,!0),L(R,V,W,`⪆`,`\\gtrapprox`,!0),L(R,V,H,`⋗`,`\\gtrdot`),L(R,V,W,`⋙`,`\\ggg`,!0),L(R,V,W,`≷`,`\\gtrless`,!0),L(R,V,W,`⋛`,`\\gtreqless`,!0),L(R,V,W,`⪌`,`\\gtreqqless`,!0),L(R,V,W,`≖`,`\\eqcirc`,!0),L(R,V,W,`≗`,`\\circeq`,!0),L(R,V,W,`≜`,`\\triangleq`,!0),L(R,V,W,`∼`,`\\thicksim`),L(R,V,W,`≈`,`\\thickapprox`),L(R,V,W,`⫆`,`\\supseteqq`,!0),L(R,V,W,`⋑`,`\\Supset`,!0),L(R,V,W,`⊐`,`\\sqsupset`,!0),L(R,V,W,`≽`,`\\succcurlyeq`,!0),L(R,V,W,`⋟`,`\\curlyeqsucc`,!0),L(R,V,W,`≿`,`\\succsim`,!0),L(R,V,W,`⪸`,`\\succapprox`,!0),L(R,V,W,`⊳`,`\\vartriangleright`),L(R,V,W,`⊵`,`\\trianglerighteq`),L(R,V,W,`⊩`,`\\Vdash`,!0),L(R,V,W,`∣`,`\\shortmid`),L(R,V,W,`∥`,`\\shortparallel`),L(R,V,W,`≬`,`\\between`,!0),L(R,V,W,`⋔`,`\\pitchfork`,!0),L(R,V,W,`∝`,`\\varpropto`),L(R,V,W,`◀`,`\\blacktriangleleft`),L(R,V,W,`∴`,`\\therefore`,!0),L(R,V,W,`∍`,`\\backepsilon`),L(R,V,W,`▶`,`\\blacktriangleright`),L(R,V,W,`∵`,`\\because`,!0),L(R,V,W,`⋘`,`\\llless`),L(R,V,W,`⋙`,`\\gggtr`),L(R,V,H,`⊲`,`\\lhd`),L(R,V,H,`⊳`,`\\rhd`),L(R,V,W,`≂`,`\\eqsim`,!0),L(R,B,W,`⋈`,`\\Join`),L(R,V,W,`≑`,`\\Doteq`,!0),L(R,V,H,`∔`,`\\dotplus`,!0),L(R,V,H,`∖`,`\\smallsetminus`),L(R,V,H,`⋒`,`\\Cap`,!0),L(R,V,H,`⋓`,`\\Cup`,!0),L(R,V,H,`⩞`,`\\doublebarwedge`,!0),L(R,V,H,`⊟`,`\\boxminus`,!0),L(R,V,H,`⊞`,`\\boxplus`,!0),L(R,V,H,`⋇`,`\\divideontimes`,!0),L(R,V,H,`⋉`,`\\ltimes`,!0),L(R,V,H,`⋊`,`\\rtimes`,!0),L(R,V,H,`⋋`,`\\leftthreetimes`,!0),L(R,V,H,`⋌`,`\\rightthreetimes`,!0),L(R,V,H,`⋏`,`\\curlywedge`,!0),L(R,V,H,`⋎`,`\\curlyvee`,!0),L(R,V,H,`⊝`,`\\circleddash`,!0),L(R,V,H,`⊛`,`\\circledast`,!0),L(R,V,H,`⋅`,`\\centerdot`),L(R,V,H,`⊺`,`\\intercal`,!0),L(R,V,H,`⋒`,`\\doublecap`),L(R,V,H,`⋓`,`\\doublecup`),L(R,V,H,`⊠`,`\\boxtimes`,!0),L(R,V,W,`⇢`,`\\dashrightarrow`,!0),L(R,V,W,`⇠`,`\\dashleftarrow`,!0),L(R,V,W,`⇇`,`\\leftleftarrows`,!0),L(R,V,W,`⇆`,`\\leftrightarrows`,!0),L(R,V,W,`⇚`,`\\Lleftarrow`,!0),L(R,V,W,`↞`,`\\twoheadleftarrow`,!0),L(R,V,W,`↢`,`\\leftarrowtail`,!0),L(R,V,W,`↫`,`\\looparrowleft`,!0),L(R,V,W,`⇋`,`\\leftrightharpoons`,!0),L(R,V,W,`↶`,`\\curvearrowleft`,!0),L(R,V,W,`↺`,`\\circlearrowleft`,!0),L(R,V,W,`↰`,`\\Lsh`,!0),L(R,V,W,`⇈`,`\\upuparrows`,!0),L(R,V,W,`↿`,`\\upharpoonleft`,!0),L(R,V,W,`⇃`,`\\downharpoonleft`,!0),L(R,B,W,`⊶`,`\\origof`,!0),L(R,B,W,`⊷`,`\\imageof`,!0),L(R,V,W,`⊸`,`\\multimap`,!0),L(R,V,W,`↭`,`\\leftrightsquigarrow`,!0),L(R,V,W,`⇉`,`\\rightrightarrows`,!0),L(R,V,W,`⇄`,`\\rightleftarrows`,!0),L(R,V,W,`↠`,`\\twoheadrightarrow`,!0),L(R,V,W,`↣`,`\\rightarrowtail`,!0),L(R,V,W,`↬`,`\\looparrowright`,!0),L(R,V,W,`↷`,`\\curvearrowright`,!0),L(R,V,W,`↻`,`\\circlearrowright`,!0),L(R,V,W,`↱`,`\\Rsh`,!0),L(R,V,W,`⇊`,`\\downdownarrows`,!0),L(R,V,W,`↾`,`\\upharpoonright`,!0),L(R,V,W,`⇂`,`\\downharpoonright`,!0),L(R,V,W,`⇝`,`\\rightsquigarrow`,!0),L(R,V,W,`⇝`,`\\leadsto`),L(R,V,W,`⇛`,`\\Rrightarrow`,!0),L(R,V,W,`↾`,`\\restriction`),L(R,B,G,`‘`,"`"),L(R,B,G,`$`,`\\$`),L(z,B,G,`$`,`\\$`),L(z,B,G,`$`,`\\textdollar`),L(R,B,G,`%`,`\\%`),L(z,B,G,`%`,`\\%`),L(R,B,G,`_`,`\\_`),L(z,B,G,`_`,`\\_`),L(z,B,G,`_`,`\\textunderscore`),L(R,B,G,`∠`,`\\angle`,!0),L(R,B,G,`∞`,`\\infty`,!0),L(R,B,G,`′`,`\\prime`),L(R,B,G,`△`,`\\triangle`),L(R,B,G,`Γ`,`\\Gamma`,!0),L(R,B,G,`Δ`,`\\Delta`,!0),L(R,B,G,`Θ`,`\\Theta`,!0),L(R,B,G,`Λ`,`\\Lambda`,!0),L(R,B,G,`Ξ`,`\\Xi`,!0),L(R,B,G,`Π`,`\\Pi`,!0),L(R,B,G,`Σ`,`\\Sigma`,!0),L(R,B,G,`Υ`,`\\Upsilon`,!0),L(R,B,G,`Φ`,`\\Phi`,!0),L(R,B,G,`Ψ`,`\\Psi`,!0),L(R,B,G,`Ω`,`\\Omega`,!0),L(R,B,G,`A`,`Α`),L(R,B,G,`B`,`Β`),L(R,B,G,`E`,`Ε`),L(R,B,G,`Z`,`Ζ`),L(R,B,G,`H`,`Η`),L(R,B,G,`I`,`Ι`),L(R,B,G,`K`,`Κ`),L(R,B,G,`M`,`Μ`),L(R,B,G,`N`,`Ν`),L(R,B,G,`O`,`Ο`),L(R,B,G,`P`,`Ρ`),L(R,B,G,`T`,`Τ`),L(R,B,G,`X`,`Χ`),L(R,B,G,`¬`,`\\neg`,!0),L(R,B,G,`¬`,`\\lnot`),L(R,B,G,`⊤`,`\\top`),L(R,B,G,`⊥`,`\\bot`),L(R,B,G,`∅`,`\\emptyset`),L(R,V,G,`∅`,`\\varnothing`),L(R,B,U,`α`,`\\alpha`,!0),L(R,B,U,`β`,`\\beta`,!0),L(R,B,U,`γ`,`\\gamma`,!0),L(R,B,U,`δ`,`\\delta`,!0),L(R,B,U,`ϵ`,`\\epsilon`,!0),L(R,B,U,`ζ`,`\\zeta`,!0),L(R,B,U,`η`,`\\eta`,!0),L(R,B,U,`θ`,`\\theta`,!0),L(R,B,U,`ι`,`\\iota`,!0),L(R,B,U,`κ`,`\\kappa`,!0),L(R,B,U,`λ`,`\\lambda`,!0),L(R,B,U,`μ`,`\\mu`,!0),L(R,B,U,`ν`,`\\nu`,!0),L(R,B,U,`ξ`,`\\xi`,!0),L(R,B,U,`ο`,`\\omicron`,!0),L(R,B,U,`π`,`\\pi`,!0),L(R,B,U,`ρ`,`\\rho`,!0),L(R,B,U,`σ`,`\\sigma`,!0),L(R,B,U,`τ`,`\\tau`,!0),L(R,B,U,`υ`,`\\upsilon`,!0),L(R,B,U,`ϕ`,`\\phi`,!0),L(R,B,U,`χ`,`\\chi`,!0),L(R,B,U,`ψ`,`\\psi`,!0),L(R,B,U,`ω`,`\\omega`,!0),L(R,B,U,`ε`,`\\varepsilon`,!0),L(R,B,U,`ϑ`,`\\vartheta`,!0),L(R,B,U,`ϖ`,`\\varpi`,!0),L(R,B,U,`ϱ`,`\\varrho`,!0),L(R,B,U,`ς`,`\\varsigma`,!0),L(R,B,U,`φ`,`\\varphi`,!0),L(R,B,H,`∗`,`*`,!0),L(R,B,H,`+`,`+`),L(R,B,H,`−`,`-`,!0),L(R,B,H,`⋅`,`\\cdot`,!0),L(R,B,H,`∘`,`\\circ`,!0),L(R,B,H,`÷`,`\\div`,!0),L(R,B,H,`±`,`\\pm`,!0),L(R,B,H,`×`,`\\times`,!0),L(R,B,H,`∩`,`\\cap`,!0),L(R,B,H,`∪`,`\\cup`,!0),L(R,B,H,`∖`,`\\setminus`,!0),L(R,B,H,`∧`,`\\land`),L(R,B,H,`∨`,`\\lor`),L(R,B,H,`∧`,`\\wedge`,!0),L(R,B,H,`∨`,`\\vee`,!0),L(R,B,G,`√`,`\\surd`),L(R,B,Vh,`⟨`,`\\langle`,!0),L(R,B,Vh,`∣`,`\\lvert`),L(R,B,Vh,`∥`,`\\lVert`),L(R,B,Rh,`?`,`?`),L(R,B,Rh,`!`,`!`),L(R,B,Rh,`⟩`,`\\rangle`,!0),L(R,B,Rh,`∣`,`\\rvert`),L(R,B,Rh,`∥`,`\\rVert`),L(R,B,W,`=`,`=`),L(R,B,W,`:`,`:`),L(R,B,W,`≈`,`\\approx`,!0),L(R,B,W,`≅`,`\\cong`,!0),L(R,B,W,`≥`,`\\ge`),L(R,B,W,`≥`,`\\geq`,!0),L(R,B,W,`←`,`\\gets`),L(R,B,W,`>`,`\\gt`,!0),L(R,B,W,`∈`,`\\in`,!0),L(R,B,W,``,`\\@not`),L(R,B,W,`⊂`,`\\subset`,!0),L(R,B,W,`⊃`,`\\supset`,!0),L(R,B,W,`⊆`,`\\subseteq`,!0),L(R,B,W,`⊇`,`\\supseteq`,!0),L(R,V,W,`⊈`,`\\nsubseteq`,!0),L(R,V,W,`⊉`,`\\nsupseteq`,!0),L(R,B,W,`⊨`,`\\models`),L(R,B,W,`←`,`\\leftarrow`,!0),L(R,B,W,`≤`,`\\le`),L(R,B,W,`≤`,`\\leq`,!0),L(R,B,W,`<`,`\\lt`,!0),L(R,B,W,`→`,`\\rightarrow`,!0),L(R,B,W,`→`,`\\to`),L(R,V,W,`≱`,`\\ngeq`,!0),L(R,V,W,`≰`,`\\nleq`,!0),L(R,B,Uh,`\xA0`,`\\ `),L(R,B,Uh,`\xA0`,`\\space`),L(R,B,Uh,`\xA0`,`\\nobreakspace`),L(z,B,Uh,`\xA0`,`\\ `),L(z,B,Uh,`\xA0`,` `),L(z,B,Uh,`\xA0`,`\\space`),L(z,B,Uh,`\xA0`,`\\nobreakspace`),L(R,B,Uh,``,`\\nobreak`),L(R,B,Uh,``,`\\allowbreak`),L(R,B,Hh,`,`,`,`),L(R,B,Hh,`;`,`;`),L(R,V,H,`⊼`,`\\barwedge`,!0),L(R,V,H,`⊻`,`\\veebar`,!0),L(R,B,H,`⊙`,`\\odot`,!0),L(R,B,H,`⊕`,`\\oplus`,!0),L(R,B,H,`⊗`,`\\otimes`,!0),L(R,B,G,`∂`,`\\partial`,!0),L(R,B,H,`⊘`,`\\oslash`,!0),L(R,V,H,`⊚`,`\\circledcirc`,!0),L(R,V,H,`⊡`,`\\boxdot`,!0),L(R,B,H,`△`,`\\bigtriangleup`),L(R,B,H,`▽`,`\\bigtriangledown`),L(R,B,H,`†`,`\\dagger`),L(R,B,H,`⋄`,`\\diamond`),L(R,B,H,`⋆`,`\\star`),L(R,B,H,`◃`,`\\triangleleft`),L(R,B,H,`▹`,`\\triangleright`),L(R,B,Vh,`{`,`\\{`),L(z,B,G,`{`,`\\{`),L(z,B,G,`{`,`\\textbraceleft`),L(R,B,Rh,`}`,`\\}`),L(z,B,G,`}`,`\\}`),L(z,B,G,`}`,`\\textbraceright`),L(R,B,Vh,`{`,`\\lbrace`),L(R,B,Rh,`}`,`\\rbrace`),L(R,B,Vh,`[`,`\\lbrack`,!0),L(z,B,G,`[`,`\\lbrack`,!0),L(R,B,Rh,`]`,`\\rbrack`,!0),L(z,B,G,`]`,`\\rbrack`,!0),L(R,B,Vh,`(`,`\\lparen`,!0),L(R,B,Rh,`)`,`\\rparen`,!0),L(z,B,G,`<`,`\\textless`,!0),L(z,B,G,`>`,`\\textgreater`,!0),L(R,B,Vh,`⌊`,`\\lfloor`,!0),L(R,B,Rh,`⌋`,`\\rfloor`,!0),L(R,B,Vh,`⌈`,`\\lceil`,!0),L(R,B,Rh,`⌉`,`\\rceil`,!0),L(R,B,G,`\\`,`\\backslash`),L(R,B,G,`∣`,`|`),L(R,B,G,`∣`,`\\vert`),L(z,B,G,`|`,`\\textbar`,!0),L(R,B,G,`∥`,`\\|`),L(R,B,G,`∥`,`\\Vert`),L(z,B,G,`∥`,`\\textbardbl`),L(z,B,G,`~`,`\\textasciitilde`),L(z,B,G,`\\`,`\\textbackslash`),L(z,B,G,`^`,`\\textasciicircum`),L(R,B,W,`↑`,`\\uparrow`,!0),L(R,B,W,`⇑`,`\\Uparrow`,!0),L(R,B,W,`↓`,`\\downarrow`,!0),L(R,B,W,`⇓`,`\\Downarrow`,!0),L(R,B,W,`↕`,`\\updownarrow`,!0),L(R,B,W,`⇕`,`\\Updownarrow`,!0),L(R,B,Bh,`∐`,`\\coprod`),L(R,B,Bh,`⋁`,`\\bigvee`),L(R,B,Bh,`⋀`,`\\bigwedge`),L(R,B,Bh,`⨄`,`\\biguplus`),L(R,B,Bh,`⋂`,`\\bigcap`),L(R,B,Bh,`⋃`,`\\bigcup`),L(R,B,Bh,`∫`,`\\int`),L(R,B,Bh,`∫`,`\\intop`),L(R,B,Bh,`∬`,`\\iint`),L(R,B,Bh,`∭`,`\\iiint`),L(R,B,Bh,`∏`,`\\prod`),L(R,B,Bh,`∑`,`\\sum`),L(R,B,Bh,`⨂`,`\\bigotimes`),L(R,B,Bh,`⨁`,`\\bigoplus`),L(R,B,Bh,`⨀`,`\\bigodot`),L(R,B,Bh,`∮`,`\\oint`),L(R,B,Bh,`∯`,`\\oiint`),L(R,B,Bh,`∰`,`\\oiiint`),L(R,B,Bh,`⨆`,`\\bigsqcup`),L(R,B,Bh,`∫`,`\\smallint`),L(z,B,zh,`…`,`\\textellipsis`),L(R,B,zh,`…`,`\\mathellipsis`),L(z,B,zh,`…`,`\\ldots`,!0),L(R,B,zh,`…`,`\\ldots`,!0),L(R,B,zh,`⋯`,`\\@cdots`,!0),L(R,B,zh,`⋱`,`\\ddots`,!0),L(R,B,G,`⋮`,`\\varvdots`),L(z,B,G,`⋮`,`\\varvdots`),L(R,B,Lh,`ˊ`,`\\acute`),L(R,B,Lh,`ˋ`,`\\grave`),L(R,B,Lh,`¨`,`\\ddot`),L(R,B,Lh,`~`,`\\tilde`),L(R,B,Lh,`ˉ`,`\\bar`),L(R,B,Lh,`˘`,`\\breve`),L(R,B,Lh,`ˇ`,`\\check`),L(R,B,Lh,`^`,`\\hat`),L(R,B,Lh,`⃗`,`\\vec`),L(R,B,Lh,`˙`,`\\dot`),L(R,B,Lh,`˚`,`\\mathring`),L(R,B,U,``,`\\@imath`),L(R,B,U,``,`\\@jmath`),L(R,B,G,`ı`,`ı`),L(R,B,G,`ȷ`,`ȷ`),L(z,B,G,`ı`,`\\i`,!0),L(z,B,G,`ȷ`,`\\j`,!0),L(z,B,G,`ß`,`\\ss`,!0),L(z,B,G,`æ`,`\\ae`,!0),L(z,B,G,`œ`,`\\oe`,!0),L(z,B,G,`ø`,`\\o`,!0),L(z,B,G,`Æ`,`\\AE`,!0),L(z,B,G,`Œ`,`\\OE`,!0),L(z,B,G,`Ø`,`\\O`,!0),L(z,B,Lh,`ˊ`,`\\'`),L(z,B,Lh,`ˋ`,"\\`"),L(z,B,Lh,`ˆ`,`\\^`),L(z,B,Lh,`˜`,`\\~`),L(z,B,Lh,`ˉ`,`\\=`),L(z,B,Lh,`˘`,`\\u`),L(z,B,Lh,`˙`,`\\.`),L(z,B,Lh,`¸`,`\\c`),L(z,B,Lh,`˚`,`\\r`),L(z,B,Lh,`ˇ`,`\\v`),L(z,B,Lh,`¨`,`\\"`),L(z,B,Lh,`˝`,`\\H`),L(z,B,Lh,`◯`,`\\textcircled`);var Wh={"--":!0,"---":!0,"``":!0,"''":!0};L(z,B,G,`–`,`--`,!0),L(z,B,G,`–`,`\\textendash`),L(z,B,G,`—`,`---`,!0),L(z,B,G,`—`,`\\textemdash`),L(z,B,G,`‘`,"`",!0),L(z,B,G,`‘`,`\\textquoteleft`),L(z,B,G,`’`,`'`,!0),L(z,B,G,`’`,`\\textquoteright`),L(z,B,G,`“`,"``",!0),L(z,B,G,`“`,`\\textquotedblleft`),L(z,B,G,`”`,`''`,!0),L(z,B,G,`”`,`\\textquotedblright`),L(R,B,G,`°`,`\\degree`,!0),L(z,B,G,`°`,`\\degree`),L(z,B,G,`°`,`\\textdegree`,!0),L(R,B,G,`£`,`\\pounds`),L(R,B,G,`£`,`\\mathsterling`,!0),L(z,B,G,`£`,`\\pounds`),L(z,B,G,`£`,`\\textsterling`,!0),L(R,V,G,`✠`,`\\maltese`),L(z,V,G,`✠`,`\\maltese`);for(var Gh=`0123456789/@."`,Kh=0;Kh<Gh.length;Kh++){var qh=Gh.charAt(Kh);L(R,B,G,qh,qh)}for(var Jh=`0123456789!@*()-=+";:?/.,`,Yh=0;Yh<Jh.length;Yh++){var Xh=Jh.charAt(Yh);L(z,B,G,Xh,Xh)}for(var Zh=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz`,Qh=0;Qh<Zh.length;Qh++){var $h=Zh.charAt(Qh);L(R,B,U,$h,$h),L(z,B,G,$h,$h)}L(R,V,G,`C`,`ℂ`),L(z,V,G,`C`,`ℂ`),L(R,V,G,`H`,`ℍ`),L(z,V,G,`H`,`ℍ`),L(R,V,G,`N`,`ℕ`),L(z,V,G,`N`,`ℕ`),L(R,V,G,`P`,`ℙ`),L(z,V,G,`P`,`ℙ`),L(R,V,G,`Q`,`ℚ`),L(z,V,G,`Q`,`ℚ`),L(R,V,G,`R`,`ℝ`),L(z,V,G,`R`,`ℝ`),L(R,V,G,`Z`,`ℤ`),L(z,V,G,`Z`,`ℤ`),L(R,B,U,`h`,`ℎ`),L(z,B,U,`h`,`ℎ`);for(var K,eg=0;eg<Zh.length;eg++){var tg=Zh.charAt(eg);K=String.fromCharCode(55349,56320+eg),L(R,B,U,tg,K),L(z,B,G,tg,K),K=String.fromCharCode(55349,56372+eg),L(R,B,U,tg,K),L(z,B,G,tg,K),K=String.fromCharCode(55349,56424+eg),L(R,B,U,tg,K),L(z,B,G,tg,K),K=String.fromCharCode(55349,56580+eg),L(R,B,U,tg,K),L(z,B,G,tg,K),K=String.fromCharCode(55349,56684+eg),L(R,B,U,tg,K),L(z,B,G,tg,K),K=String.fromCharCode(55349,56736+eg),L(R,B,U,tg,K),L(z,B,G,tg,K),K=String.fromCharCode(55349,56788+eg),L(R,B,U,tg,K),L(z,B,G,tg,K),K=String.fromCharCode(55349,56840+eg),L(R,B,U,tg,K),L(z,B,G,tg,K),K=String.fromCharCode(55349,56944+eg),L(R,B,U,tg,K),L(z,B,G,tg,K),eg<26&&(K=String.fromCharCode(55349,56632+eg),L(R,B,U,tg,K),L(z,B,G,tg,K),K=String.fromCharCode(55349,56476+eg),L(R,B,U,tg,K),L(z,B,G,tg,K))}K=String.fromCharCode(55349,56668),L(R,B,U,`k`,K),L(z,B,G,`k`,K);for(var ng=0;ng<10;ng++){var rg=ng.toString();K=String.fromCharCode(55349,57294+ng),L(R,B,U,rg,K),L(z,B,G,rg,K),K=String.fromCharCode(55349,57314+ng),L(R,B,U,rg,K),L(z,B,G,rg,K),K=String.fromCharCode(55349,57324+ng),L(R,B,U,rg,K),L(z,B,G,rg,K),K=String.fromCharCode(55349,57334+ng),L(R,B,U,rg,K),L(z,B,G,rg,K)}for(var ig=`ÐÞþ`,ag=0;ag<ig.length;ag++){var og=ig.charAt(ag);L(R,B,U,og,og),L(z,B,G,og,og)}var sg={mathClass:`mathbf`,textClass:`textbf`,font:`Main-Bold`},cg={mathClass:`mathnormal`,textClass:`textit`,font:`Math-Italic`},lg={mathClass:`boldsymbol`,textClass:`boldsymbol`,font:`Main-BoldItalic`},ug={mathClass:`mathscr`,textClass:`textscr`,font:`Script-Regular`},dg={mathClass:``,textClass:``,font:``},fg={mathClass:`mathfrak`,textClass:`textfrak`,font:`Fraktur-Regular`},pg={mathClass:`mathbb`,textClass:`textbb`,font:`AMS-Regular`},mg={mathClass:`mathboldfrak`,textClass:`textboldfrak`,font:`Fraktur-Regular`},hg={mathClass:`mathsf`,textClass:`textsf`,font:`SansSerif-Regular`},gg={mathClass:`mathboldsf`,textClass:`textboldsf`,font:`SansSerif-Bold`},_g={mathClass:`mathitsf`,textClass:`textitsf`,font:`SansSerif-Italic`},vg={mathClass:`mathtt`,textClass:`texttt`,font:`Typewriter-Regular`},yg=[sg,sg,cg,cg,lg,lg,ug,dg,dg,dg,fg,fg,pg,pg,mg,mg,hg,hg,gg,gg,_g,_g,dg,dg,vg,vg],bg=[sg,dg,hg,gg,vg],xg=e=>{var t=e.charCodeAt(0),n=e.charCodeAt(1),r=(t-55296)*1024+(n-56320)+65536;if(119808<=r&&r<120484)return yg[Math.floor((r-119808)/26)];if(120782<=r&&r<=120831)return bg[Math.floor((r-120782)/10)];if(r===120485||r===120486)return yg[0];if(120486<r&&r<120782)return dg;throw new P(`Unsupported character: `+e)},Sg=function(e,t,n){if(Ih[n][e]){var r=Ih[n][e].replace;r&&(e=r)}return{value:e,metrics:Nh(e,t,n)}},Cg=function(e,t,n,r,i){var a=Sg(e,t,n),o=a.metrics;e=a.value;var s;if(o){var c=o.italic;(n===`text`||r&&r.font===`mathit`)&&(c=0),s=new Sh(e,o.height,o.depth,c,o.skew,o.width,i)}else typeof console<`u`&&console.warn(`No character metrics `+(`for '`+e+`' in style '`+t+`' and mode '`+n+`'`)),s=new Sh(e,0,0,0,0,0,i);if(r){s.maxFontSize=r.sizeMultiplier,r.style.isTight()&&s.classes.push(`mtight`);var l=r.getColor();l&&(s.style.color=l)}return s},wg=function(e,t,n,r){return r===void 0&&(r=[]),n.font===`boldsymbol`&&Sg(e,`Main-Bold`,t).metrics?Cg(e,`Main-Bold`,t,n,r.concat([`mathbf`])):e===`\\`||Ih[t][e].font===`main`?Cg(e,`Main-Regular`,t,n,r):Cg(e,`AMS-Regular`,t,n,r.concat([`amsrm`]))},Tg=function(e,t,n){return n!==`textord`&&Sg(e,`Math-BoldItalic`,t).metrics?{fontName:`Math-BoldItalic`,fontClass:`boldsymbol`}:{fontName:`Main-Bold`,fontClass:`mathbf`}},Eg=function(e,t,n){var r=e.mode,i=e.text,a=[`mord`],{font:o,fontFamily:s,fontWeight:c,fontShape:l}=t,u=r===`math`||r===`text`&&!!o,d=u?o:s,f=``,p=``;if(i.charCodeAt(0)===55349){var m=xg(i);f=m.font,p=m[r+`Class`]}if(f)return Cg(i,f,r,t,a.concat(p));if(d){var h,g;if(d===`boldsymbol`){var _=Tg(i,r,n);h=_.fontName,g=[_.fontClass]}else u?(h=zg[o].fontName,g=[o]):(h=Rg(s,c,l),g=[s,c,l]);if(Sg(i,h,r).metrics)return Cg(i,h,r,t,a.concat(g));if(Wh.hasOwnProperty(i)&&h.slice(0,10)===`Typewriter`){for(var v=[],y=0;y<i.length;y++)v.push(Cg(i[y],h,r,t,a.concat(g)));return Ng(v)}}if(n===`mathord`)return Cg(i,`Math-Italic`,r,t,a.concat([`mathnormal`]));if(n===`textord`){var b=Ih[r][i]&&Ih[r][i].font;if(b===`ams`)return Cg(i,Rg(`amsrm`,c,l),r,t,a.concat(`amsrm`,c,l));if(b===`main`||!b)return Cg(i,Rg(`textrm`,c,l),r,t,a.concat(c,l));var x=Rg(b,c,l);return Cg(i,x,r,t,a.concat(x,c,l))}else throw Error(`unexpected type: `+n+` in makeOrd`)},Dg=(e,t)=>{if(fh(e.classes)!==fh(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize||e.italic!==0&&e.hasClass(`mathnormal`))return!1;if(e.classes.length===1){var n=e.classes[0];if(n===`mbin`||n===`mord`)return!1}for(var r of Object.keys(e.style))if(e.style[r]!==t.style[r])return!1;for(var i of Object.keys(t.style))if(e.style[i]!==t.style[i])return!1;return!0},Og=e=>{for(var t=0;t<e.length-1;t++){var n=e[t],r=e[t+1];n instanceof Sh&&r instanceof Sh&&Dg(n,r)&&(n.text+=r.text,n.height=Math.max(n.height,r.height),n.depth=Math.max(n.depth,r.depth),n.italic=r.italic,e.splice(t+1,1),t--)}return e},kg=function(e){for(var t=0,n=0,r=0,i=0;i<e.children.length;i++){var a=e.children[i];a.height>t&&(t=a.height),a.depth>n&&(n=a.depth),a.maxFontSize>r&&(r=a.maxFontSize)}e.height=t,e.depth=n,e.maxFontSize=r},q=function(e,t,n,r){var i=new vh(e,t,n,r);return kg(i),i},Ag=(e,t,n,r)=>new vh(e,t,n,r),jg=function(e,t,n){var r=q([e],[],t);return r.height=Math.max(n||t.fontMetrics().defaultRuleThickness,t.minRuleThickness),r.style.borderBottomWidth=I(r.height),r.maxFontSize=1,r},Mg=function(e,t,n,r){var i=new yh(e,t,n,r);return kg(i),i},Ng=function(e){var t=new sh(e);return kg(t),t},Pg=function(e,t){return e instanceof sh?q([],[e],t):e},Fg=function(e){if(e.positionType===`individualShift`){for(var t=e.children,n=[t[0]],r=-t[0].shift-t[0].elem.depth,i=r,a=1;a<t.length;a++){var o=-t[a].shift-i-t[a].elem.depth,s=o-(t[a-1].elem.height+t[a-1].elem.depth);i+=o,n.push({type:`kern`,size:s}),n.push(t[a])}return{children:n,depth:r}}var c;if(e.positionType===`top`){for(var l=e.positionData,u=0;u<e.children.length;u++){var d=e.children[u];l-=d.type===`kern`?d.size:d.elem.height+d.elem.depth}c=l}else if(e.positionType===`bottom`)c=-e.positionData;else{var f=e.children[0];if(f.type!==`elem`)throw Error(`First child must have type "elem".`);if(e.positionType===`shift`)c=-f.elem.depth-e.positionData;else if(e.positionType===`firstBaseline`)c=-f.elem.depth;else throw Error(`Invalid positionType `+e.positionType+`.`)}return{children:e.children,depth:c}},Ig=function(e,t){for(var{children:n,depth:r}=Fg(e),i=0,a=0;a<n.length;a++){var o=n[a];if(o.type===`elem`){var s=o.elem;i=Math.max(i,s.maxFontSize,s.height)}}i+=2;var c=q([`pstrut`],[]);c.style.height=I(i);for(var l=[],u=r,d=r,f=r,p=0;p<n.length;p++){var m=n[p];if(m.type===`kern`)f+=m.size;else{var h=m.elem,g=m.wrapperClasses||[],_=m.wrapperStyle||{},v=q(g,[c,h],void 0,_);v.style.top=I(-i-f-h.depth),m.marginLeft&&(v.style.marginLeft=m.marginLeft),m.marginRight&&(v.style.marginRight=m.marginRight),l.push(v),f+=h.height+h.depth}u=Math.min(u,f),d=Math.max(d,f)}var y=q([`vlist`],l);y.style.height=I(d);var b;if(u<0){var x=q([`vlist`],[q([],[])]);x.style.height=I(-u),b=[q([`vlist-r`],[y,q([`vlist-s`],[new Sh(``)])]),q([`vlist-r`],[x])]}else b=[q([`vlist-r`],[y])];var S=q([`vlist-t`],b);return b.length===2&&S.classes.push(`vlist-t2`),S.height=d,S.depth=-u,S},Lg=(e,t)=>{var n=q([`mspace`],[],t),r=dh(e,t);return n.style.marginRight=I(r),n},Rg=(e,t,n)=>{var r,i;switch(e){case`amsrm`:r=`AMS`;break;case`textrm`:r=`Main`;break;case`textsf`:r=`SansSerif`;break;case`texttt`:r=`Typewriter`;break;default:r=e}return i=t===`textbf`&&n===`textit`?`BoldItalic`:t===`textbf`?`Bold`:n===`textit`?`Italic`:`Regular`,r+`-`+i},zg={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`}},Bg={vec:[`vec`,.471,.714],oiintSize1:[`oiintSize1`,.957,.499],oiintSize2:[`oiintSize2`,1.472,.659],oiiintSize1:[`oiiintSize1`,1.304,.499],oiiintSize2:[`oiiintSize2`,1.98,.659]},Vg=function(e,t){var[n,r,i]=Bg[e],a=Ag([`overlay`],[new Ch([new wh(n)],{width:I(r),height:I(i),style:`width:`+I(r),viewBox:`0 0 `+1e3*r+` `+1e3*i,preserveAspectRatio:`xMinYMin`})],t);return a.height=i,a.style.height=I(i),a.style.width=I(r),a},Hg={number:3,unit:`mu`},Ug={number:4,unit:`mu`},Wg={number:5,unit:`mu`},Gg={mord:{mop:Hg,mbin:Ug,mrel:Wg,minner:Hg},mop:{mord:Hg,mop:Hg,mrel:Wg,minner:Hg},mbin:{mord:Ug,mop:Ug,mopen:Ug,minner:Ug},mrel:{mord:Wg,mop:Wg,mopen:Wg,minner:Wg},mopen:{},mclose:{mop:Hg,mbin:Ug,mrel:Wg,minner:Hg},mpunct:{mord:Hg,mop:Hg,mrel:Wg,mopen:Hg,mclose:Hg,mpunct:Hg,minner:Hg},minner:{mord:Hg,mop:Hg,mbin:Ug,mrel:Wg,mopen:Hg,mpunct:Hg,minner:Hg}},Kg={mord:{mop:Hg},mop:{mord:Hg,mop:Hg},mbin:{},mrel:{},mopen:{},mclose:{mop:Hg},mpunct:{},minner:{mop:Hg}},qg={},Jg={},Yg={};function J(e){for(var{type:t,names:n,props:r,handler:i,htmlBuilder:a,mathmlBuilder:o}=e,s={type:t,numArgs:r.numArgs,argTypes:r.argTypes,allowedInArgument:!!r.allowedInArgument,allowedInText:!!r.allowedInText,allowedInMath:r.allowedInMath===void 0?!0:r.allowedInMath,numOptionalArgs:r.numOptionalArgs||0,infix:!!r.infix,primitive:!!r.primitive,handler:i},c=0;c<n.length;++c)qg[n[c]]=s;t&&(a&&(Jg[t]=a),o&&(Yg[t]=o))}function Xg(e){var{type:t,htmlBuilder:n,mathmlBuilder:r}=e;J({type:t,names:[],props:{numArgs:0},handler(){throw Error(`Should never be called.`)},htmlBuilder:n,mathmlBuilder:r})}var Zg=function(e){return e.type===`ordgroup`&&e.body.length===1?e.body[0]:e},Qg=function(e){return e.type===`ordgroup`?e.body:[e]},$g=new Set([`leftmost`,`mbin`,`mopen`,`mrel`,`mop`,`mpunct`]),e_=new Set([`rightmost`,`mrel`,`mclose`,`mpunct`]),t_={display:F.DISPLAY,text:F.TEXT,script:F.SCRIPT,scriptscript:F.SCRIPTSCRIPT},n_={mord:`mord`,mop:`mop`,mbin:`mbin`,mrel:`mrel`,mopen:`mopen`,mclose:`mclose`,mpunct:`mpunct`,minner:`minner`},r_=function(e,t,n,r){r===void 0&&(r=[null,null]);for(var i=[],a=0;a<e.length;a++){var o=l_(e[a],t);if(o instanceof sh){var s=o.children;i.push(...s)}else i.push(o)}if(Og(i),!n)return i;var c=t;if(e.length===1){var l=e[0];l.type===`sizing`?c=t.havingSize(l.size):l.type===`styling`&&(c=t.havingStyle(t_[l.style]))}var u=q([r[0]||`leftmost`],[],t),d=q([r[1]||`rightmost`],[],t),f=n===`root`;return i_(i,(e,t)=>{var n=t.classes[0],r=e.classes[0];n===`mbin`&&e_.has(r)?t.classes[0]=`mord`:r===`mbin`&&$g.has(n)&&(e.classes[0]=`mord`)},{node:u},d,f),i_(i,(e,t)=>{var n=s_(t),r=s_(e),i=n&&r?e.hasClass(`mtight`)?Kg[n]?.[r]:Gg[n]?.[r]:null;if(i)return Lg(i,c)},{node:u},d,f),i},i_=function(e,t,n,r,i){r&&e.push(r);for(var a=0;a<e.length;a++){var o=e[a],s=a_(o);if(s){i_(s.children,t,n,null,i);continue}var c=!o.hasClass(`mspace`);if(c){var l=t(o,n.node);l&&(n.insertAfter?n.insertAfter(l):(e.unshift(l),a++))}c?n.node=o:i&&o.hasClass(`newline`)&&(n.node=q([`leftmost`])),n.insertAfter=(t=>n=>{e.splice(t+1,0,n),a++})(a)}r&&e.pop()},a_=function(e){return e instanceof sh||e instanceof yh||e instanceof vh&&e.hasClass(`enclosing`)?e:null},o_=function(e,t){var n=a_(e);if(n){var r=n.children;if(r.length){if(t===`right`)return o_(r[r.length-1],`right`);if(t===`left`)return o_(r[0],`left`)}}return e},s_=function(e,t){return e?(t&&(e=o_(e,t)),n_[e.classes[0]]||null):null},c_=function(e,t){var n=[`nulldelimiter`].concat(e.baseSizingClasses());return q(t.concat(n))},l_=function(e,t,n){if(!e)return q();if(Jg[e.type]){var r=Jg[e.type](e,t);if(n&&t.size!==n.size){r=q(t.sizingClasses(n),[r],t);var i=t.sizeMultiplier/n.sizeMultiplier;r.height*=i,r.depth*=i}return r}else throw new P(`Got group of unknown type: '`+e.type+`'`)};function u_(e,t){var n=q([`base`],e,t),r=q([`strut`]);return r.style.height=I(n.height+n.depth),n.depth&&(r.style.verticalAlign=I(-n.depth)),n.children.unshift(r),n}function d_(e,t){var n=null;e.length===1&&e[0].type===`tag`&&(n=e[0].tag,e=e[0].body);var r=r_(e,t,`root`),i;r.length===2&&r[1].hasClass(`tag`)&&(i=r.pop());for(var a=[],o=[],s=0;s<r.length;s++)if(o.push(r[s]),r[s].hasClass(`mbin`)||r[s].hasClass(`mrel`)||r[s].hasClass(`allowbreak`)){for(var c=!1;s<r.length-1&&r[s+1].hasClass(`mspace`)&&!r[s+1].hasClass(`newline`);)s++,o.push(r[s]),r[s].hasClass(`nobreak`)&&(c=!0);c||(a.push(u_(o,t)),o=[])}else r[s].hasClass(`newline`)&&(o.pop(),o.length>0&&(a.push(u_(o,t)),o=[]),a.push(r[s]));o.length>0&&a.push(u_(o,t));var l;n?(l=u_(r_(n,t,!0),t),l.classes=[`tag`],a.push(l)):i&&a.push(i);var u=q([`katex-html`],a);if(u.setAttribute(`aria-hidden`,`true`),l){var d=l.children[0];d.style.height=I(u.height+u.depth),u.depth&&(d.style.verticalAlign=I(-u.depth))}return u}function f_(e){return new sh(e)}var Y=class{constructor(e,t,n){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=e,this.attributes={},this.children=t||[],this.classes=n||[]}setAttribute(e,t){this.attributes[e]=t}getAttribute(e){return this.attributes[e]}toNode(){var e=document.createElementNS(`http://www.w3.org/1998/Math/MathML`,this.type);for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);this.classes.length>0&&(e.className=fh(this.classes));for(var n=0;n<this.children.length;n++)if(this.children[n]instanceof p_&&this.children[n+1]instanceof p_){for(var r=this.children[n].toText()+this.children[++n].toText();this.children[n+1]instanceof p_;)r+=this.children[++n].toText();e.appendChild(new p_(r).toNode())}else e.appendChild(this.children[n].toNode());return e}toMarkup(){var e=`<`+this.type;for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&(e+=` `+t+`="`,e+=_m(this.attributes[t]),e+=`"`);this.classes.length>0&&(e+=` class ="`+_m(fh(this.classes))+`"`),e+=`>`;for(var n=0;n<this.children.length;n++)e+=this.children[n].toMarkup();return e+=`</`+this.type+`>`,e}toText(){return this.children.map(e=>e.toText()).join(``)}},p_=class{constructor(e){this.text=void 0,this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return _m(this.toText())}toText(){return this.text}},m_=class{constructor(e){this.width=void 0,this.character=void 0,this.width=e,e>=.05555&&e<=.05556?this.character=` `:e>=.1666&&e<=.1667?this.character=` `:e>=.2222&&e<=.2223?this.character=` `:e>=.2777&&e<=.2778?this.character=` `:e>=-.05556&&e<=-.05555?this.character=` `:e>=-.1667&&e<=-.1666?this.character=` `:e>=-.2223&&e<=-.2222?this.character=` `:e>=-.2778&&e<=-.2777?this.character=` `:this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var e=document.createElementNS(`http://www.w3.org/1998/Math/MathML`,`mspace`);return e.setAttribute(`width`,I(this.width)),e}toMarkup(){return this.character?`<mtext>`+this.character+`</mtext>`:`<mspace width="`+I(this.width)+`"/>`}toText(){return this.character?this.character:` `}},h_=new Set([`\\imath`,`\\jmath`]),g_=new Set([`mrow`,`mtable`]),__=function(e,t,n){return Ih[t][e]&&Ih[t][e].replace&&e.charCodeAt(0)!==55349&&!(Wh.hasOwnProperty(e)&&n&&(n.fontFamily&&n.fontFamily.slice(4,6)===`tt`||n.font&&n.font.slice(4,6)===`tt`))&&(e=Ih[t][e].replace),new p_(e)},v_=function(e){return e.length===1?e[0]:new Y(`mrow`,e)},y_={mathit:`italic`,boldsymbol:e=>e.type===`textord`?`bold`:`bold-italic`,mathbf:`bold`,mathbb:`double-struck`,mathsfit:`sans-serif-italic`,mathfrak:`fraktur`,mathscr:`script`,mathcal:`script`,mathsf:`sans-serif`,mathtt:`monospace`},b_=(e,t)=>{if(e.mode===`text`){if(t.fontFamily===`texttt`)return`monospace`;if(t.fontFamily===`textsf`)return t.fontShape===`textit`&&t.fontWeight===`textbf`?`sans-serif-bold-italic`:t.fontShape===`textit`?`sans-serif-italic`:t.fontWeight===`textbf`?`bold-sans-serif`:`sans-serif`;if(t.fontShape===`textit`&&t.fontWeight===`textbf`)return`bold-italic`;if(t.fontShape===`textit`)return`italic`;if(t.fontWeight===`textbf`)return`bold`}var n=t.font;if(!n||n===`mathnormal`)return null;var r=e.mode,i=y_[n];if(i)return typeof i==`function`?i(e):i;var a=e.text;if(h_.has(a))return null;if(Ih[r][a]){var o=Ih[r][a].replace;o&&(a=o)}var s=zg[n].fontName;return Nh(a,s,r)?zg[n].variant:null};function x_(e){if(!e)return!1;if(e.type===`mi`&&e.children.length===1){var t=e.children[0];return t instanceof p_&&t.text===`.`}else if(e.type===`mo`&&e.children.length===1&&e.getAttribute(`separator`)===`true`&&e.getAttribute(`lspace`)===`0em`&&e.getAttribute(`rspace`)===`0em`){var n=e.children[0];return n instanceof p_&&n.text===`,`}else return!1}var S_=function(e,t,n){if(e.length===1){var r=w_(e[0],t);return n&&r instanceof Y&&r.type===`mo`&&(r.setAttribute(`lspace`,`0em`),r.setAttribute(`rspace`,`0em`)),[r]}for(var i=[],a,o=0;o<e.length;o++){var s=w_(e[o],t);if(s instanceof Y&&a instanceof Y){if(s.type===`mtext`&&a.type===`mtext`&&s.getAttribute(`mathvariant`)===a.getAttribute(`mathvariant`)){a.children.push(...s.children);continue}else if(s.type===`mn`&&a.type===`mn`){a.children.push(...s.children);continue}else if(x_(s)&&a.type===`mn`){a.children.push(...s.children);continue}else if(s.type===`mn`&&x_(a))s.children=[...a.children,...s.children],i.pop();else if((s.type===`msup`||s.type===`msub`)&&s.children.length>=1&&(a.type===`mn`||x_(a))){var c=s.children[0];c instanceof Y&&c.type===`mn`&&(c.children=[...a.children,...c.children],i.pop())}else if(a.type===`mi`&&a.children.length===1){var l=a.children[0];if(l instanceof p_&&l.text===`̸`&&(s.type===`mo`||s.type===`mi`||s.type===`mn`)){var u=s.children[0];u instanceof p_&&u.text.length>0&&(u.text=u.text.slice(0,1)+`̸`+u.text.slice(1),i.pop())}}}i.push(s),a=s}return i},C_=function(e,t,n){return v_(S_(e,t,n))},w_=function(e,t){if(!e)return new Y(`mrow`);if(Yg[e.type])return Yg[e.type](e,t);throw new P(`Got group of unknown type: '`+e.type+`'`)};function T_(e,t,n,r,i){var a=S_(e,n),o=a.length===1&&a[0]instanceof Y&&g_.has(a[0].type)?a[0]:new Y(`mrow`,a),s=new Y(`annotation`,[new p_(t)]);s.setAttribute(`encoding`,`application/x-tex`);var c=new Y(`math`,[new Y(`semantics`,[o,s])]);return c.setAttribute(`xmlns`,`http://www.w3.org/1998/Math/MathML`),r&&c.setAttribute(`display`,`block`),q([i?`katex`:`katex-mathml`],[c])}var E_=[[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]],D_=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],O_=function(e,t){return t.size<2?e:E_[e-1][t.size-1]},k_=class e{constructor(t){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=t.style,this.color=t.color,this.size=t.size||e.BASESIZE,this.textSize=t.textSize||this.size,this.phantom=!!t.phantom,this.font=t.font||``,this.fontFamily=t.fontFamily||``,this.fontWeight=t.fontWeight||``,this.fontShape=t.fontShape||``,this.sizeMultiplier=D_[this.size-1],this.maxSize=t.maxSize,this.minRuleThickness=t.minRuleThickness,this._fontMetrics=void 0}extend(t){var n={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};return Object.assign(n,t),new e(n)}havingStyle(e){return this.style===e?this:this.extend({style:e,size:O_(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:D_[e-1]})}havingBaseStyle(t){t||=this.style.text();var n=O_(e.BASESIZE,t);return this.size===n&&this.textSize===e.BASESIZE&&this.style===t?this:this.extend({style:t,size:n})}havingBaseSizing(){var e;switch(this.style.id){case 4:case 5:e=3;break;case 6:case 7:e=1;break;default:e=6}return this.extend({style:this.style.text(),size:e})}withColor(e){return this.extend({color:e})}withPhantom(){return this.extend({phantom:!0})}withFont(e){return this.extend({font:e})}withTextFontFamily(e){return this.extend({fontFamily:e,font:``})}withTextFontWeight(e){return this.extend({fontWeight:e,font:``})}withTextFontShape(e){return this.extend({fontShape:e,font:``})}sizingClasses(e){return e.size===this.size?[]:[`sizing`,`reset-size`+e.size,`size`+this.size]}baseSizingClasses(){return this.size===e.BASESIZE?[]:[`sizing`,`reset-size`+this.size,`size`+e.BASESIZE]}fontMetrics(){return this._fontMetrics||=Fh(this.size),this._fontMetrics}getColor(){return this.phantom?`transparent`:this.color}};k_.BASESIZE=6;var A_=function(e){return new k_({style:e.displayMode?F.DISPLAY:F.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness})},j_=function(e,t){if(t.displayMode){var n=[`katex-display`];t.leqno&&n.push(`leqno`),t.fleqn&&n.push(`fleqn`),e=q(n,[e])}return e},M_=function(e,t,n){var r=A_(n),i;return n.output===`mathml`?T_(e,t,r,n.displayMode,!0):(i=n.output===`html`?q([`katex`],[d_(e,r)]):q([`katex`],[T_(e,t,r,n.displayMode,!1),d_(e,r)]),j_(i,n))},N_=function(e,t,n){return j_(q([`katex`],[d_(e,A_(n))]),n)},P_={widehat:`^`,widecheck:`ˇ`,widetilde:`~`,utilde:`~`,overleftarrow:`←`,underleftarrow:`←`,xleftarrow:`←`,overrightarrow:`→`,underrightarrow:`→`,xrightarrow:`→`,underbrace:`⏟`,overbrace:`⏞`,underbracket:`⎵`,overbracket:`⎴`,overgroup:`⏠`,undergroup:`⏡`,overleftrightarrow:`↔`,underleftrightarrow:`↔`,xleftrightarrow:`↔`,Overrightarrow:`⇒`,xRightarrow:`⇒`,overleftharpoon:`↼`,xleftharpoonup:`↼`,overrightharpoon:`⇀`,xrightharpoonup:`⇀`,xLeftarrow:`⇐`,xLeftrightarrow:`⇔`,xhookleftarrow:`↩`,xhookrightarrow:`↪`,xmapsto:`↦`,xrightharpoondown:`⇁`,xleftharpoondown:`↽`,xrightleftharpoons:`⇌`,xleftrightharpoons:`⇋`,xtwoheadleftarrow:`↞`,xtwoheadrightarrow:`↠`,xlongequal:`=`,xtofrom:`⇄`,xrightleftarrows:`⇄`,xrightequilibrium:`⇌`,xleftequilibrium:`⇋`,"\\cdrightarrow":`→`,"\\cdleftarrow":`←`,"\\cdlongequal":`=`},F_=function(e){var t=new Y(`mo`,[new p_(P_[e.replace(/^\\/,``)])]);return t.setAttribute(`stretchy`,`true`),t},I_={overrightarrow:[[`rightarrow`],.888,522,`xMaxYMin`],overleftarrow:[[`leftarrow`],.888,522,`xMinYMin`],underrightarrow:[[`rightarrow`],.888,522,`xMaxYMin`],underleftarrow:[[`leftarrow`],.888,522,`xMinYMin`],xrightarrow:[[`rightarrow`],1.469,522,`xMaxYMin`],"\\cdrightarrow":[[`rightarrow`],3,522,`xMaxYMin`],xleftarrow:[[`leftarrow`],1.469,522,`xMinYMin`],"\\cdleftarrow":[[`leftarrow`],3,522,`xMinYMin`],Overrightarrow:[[`doublerightarrow`],.888,560,`xMaxYMin`],xRightarrow:[[`doublerightarrow`],1.526,560,`xMaxYMin`],xLeftarrow:[[`doubleleftarrow`],1.526,560,`xMinYMin`],overleftharpoon:[[`leftharpoon`],.888,522,`xMinYMin`],xleftharpoonup:[[`leftharpoon`],.888,522,`xMinYMin`],xleftharpoondown:[[`leftharpoondown`],.888,522,`xMinYMin`],overrightharpoon:[[`rightharpoon`],.888,522,`xMaxYMin`],xrightharpoonup:[[`rightharpoon`],.888,522,`xMaxYMin`],xrightharpoondown:[[`rightharpoondown`],.888,522,`xMaxYMin`],xlongequal:[[`longequal`],.888,334,`xMinYMin`],"\\cdlongequal":[[`longequal`],3,334,`xMinYMin`],xtwoheadleftarrow:[[`twoheadleftarrow`],.888,334,`xMinYMin`],xtwoheadrightarrow:[[`twoheadrightarrow`],.888,334,`xMaxYMin`],overleftrightarrow:[[`leftarrow`,`rightarrow`],.888,522],overbrace:[[`leftbrace`,`midbrace`,`rightbrace`],1.6,548],underbrace:[[`leftbraceunder`,`midbraceunder`,`rightbraceunder`],1.6,548],underleftrightarrow:[[`leftarrow`,`rightarrow`],.888,522],xleftrightarrow:[[`leftarrow`,`rightarrow`],1.75,522],xLeftrightarrow:[[`doubleleftarrow`,`doublerightarrow`],1.75,560],xrightleftharpoons:[[`leftharpoondownplus`,`rightharpoonplus`],1.75,716],xleftrightharpoons:[[`leftharpoonplus`,`rightharpoondownplus`],1.75,716],xhookleftarrow:[[`leftarrow`,`righthook`],1.08,522],xhookrightarrow:[[`lefthook`,`rightarrow`],1.08,522],overlinesegment:[[`leftlinesegment`,`rightlinesegment`],.888,522],underlinesegment:[[`leftlinesegment`,`rightlinesegment`],.888,522],overbracket:[[`leftbracketover`,`rightbracketover`],1.6,440],underbracket:[[`leftbracketunder`,`rightbracketunder`],1.6,410],overgroup:[[`leftgroup`,`rightgroup`],.888,342],undergroup:[[`leftgroupunder`,`rightgroupunder`],.888,342],xmapsto:[[`leftmapsto`,`rightarrow`],1.5,522],xtofrom:[[`leftToFrom`,`rightToFrom`],1.75,528],xrightleftarrows:[[`baraboveleftarrow`,`rightarrowabovebar`],1.75,901],xrightequilibrium:[[`baraboveshortleftharpoon`,`rightharpoonaboveshortbar`],1.75,716],xleftequilibrium:[[`shortbaraboveleftharpoon`,`shortrightharpoonabovebar`],1.75,716]},L_=new Set([`widehat`,`widecheck`,`widetilde`,`utilde`]),R_=function(e,t){function n(){var n=4e5,r=e.label.slice(1);if(L_.has(r)&&`base`in e){var i=e.base.type===`ordgroup`?e.base.body.length:1,a,o,s;if(i>5)r===`widehat`||r===`widecheck`?(a=420,n=2364,s=.42,o=r+`4`):(a=312,n=2340,s=.34,o=`tilde4`);else{var c=[1,1,2,2,3,3][i];r===`widehat`||r===`widecheck`?(n=[0,1062,2364,2364,2364][c],a=[0,239,300,360,420][c],s=[0,.24,.3,.3,.36,.42][c],o=r+c):(n=[0,600,1033,2339,2340][c],a=[0,260,286,306,312][c],s=[0,.26,.286,.3,.306,.34][c],o=`tilde`+c)}return{span:Ag([],[new Ch([new wh(o)],{width:`100%`,height:I(s),viewBox:`0 0 `+n+` `+a,preserveAspectRatio:`none`})],t),minWidth:0,height:s}}else{var l=[],u=I_[r];if(!u)throw Error(`No SVG data for "`+r+`".`);var[d,f,p]=u,m=p/1e3,h=d.length,g,_;if(h===1){if(u.length!==4)throw Error(`Expected 4-tuple for single-path SVG data "`+r+`".`);g=[`hide-tail`],_=[u[3]]}else if(h===2)g=[`halfarrow-left`,`halfarrow-right`],_=[`xMinYMin`,`xMaxYMin`];else if(h===3)g=[`brace-left`,`brace-center`,`brace-right`],_=[`xMinYMin`,`xMidYMin`,`xMaxYMin`];else throw Error(`Correct katexImagesData or update code here to support
|
|
408
|
+
`+h+` children.`);for(var v=0;v<h;v++){var y=new Ch([new wh(d[v])],{width:`400em`,height:I(m),viewBox:`0 0 `+n+` `+p,preserveAspectRatio:_[v]+` slice`}),b=Ag([g[v]],[y],t);if(h===1)return{span:b,minWidth:f,height:m};b.style.height=I(m),l.push(b)}return{span:q([`stretchy`],l,t),minWidth:f,height:m}}}var{span:r,minWidth:i,height:a}=n();return r.height=a,r.style.height=I(a),i>0&&(r.style.minWidth=I(i)),r},z_=function(e,t,n,r,i){var a,o=e.height+e.depth+n+r;if(/fbox|color|angl/.test(t)){if(a=q([`stretchy`,t],[],i),t===`fbox`){var s=i.color&&i.getColor();s&&(a.style.borderColor=s)}}else{var c=[];/^[bx]cancel$/.test(t)&&c.push(new Th({x1:`0`,y1:`0`,x2:`100%`,y2:`100%`,"stroke-width":`0.046em`})),/^x?cancel$/.test(t)&&c.push(new Th({x1:`0`,y1:`100%`,x2:`100%`,y2:`0`,"stroke-width":`0.046em`})),a=Ag([],[new Ch(c,{width:`100%`,height:I(o)})],i)}return a.height=o,a.style.height=I(o),a},B_={bin:1,close:1,inner:1,open:1,punct:1,rel:1},V_={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1};function H_(e){return e in B_}function X(e,t){if(!e||e.type!==t)throw Error(`Expected node of type `+t+`, but got `+(e?`node of type `+e.type:String(e)));return e}function U_(e){var t=W_(e);if(!t)throw Error(`Expected node of symbol group type, but got `+(e?`node of type `+e.type:String(e)));return t}function W_(e){return e&&(e.type===`atom`||V_.hasOwnProperty(e.type))?e:null}var G_=e=>{if(e instanceof Sh)return e;if(Oh(e)&&e.children.length===1)return G_(e.children[0])},K_=(e,t)=>{var n,r,i;e&&e.type===`supsub`?(r=X(e.base,`accent`),n=r.base,e.base=n,i=Dh(l_(e,t)),e.base=r):(r=X(e,`accent`),n=r.base);var a=l_(n,t.havingCrampedStyle()),o=r.isShifty&&bm(n),s=0;o&&(s=G_(a)?.skew??0);var c=r.label===`\\c`,l=c?a.height+a.depth:Math.min(a.height,t.fontMetrics().xHeight),u;if(r.isStretchy)u=R_(r,t),u=Ig({positionType:`firstBaseline`,children:[{type:`elem`,elem:a},{type:`elem`,elem:u,wrapperClasses:[`svg-align`],wrapperStyle:s>0?{width:`calc(100% - `+I(2*s)+`)`,marginLeft:I(2*s)}:void 0}]});else{var d,f;r.label===`\\vec`?(d=Vg(`vec`,t),f=Bg.vec[1]):(d=Eg({type:`textord`,mode:r.mode,text:r.label},t,`textord`),d=Eh(d),d.italic=0,f=d.width,c&&(l+=d.depth)),u=q([`accent-body`],[d]);var p=r.label===`\\textcircled`;p&&(u.classes.push(`accent-full`),l=a.height);var m=s;p||(m-=f/2),u.style.left=I(m),r.label===`\\textcircled`&&(u.style.top=`.2em`),u=Ig({positionType:`firstBaseline`,children:[{type:`elem`,elem:a},{type:`kern`,size:-l},{type:`elem`,elem:u}]})}var h=q([`mord`,`accent`],[u],t);return i?(i.children[0]=h,i.height=Math.max(h.height,i.height),i.classes[0]=`mord`,i):h},q_=(e,t)=>{var n=e.isStretchy?F_(e.label):new Y(`mo`,[__(e.label,e.mode)]),r=new Y(`mover`,[w_(e.base,t),n]);return r.setAttribute(`accent`,`true`),r},J_=new RegExp([`\\acute`,`\\grave`,`\\ddot`,`\\tilde`,`\\bar`,`\\breve`,`\\check`,`\\hat`,`\\vec`,`\\dot`,`\\mathring`].map(e=>`\\`+e).join(`|`));J({type:`accent`,names:[`\\acute`,`\\grave`,`\\ddot`,`\\tilde`,`\\bar`,`\\breve`,`\\check`,`\\hat`,`\\vec`,`\\dot`,`\\mathring`,`\\widecheck`,`\\widehat`,`\\widetilde`,`\\overrightarrow`,`\\overleftarrow`,`\\Overrightarrow`,`\\overleftrightarrow`,`\\overgroup`,`\\overlinesegment`,`\\overleftharpoon`,`\\overrightharpoon`],props:{numArgs:1},handler:(e,t)=>{var n=Zg(t[0]),r=!J_.test(e.funcName),i=!r||e.funcName===`\\widehat`||e.funcName===`\\widetilde`||e.funcName===`\\widecheck`;return{type:`accent`,mode:e.parser.mode,label:e.funcName,isStretchy:r,isShifty:i,base:n}},htmlBuilder:K_,mathmlBuilder:q_}),J({type:`accent`,names:[`\\'`,"\\`",`\\^`,`\\~`,`\\=`,`\\u`,`\\.`,`\\"`,`\\c`,`\\r`,`\\H`,`\\v`,`\\textcircled`],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:[`primitive`]},handler:(e,t)=>{var n=t[0],r=e.parser.mode;return r===`math`&&(e.parser.settings.reportNonstrict(`mathVsTextAccents`,`LaTeX's accent `+e.funcName+` works only in text mode`),r=`text`),{type:`accent`,mode:r,label:e.funcName,isStretchy:!1,isShifty:!0,base:n}},htmlBuilder:K_,mathmlBuilder:q_}),J({type:`accentUnder`,names:[`\\underleftarrow`,`\\underrightarrow`,`\\underleftrightarrow`,`\\undergroup`,`\\underlinesegment`,`\\utilde`],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:`accentUnder`,mode:n.mode,label:r,base:i}},htmlBuilder:(e,t)=>{var n=l_(e.base,t),r=R_(e,t),i=e.label===`\\utilde`?.12:0;return q([`mord`,`accentunder`],[Ig({positionType:`top`,positionData:n.height,children:[{type:`elem`,elem:r,wrapperClasses:[`svg-align`]},{type:`kern`,size:i},{type:`elem`,elem:n}]})],t)},mathmlBuilder:(e,t)=>{var n=F_(e.label),r=new Y(`munder`,[w_(e.base,t),n]);return r.setAttribute(`accentunder`,`true`),r}});var Y_=e=>{var t=new Y(`mpadded`,e?[e]:[]);return t.setAttribute(`width`,`+0.6em`),t.setAttribute(`lspace`,`0.3em`),t};J({type:`xArrow`,names:[`\\xleftarrow`,`\\xrightarrow`,`\\xLeftarrow`,`\\xRightarrow`,`\\xleftrightarrow`,`\\xLeftrightarrow`,`\\xhookleftarrow`,`\\xhookrightarrow`,`\\xmapsto`,`\\xrightharpoondown`,`\\xrightharpoonup`,`\\xleftharpoondown`,`\\xleftharpoonup`,`\\xrightleftharpoons`,`\\xleftrightharpoons`,`\\xlongequal`,`\\xtwoheadrightarrow`,`\\xtwoheadleftarrow`,`\\xtofrom`,`\\xrightleftarrows`,`\\xrightequilibrium`,`\\xleftequilibrium`,`\\\\cdrightarrow`,`\\\\cdleftarrow`,`\\\\cdlongequal`],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:r,funcName:i}=e;return{type:`xArrow`,mode:r.mode,label:i,body:t[0],below:n[0]}},htmlBuilder(e,t){var n=t.style,r=t.havingStyle(n.sup()),i=Pg(l_(e.body,r,t),t),a=e.label.slice(0,2)===`\\x`?`x`:`cd`;i.classes.push(a+`-arrow-pad`);var o;e.below&&(r=t.havingStyle(n.sub()),o=Pg(l_(e.below,r,t),t),o.classes.push(a+`-arrow-pad`));var s=R_(e,t),c=-t.fontMetrics().axisHeight+.5*s.height,l=-t.fontMetrics().axisHeight-.5*s.height-.111;(i.depth>.25||e.label===`\\xleftequilibrium`)&&(l-=i.depth);var u;if(o){var d=-t.fontMetrics().axisHeight+o.height+.5*s.height+.111;u=Ig({positionType:`individualShift`,children:[{type:`elem`,elem:i,shift:l},{type:`elem`,elem:s,shift:c,wrapperClasses:[`svg-align`]},{type:`elem`,elem:o,shift:d}]})}else u=Ig({positionType:`individualShift`,children:[{type:`elem`,elem:i,shift:l},{type:`elem`,elem:s,shift:c,wrapperClasses:[`svg-align`]}]});return q([`mrel`,`x-arrow`],[u],t)},mathmlBuilder(e,t){var n=F_(e.label);n.setAttribute(`minsize`,e.label.charAt(0)===`x`?`1.75em`:`3.0em`);var r;if(e.body){var i=Y_(w_(e.body,t));r=e.below?new Y(`munderover`,[n,Y_(w_(e.below,t)),i]):new Y(`mover`,[n,i])}else e.below?r=new Y(`munder`,[n,Y_(w_(e.below,t))]):(r=Y_(),r=new Y(`mover`,[n,r]));return r}});function X_(e,t){var n=r_(e.body,t,!0);return q([e.mclass],n,t)}function Z_(e,t){var n,r=S_(e.body,t);return e.mclass===`minner`?n=new Y(`mpadded`,r):e.mclass===`mord`?e.isCharacterBox?(n=r[0],n.type=`mi`):n=new Y(`mi`,r):(e.isCharacterBox?(n=r[0],n.type=`mo`):n=new Y(`mo`,r),e.mclass===`mbin`?(n.attributes.lspace=`0.22em`,n.attributes.rspace=`0.22em`):e.mclass===`mpunct`?(n.attributes.lspace=`0em`,n.attributes.rspace=`0.17em`):e.mclass===`mopen`||e.mclass===`mclose`?(n.attributes.lspace=`0em`,n.attributes.rspace=`0em`):e.mclass===`minner`&&(n.attributes.lspace=`0.0556em`,n.attributes.width=`+0.1111em`)),n}J({type:`mclass`,names:[`\\mathord`,`\\mathbin`,`\\mathrel`,`\\mathopen`,`\\mathclose`,`\\mathpunct`,`\\mathinner`],props:{numArgs:1,primitive:!0},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:`mclass`,mode:n.mode,mclass:`m`+r.slice(5),body:Qg(i),isCharacterBox:bm(i)}},htmlBuilder:X_,mathmlBuilder:Z_});var Q_=e=>{var t=e.type===`ordgroup`&&e.body.length?e.body[0]:e;return t.type===`atom`&&(t.family===`bin`||t.family===`rel`)?`m`+t.family:`mord`};J({type:`mclass`,names:[`\\@binrel`],props:{numArgs:2},handler(e,t){var{parser:n}=e;return{type:`mclass`,mode:n.mode,mclass:Q_(t[0]),body:Qg(t[1]),isCharacterBox:bm(t[1])}}}),J({type:`mclass`,names:[`\\stackrel`,`\\overset`,`\\underset`],props:{numArgs:2},handler(e,t){var{parser:n,funcName:r}=e,i=t[1],a=t[0],o=r===`\\stackrel`?`mrel`:Q_(i),s={type:`op`,mode:i.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:r!==`\\stackrel`,body:Qg(i)},c={type:`supsub`,mode:a.mode,base:s,sup:r===`\\underset`?null:a,sub:r===`\\underset`?a:null};return{type:`mclass`,mode:n.mode,mclass:o,body:[c],isCharacterBox:bm(c)}},htmlBuilder:X_,mathmlBuilder:Z_}),J({type:`pmb`,names:[`\\pmb`],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:`pmb`,mode:n.mode,mclass:Q_(t[0]),body:Qg(t[0])}},htmlBuilder(e,t){var n=r_(e.body,t,!0),r=q([e.mclass],n,t);return r.style.textShadow=`0.02em 0.01em 0.04px`,r},mathmlBuilder(e,t){var n=new Y(`mstyle`,S_(e.body,t));return n.setAttribute(`style`,`text-shadow: 0.02em 0.01em 0.04px`),n}});var $_={">":`\\\\cdrightarrow`,"<":`\\\\cdleftarrow`,"=":`\\\\cdlongequal`,A:`\\uparrow`,V:`\\downarrow`,"|":`\\Vert`,".":`no arrow`},ev=()=>({type:`styling`,body:[],mode:`math`,style:`display`,resetFont:!0}),tv=e=>e.type===`textord`&&e.text===`@`,nv=(e,t)=>(e.type===`mathord`||e.type===`atom`)&&e.text===t;function rv(e,t,n){var r=$_[e];switch(r){case`\\\\cdrightarrow`:case`\\\\cdleftarrow`:return n.callFunction(r,[t[0]],[t[1]]);case`\\uparrow`:case`\\downarrow`:var i=n.callFunction(`\\\\cdleft`,[t[0]],[]),a={type:`atom`,text:r,mode:`math`,family:`rel`},o={type:`ordgroup`,mode:`math`,body:[i,n.callFunction(`\\Big`,[a],[]),n.callFunction(`\\\\cdright`,[t[1]],[])]};return n.callFunction(`\\\\cdparent`,[o],[]);case`\\\\cdlongequal`:return n.callFunction(`\\\\cdlongequal`,[],[]);case`\\Vert`:return n.callFunction(`\\Big`,[{type:`textord`,text:`\\Vert`,mode:`math`}],[]);default:return{type:`textord`,text:` `,mode:`math`}}}function iv(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set(`\\cr`,`\\\\\\relax`),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,`\\\\`)),e.gullet.endGroup(),e.gullet.beginGroup();var n=e.fetch().text;if(n===`&`||n===`\\\\`)e.consume();else if(n===`\\end`){t[t.length-1].length===0&&t.pop();break}else throw new P(`Expected \\\\ or \\cr or \\end`,e.nextToken)}for(var r=[],i=[r],a=0;a<t.length;a++){for(var o=t[a],s=ev(),c=0;c<o.length;c++)if(!tv(o[c]))s.body.push(o[c]);else{r.push(s),c+=1;var l=U_(o[c]).text,u=[,,];if(u[0]={type:`ordgroup`,mode:`math`,body:[]},u[1]={type:`ordgroup`,mode:`math`,body:[]},!`=|.`.includes(l))if(`<>AV`.includes(l))for(var d=0;d<2;d++){for(var f=!0,p=c+1;p<o.length;p++){if(nv(o[p],l)){f=!1,c=p;break}if(tv(o[p]))throw new P(`Missing a `+l+` character to complete a CD arrow.`,o[p]);u[d].body.push(o[p])}if(f)throw new P(`Missing a `+l+` character to complete a CD arrow.`,o[c])}else throw new P(`Expected one of "<>AV=|." after @`,o[c]);var m={type:`styling`,body:[rv(l,u,e)],mode:`math`,style:`display`,resetFont:!0};r.push(m),s=ev()}a%2==0?r.push(s):r.shift(),r=[],i.push(r)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:`array`,mode:`math`,body:i,arraystretch:1,addJot:!0,rowGaps:[null],cols:Array(i[0].length).fill({type:`align`,align:`c`,pregap:.25,postgap:.25}),colSeparationType:`CD`,hLinesBeforeRow:Array(i.length+1).fill([])}}J({type:`cdlabel`,names:[`\\\\cdleft`,`\\\\cdright`],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e;return{type:`cdlabel`,mode:n.mode,side:r.slice(4),label:t[0]}},htmlBuilder(e,t){var n=t.havingStyle(t.style.sup()),r=Pg(l_(e.label,n,t),t);return r.classes.push(`cd-label-`+e.side),r.style.bottom=I(.8-r.depth),r.height=0,r.depth=0,r},mathmlBuilder(e,t){var n=new Y(`mrow`,[w_(e.label,t)]);return n=new Y(`mpadded`,[n]),n.setAttribute(`width`,`0`),e.side===`left`&&n.setAttribute(`lspace`,`-1width`),n.setAttribute(`voffset`,`0.7em`),n=new Y(`mstyle`,[n]),n.setAttribute(`displaystyle`,`false`),n.setAttribute(`scriptlevel`,`1`),n}}),J({type:`cdlabelparent`,names:[`\\\\cdparent`],props:{numArgs:1},handler(e,t){var{parser:n}=e;return{type:`cdlabelparent`,mode:n.mode,fragment:t[0]}},htmlBuilder(e,t){var n=Pg(l_(e.fragment,t),t);return n.classes.push(`cd-vert-arrow`),n},mathmlBuilder(e,t){return new Y(`mrow`,[w_(e.fragment,t)])}}),J({type:`textord`,names:[`\\@char`],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:n}=e,r=X(t[0],`ordgroup`).body,i=``,a=0;a<r.length;a++){var o=X(r[a],`textord`);i+=o.text}var s=parseInt(i),c;if(isNaN(s))throw new P(`\\@char has non-numeric argument `+i);if(s<0||s>=1114111)throw new P(`\\@char with invalid code point `+i);return s<=65535?c=String.fromCharCode(s):(s-=65536,c=String.fromCharCode((s>>10)+55296,(s&1023)+56320)),{type:`textord`,mode:n.mode,text:c}}});var av=(e,t)=>Ng(r_(e.body,t.withColor(e.color),!1)),ov=(e,t)=>{var n=new Y(`mstyle`,S_(e.body,t.withColor(e.color)));return n.setAttribute(`mathcolor`,e.color),n};J({type:`color`,names:[`\\textcolor`],props:{numArgs:2,allowedInText:!0,argTypes:[`color`,`original`]},handler(e,t){var{parser:n}=e,r=X(t[0],`color-token`).color,i=t[1];return{type:`color`,mode:n.mode,color:r,body:Qg(i)}},htmlBuilder:av,mathmlBuilder:ov}),J({type:`color`,names:[`\\color`],props:{numArgs:1,allowedInText:!0,argTypes:[`color`]},handler(e,t){var{parser:n,breakOnTokenText:r}=e,i=X(t[0],`color-token`).color;n.gullet.macros.set(`\\current@color`,i);var a=n.parseExpression(!0,r);return{type:`color`,mode:n.mode,color:i,body:a}},htmlBuilder:av,mathmlBuilder:ov}),J({type:`cr`,names:[`\\\\`],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,n){var{parser:r}=e,i=r.gullet.future().text===`[`?r.parseSizeGroup(!0):null,a=!r.settings.displayMode||!r.settings.useStrictBehavior(`newLineInDisplayMode`,`In LaTeX, \\\\ or \\newline does nothing in display mode`);return{type:`cr`,mode:r.mode,newLine:a,size:i&&X(i,`size`).value}},htmlBuilder(e,t){var n=q([`mspace`],[],t);return e.newLine&&(n.classes.push(`newline`),e.size&&(n.style.marginTop=I(dh(e.size,t)))),n},mathmlBuilder(e,t){var n=new Y(`mspace`);return e.newLine&&(n.setAttribute(`linebreak`,`newline`),e.size&&n.setAttribute(`height`,I(dh(e.size,t)))),n}});var sv={"\\global":`\\global`,"\\long":`\\\\globallong`,"\\\\globallong":`\\\\globallong`,"\\def":`\\gdef`,"\\gdef":`\\gdef`,"\\edef":`\\xdef`,"\\xdef":`\\xdef`,"\\let":`\\\\globallet`,"\\futurelet":`\\\\globalfuture`},cv=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new P(`Expected a control sequence`,e);return t},lv=e=>{var t=e.gullet.popToken();return t.text===`=`&&(t=e.gullet.popToken(),t.text===` `&&(t=e.gullet.popToken())),t},uv=(e,t,n,r)=>{var i=e.gullet.macros.get(n.text);i??=(n.noexpand=!0,{tokens:[n],numArgs:0,unexpandable:!e.gullet.isExpandable(n.text)}),e.gullet.macros.set(t,i,r)};J({type:`internal`,names:[`\\global`,`\\long`,`\\\\globallong`],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t,funcName:n}=e;t.consumeSpaces();var r=t.fetch();if(sv[r.text])return(n===`\\global`||n===`\\\\globallong`)&&(r.text=sv[r.text]),X(t.parseFunction(),`internal`);throw new P(`Invalid token after macro prefix`,r)}}),J({type:`internal`,names:[`\\def`,`\\gdef`,`\\edef`,`\\xdef`],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=t.gullet.popToken(),i=r.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(i))throw new P(`Expected a control sequence`,r);for(var a=0,o,s=[[]];t.gullet.future().text!==`{`;)if(r=t.gullet.popToken(),r.text===`#`){if(t.gullet.future().text===`{`){o=t.gullet.future(),s[a].push(`{`);break}if(r=t.gullet.popToken(),!/^[1-9]$/.test(r.text))throw new P(`Invalid argument number "`+r.text+`"`);if(parseInt(r.text)!==a+1)throw new P(`Argument number "`+r.text+`" out of order`);a++,s.push([])}else if(r.text===`EOF`)throw new P(`Expected a macro definition`);else s[a].push(r.text);var{tokens:c}=t.gullet.consumeArg();return o&&c.unshift(o),(n===`\\edef`||n===`\\xdef`)&&(c=t.gullet.expandTokens(c),c.reverse()),t.gullet.macros.set(i,{tokens:c,numArgs:a,delimiters:s},n===sv[n]),{type:`internal`,mode:t.mode}}}),J({type:`internal`,names:[`\\let`,`\\\\globallet`],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=cv(t.gullet.popToken());return t.gullet.consumeSpaces(),uv(t,r,lv(t),n===`\\\\globallet`),{type:`internal`,mode:t.mode}}}),J({type:`internal`,names:[`\\futurelet`,`\\\\globalfuture`],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=cv(t.gullet.popToken()),i=t.gullet.popToken(),a=t.gullet.popToken();return uv(t,r,a,n===`\\\\globalfuture`),t.gullet.pushToken(a),t.gullet.pushToken(i),{type:`internal`,mode:t.mode}}});var dv=function(e,t,n){var r=Nh(Ih.math[e]&&Ih.math[e].replace||e,t,n);if(!r)throw Error(`Unsupported symbol `+e+` and font size `+t+`.`);return r},fv=function(e,t,n,r){var i=n.havingBaseStyle(t),a=q(r.concat(i.sizingClasses(n)),[e],n),o=i.sizeMultiplier/n.sizeMultiplier;return a.height*=o,a.depth*=o,a.maxFontSize=i.sizeMultiplier,a},pv=function(e,t,n){var r=t.havingBaseStyle(n),i=(1-t.sizeMultiplier/r.sizeMultiplier)*t.fontMetrics().axisHeight;e.classes.push(`delimcenter`),e.style.top=I(i),e.height-=i,e.depth+=i},mv=function(e,t,n,r,i,a){var o=fv(Cg(e,`Main-Regular`,i,r),t,r,a);return n&&pv(o,r,t),o},hv=function(e,t,n,r){return Cg(e,`Size`+t+`-Regular`,n,r)},gv=function(e,t,n,r,i,a){var o=hv(e,t,i,r),s=fv(q([`delimsizing`,`size`+t],[o],r),F.TEXT,r,a);return n&&pv(s,r,F.TEXT),s},_v=function(e,t,n){return{type:`elem`,elem:q([`delimsizinginner`,t===`Size1-Regular`?`delim-size1`:`delim-size4`],[q([],[Cg(e,t,n)])])}},vv=function(e,t,n){var r=kh[`Size4-Regular`][e.charCodeAt(0)]?kh[`Size4-Regular`][e.charCodeAt(0)][4]:kh[`Size1-Regular`][e.charCodeAt(0)][4],i=Ag([],[new Ch([new wh(`inner`,rh(e,Math.round(1e3*t)))],{width:I(r),height:I(t),style:`width:`+I(r),viewBox:`0 0 `+1e3*r+` `+Math.round(1e3*t),preserveAspectRatio:`xMinYMin`})],n);return i.height=t,i.style.height=I(t),i.style.width=I(r),{type:`elem`,elem:i}},yv=.008,bv={type:`kern`,size:-1*yv},xv=new Set([`|`,`\\lvert`,`\\rvert`,`\\vert`]),Sv=new Set([`\\|`,`\\lVert`,`\\rVert`,`\\Vert`]),Cv=function(e,t,n,r,i,a){var o,s,c,l,u=``,d=0;o=c=l=e,s=null;var f=`Size1-Regular`;e===`\\uparrow`?c=l=`⏐`:e===`\\Uparrow`?c=l=`‖`:e===`\\downarrow`?o=c=`⏐`:e===`\\Downarrow`?o=c=`‖`:e===`\\updownarrow`?(o=`\\uparrow`,c=`⏐`,l=`\\downarrow`):e===`\\Updownarrow`?(o=`\\Uparrow`,c=`‖`,l=`\\Downarrow`):xv.has(e)?(c=`∣`,u=`vert`,d=333):Sv.has(e)?(c=`∥`,u=`doublevert`,d=556):e===`[`||e===`\\lbrack`?(o=`⎡`,c=`⎢`,l=`⎣`,f=`Size4-Regular`,u=`lbrack`,d=667):e===`]`||e===`\\rbrack`?(o=`⎤`,c=`⎥`,l=`⎦`,f=`Size4-Regular`,u=`rbrack`,d=667):e===`\\lfloor`||e===`⌊`?(c=o=`⎢`,l=`⎣`,f=`Size4-Regular`,u=`lfloor`,d=667):e===`\\lceil`||e===`⌈`?(o=`⎡`,c=l=`⎢`,f=`Size4-Regular`,u=`lceil`,d=667):e===`\\rfloor`||e===`⌋`?(c=o=`⎥`,l=`⎦`,f=`Size4-Regular`,u=`rfloor`,d=667):e===`\\rceil`||e===`⌉`?(o=`⎤`,c=l=`⎥`,f=`Size4-Regular`,u=`rceil`,d=667):e===`(`||e===`\\lparen`?(o=`⎛`,c=`⎜`,l=`⎝`,f=`Size4-Regular`,u=`lparen`,d=875):e===`)`||e===`\\rparen`?(o=`⎞`,c=`⎟`,l=`⎠`,f=`Size4-Regular`,u=`rparen`,d=875):e===`\\{`||e===`\\lbrace`?(o=`⎧`,s=`⎨`,l=`⎩`,c=`⎪`,f=`Size4-Regular`):e===`\\}`||e===`\\rbrace`?(o=`⎫`,s=`⎬`,l=`⎭`,c=`⎪`,f=`Size4-Regular`):e===`\\lgroup`||e===`⟮`?(o=`⎧`,l=`⎩`,c=`⎪`,f=`Size4-Regular`):e===`\\rgroup`||e===`⟯`?(o=`⎫`,l=`⎭`,c=`⎪`,f=`Size4-Regular`):e===`\\lmoustache`||e===`⎰`?(o=`⎧`,l=`⎭`,c=`⎪`,f=`Size4-Regular`):(e===`\\rmoustache`||e===`⎱`)&&(o=`⎫`,l=`⎩`,c=`⎪`,f=`Size4-Regular`);var p=dv(o,f,i),m=p.height+p.depth,h=dv(c,f,i),g=h.height+h.depth,_=dv(l,f,i),v=_.height+_.depth,y=0,b=1;if(s!==null){var x=dv(s,f,i);y=x.height+x.depth,b=2}var S=m+v+y,C=S+Math.max(0,Math.ceil((t-S)/(b*g)))*b*g,w=r.fontMetrics().axisHeight;n&&(w*=r.sizeMultiplier);var T=C/2-w,E=[];if(u.length>0){var ee=C-m-v,te=Math.round(C*1e3),ne=ah(u,Math.round(ee*1e3)),re=new wh(u,ne),ie=I(d/1e3),ae=I(te/1e3),oe=Ag([],[new Ch([re],{width:ie,height:ae,viewBox:`0 0 `+d+` `+te})],r);oe.height=te/1e3,oe.style.width=ie,oe.style.height=ae,E.push({type:`elem`,elem:oe})}else{if(E.push(_v(l,f,i)),E.push(bv),s===null){var se=C-m-v+2*yv;E.push(vv(c,se,r))}else{var D=(C-m-v-y)/2+2*yv;E.push(vv(c,D,r)),E.push(bv),E.push(_v(s,f,i)),E.push(bv),E.push(vv(c,D,r))}E.push(bv),E.push(_v(o,f,i))}var ce=r.havingBaseStyle(F.TEXT);return fv(q([`delimsizing`,`mult`],[Ig({positionType:`bottom`,positionData:T,children:E})],ce),F.TEXT,r,a)},wv=80,Tv=.08,Ev=function(e,t,n,r,i){return Ag([`hide-tail`],[new Ch([new wh(e,nh(e,r,n))],{width:`400em`,height:I(t),viewBox:`0 0 400000 `+n,preserveAspectRatio:`xMinYMin slice`})],i)},Dv=function(e,t){var n=t.havingBaseSizing(),r=Lv(`\\surd`,e*n.sizeMultiplier,Fv,n),i=n.sizeMultiplier,a=Math.max(0,t.minRuleThickness-t.fontMetrics().sqrtRuleThickness),o,s,c,l,u;return r.type===`small`?(l=1e3+1e3*a+wv,e<1?i=1:e<1.4&&(i=.7),s=(1+a+Tv)/i,c=(1+a)/i,o=Ev(`sqrtMain`,s,l,a,t),o.style.minWidth=`0.853em`,u=.833/i):r.type===`large`?(l=(1e3+wv)*jv[r.size],c=(jv[r.size]+a)/i,s=(jv[r.size]+a+Tv)/i,o=Ev(`sqrtSize`+r.size,s,l,a,t),o.style.minWidth=`1.02em`,u=1/i):(s=e+a+Tv,c=e+a,l=Math.floor(1e3*e+a)+wv,o=Ev(`sqrtTall`,s,l,a,t),o.style.minWidth=`0.742em`,u=1.056),o.height=c,o.style.height=I(s),{span:o,advanceWidth:u,ruleWidth:(t.fontMetrics().sqrtRuleThickness+a)*i}},Ov=new Set([`(`,`\\lparen`,`)`,`\\rparen`,`[`,`\\lbrack`,`]`,`\\rbrack`,`\\{`,`\\lbrace`,`\\}`,`\\rbrace`,`\\lfloor`,`\\rfloor`,`⌊`,`⌋`,`\\lceil`,`\\rceil`,`⌈`,`⌉`,`\\surd`]),kv=new Set([`\\uparrow`,`\\downarrow`,`\\updownarrow`,`\\Uparrow`,`\\Downarrow`,`\\Updownarrow`,`|`,`\\|`,`\\vert`,`\\Vert`,`\\lvert`,`\\rvert`,`\\lVert`,`\\rVert`,`\\lgroup`,`\\rgroup`,`⟮`,`⟯`,`\\lmoustache`,`\\rmoustache`,`⎰`,`⎱`]),Av=new Set([`<`,`>`,`\\langle`,`\\rangle`,`/`,`\\backslash`,`\\lt`,`\\gt`]),jv=[0,1.2,1.8,2.4,3],Mv=function(e,t,n,r,i){if(e===`<`||e===`\\lt`||e===`⟨`?e=`\\langle`:(e===`>`||e===`\\gt`||e===`⟩`)&&(e=`\\rangle`),Ov.has(e)||Av.has(e))return gv(e,t,!1,n,r,i);if(kv.has(e))return Cv(e,jv[t],!1,n,r,i);throw new P(`Illegal delimiter: '`+e+`'`)},Nv=[{type:`small`,style:F.SCRIPTSCRIPT},{type:`small`,style:F.SCRIPT},{type:`small`,style:F.TEXT},{type:`large`,size:1},{type:`large`,size:2},{type:`large`,size:3},{type:`large`,size:4}],Pv=[{type:`small`,style:F.SCRIPTSCRIPT},{type:`small`,style:F.SCRIPT},{type:`small`,style:F.TEXT},{type:`stack`}],Fv=[{type:`small`,style:F.SCRIPTSCRIPT},{type:`small`,style:F.SCRIPT},{type:`small`,style:F.TEXT},{type:`large`,size:1},{type:`large`,size:2},{type:`large`,size:3},{type:`large`,size:4},{type:`stack`}],Iv=function(e){if(e.type===`small`)return`Main-Regular`;if(e.type===`large`)return`Size`+e.size+`-Regular`;if(e.type===`stack`)return`Size4-Regular`;var t=e.type;throw Error(`Add support for delim type '`+t+`' here.`)},Lv=function(e,t,n,r){for(var i=Math.min(2,3-r.style.size);i<n.length;i++){var a=n[i];if(a.type===`stack`)break;var o=dv(e,Iv(a),`math`),s=o.height+o.depth;if(a.type===`small`){var c=r.havingBaseStyle(a.style);s*=c.sizeMultiplier}if(s>t)return a}return n[n.length-1]},Rv=function(e,t,n,r,i,a){e===`<`||e===`\\lt`||e===`⟨`?e=`\\langle`:(e===`>`||e===`\\gt`||e===`⟩`)&&(e=`\\rangle`);var o=Av.has(e)?Nv:Ov.has(e)?Fv:Pv,s=Lv(e,t,o,r);return s.type===`small`?mv(e,s.style,n,r,i,a):s.type===`large`?gv(e,s.size,n,r,i,a):Cv(e,t,n,r,i,a)},zv=function(e,t,n,r,i,a){var o=r.fontMetrics().axisHeight*r.sizeMultiplier,s=901,c=5/r.fontMetrics().ptPerEm,l=Math.max(t-o,n+o);return Rv(e,Math.max(l/500*s,2*l-c),!0,r,i,a)},Bv={"\\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}},Vv=new Set(`(,\\lparen,),\\rparen,[,\\lbrack,],\\rbrack,\\{,\\lbrace,\\},\\rbrace,\\lfloor,\\rfloor,⌊,⌋,\\lceil,\\rceil,⌈,⌉,<,>,\\langle,⟨,\\rangle,⟩,\\lt,\\gt,\\lvert,\\rvert,\\lVert,\\rVert,\\lgroup,\\rgroup,⟮,⟯,\\lmoustache,\\rmoustache,⎰,⎱,/,\\backslash,|,\\vert,\\|,\\Vert,\\uparrow,\\Uparrow,\\downarrow,\\Downarrow,\\updownarrow,\\Updownarrow,.`.split(`,`));function Hv(e){return`isMiddle`in e}function Uv(e,t){var n=W_(e);if(n&&Vv.has(n.text))return n;throw n?new P(`Invalid delimiter '`+n.text+`' after '`+t.funcName+`'`,e):new P(`Invalid delimiter type '`+e.type+`'`,e)}J({type:`delimsizing`,names:[`\\bigl`,`\\Bigl`,`\\biggl`,`\\Biggl`,`\\bigr`,`\\Bigr`,`\\biggr`,`\\Biggr`,`\\bigm`,`\\Bigm`,`\\biggm`,`\\Biggm`,`\\big`,`\\Big`,`\\bigg`,`\\Bigg`],props:{numArgs:1,argTypes:[`primitive`]},handler:(e,t)=>{var n=Uv(t[0],e);return{type:`delimsizing`,mode:e.parser.mode,size:Bv[e.funcName].size,mclass:Bv[e.funcName].mclass,delim:n.text}},htmlBuilder:(e,t)=>e.delim===`.`?q([e.mclass]):Mv(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];e.delim!==`.`&&t.push(__(e.delim,e.mode));var n=new Y(`mo`,t);e.mclass===`mopen`||e.mclass===`mclose`?n.setAttribute(`fence`,`true`):n.setAttribute(`fence`,`false`),n.setAttribute(`stretchy`,`true`);var r=I(jv[e.size]);return n.setAttribute(`minsize`,r),n.setAttribute(`maxsize`,r),n}});function Wv(e){if(!e.body)throw Error(`Bug: The leftright ParseNode wasn't fully parsed.`)}J({type:`leftright-right`,names:[`\\right`],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=e.parser.gullet.macros.get(`\\current@color`);if(n&&typeof n!=`string`)throw new P(`\\current@color set to non-string in \\right`);return{type:`leftright-right`,mode:e.parser.mode,delim:Uv(t[0],e).text,color:n}}}),J({type:`leftright`,names:[`\\left`],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=Uv(t[0],e),r=e.parser;++r.leftrightDepth;var i=r.parseExpression(!1);--r.leftrightDepth,r.expect(`\\right`,!1);var a=X(r.parseFunction(),`leftright-right`);return{type:`leftright`,mode:r.mode,body:i,left:n.text,right:a.delim,rightColor:a.color}},htmlBuilder:(e,t)=>{Wv(e);for(var n=r_(e.body,t,!0,[`mopen`,`mclose`]),r=0,i=0,a=!1,o=0;o<n.length;o++){var s=n[o];Hv(s)?a=!0:(r=Math.max(n[o].height,r),i=Math.max(n[o].depth,i))}r*=t.sizeMultiplier,i*=t.sizeMultiplier;var c=e.left===`.`?c_(t,[`mopen`]):zv(e.left,r,i,t,e.mode,[`mopen`]);if(n.unshift(c),a)for(var l=1;l<n.length;l++){var u=n[l];if(Hv(u)){var d=u.isMiddle;n[l]=zv(d.delim,r,i,d.options,e.mode,[])}}var f;if(e.right===`.`)f=c_(t,[`mclose`]);else{var p=e.rightColor?t.withColor(e.rightColor):t;f=zv(e.right,r,i,p,e.mode,[`mclose`])}return n.push(f),q([`minner`],n,t)},mathmlBuilder:(e,t)=>{Wv(e);var n=S_(e.body,t);if(e.left!==`.`){var r=new Y(`mo`,[__(e.left,e.mode)]);r.setAttribute(`fence`,`true`),n.unshift(r)}if(e.right!==`.`){var i=new Y(`mo`,[__(e.right,e.mode)]);i.setAttribute(`fence`,`true`),e.rightColor&&i.setAttribute(`mathcolor`,e.rightColor),n.push(i)}return v_(n)}}),J({type:`middle`,names:[`\\middle`],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=Uv(t[0],e);if(!e.parser.leftrightDepth)throw new P(`\\middle without preceding \\left`,n);return{type:`middle`,mode:e.parser.mode,delim:n.text}},htmlBuilder:(e,t)=>{var n;return e.delim===`.`?n=c_(t,[]):(n=Mv(e.delim,1,t,e.mode,[]),n.isMiddle={delim:e.delim,options:t}),n},mathmlBuilder:(e,t)=>{var n=new Y(`mo`,[e.delim===`\\vert`||e.delim===`|`?__(`|`,`text`):__(e.delim,e.mode)]);return n.setAttribute(`fence`,`true`),n.setAttribute(`lspace`,`0.05em`),n.setAttribute(`rspace`,`0.05em`),n}});var Gv=(e,t)=>{var n=Pg(l_(e.body,t),t),r=e.label.slice(1),i=t.sizeMultiplier,a,o,s=bm(e.body);if(r===`sout`)a=q([`stretchy`,`sout`]),a.height=t.fontMetrics().defaultRuleThickness/i,o=-.5*t.fontMetrics().xHeight;else if(r===`phase`){var c=dh({number:.6,unit:`pt`},t),l=dh({number:.35,unit:`ex`},t),u=t.havingBaseSizing();i/=u.sizeMultiplier;var d=n.height+n.depth+c+l;n.style.paddingLeft=I(d/2+c);var f=Math.floor(1e3*d*i);a=Ag([`hide-tail`],[new Ch([new wh(`phase`,eh(f))],{width:`400em`,height:I(f/1e3),viewBox:`0 0 400000 `+f,preserveAspectRatio:`xMinYMin slice`})],t),a.style.height=I(d),o=n.depth+c+l}else{/cancel/.test(r)?s||n.classes.push(`cancel-pad`):r===`angl`?n.classes.push(`anglpad`):n.classes.push(`boxpad`);var p,m,h=0;/box/.test(r)?(h=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),p=t.fontMetrics().fboxsep+(r===`colorbox`?0:h),m=p):r===`angl`?(h=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),p=4*h,m=Math.max(0,.25-n.depth)):(p=s?.2:0,m=p),a=z_(n,r,p,m,t),/fbox|boxed|fcolorbox/.test(r)?(a.style.borderStyle=`solid`,a.style.borderWidth=I(h)):r===`angl`&&h!==.049&&(a.style.borderTopWidth=I(h),a.style.borderRightWidth=I(h)),o=n.depth+m,e.backgroundColor&&(a.style.backgroundColor=e.backgroundColor,e.borderColor&&(a.style.borderColor=e.borderColor))}var g;if(e.backgroundColor)g=Ig({positionType:`individualShift`,children:[{type:`elem`,elem:a,shift:o},{type:`elem`,elem:n,shift:0}]});else{var _=/cancel|phase/.test(r)?[`svg-align`]:[];g=Ig({positionType:`individualShift`,children:[{type:`elem`,elem:n,shift:0},{type:`elem`,elem:a,shift:o,wrapperClasses:_}]})}return/cancel/.test(r)&&(g.height=n.height,g.depth=n.depth),/cancel/.test(r)&&!s?q([`mord`,`cancel-lap`],[g],t):q([`mord`],[g],t)},Kv=(e,t)=>{var n,r=new Y(e.label.includes(`colorbox`)?`mpadded`:`menclose`,[w_(e.body,t)]);switch(e.label){case`\\cancel`:r.setAttribute(`notation`,`updiagonalstrike`);break;case`\\bcancel`:r.setAttribute(`notation`,`downdiagonalstrike`);break;case`\\phase`:r.setAttribute(`notation`,`phasorangle`);break;case`\\sout`:r.setAttribute(`notation`,`horizontalstrike`);break;case`\\fbox`:r.setAttribute(`notation`,`box`);break;case`\\angl`:r.setAttribute(`notation`,`actuarial`);break;case`\\fcolorbox`:case`\\colorbox`:if(n=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,r.setAttribute(`width`,`+`+2*n+`pt`),r.setAttribute(`height`,`+`+2*n+`pt`),r.setAttribute(`lspace`,n+`pt`),r.setAttribute(`voffset`,n+`pt`),e.label===`\\fcolorbox`){var i=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);r.setAttribute(`style`,`border: `+I(i)+` solid `+e.borderColor)}break;case`\\xcancel`:r.setAttribute(`notation`,`updiagonalstrike downdiagonalstrike`);break}return e.backgroundColor&&r.setAttribute(`mathbackground`,e.backgroundColor),r};J({type:`enclose`,names:[`\\colorbox`],props:{numArgs:2,allowedInText:!0,argTypes:[`color`,`hbox`]},handler(e,t,n){var{parser:r,funcName:i}=e,a=X(t[0],`color-token`).color,o=t[1];return{type:`enclose`,mode:r.mode,label:i,backgroundColor:a,body:o}},htmlBuilder:Gv,mathmlBuilder:Kv}),J({type:`enclose`,names:[`\\fcolorbox`],props:{numArgs:3,allowedInText:!0,argTypes:[`color`,`color`,`hbox`]},handler(e,t,n){var{parser:r,funcName:i}=e,a=X(t[0],`color-token`).color,o=X(t[1],`color-token`).color,s=t[2];return{type:`enclose`,mode:r.mode,label:i,backgroundColor:o,borderColor:a,body:s}},htmlBuilder:Gv,mathmlBuilder:Kv}),J({type:`enclose`,names:[`\\fbox`],props:{numArgs:1,argTypes:[`hbox`],allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:`enclose`,mode:n.mode,label:`\\fbox`,body:t[0]}}}),J({type:`enclose`,names:[`\\cancel`,`\\bcancel`,`\\xcancel`,`\\phase`],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:`enclose`,mode:n.mode,label:r,body:i}},htmlBuilder:Gv,mathmlBuilder:Kv}),J({type:`enclose`,names:[`\\sout`],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e;n.mode===`math`&&n.settings.reportNonstrict(`mathVsSout`,`LaTeX's \\sout works only in text mode`);var i=t[0];return{type:`enclose`,mode:n.mode,label:r,body:i}},htmlBuilder:Gv,mathmlBuilder:Kv}),J({type:`enclose`,names:[`\\angl`],props:{numArgs:1,argTypes:[`hbox`],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:`enclose`,mode:n.mode,label:`\\angl`,body:t[0]}}});var qv={};function Jv(e){for(var{type:t,names:n,props:r,handler:i,htmlBuilder:a,mathmlBuilder:o}=e,s={type:t,numArgs:r.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:i},c=0;c<n.length;++c)qv[n[c]]=s;a&&(Jg[t]=a),o&&(Yg[t]=o)}var Yv={};function Z(e,t){Yv[e]=t}var Xv=class e{constructor(e,t,n){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=e,this.start=t,this.end=n}static range(t,n){return n?!t||!t.loc||!n.loc||t.loc.lexer!==n.loc.lexer?null:new e(t.loc.lexer,t.loc.start,n.loc.end):t&&t.loc}},Zv=class e{constructor(e,t){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=e,this.loc=t}range(t,n){return new e(n,Xv.range(this,t))}};function Qv(e){var t=[];e.consumeSpaces();var n=e.fetch().text;for(n===`\\relax`&&(e.consume(),e.consumeSpaces(),n=e.fetch().text);n===`\\hline`||n===`\\hdashline`;)e.consume(),t.push(n===`\\hdashline`),e.consumeSpaces(),n=e.fetch().text;return t}var $v=e=>{if(!e.parser.settings.displayMode)throw new P(`{`+e.envName+`} can be used only in display mode.`)},ey=new Set([`gather`,`gather*`]);function ty(e){if(!e.includes(`ed`))return!e.includes(`*`)}function ny(e,t,n){var{hskipBeforeAndAfter:r,addJot:i,cols:a,arraystretch:o,colSeparationType:s,autoTag:c,singleRow:l,emptySingleRow:u,maxNumCols:d,leqno:f}=t;if(e.gullet.beginGroup(),l||e.gullet.macros.set(`\\cr`,`\\\\\\relax`),!o){var p=e.gullet.expandMacroAsText(`\\arraystretch`);if(p==null)o=1;else if(o=parseFloat(p),!o||o<0)throw new P(`Invalid \\arraystretch: `+p)}e.gullet.beginGroup();var m=[],h=[m],g=[],_=[],v=c==null?void 0:[];function y(){c&&e.gullet.macros.set(`\\@eqnsw`,`1`,!0)}function b(){v&&(e.gullet.macros.get(`\\df@tag`)?(v.push(e.subparse([new Zv(`\\df@tag`)])),e.gullet.macros.set(`\\df@tag`,void 0,!0)):v.push(!!c&&e.gullet.macros.get(`\\@eqnsw`)===`1`))}for(y(),_.push(Qv(e));;){var x=e.parseExpression(!1,l?`\\end`:`\\\\`);e.gullet.endGroup(),e.gullet.beginGroup();var S={type:`ordgroup`,mode:e.mode,body:x};n&&(S={type:`styling`,mode:e.mode,style:n,resetFont:!0,body:[S]}),m.push(S);var C=e.fetch().text;if(C===`&`){if(d&&m.length===d){if(l||s)throw new P(`Too many tab characters: &`,e.nextToken);e.settings.reportNonstrict(`textEnv`,`Too few columns specified in the {array} column argument.`)}e.consume()}else if(C===`\\end`){b(),m.length===1&&S.type===`styling`&&S.body.length===1&&S.body[0].type===`ordgroup`&&S.body[0].body.length===0&&(h.length>1||!u)&&h.pop(),_.length<h.length+1&&_.push([]);break}else if(C===`\\\\`){e.consume();var w=void 0;e.gullet.future().text!==` `&&(w=e.parseSizeGroup(!0)),g.push(w?w.value:null),b(),_.push(Qv(e)),m=[],h.push(m),y()}else throw new P(`Expected & or \\\\ or \\cr or \\end`,e.nextToken)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:`array`,mode:e.mode,addJot:i,arraystretch:o,body:h,cols:a,rowGaps:g,hskipBeforeAndAfter:r,hLinesBeforeRow:_,colSeparationType:s,tags:v,leqno:f}}function ry(e){return e.slice(0,1)===`d`?`display`:`text`}var iy=function(e,t){var n,r,i=e.body.length,a=e.hLinesBeforeRow,o=0,s=Array(i),c=[],l=Math.max(t.fontMetrics().arrayRuleWidth,t.minRuleThickness),u=1/t.fontMetrics().ptPerEm,d=5*u;e.colSeparationType&&e.colSeparationType===`small`&&(d=.2778*(t.havingStyle(F.SCRIPT).sizeMultiplier/t.sizeMultiplier));var f=e.colSeparationType===`CD`?dh({number:3,unit:`ex`},t):12*u,p=3*u,m=e.arraystretch*f,h=.7*m,g=.3*m,_=0;function v(e){for(var t=0;t<e.length;++t)t>0&&(_+=.25),c.push({pos:_,isDashed:e[t]})}for(v(a[0]),n=0;n<e.body.length;++n){var y=e.body[n],b=h,x=g;o<y.length&&(o=y.length);var S={cells:Array(y.length),height:0,depth:0,pos:0};for(r=0;r<y.length;++r){var C=l_(y[r],t);x<C.depth&&(x=C.depth),b<C.height&&(b=C.height),S.cells[r]=C}var w=e.rowGaps[n],T=0;w&&(T=dh(w,t),T>0&&(T+=g,x<T&&(x=T),T=0)),e.addJot&&n<e.body.length-1&&(x+=p),S.height=b,S.depth=x,_+=b,S.pos=_,_+=x+T,s[n]=S,v(a[n+1])}var E=_/2+t.fontMetrics().axisHeight,ee=e.cols||[],te=[],ne,re,ie=[];if(e.tags&&e.tags.some(e=>e))for(n=0;n<i;++n){var ae=s[n],oe=ae.pos-E,se=e.tags[n],D=void 0;D=se===!0?q([`eqn-num`],[],t):se===!1?q([],[],t):q([],r_(se,t,!0),t),D.depth=ae.depth,D.height=ae.height,ie.push({type:`elem`,elem:D,shift:oe})}for(r=0,re=0;r<o||re<ee.length;++r,++re){for(var ce=ee[re],le=!0;(ue=ce)?.type===`separator`;){var ue;if(le||(ne=q([`arraycolsep`],[]),ne.style.width=I(t.fontMetrics().doubleRuleSep),te.push(ne)),ce.separator===`|`||ce.separator===`:`){var de=ce.separator===`|`?`solid`:`dashed`,fe=q([`vertical-separator`],[],t);fe.style.height=I(_),fe.style.borderRightWidth=I(l),fe.style.borderRightStyle=de,fe.style.margin=`0 `+I(-l/2);var pe=_-E;pe&&(fe.style.verticalAlign=I(-pe)),te.push(fe)}else throw new P(`Invalid separator type: `+ce.separator);re++,ce=ee[re],le=!1}if(!(r>=o)){var me=void 0;(r>0||e.hskipBeforeAndAfter)&&(me=ce?.pregap??d,me!==0&&(ne=q([`arraycolsep`],[]),ne.style.width=I(me),te.push(ne)));var O=[];for(n=0;n<i;++n){var he=s[n],ge=he.cells[r];if(ge){var _e=he.pos-E;ge.depth=he.depth,ge.height=he.height,O.push({type:`elem`,elem:ge,shift:_e})}}var ve=Ig({positionType:`individualShift`,children:O}),ye=q([`col-align-`+(ce?.align||`c`)],[ve]);te.push(ye),(r<o-1||e.hskipBeforeAndAfter)&&(me=ce?.postgap??d,me!==0&&(ne=q([`arraycolsep`],[]),ne.style.width=I(me),te.push(ne)))}}var be=q([`mtable`],te);if(c.length>0){for(var xe=jg(`hline`,t,l),Se=jg(`hdashline`,t,l),Ce=[{type:`elem`,elem:be,shift:0}];c.length>0;){var we=c.pop(),Te=we.pos-E;we.isDashed?Ce.push({type:`elem`,elem:Se,shift:Te}):Ce.push({type:`elem`,elem:xe,shift:Te})}be=Ig({positionType:`individualShift`,children:Ce})}if(ie.length===0)return q([`mord`],[be],t);var Ee=q([`tag`],[Ig({positionType:`individualShift`,children:ie})],t);return Ng([be,Ee])},ay={c:`center `,l:`left `,r:`right `},oy=function(e,t){for(var n=[],r=new Y(`mtd`,[],[`mtr-glue`]),i=new Y(`mtd`,[],[`mml-eqn-num`]),a=0;a<e.body.length;a++){for(var o=e.body[a],s=[],c=0;c<o.length;c++)s.push(new Y(`mtd`,[w_(o[c],t)]));e.tags&&e.tags[a]&&(s.unshift(r),s.push(r),e.leqno?s.unshift(i):s.push(i)),n.push(new Y(`mtr`,s))}var l=new Y(`mtable`,n),u=e.arraystretch===.5?.1:.16+e.arraystretch-1+(e.addJot?.09:0);l.setAttribute(`rowspacing`,I(u));var d=``,f=``;if(e.cols&&e.cols.length>0){var p=e.cols,m=``,h=!1,g=0,_=p.length;p[0].type===`separator`&&(d+=`top `,g=1),p[p.length-1].type===`separator`&&(d+=`bottom `,--_);for(var v=g;v<_;v++){var y=p[v];y.type===`align`?(f+=ay[y.align],h&&(m+=`none `),h=!0):y.type===`separator`&&(h&&=(m+=y.separator===`|`?`solid `:`dashed `,!1))}l.setAttribute(`columnalign`,f.trim()),/[sd]/.test(m)&&l.setAttribute(`columnlines`,m.trim())}if(e.colSeparationType===`align`){for(var b=e.cols||[],x=``,S=1;S<b.length;S++)x+=S%2?`0em `:`1em `;l.setAttribute(`columnspacing`,x.trim())}else e.colSeparationType===`alignat`||e.colSeparationType===`gather`?l.setAttribute(`columnspacing`,`0em`):e.colSeparationType===`small`?l.setAttribute(`columnspacing`,`0.2778em`):e.colSeparationType===`CD`?l.setAttribute(`columnspacing`,`0.5em`):l.setAttribute(`columnspacing`,`1em`);var C=``,w=e.hLinesBeforeRow;d+=w[0].length>0?`left `:``,d+=w[w.length-1].length>0?`right `:``;for(var T=1;T<w.length-1;T++)C+=w[T].length===0?`none `:w[T][0]?`dashed `:`solid `;return/[sd]/.test(C)&&l.setAttribute(`rowlines`,C.trim()),d!==``&&(l=new Y(`menclose`,[l]),l.setAttribute(`notation`,d.trim())),e.arraystretch&&e.arraystretch<1&&(l=new Y(`mstyle`,[l]),l.setAttribute(`scriptlevel`,`1`)),l},sy=function(e,t){e.envName.includes(`ed`)||$v(e);var n=[],r=e.envName.includes(`at`)?`alignat`:`align`,i=e.envName===`split`,a=ny(e.parser,{cols:n,addJot:!0,autoTag:i?void 0:ty(e.envName),emptySingleRow:!0,colSeparationType:r,maxNumCols:i?2:void 0,leqno:e.parser.settings.leqno},`display`),o=0,s=0,c={type:`ordgroup`,mode:e.mode,body:[]};if(t[0]&&t[0].type===`ordgroup`){for(var l=``,u=0;u<t[0].body.length;u++){var d=X(t[0].body[u],`textord`);l+=d.text}o=Number(l),s=o*2}var f=!s;a.body.forEach(function(e){for(var t=1;t<e.length;t+=2)X(X(e[t],`styling`).body[0],`ordgroup`).body.unshift(c);if(f)s<e.length&&(s=e.length);else{var n=e.length/2;if(o<n)throw new P(`Too many math in a row: `+(`expected `+o+`, but got `+n),e[0])}});for(var p=0;p<s;++p){var m=`r`,h=0;p%2==1?m=`l`:p>0&&f&&(h=1),n[p]={type:`align`,align:m,pregap:h,postgap:0}}return a.colSeparationType=f?`align`:`alignat`,a};Jv({type:`array`,names:[`array`,`darray`],props:{numArgs:1},handler(e,t){var n=(W_(t[0])?[t[0]]:X(t[0],`ordgroup`).body).map(function(e){var t=U_(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 P(`Unknown column alignment: `+t,e)}),r={cols:n,hskipBeforeAndAfter:!0,maxNumCols:n.length};return ny(e.parser,r,ry(e.envName))},htmlBuilder:iy,mathmlBuilder:oy}),Jv({type:`array`,names:[`matrix`,`pmatrix`,`bmatrix`,`Bmatrix`,`vmatrix`,`Vmatrix`,`matrix*`,`pmatrix*`,`bmatrix*`,`Bmatrix*`,`vmatrix*`,`Vmatrix*`],props:{numArgs:0},handler(e){var t={matrix:null,pmatrix:[`(`,`)`],bmatrix:[`[`,`]`],Bmatrix:[`\\{`,`\\}`],vmatrix:[`|`,`|`],Vmatrix:[`\\Vert`,`\\Vert`]}[e.envName.replace(`*`,``)],n=`c`,r={hskipBeforeAndAfter:!1,cols:[{type:`align`,align:n}]};if(e.envName.charAt(e.envName.length-1)===`*`){var i=e.parser;if(i.consumeSpaces(),i.fetch().text===`[`){if(i.consume(),i.consumeSpaces(),n=i.fetch().text,!`lcr`.includes(n))throw new P(`Expected l or c or r`,i.nextToken);i.consume(),i.consumeSpaces(),i.expect(`]`),i.consume(),r.cols=[{type:`align`,align:n}]}}var a=ny(e.parser,r,ry(e.envName)),o=Math.max(0,...a.body.map(e=>e.length));return a.cols=Array(o).fill({type:`align`,align:n}),t?{type:`leftright`,mode:e.mode,body:[a],left:t[0],right:t[1],rightColor:void 0}:a},htmlBuilder:iy,mathmlBuilder:oy}),Jv({type:`array`,names:[`smallmatrix`],props:{numArgs:0},handler(e){var t=ny(e.parser,{arraystretch:.5},`script`);return t.colSeparationType=`small`,t},htmlBuilder:iy,mathmlBuilder:oy}),Jv({type:`array`,names:[`subarray`],props:{numArgs:1},handler(e,t){var n=(W_(t[0])?[t[0]]:X(t[0],`ordgroup`).body).map(function(e){var t=U_(e).text;if(`lc`.includes(t))return{type:`align`,align:t};throw new P(`Unknown column alignment: `+t,e)});if(n.length>1)throw new P(`{subarray} can contain only one column`);var r={cols:n,hskipBeforeAndAfter:!1,arraystretch:.5},i=ny(e.parser,r,`script`);if(i.body.length>0&&i.body[0].length>1)throw new P(`{subarray} can contain only one column`);return i},htmlBuilder:iy,mathmlBuilder:oy}),Jv({type:`array`,names:[`cases`,`dcases`,`rcases`,`drcases`],props:{numArgs:0},handler(e){var t=ny(e.parser,{arraystretch:1.2,cols:[{type:`align`,align:`l`,pregap:0,postgap:1},{type:`align`,align:`l`,pregap:0,postgap:0}]},ry(e.envName));return{type:`leftright`,mode:e.mode,body:[t],left:e.envName.includes(`r`)?`.`:`\\{`,right:e.envName.includes(`r`)?`\\}`:`.`,rightColor:void 0}},htmlBuilder:iy,mathmlBuilder:oy}),Jv({type:`array`,names:[`align`,`align*`,`aligned`,`split`],props:{numArgs:0},handler:sy,htmlBuilder:iy,mathmlBuilder:oy}),Jv({type:`array`,names:[`gathered`,`gather`,`gather*`],props:{numArgs:0},handler(e){ey.has(e.envName)&&$v(e);var t={cols:[{type:`align`,align:`c`}],addJot:!0,colSeparationType:`gather`,autoTag:ty(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return ny(e.parser,t,`display`)},htmlBuilder:iy,mathmlBuilder:oy}),Jv({type:`array`,names:[`alignat`,`alignat*`,`alignedat`],props:{numArgs:1},handler:sy,htmlBuilder:iy,mathmlBuilder:oy}),Jv({type:`array`,names:[`equation`,`equation*`],props:{numArgs:0},handler(e){$v(e);var t={autoTag:ty(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return ny(e.parser,t,`display`)},htmlBuilder:iy,mathmlBuilder:oy}),Jv({type:`array`,names:[`CD`],props:{numArgs:0},handler(e){return $v(e),iv(e.parser)},htmlBuilder:iy,mathmlBuilder:oy}),Z(`\\nonumber`,`\\gdef\\@eqnsw{0}`),Z(`\\notag`,`\\nonumber`),J({type:`text`,names:[`\\hline`,`\\hdashline`],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new P(e.funcName+` valid only within array environment`)}});var cy=qv;J({type:`environment`,names:[`\\begin`,`\\end`],props:{numArgs:1,argTypes:[`text`]},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];if(i.type!==`ordgroup`)throw new P(`Invalid environment name`,i);for(var a=``,o=0;o<i.body.length;++o)a+=X(i.body[o],`textord`).text;if(r===`\\begin`){if(!cy.hasOwnProperty(a))throw new P(`No such environment: `+a,i);var s=cy[a],{args:c,optArgs:l}=n.parseArguments(`\\begin{`+a+`}`,s),u={mode:n.mode,envName:a,parser:n},d=s.handler(u,c,l);n.expect(`\\end`,!1);var f=n.nextToken,p=X(n.parseFunction(),`environment`);if(p.name!==a)throw new P(`Mismatch: \\begin{`+a+`} matched by \\end{`+p.name+`}`,f);return d}return{type:`environment`,mode:n.mode,name:a,nameGroup:i}}});var ly=(e,t)=>{var n=e.font,r=t.withFont(n);return l_(e.body,r)},uy=(e,t)=>{var n=e.font,r=t.withFont(n);return w_(e.body,r)},dy={"\\Bbb":`\\mathbb`,"\\bold":`\\mathbf`,"\\frak":`\\mathfrak`};J({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:n,funcName:r}=e,i=Zg(t[0]),a=r;return a in dy&&(a=dy[a]),{type:`font`,mode:n.mode,font:a.slice(1),body:i}},htmlBuilder:ly,mathmlBuilder:uy}),J({type:`mclass`,names:[`\\boldsymbol`,`\\bm`],props:{numArgs:1},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:`mclass`,mode:n.mode,mclass:Q_(r),body:[{type:`font`,mode:n.mode,font:`boldsymbol`,body:r}],isCharacterBox:bm(r)}}}),J({type:`font`,names:[`\\rm`,`\\sf`,`\\tt`,`\\bf`,`\\it`,`\\cal`],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r,breakOnTokenText:i}=e,{mode:a}=n,o=n.parseExpression(!0,i);return{type:`font`,mode:a,font:`math`+r.slice(1),body:{type:`ordgroup`,mode:n.mode,body:o}}},htmlBuilder:ly,mathmlBuilder:uy});var fy=(e,t)=>{var n=t.style,r=n.fracNum(),i=n.fracDen(),a=t.havingStyle(r),o=l_(e.numer,a,t);if(e.continued){var s=8.5/t.fontMetrics().ptPerEm,c=3.5/t.fontMetrics().ptPerEm;o.height=o.height<s?s:o.height,o.depth=o.depth<c?c:o.depth}a=t.havingStyle(i);var l=l_(e.denom,a,t),u,d,f;e.hasBarLine?(e.barSize?(d=dh(e.barSize,t),u=jg(`frac-line`,t,d)):u=jg(`frac-line`,t),d=u.height,f=u.height):(u=null,d=0,f=t.fontMetrics().defaultRuleThickness);var p,m,h;n.size===F.DISPLAY.size?(p=t.fontMetrics().num1,m=d>0?3*f:7*f,h=t.fontMetrics().denom1):(d>0?(p=t.fontMetrics().num2,m=f):(p=t.fontMetrics().num3,m=3*f),h=t.fontMetrics().denom2);var g;if(u){var _=t.fontMetrics().axisHeight;p-o.depth-(_+.5*d)<m&&(p+=m-(p-o.depth-(_+.5*d))),_-.5*d-(l.height-h)<m&&(h+=m-(_-.5*d-(l.height-h)));var v=-(_-.5*d);g=Ig({positionType:`individualShift`,children:[{type:`elem`,elem:l,shift:h},{type:`elem`,elem:u,shift:v},{type:`elem`,elem:o,shift:-p}]})}else{var y=p-o.depth-(l.height-h);y<m&&(p+=.5*(m-y),h+=.5*(m-y)),g=Ig({positionType:`individualShift`,children:[{type:`elem`,elem:l,shift:h},{type:`elem`,elem:o,shift:-p}]})}a=t.havingStyle(n),g.height*=a.sizeMultiplier/t.sizeMultiplier,g.depth*=a.sizeMultiplier/t.sizeMultiplier;var b=n.size===F.DISPLAY.size?t.fontMetrics().delim1:n.size===F.SCRIPTSCRIPT.size?t.havingStyle(F.SCRIPT).fontMetrics().delim2:t.fontMetrics().delim2,x=e.leftDelim==null?c_(t,[`mopen`]):Rv(e.leftDelim,b,!0,t.havingStyle(n),e.mode,[`mopen`]),S=e.continued?q([]):e.rightDelim==null?c_(t,[`mclose`]):Rv(e.rightDelim,b,!0,t.havingStyle(n),e.mode,[`mclose`]);return q([`mord`].concat(a.sizingClasses(t)),[x,q([`mfrac`],[g]),S],t)},py=(e,t)=>{var n=new Y(`mfrac`,[w_(e.numer,t),w_(e.denom,t)]);if(!e.hasBarLine)n.setAttribute(`linethickness`,`0px`);else if(e.barSize){var r=dh(e.barSize,t);n.setAttribute(`linethickness`,I(r))}if(e.leftDelim!=null||e.rightDelim!=null){var i=[];if(e.leftDelim!=null){var a=new Y(`mo`,[new p_(e.leftDelim.replace(`\\`,``))]);a.setAttribute(`fence`,`true`),i.push(a)}if(i.push(n),e.rightDelim!=null){var o=new Y(`mo`,[new p_(e.rightDelim.replace(`\\`,``))]);o.setAttribute(`fence`,`true`),i.push(o)}return v_(i)}return n},my=(e,t)=>t?{type:`styling`,mode:e.mode,style:t,body:[e]}:e;J({type:`genfrac`,names:[`\\cfrac`,`\\dfrac`,`\\frac`,`\\tfrac`,`\\dbinom`,`\\binom`,`\\tbinom`,`\\\\atopfrac`,`\\\\bracefrac`,`\\\\brackfrac`],props:{numArgs:2,allowedInArgument:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0],a=t[1],o,s=null,c=null;switch(r){case`\\cfrac`:case`\\dfrac`:case`\\frac`:case`\\tfrac`:o=!0;break;case`\\\\atopfrac`:o=!1;break;case`\\dbinom`:case`\\binom`:case`\\tbinom`:o=!1,s=`(`,c=`)`;break;case`\\\\bracefrac`:o=!1,s=`\\{`,c=`\\}`;break;case`\\\\brackfrac`:o=!1,s=`[`,c=`]`;break;default:throw Error(`Unrecognized genfrac command`)}var l=r===`\\cfrac`,u=null;return l||r.startsWith(`\\d`)?u=`display`:r.startsWith(`\\t`)&&(u=`text`),my({type:`genfrac`,mode:n.mode,numer:i,denom:a,continued:l,hasBarLine:o,leftDelim:s,rightDelim:c,barSize:null},u)},htmlBuilder:fy,mathmlBuilder:py}),J({type:`infix`,names:[`\\over`,`\\choose`,`\\atop`,`\\brace`,`\\brack`],props:{numArgs:0,infix:!0},handler(e){var{parser:t,funcName:n,token:r}=e,i;switch(n){case`\\over`:i=`\\frac`;break;case`\\choose`:i=`\\binom`;break;case`\\atop`:i=`\\\\atopfrac`;break;case`\\brace`:i=`\\\\bracefrac`;break;case`\\brack`:i=`\\\\brackfrac`;break;default:throw Error(`Unrecognized infix genfrac command`)}return{type:`infix`,mode:t.mode,replaceWith:i,token:r}}});var hy=[`display`,`text`,`script`,`scriptscript`],gy=function(e){var t=null;return e.length>0&&(t=e,t=t===`.`?null:t),t};J({type:`genfrac`,names:[`\\genfrac`],props:{numArgs:6,allowedInArgument:!0,argTypes:[`math`,`math`,`size`,`text`,`math`,`math`]},handler(e,t){var{parser:n}=e,r=t[4],i=t[5],a=Zg(t[0]),o=a.type===`atom`&&a.family===`open`?gy(a.text):null,s=Zg(t[1]),c=s.type===`atom`&&s.family===`close`?gy(s.text):null,l=X(t[2],`size`),u,d=null;l.isBlank?u=!0:(d=l.value,u=d.number>0);var f=null,p=t[3];if(p.type===`ordgroup`){if(p.body.length>0){var m=X(p.body[0],`textord`);f=hy[Number(m.text)]}}else p=X(p,`textord`),f=hy[Number(p.text)];return my({type:`genfrac`,mode:n.mode,numer:r,denom:i,continued:!1,hasBarLine:u,barSize:d,leftDelim:o,rightDelim:c},f)}}),J({type:`infix`,names:[`\\above`],props:{numArgs:1,argTypes:[`size`],infix:!0},handler(e,t){var{parser:n,funcName:r,token:i}=e;return{type:`infix`,mode:n.mode,replaceWith:`\\\\abovefrac`,size:X(t[0],`size`).value,token:i}}}),J({type:`genfrac`,names:[`\\\\abovefrac`],props:{numArgs:3,argTypes:[`math`,`size`,`math`]},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0],a=X(t[1],`infix`).size;if(!a)throw Error(`\\\\abovefrac expected size, but got `+String(a));var o=t[2],s=a.number>0;return{type:`genfrac`,mode:n.mode,numer:i,denom:o,continued:!1,hasBarLine:s,barSize:a,leftDelim:null,rightDelim:null}}});var _y=(e,t)=>{var n=t.style,r,i;e.type===`supsub`?(r=e.sup?l_(e.sup,t.havingStyle(n.sup()),t):l_(e.sub,t.havingStyle(n.sub()),t),i=X(e.base,`horizBrace`)):i=X(e,`horizBrace`);var a=l_(i.base,t.havingBaseStyle(F.DISPLAY)),o=R_(i,t),s=i.isOver?Ig({positionType:`firstBaseline`,children:[{type:`elem`,elem:a},{type:`kern`,size:.1},{type:`elem`,elem:o,wrapperClasses:[`svg-align`]}]}):Ig({positionType:`bottom`,positionData:a.depth+.1+o.height,children:[{type:`elem`,elem:o,wrapperClasses:[`svg-align`]},{type:`kern`,size:.1},{type:`elem`,elem:a}]});if(r){var c=q([`minner`,i.isOver?`mover`:`munder`],[s],t);s=i.isOver?Ig({positionType:`firstBaseline`,children:[{type:`elem`,elem:c},{type:`kern`,size:.2},{type:`elem`,elem:r}]}):Ig({positionType:`bottom`,positionData:c.depth+.2+r.height+r.depth,children:[{type:`elem`,elem:r},{type:`kern`,size:.2},{type:`elem`,elem:c}]})}return q([`minner`,i.isOver?`mover`:`munder`],[s],t)};J({type:`horizBrace`,names:[`\\overbrace`,`\\underbrace`,`\\overbracket`,`\\underbracket`],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e;return{type:`horizBrace`,mode:n.mode,label:r,isOver:r.includes(`\\over`),base:t[0]}},htmlBuilder:_y,mathmlBuilder:(e,t)=>{var n=F_(e.label);return new Y(e.isOver?`mover`:`munder`,[w_(e.base,t),n])}}),J({type:`href`,names:[`\\href`],props:{numArgs:2,argTypes:[`url`,`original`],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[1],i=X(t[0],`url`).url;return n.settings.isTrusted({command:`\\href`,url:i})?{type:`href`,mode:n.mode,href:i,body:Qg(r)}:n.formatUnsupportedCmd(`\\href`)},htmlBuilder:(e,t)=>{var n=r_(e.body,t,!1);return Mg(e.href,[],n,t)},mathmlBuilder:(e,t)=>{var n=C_(e.body,t);return n instanceof Y||(n=new Y(`mrow`,[n])),n.setAttribute(`href`,e.href),n}}),J({type:`href`,names:[`\\url`],props:{numArgs:1,argTypes:[`url`],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=X(t[0],`url`).url;if(!n.settings.isTrusted({command:`\\url`,url:r}))return n.formatUnsupportedCmd(`\\url`);for(var i=[],a=0;a<r.length;a++){var o=r[a];o===`~`&&(o=`\\textasciitilde`),i.push({type:`textord`,mode:`text`,text:o})}var s={type:`text`,mode:n.mode,font:`\\texttt`,body:i};return{type:`href`,mode:n.mode,href:r,body:Qg(s)}}}),J({type:`hbox`,names:[`\\hbox`],props:{numArgs:1,argTypes:[`text`],allowedInText:!0,primitive:!0},handler(e,t){var{parser:n}=e;return{type:`hbox`,mode:n.mode,body:Qg(t[0])}},htmlBuilder(e,t){return Ng(r_(e.body,t.withFont(``),!1))},mathmlBuilder(e,t){return new Y(`mrow`,S_(e.body,t.withFont(``)))}}),J({type:`html`,names:[`\\htmlClass`,`\\htmlId`,`\\htmlStyle`,`\\htmlData`],props:{numArgs:2,argTypes:[`raw`,`original`],allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r,token:i}=e,a=X(t[0],`raw`).string,o=t[1];n.settings.strict&&n.settings.reportNonstrict(`htmlExtension`,`HTML extension is disabled on strict mode`);var s,c={};switch(r){case`\\htmlClass`:c.class=a,s={command:`\\htmlClass`,class:a};break;case`\\htmlId`:c.id=a,s={command:`\\htmlId`,id:a};break;case`\\htmlStyle`:c.style=a,s={command:`\\htmlStyle`,style:a};break;case`\\htmlData`:for(var l=a.split(`,`),u=0;u<l.length;u++){var d=l[u],f=d.indexOf(`=`);if(f<0)throw new P(`\\htmlData key/value '`+d+`' missing equals sign`);var p=d.slice(0,f),m=d.slice(f+1);c[`data-`+p.trim()]=m}s={command:`\\htmlData`,attributes:c};break;default:throw Error(`Unrecognized html command`)}return n.settings.isTrusted(s)?{type:`html`,mode:n.mode,attributes:c,body:Qg(o)}:n.formatUnsupportedCmd(r)},htmlBuilder:(e,t)=>{var n=r_(e.body,t,!1),r=[`enclosing`];e.attributes.class&&r.push(...e.attributes.class.trim().split(/\s+/));var i=q(r,n,t);for(var a in e.attributes)a!==`class`&&e.attributes.hasOwnProperty(a)&&i.setAttribute(a,e.attributes[a]);return i},mathmlBuilder:(e,t)=>C_(e.body,t)}),J({type:`htmlmathml`,names:[`\\html@mathml`],props:{numArgs:2,allowedInArgument:!0,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e;return{type:`htmlmathml`,mode:n.mode,html:Qg(t[0]),mathml:Qg(t[1])}},htmlBuilder:(e,t)=>Ng(r_(e.html,t,!1)),mathmlBuilder:(e,t)=>C_(e.mathml,t)});var vy=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 P(`Invalid size: '`+e+`' in \\includegraphics`);var n={number:+(t[1]+t[2]),unit:t[3]};if(!uh(n))throw new P(`Invalid unit: '`+n.unit+`' in \\includegraphics.`);return n};J({type:`includegraphics`,names:[`\\includegraphics`],props:{numArgs:1,numOptionalArgs:1,argTypes:[`raw`,`url`],allowedInText:!1},handler:(e,t,n)=>{var{parser:r}=e,i={number:0,unit:`em`},a={number:.9,unit:`em`},o={number:0,unit:`em`},s=``;if(n[0])for(var c=X(n[0],`raw`).string.split(`,`),l=0;l<c.length;l++){var u=c[l].split(`=`);if(u.length===2){var d=u[1].trim();switch(u[0].trim()){case`alt`:s=d;break;case`width`:i=vy(d);break;case`height`:a=vy(d);break;case`totalheight`:o=vy(d);break;default:throw new P(`Invalid key: '`+u[0]+`' in \\includegraphics.`)}}}var f=X(t[0],`url`).url;return s===``&&(s=f,s=s.replace(/^.*[\\/]/,``),s=s.substring(0,s.lastIndexOf(`.`))),r.settings.isTrusted({command:`\\includegraphics`,url:f})?{type:`includegraphics`,mode:r.mode,alt:s,width:i,height:a,totalheight:o,src:f}:r.formatUnsupportedCmd(`\\includegraphics`)},htmlBuilder:(e,t)=>{var n=dh(e.height,t),r=0;e.totalheight.number>0&&(r=dh(e.totalheight,t)-n);var i=0;e.width.number>0&&(i=dh(e.width,t));var a={height:I(n+r)};i>0&&(a.width=I(i)),r>0&&(a.verticalAlign=I(-r));var o=new bh(e.src,e.alt,a);return o.height=n,o.depth=r,o},mathmlBuilder:(e,t)=>{var n=new Y(`mglyph`,[]);n.setAttribute(`alt`,e.alt);var r=dh(e.height,t),i=0;if(e.totalheight.number>0&&(i=dh(e.totalheight,t)-r,n.setAttribute(`valign`,I(-i))),n.setAttribute(`height`,I(r+i)),e.width.number>0){var a=dh(e.width,t);n.setAttribute(`width`,I(a))}return n.setAttribute(`src`,e.src),n}}),J({type:`kern`,names:[`\\kern`,`\\mkern`,`\\hskip`,`\\mskip`],props:{numArgs:1,argTypes:[`size`],primitive:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e,i=X(t[0],`size`);if(n.settings.strict){var a=r[1]===`m`,o=i.value.unit===`mu`;a?(o||n.settings.reportNonstrict(`mathVsTextUnits`,`LaTeX's `+r+` supports only mu units, `+(`not `+i.value.unit+` units`)),n.mode!==`math`&&n.settings.reportNonstrict(`mathVsTextUnits`,`LaTeX's `+r+` works only in math mode`)):o&&n.settings.reportNonstrict(`mathVsTextUnits`,`LaTeX's `+r+` doesn't support mu units`)}return{type:`kern`,mode:n.mode,dimension:i.value}},htmlBuilder(e,t){return Lg(e.dimension,t)},mathmlBuilder(e,t){return new m_(dh(e.dimension,t))}}),J({type:`lap`,names:[`\\mathllap`,`\\mathrlap`,`\\mathclap`],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:`lap`,mode:n.mode,alignment:r.slice(5),body:i}},htmlBuilder:(e,t)=>{var n;e.alignment===`clap`?(n=q([],[l_(e.body,t)]),n=q([`inner`],[n],t)):n=q([`inner`],[l_(e.body,t)]);var r=q([`fix`],[]),i=q([e.alignment],[n,r],t),a=q([`strut`]);return a.style.height=I(i.height+i.depth),i.depth&&(a.style.verticalAlign=I(-i.depth)),i.children.unshift(a),i=q([`thinbox`],[i],t),q([`mord`,`vbox`],[i],t)},mathmlBuilder:(e,t)=>{var n=new Y(`mpadded`,[w_(e.body,t)]);if(e.alignment!==`rlap`){var r=e.alignment===`llap`?`-1`:`-0.5`;n.setAttribute(`lspace`,r+`width`)}return n.setAttribute(`width`,`0px`),n}}),J({type:`styling`,names:[`\\(`,`$`],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:n,parser:r}=e,i=r.mode;r.switchMode(`math`);var a=n===`\\(`?`\\)`:`$`,o=r.parseExpression(!1,a);return r.expect(a),r.switchMode(i),{type:`styling`,mode:r.mode,style:`text`,resetFont:!0,body:o}}}),J({type:`text`,names:[`\\)`,`\\]`],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new P(`Mismatched `+e.funcName)}});var yy=(e,t)=>{switch(t.style.size){case F.DISPLAY.size:return e.display;case F.TEXT.size:return e.text;case F.SCRIPT.size:return e.script;case F.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};J({type:`mathchoice`,names:[`\\mathchoice`],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:n}=e;return{type:`mathchoice`,mode:n.mode,display:Qg(t[0]),text:Qg(t[1]),script:Qg(t[2]),scriptscript:Qg(t[3])}},htmlBuilder:(e,t)=>Ng(r_(yy(e,t),t,!1)),mathmlBuilder:(e,t)=>C_(yy(e,t),t)});var by=(e,t,n,r,i,a,o)=>{e=q([],[e]);var s=n&&bm(n),c,l;if(t){var u=l_(t,r.havingStyle(i.sup()),r);l={elem:u,kern:Math.max(r.fontMetrics().bigOpSpacing1,r.fontMetrics().bigOpSpacing3-u.depth)}}if(n){var d=l_(n,r.havingStyle(i.sub()),r);c={elem:d,kern:Math.max(r.fontMetrics().bigOpSpacing2,r.fontMetrics().bigOpSpacing4-d.height)}}var f;if(l&&c)f=Ig({positionType:`bottom`,positionData:r.fontMetrics().bigOpSpacing5+c.elem.height+c.elem.depth+c.kern+e.depth+o,children:[{type:`kern`,size:r.fontMetrics().bigOpSpacing5},{type:`elem`,elem:c.elem,marginLeft:I(-a)},{type:`kern`,size:c.kern},{type:`elem`,elem:e},{type:`kern`,size:l.kern},{type:`elem`,elem:l.elem,marginLeft:I(a)},{type:`kern`,size:r.fontMetrics().bigOpSpacing5}]});else if(c)f=Ig({positionType:`top`,positionData:e.height-o,children:[{type:`kern`,size:r.fontMetrics().bigOpSpacing5},{type:`elem`,elem:c.elem,marginLeft:I(-a)},{type:`kern`,size:c.kern},{type:`elem`,elem:e}]});else if(l)f=Ig({positionType:`bottom`,positionData:e.depth+o,children:[{type:`elem`,elem:e},{type:`kern`,size:l.kern},{type:`elem`,elem:l.elem,marginLeft:I(a)},{type:`kern`,size:r.fontMetrics().bigOpSpacing5}]});else return e;var p=[f];if(c&&a!==0&&!s){var m=q([`mspace`],[],r);m.style.marginRight=I(a),p.unshift(m)}return q([`mop`,`op-limits`],p,r)},xy=new Set([`\\smallint`]),Sy=(e,t)=>{var n,r,i=!1,a;e.type===`supsub`?(n=e.sup,r=e.sub,a=X(e.base,`op`),i=!0):a=X(e,`op`);var o=t.style,s=!1;o.size===F.DISPLAY.size&&a.symbol&&!xy.has(a.name)&&(s=!0);var c,l;if(a.symbol){var u=s?`Size2-Regular`:`Size1-Regular`,d=``;if((a.name===`\\oiint`||a.name===`\\oiiint`)&&(d=a.name.slice(1),a.name=d===`oiint`?`\\iint`:`\\iiint`),c=Cg(a.name,u,`math`,t,[`mop`,`op-symbol`,s?`large-op`:`small-op`]),l=c.italic,d.length>0){var f=Vg(d+`Size`+(s?`2`:`1`),t);c=Ig({positionType:`individualShift`,children:[{type:`elem`,elem:c,shift:0},{type:`elem`,elem:f,shift:s?.08:0}]}),a.name=`\\`+d,c.classes.unshift(`mop`),c.italic=l}}else if(a.body){var p=r_(a.body,t,!0);p.length===1&&p[0]instanceof Sh?(c=p[0],c.classes[0]=`mop`):c=q([`mop`],p,t)}else{for(var m=[],h=1;h<a.name.length;h++)m.push(wg(a.name[h],a.mode,t));c=q([`mop`],m,t)}var g=0,_=0;return(c instanceof Sh||a.name===`\\oiint`||a.name===`\\oiiint`)&&!a.suppressBaseShift&&(g=(c.height-c.depth)/2-t.fontMetrics().axisHeight,_=c.italic??0),i?by(c,n,r,t,o,_,g):(g&&(c.style.position=`relative`,c.style.top=I(g)),c)},Cy=(e,t)=>{var n;if(e.symbol)n=new Y(`mo`,[__(e.name,e.mode)]),xy.has(e.name)&&n.setAttribute(`largeop`,`false`);else if(e.body)n=new Y(`mo`,S_(e.body,t));else{n=new Y(`mi`,[new p_(e.name.slice(1))]);var r=new Y(`mo`,[__(``,`text`)]);n=e.parentIsSupSub?new Y(`mrow`,[n,r]):f_([n,r])}return n},wy={"∏":`\\prod`,"∐":`\\coprod`,"∑":`\\sum`,"⋀":`\\bigwedge`,"⋁":`\\bigvee`,"⋂":`\\bigcap`,"⋃":`\\bigcup`,"⨀":`\\bigodot`,"⨁":`\\bigoplus`,"⨂":`\\bigotimes`,"⨄":`\\biguplus`,"⨆":`\\bigsqcup`};J({type:`op`,names:`\\coprod.\\bigvee.\\bigwedge.\\biguplus.\\bigcap.\\bigcup.\\intop.\\prod.\\sum.\\bigotimes.\\bigoplus.\\bigodot.\\bigsqcup.\\smallint.∏.∐.∑.⋀.⋁.⋂.⋃.⨀.⨁.⨂.⨄.⨆`.split(`.`),props:{numArgs:0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=r;return i.length===1&&(i=wy[i]),{type:`op`,mode:n.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:i}},htmlBuilder:Sy,mathmlBuilder:Cy}),J({type:`op`,names:[`\\mathop`],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:`op`,mode:n.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:Qg(r)}},htmlBuilder:Sy,mathmlBuilder:Cy});var Ty={"∫":`\\int`,"∬":`\\iint`,"∭":`\\iiint`,"∮":`\\oint`,"∯":`\\oiint`,"∰":`\\oiiint`};J({type:`op`,names:`\\arcsin.\\arccos.\\arctan.\\arctg.\\arcctg.\\arg.\\ch.\\cos.\\cosec.\\cosh.\\cot.\\cotg.\\coth.\\csc.\\ctg.\\cth.\\deg.\\dim.\\exp.\\hom.\\ker.\\lg.\\ln.\\log.\\sec.\\sin.\\sinh.\\sh.\\tan.\\tanh.\\tg.\\th`.split(`.`),props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:`op`,mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:Sy,mathmlBuilder:Cy}),J({type:`op`,names:[`\\det`,`\\gcd`,`\\inf`,`\\lim`,`\\max`,`\\min`,`\\Pr`,`\\sup`],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:`op`,mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:Sy,mathmlBuilder:Cy}),J({type:`op`,names:[`\\int`,`\\iint`,`\\iiint`,`\\oint`,`\\oiint`,`\\oiiint`,`∫`,`∬`,`∭`,`∮`,`∯`,`∰`],props:{numArgs:0,allowedInArgument:!0},handler(e){var{parser:t,funcName:n}=e,r=n;return r.length===1&&(r=Ty[r]),{type:`op`,mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:r}},htmlBuilder:Sy,mathmlBuilder:Cy});var Ey=(e,t)=>{var n,r,i=!1,a;e.type===`supsub`?(n=e.sup,r=e.sub,a=X(e.base,`operatorname`),i=!0):a=X(e,`operatorname`);var o;if(a.body.length>0){for(var s=r_(a.body.map(e=>{var t=`text`in e?e.text:void 0;return typeof t==`string`?{type:`textord`,mode:e.mode,text:t}:e}),t.withFont(`mathrm`),!0),c=0;c<s.length;c++){var l=s[c];l instanceof Sh&&(l.text=l.text.replace(/\u2212/,`-`).replace(/\u2217/,`*`))}o=q([`mop`],s,t)}else o=q([`mop`],[],t);return i?by(o,n,r,t,t.style,0,0):o};J({type:`operatorname`,names:[`\\operatorname@`,`\\operatornamewithlimits`],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:`operatorname`,mode:n.mode,body:Qg(i),alwaysHandleSupSub:r===`\\operatornamewithlimits`,limits:!1,parentIsSupSub:!1}},htmlBuilder:Ey,mathmlBuilder:(e,t)=>{for(var n=S_(e.body,t.withFont(`mathrm`)),r=!0,i=0;i<n.length;i++){var a=n[i];if(!(a instanceof m_))if(a instanceof Y)switch(a.type){case`mi`:case`mn`:case`mspace`:case`mtext`:break;case`mo`:var o=a.children[0];a.children.length===1&&o instanceof p_?o.text=o.text.replace(/\u2212/,`-`).replace(/\u2217/,`*`):r=!1;break;default:r=!1}else r=!1}r&&(n=[new p_(n.map(e=>e.toText()).join(``))]);var s=new Y(`mi`,n);s.setAttribute(`mathvariant`,`normal`);var c=new Y(`mo`,[__(``,`text`)]);return e.parentIsSupSub?new Y(`mrow`,[s,c]):f_([s,c])}}),Z(`\\operatorname`,`\\@ifstar\\operatornamewithlimits\\operatorname@`),Xg({type:`ordgroup`,htmlBuilder(e,t){return e.semisimple?Ng(r_(e.body,t,!1)):q([`mord`],r_(e.body,t,!0),t)},mathmlBuilder(e,t){return C_(e.body,t,!0)}}),J({type:`overline`,names:[`\\overline`],props:{numArgs:1},handler(e,t){var{parser:n}=e,r=t[0];return{type:`overline`,mode:n.mode,body:r}},htmlBuilder(e,t){var n=l_(e.body,t.havingCrampedStyle()),r=jg(`overline-line`,t),i=t.fontMetrics().defaultRuleThickness;return q([`mord`,`overline`],[Ig({positionType:`firstBaseline`,children:[{type:`elem`,elem:n},{type:`kern`,size:3*i},{type:`elem`,elem:r},{type:`kern`,size:i}]})],t)},mathmlBuilder(e,t){var n=new Y(`mo`,[new p_(`‾`)]);n.setAttribute(`stretchy`,`true`);var r=new Y(`mover`,[w_(e.body,t),n]);return r.setAttribute(`accent`,`true`),r}}),J({type:`phantom`,names:[`\\phantom`],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:`phantom`,mode:n.mode,body:Qg(r)}},htmlBuilder:(e,t)=>Ng(r_(e.body,t.withPhantom(),!1)),mathmlBuilder:(e,t)=>new Y(`mphantom`,S_(e.body,t))}),Z(`\\hphantom`,`\\smash{\\phantom{#1}}`),J({type:`vphantom`,names:[`\\vphantom`],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:`vphantom`,mode:n.mode,body:r}},htmlBuilder:(e,t)=>q([`mord`,`rlap`],[q([`inner`],[l_(e.body,t.withPhantom())]),q([`fix`],[])],t),mathmlBuilder:(e,t)=>{var n=new Y(`mpadded`,[new Y(`mphantom`,S_(Qg(e.body),t))]);return n.setAttribute(`width`,`0px`),n}}),J({type:`raisebox`,names:[`\\raisebox`],props:{numArgs:2,argTypes:[`size`,`hbox`],allowedInText:!0},handler(e,t){var{parser:n}=e,r=X(t[0],`size`).value,i=t[1];return{type:`raisebox`,mode:n.mode,dy:r,body:i}},htmlBuilder(e,t){var n=l_(e.body,t);return Ig({positionType:`shift`,positionData:-dh(e.dy,t),children:[{type:`elem`,elem:n}]})},mathmlBuilder(e,t){var n=new Y(`mpadded`,[w_(e.body,t)]),r=e.dy.number+e.dy.unit;return n.setAttribute(`voffset`,r),n}}),J({type:`internal`,names:[`\\relax`],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(e){var{parser:t}=e;return{type:`internal`,mode:t.mode}}}),J({type:`rule`,names:[`\\rule`],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:[`size`,`size`,`size`]},handler(e,t,n){var{parser:r}=e,i=n[0],a=X(t[0],`size`),o=X(t[1],`size`);return{type:`rule`,mode:r.mode,shift:i&&X(i,`size`).value,width:a.value,height:o.value}},htmlBuilder(e,t){var n=q([`mord`,`rule`],[],t),r=dh(e.width,t),i=dh(e.height,t),a=e.shift?dh(e.shift,t):0;return n.style.borderRightWidth=I(r),n.style.borderTopWidth=I(i),n.style.bottom=I(a),n.width=r,n.height=i+a,n.depth=-a,n.maxFontSize=i*1.125*t.sizeMultiplier,n},mathmlBuilder(e,t){var n=dh(e.width,t),r=dh(e.height,t),i=e.shift?dh(e.shift,t):0,a=t.color&&t.getColor()||`black`,o=new Y(`mspace`);o.setAttribute(`mathbackground`,a),o.setAttribute(`width`,I(n)),o.setAttribute(`height`,I(r));var s=new Y(`mpadded`,[o]);return i>=0?s.setAttribute(`height`,I(i)):(s.setAttribute(`height`,I(i)),s.setAttribute(`depth`,I(-i))),s.setAttribute(`voffset`,I(i)),s}});function Dy(e,t,n){for(var r=r_(e,t,!1),i=t.sizeMultiplier/n.sizeMultiplier,a=0;a<r.length;a++){var o=r[a].classes.indexOf(`sizing`);o<0?Array.prototype.push.apply(r[a].classes,t.sizingClasses(n)):r[a].classes[o+1]===`reset-size`+t.size&&(r[a].classes[o+1]=`reset-size`+n.size),r[a].height*=i,r[a].depth*=i}return Ng(r)}var Oy=[`\\tiny`,`\\sixptsize`,`\\scriptsize`,`\\footnotesize`,`\\small`,`\\normalsize`,`\\large`,`\\Large`,`\\LARGE`,`\\huge`,`\\Huge`];J({type:`sizing`,names:Oy,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{breakOnTokenText:n,funcName:r,parser:i}=e,a=i.parseExpression(!1,n);return{type:`sizing`,mode:i.mode,size:Oy.indexOf(r)+1,body:a}},htmlBuilder:(e,t)=>{var n=t.havingSize(e.size);return Dy(e.body,n,t)},mathmlBuilder:(e,t)=>{var n=t.havingSize(e.size),r=new Y(`mstyle`,S_(e.body,n));return r.setAttribute(`mathsize`,I(n.sizeMultiplier)),r}}),J({type:`smash`,names:[`\\smash`],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,n)=>{var{parser:r}=e,i=!1,a=!1,o=n[0]&&X(n[0],`ordgroup`);if(o)for(var s,c=0;c<o.body.length;++c){var l=o.body[c];if(s=U_(l).text,s===`t`)i=!0;else if(s===`b`)a=!0;else{i=!1,a=!1;break}}else i=!0,a=!0;var u=t[0];return{type:`smash`,mode:r.mode,body:u,smashHeight:i,smashDepth:a}},htmlBuilder:(e,t)=>{var n=q([],[l_(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return n;if(e.smashHeight&&(n.height=0),e.smashDepth&&(n.depth=0),e.smashHeight&&e.smashDepth)return q([`mord`,`smash`],[n],t);if(n.children)for(var r=0;r<n.children.length;r++)e.smashHeight&&(n.children[r].height=0),e.smashDepth&&(n.children[r].depth=0);return q([`mord`],[Ig({positionType:`firstBaseline`,children:[{type:`elem`,elem:n}]})],t)},mathmlBuilder:(e,t)=>{var n=new Y(`mpadded`,[w_(e.body,t)]);return e.smashHeight&&n.setAttribute(`height`,`0px`),e.smashDepth&&n.setAttribute(`depth`,`0px`),n}}),J({type:`sqrt`,names:[`\\sqrt`],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:r}=e,i=n[0],a=t[0];return{type:`sqrt`,mode:r.mode,body:a,index:i}},htmlBuilder(e,t){var n=l_(e.body,t.havingCrampedStyle());n.height===0&&(n.height=t.fontMetrics().xHeight),n=Pg(n,t);var r=t.fontMetrics().defaultRuleThickness,i=r;t.style.id<F.TEXT.id&&(i=t.fontMetrics().xHeight);var a=r+i/4,{span:o,ruleWidth:s,advanceWidth:c}=Dv(n.height+n.depth+a+r,t),l=o.height-s;l>n.height+n.depth+a&&(a=(a+l-n.height-n.depth)/2);var u=o.height-n.height-a-s;n.style.paddingLeft=I(c);var d=Ig({positionType:`firstBaseline`,children:[{type:`elem`,elem:n,wrapperClasses:[`svg-align`]},{type:`kern`,size:-(n.height+u)},{type:`elem`,elem:o},{type:`kern`,size:s}]});if(e.index){var f=t.havingStyle(F.SCRIPTSCRIPT),p=l_(e.index,f,t);return q([`mord`,`sqrt`],[q([`root`],[Ig({positionType:`shift`,positionData:-(.6*(d.height-d.depth)),children:[{type:`elem`,elem:p}]})]),d],t)}else return q([`mord`,`sqrt`],[d],t)},mathmlBuilder(e,t){var{body:n,index:r}=e;return r?new Y(`mroot`,[w_(n,t),w_(r,t)]):new Y(`msqrt`,[w_(n,t)])}});var ky={display:F.DISPLAY,text:F.TEXT,script:F.SCRIPT,scriptscript:F.SCRIPTSCRIPT};function Ay(e){return e in ky}J({type:`styling`,names:[`\\displaystyle`,`\\textstyle`,`\\scriptstyle`,`\\scriptscriptstyle`],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:n,funcName:r,parser:i}=e,a=i.parseExpression(!0,n),o=r.slice(1,r.length-5);if(!Ay(o))throw Error(`Unknown style: `+o);return{type:`styling`,mode:i.mode,style:o,body:a}},htmlBuilder(e,t){var n=ky[e.style],r=t.havingStyle(n);return e.resetFont&&(r=r.withFont(``)),Dy(e.body,r,t)},mathmlBuilder(e,t){var n=ky[e.style],r=t.havingStyle(n);e.resetFont&&(r=r.withFont(``));var i=new Y(`mstyle`,S_(e.body,r)),a={display:[`0`,`true`],text:[`0`,`false`],script:[`1`,`false`],scriptscript:[`2`,`false`]}[e.style];return i.setAttribute(`scriptlevel`,a[0]),i.setAttribute(`displaystyle`,a[1]),i}});var jy=function(e,t){var n=e.base;return n?n.type===`op`?n.limits&&(t.style.size===F.DISPLAY.size||n.alwaysHandleSupSub)?Sy:null:n.type===`operatorname`?n.alwaysHandleSupSub&&(t.style.size===F.DISPLAY.size||n.limits)?Ey:null:n.type===`accent`?bm(n.base)?K_:null:n.type===`horizBrace`&&!e.sub===n.isOver?_y:null:null};Xg({type:`supsub`,htmlBuilder(e,t){var n=jy(e,t);if(n)return n(e,t);var{base:r,sup:i,sub:a}=e,o=l_(r,t),s,c,l=t.fontMetrics(),u=0,d=0,f=r&&bm(r);if(i){var p=t.havingStyle(t.style.sup());s=l_(i,p,t),f||(u=o.height-p.fontMetrics().supDrop*p.sizeMultiplier/t.sizeMultiplier)}if(a){var m=t.havingStyle(t.style.sub());c=l_(a,m,t),f||(d=o.depth+m.fontMetrics().subDrop*m.sizeMultiplier/t.sizeMultiplier)}var h=t.style===F.DISPLAY?l.sup1:t.style.cramped?l.sup3:l.sup2,g=t.sizeMultiplier,_=I(.5/l.ptPerEm/g),v=null;if(c){var y=e.base&&e.base.type===`op`&&e.base.name&&(e.base.name===`\\oiint`||e.base.name===`\\oiiint`);(o instanceof Sh||y)&&(v=I(-(o.italic??0)))}var b;if(s&&c){u=Math.max(u,h,s.depth+.25*l.xHeight),d=Math.max(d,l.sub2);var x=4*l.defaultRuleThickness;if(u-s.depth-(c.height-d)<x){d=x-(u-s.depth)+c.height;var S=.8*l.xHeight-(u-s.depth);S>0&&(u+=S,d-=S)}b=Ig({positionType:`individualShift`,children:[{type:`elem`,elem:c,shift:d,marginRight:_,marginLeft:v},{type:`elem`,elem:s,shift:-u,marginRight:_}]})}else if(c)d=Math.max(d,l.sub1,c.height-.8*l.xHeight),b=Ig({positionType:`shift`,positionData:d,children:[{type:`elem`,elem:c,marginLeft:v,marginRight:_}]});else if(s)u=Math.max(u,h,s.depth+.25*l.xHeight),b=Ig({positionType:`shift`,positionData:-u,children:[{type:`elem`,elem:s,marginRight:_}]});else throw Error(`supsub must have either sup or sub.`);return q([s_(o,`right`)||`mord`],[o,q([`msupsub`],[b])],t)},mathmlBuilder(e,t){var n=!1,r,i;e.base&&e.base.type===`horizBrace`&&(i=!!e.sup,i===e.base.isOver&&(n=!0,r=e.base.isOver)),e.base&&(e.base.type===`op`||e.base.type===`operatorname`)&&(e.base.parentIsSupSub=!0);var a=[w_(e.base,t)];e.sub&&a.push(w_(e.sub,t)),e.sup&&a.push(w_(e.sup,t));var o;if(n)o=r?`mover`:`munder`;else if(!e.sub){var s=e.base;o=s&&s.type===`op`&&s.limits&&(t.style===F.DISPLAY||s.alwaysHandleSupSub)||s&&s.type===`operatorname`&&s.alwaysHandleSupSub&&(s.limits||t.style===F.DISPLAY)?`mover`:`msup`}else if(e.sup){var c=e.base;o=c&&c.type===`op`&&c.limits&&t.style===F.DISPLAY||c&&c.type===`operatorname`&&c.alwaysHandleSupSub&&(t.style===F.DISPLAY||c.limits)?`munderover`:`msubsup`}else{var l=e.base;o=l&&l.type===`op`&&l.limits&&(t.style===F.DISPLAY||l.alwaysHandleSupSub)||l&&l.type===`operatorname`&&l.alwaysHandleSupSub&&(l.limits||t.style===F.DISPLAY)?`munder`:`msub`}return new Y(o,a)}}),Xg({type:`atom`,htmlBuilder(e,t){return wg(e.text,e.mode,t,[`m`+e.family])},mathmlBuilder(e,t){var n=new Y(`mo`,[__(e.text,e.mode)]);if(e.family===`bin`){var r=b_(e,t);r===`bold-italic`&&n.setAttribute(`mathvariant`,r)}else e.family===`punct`?n.setAttribute(`separator`,`true`):(e.family===`open`||e.family===`close`)&&n.setAttribute(`stretchy`,`false`);return n}});var My={mi:`italic`,mn:`normal`,mtext:`normal`};Xg({type:`mathord`,htmlBuilder(e,t){return Eg(e,t,`mathord`)},mathmlBuilder(e,t){var n=new Y(`mi`,[__(e.text,e.mode,t)]),r=b_(e,t)||`italic`;return r!==My[n.type]&&n.setAttribute(`mathvariant`,r),n}}),Xg({type:`textord`,htmlBuilder(e,t){return Eg(e,t,`textord`)},mathmlBuilder(e,t){var n=__(e.text,e.mode,t),r=b_(e,t)||`normal`,i=e.mode===`text`?new Y(`mtext`,[n]):/[0-9]/.test(e.text)?new Y(`mn`,[n]):e.text===`\\prime`?new Y(`mo`,[n]):new Y(`mi`,[n]);return r!==My[i.type]&&i.setAttribute(`mathvariant`,r),i}});var Ny={"\\nobreak":`nobreak`,"\\allowbreak":`allowbreak`},Py={" ":{},"\\ ":{},"~":{className:`nobreak`},"\\space":{},"\\nobreakspace":{className:`nobreak`}};Xg({type:`spacing`,htmlBuilder(e,t){if(Py.hasOwnProperty(e.text)){var n=Py[e.text].className||``;if(e.mode===`text`){var r=Eg(e,t,`textord`);return r.classes.push(n),r}else return q([`mspace`,n],[wg(e.text,e.mode,t)],t)}else if(Ny.hasOwnProperty(e.text))return q([`mspace`,Ny[e.text]],[],t);else throw new P(`Unknown type of space "`+e.text+`"`)},mathmlBuilder(e,t){var n;if(Py.hasOwnProperty(e.text))n=new Y(`mtext`,[new p_(`\xA0`)]);else if(Ny.hasOwnProperty(e.text))return new Y(`mspace`);else throw new P(`Unknown type of space "`+e.text+`"`);return n}});var Fy=()=>{var e=new Y(`mtd`,[]);return e.setAttribute(`width`,`50%`),e};Xg({type:`tag`,mathmlBuilder(e,t){var n=new Y(`mtable`,[new Y(`mtr`,[Fy(),new Y(`mtd`,[C_(e.body,t)]),Fy(),new Y(`mtd`,[C_(e.tag,t)])])]);return n.setAttribute(`width`,`100%`),n}});var Iy={"\\text":void 0,"\\textrm":`textrm`,"\\textsf":`textsf`,"\\texttt":`texttt`,"\\textnormal":`textrm`},Ly={"\\textbf":`textbf`,"\\textmd":`textmd`},Ry={"\\textit":`textit`,"\\textup":`textup`},zy=(e,t)=>{var n=e.font;return n?Iy[n]?t.withTextFontFamily(Iy[n]):Ly[n]?t.withTextFontWeight(Ly[n]):n===`\\emph`?t.fontShape===`textit`?t.withTextFontShape(`textup`):t.withTextFontShape(`textit`):t.withTextFontShape(Ry[n]):t};J({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:n,funcName:r}=e,i=t[0];return{type:`text`,mode:n.mode,body:Qg(i),font:r}},htmlBuilder(e,t){var n=zy(e,t);return q([`mord`,`text`],r_(e.body,n,!0),n)},mathmlBuilder(e,t){var n=zy(e,t);return C_(e.body,n)}}),J({type:`underline`,names:[`\\underline`],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:`underline`,mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=l_(e.body,t),r=jg(`underline-line`,t),i=t.fontMetrics().defaultRuleThickness;return q([`mord`,`underline`],[Ig({positionType:`top`,positionData:n.height,children:[{type:`kern`,size:i},{type:`elem`,elem:r},{type:`kern`,size:3*i},{type:`elem`,elem:n}]})],t)},mathmlBuilder(e,t){var n=new Y(`mo`,[new p_(`‾`)]);n.setAttribute(`stretchy`,`true`);var r=new Y(`munder`,[w_(e.body,t),n]);return r.setAttribute(`accentunder`,`true`),r}}),J({type:`vcenter`,names:[`\\vcenter`],props:{numArgs:1,argTypes:[`original`],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:`vcenter`,mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=l_(e.body,t),r=t.fontMetrics().axisHeight;return Ig({positionType:`shift`,positionData:.5*(n.height-r-(n.depth+r)),children:[{type:`elem`,elem:n}]})},mathmlBuilder(e,t){return new Y(`mrow`,[new Y(`mpadded`,[w_(e.body,t)],[`vcenter`])])}}),J({type:`verb`,names:[`\\verb`],props:{numArgs:0,allowedInText:!0},handler(e,t,n){throw new P(`\\verb ended by end of line instead of matching delimiter`)},htmlBuilder(e,t){for(var n=By(e),r=[],i=t.havingStyle(t.style.text()),a=0;a<n.length;a++){var o=n[a];o===`~`&&(o=`\\textasciitilde`),r.push(Cg(o,`Typewriter-Regular`,e.mode,i,[`mord`,`texttt`]))}return q([`mord`,`text`].concat(i.sizingClasses(t)),Og(r),i)},mathmlBuilder(e,t){var n=new Y(`mtext`,[new p_(By(e))]);return n.setAttribute(`mathvariant`,`monospace`),n}});var By=e=>e.body.replace(/ /g,e.star?`␣`:`\xA0`),Vy=qg,Hy=`[ \r
|
|
409
|
+
]`,Uy=`\\\\[a-zA-Z@]+`,Wy=`\\\\[^\ud800-\udfff]`,Gy=`(`+Uy+`)`+Hy+`*`,Ky=`\\\\(
|
|
410
410
|
|[ \r ]+
|
|
411
|
-
?)[ \r ]*`,
|
|
412
|
-
`,this.tokenRegex.lastIndex);return i===-1?(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 $v(r,new Qv(this,t,this.tokenRegex.lastIndex))}},$y=class{constructor(e,t){e===void 0&&(e={}),t===void 0&&(t={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=t,this.builtins=e,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new P(`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)&&(e[t]==null?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,n){if(n===void 0&&(n=!1),n){for(var r=0;r<this.undefStack.length;r++)delete this.undefStack[r][e];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][e]=t)}else{var i=this.undefStack[this.undefStack.length-1];i&&!i.hasOwnProperty(e)&&(i[e]=this.current[e])}t==null?delete this.current[e]:this.current[e]=t}},eb=Zv;Z(`\\noexpand`,function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}}),Z(`\\expandafter`,function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}}),Z(`\\@firstoftwo`,function(e){return{tokens:e.consumeArgs(2)[0],numArgs:0}}),Z(`\\@secondoftwo`,function(e){return{tokens:e.consumeArgs(2)[1],numArgs:0}}),Z(`\\@ifnextchar`,function(e){var t=e.consumeArgs(3);e.consumeSpaces();var n=e.future();return t[0].length===1&&t[0][0].text===n.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}}),Z(`\\@ifstar`,`\\@ifnextchar *{\\@firstoftwo{#1}}`),Z(`\\TextOrMath`,function(e){var t=e.consumeArgs(2);return e.mode===`text`?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var tb={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};Z(`\\char`,function(e){var t=e.popToken(),n,r=0;if(t.text===`'`)n=8,t=e.popToken();else if(t.text===`"`)n=16,t=e.popToken();else if(t.text==="`")if(t=e.popToken(),t.text[0]===`\\`)r=t.text.charCodeAt(1);else if(t.text===`EOF`)throw new P("\\char` missing argument");else r=t.text.charCodeAt(0);else n=10;if(n){if(r=tb[t.text],r==null||r>=n)throw new P(`Invalid base-`+n+` digit `+t.text);for(var i;(i=tb[e.future().text])!=null&&i<n;)r*=n,r+=i,e.popToken()}return`\\@char{`+r+`}`});var nb=(e,t,n,r)=>{var i=e.consumeArg().tokens;if(i.length!==1)throw new P(`\\newcommand's first argument must be a macro name`);var a=i[0].text,o=e.isDefined(a);if(o&&!t)throw new P(`\\newcommand{`+a+`} attempting to redefine `+(a+`; use \\renewcommand`));if(!o&&!n)throw new P(`\\renewcommand{`+a+`} when command `+a+` does not yet exist; use \\newcommand`);var s=0;if(i=e.consumeArg().tokens,i.length===1&&i[0].text===`[`){for(var c=``,l=e.expandNextToken();l.text!==`]`&&l.text!==`EOF`;)c+=l.text,l=e.expandNextToken();if(!c.match(/^\s*[0-9]+\s*$/))throw new P(`Invalid number of arguments: `+c);s=parseInt(c),i=e.consumeArg().tokens}return o&&r||e.macros.set(a,{tokens:i,numArgs:s}),``};Z(`\\newcommand`,e=>nb(e,!1,!0,!1)),Z(`\\renewcommand`,e=>nb(e,!0,!1,!1)),Z(`\\providecommand`,e=>nb(e,!0,!0,!0)),Z(`\\message`,e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(e=>e.text).join(``)),``}),Z(`\\errmessage`,e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(e=>e.text).join(``)),``}),Z(`\\show`,e=>{var t=e.popToken(),n=t.text;return console.log(t,e.macros.get(n),Uy[n],Rh.math[n],Rh.text[n]),``}),Z(`\\bgroup`,`{`),Z(`\\egroup`,`}`),Z(`~`,`\\nobreakspace`),Z(`\\lq`,"`"),Z(`\\rq`,`'`),Z(`\\aa`,`\\r a`),Z(`\\AA`,`\\r A`),Z(`\\textcopyright`,"\\html@mathml{\\textcircled{c}}{\\char`©}"),Z(`\\copyright`,`\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}`),Z(`\\textregistered`,"\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}"),Z(`ℬ`,`\\mathscr{B}`),Z(`ℰ`,`\\mathscr{E}`),Z(`ℱ`,`\\mathscr{F}`),Z(`ℋ`,`\\mathscr{H}`),Z(`ℐ`,`\\mathscr{I}`),Z(`ℒ`,`\\mathscr{L}`),Z(`ℳ`,`\\mathscr{M}`),Z(`ℛ`,`\\mathscr{R}`),Z(`ℭ`,`\\mathfrak{C}`),Z(`ℌ`,`\\mathfrak{H}`),Z(`ℨ`,`\\mathfrak{Z}`),Z(`\\Bbbk`,`\\Bbb{k}`),Z(`\\llap`,`\\mathllap{\\textrm{#1}}`),Z(`\\rlap`,`\\mathrlap{\\textrm{#1}}`),Z(`\\clap`,`\\mathclap{\\textrm{#1}}`),Z(`\\mathstrut`,`\\vphantom{(}`),Z(`\\underbar`,`\\underline{\\text{#1}}`),Z(`\\not`,`\\html@mathml{\\mathrel{\\mathrlap\\@not}\\nobreak}{\\char"338}`),Z(`\\neq`,"\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}"),Z(`\\ne`,`\\neq`),Z(`≠`,`\\neq`),Z(`\\notin`,"\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}"),Z(`∉`,`\\notin`),Z(`≘`,"\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}"),Z(`≙`,"\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}"),Z(`≚`,"\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}"),Z(`≛`,"\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}"),Z(`≝`,"\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}"),Z(`≞`,"\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}"),Z(`≟`,"\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}"),Z(`⟂`,`\\perp`),Z(`‼`,`\\mathclose{!\\mkern-0.8mu!}`),Z(`∌`,`\\notni`),Z(`⌜`,`\\ulcorner`),Z(`⌝`,`\\urcorner`),Z(`⌞`,`\\llcorner`),Z(`⌟`,`\\lrcorner`),Z(`©`,`\\copyright`),Z(`®`,`\\textregistered`),Z(`\\ulcorner`,`\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}`),Z(`\\urcorner`,`\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}`),Z(`\\llcorner`,`\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}`),Z(`\\lrcorner`,`\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}`),Z(`\\vdots`,`{\\varvdots\\rule{0pt}{15pt}}`),Z(`⋮`,`\\vdots`),Z(`\\varGamma`,`\\mathit{\\Gamma}`),Z(`\\varDelta`,`\\mathit{\\Delta}`),Z(`\\varTheta`,`\\mathit{\\Theta}`),Z(`\\varLambda`,`\\mathit{\\Lambda}`),Z(`\\varXi`,`\\mathit{\\Xi}`),Z(`\\varPi`,`\\mathit{\\Pi}`),Z(`\\varSigma`,`\\mathit{\\Sigma}`),Z(`\\varUpsilon`,`\\mathit{\\Upsilon}`),Z(`\\varPhi`,`\\mathit{\\Phi}`),Z(`\\varPsi`,`\\mathit{\\Psi}`),Z(`\\varOmega`,`\\mathit{\\Omega}`),Z(`\\substack`,`\\begin{subarray}{c}#1\\end{subarray}`),Z(`\\colon`,`\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax`),Z(`\\boxed`,`\\fbox{$\\displaystyle{#1}$}`),Z(`\\iff`,`\\DOTSB\\;\\Longleftrightarrow\\;`),Z(`\\implies`,`\\DOTSB\\;\\Longrightarrow\\;`),Z(`\\impliedby`,`\\DOTSB\\;\\Longleftarrow\\;`),Z(`\\dddot`,`{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}`),Z(`\\ddddot`,`{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}`);var rb={",":`\\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`},ib=new Set([`bin`,`rel`]);Z(`\\dots`,function(e){var t=`\\dotso`,n=e.expandAfterFuture().text;return n in rb?t=rb[n]:(n.slice(0,4)===`\\not`||n in Rh.math&&ib.has(Rh.math[n].group))&&(t=`\\dotsb`),t});var ab={")":!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};Z(`\\dotso`,function(e){return e.future().text in ab?`\\ldots\\,`:`\\ldots`}),Z(`\\dotsc`,function(e){var t=e.future().text;return t in ab&&t!==`,`?`\\ldots\\,`:`\\ldots`}),Z(`\\cdots`,function(e){return e.future().text in ab?`\\@cdots\\,`:`\\@cdots`}),Z(`\\dotsb`,`\\cdots`),Z(`\\dotsm`,`\\cdots`),Z(`\\dotsi`,`\\!\\cdots`),Z(`\\dotsx`,`\\ldots\\,`),Z(`\\DOTSI`,`\\relax`),Z(`\\DOTSB`,`\\relax`),Z(`\\DOTSX`,`\\relax`),Z(`\\tmspace`,`\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax`),Z(`\\,`,`\\tmspace+{3mu}{.1667em}`),Z(`\\thinspace`,`\\,`),Z(`\\>`,`\\mskip{4mu}`),Z(`\\:`,`\\tmspace+{4mu}{.2222em}`),Z(`\\medspace`,`\\:`),Z(`\\;`,`\\tmspace+{5mu}{.2777em}`),Z(`\\thickspace`,`\\;`),Z(`\\!`,`\\tmspace-{3mu}{.1667em}`),Z(`\\negthinspace`,`\\!`),Z(`\\negmedspace`,`\\tmspace-{4mu}{.2222em}`),Z(`\\negthickspace`,`\\tmspace-{5mu}{.277em}`),Z(`\\enspace`,`\\kern.5em `),Z(`\\enskip`,`\\hskip.5em\\relax`),Z(`\\quad`,`\\hskip1em\\relax`),Z(`\\qquad`,`\\hskip2em\\relax`),Z(`\\tag`,`\\@ifstar\\tag@literal\\tag@paren`),Z(`\\tag@paren`,`\\tag@literal{({#1})}`),Z(`\\tag@literal`,e=>{if(e.macros.get(`\\df@tag`))throw new P(`Multiple \\tag`);return`\\gdef\\df@tag{\\text{#1}}`}),Z(`\\bmod`,`\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}`),Z(`\\pod`,`\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)`),Z(`\\pmod`,`\\pod{{\\rm mod}\\mkern6mu#1}`),Z(`\\mod`,`\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1`),Z(`\\newline`,`\\\\\\relax`),Z(`\\TeX`,`\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}`);var ob=I(jh[`Main-Regular`][84][1]-.7*jh[`Main-Regular`][65][1]);Z(`\\LaTeX`,`\\textrm{\\html@mathml{`+(`L\\kern-.36em\\raisebox{`+ob+`}{\\scriptstyle A}`)+`\\kern-.15em\\TeX}{LaTeX}}`),Z(`\\KaTeX`,`\\textrm{\\html@mathml{`+(`K\\kern-.17em\\raisebox{`+ob+`}{\\scriptstyle A}`)+`\\kern-.15em\\TeX}{KaTeX}}`),Z(`\\hspace`,`\\@ifstar\\@hspacer\\@hspace`),Z(`\\@hspace`,`\\hskip #1\\relax`),Z(`\\@hspacer`,`\\rule{0pt}{0pt}\\hskip #1\\relax`),Z(`\\ordinarycolon`,`:`),Z(`\\vcentcolon`,`\\mathrel{\\mathop\\ordinarycolon}`),Z(`\\dblcolon`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}`),Z(`\\coloneqq`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}`),Z(`\\Coloneqq`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}`),Z(`\\coloneq`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}`),Z(`\\Coloneq`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}`),Z(`\\eqqcolon`,`\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}`),Z(`\\Eqqcolon`,`\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}`),Z(`\\eqcolon`,`\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}`),Z(`\\Eqcolon`,`\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}`),Z(`\\colonapprox`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}`),Z(`\\Colonapprox`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}`),Z(`\\colonsim`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}`),Z(`\\Colonsim`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}`),Z(`∷`,`\\dblcolon`),Z(`∹`,`\\eqcolon`),Z(`≔`,`\\coloneqq`),Z(`≕`,`\\eqqcolon`),Z(`⩴`,`\\Coloneqq`),Z(`\\ratio`,`\\vcentcolon`),Z(`\\coloncolon`,`\\dblcolon`),Z(`\\colonequals`,`\\coloneqq`),Z(`\\coloncolonequals`,`\\Coloneqq`),Z(`\\equalscolon`,`\\eqqcolon`),Z(`\\equalscoloncolon`,`\\Eqqcolon`),Z(`\\colonminus`,`\\coloneq`),Z(`\\coloncolonminus`,`\\Coloneq`),Z(`\\minuscolon`,`\\eqcolon`),Z(`\\minuscoloncolon`,`\\Eqcolon`),Z(`\\coloncolonapprox`,`\\Colonapprox`),Z(`\\coloncolonsim`,`\\Colonsim`),Z(`\\simcolon`,`\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}`),Z(`\\simcoloncolon`,`\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}`),Z(`\\approxcolon`,`\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}`),Z(`\\approxcoloncolon`,`\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}`),Z(`\\notni`,"\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}"),Z(`\\limsup`,`\\DOTSB\\operatorname*{lim\\,sup}`),Z(`\\liminf`,`\\DOTSB\\operatorname*{lim\\,inf}`),Z(`\\injlim`,`\\DOTSB\\operatorname*{inj\\,lim}`),Z(`\\projlim`,`\\DOTSB\\operatorname*{proj\\,lim}`),Z(`\\varlimsup`,`\\DOTSB\\operatorname*{\\overline{lim}}`),Z(`\\varliminf`,`\\DOTSB\\operatorname*{\\underline{lim}}`),Z(`\\varinjlim`,`\\DOTSB\\operatorname*{\\underrightarrow{lim}}`),Z(`\\varprojlim`,`\\DOTSB\\operatorname*{\\underleftarrow{lim}}`),Z(`\\gvertneqq`,`\\html@mathml{\\@gvertneqq}{≩}`),Z(`\\lvertneqq`,`\\html@mathml{\\@lvertneqq}{≨}`),Z(`\\ngeqq`,`\\html@mathml{\\@ngeqq}{≱}`),Z(`\\ngeqslant`,`\\html@mathml{\\@ngeqslant}{≱}`),Z(`\\nleqq`,`\\html@mathml{\\@nleqq}{≰}`),Z(`\\nleqslant`,`\\html@mathml{\\@nleqslant}{≰}`),Z(`\\nshortmid`,`\\html@mathml{\\@nshortmid}{∤}`),Z(`\\nshortparallel`,`\\html@mathml{\\@nshortparallel}{∦}`),Z(`\\nsubseteqq`,`\\html@mathml{\\@nsubseteqq}{⊈}`),Z(`\\nsupseteqq`,`\\html@mathml{\\@nsupseteqq}{⊉}`),Z(`\\varsubsetneq`,`\\html@mathml{\\@varsubsetneq}{⊊}`),Z(`\\varsubsetneqq`,`\\html@mathml{\\@varsubsetneqq}{⫋}`),Z(`\\varsupsetneq`,`\\html@mathml{\\@varsupsetneq}{⊋}`),Z(`\\varsupsetneqq`,`\\html@mathml{\\@varsupsetneqq}{⫌}`),Z(`\\imath`,`\\html@mathml{\\@imath}{ı}`),Z(`\\jmath`,`\\html@mathml{\\@jmath}{ȷ}`),Z(`\\llbracket`,"\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}"),Z(`\\rrbracket`,"\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}"),Z(`⟦`,`\\llbracket`),Z(`⟧`,`\\rrbracket`),Z(`\\lBrace`,"\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}"),Z(`\\rBrace`,"\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}"),Z(`⦃`,`\\lBrace`),Z(`⦄`,`\\rBrace`),Z(`\\minuso`,"\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}"),Z(`⦵`,`\\minuso`),Z(`\\darr`,`\\downarrow`),Z(`\\dArr`,`\\Downarrow`),Z(`\\Darr`,`\\Downarrow`),Z(`\\lang`,`\\langle`),Z(`\\rang`,`\\rangle`),Z(`\\uarr`,`\\uparrow`),Z(`\\uArr`,`\\Uparrow`),Z(`\\Uarr`,`\\Uparrow`),Z(`\\N`,`\\mathbb{N}`),Z(`\\R`,`\\mathbb{R}`),Z(`\\Z`,`\\mathbb{Z}`),Z(`\\alef`,`\\aleph`),Z(`\\alefsym`,`\\aleph`),Z(`\\Alpha`,`\\mathrm{A}`),Z(`\\Beta`,`\\mathrm{B}`),Z(`\\bull`,`\\bullet`),Z(`\\Chi`,`\\mathrm{X}`),Z(`\\clubs`,`\\clubsuit`),Z(`\\cnums`,`\\mathbb{C}`),Z(`\\Complex`,`\\mathbb{C}`),Z(`\\Dagger`,`\\ddagger`),Z(`\\diamonds`,`\\diamondsuit`),Z(`\\empty`,`\\emptyset`),Z(`\\Epsilon`,`\\mathrm{E}`),Z(`\\Eta`,`\\mathrm{H}`),Z(`\\exist`,`\\exists`),Z(`\\harr`,`\\leftrightarrow`),Z(`\\hArr`,`\\Leftrightarrow`),Z(`\\Harr`,`\\Leftrightarrow`),Z(`\\hearts`,`\\heartsuit`),Z(`\\image`,`\\Im`),Z(`\\infin`,`\\infty`),Z(`\\Iota`,`\\mathrm{I}`),Z(`\\isin`,`\\in`),Z(`\\Kappa`,`\\mathrm{K}`),Z(`\\larr`,`\\leftarrow`),Z(`\\lArr`,`\\Leftarrow`),Z(`\\Larr`,`\\Leftarrow`),Z(`\\lrarr`,`\\leftrightarrow`),Z(`\\lrArr`,`\\Leftrightarrow`),Z(`\\Lrarr`,`\\Leftrightarrow`),Z(`\\Mu`,`\\mathrm{M}`),Z(`\\natnums`,`\\mathbb{N}`),Z(`\\Nu`,`\\mathrm{N}`),Z(`\\Omicron`,`\\mathrm{O}`),Z(`\\plusmn`,`\\pm`),Z(`\\rarr`,`\\rightarrow`),Z(`\\rArr`,`\\Rightarrow`),Z(`\\Rarr`,`\\Rightarrow`),Z(`\\real`,`\\Re`),Z(`\\reals`,`\\mathbb{R}`),Z(`\\Reals`,`\\mathbb{R}`),Z(`\\Rho`,`\\mathrm{P}`),Z(`\\sdot`,`\\cdot`),Z(`\\sect`,`\\S`),Z(`\\spades`,`\\spadesuit`),Z(`\\sub`,`\\subset`),Z(`\\sube`,`\\subseteq`),Z(`\\supe`,`\\supseteq`),Z(`\\Tau`,`\\mathrm{T}`),Z(`\\thetasym`,`\\vartheta`),Z(`\\weierp`,`\\wp`),Z(`\\Zeta`,`\\mathrm{Z}`),Z(`\\argmin`,`\\DOTSB\\operatorname*{arg\\,min}`),Z(`\\argmax`,`\\DOTSB\\operatorname*{arg\\,max}`),Z(`\\plim`,`\\DOTSB\\mathop{\\operatorname{plim}}\\limits`),Z(`\\bra`,`\\mathinner{\\langle{#1}|}`),Z(`\\ket`,`\\mathinner{|{#1}\\rangle}`),Z(`\\braket`,`\\mathinner{\\langle{#1}\\rangle}`),Z(`\\Bra`,`\\left\\langle#1\\right|`),Z(`\\Ket`,`\\left|#1\\right\\rangle`);var sb=e=>t=>{var n=t.consumeArg().tokens,r=t.consumeArg().tokens,i=t.consumeArg().tokens,a=t.consumeArg().tokens,o=t.macros.get(`|`),s=t.macros.get(`\\|`);t.macros.beginGroup();var c=t=>n=>{e&&(n.macros.set(`|`,o),i.length&&n.macros.set(`\\|`,s));var a=t;return!t&&i.length&&n.future().text===`|`&&(n.popToken(),a=!0),{tokens:a?i:r,numArgs:0}};t.macros.set(`|`,c(!1)),i.length&&t.macros.set(`\\|`,c(!0));var l=t.consumeArg().tokens,u=t.expandTokens([...a,...l,...n]);return t.macros.endGroup(),{tokens:u.reverse(),numArgs:0}};Z(`\\bra@ket`,sb(!1)),Z(`\\bra@set`,sb(!0)),Z(`\\Braket`,`\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}`),Z(`\\Set`,`\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}`),Z(`\\set`,`\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}`),Z(`\\angln`,`{\\angl n}`),Z(`\\blue`,`\\textcolor{##6495ed}{#1}`),Z(`\\orange`,`\\textcolor{##ffa500}{#1}`),Z(`\\pink`,`\\textcolor{##ff00af}{#1}`),Z(`\\red`,`\\textcolor{##df0030}{#1}`),Z(`\\green`,`\\textcolor{##28ae7b}{#1}`),Z(`\\gray`,`\\textcolor{gray}{#1}`),Z(`\\purple`,`\\textcolor{##9d38bd}{#1}`),Z(`\\blueA`,`\\textcolor{##ccfaff}{#1}`),Z(`\\blueB`,`\\textcolor{##80f6ff}{#1}`),Z(`\\blueC`,`\\textcolor{##63d9ea}{#1}`),Z(`\\blueD`,`\\textcolor{##11accd}{#1}`),Z(`\\blueE`,`\\textcolor{##0c7f99}{#1}`),Z(`\\tealA`,`\\textcolor{##94fff5}{#1}`),Z(`\\tealB`,`\\textcolor{##26edd5}{#1}`),Z(`\\tealC`,`\\textcolor{##01d1c1}{#1}`),Z(`\\tealD`,`\\textcolor{##01a995}{#1}`),Z(`\\tealE`,`\\textcolor{##208170}{#1}`),Z(`\\greenA`,`\\textcolor{##b6ffb0}{#1}`),Z(`\\greenB`,`\\textcolor{##8af281}{#1}`),Z(`\\greenC`,`\\textcolor{##74cf70}{#1}`),Z(`\\greenD`,`\\textcolor{##1fab54}{#1}`),Z(`\\greenE`,`\\textcolor{##0d923f}{#1}`),Z(`\\goldA`,`\\textcolor{##ffd0a9}{#1}`),Z(`\\goldB`,`\\textcolor{##ffbb71}{#1}`),Z(`\\goldC`,`\\textcolor{##ff9c39}{#1}`),Z(`\\goldD`,`\\textcolor{##e07d10}{#1}`),Z(`\\goldE`,`\\textcolor{##a75a05}{#1}`),Z(`\\redA`,`\\textcolor{##fca9a9}{#1}`),Z(`\\redB`,`\\textcolor{##ff8482}{#1}`),Z(`\\redC`,`\\textcolor{##f9685d}{#1}`),Z(`\\redD`,`\\textcolor{##e84d39}{#1}`),Z(`\\redE`,`\\textcolor{##bc2612}{#1}`),Z(`\\maroonA`,`\\textcolor{##ffbde0}{#1}`),Z(`\\maroonB`,`\\textcolor{##ff92c6}{#1}`),Z(`\\maroonC`,`\\textcolor{##ed5fa6}{#1}`),Z(`\\maroonD`,`\\textcolor{##ca337c}{#1}`),Z(`\\maroonE`,`\\textcolor{##9e034e}{#1}`),Z(`\\purpleA`,`\\textcolor{##ddd7ff}{#1}`),Z(`\\purpleB`,`\\textcolor{##c6b9fc}{#1}`),Z(`\\purpleC`,`\\textcolor{##aa87ff}{#1}`),Z(`\\purpleD`,`\\textcolor{##7854ab}{#1}`),Z(`\\purpleE`,`\\textcolor{##543b78}{#1}`),Z(`\\mintA`,`\\textcolor{##f5f9e8}{#1}`),Z(`\\mintB`,`\\textcolor{##edf2df}{#1}`),Z(`\\mintC`,`\\textcolor{##e0e5cc}{#1}`),Z(`\\grayA`,`\\textcolor{##f6f7f7}{#1}`),Z(`\\grayB`,`\\textcolor{##f0f1f2}{#1}`),Z(`\\grayC`,`\\textcolor{##e3e5e6}{#1}`),Z(`\\grayD`,`\\textcolor{##d6d8da}{#1}`),Z(`\\grayE`,`\\textcolor{##babec2}{#1}`),Z(`\\grayF`,`\\textcolor{##888d93}{#1}`),Z(`\\grayG`,`\\textcolor{##626569}{#1}`),Z(`\\grayH`,`\\textcolor{##3b3e40}{#1}`),Z(`\\grayI`,`\\textcolor{##21242c}{#1}`),Z(`\\kaBlue`,`\\textcolor{##314453}{#1}`),Z(`\\kaGreen`,`\\textcolor{##71B307}{#1}`);var cb={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},lb=class{constructor(e,t,n){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=t,this.expansionCount=0,this.feed(e),this.macros=new $y(eb,t.macros),this.mode=n,this.stack=[]}feed(e){this.lexer=new Qy(e,this.settings)}switchMode(e){this.mode=e}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(e){this.stack.push(e)}pushTokens(e){this.stack.push(...e)}scanArgument(e){var t,n,r;if(e){if(this.consumeSpaces(),this.future().text!==`[`)return null;t=this.popToken(),{tokens:r,end:n}=this.consumeArg([`]`])}else ({tokens:r,start:t,end:n}=this.consumeArg());return this.pushToken(new $v(`EOF`,n.loc)),this.pushTokens(r),new $v(``,Qv.range(t,n))}consumeSpaces(){for(;this.future().text===` `;)this.stack.pop()}consumeArg(e){var t=[],n=e&&e.length>0;n||this.consumeSpaces();var r=this.future(),i,a=0,o=0;do{if(i=this.popToken(),t.push(i),i.text===`{`)++a;else if(i.text===`}`){if(--a,a===-1)throw new P(`Extra }`,i)}else if(i.text===`EOF`)throw new P(`Unexpected end of input in a macro argument, expected '`+(e&&n?e[o]:`}`)+`'`,i);if(e&&n)if((a===0||a===1&&e[o]===`{`)&&i.text===e[o]){if(++o,o===e.length){t.splice(-o,o);break}}else o=0}while(a!==0||n);return r.text===`{`&&t[t.length-1].text===`}`&&(t.pop(),t.shift()),t.reverse(),{tokens:t,start:r,end:i}}consumeArgs(e,t){if(t){if(t.length!==e+1)throw new P(`The length of delimiters doesn't match the number of args!`);for(var n=t[0],r=0;r<n.length;r++){var i=this.popToken();if(n[r]!==i.text)throw new P(`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 P(`Too many expansions: infinite loop or need to increase maxExpand setting`)}expandOnce(e){var t=this.popToken(),n=t.text,r=t.noexpand?null:this._getExpansion(n);if(r==null||e&&r.unexpandable){if(e&&r==null&&n[0]===`\\`&&!this.isDefined(n))throw new P(`Undefined control sequence: `+n);return this.pushToken(t),!1}this.countExpansion(1);var i=r.tokens,a=this.consumeArgs(r.numArgs,r.delimiters);if(r.numArgs){i=i.slice();for(var o=i.length-1;o>=0;--o){var s=i[o];if(s.text===`#`){if(o===0)throw new P(`Incomplete placeholder at end of macro body`,s);if(s=i[--o],s.text===`#`)i.splice(o+1,1);else if(/^[1-9]$/.test(s.text))i.splice(o,2,...a[s.text-1]);else throw new P(`Not a valid argument number`,s)}}}return this.pushTokens(i),i.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var e=this.stack.pop();return e.treatAsRelax&&(e.text=`\\relax`),e}}expandMacro(e){return this.macros.has(e)?this.expandTokens([new $v(e)]):void 0}expandTokens(e){var t=[],n=this.stack.length;for(this.pushTokens(e);this.stack.length>n;)if(this.expandOnce(!0)===!1){var r=this.stack.pop();r.treatAsRelax&&=(r.noexpand=!1,!1),t.push(r)}return this.countExpansion(t.length),t}expandMacroAsText(e){var t=this.expandMacro(e);return t&&t.map(e=>e.text).join(``)}_getExpansion(e){var t=this.macros.get(e);if(t==null)return t;if(e.length===1){var n=this.lexer.catcodes[e];if(n!=null&&n!==13)return}var r=typeof t==`function`?t(this):t;if(typeof r==`string`){var i=0;if(r.includes(`#`))for(var a=r.replace(/##/g,``);a.includes(`#`+(i+1));)++i;for(var o=new Qy(r,this.settings),s=[],c=o.lex();c.text!==`EOF`;)s.push(c),c=o.lex();return s.reverse(),{tokens:s,numArgs:i}}return r}isDefined(e){return this.macros.has(e)||Uy.hasOwnProperty(e)||Rh.math.hasOwnProperty(e)||Rh.text.hasOwnProperty(e)||cb.hasOwnProperty(e)}isExpandable(e){var t=this.macros.get(e);return t==null?Uy.hasOwnProperty(e)&&!Uy[e].primitive:typeof t==`string`||typeof t==`function`||!t.unexpandable}},ub=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,db=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`,ᵝ:`β`,ᵞ:`γ`,ᵟ:`δ`,ᵠ:`ϕ`,ᵡ:`χ`,ᶿ:`θ`}),fb={"́":{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`}},pb={á:`á`,à:`à`,ä:`ä`,ǟ:`ǟ`,ã:`ã`,ā:`ā`,ă:`ă`,ắ:`ắ`,ằ:`ằ`,ẵ:`ẵ`,ǎ:`ǎ`,â:`â`,ấ:`ấ`,ầ:`ầ`,ẫ:`ẫ`,ȧ:`ȧ`,ǡ:`ǡ`,å:`å`,ǻ:`ǻ`,ḃ:`ḃ`,ć:`ć`,ḉ:`ḉ`,č:`č`,ĉ:`ĉ`,ċ:`ċ`,ç:`ç`,ď:`ď`,ḋ:`ḋ`,ḑ:`ḑ`,é:`é`,è:`è`,ë:`ë`,ẽ:`ẽ`,ē:`ē`,ḗ:`ḗ`,ḕ:`ḕ`,ĕ:`ĕ`,ḝ:`ḝ`,ě:`ě`,ê:`ê`,ế:`ế`,ề:`ề`,ễ:`ễ`,ė:`ė`,ȩ:`ȩ`,ḟ:`ḟ`,ǵ:`ǵ`,ḡ:`ḡ`,ğ:`ğ`,ǧ:`ǧ`,ĝ:`ĝ`,ġ:`ġ`,ģ:`ģ`,ḧ:`ḧ`,ȟ:`ȟ`,ĥ:`ĥ`,ḣ:`ḣ`,ḩ:`ḩ`,í:`í`,ì:`ì`,ï:`ï`,ḯ:`ḯ`,ĩ:`ĩ`,ī:`ī`,ĭ:`ĭ`,ǐ:`ǐ`,î:`î`,ǰ:`ǰ`,ĵ:`ĵ`,ḱ:`ḱ`,ǩ:`ǩ`,ķ:`ķ`,ĺ:`ĺ`,ľ:`ľ`,ļ:`ļ`,ḿ:`ḿ`,ṁ:`ṁ`,ń:`ń`,ǹ:`ǹ`,ñ:`ñ`,ň:`ň`,ṅ:`ṅ`,ņ:`ņ`,ó:`ó`,ò:`ò`,ö:`ö`,ȫ:`ȫ`,õ:`õ`,ṍ:`ṍ`,ṏ:`ṏ`,ȭ:`ȭ`,ō:`ō`,ṓ:`ṓ`,ṑ:`ṑ`,ŏ:`ŏ`,ǒ:`ǒ`,ô:`ô`,ố:`ố`,ồ:`ồ`,ỗ:`ỗ`,ȯ:`ȯ`,ȱ:`ȱ`,ő:`ő`,ṕ:`ṕ`,ṗ:`ṗ`,ŕ:`ŕ`,ř:`ř`,ṙ:`ṙ`,ŗ:`ŗ`,ś:`ś`,ṥ:`ṥ`,š:`š`,ṧ:`ṧ`,ŝ:`ŝ`,ṡ:`ṡ`,ş:`ş`,ẗ:`ẗ`,ť:`ť`,ṫ:`ṫ`,ţ:`ţ`,ú:`ú`,ù:`ù`,ü:`ü`,ǘ:`ǘ`,ǜ:`ǜ`,ǖ:`ǖ`,ǚ:`ǚ`,ũ:`ũ`,ṹ:`ṹ`,ū:`ū`,ṻ:`ṻ`,ŭ:`ŭ`,ǔ:`ǔ`,û:`û`,ů:`ů`,ű:`ű`,ṽ:`ṽ`,ẃ:`ẃ`,ẁ:`ẁ`,ẅ:`ẅ`,ŵ:`ŵ`,ẇ:`ẇ`,ẘ:`ẘ`,ẍ:`ẍ`,ẋ:`ẋ`,ý:`ý`,ỳ:`ỳ`,ÿ:`ÿ`,ỹ:`ỹ`,ȳ:`ȳ`,ŷ:`ŷ`,ẏ:`ẏ`,ẙ:`ẙ`,ź:`ź`,ž:`ž`,ẑ:`ẑ`,ż:`ż`,Á:`Á`,À:`À`,Ä:`Ä`,Ǟ:`Ǟ`,Ã:`Ã`,Ā:`Ā`,Ă:`Ă`,Ắ:`Ắ`,Ằ:`Ằ`,Ẵ:`Ẵ`,Ǎ:`Ǎ`,Â:`Â`,Ấ:`Ấ`,Ầ:`Ầ`,Ẫ:`Ẫ`,Ȧ:`Ȧ`,Ǡ:`Ǡ`,Å:`Å`,Ǻ:`Ǻ`,Ḃ:`Ḃ`,Ć:`Ć`,Ḉ:`Ḉ`,Č:`Č`,Ĉ:`Ĉ`,Ċ:`Ċ`,Ç:`Ç`,Ď:`Ď`,Ḋ:`Ḋ`,Ḑ:`Ḑ`,É:`É`,È:`È`,Ë:`Ë`,Ẽ:`Ẽ`,Ē:`Ē`,Ḗ:`Ḗ`,Ḕ:`Ḕ`,Ĕ:`Ĕ`,Ḝ:`Ḝ`,Ě:`Ě`,Ê:`Ê`,Ế:`Ế`,Ề:`Ề`,Ễ:`Ễ`,Ė:`Ė`,Ȩ:`Ȩ`,Ḟ:`Ḟ`,Ǵ:`Ǵ`,Ḡ:`Ḡ`,Ğ:`Ğ`,Ǧ:`Ǧ`,Ĝ:`Ĝ`,Ġ:`Ġ`,Ģ:`Ģ`,Ḧ:`Ḧ`,Ȟ:`Ȟ`,Ĥ:`Ĥ`,Ḣ:`Ḣ`,Ḩ:`Ḩ`,Í:`Í`,Ì:`Ì`,Ï:`Ï`,Ḯ:`Ḯ`,Ĩ:`Ĩ`,Ī:`Ī`,Ĭ:`Ĭ`,Ǐ:`Ǐ`,Î:`Î`,İ:`İ`,Ĵ:`Ĵ`,Ḱ:`Ḱ`,Ǩ:`Ǩ`,Ķ:`Ķ`,Ĺ:`Ĺ`,Ľ:`Ľ`,Ļ:`Ļ`,Ḿ:`Ḿ`,Ṁ:`Ṁ`,Ń:`Ń`,Ǹ:`Ǹ`,Ñ:`Ñ`,Ň:`Ň`,Ṅ:`Ṅ`,Ņ:`Ņ`,Ó:`Ó`,Ò:`Ò`,Ö:`Ö`,Ȫ:`Ȫ`,Õ:`Õ`,Ṍ:`Ṍ`,Ṏ:`Ṏ`,Ȭ:`Ȭ`,Ō:`Ō`,Ṓ:`Ṓ`,Ṑ:`Ṑ`,Ŏ:`Ŏ`,Ǒ:`Ǒ`,Ô:`Ô`,Ố:`Ố`,Ồ:`Ồ`,Ỗ:`Ỗ`,Ȯ:`Ȯ`,Ȱ:`Ȱ`,Ő:`Ő`,Ṕ:`Ṕ`,Ṗ:`Ṗ`,Ŕ:`Ŕ`,Ř:`Ř`,Ṙ:`Ṙ`,Ŗ:`Ŗ`,Ś:`Ś`,Ṥ:`Ṥ`,Š:`Š`,Ṧ:`Ṧ`,Ŝ:`Ŝ`,Ṡ:`Ṡ`,Ş:`Ş`,Ť:`Ť`,Ṫ:`Ṫ`,Ţ:`Ţ`,Ú:`Ú`,Ù:`Ù`,Ü:`Ü`,Ǘ:`Ǘ`,Ǜ:`Ǜ`,Ǖ:`Ǖ`,Ǚ:`Ǚ`,Ũ:`Ũ`,Ṹ:`Ṹ`,Ū:`Ū`,Ṻ:`Ṻ`,Ŭ:`Ŭ`,Ǔ:`Ǔ`,Û:`Û`,Ů:`Ů`,Ű:`Ű`,Ṽ:`Ṽ`,Ẃ:`Ẃ`,Ẁ:`Ẁ`,Ẅ:`Ẅ`,Ŵ:`Ŵ`,Ẇ:`Ẇ`,Ẍ:`Ẍ`,Ẋ:`Ẋ`,Ý:`Ý`,Ỳ:`Ỳ`,Ÿ:`Ÿ`,Ỹ:`Ỹ`,Ȳ:`Ȳ`,Ŷ:`Ŷ`,Ẏ:`Ẏ`,Ź:`Ź`,Ž:`Ž`,Ẑ:`Ẑ`,Ż:`Ż`,ά:`ά`,ὰ:`ὰ`,ᾱ:`ᾱ`,ᾰ:`ᾰ`,έ:`έ`,ὲ:`ὲ`,ή:`ή`,ὴ:`ὴ`,ί:`ί`,ὶ:`ὶ`,ϊ:`ϊ`,ΐ:`ΐ`,ῒ:`ῒ`,ῑ:`ῑ`,ῐ:`ῐ`,ό:`ό`,ὸ:`ὸ`,ύ:`ύ`,ὺ:`ὺ`,ϋ:`ϋ`,ΰ:`ΰ`,ῢ:`ῢ`,ῡ:`ῡ`,ῠ:`ῠ`,ώ:`ώ`,ὼ:`ὼ`,Ύ:`Ύ`,Ὺ:`Ὺ`,Ϋ:`Ϋ`,Ῡ:`Ῡ`,Ῠ:`Ῠ`,Ώ:`Ώ`,Ὼ:`Ὼ`},mb=class e{constructor(e,t){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode=`math`,this.gullet=new lb(e,t,this.mode),this.settings=t,this.leftrightDepth=0,this.nextToken=null}expect(e,t){if(t===void 0&&(t=!0),this.fetch().text!==e)throw new P(`Expected '`+e+`', got '`+this.fetch().text+`'`,this.fetch());t&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken??=this.gullet.expandNextToken(),this.nextToken}switchMode(e){this.mode=e,this.gullet.switchMode(e)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set(`\\color`,`\\textcolor`);try{var e=this.parseExpression(!1);return this.expect(`EOF`),this.settings.globalGroup||this.gullet.endGroup(),e}finally{this.gullet.endGroups()}}subparse(e){var t=this.nextToken;this.consume(),this.gullet.pushToken(new $v(`}`)),this.gullet.pushTokens(e);var n=this.parseExpression(!1);return this.expect(`}`),this.nextToken=t,n}parseExpression(t,n){for(var r=[];;){this.mode===`math`&&this.consumeSpaces();var i=this.fetch();if(e.endOfExpression.has(i.text)||n&&i.text===n||t&&Uy[i.text]&&Uy[i.text].infix)break;var a=this.parseAtom(n);if(!a)break;a.type!==`internal`&&r.push(a)}return this.mode===`text`&&this.formLigatures(r),this.handleInfixNodes(r)}handleInfixNodes(e){for(var t=-1,n,r=0;r<e.length;r++){var i=e[r];if(i.type===`infix`){if(t!==-1)throw new P(`only one infix operator per group`,i.token);t=r,n=i.replaceWith}}if(t!==-1&&n){var a,o,s=e.slice(0,t),c=e.slice(t+1);return a=s.length===1&&s[0].type===`ordgroup`?s[0]:{type:`ordgroup`,mode:this.mode,body:s},o=c.length===1&&c[0].type===`ordgroup`?c[0]:{type:`ordgroup`,mode:this.mode,body:c},[n===`\\\\abovefrac`?this.callFunction(n,[a,e[t],o],[]):this.callFunction(n,[a,o],[])]}else return e}handleSupSubscript(e){var t=this.fetch(),n=t.text;this.consume(),this.consumeSpaces();var r;do r=this.parseGroup(e);while(r?.type===`internal`);if(!r)throw new P(`Expected group after '`+n+`'`,t);return r}formatUnsupportedCmd(e){for(var t=[],n=0;n<e.length;n++)t.push({type:`textord`,mode:`text`,text:e[n]});var r={type:`text`,mode:this.mode,body:t};return{type:`color`,mode:this.mode,color:this.settings.errorColor,body:[r]}}parseAtom(e){var t=this.parseGroup(`atom`,e);if(t?.type===`internal`||this.mode===`text`)return t;for(var n,r;;){this.consumeSpaces();var i=this.fetch();if(i.text===`\\limits`||i.text===`\\nolimits`){if(t&&t.type===`op`)t.limits=i.text===`\\limits`,t.alwaysHandleSupSub=!0;else if(t&&t.type===`operatorname`)t.alwaysHandleSupSub&&(t.limits=i.text===`\\limits`);else throw new P(`Limit controls must follow a math operator`,i);this.consume()}else if(i.text===`^`){if(n)throw new P(`Double superscript`,i);n=this.handleSupSubscript(`superscript`)}else if(i.text===`_`){if(r)throw new P(`Double subscript`,i);r=this.handleSupSubscript(`subscript`)}else if(i.text===`'`){if(n)throw new P(`Double superscript`,i);var a={type:`textord`,mode:this.mode,text:`\\prime`},o=[a];for(this.consume();this.fetch().text===`'`;)o.push(a),this.consume();this.fetch().text===`^`&&o.push(this.handleSupSubscript(`superscript`)),n={type:`ordgroup`,mode:this.mode,body:o}}else if(db[i.text]){var s=ub.test(i.text),c=[];for(c.push(new $v(db[i.text])),this.consume();;){var l=this.fetch().text;if(!db[l]||ub.test(l)!==s)break;c.unshift(new $v(db[l])),this.consume()}var u=this.subparse(c);s?r={type:`ordgroup`,mode:`math`,body:u}:n={type:`ordgroup`,mode:`math`,body:u}}else break}return n||r?{type:`supsub`,mode:this.mode,base:t,sup:n,sub:r}:t}parseFunction(e,t){var n=this.fetch(),r=n.text,i=Uy[r];if(!i)return null;if(this.consume(),t&&t!==`atom`&&!i.allowedInArgument)throw new P(`Got function '`+r+`' with no arguments`+(t?` as `+t:``),n);if(this.mode===`text`&&!i.allowedInText)throw new P(`Can't use function '`+r+`' in text mode`,n);if(this.mode===`math`&&i.allowedInMath===!1)throw new P(`Can't use function '`+r+`' in math mode`,n);var{args:a,optArgs:o}=this.parseArguments(r,i);return this.callFunction(r,a,o,n,e)}callFunction(e,t,n,r,i){var a={funcName:e,parser:this,token:r,breakOnTokenText:i},o=Uy[e];if(o&&o.handler)return o.handler(a,t,n);throw new P(`No function handler for `+e)}parseArguments(e,t){var n=t.numArgs+t.numOptionalArgs;if(n===0)return{args:[],optArgs:[]};for(var r=[],i=[],a=0;a<n;a++){var o=t.argTypes&&t.argTypes[a],s=a<t.numOptionalArgs;(`primitive`in t&&t.primitive&&o==null||t.type===`sqrt`&&a===1&&i[0]==null)&&(o=`primitive`);var c=this.parseGroupOfType(`argument to '`+e+`'`,o,s);if(s)i.push(c);else if(c!=null)r.push(c);else throw new P(`Null argument, please report this as a bug`)}return{args:r,optArgs:i}}parseGroupOfType(e,t,n){switch(t){case`color`:return this.parseColorGroup(n);case`size`:return this.parseSizeGroup(n);case`url`:return this.parseUrlGroup(n);case`math`:case`text`:return this.parseArgumentGroup(n,t);case`hbox`:var r=this.parseArgumentGroup(n,`text`);return r==null?null:{type:`styling`,mode:r.mode,body:[r],style:`text`,resetFont:!0};case`raw`:var i=this.parseStringGroup(`raw`,n);return i==null?null:{type:`raw`,mode:`text`,string:i.text};case`primitive`:if(n)throw new P(`A primitive argument cannot be optional`);var a=this.parseGroup(e);if(a==null)throw new P(`Expected group as `+e,this.fetch());return a;case`original`:case null:case void 0:return this.parseArgumentGroup(n);default:throw new P(`Unknown group type as `+e,this.fetch())}}consumeSpaces(){for(;this.fetch().text===` `;)this.consume()}parseStringGroup(e,t){var n=this.gullet.scanArgument(t);if(n==null)return null;for(var r=``,i;(i=this.fetch()).text!==`EOF`;)r+=i.text,this.consume();return this.consume(),n.text=r,n}parseRegexGroup(e,t){for(var n=this.fetch(),r=n,i=``,a;(a=this.fetch()).text!==`EOF`&&e.test(i+a.text);)r=a,i+=r.text,this.consume();if(i===``)throw new P(`Invalid `+t+`: '`+n.text+`'`,n);return n.range(r,i)}parseColorGroup(e){var t=this.parseStringGroup(`color`,e);if(t==null)return null;var n=/^(#[a-f0-9]{3,4}|#[a-f0-9]{6}|#[a-f0-9]{8}|[a-f0-9]{6}|[a-z]+)$/i.exec(t.text);if(!n)throw new P(`Invalid color: '`+t.text+`'`,t);var r=n[0];return/^[0-9a-f]{6}$/i.test(r)&&(r=`#`+r),{type:`color-token`,mode:this.mode,color:r}}parseSizeGroup(e){var t,n=!1;if(this.gullet.consumeSpaces(),t=!e&&this.gullet.future().text!==`{`?this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,`size`):this.parseStringGroup(`size`,e),!t)return null;!e&&t.text.length===0&&(t.text=`0pt`,n=!0);var r=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t.text);if(!r)throw new P(`Invalid size: '`+t.text+`'`,t);var i={number:+(r[1]+r[2]),unit:r[3]};if(!fh(i))throw new P(`Invalid unit: '`+i.unit+`'`,t);return{type:`size`,mode:this.mode,value:i,isBlank:n}}parseUrlGroup(e){this.gullet.lexer.setCatcode(`%`,13),this.gullet.lexer.setCatcode(`~`,12);var t=this.parseStringGroup(`url`,e);if(this.gullet.lexer.setCatcode(`%`,14),this.gullet.lexer.setCatcode(`~`,13),t==null)return null;var n=t.text.replace(/\\([#$%&~_^{}])/g,`$1`);return{type:`url`,mode:this.mode,url:n}}parseArgumentGroup(e,t){var n=this.gullet.scanArgument(e);if(n==null)return null;var r=this.mode;t&&this.switchMode(t),this.gullet.beginGroup();var i=this.parseExpression(!1,`EOF`);this.expect(`EOF`),this.gullet.endGroup();var a={type:`ordgroup`,mode:this.mode,loc:n.loc,body:i};return t&&this.switchMode(r),a}parseGroup(e,t){var n=this.fetch(),r=n.text,i;if(r===`{`||r===`\\begingroup`){this.consume();var a=r===`{`?`}`:`\\endgroup`;this.gullet.beginGroup();var o=this.parseExpression(!1,a),s=this.fetch();this.expect(a),this.gullet.endGroup(),i={type:`ordgroup`,mode:this.mode,loc:Qv.range(n,s),body:o,semisimple:r===`\\begingroup`||void 0}}else if(i=this.parseFunction(t,e)||this.parseSymbol(),i==null&&r[0]===`\\`&&!cb.hasOwnProperty(r)){if(this.settings.throwOnError)throw new P(`Undefined control sequence: `+r,n);i=this.formatUnsupportedCmd(r),this.consume()}return i}formLigatures(e){for(var t=e.length-1,n=0;n<t;++n){var r=e[n];if(r.type===`textord`){var i=r.text,a=e[n+1];if(!(!a||a.type!==`textord`)){if(i===`-`&&a.text===`-`){var o=e[n+2];n+1<t&&o&&o.type===`textord`&&o.text===`-`?(e.splice(n,3,{type:`textord`,mode:`text`,loc:Qv.range(r,o),text:`---`}),t-=2):(e.splice(n,2,{type:`textord`,mode:`text`,loc:Qv.range(r,a),text:`--`}),--t)}(i===`'`||i==="`")&&a.text===i&&(e.splice(n,2,{type:`textord`,mode:`text`,loc:Qv.range(r,a),text:i+i}),--t)}}}}parseSymbol(){var e=this.fetch(),t=e.text;if(/^\\verb[^a-zA-Z]/.test(t)){this.consume();var n=t.slice(5),r=n.charAt(0)===`*`;if(r&&(n=n.slice(1)),n.length<2||n.charAt(0)!==n.slice(-1))throw new P(`\\verb assertion failed --
|
|
413
|
-
please report what input caused this bug`);return n=n.slice(1,-1),{type:`verb`,mode:`text`,body:n,star:r}}
|
|
414
|
-
`,inConstruct:`mathFlowMeta`},{character:`$`,after:t?void 0:`\\$`,inConstruct:`phrasing`},{character:`$`,inConstruct:`mathFlowMeta`},{atBreak:!0,character:`$`,after:`\\$`}],handlers:{math:n,inlineMath:r}};function n(e,t,n,r){let i=e.value||``,a=n.createTracker(r),o=`$`.repeat(Math.max(
|
|
411
|
+
?)[ \r ]*`,qy=`[̀-ͯ]`,Jy=RegExp(qy+`+$`),Yy=`(`+Hy+`+)|`+(Ky+`|`)+`([!-\\[\\]-‧-豈-]`+(qy+`*`)+`|[\ud800-\udbff][\udc00-\udfff]`+(qy+`*`)+`|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5`+(`|`+Gy)+(`|`+Wy+`)`),Xy=class{constructor(e,t){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=e,this.settings=t,this.tokenRegex=new RegExp(Yy,`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 Zv(`EOF`,new Xv(this,t,t));var n=this.tokenRegex.exec(e);if(n===null||n.index!==t)throw new P(`Unexpected character: '`+e[t]+`'`,new Zv(e[t],new Xv(this,t,t+1)));var r=n[6]||n[3]||(n[2]?`\\ `:` `);if(this.catcodes[r]===14){var i=e.indexOf(`
|
|
412
|
+
`,this.tokenRegex.lastIndex);return i===-1?(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 Zv(r,new Xv(this,t,this.tokenRegex.lastIndex))}},Zy=class{constructor(e,t){e===void 0&&(e={}),t===void 0&&(t={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=t,this.builtins=e,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new P(`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)&&(e[t]==null?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,n){if(n===void 0&&(n=!1),n){for(var r=0;r<this.undefStack.length;r++)delete this.undefStack[r][e];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][e]=t)}else{var i=this.undefStack[this.undefStack.length-1];i&&!i.hasOwnProperty(e)&&(i[e]=this.current[e])}t==null?delete this.current[e]:this.current[e]=t}},Qy=Yv;Z(`\\noexpand`,function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}}),Z(`\\expandafter`,function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}}),Z(`\\@firstoftwo`,function(e){return{tokens:e.consumeArgs(2)[0],numArgs:0}}),Z(`\\@secondoftwo`,function(e){return{tokens:e.consumeArgs(2)[1],numArgs:0}}),Z(`\\@ifnextchar`,function(e){var t=e.consumeArgs(3);e.consumeSpaces();var n=e.future();return t[0].length===1&&t[0][0].text===n.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}}),Z(`\\@ifstar`,`\\@ifnextchar *{\\@firstoftwo{#1}}`),Z(`\\TextOrMath`,function(e){var t=e.consumeArgs(2);return e.mode===`text`?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var $y={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};Z(`\\char`,function(e){var t=e.popToken(),n,r=0;if(t.text===`'`)n=8,t=e.popToken();else if(t.text===`"`)n=16,t=e.popToken();else if(t.text==="`")if(t=e.popToken(),t.text[0]===`\\`)r=t.text.charCodeAt(1);else if(t.text===`EOF`)throw new P("\\char` missing argument");else r=t.text.charCodeAt(0);else n=10;if(n){if(r=$y[t.text],r==null||r>=n)throw new P(`Invalid base-`+n+` digit `+t.text);for(var i;(i=$y[e.future().text])!=null&&i<n;)r*=n,r+=i,e.popToken()}return`\\@char{`+r+`}`});var eb=(e,t,n,r)=>{var i=e.consumeArg().tokens;if(i.length!==1)throw new P(`\\newcommand's first argument must be a macro name`);var a=i[0].text,o=e.isDefined(a);if(o&&!t)throw new P(`\\newcommand{`+a+`} attempting to redefine `+(a+`; use \\renewcommand`));if(!o&&!n)throw new P(`\\renewcommand{`+a+`} when command `+a+` does not yet exist; use \\newcommand`);var s=0;if(i=e.consumeArg().tokens,i.length===1&&i[0].text===`[`){for(var c=``,l=e.expandNextToken();l.text!==`]`&&l.text!==`EOF`;)c+=l.text,l=e.expandNextToken();if(!c.match(/^\s*[0-9]+\s*$/))throw new P(`Invalid number of arguments: `+c);s=parseInt(c),i=e.consumeArg().tokens}return o&&r||e.macros.set(a,{tokens:i,numArgs:s}),``};Z(`\\newcommand`,e=>eb(e,!1,!0,!1)),Z(`\\renewcommand`,e=>eb(e,!0,!1,!1)),Z(`\\providecommand`,e=>eb(e,!0,!0,!0)),Z(`\\message`,e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(e=>e.text).join(``)),``}),Z(`\\errmessage`,e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(e=>e.text).join(``)),``}),Z(`\\show`,e=>{var t=e.popToken(),n=t.text;return console.log(t,e.macros.get(n),Vy[n],Ih.math[n],Ih.text[n]),``}),Z(`\\bgroup`,`{`),Z(`\\egroup`,`}`),Z(`~`,`\\nobreakspace`),Z(`\\lq`,"`"),Z(`\\rq`,`'`),Z(`\\aa`,`\\r a`),Z(`\\AA`,`\\r A`),Z(`\\textcopyright`,"\\html@mathml{\\textcircled{c}}{\\char`©}"),Z(`\\copyright`,`\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}`),Z(`\\textregistered`,"\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}"),Z(`ℬ`,`\\mathscr{B}`),Z(`ℰ`,`\\mathscr{E}`),Z(`ℱ`,`\\mathscr{F}`),Z(`ℋ`,`\\mathscr{H}`),Z(`ℐ`,`\\mathscr{I}`),Z(`ℒ`,`\\mathscr{L}`),Z(`ℳ`,`\\mathscr{M}`),Z(`ℛ`,`\\mathscr{R}`),Z(`ℭ`,`\\mathfrak{C}`),Z(`ℌ`,`\\mathfrak{H}`),Z(`ℨ`,`\\mathfrak{Z}`),Z(`\\Bbbk`,`\\Bbb{k}`),Z(`\\llap`,`\\mathllap{\\textrm{#1}}`),Z(`\\rlap`,`\\mathrlap{\\textrm{#1}}`),Z(`\\clap`,`\\mathclap{\\textrm{#1}}`),Z(`\\mathstrut`,`\\vphantom{(}`),Z(`\\underbar`,`\\underline{\\text{#1}}`),Z(`\\not`,`\\html@mathml{\\mathrel{\\mathrlap\\@not}\\nobreak}{\\char"338}`),Z(`\\neq`,"\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}"),Z(`\\ne`,`\\neq`),Z(`≠`,`\\neq`),Z(`\\notin`,"\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}"),Z(`∉`,`\\notin`),Z(`≘`,"\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}"),Z(`≙`,"\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}"),Z(`≚`,"\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}"),Z(`≛`,"\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}"),Z(`≝`,"\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}"),Z(`≞`,"\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}"),Z(`≟`,"\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}"),Z(`⟂`,`\\perp`),Z(`‼`,`\\mathclose{!\\mkern-0.8mu!}`),Z(`∌`,`\\notni`),Z(`⌜`,`\\ulcorner`),Z(`⌝`,`\\urcorner`),Z(`⌞`,`\\llcorner`),Z(`⌟`,`\\lrcorner`),Z(`©`,`\\copyright`),Z(`®`,`\\textregistered`),Z(`\\ulcorner`,`\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}`),Z(`\\urcorner`,`\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}`),Z(`\\llcorner`,`\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}`),Z(`\\lrcorner`,`\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}`),Z(`\\vdots`,`{\\varvdots\\rule{0pt}{15pt}}`),Z(`⋮`,`\\vdots`),Z(`\\varGamma`,`\\mathit{\\Gamma}`),Z(`\\varDelta`,`\\mathit{\\Delta}`),Z(`\\varTheta`,`\\mathit{\\Theta}`),Z(`\\varLambda`,`\\mathit{\\Lambda}`),Z(`\\varXi`,`\\mathit{\\Xi}`),Z(`\\varPi`,`\\mathit{\\Pi}`),Z(`\\varSigma`,`\\mathit{\\Sigma}`),Z(`\\varUpsilon`,`\\mathit{\\Upsilon}`),Z(`\\varPhi`,`\\mathit{\\Phi}`),Z(`\\varPsi`,`\\mathit{\\Psi}`),Z(`\\varOmega`,`\\mathit{\\Omega}`),Z(`\\substack`,`\\begin{subarray}{c}#1\\end{subarray}`),Z(`\\colon`,`\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax`),Z(`\\boxed`,`\\fbox{$\\displaystyle{#1}$}`),Z(`\\iff`,`\\DOTSB\\;\\Longleftrightarrow\\;`),Z(`\\implies`,`\\DOTSB\\;\\Longrightarrow\\;`),Z(`\\impliedby`,`\\DOTSB\\;\\Longleftarrow\\;`),Z(`\\dddot`,`{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}`),Z(`\\ddddot`,`{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}`);var tb={",":`\\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`},nb=new Set([`bin`,`rel`]);Z(`\\dots`,function(e){var t=`\\dotso`,n=e.expandAfterFuture().text;return n in tb?t=tb[n]:(n.slice(0,4)===`\\not`||n in Ih.math&&nb.has(Ih.math[n].group))&&(t=`\\dotsb`),t});var rb={")":!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};Z(`\\dotso`,function(e){return e.future().text in rb?`\\ldots\\,`:`\\ldots`}),Z(`\\dotsc`,function(e){var t=e.future().text;return t in rb&&t!==`,`?`\\ldots\\,`:`\\ldots`}),Z(`\\cdots`,function(e){return e.future().text in rb?`\\@cdots\\,`:`\\@cdots`}),Z(`\\dotsb`,`\\cdots`),Z(`\\dotsm`,`\\cdots`),Z(`\\dotsi`,`\\!\\cdots`),Z(`\\dotsx`,`\\ldots\\,`),Z(`\\DOTSI`,`\\relax`),Z(`\\DOTSB`,`\\relax`),Z(`\\DOTSX`,`\\relax`),Z(`\\tmspace`,`\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax`),Z(`\\,`,`\\tmspace+{3mu}{.1667em}`),Z(`\\thinspace`,`\\,`),Z(`\\>`,`\\mskip{4mu}`),Z(`\\:`,`\\tmspace+{4mu}{.2222em}`),Z(`\\medspace`,`\\:`),Z(`\\;`,`\\tmspace+{5mu}{.2777em}`),Z(`\\thickspace`,`\\;`),Z(`\\!`,`\\tmspace-{3mu}{.1667em}`),Z(`\\negthinspace`,`\\!`),Z(`\\negmedspace`,`\\tmspace-{4mu}{.2222em}`),Z(`\\negthickspace`,`\\tmspace-{5mu}{.277em}`),Z(`\\enspace`,`\\kern.5em `),Z(`\\enskip`,`\\hskip.5em\\relax`),Z(`\\quad`,`\\hskip1em\\relax`),Z(`\\qquad`,`\\hskip2em\\relax`),Z(`\\tag`,`\\@ifstar\\tag@literal\\tag@paren`),Z(`\\tag@paren`,`\\tag@literal{({#1})}`),Z(`\\tag@literal`,e=>{if(e.macros.get(`\\df@tag`))throw new P(`Multiple \\tag`);return`\\gdef\\df@tag{\\text{#1}}`}),Z(`\\bmod`,`\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}`),Z(`\\pod`,`\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)`),Z(`\\pmod`,`\\pod{{\\rm mod}\\mkern6mu#1}`),Z(`\\mod`,`\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1`),Z(`\\newline`,`\\\\\\relax`),Z(`\\TeX`,`\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}`);var ib=I(kh[`Main-Regular`][84][1]-.7*kh[`Main-Regular`][65][1]);Z(`\\LaTeX`,`\\textrm{\\html@mathml{`+(`L\\kern-.36em\\raisebox{`+ib+`}{\\scriptstyle A}`)+`\\kern-.15em\\TeX}{LaTeX}}`),Z(`\\KaTeX`,`\\textrm{\\html@mathml{`+(`K\\kern-.17em\\raisebox{`+ib+`}{\\scriptstyle A}`)+`\\kern-.15em\\TeX}{KaTeX}}`),Z(`\\hspace`,`\\@ifstar\\@hspacer\\@hspace`),Z(`\\@hspace`,`\\hskip #1\\relax`),Z(`\\@hspacer`,`\\rule{0pt}{0pt}\\hskip #1\\relax`),Z(`\\ordinarycolon`,`:`),Z(`\\vcentcolon`,`\\mathrel{\\mathop\\ordinarycolon}`),Z(`\\dblcolon`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}`),Z(`\\coloneqq`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}`),Z(`\\Coloneqq`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}`),Z(`\\coloneq`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}`),Z(`\\Coloneq`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}`),Z(`\\eqqcolon`,`\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}`),Z(`\\Eqqcolon`,`\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}`),Z(`\\eqcolon`,`\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}`),Z(`\\Eqcolon`,`\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}`),Z(`\\colonapprox`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}`),Z(`\\Colonapprox`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}`),Z(`\\colonsim`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}`),Z(`\\Colonsim`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}`),Z(`∷`,`\\dblcolon`),Z(`∹`,`\\eqcolon`),Z(`≔`,`\\coloneqq`),Z(`≕`,`\\eqqcolon`),Z(`⩴`,`\\Coloneqq`),Z(`\\ratio`,`\\vcentcolon`),Z(`\\coloncolon`,`\\dblcolon`),Z(`\\colonequals`,`\\coloneqq`),Z(`\\coloncolonequals`,`\\Coloneqq`),Z(`\\equalscolon`,`\\eqqcolon`),Z(`\\equalscoloncolon`,`\\Eqqcolon`),Z(`\\colonminus`,`\\coloneq`),Z(`\\coloncolonminus`,`\\Coloneq`),Z(`\\minuscolon`,`\\eqcolon`),Z(`\\minuscoloncolon`,`\\Eqcolon`),Z(`\\coloncolonapprox`,`\\Colonapprox`),Z(`\\coloncolonsim`,`\\Colonsim`),Z(`\\simcolon`,`\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}`),Z(`\\simcoloncolon`,`\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}`),Z(`\\approxcolon`,`\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}`),Z(`\\approxcoloncolon`,`\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}`),Z(`\\notni`,"\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}"),Z(`\\limsup`,`\\DOTSB\\operatorname*{lim\\,sup}`),Z(`\\liminf`,`\\DOTSB\\operatorname*{lim\\,inf}`),Z(`\\injlim`,`\\DOTSB\\operatorname*{inj\\,lim}`),Z(`\\projlim`,`\\DOTSB\\operatorname*{proj\\,lim}`),Z(`\\varlimsup`,`\\DOTSB\\operatorname*{\\overline{lim}}`),Z(`\\varliminf`,`\\DOTSB\\operatorname*{\\underline{lim}}`),Z(`\\varinjlim`,`\\DOTSB\\operatorname*{\\underrightarrow{lim}}`),Z(`\\varprojlim`,`\\DOTSB\\operatorname*{\\underleftarrow{lim}}`),Z(`\\gvertneqq`,`\\html@mathml{\\@gvertneqq}{≩}`),Z(`\\lvertneqq`,`\\html@mathml{\\@lvertneqq}{≨}`),Z(`\\ngeqq`,`\\html@mathml{\\@ngeqq}{≱}`),Z(`\\ngeqslant`,`\\html@mathml{\\@ngeqslant}{≱}`),Z(`\\nleqq`,`\\html@mathml{\\@nleqq}{≰}`),Z(`\\nleqslant`,`\\html@mathml{\\@nleqslant}{≰}`),Z(`\\nshortmid`,`\\html@mathml{\\@nshortmid}{∤}`),Z(`\\nshortparallel`,`\\html@mathml{\\@nshortparallel}{∦}`),Z(`\\nsubseteqq`,`\\html@mathml{\\@nsubseteqq}{⊈}`),Z(`\\nsupseteqq`,`\\html@mathml{\\@nsupseteqq}{⊉}`),Z(`\\varsubsetneq`,`\\html@mathml{\\@varsubsetneq}{⊊}`),Z(`\\varsubsetneqq`,`\\html@mathml{\\@varsubsetneqq}{⫋}`),Z(`\\varsupsetneq`,`\\html@mathml{\\@varsupsetneq}{⊋}`),Z(`\\varsupsetneqq`,`\\html@mathml{\\@varsupsetneqq}{⫌}`),Z(`\\imath`,`\\html@mathml{\\@imath}{ı}`),Z(`\\jmath`,`\\html@mathml{\\@jmath}{ȷ}`),Z(`\\llbracket`,"\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}"),Z(`\\rrbracket`,"\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}"),Z(`⟦`,`\\llbracket`),Z(`⟧`,`\\rrbracket`),Z(`\\lBrace`,"\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}"),Z(`\\rBrace`,"\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}"),Z(`⦃`,`\\lBrace`),Z(`⦄`,`\\rBrace`),Z(`\\minuso`,"\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}"),Z(`⦵`,`\\minuso`),Z(`\\darr`,`\\downarrow`),Z(`\\dArr`,`\\Downarrow`),Z(`\\Darr`,`\\Downarrow`),Z(`\\lang`,`\\langle`),Z(`\\rang`,`\\rangle`),Z(`\\uarr`,`\\uparrow`),Z(`\\uArr`,`\\Uparrow`),Z(`\\Uarr`,`\\Uparrow`),Z(`\\N`,`\\mathbb{N}`),Z(`\\R`,`\\mathbb{R}`),Z(`\\Z`,`\\mathbb{Z}`),Z(`\\alef`,`\\aleph`),Z(`\\alefsym`,`\\aleph`),Z(`\\Alpha`,`\\mathrm{A}`),Z(`\\Beta`,`\\mathrm{B}`),Z(`\\bull`,`\\bullet`),Z(`\\Chi`,`\\mathrm{X}`),Z(`\\clubs`,`\\clubsuit`),Z(`\\cnums`,`\\mathbb{C}`),Z(`\\Complex`,`\\mathbb{C}`),Z(`\\Dagger`,`\\ddagger`),Z(`\\diamonds`,`\\diamondsuit`),Z(`\\empty`,`\\emptyset`),Z(`\\Epsilon`,`\\mathrm{E}`),Z(`\\Eta`,`\\mathrm{H}`),Z(`\\exist`,`\\exists`),Z(`\\harr`,`\\leftrightarrow`),Z(`\\hArr`,`\\Leftrightarrow`),Z(`\\Harr`,`\\Leftrightarrow`),Z(`\\hearts`,`\\heartsuit`),Z(`\\image`,`\\Im`),Z(`\\infin`,`\\infty`),Z(`\\Iota`,`\\mathrm{I}`),Z(`\\isin`,`\\in`),Z(`\\Kappa`,`\\mathrm{K}`),Z(`\\larr`,`\\leftarrow`),Z(`\\lArr`,`\\Leftarrow`),Z(`\\Larr`,`\\Leftarrow`),Z(`\\lrarr`,`\\leftrightarrow`),Z(`\\lrArr`,`\\Leftrightarrow`),Z(`\\Lrarr`,`\\Leftrightarrow`),Z(`\\Mu`,`\\mathrm{M}`),Z(`\\natnums`,`\\mathbb{N}`),Z(`\\Nu`,`\\mathrm{N}`),Z(`\\Omicron`,`\\mathrm{O}`),Z(`\\plusmn`,`\\pm`),Z(`\\rarr`,`\\rightarrow`),Z(`\\rArr`,`\\Rightarrow`),Z(`\\Rarr`,`\\Rightarrow`),Z(`\\real`,`\\Re`),Z(`\\reals`,`\\mathbb{R}`),Z(`\\Reals`,`\\mathbb{R}`),Z(`\\Rho`,`\\mathrm{P}`),Z(`\\sdot`,`\\cdot`),Z(`\\sect`,`\\S`),Z(`\\spades`,`\\spadesuit`),Z(`\\sub`,`\\subset`),Z(`\\sube`,`\\subseteq`),Z(`\\supe`,`\\supseteq`),Z(`\\Tau`,`\\mathrm{T}`),Z(`\\thetasym`,`\\vartheta`),Z(`\\weierp`,`\\wp`),Z(`\\Zeta`,`\\mathrm{Z}`),Z(`\\argmin`,`\\DOTSB\\operatorname*{arg\\,min}`),Z(`\\argmax`,`\\DOTSB\\operatorname*{arg\\,max}`),Z(`\\plim`,`\\DOTSB\\mathop{\\operatorname{plim}}\\limits`),Z(`\\bra`,`\\mathinner{\\langle{#1}|}`),Z(`\\ket`,`\\mathinner{|{#1}\\rangle}`),Z(`\\braket`,`\\mathinner{\\langle{#1}\\rangle}`),Z(`\\Bra`,`\\left\\langle#1\\right|`),Z(`\\Ket`,`\\left|#1\\right\\rangle`);var ab=e=>t=>{var n=t.consumeArg().tokens,r=t.consumeArg().tokens,i=t.consumeArg().tokens,a=t.consumeArg().tokens,o=t.macros.get(`|`),s=t.macros.get(`\\|`);t.macros.beginGroup();var c=t=>n=>{e&&(n.macros.set(`|`,o),i.length&&n.macros.set(`\\|`,s));var a=t;return!t&&i.length&&n.future().text===`|`&&(n.popToken(),a=!0),{tokens:a?i:r,numArgs:0}};t.macros.set(`|`,c(!1)),i.length&&t.macros.set(`\\|`,c(!0));var l=t.consumeArg().tokens,u=t.expandTokens([...a,...l,...n]);return t.macros.endGroup(),{tokens:u.reverse(),numArgs:0}};Z(`\\bra@ket`,ab(!1)),Z(`\\bra@set`,ab(!0)),Z(`\\Braket`,`\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}`),Z(`\\Set`,`\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}`),Z(`\\set`,`\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}`),Z(`\\angln`,`{\\angl n}`),Z(`\\blue`,`\\textcolor{##6495ed}{#1}`),Z(`\\orange`,`\\textcolor{##ffa500}{#1}`),Z(`\\pink`,`\\textcolor{##ff00af}{#1}`),Z(`\\red`,`\\textcolor{##df0030}{#1}`),Z(`\\green`,`\\textcolor{##28ae7b}{#1}`),Z(`\\gray`,`\\textcolor{gray}{#1}`),Z(`\\purple`,`\\textcolor{##9d38bd}{#1}`),Z(`\\blueA`,`\\textcolor{##ccfaff}{#1}`),Z(`\\blueB`,`\\textcolor{##80f6ff}{#1}`),Z(`\\blueC`,`\\textcolor{##63d9ea}{#1}`),Z(`\\blueD`,`\\textcolor{##11accd}{#1}`),Z(`\\blueE`,`\\textcolor{##0c7f99}{#1}`),Z(`\\tealA`,`\\textcolor{##94fff5}{#1}`),Z(`\\tealB`,`\\textcolor{##26edd5}{#1}`),Z(`\\tealC`,`\\textcolor{##01d1c1}{#1}`),Z(`\\tealD`,`\\textcolor{##01a995}{#1}`),Z(`\\tealE`,`\\textcolor{##208170}{#1}`),Z(`\\greenA`,`\\textcolor{##b6ffb0}{#1}`),Z(`\\greenB`,`\\textcolor{##8af281}{#1}`),Z(`\\greenC`,`\\textcolor{##74cf70}{#1}`),Z(`\\greenD`,`\\textcolor{##1fab54}{#1}`),Z(`\\greenE`,`\\textcolor{##0d923f}{#1}`),Z(`\\goldA`,`\\textcolor{##ffd0a9}{#1}`),Z(`\\goldB`,`\\textcolor{##ffbb71}{#1}`),Z(`\\goldC`,`\\textcolor{##ff9c39}{#1}`),Z(`\\goldD`,`\\textcolor{##e07d10}{#1}`),Z(`\\goldE`,`\\textcolor{##a75a05}{#1}`),Z(`\\redA`,`\\textcolor{##fca9a9}{#1}`),Z(`\\redB`,`\\textcolor{##ff8482}{#1}`),Z(`\\redC`,`\\textcolor{##f9685d}{#1}`),Z(`\\redD`,`\\textcolor{##e84d39}{#1}`),Z(`\\redE`,`\\textcolor{##bc2612}{#1}`),Z(`\\maroonA`,`\\textcolor{##ffbde0}{#1}`),Z(`\\maroonB`,`\\textcolor{##ff92c6}{#1}`),Z(`\\maroonC`,`\\textcolor{##ed5fa6}{#1}`),Z(`\\maroonD`,`\\textcolor{##ca337c}{#1}`),Z(`\\maroonE`,`\\textcolor{##9e034e}{#1}`),Z(`\\purpleA`,`\\textcolor{##ddd7ff}{#1}`),Z(`\\purpleB`,`\\textcolor{##c6b9fc}{#1}`),Z(`\\purpleC`,`\\textcolor{##aa87ff}{#1}`),Z(`\\purpleD`,`\\textcolor{##7854ab}{#1}`),Z(`\\purpleE`,`\\textcolor{##543b78}{#1}`),Z(`\\mintA`,`\\textcolor{##f5f9e8}{#1}`),Z(`\\mintB`,`\\textcolor{##edf2df}{#1}`),Z(`\\mintC`,`\\textcolor{##e0e5cc}{#1}`),Z(`\\grayA`,`\\textcolor{##f6f7f7}{#1}`),Z(`\\grayB`,`\\textcolor{##f0f1f2}{#1}`),Z(`\\grayC`,`\\textcolor{##e3e5e6}{#1}`),Z(`\\grayD`,`\\textcolor{##d6d8da}{#1}`),Z(`\\grayE`,`\\textcolor{##babec2}{#1}`),Z(`\\grayF`,`\\textcolor{##888d93}{#1}`),Z(`\\grayG`,`\\textcolor{##626569}{#1}`),Z(`\\grayH`,`\\textcolor{##3b3e40}{#1}`),Z(`\\grayI`,`\\textcolor{##21242c}{#1}`),Z(`\\kaBlue`,`\\textcolor{##314453}{#1}`),Z(`\\kaGreen`,`\\textcolor{##71B307}{#1}`);var ob={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},sb=class{constructor(e,t,n){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=t,this.expansionCount=0,this.feed(e),this.macros=new Zy(Qy,t.macros),this.mode=n,this.stack=[]}feed(e){this.lexer=new Xy(e,this.settings)}switchMode(e){this.mode=e}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(e){this.stack.push(e)}pushTokens(e){this.stack.push(...e)}scanArgument(e){var t,n,r;if(e){if(this.consumeSpaces(),this.future().text!==`[`)return null;t=this.popToken(),{tokens:r,end:n}=this.consumeArg([`]`])}else ({tokens:r,start:t,end:n}=this.consumeArg());return this.pushToken(new Zv(`EOF`,n.loc)),this.pushTokens(r),new Zv(``,Xv.range(t,n))}consumeSpaces(){for(;this.future().text===` `;)this.stack.pop()}consumeArg(e){var t=[],n=e&&e.length>0;n||this.consumeSpaces();var r=this.future(),i,a=0,o=0;do{if(i=this.popToken(),t.push(i),i.text===`{`)++a;else if(i.text===`}`){if(--a,a===-1)throw new P(`Extra }`,i)}else if(i.text===`EOF`)throw new P(`Unexpected end of input in a macro argument, expected '`+(e&&n?e[o]:`}`)+`'`,i);if(e&&n)if((a===0||a===1&&e[o]===`{`)&&i.text===e[o]){if(++o,o===e.length){t.splice(-o,o);break}}else o=0}while(a!==0||n);return r.text===`{`&&t[t.length-1].text===`}`&&(t.pop(),t.shift()),t.reverse(),{tokens:t,start:r,end:i}}consumeArgs(e,t){if(t){if(t.length!==e+1)throw new P(`The length of delimiters doesn't match the number of args!`);for(var n=t[0],r=0;r<n.length;r++){var i=this.popToken();if(n[r]!==i.text)throw new P(`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 P(`Too many expansions: infinite loop or need to increase maxExpand setting`)}expandOnce(e){var t=this.popToken(),n=t.text,r=t.noexpand?null:this._getExpansion(n);if(r==null||e&&r.unexpandable){if(e&&r==null&&n[0]===`\\`&&!this.isDefined(n))throw new P(`Undefined control sequence: `+n);return this.pushToken(t),!1}this.countExpansion(1);var i=r.tokens,a=this.consumeArgs(r.numArgs,r.delimiters);if(r.numArgs){i=i.slice();for(var o=i.length-1;o>=0;--o){var s=i[o];if(s.text===`#`){if(o===0)throw new P(`Incomplete placeholder at end of macro body`,s);if(s=i[--o],s.text===`#`)i.splice(o+1,1);else if(/^[1-9]$/.test(s.text))i.splice(o,2,...a[s.text-1]);else throw new P(`Not a valid argument number`,s)}}}return this.pushTokens(i),i.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var e=this.stack.pop();return e.treatAsRelax&&(e.text=`\\relax`),e}}expandMacro(e){return this.macros.has(e)?this.expandTokens([new Zv(e)]):void 0}expandTokens(e){var t=[],n=this.stack.length;for(this.pushTokens(e);this.stack.length>n;)if(this.expandOnce(!0)===!1){var r=this.stack.pop();r.treatAsRelax&&=(r.noexpand=!1,!1),t.push(r)}return this.countExpansion(t.length),t}expandMacroAsText(e){var t=this.expandMacro(e);return t&&t.map(e=>e.text).join(``)}_getExpansion(e){var t=this.macros.get(e);if(t==null)return t;if(e.length===1){var n=this.lexer.catcodes[e];if(n!=null&&n!==13)return}var r=typeof t==`function`?t(this):t;if(typeof r==`string`){var i=0;if(r.includes(`#`))for(var a=r.replace(/##/g,``);a.includes(`#`+(i+1));)++i;for(var o=new Xy(r,this.settings),s=[],c=o.lex();c.text!==`EOF`;)s.push(c),c=o.lex();return s.reverse(),{tokens:s,numArgs:i}}return r}isDefined(e){return this.macros.has(e)||Vy.hasOwnProperty(e)||Ih.math.hasOwnProperty(e)||Ih.text.hasOwnProperty(e)||ob.hasOwnProperty(e)}isExpandable(e){var t=this.macros.get(e);return t==null?Vy.hasOwnProperty(e)&&!Vy[e].primitive:typeof t==`string`||typeof t==`function`||!t.unexpandable}},cb=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,lb=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`,ᵝ:`β`,ᵞ:`γ`,ᵟ:`δ`,ᵠ:`ϕ`,ᵡ:`χ`,ᶿ:`θ`}),ub={"́":{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`}},db={á:`á`,à:`à`,ä:`ä`,ǟ:`ǟ`,ã:`ã`,ā:`ā`,ă:`ă`,ắ:`ắ`,ằ:`ằ`,ẵ:`ẵ`,ǎ:`ǎ`,â:`â`,ấ:`ấ`,ầ:`ầ`,ẫ:`ẫ`,ȧ:`ȧ`,ǡ:`ǡ`,å:`å`,ǻ:`ǻ`,ḃ:`ḃ`,ć:`ć`,ḉ:`ḉ`,č:`č`,ĉ:`ĉ`,ċ:`ċ`,ç:`ç`,ď:`ď`,ḋ:`ḋ`,ḑ:`ḑ`,é:`é`,è:`è`,ë:`ë`,ẽ:`ẽ`,ē:`ē`,ḗ:`ḗ`,ḕ:`ḕ`,ĕ:`ĕ`,ḝ:`ḝ`,ě:`ě`,ê:`ê`,ế:`ế`,ề:`ề`,ễ:`ễ`,ė:`ė`,ȩ:`ȩ`,ḟ:`ḟ`,ǵ:`ǵ`,ḡ:`ḡ`,ğ:`ğ`,ǧ:`ǧ`,ĝ:`ĝ`,ġ:`ġ`,ģ:`ģ`,ḧ:`ḧ`,ȟ:`ȟ`,ĥ:`ĥ`,ḣ:`ḣ`,ḩ:`ḩ`,í:`í`,ì:`ì`,ï:`ï`,ḯ:`ḯ`,ĩ:`ĩ`,ī:`ī`,ĭ:`ĭ`,ǐ:`ǐ`,î:`î`,ǰ:`ǰ`,ĵ:`ĵ`,ḱ:`ḱ`,ǩ:`ǩ`,ķ:`ķ`,ĺ:`ĺ`,ľ:`ľ`,ļ:`ļ`,ḿ:`ḿ`,ṁ:`ṁ`,ń:`ń`,ǹ:`ǹ`,ñ:`ñ`,ň:`ň`,ṅ:`ṅ`,ņ:`ņ`,ó:`ó`,ò:`ò`,ö:`ö`,ȫ:`ȫ`,õ:`õ`,ṍ:`ṍ`,ṏ:`ṏ`,ȭ:`ȭ`,ō:`ō`,ṓ:`ṓ`,ṑ:`ṑ`,ŏ:`ŏ`,ǒ:`ǒ`,ô:`ô`,ố:`ố`,ồ:`ồ`,ỗ:`ỗ`,ȯ:`ȯ`,ȱ:`ȱ`,ő:`ő`,ṕ:`ṕ`,ṗ:`ṗ`,ŕ:`ŕ`,ř:`ř`,ṙ:`ṙ`,ŗ:`ŗ`,ś:`ś`,ṥ:`ṥ`,š:`š`,ṧ:`ṧ`,ŝ:`ŝ`,ṡ:`ṡ`,ş:`ş`,ẗ:`ẗ`,ť:`ť`,ṫ:`ṫ`,ţ:`ţ`,ú:`ú`,ù:`ù`,ü:`ü`,ǘ:`ǘ`,ǜ:`ǜ`,ǖ:`ǖ`,ǚ:`ǚ`,ũ:`ũ`,ṹ:`ṹ`,ū:`ū`,ṻ:`ṻ`,ŭ:`ŭ`,ǔ:`ǔ`,û:`û`,ů:`ů`,ű:`ű`,ṽ:`ṽ`,ẃ:`ẃ`,ẁ:`ẁ`,ẅ:`ẅ`,ŵ:`ŵ`,ẇ:`ẇ`,ẘ:`ẘ`,ẍ:`ẍ`,ẋ:`ẋ`,ý:`ý`,ỳ:`ỳ`,ÿ:`ÿ`,ỹ:`ỹ`,ȳ:`ȳ`,ŷ:`ŷ`,ẏ:`ẏ`,ẙ:`ẙ`,ź:`ź`,ž:`ž`,ẑ:`ẑ`,ż:`ż`,Á:`Á`,À:`À`,Ä:`Ä`,Ǟ:`Ǟ`,Ã:`Ã`,Ā:`Ā`,Ă:`Ă`,Ắ:`Ắ`,Ằ:`Ằ`,Ẵ:`Ẵ`,Ǎ:`Ǎ`,Â:`Â`,Ấ:`Ấ`,Ầ:`Ầ`,Ẫ:`Ẫ`,Ȧ:`Ȧ`,Ǡ:`Ǡ`,Å:`Å`,Ǻ:`Ǻ`,Ḃ:`Ḃ`,Ć:`Ć`,Ḉ:`Ḉ`,Č:`Č`,Ĉ:`Ĉ`,Ċ:`Ċ`,Ç:`Ç`,Ď:`Ď`,Ḋ:`Ḋ`,Ḑ:`Ḑ`,É:`É`,È:`È`,Ë:`Ë`,Ẽ:`Ẽ`,Ē:`Ē`,Ḗ:`Ḗ`,Ḕ:`Ḕ`,Ĕ:`Ĕ`,Ḝ:`Ḝ`,Ě:`Ě`,Ê:`Ê`,Ế:`Ế`,Ề:`Ề`,Ễ:`Ễ`,Ė:`Ė`,Ȩ:`Ȩ`,Ḟ:`Ḟ`,Ǵ:`Ǵ`,Ḡ:`Ḡ`,Ğ:`Ğ`,Ǧ:`Ǧ`,Ĝ:`Ĝ`,Ġ:`Ġ`,Ģ:`Ģ`,Ḧ:`Ḧ`,Ȟ:`Ȟ`,Ĥ:`Ĥ`,Ḣ:`Ḣ`,Ḩ:`Ḩ`,Í:`Í`,Ì:`Ì`,Ï:`Ï`,Ḯ:`Ḯ`,Ĩ:`Ĩ`,Ī:`Ī`,Ĭ:`Ĭ`,Ǐ:`Ǐ`,Î:`Î`,İ:`İ`,Ĵ:`Ĵ`,Ḱ:`Ḱ`,Ǩ:`Ǩ`,Ķ:`Ķ`,Ĺ:`Ĺ`,Ľ:`Ľ`,Ļ:`Ļ`,Ḿ:`Ḿ`,Ṁ:`Ṁ`,Ń:`Ń`,Ǹ:`Ǹ`,Ñ:`Ñ`,Ň:`Ň`,Ṅ:`Ṅ`,Ņ:`Ņ`,Ó:`Ó`,Ò:`Ò`,Ö:`Ö`,Ȫ:`Ȫ`,Õ:`Õ`,Ṍ:`Ṍ`,Ṏ:`Ṏ`,Ȭ:`Ȭ`,Ō:`Ō`,Ṓ:`Ṓ`,Ṑ:`Ṑ`,Ŏ:`Ŏ`,Ǒ:`Ǒ`,Ô:`Ô`,Ố:`Ố`,Ồ:`Ồ`,Ỗ:`Ỗ`,Ȯ:`Ȯ`,Ȱ:`Ȱ`,Ő:`Ő`,Ṕ:`Ṕ`,Ṗ:`Ṗ`,Ŕ:`Ŕ`,Ř:`Ř`,Ṙ:`Ṙ`,Ŗ:`Ŗ`,Ś:`Ś`,Ṥ:`Ṥ`,Š:`Š`,Ṧ:`Ṧ`,Ŝ:`Ŝ`,Ṡ:`Ṡ`,Ş:`Ş`,Ť:`Ť`,Ṫ:`Ṫ`,Ţ:`Ţ`,Ú:`Ú`,Ù:`Ù`,Ü:`Ü`,Ǘ:`Ǘ`,Ǜ:`Ǜ`,Ǖ:`Ǖ`,Ǚ:`Ǚ`,Ũ:`Ũ`,Ṹ:`Ṹ`,Ū:`Ū`,Ṻ:`Ṻ`,Ŭ:`Ŭ`,Ǔ:`Ǔ`,Û:`Û`,Ů:`Ů`,Ű:`Ű`,Ṽ:`Ṽ`,Ẃ:`Ẃ`,Ẁ:`Ẁ`,Ẅ:`Ẅ`,Ŵ:`Ŵ`,Ẇ:`Ẇ`,Ẍ:`Ẍ`,Ẋ:`Ẋ`,Ý:`Ý`,Ỳ:`Ỳ`,Ÿ:`Ÿ`,Ỹ:`Ỹ`,Ȳ:`Ȳ`,Ŷ:`Ŷ`,Ẏ:`Ẏ`,Ź:`Ź`,Ž:`Ž`,Ẑ:`Ẑ`,Ż:`Ż`,ά:`ά`,ὰ:`ὰ`,ᾱ:`ᾱ`,ᾰ:`ᾰ`,έ:`έ`,ὲ:`ὲ`,ή:`ή`,ὴ:`ὴ`,ί:`ί`,ὶ:`ὶ`,ϊ:`ϊ`,ΐ:`ΐ`,ῒ:`ῒ`,ῑ:`ῑ`,ῐ:`ῐ`,ό:`ό`,ὸ:`ὸ`,ύ:`ύ`,ὺ:`ὺ`,ϋ:`ϋ`,ΰ:`ΰ`,ῢ:`ῢ`,ῡ:`ῡ`,ῠ:`ῠ`,ώ:`ώ`,ὼ:`ὼ`,Ύ:`Ύ`,Ὺ:`Ὺ`,Ϋ:`Ϋ`,Ῡ:`Ῡ`,Ῠ:`Ῠ`,Ώ:`Ώ`,Ὼ:`Ὼ`},fb=class e{constructor(e,t){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode=`math`,this.gullet=new sb(e,t,this.mode),this.settings=t,this.leftrightDepth=0,this.nextToken=null}expect(e,t){if(t===void 0&&(t=!0),this.fetch().text!==e)throw new P(`Expected '`+e+`', got '`+this.fetch().text+`'`,this.fetch());t&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken??=this.gullet.expandNextToken(),this.nextToken}switchMode(e){this.mode=e,this.gullet.switchMode(e)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set(`\\color`,`\\textcolor`);try{var e=this.parseExpression(!1);return this.expect(`EOF`),this.settings.globalGroup||this.gullet.endGroup(),e}finally{this.gullet.endGroups()}}subparse(e){var t=this.nextToken;this.consume(),this.gullet.pushToken(new Zv(`}`)),this.gullet.pushTokens(e);var n=this.parseExpression(!1);return this.expect(`}`),this.nextToken=t,n}parseExpression(t,n){for(var r=[];;){this.mode===`math`&&this.consumeSpaces();var i=this.fetch();if(e.endOfExpression.has(i.text)||n&&i.text===n||t&&Vy[i.text]&&Vy[i.text].infix)break;var a=this.parseAtom(n);if(!a)break;a.type!==`internal`&&r.push(a)}return this.mode===`text`&&this.formLigatures(r),this.handleInfixNodes(r)}handleInfixNodes(e){for(var t=-1,n,r=0;r<e.length;r++){var i=e[r];if(i.type===`infix`){if(t!==-1)throw new P(`only one infix operator per group`,i.token);t=r,n=i.replaceWith}}if(t!==-1&&n){var a,o,s=e.slice(0,t),c=e.slice(t+1);return a=s.length===1&&s[0].type===`ordgroup`?s[0]:{type:`ordgroup`,mode:this.mode,body:s},o=c.length===1&&c[0].type===`ordgroup`?c[0]:{type:`ordgroup`,mode:this.mode,body:c},[n===`\\\\abovefrac`?this.callFunction(n,[a,e[t],o],[]):this.callFunction(n,[a,o],[])]}else return e}handleSupSubscript(e){var t=this.fetch(),n=t.text;this.consume(),this.consumeSpaces();var r;do r=this.parseGroup(e);while(r?.type===`internal`);if(!r)throw new P(`Expected group after '`+n+`'`,t);return r}formatUnsupportedCmd(e){for(var t=[],n=0;n<e.length;n++)t.push({type:`textord`,mode:`text`,text:e[n]});var r={type:`text`,mode:this.mode,body:t};return{type:`color`,mode:this.mode,color:this.settings.errorColor,body:[r]}}parseAtom(e){var t=this.parseGroup(`atom`,e);if(t?.type===`internal`||this.mode===`text`)return t;for(var n,r;;){this.consumeSpaces();var i=this.fetch();if(i.text===`\\limits`||i.text===`\\nolimits`){if(t&&t.type===`op`)t.limits=i.text===`\\limits`,t.alwaysHandleSupSub=!0;else if(t&&t.type===`operatorname`)t.alwaysHandleSupSub&&(t.limits=i.text===`\\limits`);else throw new P(`Limit controls must follow a math operator`,i);this.consume()}else if(i.text===`^`){if(n)throw new P(`Double superscript`,i);n=this.handleSupSubscript(`superscript`)}else if(i.text===`_`){if(r)throw new P(`Double subscript`,i);r=this.handleSupSubscript(`subscript`)}else if(i.text===`'`){if(n)throw new P(`Double superscript`,i);var a={type:`textord`,mode:this.mode,text:`\\prime`},o=[a];for(this.consume();this.fetch().text===`'`;)o.push(a),this.consume();this.fetch().text===`^`&&o.push(this.handleSupSubscript(`superscript`)),n={type:`ordgroup`,mode:this.mode,body:o}}else if(lb[i.text]){var s=cb.test(i.text),c=[];for(c.push(new Zv(lb[i.text])),this.consume();;){var l=this.fetch().text;if(!lb[l]||cb.test(l)!==s)break;c.unshift(new Zv(lb[l])),this.consume()}var u=this.subparse(c);s?r={type:`ordgroup`,mode:`math`,body:u}:n={type:`ordgroup`,mode:`math`,body:u}}else break}return n||r?{type:`supsub`,mode:this.mode,base:t,sup:n,sub:r}:t}parseFunction(e,t){var n=this.fetch(),r=n.text,i=Vy[r];if(!i)return null;if(this.consume(),t&&t!==`atom`&&!i.allowedInArgument)throw new P(`Got function '`+r+`' with no arguments`+(t?` as `+t:``),n);if(this.mode===`text`&&!i.allowedInText)throw new P(`Can't use function '`+r+`' in text mode`,n);if(this.mode===`math`&&i.allowedInMath===!1)throw new P(`Can't use function '`+r+`' in math mode`,n);var{args:a,optArgs:o}=this.parseArguments(r,i);return this.callFunction(r,a,o,n,e)}callFunction(e,t,n,r,i){var a={funcName:e,parser:this,token:r,breakOnTokenText:i},o=Vy[e];if(o&&o.handler)return o.handler(a,t,n);throw new P(`No function handler for `+e)}parseArguments(e,t){var n=t.numArgs+t.numOptionalArgs;if(n===0)return{args:[],optArgs:[]};for(var r=[],i=[],a=0;a<n;a++){var o=t.argTypes&&t.argTypes[a],s=a<t.numOptionalArgs;(`primitive`in t&&t.primitive&&o==null||t.type===`sqrt`&&a===1&&i[0]==null)&&(o=`primitive`);var c=this.parseGroupOfType(`argument to '`+e+`'`,o,s);if(s)i.push(c);else if(c!=null)r.push(c);else throw new P(`Null argument, please report this as a bug`)}return{args:r,optArgs:i}}parseGroupOfType(e,t,n){switch(t){case`color`:return this.parseColorGroup(n);case`size`:return this.parseSizeGroup(n);case`url`:return this.parseUrlGroup(n);case`math`:case`text`:return this.parseArgumentGroup(n,t);case`hbox`:var r=this.parseArgumentGroup(n,`text`);return r==null?null:{type:`styling`,mode:r.mode,body:[r],style:`text`,resetFont:!0};case`raw`:var i=this.parseStringGroup(`raw`,n);return i==null?null:{type:`raw`,mode:`text`,string:i.text};case`primitive`:if(n)throw new P(`A primitive argument cannot be optional`);var a=this.parseGroup(e);if(a==null)throw new P(`Expected group as `+e,this.fetch());return a;case`original`:case null:case void 0:return this.parseArgumentGroup(n);default:throw new P(`Unknown group type as `+e,this.fetch())}}consumeSpaces(){for(;this.fetch().text===` `;)this.consume()}parseStringGroup(e,t){var n=this.gullet.scanArgument(t);if(n==null)return null;for(var r=``,i;(i=this.fetch()).text!==`EOF`;)r+=i.text,this.consume();return this.consume(),n.text=r,n}parseRegexGroup(e,t){for(var n=this.fetch(),r=n,i=``,a;(a=this.fetch()).text!==`EOF`&&e.test(i+a.text);)r=a,i+=r.text,this.consume();if(i===``)throw new P(`Invalid `+t+`: '`+n.text+`'`,n);return n.range(r,i)}parseColorGroup(e){var t=this.parseStringGroup(`color`,e);if(t==null)return null;var n=/^(#[a-f0-9]{3,4}|#[a-f0-9]{6}|#[a-f0-9]{8}|[a-f0-9]{6}|[a-z]+)$/i.exec(t.text);if(!n)throw new P(`Invalid color: '`+t.text+`'`,t);var r=n[0];return/^[0-9a-f]{6}$/i.test(r)&&(r=`#`+r),{type:`color-token`,mode:this.mode,color:r}}parseSizeGroup(e){var t,n=!1;if(this.gullet.consumeSpaces(),t=!e&&this.gullet.future().text!==`{`?this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,`size`):this.parseStringGroup(`size`,e),!t)return null;!e&&t.text.length===0&&(t.text=`0pt`,n=!0);var r=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t.text);if(!r)throw new P(`Invalid size: '`+t.text+`'`,t);var i={number:+(r[1]+r[2]),unit:r[3]};if(!uh(i))throw new P(`Invalid unit: '`+i.unit+`'`,t);return{type:`size`,mode:this.mode,value:i,isBlank:n}}parseUrlGroup(e){this.gullet.lexer.setCatcode(`%`,13),this.gullet.lexer.setCatcode(`~`,12);var t=this.parseStringGroup(`url`,e);if(this.gullet.lexer.setCatcode(`%`,14),this.gullet.lexer.setCatcode(`~`,13),t==null)return null;var n=t.text.replace(/\\([#$%&~_^{}])/g,`$1`);return{type:`url`,mode:this.mode,url:n}}parseArgumentGroup(e,t){var n=this.gullet.scanArgument(e);if(n==null)return null;var r=this.mode;t&&this.switchMode(t),this.gullet.beginGroup();var i=this.parseExpression(!1,`EOF`);this.expect(`EOF`),this.gullet.endGroup();var a={type:`ordgroup`,mode:this.mode,loc:n.loc,body:i};return t&&this.switchMode(r),a}parseGroup(e,t){var n=this.fetch(),r=n.text,i;if(r===`{`||r===`\\begingroup`){this.consume();var a=r===`{`?`}`:`\\endgroup`;this.gullet.beginGroup();var o=this.parseExpression(!1,a),s=this.fetch();this.expect(a),this.gullet.endGroup(),i={type:`ordgroup`,mode:this.mode,loc:Xv.range(n,s),body:o,semisimple:r===`\\begingroup`||void 0}}else if(i=this.parseFunction(t,e)||this.parseSymbol(),i==null&&r[0]===`\\`&&!ob.hasOwnProperty(r)){if(this.settings.throwOnError)throw new P(`Undefined control sequence: `+r,n);i=this.formatUnsupportedCmd(r),this.consume()}return i}formLigatures(e){for(var t=e.length-1,n=0;n<t;++n){var r=e[n];if(r.type===`textord`){var i=r.text,a=e[n+1];if(!(!a||a.type!==`textord`)){if(i===`-`&&a.text===`-`){var o=e[n+2];n+1<t&&o&&o.type===`textord`&&o.text===`-`?(e.splice(n,3,{type:`textord`,mode:`text`,loc:Xv.range(r,o),text:`---`}),t-=2):(e.splice(n,2,{type:`textord`,mode:`text`,loc:Xv.range(r,a),text:`--`}),--t)}(i===`'`||i==="`")&&a.text===i&&(e.splice(n,2,{type:`textord`,mode:`text`,loc:Xv.range(r,a),text:i+i}),--t)}}}}parseSymbol(){var e=this.fetch(),t=e.text;if(/^\\verb[^a-zA-Z]/.test(t)){this.consume();var n=t.slice(5),r=n.charAt(0)===`*`;if(r&&(n=n.slice(1)),n.length<2||n.charAt(0)!==n.slice(-1))throw new P(`\\verb assertion failed --
|
|
413
|
+
please report what input caused this bug`);return n=n.slice(1,-1),{type:`verb`,mode:`text`,body:n,star:r}}db.hasOwnProperty(t[0])&&!Ih[this.mode][t[0]]&&(this.settings.strict&&this.mode===`math`&&this.settings.reportNonstrict(`unicodeTextInMathMode`,`Accented Unicode text character "`+t[0]+`" used in math mode`,e),t=db[t[0]]+t.slice(1));var i=Jy.exec(t);i&&(t=t.substring(0,i.index),t===`i`?t=`ı`:t===`j`&&(t=`ȷ`));var a;if(Ih[this.mode][t]){this.settings.strict&&this.mode===`math`&&ig.includes(t)&&this.settings.reportNonstrict(`unicodeTextInMathMode`,`Latin-1/Unicode text character "`+t[0]+`" used in math mode`,e);var o=Ih[this.mode][t].group,s=Xv.range(e);a=H_(o)?{type:`atom`,mode:this.mode,family:o,loc:s,text:t}:{type:o,mode:this.mode,loc:s,text:t}}else if(t.charCodeAt(0)>=128)this.settings.strict&&(Km(t.charCodeAt(0))?this.mode===`math`&&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)),a={type:`textord`,mode:`text`,loc:Xv.range(e),text:t};else return null;if(this.consume(),i)for(var c=0;c<i[0].length;c++){var l=i[0][c];if(!ub[l])throw new P(`Unknown accent ' `+l+`'`,e);var u=ub[l][this.mode]||ub[l].text;if(!u)throw new P(`Accent `+l+` unsupported in `+this.mode+` mode`,e);a={type:`accent`,mode:this.mode,loc:Xv.range(e),label:u,isStretchy:!1,isShifty:!0,base:a}}return a}};fb.endOfExpression=new Set([`}`,`\\endgroup`,`\\end`,`\\right`,`&`]);var pb=function(e,t){if(!(typeof e==`string`||e instanceof String))throw TypeError(`KaTeX can only parse string typed expression`);var n=new fb(e,t);delete n.gullet.macros.current[`\\df@tag`];var r=n.parse();if(delete n.gullet.macros.current[`\\current@color`],delete n.gullet.macros.current[`\\color`],n.gullet.macros.get(`\\df@tag`)){if(!t.displayMode)throw new P(`\\tag works only in display equations`);r=[{type:`tag`,mode:`text`,body:r,tag:n.subparse([new Zv(`\\df@tag`)])}]}return r},mb=function(e,t,n){t.textContent=``;var r=vb(e,n).toNode();t.appendChild(r)};typeof document<`u`&&document.compatMode!==`CSS1Compat`&&(typeof console<`u`&&console.warn(`Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype.`),mb=function(){throw new P(`KaTeX doesn't work in quirks mode.`)});var hb=function(e,t){return vb(e,t).toMarkup()},gb=function(e,t){return pb(e,new Em(t))},_b=function(e,t,n){if(n.throwOnError||!(e instanceof P))throw e;var r=q([`katex-error`],[new Sh(t)]);return r.setAttribute(`title`,e.toString()),r.setAttribute(`style`,`color:`+n.errorColor),r},vb=function(e,t){var n=new Em(t);try{return M_(pb(e,n),e,n)}catch(t){return _b(t,e,n)}},yb=function(e,t){var n=new Em(t);try{return N_(pb(e,n),e,n)}catch(t){return _b(t,e,n)}},bb=`0.16.47`,xb={Span:vh,Anchor:yh,SymbolNode:Sh,SvgNode:Ch,PathNode:wh,LineNode:Th},Sb={version:bb,render:mb,renderToString:hb,ParseError:P,SETTINGS_SCHEMA:Sm,__parse:gb,__renderToDomTree:vb,__renderToHTMLTree:yb,__setFontMetrics:Mh,__defineSymbol:L,__defineFunction:J,__defineMacro:Z,__domTree:xb},Cb={},wb=[];function Tb(e){let t=e||Cb;return function(e,n){Ct(e,`element`,function(e,r){let i=Array.isArray(e.properties.className)?e.properties.className:wb,a=i.includes(`language-math`),o=i.includes(`math-display`),s=i.includes(`math-inline`),c=o;if(!a&&!o&&!s)return;let l=r[r.length-1],u=e;if(e.tagName===`code`&&a&&l&&l.type===`element`&&l.tagName===`pre`&&(u=l,l=r[r.length-2],c=!0),!l)return;let d=rm(u,{whitespace:`pre`}),f;try{f=Sb.renderToString(d,{...t,displayMode:c,throwOnError:!0})}catch(i){let a=i,o=a.name.toLowerCase();n.message(`Could not render math with KaTeX`,{ancestors:[...r,e],cause:a,place:e.position,ruleId:o,source:`rehype-katex`});try{f=Sb.renderToString(d,{...t,displayMode:c,strict:`ignore`,throwOnError:!1})}catch{f=[{type:`element`,tagName:`span`,properties:{className:[`katex-error`],style:`color:`+(t.errorColor||`#cc0000`),title:String(i)},children:[{type:`text`,value:d}]}]}}typeof f==`string`&&(f=Bp(f,{fragment:!0}).children);let p=l.children.indexOf(u);return l.children.splice(p,1,...f),Vt})}}function Eb(){return{enter:{mathFlow:e,mathFlowFenceMeta:t,mathText:a},exit:{mathFlow:i,mathFlowFence:r,mathFlowFenceMeta:n,mathFlowValue:s,mathText:o,mathTextData:s}};function e(e){this.enter({type:`math`,meta:null,value:``,data:{hName:`pre`,hChildren:[{type:`element`,tagName:`code`,properties:{className:[`language-math`,`math-display`]},children:[]}]}},e)}function t(){this.buffer()}function n(){let e=this.resume(),t=this.stack[this.stack.length-1];t.type,t.meta=e}function r(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)}function i(e){let t=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,``),n=this.stack[this.stack.length-1];n.type,this.exit(e),n.value=t;let r=n.data.hChildren[0];r.type,r.tagName,r.children.push({type:`text`,value:t}),this.data.mathFlowInside=void 0}function a(e){this.enter({type:`inlineMath`,value:``,data:{hName:`code`,hProperties:{className:[`language-math`,`math-inline`]},hChildren:[]}},e),this.buffer()}function o(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,this.exit(e),n.value=t,n.data.hChildren.push({type:`text`,value:t})}function s(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}}function Db(e){let t=(e||{}).singleDollarTextMath;return t??=!0,r.peek=i,{unsafe:[{character:`\r`,inConstruct:`mathFlowMeta`},{character:`
|
|
414
|
+
`,inConstruct:`mathFlowMeta`},{character:`$`,after:t?void 0:`\\$`,inConstruct:`phrasing`},{character:`$`,inConstruct:`mathFlowMeta`},{atBreak:!0,character:`$`,after:`\\$`}],handlers:{math:n,inlineMath:r}};function n(e,t,n,r){let i=e.value||``,a=n.createTracker(r),o=`$`.repeat(Math.max(Lt(i,`$`)+1,2)),s=n.enter(`mathFlow`),c=a.move(o);if(e.meta){let t=n.enter(`mathFlowMeta`);c+=a.move(n.safe(e.meta,{after:`
|
|
415
415
|
`,before:c,encode:[`$`],...a.current()})),t()}return c+=a.move(`
|
|
416
416
|
`),i&&(c+=a.move(i+`
|
|
417
|
-
`)),c+=a.move(o),s(),c}function r(e,n,r){let i=e.value||``,a=1;for(t||a++;RegExp(`(^|[^$])`+`\\$`.repeat(a)+`([^$]|$)`).test(i);)a++;let o=`$`.repeat(a);/[^ \r\n]/.test(i)&&(/^[ \r\n]/.test(i)&&/[ \r\n]$/.test(i)||/^\$|\$$/.test(i))&&(i=` `+i+` `);let s=-1;for(;++s<r.unsafe.length;){let e=r.unsafe[s];if(!e.atBreak)continue;let t=r.compilePattern(e),n;for(;n=t.exec(i);){let e=n.index;i.codePointAt(e)===10&&i.codePointAt(e-1)===13&&e--,i=i.slice(0,e)+` `+i.slice(n.index+1)}}return o+i+o}function i(){return`$`}}var Ab={tokenize:Mb,concrete:!0,name:`mathFlow`},jb={tokenize:Nb,partial:!0};function Mb(e,t,n){let r=this,i=r.events[r.events.length-1],a=i&&i[1].type===`linePrefix`?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(t){return e.enter(`mathFlow`),e.enter(`mathFlowFence`),e.enter(`mathFlowFenceSequence`),c(t)}function c(t){return t===36?(e.consume(t),o++,c):o<2?n(t):(e.exit(`mathFlowFenceSequence`),It(e,l,`whitespace`)(t))}function l(t){return t===null||St(t)?d(t):(e.enter(`mathFlowFenceMeta`),e.enter(`chunkString`,{contentType:`string`}),u(t))}function u(t){return t===null||St(t)?(e.exit(`chunkString`),e.exit(`mathFlowFenceMeta`),d(t)):t===36?n(t):(e.consume(t),u)}function d(n){return e.exit(`mathFlowFence`),r.interrupt?t(n):e.attempt(jb,f,g)(n)}function f(t){return e.attempt({tokenize:_,partial:!0},g,p)(t)}function p(t){return(a?It(e,m,`linePrefix`,a+1):m)(t)}function m(t){return t===null?g(t):St(t)?e.attempt(jb,f,g)(t):(e.enter(`mathFlowValue`),h(t))}function h(t){return t===null||St(t)?(e.exit(`mathFlowValue`),m(t)):(e.consume(t),h)}function g(n){return e.exit(`mathFlow`),t(n)}function _(e,t,n){let i=0;return It(e,a,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4);function a(t){return e.enter(`mathFlowFence`),e.enter(`mathFlowFenceSequence`),s(t)}function s(t){return t===36?(i++,e.consume(t),s):i<o?n(t):(e.exit(`mathFlowFenceSequence`),It(e,c,`whitespace`)(t))}function c(r){return r===null||St(r)?(e.exit(`mathFlowFence`),t(r)):n(r)}}}function Nb(e,t,n){let r=this;return i;function i(n){return n===null?t(n):(e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),a)}function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}function Pb(e){let t=(e||{}).singleDollarTextMath;return t??=!0,{tokenize:n,resolve:Fb,previous:Ib,name:`mathText`};function n(e,n,r){let i=0,a,o;return s;function s(t){return e.enter(`mathText`),e.enter(`mathTextSequence`),c(t)}function c(n){return n===36?(e.consume(n),i++,c):i<2&&!t?r(n):(e.exit(`mathTextSequence`),l(n))}function l(t){return t===null?r(t):t===36?(o=e.enter(`mathTextSequence`),a=0,d(t)):t===32?(e.enter(`space`),e.consume(t),e.exit(`space`),l):St(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),l):(e.enter(`mathTextData`),u(t))}function u(t){return t===null||t===32||t===36||St(t)?(e.exit(`mathTextData`),l(t)):(e.consume(t),u)}function d(t){return t===36?(e.consume(t),a++,d):a===i?(e.exit(`mathTextSequence`),e.exit(`mathText`),n(t)):(o.type=`mathTextData`,u(t))}}}function Fb(e){let t=e.length-4,n=3,r,i;if((e[n][1].type===`lineEnding`||e[n][1].type===`space`)&&(e[t][1].type===`lineEnding`||e[t][1].type===`space`)){for(r=n;++r<t;)if(e[r][1].type===`mathTextData`){e[t][1].type=`mathTextPadding`,e[n][1].type=`mathTextPadding`,n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!==`lineEnding`&&(i=r):(r===t||e[r][1].type===`lineEnding`)&&(e[i][1].type=`mathTextData`,r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function Ib(e){return e!==36||this.events[this.events.length-1][1].type===`characterEscape`}function Lb(e){return{flow:{36:Ab},text:{36:Pb(e)}}}var Rb={};function zb(e){let t=this,n=e||Rb,r=t.data(),i=r.micromarkExtensions||=[],a=r.fromMarkdownExtensions||=[],o=r.toMarkdownExtensions||=[];i.push(Lb(n)),a.push(Ob()),o.push(kb(n))}function Bb(e={}){return{name:`katex`,type:`math`,remarkPlugin:[zb,{singleDollarTextMath:e.singleDollarTextMath??!1}],rehypePlugin:[Db,{errorColor:e.errorColor??`var(--color-muted-foreground)`}],getStyles(){return`katex/dist/katex.min.css`}}}var Vb=Bb();function Hb(e){let t=e?.constructor;return e===(typeof t==`function`?t.prototype:Object.prototype)}function Ub(e){if(e==null)return!0;if(kn(e))return typeof e.splice!=`function`&&typeof e!=`string`&&!xn(e)&&!On(e)&&!An(e)?!1:e.length===0;if(typeof e==`object`){if(e instanceof Map||e instanceof Set)return e.size===0;let t=Object.keys(e);return Hb(e)?t.filter(e=>e!==`constructor`).length===0:t.length===0}return!0}var Wb=`comm`,Gb=`rule`,Kb=`decl`,qb=`@import`,Jb=`@namespace`,Yb=`@keyframes`,Xb=`@layer`,Zb=Math.abs,Qb=String.fromCharCode;function $b(e){return e.trim()}function ex(e,t,n){return e.replace(t,n)}function tx(e,t){return e.charCodeAt(t)|0}function nx(e,t,n){return e.slice(t,n)}function rx(e){return e.length}function ix(e){return e.length}function ax(e,t){return t.push(e),e}var ox=1,sx=1,cx=0,lx=0,ux=0,dx=``;function fx(e,t,n,r,i,a,o,s){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:ox,column:sx,length:o,return:``,siblings:s}}function px(){return ux}function mx(){return ux=lx>0?tx(dx,--lx):0,sx--,ux===10&&(sx=1,ox--),ux}function hx(){return ux=lx<cx?tx(dx,lx++):0,sx++,ux===10&&(sx=1,ox++),ux}function gx(){return tx(dx,lx)}function _x(){return lx}function vx(e,t){return nx(dx,e,t)}function yx(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function bx(e){return ox=sx=1,cx=rx(dx=e),lx=0,[]}function xx(e){return dx=``,e}function Sx(e){return $b(vx(lx-1,Tx(e===91?e+2:e===40?e+1:e)))}function Cx(e){for(;(ux=gx())&&ux<33;)hx();return yx(e)>2||yx(ux)>3?``:` `}function wx(e,t){for(;--t&&hx()&&!(ux<48||ux>102||ux>57&&ux<65||ux>70&&ux<97););return vx(e,_x()+(t<6&&gx()==32&&hx()==32))}function Tx(e){for(;hx();)switch(ux){case e:return lx;case 34:case 39:e!==34&&e!==39&&Tx(ux);break;case 40:e===41&&Tx(e);break;case 92:hx();break}return lx}function Ex(e,t){for(;hx()&&e+ux!==57&&!(e+ux===84&&gx()===47););return`/*`+vx(t,lx-1)+`*`+Qb(e===47?e:hx())}function Dx(e){for(;!yx(gx());)hx();return vx(e,lx)}function Ox(e){return xx(kx(``,null,null,null,[``],e=bx(e),0,[0],e))}function kx(e,t,n,r,i,a,o,s,c){for(var l=0,u=0,d=o,f=0,p=0,m=0,h=1,g=1,_=1,v=0,y=0,b=``,x=i,S=a,C=r,w=b;g;)switch(m=y,y=hx()){case 40:m!=108&&tx(w,d-1)==58?(v++,w+=`(`):w+=Sx(y);break;case 41:v--,w+=`)`;break;case 34:case 39:case 91:w+=Sx(y);break;case 9:case 10:case 13:case 32:if(v>0){w+=Qb(y);break}w+=Cx(m);break;case 92:w+=wx(_x()-1,7);continue;case 47:switch(gx()){case 42:case 47:ax(jx(Ex(hx(),_x()),t,n,c),c),(yx(m||1)==5||yx(gx()||1)==5)&&rx(w)&&nx(w,-1,void 0)!==` `&&(w+=` `);break;default:w+=`/`}break;case 123*h:s[l++]=rx(w)*_;case 125*h:case 59:case 0:if(v>0&&y){w+=Qb(y);break}switch(y){case 0:case 125:g=0;case 59+u:_==-1&&(w=ex(w,/\f/g,``)),p>0&&(rx(w)-d||h===0)&&ax(p>32?Mx(w+`;`,r,n,d-1,c):Mx(ex(w,` `,``)+`;`,r,n,d-2,c),c);break;case 59:w+=`;`;default:if(ax(C=Ax(w,t,n,l,u,i,s,b,x=[],S=[],d,a),a),y===123)if(u===0)kx(w,t,C,C,x,a,d,s,S);else{switch(f){case 99:if(tx(w,3)===110)break;case 108:if(tx(w,2)===97)break;default:u=0;case 100:case 109:case 115:}u?kx(e,C,C,r&&ax(Ax(e,C,C,0,0,i,s,b,i,x=[],d,S),S),i,S,d,s,r?x:S):kx(w,C,C,C,[``],S,0,s,S)}}l=u=p=0,h=_=1,b=w=``,d=o;break;case 58:d=1+rx(w),p=m;default:if(h<1){if(y==123)--h;else if(y==125&&h++==0&&mx()==125)continue}switch(w+=Qb(y),y*h){case 38:_=u>0?1:(w+=`\f`,-1);break;case 44:if(v>0)break;s[l++]=(rx(w)-1)*_,_=1;break;case 64:gx()===45&&(w+=Sx(hx())),f=gx(),u=d=rx(b=w+=Dx(_x())),y++;break;case 45:m===45&&rx(w)==2&&(h=0)}}return a}function Ax(e,t,n,r,i,a,o,s,c,l,u,d){for(var f=i-1,p=i===0?a:[``],m=ix(p),h=0,g=0,_=0;h<r;++h)for(var v=0,y=nx(e,f+1,f=Zb(g=o[h])),b=e;v<m;++v)(b=$b(g>0?p[v]+` `+y:ex(y,/&\f/g,p[v])))&&(c[_++]=b);return fx(e,t,n,i===0?Gb:s,c,l,u,d)}function jx(e,t,n,r){return fx(e,t,n,Wb,Qb(px()),nx(e,2,-2),0,r)}function Mx(e,t,n,r,i){return fx(e,t,n,Kb,nx(e,0,r),nx(e,r+1,-1),r,i)}function Nx(e,t){for(var n=``,r=0;r<e.length;r++)n+=t(e[r],r,e,t)||``;return n}function Px(e,t,n,r){switch(e.type){case Xb:if(e.children.length)break;case qb:case Jb:case Kb:return e.return=e.return||e.value;case Wb:return``;case Yb:return e.return=e.value+`{`+Nx(e.children,r)+`}`;case Gb:if(!rx(e.value=e.props.join(`,`)))return``}return rx(n=Nx(e.children,r))?e.return=e.value+`{`+n+`}`:``}function Fx(e){var t=ix(e);return function(n,r,i,a){for(var o=``,s=0;s<t;s++)o+=e[s](n,r,i,a)||``;return o}}var Ix=`c4`,Lx={id:Ix,detector:A(e=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e),`detector`),loader:A(async()=>{let{diagram:e}=await k(async()=>{let{diagram:e}=await import(`./c4Diagram-AAUBKEIU-a19n5MC0.js`);return{diagram:e}},__vite__mapDeps([102,103,1,104,105,106,107,108,109,110,111,112,113]));return{id:Ix,diagram:e}},`loader`)},Rx=`flowchart`,zx={id:Rx,detector:A((e,t)=>t?.flowchart?.defaultRenderer===`dagre-wrapper`||t?.flowchart?.defaultRenderer===`elk`?!1:/^\s*graph/.test(e),`detector`),loader:A(async()=>{let{diagram:e}=await k(async()=>{let{diagram:e}=await import(`./flowDiagram-I6XJVG4X-c8jaDuzg.js`);return{diagram:e}},__vite__mapDeps([114,115,104,1,105,103,106,107,108,109,110,111,112,116,117,118,119,120,121,122,123,124,125,126,127,128,129,113,130]));return{id:Rx,diagram:e}},`loader`)},Bx=`flowchart-v2`,Vx={id:Bx,detector:A((e,t)=>t?.flowchart?.defaultRenderer===`dagre-d3`?!1:(t?.flowchart?.defaultRenderer===`elk`&&(t.layout=`elk`),/^\s*graph/.test(e)&&t?.flowchart?.defaultRenderer===`dagre-wrapper`?!0:/^\s*flowchart/.test(e)),`detector`),loader:A(async()=>{let{diagram:e}=await k(async()=>{let{diagram:e}=await import(`./flowDiagram-I6XJVG4X-c8jaDuzg.js`);return{diagram:e}},__vite__mapDeps([114,115,104,1,105,103,106,107,108,109,110,111,112,116,117,118,119,120,121,122,123,124,125,126,127,128,129,113,130]));return{id:Bx,diagram:e}},`loader`)},Hx=`er`,Ux={id:Hx,detector:A(e=>/^\s*erDiagram/.test(e),`detector`),loader:A(async()=>{let{diagram:e}=await k(async()=>{let{diagram:e}=await import(`./erDiagram-TEJ5UH35-1_XoHZAp.js`);return{diagram:e}},__vite__mapDeps([131,115,104,1,105,103,106,107,108,109,110,111,112,116,117,118,119,120,121,122,123,125,126,127,128,129]));return{id:Hx,diagram:e}},`loader`)},Wx=`gitGraph`,Gx={id:Wx,detector:A(e=>/^\s*gitGraph/.test(e),`detector`),loader:A(async()=>{let{diagram:e}=await k(async()=>{let{diagram:e}=await import(`./gitGraphDiagram-PVQCEYII-DSvNtio2.js`);return{diagram:e}},__vite__mapDeps([132,133,107,1,108,109,110,111,112,134,104,105,103,106,135,136]));return{id:Wx,diagram:e}},`loader`)},Kx=`gantt`,qx={id:Kx,detector:A(e=>/^\s*gantt/.test(e),`detector`),loader:A(async()=>{let{diagram:e}=await k(async()=>{let{diagram:e}=await import(`./ganttDiagram-6RSMTGT7-Ck7UsWeu.js`);return{diagram:e}},__vite__mapDeps([137,1,103,138,104,139,140,105,106,107,108,109,110,111,112]));return{id:Kx,diagram:e}},`loader`)},Jx=`info`,Yx={id:Jx,detector:A(e=>/^\s*info/.test(e),`detector`),loader:A(async()=>{let{diagram:e}=await k(async()=>{let{diagram:e}=await import(`./infoDiagram-5YYISTIA-CMVUnYwe.js`);return{diagram:e}},__vite__mapDeps([141,133,107,1,108,109,110,111,112,134,104,106,142]));return{id:Jx,diagram:e}},`loader`)},Xx=`pie`,Zx={id:Xx,detector:A(e=>/^\s*pie/.test(e),`detector`),loader:A(async()=>{let{diagram:e}=await k(async()=>{let{diagram:e}=await import(`./pieDiagram-4H26LBE5-Bp52danX.js`);return{diagram:e}},__vite__mapDeps([143,103,1,133,107,108,109,110,111,112,134,104,127,144,140,145,128,105,106,135,142]));return{id:Xx,diagram:e}},`loader`)},Qx=`quadrantChart`,$x={id:Qx,detector:A(e=>/^\s*quadrantChart/.test(e),`detector`),loader:A(async()=>{let{diagram:e}=await k(async()=>{let{diagram:e}=await import(`./quadrantDiagram-W4KKPZXB-2-HXTKYE.js`);return{diagram:e}},__vite__mapDeps([146,138,104,1,139,140,106,107,108,109,110,111,112]));return{id:Qx,diagram:e}},`loader`)},eS=`xychart`,tS={id:eS,detector:A(e=>/^\s*xychart(-beta)?/.test(e),`detector`),loader:A(async()=>{let{diagram:e}=await k(async()=>{let{diagram:e}=await import(`./xychartDiagram-2RQKCTM6-CTV-CuX-.js`);return{diagram:e}},__vite__mapDeps([147,115,104,1,105,103,106,107,108,109,110,111,112,138,139,140,144,126,127,128,142]));return{id:eS,diagram:e}},`loader`)},nS=`requirement`,rS={id:nS,detector:A(e=>/^\s*requirement(Diagram)?/.test(e),`detector`),loader:A(async()=>{let{diagram:e}=await k(async()=>{let{diagram:e}=await import(`./requirementDiagram-4Y6WPE33-BilSVdwW.js`);return{diagram:e}},__vite__mapDeps([148,115,104,1,105,103,106,107,108,109,110,111,112,117,118,119,120,121,122,123,125,126,127,128,129]));return{id:nS,diagram:e}},`loader`)},iS=`sequence`,aS={id:iS,detector:A(e=>/^\s*sequenceDiagram/.test(e),`detector`),loader:A(async()=>{let{diagram:e}=await k(async()=>{let{diagram:e}=await import(`./sequenceDiagram-3UESZ5HK-joTVEA7C.js`);return{diagram:e}},__vite__mapDeps([149,103,1,104,105,106,107,108,109,110,111,112,113,136,130]));return{id:iS,diagram:e}},`loader`)},oS=`class`,sS={id:oS,detector:A((e,t)=>t?.class?.defaultRenderer===`dagre-wrapper`?!1:/^\s*classDiagram/.test(e),`detector`),loader:A(async()=>{let{diagram:e}=await k(async()=>{let{diagram:e}=await import(`./classDiagram-4FO5ZUOK-DdMTKe_j.js`);return{diagram:e}},__vite__mapDeps([150,115,104,1,105,103,106,107,108,109,110,111,112,117,118,119,120,121,122,151,124,129,125,126,127,128,123,113]));return{id:oS,diagram:e}},`loader`)},cS=`classDiagram`,lS={id:cS,detector:A((e,t)=>/^\s*classDiagram/.test(e)&&t?.class?.defaultRenderer===`dagre-wrapper`?!0:/^\s*classDiagram-v2/.test(e),`detector`),loader:A(async()=>{let{diagram:e}=await k(async()=>{let{diagram:e}=await import(`./classDiagram-v2-Q7XG4LA2-DdMTKe_j.js`);return{diagram:e}},__vite__mapDeps([152,115,104,1,105,103,106,107,108,109,110,111,112,117,118,119,120,121,122,151,124,129,125,126,127,128,123,113]));return{id:cS,diagram:e}},`loader`)},uS=`state`,dS={id:uS,detector:A((e,t)=>t?.state?.defaultRenderer===`dagre-wrapper`?!1:/^\s*stateDiagram/.test(e),`detector`),loader:A(async()=>{let{diagram:e}=await k(async()=>{let{diagram:e}=await import(`./stateDiagram-AJRCARHV-D79-k_XU.js`);return{diagram:e}},__vite__mapDeps([153,115,104,1,105,103,106,107,108,109,110,111,112,126,127,128,154,155,117,118,119,120,121,122,156,129,125,123]));return{id:uS,diagram:e}},`loader`)},fS=`stateDiagram`,pS={id:fS,detector:A((e,t)=>!!(/^\s*stateDiagram-v2/.test(e)||/^\s*stateDiagram/.test(e)&&t?.state?.defaultRenderer===`dagre-wrapper`),`detector`),loader:A(async()=>{let{diagram:e}=await k(async()=>{let{diagram:e}=await import(`./stateDiagram-v2-BHNVJYJU-BtJOy0q4.js`);return{diagram:e}},__vite__mapDeps([157,115,104,1,105,103,106,107,108,109,110,111,112,117,118,119,120,121,122,156,129,125,126,127,128,123]));return{id:fS,diagram:e}},`loader`)},mS=`journey`,hS={id:mS,detector:A(e=>/^\s*journey/.test(e),`detector`),loader:A(async()=>{let{diagram:e}=await k(async()=>{let{diagram:e}=await import(`./journeyDiagram-JHISSGLW-CrgcWtuA.js`);return{diagram:e}},__vite__mapDeps([158,104,1,145,103,127,106,107,108,109,110,111,112,124,113]));return{id:mS,diagram:e}},`loader`)},gS={draw:A((e,t,n)=>{Kt.debug(`rendering svg for syntax error
|
|
418
|
-
`);let r=
|
|
419
|
-
`;try{
|
|
420
|
-
`).replace(/<(\w+)([^>]*)>/g,(e,t,n)=>`<`+t+n.replace(/="([^"]*)"/g,`='$1'`)+`>`),`cleanupText`),
|
|
417
|
+
`)),c+=a.move(o),s(),c}function r(e,n,r){let i=e.value||``,a=1;for(t||a++;RegExp(`(^|[^$])`+`\\$`.repeat(a)+`([^$]|$)`).test(i);)a++;let o=`$`.repeat(a);/[^ \r\n]/.test(i)&&(/^[ \r\n]/.test(i)&&/[ \r\n]$/.test(i)||/^\$|\$$/.test(i))&&(i=` `+i+` `);let s=-1;for(;++s<r.unsafe.length;){let e=r.unsafe[s];if(!e.atBreak)continue;let t=r.compilePattern(e),n;for(;n=t.exec(i);){let e=n.index;i.codePointAt(e)===10&&i.codePointAt(e-1)===13&&e--,i=i.slice(0,e)+` `+i.slice(n.index+1)}}return o+i+o}function i(){return`$`}}var Ob={tokenize:Ab,concrete:!0,name:`mathFlow`},kb={tokenize:jb,partial:!0};function Ab(e,t,n){let r=this,i=r.events[r.events.length-1],a=i&&i[1].type===`linePrefix`?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(t){return e.enter(`mathFlow`),e.enter(`mathFlowFence`),e.enter(`mathFlowFenceSequence`),c(t)}function c(t){return t===36?(e.consume(t),o++,c):o<2?n(t):(e.exit(`mathFlowFenceSequence`),Pt(e,l,`whitespace`)(t))}function l(t){return t===null||bt(t)?d(t):(e.enter(`mathFlowFenceMeta`),e.enter(`chunkString`,{contentType:`string`}),u(t))}function u(t){return t===null||bt(t)?(e.exit(`chunkString`),e.exit(`mathFlowFenceMeta`),d(t)):t===36?n(t):(e.consume(t),u)}function d(n){return e.exit(`mathFlowFence`),r.interrupt?t(n):e.attempt(kb,f,g)(n)}function f(t){return e.attempt({tokenize:_,partial:!0},g,p)(t)}function p(t){return(a?Pt(e,m,`linePrefix`,a+1):m)(t)}function m(t){return t===null?g(t):bt(t)?e.attempt(kb,f,g)(t):(e.enter(`mathFlowValue`),h(t))}function h(t){return t===null||bt(t)?(e.exit(`mathFlowValue`),m(t)):(e.consume(t),h)}function g(n){return e.exit(`mathFlow`),t(n)}function _(e,t,n){let i=0;return Pt(e,a,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4);function a(t){return e.enter(`mathFlowFence`),e.enter(`mathFlowFenceSequence`),s(t)}function s(t){return t===36?(i++,e.consume(t),s):i<o?n(t):(e.exit(`mathFlowFenceSequence`),Pt(e,c,`whitespace`)(t))}function c(r){return r===null||bt(r)?(e.exit(`mathFlowFence`),t(r)):n(r)}}}function jb(e,t,n){let r=this;return i;function i(n){return n===null?t(n):(e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),a)}function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}function Mb(e){let t=(e||{}).singleDollarTextMath;return t??=!0,{tokenize:n,resolve:Nb,previous:Pb,name:`mathText`};function n(e,n,r){let i=0,a,o;return s;function s(t){return e.enter(`mathText`),e.enter(`mathTextSequence`),c(t)}function c(n){return n===36?(e.consume(n),i++,c):i<2&&!t?r(n):(e.exit(`mathTextSequence`),l(n))}function l(t){return t===null?r(t):t===36?(o=e.enter(`mathTextSequence`),a=0,d(t)):t===32?(e.enter(`space`),e.consume(t),e.exit(`space`),l):bt(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),l):(e.enter(`mathTextData`),u(t))}function u(t){return t===null||t===32||t===36||bt(t)?(e.exit(`mathTextData`),l(t)):(e.consume(t),u)}function d(t){return t===36?(e.consume(t),a++,d):a===i?(e.exit(`mathTextSequence`),e.exit(`mathText`),n(t)):(o.type=`mathTextData`,u(t))}}}function Nb(e){let t=e.length-4,n=3,r,i;if((e[n][1].type===`lineEnding`||e[n][1].type===`space`)&&(e[t][1].type===`lineEnding`||e[t][1].type===`space`)){for(r=n;++r<t;)if(e[r][1].type===`mathTextData`){e[t][1].type=`mathTextPadding`,e[n][1].type=`mathTextPadding`,n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!==`lineEnding`&&(i=r):(r===t||e[r][1].type===`lineEnding`)&&(e[i][1].type=`mathTextData`,r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function Pb(e){return e!==36||this.events[this.events.length-1][1].type===`characterEscape`}function Fb(e){return{flow:{36:Ob},text:{36:Mb(e)}}}var Ib={};function Lb(e){let t=this,n=e||Ib,r=t.data(),i=r.micromarkExtensions||=[],a=r.fromMarkdownExtensions||=[],o=r.toMarkdownExtensions||=[];i.push(Fb(n)),a.push(Eb()),o.push(Db(n))}function Rb(e={}){return{name:`katex`,type:`math`,remarkPlugin:[Lb,{singleDollarTextMath:e.singleDollarTextMath??!1}],rehypePlugin:[Tb,{errorColor:e.errorColor??`var(--color-muted-foreground)`}],getStyles(){return`katex/dist/katex.min.css`}}}var zb=Rb();function Bb(e){let t=e?.constructor;return e===(typeof t==`function`?t.prototype:Object.prototype)}function Vb(e){if(e==null)return!0;if(Dn(e))return typeof e.splice!=`function`&&typeof e!=`string`&&!yn(e)&&!En(e)&&!On(e)?!1:e.length===0;if(typeof e==`object`){if(e instanceof Map||e instanceof Set)return e.size===0;let t=Object.keys(e);return Bb(e)?t.filter(e=>e!==`constructor`).length===0:t.length===0}return!0}var Hb=`comm`,Ub=`rule`,Wb=`decl`,Gb=`@import`,Kb=`@namespace`,qb=`@keyframes`,Jb=`@layer`,Yb=Math.abs,Xb=String.fromCharCode;function Zb(e){return e.trim()}function Qb(e,t,n){return e.replace(t,n)}function $b(e,t){return e.charCodeAt(t)|0}function ex(e,t,n){return e.slice(t,n)}function tx(e){return e.length}function nx(e){return e.length}function rx(e,t){return t.push(e),e}var ix=1,ax=1,ox=0,sx=0,cx=0,lx=``;function ux(e,t,n,r,i,a,o,s){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:ix,column:ax,length:o,return:``,siblings:s}}function dx(){return cx}function fx(){return cx=sx>0?$b(lx,--sx):0,ax--,cx===10&&(ax=1,ix--),cx}function px(){return cx=sx<ox?$b(lx,sx++):0,ax++,cx===10&&(ax=1,ix++),cx}function mx(){return $b(lx,sx)}function hx(){return sx}function gx(e,t){return ex(lx,e,t)}function _x(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function vx(e){return ix=ax=1,ox=tx(lx=e),sx=0,[]}function yx(e){return lx=``,e}function bx(e){return Zb(gx(sx-1,Cx(e===91?e+2:e===40?e+1:e)))}function xx(e){for(;(cx=mx())&&cx<33;)px();return _x(e)>2||_x(cx)>3?``:` `}function Sx(e,t){for(;--t&&px()&&!(cx<48||cx>102||cx>57&&cx<65||cx>70&&cx<97););return gx(e,hx()+(t<6&&mx()==32&&px()==32))}function Cx(e){for(;px();)switch(cx){case e:return sx;case 34:case 39:e!==34&&e!==39&&Cx(cx);break;case 40:e===41&&Cx(e);break;case 92:px();break}return sx}function wx(e,t){for(;px()&&e+cx!==57&&!(e+cx===84&&mx()===47););return`/*`+gx(t,sx-1)+`*`+Xb(e===47?e:px())}function Tx(e){for(;!_x(mx());)px();return gx(e,sx)}function Ex(e){return yx(Dx(``,null,null,null,[``],e=vx(e),0,[0],e))}function Dx(e,t,n,r,i,a,o,s,c){for(var l=0,u=0,d=o,f=0,p=0,m=0,h=1,g=1,_=1,v=0,y=0,b=``,x=i,S=a,C=r,w=b;g;)switch(m=y,y=px()){case 40:m!=108&&$b(w,d-1)==58?(v++,w+=`(`):w+=bx(y);break;case 41:v--,w+=`)`;break;case 34:case 39:case 91:w+=bx(y);break;case 9:case 10:case 13:case 32:if(v>0){w+=Xb(y);break}w+=xx(m);break;case 92:w+=Sx(hx()-1,7);continue;case 47:switch(mx()){case 42:case 47:rx(kx(wx(px(),hx()),t,n,c),c),(_x(m||1)==5||_x(mx()||1)==5)&&tx(w)&&ex(w,-1,void 0)!==` `&&(w+=` `);break;default:w+=`/`}break;case 123*h:s[l++]=tx(w)*_;case 125*h:case 59:case 0:if(v>0&&y){w+=Xb(y);break}switch(y){case 0:case 125:g=0;case 59+u:_==-1&&(w=Qb(w,/\f/g,``)),p>0&&(tx(w)-d||h===0)&&rx(p>32?Ax(w+`;`,r,n,d-1,c):Ax(Qb(w,` `,``)+`;`,r,n,d-2,c),c);break;case 59:w+=`;`;default:if(rx(C=Ox(w,t,n,l,u,i,s,b,x=[],S=[],d,a),a),y===123)if(u===0)Dx(w,t,C,C,x,a,d,s,S);else{switch(f){case 99:if($b(w,3)===110)break;case 108:if($b(w,2)===97)break;default:u=0;case 100:case 109:case 115:}u?Dx(e,C,C,r&&rx(Ox(e,C,C,0,0,i,s,b,i,x=[],d,S),S),i,S,d,s,r?x:S):Dx(w,C,C,C,[``],S,0,s,S)}}l=u=p=0,h=_=1,b=w=``,d=o;break;case 58:d=1+tx(w),p=m;default:if(h<1){if(y==123)--h;else if(y==125&&h++==0&&fx()==125)continue}switch(w+=Xb(y),y*h){case 38:_=u>0?1:(w+=`\f`,-1);break;case 44:if(v>0)break;s[l++]=(tx(w)-1)*_,_=1;break;case 64:mx()===45&&(w+=bx(px())),f=mx(),u=d=tx(b=w+=Tx(hx())),y++;break;case 45:m===45&&tx(w)==2&&(h=0)}}return a}function Ox(e,t,n,r,i,a,o,s,c,l,u,d){for(var f=i-1,p=i===0?a:[``],m=nx(p),h=0,g=0,_=0;h<r;++h)for(var v=0,y=ex(e,f+1,f=Yb(g=o[h])),b=e;v<m;++v)(b=Zb(g>0?p[v]+` `+y:Qb(y,/&\f/g,p[v])))&&(c[_++]=b);return ux(e,t,n,i===0?Ub:s,c,l,u,d)}function kx(e,t,n,r){return ux(e,t,n,Hb,Xb(dx()),ex(e,2,-2),0,r)}function Ax(e,t,n,r,i){return ux(e,t,n,Wb,ex(e,0,r),ex(e,r+1,-1),r,i)}function jx(e,t){for(var n=``,r=0;r<e.length;r++)n+=t(e[r],r,e,t)||``;return n}function Mx(e,t,n,r){switch(e.type){case Jb:if(e.children.length)break;case Gb:case Kb:case Wb:return e.return=e.return||e.value;case Hb:return``;case qb:return e.return=e.value+`{`+jx(e.children,r)+`}`;case Ub:if(!tx(e.value=e.props.join(`,`)))return``}return tx(n=jx(e.children,r))?e.return=e.value+`{`+n+`}`:``}function Nx(e){var t=nx(e);return function(n,r,i,a){for(var o=``,s=0;s<t;s++)o+=e[s](n,r,i,a)||``;return o}}var Px=`c4`,Fx={id:Px,detector:A(e=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e),`detector`),loader:A(async()=>{let{diagram:e}=await k(async()=>{let{diagram:e}=await import(`./c4Diagram-AAUBKEIU-BtGNvFTN.js`);return{diagram:e}},__vite__mapDeps([102,103,1,104,105,106,107,108,109,110,111,112,113]));return{id:Px,diagram:e}},`loader`)},Ix=`flowchart`,Lx={id:Ix,detector:A((e,t)=>t?.flowchart?.defaultRenderer===`dagre-wrapper`||t?.flowchart?.defaultRenderer===`elk`?!1:/^\s*graph/.test(e),`detector`),loader:A(async()=>{let{diagram:e}=await k(async()=>{let{diagram:e}=await import(`./flowDiagram-I6XJVG4X-D6Kk1UFg.js`);return{diagram:e}},__vite__mapDeps([114,115,104,1,105,103,106,107,108,109,110,111,112,116,117,118,119,120,121,122,123,124,125,126,127,128,129,113,130]));return{id:Ix,diagram:e}},`loader`)},Rx=`flowchart-v2`,zx={id:Rx,detector:A((e,t)=>t?.flowchart?.defaultRenderer===`dagre-d3`?!1:(t?.flowchart?.defaultRenderer===`elk`&&(t.layout=`elk`),/^\s*graph/.test(e)&&t?.flowchart?.defaultRenderer===`dagre-wrapper`?!0:/^\s*flowchart/.test(e)),`detector`),loader:A(async()=>{let{diagram:e}=await k(async()=>{let{diagram:e}=await import(`./flowDiagram-I6XJVG4X-D6Kk1UFg.js`);return{diagram:e}},__vite__mapDeps([114,115,104,1,105,103,106,107,108,109,110,111,112,116,117,118,119,120,121,122,123,124,125,126,127,128,129,113,130]));return{id:Rx,diagram:e}},`loader`)},Bx=`er`,Vx={id:Bx,detector:A(e=>/^\s*erDiagram/.test(e),`detector`),loader:A(async()=>{let{diagram:e}=await k(async()=>{let{diagram:e}=await import(`./erDiagram-TEJ5UH35-D5-7flX_.js`);return{diagram:e}},__vite__mapDeps([131,115,104,1,105,103,106,107,108,109,110,111,112,116,117,118,119,120,121,122,123,125,126,127,128,129]));return{id:Bx,diagram:e}},`loader`)},Hx=`gitGraph`,Ux={id:Hx,detector:A(e=>/^\s*gitGraph/.test(e),`detector`),loader:A(async()=>{let{diagram:e}=await k(async()=>{let{diagram:e}=await import(`./gitGraphDiagram-PVQCEYII-CsnXODOl.js`);return{diagram:e}},__vite__mapDeps([132,133,107,1,108,109,110,111,112,134,104,105,103,106,135,136]));return{id:Hx,diagram:e}},`loader`)},Wx=`gantt`,Gx={id:Wx,detector:A(e=>/^\s*gantt/.test(e),`detector`),loader:A(async()=>{let{diagram:e}=await k(async()=>{let{diagram:e}=await import(`./ganttDiagram-6RSMTGT7-SvRvoSwm.js`);return{diagram:e}},__vite__mapDeps([137,1,103,138,104,139,140,105,106,107,108,109,110,111,112]));return{id:Wx,diagram:e}},`loader`)},Kx=`info`,qx={id:Kx,detector:A(e=>/^\s*info/.test(e),`detector`),loader:A(async()=>{let{diagram:e}=await k(async()=>{let{diagram:e}=await import(`./infoDiagram-5YYISTIA-ykgWzX2_.js`);return{diagram:e}},__vite__mapDeps([141,133,107,1,108,109,110,111,112,134,104,106,142]));return{id:Kx,diagram:e}},`loader`)},Jx=`pie`,Yx={id:Jx,detector:A(e=>/^\s*pie/.test(e),`detector`),loader:A(async()=>{let{diagram:e}=await k(async()=>{let{diagram:e}=await import(`./pieDiagram-4H26LBE5-dPB1x16f.js`);return{diagram:e}},__vite__mapDeps([143,103,1,133,107,108,109,110,111,112,134,104,127,144,140,145,128,105,106,135,142]));return{id:Jx,diagram:e}},`loader`)},Xx=`quadrantChart`,Zx={id:Xx,detector:A(e=>/^\s*quadrantChart/.test(e),`detector`),loader:A(async()=>{let{diagram:e}=await k(async()=>{let{diagram:e}=await import(`./quadrantDiagram-W4KKPZXB-C_mqMlKY.js`);return{diagram:e}},__vite__mapDeps([146,138,104,1,139,140,106,107,108,109,110,111,112]));return{id:Xx,diagram:e}},`loader`)},Qx=`xychart`,$x={id:Qx,detector:A(e=>/^\s*xychart(-beta)?/.test(e),`detector`),loader:A(async()=>{let{diagram:e}=await k(async()=>{let{diagram:e}=await import(`./xychartDiagram-2RQKCTM6-DmzunUZx.js`);return{diagram:e}},__vite__mapDeps([147,115,104,1,105,103,106,107,108,109,110,111,112,138,139,140,144,126,127,128,142]));return{id:Qx,diagram:e}},`loader`)},eS=`requirement`,tS={id:eS,detector:A(e=>/^\s*requirement(Diagram)?/.test(e),`detector`),loader:A(async()=>{let{diagram:e}=await k(async()=>{let{diagram:e}=await import(`./requirementDiagram-4Y6WPE33-C02Lll9V.js`);return{diagram:e}},__vite__mapDeps([148,115,104,1,105,103,106,107,108,109,110,111,112,117,118,119,120,121,122,123,125,126,127,128,129]));return{id:eS,diagram:e}},`loader`)},nS=`sequence`,rS={id:nS,detector:A(e=>/^\s*sequenceDiagram/.test(e),`detector`),loader:A(async()=>{let{diagram:e}=await k(async()=>{let{diagram:e}=await import(`./sequenceDiagram-3UESZ5HK-BSZzFC0b.js`);return{diagram:e}},__vite__mapDeps([149,103,1,104,105,106,107,108,109,110,111,112,113,136,130]));return{id:nS,diagram:e}},`loader`)},iS=`class`,aS={id:iS,detector:A((e,t)=>t?.class?.defaultRenderer===`dagre-wrapper`?!1:/^\s*classDiagram/.test(e),`detector`),loader:A(async()=>{let{diagram:e}=await k(async()=>{let{diagram:e}=await import(`./classDiagram-4FO5ZUOK-D9QMu2xp.js`);return{diagram:e}},__vite__mapDeps([150,115,104,1,105,103,106,107,108,109,110,111,112,117,118,119,120,121,122,151,124,129,125,126,127,128,123,113]));return{id:iS,diagram:e}},`loader`)},oS=`classDiagram`,sS={id:oS,detector:A((e,t)=>/^\s*classDiagram/.test(e)&&t?.class?.defaultRenderer===`dagre-wrapper`?!0:/^\s*classDiagram-v2/.test(e),`detector`),loader:A(async()=>{let{diagram:e}=await k(async()=>{let{diagram:e}=await import(`./classDiagram-v2-Q7XG4LA2-D9QMu2xp.js`);return{diagram:e}},__vite__mapDeps([152,115,104,1,105,103,106,107,108,109,110,111,112,117,118,119,120,121,122,151,124,129,125,126,127,128,123,113]));return{id:oS,diagram:e}},`loader`)},cS=`state`,lS={id:cS,detector:A((e,t)=>t?.state?.defaultRenderer===`dagre-wrapper`?!1:/^\s*stateDiagram/.test(e),`detector`),loader:A(async()=>{let{diagram:e}=await k(async()=>{let{diagram:e}=await import(`./stateDiagram-AJRCARHV-sbrBtcyv.js`);return{diagram:e}},__vite__mapDeps([153,115,104,1,105,103,106,107,108,109,110,111,112,126,127,128,154,155,117,118,119,120,121,122,156,129,125,123]));return{id:cS,diagram:e}},`loader`)},uS=`stateDiagram`,dS={id:uS,detector:A((e,t)=>!!(/^\s*stateDiagram-v2/.test(e)||/^\s*stateDiagram/.test(e)&&t?.state?.defaultRenderer===`dagre-wrapper`),`detector`),loader:A(async()=>{let{diagram:e}=await k(async()=>{let{diagram:e}=await import(`./stateDiagram-v2-BHNVJYJU-Dvy9QnJ1.js`);return{diagram:e}},__vite__mapDeps([157,115,104,1,105,103,106,107,108,109,110,111,112,117,118,119,120,121,122,156,129,125,126,127,128,123]));return{id:uS,diagram:e}},`loader`)},fS=`journey`,pS={id:fS,detector:A(e=>/^\s*journey/.test(e),`detector`),loader:A(async()=>{let{diagram:e}=await k(async()=>{let{diagram:e}=await import(`./journeyDiagram-JHISSGLW-Co9hkrSV.js`);return{diagram:e}},__vite__mapDeps([158,104,1,145,103,127,106,107,108,109,110,111,112,124,113]));return{id:fS,diagram:e}},`loader`)},mS={draw:A((e,t,n)=>{Wt.debug(`rendering svg for syntax error
|
|
418
|
+
`);let r=kn(t),i=r.append(`g`);r.attr(`viewBox`,`0 0 2412 512`),ln(r,100,512,!0),i.append(`path`).attr(`class`,`error-icon`).attr(`d`,`m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z`),i.append(`path`).attr(`class`,`error-icon`).attr(`d`,`m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z`),i.append(`path`).attr(`class`,`error-icon`).attr(`d`,`m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z`),i.append(`path`).attr(`class`,`error-icon`).attr(`d`,`m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z`),i.append(`path`).attr(`class`,`error-icon`).attr(`d`,`m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z`),i.append(`path`).attr(`class`,`error-icon`).attr(`d`,`m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z`),i.append(`text`).attr(`class`,`error-text`).attr(`x`,1440).attr(`y`,250).attr(`font-size`,`150px`).style(`text-anchor`,`middle`).text(`Syntax error in text`),i.append(`text`).attr(`class`,`error-text`).attr(`x`,1250).attr(`y`,400).attr(`font-size`,`100px`).style(`text-anchor`,`middle`).text(`mermaid version ${n}`)},`draw`)},hS=mS,gS={db:{},renderer:mS,parser:{parse:A(()=>{},`parse`)}},_S=`flowchart-elk`,vS={id:_S,detector:A((e,t={})=>/^\s*flowchart-elk/.test(e)||/^\s*(flowchart|graph)/.test(e)&&t?.flowchart?.defaultRenderer===`elk`?(t.layout=`elk`,!0):!1,`detector`),loader:A(async()=>{let{diagram:e}=await k(async()=>{let{diagram:e}=await import(`./flowDiagram-I6XJVG4X-D6Kk1UFg.js`);return{diagram:e}},__vite__mapDeps([114,115,104,1,105,103,106,107,108,109,110,111,112,116,117,118,119,120,121,122,123,124,125,126,127,128,129,113,130]));return{id:_S,diagram:e}},`loader`)},yS=`timeline`,bS={id:yS,detector:A(e=>/^\s*timeline/.test(e),`detector`),loader:A(async()=>{let{diagram:e}=await k(async()=>{let{diagram:e}=await import(`./timeline-definition-PNZ67QCA-DerlFFtJ.js`);return{diagram:e}},__vite__mapDeps([159,104,1,145,103,127,105,106,107,108,109,110,111,112,142]));return{id:yS,diagram:e}},`loader`)},xS=`mindmap`,SS={id:xS,detector:A(e=>/^\s*mindmap/.test(e),`detector`),loader:A(async()=>{let{diagram:e}=await k(async()=>{let{diagram:e}=await import(`./mindmap-definition-RKZ34NQL-LkEZGFmn.js`);return{diagram:e}},__vite__mapDeps([160,115,104,1,105,103,106,107,108,109,110,111,112,117,118,119,120,121,122,123,125,126,127,128,129]));return{id:xS,diagram:e}},`loader`)},CS=`kanban`,wS={id:CS,detector:A(e=>/^\s*kanban/.test(e),`detector`),loader:A(async()=>{let{diagram:e}=await k(async()=>{let{diagram:e}=await import(`./kanban-definition-UN3LZRKU-BqYnrzvT.js`);return{diagram:e}},__vite__mapDeps([161,115,104,1,105,103,106,107,108,109,110,111,112,118,119,120,121,124,142,130]));return{id:CS,diagram:e}},`loader`)},TS=`sankey`,ES={id:TS,detector:A(e=>/^\s*sankey(-beta)?/.test(e),`detector`),loader:A(async()=>{let{diagram:e}=await k(async()=>{let{diagram:e}=await import(`./sankeyDiagram-5OEKKPKP-BpCTN0fI.js`);return{diagram:e}},__vite__mapDeps([162,104,1,144,140,106,107,108,109,110,111,112]));return{id:TS,diagram:e}},`loader`)},DS=`packet`,OS={id:DS,detector:A(e=>/^\s*packet(-beta)?/.test(e),`detector`),loader:A(async()=>{let{diagram:e}=await k(async()=>{let{diagram:e}=await import(`./diagram-LMA3HP47-C2enmWGa.js`);return{diagram:e}},__vite__mapDeps([163,133,107,1,108,109,110,111,112,134,104,105,103,106,135,142]));return{id:DS,diagram:e}},`loader`)},kS=`radar`,AS={id:kS,detector:A(e=>/^\s*radar-beta/.test(e),`detector`),loader:A(async()=>{let{diagram:e}=await k(async()=>{let{diagram:e}=await import(`./diagram-2AECGRRQ-CSy7jejs.js`);return{diagram:e}},__vite__mapDeps([164,133,107,1,108,109,110,111,112,134,104,105,103,106,135,142]));return{id:kS,diagram:e}},`loader`)},jS=`block`,MS={id:jS,detector:A(e=>/^\s*block(-beta)?/.test(e),`detector`),loader:A(async()=>{let{diagram:e}=await k(async()=>{let{diagram:e}=await import(`./blockDiagram-GPEHLZMM-agZaaW3b.js`);return{diagram:e}},__vite__mapDeps([165,115,104,1,105,103,106,107,108,109,110,111,112,126,127,128,155,116,123,124,119]));return{id:jS,diagram:e}},`loader`)},NS=`treeView`,PS={id:NS,detector:A(e=>/^\s*treeView-beta/.test(e),`detector`),loader:A(async()=>{let{diagram:e}=await k(async()=>{let{diagram:e}=await import(`./diagram-5GNKFQAL-D00SleZk.js`);return{diagram:e}},__vite__mapDeps([166,133,107,1,108,109,110,111,112,134,104,105,103,106,135,136,142]));return{id:NS,diagram:e}},`loader`)},FS=`architecture`,IS={id:FS,detector:A(e=>/^\s*architecture/.test(e),`detector`),loader:A(async()=>{let{diagram:e}=await k(async()=>{let{diagram:e}=await import(`./architectureDiagram-3BPJPVTR-CLvALvWH.js`);return{diagram:e}},__vite__mapDeps([167,1,115,104,105,103,106,107,108,109,110,111,112,133,134,168,135,142]));return{id:FS,diagram:e}},`loader`)},LS=`eventmodeling`,RS={id:LS,detector:A(e=>/^\s*eventmodeling/.test(e),`detector`),loader:A(async()=>{let{diagram:e}=await k(async()=>{let{diagram:e}=await import(`./diagram-KO2AKTUF-Bzkz5rYI.js`);return{diagram:e}},__vite__mapDeps([169,133,107,1,108,109,110,111,112,134,104,105,103,106,135]));return{id:LS,diagram:e}},`loader`)},zS=`ishikawa`,BS={id:zS,detector:A(e=>/^\s*ishikawa(-beta)?\b/i.test(e),`detector`),loader:A(async()=>{let{diagram:e}=await k(async()=>{let{diagram:e}=await import(`./ishikawaDiagram-YF4QCWOH-CWlbevKa.js`);return{diagram:e}},__vite__mapDeps([170,104,1,105,103,106,107,108,109,110,111,112,142,121]));return{id:zS,diagram:e}},`loader`)},VS=`venn`,HS={id:VS,detector:A(e=>/^\s*venn-beta/.test(e),`detector`),loader:A(async()=>{let{diagram:e}=await k(async()=>{let{diagram:e}=await import(`./vennDiagram-CIIHVFJN-DItyMCJy.js`);return{diagram:e}},__vite__mapDeps([171,104,1,105,103,106,107,108,109,110,111,112,142,121]));return{id:VS,diagram:e}},`loader`)},US=`treemap`,WS={id:US,detector:A(e=>/^\s*treemap/.test(e),`detector`),loader:A(async()=>{let{diagram:e}=await k(async()=>{let{diagram:e}=await import(`./diagram-OG6HWLK6-SEm482Ky.js`);return{diagram:e}},__vite__mapDeps([172,133,107,1,108,109,110,111,112,134,104,139,144,140,105,103,106,117,135,120,142]));return{id:US,diagram:e}},`loader`)},GS=`wardley-beta`,KS={id:GS,detector:A(e=>/^\s*wardley-beta/i.test(e),`detector`),loader:A(async()=>{let{diagram:e}=await k(async()=>{let{diagram:e}=await import(`./wardleyDiagram-YWT4CUSO-BfG0cbM-.js`);return{diagram:e}},__vite__mapDeps([173,133,107,1,108,109,110,111,112,134,104,105,103,106,135,142]));return{id:GS,diagram:e}},`loader`)},qS=!1,JS=A(()=>{qS||(qS=!0,Zt(`error`,gS,e=>e.toLowerCase().trim()===`error`),Zt(`---`,{db:{clear:A(()=>{},`clear`)},styles:{},renderer:{draw:A(()=>{},`draw`)},parser:{parse:A(()=>{throw Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")},`parse`)},init:A(()=>null,`init`)},e=>e.toLowerCase().trimStart().startsWith(`---`)),Qt(vS,SS,IS),Qt(Fx,wS,sS,aS,Vx,Gx,qx,Yx,tS,rS,zx,Lx,bS,Ux,dS,lS,pS,Zx,ES,OS,$x,MS,RS,PS,AS,BS,WS,HS,KS))},`addDiagrams`),YS=A(async()=>{Wt.debug(`Loading registered diagrams`);let e=(await Promise.allSettled(Object.entries(fn).map(async([e,{detector:t,loader:n}])=>{if(n)try{en(e)}catch{try{let{diagram:e,id:r}=await n();Zt(r,e,t)}catch(t){throw Wt.error(`Failed to load external diagram with key ${e}. Removing from detectors.`),delete fn[e],t}}}))).filter(e=>e.status===`rejected`);if(e.length>0){Wt.error(`Failed to load ${e.length} external diagrams`);for(let t of e)Wt.error(t);throw Error(`Failed to load ${e.length} external diagrams`)}},`loadRegisteredDiagrams`),XS=`graphics-document document`;function ZS(e,t){e.attr(`role`,XS),t!==``&&e.attr(`aria-roledescription`,t)}A(ZS,`setA11yDiagramInfo`);function QS(e,t,n,r){if(e.insert!==void 0){if(n){let t=`chart-desc-${r}`;e.attr(`aria-describedby`,t),e.insert(`desc`,`:first-child`).attr(`id`,t).text(n)}if(t){let n=`chart-title-${r}`;e.attr(`aria-labelledby`,n),e.insert(`title`,`:first-child`).attr(`id`,n).text(t)}}}A(QS,`addSVGa11yTitleDescription`);var $S=class e{constructor(e,t,n,r,i){this.type=e,this.text=t,this.db=n,this.parser=r,this.renderer=i}static{A(this,`Diagram`)}static async fromText(t,n={}){let r=cn(),i=mn(t,r);t=Tn(t)+`
|
|
419
|
+
`;try{en(i)}catch{let e=qt(i);if(!e)throw new _n(`Diagram ${i} not found.`);let{id:t,diagram:n}=await e();Zt(t,n)}let{db:a,parser:o,renderer:s,init:c}=en(i);return o.parser&&(o.parser.yy=a),a.clear?.(),c?.(r),n.title&&a.setDiagramTitle?.(n.title),await o.parse(t),new e(i,t,a,o,s)}async render(e,t){await this.renderer.draw(this.text,e,t,this)}getParser(){return this.parser}getType(){return this.type}},eC=[],tC=A(()=>{eC.forEach(e=>{e()}),eC=[]},`attachFunctions`),nC=A(e=>e.replace(/^\s*%%(?!{)[^\n]+\n?/gm,``).trimStart(),`cleanupComments`);function rC(e){let t=e.match(sn);if(!t)return{text:e,metadata:{}};let n=An(t[1],{schema:jn})??{};n=typeof n==`object`&&!Array.isArray(n)?n:{};let r={};return n.displayMode&&(r.displayMode=n.displayMode.toString()),n.title&&(r.title=n.title.toString()),n.config&&(r.config=n.config),{text:e.slice(t[0].length),metadata:r}}A(rC,`extractFrontMatter`);var iC=A(e=>e.replace(/\r\n?/g,`
|
|
420
|
+
`).replace(/<(\w+)([^>]*)>/g,(e,t,n)=>`<`+t+n.replace(/="([^"]*)"/g,`='$1'`)+`>`),`cleanupText`),aC=A(e=>{let{text:t,metadata:n}=rC(e),{displayMode:r,title:i,config:a={}}=n;return r&&(a.gantt||={},a.gantt.displayMode=r),{title:i,config:a,text:t}},`processFrontmatter`),oC=A(e=>{let t=Sn.detectInit(e)??{},n=Sn.detectDirective(e,`wrap`);return Array.isArray(n)?t.wrap=n.some(({type:e})=>e===`wrap`):n?.type===`wrap`&&(t.wrap=!0),{text:Cn(e),directive:t}},`processDirectives`);function sC(e){let t=aC(iC(e)),n=oC(t.text),r=wn(t.config,n.directive);return e=nC(n.text),{code:e,title:t.title,config:r}}A(sC,`preprocessDiagram`);function cC(e){let t=new TextEncoder().encode(e),n=Array.from(t,e=>String.fromCodePoint(e)).join(``);return btoa(n)}A(cC,`toBase64`);var lC=5e4,uC=`graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa`,dC=`sandbox`,fC=`loose`,pC=`http://www.w3.org/2000/svg`,mC=`http://www.w3.org/1999/xlink`,hC=`http://www.w3.org/1999/xhtml`,gC=`100%`,_C=`100%`,vC=`border:0;margin:0;`,yC=`margin:0`,bC=`allow-top-navigation-by-user-activation allow-popups`,xC=`The "iframe" tag is not supported by your browser.`,SC=[`foreignobject`],CC=[`dominant-baseline`];function wC(e){let t=sC(e);return Yt(),pn(t.config??{}),t}A(wC,`processAndSetConfigs`);async function TC(e,t){JS();try{let{code:t,config:n}=wC(e);return{diagramType:(await LC(t)).type,config:n}}catch(e){if(t?.suppressErrors)return!1;throw e}}A(TC,`parse`);var EC=A((e,t,n=[])=>`.${e} ${t} ${Xt(`{ ${n.join(` !important; `)} !important; }`)}`,`cssImportantStyles`),DC=A((e,t=new Map)=>{let n=new CSSStyleSheet;if(e.fontFamily!==void 0&&n.insertRule(`:root { --mermaid-font-family: ${e.fontFamily}}`,n.cssRules.length),e.altFontFamily!==void 0&&n.insertRule(`:root { --mermaid-alt-font-family: ${e.altFontFamily}}`,n.cssRules.length),t instanceof Map){let r=tn(e)?[`> *`,`span`]:[`rect`,`polygon`,`ellipse`,`circle`,`path`];t.forEach(e=>{Vb(e.styles)||r.forEach(t=>{n.insertRule(EC(e.id,t,e.styles),n.cssRules.length)}),Vb(e.textStyles)||n.insertRule(EC(e.id,`tspan`,(e?.textStyles||[]).map(e=>e.replace(`color`,`fill`))),n.cssRules.length)})}let r=``;if(e.themeCSS!==void 0)if(typeof n.replaceSync==`function`){let t=new CSSStyleSheet;t.replaceSync(e.themeCSS),r=dn(t)+`
|
|
421
421
|
`}else r+=`${e.themeCSS}
|
|
422
|
-
`;return r+
|
|
423
|
-
${
|
|
424
|
-
</iframe>`,`putIntoIFrame`),PC=A((e,t,n,r,i)=>{let a=e.append(`div`);a.attr(`id`,n),r&&a.attr(`style`,r);let o=a.append(`svg`).attr(`id`,t).attr(`width`,`100%`).attr(`xmlns`,hC);return i&&o.attr(`xmlns:xlink`,i),o.append(`g`),e},`appendDivSvgG`);function FC(e,t){return e.append(`iframe`).attr(`id`,t).attr(`style`,`width: 100%; height: 100%;`).attr(`sandbox`,``)}A(FC,`sandboxedIframe`);var IC=A((e,t,n,r)=>{e.getElementById(t)?.remove(),e.getElementById(n)?.remove(),e.getElementById(r)?.remove()},`removeExistingElements`),LC=A(async function(e,t,n){XS();let r=EC(t);t=r.code;let i=un();Kt.debug(i),t.length>(i?.maxTextSize??dC)&&(t=fC);let a=`#${e}`,o=`i`+e,s=`#`+o,c=`d`+e,l=`#`+c,u=A(()=>{let e=qt(f?s:l).node();e&&`remove`in e&&e.remove()},`removeTempElements`),d=qt(document.body),f=i.securityLevel===pC,p=i.securityLevel===mC,m=i.fontFamily;n===void 0?(IC(document,e,c,o),f?(d=qt(FC(qt(document.body),o).nodes()[0].contentDocument.body),d.node().style.margin=`0`):d=qt(`body`),PC(d,e,c)):(n&&(n.innerHTML=``),f?(d=qt(FC(qt(n),o).nodes()[0].contentDocument.body),d.node().style.margin=`0`):d=qt(n),PC(d,e,c,`font-family: ${m}`,gC));let h,g;try{h=await tC.fromText(t,{title:r.title})}catch(e){if(i.suppressErrorRendering)throw u(),e;h=await tC.fromText(`error`),g=e}let _=d.select(l).node(),v=h.type,y=_.firstChild,b=y.firstChild,x=h.renderer.getClasses?.(t,h),S=jC(i,v,x,a),C=document.createElement(`style`);C.innerHTML=S,y.insertBefore(C,b);try{await h.renderer.draw(t,e,`11.15.0`,h)}catch(n){throw i.suppressErrorRendering?u():_S.draw(t,e,`11.15.0`),n}let w=d.select(`${l} svg`),T=h.db.getAccTitle?.(),E=h.db.getAccDescription?.();BC(v,w,T,E),d.select(`[id="${e}"]`).selectAll(`foreignobject > *`).attr(`xmlns`,_C);let ee=d.select(l).node().innerHTML;if(Kt.debug(`config.arrowMarkerAbsolute`,i.arrowMarkerAbsolute),ee=MC(ee,f,fn(i.arrowMarkerAbsolute)),f){let e=d.select(l+` svg`).node();ee=NC(ee,e)}else p||(ee=Jt.sanitize(ee,{ADD_TAGS:wC,ADD_ATTR:TC,HTML_INTEGRATION_POINTS:{foreignobject:!0}}));if(rC(),g)throw g;return u(),{diagramType:v,svg:ee,bindFunctions:h.db.bindFunctions}},`render`);function RC(e={}){let t=vn({},e);t?.fontFamily&&!t.themeVariables?.fontFamily&&(t.themeVariables||={},t.themeVariables.fontFamily=t.fontFamily),an(t),t?.theme&&t.theme in cn?t.themeVariables=cn[t.theme].getThemeVariables(t.themeVariables):t&&(t.themeVariables=cn.default.getThemeVariables(t.themeVariables)),Gt((typeof t==`object`?_n(t):Xt()).logLevel),XS()}A(RC,`initialize`);var zC=A((e,t={})=>{let{code:n}=lC(e);return tC.fromText(n,t)},`getDiagramFromText`);function BC(e,t,n,r){$S(t,e),eC(t,n,r,t.attr(`id`))}A(BC,`addA11yInfo`);var VC=Object.freeze({render:LC,parse:DC,getDiagramFromText:zC,initialize:RC,getConfig:un,setConfig:on,getSiteConfig:Xt,updateSiteConfig:tn,reset:A(()=>{Zt()},`reset`),globalReset:A(()=>{Zt(bn)},`globalReset`),defaultConfig:bn});Gt(un().logLevel),Zt(un());var HC=A((e,t,n)=>{Kt.warn(e),Cn(e)?(n&&n(e.str,e.hash),t.push({...e,message:e.str,error:e})):(n&&n(e),e instanceof Error&&t.push({str:e.message,message:e.message,hash:e.name,error:e}))},`handleError`),UC=A(async function(e={querySelector:`.mermaid`}){try{await WC(e)}catch(t){if(Cn(t)&&Kt.error(t.str),tw.parseError&&tw.parseError(t),!e.suppressErrors)throw Kt.error(`Use the suppressErrors option to suppress these errors`),t}},`run`),WC=A(async function({postRenderCallback:e,querySelector:t,nodes:n}={querySelector:`.mermaid`}){let r=VC.getConfig();Kt.debug(`${e?``:`No `}Callback function found`);let i;if(n)i=n;else if(t)i=document.querySelectorAll(t);else throw Error(`Nodes and querySelector are both undefined`);Kt.debug(`Found ${i.length} diagrams`),r?.startOnLoad!==void 0&&(Kt.debug(`Start On Load: `+r?.startOnLoad),VC.updateSiteConfig({startOnLoad:r?.startOnLoad}));let a=new wn.InitIDGenerator(r.deterministicIds,r.deterministicIDSeed),o,s=[];for(let t of Array.from(i)){if(Kt.info(`Rendering diagram: `+t.id),t.getAttribute(`data-processed`))continue;t.setAttribute(`data-processed`,`true`);let n=`mermaid-${a.next()}`;o=t.innerHTML,o=Fn(wn.entityDecode(o)).trim().replace(/<br\s*\/?>/gi,`<br/>`);let r=wn.detectInit(o);r&&Kt.debug(`Detected early reinit: `,r);try{let{svg:r,bindFunctions:i}=await ew(n,o,t);t.innerHTML=r,e&&await e(n),i&&i(t)}catch(e){HC(e,s,tw.parseError)}}if(s.length>0)throw s[0]},`runThrowsErrors`),GC=A(function(e){VC.initialize(e)},`initialize`),KC=A(async function(e,t,n){Kt.warn(`mermaid.init is deprecated. Please use run instead.`),e&&GC(e);let r={postRenderCallback:n,querySelector:`.mermaid`};typeof t==`string`?r.querySelector=t:t&&(t instanceof HTMLElement?r.nodes=[t]:r.nodes=t),await UC(r)},`init`),qC=A(async(e,{lazyLoad:t=!0}={})=>{XS(),en(...e),t===!1&&await ZS()},`registerExternalDiagrams`),JC=A(function(){if(tw.startOnLoad){let{startOnLoad:e}=VC.getConfig();e&&tw.run().catch(e=>Kt.error(`Mermaid failed to initialize`,e))}},`contentLoaded`);typeof document<`u`&&window.addEventListener(`load`,JC,!1);var YC=A(function(e){tw.parseError=e},`setParseErrorHandler`),XC=[],ZC=!1,QC=A(async()=>{if(!ZC){for(ZC=!0;XC.length>0;){let e=XC.shift();if(e)try{await e()}catch(e){Kt.error(`Error executing queue`,e)}}ZC=!1}},`executeQueue`),$C=A(async(e,t)=>new Promise((n,r)=>{let i=A(()=>new Promise((i,a)=>{VC.parse(e,t).then(e=>{i(e),n(e)},e=>{Kt.error(`Error parsing`,e),tw.parseError?.(e),a(e),r(e)})}),`performCall`);XC.push(i),QC().catch(r)}),`parse`),ew=A((e,t,n)=>new Promise((r,i)=>{let a=A(()=>new Promise((a,o)=>{VC.render(e,t,n).then(e=>{a(e),r(e)},e=>{Kt.error(`Error parsing`,e),tw.parseError?.(e),o(e),i(e)})}),`performCall`);XC.push(a),QC().catch(i)}),`render`),tw={startOnLoad:!0,mermaidAPI:VC,parse:$C,render:ew,init:KC,run:UC,registerExternalDiagrams:qC,registerLayoutLoaders:In,initialize:GC,parseError:void 0,contentLoaded:JC,setParseErrorHandler:YC,detectType:gn,registerIconPacks:Pn,getRegisteredDiagramsMetadata:A(()=>Object.keys(mn).map(e=>({id:e})),`getRegisteredDiagramsMetadata`)},nw=tw,rw={startOnLoad:!1,theme:`default`,securityLevel:`strict`,fontFamily:`monospace`,suppressErrorRendering:!0};function iw(e={}){let t=!1,n={...rw,...e.config},r={initialize(r){n={...rw,...e.config,...r},nw.initialize(n),t=!0},async render(e,r){return t||=(nw.initialize(n),!0),await nw.render(e,r)}};return{name:`mermaid`,type:`diagram`,language:`mermaid`,getMermaid(e){return e&&r.initialize(e),r}}}var aw=iw(),ow=(0,j.createContext)({});function sw(e){let t=(0,j.useRef)(null);return t.current===null&&(t.current=e()),t.current}var cw=typeof window<`u`?j.useLayoutEffect:j.useEffect,lw=(0,j.createContext)(null);function uw(e,t){e.indexOf(t)===-1&&e.push(t)}function dw(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}var fw=(e,t,n)=>n>t?t:n<e?e:n,pw={},mw=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),hw=e=>typeof e==`object`&&!!e,gw=e=>/^0[^.\s]+$/u.test(e);function _w(e){let t;return()=>(t===void 0&&(t=e()),t)}var vw=e=>e,yw=(...e)=>e.reduce((e,t)=>n=>t(e(n))),bw=(e,t,n)=>{let r=t-e;return r?(n-e)/r:1},xw=class{constructor(){this.subscriptions=[]}add(e){return uw(this.subscriptions,e),()=>dw(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}},Sw=e=>e*1e3,Cw=e=>e/1e3,ww=(e,t)=>t?1e3/t*e:0,Tw=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Ew=1e-7,Dw=12;function Ow(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=Tw(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>Ew&&++s<Dw);return o}function kw(e,t,n,r){if(e===t&&n===r)return vw;let i=t=>Ow(t,0,1,e,n);return e=>e===0||e===1?e:Tw(i(e),t,r)}var Aw=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,jw=e=>t=>1-e(1-t),Mw=kw(.33,1.53,.69,.99),Nw=jw(Mw),Pw=Aw(Nw),Fw=e=>e>=1?1:(e*=2)<1?.5*Nw(e):.5*(2-2**(-10*(e-1))),Iw=e=>1-Math.sin(Math.acos(e)),Lw=jw(Iw),Rw=Aw(Iw),zw=kw(.42,0,1,1),Bw=kw(0,0,.58,1),Vw=kw(.42,0,.58,1),Hw=e=>Array.isArray(e)&&typeof e[0]!=`number`,Uw=e=>Array.isArray(e)&&typeof e[0]==`number`,Ww={linear:vw,easeIn:zw,easeInOut:Vw,easeOut:Bw,circIn:Iw,circInOut:Rw,circOut:Lw,backIn:Nw,backInOut:Pw,backOut:Mw,anticipate:Fw},Gw=e=>typeof e==`string`,Kw=e=>{if(Uw(e)){e.length;let[t,n,r,i]=e;return kw(t,n,r,i)}else if(Gw(e))return Ww[e],`${e}`,Ww[e];return e},qw=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`],Jw={value:null,addProjectionMetrics:null};function Yw(e,t){let n=new Set,r=new Set,i=!1,a=!1,o=new WeakSet,s={delta:0,timestamp:0,isProcessing:!1},c=0;function l(t){o.has(t)&&(u.schedule(t),e()),c++,t(s)}let u={schedule:(e,t=!1,a=!1)=>{let s=a&&i?n:r;return t&&o.add(e),s.add(e),e},cancel:e=>{r.delete(e),o.delete(e)},process:e=>{if(s=e,i){a=!0;return}i=!0;let o=n;n=r,r=o,n.forEach(l),t&&Jw.value&&Jw.value.frameloop[t].push(c),c=0,n.clear(),i=!1,a&&(a=!1,u.process(e))}};return u}var Xw=40;function Zw(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=qw.reduce((e,n)=>(e[n]=Yw(a,t?n:void 0),e),{}),{setup:s,read:c,resolveKeyframes:l,preUpdate:u,update:d,preRender:f,render:p,postRender:m}=o,h=()=>{let a=pw.useManualTiming,o=a?i.timestamp:performance.now();n=!1,a||(i.delta=r?1e3/60:Math.max(Math.min(o-i.timestamp,Xw),1)),i.timestamp=o,i.isProcessing=!0,s.process(i),c.process(i),l.process(i),u.process(i),d.process(i),f.process(i),p.process(i),m.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(h))},g=()=>{n=!0,r=!0,i.isProcessing||e(h)};return{schedule:qw.reduce((e,t)=>{let r=o[t];return e[t]=(e,t=!1,i=!1)=>(n||g(),r.schedule(e,t,i)),e},{}),cancel:e=>{for(let t=0;t<qw.length;t++)o[qw[t]].cancel(e)},state:i,steps:o}}var{schedule:Qw,cancel:$w,state:eT,steps:tT}=Zw(typeof requestAnimationFrame<`u`?requestAnimationFrame:vw,!0),nT;function rT(){nT=void 0}var iT={now:()=>(nT===void 0&&iT.set(eT.isProcessing||pw.useManualTiming?eT.timestamp:performance.now()),nT),set:e=>{nT=e,queueMicrotask(rT)}},aT={layout:0,mainThread:0,waapi:0},oT=e=>t=>typeof t==`string`&&t.startsWith(e),sT=oT(`--`),cT=oT(`var(--`),lT=e=>cT(e)?uT.test(e.split(`/*`)[0].trim()):!1,uT=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function dT(e){return typeof e==`string`?e.split(`/*`)[0].includes(`var(--`):!1}var fT={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},pT={...fT,transform:e=>fw(0,1,e)},mT={...fT,default:1},hT=e=>Math.round(e*1e5)/1e5,gT=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function _T(e){return e==null}var vT=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,yT=(e,t)=>n=>!!(typeof n==`string`&&vT.test(n)&&n.startsWith(e)||t&&!_T(n)&&Object.prototype.hasOwnProperty.call(n,t)),bT=(e,t,n)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match(gT);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},xT=e=>fw(0,255,e),ST={...fT,transform:e=>Math.round(xT(e))},CT={test:yT(`rgb`,`red`),parse:bT(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+ST.transform(e)+`, `+ST.transform(t)+`, `+ST.transform(n)+`, `+hT(pT.transform(r))+`)`};function wT(e){let t=``,n=``,r=``,i=``;return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}var TT={test:yT(`#`),parse:wT,transform:CT.transform},ET=e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),DT=ET(`deg`),OT=ET(`%`),Q=ET(`px`),kT=ET(`vh`),AT=ET(`vw`),jT={...OT,parse:e=>OT.parse(e)/100,transform:e=>OT.transform(e*100)},MT={test:yT(`hsl`,`hue`),parse:bT(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+OT.transform(hT(t))+`, `+OT.transform(hT(n))+`, `+hT(pT.transform(r))+`)`},NT={test:e=>CT.test(e)||TT.test(e)||MT.test(e),parse:e=>CT.test(e)?CT.parse(e):MT.test(e)?MT.parse(e):TT.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?CT.transform(e):MT.transform(e),getAnimatableNone:e=>{let t=NT.parse(e);return t.alpha=0,NT.transform(t)}},PT=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function FT(e){return isNaN(e)&&typeof e==`string`&&(e.match(gT)?.length||0)+(e.match(PT)?.length||0)>0}var IT=`number`,LT=`color`,RT=`var`,zT=`var(`,BT="${}",VT=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function HT(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0;return{values:n,split:t.replace(VT,e=>(NT.test(e)?(r.color.push(a),i.push(LT),n.push(NT.parse(e))):e.startsWith(zT)?(r.var.push(a),i.push(RT),n.push(e)):(r.number.push(a),i.push(IT),n.push(parseFloat(e))),++a,BT)).split(BT),indexes:r,types:i}}function UT(e){return HT(e).values}function WT({split:e,types:t}){let n=e.length;return r=>{let i=``;for(let a=0;a<n;a++)if(i+=e[a],r[a]!==void 0){let e=t[a];e===IT?i+=hT(r[a]):e===LT?i+=NT.transform(r[a]):i+=r[a]}return i}}function GT(e){return WT(HT(e))}var KT=e=>typeof e==`number`?0:NT.test(e)?NT.getAnimatableNone(e):e,qT=(e,t)=>typeof e==`number`?t?.trim().endsWith(`/`)?e:0:KT(e);function JT(e){let t=HT(e);return WT(t)(t.values.map((e,n)=>qT(e,t.split[n])))}var YT={test:FT,parse:UT,createTransformer:GT,getAnimatableNone:JT};function XT(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function ZT({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=XT(s,r,e+1/3),a=XT(s,r,e),o=XT(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function QT(e,t){return n=>n>0?t:e}var $T=(e,t,n)=>e+(t-e)*n,eE=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},tE=[TT,CT,MT],nE=e=>tE.find(t=>t.test(e));function rE(e){let t=nE(e);if(`${e}`,!t)return!1;let n=t.parse(e);return t===MT&&(n=ZT(n)),n}var iE=(e,t)=>{let n=rE(e),r=rE(t);if(!n||!r)return QT(e,t);let i={...n};return e=>(i.red=eE(n.red,r.red,e),i.green=eE(n.green,r.green,e),i.blue=eE(n.blue,r.blue,e),i.alpha=$T(n.alpha,r.alpha,e),CT.transform(i))},aE=new Set([`none`,`hidden`]);function oE(e,t){return aE.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function sE(e,t){return n=>$T(e,t,n)}function cE(e){return typeof e==`number`?sE:typeof e==`string`?lT(e)?QT:NT.test(e)?iE:fE:Array.isArray(e)?lE:typeof e==`object`?NT.test(e)?iE:uE:QT}function lE(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>cE(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function uE(e,t){let n={...e,...t},r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=cE(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}function dE(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let a=t.types[i],o=e.indexes[a][r[a]];n[i]=e.values[o]??0,r[a]++}return n}var fE=(e,t)=>{let n=YT.createTransformer(t),r=HT(e),i=HT(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?aE.has(e)&&!i.values.length||aE.has(t)&&!r.values.length?oE(e,t):yw(lE(dE(r,i),i.values),n):(`${e}${t}`,QT(e,t))};function pE(e,t,n){return typeof e==`number`&&typeof t==`number`&&typeof n==`number`?$T(e,t,n):cE(e)(e,t)}var mE=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>Qw.update(t,e),stop:()=>$w(t),now:()=>eT.isProcessing?eT.timestamp:iT.now()}},hE=(e,t,n=10)=>{let r=``,i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=Math.round(e(t/(i-1))*1e4)/1e4+`, `;return`linear(${r.substring(0,r.length-2)})`},gE=2e4;function _E(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}function vE(e,t=100,n){let r=n({...e,keyframes:[0,t]}),i=Math.min(_E(r),gE);return{type:`keyframes`,ease:e=>r.next(i*e).value/t,duration:Cw(i)}}var yE={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function bE(e,t){return e*Math.sqrt(1-t*t)}var xE=12;function SE(e,t,n){let r=n;for(let n=1;n<xE;n++)r-=e(r)/t(r);return r}var CE=.001;function wE({duration:e=yE.duration,bounce:t=yE.bounce,velocity:n=yE.velocity,mass:r=yE.mass}){let i,a;yE.maxDuration;let o=1-t;o=fw(yE.minDamping,yE.maxDamping,o),e=fw(yE.minDuration,yE.maxDuration,Cw(e)),o<1?(i=t=>{let r=t*o,i=r*e,a=r-n,s=bE(t,o),c=Math.exp(-i);return CE-a/s*c},a=t=>{let r=t*o*e,a=r*n+n,s=o**2*t**2*e,c=Math.exp(-r),l=bE(t**2,o);return(-i(t)+CE>0?-1:1)*((a-s)*c)/l}):(i=t=>-.001+Math.exp(-t*e)*((t-n)*e+1),a=t=>Math.exp(-t*e)*((n-t)*(e*e)));let s=5/e,c=SE(i,a,s);if(e=Sw(e),isNaN(c))return{stiffness:yE.stiffness,damping:yE.damping,duration:e};{let t=c**2*r;return{stiffness:t,damping:o*2*Math.sqrt(r*t),duration:e}}}var TE=[`duration`,`bounce`],EE=[`stiffness`,`damping`,`mass`];function DE(e,t){return t.some(t=>e[t]!==void 0)}function OE(e){let t={velocity:yE.velocity,stiffness:yE.stiffness,damping:yE.damping,mass:yE.mass,isResolvedFromDuration:!1,...e};if(!DE(e,EE)&&DE(e,TE))if(t.velocity=0,e.visualDuration){let n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*fw(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:yE.mass,stiffness:i,damping:a}}else{let n=wE({...e,velocity:0});t={...t,...n,mass:yE.mass},t.isResolvedFromDuration=!0}return t}function kE(e=yE.visualDuration,t=yE.bounce){let n=typeof e==`object`?e:{visualDuration:e,keyframes:[0,1],bounce:t},{restSpeed:r,restDelta:i}=n,a=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],s={done:!1,value:a},{stiffness:c,damping:l,mass:u,duration:d,velocity:f,isResolvedFromDuration:p}=OE({...n,velocity:-Cw(n.velocity||0)}),m=f||0,h=l/(2*Math.sqrt(c*u)),g=o-a,_=Cw(Math.sqrt(c/u)),v=Math.abs(g)<5;r||=v?yE.restSpeed.granular:yE.restSpeed.default,i||=v?yE.restDelta.granular:yE.restDelta.default;let y,b,x,S,C,w;if(h<1)x=bE(_,h),S=(m+h*_*g)/x,y=e=>o-Math.exp(-h*_*e)*(S*Math.sin(x*e)+g*Math.cos(x*e)),C=h*_*S+g*x,w=h*_*g-S*x,b=e=>Math.exp(-h*_*e)*(C*Math.sin(x*e)+w*Math.cos(x*e));else if(h===1){y=e=>o-Math.exp(-_*e)*(g+(m+_*g)*e);let e=m+_*g;b=t=>Math.exp(-_*t)*(_*e*t-m)}else{let e=_*Math.sqrt(h*h-1);y=t=>{let n=Math.exp(-h*_*t),r=Math.min(e*t,300);return o-n*((m+h*_*g)*Math.sinh(r)+e*g*Math.cosh(r))/e};let t=(m+h*_*g)/e,n=h*_*t-g*e,r=h*_*g-t*e;b=t=>{let i=Math.exp(-h*_*t),a=Math.min(e*t,300);return i*(n*Math.sinh(a)+r*Math.cosh(a))}}let T={calculatedDuration:p&&d||null,velocity:e=>Sw(b(e)),next:e=>{if(!p&&h<1){let t=Math.exp(-h*_*e),n=Math.sin(x*e),a=Math.cos(x*e),c=o-t*(S*n+g*a),l=Sw(t*(C*n+w*a));return s.done=Math.abs(l)<=r&&Math.abs(o-c)<=i,s.value=s.done?o:c,s}let t=y(e);if(p)s.done=e>=d;else{let n=Sw(b(e));s.done=Math.abs(n)<=r&&Math.abs(o-t)<=i}return s.value=s.done?o:t,s},toString:()=>{let e=Math.min(_E(T),gE),t=hE(t=>T.next(e*t).value,e,30);return e+`ms `+t},toTransition:()=>{}};return T}kE.applyToOptions=e=>{let t=vE(e,100,kE);return e.ease=t.ease,e.duration=Sw(t.duration),e.type=`keyframes`,e};var AE=5;function jE(e,t,n){let r=Math.max(t-AE,0);return ww(n-e(r),t-r)}function ME({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:c,restDelta:l=.5,restSpeed:u}){let d=e[0],f={done:!1,value:d},p=e=>s!==void 0&&e<s||c!==void 0&&e>c,m=e=>s===void 0?c:c===void 0||Math.abs(s-e)<Math.abs(c-e)?s:c,h=n*t,g=d+h,_=o===void 0?g:o(g);_!==g&&(h=_-d);let v=e=>-h*Math.exp(-e/r),y=e=>_+v(e),b=e=>{let t=v(e),n=y(e);f.done=Math.abs(t)<=l,f.value=f.done?_:n},x,S,C=e=>{p(f.value)&&(x=e,S=kE({keyframes:[f.value,m(f.value)],velocity:jE(y,e,f.value),damping:i,stiffness:a,restDelta:l,restSpeed:u}))};return C(0),{calculatedDuration:null,next:e=>{let t=!1;return!S&&x===void 0&&(t=!0,b(e),C(e)),x!==void 0&&e>=x?S.next(e-x):(!t&&b(e),f)}}}function NE(e,t,n){let r=[],i=n||pw.mix||pE,a=e.length-1;for(let n=0;n<a;n++){let a=i(e[n],e[n+1]);t&&(a=yw(Array.isArray(t)?t[n]||vw:t,a)),r.push(a)}return r}function PE(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let a=e.length;if(t.length,a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];let o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=NE(t,r,i),c=s.length,l=n=>{if(o&&n<e[0])return t[0];let r=0;if(c>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=bw(e[r],e[r+1],n);return s[r](i)};return n?t=>l(fw(e[0],e[a-1],t)):l}function FE(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=bw(0,t,r);e.push($T(n,1,i))}}function IE(e){let t=[0];return FE(t,e.length-1),t}function LE(e,t){return e.map(e=>e*t)}function RE(e,t){return e.map(()=>t||Vw).splice(0,e.length-1)}function zE({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`}){let i=Hw(r)?r.map(Kw):Kw(r),a={done:!1,value:t[0]},o=PE(LE(n&&n.length===t.length?n:IE(t),e),t,{ease:Array.isArray(i)?i:RE(t,i)});return{calculatedDuration:e,next:t=>(a.value=o(t),a.done=t>=e,a)}}var BE=e=>e!==null;function VE(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a=e.filter(BE),o=i<0||t&&n!==`loop`&&t%2==1?0:a.length-1;return!o||r===void 0?a[o]:r}var HE={decay:ME,inertia:ME,tween:zE,keyframes:zE,spring:kE};function UE(e){typeof e.type==`string`&&(e.type=HE[e.type])}var WE=class{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}},GE=e=>e/100,KE=class extends WE{constructor(e){super(),this.state=`idle`,this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==iT.now()&&this.tick(iT.now()),this.isStopped=!0,this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},aT.mainThread++,this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){let{options:e}=this;UE(e);let{type:t=zE,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||zE;s!==zE&&typeof o[0]!=`number`&&(this.mixKeyframes=yw(GE,pE(o[0],o[1])),o=[0,100]);let c=s({...e,keyframes:o});i===`mirror`&&(this.mirroredGenerator=s({...e,keyframes:[...o].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=_E(c));let{calculatedDuration:l}=c;this.calculatedDuration=l,this.resolvedDuration=l+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=c}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime===null?this.currentTime=t:this.currentTime=this.holdTime}tick(e,t=!1){let{generator:n,totalDuration:r,mixKeyframes:i,mirroredGenerator:a,resolvedDuration:o,calculatedDuration:s}=this;if(this.startTime===null)return n.next(0);let{delay:c=0,keyframes:l,repeat:u,repeatType:d,repeatDelay:f,type:p,onUpdate:m,finalKeyframe:h}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let g=this.currentTime-c*(this.playbackSpeed>=0?1:-1),_=this.playbackSpeed>=0?g<0:g>r;this.currentTime=Math.max(g,0),this.state===`finished`&&this.holdTime===null&&(this.currentTime=r);let v=this.currentTime,y=n;if(u){let e=Math.min(this.currentTime,r)/o,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),n===1&&t--,t=Math.min(t,u+1),t%2&&(d===`reverse`?(n=1-n,f&&(n-=f/o)):d===`mirror`&&(y=a)),v=fw(0,1,n)*o}let b;_?(this.delayState.value=l[0],b=this.delayState):b=y.next(v),i&&!_&&(b.value=i(b.value));let{done:x}=b;!_&&s!==null&&(x=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let S=this.holdTime===null&&(this.state===`finished`||this.state===`running`&&x);return S&&p!==ME&&(b.value=VE(l,this.options,h,this.speed)),m&&m(b.value),S&&this.finish(),b}then(e,t){return this.finished.then(e,t)}get duration(){return Cw(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+Cw(e)}get time(){return Cw(this.currentTime)}set time(e){e=Sw(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state=`paused`,this.holdTime=e,this.tick(e))}getGeneratorVelocity(){let e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);let t=this.generator.next(e).value;return jE(e=>this.generator.next(e).value,e,t)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(iT.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=Cw(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=mE,startTime:t}=this.options;this.driver||=e(e=>this.tick(e)),this.options.onPlay?.();let n=this.driver.now();this.state===`finished`?(this.updateFinished(),this.startTime=n):this.holdTime===null?this.startTime||=t??n:this.startTime=n-this.holdTime,this.state===`finished`&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state=`running`,this.driver.start()}pause(){this.state=`paused`,this.updateTime(iT.now()),this.holdTime=this.currentTime}complete(){this.state!==`running`&&this.play(),this.state=`finished`,this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state=`finished`,this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state=`idle`,this.stopDriver(),this.startTime=this.holdTime=null,aT.mainThread--}stopDriver(){this.driver&&=(this.driver.stop(),void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type=`keyframes`,this.options.ease=`linear`,this.initAnimation()),this.driver?.stop(),e.observe(this)}};function qE(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var JE=e=>e*180/Math.PI,YE=e=>ZE(JE(Math.atan2(e[1],e[0]))),XE={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:YE,rotateZ:YE,skewX:e=>JE(Math.atan(e[1])),skewY:e=>JE(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},ZE=e=>(e%=360,e<0&&(e+=360),e),QE=YE,$E=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),eD=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),tD={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:$E,scaleY:eD,scale:e=>($E(e)+eD(e))/2,rotateX:e=>ZE(JE(Math.atan2(e[6],e[5]))),rotateY:e=>ZE(JE(Math.atan2(-e[2],e[0]))),rotateZ:QE,rotate:QE,skewX:e=>JE(Math.atan(e[4])),skewY:e=>JE(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function nD(e){return+!!e.includes(`scale`)}function rD(e,t){if(!e||e===`none`)return nD(t);let n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),r,i;if(n)r=tD,i=n;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=XE,i=t}if(!i)return nD(t);let a=r[t],o=i[1].split(`,`).map(aD);return typeof a==`function`?a(o):o[a]}var iD=(e,t)=>{let{transform:n=`none`}=getComputedStyle(e);return rD(n,t)};function aD(e){return parseFloat(e.trim())}var oD=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`],sD=new Set([...oD,`pathRotation`]),cD=e=>e===fT||e===Q,lD=new Set([`x`,`y`,`z`]),uD=oD.filter(e=>!lD.has(e));function dD(e){let t=[];return uD.forEach(n=>{let r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(+!!n.startsWith(`scale`)))}),t}var fD={width:({x:e},{paddingLeft:t=`0`,paddingRight:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t=`0`,paddingBottom:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>rD(t,`x`),y:(e,{transform:t})=>rD(t,`y`)};fD.translateX=fD.x,fD.translateY=fD.y;var pD=new Set,mD=!1,hD=!1,gD=!1;function _D(){if(hD){let e=Array.from(pD).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t=dD(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{e.suspendedScrollY!==void 0&&window.scrollTo(0,e.suspendedScrollY)})}hD=!1,mD=!1,pD.forEach(e=>e.complete(gD)),pD.clear()}function vD(){pD.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(hD=!0)})}function yD(){gD=!0,vD(),_D(),gD=!1}var bD=class{constructor(e,t,n,r,i,a=!1){this.state=`pending`,this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=a}scheduleResolve(){this.state=`scheduled`,this.isAsync?(pD.add(this),mD||(mD=!0,Qw.read(vD),Qw.resolveKeyframes(_D))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(e[0]===null){let i=r?.get(),a=e[e.length-1];if(i!==void 0)e[0]=i;else if(n&&t){let r=n.readValue(t,a);r!=null&&(e[0]=r)}e[0]===void 0&&(e[0]=a),r&&i===void 0&&r.set(e[0])}qE(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state=`complete`,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),pD.delete(this)}cancel(){this.state===`scheduled`&&(pD.delete(this),this.state=`pending`)}resume(){this.state===`pending`&&this.scheduleResolve()}},xD=e=>e.startsWith(`--`);function SD(e,t,n){xD(t)?e.style.setProperty(t,n):e.style[t]=n}var CD={};function wD(e,t){let n=_w(e);return()=>CD[t]??n()}var TD=wD(()=>window.ScrollTimeline!==void 0,`scrollTimeline`),ED=wD(()=>{try{document.createElement(`div`).animate({opacity:0},{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),DD=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,OD={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:DD([0,.65,.55,1]),circOut:DD([.55,0,1,.45]),backIn:DD([.31,.01,.66,-.59]),backOut:DD([.33,1.53,.69,.99])};function kD(e,t){if(e)return typeof e==`function`?ED()?hE(e,t):`ease-out`:Uw(e)?DD(e):Array.isArray(e)?e.map(e=>kD(e,t)||OD.easeOut):OD[e]}function AD(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o=`loop`,ease:s=`easeOut`,times:c}={},l=void 0){let u={[t]:n};c&&(u.offset=c);let d=kD(s,i);Array.isArray(d)&&(u.easing=d),Jw.value&&aT.waapi++;let f={delay:r,duration:i,easing:Array.isArray(d)?`linear`:d,fill:`both`,iterations:a+1,direction:o===`reverse`?`alternate`:`normal`};l&&(f.pseudoElement=l);let p=e.animate(u,f);return Jw.value&&p.finished.finally(()=>{aT.waapi--}),p}function jD(e){return typeof e==`function`&&`applyToOptions`in e}function MD({type:e,...t}){return jD(e)&&ED()?e.applyToOptions(t):(t.duration??=300,t.ease??=`easeOut`,t)}var ND=class extends WE{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;let{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:o,onComplete:s}=e;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=e,e.type;let c=MD(e);this.animation=AD(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=VE(r,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(e),SD(t,n,e),this.animation.cancel()}s?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state===`finished`&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;e===`idle`||e===`finished`||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){let e=this.animation.effect?.getComputedTiming?.().duration||0;return Cw(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+Cw(e)}get time(){return Cw(Number(this.animation.currentTime)||0)}set time(e){let t=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Sw(e),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime===null?this.animation.playState:`finished`}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:t,rangeEnd:n,observe:r}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:`linear`}),this.animation.onfinish=null,e&&TD()?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),n&&(this.animation.rangeEnd=n),vw):r(this)}},PD={anticipate:Fw,backInOut:Pw,circInOut:Rw};function FD(e){return e in PD}function ID(e){typeof e.ease==`string`&&FD(e.ease)&&(e.ease=PD[e.ease])}var LD=10,RD=class extends ND{constructor(e){ID(e),UE(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:n,onComplete:r,element:i,...a}=this.options;if(!t)return;if(e!==void 0){t.set(e);return}let o=new KE({...a,autoplay:!1}),s=Math.max(LD,iT.now()-this.startTime),c=fw(0,LD,s-LD),l=o.sample(s).value,{name:u}=this.options;i&&u&&SD(i,u,l),t.setWithVelocity(o.sample(Math.max(0,s-c)).value,l,c),o.stop()}},zD=(e,t)=>t===`zIndex`?!1:!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(YT.test(e)||e===`0`)&&!e.startsWith(`url(`));function BD(e){let t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function VD(e,t,n,r){let i=e[0];if(i===null)return!1;if(t===`display`||t===`visibility`)return!0;let a=e[e.length-1],o=zD(i,t),s=zD(a,t);return`${t}${i}${a}${o?a:i}`,!o||!s?!1:BD(e)||(n===`spring`||jD(n))&&r}function HD(e){e.duration=0,e.type=`keyframes`}var UD=new Set([`opacity`,`clipPath`,`filter`,`transform`]),WD=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function GD(e){for(let t=0;t<e.length;t++)if(typeof e[t]==`string`&&WD.test(e[t]))return!0;return!1}var KD=new Set([`color`,`backgroundColor`,`outlineColor`,`fill`,`stroke`,`borderColor`,`borderTopColor`,`borderRightColor`,`borderBottomColor`,`borderLeftColor`]),qD=_w(()=>Object.hasOwnProperty.call(Element.prototype,`animate`));function JD(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o,keyframes:s}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:c,transformTemplate:l}=t.owner.getProps();return qD()&&n&&(UD.has(n)||KD.has(n)&&GD(s))&&(n!==`transform`||!l)&&!c&&!r&&i!==`mirror`&&a!==0&&o!==`inertia`}var YD=40,XD=class extends WE{constructor({autoplay:e=!0,delay:t=0,type:n=`keyframes`,repeat:r=0,repeatDelay:i=0,repeatType:a=`loop`,keyframes:o,name:s,motionValue:c,element:l,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=iT.now();let d={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:a,name:s,motionValue:c,element:l,...u},f=l?.KeyframeResolver||bD;this.keyframeResolver=new f(o,(e,t,n)=>this.onKeyframesResolved(e,t,d,!n),s,c,l),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;let{name:i,type:a,velocity:o,delay:s,isHandoff:c,onUpdate:l}=n;this.resolvedAt=iT.now();let u=!0;VD(e,i,a,o)||(u=!1,(pw.instantAnimations||!s)&&l?.(VE(e,n,t)),e[0]=e[e.length-1],HD(n),n.repeat=0);let d={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>YD?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},f=u&&!c&&JD(d),p=d.motionValue?.owner?.current,m;if(f)try{m=new RD({...d,element:p})}catch{m=new KE(d)}else m=new KE(d);m.finished.then(()=>{this.notifyFinished()}).catch(vw),this.pendingTimeline&&=(this.stopTimeline=m.attachTimeline(this.pendingTimeline),void 0),this._animation=m}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),yD()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}};function ZD(e,t,n,r=0,i=1){let a=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),o=e.size,s=(o-1)*r;return typeof n==`function`?n(a,o):i===1?a*r:s-a*r}var QD=30,$D=e=>!isNaN(parseFloat(e)),eO={current:void 0},tO=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=iT.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=iT.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=$D(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on(`change`,e)}on(e,t){this.events[e]||(this.events[e]=new xw);let n=this.events[e].add(t);return e===`change`?()=>{n(),Qw.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||=new Set,this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return eO.current&&eO.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=iT.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>QD)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,QD);return ww(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function nO(e,t){return new tO(e,t)}function rO(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function iO(e,t){let n=e?.[t]??e?.default??e;return n===e?n:rO(n,e)}var aO={type:`spring`,stiffness:500,damping:25,restSpeed:10},oO=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),sO={type:`keyframes`,duration:.8},cO={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},lO=(e,{keyframes:t})=>t.length>2?sO:sD.has(e)?e.startsWith(`scale`)?oO(t[1]):aO:cO,uO=new Set([`when`,`delay`,`delayChildren`,`staggerChildren`,`staggerDirection`,`repeat`,`repeatType`,`repeatDelay`,`from`,`elapsed`]);function dO(e){for(let t in e)if(!uO.has(t))return!0;return!1}var fO=(e,t,n,r={},i,a)=>o=>{let s=iO(r,e)||{},c=s.delay||r.delay||0,{elapsed:l=0}=r;l-=Sw(c);let u={keyframes:Array.isArray(n)?n:[null,n],ease:`easeOut`,velocity:t.getVelocity(),...s,delay:-l,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:i};dO(s)||Object.assign(u,lO(e,u)),u.duration&&=Sw(u.duration),u.repeatDelay&&=Sw(u.repeatDelay),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(HD(u),u.delay===0&&(d=!0)),(pw.instantAnimations||pw.skipAnimations||i?.shouldSkipAnimations||s.skipAnimations)&&(d=!0,HD(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!a&&t.get()!==void 0){let e=VE(u.keyframes,s);if(e!==void 0){Qw.update(()=>{u.onUpdate(e),u.onComplete()});return}}return s.isSync?new KE(u):new XD(u)},pO=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function mO(e){let t=pO.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}function hO(e,t,n=1){`${e}`;let[r,i]=mO(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return mw(e)?parseFloat(e):e}return lT(i)?hO(i,t,n+1):i}function gO(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function _O(e,t,n,r){if(typeof t==`function`){let[i,a]=gO(r);t=t(n===void 0?e.custom:n,i,a)}if(typeof t==`string`&&(t=e.variants&&e.variants[t]),typeof t==`function`){let[i,a]=gO(r);t=t(n===void 0?e.custom:n,i,a)}return t}function vO(e,t,n){let r=e.getProps();return _O(r,t,n===void 0?r.custom:n,e)}var yO=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,...oD]),bO=e=>Array.isArray(e);function xO(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,nO(n))}function SO(e){return bO(e)?e[e.length-1]||0:e}function CO(e,t){let{transitionEnd:n={},transition:r={},...i}=vO(e,t)||{};i={...i,...n};for(let t in i)xO(e,t,SO(i[t]))}var wO=e=>!!(e&&e.getVelocity);function TO(e){return!!(wO(e)&&e.add)}function EO(e,t){let n=e.getValue(`willChange`);if(TO(n))return n.add(t);if(!n&&pw.WillChange){let n=new pw.WillChange(`auto`);e.addValue(`willChange`,n),n.add(t)}}function DO(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}var OO=`data-`+DO(`framerAppearId`);function kO(e){return e.props[OO]}function AO({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function jO(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a,transitionEnd:o,...s}=t,c=e.getDefaultTransition();a=a?rO(a,c):c;let l=a?.reduceMotion,u=a?.skipAnimations;r&&(a=r);let d=[],f=i&&e.animationState&&e.animationState.getState()[i],p=a?.path;p&&p.animateVisualElement(e,s,a,n,d);for(let t in s){let r=e.getValue(t,e.latestValues[t]??null),i=s[t];if(i===void 0||f&&AO(f,t))continue;let o={delay:n,...iO(a||{},t)};u&&(o.skipAnimations=!0);let c=r.get();if(c!==void 0&&!r.isAnimating()&&!Array.isArray(i)&&i===c&&!o.velocity){Qw.update(()=>r.set(i));continue}let p=!1;if(window.MotionHandoffAnimation){let n=kO(e);if(n){let e=window.MotionHandoffAnimation(n,t,Qw);e!==null&&(o.startTime=e,p=!0)}}EO(e,t);let m=l??e.shouldReduceMotion;r.start(fO(t,r,i,m&&yO.has(t)?{type:!1}:o,e,p));let h=r.animation;h&&d.push(h)}if(o){let t=()=>Qw.update(()=>{o&&CO(e,o)});d.length?Promise.all(d).then(t):t()}return d}function MO(e,t,n={}){let r=vO(e,t,n.type===`exit`?e.presenceContext?.custom:void 0),{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);let a=r?()=>Promise.all(jO(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:a=0,staggerChildren:o,staggerDirection:s}=i;return NO(e,t,r,a,o,s,n)}:()=>Promise.resolve(),{when:s}=i;if(s){let[e,t]=s===`beforeChildren`?[a,o]:[o,a];return e().then(()=>t())}else return Promise.all([a(),o(n.delay)])}function NO(e,t,n=0,r=0,i=0,a=1,o){let s=[];for(let c of e.variantChildren)c.notify(`AnimationStart`,t),s.push(MO(c,t,{...o,delay:n+(typeof r==`function`?0:r)+ZD(e.variantChildren,c,r,i,a)}).then(()=>c.notify(`AnimationComplete`,t)));return Promise.all(s)}function PO(e,t,n={}){e.notify(`AnimationStart`,t);let r;if(Array.isArray(t)){let i=t.map(t=>MO(e,t,n));r=Promise.all(i)}else if(typeof t==`string`)r=MO(e,t,n);else{let i=typeof t==`function`?vO(e,t,n.custom):t;r=Promise.all(jO(e,i,n))}return r.then(()=>{e.notify(`AnimationComplete`,t)})}var FO={test:e=>e===`auto`,parse:e=>e},IO=e=>t=>t.test(e),LO=[fT,Q,OT,DT,AT,kT,FO],RO=e=>LO.find(IO(e));function zO(e){return typeof e==`number`?e===0:e===null?!0:e===`none`||e===`0`||gw(e)}var BO=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function VO(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(gT)||[];if(!r)return e;let i=n.replace(r,``),a=+!!BO.has(t);return r!==n&&(a*=100),t+`(`+a+i+`)`}var HO=/\b([a-z-]*)\(.*?\)/gu,UO={...YT,getAnimatableNone:e=>{let t=e.match(HO);return t?t.map(VO).join(` `):e}},WO={...YT,getAnimatableNone:e=>{let t=YT.parse(e);return YT.createTransformer(e)(t.map(e=>typeof e==`number`?0:typeof e==`object`?{...e,alpha:1}:e))}},GO={...fT,transform:Math.round},KO={borderWidth:Q,borderTopWidth:Q,borderRightWidth:Q,borderBottomWidth:Q,borderLeftWidth:Q,borderRadius:Q,borderTopLeftRadius:Q,borderTopRightRadius:Q,borderBottomRightRadius:Q,borderBottomLeftRadius:Q,width:Q,maxWidth:Q,height:Q,maxHeight:Q,top:Q,right:Q,bottom:Q,left:Q,inset:Q,insetBlock:Q,insetBlockStart:Q,insetBlockEnd:Q,insetInline:Q,insetInlineStart:Q,insetInlineEnd:Q,padding:Q,paddingTop:Q,paddingRight:Q,paddingBottom:Q,paddingLeft:Q,paddingBlock:Q,paddingBlockStart:Q,paddingBlockEnd:Q,paddingInline:Q,paddingInlineStart:Q,paddingInlineEnd:Q,margin:Q,marginTop:Q,marginRight:Q,marginBottom:Q,marginLeft:Q,marginBlock:Q,marginBlockStart:Q,marginBlockEnd:Q,marginInline:Q,marginInlineStart:Q,marginInlineEnd:Q,fontSize:Q,backgroundPositionX:Q,backgroundPositionY:Q,rotate:DT,pathRotation:DT,rotateX:DT,rotateY:DT,rotateZ:DT,scale:mT,scaleX:mT,scaleY:mT,scaleZ:mT,skew:DT,skewX:DT,skewY:DT,distance:Q,translateX:Q,translateY:Q,translateZ:Q,x:Q,y:Q,z:Q,perspective:Q,transformPerspective:Q,opacity:pT,originX:jT,originY:jT,originZ:Q,zIndex:GO,fillOpacity:pT,strokeOpacity:pT,numOctaves:GO},qO={...KO,color:NT,backgroundColor:NT,outlineColor:NT,fill:NT,stroke:NT,borderColor:NT,borderTopColor:NT,borderRightColor:NT,borderBottomColor:NT,borderLeftColor:NT,filter:UO,WebkitFilter:UO,mask:WO,WebkitMask:WO},JO=e=>qO[e],YO=new Set([UO,WO]);function XO(e,t){let n=JO(e);return YO.has(n)||(n=YT),n.getAnimatableNone?n.getAnimatableNone(t):void 0}var ZO=new Set([`auto`,`none`,`0`]);function QO(e,t,n){let r=0,i;for(;r<e.length&&!i;){let t=e[r];typeof t==`string`&&!ZO.has(t)&&HT(t).values.length&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]=XO(n,i)}var $O=class extends bD{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if(typeof r==`string`&&(r=r.trim(),lT(r))){let i=hO(r,t.current);i!==void 0&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!yO.has(n)||e.length!==2)return;let[r,i]=e,a=RO(r),o=RO(i);if(dT(r)!==dT(i)&&fD[n]){this.needsMeasurement=!0;return}if(a!==o)if(cD(a)&&cD(o))for(let t=0;t<e.length;t++){let n=e[t];typeof n==`string`&&(e[t]=parseFloat(n))}else fD[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(e[t]===null||zO(e[t]))&&n.push(t);n.length&&QO(e,n,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;n===`height`&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=fD[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let r=t[t.length-1];r!==void 0&&e.getValue(n,r).jump(r,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let r=e.getValue(t);r&&r.jump(this.measuredOrigin,!1);let i=n.length-1,a=n[i];n[i]=fD[t](e.measureViewportBox(),window.getComputedStyle(e.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),this.removedTransforms?.length&&this.removedTransforms.forEach(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}};function ek(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e==`string`){let r=document;t&&(r=t.current);let i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(e=>e!=null)}var tk=(e,t)=>t&&typeof e==`number`?t.transform(e):e;function nk(e){return hw(e)&&`offsetHeight`in e&&!(`ownerSVGElement`in e)}var{schedule:rk,cancel:ik}=Zw(queueMicrotask,!1),ak={x:!1,y:!1};function ok(){return ak.x||ak.y}function sk(e){return e===`x`||e===`y`?ak[e]?null:(ak[e]=!0,()=>{ak[e]=!1}):ak.x||ak.y?null:(ak.x=ak.y=!0,()=>{ak.x=ak.y=!1})}function ck(e,t){let n=ek(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function lk(e){return!(e.pointerType===`touch`||ok())}function uk(e,t,n={}){let[r,i,a]=ck(e,n);return r.forEach(e=>{let n=!1,r=!1,a,o=()=>{e.removeEventListener(`pointerleave`,u)},s=e=>{a&&=(a(e),void 0),o()},c=e=>{n=!1,window.removeEventListener(`pointerup`,c),window.removeEventListener(`pointercancel`,c),r&&(r=!1,s(e))},l=()=>{n=!0,window.addEventListener(`pointerup`,c,i),window.addEventListener(`pointercancel`,c,i)},u=e=>{if(e.pointerType!==`touch`){if(n){r=!0;return}s(e)}};e.addEventListener(`pointerenter`,n=>{if(!lk(n))return;r=!1;let o=t(e,n);typeof o==`function`&&(a=o,e.addEventListener(`pointerleave`,u,i))},i),e.addEventListener(`pointerdown`,l,i)}),a}var dk=(e,t)=>t?e===t?!0:dk(e,t.parentElement):!1,fk=e=>e.pointerType===`mouse`?typeof e.button!=`number`||e.button<=0:e.isPrimary!==!1,pk=new Set([`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`,`A`]);function mk(e){return pk.has(e.tagName)||e.isContentEditable===!0}var hk=new Set([`INPUT`,`SELECT`,`TEXTAREA`]);function gk(e){return hk.has(e.tagName)||e.isContentEditable===!0}var _k=new WeakSet;function vk(e){return t=>{t.key===`Enter`&&e(t)}}function yk(e,t){e.dispatchEvent(new PointerEvent(`pointer`+t,{isPrimary:!0,bubbles:!0}))}var bk=(e,t)=>{let n=e.currentTarget;if(!n)return;let r=vk(()=>{if(_k.has(n))return;yk(n,`down`);let e=vk(()=>{yk(n,`up`)});n.addEventListener(`keyup`,e,t),n.addEventListener(`blur`,()=>yk(n,`cancel`),t)});n.addEventListener(`keydown`,r,t),n.addEventListener(`blur`,()=>n.removeEventListener(`keydown`,r),t)};function xk(e){return fk(e)&&!ok()}var Sk=new WeakSet;function Ck(e,t,n={}){let[r,i,a]=ck(e,n),o=e=>{let r=e.currentTarget;if(!xk(e)||Sk.has(e))return;_k.add(r),n.stopPropagation&&Sk.add(e);let a=t(r,e),o=(e,t)=>{window.removeEventListener(`pointerup`,s),window.removeEventListener(`pointercancel`,c),_k.has(r)&&_k.delete(r),xk(e)&&typeof a==`function`&&a(e,{success:t})},s=e=>{o(e,r===window||r===document||n.useGlobalTarget||dk(r,e.target))},c=e=>{o(e,!1)};window.addEventListener(`pointerup`,s,i),window.addEventListener(`pointercancel`,c,i)};return r.forEach(e=>{(n.useGlobalTarget?window:e).addEventListener(`pointerdown`,o,i),nk(e)&&(e.addEventListener(`focus`,e=>bk(e,i)),!mk(e)&&!e.hasAttribute(`tabindex`)&&(e.tabIndex=0))}),a}function wk(e){return hw(e)&&`ownerSVGElement`in e}var Tk=new WeakMap,Ek,Dk=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+`Size`]:wk(r)&&`getBBox`in r?r.getBBox()[t]:r[n],Ok=Dk(`inline`,`width`,`offsetWidth`),kk=Dk(`block`,`height`,`offsetHeight`);function Ak({target:e,borderBoxSize:t}){Tk.get(e)?.forEach(n=>{n(e,{get width(){return Ok(e,t)},get height(){return kk(e,t)}})})}function jk(e){e.forEach(Ak)}function Mk(){typeof ResizeObserver>`u`||(Ek=new ResizeObserver(jk))}function Nk(e,t){Ek||Mk();let n=ek(e);return n.forEach(e=>{let n=Tk.get(e);n||(n=new Set,Tk.set(e,n)),n.add(t),Ek?.observe(e)}),()=>{n.forEach(e=>{let n=Tk.get(e);n?.delete(t),n?.size||Ek?.unobserve(e)})}}var Pk=new Set,Fk;function Ik(){Fk=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};Pk.forEach(t=>t(e))},window.addEventListener(`resize`,Fk)}function Lk(e){return Pk.add(e),Fk||Ik(),()=>{Pk.delete(e),!Pk.size&&typeof Fk==`function`&&(window.removeEventListener(`resize`,Fk),Fk=void 0)}}function Rk(e,t){return typeof e==`function`?Lk(e):Nk(e,t)}function zk(e){return wk(e)&&e.tagName===`svg`}var Bk=[...LO,NT,YT],Vk=e=>Bk.find(IO(e)),Hk=()=>({translate:0,scale:1,origin:0,originPoint:0}),Uk=()=>({x:Hk(),y:Hk()}),Wk=()=>({min:0,max:0}),Gk=()=>({x:Wk(),y:Wk()}),Kk=new WeakMap;function qk(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}function Jk(e){return typeof e==`string`||Array.isArray(e)}var Yk=[`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`exit`],Xk=[`initial`,...Yk];function Zk(e){return qk(e.animate)||Xk.some(t=>Jk(e[t]))}function Qk(e){return!!(Zk(e)||e.variants)}function $k(e,t,n){for(let r in t){let i=t[r],a=n[r];if(wO(i))e.addValue(r,i);else if(wO(a))e.addValue(r,nO(i,{owner:e}));else if(a!==i)if(e.hasValue(r)){let t=e.getValue(r);t.liveStyle===!0?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,nO(t===void 0?i:t,{owner:e}))}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}var eA={current:null},tA={current:!1},nA=typeof window<`u`;function rA(){if(tA.current=!0,nA)if(window.matchMedia){let e=window.matchMedia(`(prefers-reduced-motion)`),t=()=>eA.current=e.matches;e.addEventListener(`change`,t),t()}else eA.current=!1}var iA=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`],aA={};function oA(e){aA=e}function sA(){return aA}var cA=class{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,skipAnimations:i,blockInitialAnimation:a,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=bD,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify(`Update`,this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=iT.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,Qw.render(this.render,!1,!0))};let{latestValues:c,renderState:l}=o;this.latestValues=c,this.baseTarget={...c},this.initialValues=t.initial?{...c}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.skipAnimationsConfig=i,this.options=s,this.blockInitialAnimation=!!a,this.isControllingVariants=Zk(t),this.isVariantNode=Qk(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:u,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in d){let t=d[e];c[e]!==void 0&&wO(t)&&t.set(c[e])}}mount(e){if(this.hasBeenMounted)for(let e in this.initialValues)this.values.get(e)?.jump(this.initialValues[e]),this.latestValues[e]=this.initialValues[e];this.current=e,Kk.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),this.reducedMotionConfig===`never`?this.shouldReduceMotion=!1:this.reducedMotionConfig===`always`?this.shouldReduceMotion=!0:(tA.current||rA(),this.shouldReduceMotion=eA.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),$w(this.notifyUpdate),$w(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(let e in this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??=new Set,this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&UD.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:r,times:i,ease:a,duration:o}=t.accelerate,s=new ND({element:this.current,name:e,keyframes:r,times:i,ease:a,duration:Sw(o)}),c=n(s);this.valueSubscriptions.set(e,()=>{c(),s.cancel()});return}let n=sD.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on(`change`,t=>{this.latestValues[e]=t,this.props.onUpdate&&Qw.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()}),i;typeof window<`u`&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),i&&i()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e=`animation`;for(e in aA){let t=aA[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Gk()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<iA.length;t++){let n=iA[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=e[`on`+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=$k(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return n===void 0&&t!==void 0&&(n=nO(t===null?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return n!=null&&(typeof n==`string`&&(mw(n)||gw(n))?n=parseFloat(n):!Vk(n)&&YT.test(t)&&(n=XO(e,t)),this.setBaseTarget(e,wO(n)?n.get():n)),wO(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let{initial:t}=this.props,n;if(typeof t==`string`||typeof t==`object`){let r=_O(this.props,t,this.presenceContext?.custom);r&&(n=r[e])}if(t&&n!==void 0)return n;let r=this.getBaseTargetFromProps(this.props,e);return r!==void 0&&!wO(r)?r:this.initialValues[e]!==void 0&&n===void 0?void 0:this.baseTarget[e]}on(e,t){return this.events[e]||(this.events[e]=new xw),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){rk.render(this.render)}},lA=class extends cA{constructor(){super(...arguments),this.KeyframeResolver=$O}sortInstanceNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1}getBaseTargetFromProps(e,t){let n=e.style;return n?n[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;wO(e)&&(this.childSubscription=e.on(`change`,e=>{this.current&&(this.current.textContent=`${e}`)}))}},uA=class{constructor(e){this.isMounted=!1,this.node=e}update(){}};function dA({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function fA({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function pA(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function mA(e){return e===void 0||e===1}function hA({scale:e,scaleX:t,scaleY:n}){return!mA(e)||!mA(t)||!mA(n)}function gA(e){return hA(e)||_A(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function _A(e){return vA(e.x)||vA(e.y)}function vA(e){return e&&e!==`0%`}function yA(e,t,n){return n+t*(e-n)}function bA(e,t,n,r,i){return i!==void 0&&(e=yA(e,i,r)),yA(e,n,r)+t}function xA(e,t=0,n=1,r,i){e.min=bA(e.min,t,n,r,i),e.max=bA(e.max,t,n,r,i)}function SA(e,{x:t,y:n}){xA(e.x,t.translate,t.scale,t.originPoint),xA(e.y,n.translate,n.scale,n.originPoint)}var CA=.999999999999,wA=1.0000000000001;function TA(e,t,n,r=!1){let i=n.length;if(!i)return;t.x=t.y=1;let a,o;for(let s=0;s<i;s++){a=n[s],o=a.projectionDelta;let{visualElement:i}=a.options;i&&i.props.style&&i.props.style.display===`contents`||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&(EA(e.x,-a.scroll.offset.x),EA(e.y,-a.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,SA(e,o)),r&&gA(a.latestValues)&&kA(e,a.latestValues,a.layout?.layoutBox))}t.x<wA&&t.x>CA&&(t.x=1),t.y<wA&&t.y>CA&&(t.y=1)}function EA(e,t){e.min+=t,e.max+=t}function DA(e,t,n,r,i=.5){xA(e,t,n,$T(e.min,e.max,i),r)}function OA(e,t){return typeof e==`string`?parseFloat(e)/100*(t.max-t.min):e}function kA(e,t,n){let r=n??e;DA(e.x,OA(t.x,r.x),t.scaleX,t.scale,t.originX),DA(e.y,OA(t.y,r.y),t.scaleY,t.scale,t.originY)}function AA(e,t){return dA(pA(e.getBoundingClientRect(),t))}function jA(e,t,n){let r=AA(e,n),{scroll:i}=t;return i&&(EA(r.x,i.offset.x),EA(r.y,i.offset.y)),r}var MA={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},NA=oD.length;function PA(e,t,n){let r=``,i=!0;for(let a=0;a<NA;a++){let o=oD[a],s=e[o];if(s===void 0)continue;let c=!0;if(typeof s==`number`)c=s===+!!o.startsWith(`scale`);else{let e=parseFloat(s);c=o.startsWith(`scale`)?e===1:e===0}if(!c||n){let e=tk(s,KO[o]);if(!c){i=!1;let t=MA[o]||o;r+=`${t}(${e}) `}n&&(t[o]=e)}}let a=e.pathRotation;return a&&(i=!1,r+=`rotate(${tk(a,KO.pathRotation)}) `),r=r.trim(),n?r=n(t,i?``:r):i&&(r=`none`),r}function FA(e,t,n){let{style:r,vars:i,transformOrigin:a}=e,o=!1,s=!1;for(let e in t){let n=t[e];if(sD.has(e)){o=!0;continue}else if(sT(e)){i[e]=n;continue}else{let t=tk(n,KO[e]);e.startsWith(`origin`)?(s=!0,a[e]=t):r[e]=t}}if(t.transform||(o||n?r.transform=PA(t,e.transform,n):r.transform&&=`none`),s){let{originX:e=`50%`,originY:t=`50%`,originZ:n=0}=a;r.transformOrigin=`${e} ${t} ${n}`}}function IA(e,{style:t,vars:n},r,i){let a=e.style,o;for(o in t)a[o]=t[o];for(o in i?.applyProjectionStyles(a,r),n)a.setProperty(o,n[o])}function LA(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var RA={correct:(e,t)=>{if(!t.target)return e;if(typeof e==`string`)if(Q.test(e))e=parseFloat(e);else return e;return`${LA(e,t.target.x)}% ${LA(e,t.target.y)}%`}},zA={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=YT.parse(e);if(i.length>5)return r;let a=YT.createTransformer(e),o=typeof i[0]==`number`?0:1,s=n.x.scale*t.x,c=n.y.scale*t.y;i[0+o]/=s,i[1+o]/=c;let l=$T(s,c,.5);return typeof i[2+o]==`number`&&(i[2+o]/=l),typeof i[3+o]==`number`&&(i[3+o]/=l),a(i)}},BA={borderRadius:{...RA,applyTo:[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomLeftRadius`,`borderBottomRightRadius`]},borderTopLeftRadius:RA,borderTopRightRadius:RA,borderBottomLeftRadius:RA,borderBottomRightRadius:RA,boxShadow:zA};function VA(e,{layout:t,layoutId:n}){return sD.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!BA[e]||e===`opacity`)}function HA(e,t,n){let r=e.style,i=t?.style,a={};if(!r)return a;for(let t in r)(wO(r[t])||i&&wO(i[t])||VA(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(a[t]=r[t]);return a}function UA(e){return window.getComputedStyle(e)}var WA=class extends lA{constructor(){super(...arguments),this.type=`html`,this.renderInstance=IA}readValueFromInstance(e,t){if(sD.has(t))return this.projection?.isProjecting?nD(t):iD(e,t);{let n=UA(e),r=(sT(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return AA(e,t)}build(e,t,n){FA(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return HA(e,t,n)}},GA={offset:`stroke-dashoffset`,array:`stroke-dasharray`},KA={offset:`strokeDashoffset`,array:`strokeDasharray`};function qA(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?GA:KA;e[a.offset]=`${-r}`,e[a.array]=`${t} ${n}`}var JA=[`offsetDistance`,`offsetPath`,`offsetRotate`,`offsetAnchor`];function YA(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},c,l,u){if(FA(e,s,l),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:f}=e;d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??`50% 50%`,delete d.transformOrigin),f.transform&&(f.transformBox=u?.transformBox??`fill-box`,delete d.transformBox);for(let e of JA)d[e]!==void 0&&(f[e]=d[e],delete d[e]);t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&qA(d,i,a,o,!1)}var XA=new Set([`baseFrequency`,`diffuseConstant`,`kernelMatrix`,`kernelUnitLength`,`keySplines`,`keyTimes`,`limitingConeAngle`,`markerHeight`,`markerWidth`,`numOctaves`,`targetX`,`targetY`,`surfaceScale`,`specularConstant`,`specularExponent`,`stdDeviation`,`tableValues`,`viewBox`,`gradientTransform`,`pathLength`,`startOffset`,`textLength`,`lengthAdjust`]),ZA=e=>typeof e==`string`&&e.toLowerCase()===`svg`;function QA(e,t,n,r){IA(e,t,void 0,r);for(let n in t.attrs)e.setAttribute(XA.has(n)?n:DO(n),t.attrs[n])}function $A(e,t,n){let r=HA(e,t,n);for(let n in e)if(wO(e[n])||wO(t[n])){let t=oD.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}var ej=class extends lA{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=Gk}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(sD.has(t)){let e=JO(t);return e&&e.default||0}return t=XA.has(t)?t:DO(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return $A(e,t,n)}build(e,t,n){YA(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){QA(e,t,n,r)}mount(e){this.isSVGTag=ZA(e.tagName),super.mount(e)}},tj=Xk.length;function nj(e){if(!e)return;if(!e.isControllingVariants){let t=e.parent&&nj(e.parent)||{};return e.props.initial!==void 0&&(t.initial=e.props.initial),t}let t={};for(let n=0;n<tj;n++){let r=Xk[n],i=e.props[r];(Jk(i)||i===!1)&&(t[r]=i)}return t}function rj(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}var ij=[...Yk].reverse(),aj=Yk.length;function oj(e){return t=>Promise.all(t.map(({animation:t,options:n})=>PO(e,t,n)))}function sj(e){let t=oj(e),n=uj(),r=!0,i=!1,a=t=>(n,r)=>{let i=vO(e,r,t===`exit`?e.presenceContext?.custom:void 0);if(i){let{transition:e,transitionEnd:t,...r}=i;n={...n,...r,...t}}return n};function o(n){t=n(e)}function s(o){let{props:s}=e,c=nj(e.parent)||{},l=[],u=new Set,d={},f=1/0;for(let t=0;t<aj;t++){let p=ij[t],m=n[p],h=s[p]===void 0?c[p]:s[p],g=Jk(h),_=p===o?m.isActive:null;_===!1&&(f=t);let v=h===c[p]&&h!==s[p]&&g;if(v&&(r||i)&&e.manuallyAnimateOnMount&&(v=!1),m.protectedKeys={...d},!m.isActive&&_===null||!h&&!m.prevProp||qk(h)||typeof h==`boolean`)continue;if(p===`exit`&&m.isActive&&_!==!0){m.prevResolvedValues&&(d={...d,...m.prevResolvedValues});continue}let y=cj(m.prevProp,h),b=y||p===o&&m.isActive&&!v&&g||t>f&&g,x=!1,S=Array.isArray(h)?h:[h],C=S.reduce(a(p),{});_===!1&&(C={});let{prevResolvedValues:w={}}=m,T={...w,...C},E=t=>{b=!0,u.has(t)&&(x=!0,u.delete(t)),m.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in T){let t=C[e],n=w[e];if(d.hasOwnProperty(e))continue;let r=!1;r=bO(t)&&bO(n)?!rj(t,n)||y:t!==n,r?t==null?u.add(e):E(e):t!==void 0&&u.has(e)?E(e):m.protectedKeys[e]=!0}m.prevProp=h,m.prevResolvedValues=C,m.isActive&&(d={...d,...C}),(r||i)&&e.blockInitialAnimation&&(b=!1);let ee=v&&y;b&&(!ee||x)&&l.push(...S.map(t=>{let n={type:p};if(typeof t==`string`&&(r||i)&&!ee&&e.manuallyAnimateOnMount&&e.parent){let{parent:r}=e,i=vO(r,t);if(r.enteringChildren&&i){let{delayChildren:t}=i.transition||{};n.delay=ZD(r.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(u.size){let t={};if(typeof s.initial!=`boolean`){let n=vO(e,Array.isArray(s.initial)?s.initial[0]:s.initial);n&&n.transition&&(t.transition=n.transition)}u.forEach(n=>{let r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=r??null}),l.push({animation:t})}let p=!!l.length;return r&&(s.initial===!1||s.initial===s.animate)&&!e.manuallyAnimateOnMount&&(p=!1),r=!1,i=!1,p?t(l):Promise.resolve()}function c(t,r){if(n[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,r)),n[t].isActive=r;let i=s(t);for(let e in n)n[e].protectedKeys={};return i}return{animateChanges:s,setActive:c,setAnimateFunction:o,getState:()=>n,reset:()=>{n=uj(),i=!0}}}function cj(e,t){return typeof t==`string`?t!==e:Array.isArray(t)?!rj(t,e):!1}function lj(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function uj(){return{animate:lj(!0),whileInView:lj(),whileHover:lj(),whileTap:lj(),whileDrag:lj(),whileFocus:lj(),exit:lj()}}function dj(e,t){e.min=t.min,e.max=t.max}function fj(e,t){dj(e.x,t.x),dj(e.y,t.y)}function pj(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var mj=.9999,hj=1.0001,gj=-.01,_j=.01;function vj(e){return e.max-e.min}function yj(e,t,n){return Math.abs(e-t)<=n}function bj(e,t,n,r=.5){e.origin=r,e.originPoint=$T(t.min,t.max,e.origin),e.scale=vj(n)/vj(t),e.translate=$T(n.min,n.max,e.origin)-e.originPoint,(e.scale>=mj&&e.scale<=hj||isNaN(e.scale))&&(e.scale=1),(e.translate>=gj&&e.translate<=_j||isNaN(e.translate))&&(e.translate=0)}function xj(e,t,n,r){bj(e.x,t.x,n.x,r?r.originX:void 0),bj(e.y,t.y,n.y,r?r.originY:void 0)}function Sj(e,t,n,r=0){e.min=(r?$T(n.min,n.max,r):n.min)+t.min,e.max=e.min+vj(t)}function Cj(e,t,n,r){Sj(e.x,t.x,n.x,r?.x),Sj(e.y,t.y,n.y,r?.y)}function wj(e,t,n,r=0){let i=r?$T(n.min,n.max,r):n.min;e.min=t.min-i,e.max=e.min+vj(t)}function Tj(e,t,n,r){wj(e.x,t.x,n.x,r?.x),wj(e.y,t.y,n.y,r?.y)}function Ej(e,t,n,r,i){return e-=t,e=yA(e,1/n,r),i!==void 0&&(e=yA(e,1/i,r)),e}function Dj(e,t=0,n=1,r=.5,i,a=e,o=e){if(OT.test(t)&&(t=parseFloat(t),t=$T(o.min,o.max,t/100)-o.min),typeof t!=`number`)return;let s=$T(a.min,a.max,r);e===a&&(s-=t),e.min=Ej(e.min,t,n,s,i),e.max=Ej(e.max,t,n,s,i)}function Oj(e,t,[n,r,i],a,o){Dj(e,t[n],t[r],t[i],t.scale,a,o)}var kj=[`x`,`scaleX`,`originX`],Aj=[`y`,`scaleY`,`originY`];function jj(e,t,n,r){Oj(e.x,t,kj,n?n.x:void 0,r?r.x:void 0),Oj(e.y,t,Aj,n?n.y:void 0,r?r.y:void 0)}function Mj(e){return e.translate===0&&e.scale===1}function Nj(e){return Mj(e.x)&&Mj(e.y)}function Pj(e,t){return e.min===t.min&&e.max===t.max}function Fj(e,t){return Pj(e.x,t.x)&&Pj(e.y,t.y)}function Ij(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Lj(e,t){return Ij(e.x,t.x)&&Ij(e.y,t.y)}function Rj(e){return vj(e.x)/vj(e.y)}function zj(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function Bj(e){return[e(`x`),e(`y`)]}function Vj(e,t,n){let r=``,i=e.x.translate/t.x,a=e.y.translate/t.y,o=n?.z||0;if((i||a||o)&&(r=`translate3d(${i}px, ${a}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,pathRotation:i,rotateX:a,rotateY:o,skewX:s,skewY:c}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotate(${i}deg) `),a&&(r+=`rotateX(${a}deg) `),o&&(r+=`rotateY(${o}deg) `),s&&(r+=`skewX(${s}deg) `),c&&(r+=`skewY(${c}deg) `)}let s=e.x.scale*t.x,c=e.y.scale*t.y;return(s!==1||c!==1)&&(r+=`scale(${s}, ${c})`),r||`none`}var Hj=[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomLeftRadius`,`borderBottomRightRadius`],Uj=Hj.length,Wj=e=>typeof e==`string`?parseFloat(e):e,Gj=e=>typeof e==`number`||Q.test(e);function Kj(e,t,n,r,i,a){i?(e.opacity=$T(0,n.opacity??1,Jj(r)),e.opacityExit=$T(t.opacity??1,0,Yj(r))):a&&(e.opacity=$T(t.opacity??1,n.opacity??1,r));for(let i=0;i<Uj;i++){let a=Hj[i],o=qj(t,a),s=qj(n,a);o===void 0&&s===void 0||(o||=0,s||=0,o===0||s===0||Gj(o)===Gj(s)?(e[a]=Math.max($T(Wj(o),Wj(s),r),0),(OT.test(s)||OT.test(o))&&(e[a]+=`%`)):e[a]=s)}(t.rotate||n.rotate)&&(e.rotate=$T(t.rotate||0,n.rotate||0,r))}function qj(e,t){return e[t]===void 0?e.borderRadius:e[t]}var Jj=Xj(0,.5,Lw),Yj=Xj(.5,.95,vw);function Xj(e,t,n){return r=>r<e?0:r>t?1:n(bw(e,t,r))}function Zj(e,t,n){let r=wO(e)?e:nO(e);return r.start(fO(``,r,t,n)),r.animation}function Qj(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}var $j=(e,t)=>e.depth-t.depth,eM=class{constructor(){this.children=[],this.isDirty=!1}add(e){uw(this.children,e),this.isDirty=!0}remove(e){dw(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort($j),this.isDirty=!1,this.children.forEach(e)}};function tM(e,t){let n=iT.now(),r=({timestamp:i})=>{let a=i-n;a>=t&&($w(r),e(a-t))};return Qw.setup(r,!0),()=>$w(r)}function nM(e){return wO(e)?e.get():e}var rM=class{constructor(){this.members=[]}add(e){uw(this.members,e);for(let t=this.members.length-1;t>=0;t--){let n=this.members[t];if(n===e||n===this.lead||n===this.prevLead)continue;let r=n.instance;(!r||r.isConnected===!1)&&!n.snapshot&&(dw(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if(dw(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){for(let t=this.members.indexOf(e)-1;t>=0;t--){let e=this.members[t];if(e.isPresent!==!1&&e.instance?.isConnected!==!1)return this.promote(e),!0}return!1}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.updateSnapshot(),e.scheduleRender();let{layoutDependency:r}=n.options,{layoutDependency:i}=e.options;(r===void 0||r!==i)&&(e.resumeFrom=n,t&&(n.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),e.options.crossfade===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}},iM={hasAnimatedSinceResize:!0,hasEverUpdated:!1},aM={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},oM=[``,`X`,`Y`,`Z`],sM=1e3,cM=0;function lM(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function uM(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=kO(t);if(window.MotionHasOptimisedAnimation(n,`transform`)){let{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,`transform`,Qw,!(t||r))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&uM(r)}function dM({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=cM++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Jw.value&&(aM.nodes=aM.calculatedTargetDeltas=aM.calculatedProjections=0),this.nodes.forEach(mM),this.nodes.forEach(CM),this.nodes.forEach(wM),this.nodes.forEach(hM),Jw.addProjectionMetrics&&Jw.addProjectionMetrics(aM)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new eM)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new xw),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=wk(t)&&!zk(t),this.instance=t;let{layoutId:n,layout:r,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(r||n)&&(this.isLayoutDirty=!0),e){let n,r=0,i=()=>this.root.updateBlockedByResize=!1;Qw.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n&&n(),n=tM(i,250),iM.hasAnimatedSinceResize&&(iM.hasAnimatedSinceResize=!1,this.nodes.forEach(SM)))})}n&&this.root.registerSharedNode(n,this),this.options.animate!==!1&&i&&(n||r)&&this.addEventListener(`didUpdate`,({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let a=this.options.transition||i.getDefaultTransition()||jM,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=i.getProps(),c=!this.targetLayout||!Lj(this.targetLayout,r),l=!t&&n;if(this.options.layoutRoot||this.resumeFrom||l||t&&(c||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...iO(a,`layout`),onPlay:o,onComplete:s};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,l,t.path)}else t||SM(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),$w(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(TM),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&uM(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,(typeof t.latestValues.x==`string`||typeof t.latestValues.y==`string`)&&(t.isLayoutDirty=!0),t.updateScroll(`snapshot`),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:n}=this.options;if(t===void 0&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,``):void 0,this.updateSnapshot(),e&&this.notifyListeners(`willUpdate`)}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let e=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),e&&this.nodes.forEach(vM),this.nodes.forEach(_M);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(yM);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(bM),this.nodes.forEach(xM),this.nodes.forEach(fM),this.nodes.forEach(pM)):this.nodes.forEach(yM),this.clearAllSnapshots();let e=iT.now();eT.delta=fw(0,1e3/60,e-eT.timestamp),eT.timestamp=e,eT.isProcessing=!0,tT.update.process(eT),tT.preRender.process(eT),tT.render.process(eT),eT.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,rk.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(gM),this.sharedNodes.forEach(EM)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Qw.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Qw.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!vj(this.snapshot.measuredBox.x)&&!vj(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||=Gk(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners(`measure`,this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify(`LayoutMeasure`,this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e=`measure`){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!Nj(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,``):void 0,a=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||gA(this.latestValues)||a)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){let t=this.measurePageBox(),n=this.removeElementScroll(t);return e&&(n=this.removeTransform(n)),FM(n),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return Gk();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(LM))){let{scroll:e}=this.root;e&&(EA(t.x,e.offset.x),EA(t.y,e.offset.y))}return t}removeElementScroll(e){let t=Gk();if(fj(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:i,options:a}=r;r!==this.root&&i&&a.layoutScroll&&(i.wasRoot&&fj(t,e),EA(t.x,i.offset.x),EA(t.y,i.offset.y))}return t}applyTransform(e,t=!1,n){let r=n||Gk();fj(r,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];!t&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(EA(r.x,-n.scroll.offset.x),EA(r.y,-n.scroll.offset.y)),gA(n.latestValues)&&kA(r,n.latestValues,n.layout?.layoutBox)}return gA(this.latestValues)&&kA(r,this.latestValues,this.layout?.layoutBox),r}removeTransform(e){let t=Gk();fj(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!gA(n.latestValues))continue;let r;n.instance&&(hA(n.latestValues)&&n.updateSnapshot(),r=Gk(),fj(r,n.measurePageBox())),jj(t,n.latestValues,n.snapshot?.layoutBox,r)}return gA(this.latestValues)&&jj(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:e.crossfade===void 0?!0:e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==eT.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||=t.isProjectionDirty,this.isTransformDirty||=t.isTransformDirty,this.isSharedProjectionDirty||=t.isSharedProjectionDirty;let n=!!this.resumingFrom||this!==t;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:r,layoutId:i}=this.options;if(!this.layout||!(r||i))return;this.resolvedRelativeTargetAt=eT.timestamp;let a=this.getClosestProjectingParent();a&&this.linkedParentVersion!==a.layoutVersion&&!a.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&a&&a.layout?this.createRelativeTarget(a,this.layout.layoutBox,a.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Gk(),this.targetWithTransforms=Gk()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Cj(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):fj(this.target,this.layout.layoutBox),SA(this.target,this.targetDelta)):fj(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&a&&!!a.resumingFrom==!!this.resumingFrom&&!a.options.layoutScroll&&a.target&&this.animationProgress!==1?this.createRelativeTarget(a,this.target,a.target):this.relativeParent=this.relativeTarget=void 0),Jw.value&&aM.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||hA(this.parent.latestValues)||_A(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(e,t,n){this.relativeParent=e,this.linkedParentVersion=e.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Gk(),this.relativeTargetOrigin=Gk(),Tj(this.relativeTargetOrigin,t,n,this.options.layoutAnchor||void 0),fj(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===eT.timestamp&&(n=!1),n)return;let{layout:r,layoutId:i}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||i))return;fj(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;TA(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=Gk());let{target:s}=e;if(!s){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(pj(this.prevProjectionDelta.x,this.projectionDelta.x),pj(this.prevProjectionDelta.y,this.projectionDelta.y)),xj(this.projectionDelta,this.layoutCorrected,s,this.latestValues),(this.treeScale.x!==a||this.treeScale.y!==o||!zj(this.projectionDelta.x,this.prevProjectionDelta.x)||!zj(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners(`projectionUpdate`,s)),Jw.value&&aM.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Uk(),this.projectionDelta=Uk(),this.projectionDeltaWithTransform=Uk()}setAnimationOrigin(e,t=!1,n){let r=this.snapshot,i=r?r.latestValues:{},a={...this.latestValues},o=Uk();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let s=Gk(),c=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),u=!l||l.members.length<=1,d=!!(c&&!u&&this.options.crossfade===!0&&!this.path.some(AM));this.animationProgress=0;let f,p=n?.interpolateProjection(e);this.mixTargetDelta=t=>{let n=t/1e3,r=p?.(n);r?(o.x.translate=r.x,o.x.scale=$T(e.x.scale,1,n),o.x.origin=e.x.origin,o.x.originPoint=e.x.originPoint,o.y.translate=r.y,o.y.scale=$T(e.y.scale,1,n),o.y.origin=e.y.origin,o.y.originPoint=e.y.originPoint):(DM(o.x,e.x,n),DM(o.y,e.y,n)),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Tj(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),kM(this.relativeTarget,this.relativeTargetOrigin,s,n),f&&Fj(this.relativeTarget,f)&&(this.isProjectionDirty=!1),f||=Gk(),fj(f,this.relativeTarget)),c&&(this.animationValues=a,Kj(a,i,this.latestValues,n,d,u)),r&&r.rotate!==void 0&&(this.animationValues||=a,this.animationValues.pathRotation=r.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners(`animationStart`),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&=($w(this.pendingAnimation),void 0),this.pendingAnimation=Qw.update(()=>{iM.hasAnimatedSinceResize=!0,aT.layout++,this.motionValue||=nO(0),this.motionValue.jump(0,!1),this.currentAnimation=Zj(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onStop:()=>{aT.layout--},onComplete:()=>{aT.layout--,e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners(`animationComplete`)}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(sM),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(!(!t||!n||!r)){if(this!==e&&this.layout&&r&&IM(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||Gk();let t=vj(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=vj(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}fj(t,n),kA(t,i),xj(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new rM),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return e?e.lead===this:!0}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return e?e.relegate(this):!1}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let r={};n.z&&lM(`z`,e,r,this.animationValues);for(let t=0;t<oM.length;t++)lM(`rotate${oM[t]}`,e,r,this.animationValues),lM(`skew${oM[t]}`,e,r,this.animationValues);e.render();for(let t in r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility=`hidden`;return}let n=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility=``,e.opacity=``,e.pointerEvents=nM(t?.pointerEvents)||``,e.transform=n?n(this.latestValues,``):`none`;return}let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){this.options.layoutId&&(e.opacity=this.latestValues.opacity===void 0?1:this.latestValues.opacity,e.pointerEvents=nM(t?.pointerEvents)||``),this.hasProjected&&!gA(this.latestValues)&&(e.transform=n?n({},``):`none`,this.hasProjected=!1);return}e.visibility=``;let i=r.animationValues||r.latestValues;this.applyTransformsToTarget();let a=Vj(this.projectionDeltaWithTransform,this.treeScale,i);n&&(a=n(i,a)),e.transform=a;let{x:o,y:s}=this.projectionDelta;e.transformOrigin=`${o.origin*100}% ${s.origin*100}% 0`,r.animationValues?e.opacity=r===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:e.opacity=r===this?i.opacity===void 0?``:i.opacity:i.opacityExit===void 0?0:i.opacityExit;for(let t in BA){if(i[t]===void 0)continue;let{correct:n,applyTo:o,isCSSVariable:s}=BA[t],c=a===`none`?i[t]:n(i[t],r);if(o){let t=o.length;for(let n=0;n<t;n++)e[o[n]]=c}else s?this.options.visualElement.renderState.vars[t]=c:e[t]=c}this.options.layoutId&&(e.pointerEvents=r===this?nM(t?.pointerEvents)||``:`none`)}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(_M),this.root.sharedNodes.clear()}}}function fM(e){e.updateLayout()}function pM(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners(`didUpdate`)){let{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source;if(i===`size`)Bj(e=>{let r=a?t.measuredBox[e]:t.layoutBox[e],i=vj(r);r.min=n[e].min,r.max=r.min+i});else if(i===`x`||i===`y`){let e=i===`x`?`y`:`x`;dj(a?t.measuredBox[e]:t.layoutBox[e],n[e])}else IM(i,t.layoutBox,n)&&Bj(r=>{let i=a?t.measuredBox[r]:t.layoutBox[r],o=vj(n[r]);i.max=i.min+o,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+o)});let o=Uk();xj(o,n,t.layoutBox);let s=Uk();a?xj(s,e.applyTransform(r,!0),t.measuredBox):xj(s,n,t.layoutBox);let c=!Nj(o),l=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:a}=r;if(i&&a){let o=e.options.layoutAnchor||void 0,s=Gk();Tj(s,t.layoutBox,i.layoutBox,o);let c=Gk();Tj(c,n,a.layoutBox,o),Lj(s,c)||(l=!0),r.options.layoutRoot&&(e.relativeTarget=c,e.relativeTargetOrigin=s,e.relativeParent=r)}}}e.notifyListeners(`didUpdate`,{layout:n,snapshot:t,delta:s,layoutDelta:o,hasLayoutChanged:c,hasRelativeLayoutChanged:l})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function mM(e){Jw.value&&aM.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty),e.isTransformDirty||=e.parent.isTransformDirty)}function hM(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function gM(e){e.clearSnapshot()}function _M(e){e.clearMeasurements()}function vM(e){e.isLayoutDirty=!0,e.updateLayout()}function yM(e){e.isLayoutDirty=!1}function bM(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function xM(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify(`BeforeLayoutMeasure`),e.resetTransform()}function SM(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function CM(e){e.resolveTargetDelta()}function wM(e){e.calcProjection()}function TM(e){e.resetSkewAndRotation()}function EM(e){e.removeLeadSnapshot()}function DM(e,t,n){e.translate=$T(t.translate,0,n),e.scale=$T(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function OM(e,t,n,r){e.min=$T(t.min,n.min,r),e.max=$T(t.max,n.max,r)}function kM(e,t,n,r){OM(e.x,t.x,n.x,r),OM(e.y,t.y,n.y,r)}function AM(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var jM={duration:.45,ease:[.4,0,.1,1]},MM=e=>typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),NM=MM(`applewebkit/`)&&!MM(`chrome/`)?Math.round:vw;function PM(e){e.min=NM(e.min),e.max=NM(e.max)}function FM(e){PM(e.x),PM(e.y)}function IM(e,t,n){return e===`position`||e===`preserve-aspect`&&!yj(Rj(t),Rj(n),.2)}function LM(e){return e!==e.root&&e.scroll?.wasRoot}var RM=dM({attachResizeListener:(e,t)=>Qj(e,`resize`,t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),zM={current:void 0},BM=dM({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!zM.current){let e=new RM({});e.mount(window),e.setOptions({layoutScroll:!0}),zM.current=e}return zM.current},resetTransform:(e,t)=>{e.style.transform=t===void 0?`none`:t},checkIsScrollRoot:e=>window.getComputedStyle(e).position===`fixed`}),VM=(0,j.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:`never`});function HM(e=!0){let t=(0,j.useContext)(lw);if(t===null)return[!0,null];let{isPresent:n,onExitComplete:r,register:i}=t,a=(0,j.useId)();(0,j.useEffect)(()=>{if(e)return i(a)},[e]);let o=(0,j.useCallback)(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,o]:[!0]}var UM=(0,j.createContext)({strict:!1}),WM={animation:[`animate`,`variants`,`whileHover`,`whileTap`,`exit`,`whileInView`,`whileFocus`,`whileDrag`],exit:[`exit`],drag:[`drag`,`dragControls`],focus:[`whileFocus`],hover:[`whileHover`,`onHoverStart`,`onHoverEnd`],tap:[`whileTap`,`onTap`,`onTapStart`,`onTapCancel`],pan:[`onPan`,`onPanStart`,`onPanSessionStart`,`onPanEnd`],inView:[`whileInView`,`onViewportEnter`,`onViewportLeave`],layout:[`layout`,`layoutId`]},GM=!1;function KM(){if(GM)return;let e={};for(let t in WM)e[t]={isEnabled:e=>WM[t].some(t=>!!e[t])};oA(e),GM=!0}function qM(){return KM(),sA()}function JM(e){let t=qM();for(let n in e)t[n]={...t[n],...e[n]};oA(t)}var YM=new Set(`animate.exit.variants.initial.style.values.variants.transition.transformTemplate.custom.inherit.onBeforeLayoutMeasure.onAnimationStart.onAnimationComplete.onUpdate.onDragStart.onDrag.onDragEnd.onMeasureDragConstraints.onDirectionLock.onDragTransitionEnd._dragX._dragY.onHoverStart.onHoverEnd.onViewportEnter.onViewportLeave.globalTapTarget.propagate.ignoreStrict.viewport`.split(`.`));function XM(e){return e.startsWith(`while`)||e.startsWith(`drag`)&&e!==`draggable`||e.startsWith(`layout`)||e.startsWith(`onTap`)||e.startsWith(`onPan`)||e.startsWith(`onLayout`)||YM.has(e)}var ZM=r({default:()=>QM}),QM,$M=n((()=>{throw QM={},Error(`Could not resolve "@emotion/is-prop-valid" imported by "framer-motion". Is it installed?`)})),eN=e=>!XM(e);function tN(e){typeof e==`function`&&(eN=t=>t.startsWith(`on`)?!XM(t):e(t))}try{tN(($M(),t(ZM)).default)}catch{}function nN(e,t,n){let r={};for(let i in e)i===`values`&&typeof e.values==`object`||wO(e[i])||(eN(i)||n===!0&&XM(i)||!t&&!XM(i)||e.draggable&&i.startsWith(`onDrag`))&&(r[i]=e[i]);return r}var rN=(0,j.createContext)({});function iN(e,t){if(Zk(e)){let{initial:t,animate:n}=e;return{initial:t===!1||Jk(t)?t:void 0,animate:Jk(n)?n:void 0}}return e.inherit===!1?{}:t}function aN(e){let{initial:t,animate:n}=iN(e,(0,j.useContext)(rN));return(0,j.useMemo)(()=>({initial:t,animate:n}),[oN(t),oN(n)])}function oN(e){return Array.isArray(e)?e.join(` `):e}var sN=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function cN(e,t,n){for(let r in t)!wO(t[r])&&!VA(r,n)&&(e[r]=t[r])}function lN({transformTemplate:e},t){return(0,j.useMemo)(()=>{let n=sN();return FA(n,t,e),Object.assign({},n.vars,n.style)},[t])}function uN(e,t){let n=e.style||{},r={};return cN(r,n,e),Object.assign(r,lN(e,t)),r}function dN(e,t){let n={},r=uN(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout=`none`,r.touchAction=e.drag===!0?`none`:`pan-${e.drag===`x`?`y`:`x`}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}var fN=()=>({...sN(),attrs:{}});function pN(e,t,n,r){let i=(0,j.useMemo)(()=>{let n=fN();return YA(n,t,ZA(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};cN(t,e.style,e),i.style={...t,...i.style}}return i}var mN=[`animate`,`circle`,`defs`,`desc`,`ellipse`,`g`,`image`,`line`,`filter`,`marker`,`mask`,`metadata`,`path`,`pattern`,`polygon`,`polyline`,`rect`,`stop`,`switch`,`symbol`,`svg`,`text`,`tspan`,`use`,`view`];function hN(e){return typeof e!=`string`||e.includes(`-`)?!1:!!(mN.indexOf(e)>-1||/[A-Z]/u.test(e))}function gN(e,t,n,{latestValues:r},i,a=!1,o){let s=(o??hN(e)?pN:dN)(t,r,i,e),c=nN(t,typeof e==`string`,a),l=e===j.Fragment?{}:{...c,...s,ref:n},{children:u}=t,d=(0,j.useMemo)(()=>wO(u)?u.get():u,[u]);return(0,j.createElement)(e,{...l,children:d})}function _N({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:vN(n,r,i,e),renderState:t()}}function vN(e,t,n,r){let i={},a=r(e,{});for(let e in a)i[e]=nM(a[e]);let{initial:o,animate:s}=e,c=Zk(e),l=Qk(e);t&&l&&!c&&e.inherit!==!1&&(o===void 0&&(o=t.initial),s===void 0&&(s=t.animate));let u=n?n.initial===!1:!1;u||=o===!1;let d=u?s:o;if(d&&typeof d!=`boolean`&&!qk(d)){let t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){let r=_O(e,t[n]);if(r){let{transitionEnd:e,transition:t,...n}=r;for(let e in n){let t=n[e];if(Array.isArray(t)){let e=u?t.length-1:0;t=t[e]}t!==null&&(i[e]=t)}for(let t in e)i[t]=e[t]}}}return i}var yN=e=>(t,n)=>{let r=(0,j.useContext)(rN),i=(0,j.useContext)(lw),a=()=>_N(e,t,r,i);return n?a():sw(a)},bN=yN({scrapeMotionValuesFromProps:HA,createRenderState:sN}),xN=yN({scrapeMotionValuesFromProps:$A,createRenderState:fN}),SN=Symbol.for(`motionComponentSymbol`);function CN(e,t,n){let r=(0,j.useRef)(n);(0,j.useInsertionEffect)(()=>{r.current=n});let i=(0,j.useRef)(null);return(0,j.useCallback)(n=>{n&&e.onMount?.(n),t&&(n?t.mount(n):t.unmount());let a=r.current;if(typeof a==`function`)if(n){let e=a(n);typeof e==`function`&&(i.current=e)}else i.current?(i.current(),i.current=null):a(n);else a&&(a.current=n)},[t])}var wN=(0,j.createContext)({});function TN(e){return e&&typeof e==`object`&&Object.prototype.hasOwnProperty.call(e,`current`)}function EN(e,t,n,r,i,a){let{visualElement:o}=(0,j.useContext)(rN),s=(0,j.useContext)(UM),c=(0,j.useContext)(lw),l=(0,j.useContext)(VM),u=l.reducedMotion,d=l.skipAnimations,f=(0,j.useRef)(null),p=(0,j.useRef)(!1);r||=s.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:o,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:u,skipAnimations:d,isSVG:a}),p.current&&f.current&&(f.current.manuallyAnimateOnMount=!0));let m=f.current,h=(0,j.useContext)(wN);m&&!m.projection&&i&&(m.type===`html`||m.type===`svg`)&&DN(f.current,n,i,h);let g=(0,j.useRef)(!1);(0,j.useInsertionEffect)(()=>{m&&g.current&&m.update(n,c)});let _=n[OO],v=(0,j.useRef)(!!_&&typeof window<`u`&&!window.MotionHandoffIsComplete?.(_)&&window.MotionHasOptimisedAnimation?.(_));return cw(()=>{p.current=!0,m&&(g.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),v.current&&m.animationState&&m.animationState.animateChanges())}),(0,j.useEffect)(()=>{m&&(!v.current&&m.animationState&&m.animationState.animateChanges(),v.current&&=(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(_)}),!1),m.enteringChildren=void 0)}),m}function DN(e,t,n,r){let{layoutId:i,layout:a,drag:o,dragConstraints:s,layoutScroll:c,layoutRoot:l,layoutAnchor:u,layoutCrossfade:d}=t;e.projection=new n(e.latestValues,t[`data-framer-portal-id`]?void 0:ON(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||s&&TN(s),visualElement:e,animationType:typeof a==`string`?a:`both`,initialPromotionConfig:r,crossfade:d,layoutScroll:c,layoutRoot:l,layoutAnchor:u})}function ON(e){if(e)return e.options.allowProjection===!1?ON(e.parent):e.projection}var $=a();function kN(e,{forwardMotionProps:t=!1,type:n}={},r,i){r&&JM(r);let a=n?n===`svg`:hN(e),o=a?xN:bN;function s(n,s){let c,l={...(0,j.useContext)(VM),...n,layoutId:AN(n)},{isStatic:u}=l,d=aN(n),f=o(n,u);if(!u&&typeof window<`u`){jN(l,r);let t=MN(l);c=t.MeasureLayout,d.visualElement=EN(e,f,l,i,t.ProjectionNode,a)}return(0,$.jsxs)(rN.Provider,{value:d,children:[c&&d.visualElement?(0,$.jsx)(c,{visualElement:d.visualElement,...l}):null,gN(e,n,CN(f,d.visualElement,s),f,u,t,a)]})}s.displayName=`motion.${typeof e==`string`?e:`create(${e.displayName??e.name??``})`}`;let c=(0,j.forwardRef)(s);return c[SN]=e,c}function AN({layoutId:e}){let t=(0,j.useContext)(ow).id;return t&&e!==void 0?t+`-`+e:e}function jN(e,t){(0,j.useContext)(UM).strict}function MN(e){let{drag:t,layout:n}=qM();if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function NN(e,t){if(typeof Proxy>`u`)return kN;let n=new Map,r=(n,r)=>kN(n,r,e,t);return new Proxy((e,t)=>r(e,t),{get:(i,a)=>a===`create`?r:(n.has(a)||n.set(a,kN(a,void 0,e,t)),n.get(a))})}var PN=(e,t)=>t.isSVG??hN(e)?new ej(t):new WA(t,{allowProjection:e!==j.Fragment}),FN=class extends uA{constructor(e){super(e),e.animationState||=sj(e)}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();qk(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}},IN=0,LN={animation:{Feature:FN},exit:{Feature:class extends uA{constructor(){super(...arguments),this.id=IN++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;if(e&&n===!1){if(this.isExitComplete){let{initial:e,custom:t}=this.node.getProps();if(typeof e==`string`||typeof e==`object`&&e&&!Array.isArray(e)){let n=vO(this.node,e,t);if(n){let{transition:e,transitionEnd:t,...r}=n;for(let e in r)this.node.getValue(e)?.jump(r[e])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive(`exit`,!1);this.isExitComplete=!1;return}let r=this.node.animationState.setActive(`exit`,!e);t&&!e&&r.then(()=>{this.isExitComplete=!0,t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}}};function RN(e){return{point:{x:e.pageX,y:e.pageY}}}var zN=e=>t=>fk(t)&&e(t,RN(t));function BN(e,t,n,r){return Qj(e,t,zN(n),r)}var VN=({current:e})=>e?e.ownerDocument.defaultView:null,HN=(e,t)=>Math.abs(e-t);function UN(e,t){let n=HN(e.x,t.x),r=HN(e.y,t.y);return Math.sqrt(n**2+r**2)}var WN=new Set([`auto`,`scroll`]),GN=class{constructor(e,t,{transformPagePoint:n,contextWindow:r=window,dragSnapToOrigin:i=!1,distanceThreshold:a=3,element:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=KN(this.lastRawMoveEventInfo,this.transformPagePoint));let e=JN(this.lastMoveEventInfo,this.history),t=this.startEvent!==null,n=UN(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!n)return;let{point:r}=e,{timestamp:i}=eT;this.history.push({...r,timestamp:i});let{onStart:a,onMove:o}=this.handlers;t||(a&&a(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastRawMoveEventInfo=t,this.lastMoveEventInfo=KN(t,this.transformPagePoint),Qw.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let a=JN(e.type===`pointercancel`?this.lastMoveEventInfo:KN(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,a),r&&r(e,a)},!fk(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=a,this.contextWindow=r||window;let s=KN(RN(e),this.transformPagePoint),{point:c}=s,{timestamp:l}=eT;this.history=[{...c,timestamp:l}];let{onSessionStart:u}=t;u&&u(e,JN(s,this.history)),this.removeListeners=yw(BN(this.contextWindow,`pointermove`,this.handlePointerMove),BN(this.contextWindow,`pointerup`,this.handlePointerUp),BN(this.contextWindow,`pointercancel`,this.handlePointerUp)),o&&this.startScrollTracking(o)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(WN.has(e.overflowX)||WN.has(e.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener(`scroll`,this.onElementScroll,{capture:!0}),window.addEventListener(`scroll`,this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener(`scroll`,this.onElementScroll,{capture:!0}),window.removeEventListener(`scroll`,this.onWindowScroll)}}handleScroll(e){let t=this.scrollPositions.get(e);if(!t)return;let n=e===window,r=n?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},i={x:r.x-t.x,y:r.y-t.y};i.x===0&&i.y===0||(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(e,r),Qw.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),$w(this.updatePoint)}};function KN(e,t){return t?{point:t(e.point)}:e}function qN(e,t){return{x:e.x-t.x,y:e.y-t.y}}function JN({point:e},t){return{point:e,delta:qN(e,XN(t)),offset:qN(e,YN(t)),velocity:ZN(t,.1)}}function YN(e){return e[0]}function XN(e){return e[e.length-1]}function ZN(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=XN(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Sw(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&i.timestamp-r.timestamp>Sw(t)*2&&(r=e[1]);let a=Cw(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};let o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function QN(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?$T(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?$T(n,e,r.max):Math.min(e,n)),e}function $N(e,t,n){return{min:t===void 0?void 0:e.min+t,max:n===void 0?void 0:e.max+n-(e.max-e.min)}}function eP(e,{top:t,left:n,bottom:r,right:i}){return{x:$N(e.x,n,i),y:$N(e.y,t,r)}}function tP(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function nP(e,t){return{x:tP(e.x,t.x),y:tP(e.y,t.y)}}function rP(e,t){let n=.5,r=vj(e),i=vj(t);return i>r?n=bw(t.min,t.max-r,e.min):r>i&&(n=bw(e.min,e.max-i,t.min)),fw(0,1,n)}function iP(e,t){let n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}var aP=.35;function oP(e=aP){return e===!1?e=0:e===!0&&(e=aP),{x:sP(e,`left`,`right`),y:sP(e,`top`,`bottom`)}}function sP(e,t,n){return{min:cP(e,t),max:cP(e,n)}}function cP(e,t){return typeof e==`number`?e:e[t]||0}var lP=new WeakMap,uP=class{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Gk(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){let{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;let i=e=>{t&&this.snapToCursor(RN(e).point),this.stopAnimation()},a=(e,t)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=sk(n),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Bj(e=>{let t=this.getAxisMotionValue(e).get()||0;if(OT.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];r&&(t=vj(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&Qw.update(()=>i(e,t),!1,!0),EO(this.visualElement,`transform`);let{animationState:a}=this.visualElement;a&&a.setActive(`whileDrag`,!0)},o=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:a}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:o}=t;if(r&&this.currentDirection===null){this.currentDirection=mP(o),this.currentDirection!==null&&i&&i(this.currentDirection);return}this.updateAxis(`x`,t.point,o),this.updateAxis(`y`,t.point,o),this.visualElement.render(),a&&Qw.update(()=>a(e,t),!1,!0)},s=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>{let{dragSnapToOrigin:e}=this.getProps();(e||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:l}=this.getProps();this.panSession=new GN(e,{onSessionStart:i,onStart:a,onMove:o,onSessionEnd:s,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,distanceThreshold:n,contextWindow:VN(this.visualElement),element:this.visualElement.current})}stop(e,t){let n=e||this.latestPointerEvent,r=t||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!r||!n)return;let{velocity:a}=r;this.startAnimation(a);let{onDragEnd:o}=this.getProps();o&&Qw.postRender(()=>o(n,r))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive(`whileDrag`,!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!pP(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=QN(a,this.constraints[e],this.elastic[e])),i.set(a)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;e&&TN(e)?this.constraints||=this.resolveRefConstraints():e&&n?this.constraints=eP(n.layoutBox,e):this.constraints=!1,this.elastic=oP(t),r!==this.constraints&&!TN(e)&&n&&this.constraints&&!this.hasMutatedConstraints&&Bj(e=>{this.constraints!==!1&&this.getAxisMotionValue(e)&&(this.constraints[e]=iP(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){let{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!TN(e))return!1;let n=e.current,{projection:r}=this.visualElement;if(!r||!r.layout)return!1;r.root&&(r.root.scroll=void 0,r.root.updateScroll());let i=jA(n,r.root,this.visualElement.getTransformPagePoint()),a=nP(r.layout.layoutBox,i);if(t){let e=t(fA(a));this.hasMutatedConstraints=!!e,e&&(a=dA(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),s=this.constraints||{},c=Bj(o=>{if(!pP(o,t,this.currentDirection))return;let c=s&&s[o]||{};(a===!0||a===o)&&(c={min:0,max:0});let l=r?200:1e6,u=r?40:1e7,d={type:`inertia`,velocity:n?e[o]:0,bounceStiffness:l,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...i,...c};return this.startAxisValueAnimation(o,d)});return Promise.all(c).then(o)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return EO(this.visualElement,e),n.start(fO(e,n,0,t,this.visualElement,!1))}stopAnimation(){Bj(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`;return this.visualElement.getProps()[t]||this.visualElement.getValue(e,this.visualElement.latestValues[e]??0)}snapToCursor(e){Bj(t=>{let{drag:n}=this.getProps();if(!pP(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:a}=r.layout.layoutBox[t],o=i.get()||0;i.set(e[t]-$T(n,a,.5)+o)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!TN(t)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};Bj(e=>{let t=this.getAxisMotionValue(e);if(t&&this.constraints!==!1){let n=t.get();r[e]=rP({min:n,max:n},this.constraints[e])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},``):`none`,n.root&&n.root.updateScroll(),n.updateLayout(),this.constraints=!1,this.resolveConstraints(),Bj(t=>{if(!pP(t,e,null))return;let n=this.getAxisMotionValue(t),{min:i,max:a}=this.constraints[t];n.set($T(i,a,r[t]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;lP.set(this.visualElement,this);let e=this.visualElement.current,t=BN(e,`pointerdown`,t=>{let{drag:n,dragListener:r=!0}=this.getProps(),i=t.target,a=i!==e&&gk(i);n&&r&&!a&&this.start(t)}),n,r=()=>{let{dragConstraints:t}=this.getProps();TN(t)&&t.current&&(this.constraints=this.resolveRefConstraints(),n||=fP(e,t.current,()=>this.scalePositionWithinConstraints()))},{projection:i}=this.visualElement,a=i.addEventListener(`measure`,r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),Qw.read(r);let o=Qj(window,`resize`,()=>this.scalePositionWithinConstraints()),s=i.addEventListener(`didUpdate`,(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(Bj(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())}));return()=>{o(),t(),a(),s&&s(),n&&n()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:a=aP,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:a,dragMomentum:o}}};function dP(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function fP(e,t,n){let r=Rk(e,dP(n)),i=Rk(t,dP(n));return()=>{r(),i()}}function pP(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function mP(e,t=10){let n=null;return Math.abs(e.y)>t?n=`y`:Math.abs(e.x)>t&&(n=`x`),n}var hP=class extends uA{constructor(e){super(e),this.removeGroupControls=vw,this.removeListeners=vw,this.controls=new uP(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||vw}update(){let{dragControls:e}=this.node.getProps(),{dragControls:t}=this.node.prevProps||{};e!==t&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},gP=e=>(t,n)=>{e&&Qw.update(()=>e(t,n),!1,!0)},_P=class extends uA{constructor(){super(...arguments),this.removePointerDownListener=vw}onPointerDown(e){this.session=new GN(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:VN(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:gP(e),onStart:gP(t),onMove:gP(n),onEnd:(e,t)=>{delete this.session,r&&Qw.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=BN(this.node.current,`pointerdown`,e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}},vP=!1,yP=class extends j.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),vP&&i.root.didUpdate(),i.addEventListener(`animationComplete`,()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),iM.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,{projection:a}=n;return a?(a.isPresent=i,e.layoutDependency!==t&&a.setOptions({...a.options,layoutDependency:t}),vP=!0,r||e.layoutDependency!==t||t===void 0||e.isPresent!==i?a.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?a.promote():a.relegate()||Qw.postRender(()=>{let e=a.getStack();(!e||!e.members.length)&&this.safeToRemove()})),null):null}componentDidUpdate(){let{visualElement:e,layoutAnchor:t}=this.props,{projection:n}=e;n&&(n.options.layoutAnchor=t,n.root.didUpdate(),rk.postRender(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;vP=!0,r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}};function bP(e){let[t,n]=HM(),r=(0,j.useContext)(ow);return(0,$.jsx)(yP,{...e,layoutGroup:r,switchLayoutGroup:(0,j.useContext)(wN),isPresent:t,safeToRemove:n})}var xP={pan:{Feature:_P},drag:{Feature:hP,ProjectionNode:BM,MeasureLayout:bP}};function SP(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive(`whileHover`,n===`Start`);let i=r[`onHover`+n];i&&Qw.postRender(()=>i(t,RN(t)))}var CP=class extends uA{mount(){let{current:e}=this.node;e&&(this.unmount=uk(e,(e,t)=>(SP(this.node,t,`Start`),e=>SP(this.node,e,`End`))))}unmount(){}},wP=class extends uA{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(`:focus-visible`)}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive(`whileFocus`,!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive(`whileFocus`,!1),this.isActive=!1)}mount(){this.unmount=yw(Qj(this.node.current,`focus`,()=>this.onFocus()),Qj(this.node.current,`blur`,()=>this.onBlur()))}unmount(){}};function TP(e,t,n){let{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive(`whileTap`,n===`Start`);let i=r[`onTap`+(n===`End`?``:n)];i&&Qw.postRender(()=>i(t,RN(t)))}var EP=class extends uA{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:n}=this.node.props;this.unmount=Ck(e,(e,t)=>(TP(this.node,t,`Start`),(e,{success:t})=>TP(this.node,e,t?`End`:`Cancel`)),{useGlobalTarget:t,stopPropagation:n?.tap===!1})}unmount(){}},DP=new WeakMap,OP=new WeakMap,kP=e=>{let t=DP.get(e.target);t&&t(e)},AP=e=>{e.forEach(kP)};function jP({root:e,...t}){let n=e||document;OP.has(n)||OP.set(n,{});let r=OP.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(AP,{root:e,...t})),r[i]}function MP(e,t,n){let r=jP(t);return DP.set(e,n),r.observe(e),()=>{DP.delete(e),r.unobserve(e)}}var NP={some:0,all:1},PP=class extends uA{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();let{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r=`some`,once:i}=e,a={root:t?t.current:void 0,rootMargin:n,threshold:typeof r==`number`?r:NP[r]},o=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,i&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive(`whileInView`,t);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),a=t?n:r;a&&a(e)};this.stopObserver=MP(this.node.current,a,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>`u`)return;let{props:e,prevProps:t}=this.node;[`amount`,`margin`,`root`].some(FP(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}};function FP({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}var IP={inView:{Feature:PP},tap:{Feature:EP},focus:{Feature:wP},hover:{Feature:CP}},LP={layout:{ProjectionNode:BM,MeasureLayout:bP}},RP=NN({...LN,...IP,...xP,...LP},PN),zP=new Map,BP=e=>{let t=zP.get(e);return t||(t=RP.create(e),zP.set(e,t)),t},VP=(0,j.memo)(({children:e,as:t=`p`,className:n,duration:r=2,spread:i=2})=>{let a=BP(t),o=(0,j.useMemo)(()=>(e?.length??0)*i,[e,i]);return(0,$.jsx)(a,{animate:{backgroundPosition:`0% center`},className:y(`relative inline-block bg-[length:250%_100%,auto] bg-clip-text text-transparent`,`[--bg:linear-gradient(90deg,#0000_calc(50%-var(--spread)),var(--color-background),#0000_calc(50%+var(--spread)))] [background-repeat:no-repeat,padding-box]`,n),initial:{backgroundPosition:`100% center`},style:{"--spread":`${o}px`,backgroundImage:`var(--bg), linear-gradient(var(--color-muted-foreground), var(--color-muted-foreground))`},transition:{duration:r,ease:`linear`,repeat:1/0},children:e})}),HP=(0,j.createContext)(null),UP=()=>{let e=(0,j.useContext)(HP);if(!e)throw Error(`Reasoning components must be used within Reasoning`);return e},WP=1e3,GP=1e3,KP=(0,j.memo)(({className:e,isStreaming:t=!1,open:n,defaultOpen:r,onOpenChange:i,duration:a,children:o,...s})=>{let c=r??t,l=r===!1,[u,d]=br({defaultProp:c,onChange:i,prop:n}),[f,p]=br({defaultProp:void 0,prop:a}),m=(0,j.useRef)(t),[h,g]=(0,j.useState)(!1),_=(0,j.useRef)(null);(0,j.useEffect)(()=>{t?(m.current=!0,_.current===null&&(_.current=Date.now())):_.current!==null&&(p(Math.ceil((Date.now()-_.current)/GP)),_.current=null)},[t,p]),(0,j.useEffect)(()=>{t&&!u&&!l&&d(!0)},[t,u,d,l]),(0,j.useEffect)(()=>{if(m.current&&!t&&u&&!h){let e=setTimeout(()=>{d(!1),g(!0)},WP);return()=>clearTimeout(e)}},[t,u,d,h]);let v=(0,j.useCallback)(e=>{d(e)},[d]),b=(0,j.useMemo)(()=>({duration:f,isOpen:u,isStreaming:t,setIsOpen:d}),[f,u,t,d]);return(0,$.jsx)(HP.Provider,{value:b,children:(0,$.jsx)(ue,{className:y(`not-prose mb-4`,e),onOpenChange:v,open:u,...s,children:o})})}),qP=(e,t)=>e||t===0?(0,$.jsx)(VP,{duration:1,children:`Thinking...`}):t===void 0?(0,$.jsx)(`p`,{children:`Thought for a few seconds`}):(0,$.jsxs)(`p`,{children:[`Thought for `,t,` seconds`]}),JP=(0,j.memo)(({className:e,children:t,getThinkingMessage:n=qP,...r})=>{let{isStreaming:i,isOpen:a,duration:o}=UP();return(0,$.jsx)(le,{className:y(`flex w-full items-center gap-2 text-muted-foreground text-sm transition-colors hover:text-foreground`,e),...r,children:t??(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(Re,{className:`size-4`}),n(i,o),(0,$.jsx)(se,{className:y(`size-4 transition-transform`,a?`rotate-180`:`rotate-0`)})]})})}),YP={cjk:Ai,code:jp,math:Vb,mermaid:aw},XP=(0,j.memo)(({className:e,children:t,...n})=>(0,$.jsx)(O,{className:y(`mt-4 text-sm`,`data-[state=closed]:fade-out-0 data-[state=closed]:slide-out-to-top-2 data-[state=open]:slide-in-from-top-2 text-muted-foreground outline-none data-[state=closed]:animate-out data-[state=open]:animate-in`,e),...n,children:(0,$.jsx)(Rt,{plugins:YP,children:t})}));KP.displayName=`Reasoning`,JP.displayName=`ReasoningTrigger`,XP.displayName=`ReasoningContent`;var ZP=(0,j.createContext)(null),QP=()=>{let e=(0,j.useContext)(ZP);if(!e)throw Error(`ChainOfThought components must be used within ChainOfThought`);return e},$P=(0,j.memo)(({className:e,open:t,defaultOpen:n=!1,onOpenChange:r,children:i,...a})=>{let[o,s]=br({defaultProp:n,onChange:r,prop:t}),c=(0,j.useMemo)(()=>({isOpen:o,setIsOpen:s}),[o,s]);return(0,$.jsx)(ZP.Provider,{value:c,children:(0,$.jsx)(`div`,{className:y(`not-prose w-full space-y-4`,e),...a,children:i})})}),eF=(0,j.memo)(({className:e,children:t,...n})=>{let{isOpen:r,setIsOpen:i}=QP();return(0,$.jsx)(ue,{onOpenChange:i,open:r,children:(0,$.jsxs)(le,{className:y(`flex w-full items-center gap-2 text-muted-foreground text-sm transition-colors hover:text-foreground`,e),...n,children:[(0,$.jsx)(Re,{className:`size-4`}),(0,$.jsx)(`span`,{className:`flex-1 text-left`,children:t??`Chain of Thought`}),(0,$.jsx)(se,{className:y(`size-4 transition-transform`,r?`rotate-180`:`rotate-0`)})]})})}),tF={active:`text-foreground`,complete:`text-muted-foreground`,pending:`text-muted-foreground/50`},nF=(0,j.memo)(({className:e,icon:t=zn,label:n,description:r,status:i=`complete`,children:a,...o})=>(0,$.jsxs)(`div`,{className:y(`flex gap-2 text-sm`,tF[i],`fade-in-0 slide-in-from-top-2 animate-in`,e),...o,children:[(0,$.jsxs)(`div`,{className:`relative mt-0.5`,children:[(0,$.jsx)(t,{className:`size-4`}),(0,$.jsx)(`div`,{className:`absolute top-7 bottom-0 left-1/2 -mx-px w-px bg-border`})]}),(0,$.jsxs)(`div`,{className:`flex-1 space-y-2 overflow-hidden`,children:[(0,$.jsx)(`div`,{children:n}),r&&(0,$.jsx)(`div`,{className:`text-muted-foreground text-xs`,children:r}),a]})]})),rF=(0,j.memo)(({className:e,...t})=>(0,$.jsx)(`div`,{className:y(`flex flex-wrap items-center gap-2`,e),...t})),iF=(0,j.memo)(({className:e,children:t,...n})=>(0,$.jsx)(yt,{className:y(`gap-1 px-2 py-0.5 font-normal text-xs`,e),variant:`secondary`,...n,children:t})),aF=(0,j.memo)(({className:e,children:t,...n})=>{let{isOpen:r}=QP();return(0,$.jsx)(ue,{open:r,children:(0,$.jsx)(O,{className:y(`mt-2 space-y-3`,`data-[state=closed]:fade-out-0 data-[state=closed]:slide-out-to-top-2 data-[state=open]:slide-in-from-top-2 text-popover-foreground outline-none data-[state=closed]:animate-out data-[state=open]:animate-in`,e),...n,children:t})})}),oF=(0,j.memo)(({className:e,children:t,caption:n,...r})=>(0,$.jsxs)(`div`,{className:y(`mt-2 space-y-2`,e),...r,children:[(0,$.jsx)(`div`,{className:`relative flex max-h-[22rem] items-center justify-center overflow-hidden rounded-lg bg-muted p-3`,children:t}),n&&(0,$.jsx)(`p`,{className:`text-muted-foreground text-xs`,children:n})]}));$P.displayName=`ChainOfThought`,eF.displayName=`ChainOfThoughtHeader`,nF.displayName=`ChainOfThoughtStep`,rF.displayName=`ChainOfThoughtSearchResults`,iF.displayName=`ChainOfThoughtSearchResult`,aF.displayName=`ChainOfThoughtContent`,oF.displayName=`ChainOfThoughtImage`;var sF=Object.defineProperty,cF=Object.getOwnPropertyDescriptor,lF=Object.getOwnPropertyNames,uF=Object.prototype.hasOwnProperty,dF=(e,t)=>{let n={};for(var r in e)sF(n,r,{get:e[r],enumerable:!0});return t||sF(n,Symbol.toStringTag,{value:`Module`}),n},fF=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=lF(t),a=0,o=i.length,s;a<o;a++)s=i[a],!uF.call(e,s)&&s!==n&&sF(e,s,{get:(e=>t[e]).bind(null,s),enumerable:!(r=cF(t,s))||r.enumerable});return e},pF=(e,t,n)=>(fF(e,t,`default`),n&&fF(n,t,`default`)),mF=[{id:`abap`,name:`ABAP`,import:(()=>k(()=>import(`./abap-CLvhMVsD.js`),[]))},{id:`actionscript-3`,name:`ActionScript`,import:(()=>k(()=>import(`./actionscript-3--17pq3dv.js`),[]))},{id:`ada`,name:`Ada`,import:(()=>k(()=>import(`./ada-C5qYipkI.js`),[]))},{id:`angular-html`,name:`Angular HTML`,import:(()=>k(()=>import(`./angular-html-DrvEcI8G.js`).then(e=>e.n),__vite__mapDeps([174,1,175,176,177])))},{id:`angular-ts`,name:`Angular TypeScript`,import:(()=>k(()=>import(`./angular-ts-D8CUV3s9.js`),__vite__mapDeps([178,174,1,175,176,177,179])))},{id:`apache`,name:`Apache Conf`,import:(()=>k(()=>import(`./apache-U0d_L8uA.js`),[]))},{id:`apex`,name:`Apex`,import:(()=>k(()=>import(`./apex-VAyPSnFM.js`),[]))},{id:`apl`,name:`APL`,import:(()=>k(()=>import(`./apl-PcM4Dp7k.js`),__vite__mapDeps([180,176,1,175,177,181,182,183])))},{id:`applescript`,name:`AppleScript`,import:(()=>k(()=>import(`./applescript-CCn79oCD.js`),[]))},{id:`ara`,name:`Ara`,import:(()=>k(()=>import(`./ara-4CJ0cIlV.js`),[]))},{id:`asciidoc`,name:`AsciiDoc`,aliases:[`adoc`],import:(()=>k(()=>import(`./asciidoc-DE70LPWp.js`),[]))},{id:`asm`,name:`Assembly`,import:(()=>k(()=>import(`./asm-Cmm7eHzH.js`),[]))},{id:`astro`,name:`Astro`,import:(()=>k(()=>import(`./astro-DcteBnKj.js`),__vite__mapDeps([184,176,1,177,181,185,186,187])))},{id:`awk`,name:`AWK`,import:(()=>k(()=>import(`./awk-BWXHIvNe.js`),[]))},{id:`ballerina`,name:`Ballerina`,import:(()=>k(()=>import(`./ballerina-B7ZEbQpA.js`),[]))},{id:`bat`,name:`Batch File`,aliases:[`batch`],import:(()=>k(()=>import(`./bat-Bo4NYOV-.js`),[]))},{id:`beancount`,name:`Beancount`,import:(()=>k(()=>import(`./beancount-D-usSTwE.js`),[]))},{id:`berry`,name:`Berry`,aliases:[`be`],import:(()=>k(()=>import(`./berry-DKpUyyne.js`),[]))},{id:`bibtex`,name:`BibTeX`,import:(()=>k(()=>import(`./bibtex-Ci_nEsc7.js`),[]))},{id:`bicep`,name:`Bicep`,import:(()=>k(()=>import(`./bicep-CUHmPFLl.js`),[]))},{id:`bird2`,name:`BIRD2 Configuration`,aliases:[`bird`],import:(()=>k(()=>import(`./bird2-C6vDhewU.js`),[]))},{id:`blade`,name:`Blade`,import:(()=>k(()=>import(`./blade-6YnoPBU8.js`),__vite__mapDeps([188,176,1,189,175,177,181,190,182,183])))},{id:`bsl`,name:`1C (Enterprise)`,aliases:[`1c`],import:(()=>k(()=>import(`./bsl-BkkzgIyY.js`),__vite__mapDeps([191,192])))},{id:`c`,name:`C`,import:(()=>k(()=>import(`./c-Y1DAQKNJ.js`).then(e=>e.n),__vite__mapDeps([193,1])))},{id:`c3`,name:`C3`,import:(()=>k(()=>import(`./c3-BFHwR3_K.js`),[]))},{id:`cadence`,name:`Cadence`,aliases:[`cdc`],import:(()=>k(()=>import(`./cadence-CQ2zXKGN.js`),[]))},{id:`cairo`,name:`Cairo`,import:(()=>k(()=>import(`./cairo-DLTphjLi.js`),__vite__mapDeps([194,195])))},{id:`clarity`,name:`Clarity`,import:(()=>k(()=>import(`./clarity-SemFz856.js`),[]))},{id:`clojure`,name:`Clojure`,aliases:[`clj`],import:(()=>k(()=>import(`./clojure-DqKBuwfJ.js`),[]))},{id:`cmake`,name:`CMake`,import:(()=>k(()=>import(`./cmake-Bj61d0ZC.js`),[]))},{id:`cobol`,name:`COBOL`,import:(()=>k(()=>import(`./cobol-IOjEjPmG.js`),__vite__mapDeps([196,175,1,176,177,183])))},{id:`codeowners`,name:`CODEOWNERS`,import:(()=>k(()=>import(`./codeowners-C8r90Shi.js`),[]))},{id:`codeql`,name:`CodeQL`,aliases:[`ql`],import:(()=>k(()=>import(`./codeql-oeQT6MSM.js`),[]))},{id:`coffee`,name:`CoffeeScript`,aliases:[`coffeescript`],import:(()=>k(()=>import(`./coffee-B5TREocO.js`),__vite__mapDeps([197,177,1])))},{id:`common-lisp`,name:`Common Lisp`,aliases:[`lisp`],import:(()=>k(()=>import(`./common-lisp-Cv5bFMCO.js`),[]))},{id:`coq`,name:`Coq`,import:(()=>k(()=>import(`./coq-BrsZFFmf.js`),[]))},{id:`cpp`,name:`C++`,aliases:[`c++`],import:(()=>k(()=>import(`./cpp-C4ceAJBi.js`).then(e=>e.n),__vite__mapDeps([198,1,199,193,200,190])))},{id:`crystal`,name:`Crystal`,import:(()=>k(()=>import(`./crystal-CgtjlE18.js`),__vite__mapDeps([201,193,1,176,175,177,202,190])))},{id:`csharp`,name:`C#`,aliases:[`c#`,`cs`],import:(()=>k(()=>import(`./csharp-oqKa8noW.js`),[]))},{id:`css`,name:`CSS`,import:(()=>k(()=>import(`./css-Dflf0SUa.js`).then(e=>e.n),__vite__mapDeps([176,1])))},{id:`csv`,name:`CSV`,import:(()=>k(()=>import(`./csv-Dx-8-gkx.js`),[]))},{id:`cue`,name:`CUE`,import:(()=>k(()=>import(`./cue-CE9AQfxI.js`),[]))},{id:`cypher`,name:`Cypher`,aliases:[`cql`],import:(()=>k(()=>import(`./cypher-ClKdZ_lG.js`),[]))},{id:`d`,name:`D`,import:(()=>k(()=>import(`./d-qD-0Kul2.js`),[]))},{id:`dart`,name:`Dart`,import:(()=>k(()=>import(`./dart-CnvKMtbv.js`),[]))},{id:`dax`,name:`DAX`,import:(()=>k(()=>import(`./dax-BkyTk9wS.js`),[]))},{id:`desktop`,name:`Desktop`,import:(()=>k(()=>import(`./desktop-Dlh5hvp9.js`),[]))},{id:`diff`,name:`Diff`,import:(()=>k(()=>import(`./diff-woXpYk--.js`),[]))},{id:`docker`,name:`Dockerfile`,aliases:[`dockerfile`],import:(()=>k(()=>import(`./docker-IyjqRm3v.js`),[]))},{id:`dotenv`,name:`dotEnv`,import:(()=>k(()=>import(`./dotenv-_5a1GRtc.js`),[]))},{id:`dream-maker`,name:`Dream Maker`,import:(()=>k(()=>import(`./dream-maker-DW3nJb8Q.js`),[]))},{id:`edge`,name:`Edge`,import:(()=>k(()=>import(`./edge-DoVTVjme.js`),__vite__mapDeps([203,189,175,1,176,177,187])))},{id:`elixir`,name:`Elixir`,import:(()=>k(()=>import(`./elixir-CzgPtVDf.js`),__vite__mapDeps([204,175,1,176,177])))},{id:`elm`,name:`Elm`,import:(()=>k(()=>import(`./elm-Cm7sFdI1.js`),__vite__mapDeps([205,199,1,193])))},{id:`emacs-lisp`,name:`Emacs Lisp`,aliases:[`elisp`],import:(()=>k(()=>import(`./emacs-lisp-B4R74twV.js`),[]))},{id:`erb`,name:`ERB`,import:(()=>k(()=>import(`./erb-p0q977En.js`),__vite__mapDeps([206,175,1,176,177,207,193,198,199,200,190,208,209,186,187,210,211,202,182,183,212])))},{id:`erlang`,name:`Erlang`,aliases:[`erl`],import:(()=>k(()=>import(`./erlang-Cphh6RMH.js`),__vite__mapDeps([213,214])))},{id:`fennel`,name:`Fennel`,import:(()=>k(()=>import(`./fennel-DQxkIbk2.js`),[]))},{id:`fish`,name:`Fish`,import:(()=>k(()=>import(`./fish-BJitypiv.js`),[]))},{id:`fluent`,name:`Fluent`,aliases:[`ftl`],import:(()=>k(()=>import(`./fluent-C03EYrpw.js`),[]))},{id:`fortran-fixed-form`,name:`Fortran (Fixed Form)`,aliases:[`f`,`for`,`f77`],import:(()=>k(()=>import(`./fortran-fixed-form-DEKoE2YW.js`),__vite__mapDeps([215,216])))},{id:`fortran-free-form`,name:`Fortran (Free Form)`,aliases:[`f90`,`f95`,`f03`,`f08`,`f18`],import:(()=>k(()=>import(`./fortran-free-form-CYNrtFtB.js`),[]))},{id:`fsharp`,name:`F#`,aliases:[`f#`,`fs`],import:(()=>k(()=>import(`./fsharp-D13ZGOAj.js`),__vite__mapDeps([217,214])))},{id:`gdresource`,name:`GDResource`,aliases:[`tscn`,`tres`],import:(()=>k(()=>import(`./gdresource-C0sCabJj.js`),__vite__mapDeps([218,219,220])))},{id:`gdscript`,name:`GDScript`,aliases:[`gd`],import:(()=>k(()=>import(`./gdscript-Cp2uCuqX.js`),[]))},{id:`gdshader`,name:`GDShader`,import:(()=>k(()=>import(`./gdshader-CBce3t8t.js`),[]))},{id:`genie`,name:`Genie`,import:(()=>k(()=>import(`./genie-CV2tkWYe.js`),[]))},{id:`gherkin`,name:`Gherkin`,import:(()=>k(()=>import(`./gherkin-DExj1W_8.js`),[]))},{id:`git-commit`,name:`Git Commit Message`,import:(()=>k(()=>import(`./git-commit-BSykSTBG.js`),__vite__mapDeps([221,222])))},{id:`git-rebase`,name:`Git Rebase Message`,import:(()=>k(()=>import(`./git-rebase-D2tSwjJb.js`),__vite__mapDeps([223,202,1])))},{id:`gleam`,name:`Gleam`,import:(()=>k(()=>import(`./gleam-CSRkHgEL.js`),[]))},{id:`glimmer-js`,name:`Glimmer JS`,aliases:[`gjs`],import:(()=>k(()=>import(`./glimmer-js-JMWzPMQ2.js`),__vite__mapDeps([224,176,1,175,177,187])))},{id:`glimmer-ts`,name:`Glimmer TS`,aliases:[`gts`],import:(()=>k(()=>import(`./glimmer-ts-DG5GCT78.js`),__vite__mapDeps([225,176,1,175,177,187])))},{id:`glsl`,name:`GLSL`,import:(()=>k(()=>import(`./glsl-dHcuwXfH.js`).then(e=>e.n),__vite__mapDeps([199,1,193])))},{id:`gn`,name:`GN`,import:(()=>k(()=>import(`./gn-ilITqXS6.js`),[]))},{id:`gnuplot`,name:`Gnuplot`,import:(()=>k(()=>import(`./gnuplot-7GGW24-e.js`),[]))},{id:`go`,name:`Go`,import:(()=>k(()=>import(`./go-rLFTqkRN.js`),[]))},{id:`graphql`,name:`GraphQL`,aliases:[`gql`],import:(()=>k(()=>import(`./graphql-CdhToEZf.js`).then(e=>e.n),__vite__mapDeps([208,1,177,209,186,187])))},{id:`groovy`,name:`Groovy`,import:(()=>k(()=>import(`./groovy-CacY0gHj.js`),[]))},{id:`hack`,name:`Hack`,import:(()=>k(()=>import(`./hack-C4J_0T1S.js`),__vite__mapDeps([226,175,1,176,177,190])))},{id:`haml`,name:`Ruby Haml`,import:(()=>k(()=>import(`./haml-qGg_91I2.js`).then(e=>e.n),__vite__mapDeps([210,1,176,177])))},{id:`handlebars`,name:`Handlebars`,aliases:[`hbs`],import:(()=>k(()=>import(`./handlebars-BU7OV8YS.js`),__vite__mapDeps([227,176,1,175,177,212])))},{id:`haskell`,name:`Haskell`,aliases:[`hs`],import:(()=>k(()=>import(`./haskell-D8IpX4py.js`),[]))},{id:`haxe`,name:`Haxe`,import:(()=>k(()=>import(`./haxe-OTjmBuCE.js`),[]))},{id:`hcl`,name:`HashiCorp HCL`,import:(()=>k(()=>import(`./hcl-Dh228itO.js`),[]))},{id:`hjson`,name:`Hjson`,import:(()=>k(()=>import(`./hjson-CxZEssPk.js`),[]))},{id:`hlsl`,name:`HLSL`,import:(()=>k(()=>import(`./hlsl-Cvrh5tZx.js`),[]))},{id:`html`,name:`HTML`,import:(()=>k(()=>import(`./html-x4KE3xEi.js`).then(e=>e.n),__vite__mapDeps([175,1,176,177])))},{id:`html-derivative`,name:`HTML (Derivative)`,import:(()=>k(()=>import(`./html-derivative-CWPAmHEG.js`),__vite__mapDeps([189,175,1,176,177])))},{id:`http`,name:`HTTP`,import:(()=>k(()=>import(`./http-HvMG3K54.js`),__vite__mapDeps([228,208,1,177,209,186,187,181,202,182,183])))},{id:`hurl`,name:`Hurl`,import:(()=>k(()=>import(`./hurl-CLh1t2ES.js`),__vite__mapDeps([229,230,208,1,177,209,186,187,182,183])))},{id:`hxml`,name:`HXML`,import:(()=>k(()=>import(`./hxml-B0Qn7Nwc.js`),__vite__mapDeps([231,232])))},{id:`hy`,name:`Hy`,import:(()=>k(()=>import(`./hy-CZbG8q4J.js`),[]))},{id:`imba`,name:`Imba`,import:(()=>k(()=>import(`./imba-DsUTQ-LC.js`),[]))},{id:`ini`,name:`INI`,aliases:[`properties`],import:(()=>k(()=>import(`./ini-B5eOa1yu.js`),[]))},{id:`java`,name:`Java`,import:(()=>k(()=>import(`./java-BIlOlX09.js`).then(e=>e.n),__vite__mapDeps([183,1])))},{id:`javascript`,name:`JavaScript`,aliases:[`js`,`cjs`,`mjs`],import:(()=>k(()=>import(`./javascript-DywGHrES.js`).then(e=>e.n),__vite__mapDeps([177,1])))},{id:`jinja`,name:`Jinja`,import:(()=>k(()=>import(`./jinja-ISwn25cN.js`),__vite__mapDeps([233,175,1,176,177])))},{id:`jison`,name:`Jison`,import:(()=>k(()=>import(`./jison-D9Fg2JgN.js`),__vite__mapDeps([234,177,1])))},{id:`json`,name:`JSON`,import:(()=>k(()=>import(`./json-BbGuGINB.js`).then(e=>e.n),__vite__mapDeps([181,1])))},{id:`json5`,name:`JSON5`,import:(()=>k(()=>import(`./json5-BR5RXkoi.js`),[]))},{id:`jsonc`,name:`JSON with Comments`,import:(()=>k(()=>import(`./jsonc-CYpm1nAK.js`),[]))},{id:`jsonl`,name:`JSON Lines`,import:(()=>k(()=>import(`./jsonl-CmCQp5Yx.js`),[]))},{id:`jsonnet`,name:`Jsonnet`,import:(()=>k(()=>import(`./jsonnet-CJTPZ8u_.js`),[]))},{id:`jssm`,name:`JSSM`,aliases:[`fsl`],import:(()=>k(()=>import(`./jssm-DXw9l8Rf.js`),[]))},{id:`jsx`,name:`JSX`,import:(()=>k(()=>import(`./jsx-NH_i07l1.js`).then(e=>e.n),__vite__mapDeps([209,1])))},{id:`julia`,name:`Julia`,aliases:[`jl`],import:(()=>k(()=>import(`./julia-BRnC1exM.js`),__vite__mapDeps([235,198,1,199,193,200,190,177,195,236])))},{id:`just`,name:`Just`,import:(()=>k(()=>import(`./just-BWbKChh7.js`),__vite__mapDeps([237,177,1,238,176,175,190,182,183,195,207,193,198,199,200,208,209,186,187,210,211,202,212])))},{id:`kdl`,name:`KDL`,import:(()=>k(()=>import(`./kdl-CsD5j6eV.js`),[]))},{id:`kotlin`,name:`Kotlin`,aliases:[`kt`,`kts`],import:(()=>k(()=>import(`./kotlin-DhhofPvG.js`),[]))},{id:`kusto`,name:`Kusto`,aliases:[`kql`],import:(()=>k(()=>import(`./kusto-C7mF5XQf.js`),[]))},{id:`latex`,name:`LaTeX`,import:(()=>k(()=>import(`./latex-DoFV6f5B.js`),__vite__mapDeps([239,240,236,1])))},{id:`lean`,name:`Lean 4`,aliases:[`lean4`],import:(()=>k(()=>import(`./lean-CewbzKMR.js`),[]))},{id:`less`,name:`Less`,import:(()=>k(()=>import(`./less-DVTAwKKz.js`),[]))},{id:`liquid`,name:`Liquid`,import:(()=>k(()=>import(`./liquid-BGxpJKqJ.js`),__vite__mapDeps([241,176,1,175,177,181])))},{id:`llvm`,name:`LLVM IR`,import:(()=>k(()=>import(`./llvm-Cm23YOpf.js`),[]))},{id:`log`,name:`Log file`,import:(()=>k(()=>import(`./log-BNLmms1o.js`),[]))},{id:`logo`,name:`Logo`,import:(()=>k(()=>import(`./logo-Cluzi2Zq.js`),[]))},{id:`lua`,name:`Lua`,import:(()=>k(()=>import(`./lua-SpZ12qGF.js`).then(e=>e.n),__vite__mapDeps([211,1,193])))},{id:`luau`,name:`Luau`,import:(()=>k(()=>import(`./luau-FMPmPwt6.js`),[]))},{id:`make`,name:`Makefile`,aliases:[`makefile`],import:(()=>k(()=>import(`./make-Dixweg8N.js`),[]))},{id:`markdown`,name:`Markdown`,aliases:[`md`],import:(()=>k(()=>import(`./markdown-BYOwaDjH.js`),[]))},{id:`marko`,name:`Marko`,import:(()=>k(()=>import(`./marko-E8KxKzjy.js`),__vite__mapDeps([242,176,1,243,179,187])))},{id:`matlab`,name:`MATLAB`,import:(()=>k(()=>import(`./matlab-D7qyCx1q.js`),[]))},{id:`mdc`,name:`MDC`,import:(()=>k(()=>import(`./mdc-ytrN0-8H.js`),__vite__mapDeps([244,189,175,1,176,177,214,212])))},{id:`mdx`,name:`MDX`,import:(()=>k(()=>import(`./mdx-DQZ5AkYe.js`),[]))},{id:`mermaid`,name:`Mermaid`,aliases:[`mmd`],import:(()=>k(()=>import(`./mermaid-Bk4SNUv9.js`),[]))},{id:`mipsasm`,name:`MIPS Assembly`,aliases:[`mips`],import:(()=>k(()=>import(`./mipsasm-BMqwQI7S.js`),[]))},{id:`mojo`,name:`Mojo`,import:(()=>k(()=>import(`./mojo-BgCJLMeH.js`),[]))},{id:`moonbit`,name:`MoonBit`,aliases:[`mbt`,`mbti`],import:(()=>k(()=>import(`./moonbit-CaWjb8XO.js`),[]))},{id:`move`,name:`Move`,import:(()=>k(()=>import(`./move-B1IS1UjX.js`),[]))},{id:`narrat`,name:`Narrat Language`,aliases:[`nar`],import:(()=>k(()=>import(`./narrat-_X_XdTYD.js`),[]))},{id:`nextflow`,name:`Nextflow`,aliases:[`nf`],import:(()=>k(()=>import(`./nextflow-BJtWHP5T.js`),__vite__mapDeps([245,246])))},{id:`nextflow-groovy`,name:`Nextflow Groovy`,import:(()=>k(()=>import(`./nextflow-groovy-DJMQeKeT.js`),[]))},{id:`nginx`,name:`Nginx`,import:(()=>k(()=>import(`./nginx-CgHaWcsO.js`),__vite__mapDeps([247,211,1,193])))},{id:`nim`,name:`Nim`,import:(()=>k(()=>import(`./nim-xKCzf2o0.js`),__vite__mapDeps([248,193,1,176,199,175,177,214,182,183])))},{id:`nix`,name:`Nix`,import:(()=>k(()=>import(`./nix-IvuFDN5E.js`),[]))},{id:`nushell`,name:`nushell`,aliases:[`nu`],import:(()=>k(()=>import(`./nushell-DcLAeLz5.js`),[]))},{id:`objective-c`,name:`Objective-C`,aliases:[`objc`],import:(()=>k(()=>import(`./objective-c-D1A_Heim.js`),[]))},{id:`objective-cpp`,name:`Objective-C++`,import:(()=>k(()=>import(`./objective-cpp-BsSzOQcm.js`),[]))},{id:`ocaml`,name:`OCaml`,import:(()=>k(()=>import(`./ocaml-O90oeIOV.js`),[]))},{id:`odin`,name:`Odin`,import:(()=>k(()=>import(`./odin-B1RWQWA5.js`),[]))},{id:`openscad`,name:`OpenSCAD`,aliases:[`scad`],import:(()=>k(()=>import(`./openscad-BUDT5pXO.js`),[]))},{id:`pascal`,name:`Pascal`,import:(()=>k(()=>import(`./pascal-4ZHwLPI5.js`),[]))},{id:`perl`,name:`Perl`,import:(()=>k(()=>import(`./perl-CAUsHq6V.js`),__vite__mapDeps([238,176,1,175,177,190,182,183])))},{id:`php`,name:`PHP`,import:(()=>k(()=>import(`./php-Cn4rjz2P.js`),__vite__mapDeps([249,176,1,175,177,181,190,182,183])))},{id:`pkl`,name:`Pkl`,import:(()=>k(()=>import(`./pkl-ot-7Btpt.js`),[]))},{id:`plsql`,name:`PL/SQL`,import:(()=>k(()=>import(`./plsql-DGHpHOYJ.js`),[]))},{id:`po`,name:`Gettext PO`,aliases:[`pot`,`potx`],import:(()=>k(()=>import(`./po-BiJDBrnU.js`),[]))},{id:`polar`,name:`Polar`,import:(()=>k(()=>import(`./polar-C7UOKdEL.js`),[]))},{id:`postcss`,name:`PostCSS`,import:(()=>k(()=>import(`./postcss-BXeXVLqQ.js`),[]))},{id:`powerquery`,name:`PowerQuery`,import:(()=>k(()=>import(`./powerquery-DNMTfnFr.js`),[]))},{id:`powershell`,name:`PowerShell`,aliases:[`ps`,`ps1`],import:(()=>k(()=>import(`./powershell-DshXNtvi.js`),[]))},{id:`prisma`,name:`Prisma`,import:(()=>k(()=>import(`./prisma-BsRQq5mF.js`),[]))},{id:`prolog`,name:`Prolog`,import:(()=>k(()=>import(`./prolog-iXnhIJG7.js`),[]))},{id:`proto`,name:`Protocol Buffer 3`,aliases:[`protobuf`],import:(()=>k(()=>import(`./proto-DB4EqR-F.js`),[]))},{id:`pug`,name:`Pug`,aliases:[`jade`],import:(()=>k(()=>import(`./pug-DD9HHTGS.js`),__vite__mapDeps([250,176,1,175,177])))},{id:`puppet`,name:`Puppet`,import:(()=>k(()=>import(`./puppet-CDv2pdJW.js`),[]))},{id:`purescript`,name:`PureScript`,import:(()=>k(()=>import(`./purescript-9MfHhQsQ.js`),[]))},{id:`python`,name:`Python`,aliases:[`py`],import:(()=>k(()=>import(`./python-gzcpVVnB.js`),[]))},{id:`qml`,name:`QML`,import:(()=>k(()=>import(`./qml-DcW_sT3t.js`),__vite__mapDeps([251,177,1])))},{id:`qmldir`,name:`QML Directory`,import:(()=>k(()=>import(`./qmldir-DCQb3MpD.js`),[]))},{id:`qss`,name:`Qt Style Sheets`,import:(()=>k(()=>import(`./qss-Fe1Jh2GI.js`),[]))},{id:`r`,name:`R`,import:(()=>k(()=>import(`./r-B1OEipip.js`).then(e=>e.n),__vite__mapDeps([236,1])))},{id:`racket`,name:`Racket`,import:(()=>k(()=>import(`./racket-DcIDlBhZ.js`),[]))},{id:`raku`,name:`Raku`,aliases:[`perl6`],import:(()=>k(()=>import(`./raku-B3gFvitq.js`),[]))},{id:`razor`,name:`ASP.NET Razor`,import:(()=>k(()=>import(`./razor-30Cugjh2.js`),__vite__mapDeps([252,253,175,1,176,177])))},{id:`reg`,name:`Windows Registry Script`,import:(()=>k(()=>import(`./reg-CRGYupPL.js`),[]))},{id:`regexp`,name:`RegExp`,aliases:[`regex`],import:(()=>k(()=>import(`./regexp-zLCDTged.js`).then(e=>e.n),__vite__mapDeps([200,1])))},{id:`rel`,name:`Rel`,import:(()=>k(()=>import(`./rel-BtDbiS_P.js`),[]))},{id:`riscv`,name:`RISC-V`,import:(()=>k(()=>import(`./riscv-Ckw8ddFX.js`),[]))},{id:`ron`,name:`RON`,import:(()=>k(()=>import(`./ron-VUp2lXgN.js`),[]))},{id:`rosmsg`,name:`ROS Interface`,import:(()=>k(()=>import(`./rosmsg-CAekHB0j.js`),[]))},{id:`rst`,name:`reStructuredText`,import:(()=>k(()=>import(`./rst-BIOjc2k6.js`),__vite__mapDeps([254,255,198,1,199,193,200,190,189,175,176,177,195,207,208,209,186,187,210,211,202,182,183,212])))},{id:`ruby`,name:`Ruby`,aliases:[`rb`],import:(()=>k(()=>import(`./ruby-BA7kcl5p.js`),__vite__mapDeps([207,193,1,198,199,200,190,176,208,177,209,186,187,210,175,211,202,182,183,212])))},{id:`rust`,name:`Rust`,aliases:[`rs`],import:(()=>k(()=>import(`./rust-Cfkwpbl8.js`),[]))},{id:`sas`,name:`SAS`,import:(()=>k(()=>import(`./sas-BHVT2N5I.js`),__vite__mapDeps([256,190,1])))},{id:`sass`,name:`Sass`,import:(()=>k(()=>import(`./sass-DXrisJhu.js`),[]))},{id:`scala`,name:`Scala`,import:(()=>k(()=>import(`./scala-DKOlJaKm.js`),[]))},{id:`scheme`,name:`Scheme`,import:(()=>k(()=>import(`./scheme-DQCgrYNe.js`),[]))},{id:`scss`,name:`SCSS`,import:(()=>k(()=>import(`./scss-DdIrFDxD.js`).then(e=>e.n),__vite__mapDeps([179,1,176])))},{id:`sdbl`,name:`1C (Query)`,aliases:[`1c-query`],import:(()=>k(()=>import(`./sdbl-bTVj8UrX.js`),[]))},{id:`shaderlab`,name:`ShaderLab`,aliases:[`shader`],import:(()=>k(()=>import(`./shaderlab-TOUzSsQk.js`),__vite__mapDeps([257,258])))},{id:`shellscript`,name:`Shell`,aliases:[`bash`,`sh`,`shell`,`zsh`],import:(()=>k(()=>import(`./shellscript-IH5A6LQB.js`).then(e=>e.n),__vite__mapDeps([202,1])))},{id:`shellsession`,name:`Shell Session`,aliases:[`console`],import:(()=>k(()=>import(`./shellsession-BmAC8SMF.js`),__vite__mapDeps([259,202,1])))},{id:`smalltalk`,name:`Smalltalk`,import:(()=>k(()=>import(`./smalltalk-B16xEiuN.js`),[]))},{id:`solidity`,name:`Solidity`,import:(()=>k(()=>import(`./solidity-CKzVLygQ.js`),[]))},{id:`soy`,name:`Closure Templates`,aliases:[`closure-templates`],import:(()=>k(()=>import(`./soy-B5vCsGAN.js`),__vite__mapDeps([260,175,1,176,177])))},{id:`sparql`,name:`SPARQL`,import:(()=>k(()=>import(`./sparql-D_iOobhT.js`),__vite__mapDeps([261,262])))},{id:`splunk`,name:`Splunk Query Language`,aliases:[`spl`],import:(()=>k(()=>import(`./splunk-BC2Px7Mm.js`),[]))},{id:`sql`,name:`SQL`,import:(()=>k(()=>import(`./sql-DCFvu5RM.js`).then(e=>e.n),__vite__mapDeps([190,1])))},{id:`ssh-config`,name:`SSH Config`,import:(()=>k(()=>import(`./ssh-config-BgfXC-Er.js`),[]))},{id:`stata`,name:`Stata`,import:(()=>k(()=>import(`./stata-h02h04e7.js`),__vite__mapDeps([263,190,1])))},{id:`stylus`,name:`Stylus`,aliases:[`styl`],import:(()=>k(()=>import(`./stylus-B6D30XZt.js`),[]))},{id:`surrealql`,name:`SurrealQL`,aliases:[`surql`],import:(()=>k(()=>import(`./surrealql-DxccxuMd.js`),__vite__mapDeps([264,177,1])))},{id:`svelte`,name:`Svelte`,import:(()=>k(()=>import(`./svelte-CsxBlEum.js`),__vite__mapDeps([265,176,1,177,185,187])))},{id:`swift`,name:`Swift`,import:(()=>k(()=>import(`./swift-DonLKvLd.js`),[]))},{id:`system-verilog`,name:`SystemVerilog`,import:(()=>k(()=>import(`./system-verilog-DJ5XKQeo.js`),[]))},{id:`systemd`,name:`Systemd Units`,import:(()=>k(()=>import(`./systemd-BxMlprV5.js`),[]))},{id:`talonscript`,name:`TalonScript`,aliases:[`talon`],import:(()=>k(()=>import(`./talonscript-CohzipZa.js`),[]))},{id:`tasl`,name:`Tasl`,import:(()=>k(()=>import(`./tasl-DMoTqEGO.js`),[]))},{id:`tcl`,name:`Tcl`,import:(()=>k(()=>import(`./tcl-CZd0xW_V.js`),[]))},{id:`templ`,name:`Templ`,import:(()=>k(()=>import(`./templ-DmkwoHql.js`),__vite__mapDeps([266,176,1,267,177])))},{id:`terraform`,name:`Terraform`,aliases:[`tf`,`tfvars`],import:(()=>k(()=>import(`./terraform-DswuEJGm.js`),[]))},{id:`tex`,name:`TeX`,import:(()=>k(()=>import(`./tex-B0f_hYr8.js`),__vite__mapDeps([240,236,1])))},{id:`toml`,name:`TOML`,import:(()=>k(()=>import(`./toml-CcmNWLt0.js`),[]))},{id:`ts-tags`,name:`TypeScript with Tags`,aliases:[`lit`],import:(()=>k(()=>import(`./ts-tags-CTs7_HT0.js`),__vite__mapDeps([268,176,1,199,193,175,177,190,187,182,183])))},{id:`tsv`,name:`TSV`,import:(()=>k(()=>import(`./tsv-sltzmVWM.js`),[]))},{id:`tsx`,name:`TSX`,import:(()=>k(()=>import(`./tsx-0GViXbh-.js`).then(e=>e.n),__vite__mapDeps([186,1])))},{id:`turtle`,name:`Turtle`,import:(()=>k(()=>import(`./turtle-ByJddavk.js`),[]))},{id:`twig`,name:`Twig`,import:(()=>k(()=>import(`./twig-DgtEA5Er.js`),__vite__mapDeps([269,176,1,177,249,175,181,190,182,183,195,207,193,198,199,200,208,209,186,187,210,211,202,212,179])))},{id:`typescript`,name:`TypeScript`,aliases:[`ts`,`cts`,`mts`],import:(()=>k(()=>import(`./typescript-C03X-V26.js`).then(e=>e.n),__vite__mapDeps([187,1])))},{id:`typespec`,name:`TypeSpec`,aliases:[`tsp`],import:(()=>k(()=>import(`./typespec-BRdr0IET.js`),[]))},{id:`typst`,name:`Typst`,aliases:[`typ`],import:(()=>k(()=>import(`./typst-DI99ib-x.js`),[]))},{id:`v`,name:`V`,import:(()=>k(()=>import(`./v-DETTlOr0.js`),[]))},{id:`vala`,name:`Vala`,import:(()=>k(()=>import(`./vala-zf12oZj6.js`),[]))},{id:`vb`,name:`Visual Basic`,aliases:[`cmd`],import:(()=>k(()=>import(`./vb-Djn5o6TS.js`),[]))},{id:`verilog`,name:`Verilog`,import:(()=>k(()=>import(`./verilog-CiiDBU1e.js`),[]))},{id:`vhdl`,name:`VHDL`,import:(()=>k(()=>import(`./vhdl-BroJfC0k.js`),[]))},{id:`viml`,name:`Vim Script`,aliases:[`vim`,`vimscript`],import:(()=>k(()=>import(`./viml-DvXPmvsu.js`),[]))},{id:`vue`,name:`Vue`,import:(()=>k(()=>import(`./vue-CUpaeZ-j.js`),__vite__mapDeps([270,176,1,189,175,177,181,187])))},{id:`vue-html`,name:`Vue HTML`,import:(()=>k(()=>import(`./vue-html-DQch_7VQ.js`),__vite__mapDeps([271,177,1])))},{id:`vue-vine`,name:`Vue Vine`,import:(()=>k(()=>import(`./vue-vine-BCPDker4.js`),__vite__mapDeps([272,176,1,177,243,185,179,273])))},{id:`vyper`,name:`Vyper`,aliases:[`vy`],import:(()=>k(()=>import(`./vyper-CgoNMtux.js`),[]))},{id:`wasm`,name:`WebAssembly`,import:(()=>k(()=>import(`./wasm-ByWQv1Qj.js`),[]))},{id:`wenyan`,name:`Wenyan`,aliases:[`文言`],import:(()=>k(()=>import(`./wenyan-C8pVoKbM.js`),[]))},{id:`wgsl`,name:`WGSL`,import:(()=>k(()=>import(`./wgsl-BsKzXJz4.js`),[]))},{id:`wikitext`,name:`Wikitext`,aliases:[`mediawiki`,`wiki`],import:(()=>k(()=>import(`./wikitext-ClFFjSW2.js`),[]))},{id:`wit`,name:`WebAssembly Interface Types`,import:(()=>k(()=>import(`./wit-DdvCle-K.js`),[]))},{id:`wolfram`,name:`Wolfram`,aliases:[`wl`],import:(()=>k(()=>import(`./wolfram-DLL8P-h_.js`),[]))},{id:`xml`,name:`XML`,import:(()=>k(()=>import(`./xml-DI0syHFL.js`).then(e=>e.n),__vite__mapDeps([182,1,183])))},{id:`xsl`,name:`XSL`,import:(()=>k(()=>import(`./xsl-BFS2wyMt.js`),__vite__mapDeps([274,182,1,183])))},{id:`yaml`,name:`YAML`,aliases:[`yml`],import:(()=>k(()=>import(`./yaml-DtN9Ue11.js`).then(e=>e.n),__vite__mapDeps([212,1])))},{id:`zenscript`,name:`ZenScript`,import:(()=>k(()=>import(`./zenscript-BnlCZFoB.js`),[]))},{id:`zig`,name:`Zig`,import:(()=>k(()=>import(`./zig-CMLA9XwU.js`),[]))}],hF=Object.fromEntries(mF.map(e=>[e.id,e.import])),gF=Object.fromEntries(mF.flatMap(e=>e.aliases?.map(t=>[t,e.import])||[])),_F={...hF,...gF},vF=Object.fromEntries([{id:`andromeeda`,displayName:`Andromeeda`,type:`dark`,import:(()=>k(()=>import(`./andromeeda-vGVdxbeo.js`),[]))},{id:`aurora-x`,displayName:`Aurora X`,type:`dark`,import:(()=>k(()=>import(`./aurora-x-CDeNXAV0.js`),[]))},{id:`ayu-dark`,displayName:`Ayu Dark`,type:`dark`,import:(()=>k(()=>import(`./ayu-dark-DluEY0Gj.js`),[]))},{id:`ayu-light`,displayName:`Ayu Light`,type:`light`,import:(()=>k(()=>import(`./ayu-light-C3h-C4tm.js`),[]))},{id:`ayu-mirage`,displayName:`Ayu Mirage`,type:`dark`,import:(()=>k(()=>import(`./ayu-mirage-Bqwy1Gya.js`),[]))},{id:`catppuccin-frappe`,displayName:`Catppuccin Frappé`,type:`dark`,import:(()=>k(()=>import(`./catppuccin-frappe-3VR1Za6u.js`),[]))},{id:`catppuccin-latte`,displayName:`Catppuccin Latte`,type:`light`,import:(()=>k(()=>import(`./catppuccin-latte-DwIHMF0Q.js`),[]))},{id:`catppuccin-macchiato`,displayName:`Catppuccin Macchiato`,type:`dark`,import:(()=>k(()=>import(`./catppuccin-macchiato-DYnBP6_5.js`),[]))},{id:`catppuccin-mocha`,displayName:`Catppuccin Mocha`,type:`dark`,import:(()=>k(()=>import(`./catppuccin-mocha-DYhrFGRu.js`),[]))},{id:`dark-plus`,displayName:`Dark Plus`,type:`dark`,import:(()=>k(()=>import(`./dark-plus-Cs2F2srj.js`),[]))},{id:`dracula`,displayName:`Dracula Theme`,type:`dark`,import:(()=>k(()=>import(`./dracula-BHWKrbxM.js`),[]))},{id:`dracula-soft`,displayName:`Dracula Theme Soft`,type:`dark`,import:(()=>k(()=>import(`./dracula-soft-5eyTD99u.js`),[]))},{id:`everforest-dark`,displayName:`Everforest Dark`,type:`dark`,import:(()=>k(()=>import(`./everforest-dark-sB-x3p7T.js`),[]))},{id:`everforest-light`,displayName:`Everforest Light`,type:`light`,import:(()=>k(()=>import(`./everforest-light-Df2xbC6M.js`),[]))},{id:`github-dark`,displayName:`GitHub Dark`,type:`dark`,import:(()=>k(()=>import(`./github-dark-C-LZuMrd.js`),[]))},{id:`github-dark-default`,displayName:`GitHub Dark Default`,type:`dark`,import:(()=>k(()=>import(`./github-dark-default-DXG-b-1a.js`),[]))},{id:`github-dark-dimmed`,displayName:`GitHub Dark Dimmed`,type:`dark`,import:(()=>k(()=>import(`./github-dark-dimmed-Bx1FflLF.js`),[]))},{id:`github-dark-high-contrast`,displayName:`GitHub Dark High Contrast`,type:`dark`,import:(()=>k(()=>import(`./github-dark-high-contrast-B_tTalzw.js`),[]))},{id:`github-light`,displayName:`GitHub Light`,type:`light`,import:(()=>k(()=>import(`./github-light-EUqPIrTm.js`),[]))},{id:`github-light-default`,displayName:`GitHub Light Default`,type:`light`,import:(()=>k(()=>import(`./github-light-default-BXViO-2h.js`),[]))},{id:`github-light-high-contrast`,displayName:`GitHub Light High Contrast`,type:`light`,import:(()=>k(()=>import(`./github-light-high-contrast-B68TUdTA.js`),[]))},{id:`gruvbox-dark-hard`,displayName:`Gruvbox Dark Hard`,type:`dark`,import:(()=>k(()=>import(`./gruvbox-dark-hard-C820rvS2.js`),[]))},{id:`gruvbox-dark-medium`,displayName:`Gruvbox Dark Medium`,type:`dark`,import:(()=>k(()=>import(`./gruvbox-dark-medium-BPjhmG05.js`),[]))},{id:`gruvbox-dark-soft`,displayName:`Gruvbox Dark Soft`,type:`dark`,import:(()=>k(()=>import(`./gruvbox-dark-soft-MrdJrrXF.js`),[]))},{id:`gruvbox-light-hard`,displayName:`Gruvbox Light Hard`,type:`light`,import:(()=>k(()=>import(`./gruvbox-light-hard-BC_s9l72.js`),[]))},{id:`gruvbox-light-medium`,displayName:`Gruvbox Light Medium`,type:`light`,import:(()=>k(()=>import(`./gruvbox-light-medium-BAWPOn9u.js`),[]))},{id:`gruvbox-light-soft`,displayName:`Gruvbox Light Soft`,type:`light`,import:(()=>k(()=>import(`./gruvbox-light-soft-BSMLrYjP.js`),[]))},{id:`horizon`,displayName:`Horizon`,type:`dark`,import:(()=>k(()=>import(`./horizon-CE9ld1lL.js`),[]))},{id:`horizon-bright`,displayName:`Horizon Bright`,type:`light`,import:(()=>k(()=>import(`./horizon-bright-DSNQnXHK.js`),[]))},{id:`houston`,displayName:`Houston`,type:`dark`,import:(()=>k(()=>import(`./houston-CsvMBhTu.js`),[]))},{id:`kanagawa-dragon`,displayName:`Kanagawa Dragon`,type:`dark`,import:(()=>k(()=>import(`./kanagawa-dragon-CXtmUGW6.js`),[]))},{id:`kanagawa-lotus`,displayName:`Kanagawa Lotus`,type:`light`,import:(()=>k(()=>import(`./kanagawa-lotus-BN08jTvb.js`),[]))},{id:`kanagawa-wave`,displayName:`Kanagawa Wave`,type:`dark`,import:(()=>k(()=>import(`./kanagawa-wave-CTweb8Dz.js`),[]))},{id:`laserwave`,displayName:`LaserWave`,type:`dark`,import:(()=>k(()=>import(`./laserwave-C_8bwKvT.js`),[]))},{id:`light-plus`,displayName:`Light Plus`,type:`light`,import:(()=>k(()=>import(`./light-plus-DVQuIRkW.js`),[]))},{id:`material-theme`,displayName:`Material Theme`,type:`dark`,import:(()=>k(()=>import(`./material-theme-Bm3Qr25_.js`),[]))},{id:`material-theme-darker`,displayName:`Material Theme Darker`,type:`dark`,import:(()=>k(()=>import(`./material-theme-darker-2IIEA8gg.js`),[]))},{id:`material-theme-lighter`,displayName:`Material Theme Lighter`,type:`light`,import:(()=>k(()=>import(`./material-theme-lighter-uhdI0v04.js`),[]))},{id:`material-theme-ocean`,displayName:`Material Theme Ocean`,type:`dark`,import:(()=>k(()=>import(`./material-theme-ocean-CHQ94UKr.js`),[]))},{id:`material-theme-palenight`,displayName:`Material Theme Palenight`,type:`dark`,import:(()=>k(()=>import(`./material-theme-palenight-B5W6OYN7.js`),[]))},{id:`min-dark`,displayName:`Min Dark`,type:`dark`,import:(()=>k(()=>import(`./min-dark-BSWPekZh.js`),[]))},{id:`min-light`,displayName:`Min Light`,type:`light`,import:(()=>k(()=>import(`./min-light-DDpmG2fV.js`),[]))},{id:`monokai`,displayName:`Monokai`,type:`dark`,import:(()=>k(()=>import(`./monokai-CdkpiU2Y.js`),[]))},{id:`night-owl`,displayName:`Night Owl`,type:`dark`,import:(()=>k(()=>import(`./night-owl-DhmEMT88.js`),[]))},{id:`night-owl-light`,displayName:`Night Owl Light`,type:`light`,import:(()=>k(()=>import(`./night-owl-light-eJ-hLW7d.js`),[]))},{id:`nord`,displayName:`Nord`,type:`dark`,import:(()=>k(()=>import(`./nord-Cb4Vim4T.js`),[]))},{id:`one-dark-pro`,displayName:`One Dark Pro`,type:`dark`,import:(()=>k(()=>import(`./one-dark-pro-CLwyXe_n.js`),[]))},{id:`one-light`,displayName:`One Light`,type:`light`,import:(()=>k(()=>import(`./one-light-D7Lr4KcI.js`),[]))},{id:`plastic`,displayName:`Plastic`,type:`dark`,import:(()=>k(()=>import(`./plastic-DQwYfKfQ.js`),[]))},{id:`poimandres`,displayName:`Poimandres`,type:`dark`,import:(()=>k(()=>import(`./poimandres-DRFjx7u4.js`),[]))},{id:`red`,displayName:`Red`,type:`dark`,import:(()=>k(()=>import(`./red-CJ3rzSJv.js`),[]))},{id:`rose-pine`,displayName:`Rosé Pine`,type:`dark`,import:(()=>k(()=>import(`./rose-pine-BthvhNj6.js`),[]))},{id:`rose-pine-dawn`,displayName:`Rosé Pine Dawn`,type:`light`,import:(()=>k(()=>import(`./rose-pine-dawn-Dg85fqjY.js`),[]))},{id:`rose-pine-moon`,displayName:`Rosé Pine Moon`,type:`dark`,import:(()=>k(()=>import(`./rose-pine-moon-hon4tzzS.js`),[]))},{id:`slack-dark`,displayName:`Slack Dark`,type:`dark`,import:(()=>k(()=>import(`./slack-dark-DnToyrRv.js`),[]))},{id:`slack-ochin`,displayName:`Slack Ochin`,type:`light`,import:(()=>k(()=>import(`./slack-ochin-B2OO5cIa.js`),[]))},{id:`snazzy-light`,displayName:`Snazzy Light`,type:`light`,import:(()=>k(()=>import(`./snazzy-light-4G7pJPwS.js`),[]))},{id:`solarized-dark`,displayName:`Solarized Dark`,type:`dark`,import:(()=>k(()=>import(`./solarized-dark-DV17i1UV.js`),[]))},{id:`solarized-light`,displayName:`Solarized Light`,type:`light`,import:(()=>k(()=>import(`./solarized-light-DSh2HLQt.js`),[]))},{id:`synthwave-84`,displayName:`Synthwave '84`,type:`dark`,import:(()=>k(()=>import(`./synthwave-84-nFMaYfgc.js`),[]))},{id:`tokyo-night`,displayName:`Tokyo Night`,type:`dark`,import:(()=>k(()=>import(`./tokyo-night-oM2G3aXe.js`),[]))},{id:`vesper`,displayName:`Vesper`,type:`dark`,import:(()=>k(()=>import(`./vesper-DdrHHSXu.js`),[]))},{id:`vitesse-black`,displayName:`Vitesse Black`,type:`dark`,import:(()=>k(()=>import(`./vitesse-black-fwtXNY1n.js`),[]))},{id:`vitesse-dark`,displayName:`Vitesse Dark`,type:`dark`,import:(()=>k(()=>import(`./vitesse-dark-BZCL-v6S.js`),[]))},{id:`vitesse-light`,displayName:`Vitesse Light`,type:`light`,import:(()=>k(()=>import(`./vitesse-light-VbXTXTou.js`),[]))}].map(e=>[e.id,e.import])),yF=r({createOnigurumaEngine:()=>qF,getDefaultWasmLoader:()=>KF,loadWasm:()=>BF,setDefaultWasmLoader:()=>GF}),bF=class extends Error{constructor(e){super(e),this.name=`ShikiError`}};function xF(){return 2147483648}function SF(){return typeof performance<`u`?performance.now():Date.now()}var CF=(e,t)=>e+(t-e%t)%t;async function wF(e){let t,n,r={};function i(e){n=e,r.HEAPU8=new Uint8Array(e),r.HEAPU32=new Uint32Array(e)}function a(e,t,n){r.HEAPU8.copyWithin(e,t,t+n)}function o(e){try{return t.grow(e-n.byteLength+65535>>>16),i(t.buffer),1}catch{}}function s(e){let t=r.HEAPU8.length;e>>>=0;let n=xF();if(e>n)return!1;for(let r=1;r<=4;r*=2){let i=t*(1+.2/r);if(i=Math.min(i,e+100663296),o(Math.min(n,CF(Math.max(e,i),65536))))return!0}return!1}let c=typeof TextDecoder<`u`?new TextDecoder(`utf8`):void 0;function l(e,t,n=1024){let r=t+n,i=t;for(;e[i]&&!(i>=r);)++i;if(i-t>16&&e.buffer&&c)return c.decode(e.subarray(t,i));let a=``;for(;t<i;){let n=e[t++];if(!(n&128)){a+=String.fromCharCode(n);continue}let r=e[t++]&63;if((n&224)==192){a+=String.fromCharCode((n&31)<<6|r);continue}let i=e[t++]&63;if(n=(n&240)==224?(n&15)<<12|r<<6|i:(n&7)<<18|r<<12|i<<6|e[t++]&63,n<65536)a+=String.fromCharCode(n);else{let e=n-65536;a+=String.fromCharCode(55296|e>>10,56320|e&1023)}}return a}function u(e,t){return e?l(r.HEAPU8,e,t):``}let d={emscripten_get_now:SF,emscripten_memcpy_big:a,emscripten_resize_heap:s,fd_write:()=>0};async function f(){let n=await e({env:d,wasi_snapshot_preview1:d});t=n.memory,i(t.buffer),Object.assign(r,n),r.UTF8ToString=u}return await f(),r}var TF=Object.defineProperty,EF=(e,t,n)=>t in e?TF(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,DF=(e,t,n)=>EF(e,typeof t==`symbol`?t:t+``,n),OF=null;function kF(e){throw new bF(e.UTF8ToString(e.getLastOnigError()))}var AF=class e{constructor(t){DF(this,`utf16Length`),DF(this,`utf8Length`),DF(this,`utf16Value`),DF(this,`utf8Value`),DF(this,`utf16OffsetToUtf8`),DF(this,`utf8OffsetToUtf16`);let n=t.length,r=e._utf8ByteLength(t),i=r!==n,a=i?new Uint32Array(n+1):null;i&&(a[n]=r);let o=i?new Uint32Array(r+1):null;i&&(o[r]=n);let s=new Uint8Array(r),c=0;for(let e=0;e<n;e++){let r=t.charCodeAt(e),l=r,u=!1;if(r>=55296&&r<=56319&&e+1<n){let n=t.charCodeAt(e+1);n>=56320&&n<=57343&&(l=(r-55296<<10)+65536|n-56320,u=!0)}i&&(a[e]=c,u&&(a[e+1]=c),l<=127?o[c+0]=e:l<=2047?(o[c+0]=e,o[c+1]=e):l<=65535?(o[c+0]=e,o[c+1]=e,o[c+2]=e):(o[c+0]=e,o[c+1]=e,o[c+2]=e,o[c+3]=e)),l<=127?s[c++]=l:l<=2047?(s[c++]=192|(l&1984)>>>6,s[c++]=128|(l&63)>>>0):l<=65535?(s[c++]=224|(l&61440)>>>12,s[c++]=128|(l&4032)>>>6,s[c++]=128|(l&63)>>>0):(s[c++]=240|(l&1835008)>>>18,s[c++]=128|(l&258048)>>>12,s[c++]=128|(l&4032)>>>6,s[c++]=128|(l&63)>>>0),u&&e++}this.utf16Length=n,this.utf8Length=r,this.utf16Value=t,this.utf8Value=s,this.utf16OffsetToUtf8=a,this.utf8OffsetToUtf16=o}static _utf8ByteLength(e){let t=0;for(let n=0,r=e.length;n<r;n++){let i=e.charCodeAt(n),a=i,o=!1;if(i>=55296&&i<=56319&&n+1<r){let t=e.charCodeAt(n+1);t>=56320&&t<=57343&&(a=(i-55296<<10)+65536|t-56320,o=!0)}a<=127?t+=1:a<=2047?t+=2:a<=65535?t+=3:t+=4,o&&n++}return t}createString(e){let t=e.omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}},jF=class e{constructor(t){if(DF(this,`id`,++e.LAST_ID),DF(this,`_onigBinding`),DF(this,`content`),DF(this,`utf16Length`),DF(this,`utf8Length`),DF(this,`utf16OffsetToUtf8`),DF(this,`utf8OffsetToUtf16`),DF(this,`ptr`),!OF)throw new bF(`Must invoke loadWasm first.`);this._onigBinding=OF,this.content=t;let n=new AF(t);this.utf16Length=n.utf16Length,this.utf8Length=n.utf8Length,this.utf16OffsetToUtf8=n.utf16OffsetToUtf8,this.utf8OffsetToUtf16=n.utf8OffsetToUtf16,this.utf8Length<1e4&&!e._sharedPtrInUse?(e._sharedPtr||=OF.omalloc(1e4),e._sharedPtrInUse=!0,OF.HEAPU8.set(n.utf8Value,e._sharedPtr),this.ptr=e._sharedPtr):this.ptr=n.createString(OF)}convertUtf8OffsetToUtf16(e){return this.utf8OffsetToUtf16?e<0?0:e>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[e]:e}convertUtf16OffsetToUtf8(e){return this.utf16OffsetToUtf8?e<0?0:e>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[e]:e}dispose(){this.ptr===e._sharedPtr?e._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};DF(jF,`LAST_ID`,0),DF(jF,`_sharedPtr`,0),DF(jF,`_sharedPtrInUse`,!1);var MF=jF,NF=class{constructor(e){if(DF(this,`_onigBinding`),DF(this,`_ptr`),!OF)throw new bF(`Must invoke loadWasm first.`);let t=[],n=[];for(let r=0,i=e.length;r<i;r++){let i=new AF(e[r]);t[r]=i.createString(OF),n[r]=i.utf8Length}let r=OF.omalloc(4*e.length);OF.HEAPU32.set(t,r/4);let i=OF.omalloc(4*e.length);OF.HEAPU32.set(n,i/4);let a=OF.createOnigScanner(r,i,e.length);for(let n=0,r=e.length;n<r;n++)OF.ofree(t[n]);OF.ofree(i),OF.ofree(r),a===0&&kF(OF),this._onigBinding=OF,this._ptr=a}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(e,t,n){let r=0;if(typeof n==`number`&&(r=n),typeof e==`string`){e=new MF(e);let n=this._findNextMatchSync(e,t,!1,r);return e.dispose(),n}return this._findNextMatchSync(e,t,!1,r)}_findNextMatchSync(e,t,n,r){let i=this._onigBinding,a=i.findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),r);if(a===0)return null;let o=i.HEAPU32,s=a/4,c=o[s++],l=o[s++],u=[];for(let t=0;t<l;t++){let n=e.convertUtf8OffsetToUtf16(o[s++]),r=e.convertUtf8OffsetToUtf16(o[s++]);u[t]={start:n,end:r,length:r-n}}return{index:c,captureIndices:u}}};function PF(e){return typeof e.instantiator==`function`}function FF(e){return typeof e.default==`function`}function IF(e){return e.data!==void 0}function LF(e){return typeof Response<`u`&&e instanceof Response}function RF(e){return typeof ArrayBuffer<`u`&&(e instanceof ArrayBuffer||ArrayBuffer.isView(e))||typeof Buffer<`u`&&Buffer.isBuffer?.(e)||typeof SharedArrayBuffer<`u`&&e instanceof SharedArrayBuffer||typeof Uint32Array<`u`&&e instanceof Uint32Array}var zF;function BF(e){if(zF)return zF;async function t(){OF=await wF(async t=>{let n=e;return n=await n,typeof n==`function`&&(n=await n(t)),typeof n==`function`&&(n=await n(t)),PF(n)?n=await n.instantiator(t):FF(n)?n=await n.default(t):(IF(n)&&(n=n.data),LF(n)?n=typeof WebAssembly.instantiateStreaming==`function`?await HF(n)(t):await UF(n)(t):RF(n)||n instanceof WebAssembly.Module?n=await VF(n)(t):`default`in n&&n.default instanceof WebAssembly.Module&&(n=await VF(n.default)(t))),`instance`in n&&(n=n.instance),`exports`in n&&(n=n.exports),n})}return zF=t(),zF}function VF(e){return t=>WebAssembly.instantiate(e,t)}function HF(e){return t=>WebAssembly.instantiateStreaming(e,t)}function UF(e){return async t=>{let n=await e.arrayBuffer();return WebAssembly.instantiate(n,t)}}var WF;function GF(e){WF=e}function KF(){return WF}async function qF(e){return e&&await BF(e),{createScanner(e){return new NF(e.map(e=>typeof e==`string`?e:e.source))},createString(e){return new MF(e)}}}var JF=dF({});pF(JF,yF);var YF=class extends Error{constructor(e){super(e),this.name=`ShikiError`}};function XF(e,t){let n=typeof e==`string`?{}:{...e.colorReplacements},r=typeof e==`string`?e:e.name;for(let[e,i]of Object.entries(t?.colorReplacements||{}))typeof i==`string`?n[e]=i:e===r&&Object.assign(n,i);return n}function ZF(e,t){return e&&(t?.[e?.toLowerCase()]||e)}function QF(e){return Array.isArray(e)?e:[e]}async function $F(e){return Promise.resolve(typeof e==`function`?e():e).then(e=>e.default||e)}function eI(e){return!e||[`plaintext`,`txt`,`text`,`plain`].includes(e)}function tI(e){return e===`ansi`||eI(e)}function nI(e){return e===`none`}function rI(e){return nI(e)}var iI=/(\r?\n)/g;function aI(e,t=!1){if(e.length===0)return[[``,0]];let n=e.split(iI),r=0,i=[];for(let e=0;e<n.length;e+=2){let a=t?n[e]+(n[e+1]||``):n[e];i.push([a,r]),r+=n[e].length,r+=n[e+1]?.length||0}return i}var oI={light:`#333333`,dark:`#bbbbbb`},sI={light:`#fffffe`,dark:`#1e1e1e`},cI=`__shiki_resolved`;function lI(e){if(e?.[cI])return e;let t={...e};t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||=`dark`,t.colorReplacements={...t.colorReplacements},t.settings||=[];let{bg:n,fg:r}=t;if(!n||!r){let e=t.settings?t.settings.find(e=>!e.name&&!e.scope):void 0;e?.settings?.foreground&&(r=e.settings.foreground),e?.settings?.background&&(n=e.settings.background),!r&&t?.colors?.[`editor.foreground`]&&(r=t.colors[`editor.foreground`]),!n&&t?.colors?.[`editor.background`]&&(n=t.colors[`editor.background`]),r||=t.type===`light`?oI.light:oI.dark,n||=t.type===`light`?sI.light:sI.dark,t.fg=r,t.bg=n}t.settings[0]&&t.settings[0].settings&&!t.settings[0].scope||t.settings.unshift({settings:{foreground:t.fg,background:t.bg}});let i=0,a=new Map;function o(e){if(a.has(e))return a.get(e);i+=1;let n=`#${i.toString(16).padStart(8,`0`).toLowerCase()}`;return t.colorReplacements?.[`#${n}`]?o(e):(a.set(e,n),n)}t.settings=t.settings.map(e=>{let n=e.settings?.foreground&&!e.settings.foreground.startsWith(`#`),r=e.settings?.background&&!e.settings.background.startsWith(`#`);if(!n&&!r)return e;let i={...e,settings:{...e.settings}};if(n){let n=o(e.settings.foreground);t.colorReplacements[n]=e.settings.foreground,i.settings.foreground=n}if(r){let n=o(e.settings.background);t.colorReplacements[n]=e.settings.background,i.settings.background=n}return i});for(let e of Object.keys(t.colors||{}))if((e===`editor.foreground`||e===`editor.background`||e.startsWith(`terminal.ansi`))&&!t.colors[e]?.startsWith(`#`)){let n=o(t.colors[e]);t.colorReplacements[n]=t.colors[e],t.colors[e]=n}return Object.defineProperty(t,cI,{enumerable:!1,writable:!1,value:!0}),t}async function uI(e){return[...new Set((await Promise.all(e.filter(e=>!tI(e)).map(async e=>await $F(e).then(e=>Array.isArray(e)?e:[e])))).flat())]}async function dI(e){return(await Promise.all(e.map(async e=>rI(e)?null:lI(await $F(e))))).filter(e=>!!e)}function fI(e,t){if(!t)return e;if(t[e]){let n=new Set([e]);for(;t[e];){if(e=t[e],n.has(e))throw new YF(`Circular alias \`${[...n].join(` -> `)} -> ${e}\``);n.add(e)}}return e}var pI=class extends mo{_resolver;_themes;_langs;_alias;_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;constructor(e,t,n,r={}){super(e),this._resolver=e,this._themes=t,this._langs=n,this._alias=r,this._themes.map(e=>this.loadTheme(e)),this.loadLanguages(this._langs)}getTheme(e){return typeof e==`string`?this._resolvedThemes.get(e):this.loadTheme(e)}loadTheme(e){let t=lI(e);return t.name&&(this._resolvedThemes.set(t.name,t),this._loadedThemesCache=null),t}getLoadedThemes(){return this._loadedThemesCache||=[...this._resolvedThemes.keys()],this._loadedThemesCache}setTheme(e){let t=this._textmateThemeCache.get(e);t||(t=Gi.createFromRawTheme(e),this._textmateThemeCache.set(e,t)),this._syncRegistry.setTheme(t)}getGrammar(e){return e=fI(e,this._alias),this._resolvedGrammars.get(e)}loadLanguage(e){if(this.getGrammar(e.name))return;let t=new Set([...this._langMap.values()].filter(t=>t.embeddedLangsLazy?.includes(e.name)));this._resolver.addLanguage(e);let n={balancedBracketSelectors:e.balancedBracketSelectors||[`*`],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(e.scopeName,e);let r=this.loadGrammarWithConfiguration(e.scopeName,1,n);if(r.name=e.name,this._resolvedGrammars.set(e.name,r),e.aliases&&e.aliases.forEach(t=>{this._alias[t]=e.name}),this._loadedLanguagesCache=null,t.size)for(let e of t)this._resolvedGrammars.delete(e.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(e.scopeName),this._syncRegistry?._grammars?.delete(e.scopeName),this.loadLanguage(this._langMap.get(e.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(e){for(let t of e)this.resolveEmbeddedLanguages(t);let t=[...this._langGraph.entries()],n=t.filter(([e,t])=>!t);if(n.length){let e=t.filter(([e,t])=>t?(t.embeddedLanguages||t.embeddedLangs)?.some(e=>n.map(([e])=>e).includes(e)):!1).filter(e=>!n.includes(e));throw new YF(`Missing languages ${n.map(([e])=>`\`${e}\``).join(`, `)}, required by ${e.map(([e])=>`\`${e}\``).join(`, `)}`)}for(let[e,n]of t)this._resolver.addLanguage(n);for(let[e,n]of t)this.loadLanguage(n)}getLoadedLanguages(){return this._loadedLanguagesCache||=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])],this._loadedLanguagesCache}resolveEmbeddedLanguages(e){this._langMap.set(e.name,e),this._langGraph.set(e.name,e);let t=e.embeddedLanguages??e.embeddedLangs;if(t)for(let e of t)this._langGraph.set(e,this._langMap.get(e))}},mI=class{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLib;constructor(e,t){this._onigLib={createOnigScanner:t=>e.createScanner(t),createOnigString:t=>e.createString(t)},t.forEach(e=>this.addLanguage(e))}get onigLib(){return this._onigLib}getLangRegistration(e){return this._langs.get(e)}loadGrammar(e){return this._scopeToLang.get(e)}addLanguage(e){this._langs.set(e.name,e),e.aliases&&e.aliases.forEach(t=>{this._langs.set(t,e)}),this._scopeToLang.set(e.scopeName,e),e.injectTo&&e.injectTo.forEach(t=>{this._injections.get(t)||this._injections.set(t,[]),this._injections.get(t).push(e.scopeName)})}getInjections(e){let t=e.split(`.`),n=[];for(let e=1;e<=t.length;e++){let r=t.slice(0,e).join(`.`);n=[...n,...this._injections.get(r)||[]]}return n}},hI=0;function gI(e){hI+=1,e.warnings!==!1&&hI>=10&&hI%10==0&&console.warn(`[Shiki] ${hI} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let t=!1;if(!e.engine)throw new YF("`engine` option is required for synchronous mode");let n=(e.langs||[]).flat(1),r=(e.themes||[]).flat(1).map(lI),i=new pI(new mI(e.engine,n),r,n,e.langAlias),a;function o(t){return fI(t,e.langAlias)}function s(e){g();let t=i.getGrammar(typeof e==`string`?e:e.name);if(!t)throw new YF(`Language \`${e}\` not found, you may need to load it first`);return t}function c(e){if(e===`none`)return{bg:``,fg:``,name:`none`,settings:[],type:`dark`};g();let t=i.getTheme(e);if(!t)throw new YF(`Theme \`${e}\` not found, you may need to load it first`);return t}function l(e){g();let t=c(e);return a!==e&&(i.setTheme(t),a=e),{theme:t,colorMap:i.getColorMap()}}function u(){return g(),i.getLoadedThemes()}function d(){return g(),i.getLoadedLanguages()}function f(...e){g(),i.loadLanguages(e.flat(1))}async function p(...e){return f(await uI(e))}function m(...e){g();for(let t of e.flat(1))i.loadTheme(t)}async function h(...e){return g(),m(await dI(e))}function g(){if(t)throw new YF(`Shiki instance has been disposed`)}function _(){t||(t=!0,i.dispose(),--hI)}return{setTheme:l,getTheme:c,getLanguage:s,getLoadedThemes:u,getLoadedLanguages:d,resolveLangAlias:o,loadLanguage:p,loadLanguageSync:f,loadTheme:h,loadThemeSync:m,dispose:_,[Symbol.dispose]:_}}async function _I(e){e.engine||console.warn("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");let[t,n,r]=await Promise.all([dI(e.themes||[]),uI(e.langs||[]),e.engine]);return gI({...e,themes:t,langs:n,engine:r})}var vI=new WeakMap;function yI(e,t){vI.set(e,t)}function bI(e){return vI.get(e)}var xI=class e{_stacks={};lang;get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(t,n){return new e(Object.fromEntries(QF(n).map(e=>[e,ho])),t)}constructor(...e){if(e.length===2){let[t,n]=e;this.lang=n,this._stacks=t}else{let[t,n,r]=e;this.lang=n,this._stacks={[r]:t}}}getInternalStack(e=this.theme){return this._stacks[e]}getScopes(e=this.theme){return SI(this._stacks[e])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}};function SI(e){let t=[],n=new Set;function r(e){if(n.has(e))return;n.add(e);let i=e?.nameScopesList?.scopeName;i&&t.push(i),e.parent&&r(e.parent)}return r(e),t}function CI(e,t){if(!(e instanceof xI))throw new YF(`Invalid grammar state`);return e.getInternalStack(t)}var wI=/,/,TI=/ /;function EI(e,t,n={}){let{theme:r=e.getLoadedThemes()[0]}=n;if(eI(e.resolveLangAlias(n.lang||`text`))||nI(r))return aI(t).map(e=>[{content:e[0],offset:e[1]}]);let{theme:i,colorMap:a}=e.setTheme(r),o=e.getLanguage(n.lang||`text`);if(n.grammarState){if(n.grammarState.lang!==o.name)throw new YF(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${o.name}"`);if(!n.grammarState.themes.includes(i.name))throw new YF(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${i.name}"`)}return OI(t,o,i,a,n)}function DI(...e){if(e.length===2)return bI(e[1]);let[t,n,r={}]=e,{lang:i=`text`,theme:a=t.getLoadedThemes()[0]}=r;if(eI(i)||nI(a))throw new YF(`Plain language does not have grammar state`);if(i===`ansi`)throw new YF(`ANSI language does not have grammar state`);let{theme:o,colorMap:s}=t.setTheme(a),c=t.getLanguage(i);return new xI(kI(n,c,o,s,r).stateStack,c.name,o.name)}function OI(e,t,n,r,i){let a=kI(e,t,n,r,i),o=new xI(a.stateStack,t.name,n.name);return yI(a.tokens,o),a.tokens}function kI(e,t,n,r,i){let a=XF(n,i),{tokenizeMaxLineLength:o=0,tokenizeTimeLimit:s=500}=i,c=aI(e),l=i.grammarState?CI(i.grammarState,n.name)??ho:i.grammarContextCode==null?ho:kI(i.grammarContextCode,t,n,r,{...i,grammarState:void 0,grammarContextCode:void 0}).stateStack,u=[],d=[];for(let e=0,f=c.length;e<f;e++){let[f,p]=c[e];if(f===``){u=[],d.push([]);continue}if(o>0&&f.length>=o){u=[],d.push([{content:f,offset:p,color:``,fontStyle:0}]);continue}let m,h,g;i.includeExplanation&&(m=t.tokenizeLine(f,l,s),h=m.tokens,g=0);let _=t.tokenizeLine2(f,l,s),v=_.tokens.length/2;for(let e=0;e<v;e++){let t=_.tokens[2*e],o=e+1<v?_.tokens[2*e+2]:f.length;if(t===o)continue;let s=_.tokens[2*e+1],c=ZF(r[ia.getForeground(s)],a),l=ia.getFontStyle(s),d={content:f.substring(t,o),offset:p+t,color:c,fontStyle:l};if(i.includeExplanation){let e=[];if(i.includeExplanation!==`scopeName`)for(let t of n.settings){let n;switch(typeof t.scope){case`string`:n=t.scope.split(wI).map(e=>e.trim());break;case`object`:n=t.scope;break;default:continue}e.push({settings:t,selectors:n.map(e=>e.split(TI))})}d.explanation=[];let r=0;for(;t+r<o;){let t=h[g],n=f.substring(t.startIndex,t.endIndex);r+=n.length,d.explanation.push({content:n,scopes:i.includeExplanation===`scopeName`?AI(t.scopes):jI(e,t.scopes)}),g+=1}}u.push(d)}d.push(u),u=[],l=_.ruleStack}return{tokens:d,stateStack:l}}function AI(e){return e.map(e=>({scopeName:e}))}function jI(e,t){let n=[];for(let r=0,i=t.length;r<i;r++){let i=t[r];n[r]={scopeName:i,themeMatches:PI(e,i,t.slice(0,r))}}return n}function MI(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]===`.`}function NI(e,t,n){if(!MI(e.at(-1),t))return!1;let r=e.length-2,i=n.length-1;for(;r>=0&&i>=0;)MI(e[r],n[i])&&--r,--i;return r===-1}function PI(e,t,n){let r=[];for(let{selectors:i,settings:a}of e)for(let e of i)if(NI(e,t,n)){r.push(a);break}return r}function FI(e,t,n,r=EI){let i=Object.entries(n.themes).filter(e=>e[1]).map(e=>({color:e[0],theme:e[1]})),a=i.map(i=>{let a=r(e,t,{...n,theme:i.theme});return{tokens:a,state:bI(a),theme:typeof i.theme==`string`?i.theme:i.theme.name}}),o=II(...a.map(e=>e.tokens)),s=o[0].map((e,t)=>e.map((e,r)=>{let a={content:e.content,variants:{},offset:e.offset};return`includeExplanation`in n&&n.includeExplanation&&(a.explanation=e.explanation),o.forEach((e,n)=>{let{content:o,explanation:s,offset:c,...l}=e[t][r];a.variants[i[n].color]=l}),a})),c=a[0].state?new xI(Object.fromEntries(a.map(e=>[e.theme,e.state?.getInternalStack(e.theme)])),a[0].state.lang):void 0;return c&&yI(s,c),s}function II(...e){let t=e.map(()=>[]),n=e.length;for(let r=0;r<e[0].length;r++){let i=e.map(e=>e[r]),a=t.map(()=>[]);t.forEach((e,t)=>e.push(a[t]));let o=i.map(()=>0),s=i.map(e=>e[0]);for(;s.every(e=>e);){let e=Math.min(...s.map(e=>e.content.length));for(let t=0;t<n;t++){let n=s[t];n.content.length===e?(a[t].push(n),o[t]+=1,s[t]=i[t][o[t]]):(a[t].push({...n,content:n.content.slice(0,e)}),s[t]={...n,content:n.content.slice(e),offset:n.offset+e})}}}return t}var LI=/\s+/g;function RI(e,t){if(!t)return e;e.properties||={},e.properties.class||=[],typeof e.properties.class==`string`&&(e.properties.class=e.properties.class.split(LI)),Array.isArray(e.properties.class)||(e.properties.class=[]);let n=Array.isArray(t)?t:t.split(LI);for(let t of n)t&&!e.properties.class.includes(t)&&e.properties.class.push(t);return e}var zI=/:?lang=["']([^"']+)["']/g,BI=/(?:```|~~~)([\w-]+)/g,VI=/\\begin\{([\w-]+)\}/g,HI=/<script\s+(?:type|lang)=["']([^"']+)["']/gi;function UI(e){let t=aI(e,!0).map(([e])=>e);function n(n){if(n===e.length)return{line:t.length-1,character:t.at(-1).length};let r=n,i=0;for(let e of t){if(r<e.length)break;r-=e.length,i++}return{line:i,character:r}}function r(e,n){let r=0;for(let n=0;n<e;n++)r+=t[n].length;return r+=n,r}return{lines:t,indexToPos:n,posToIndex:r}}function WI(e,t,n){let r=new Set;for(let t of e.matchAll(zI)){let e=t[1].toLowerCase().trim();e&&r.add(e)}for(let t of e.matchAll(BI)){let e=t[1].toLowerCase().trim();e&&r.add(e)}for(let t of e.matchAll(VI)){let e=t[1].toLowerCase().trim();e&&r.add(e)}for(let t of e.matchAll(HI)){let e=t[1].toLowerCase().trim(),n=e.includes(`/`)?e.split(`/`).pop():e;n&&r.add(n)}if(!n)return[...r];let i=n.getBundledLanguages();return[...r].filter(e=>e&&i[e])}var GI=[`color`,`background-color`];function KI(e,t){let n=0,r=[];for(let i of t)i>n&&r.push({...e,content:e.content.slice(n,i),offset:e.offset+n}),n=i;return n<e.content.length&&r.push({...e,content:e.content.slice(n),offset:e.offset+n}),r}function qI(e,t){let n=[...t instanceof Set?t:new Set(t)].sort((e,t)=>e-t);return n.length?e.map(e=>e.flatMap(e=>{let t=n.filter(t=>e.offset<t&&t<e.offset+e.content.length).map(t=>t-e.offset).sort((e,t)=>e-t);return t.length?KI(e,t):e})):e}function JI(e,t,n,r,i=`css-vars`){let a={content:e.content,explanation:e.explanation,offset:e.offset},o=t.map(t=>YI(e.variants[t])),s=new Set(o.flatMap(e=>Object.keys(e))),c={},l=(e,r)=>{let i=r===`color`?``:r===`background-color`?`-bg`:`-${r}`;return n+t[e]+(r===`color`?``:i)};return o.forEach((e,n)=>{for(let a of s){let s=e[a]||`inherit`;if(n===0&&r&&GI.includes(a))if(r===`light-dark()`&&o.length>1){let e=t.findIndex(e=>e===`light`),r=t.findIndex(e=>e===`dark`);if(e===-1||r===-1)throw new YF('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');c[a]=`light-dark(${o[e][a]||`inherit`}, ${o[r][a]||`inherit`})`,i===`css-vars`&&(c[l(n,a)]=s)}else c[a]=s;else i===`css-vars`&&(c[l(n,a)]=s)}}),a.htmlStyle=c,a}function YI(e){let t={};if(e.color&&(t.color=e.color),e.bgColor&&(t[`background-color`]=e.bgColor),e.fontStyle){e.fontStyle&Qi.Italic&&(t[`font-style`]=`italic`),e.fontStyle&Qi.Bold&&(t[`font-weight`]=`bold`);let n=[];e.fontStyle&Qi.Underline&&n.push(`underline`),e.fontStyle&Qi.Strikethrough&&n.push(`line-through`),n.length&&(t[`text-decoration`]=n.join(` `))}return t}function XI(e){return typeof e==`string`?e:Object.entries(e).map(([e,t])=>`${e}:${t}`).join(`;`)}function ZI(){let e=new WeakMap;function t(t){if(!e.has(t.meta)){let n=UI(t.source);function r(e){if(typeof e==`number`){if(e<0||e>t.source.length)throw new YF(`Invalid decoration offset: ${e}. Code length: ${t.source.length}`);return{...n.indexToPos(e),offset:e}}else{let t=n.lines[e.line];if(t===void 0)throw new YF(`Invalid decoration position ${JSON.stringify(e)}. Lines length: ${n.lines.length}`);let r=e.character;if(r<0&&(r=t.length+r),r<0||r>t.length)throw new YF(`Invalid decoration position ${JSON.stringify(e)}. Line ${e.line} length: ${t.length}`);return{...e,character:r,offset:n.posToIndex(e.line,r)}}}let i=(t.options.decorations||[]).map(e=>({...e,start:r(e.start),end:r(e.end)}));QI(i),e.set(t.meta,{decorations:i,converter:n,source:t.source})}return e.get(t.meta)}return{name:`shiki:decorations`,tokens(e){if(this.options.decorations?.length)return qI(e,t(this).decorations.flatMap(e=>[e.start.offset,e.end.offset]))},code(e){if(!this.options.decorations?.length)return;let n=t(this),r=[...e.children].filter(e=>e.type===`element`&&e.tagName===`span`);if(r.length!==n.converter.lines.length)throw new YF(`Number of lines in code element (${r.length}) does not match the number of lines in the source (${n.converter.lines.length}). Failed to apply decorations.`);function i(e,t,n,i){let a=r[e],s=``,c=-1,l=-1;if(t===0&&(c=0),n===0&&(l=0),n===1/0&&(l=a.children.length),c===-1||l===-1)for(let e=0;e<a.children.length;e++)s+=$I(a.children[e]),c===-1&&s.length===t&&(c=e+1),l===-1&&s.length===n&&(l=e+1);if(c===-1)throw new YF(`Failed to find start index for decoration ${JSON.stringify(i.start)}`);if(l===-1)throw new YF(`Failed to find end index for decoration ${JSON.stringify(i.end)}`);let u=a.children.slice(c,l);if(!i.alwaysWrap&&u.length===a.children.length)o(a,i,`line`);else if(!i.alwaysWrap&&u.length===1&&u[0].type===`element`)o(u[0],i,`token`);else{let e={type:`element`,tagName:`span`,properties:{},children:u};o(e,i,`wrapper`),a.children.splice(c,u.length,e)}}function a(e,t){r[e]=o(r[e],t,`line`)}function o(e,t,n){let r=t.properties||{},i=t.transform||(e=>e);return e.tagName=t.tagName||`span`,e.properties={...e.properties,...r,class:e.properties.class},t.properties?.class&&RI(e,t.properties.class),e=i(e,n)||e,e}let s=[],c=n.decorations.sort((e,t)=>t.start.offset-e.start.offset||e.end.offset-t.end.offset);for(let e of c){let{start:t,end:n}=e;if(t.line===n.line)i(t.line,t.character,n.character,e);else if(t.line<n.line){i(t.line,t.character,1/0,e);for(let r=t.line+1;r<n.line;r++)s.unshift(()=>a(r,e));i(n.line,0,n.character,e)}}s.forEach(e=>e())}}}function QI(e){for(let t=0;t<e.length;t++){let n=e[t];if(n.start.offset>n.end.offset)throw new YF(`Invalid decoration range: ${JSON.stringify(n.start)} - ${JSON.stringify(n.end)}`);for(let r=t+1;r<e.length;r++){let t=e[r],i=n.start.offset<=t.start.offset&&t.start.offset<n.end.offset,a=n.start.offset<t.end.offset&&t.end.offset<=n.end.offset,o=t.start.offset<=n.start.offset&&n.start.offset<t.end.offset,s=t.start.offset<n.end.offset&&n.end.offset<=t.end.offset;if(i||a||o||s){if(i&&a||o&&s||o&&n.start.offset===n.end.offset||a&&t.start.offset===t.end.offset)continue;throw new YF(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(t.start)} intersect.`)}}}}function $I(e){return e.type===`text`?e.value:e.type===`element`?e.children.map($I).join(``):``}var eL=[ZI()];function tL(e){let t=nL(e.transformers||[]);return[...t.pre,...t.normal,...t.post,...eL]}function nL(e){let t=[],n=[],r=[];for(let i of e)switch(i.enforce){case`pre`:t.push(i);break;case`post`:n.push(i);break;default:r.push(i)}return{pre:t,post:n,normal:r}}var rL=[`black`,`red`,`green`,`yellow`,`blue`,`magenta`,`cyan`,`white`,`brightBlack`,`brightRed`,`brightGreen`,`brightYellow`,`brightBlue`,`brightMagenta`,`brightCyan`,`brightWhite`],iL={1:`bold`,2:`dim`,3:`italic`,4:`underline`,7:`reverse`,8:`hidden`,9:`strikethrough`};function aL(e,t){let n=e.indexOf(`\x1B`,t);if(n!==-1&&e[n+1]===`[`){let t=e.indexOf(`m`,n);if(t!==-1)return{sequence:e.substring(n+2,t).split(`;`),startPosition:n,position:t+1}}return{position:e.length}}function oL(e){let t=e.shift();if(t===`2`){let t=e.splice(0,3).map(e=>Number.parseInt(e));return t.length!==3||t.some(e=>Number.isNaN(e))?void 0:{type:`rgb`,rgb:t}}else if(t===`5`){let t=e.shift();if(t)return{type:`table`,index:Number(t)}}}function sL(e){let t=[];for(;e.length>0;){let n=e.shift();if(!n)continue;let r=Number.parseInt(n);if(!Number.isNaN(r))if(r===0)t.push({type:`resetAll`});else if(r<=9)iL[r]&&t.push({type:`setDecoration`,value:iL[r]});else if(r<=29){let e=iL[r-20];e&&(t.push({type:`resetDecoration`,value:e}),e===`dim`&&t.push({type:`resetDecoration`,value:`bold`}))}else if(r<=37)t.push({type:`setForegroundColor`,value:{type:`named`,name:rL[r-30]}});else if(r===38){let n=oL(e);n&&t.push({type:`setForegroundColor`,value:n})}else if(r===39)t.push({type:`resetForegroundColor`});else if(r<=47)t.push({type:`setBackgroundColor`,value:{type:`named`,name:rL[r-40]}});else if(r===48){let n=oL(e);n&&t.push({type:`setBackgroundColor`,value:n})}else r===49?t.push({type:`resetBackgroundColor`}):r===53?t.push({type:`setDecoration`,value:`overline`}):r===55?t.push({type:`resetDecoration`,value:`overline`}):r>=90&&r<=97?t.push({type:`setForegroundColor`,value:{type:`named`,name:rL[r-90+8]}}):r>=100&&r<=107&&t.push({type:`setBackgroundColor`,value:{type:`named`,name:rL[r-100+8]}})}return t}function cL(){let e=null,t=null,n=new Set;return{parse(r){let i=[],a=0;do{let o=aL(r,a),s=o.sequence?r.substring(a,o.startPosition):r.substring(a);if(s.length>0&&i.push({value:s,foreground:e,background:t,decorations:new Set(n)}),o.sequence){let r=sL(o.sequence);for(let i of r)i.type===`resetAll`?(e=null,t=null,n.clear()):i.type===`resetForegroundColor`?e=null:i.type===`resetBackgroundColor`?t=null:i.type===`resetDecoration`&&n.delete(i.value);for(let i of r)i.type===`setForegroundColor`?e=i.value:i.type===`setBackgroundColor`?t=i.value:i.type===`setDecoration`&&n.add(i.value)}a=o.position}while(a<r.length);return i}}}var lL={black:`#000000`,red:`#bb0000`,green:`#00bb00`,yellow:`#bbbb00`,blue:`#0000bb`,magenta:`#ff00ff`,cyan:`#00bbbb`,white:`#eeeeee`,brightBlack:`#555555`,brightRed:`#ff5555`,brightGreen:`#00ff00`,brightYellow:`#ffff55`,brightBlue:`#5555ff`,brightMagenta:`#ff55ff`,brightCyan:`#55ffff`,brightWhite:`#ffffff`};function uL(e=lL){function t(t){return e[t]}function n(e){return`#${e.map(e=>Math.max(0,Math.min(e,255)).toString(16).padStart(2,`0`)).join(``)}`}let r;function i(){if(r)return r;r=[];for(let e=0;e<rL.length;e++)r.push(t(rL[e]));let e=[0,95,135,175,215,255];for(let t=0;t<6;t++)for(let i=0;i<6;i++)for(let a=0;a<6;a++)r.push(n([e[t],e[i],e[a]]));let i=8;for(let e=0;e<24;e++,i+=10)r.push(n([i,i,i]));return r}function a(e){return i()[e]}function o(e){switch(e.type){case`named`:return t(e.name);case`rgb`:return n(e.rgb);case`table`:return a(e.index)}}return{value:o}}var dL=/#([0-9a-f]{3,8})/i,fL=/var\((--[\w-]+-ansi-[\w-]+)\)/,pL={black:`#000000`,red:`#cd3131`,green:`#0DBC79`,yellow:`#E5E510`,blue:`#2472C8`,magenta:`#BC3FBC`,cyan:`#11A8CD`,white:`#E5E5E5`,brightBlack:`#666666`,brightRed:`#F14C4C`,brightGreen:`#23D18B`,brightYellow:`#F5F543`,brightBlue:`#3B8EEA`,brightMagenta:`#D670D6`,brightCyan:`#29B8DB`,brightWhite:`#FFFFFF`};function mL(e,t,n){let r=XF(e,n),i=aI(t),a=uL(Object.fromEntries(rL.map(t=>{let n=`terminal.ansi${t[0].toUpperCase()}${t.substring(1)}`;return[t,e.colors?.[n]||pL[t]]}))),o=cL();return i.map(t=>o.parse(t[0]).map(n=>{let i,o;n.decorations.has(`reverse`)?(i=n.background?a.value(n.background):e.bg,o=n.foreground?a.value(n.foreground):e.fg):(i=n.foreground?a.value(n.foreground):e.fg,o=n.background?a.value(n.background):void 0),i=ZF(i,r),o=ZF(o,r),n.decorations.has(`dim`)&&(i=hL(i));let s=Qi.None;return n.decorations.has(`bold`)&&(s|=Qi.Bold),n.decorations.has(`italic`)&&(s|=Qi.Italic),n.decorations.has(`underline`)&&(s|=Qi.Underline),n.decorations.has(`strikethrough`)&&(s|=Qi.Strikethrough),{content:n.value,offset:t[1],color:i,bgColor:o,fontStyle:s}}))}function hL(e){let t=e.match(dL);if(t){let e=t[1];if(e.length===8){let t=Math.round(Number.parseInt(e.slice(6,8),16)/2).toString(16).padStart(2,`0`);return`#${e.slice(0,6)}${t}`}else if(e.length===6)return`#${e}80`;else if(e.length===4){let t=e[0],n=e[1],r=e[2],i=e[3];return`#${t}${t}${n}${n}${r}${r}${Math.round(Number.parseInt(`${i}${i}`,16)/2).toString(16).padStart(2,`0`)}`}else if(e.length===3){let t=e[0],n=e[1],r=e[2];return`#${t}${t}${n}${n}${r}${r}80`}}let n=e.match(fL);return n?`var(${n[1]}-dim)`:e}function gL(e,t,n={}){let r=e.resolveLangAlias(n.lang||`text`),{theme:i=e.getLoadedThemes()[0]}=n;if(!eI(r)&&!nI(i)&&r===`ansi`){let{theme:r}=e.setTheme(i);return mL(r,t,n)}return EI(e,t,n)}function _L(e,t,n){let r,i,a,o,s,c;if(`themes`in n){let{defaultColor:l=`light`,cssVariablePrefix:u=`--shiki-`,colorsRendering:d=`css-vars`}=n,f=Object.entries(n.themes).filter(e=>e[1]).map(e=>({color:e[0],theme:e[1]})).sort((e,t)=>e.color===l?-1:+(t.color===l));if(f.length===0)throw new YF("`themes` option must not be empty");let p=FI(e,t,n,gL);if(c=bI(p),l&&l!==`light-dark()`&&!f.some(e=>e.color===l))throw new YF(`\`themes\` option must contain the defaultColor key \`${l}\``);let m=f.map(t=>e.getTheme(t.theme)),h=f.map(e=>e.color);a=p.map(e=>e.map(e=>JI(e,h,u,l,d))),c&&yI(a,c);let g=f.map(e=>XF(e.theme,n));i=vL(f,m,g,u,l,`fg`,d),r=vL(f,m,g,u,l,`bg`,d),o=`shiki-themes ${m.map(e=>e.name).join(` `)}`,s=l?void 0:[i,r].join(`;`)}else if(`theme`in n){let s=XF(n.theme,n);a=gL(e,t,n);let l=e.getTheme(n.theme);r=ZF(l.bg,s),i=ZF(l.fg,s),o=l.name,c=bI(a)}else throw new YF("Invalid options, either `theme` or `themes` must be provided");return{tokens:a,fg:i,bg:r,themeName:o,rootStyle:s,grammarState:c}}function vL(e,t,n,r,i,a,o){return e.map((s,c)=>{let l=ZF(t[c][a],n[c])||`inherit`,u=`${r+s.color}${a===`bg`?`-bg`:``}:${l}`;if(c===0&&i){if(i===`light-dark()`&&e.length>1){let r=e.findIndex(e=>e.color===`light`),i=e.findIndex(e=>e.color===`dark`);if(r===-1||i===-1)throw new YF('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');return`light-dark(${ZF(t[r][a],n[r])||`inherit`}, ${ZF(t[i][a],n[i])||`inherit`});${u}`}return l}return o===`css-vars`?u:null}).filter(e=>!!e).join(`;`)}var yL=/^\s+$/,bL=/^(\s*)(.*?)(\s*)$/;function xL(e,t,n,r={meta:{},options:n,codeToHast:(t,n)=>xL(e,t,n),codeToTokens:(t,n)=>_L(e,t,n)}){let i=t;for(let e of tL(n))i=e.preprocess?.call(r,i,n)||i;let{tokens:a,fg:o,bg:s,themeName:c,rootStyle:l,grammarState:u}=_L(e,i,n),{mergeWhitespaces:d=!0,mergeSameStyleTokens:f=!1}=n;d===!0?a=CL(a):d===`never`&&(a=wL(a)),f&&(a=TL(a));let p={...r,get source(){return i}};for(let e of tL(n))a=e.tokens?.call(p,a)||a;return SL(a,{...n,fg:o,bg:s,themeName:c,rootStyle:n.rootStyle===!1?!1:n.rootStyle??l},p,u)}function SL(e,t,n,r=bI(e)){let i=tL(t),a=[],o={type:`root`,children:[]},{structure:s=`classic`,tabindex:c=`0`}=t,l={class:`shiki ${t.themeName||``}`};t.rootStyle!==!1&&(t.rootStyle==null?l.style=`background-color:${t.bg};color:${t.fg}`:l.style=t.rootStyle),c!==!1&&c!=null&&(l.tabindex=c.toString());for(let[e,n]of Object.entries(t.meta||{}))e.startsWith(`_`)||(l[e]=n);let u={type:`element`,tagName:`pre`,properties:l,children:[],data:t.data},d={type:`element`,tagName:`code`,properties:{},children:a},f=[],p={...n,structure:s,addClassToHast:RI,get source(){return n.source},get tokens(){return e},get options(){return t},get root(){return o},get pre(){return u},get code(){return d},get lines(){return f}};if(e.forEach((e,t)=>{t&&(s===`inline`?o.children.push({type:`element`,tagName:`br`,properties:{},children:[]}):s===`classic`&&a.push({type:`text`,value:`
|
|
425
|
-
`}));let n={type:`element`,tagName:`span`,properties:{class:`line`},children:[]},r=0;for(let a of e){let e={type:`element`,tagName:`span`,properties:{...a.htmlAttrs},children:[{type:`text`,value:a.content}]},c=
|
|
426
|
-
`:e.tokens.map(({token:e,key:t})=>(0,$.jsx)(
|
|
427
|
-
`).map(e=>e===``?[]:[{color:`inherit`,content:e}])}),eR=(e,t,n)=>{let r=ZL(e,t);return YL.get(r)||(n&&(XL.has(r)||XL.set(r,new Set),XL.get(r)?.add(n)),QL(t).then(n=>{let i=n.getLoadedLanguages().includes(t)?t:`text`,a=n.codeToTokens(e,{lang:i,themes:{dark:`github-dark`,light:`github-light`}}),o={bg:a.bg??`transparent`,fg:a.fg??`inherit`,tokens:a.tokens};YL.set(r,o);let s=XL.get(r);if(s){for(let e of s)e(o);XL.delete(r)}}).catch(e=>{console.error(`Failed to highlight code:`,e),XL.delete(r)}),null)},tR=(0,j.memo)(({tokenized:e,showLineNumbers:t,className:n})=>{let r=(0,j.useMemo)(()=>({backgroundColor:e.bg,color:e.fg}),[e.bg,e.fg]),i=(0,j.useMemo)(()=>UL(e.tokens),[e.tokens]);return(0,$.jsx)(`pre`,{className:y(`dark:!bg-[var(--shiki-dark-bg)] dark:!text-[var(--shiki-dark)] m-0 p-4 text-sm`,n),style:r,children:(0,$.jsx)(`code`,{className:y(`font-mono text-sm`,t&&`[counter-increment:line_0] [counter-reset:line]`),children:i.map(e=>(0,$.jsx)(KL,{keyedLine:e,showLineNumbers:t},e.key))})})},(e,t)=>e.tokenized===t.tokenized&&e.showLineNumbers===t.showLineNumbers&&e.className===t.className);tR.displayName=`CodeBlockBody`;var nR=({className:e,language:t,style:n,...r})=>(0,$.jsx)(`div`,{className:y(`group relative w-full overflow-hidden rounded-md border bg-background text-foreground`,e),"data-language":t,style:{containIntrinsicSize:`auto 200px`,contentVisibility:`auto`,...n},...r}),rR=({code:e,language:t,showLineNumbers:n=!1})=>{let r=(0,j.useMemo)(()=>$L(e),[e]),i=(0,j.useMemo)(()=>eR(e,t)??r,[e,t,r]),[a,o]=(0,j.useState)(null),s=(0,j.useRef)({code:e,language:t});return(s.current.code!==e||s.current.language!==t)&&(s.current={code:e,language:t},o(null)),(0,j.useEffect)(()=>{let n=!1;return eR(e,t,e=>{n||o(e)}),()=>{n=!0}},[e,t]),(0,$.jsx)(`div`,{className:`relative overflow-auto`,children:(0,$.jsx)(tR,{showLineNumbers:n,tokenized:a??i})})},iR=({code:e,language:t,showLineNumbers:n=!1,className:r,children:i,...a})=>{let o=(0,j.useMemo)(()=>({code:e}),[e]);return(0,$.jsx)(qL.Provider,{value:o,children:(0,$.jsxs)(nR,{className:r,language:t,...a,children:[i,(0,$.jsx)(rR,{code:e,language:t,showLineNumbers:n})]})})},aR=({className:e,input:t,...n})=>(0,$.jsxs)(`div`,{className:y(`space-y-2 overflow-hidden`,e),...n,children:[(0,$.jsx)(`h4`,{className:`font-medium text-muted-foreground text-xs uppercase tracking-wide`,children:`Parameters`}),(0,$.jsx)(`div`,{className:`rounded-md bg-muted/50`,children:(0,$.jsx)(iR,{code:JSON.stringify(t,null,2),language:`json`})})]}),oR=({className:e,output:t,errorText:n,...r})=>{if(!(t||n))return null;let i=(0,$.jsx)(`div`,{children:t});return typeof t==`object`&&!(0,j.isValidElement)(t)?i=(0,$.jsx)(iR,{code:JSON.stringify(t,null,2),language:`json`}):typeof t==`string`&&(i=(0,$.jsx)(iR,{code:t,language:`json`})),(0,$.jsxs)(`div`,{className:y(`space-y-2`,e),...r,children:[(0,$.jsx)(`h4`,{className:`font-medium text-muted-foreground text-xs uppercase tracking-wide`,children:n?`Error`:`Result`}),(0,$.jsxs)(`div`,{className:y(`overflow-x-auto rounded-md text-xs [&_table]:w-full`,n?`bg-destructive/10 text-destructive`:`bg-muted/50 text-foreground`),children:[n&&(0,$.jsx)(`div`,{children:n}),i]})]})};function sR({from:e,glow:t,children:n}){let r=e===`user`;return(0,$.jsxs)(`div`,{className:`flex gap-3`,children:[(0,$.jsx)(`div`,{className:y(`flex size-8 shrink-0 items-center justify-center rounded-full`,r?`bg-neutral-200`:`bg-muted`,t&&!r&&`jun-avatar-glow`),children:r?(0,$.jsx)(`span`,{className:`text-xs font-semibold text-neutral-700`,children:`U`}):(0,$.jsx)(Ne,{className:`size-4`})}),(0,$.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,$.jsx)(`p`,{className:`text-sm font-semibold text-foreground`,children:r?`You`:`junso`}),n]})]})}function cR({text:e,isStreaming:t}){return(0,$.jsxs)(KP,{isStreaming:t,className:`mt-2 mb-0 w-full`,children:[(0,$.jsx)(JP,{}),(0,$.jsx)(XP,{children:e})]})}var lR={commandExecution:{label:`Running command`,icon:Jn},fileChange:{label:`Editing files`,icon:Hn},mcpToolCall:{label:`MCP tool`,icon:Rn},webSearch:{label:`Searching the web`,icon:me},webFetch:{label:`Reading webpage`,icon:Ke}};function uR(e){let t=lR[e.toolType]??{label:e.toolType,icon:Xn},n=e.title;return e.toolType===`fileChange`&&(n=n.replace(/^Edit /,``)),(n===t.label||n===e.toolType)&&(n=``),{...t,detail:n}}function dR(e){if(e==null)return!1;let t=JSON.stringify(e);return!!t&&t!==`{}`}function fR({tools:e}){return e.length===0?null:(0,$.jsxs)($P,{defaultOpen:!0,className:`mt-3 space-y-2`,children:[(0,$.jsx)(eF,{children:e.some(e=>e.state===`input-streaming`||e.state===`input-available`)?(0,$.jsx)(VP,{duration:1,children:`Working...`}):`Used ${e.length} tool${e.length===1?``:`s`}`}),(0,$.jsx)(aF,{className:`pl-[28px]`,children:e.map((t,n)=>(0,$.jsx)(mR,{entry:t,isLast:n===e.length-1},t.key))})]})}function pR({entry:e}){return(0,$.jsxs)(`div`,{className:`space-y-3 rounded-md border bg-muted/30 p-3`,children:[dR(e.input)?(0,$.jsx)(aR,{input:e.input}):null,(0,$.jsx)(oR,{errorText:e.error,output:e.output?(0,$.jsx)(`pre`,{className:`max-h-64 overflow-auto whitespace-pre-wrap p-3 font-mono text-xs`,children:e.output}):void 0})]})}function mR({entry:e,isLast:t}){let[n,r]=(0,j.useState)(!1),{label:i,icon:a,detail:o}=uR(e),s=e.state===`input-streaming`||e.state===`input-available`,c=e.state===`output-error`,l=dR(e.input)||!!(e.output||e.error);return(0,$.jsxs)(`div`,{className:`relative min-w-0`,children:[(0,$.jsx)(`div`,{className:`absolute rounded-bl-lg border-b border-l border-border`,style:{top:-5,left:-19,width:24,height:16}}),t?null:(0,$.jsx)(`div`,{className:`absolute w-px border-l border-border`,style:{top:0,bottom:-12,left:-19}}),(0,$.jsx)(nF,{icon:c?de:a,status:s?`active`:`complete`,className:y(`[&>div:first-child]:z-[1] [&>div:first-child]:rounded-full [&>div:first-child]:bg-background [&>div:first-child>div]:hidden`,c&&`[&>div:first-child>svg]:text-destructive`),label:(0,$.jsxs)(`button`,{type:`button`,onClick:()=>{l&&r(e=>!e)},className:y(`flex w-full min-w-0 items-center gap-2 text-left`,l?`cursor-pointer hover:text-foreground`:`cursor-default`),children:[(0,$.jsx)(`span`,{className:`shrink-0`,children:s?(0,$.jsx)(VP,{duration:1,children:i}):i}),o?(0,$.jsx)(iF,{className:`min-w-0 max-w-full truncate font-mono`,children:o.length>80?`${o.slice(0,80)}...`:o}):null,l?(0,$.jsx)(se,{className:y(`ml-auto size-3.5 shrink-0 transition-transform`,n?`rotate-180`:`rotate-0`)}):null]}),children:n&&l?(0,$.jsx)(pR,{entry:e}):null})]})}var hR=e=>typeof e==`object`&&e?e:{},gR=e=>typeof e==`string`?e:void 0;function _R(e,t){let n=hR(t);if(e.includes(`commandExecution`)){let e=n.command;return{icon:Jn,kind:`Run command`,primary:typeof e==`string`?e:Array.isArray(e)?e.join(` `):`command`,secondary:gR(n.cwd)}}if(e.includes(`fileChange`)){let e=(Array.isArray(n.changes)?n.changes:[]).map(e=>gR(hR(e).path)).filter(Boolean).map(e=>String(e).split(/[\\/]/).pop());return{icon:Vn,kind:`Edit files`,primary:e.length>0?e.join(`, `):`file changes`}}return e.includes(`permissions`)?{icon:fe,kind:`Grant permission`,primary:gR(n.reason)??gR(n.permission)??`permission request`}:{icon:Kn,kind:e.split(`/`).slice(-2,-1)[0]??`request`,primary:gR(n.reason)??e}}function vR({entry:e,responded:t,expired:n,onRespond:r}){let[i,a]=(0,j.useState)(!1),{icon:o,kind:s,primary:c,secondary:l}=_R(e.payload.method,e.payload.params),u=e.resolved,d=!u&&!t&&!n;return(0,$.jsxs)(`div`,{className:y(`mt-3 overflow-hidden rounded-lg border bg-card text-sm`,d&&`ring-1 ring-ring/30`),children:[(0,$.jsxs)(`div`,{className:`flex items-start gap-3 p-3`,children:[(0,$.jsx)(`div`,{className:`mt-0.5 flex size-7 shrink-0 items-center justify-center rounded-md bg-muted text-muted-foreground`,children:(0,$.jsx)(o,{className:`size-4`})}),(0,$.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,$.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,$.jsx)(`span`,{className:`font-medium text-foreground`,children:s}),u?(0,$.jsx)(yt,{variant:`outline`,children:u}):n?(0,$.jsx)(yt,{variant:`outline`,children:`expired`}):t?(0,$.jsx)(yt,{variant:`outline`,children:`sending…`}):(0,$.jsx)(yt,{variant:`secondary`,children:`needs approval`})]}),(0,$.jsx)(`code`,{className:`mt-1 block truncate font-mono text-xs text-muted-foreground`,children:c}),l&&(0,$.jsx)(`div`,{className:`truncate text-xs text-muted-foreground/70`,title:l,children:l})]})]}),d&&(0,$.jsxs)(`div`,{className:`flex items-center gap-2 px-3 pb-3`,children:[(0,$.jsx)(vt,{size:`sm`,onClick:()=>r(e.key,e.payload.requestId,`accept`),children:`Accept`}),(0,$.jsx)(vt,{size:`sm`,variant:`outline`,onClick:()=>r(e.key,e.payload.requestId,`acceptForSession`),children:`Accept for session`}),(0,$.jsx)(vt,{size:`sm`,variant:`ghost`,className:`text-destructive hover:text-destructive`,onClick:()=>r(e.key,e.payload.requestId,`decline`),children:`Decline`})]}),n&&(0,$.jsx)(`div`,{className:`px-3 pb-3 text-xs text-muted-foreground`,children:`This approval can no longer be answered — the waiting turn ended (the engine restarted or the request timed out). Resend your last message to continue.`}),(0,$.jsxs)(ue,{open:i,onOpenChange:a,children:[(0,$.jsxs)(le,{className:`flex w-full items-center gap-1.5 border-t px-3 py-1.5 text-xs text-muted-foreground transition-colors hover:text-foreground`,children:[(0,$.jsx)(ce,{className:y(`size-3.5 transition-transform`,i&&`rotate-90`)}),`Details`]}),(0,$.jsx)(O,{children:(0,$.jsx)(`pre`,{className:`max-h-72 overflow-auto border-t bg-muted/40 p-3 font-mono text-xs leading-relaxed`,children:JSON.stringify(e.payload.params,null,2)})})]})]})}var yR=j.createContext(void 0);function bR(e){let t=j.useContext(yR);if(t===void 0&&!e)throw Error(f(50));return t}var xR=e(o()),SR={...ht,instantType:Pe(e=>e.instantType),hasViewport:Pe(e=>e.hasViewport)},CR=class e extends Le{constructor(e,t,n=!1){let r=new Xe,i={...wR(),...e};i.floatingRootContext=dt(r,t,n),super(i,{popupRef:j.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:r,closeDelayRef:{current:300},inlineRectCoordsRef:{current:void 0}},SR)}setOpen=(e,t)=>{let n=t.reason,r=n===w,i=e&&n===`trigger-focus`,a=!e&&(n===`trigger-press`||n===`escape-key`);if(t.preventUnmountOnClose=()=>{this.set(`preventUnmountingOnClose`,!0)},this.context.onOpenChange?.(e,t),t.isCanceled)return;let o=t.event;e&&r&&t.trigger&&`clientX`in o&&`clientY`in o&&this.context.inlineRectCoordsRef.current?.element!==t.trigger&&or(this.context.inlineRectCoordsRef,t.trigger,o.clientX,o.clientY),this.state.floatingRootContext.dispatchOpenChange(e,t);let s=()=>{let r={open:e};i?r.instantType=`focus`:a?r.instantType=`dismiss`:n===`trigger-hover`&&(r.instantType=void 0),ze(r,e,t.trigger),this.update(r)};r?xR.flushSync(s):s()};static useStore(t,n){return Oe(t,(t,r)=>new e(n,t,r)).store}};function wR(){return{...Je(),instantType:void 0,hasViewport:!1}}function TR(e){let{open:t,defaultOpen:n=!1,onOpenChange:r,onOpenChangeComplete:i,actionsRef:a,handle:o,triggerId:s,defaultTriggerId:c=null,children:l}=e,u=CR.useStore(o?.store,{open:n,openProp:t,activeTriggerId:c,triggerIdProp:s});He(()=>{t===void 0&&u.state.open===!1&&n===!0&&u.update({open:!0,activeTriggerId:c})}),u.useControlledProp(`openProp`,t),u.useControlledProp(`triggerIdProp`,s),u.useContextCallback(`onOpenChange`,r),u.useContextCallback(`onOpenChangeComplete`,i);let d=u.useState(`open`),f=u.useState(`activeTriggerId`),m=u.useState(`mounted`),h=u.useState(`payload`);De(u);let{forceUnmount:g}=ft(d,u,()=>{u.context.inlineRectCoordsRef.current=void 0});p(()=>{d&&(f??u.set(`payload`,void 0))},[u,f,d]);let _=j.useCallback(()=>{u.setOpen(!1,x(C))},[u]);j.useImperativeHandle(a,()=>({unmount:g,close:_}),[g,_]);let v=d||m;return(0,$.jsxs)(yR.Provider,{value:u,children:[v&&(0,$.jsx)(ER,{store:u}),typeof l==`function`?l({payload:h}):l]})}function ER({store:e}){let t=gt(e.useState(`floatingRootContext`));return Be(e,{activeTriggerProps:t.reference??h,inactiveTriggerProps:t.trigger??h,popupProps:j.useMemo(()=>g(mt,t.floating),[t.floating])}),null}var DR=We(function(e){return bR(!0)?(0,$.jsx)(TR,{...e}):(0,$.jsx)(Ae,{children:(0,$.jsx)(TR,{...e})})}),OR=j.createContext(void 0);function kR(){let e=j.useContext(OR);if(e===void 0)throw Error(f(48));return e}var AR=j.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e;return bR().useState(`mounted`)||n?(0,$.jsx)(OR.Provider,{value:n,children:(0,$.jsx)(ut,{ref:t,...r})}):null}),jR=ke(function(e,t){let{render:n,className:r,delay:i,closeDelay:a,id:o,payload:s,handle:c,style:l,...u}=e,d=bR(!0),m=c?.store??d;if(!m)throw Error(f(89));let h=S(o),g=m.useState(`isTriggerActive`,h),v=m.useState(`isOpenedByTrigger`,h),y=m.useState(`floatingRootContext`),b=m.context.inlineRectCoordsRef,x=j.useRef(null),C=i??600,w=a??300,{registerTrigger:T,isMountedByThisTrigger:E}=Ie(h,x,m,{payload:s});p(()=>{E&&(m.context.closeDelayRef.current=w)},[m,E,w]);let ee=ct(y,{mouseOnly:!0,move:!1,handleClose:$e(),delay:()=>({open:C,close:w}),triggerElementRef:x,isActiveTrigger:g,isClosing:()=>m.select(`transitionStatus`)===`ending`}),te=et(y,{delay:C}),D={open:v},ne=m.useState(`triggerProps`,E),re=ar(b,v);return _(`a`,e,{state:D,ref:[t,T,x],props:[ee,te.reference,ne,re,{id:h},u],stateAttributesMapping:Ze})}),MR=j.createContext(void 0);function NR(){let e=j.useContext(MR);if(e===void 0)throw Error(f(49));return e}var PR=j.forwardRef(function(e,t){let{render:n,className:r,anchor:i,positionMethod:a=`absolute`,side:o=`bottom`,align:s=`center`,sideOffset:c=0,alignOffset:l=0,collisionBoundary:u=`clipping-ancestors`,collisionPadding:d=5,arrowPadding:f=5,sticky:m=!1,disableAnchorTracking:h=!1,collisionAvoidance:g=Ge,style:_,...v}=e,y=bR(),b=kR(),x=Ve(),S=y.useState(`open`),C=y.useState(`mounted`),w=y.useState(`floatingRootContext`),T=y.useState(`instantType`),E=y.useState(`transitionStatus`),ee=y.useState(`hasViewport`),te=y.context.inlineRectCoordsRef,D=tt({anchor:i,floatingRootContext:w,positionMethod:a,mounted:C,side:o,sideOffset:c,align:s,alignOffset:l,arrowPadding:f,collisionBoundary:u,collisionPadding:d,sticky:m,disableAnchorTracking:h,keepMounted:b,nodeId:x,collisionAvoidance:g,adaptiveOrigin:ee?Ye:void 0,inline:sr(te)}),ne=D.update;p(()=>{S&&C&&ne()},[S,C,ne]);let re=ot(e,{open:S,side:D.side,align:D.align,anchorHidden:D.anchorHidden,instant:T},{styles:D.positionerStyles,transitionStatus:E,props:v,refs:[t,y.useStateSetter(`positionerElement`)],hidden:!C,inert:!S});return(0,$.jsx)(MR.Provider,{value:D,children:(0,$.jsx)(Ue,{id:x,children:re})})}),FR={...it,...Fe},IR=j.forwardRef(function(e,t){let{className:n,render:r,style:i,...a}=e,o=bR(),{side:s,align:c}=NR(),l=o.useState(`open`),u=o.useState(`instantType`),d=o.useState(`transitionStatus`),f=o.useState(`popupProps`),p=o.useState(`floatingRootContext`);return nt({open:l,ref:o.context.popupRef,onComplete(){l&&o.context.onOpenChangeComplete?.(!0)}}),at(p,{closeDelay:v(()=>o.context.closeDelayRef.current)}),_(`div`,e,{state:{open:l,side:s,align:c,instant:u,transitionStatus:d},ref:[t,o.context.popupRef,o.useStateSetter(`popupElement`)],props:[f,lt(d),a],stateAttributesMapping:FR})});function LR({...e}){return(0,$.jsx)(DR,{"data-slot":`hover-card`,...e})}function RR({...e}){return(0,$.jsx)(jR,{"data-slot":`hover-card-trigger`,...e})}function zR({className:e,side:t=`bottom`,sideOffset:n=4,align:r=`center`,alignOffset:i=4,...a}){return(0,$.jsx)(AR,{"data-slot":`hover-card-portal`,children:(0,$.jsx)(PR,{align:r,alignOffset:i,side:t,sideOffset:n,className:`isolate z-50`,children:(0,$.jsx)(IR,{"data-slot":`hover-card-content`,className:y(`z-50 w-64 origin-(--transform-origin) rounded-lg bg-popover p-2.5 text-sm text-popover-foreground shadow-md ring-1 ring-foreground/10 outline-hidden duration-100 data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95`,e),...a})})})}var BR={audio:Wn,document:Hn,image:Un,source:Ke,unknown:Gn,video:Yn},VR=e=>{if(e.type===`source-document`)return`source`;let t=e.mediaType??``;return t.startsWith(`image/`)?`image`:t.startsWith(`video/`)?`video`:t.startsWith(`audio/`)?`audio`:t.startsWith(`application/`)||t.startsWith(`text/`)?`document`:`unknown`},HR=e=>{if(e.type===`source-document`)return e.title||e.filename||`Source`;let t=VR(e);return e.filename||(t===`image`?`Image`:`Attachment`)},UR=(e,t,n)=>n?(0,$.jsx)(`img`,{alt:t||`Image`,className:`size-full object-cover`,height:96,src:e,width:96}):(0,$.jsx)(`img`,{alt:t||`Image`,className:`size-full rounded object-cover`,height:20,src:e,width:20}),WR=(0,j.createContext)(null),GR=(0,j.createContext)(null),KR=()=>(0,j.useContext)(WR)??{variant:`grid`},qR=()=>{let e=(0,j.useContext)(GR);if(!e)throw Error(`Attachment components must be used within <Attachment>`);return e},JR=({variant:e=`grid`,className:t,children:n,...r})=>{let i=(0,j.useMemo)(()=>({variant:e}),[e]);return(0,$.jsx)(WR.Provider,{value:i,children:(0,$.jsx)(`div`,{className:y(`flex items-start`,e===`list`?`flex-col gap-2`:`flex-wrap gap-2`,e===`grid`&&`ml-auto w-fit`,t),...r,children:n})})},YR=({data:e,onRemove:t,className:n,children:r,...i})=>{let{variant:a}=KR(),o=VR(e),s=(0,j.useMemo)(()=>({data:e,mediaCategory:o,onRemove:t,variant:a}),[e,o,t,a]);return(0,$.jsx)(GR.Provider,{value:s,children:(0,$.jsx)(`div`,{className:y(`group relative`,a===`grid`&&`size-24 overflow-hidden rounded-lg`,a===`inline`&&[`flex h-8 cursor-pointer select-none items-center gap-1.5`,`rounded-md border border-border px-1.5`,`font-medium text-sm transition-all`,`hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50`],a===`list`&&[`flex w-full items-center gap-3 rounded-lg border p-3`,`hover:bg-accent/50`],n),...i,children:r})})},XR=({fallbackIcon:e,className:t,...n})=>{let{data:r,mediaCategory:i,variant:a}=qR(),o=a===`inline`?`size-3`:`size-4`,s=e=>(0,$.jsx)(e,{className:y(o,`text-muted-foreground`)}),c=()=>{if(i===`image`&&r.type===`file`&&r.url)return UR(r.url,r.filename,a===`grid`);if(i===`video`&&r.type===`file`&&r.url)return(0,$.jsx)(`video`,{className:`size-full object-cover`,muted:!0,src:r.url});let t=BR[i];return e??s(t)};return(0,$.jsx)(`div`,{className:y(`flex shrink-0 items-center justify-center overflow-hidden`,a===`grid`&&`size-full bg-muted`,a===`inline`&&`size-5 rounded bg-background`,a===`list`&&`size-12 rounded bg-muted`,t),...n,children:c()})},ZR=({showMediaType:e=!1,className:t,...n})=>{let{data:r,variant:i}=qR(),a=HR(r);return i===`grid`?null:(0,$.jsxs)(`div`,{className:y(`min-w-0 flex-1`,t),...n,children:[(0,$.jsx)(`span`,{className:`block truncate`,children:a}),e&&r.mediaType&&(0,$.jsx)(`span`,{className:`block truncate text-muted-foreground text-xs`,children:r.mediaType})]})},QR=({label:e=`Remove`,className:t,children:n,...r})=>{let{onRemove:i,variant:a}=qR(),o=(0,j.useCallback)(e=>{e.stopPropagation(),i?.()},[i]);return i?(0,$.jsxs)(vt,{"aria-label":e,className:y(a===`grid`&&[`absolute top-2 right-2 size-6 rounded-full p-0`,`bg-background/80 backdrop-blur-sm`,`opacity-0 transition-opacity group-hover:opacity-100`,`hover:bg-background`,`[&>svg]:size-3`],a===`inline`&&[`size-5 rounded p-0`,`opacity-0 transition-opacity group-hover:opacity-100`,`[&>svg]:size-2.5`],a===`list`&&[`size-8 shrink-0 rounded p-0`,`[&>svg]:size-4`],t),onClick:o,type:`button`,variant:`ghost`,...r,children:[n??(0,$.jsx)(ye,{}),(0,$.jsx)(`span`,{className:`sr-only`,children:e})]}):null},$R=e=>(0,$.jsx)(LR,{...e}),ez=({delay:e=0,closeDelay:t=0,...n})=>(0,$.jsx)(RR,{closeDelay:t,delay:e,...n}),tz=({align:e=`start`,className:t,...n})=>(0,$.jsx)(zR,{align:e,className:y(`w-auto p-2`,t),...n});function nz(e){let[t,n]=(0,j.useState)([]),[r,i]=(0,j.useState)(!1);return{attachments:t,uploading:r,addFiles:async t=>{if(!(!t||t.length===0)){i(!0);try{let r=new FormData;r.set(`path`,`uploads`);let i=Array.from(t);for(let e of i)r.append(`file`,e);let{saved:a}=await b(l(`/api/files/upload`,e),r),o=a.map((t,n)=>({id:t,type:`file`,url:s(t,e),mediaType:i[n]?.type||`application/octet-stream`,filename:i[n]?.name??t.split(`/`).pop()??t,workspacePath:t}));n(e=>[...e,...o])}finally{i(!1)}}},remove:e=>n(t=>t.filter(t=>t.id!==e)),clear:()=>n([]),toRunAttachments:()=>t.map(e=>({name:(e.type===`file`?e.filename:void 0)??e.workspacePath,path:e.workspacePath,mediaType:e.mediaType}))}}function rz({attachments:e,onRemove:t}){return e.length===0?null:(0,$.jsx)(JR,{variant:`inline`,className:`ml-0 w-full`,children:e.map(e=>(0,$.jsxs)($R,{children:[(0,$.jsx)(ez,{render:(0,$.jsxs)(YR,{data:e,onRemove:()=>t(e.id),children:[(0,$.jsx)(XR,{}),(0,$.jsx)(ZR,{className:`max-w-40`}),(0,$.jsx)(QR,{})]})}),(0,$.jsx)(tz,{children:e.type===`file`&&e.mediaType?.startsWith(`image/`)?(0,$.jsx)(`img`,{alt:e.filename??`attachment`,className:`max-h-64 max-w-64 rounded object-contain`,src:e.url}):(0,$.jsx)(`span`,{className:`text-xs`,children:e.workspacePath})})]},e.id))})}function iz({onFiles:e,uploading:t,className:n}){let r=(0,j.useRef)(null);return(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(`button`,{type:`button`,className:n,title:t?`Uploading…`:`Attach files`,disabled:t,onClick:()=>r.current?.click(),children:(0,$.jsx)(Gn,{className:`size-4`})}),(0,$.jsx)(`input`,{ref:r,type:`file`,multiple:!0,hidden:!0,onChange:t=>{e(t.target.files),t.target.value=``}})]})}var az={damping:.7,stiffness:.05,mass:1.25},oz=70,sz=1e3/60,cz=350,lz=!1;globalThis.document?.addEventListener(`mousedown`,()=>{lz=!0}),globalThis.document?.addEventListener(`mouseup`,()=>{lz=!1}),globalThis.document?.addEventListener(`click`,()=>{lz=!1});var uz=(e={})=>{let[t,n]=(0,j.useState)(!1),[r,i]=(0,j.useState)(e.initial!==!1),[a,o]=(0,j.useState)(!1),s=(0,j.useRef)(null);s.current=e;let c=(0,j.useCallback)(()=>{if(!lz)return!1;let e=window.getSelection();if(!e||!e.rangeCount)return!1;let t=e.getRangeAt(0);return t.commonAncestorContainer.contains(g.current)||g.current?.contains(t.commonAncestorContainer)},[]),l=(0,j.useCallback)(e=>{d.isAtBottom=e,i(e)},[]),u=(0,j.useCallback)(e=>{d.escapedFromLock=e,n(e)},[]),d=(0,j.useMemo)(()=>{let n;return{escapedFromLock:t,isAtBottom:r,resizeDifference:0,accumulated:0,velocity:0,listeners:new Set,get scrollTop(){return g.current?.scrollTop??0},set scrollTop(e){if(g.current){let{scrollBehavior:t}=getComputedStyle(g.current);t!==`auto`&&(g.current.style.scrollBehavior=`auto`),g.current.scrollTop=e,d.ignoreScrollToTop=g.current.scrollTop,t!==`auto`&&(g.current.style.scrollBehavior=t)}},get targetScrollTop(){return!g.current||!_.current?0:g.current.scrollHeight-1-g.current.clientHeight},get calculatedTargetScrollTop(){if(!g.current||!_.current)return 0;let{targetScrollTop:t}=this;if(!e.targetScrollTop)return t;if(n?.targetScrollTop===t)return n.calculatedScrollTop;let r=Math.max(Math.min(e.targetScrollTop(t,{scrollElement:g.current,contentElement:_.current}),t),0);return n={targetScrollTop:t,calculatedScrollTop:r},requestAnimationFrame(()=>{n=void 0}),r},get scrollDifference(){return this.calculatedTargetScrollTop-this.scrollTop},get isNearBottom(){return this.scrollDifference<=oz}}},[]),f=(0,j.useCallback)((e={})=>{typeof e==`string`&&(e={animation:e}),e.preserveScrollPosition||l(!0);let t=Date.now()+(Number(e.wait)||0),n=pz(s.current,e.animation),{ignoreEscapes:r=!1}=e,i,a=d.calculatedTargetScrollTop;e.duration instanceof Promise?e.duration.finally(()=>{i=Date.now()}):i=t+(e.duration??0);let o=async()=>{let e=new Promise(requestAnimationFrame).then(()=>{if(!d.isAtBottom)return d.animation=void 0,!1;let{scrollTop:l}=d,u=performance.now(),p=(u-(d.lastTick??u))/sz;if(d.animation||={behavior:n,promise:e,ignoreEscapes:r},d.animation.behavior===n&&(d.lastTick=u),c()||t>Date.now())return o();if(l<Math.min(a,d.calculatedTargetScrollTop)){if(d.animation?.behavior===n){if(n===`instant`)return d.scrollTop=d.calculatedTargetScrollTop,o();d.velocity=(n.damping*d.velocity+n.stiffness*d.scrollDifference)/n.mass,d.accumulated+=d.velocity*p,d.scrollTop+=d.accumulated,d.scrollTop!==l&&(d.accumulated=0)}return o()}return i>Date.now()?(a=d.calculatedTargetScrollTop,o()):(d.animation=void 0,d.scrollTop<d.calculatedTargetScrollTop?f({animation:pz(s.current,s.current.resize),ignoreEscapes:r,duration:Math.max(0,i-Date.now())||void 0}):d.isAtBottom)});return e.then(e=>(requestAnimationFrame(()=>{d.animation||(d.lastTick=void 0,d.velocity=0)}),e))};return e.wait!==!0&&(d.animation=void 0),d.animation?.behavior===n?d.animation.promise:o()},[l,c,d]),p=(0,j.useCallback)(()=>{u(!0),l(!1)},[u,l]),m=(0,j.useCallback)(({target:e})=>{if(e!==g.current)return;let{scrollTop:t,ignoreScrollToTop:n}=d,{lastScrollTop:r=t}=d;d.lastScrollTop=t,d.ignoreScrollToTop=void 0,n&&n>t&&(r=n),o(d.isNearBottom),setTimeout(()=>{if(d.resizeDifference||t===n)return;if(c()){u(!0),l(!1);return}let e=t>r,i=t<r;if(d.animation?.ignoreEscapes){d.scrollTop=r;return}i&&(u(!0),l(!1)),e&&u(!1),!d.escapedFromLock&&d.isNearBottom&&l(!0)},1)},[u,l,c,d]),h=(0,j.useCallback)(({target:e,deltaY:t})=>{let n=e;for(;![`scroll`,`auto`].includes(getComputedStyle(n).overflow);){if(!n.parentElement)return;n=n.parentElement}n===g.current&&t<0&&g.current.scrollHeight>g.current.clientHeight&&!d.animation?.ignoreEscapes&&(u(!0),l(!1))},[u,l,d]),g=dz(e=>{g.current?.removeEventListener(`scroll`,m),g.current?.removeEventListener(`wheel`,h),e?.addEventListener(`scroll`,m,{passive:!0}),e?.addEventListener(`wheel`,h,{passive:!0})},[]),_=dz(e=>{if(d.resizeObserver?.disconnect(),d.resizeObserver=void 0,!e)return;let t;d.resizeObserver=new ResizeObserver(([e])=>{let{height:n}=e.contentRect,r=n-(t??n);if(d.resizeDifference=r,d.scrollTop>d.targetScrollTop&&(d.scrollTop=d.targetScrollTop),o(d.isNearBottom),r>=0){let e=pz(s.current,t?s.current.resize:s.current.initial);f({animation:e,wait:!0,preserveScrollPosition:!0,duration:e===`instant`?void 0:cz})}else d.isNearBottom&&(u(!1),l(!0));t=n,requestAnimationFrame(()=>{setTimeout(()=>{d.resizeDifference===r&&(d.resizeDifference=0)},1)})}),d.resizeObserver?.observe(e)},[]);return{contentRef:_,scrollRef:g,scrollToBottom:f,stopScroll:p,isAtBottom:r||a,isNearBottom:a,escapedFromLock:t,state:d}};function dz(e,t){let n=(0,j.useCallback)(t=>(n.current=t,e(t)),t);return n}var fz=new Map;function pz(...e){let t={...az},n=!1;for(let r of e){if(r===`instant`){n=!0;continue}typeof r==`object`&&(n=!1,t.damping=r.damping??t.damping,t.stiffness=r.stiffness??t.stiffness,t.mass=r.mass??t.mass)}let r=JSON.stringify(t);return fz.has(r)||fz.set(r,Object.freeze(t)),n?`instant`:fz.get(r)}var mz=(0,j.createContext)(null),hz=typeof window<`u`?j.useLayoutEffect:j.useEffect;function gz({instance:e,children:t,resize:n,initial:r,mass:i,damping:a,stiffness:o,targetScrollTop:s,contextRef:c,...l}){let u=(0,j.useRef)(null),d=uz({mass:i,damping:a,stiffness:o,resize:n,initial:r,targetScrollTop:j.useCallback((e,t)=>(y?.targetScrollTop??s)?.(e,t)??e,[s])}),{scrollRef:f,contentRef:p,scrollToBottom:m,stopScroll:h,isAtBottom:g,escapedFromLock:_,state:v}=e??d,y=(0,j.useMemo)(()=>({scrollToBottom:m,stopScroll:h,scrollRef:f,isAtBottom:g,escapedFromLock:_,contentRef:p,state:v,get targetScrollTop(){return u.current},set targetScrollTop(e){u.current=e}}),[m,g,p,f,h,_,v]);return(0,j.useImperativeHandle)(c,()=>y,[y]),hz(()=>{f.current&&getComputedStyle(f.current).overflow===`visible`&&(f.current.style.overflow=`auto`)},[]),j.createElement(mz.Provider,{value:y},j.createElement(`div`,{...l},typeof t==`function`?t(y):t))}(function(e){function t({children:e,scrollClassName:t,...n}){let r=_z();return j.createElement(`div`,{ref:r.scrollRef,style:{height:`100%`,width:`100%`,scrollbarGutter:`stable both-edges`},className:t},j.createElement(`div`,{...n,ref:r.contentRef},typeof e==`function`?e(r):e))}e.Content=t})(gz||={});function _z(){let e=(0,j.useContext)(mz);if(!e)throw Error(`use-stick-to-bottom component context must be used within a StickToBottom component`);return e}var vz=({className:e,...t})=>(0,$.jsx)(gz,{className:y(`shadcn-scrollbar relative flex-1 overflow-y-hidden`,e),initial:`smooth`,resize:`smooth`,role:`log`,...t}),yz=({className:e,...t})=>(0,$.jsx)(gz.Content,{className:y(`flex flex-col gap-8 p-4`,e),...t}),bz=({className:e,...t})=>{let{isAtBottom:n,scrollToBottom:r}=_z(),i=(0,j.useCallback)(()=>{r()},[r]);return!n&&(0,$.jsx)(vt,{className:y(`absolute bottom-4 left-[50%] translate-x-[-50%] rounded-full dark:bg-background dark:hover:bg-muted`,e),onClick:i,size:`icon`,type:`button`,variant:`outline`,...t,children:(0,$.jsx)(Ln,{className:`size-4`})})};_t(`flex w-fit items-stretch *:focus-visible:relative *:focus-visible:z-10 has-[>[data-slot=button-group]]:gap-2 has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-r-lg [&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit [&>input]:flex-1`,{variants:{orientation:{horizontal:`*:data-slot:rounded-r-none [&>[data-slot]:not(:has(~[data-slot]))]:rounded-r-lg! [&>[data-slot]~[data-slot]]:rounded-l-none [&>[data-slot]~[data-slot]]:border-l-0`,vertical:`flex-col *:data-slot:rounded-b-none [&>[data-slot]:not(:has(~[data-slot]))]:rounded-b-lg! [&>[data-slot]~[data-slot]]:rounded-t-none [&>[data-slot]~[data-slot]]:border-t-0`}},defaultVariants:{orientation:`horizontal`}}),(0,j.createContext)(null);var xz={cjk:Ai,code:jp,math:Vb,mermaid:aw},Sz=(0,j.memo)(({className:e,...t})=>(0,$.jsx)(Rt,{className:y(`size-full [&>*:first-child]:mt-0 [&>*:last-child]:mb-0`,e),plugins:xz,...t}),(e,t)=>e.children===t.children&&t.isAnimating===e.isAnimating);Sz.displayName=`MessageResponse`;var Cz=j.createContext(void 0);function wz(){let e=j.useContext(Cz);if(e===void 0)throw Error(f(53));return e}var Tz=function(e){return e.scrollAreaCornerHeight=`--scroll-area-corner-height`,e.scrollAreaCornerWidth=`--scroll-area-corner-width`,e}({});function Ez(e,t,n){if(!e)return 0;let r=getComputedStyle(e),i=n===`x`?`Inline`:`Block`;return n===`x`&&t===`margin`?parseFloat(r[`${t}InlineStart`])*2:parseFloat(r[`${t}${i}Start`])+parseFloat(r[`${t}${i}End`])}var Dz=function(e){return e.orientation=`data-orientation`,e.hovering=`data-hovering`,e.scrolling=`data-scrolling`,e.hasOverflowX=`data-has-overflow-x`,e.hasOverflowY=`data-has-overflow-y`,e.overflowXStart=`data-overflow-x-start`,e.overflowXEnd=`data-overflow-x-end`,e.overflowYStart=`data-overflow-y-start`,e.overflowYEnd=`data-overflow-y-end`,e}({}),Oz=function(e){return e.scrolling=`data-scrolling`,e.hasOverflowX=`data-has-overflow-x`,e.hasOverflowY=`data-has-overflow-y`,e.overflowXStart=`data-overflow-x-start`,e.overflowXEnd=`data-overflow-x-end`,e.overflowYStart=`data-overflow-y-start`,e.overflowYEnd=`data-overflow-y-end`,e}({}),kz={hasOverflowX:e=>e?{[Oz.hasOverflowX]:``}:null,hasOverflowY:e=>e?{[Oz.hasOverflowY]:``}:null,overflowXStart:e=>e?{[Oz.overflowXStart]:``}:null,overflowXEnd:e=>e?{[Oz.overflowXEnd]:``}:null,overflowYStart:e=>e?{[Oz.overflowYStart]:``}:null,overflowYEnd:e=>e?{[Oz.overflowYEnd]:``}:null,cornerHidden:()=>null},Az={x:0,y:0},jz={width:0,height:0},Mz={xStart:!1,xEnd:!1,yStart:!1,yEnd:!1},Nz={x:!0,y:!0,corner:!0},Pz=j.forwardRef(function(e,t){let{render:n,className:r,overflowEdgeThreshold:i,style:a,...o}=e,s=Fz(i),c=S(),l=je(),u=je(),{nonce:d,disableStyleElements:f}=D(),[p,m]=j.useState(!1),[h,g]=j.useState(!1),[y,b]=j.useState(!1),[x,C]=j.useState(!1),[w,T]=j.useState(!1),[E,ee]=j.useState(jz),[te,ne]=j.useState(jz),[ie,ae]=j.useState(Mz),[oe,se]=j.useState(Nz),ce=j.useRef(null),O=j.useRef(null),le=j.useRef(null),ue=j.useRef(null),de=j.useRef(null),fe=j.useRef(null),pe=j.useRef(null),me=j.useRef(!1),he=j.useRef(0),ge=j.useRef(0),_e=j.useRef(0),ve=j.useRef(0),ye=j.useRef(`vertical`),be=j.useRef(Az),xe=v(e=>{let t=e.x-be.current.x,n=e.y-be.current.y;be.current=e,n!==0&&(b(!0),l.start(500,()=>{b(!1)})),t!==0&&(g(!0),u.start(500,()=>{g(!1)}))}),Se=v(e=>{e.button===0&&(me.current=!0,he.current=e.clientY,ge.current=e.clientX,ye.current=e.currentTarget.getAttribute(Dz.orientation),O.current&&(_e.current=O.current.scrollTop,ve.current=O.current.scrollLeft),de.current&&ye.current===`vertical`&&de.current.setPointerCapture(e.pointerId),fe.current&&ye.current===`horizontal`&&fe.current.setPointerCapture(e.pointerId))}),Ce=v(e=>{if(!me.current)return;let t=e.clientY-he.current,n=e.clientX-ge.current;if(O.current){let r=O.current.scrollHeight,i=O.current.clientHeight,a=O.current.scrollWidth,o=O.current.clientWidth;if(de.current&&le.current&&ye.current===`vertical`){let n=Ez(le.current,`padding`,`y`),a=Ez(de.current,`margin`,`y`),o=de.current.offsetHeight,s=t/(le.current.offsetHeight-o-n-a);O.current.scrollTop=_e.current+s*(r-i),e.preventDefault(),b(!0),l.start(500,()=>{b(!1)})}if(fe.current&&ue.current&&ye.current===`horizontal`){let t=Ez(ue.current,`padding`,`x`),r=Ez(fe.current,`margin`,`x`),i=fe.current.offsetWidth,s=n/(ue.current.offsetWidth-i-t-r);O.current.scrollLeft=ve.current+s*(a-o),e.preventDefault(),g(!0),u.start(500,()=>{g(!1)})}}}),we=v(e=>{me.current=!1,de.current&&ye.current===`vertical`&&de.current.releasePointerCapture(e.pointerId),fe.current&&ye.current===`horizontal`&&fe.current.releasePointerCapture(e.pointerId)});function Te(e){C(e.pointerType===`touch`)}function Ee(e){Te(e),e.pointerType!==`touch`&&m(rt(ce.current,e.target))}let De=j.useMemo(()=>({scrolling:h||y,hasOverflowX:!oe.x,hasOverflowY:!oe.y,overflowXStart:ie.xStart,overflowXEnd:ie.xEnd,overflowYStart:ie.yStart,overflowYEnd:ie.yEnd,cornerHidden:oe.corner}),[h,y,oe.x,oe.y,oe.corner,ie]),Oe={role:`presentation`,onPointerEnter:Ee,onPointerMove:Ee,onPointerDown:Te,onPointerLeave(){m(!1)},style:{position:`relative`,[Tz.scrollAreaCornerHeight]:`${E.height}px`,[Tz.scrollAreaCornerWidth]:`${E.width}px`}},ke=_(`div`,e,{state:De,ref:[t,ce],props:[Oe,o],stateAttributesMapping:kz}),Ae=j.useMemo(()=>({handlePointerDown:Se,handlePointerMove:Ce,handlePointerUp:we,handleScroll:xe,cornerSize:E,setCornerSize:ee,thumbSize:te,setThumbSize:ne,hasMeasuredScrollbar:w,setHasMeasuredScrollbar:T,touchModality:x,cornerRef:pe,scrollingX:h,setScrollingX:g,scrollingY:y,setScrollingY:b,hovering:p,setHovering:m,viewportRef:O,rootRef:ce,scrollbarYRef:le,scrollbarXRef:ue,thumbYRef:de,thumbXRef:fe,rootId:c,hiddenState:oe,setHiddenState:se,overflowEdges:ie,setOverflowEdges:ae,viewportState:De,overflowEdgeThreshold:s}),[Se,Ce,we,xe,E,te,w,x,h,g,y,b,p,m,c,oe,ie,De,s]);return(0,$.jsxs)(Cz.Provider,{value:Ae,children:[!f&&re.getElement(d),ke]})});function Fz(e){if(typeof e==`number`){let t=Math.max(0,e);return{xStart:t,xEnd:t,yStart:t,yEnd:t}}return{xStart:Math.max(0,e?.xStart||0),xEnd:Math.max(0,e?.xEnd||0),yStart:Math.max(0,e?.yStart||0),yEnd:Math.max(0,e?.yEnd||0)}}var Iz=j.createContext(void 0);function Lz(){let e=j.useContext(Iz);if(e===void 0)throw Error(f(55));return e}var Rz=function(e){return e.scrollAreaOverflowXStart=`--scroll-area-overflow-x-start`,e.scrollAreaOverflowXEnd=`--scroll-area-overflow-x-end`,e.scrollAreaOverflowYStart=`--scroll-area-overflow-y-start`,e.scrollAreaOverflowYEnd=`--scroll-area-overflow-y-end`,e}({}),zz=!1;function Bz(){zz||Ee||(typeof CSS<`u`&&`registerProperty`in CSS&&[Rz.scrollAreaOverflowXStart,Rz.scrollAreaOverflowXEnd,Rz.scrollAreaOverflowYStart,Rz.scrollAreaOverflowYEnd].forEach(e=>{try{CSS.registerProperty({name:e,syntax:`<length>`,inherits:!1,initialValue:`0px`})}catch{}}),zz=!0)}var Vz=j.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{viewportRef:o,scrollbarYRef:s,scrollbarXRef:c,thumbYRef:l,thumbXRef:u,cornerRef:d,cornerSize:f,setCornerSize:m,setThumbSize:h,rootId:g,setHiddenState:y,hiddenState:b,setHasMeasuredScrollbar:x,handleScroll:S,setHovering:C,setOverflowEdges:w,overflowEdges:T,overflowEdgeThreshold:E,scrollingX:te,scrollingY:D}=wz(),ne=st(),ie=j.useRef(!0),oe=j.useRef([NaN,NaN,NaN,NaN]),se=je(),ce=je(),O=v(()=>{let e=o.current,t=s.current,n=c.current,r=l.current,i=u.current,a=d.current;if(!e)return;let p=e.scrollHeight,g=e.scrollWidth,_=e.clientHeight,v=e.clientWidth,b=e.scrollTop,S=e.scrollLeft,C=oe.current,T=Number.isNaN(C[0]);if(C[0]=_,C[1]=p,C[2]=v,C[3]=g,T&&x(!0),p===0||g===0)return;let te=Hz(e),D=te.y,re=te.x,ie=v/g,se=_/p,ce=Math.max(0,g-v),O=Math.max(0,p-_),le=0,ue=0;if(!re){let e=0;e=ee(ne===`rtl`?-S:S,0,ce),le=ae(e,ce),ue=ce-le}let de=D?0:ee(b,0,O),fe=D?0:ae(de,O),pe=D?0:O-fe,me=re?0:v,he=D?0:_,ge=0,_e=0;!re&&!D&&(ge=t?.offsetWidth||0,_e=n?.offsetHeight||0);let ve=f.width===0&&f.height===0,ye=ve?ge:0,be=ve?_e:0,xe=Ez(n,`padding`,`x`),Se=Ez(t,`padding`,`y`),Ce=Ez(i,`margin`,`x`),we=Ez(r,`margin`,`y`),Te=me-xe-Ce,Ee=he-Se-we,De=n?Math.min(n.offsetWidth-ye,Te):Te,Oe=t?Math.min(t.offsetHeight-be,Ee):Ee,ke=Math.max(16,De*ie),Ae=Math.max(16,Oe*se);if(h(e=>e.height===Ae&&e.width===ke?e:{width:ke,height:Ae}),t&&r){let e=t.offsetHeight-Ae-Se-we,n=p-_,i=n===0?0:b/n,a=Math.min(e,Math.max(0,i*e));r.style.transform=`translate3d(0,${a}px,0)`}if(n&&i){let e=n.offsetWidth-ke-xe-Ce,t=g-v,r=t===0?0:S/t,a=ne===`rtl`?ee(r*e,-e,0):ee(r*e,0,e);i.style.transform=`translate3d(${a}px,0,0)`}let je=[[Rz.scrollAreaOverflowXStart,le],[Rz.scrollAreaOverflowXEnd,ue],[Rz.scrollAreaOverflowYStart,fe],[Rz.scrollAreaOverflowYEnd,pe]];for(let[t,n]of je)e.style.setProperty(t,`${n}px`);a&&(re||D?m({width:0,height:0}):!re&&!D&&m({width:ge,height:_e})),y(e=>Uz(e,te));let Me={xStart:!re&&le>E.xStart,xEnd:!re&&ue>E.xEnd,yStart:!D&&fe>E.yStart,yEnd:!D&&pe>E.yEnd};w(e=>e.xStart===Me.xStart&&e.xEnd===Me.xEnd&&e.yStart===Me.yStart&&e.yEnd===Me.yEnd?e:Me)});p(()=>{o.current&&Bz()},[o]),p(()=>{queueMicrotask(O)},[O,b,ne]),p(()=>{o.current?.matches(`:hover`)&&C(!0)},[o,C]),j.useEffect(()=>{let e=o.current;if(typeof ResizeObserver>`u`||!e)return;let t=!1,n=new ResizeObserver(()=>{if(!t){t=!0;let n=oe.current;if(n[0]===e.clientHeight&&n[1]===e.scrollHeight&&n[2]===e.clientWidth&&n[3]===e.scrollWidth)return}O()});return n.observe(e),ce.start(0,()=>{let t=e.getAnimations({subtree:!0});t.length!==0&&Promise.allSettled(t.map(e=>e.finished)).then(O).catch(()=>{})}),()=>{n.disconnect(),ce.clear()}},[O,o,ce]);function le(){ie.current=!1}let ue={role:`presentation`,...g&&{"data-id":`${g}-viewport`},tabIndex:b.x&&b.y?-1:0,className:re.className,style:{overflow:`scroll`},onScroll(){o.current&&(O(),ie.current||S({x:o.current.scrollLeft,y:o.current.scrollTop}),se.start(100,()=>{ie.current=!0}))},onWheel:le,onTouchMove:le,onPointerMove:le,onPointerEnter:le,onKeyDown:le},de=j.useMemo(()=>({scrolling:te||D,hasOverflowX:!b.x,hasOverflowY:!b.y,overflowXStart:T.xStart,overflowXEnd:T.xEnd,overflowYStart:T.yStart,overflowYEnd:T.yEnd,cornerHidden:b.corner}),[te,D,b.x,b.y,b.corner,T]),fe=_(`div`,e,{ref:[t,o],state:de,props:[ue,a],stateAttributesMapping:kz}),pe=j.useMemo(()=>({computeThumbPosition:O}),[O]);return(0,$.jsx)(Iz.Provider,{value:pe,children:fe})});function Hz(e){let t=e.clientHeight>=e.scrollHeight,n=e.clientWidth>=e.scrollWidth;return{y:t,x:n,corner:t||n}}function Uz(e,t){return e.y===t.y&&e.x===t.x&&e.corner===t.corner?e:t}var Wz=j.createContext(void 0);function Gz(){let e=j.useContext(Wz);if(e===void 0)throw Error(f(54));return e}var Kz=function(e){return e.scrollAreaThumbHeight=`--scroll-area-thumb-height`,e.scrollAreaThumbWidth=`--scroll-area-thumb-width`,e}({}),qz=j.forwardRef(function(e,t){let{render:n,className:r,orientation:i=`vertical`,keepMounted:a=!1,style:o,...s}=e,{hovering:c,scrollingX:l,scrollingY:u,hiddenState:d,overflowEdges:f,scrollbarYRef:p,scrollbarXRef:m,viewportRef:h,thumbYRef:g,thumbXRef:v,handlePointerDown:y,handlePointerUp:b,rootId:x,thumbSize:S,hasMeasuredScrollbar:C}=wz(),w={hovering:c,scrolling:{horizontal:l,vertical:u}[i],orientation:i,hasOverflowX:!d.x,hasOverflowY:!d.y,overflowXStart:f.xStart,overflowXEnd:f.xEnd,overflowYStart:f.yStart,overflowYEnd:f.yEnd,cornerHidden:d.corner},T=st(),E=!C&&!a,ee=i===`vertical`?d.y:d.x,te=a||!ee;j.useEffect(()=>{if(!te)return;let e=h.current,t=i===`vertical`?p.current:m.current;if(!t)return;function n(n){if(!e||!t||n.ctrlKey)return;n.preventDefault();let r=i===`horizontal`,a=r?`scrollLeft`:`scrollTop`,o=r?n.deltaX:n.deltaY,s=r?e.scrollWidth-e.clientWidth:e.scrollHeight-e.clientHeight,c=r&&T===`rtl`?-s:0,l=r&&T===`rtl`?0:s,u=e[a];u<=c&&o<0||u>=l&&o>0||(e[a]=Math.min(l,Math.max(c,u+o)))}return pt(t,`wheel`,n,{passive:!1})},[T,i,m,p,te,h]);let D={...x&&{"data-id":`${x}-scrollbar`},onPointerDown(e){if(e.button!==0)return;let t=Te(e.nativeEvent),n=i===`vertical`?g.current:v.current;if(!(n&&rt(n,t))&&h.current){if(g.current&&p.current&&i===`vertical`){let t=Ez(g.current,`margin`,`y`),n=Ez(p.current,`padding`,`y`),r=g.current.offsetHeight,i=p.current.getBoundingClientRect(),a=e.clientY-i.top-r/2-n+t/2,o=h.current.scrollHeight,s=h.current.clientHeight,c=a/(p.current.offsetHeight-r-n-t)*(o-s);h.current.scrollTop=c}if(v.current&&m.current&&i===`horizontal`){let t=Ez(v.current,`margin`,`x`),n=Ez(m.current,`padding`,`x`),r=v.current.offsetWidth,i=m.current.getBoundingClientRect(),a=e.clientX-i.left-r/2-n+t/2,o=h.current.scrollWidth,s=h.current.clientWidth,c=a/(m.current.offsetWidth-r-n-t),l;T===`rtl`?(l=(1-c)*(o-s),h.current.scrollLeft<=0&&(l=-l)):l=c*(o-s),h.current.scrollLeft=l}y(e)}},onPointerUp:b,style:{position:`absolute`,touchAction:`none`,WebkitUserSelect:`none`,userSelect:`none`,visibility:E?`hidden`:void 0,...i===`vertical`&&{top:0,bottom:`var(${Tz.scrollAreaCornerHeight})`,insetInlineEnd:0,[Kz.scrollAreaThumbHeight]:`${S.height}px`},...i===`horizontal`&&{insetInlineStart:0,insetInlineEnd:`var(${Tz.scrollAreaCornerWidth})`,bottom:0,[Kz.scrollAreaThumbWidth]:`${S.width}px`}}},ne=_(`div`,e,{ref:[t,i===`vertical`?p:m],state:w,props:[D,s],stateAttributesMapping:kz}),re=j.useMemo(()=>({orientation:i}),[i]);return te?(0,$.jsx)(Wz.Provider,{value:re,children:ne}):null}),Jz=j.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{computeThumbPosition:o}=Lz(),{viewportState:s}=wz(),c=j.useRef(null);return p(()=>{if(typeof ResizeObserver>`u`)return;let e=!1,t=new ResizeObserver(()=>{if(!e){e=!0;return}o()});return c.current&&t.observe(c.current),()=>{t.disconnect()}},[o]),_(`div`,e,{ref:[t,c],state:s,stateAttributesMapping:kz,props:[{role:`presentation`,style:{minWidth:`fit-content`}},a]})}),Yz=j.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{thumbYRef:o,thumbXRef:s,handlePointerDown:c,handlePointerMove:l,handlePointerUp:u,setScrollingX:d,setScrollingY:f,hasMeasuredScrollbar:p}=wz(),{orientation:m}=Gz();return _(`div`,e,{ref:[t,m===`vertical`?o:s],state:{orientation:m},props:[{onPointerDown:c,onPointerMove:l,onPointerUp(e){m===`vertical`&&f(!1),m===`horizontal`&&d(!1),u(e)},style:{visibility:p?void 0:`hidden`,...m===`vertical`&&{height:`var(${Kz.scrollAreaThumbHeight})`},...m===`horizontal`&&{width:`var(${Kz.scrollAreaThumbWidth})`}}},a]})}),Xz=j.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{cornerRef:o,cornerSize:s,hiddenState:c}=wz(),l=_(`div`,e,{ref:[t,o],props:[{style:{position:`absolute`,bottom:0,insetInlineEnd:0,width:s.width,height:s.height}},a]});return c.corner?null:l});function Zz({className:e,children:t,viewportClassName:n,...r}){return(0,$.jsxs)(Pz,{"data-slot":`scroll-area`,className:y(`relative overflow-hidden`,e),...r,children:[(0,$.jsx)(Vz,{"data-slot":`scroll-area-viewport`,className:y(`size-full overscroll-contain`,n),children:(0,$.jsx)(Jz,{children:t})}),(0,$.jsx)(Qz,{}),(0,$.jsx)(Xz,{})]})}function Qz({className:e,orientation:t=`vertical`,...n}){return(0,$.jsx)(qz,{"data-slot":`scroll-area-scrollbar`,orientation:t,className:y(`absolute flex touch-none select-none transition-colors`,t===`vertical`&&`right-0.5 top-0.5 h-[calc(100%-0.25rem)] w-2.5 border-l border-l-transparent p-px`,t===`horizontal`&&`bottom-0.5 left-0.5 h-2.5 w-[calc(100%-0.25rem)] flex-col border-t border-t-transparent p-px`,e),...n,children:(0,$.jsx)(Yz,{"data-slot":`scroll-area-thumb`,className:`relative flex-1 rounded-full bg-border`})})}function $z({open:e,onOpenChange:t,projectName:n,disabled:r,mode:i,modes:a,onModeChange:o,models:s,selectedModel:c,onModelChange:l,effortValue:u,effortOptions:d,onEffortChange:f}){return(0,$.jsxs)(we,{open:e,onOpenChange:t,children:[(0,$.jsx)(_e,{"data-slot":`run-settings-trigger`,className:`channel-attach text-muted-foreground`,title:`Run settings`,"aria-label":`Run settings`,children:(0,$.jsx)(qn,{className:`size-4`})}),(0,$.jsxs)(Se,{"data-slot":`run-settings`,children:[(0,$.jsxs)(xe,{children:[(0,$.jsx)(Ce,{children:`Run settings`}),(0,$.jsxs)(ve,{children:[`Model, reasoning, and permissions for runs in`,` `,(0,$.jsx)(`code`,{children:n}),`.`]})]}),(0,$.jsxs)(`div`,{className:`grid gap-3`,children:[c&&(0,$.jsxs)(`div`,{className:`grid gap-1.5`,children:[(0,$.jsx)(bt,{htmlFor:`run-model`,children:`Model`}),(0,$.jsxs)(oe,{value:c.model,onValueChange:e=>l(e??``),children:[(0,$.jsx)(te,{id:`run-model`,size:`sm`,disabled:r,className:`w-full`,children:(0,$.jsx)(E,{children:c.displayName})}),(0,$.jsx)(ne,{children:s.map(e=>(0,$.jsx)(ie,{value:e.model,children:(0,$.jsxs)(`span`,{className:`channel-mode-item`,children:[(0,$.jsxs)(`span`,{className:`channel-mode-label`,children:[e.displayName,e.isDefault?` · default`:``]}),(0,$.jsx)(`span`,{className:`channel-mode-hint`,children:e.description})]})},e.id))})]})]}),(0,$.jsxs)(`div`,{className:`grid gap-1.5`,children:[(0,$.jsx)(bt,{htmlFor:`run-effort`,children:`Reasoning effort`}),(0,$.jsxs)(oe,{value:u,onValueChange:e=>f(e??``),children:[(0,$.jsx)(te,{id:`run-effort`,size:`sm`,disabled:r,className:`w-full`,children:(0,$.jsx)(E,{children:u})}),(0,$.jsx)(ne,{children:d.map(e=>(0,$.jsx)(ie,{value:e.reasoningEffort,children:(0,$.jsxs)(`span`,{className:`channel-mode-item`,children:[(0,$.jsx)(`span`,{className:`channel-mode-label`,children:e.reasoningEffort}),e.description&&(0,$.jsx)(`span`,{className:`channel-mode-hint`,children:e.description})]})},e.reasoningEffort))})]})]}),(0,$.jsxs)(`div`,{className:`grid gap-1.5`,children:[(0,$.jsx)(bt,{htmlFor:`run-mode`,children:`Permissions`}),(0,$.jsxs)(oe,{value:i,onValueChange:e=>o(e),children:[(0,$.jsx)(te,{id:`run-mode`,size:`sm`,disabled:r,className:`w-full`,children:(0,$.jsx)(E,{children:a[i].label})}),(0,$.jsx)(ne,{children:Object.keys(a).map(e=>(0,$.jsx)(ie,{value:e,children:(0,$.jsxs)(`span`,{className:`channel-mode-item`,children:[(0,$.jsx)(`span`,{className:`channel-mode-label`,children:a[e].label}),(0,$.jsx)(`span`,{className:`channel-mode-hint`,children:a[e].hint})]})},e))})]}),(0,$.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:a[i].hint})]})]}),(0,$.jsx)(ge,{children:(0,$.jsx)(be,{render:(0,$.jsx)(vt,{variant:`outline`}),children:`Done`})})]})]})}var eB=new Set([`queued`,`starting`,`running`,`waiting_approval`]),tB=300,nB=[`Summarize my recent notes`,`What tools do you have?`,`Help me draft a plan`],rB={default:{label:`Default`,hint:`You approve risky actions · workspace-write sandbox`,approvalPolicy:`onRequest`,sandbox:`workspaceWrite`,approvalsReviewer:`user`},unattended:{label:`Unattended`,hint:`A Codex subagent approves for you · workspace-write sandbox (24/7)`,approvalPolicy:`onRequest`,sandbox:`workspaceWrite`,approvalsReviewer:`auto_review`},all:{label:`Allow everything`,hint:`⚠ No approvals + full disk/network access. Use with care.`,approvalPolicy:`never`,sandbox:`dangerFullAccess`,approvalsReviewer:`user`}},iB=[{cmd:`/review`,hint:`Code-review uncommitted changes — add text for custom instructions`},{cmd:`/compact`,hint:`Compact this conversation's context window`},{cmd:`/fast`,hint:`Toggle fast mode — 1.5x speed, increased usage`}];function aB(e){for(let t of Object.keys(rB)){let n=rB[t];if(e.sandbox===n.sandbox&&e.approvalPolicy===n.approvalPolicy&&e.approvalsReviewer===n.approvalsReviewer)return t}return`default`}function oB(e){if(e.title)return e.title;let t=e.prompt.split(`
|
|
428
|
-
`)[0]?.trim();return t&&t.length>0?t:`Untitled`}function
|
|
429
|
-
`)?
|
|
422
|
+
`;return r+dn(n)},`createCssStyles`),OC=A((e,t)=>jx(Ex(`${e}{${t}}`),Nx([A(function(t,n,r,i){if(t.type===`rule`&&Array.isArray(t.props)){if(t.parent&&t.parent.type===`@keyframes`)return;t.props=t.props.map(t=>t.startsWith(e)?t:`${e} ${t}`)}else t.type.startsWith(`@`)&&([`@media`,`@supports`,`@layer`,`@scope`,`@container`,`@starting-style`,`@keyframes`].includes(t.type)||(Wt.warn(`Removing unsupported at-rule ${t.type} from CSS`),t.type=Hb))},`addNamespace`),Mx])),`compileCSS`),kC=A((e,t,n,r)=>OC(r,an(t,DC(e,n),{...e.themeVariables,theme:e.theme,look:e.look},r)),`createUserStyles`),AC=A((e=``,t,n)=>{let r=e;return!n&&!t&&(r=r.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,`marker-end="url(#`)),r=bn(r),r=r.replace(/<br>/g,`<br/>`),r},`cleanUpSvgCode`),jC=A((e=``,t)=>`<iframe style="width:${gC};height:${t?.viewBox?.baseVal?.height?t.viewBox.baseVal.height+`px`:_C};${vC}" src="data:text/html;charset=UTF-8;base64,${cC(`<body style="${yC}">${e}</body>`)}" sandbox="${bC}">
|
|
423
|
+
${xC}
|
|
424
|
+
</iframe>`,`putIntoIFrame`),MC=A((e,t,n,r,i)=>{let a=e.append(`div`);a.attr(`id`,n),r&&a.attr(`style`,r);let o=a.append(`svg`).attr(`id`,t).attr(`width`,`100%`).attr(`xmlns`,pC);return i&&o.attr(`xmlns:xlink`,i),o.append(`g`),e},`appendDivSvgG`);function NC(e,t){return e.append(`iframe`).attr(`id`,t).attr(`style`,`width: 100%; height: 100%;`).attr(`sandbox`,``)}A(NC,`sandboxedIframe`);var PC=A((e,t,n,r)=>{e.getElementById(t)?.remove(),e.getElementById(n)?.remove(),e.getElementById(r)?.remove()},`removeExistingElements`),FC=A(async function(e,t,n){JS();let r=wC(t);t=r.code;let i=cn();Wt.debug(i),t.length>(i?.maxTextSize??lC)&&(t=uC);let a=`#${e}`,o=`i`+e,s=`#`+o,c=`d`+e,l=`#`+c,u=A(()=>{let e=Gt(f?s:l).node();e&&`remove`in e&&e.remove()},`removeTempElements`),d=Gt(document.body),f=i.securityLevel===dC,p=i.securityLevel===fC,m=i.fontFamily;n===void 0?(PC(document,e,c,o),f?(d=Gt(NC(Gt(document.body),o).nodes()[0].contentDocument.body),d.node().style.margin=`0`):d=Gt(`body`),MC(d,e,c)):(n&&(n.innerHTML=``),f?(d=Gt(NC(Gt(n),o).nodes()[0].contentDocument.body),d.node().style.margin=`0`):d=Gt(n),MC(d,e,c,`font-family: ${m}`,mC));let h,g;try{h=await $S.fromText(t,{title:r.title})}catch(e){if(i.suppressErrorRendering)throw u(),e;h=await $S.fromText(`error`),g=e}let _=d.select(l).node(),v=h.type,y=_.firstChild,b=y.firstChild,x=h.renderer.getClasses?.(t,h),S=kC(i,v,x,a),C=document.createElement(`style`);C.innerHTML=S,y.insertBefore(C,b);try{await h.renderer.draw(t,e,`11.15.0`,h)}catch(n){throw i.suppressErrorRendering?u():hS.draw(t,e,`11.15.0`),n}let w=d.select(`${l} svg`),T=h.db.getAccTitle?.(),E=h.db.getAccDescription?.();RC(v,w,T,E),d.select(`[id="${e}"]`).selectAll(`foreignobject > *`).attr(`xmlns`,hC);let ee=d.select(l).node().innerHTML;if(Wt.debug(`config.arrowMarkerAbsolute`,i.arrowMarkerAbsolute),ee=AC(ee,f,un(i.arrowMarkerAbsolute)),f){let e=d.select(l+` svg`).node();ee=jC(ee,e)}else p||(ee=Kt.sanitize(ee,{ADD_TAGS:SC,ADD_ATTR:CC,HTML_INTEGRATION_POINTS:{foreignobject:!0}}));if(tC(),g)throw g;return u(),{diagramType:v,svg:ee,bindFunctions:h.db.bindFunctions}},`render`);function IC(e={}){let t=gn({},e);t?.fontFamily&&!t.themeVariables?.fontFamily&&(t.themeVariables||={},t.themeVariables.fontFamily=t.fontFamily),nn(t),t?.theme&&t.theme in on?t.themeVariables=on[t.theme].getThemeVariables(t.themeVariables):t&&(t.themeVariables=on.default.getThemeVariables(t.themeVariables)),Ut((typeof t==`object`?hn(t):Jt()).logLevel),JS()}A(IC,`initialize`);var LC=A((e,t={})=>{let{code:n}=sC(e);return $S.fromText(n,t)},`getDiagramFromText`);function RC(e,t,n,r){ZS(t,e),QS(t,n,r,t.attr(`id`))}A(RC,`addA11yInfo`);var zC=Object.freeze({render:FC,parse:TC,getDiagramFromText:LC,initialize:IC,getConfig:cn,setConfig:rn,getSiteConfig:Jt,updateSiteConfig:$t,reset:A(()=>{Yt()},`reset`),globalReset:A(()=>{Yt(vn)},`globalReset`),defaultConfig:vn});Ut(cn().logLevel),Yt(cn());var BC=A((e,t,n)=>{Wt.warn(e),xn(e)?(n&&n(e.str,e.hash),t.push({...e,message:e.str,error:e})):(n&&n(e),e instanceof Error&&t.push({str:e.message,message:e.message,hash:e.name,error:e}))},`handleError`),VC=A(async function(e={querySelector:`.mermaid`}){try{await HC(e)}catch(t){if(xn(t)&&Wt.error(t.str),$C.parseError&&$C.parseError(t),!e.suppressErrors)throw Wt.error(`Use the suppressErrors option to suppress these errors`),t}},`run`),HC=A(async function({postRenderCallback:e,querySelector:t,nodes:n}={querySelector:`.mermaid`}){let r=zC.getConfig();Wt.debug(`${e?``:`No `}Callback function found`);let i;if(n)i=n;else if(t)i=document.querySelectorAll(t);else throw Error(`Nodes and querySelector are both undefined`);Wt.debug(`Found ${i.length} diagrams`),r?.startOnLoad!==void 0&&(Wt.debug(`Start On Load: `+r?.startOnLoad),zC.updateSiteConfig({startOnLoad:r?.startOnLoad}));let a=new Sn.InitIDGenerator(r.deterministicIds,r.deterministicIDSeed),o,s=[];for(let t of Array.from(i)){if(Wt.info(`Rendering diagram: `+t.id),t.getAttribute(`data-processed`))continue;t.setAttribute(`data-processed`,`true`);let n=`mermaid-${a.next()}`;o=t.innerHTML,o=Nn(Sn.entityDecode(o)).trim().replace(/<br\s*\/?>/gi,`<br/>`);let r=Sn.detectInit(o);r&&Wt.debug(`Detected early reinit: `,r);try{let{svg:r,bindFunctions:i}=await QC(n,o,t);t.innerHTML=r,e&&await e(n),i&&i(t)}catch(e){BC(e,s,$C.parseError)}}if(s.length>0)throw s[0]},`runThrowsErrors`),UC=A(function(e){zC.initialize(e)},`initialize`),WC=A(async function(e,t,n){Wt.warn(`mermaid.init is deprecated. Please use run instead.`),e&&UC(e);let r={postRenderCallback:n,querySelector:`.mermaid`};typeof t==`string`?r.querySelector=t:t&&(t instanceof HTMLElement?r.nodes=[t]:r.nodes=t),await VC(r)},`init`),GC=A(async(e,{lazyLoad:t=!0}={})=>{JS(),Qt(...e),t===!1&&await YS()},`registerExternalDiagrams`),KC=A(function(){if($C.startOnLoad){let{startOnLoad:e}=zC.getConfig();e&&$C.run().catch(e=>Wt.error(`Mermaid failed to initialize`,e))}},`contentLoaded`);typeof document<`u`&&window.addEventListener(`load`,KC,!1);var qC=A(function(e){$C.parseError=e},`setParseErrorHandler`),JC=[],YC=!1,XC=A(async()=>{if(!YC){for(YC=!0;JC.length>0;){let e=JC.shift();if(e)try{await e()}catch(e){Wt.error(`Error executing queue`,e)}}YC=!1}},`executeQueue`),ZC=A(async(e,t)=>new Promise((n,r)=>{let i=A(()=>new Promise((i,a)=>{zC.parse(e,t).then(e=>{i(e),n(e)},e=>{Wt.error(`Error parsing`,e),$C.parseError?.(e),a(e),r(e)})}),`performCall`);JC.push(i),XC().catch(r)}),`parse`),QC=A((e,t,n)=>new Promise((r,i)=>{let a=A(()=>new Promise((a,o)=>{zC.render(e,t,n).then(e=>{a(e),r(e)},e=>{Wt.error(`Error parsing`,e),$C.parseError?.(e),o(e),i(e)})}),`performCall`);JC.push(a),XC().catch(i)}),`render`),$C={startOnLoad:!0,mermaidAPI:zC,parse:ZC,render:QC,init:WC,run:VC,registerExternalDiagrams:GC,registerLayoutLoaders:Pn,initialize:UC,parseError:void 0,contentLoaded:KC,setParseErrorHandler:qC,detectType:mn,registerIconPacks:Mn,getRegisteredDiagramsMetadata:A(()=>Object.keys(fn).map(e=>({id:e})),`getRegisteredDiagramsMetadata`)},ew=$C,tw={startOnLoad:!1,theme:`default`,securityLevel:`strict`,fontFamily:`monospace`,suppressErrorRendering:!0};function nw(e={}){let t=!1,n={...tw,...e.config},r={initialize(r){n={...tw,...e.config,...r},ew.initialize(n),t=!0},async render(e,r){return t||=(ew.initialize(n),!0),await ew.render(e,r)}};return{name:`mermaid`,type:`diagram`,language:`mermaid`,getMermaid(e){return e&&r.initialize(e),r}}}var rw=nw(),iw=(0,j.createContext)({});function aw(e){let t=(0,j.useRef)(null);return t.current===null&&(t.current=e()),t.current}var ow=typeof window<`u`?j.useLayoutEffect:j.useEffect,sw=(0,j.createContext)(null);function cw(e,t){e.indexOf(t)===-1&&e.push(t)}function lw(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}var uw=(e,t,n)=>n>t?t:n<e?e:n,dw={},fw=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),pw=e=>typeof e==`object`&&!!e,mw=e=>/^0[^.\s]+$/u.test(e);function hw(e){let t;return()=>(t===void 0&&(t=e()),t)}var gw=e=>e,_w=(...e)=>e.reduce((e,t)=>n=>t(e(n))),vw=(e,t,n)=>{let r=t-e;return r?(n-e)/r:1},yw=class{constructor(){this.subscriptions=[]}add(e){return cw(this.subscriptions,e),()=>lw(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}},bw=e=>e*1e3,xw=e=>e/1e3,Sw=(e,t)=>t?1e3/t*e:0,Cw=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,ww=1e-7,Tw=12;function Ew(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=Cw(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>ww&&++s<Tw);return o}function Dw(e,t,n,r){if(e===t&&n===r)return gw;let i=t=>Ew(t,0,1,e,n);return e=>e===0||e===1?e:Cw(i(e),t,r)}var Ow=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,kw=e=>t=>1-e(1-t),Aw=Dw(.33,1.53,.69,.99),jw=kw(Aw),Mw=Ow(jw),Nw=e=>e>=1?1:(e*=2)<1?.5*jw(e):.5*(2-2**(-10*(e-1))),Pw=e=>1-Math.sin(Math.acos(e)),Fw=kw(Pw),Iw=Ow(Pw),Lw=Dw(.42,0,1,1),Rw=Dw(0,0,.58,1),zw=Dw(.42,0,.58,1),Bw=e=>Array.isArray(e)&&typeof e[0]!=`number`,Vw=e=>Array.isArray(e)&&typeof e[0]==`number`,Hw={linear:gw,easeIn:Lw,easeInOut:zw,easeOut:Rw,circIn:Pw,circInOut:Iw,circOut:Fw,backIn:jw,backInOut:Mw,backOut:Aw,anticipate:Nw},Uw=e=>typeof e==`string`,Ww=e=>{if(Vw(e)){e.length;let[t,n,r,i]=e;return Dw(t,n,r,i)}else if(Uw(e))return Hw[e],`${e}`,Hw[e];return e},Gw=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`],Kw={value:null,addProjectionMetrics:null};function qw(e,t){let n=new Set,r=new Set,i=!1,a=!1,o=new WeakSet,s={delta:0,timestamp:0,isProcessing:!1},c=0;function l(t){o.has(t)&&(u.schedule(t),e()),c++,t(s)}let u={schedule:(e,t=!1,a=!1)=>{let s=a&&i?n:r;return t&&o.add(e),s.add(e),e},cancel:e=>{r.delete(e),o.delete(e)},process:e=>{if(s=e,i){a=!0;return}i=!0;let o=n;n=r,r=o,n.forEach(l),t&&Kw.value&&Kw.value.frameloop[t].push(c),c=0,n.clear(),i=!1,a&&(a=!1,u.process(e))}};return u}var Jw=40;function Yw(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=Gw.reduce((e,n)=>(e[n]=qw(a,t?n:void 0),e),{}),{setup:s,read:c,resolveKeyframes:l,preUpdate:u,update:d,preRender:f,render:p,postRender:m}=o,h=()=>{let a=dw.useManualTiming,o=a?i.timestamp:performance.now();n=!1,a||(i.delta=r?1e3/60:Math.max(Math.min(o-i.timestamp,Jw),1)),i.timestamp=o,i.isProcessing=!0,s.process(i),c.process(i),l.process(i),u.process(i),d.process(i),f.process(i),p.process(i),m.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(h))},g=()=>{n=!0,r=!0,i.isProcessing||e(h)};return{schedule:Gw.reduce((e,t)=>{let r=o[t];return e[t]=(e,t=!1,i=!1)=>(n||g(),r.schedule(e,t,i)),e},{}),cancel:e=>{for(let t=0;t<Gw.length;t++)o[Gw[t]].cancel(e)},state:i,steps:o}}var{schedule:Xw,cancel:Zw,state:Qw,steps:$w}=Yw(typeof requestAnimationFrame<`u`?requestAnimationFrame:gw,!0),eT;function tT(){eT=void 0}var nT={now:()=>(eT===void 0&&nT.set(Qw.isProcessing||dw.useManualTiming?Qw.timestamp:performance.now()),eT),set:e=>{eT=e,queueMicrotask(tT)}},rT={layout:0,mainThread:0,waapi:0},iT=e=>t=>typeof t==`string`&&t.startsWith(e),aT=iT(`--`),oT=iT(`var(--`),sT=e=>oT(e)?cT.test(e.split(`/*`)[0].trim()):!1,cT=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function lT(e){return typeof e==`string`?e.split(`/*`)[0].includes(`var(--`):!1}var uT={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},dT={...uT,transform:e=>uw(0,1,e)},fT={...uT,default:1},pT=e=>Math.round(e*1e5)/1e5,mT=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function hT(e){return e==null}var gT=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,_T=(e,t)=>n=>!!(typeof n==`string`&&gT.test(n)&&n.startsWith(e)||t&&!hT(n)&&Object.prototype.hasOwnProperty.call(n,t)),vT=(e,t,n)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match(mT);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},yT=e=>uw(0,255,e),bT={...uT,transform:e=>Math.round(yT(e))},xT={test:_T(`rgb`,`red`),parse:vT(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+bT.transform(e)+`, `+bT.transform(t)+`, `+bT.transform(n)+`, `+pT(dT.transform(r))+`)`};function ST(e){let t=``,n=``,r=``,i=``;return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}var CT={test:_T(`#`),parse:ST,transform:xT.transform},wT=e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),TT=wT(`deg`),ET=wT(`%`),Q=wT(`px`),DT=wT(`vh`),OT=wT(`vw`),kT={...ET,parse:e=>ET.parse(e)/100,transform:e=>ET.transform(e*100)},AT={test:_T(`hsl`,`hue`),parse:vT(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+ET.transform(pT(t))+`, `+ET.transform(pT(n))+`, `+pT(dT.transform(r))+`)`},jT={test:e=>xT.test(e)||CT.test(e)||AT.test(e),parse:e=>xT.test(e)?xT.parse(e):AT.test(e)?AT.parse(e):CT.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?xT.transform(e):AT.transform(e),getAnimatableNone:e=>{let t=jT.parse(e);return t.alpha=0,jT.transform(t)}},MT=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function NT(e){return isNaN(e)&&typeof e==`string`&&(e.match(mT)?.length||0)+(e.match(MT)?.length||0)>0}var PT=`number`,FT=`color`,IT=`var`,LT=`var(`,RT="${}",zT=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function BT(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0;return{values:n,split:t.replace(zT,e=>(jT.test(e)?(r.color.push(a),i.push(FT),n.push(jT.parse(e))):e.startsWith(LT)?(r.var.push(a),i.push(IT),n.push(e)):(r.number.push(a),i.push(PT),n.push(parseFloat(e))),++a,RT)).split(RT),indexes:r,types:i}}function VT(e){return BT(e).values}function HT({split:e,types:t}){let n=e.length;return r=>{let i=``;for(let a=0;a<n;a++)if(i+=e[a],r[a]!==void 0){let e=t[a];e===PT?i+=pT(r[a]):e===FT?i+=jT.transform(r[a]):i+=r[a]}return i}}function UT(e){return HT(BT(e))}var WT=e=>typeof e==`number`?0:jT.test(e)?jT.getAnimatableNone(e):e,GT=(e,t)=>typeof e==`number`?t?.trim().endsWith(`/`)?e:0:WT(e);function KT(e){let t=BT(e);return HT(t)(t.values.map((e,n)=>GT(e,t.split[n])))}var qT={test:NT,parse:VT,createTransformer:UT,getAnimatableNone:KT};function JT(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function YT({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=JT(s,r,e+1/3),a=JT(s,r,e),o=JT(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function XT(e,t){return n=>n>0?t:e}var ZT=(e,t,n)=>e+(t-e)*n,QT=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},$T=[CT,xT,AT],eE=e=>$T.find(t=>t.test(e));function tE(e){let t=eE(e);if(`${e}`,!t)return!1;let n=t.parse(e);return t===AT&&(n=YT(n)),n}var nE=(e,t)=>{let n=tE(e),r=tE(t);if(!n||!r)return XT(e,t);let i={...n};return e=>(i.red=QT(n.red,r.red,e),i.green=QT(n.green,r.green,e),i.blue=QT(n.blue,r.blue,e),i.alpha=ZT(n.alpha,r.alpha,e),xT.transform(i))},rE=new Set([`none`,`hidden`]);function iE(e,t){return rE.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function aE(e,t){return n=>ZT(e,t,n)}function oE(e){return typeof e==`number`?aE:typeof e==`string`?sT(e)?XT:jT.test(e)?nE:uE:Array.isArray(e)?sE:typeof e==`object`?jT.test(e)?nE:cE:XT}function sE(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>oE(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function cE(e,t){let n={...e,...t},r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=oE(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}function lE(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let a=t.types[i],o=e.indexes[a][r[a]];n[i]=e.values[o]??0,r[a]++}return n}var uE=(e,t)=>{let n=qT.createTransformer(t),r=BT(e),i=BT(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?rE.has(e)&&!i.values.length||rE.has(t)&&!r.values.length?iE(e,t):_w(sE(lE(r,i),i.values),n):(`${e}${t}`,XT(e,t))};function dE(e,t,n){return typeof e==`number`&&typeof t==`number`&&typeof n==`number`?ZT(e,t,n):oE(e)(e,t)}var fE=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>Xw.update(t,e),stop:()=>Zw(t),now:()=>Qw.isProcessing?Qw.timestamp:nT.now()}},pE=(e,t,n=10)=>{let r=``,i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=Math.round(e(t/(i-1))*1e4)/1e4+`, `;return`linear(${r.substring(0,r.length-2)})`},mE=2e4;function hE(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}function gE(e,t=100,n){let r=n({...e,keyframes:[0,t]}),i=Math.min(hE(r),mE);return{type:`keyframes`,ease:e=>r.next(i*e).value/t,duration:xw(i)}}var _E={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function vE(e,t){return e*Math.sqrt(1-t*t)}var yE=12;function bE(e,t,n){let r=n;for(let n=1;n<yE;n++)r-=e(r)/t(r);return r}var xE=.001;function SE({duration:e=_E.duration,bounce:t=_E.bounce,velocity:n=_E.velocity,mass:r=_E.mass}){let i,a;_E.maxDuration;let o=1-t;o=uw(_E.minDamping,_E.maxDamping,o),e=uw(_E.minDuration,_E.maxDuration,xw(e)),o<1?(i=t=>{let r=t*o,i=r*e,a=r-n,s=vE(t,o),c=Math.exp(-i);return xE-a/s*c},a=t=>{let r=t*o*e,a=r*n+n,s=o**2*t**2*e,c=Math.exp(-r),l=vE(t**2,o);return(-i(t)+xE>0?-1:1)*((a-s)*c)/l}):(i=t=>-.001+Math.exp(-t*e)*((t-n)*e+1),a=t=>Math.exp(-t*e)*((n-t)*(e*e)));let s=5/e,c=bE(i,a,s);if(e=bw(e),isNaN(c))return{stiffness:_E.stiffness,damping:_E.damping,duration:e};{let t=c**2*r;return{stiffness:t,damping:o*2*Math.sqrt(r*t),duration:e}}}var CE=[`duration`,`bounce`],wE=[`stiffness`,`damping`,`mass`];function TE(e,t){return t.some(t=>e[t]!==void 0)}function EE(e){let t={velocity:_E.velocity,stiffness:_E.stiffness,damping:_E.damping,mass:_E.mass,isResolvedFromDuration:!1,...e};if(!TE(e,wE)&&TE(e,CE))if(t.velocity=0,e.visualDuration){let n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*uw(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:_E.mass,stiffness:i,damping:a}}else{let n=SE({...e,velocity:0});t={...t,...n,mass:_E.mass},t.isResolvedFromDuration=!0}return t}function DE(e=_E.visualDuration,t=_E.bounce){let n=typeof e==`object`?e:{visualDuration:e,keyframes:[0,1],bounce:t},{restSpeed:r,restDelta:i}=n,a=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],s={done:!1,value:a},{stiffness:c,damping:l,mass:u,duration:d,velocity:f,isResolvedFromDuration:p}=EE({...n,velocity:-xw(n.velocity||0)}),m=f||0,h=l/(2*Math.sqrt(c*u)),g=o-a,_=xw(Math.sqrt(c/u)),v=Math.abs(g)<5;r||=v?_E.restSpeed.granular:_E.restSpeed.default,i||=v?_E.restDelta.granular:_E.restDelta.default;let y,b,x,S,C,w;if(h<1)x=vE(_,h),S=(m+h*_*g)/x,y=e=>o-Math.exp(-h*_*e)*(S*Math.sin(x*e)+g*Math.cos(x*e)),C=h*_*S+g*x,w=h*_*g-S*x,b=e=>Math.exp(-h*_*e)*(C*Math.sin(x*e)+w*Math.cos(x*e));else if(h===1){y=e=>o-Math.exp(-_*e)*(g+(m+_*g)*e);let e=m+_*g;b=t=>Math.exp(-_*t)*(_*e*t-m)}else{let e=_*Math.sqrt(h*h-1);y=t=>{let n=Math.exp(-h*_*t),r=Math.min(e*t,300);return o-n*((m+h*_*g)*Math.sinh(r)+e*g*Math.cosh(r))/e};let t=(m+h*_*g)/e,n=h*_*t-g*e,r=h*_*g-t*e;b=t=>{let i=Math.exp(-h*_*t),a=Math.min(e*t,300);return i*(n*Math.sinh(a)+r*Math.cosh(a))}}let T={calculatedDuration:p&&d||null,velocity:e=>bw(b(e)),next:e=>{if(!p&&h<1){let t=Math.exp(-h*_*e),n=Math.sin(x*e),a=Math.cos(x*e),c=o-t*(S*n+g*a),l=bw(t*(C*n+w*a));return s.done=Math.abs(l)<=r&&Math.abs(o-c)<=i,s.value=s.done?o:c,s}let t=y(e);if(p)s.done=e>=d;else{let n=bw(b(e));s.done=Math.abs(n)<=r&&Math.abs(o-t)<=i}return s.value=s.done?o:t,s},toString:()=>{let e=Math.min(hE(T),mE),t=pE(t=>T.next(e*t).value,e,30);return e+`ms `+t},toTransition:()=>{}};return T}DE.applyToOptions=e=>{let t=gE(e,100,DE);return e.ease=t.ease,e.duration=bw(t.duration),e.type=`keyframes`,e};var OE=5;function kE(e,t,n){let r=Math.max(t-OE,0);return Sw(n-e(r),t-r)}function AE({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:c,restDelta:l=.5,restSpeed:u}){let d=e[0],f={done:!1,value:d},p=e=>s!==void 0&&e<s||c!==void 0&&e>c,m=e=>s===void 0?c:c===void 0||Math.abs(s-e)<Math.abs(c-e)?s:c,h=n*t,g=d+h,_=o===void 0?g:o(g);_!==g&&(h=_-d);let v=e=>-h*Math.exp(-e/r),y=e=>_+v(e),b=e=>{let t=v(e),n=y(e);f.done=Math.abs(t)<=l,f.value=f.done?_:n},x,S,C=e=>{p(f.value)&&(x=e,S=DE({keyframes:[f.value,m(f.value)],velocity:kE(y,e,f.value),damping:i,stiffness:a,restDelta:l,restSpeed:u}))};return C(0),{calculatedDuration:null,next:e=>{let t=!1;return!S&&x===void 0&&(t=!0,b(e),C(e)),x!==void 0&&e>=x?S.next(e-x):(!t&&b(e),f)}}}function jE(e,t,n){let r=[],i=n||dw.mix||dE,a=e.length-1;for(let n=0;n<a;n++){let a=i(e[n],e[n+1]);t&&(a=_w(Array.isArray(t)?t[n]||gw:t,a)),r.push(a)}return r}function ME(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let a=e.length;if(t.length,a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];let o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=jE(t,r,i),c=s.length,l=n=>{if(o&&n<e[0])return t[0];let r=0;if(c>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=vw(e[r],e[r+1],n);return s[r](i)};return n?t=>l(uw(e[0],e[a-1],t)):l}function NE(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=vw(0,t,r);e.push(ZT(n,1,i))}}function PE(e){let t=[0];return NE(t,e.length-1),t}function FE(e,t){return e.map(e=>e*t)}function IE(e,t){return e.map(()=>t||zw).splice(0,e.length-1)}function LE({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`}){let i=Bw(r)?r.map(Ww):Ww(r),a={done:!1,value:t[0]},o=ME(FE(n&&n.length===t.length?n:PE(t),e),t,{ease:Array.isArray(i)?i:IE(t,i)});return{calculatedDuration:e,next:t=>(a.value=o(t),a.done=t>=e,a)}}var RE=e=>e!==null;function zE(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a=e.filter(RE),o=i<0||t&&n!==`loop`&&t%2==1?0:a.length-1;return!o||r===void 0?a[o]:r}var BE={decay:AE,inertia:AE,tween:LE,keyframes:LE,spring:DE};function VE(e){typeof e.type==`string`&&(e.type=BE[e.type])}var HE=class{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}},UE=e=>e/100,WE=class extends HE{constructor(e){super(),this.state=`idle`,this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==nT.now()&&this.tick(nT.now()),this.isStopped=!0,this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},rT.mainThread++,this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){let{options:e}=this;VE(e);let{type:t=LE,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||LE;s!==LE&&typeof o[0]!=`number`&&(this.mixKeyframes=_w(UE,dE(o[0],o[1])),o=[0,100]);let c=s({...e,keyframes:o});i===`mirror`&&(this.mirroredGenerator=s({...e,keyframes:[...o].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=hE(c));let{calculatedDuration:l}=c;this.calculatedDuration=l,this.resolvedDuration=l+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=c}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime===null?this.currentTime=t:this.currentTime=this.holdTime}tick(e,t=!1){let{generator:n,totalDuration:r,mixKeyframes:i,mirroredGenerator:a,resolvedDuration:o,calculatedDuration:s}=this;if(this.startTime===null)return n.next(0);let{delay:c=0,keyframes:l,repeat:u,repeatType:d,repeatDelay:f,type:p,onUpdate:m,finalKeyframe:h}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let g=this.currentTime-c*(this.playbackSpeed>=0?1:-1),_=this.playbackSpeed>=0?g<0:g>r;this.currentTime=Math.max(g,0),this.state===`finished`&&this.holdTime===null&&(this.currentTime=r);let v=this.currentTime,y=n;if(u){let e=Math.min(this.currentTime,r)/o,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),n===1&&t--,t=Math.min(t,u+1),t%2&&(d===`reverse`?(n=1-n,f&&(n-=f/o)):d===`mirror`&&(y=a)),v=uw(0,1,n)*o}let b;_?(this.delayState.value=l[0],b=this.delayState):b=y.next(v),i&&!_&&(b.value=i(b.value));let{done:x}=b;!_&&s!==null&&(x=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let S=this.holdTime===null&&(this.state===`finished`||this.state===`running`&&x);return S&&p!==AE&&(b.value=zE(l,this.options,h,this.speed)),m&&m(b.value),S&&this.finish(),b}then(e,t){return this.finished.then(e,t)}get duration(){return xw(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+xw(e)}get time(){return xw(this.currentTime)}set time(e){e=bw(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state=`paused`,this.holdTime=e,this.tick(e))}getGeneratorVelocity(){let e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);let t=this.generator.next(e).value;return kE(e=>this.generator.next(e).value,e,t)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(nT.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=xw(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=fE,startTime:t}=this.options;this.driver||=e(e=>this.tick(e)),this.options.onPlay?.();let n=this.driver.now();this.state===`finished`?(this.updateFinished(),this.startTime=n):this.holdTime===null?this.startTime||=t??n:this.startTime=n-this.holdTime,this.state===`finished`&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state=`running`,this.driver.start()}pause(){this.state=`paused`,this.updateTime(nT.now()),this.holdTime=this.currentTime}complete(){this.state!==`running`&&this.play(),this.state=`finished`,this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state=`finished`,this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state=`idle`,this.stopDriver(),this.startTime=this.holdTime=null,rT.mainThread--}stopDriver(){this.driver&&=(this.driver.stop(),void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type=`keyframes`,this.options.ease=`linear`,this.initAnimation()),this.driver?.stop(),e.observe(this)}};function GE(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var KE=e=>e*180/Math.PI,qE=e=>YE(KE(Math.atan2(e[1],e[0]))),JE={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:qE,rotateZ:qE,skewX:e=>KE(Math.atan(e[1])),skewY:e=>KE(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},YE=e=>(e%=360,e<0&&(e+=360),e),XE=qE,ZE=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),QE=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),$E={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:ZE,scaleY:QE,scale:e=>(ZE(e)+QE(e))/2,rotateX:e=>YE(KE(Math.atan2(e[6],e[5]))),rotateY:e=>YE(KE(Math.atan2(-e[2],e[0]))),rotateZ:XE,rotate:XE,skewX:e=>KE(Math.atan(e[4])),skewY:e=>KE(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function eD(e){return+!!e.includes(`scale`)}function tD(e,t){if(!e||e===`none`)return eD(t);let n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),r,i;if(n)r=$E,i=n;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=JE,i=t}if(!i)return eD(t);let a=r[t],o=i[1].split(`,`).map(rD);return typeof a==`function`?a(o):o[a]}var nD=(e,t)=>{let{transform:n=`none`}=getComputedStyle(e);return tD(n,t)};function rD(e){return parseFloat(e.trim())}var iD=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`],aD=new Set([...iD,`pathRotation`]),oD=e=>e===uT||e===Q,sD=new Set([`x`,`y`,`z`]),cD=iD.filter(e=>!sD.has(e));function lD(e){let t=[];return cD.forEach(n=>{let r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(+!!n.startsWith(`scale`)))}),t}var uD={width:({x:e},{paddingLeft:t=`0`,paddingRight:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t=`0`,paddingBottom:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>tD(t,`x`),y:(e,{transform:t})=>tD(t,`y`)};uD.translateX=uD.x,uD.translateY=uD.y;var dD=new Set,fD=!1,pD=!1,mD=!1;function hD(){if(pD){let e=Array.from(dD).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t=lD(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{e.suspendedScrollY!==void 0&&window.scrollTo(0,e.suspendedScrollY)})}pD=!1,fD=!1,dD.forEach(e=>e.complete(mD)),dD.clear()}function gD(){dD.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(pD=!0)})}function _D(){mD=!0,gD(),hD(),mD=!1}var vD=class{constructor(e,t,n,r,i,a=!1){this.state=`pending`,this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=a}scheduleResolve(){this.state=`scheduled`,this.isAsync?(dD.add(this),fD||(fD=!0,Xw.read(gD),Xw.resolveKeyframes(hD))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(e[0]===null){let i=r?.get(),a=e[e.length-1];if(i!==void 0)e[0]=i;else if(n&&t){let r=n.readValue(t,a);r!=null&&(e[0]=r)}e[0]===void 0&&(e[0]=a),r&&i===void 0&&r.set(e[0])}GE(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state=`complete`,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),dD.delete(this)}cancel(){this.state===`scheduled`&&(dD.delete(this),this.state=`pending`)}resume(){this.state===`pending`&&this.scheduleResolve()}},yD=e=>e.startsWith(`--`);function bD(e,t,n){yD(t)?e.style.setProperty(t,n):e.style[t]=n}var xD={};function SD(e,t){let n=hw(e);return()=>xD[t]??n()}var CD=SD(()=>window.ScrollTimeline!==void 0,`scrollTimeline`),wD=SD(()=>{try{document.createElement(`div`).animate({opacity:0},{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),TD=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,ED={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:TD([0,.65,.55,1]),circOut:TD([.55,0,1,.45]),backIn:TD([.31,.01,.66,-.59]),backOut:TD([.33,1.53,.69,.99])};function DD(e,t){if(e)return typeof e==`function`?wD()?pE(e,t):`ease-out`:Vw(e)?TD(e):Array.isArray(e)?e.map(e=>DD(e,t)||ED.easeOut):ED[e]}function OD(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o=`loop`,ease:s=`easeOut`,times:c}={},l=void 0){let u={[t]:n};c&&(u.offset=c);let d=DD(s,i);Array.isArray(d)&&(u.easing=d),Kw.value&&rT.waapi++;let f={delay:r,duration:i,easing:Array.isArray(d)?`linear`:d,fill:`both`,iterations:a+1,direction:o===`reverse`?`alternate`:`normal`};l&&(f.pseudoElement=l);let p=e.animate(u,f);return Kw.value&&p.finished.finally(()=>{rT.waapi--}),p}function kD(e){return typeof e==`function`&&`applyToOptions`in e}function AD({type:e,...t}){return kD(e)&&wD()?e.applyToOptions(t):(t.duration??=300,t.ease??=`easeOut`,t)}var jD=class extends HE{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;let{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:o,onComplete:s}=e;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=e,e.type;let c=AD(e);this.animation=OD(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=zE(r,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(e),bD(t,n,e),this.animation.cancel()}s?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state===`finished`&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;e===`idle`||e===`finished`||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){let e=this.animation.effect?.getComputedTiming?.().duration||0;return xw(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+xw(e)}get time(){return xw(Number(this.animation.currentTime)||0)}set time(e){let t=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=bw(e),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime===null?this.animation.playState:`finished`}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:t,rangeEnd:n,observe:r}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:`linear`}),this.animation.onfinish=null,e&&CD()?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),n&&(this.animation.rangeEnd=n),gw):r(this)}},MD={anticipate:Nw,backInOut:Mw,circInOut:Iw};function ND(e){return e in MD}function PD(e){typeof e.ease==`string`&&ND(e.ease)&&(e.ease=MD[e.ease])}var FD=10,ID=class extends jD{constructor(e){PD(e),VE(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:n,onComplete:r,element:i,...a}=this.options;if(!t)return;if(e!==void 0){t.set(e);return}let o=new WE({...a,autoplay:!1}),s=Math.max(FD,nT.now()-this.startTime),c=uw(0,FD,s-FD),l=o.sample(s).value,{name:u}=this.options;i&&u&&bD(i,u,l),t.setWithVelocity(o.sample(Math.max(0,s-c)).value,l,c),o.stop()}},LD=(e,t)=>t===`zIndex`?!1:!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(qT.test(e)||e===`0`)&&!e.startsWith(`url(`));function RD(e){let t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function zD(e,t,n,r){let i=e[0];if(i===null)return!1;if(t===`display`||t===`visibility`)return!0;let a=e[e.length-1],o=LD(i,t),s=LD(a,t);return`${t}${i}${a}${o?a:i}`,!o||!s?!1:RD(e)||(n===`spring`||kD(n))&&r}function BD(e){e.duration=0,e.type=`keyframes`}var VD=new Set([`opacity`,`clipPath`,`filter`,`transform`]),HD=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function UD(e){for(let t=0;t<e.length;t++)if(typeof e[t]==`string`&&HD.test(e[t]))return!0;return!1}var WD=new Set([`color`,`backgroundColor`,`outlineColor`,`fill`,`stroke`,`borderColor`,`borderTopColor`,`borderRightColor`,`borderBottomColor`,`borderLeftColor`]),GD=hw(()=>Object.hasOwnProperty.call(Element.prototype,`animate`));function KD(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o,keyframes:s}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:c,transformTemplate:l}=t.owner.getProps();return GD()&&n&&(VD.has(n)||WD.has(n)&&UD(s))&&(n!==`transform`||!l)&&!c&&!r&&i!==`mirror`&&a!==0&&o!==`inertia`}var qD=40,JD=class extends HE{constructor({autoplay:e=!0,delay:t=0,type:n=`keyframes`,repeat:r=0,repeatDelay:i=0,repeatType:a=`loop`,keyframes:o,name:s,motionValue:c,element:l,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=nT.now();let d={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:a,name:s,motionValue:c,element:l,...u},f=l?.KeyframeResolver||vD;this.keyframeResolver=new f(o,(e,t,n)=>this.onKeyframesResolved(e,t,d,!n),s,c,l),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;let{name:i,type:a,velocity:o,delay:s,isHandoff:c,onUpdate:l}=n;this.resolvedAt=nT.now();let u=!0;zD(e,i,a,o)||(u=!1,(dw.instantAnimations||!s)&&l?.(zE(e,n,t)),e[0]=e[e.length-1],BD(n),n.repeat=0);let d={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>qD?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},f=u&&!c&&KD(d),p=d.motionValue?.owner?.current,m;if(f)try{m=new ID({...d,element:p})}catch{m=new WE(d)}else m=new WE(d);m.finished.then(()=>{this.notifyFinished()}).catch(gw),this.pendingTimeline&&=(this.stopTimeline=m.attachTimeline(this.pendingTimeline),void 0),this._animation=m}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),_D()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}};function YD(e,t,n,r=0,i=1){let a=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),o=e.size,s=(o-1)*r;return typeof n==`function`?n(a,o):i===1?a*r:s-a*r}var XD=30,ZD=e=>!isNaN(parseFloat(e)),QD={current:void 0},$D=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=nT.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=nT.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=ZD(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on(`change`,e)}on(e,t){this.events[e]||(this.events[e]=new yw);let n=this.events[e].add(t);return e===`change`?()=>{n(),Xw.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||=new Set,this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return QD.current&&QD.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=nT.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>XD)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,XD);return Sw(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function eO(e,t){return new $D(e,t)}function tO(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function nO(e,t){let n=e?.[t]??e?.default??e;return n===e?n:tO(n,e)}var rO={type:`spring`,stiffness:500,damping:25,restSpeed:10},iO=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),aO={type:`keyframes`,duration:.8},oO={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},sO=(e,{keyframes:t})=>t.length>2?aO:aD.has(e)?e.startsWith(`scale`)?iO(t[1]):rO:oO,cO=new Set([`when`,`delay`,`delayChildren`,`staggerChildren`,`staggerDirection`,`repeat`,`repeatType`,`repeatDelay`,`from`,`elapsed`]);function lO(e){for(let t in e)if(!cO.has(t))return!0;return!1}var uO=(e,t,n,r={},i,a)=>o=>{let s=nO(r,e)||{},c=s.delay||r.delay||0,{elapsed:l=0}=r;l-=bw(c);let u={keyframes:Array.isArray(n)?n:[null,n],ease:`easeOut`,velocity:t.getVelocity(),...s,delay:-l,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:i};lO(s)||Object.assign(u,sO(e,u)),u.duration&&=bw(u.duration),u.repeatDelay&&=bw(u.repeatDelay),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(BD(u),u.delay===0&&(d=!0)),(dw.instantAnimations||dw.skipAnimations||i?.shouldSkipAnimations||s.skipAnimations)&&(d=!0,BD(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!a&&t.get()!==void 0){let e=zE(u.keyframes,s);if(e!==void 0){Xw.update(()=>{u.onUpdate(e),u.onComplete()});return}}return s.isSync?new WE(u):new JD(u)},dO=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function fO(e){let t=dO.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}function pO(e,t,n=1){`${e}`;let[r,i]=fO(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return fw(e)?parseFloat(e):e}return sT(i)?pO(i,t,n+1):i}function mO(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function hO(e,t,n,r){if(typeof t==`function`){let[i,a]=mO(r);t=t(n===void 0?e.custom:n,i,a)}if(typeof t==`string`&&(t=e.variants&&e.variants[t]),typeof t==`function`){let[i,a]=mO(r);t=t(n===void 0?e.custom:n,i,a)}return t}function gO(e,t,n){let r=e.getProps();return hO(r,t,n===void 0?r.custom:n,e)}var _O=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,...iD]),vO=e=>Array.isArray(e);function yO(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,eO(n))}function bO(e){return vO(e)?e[e.length-1]||0:e}function xO(e,t){let{transitionEnd:n={},transition:r={},...i}=gO(e,t)||{};i={...i,...n};for(let t in i)yO(e,t,bO(i[t]))}var SO=e=>!!(e&&e.getVelocity);function CO(e){return!!(SO(e)&&e.add)}function wO(e,t){let n=e.getValue(`willChange`);if(CO(n))return n.add(t);if(!n&&dw.WillChange){let n=new dw.WillChange(`auto`);e.addValue(`willChange`,n),n.add(t)}}function TO(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}var EO=`data-`+TO(`framerAppearId`);function DO(e){return e.props[EO]}function OO({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function kO(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a,transitionEnd:o,...s}=t,c=e.getDefaultTransition();a=a?tO(a,c):c;let l=a?.reduceMotion,u=a?.skipAnimations;r&&(a=r);let d=[],f=i&&e.animationState&&e.animationState.getState()[i],p=a?.path;p&&p.animateVisualElement(e,s,a,n,d);for(let t in s){let r=e.getValue(t,e.latestValues[t]??null),i=s[t];if(i===void 0||f&&OO(f,t))continue;let o={delay:n,...nO(a||{},t)};u&&(o.skipAnimations=!0);let c=r.get();if(c!==void 0&&!r.isAnimating()&&!Array.isArray(i)&&i===c&&!o.velocity){Xw.update(()=>r.set(i));continue}let p=!1;if(window.MotionHandoffAnimation){let n=DO(e);if(n){let e=window.MotionHandoffAnimation(n,t,Xw);e!==null&&(o.startTime=e,p=!0)}}wO(e,t);let m=l??e.shouldReduceMotion;r.start(uO(t,r,i,m&&_O.has(t)?{type:!1}:o,e,p));let h=r.animation;h&&d.push(h)}if(o){let t=()=>Xw.update(()=>{o&&xO(e,o)});d.length?Promise.all(d).then(t):t()}return d}function AO(e,t,n={}){let r=gO(e,t,n.type===`exit`?e.presenceContext?.custom:void 0),{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);let a=r?()=>Promise.all(kO(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:a=0,staggerChildren:o,staggerDirection:s}=i;return jO(e,t,r,a,o,s,n)}:()=>Promise.resolve(),{when:s}=i;if(s){let[e,t]=s===`beforeChildren`?[a,o]:[o,a];return e().then(()=>t())}else return Promise.all([a(),o(n.delay)])}function jO(e,t,n=0,r=0,i=0,a=1,o){let s=[];for(let c of e.variantChildren)c.notify(`AnimationStart`,t),s.push(AO(c,t,{...o,delay:n+(typeof r==`function`?0:r)+YD(e.variantChildren,c,r,i,a)}).then(()=>c.notify(`AnimationComplete`,t)));return Promise.all(s)}function MO(e,t,n={}){e.notify(`AnimationStart`,t);let r;if(Array.isArray(t)){let i=t.map(t=>AO(e,t,n));r=Promise.all(i)}else if(typeof t==`string`)r=AO(e,t,n);else{let i=typeof t==`function`?gO(e,t,n.custom):t;r=Promise.all(kO(e,i,n))}return r.then(()=>{e.notify(`AnimationComplete`,t)})}var NO={test:e=>e===`auto`,parse:e=>e},PO=e=>t=>t.test(e),FO=[uT,Q,ET,TT,OT,DT,NO],IO=e=>FO.find(PO(e));function LO(e){return typeof e==`number`?e===0:e===null?!0:e===`none`||e===`0`||mw(e)}var RO=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function zO(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(mT)||[];if(!r)return e;let i=n.replace(r,``),a=+!!RO.has(t);return r!==n&&(a*=100),t+`(`+a+i+`)`}var BO=/\b([a-z-]*)\(.*?\)/gu,VO={...qT,getAnimatableNone:e=>{let t=e.match(BO);return t?t.map(zO).join(` `):e}},HO={...qT,getAnimatableNone:e=>{let t=qT.parse(e);return qT.createTransformer(e)(t.map(e=>typeof e==`number`?0:typeof e==`object`?{...e,alpha:1}:e))}},UO={...uT,transform:Math.round},WO={borderWidth:Q,borderTopWidth:Q,borderRightWidth:Q,borderBottomWidth:Q,borderLeftWidth:Q,borderRadius:Q,borderTopLeftRadius:Q,borderTopRightRadius:Q,borderBottomRightRadius:Q,borderBottomLeftRadius:Q,width:Q,maxWidth:Q,height:Q,maxHeight:Q,top:Q,right:Q,bottom:Q,left:Q,inset:Q,insetBlock:Q,insetBlockStart:Q,insetBlockEnd:Q,insetInline:Q,insetInlineStart:Q,insetInlineEnd:Q,padding:Q,paddingTop:Q,paddingRight:Q,paddingBottom:Q,paddingLeft:Q,paddingBlock:Q,paddingBlockStart:Q,paddingBlockEnd:Q,paddingInline:Q,paddingInlineStart:Q,paddingInlineEnd:Q,margin:Q,marginTop:Q,marginRight:Q,marginBottom:Q,marginLeft:Q,marginBlock:Q,marginBlockStart:Q,marginBlockEnd:Q,marginInline:Q,marginInlineStart:Q,marginInlineEnd:Q,fontSize:Q,backgroundPositionX:Q,backgroundPositionY:Q,rotate:TT,pathRotation:TT,rotateX:TT,rotateY:TT,rotateZ:TT,scale:fT,scaleX:fT,scaleY:fT,scaleZ:fT,skew:TT,skewX:TT,skewY:TT,distance:Q,translateX:Q,translateY:Q,translateZ:Q,x:Q,y:Q,z:Q,perspective:Q,transformPerspective:Q,opacity:dT,originX:kT,originY:kT,originZ:Q,zIndex:UO,fillOpacity:dT,strokeOpacity:dT,numOctaves:UO},GO={...WO,color:jT,backgroundColor:jT,outlineColor:jT,fill:jT,stroke:jT,borderColor:jT,borderTopColor:jT,borderRightColor:jT,borderBottomColor:jT,borderLeftColor:jT,filter:VO,WebkitFilter:VO,mask:HO,WebkitMask:HO},KO=e=>GO[e],qO=new Set([VO,HO]);function JO(e,t){let n=KO(e);return qO.has(n)||(n=qT),n.getAnimatableNone?n.getAnimatableNone(t):void 0}var YO=new Set([`auto`,`none`,`0`]);function XO(e,t,n){let r=0,i;for(;r<e.length&&!i;){let t=e[r];typeof t==`string`&&!YO.has(t)&&BT(t).values.length&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]=JO(n,i)}var ZO=class extends vD{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if(typeof r==`string`&&(r=r.trim(),sT(r))){let i=pO(r,t.current);i!==void 0&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!_O.has(n)||e.length!==2)return;let[r,i]=e,a=IO(r),o=IO(i);if(lT(r)!==lT(i)&&uD[n]){this.needsMeasurement=!0;return}if(a!==o)if(oD(a)&&oD(o))for(let t=0;t<e.length;t++){let n=e[t];typeof n==`string`&&(e[t]=parseFloat(n))}else uD[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(e[t]===null||LO(e[t]))&&n.push(t);n.length&&XO(e,n,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;n===`height`&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=uD[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let r=t[t.length-1];r!==void 0&&e.getValue(n,r).jump(r,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let r=e.getValue(t);r&&r.jump(this.measuredOrigin,!1);let i=n.length-1,a=n[i];n[i]=uD[t](e.measureViewportBox(),window.getComputedStyle(e.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),this.removedTransforms?.length&&this.removedTransforms.forEach(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}};function QO(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e==`string`){let r=document;t&&(r=t.current);let i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(e=>e!=null)}var $O=(e,t)=>t&&typeof e==`number`?t.transform(e):e;function ek(e){return pw(e)&&`offsetHeight`in e&&!(`ownerSVGElement`in e)}var{schedule:tk,cancel:nk}=Yw(queueMicrotask,!1),rk={x:!1,y:!1};function ik(){return rk.x||rk.y}function ak(e){return e===`x`||e===`y`?rk[e]?null:(rk[e]=!0,()=>{rk[e]=!1}):rk.x||rk.y?null:(rk.x=rk.y=!0,()=>{rk.x=rk.y=!1})}function ok(e,t){let n=QO(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function sk(e){return!(e.pointerType===`touch`||ik())}function ck(e,t,n={}){let[r,i,a]=ok(e,n);return r.forEach(e=>{let n=!1,r=!1,a,o=()=>{e.removeEventListener(`pointerleave`,u)},s=e=>{a&&=(a(e),void 0),o()},c=e=>{n=!1,window.removeEventListener(`pointerup`,c),window.removeEventListener(`pointercancel`,c),r&&(r=!1,s(e))},l=()=>{n=!0,window.addEventListener(`pointerup`,c,i),window.addEventListener(`pointercancel`,c,i)},u=e=>{if(e.pointerType!==`touch`){if(n){r=!0;return}s(e)}};e.addEventListener(`pointerenter`,n=>{if(!sk(n))return;r=!1;let o=t(e,n);typeof o==`function`&&(a=o,e.addEventListener(`pointerleave`,u,i))},i),e.addEventListener(`pointerdown`,l,i)}),a}var lk=(e,t)=>t?e===t?!0:lk(e,t.parentElement):!1,uk=e=>e.pointerType===`mouse`?typeof e.button!=`number`||e.button<=0:e.isPrimary!==!1,dk=new Set([`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`,`A`]);function fk(e){return dk.has(e.tagName)||e.isContentEditable===!0}var pk=new Set([`INPUT`,`SELECT`,`TEXTAREA`]);function mk(e){return pk.has(e.tagName)||e.isContentEditable===!0}var hk=new WeakSet;function gk(e){return t=>{t.key===`Enter`&&e(t)}}function _k(e,t){e.dispatchEvent(new PointerEvent(`pointer`+t,{isPrimary:!0,bubbles:!0}))}var vk=(e,t)=>{let n=e.currentTarget;if(!n)return;let r=gk(()=>{if(hk.has(n))return;_k(n,`down`);let e=gk(()=>{_k(n,`up`)});n.addEventListener(`keyup`,e,t),n.addEventListener(`blur`,()=>_k(n,`cancel`),t)});n.addEventListener(`keydown`,r,t),n.addEventListener(`blur`,()=>n.removeEventListener(`keydown`,r),t)};function yk(e){return uk(e)&&!ik()}var bk=new WeakSet;function xk(e,t,n={}){let[r,i,a]=ok(e,n),o=e=>{let r=e.currentTarget;if(!yk(e)||bk.has(e))return;hk.add(r),n.stopPropagation&&bk.add(e);let a=t(r,e),o=(e,t)=>{window.removeEventListener(`pointerup`,s),window.removeEventListener(`pointercancel`,c),hk.has(r)&&hk.delete(r),yk(e)&&typeof a==`function`&&a(e,{success:t})},s=e=>{o(e,r===window||r===document||n.useGlobalTarget||lk(r,e.target))},c=e=>{o(e,!1)};window.addEventListener(`pointerup`,s,i),window.addEventListener(`pointercancel`,c,i)};return r.forEach(e=>{(n.useGlobalTarget?window:e).addEventListener(`pointerdown`,o,i),ek(e)&&(e.addEventListener(`focus`,e=>vk(e,i)),!fk(e)&&!e.hasAttribute(`tabindex`)&&(e.tabIndex=0))}),a}function Sk(e){return pw(e)&&`ownerSVGElement`in e}var Ck=new WeakMap,wk,Tk=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+`Size`]:Sk(r)&&`getBBox`in r?r.getBBox()[t]:r[n],Ek=Tk(`inline`,`width`,`offsetWidth`),Dk=Tk(`block`,`height`,`offsetHeight`);function Ok({target:e,borderBoxSize:t}){Ck.get(e)?.forEach(n=>{n(e,{get width(){return Ek(e,t)},get height(){return Dk(e,t)}})})}function kk(e){e.forEach(Ok)}function Ak(){typeof ResizeObserver>`u`||(wk=new ResizeObserver(kk))}function jk(e,t){wk||Ak();let n=QO(e);return n.forEach(e=>{let n=Ck.get(e);n||(n=new Set,Ck.set(e,n)),n.add(t),wk?.observe(e)}),()=>{n.forEach(e=>{let n=Ck.get(e);n?.delete(t),n?.size||wk?.unobserve(e)})}}var Mk=new Set,Nk;function Pk(){Nk=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};Mk.forEach(t=>t(e))},window.addEventListener(`resize`,Nk)}function Fk(e){return Mk.add(e),Nk||Pk(),()=>{Mk.delete(e),!Mk.size&&typeof Nk==`function`&&(window.removeEventListener(`resize`,Nk),Nk=void 0)}}function Ik(e,t){return typeof e==`function`?Fk(e):jk(e,t)}function Lk(e){return Sk(e)&&e.tagName===`svg`}var Rk=[...FO,jT,qT],zk=e=>Rk.find(PO(e)),Bk=()=>({translate:0,scale:1,origin:0,originPoint:0}),Vk=()=>({x:Bk(),y:Bk()}),Hk=()=>({min:0,max:0}),Uk=()=>({x:Hk(),y:Hk()}),Wk=new WeakMap;function Gk(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}function Kk(e){return typeof e==`string`||Array.isArray(e)}var qk=[`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`exit`],Jk=[`initial`,...qk];function Yk(e){return Gk(e.animate)||Jk.some(t=>Kk(e[t]))}function Xk(e){return!!(Yk(e)||e.variants)}function Zk(e,t,n){for(let r in t){let i=t[r],a=n[r];if(SO(i))e.addValue(r,i);else if(SO(a))e.addValue(r,eO(i,{owner:e}));else if(a!==i)if(e.hasValue(r)){let t=e.getValue(r);t.liveStyle===!0?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,eO(t===void 0?i:t,{owner:e}))}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}var Qk={current:null},$k={current:!1},eA=typeof window<`u`;function tA(){if($k.current=!0,eA)if(window.matchMedia){let e=window.matchMedia(`(prefers-reduced-motion)`),t=()=>Qk.current=e.matches;e.addEventListener(`change`,t),t()}else Qk.current=!1}var nA=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`],rA={};function iA(e){rA=e}function aA(){return rA}var oA=class{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,skipAnimations:i,blockInitialAnimation:a,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=vD,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify(`Update`,this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=nT.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,Xw.render(this.render,!1,!0))};let{latestValues:c,renderState:l}=o;this.latestValues=c,this.baseTarget={...c},this.initialValues=t.initial?{...c}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.skipAnimationsConfig=i,this.options=s,this.blockInitialAnimation=!!a,this.isControllingVariants=Yk(t),this.isVariantNode=Xk(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:u,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in d){let t=d[e];c[e]!==void 0&&SO(t)&&t.set(c[e])}}mount(e){if(this.hasBeenMounted)for(let e in this.initialValues)this.values.get(e)?.jump(this.initialValues[e]),this.latestValues[e]=this.initialValues[e];this.current=e,Wk.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),this.reducedMotionConfig===`never`?this.shouldReduceMotion=!1:this.reducedMotionConfig===`always`?this.shouldReduceMotion=!0:($k.current||tA(),this.shouldReduceMotion=Qk.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),Zw(this.notifyUpdate),Zw(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(let e in this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??=new Set,this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&VD.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:r,times:i,ease:a,duration:o}=t.accelerate,s=new jD({element:this.current,name:e,keyframes:r,times:i,ease:a,duration:bw(o)}),c=n(s);this.valueSubscriptions.set(e,()=>{c(),s.cancel()});return}let n=aD.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on(`change`,t=>{this.latestValues[e]=t,this.props.onUpdate&&Xw.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()}),i;typeof window<`u`&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),i&&i()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e=`animation`;for(e in rA){let t=rA[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Uk()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<nA.length;t++){let n=nA[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=e[`on`+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=Zk(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return n===void 0&&t!==void 0&&(n=eO(t===null?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return n!=null&&(typeof n==`string`&&(fw(n)||mw(n))?n=parseFloat(n):!zk(n)&&qT.test(t)&&(n=JO(e,t)),this.setBaseTarget(e,SO(n)?n.get():n)),SO(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let{initial:t}=this.props,n;if(typeof t==`string`||typeof t==`object`){let r=hO(this.props,t,this.presenceContext?.custom);r&&(n=r[e])}if(t&&n!==void 0)return n;let r=this.getBaseTargetFromProps(this.props,e);return r!==void 0&&!SO(r)?r:this.initialValues[e]!==void 0&&n===void 0?void 0:this.baseTarget[e]}on(e,t){return this.events[e]||(this.events[e]=new yw),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){tk.render(this.render)}},sA=class extends oA{constructor(){super(...arguments),this.KeyframeResolver=ZO}sortInstanceNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1}getBaseTargetFromProps(e,t){let n=e.style;return n?n[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;SO(e)&&(this.childSubscription=e.on(`change`,e=>{this.current&&(this.current.textContent=`${e}`)}))}},cA=class{constructor(e){this.isMounted=!1,this.node=e}update(){}};function lA({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function uA({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function dA(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function fA(e){return e===void 0||e===1}function pA({scale:e,scaleX:t,scaleY:n}){return!fA(e)||!fA(t)||!fA(n)}function mA(e){return pA(e)||hA(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function hA(e){return gA(e.x)||gA(e.y)}function gA(e){return e&&e!==`0%`}function _A(e,t,n){return n+t*(e-n)}function vA(e,t,n,r,i){return i!==void 0&&(e=_A(e,i,r)),_A(e,n,r)+t}function yA(e,t=0,n=1,r,i){e.min=vA(e.min,t,n,r,i),e.max=vA(e.max,t,n,r,i)}function bA(e,{x:t,y:n}){yA(e.x,t.translate,t.scale,t.originPoint),yA(e.y,n.translate,n.scale,n.originPoint)}var xA=.999999999999,SA=1.0000000000001;function CA(e,t,n,r=!1){let i=n.length;if(!i)return;t.x=t.y=1;let a,o;for(let s=0;s<i;s++){a=n[s],o=a.projectionDelta;let{visualElement:i}=a.options;i&&i.props.style&&i.props.style.display===`contents`||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&(wA(e.x,-a.scroll.offset.x),wA(e.y,-a.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,bA(e,o)),r&&mA(a.latestValues)&&DA(e,a.latestValues,a.layout?.layoutBox))}t.x<SA&&t.x>xA&&(t.x=1),t.y<SA&&t.y>xA&&(t.y=1)}function wA(e,t){e.min+=t,e.max+=t}function TA(e,t,n,r,i=.5){yA(e,t,n,ZT(e.min,e.max,i),r)}function EA(e,t){return typeof e==`string`?parseFloat(e)/100*(t.max-t.min):e}function DA(e,t,n){let r=n??e;TA(e.x,EA(t.x,r.x),t.scaleX,t.scale,t.originX),TA(e.y,EA(t.y,r.y),t.scaleY,t.scale,t.originY)}function OA(e,t){return lA(dA(e.getBoundingClientRect(),t))}function kA(e,t,n){let r=OA(e,n),{scroll:i}=t;return i&&(wA(r.x,i.offset.x),wA(r.y,i.offset.y)),r}var AA={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},jA=iD.length;function MA(e,t,n){let r=``,i=!0;for(let a=0;a<jA;a++){let o=iD[a],s=e[o];if(s===void 0)continue;let c=!0;if(typeof s==`number`)c=s===+!!o.startsWith(`scale`);else{let e=parseFloat(s);c=o.startsWith(`scale`)?e===1:e===0}if(!c||n){let e=$O(s,WO[o]);if(!c){i=!1;let t=AA[o]||o;r+=`${t}(${e}) `}n&&(t[o]=e)}}let a=e.pathRotation;return a&&(i=!1,r+=`rotate(${$O(a,WO.pathRotation)}) `),r=r.trim(),n?r=n(t,i?``:r):i&&(r=`none`),r}function NA(e,t,n){let{style:r,vars:i,transformOrigin:a}=e,o=!1,s=!1;for(let e in t){let n=t[e];if(aD.has(e)){o=!0;continue}else if(aT(e)){i[e]=n;continue}else{let t=$O(n,WO[e]);e.startsWith(`origin`)?(s=!0,a[e]=t):r[e]=t}}if(t.transform||(o||n?r.transform=MA(t,e.transform,n):r.transform&&=`none`),s){let{originX:e=`50%`,originY:t=`50%`,originZ:n=0}=a;r.transformOrigin=`${e} ${t} ${n}`}}function PA(e,{style:t,vars:n},r,i){let a=e.style,o;for(o in t)a[o]=t[o];for(o in i?.applyProjectionStyles(a,r),n)a.setProperty(o,n[o])}function FA(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var IA={correct:(e,t)=>{if(!t.target)return e;if(typeof e==`string`)if(Q.test(e))e=parseFloat(e);else return e;return`${FA(e,t.target.x)}% ${FA(e,t.target.y)}%`}},LA={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=qT.parse(e);if(i.length>5)return r;let a=qT.createTransformer(e),o=typeof i[0]==`number`?0:1,s=n.x.scale*t.x,c=n.y.scale*t.y;i[0+o]/=s,i[1+o]/=c;let l=ZT(s,c,.5);return typeof i[2+o]==`number`&&(i[2+o]/=l),typeof i[3+o]==`number`&&(i[3+o]/=l),a(i)}},RA={borderRadius:{...IA,applyTo:[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomLeftRadius`,`borderBottomRightRadius`]},borderTopLeftRadius:IA,borderTopRightRadius:IA,borderBottomLeftRadius:IA,borderBottomRightRadius:IA,boxShadow:LA};function zA(e,{layout:t,layoutId:n}){return aD.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!RA[e]||e===`opacity`)}function BA(e,t,n){let r=e.style,i=t?.style,a={};if(!r)return a;for(let t in r)(SO(r[t])||i&&SO(i[t])||zA(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(a[t]=r[t]);return a}function VA(e){return window.getComputedStyle(e)}var HA=class extends sA{constructor(){super(...arguments),this.type=`html`,this.renderInstance=PA}readValueFromInstance(e,t){if(aD.has(t))return this.projection?.isProjecting?eD(t):nD(e,t);{let n=VA(e),r=(aT(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return OA(e,t)}build(e,t,n){NA(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return BA(e,t,n)}},UA={offset:`stroke-dashoffset`,array:`stroke-dasharray`},WA={offset:`strokeDashoffset`,array:`strokeDasharray`};function GA(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?UA:WA;e[a.offset]=`${-r}`,e[a.array]=`${t} ${n}`}var KA=[`offsetDistance`,`offsetPath`,`offsetRotate`,`offsetAnchor`];function qA(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},c,l,u){if(NA(e,s,l),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:f}=e;d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??`50% 50%`,delete d.transformOrigin),f.transform&&(f.transformBox=u?.transformBox??`fill-box`,delete d.transformBox);for(let e of KA)d[e]!==void 0&&(f[e]=d[e],delete d[e]);t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&GA(d,i,a,o,!1)}var JA=new Set([`baseFrequency`,`diffuseConstant`,`kernelMatrix`,`kernelUnitLength`,`keySplines`,`keyTimes`,`limitingConeAngle`,`markerHeight`,`markerWidth`,`numOctaves`,`targetX`,`targetY`,`surfaceScale`,`specularConstant`,`specularExponent`,`stdDeviation`,`tableValues`,`viewBox`,`gradientTransform`,`pathLength`,`startOffset`,`textLength`,`lengthAdjust`]),YA=e=>typeof e==`string`&&e.toLowerCase()===`svg`;function XA(e,t,n,r){PA(e,t,void 0,r);for(let n in t.attrs)e.setAttribute(JA.has(n)?n:TO(n),t.attrs[n])}function ZA(e,t,n){let r=BA(e,t,n);for(let n in e)if(SO(e[n])||SO(t[n])){let t=iD.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}var QA=class extends sA{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=Uk}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(aD.has(t)){let e=KO(t);return e&&e.default||0}return t=JA.has(t)?t:TO(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return ZA(e,t,n)}build(e,t,n){qA(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){XA(e,t,n,r)}mount(e){this.isSVGTag=YA(e.tagName),super.mount(e)}},$A=Jk.length;function ej(e){if(!e)return;if(!e.isControllingVariants){let t=e.parent&&ej(e.parent)||{};return e.props.initial!==void 0&&(t.initial=e.props.initial),t}let t={};for(let n=0;n<$A;n++){let r=Jk[n],i=e.props[r];(Kk(i)||i===!1)&&(t[r]=i)}return t}function tj(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}var nj=[...qk].reverse(),rj=qk.length;function ij(e){return t=>Promise.all(t.map(({animation:t,options:n})=>MO(e,t,n)))}function aj(e){let t=ij(e),n=cj(),r=!0,i=!1,a=t=>(n,r)=>{let i=gO(e,r,t===`exit`?e.presenceContext?.custom:void 0);if(i){let{transition:e,transitionEnd:t,...r}=i;n={...n,...r,...t}}return n};function o(n){t=n(e)}function s(o){let{props:s}=e,c=ej(e.parent)||{},l=[],u=new Set,d={},f=1/0;for(let t=0;t<rj;t++){let p=nj[t],m=n[p],h=s[p]===void 0?c[p]:s[p],g=Kk(h),_=p===o?m.isActive:null;_===!1&&(f=t);let v=h===c[p]&&h!==s[p]&&g;if(v&&(r||i)&&e.manuallyAnimateOnMount&&(v=!1),m.protectedKeys={...d},!m.isActive&&_===null||!h&&!m.prevProp||Gk(h)||typeof h==`boolean`)continue;if(p===`exit`&&m.isActive&&_!==!0){m.prevResolvedValues&&(d={...d,...m.prevResolvedValues});continue}let y=oj(m.prevProp,h),b=y||p===o&&m.isActive&&!v&&g||t>f&&g,x=!1,S=Array.isArray(h)?h:[h],C=S.reduce(a(p),{});_===!1&&(C={});let{prevResolvedValues:w={}}=m,T={...w,...C},E=t=>{b=!0,u.has(t)&&(x=!0,u.delete(t)),m.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in T){let t=C[e],n=w[e];if(d.hasOwnProperty(e))continue;let r=!1;r=vO(t)&&vO(n)?!tj(t,n)||y:t!==n,r?t==null?u.add(e):E(e):t!==void 0&&u.has(e)?E(e):m.protectedKeys[e]=!0}m.prevProp=h,m.prevResolvedValues=C,m.isActive&&(d={...d,...C}),(r||i)&&e.blockInitialAnimation&&(b=!1);let ee=v&&y;b&&(!ee||x)&&l.push(...S.map(t=>{let n={type:p};if(typeof t==`string`&&(r||i)&&!ee&&e.manuallyAnimateOnMount&&e.parent){let{parent:r}=e,i=gO(r,t);if(r.enteringChildren&&i){let{delayChildren:t}=i.transition||{};n.delay=YD(r.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(u.size){let t={};if(typeof s.initial!=`boolean`){let n=gO(e,Array.isArray(s.initial)?s.initial[0]:s.initial);n&&n.transition&&(t.transition=n.transition)}u.forEach(n=>{let r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=r??null}),l.push({animation:t})}let p=!!l.length;return r&&(s.initial===!1||s.initial===s.animate)&&!e.manuallyAnimateOnMount&&(p=!1),r=!1,i=!1,p?t(l):Promise.resolve()}function c(t,r){if(n[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,r)),n[t].isActive=r;let i=s(t);for(let e in n)n[e].protectedKeys={};return i}return{animateChanges:s,setActive:c,setAnimateFunction:o,getState:()=>n,reset:()=>{n=cj(),i=!0}}}function oj(e,t){return typeof t==`string`?t!==e:Array.isArray(t)?!tj(t,e):!1}function sj(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function cj(){return{animate:sj(!0),whileInView:sj(),whileHover:sj(),whileTap:sj(),whileDrag:sj(),whileFocus:sj(),exit:sj()}}function lj(e,t){e.min=t.min,e.max=t.max}function uj(e,t){lj(e.x,t.x),lj(e.y,t.y)}function dj(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var fj=.9999,pj=1.0001,mj=-.01,hj=.01;function gj(e){return e.max-e.min}function _j(e,t,n){return Math.abs(e-t)<=n}function vj(e,t,n,r=.5){e.origin=r,e.originPoint=ZT(t.min,t.max,e.origin),e.scale=gj(n)/gj(t),e.translate=ZT(n.min,n.max,e.origin)-e.originPoint,(e.scale>=fj&&e.scale<=pj||isNaN(e.scale))&&(e.scale=1),(e.translate>=mj&&e.translate<=hj||isNaN(e.translate))&&(e.translate=0)}function yj(e,t,n,r){vj(e.x,t.x,n.x,r?r.originX:void 0),vj(e.y,t.y,n.y,r?r.originY:void 0)}function bj(e,t,n,r=0){e.min=(r?ZT(n.min,n.max,r):n.min)+t.min,e.max=e.min+gj(t)}function xj(e,t,n,r){bj(e.x,t.x,n.x,r?.x),bj(e.y,t.y,n.y,r?.y)}function Sj(e,t,n,r=0){let i=r?ZT(n.min,n.max,r):n.min;e.min=t.min-i,e.max=e.min+gj(t)}function Cj(e,t,n,r){Sj(e.x,t.x,n.x,r?.x),Sj(e.y,t.y,n.y,r?.y)}function wj(e,t,n,r,i){return e-=t,e=_A(e,1/n,r),i!==void 0&&(e=_A(e,1/i,r)),e}function Tj(e,t=0,n=1,r=.5,i,a=e,o=e){if(ET.test(t)&&(t=parseFloat(t),t=ZT(o.min,o.max,t/100)-o.min),typeof t!=`number`)return;let s=ZT(a.min,a.max,r);e===a&&(s-=t),e.min=wj(e.min,t,n,s,i),e.max=wj(e.max,t,n,s,i)}function Ej(e,t,[n,r,i],a,o){Tj(e,t[n],t[r],t[i],t.scale,a,o)}var Dj=[`x`,`scaleX`,`originX`],Oj=[`y`,`scaleY`,`originY`];function kj(e,t,n,r){Ej(e.x,t,Dj,n?n.x:void 0,r?r.x:void 0),Ej(e.y,t,Oj,n?n.y:void 0,r?r.y:void 0)}function Aj(e){return e.translate===0&&e.scale===1}function jj(e){return Aj(e.x)&&Aj(e.y)}function Mj(e,t){return e.min===t.min&&e.max===t.max}function Nj(e,t){return Mj(e.x,t.x)&&Mj(e.y,t.y)}function Pj(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Fj(e,t){return Pj(e.x,t.x)&&Pj(e.y,t.y)}function Ij(e){return gj(e.x)/gj(e.y)}function Lj(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function Rj(e){return[e(`x`),e(`y`)]}function zj(e,t,n){let r=``,i=e.x.translate/t.x,a=e.y.translate/t.y,o=n?.z||0;if((i||a||o)&&(r=`translate3d(${i}px, ${a}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,pathRotation:i,rotateX:a,rotateY:o,skewX:s,skewY:c}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotate(${i}deg) `),a&&(r+=`rotateX(${a}deg) `),o&&(r+=`rotateY(${o}deg) `),s&&(r+=`skewX(${s}deg) `),c&&(r+=`skewY(${c}deg) `)}let s=e.x.scale*t.x,c=e.y.scale*t.y;return(s!==1||c!==1)&&(r+=`scale(${s}, ${c})`),r||`none`}var Bj=[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomLeftRadius`,`borderBottomRightRadius`],Vj=Bj.length,Hj=e=>typeof e==`string`?parseFloat(e):e,Uj=e=>typeof e==`number`||Q.test(e);function Wj(e,t,n,r,i,a){i?(e.opacity=ZT(0,n.opacity??1,Kj(r)),e.opacityExit=ZT(t.opacity??1,0,qj(r))):a&&(e.opacity=ZT(t.opacity??1,n.opacity??1,r));for(let i=0;i<Vj;i++){let a=Bj[i],o=Gj(t,a),s=Gj(n,a);o===void 0&&s===void 0||(o||=0,s||=0,o===0||s===0||Uj(o)===Uj(s)?(e[a]=Math.max(ZT(Hj(o),Hj(s),r),0),(ET.test(s)||ET.test(o))&&(e[a]+=`%`)):e[a]=s)}(t.rotate||n.rotate)&&(e.rotate=ZT(t.rotate||0,n.rotate||0,r))}function Gj(e,t){return e[t]===void 0?e.borderRadius:e[t]}var Kj=Jj(0,.5,Fw),qj=Jj(.5,.95,gw);function Jj(e,t,n){return r=>r<e?0:r>t?1:n(vw(e,t,r))}function Yj(e,t,n){let r=SO(e)?e:eO(e);return r.start(uO(``,r,t,n)),r.animation}function Xj(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}var Zj=(e,t)=>e.depth-t.depth,Qj=class{constructor(){this.children=[],this.isDirty=!1}add(e){cw(this.children,e),this.isDirty=!0}remove(e){lw(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Zj),this.isDirty=!1,this.children.forEach(e)}};function $j(e,t){let n=nT.now(),r=({timestamp:i})=>{let a=i-n;a>=t&&(Zw(r),e(a-t))};return Xw.setup(r,!0),()=>Zw(r)}function eM(e){return SO(e)?e.get():e}var tM=class{constructor(){this.members=[]}add(e){cw(this.members,e);for(let t=this.members.length-1;t>=0;t--){let n=this.members[t];if(n===e||n===this.lead||n===this.prevLead)continue;let r=n.instance;(!r||r.isConnected===!1)&&!n.snapshot&&(lw(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if(lw(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){for(let t=this.members.indexOf(e)-1;t>=0;t--){let e=this.members[t];if(e.isPresent!==!1&&e.instance?.isConnected!==!1)return this.promote(e),!0}return!1}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.updateSnapshot(),e.scheduleRender();let{layoutDependency:r}=n.options,{layoutDependency:i}=e.options;(r===void 0||r!==i)&&(e.resumeFrom=n,t&&(n.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),e.options.crossfade===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}},nM={hasAnimatedSinceResize:!0,hasEverUpdated:!1},rM={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},iM=[``,`X`,`Y`,`Z`],aM=1e3,oM=0;function sM(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function cM(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=DO(t);if(window.MotionHasOptimisedAnimation(n,`transform`)){let{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,`transform`,Xw,!(t||r))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&cM(r)}function lM({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=oM++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Kw.value&&(rM.nodes=rM.calculatedTargetDeltas=rM.calculatedProjections=0),this.nodes.forEach(fM),this.nodes.forEach(xM),this.nodes.forEach(SM),this.nodes.forEach(pM),Kw.addProjectionMetrics&&Kw.addProjectionMetrics(rM)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new Qj)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new yw),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=Sk(t)&&!Lk(t),this.instance=t;let{layoutId:n,layout:r,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(r||n)&&(this.isLayoutDirty=!0),e){let n,r=0,i=()=>this.root.updateBlockedByResize=!1;Xw.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n&&n(),n=$j(i,250),nM.hasAnimatedSinceResize&&(nM.hasAnimatedSinceResize=!1,this.nodes.forEach(bM)))})}n&&this.root.registerSharedNode(n,this),this.options.animate!==!1&&i&&(n||r)&&this.addEventListener(`didUpdate`,({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let a=this.options.transition||i.getDefaultTransition()||kM,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=i.getProps(),c=!this.targetLayout||!Fj(this.targetLayout,r),l=!t&&n;if(this.options.layoutRoot||this.resumeFrom||l||t&&(c||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...nO(a,`layout`),onPlay:o,onComplete:s};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,l,t.path)}else t||bM(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Zw(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(CM),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&cM(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,(typeof t.latestValues.x==`string`||typeof t.latestValues.y==`string`)&&(t.isLayoutDirty=!0),t.updateScroll(`snapshot`),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:n}=this.options;if(t===void 0&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,``):void 0,this.updateSnapshot(),e&&this.notifyListeners(`willUpdate`)}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let e=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),e&&this.nodes.forEach(gM),this.nodes.forEach(hM);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(_M);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(vM),this.nodes.forEach(yM),this.nodes.forEach(uM),this.nodes.forEach(dM)):this.nodes.forEach(_M),this.clearAllSnapshots();let e=nT.now();Qw.delta=uw(0,1e3/60,e-Qw.timestamp),Qw.timestamp=e,Qw.isProcessing=!0,$w.update.process(Qw),$w.preRender.process(Qw),$w.render.process(Qw),Qw.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,tk.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(mM),this.sharedNodes.forEach(wM)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Xw.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Xw.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!gj(this.snapshot.measuredBox.x)&&!gj(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||=Uk(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners(`measure`,this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify(`LayoutMeasure`,this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e=`measure`){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!jj(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,``):void 0,a=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||mA(this.latestValues)||a)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){let t=this.measurePageBox(),n=this.removeElementScroll(t);return e&&(n=this.removeTransform(n)),NM(n),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return Uk();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(FM))){let{scroll:e}=this.root;e&&(wA(t.x,e.offset.x),wA(t.y,e.offset.y))}return t}removeElementScroll(e){let t=Uk();if(uj(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:i,options:a}=r;r!==this.root&&i&&a.layoutScroll&&(i.wasRoot&&uj(t,e),wA(t.x,i.offset.x),wA(t.y,i.offset.y))}return t}applyTransform(e,t=!1,n){let r=n||Uk();uj(r,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];!t&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(wA(r.x,-n.scroll.offset.x),wA(r.y,-n.scroll.offset.y)),mA(n.latestValues)&&DA(r,n.latestValues,n.layout?.layoutBox)}return mA(this.latestValues)&&DA(r,this.latestValues,this.layout?.layoutBox),r}removeTransform(e){let t=Uk();uj(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!mA(n.latestValues))continue;let r;n.instance&&(pA(n.latestValues)&&n.updateSnapshot(),r=Uk(),uj(r,n.measurePageBox())),kj(t,n.latestValues,n.snapshot?.layoutBox,r)}return mA(this.latestValues)&&kj(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:e.crossfade===void 0?!0:e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Qw.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||=t.isProjectionDirty,this.isTransformDirty||=t.isTransformDirty,this.isSharedProjectionDirty||=t.isSharedProjectionDirty;let n=!!this.resumingFrom||this!==t;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:r,layoutId:i}=this.options;if(!this.layout||!(r||i))return;this.resolvedRelativeTargetAt=Qw.timestamp;let a=this.getClosestProjectingParent();a&&this.linkedParentVersion!==a.layoutVersion&&!a.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&a&&a.layout?this.createRelativeTarget(a,this.layout.layoutBox,a.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Uk(),this.targetWithTransforms=Uk()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),xj(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):uj(this.target,this.layout.layoutBox),bA(this.target,this.targetDelta)):uj(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&a&&!!a.resumingFrom==!!this.resumingFrom&&!a.options.layoutScroll&&a.target&&this.animationProgress!==1?this.createRelativeTarget(a,this.target,a.target):this.relativeParent=this.relativeTarget=void 0),Kw.value&&rM.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||pA(this.parent.latestValues)||hA(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(e,t,n){this.relativeParent=e,this.linkedParentVersion=e.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Uk(),this.relativeTargetOrigin=Uk(),Cj(this.relativeTargetOrigin,t,n,this.options.layoutAnchor||void 0),uj(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===Qw.timestamp&&(n=!1),n)return;let{layout:r,layoutId:i}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||i))return;uj(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;CA(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=Uk());let{target:s}=e;if(!s){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(dj(this.prevProjectionDelta.x,this.projectionDelta.x),dj(this.prevProjectionDelta.y,this.projectionDelta.y)),yj(this.projectionDelta,this.layoutCorrected,s,this.latestValues),(this.treeScale.x!==a||this.treeScale.y!==o||!Lj(this.projectionDelta.x,this.prevProjectionDelta.x)||!Lj(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners(`projectionUpdate`,s)),Kw.value&&rM.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Vk(),this.projectionDelta=Vk(),this.projectionDeltaWithTransform=Vk()}setAnimationOrigin(e,t=!1,n){let r=this.snapshot,i=r?r.latestValues:{},a={...this.latestValues},o=Vk();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let s=Uk(),c=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),u=!l||l.members.length<=1,d=!!(c&&!u&&this.options.crossfade===!0&&!this.path.some(OM));this.animationProgress=0;let f,p=n?.interpolateProjection(e);this.mixTargetDelta=t=>{let n=t/1e3,r=p?.(n);r?(o.x.translate=r.x,o.x.scale=ZT(e.x.scale,1,n),o.x.origin=e.x.origin,o.x.originPoint=e.x.originPoint,o.y.translate=r.y,o.y.scale=ZT(e.y.scale,1,n),o.y.origin=e.y.origin,o.y.originPoint=e.y.originPoint):(TM(o.x,e.x,n),TM(o.y,e.y,n)),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Cj(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),DM(this.relativeTarget,this.relativeTargetOrigin,s,n),f&&Nj(this.relativeTarget,f)&&(this.isProjectionDirty=!1),f||=Uk(),uj(f,this.relativeTarget)),c&&(this.animationValues=a,Wj(a,i,this.latestValues,n,d,u)),r&&r.rotate!==void 0&&(this.animationValues||=a,this.animationValues.pathRotation=r.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners(`animationStart`),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&=(Zw(this.pendingAnimation),void 0),this.pendingAnimation=Xw.update(()=>{nM.hasAnimatedSinceResize=!0,rT.layout++,this.motionValue||=eO(0),this.motionValue.jump(0,!1),this.currentAnimation=Yj(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onStop:()=>{rT.layout--},onComplete:()=>{rT.layout--,e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners(`animationComplete`)}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(aM),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(!(!t||!n||!r)){if(this!==e&&this.layout&&r&&PM(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||Uk();let t=gj(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=gj(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}uj(t,n),DA(t,i),yj(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new tM),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return e?e.lead===this:!0}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return e?e.relegate(this):!1}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let r={};n.z&&sM(`z`,e,r,this.animationValues);for(let t=0;t<iM.length;t++)sM(`rotate${iM[t]}`,e,r,this.animationValues),sM(`skew${iM[t]}`,e,r,this.animationValues);e.render();for(let t in r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility=`hidden`;return}let n=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility=``,e.opacity=``,e.pointerEvents=eM(t?.pointerEvents)||``,e.transform=n?n(this.latestValues,``):`none`;return}let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){this.options.layoutId&&(e.opacity=this.latestValues.opacity===void 0?1:this.latestValues.opacity,e.pointerEvents=eM(t?.pointerEvents)||``),this.hasProjected&&!mA(this.latestValues)&&(e.transform=n?n({},``):`none`,this.hasProjected=!1);return}e.visibility=``;let i=r.animationValues||r.latestValues;this.applyTransformsToTarget();let a=zj(this.projectionDeltaWithTransform,this.treeScale,i);n&&(a=n(i,a)),e.transform=a;let{x:o,y:s}=this.projectionDelta;e.transformOrigin=`${o.origin*100}% ${s.origin*100}% 0`,r.animationValues?e.opacity=r===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:e.opacity=r===this?i.opacity===void 0?``:i.opacity:i.opacityExit===void 0?0:i.opacityExit;for(let t in RA){if(i[t]===void 0)continue;let{correct:n,applyTo:o,isCSSVariable:s}=RA[t],c=a===`none`?i[t]:n(i[t],r);if(o){let t=o.length;for(let n=0;n<t;n++)e[o[n]]=c}else s?this.options.visualElement.renderState.vars[t]=c:e[t]=c}this.options.layoutId&&(e.pointerEvents=r===this?eM(t?.pointerEvents)||``:`none`)}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(hM),this.root.sharedNodes.clear()}}}function uM(e){e.updateLayout()}function dM(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners(`didUpdate`)){let{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source;if(i===`size`)Rj(e=>{let r=a?t.measuredBox[e]:t.layoutBox[e],i=gj(r);r.min=n[e].min,r.max=r.min+i});else if(i===`x`||i===`y`){let e=i===`x`?`y`:`x`;lj(a?t.measuredBox[e]:t.layoutBox[e],n[e])}else PM(i,t.layoutBox,n)&&Rj(r=>{let i=a?t.measuredBox[r]:t.layoutBox[r],o=gj(n[r]);i.max=i.min+o,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+o)});let o=Vk();yj(o,n,t.layoutBox);let s=Vk();a?yj(s,e.applyTransform(r,!0),t.measuredBox):yj(s,n,t.layoutBox);let c=!jj(o),l=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:a}=r;if(i&&a){let o=e.options.layoutAnchor||void 0,s=Uk();Cj(s,t.layoutBox,i.layoutBox,o);let c=Uk();Cj(c,n,a.layoutBox,o),Fj(s,c)||(l=!0),r.options.layoutRoot&&(e.relativeTarget=c,e.relativeTargetOrigin=s,e.relativeParent=r)}}}e.notifyListeners(`didUpdate`,{layout:n,snapshot:t,delta:s,layoutDelta:o,hasLayoutChanged:c,hasRelativeLayoutChanged:l})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function fM(e){Kw.value&&rM.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty),e.isTransformDirty||=e.parent.isTransformDirty)}function pM(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function mM(e){e.clearSnapshot()}function hM(e){e.clearMeasurements()}function gM(e){e.isLayoutDirty=!0,e.updateLayout()}function _M(e){e.isLayoutDirty=!1}function vM(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function yM(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify(`BeforeLayoutMeasure`),e.resetTransform()}function bM(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function xM(e){e.resolveTargetDelta()}function SM(e){e.calcProjection()}function CM(e){e.resetSkewAndRotation()}function wM(e){e.removeLeadSnapshot()}function TM(e,t,n){e.translate=ZT(t.translate,0,n),e.scale=ZT(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function EM(e,t,n,r){e.min=ZT(t.min,n.min,r),e.max=ZT(t.max,n.max,r)}function DM(e,t,n,r){EM(e.x,t.x,n.x,r),EM(e.y,t.y,n.y,r)}function OM(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var kM={duration:.45,ease:[.4,0,.1,1]},AM=e=>typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),jM=AM(`applewebkit/`)&&!AM(`chrome/`)?Math.round:gw;function MM(e){e.min=jM(e.min),e.max=jM(e.max)}function NM(e){MM(e.x),MM(e.y)}function PM(e,t,n){return e===`position`||e===`preserve-aspect`&&!_j(Ij(t),Ij(n),.2)}function FM(e){return e!==e.root&&e.scroll?.wasRoot}var IM=lM({attachResizeListener:(e,t)=>Xj(e,`resize`,t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),LM={current:void 0},RM=lM({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!LM.current){let e=new IM({});e.mount(window),e.setOptions({layoutScroll:!0}),LM.current=e}return LM.current},resetTransform:(e,t)=>{e.style.transform=t===void 0?`none`:t},checkIsScrollRoot:e=>window.getComputedStyle(e).position===`fixed`}),zM=(0,j.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:`never`});function BM(e=!0){let t=(0,j.useContext)(sw);if(t===null)return[!0,null];let{isPresent:n,onExitComplete:r,register:i}=t,a=(0,j.useId)();(0,j.useEffect)(()=>{if(e)return i(a)},[e]);let o=(0,j.useCallback)(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,o]:[!0]}var VM=(0,j.createContext)({strict:!1}),HM={animation:[`animate`,`variants`,`whileHover`,`whileTap`,`exit`,`whileInView`,`whileFocus`,`whileDrag`],exit:[`exit`],drag:[`drag`,`dragControls`],focus:[`whileFocus`],hover:[`whileHover`,`onHoverStart`,`onHoverEnd`],tap:[`whileTap`,`onTap`,`onTapStart`,`onTapCancel`],pan:[`onPan`,`onPanStart`,`onPanSessionStart`,`onPanEnd`],inView:[`whileInView`,`onViewportEnter`,`onViewportLeave`],layout:[`layout`,`layoutId`]},UM=!1;function WM(){if(UM)return;let e={};for(let t in HM)e[t]={isEnabled:e=>HM[t].some(t=>!!e[t])};iA(e),UM=!0}function GM(){return WM(),aA()}function KM(e){let t=GM();for(let n in e)t[n]={...t[n],...e[n]};iA(t)}var qM=new Set(`animate.exit.variants.initial.style.values.variants.transition.transformTemplate.custom.inherit.onBeforeLayoutMeasure.onAnimationStart.onAnimationComplete.onUpdate.onDragStart.onDrag.onDragEnd.onMeasureDragConstraints.onDirectionLock.onDragTransitionEnd._dragX._dragY.onHoverStart.onHoverEnd.onViewportEnter.onViewportLeave.globalTapTarget.propagate.ignoreStrict.viewport`.split(`.`));function JM(e){return e.startsWith(`while`)||e.startsWith(`drag`)&&e!==`draggable`||e.startsWith(`layout`)||e.startsWith(`onTap`)||e.startsWith(`onPan`)||e.startsWith(`onLayout`)||qM.has(e)}var YM=r({default:()=>XM}),XM,ZM=n((()=>{throw XM={},Error(`Could not resolve "@emotion/is-prop-valid" imported by "framer-motion". Is it installed?`)})),QM=e=>!JM(e);function $M(e){typeof e==`function`&&(QM=t=>t.startsWith(`on`)?!JM(t):e(t))}try{$M((ZM(),t(YM)).default)}catch{}function eN(e,t,n){let r={};for(let i in e)i===`values`&&typeof e.values==`object`||SO(e[i])||(QM(i)||n===!0&&JM(i)||!t&&!JM(i)||e.draggable&&i.startsWith(`onDrag`))&&(r[i]=e[i]);return r}var tN=(0,j.createContext)({});function nN(e,t){if(Yk(e)){let{initial:t,animate:n}=e;return{initial:t===!1||Kk(t)?t:void 0,animate:Kk(n)?n:void 0}}return e.inherit===!1?{}:t}function rN(e){let{initial:t,animate:n}=nN(e,(0,j.useContext)(tN));return(0,j.useMemo)(()=>({initial:t,animate:n}),[iN(t),iN(n)])}function iN(e){return Array.isArray(e)?e.join(` `):e}var aN=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function oN(e,t,n){for(let r in t)!SO(t[r])&&!zA(r,n)&&(e[r]=t[r])}function sN({transformTemplate:e},t){return(0,j.useMemo)(()=>{let n=aN();return NA(n,t,e),Object.assign({},n.vars,n.style)},[t])}function cN(e,t){let n=e.style||{},r={};return oN(r,n,e),Object.assign(r,sN(e,t)),r}function lN(e,t){let n={},r=cN(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout=`none`,r.touchAction=e.drag===!0?`none`:`pan-${e.drag===`x`?`y`:`x`}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}var uN=()=>({...aN(),attrs:{}});function dN(e,t,n,r){let i=(0,j.useMemo)(()=>{let n=uN();return qA(n,t,YA(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};oN(t,e.style,e),i.style={...t,...i.style}}return i}var fN=[`animate`,`circle`,`defs`,`desc`,`ellipse`,`g`,`image`,`line`,`filter`,`marker`,`mask`,`metadata`,`path`,`pattern`,`polygon`,`polyline`,`rect`,`stop`,`switch`,`symbol`,`svg`,`text`,`tspan`,`use`,`view`];function pN(e){return typeof e!=`string`||e.includes(`-`)?!1:!!(fN.indexOf(e)>-1||/[A-Z]/u.test(e))}function mN(e,t,n,{latestValues:r},i,a=!1,o){let s=(o??pN(e)?dN:lN)(t,r,i,e),c=eN(t,typeof e==`string`,a),l=e===j.Fragment?{}:{...c,...s,ref:n},{children:u}=t,d=(0,j.useMemo)(()=>SO(u)?u.get():u,[u]);return(0,j.createElement)(e,{...l,children:d})}function hN({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:gN(n,r,i,e),renderState:t()}}function gN(e,t,n,r){let i={},a=r(e,{});for(let e in a)i[e]=eM(a[e]);let{initial:o,animate:s}=e,c=Yk(e),l=Xk(e);t&&l&&!c&&e.inherit!==!1&&(o===void 0&&(o=t.initial),s===void 0&&(s=t.animate));let u=n?n.initial===!1:!1;u||=o===!1;let d=u?s:o;if(d&&typeof d!=`boolean`&&!Gk(d)){let t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){let r=hO(e,t[n]);if(r){let{transitionEnd:e,transition:t,...n}=r;for(let e in n){let t=n[e];if(Array.isArray(t)){let e=u?t.length-1:0;t=t[e]}t!==null&&(i[e]=t)}for(let t in e)i[t]=e[t]}}}return i}var _N=e=>(t,n)=>{let r=(0,j.useContext)(tN),i=(0,j.useContext)(sw),a=()=>hN(e,t,r,i);return n?a():aw(a)},vN=_N({scrapeMotionValuesFromProps:BA,createRenderState:aN}),yN=_N({scrapeMotionValuesFromProps:ZA,createRenderState:uN}),bN=Symbol.for(`motionComponentSymbol`);function xN(e,t,n){let r=(0,j.useRef)(n);(0,j.useInsertionEffect)(()=>{r.current=n});let i=(0,j.useRef)(null);return(0,j.useCallback)(n=>{n&&e.onMount?.(n),t&&(n?t.mount(n):t.unmount());let a=r.current;if(typeof a==`function`)if(n){let e=a(n);typeof e==`function`&&(i.current=e)}else i.current?(i.current(),i.current=null):a(n);else a&&(a.current=n)},[t])}var SN=(0,j.createContext)({});function CN(e){return e&&typeof e==`object`&&Object.prototype.hasOwnProperty.call(e,`current`)}function wN(e,t,n,r,i,a){let{visualElement:o}=(0,j.useContext)(tN),s=(0,j.useContext)(VM),c=(0,j.useContext)(sw),l=(0,j.useContext)(zM),u=l.reducedMotion,d=l.skipAnimations,f=(0,j.useRef)(null),p=(0,j.useRef)(!1);r||=s.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:o,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:u,skipAnimations:d,isSVG:a}),p.current&&f.current&&(f.current.manuallyAnimateOnMount=!0));let m=f.current,h=(0,j.useContext)(SN);m&&!m.projection&&i&&(m.type===`html`||m.type===`svg`)&&TN(f.current,n,i,h);let g=(0,j.useRef)(!1);(0,j.useInsertionEffect)(()=>{m&&g.current&&m.update(n,c)});let _=n[EO],v=(0,j.useRef)(!!_&&typeof window<`u`&&!window.MotionHandoffIsComplete?.(_)&&window.MotionHasOptimisedAnimation?.(_));return ow(()=>{p.current=!0,m&&(g.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),v.current&&m.animationState&&m.animationState.animateChanges())}),(0,j.useEffect)(()=>{m&&(!v.current&&m.animationState&&m.animationState.animateChanges(),v.current&&=(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(_)}),!1),m.enteringChildren=void 0)}),m}function TN(e,t,n,r){let{layoutId:i,layout:a,drag:o,dragConstraints:s,layoutScroll:c,layoutRoot:l,layoutAnchor:u,layoutCrossfade:d}=t;e.projection=new n(e.latestValues,t[`data-framer-portal-id`]?void 0:EN(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||s&&CN(s),visualElement:e,animationType:typeof a==`string`?a:`both`,initialPromotionConfig:r,crossfade:d,layoutScroll:c,layoutRoot:l,layoutAnchor:u})}function EN(e){if(e)return e.options.allowProjection===!1?EN(e.parent):e.projection}var $=a();function DN(e,{forwardMotionProps:t=!1,type:n}={},r,i){r&&KM(r);let a=n?n===`svg`:pN(e),o=a?yN:vN;function s(n,s){let c,l={...(0,j.useContext)(zM),...n,layoutId:ON(n)},{isStatic:u}=l,d=rN(n),f=o(n,u);if(!u&&typeof window<`u`){kN(l,r);let t=AN(l);c=t.MeasureLayout,d.visualElement=wN(e,f,l,i,t.ProjectionNode,a)}return(0,$.jsxs)(tN.Provider,{value:d,children:[c&&d.visualElement?(0,$.jsx)(c,{visualElement:d.visualElement,...l}):null,mN(e,n,xN(f,d.visualElement,s),f,u,t,a)]})}s.displayName=`motion.${typeof e==`string`?e:`create(${e.displayName??e.name??``})`}`;let c=(0,j.forwardRef)(s);return c[bN]=e,c}function ON({layoutId:e}){let t=(0,j.useContext)(iw).id;return t&&e!==void 0?t+`-`+e:e}function kN(e,t){(0,j.useContext)(VM).strict}function AN(e){let{drag:t,layout:n}=GM();if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function jN(e,t){if(typeof Proxy>`u`)return DN;let n=new Map,r=(n,r)=>DN(n,r,e,t);return new Proxy((e,t)=>r(e,t),{get:(i,a)=>a===`create`?r:(n.has(a)||n.set(a,DN(a,void 0,e,t)),n.get(a))})}var MN=(e,t)=>t.isSVG??pN(e)?new QA(t):new HA(t,{allowProjection:e!==j.Fragment}),NN=class extends cA{constructor(e){super(e),e.animationState||=aj(e)}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();Gk(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}},PN=0,FN={animation:{Feature:NN},exit:{Feature:class extends cA{constructor(){super(...arguments),this.id=PN++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;if(e&&n===!1){if(this.isExitComplete){let{initial:e,custom:t}=this.node.getProps();if(typeof e==`string`||typeof e==`object`&&e&&!Array.isArray(e)){let n=gO(this.node,e,t);if(n){let{transition:e,transitionEnd:t,...r}=n;for(let e in r)this.node.getValue(e)?.jump(r[e])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive(`exit`,!1);this.isExitComplete=!1;return}let r=this.node.animationState.setActive(`exit`,!e);t&&!e&&r.then(()=>{this.isExitComplete=!0,t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}}};function IN(e){return{point:{x:e.pageX,y:e.pageY}}}var LN=e=>t=>uk(t)&&e(t,IN(t));function RN(e,t,n,r){return Xj(e,t,LN(n),r)}var zN=({current:e})=>e?e.ownerDocument.defaultView:null,BN=(e,t)=>Math.abs(e-t);function VN(e,t){let n=BN(e.x,t.x),r=BN(e.y,t.y);return Math.sqrt(n**2+r**2)}var HN=new Set([`auto`,`scroll`]),UN=class{constructor(e,t,{transformPagePoint:n,contextWindow:r=window,dragSnapToOrigin:i=!1,distanceThreshold:a=3,element:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=WN(this.lastRawMoveEventInfo,this.transformPagePoint));let e=KN(this.lastMoveEventInfo,this.history),t=this.startEvent!==null,n=VN(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!n)return;let{point:r}=e,{timestamp:i}=Qw;this.history.push({...r,timestamp:i});let{onStart:a,onMove:o}=this.handlers;t||(a&&a(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastRawMoveEventInfo=t,this.lastMoveEventInfo=WN(t,this.transformPagePoint),Xw.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let a=KN(e.type===`pointercancel`?this.lastMoveEventInfo:WN(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,a),r&&r(e,a)},!uk(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=a,this.contextWindow=r||window;let s=WN(IN(e),this.transformPagePoint),{point:c}=s,{timestamp:l}=Qw;this.history=[{...c,timestamp:l}];let{onSessionStart:u}=t;u&&u(e,KN(s,this.history)),this.removeListeners=_w(RN(this.contextWindow,`pointermove`,this.handlePointerMove),RN(this.contextWindow,`pointerup`,this.handlePointerUp),RN(this.contextWindow,`pointercancel`,this.handlePointerUp)),o&&this.startScrollTracking(o)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(HN.has(e.overflowX)||HN.has(e.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener(`scroll`,this.onElementScroll,{capture:!0}),window.addEventListener(`scroll`,this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener(`scroll`,this.onElementScroll,{capture:!0}),window.removeEventListener(`scroll`,this.onWindowScroll)}}handleScroll(e){let t=this.scrollPositions.get(e);if(!t)return;let n=e===window,r=n?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},i={x:r.x-t.x,y:r.y-t.y};i.x===0&&i.y===0||(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(e,r),Xw.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Zw(this.updatePoint)}};function WN(e,t){return t?{point:t(e.point)}:e}function GN(e,t){return{x:e.x-t.x,y:e.y-t.y}}function KN({point:e},t){return{point:e,delta:GN(e,JN(t)),offset:GN(e,qN(t)),velocity:YN(t,.1)}}function qN(e){return e[0]}function JN(e){return e[e.length-1]}function YN(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=JN(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>bw(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&i.timestamp-r.timestamp>bw(t)*2&&(r=e[1]);let a=xw(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};let o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function XN(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?ZT(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?ZT(n,e,r.max):Math.min(e,n)),e}function ZN(e,t,n){return{min:t===void 0?void 0:e.min+t,max:n===void 0?void 0:e.max+n-(e.max-e.min)}}function QN(e,{top:t,left:n,bottom:r,right:i}){return{x:ZN(e.x,n,i),y:ZN(e.y,t,r)}}function $N(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function eP(e,t){return{x:$N(e.x,t.x),y:$N(e.y,t.y)}}function tP(e,t){let n=.5,r=gj(e),i=gj(t);return i>r?n=vw(t.min,t.max-r,e.min):r>i&&(n=vw(e.min,e.max-i,t.min)),uw(0,1,n)}function nP(e,t){let n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}var rP=.35;function iP(e=rP){return e===!1?e=0:e===!0&&(e=rP),{x:aP(e,`left`,`right`),y:aP(e,`top`,`bottom`)}}function aP(e,t,n){return{min:oP(e,t),max:oP(e,n)}}function oP(e,t){return typeof e==`number`?e:e[t]||0}var sP=new WeakMap,cP=class{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Uk(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){let{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;let i=e=>{t&&this.snapToCursor(IN(e).point),this.stopAnimation()},a=(e,t)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=ak(n),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Rj(e=>{let t=this.getAxisMotionValue(e).get()||0;if(ET.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];r&&(t=gj(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&Xw.update(()=>i(e,t),!1,!0),wO(this.visualElement,`transform`);let{animationState:a}=this.visualElement;a&&a.setActive(`whileDrag`,!0)},o=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:a}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:o}=t;if(r&&this.currentDirection===null){this.currentDirection=fP(o),this.currentDirection!==null&&i&&i(this.currentDirection);return}this.updateAxis(`x`,t.point,o),this.updateAxis(`y`,t.point,o),this.visualElement.render(),a&&Xw.update(()=>a(e,t),!1,!0)},s=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>{let{dragSnapToOrigin:e}=this.getProps();(e||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:l}=this.getProps();this.panSession=new UN(e,{onSessionStart:i,onStart:a,onMove:o,onSessionEnd:s,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,distanceThreshold:n,contextWindow:zN(this.visualElement),element:this.visualElement.current})}stop(e,t){let n=e||this.latestPointerEvent,r=t||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!r||!n)return;let{velocity:a}=r;this.startAnimation(a);let{onDragEnd:o}=this.getProps();o&&Xw.postRender(()=>o(n,r))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive(`whileDrag`,!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!dP(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=XN(a,this.constraints[e],this.elastic[e])),i.set(a)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;e&&CN(e)?this.constraints||=this.resolveRefConstraints():e&&n?this.constraints=QN(n.layoutBox,e):this.constraints=!1,this.elastic=iP(t),r!==this.constraints&&!CN(e)&&n&&this.constraints&&!this.hasMutatedConstraints&&Rj(e=>{this.constraints!==!1&&this.getAxisMotionValue(e)&&(this.constraints[e]=nP(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){let{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!CN(e))return!1;let n=e.current,{projection:r}=this.visualElement;if(!r||!r.layout)return!1;r.root&&(r.root.scroll=void 0,r.root.updateScroll());let i=kA(n,r.root,this.visualElement.getTransformPagePoint()),a=eP(r.layout.layoutBox,i);if(t){let e=t(uA(a));this.hasMutatedConstraints=!!e,e&&(a=lA(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),s=this.constraints||{},c=Rj(o=>{if(!dP(o,t,this.currentDirection))return;let c=s&&s[o]||{};(a===!0||a===o)&&(c={min:0,max:0});let l=r?200:1e6,u=r?40:1e7,d={type:`inertia`,velocity:n?e[o]:0,bounceStiffness:l,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...i,...c};return this.startAxisValueAnimation(o,d)});return Promise.all(c).then(o)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return wO(this.visualElement,e),n.start(uO(e,n,0,t,this.visualElement,!1))}stopAnimation(){Rj(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`;return this.visualElement.getProps()[t]||this.visualElement.getValue(e,this.visualElement.latestValues[e]??0)}snapToCursor(e){Rj(t=>{let{drag:n}=this.getProps();if(!dP(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:a}=r.layout.layoutBox[t],o=i.get()||0;i.set(e[t]-ZT(n,a,.5)+o)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!CN(t)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};Rj(e=>{let t=this.getAxisMotionValue(e);if(t&&this.constraints!==!1){let n=t.get();r[e]=tP({min:n,max:n},this.constraints[e])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},``):`none`,n.root&&n.root.updateScroll(),n.updateLayout(),this.constraints=!1,this.resolveConstraints(),Rj(t=>{if(!dP(t,e,null))return;let n=this.getAxisMotionValue(t),{min:i,max:a}=this.constraints[t];n.set(ZT(i,a,r[t]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;sP.set(this.visualElement,this);let e=this.visualElement.current,t=RN(e,`pointerdown`,t=>{let{drag:n,dragListener:r=!0}=this.getProps(),i=t.target,a=i!==e&&mk(i);n&&r&&!a&&this.start(t)}),n,r=()=>{let{dragConstraints:t}=this.getProps();CN(t)&&t.current&&(this.constraints=this.resolveRefConstraints(),n||=uP(e,t.current,()=>this.scalePositionWithinConstraints()))},{projection:i}=this.visualElement,a=i.addEventListener(`measure`,r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),Xw.read(r);let o=Xj(window,`resize`,()=>this.scalePositionWithinConstraints()),s=i.addEventListener(`didUpdate`,(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(Rj(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())}));return()=>{o(),t(),a(),s&&s(),n&&n()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:a=rP,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:a,dragMomentum:o}}};function lP(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function uP(e,t,n){let r=Ik(e,lP(n)),i=Ik(t,lP(n));return()=>{r(),i()}}function dP(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function fP(e,t=10){let n=null;return Math.abs(e.y)>t?n=`y`:Math.abs(e.x)>t&&(n=`x`),n}var pP=class extends cA{constructor(e){super(e),this.removeGroupControls=gw,this.removeListeners=gw,this.controls=new cP(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||gw}update(){let{dragControls:e}=this.node.getProps(),{dragControls:t}=this.node.prevProps||{};e!==t&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},mP=e=>(t,n)=>{e&&Xw.update(()=>e(t,n),!1,!0)},hP=class extends cA{constructor(){super(...arguments),this.removePointerDownListener=gw}onPointerDown(e){this.session=new UN(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:zN(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:mP(e),onStart:mP(t),onMove:mP(n),onEnd:(e,t)=>{delete this.session,r&&Xw.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=RN(this.node.current,`pointerdown`,e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}},gP=!1,_P=class extends j.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),gP&&i.root.didUpdate(),i.addEventListener(`animationComplete`,()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),nM.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,{projection:a}=n;return a?(a.isPresent=i,e.layoutDependency!==t&&a.setOptions({...a.options,layoutDependency:t}),gP=!0,r||e.layoutDependency!==t||t===void 0||e.isPresent!==i?a.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?a.promote():a.relegate()||Xw.postRender(()=>{let e=a.getStack();(!e||!e.members.length)&&this.safeToRemove()})),null):null}componentDidUpdate(){let{visualElement:e,layoutAnchor:t}=this.props,{projection:n}=e;n&&(n.options.layoutAnchor=t,n.root.didUpdate(),tk.postRender(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;gP=!0,r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}};function vP(e){let[t,n]=BM(),r=(0,j.useContext)(iw);return(0,$.jsx)(_P,{...e,layoutGroup:r,switchLayoutGroup:(0,j.useContext)(SN),isPresent:t,safeToRemove:n})}var yP={pan:{Feature:hP},drag:{Feature:pP,ProjectionNode:RM,MeasureLayout:vP}};function bP(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive(`whileHover`,n===`Start`);let i=r[`onHover`+n];i&&Xw.postRender(()=>i(t,IN(t)))}var xP=class extends cA{mount(){let{current:e}=this.node;e&&(this.unmount=ck(e,(e,t)=>(bP(this.node,t,`Start`),e=>bP(this.node,e,`End`))))}unmount(){}},SP=class extends cA{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(`:focus-visible`)}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive(`whileFocus`,!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive(`whileFocus`,!1),this.isActive=!1)}mount(){this.unmount=_w(Xj(this.node.current,`focus`,()=>this.onFocus()),Xj(this.node.current,`blur`,()=>this.onBlur()))}unmount(){}};function CP(e,t,n){let{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive(`whileTap`,n===`Start`);let i=r[`onTap`+(n===`End`?``:n)];i&&Xw.postRender(()=>i(t,IN(t)))}var wP=class extends cA{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:n}=this.node.props;this.unmount=xk(e,(e,t)=>(CP(this.node,t,`Start`),(e,{success:t})=>CP(this.node,e,t?`End`:`Cancel`)),{useGlobalTarget:t,stopPropagation:n?.tap===!1})}unmount(){}},TP=new WeakMap,EP=new WeakMap,DP=e=>{let t=TP.get(e.target);t&&t(e)},OP=e=>{e.forEach(DP)};function kP({root:e,...t}){let n=e||document;EP.has(n)||EP.set(n,{});let r=EP.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(OP,{root:e,...t})),r[i]}function AP(e,t,n){let r=kP(t);return TP.set(e,n),r.observe(e),()=>{TP.delete(e),r.unobserve(e)}}var jP={some:0,all:1},MP=class extends cA{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();let{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r=`some`,once:i}=e,a={root:t?t.current:void 0,rootMargin:n,threshold:typeof r==`number`?r:jP[r]},o=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,i&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive(`whileInView`,t);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),a=t?n:r;a&&a(e)};this.stopObserver=AP(this.node.current,a,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>`u`)return;let{props:e,prevProps:t}=this.node;[`amount`,`margin`,`root`].some(NP(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}};function NP({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}var PP={inView:{Feature:MP},tap:{Feature:wP},focus:{Feature:SP},hover:{Feature:xP}},FP={layout:{ProjectionNode:RM,MeasureLayout:vP}},IP=jN({...FN,...PP,...yP,...FP},MN),LP=new Map,RP=e=>{let t=LP.get(e);return t||(t=IP.create(e),LP.set(e,t)),t},zP=(0,j.memo)(({children:e,as:t=`p`,className:n,duration:r=2,spread:i=2})=>{let a=RP(t),o=(0,j.useMemo)(()=>(e?.length??0)*i,[e,i]);return(0,$.jsx)(a,{animate:{backgroundPosition:`0% center`},className:O(`relative inline-block bg-[length:250%_100%,auto] bg-clip-text text-transparent`,`[--bg:linear-gradient(90deg,#0000_calc(50%-var(--spread)),var(--color-background),#0000_calc(50%+var(--spread)))] [background-repeat:no-repeat,padding-box]`,n),initial:{backgroundPosition:`100% center`},style:{"--spread":`${o}px`,backgroundImage:`var(--bg), linear-gradient(var(--color-muted-foreground), var(--color-muted-foreground))`},transition:{duration:r,ease:`linear`,repeat:1/0},children:e})}),BP=(0,j.createContext)(null),VP=()=>{let e=(0,j.useContext)(BP);if(!e)throw Error(`Reasoning components must be used within Reasoning`);return e},HP=1e3,UP=1e3,WP=(0,j.memo)(({className:e,isStreaming:t=!1,open:n,defaultOpen:r,onOpenChange:i,duration:a,children:o,...s})=>{let c=r??t,l=r===!1,[u,d]=vr({defaultProp:c,onChange:i,prop:n}),[f,p]=vr({defaultProp:void 0,prop:a}),m=(0,j.useRef)(t),[h,g]=(0,j.useState)(!1),_=(0,j.useRef)(null);(0,j.useEffect)(()=>{t?(m.current=!0,_.current===null&&(_.current=Date.now())):_.current!==null&&(p(Math.ceil((Date.now()-_.current)/UP)),_.current=null)},[t,p]),(0,j.useEffect)(()=>{t&&!u&&!l&&d(!0)},[t,u,d,l]),(0,j.useEffect)(()=>{if(m.current&&!t&&u&&!h){let e=setTimeout(()=>{d(!1),g(!0)},HP);return()=>clearTimeout(e)}},[t,u,d,h]);let v=(0,j.useCallback)(e=>{d(e)},[d]),y=(0,j.useMemo)(()=>({duration:f,isOpen:u,isStreaming:t,setIsOpen:d}),[f,u,t,d]);return(0,$.jsx)(BP.Provider,{value:y,children:(0,$.jsx)(T,{className:O(`not-prose mb-4`,e),onOpenChange:v,open:u,...s,children:o})})}),GP=(e,t)=>e||t===0?(0,$.jsx)(zP,{duration:1,children:`Thinking...`}):t===void 0?(0,$.jsx)(`p`,{children:`Thought for a few seconds`}):(0,$.jsxs)(`p`,{children:[`Thought for `,t,` seconds`]}),KP=(0,j.memo)(({className:e,children:t,getThinkingMessage:n=GP,...r})=>{let{isStreaming:i,isOpen:a,duration:o}=VP();return(0,$.jsx)(w,{className:O(`flex w-full items-center gap-2 text-muted-foreground text-sm transition-colors hover:text-foreground`,e),...r,children:t??(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(Le,{className:`size-4`}),n(i,o),(0,$.jsx)(x,{className:O(`size-4 transition-transform`,a?`rotate-180`:`rotate-0`)})]})})}),qP={cjk:Oi,code:kp,math:zb,mermaid:rw},JP=(0,j.memo)(({className:e,children:t,...n})=>(0,$.jsx)(C,{className:O(`mt-4 text-sm`,`data-[state=closed]:fade-out-0 data-[state=closed]:slide-out-to-top-2 data-[state=open]:slide-in-from-top-2 text-muted-foreground outline-none data-[state=closed]:animate-out data-[state=open]:animate-in`,e),...n,children:(0,$.jsx)(It,{plugins:qP,children:t})}));WP.displayName=`Reasoning`,KP.displayName=`ReasoningTrigger`,JP.displayName=`ReasoningContent`;var YP=(0,j.createContext)(null),XP=()=>{let e=(0,j.useContext)(YP);if(!e)throw Error(`ChainOfThought components must be used within ChainOfThought`);return e},ZP=(0,j.memo)(({className:e,open:t,defaultOpen:n=!1,onOpenChange:r,children:i,...a})=>{let[o,s]=vr({defaultProp:n,onChange:r,prop:t}),c=(0,j.useMemo)(()=>({isOpen:o,setIsOpen:s}),[o,s]);return(0,$.jsx)(YP.Provider,{value:c,children:(0,$.jsx)(`div`,{className:O(`not-prose w-full space-y-4`,e),...a,children:i})})}),QP=(0,j.memo)(({className:e,children:t,...n})=>{let{isOpen:r,setIsOpen:i}=XP();return(0,$.jsx)(T,{onOpenChange:i,open:r,children:(0,$.jsxs)(w,{className:O(`flex w-full items-center gap-2 text-muted-foreground text-sm transition-colors hover:text-foreground`,e),...n,children:[(0,$.jsx)(Le,{className:`size-4`}),(0,$.jsx)(`span`,{className:`flex-1 text-left`,children:t??`Chain of Thought`}),(0,$.jsx)(x,{className:O(`size-4 transition-transform`,r?`rotate-180`:`rotate-0`)})]})})}),$P={active:`text-foreground`,complete:`text-muted-foreground`,pending:`text-muted-foreground/50`},eF=(0,j.memo)(({className:e,icon:t=Ln,label:n,description:r,status:i=`complete`,children:a,...o})=>(0,$.jsxs)(`div`,{className:O(`flex gap-2 text-sm`,$P[i],`fade-in-0 slide-in-from-top-2 animate-in`,e),...o,children:[(0,$.jsxs)(`div`,{className:`relative mt-0.5`,children:[(0,$.jsx)(t,{className:`size-4`}),(0,$.jsx)(`div`,{className:`absolute top-7 bottom-0 left-1/2 -mx-px w-px bg-border`})]}),(0,$.jsxs)(`div`,{className:`flex-1 space-y-2 overflow-hidden`,children:[(0,$.jsx)(`div`,{children:n}),r&&(0,$.jsx)(`div`,{className:`text-muted-foreground text-xs`,children:r}),a]})]})),tF=(0,j.memo)(({className:e,...t})=>(0,$.jsx)(`div`,{className:O(`flex flex-wrap items-center gap-2`,e),...t})),nF=(0,j.memo)(({className:e,children:t,...n})=>(0,$.jsx)(_t,{className:O(`gap-1 px-2 py-0.5 font-normal text-xs`,e),variant:`secondary`,...n,children:t})),rF=(0,j.memo)(({className:e,children:t,...n})=>{let{isOpen:r}=XP();return(0,$.jsx)(T,{open:r,children:(0,$.jsx)(C,{className:O(`mt-2 space-y-3`,`data-[state=closed]:fade-out-0 data-[state=closed]:slide-out-to-top-2 data-[state=open]:slide-in-from-top-2 text-popover-foreground outline-none data-[state=closed]:animate-out data-[state=open]:animate-in`,e),...n,children:t})})}),iF=(0,j.memo)(({className:e,children:t,caption:n,...r})=>(0,$.jsxs)(`div`,{className:O(`mt-2 space-y-2`,e),...r,children:[(0,$.jsx)(`div`,{className:`relative flex max-h-[22rem] items-center justify-center overflow-hidden rounded-lg bg-muted p-3`,children:t}),n&&(0,$.jsx)(`p`,{className:`text-muted-foreground text-xs`,children:n})]}));ZP.displayName=`ChainOfThought`,QP.displayName=`ChainOfThoughtHeader`,eF.displayName=`ChainOfThoughtStep`,tF.displayName=`ChainOfThoughtSearchResults`,nF.displayName=`ChainOfThoughtSearchResult`,rF.displayName=`ChainOfThoughtContent`,iF.displayName=`ChainOfThoughtImage`;var aF=Object.defineProperty,oF=Object.getOwnPropertyDescriptor,sF=Object.getOwnPropertyNames,cF=Object.prototype.hasOwnProperty,lF=(e,t)=>{let n={};for(var r in e)aF(n,r,{get:e[r],enumerable:!0});return t||aF(n,Symbol.toStringTag,{value:`Module`}),n},uF=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=sF(t),a=0,o=i.length,s;a<o;a++)s=i[a],!cF.call(e,s)&&s!==n&&aF(e,s,{get:(e=>t[e]).bind(null,s),enumerable:!(r=oF(t,s))||r.enumerable});return e},dF=(e,t,n)=>(uF(e,t,`default`),n&&uF(n,t,`default`)),fF=[{id:`abap`,name:`ABAP`,import:(()=>k(()=>import(`./abap-CLvhMVsD.js`),[]))},{id:`actionscript-3`,name:`ActionScript`,import:(()=>k(()=>import(`./actionscript-3--17pq3dv.js`),[]))},{id:`ada`,name:`Ada`,import:(()=>k(()=>import(`./ada-C5qYipkI.js`),[]))},{id:`angular-html`,name:`Angular HTML`,import:(()=>k(()=>import(`./angular-html-DrvEcI8G.js`).then(e=>e.n),__vite__mapDeps([174,1,175,176,177])))},{id:`angular-ts`,name:`Angular TypeScript`,import:(()=>k(()=>import(`./angular-ts-D8CUV3s9.js`),__vite__mapDeps([178,174,1,175,176,177,179])))},{id:`apache`,name:`Apache Conf`,import:(()=>k(()=>import(`./apache-U0d_L8uA.js`),[]))},{id:`apex`,name:`Apex`,import:(()=>k(()=>import(`./apex-VAyPSnFM.js`),[]))},{id:`apl`,name:`APL`,import:(()=>k(()=>import(`./apl-PcM4Dp7k.js`),__vite__mapDeps([180,176,1,175,177,181,182,183])))},{id:`applescript`,name:`AppleScript`,import:(()=>k(()=>import(`./applescript-CCn79oCD.js`),[]))},{id:`ara`,name:`Ara`,import:(()=>k(()=>import(`./ara-4CJ0cIlV.js`),[]))},{id:`asciidoc`,name:`AsciiDoc`,aliases:[`adoc`],import:(()=>k(()=>import(`./asciidoc-DE70LPWp.js`),[]))},{id:`asm`,name:`Assembly`,import:(()=>k(()=>import(`./asm-Cmm7eHzH.js`),[]))},{id:`astro`,name:`Astro`,import:(()=>k(()=>import(`./astro-DcteBnKj.js`),__vite__mapDeps([184,176,1,177,181,185,186,187])))},{id:`awk`,name:`AWK`,import:(()=>k(()=>import(`./awk-BWXHIvNe.js`),[]))},{id:`ballerina`,name:`Ballerina`,import:(()=>k(()=>import(`./ballerina-B7ZEbQpA.js`),[]))},{id:`bat`,name:`Batch File`,aliases:[`batch`],import:(()=>k(()=>import(`./bat-Bo4NYOV-.js`),[]))},{id:`beancount`,name:`Beancount`,import:(()=>k(()=>import(`./beancount-D-usSTwE.js`),[]))},{id:`berry`,name:`Berry`,aliases:[`be`],import:(()=>k(()=>import(`./berry-DKpUyyne.js`),[]))},{id:`bibtex`,name:`BibTeX`,import:(()=>k(()=>import(`./bibtex-Ci_nEsc7.js`),[]))},{id:`bicep`,name:`Bicep`,import:(()=>k(()=>import(`./bicep-CUHmPFLl.js`),[]))},{id:`bird2`,name:`BIRD2 Configuration`,aliases:[`bird`],import:(()=>k(()=>import(`./bird2-C6vDhewU.js`),[]))},{id:`blade`,name:`Blade`,import:(()=>k(()=>import(`./blade-6YnoPBU8.js`),__vite__mapDeps([188,176,1,189,175,177,181,190,182,183])))},{id:`bsl`,name:`1C (Enterprise)`,aliases:[`1c`],import:(()=>k(()=>import(`./bsl-BkkzgIyY.js`),__vite__mapDeps([191,192])))},{id:`c`,name:`C`,import:(()=>k(()=>import(`./c-Y1DAQKNJ.js`).then(e=>e.n),__vite__mapDeps([193,1])))},{id:`c3`,name:`C3`,import:(()=>k(()=>import(`./c3-BFHwR3_K.js`),[]))},{id:`cadence`,name:`Cadence`,aliases:[`cdc`],import:(()=>k(()=>import(`./cadence-CQ2zXKGN.js`),[]))},{id:`cairo`,name:`Cairo`,import:(()=>k(()=>import(`./cairo-DLTphjLi.js`),__vite__mapDeps([194,195])))},{id:`clarity`,name:`Clarity`,import:(()=>k(()=>import(`./clarity-SemFz856.js`),[]))},{id:`clojure`,name:`Clojure`,aliases:[`clj`],import:(()=>k(()=>import(`./clojure-DqKBuwfJ.js`),[]))},{id:`cmake`,name:`CMake`,import:(()=>k(()=>import(`./cmake-Bj61d0ZC.js`),[]))},{id:`cobol`,name:`COBOL`,import:(()=>k(()=>import(`./cobol-IOjEjPmG.js`),__vite__mapDeps([196,175,1,176,177,183])))},{id:`codeowners`,name:`CODEOWNERS`,import:(()=>k(()=>import(`./codeowners-C8r90Shi.js`),[]))},{id:`codeql`,name:`CodeQL`,aliases:[`ql`],import:(()=>k(()=>import(`./codeql-oeQT6MSM.js`),[]))},{id:`coffee`,name:`CoffeeScript`,aliases:[`coffeescript`],import:(()=>k(()=>import(`./coffee-B5TREocO.js`),__vite__mapDeps([197,177,1])))},{id:`common-lisp`,name:`Common Lisp`,aliases:[`lisp`],import:(()=>k(()=>import(`./common-lisp-Cv5bFMCO.js`),[]))},{id:`coq`,name:`Coq`,import:(()=>k(()=>import(`./coq-BrsZFFmf.js`),[]))},{id:`cpp`,name:`C++`,aliases:[`c++`],import:(()=>k(()=>import(`./cpp-C4ceAJBi.js`).then(e=>e.n),__vite__mapDeps([198,1,199,193,200,190])))},{id:`crystal`,name:`Crystal`,import:(()=>k(()=>import(`./crystal-CgtjlE18.js`),__vite__mapDeps([201,193,1,176,175,177,202,190])))},{id:`csharp`,name:`C#`,aliases:[`c#`,`cs`],import:(()=>k(()=>import(`./csharp-oqKa8noW.js`),[]))},{id:`css`,name:`CSS`,import:(()=>k(()=>import(`./css-Dflf0SUa.js`).then(e=>e.n),__vite__mapDeps([176,1])))},{id:`csv`,name:`CSV`,import:(()=>k(()=>import(`./csv-Dx-8-gkx.js`),[]))},{id:`cue`,name:`CUE`,import:(()=>k(()=>import(`./cue-CE9AQfxI.js`),[]))},{id:`cypher`,name:`Cypher`,aliases:[`cql`],import:(()=>k(()=>import(`./cypher-ClKdZ_lG.js`),[]))},{id:`d`,name:`D`,import:(()=>k(()=>import(`./d-qD-0Kul2.js`),[]))},{id:`dart`,name:`Dart`,import:(()=>k(()=>import(`./dart-CnvKMtbv.js`),[]))},{id:`dax`,name:`DAX`,import:(()=>k(()=>import(`./dax-BkyTk9wS.js`),[]))},{id:`desktop`,name:`Desktop`,import:(()=>k(()=>import(`./desktop-Dlh5hvp9.js`),[]))},{id:`diff`,name:`Diff`,import:(()=>k(()=>import(`./diff-woXpYk--.js`),[]))},{id:`docker`,name:`Dockerfile`,aliases:[`dockerfile`],import:(()=>k(()=>import(`./docker-IyjqRm3v.js`),[]))},{id:`dotenv`,name:`dotEnv`,import:(()=>k(()=>import(`./dotenv-_5a1GRtc.js`),[]))},{id:`dream-maker`,name:`Dream Maker`,import:(()=>k(()=>import(`./dream-maker-DW3nJb8Q.js`),[]))},{id:`edge`,name:`Edge`,import:(()=>k(()=>import(`./edge-DoVTVjme.js`),__vite__mapDeps([203,189,175,1,176,177,187])))},{id:`elixir`,name:`Elixir`,import:(()=>k(()=>import(`./elixir-CzgPtVDf.js`),__vite__mapDeps([204,175,1,176,177])))},{id:`elm`,name:`Elm`,import:(()=>k(()=>import(`./elm-Cm7sFdI1.js`),__vite__mapDeps([205,199,1,193])))},{id:`emacs-lisp`,name:`Emacs Lisp`,aliases:[`elisp`],import:(()=>k(()=>import(`./emacs-lisp-B4R74twV.js`),[]))},{id:`erb`,name:`ERB`,import:(()=>k(()=>import(`./erb-p0q977En.js`),__vite__mapDeps([206,175,1,176,177,207,193,198,199,200,190,208,209,186,187,210,211,202,182,183,212])))},{id:`erlang`,name:`Erlang`,aliases:[`erl`],import:(()=>k(()=>import(`./erlang-Cphh6RMH.js`),__vite__mapDeps([213,214])))},{id:`fennel`,name:`Fennel`,import:(()=>k(()=>import(`./fennel-DQxkIbk2.js`),[]))},{id:`fish`,name:`Fish`,import:(()=>k(()=>import(`./fish-BJitypiv.js`),[]))},{id:`fluent`,name:`Fluent`,aliases:[`ftl`],import:(()=>k(()=>import(`./fluent-C03EYrpw.js`),[]))},{id:`fortran-fixed-form`,name:`Fortran (Fixed Form)`,aliases:[`f`,`for`,`f77`],import:(()=>k(()=>import(`./fortran-fixed-form-DEKoE2YW.js`),__vite__mapDeps([215,216])))},{id:`fortran-free-form`,name:`Fortran (Free Form)`,aliases:[`f90`,`f95`,`f03`,`f08`,`f18`],import:(()=>k(()=>import(`./fortran-free-form-CYNrtFtB.js`),[]))},{id:`fsharp`,name:`F#`,aliases:[`f#`,`fs`],import:(()=>k(()=>import(`./fsharp-D13ZGOAj.js`),__vite__mapDeps([217,214])))},{id:`gdresource`,name:`GDResource`,aliases:[`tscn`,`tres`],import:(()=>k(()=>import(`./gdresource-C0sCabJj.js`),__vite__mapDeps([218,219,220])))},{id:`gdscript`,name:`GDScript`,aliases:[`gd`],import:(()=>k(()=>import(`./gdscript-Cp2uCuqX.js`),[]))},{id:`gdshader`,name:`GDShader`,import:(()=>k(()=>import(`./gdshader-CBce3t8t.js`),[]))},{id:`genie`,name:`Genie`,import:(()=>k(()=>import(`./genie-CV2tkWYe.js`),[]))},{id:`gherkin`,name:`Gherkin`,import:(()=>k(()=>import(`./gherkin-DExj1W_8.js`),[]))},{id:`git-commit`,name:`Git Commit Message`,import:(()=>k(()=>import(`./git-commit-BSykSTBG.js`),__vite__mapDeps([221,222])))},{id:`git-rebase`,name:`Git Rebase Message`,import:(()=>k(()=>import(`./git-rebase-D2tSwjJb.js`),__vite__mapDeps([223,202,1])))},{id:`gleam`,name:`Gleam`,import:(()=>k(()=>import(`./gleam-CSRkHgEL.js`),[]))},{id:`glimmer-js`,name:`Glimmer JS`,aliases:[`gjs`],import:(()=>k(()=>import(`./glimmer-js-JMWzPMQ2.js`),__vite__mapDeps([224,176,1,175,177,187])))},{id:`glimmer-ts`,name:`Glimmer TS`,aliases:[`gts`],import:(()=>k(()=>import(`./glimmer-ts-DG5GCT78.js`),__vite__mapDeps([225,176,1,175,177,187])))},{id:`glsl`,name:`GLSL`,import:(()=>k(()=>import(`./glsl-dHcuwXfH.js`).then(e=>e.n),__vite__mapDeps([199,1,193])))},{id:`gn`,name:`GN`,import:(()=>k(()=>import(`./gn-ilITqXS6.js`),[]))},{id:`gnuplot`,name:`Gnuplot`,import:(()=>k(()=>import(`./gnuplot-7GGW24-e.js`),[]))},{id:`go`,name:`Go`,import:(()=>k(()=>import(`./go-rLFTqkRN.js`),[]))},{id:`graphql`,name:`GraphQL`,aliases:[`gql`],import:(()=>k(()=>import(`./graphql-CdhToEZf.js`).then(e=>e.n),__vite__mapDeps([208,1,177,209,186,187])))},{id:`groovy`,name:`Groovy`,import:(()=>k(()=>import(`./groovy-CacY0gHj.js`),[]))},{id:`hack`,name:`Hack`,import:(()=>k(()=>import(`./hack-C4J_0T1S.js`),__vite__mapDeps([226,175,1,176,177,190])))},{id:`haml`,name:`Ruby Haml`,import:(()=>k(()=>import(`./haml-qGg_91I2.js`).then(e=>e.n),__vite__mapDeps([210,1,176,177])))},{id:`handlebars`,name:`Handlebars`,aliases:[`hbs`],import:(()=>k(()=>import(`./handlebars-BU7OV8YS.js`),__vite__mapDeps([227,176,1,175,177,212])))},{id:`haskell`,name:`Haskell`,aliases:[`hs`],import:(()=>k(()=>import(`./haskell-D8IpX4py.js`),[]))},{id:`haxe`,name:`Haxe`,import:(()=>k(()=>import(`./haxe-OTjmBuCE.js`),[]))},{id:`hcl`,name:`HashiCorp HCL`,import:(()=>k(()=>import(`./hcl-Dh228itO.js`),[]))},{id:`hjson`,name:`Hjson`,import:(()=>k(()=>import(`./hjson-CxZEssPk.js`),[]))},{id:`hlsl`,name:`HLSL`,import:(()=>k(()=>import(`./hlsl-Cvrh5tZx.js`),[]))},{id:`html`,name:`HTML`,import:(()=>k(()=>import(`./html-x4KE3xEi.js`).then(e=>e.n),__vite__mapDeps([175,1,176,177])))},{id:`html-derivative`,name:`HTML (Derivative)`,import:(()=>k(()=>import(`./html-derivative-CWPAmHEG.js`),__vite__mapDeps([189,175,1,176,177])))},{id:`http`,name:`HTTP`,import:(()=>k(()=>import(`./http-HvMG3K54.js`),__vite__mapDeps([228,208,1,177,209,186,187,181,202,182,183])))},{id:`hurl`,name:`Hurl`,import:(()=>k(()=>import(`./hurl-CLh1t2ES.js`),__vite__mapDeps([229,230,208,1,177,209,186,187,182,183])))},{id:`hxml`,name:`HXML`,import:(()=>k(()=>import(`./hxml-B0Qn7Nwc.js`),__vite__mapDeps([231,232])))},{id:`hy`,name:`Hy`,import:(()=>k(()=>import(`./hy-CZbG8q4J.js`),[]))},{id:`imba`,name:`Imba`,import:(()=>k(()=>import(`./imba-DsUTQ-LC.js`),[]))},{id:`ini`,name:`INI`,aliases:[`properties`],import:(()=>k(()=>import(`./ini-B5eOa1yu.js`),[]))},{id:`java`,name:`Java`,import:(()=>k(()=>import(`./java-BIlOlX09.js`).then(e=>e.n),__vite__mapDeps([183,1])))},{id:`javascript`,name:`JavaScript`,aliases:[`js`,`cjs`,`mjs`],import:(()=>k(()=>import(`./javascript-DywGHrES.js`).then(e=>e.n),__vite__mapDeps([177,1])))},{id:`jinja`,name:`Jinja`,import:(()=>k(()=>import(`./jinja-ISwn25cN.js`),__vite__mapDeps([233,175,1,176,177])))},{id:`jison`,name:`Jison`,import:(()=>k(()=>import(`./jison-D9Fg2JgN.js`),__vite__mapDeps([234,177,1])))},{id:`json`,name:`JSON`,import:(()=>k(()=>import(`./json-BbGuGINB.js`).then(e=>e.n),__vite__mapDeps([181,1])))},{id:`json5`,name:`JSON5`,import:(()=>k(()=>import(`./json5-BR5RXkoi.js`),[]))},{id:`jsonc`,name:`JSON with Comments`,import:(()=>k(()=>import(`./jsonc-CYpm1nAK.js`),[]))},{id:`jsonl`,name:`JSON Lines`,import:(()=>k(()=>import(`./jsonl-CmCQp5Yx.js`),[]))},{id:`jsonnet`,name:`Jsonnet`,import:(()=>k(()=>import(`./jsonnet-CJTPZ8u_.js`),[]))},{id:`jssm`,name:`JSSM`,aliases:[`fsl`],import:(()=>k(()=>import(`./jssm-DXw9l8Rf.js`),[]))},{id:`jsx`,name:`JSX`,import:(()=>k(()=>import(`./jsx-NH_i07l1.js`).then(e=>e.n),__vite__mapDeps([209,1])))},{id:`julia`,name:`Julia`,aliases:[`jl`],import:(()=>k(()=>import(`./julia-BRnC1exM.js`),__vite__mapDeps([235,198,1,199,193,200,190,177,195,236])))},{id:`just`,name:`Just`,import:(()=>k(()=>import(`./just-BWbKChh7.js`),__vite__mapDeps([237,177,1,238,176,175,190,182,183,195,207,193,198,199,200,208,209,186,187,210,211,202,212])))},{id:`kdl`,name:`KDL`,import:(()=>k(()=>import(`./kdl-CsD5j6eV.js`),[]))},{id:`kotlin`,name:`Kotlin`,aliases:[`kt`,`kts`],import:(()=>k(()=>import(`./kotlin-DhhofPvG.js`),[]))},{id:`kusto`,name:`Kusto`,aliases:[`kql`],import:(()=>k(()=>import(`./kusto-C7mF5XQf.js`),[]))},{id:`latex`,name:`LaTeX`,import:(()=>k(()=>import(`./latex-DoFV6f5B.js`),__vite__mapDeps([239,240,236,1])))},{id:`lean`,name:`Lean 4`,aliases:[`lean4`],import:(()=>k(()=>import(`./lean-CewbzKMR.js`),[]))},{id:`less`,name:`Less`,import:(()=>k(()=>import(`./less-DVTAwKKz.js`),[]))},{id:`liquid`,name:`Liquid`,import:(()=>k(()=>import(`./liquid-BGxpJKqJ.js`),__vite__mapDeps([241,176,1,175,177,181])))},{id:`llvm`,name:`LLVM IR`,import:(()=>k(()=>import(`./llvm-Cm23YOpf.js`),[]))},{id:`log`,name:`Log file`,import:(()=>k(()=>import(`./log-BNLmms1o.js`),[]))},{id:`logo`,name:`Logo`,import:(()=>k(()=>import(`./logo-Cluzi2Zq.js`),[]))},{id:`lua`,name:`Lua`,import:(()=>k(()=>import(`./lua-SpZ12qGF.js`).then(e=>e.n),__vite__mapDeps([211,1,193])))},{id:`luau`,name:`Luau`,import:(()=>k(()=>import(`./luau-FMPmPwt6.js`),[]))},{id:`make`,name:`Makefile`,aliases:[`makefile`],import:(()=>k(()=>import(`./make-Dixweg8N.js`),[]))},{id:`markdown`,name:`Markdown`,aliases:[`md`],import:(()=>k(()=>import(`./markdown-BYOwaDjH.js`),[]))},{id:`marko`,name:`Marko`,import:(()=>k(()=>import(`./marko-E8KxKzjy.js`),__vite__mapDeps([242,176,1,243,179,187])))},{id:`matlab`,name:`MATLAB`,import:(()=>k(()=>import(`./matlab-D7qyCx1q.js`),[]))},{id:`mdc`,name:`MDC`,import:(()=>k(()=>import(`./mdc-ytrN0-8H.js`),__vite__mapDeps([244,189,175,1,176,177,214,212])))},{id:`mdx`,name:`MDX`,import:(()=>k(()=>import(`./mdx-DQZ5AkYe.js`),[]))},{id:`mermaid`,name:`Mermaid`,aliases:[`mmd`],import:(()=>k(()=>import(`./mermaid-Bk4SNUv9.js`),[]))},{id:`mipsasm`,name:`MIPS Assembly`,aliases:[`mips`],import:(()=>k(()=>import(`./mipsasm-BMqwQI7S.js`),[]))},{id:`mojo`,name:`Mojo`,import:(()=>k(()=>import(`./mojo-BgCJLMeH.js`),[]))},{id:`moonbit`,name:`MoonBit`,aliases:[`mbt`,`mbti`],import:(()=>k(()=>import(`./moonbit-CaWjb8XO.js`),[]))},{id:`move`,name:`Move`,import:(()=>k(()=>import(`./move-B1IS1UjX.js`),[]))},{id:`narrat`,name:`Narrat Language`,aliases:[`nar`],import:(()=>k(()=>import(`./narrat-_X_XdTYD.js`),[]))},{id:`nextflow`,name:`Nextflow`,aliases:[`nf`],import:(()=>k(()=>import(`./nextflow-BJtWHP5T.js`),__vite__mapDeps([245,246])))},{id:`nextflow-groovy`,name:`Nextflow Groovy`,import:(()=>k(()=>import(`./nextflow-groovy-DJMQeKeT.js`),[]))},{id:`nginx`,name:`Nginx`,import:(()=>k(()=>import(`./nginx-CgHaWcsO.js`),__vite__mapDeps([247,211,1,193])))},{id:`nim`,name:`Nim`,import:(()=>k(()=>import(`./nim-xKCzf2o0.js`),__vite__mapDeps([248,193,1,176,199,175,177,214,182,183])))},{id:`nix`,name:`Nix`,import:(()=>k(()=>import(`./nix-IvuFDN5E.js`),[]))},{id:`nushell`,name:`nushell`,aliases:[`nu`],import:(()=>k(()=>import(`./nushell-DcLAeLz5.js`),[]))},{id:`objective-c`,name:`Objective-C`,aliases:[`objc`],import:(()=>k(()=>import(`./objective-c-D1A_Heim.js`),[]))},{id:`objective-cpp`,name:`Objective-C++`,import:(()=>k(()=>import(`./objective-cpp-BsSzOQcm.js`),[]))},{id:`ocaml`,name:`OCaml`,import:(()=>k(()=>import(`./ocaml-O90oeIOV.js`),[]))},{id:`odin`,name:`Odin`,import:(()=>k(()=>import(`./odin-B1RWQWA5.js`),[]))},{id:`openscad`,name:`OpenSCAD`,aliases:[`scad`],import:(()=>k(()=>import(`./openscad-BUDT5pXO.js`),[]))},{id:`pascal`,name:`Pascal`,import:(()=>k(()=>import(`./pascal-4ZHwLPI5.js`),[]))},{id:`perl`,name:`Perl`,import:(()=>k(()=>import(`./perl-CAUsHq6V.js`),__vite__mapDeps([238,176,1,175,177,190,182,183])))},{id:`php`,name:`PHP`,import:(()=>k(()=>import(`./php-Cn4rjz2P.js`),__vite__mapDeps([249,176,1,175,177,181,190,182,183])))},{id:`pkl`,name:`Pkl`,import:(()=>k(()=>import(`./pkl-ot-7Btpt.js`),[]))},{id:`plsql`,name:`PL/SQL`,import:(()=>k(()=>import(`./plsql-DGHpHOYJ.js`),[]))},{id:`po`,name:`Gettext PO`,aliases:[`pot`,`potx`],import:(()=>k(()=>import(`./po-BiJDBrnU.js`),[]))},{id:`polar`,name:`Polar`,import:(()=>k(()=>import(`./polar-C7UOKdEL.js`),[]))},{id:`postcss`,name:`PostCSS`,import:(()=>k(()=>import(`./postcss-BXeXVLqQ.js`),[]))},{id:`powerquery`,name:`PowerQuery`,import:(()=>k(()=>import(`./powerquery-DNMTfnFr.js`),[]))},{id:`powershell`,name:`PowerShell`,aliases:[`ps`,`ps1`],import:(()=>k(()=>import(`./powershell-DshXNtvi.js`),[]))},{id:`prisma`,name:`Prisma`,import:(()=>k(()=>import(`./prisma-BsRQq5mF.js`),[]))},{id:`prolog`,name:`Prolog`,import:(()=>k(()=>import(`./prolog-iXnhIJG7.js`),[]))},{id:`proto`,name:`Protocol Buffer 3`,aliases:[`protobuf`],import:(()=>k(()=>import(`./proto-DB4EqR-F.js`),[]))},{id:`pug`,name:`Pug`,aliases:[`jade`],import:(()=>k(()=>import(`./pug-DD9HHTGS.js`),__vite__mapDeps([250,176,1,175,177])))},{id:`puppet`,name:`Puppet`,import:(()=>k(()=>import(`./puppet-CDv2pdJW.js`),[]))},{id:`purescript`,name:`PureScript`,import:(()=>k(()=>import(`./purescript-9MfHhQsQ.js`),[]))},{id:`python`,name:`Python`,aliases:[`py`],import:(()=>k(()=>import(`./python-gzcpVVnB.js`),[]))},{id:`qml`,name:`QML`,import:(()=>k(()=>import(`./qml-DcW_sT3t.js`),__vite__mapDeps([251,177,1])))},{id:`qmldir`,name:`QML Directory`,import:(()=>k(()=>import(`./qmldir-DCQb3MpD.js`),[]))},{id:`qss`,name:`Qt Style Sheets`,import:(()=>k(()=>import(`./qss-Fe1Jh2GI.js`),[]))},{id:`r`,name:`R`,import:(()=>k(()=>import(`./r-B1OEipip.js`).then(e=>e.n),__vite__mapDeps([236,1])))},{id:`racket`,name:`Racket`,import:(()=>k(()=>import(`./racket-DcIDlBhZ.js`),[]))},{id:`raku`,name:`Raku`,aliases:[`perl6`],import:(()=>k(()=>import(`./raku-B3gFvitq.js`),[]))},{id:`razor`,name:`ASP.NET Razor`,import:(()=>k(()=>import(`./razor-30Cugjh2.js`),__vite__mapDeps([252,253,175,1,176,177])))},{id:`reg`,name:`Windows Registry Script`,import:(()=>k(()=>import(`./reg-CRGYupPL.js`),[]))},{id:`regexp`,name:`RegExp`,aliases:[`regex`],import:(()=>k(()=>import(`./regexp-zLCDTged.js`).then(e=>e.n),__vite__mapDeps([200,1])))},{id:`rel`,name:`Rel`,import:(()=>k(()=>import(`./rel-BtDbiS_P.js`),[]))},{id:`riscv`,name:`RISC-V`,import:(()=>k(()=>import(`./riscv-Ckw8ddFX.js`),[]))},{id:`ron`,name:`RON`,import:(()=>k(()=>import(`./ron-VUp2lXgN.js`),[]))},{id:`rosmsg`,name:`ROS Interface`,import:(()=>k(()=>import(`./rosmsg-CAekHB0j.js`),[]))},{id:`rst`,name:`reStructuredText`,import:(()=>k(()=>import(`./rst-BIOjc2k6.js`),__vite__mapDeps([254,255,198,1,199,193,200,190,189,175,176,177,195,207,208,209,186,187,210,211,202,182,183,212])))},{id:`ruby`,name:`Ruby`,aliases:[`rb`],import:(()=>k(()=>import(`./ruby-BA7kcl5p.js`),__vite__mapDeps([207,193,1,198,199,200,190,176,208,177,209,186,187,210,175,211,202,182,183,212])))},{id:`rust`,name:`Rust`,aliases:[`rs`],import:(()=>k(()=>import(`./rust-Cfkwpbl8.js`),[]))},{id:`sas`,name:`SAS`,import:(()=>k(()=>import(`./sas-BHVT2N5I.js`),__vite__mapDeps([256,190,1])))},{id:`sass`,name:`Sass`,import:(()=>k(()=>import(`./sass-DXrisJhu.js`),[]))},{id:`scala`,name:`Scala`,import:(()=>k(()=>import(`./scala-DKOlJaKm.js`),[]))},{id:`scheme`,name:`Scheme`,import:(()=>k(()=>import(`./scheme-DQCgrYNe.js`),[]))},{id:`scss`,name:`SCSS`,import:(()=>k(()=>import(`./scss-DdIrFDxD.js`).then(e=>e.n),__vite__mapDeps([179,1,176])))},{id:`sdbl`,name:`1C (Query)`,aliases:[`1c-query`],import:(()=>k(()=>import(`./sdbl-bTVj8UrX.js`),[]))},{id:`shaderlab`,name:`ShaderLab`,aliases:[`shader`],import:(()=>k(()=>import(`./shaderlab-TOUzSsQk.js`),__vite__mapDeps([257,258])))},{id:`shellscript`,name:`Shell`,aliases:[`bash`,`sh`,`shell`,`zsh`],import:(()=>k(()=>import(`./shellscript-IH5A6LQB.js`).then(e=>e.n),__vite__mapDeps([202,1])))},{id:`shellsession`,name:`Shell Session`,aliases:[`console`],import:(()=>k(()=>import(`./shellsession-BmAC8SMF.js`),__vite__mapDeps([259,202,1])))},{id:`smalltalk`,name:`Smalltalk`,import:(()=>k(()=>import(`./smalltalk-B16xEiuN.js`),[]))},{id:`solidity`,name:`Solidity`,import:(()=>k(()=>import(`./solidity-CKzVLygQ.js`),[]))},{id:`soy`,name:`Closure Templates`,aliases:[`closure-templates`],import:(()=>k(()=>import(`./soy-B5vCsGAN.js`),__vite__mapDeps([260,175,1,176,177])))},{id:`sparql`,name:`SPARQL`,import:(()=>k(()=>import(`./sparql-D_iOobhT.js`),__vite__mapDeps([261,262])))},{id:`splunk`,name:`Splunk Query Language`,aliases:[`spl`],import:(()=>k(()=>import(`./splunk-BC2Px7Mm.js`),[]))},{id:`sql`,name:`SQL`,import:(()=>k(()=>import(`./sql-DCFvu5RM.js`).then(e=>e.n),__vite__mapDeps([190,1])))},{id:`ssh-config`,name:`SSH Config`,import:(()=>k(()=>import(`./ssh-config-BgfXC-Er.js`),[]))},{id:`stata`,name:`Stata`,import:(()=>k(()=>import(`./stata-h02h04e7.js`),__vite__mapDeps([263,190,1])))},{id:`stylus`,name:`Stylus`,aliases:[`styl`],import:(()=>k(()=>import(`./stylus-B6D30XZt.js`),[]))},{id:`surrealql`,name:`SurrealQL`,aliases:[`surql`],import:(()=>k(()=>import(`./surrealql-DxccxuMd.js`),__vite__mapDeps([264,177,1])))},{id:`svelte`,name:`Svelte`,import:(()=>k(()=>import(`./svelte-CsxBlEum.js`),__vite__mapDeps([265,176,1,177,185,187])))},{id:`swift`,name:`Swift`,import:(()=>k(()=>import(`./swift-DonLKvLd.js`),[]))},{id:`system-verilog`,name:`SystemVerilog`,import:(()=>k(()=>import(`./system-verilog-DJ5XKQeo.js`),[]))},{id:`systemd`,name:`Systemd Units`,import:(()=>k(()=>import(`./systemd-BxMlprV5.js`),[]))},{id:`talonscript`,name:`TalonScript`,aliases:[`talon`],import:(()=>k(()=>import(`./talonscript-CohzipZa.js`),[]))},{id:`tasl`,name:`Tasl`,import:(()=>k(()=>import(`./tasl-DMoTqEGO.js`),[]))},{id:`tcl`,name:`Tcl`,import:(()=>k(()=>import(`./tcl-CZd0xW_V.js`),[]))},{id:`templ`,name:`Templ`,import:(()=>k(()=>import(`./templ-DmkwoHql.js`),__vite__mapDeps([266,176,1,267,177])))},{id:`terraform`,name:`Terraform`,aliases:[`tf`,`tfvars`],import:(()=>k(()=>import(`./terraform-DswuEJGm.js`),[]))},{id:`tex`,name:`TeX`,import:(()=>k(()=>import(`./tex-B0f_hYr8.js`),__vite__mapDeps([240,236,1])))},{id:`toml`,name:`TOML`,import:(()=>k(()=>import(`./toml-CcmNWLt0.js`),[]))},{id:`ts-tags`,name:`TypeScript with Tags`,aliases:[`lit`],import:(()=>k(()=>import(`./ts-tags-CTs7_HT0.js`),__vite__mapDeps([268,176,1,199,193,175,177,190,187,182,183])))},{id:`tsv`,name:`TSV`,import:(()=>k(()=>import(`./tsv-sltzmVWM.js`),[]))},{id:`tsx`,name:`TSX`,import:(()=>k(()=>import(`./tsx-0GViXbh-.js`).then(e=>e.n),__vite__mapDeps([186,1])))},{id:`turtle`,name:`Turtle`,import:(()=>k(()=>import(`./turtle-ByJddavk.js`),[]))},{id:`twig`,name:`Twig`,import:(()=>k(()=>import(`./twig-DgtEA5Er.js`),__vite__mapDeps([269,176,1,177,249,175,181,190,182,183,195,207,193,198,199,200,208,209,186,187,210,211,202,212,179])))},{id:`typescript`,name:`TypeScript`,aliases:[`ts`,`cts`,`mts`],import:(()=>k(()=>import(`./typescript-C03X-V26.js`).then(e=>e.n),__vite__mapDeps([187,1])))},{id:`typespec`,name:`TypeSpec`,aliases:[`tsp`],import:(()=>k(()=>import(`./typespec-BRdr0IET.js`),[]))},{id:`typst`,name:`Typst`,aliases:[`typ`],import:(()=>k(()=>import(`./typst-DI99ib-x.js`),[]))},{id:`v`,name:`V`,import:(()=>k(()=>import(`./v-DETTlOr0.js`),[]))},{id:`vala`,name:`Vala`,import:(()=>k(()=>import(`./vala-zf12oZj6.js`),[]))},{id:`vb`,name:`Visual Basic`,aliases:[`cmd`],import:(()=>k(()=>import(`./vb-Djn5o6TS.js`),[]))},{id:`verilog`,name:`Verilog`,import:(()=>k(()=>import(`./verilog-CiiDBU1e.js`),[]))},{id:`vhdl`,name:`VHDL`,import:(()=>k(()=>import(`./vhdl-BroJfC0k.js`),[]))},{id:`viml`,name:`Vim Script`,aliases:[`vim`,`vimscript`],import:(()=>k(()=>import(`./viml-DvXPmvsu.js`),[]))},{id:`vue`,name:`Vue`,import:(()=>k(()=>import(`./vue-CUpaeZ-j.js`),__vite__mapDeps([270,176,1,189,175,177,181,187])))},{id:`vue-html`,name:`Vue HTML`,import:(()=>k(()=>import(`./vue-html-DQch_7VQ.js`),__vite__mapDeps([271,177,1])))},{id:`vue-vine`,name:`Vue Vine`,import:(()=>k(()=>import(`./vue-vine-BCPDker4.js`),__vite__mapDeps([272,176,1,177,243,185,179,273])))},{id:`vyper`,name:`Vyper`,aliases:[`vy`],import:(()=>k(()=>import(`./vyper-CgoNMtux.js`),[]))},{id:`wasm`,name:`WebAssembly`,import:(()=>k(()=>import(`./wasm-ByWQv1Qj.js`),[]))},{id:`wenyan`,name:`Wenyan`,aliases:[`文言`],import:(()=>k(()=>import(`./wenyan-C8pVoKbM.js`),[]))},{id:`wgsl`,name:`WGSL`,import:(()=>k(()=>import(`./wgsl-BsKzXJz4.js`),[]))},{id:`wikitext`,name:`Wikitext`,aliases:[`mediawiki`,`wiki`],import:(()=>k(()=>import(`./wikitext-ClFFjSW2.js`),[]))},{id:`wit`,name:`WebAssembly Interface Types`,import:(()=>k(()=>import(`./wit-DdvCle-K.js`),[]))},{id:`wolfram`,name:`Wolfram`,aliases:[`wl`],import:(()=>k(()=>import(`./wolfram-DLL8P-h_.js`),[]))},{id:`xml`,name:`XML`,import:(()=>k(()=>import(`./xml-DI0syHFL.js`).then(e=>e.n),__vite__mapDeps([182,1,183])))},{id:`xsl`,name:`XSL`,import:(()=>k(()=>import(`./xsl-BFS2wyMt.js`),__vite__mapDeps([274,182,1,183])))},{id:`yaml`,name:`YAML`,aliases:[`yml`],import:(()=>k(()=>import(`./yaml-DtN9Ue11.js`).then(e=>e.n),__vite__mapDeps([212,1])))},{id:`zenscript`,name:`ZenScript`,import:(()=>k(()=>import(`./zenscript-BnlCZFoB.js`),[]))},{id:`zig`,name:`Zig`,import:(()=>k(()=>import(`./zig-CMLA9XwU.js`),[]))}],pF=Object.fromEntries(fF.map(e=>[e.id,e.import])),mF=Object.fromEntries(fF.flatMap(e=>e.aliases?.map(t=>[t,e.import])||[])),hF={...pF,...mF},gF=Object.fromEntries([{id:`andromeeda`,displayName:`Andromeeda`,type:`dark`,import:(()=>k(()=>import(`./andromeeda-vGVdxbeo.js`),[]))},{id:`aurora-x`,displayName:`Aurora X`,type:`dark`,import:(()=>k(()=>import(`./aurora-x-CDeNXAV0.js`),[]))},{id:`ayu-dark`,displayName:`Ayu Dark`,type:`dark`,import:(()=>k(()=>import(`./ayu-dark-DluEY0Gj.js`),[]))},{id:`ayu-light`,displayName:`Ayu Light`,type:`light`,import:(()=>k(()=>import(`./ayu-light-C3h-C4tm.js`),[]))},{id:`ayu-mirage`,displayName:`Ayu Mirage`,type:`dark`,import:(()=>k(()=>import(`./ayu-mirage-Bqwy1Gya.js`),[]))},{id:`catppuccin-frappe`,displayName:`Catppuccin Frappé`,type:`dark`,import:(()=>k(()=>import(`./catppuccin-frappe-3VR1Za6u.js`),[]))},{id:`catppuccin-latte`,displayName:`Catppuccin Latte`,type:`light`,import:(()=>k(()=>import(`./catppuccin-latte-DwIHMF0Q.js`),[]))},{id:`catppuccin-macchiato`,displayName:`Catppuccin Macchiato`,type:`dark`,import:(()=>k(()=>import(`./catppuccin-macchiato-DYnBP6_5.js`),[]))},{id:`catppuccin-mocha`,displayName:`Catppuccin Mocha`,type:`dark`,import:(()=>k(()=>import(`./catppuccin-mocha-DYhrFGRu.js`),[]))},{id:`dark-plus`,displayName:`Dark Plus`,type:`dark`,import:(()=>k(()=>import(`./dark-plus-Cs2F2srj.js`),[]))},{id:`dracula`,displayName:`Dracula Theme`,type:`dark`,import:(()=>k(()=>import(`./dracula-BHWKrbxM.js`),[]))},{id:`dracula-soft`,displayName:`Dracula Theme Soft`,type:`dark`,import:(()=>k(()=>import(`./dracula-soft-5eyTD99u.js`),[]))},{id:`everforest-dark`,displayName:`Everforest Dark`,type:`dark`,import:(()=>k(()=>import(`./everforest-dark-sB-x3p7T.js`),[]))},{id:`everforest-light`,displayName:`Everforest Light`,type:`light`,import:(()=>k(()=>import(`./everforest-light-Df2xbC6M.js`),[]))},{id:`github-dark`,displayName:`GitHub Dark`,type:`dark`,import:(()=>k(()=>import(`./github-dark-C-LZuMrd.js`),[]))},{id:`github-dark-default`,displayName:`GitHub Dark Default`,type:`dark`,import:(()=>k(()=>import(`./github-dark-default-DXG-b-1a.js`),[]))},{id:`github-dark-dimmed`,displayName:`GitHub Dark Dimmed`,type:`dark`,import:(()=>k(()=>import(`./github-dark-dimmed-Bx1FflLF.js`),[]))},{id:`github-dark-high-contrast`,displayName:`GitHub Dark High Contrast`,type:`dark`,import:(()=>k(()=>import(`./github-dark-high-contrast-B_tTalzw.js`),[]))},{id:`github-light`,displayName:`GitHub Light`,type:`light`,import:(()=>k(()=>import(`./github-light-EUqPIrTm.js`),[]))},{id:`github-light-default`,displayName:`GitHub Light Default`,type:`light`,import:(()=>k(()=>import(`./github-light-default-BXViO-2h.js`),[]))},{id:`github-light-high-contrast`,displayName:`GitHub Light High Contrast`,type:`light`,import:(()=>k(()=>import(`./github-light-high-contrast-B68TUdTA.js`),[]))},{id:`gruvbox-dark-hard`,displayName:`Gruvbox Dark Hard`,type:`dark`,import:(()=>k(()=>import(`./gruvbox-dark-hard-C820rvS2.js`),[]))},{id:`gruvbox-dark-medium`,displayName:`Gruvbox Dark Medium`,type:`dark`,import:(()=>k(()=>import(`./gruvbox-dark-medium-BPjhmG05.js`),[]))},{id:`gruvbox-dark-soft`,displayName:`Gruvbox Dark Soft`,type:`dark`,import:(()=>k(()=>import(`./gruvbox-dark-soft-MrdJrrXF.js`),[]))},{id:`gruvbox-light-hard`,displayName:`Gruvbox Light Hard`,type:`light`,import:(()=>k(()=>import(`./gruvbox-light-hard-BC_s9l72.js`),[]))},{id:`gruvbox-light-medium`,displayName:`Gruvbox Light Medium`,type:`light`,import:(()=>k(()=>import(`./gruvbox-light-medium-BAWPOn9u.js`),[]))},{id:`gruvbox-light-soft`,displayName:`Gruvbox Light Soft`,type:`light`,import:(()=>k(()=>import(`./gruvbox-light-soft-BSMLrYjP.js`),[]))},{id:`horizon`,displayName:`Horizon`,type:`dark`,import:(()=>k(()=>import(`./horizon-CE9ld1lL.js`),[]))},{id:`horizon-bright`,displayName:`Horizon Bright`,type:`light`,import:(()=>k(()=>import(`./horizon-bright-DSNQnXHK.js`),[]))},{id:`houston`,displayName:`Houston`,type:`dark`,import:(()=>k(()=>import(`./houston-CsvMBhTu.js`),[]))},{id:`kanagawa-dragon`,displayName:`Kanagawa Dragon`,type:`dark`,import:(()=>k(()=>import(`./kanagawa-dragon-CXtmUGW6.js`),[]))},{id:`kanagawa-lotus`,displayName:`Kanagawa Lotus`,type:`light`,import:(()=>k(()=>import(`./kanagawa-lotus-BN08jTvb.js`),[]))},{id:`kanagawa-wave`,displayName:`Kanagawa Wave`,type:`dark`,import:(()=>k(()=>import(`./kanagawa-wave-CTweb8Dz.js`),[]))},{id:`laserwave`,displayName:`LaserWave`,type:`dark`,import:(()=>k(()=>import(`./laserwave-C_8bwKvT.js`),[]))},{id:`light-plus`,displayName:`Light Plus`,type:`light`,import:(()=>k(()=>import(`./light-plus-DVQuIRkW.js`),[]))},{id:`material-theme`,displayName:`Material Theme`,type:`dark`,import:(()=>k(()=>import(`./material-theme-Bm3Qr25_.js`),[]))},{id:`material-theme-darker`,displayName:`Material Theme Darker`,type:`dark`,import:(()=>k(()=>import(`./material-theme-darker-2IIEA8gg.js`),[]))},{id:`material-theme-lighter`,displayName:`Material Theme Lighter`,type:`light`,import:(()=>k(()=>import(`./material-theme-lighter-uhdI0v04.js`),[]))},{id:`material-theme-ocean`,displayName:`Material Theme Ocean`,type:`dark`,import:(()=>k(()=>import(`./material-theme-ocean-CHQ94UKr.js`),[]))},{id:`material-theme-palenight`,displayName:`Material Theme Palenight`,type:`dark`,import:(()=>k(()=>import(`./material-theme-palenight-B5W6OYN7.js`),[]))},{id:`min-dark`,displayName:`Min Dark`,type:`dark`,import:(()=>k(()=>import(`./min-dark-BSWPekZh.js`),[]))},{id:`min-light`,displayName:`Min Light`,type:`light`,import:(()=>k(()=>import(`./min-light-DDpmG2fV.js`),[]))},{id:`monokai`,displayName:`Monokai`,type:`dark`,import:(()=>k(()=>import(`./monokai-CdkpiU2Y.js`),[]))},{id:`night-owl`,displayName:`Night Owl`,type:`dark`,import:(()=>k(()=>import(`./night-owl-DhmEMT88.js`),[]))},{id:`night-owl-light`,displayName:`Night Owl Light`,type:`light`,import:(()=>k(()=>import(`./night-owl-light-eJ-hLW7d.js`),[]))},{id:`nord`,displayName:`Nord`,type:`dark`,import:(()=>k(()=>import(`./nord-Cb4Vim4T.js`),[]))},{id:`one-dark-pro`,displayName:`One Dark Pro`,type:`dark`,import:(()=>k(()=>import(`./one-dark-pro-CLwyXe_n.js`),[]))},{id:`one-light`,displayName:`One Light`,type:`light`,import:(()=>k(()=>import(`./one-light-D7Lr4KcI.js`),[]))},{id:`plastic`,displayName:`Plastic`,type:`dark`,import:(()=>k(()=>import(`./plastic-DQwYfKfQ.js`),[]))},{id:`poimandres`,displayName:`Poimandres`,type:`dark`,import:(()=>k(()=>import(`./poimandres-DRFjx7u4.js`),[]))},{id:`red`,displayName:`Red`,type:`dark`,import:(()=>k(()=>import(`./red-CJ3rzSJv.js`),[]))},{id:`rose-pine`,displayName:`Rosé Pine`,type:`dark`,import:(()=>k(()=>import(`./rose-pine-BthvhNj6.js`),[]))},{id:`rose-pine-dawn`,displayName:`Rosé Pine Dawn`,type:`light`,import:(()=>k(()=>import(`./rose-pine-dawn-Dg85fqjY.js`),[]))},{id:`rose-pine-moon`,displayName:`Rosé Pine Moon`,type:`dark`,import:(()=>k(()=>import(`./rose-pine-moon-hon4tzzS.js`),[]))},{id:`slack-dark`,displayName:`Slack Dark`,type:`dark`,import:(()=>k(()=>import(`./slack-dark-DnToyrRv.js`),[]))},{id:`slack-ochin`,displayName:`Slack Ochin`,type:`light`,import:(()=>k(()=>import(`./slack-ochin-B2OO5cIa.js`),[]))},{id:`snazzy-light`,displayName:`Snazzy Light`,type:`light`,import:(()=>k(()=>import(`./snazzy-light-4G7pJPwS.js`),[]))},{id:`solarized-dark`,displayName:`Solarized Dark`,type:`dark`,import:(()=>k(()=>import(`./solarized-dark-DV17i1UV.js`),[]))},{id:`solarized-light`,displayName:`Solarized Light`,type:`light`,import:(()=>k(()=>import(`./solarized-light-DSh2HLQt.js`),[]))},{id:`synthwave-84`,displayName:`Synthwave '84`,type:`dark`,import:(()=>k(()=>import(`./synthwave-84-nFMaYfgc.js`),[]))},{id:`tokyo-night`,displayName:`Tokyo Night`,type:`dark`,import:(()=>k(()=>import(`./tokyo-night-oM2G3aXe.js`),[]))},{id:`vesper`,displayName:`Vesper`,type:`dark`,import:(()=>k(()=>import(`./vesper-DdrHHSXu.js`),[]))},{id:`vitesse-black`,displayName:`Vitesse Black`,type:`dark`,import:(()=>k(()=>import(`./vitesse-black-fwtXNY1n.js`),[]))},{id:`vitesse-dark`,displayName:`Vitesse Dark`,type:`dark`,import:(()=>k(()=>import(`./vitesse-dark-BZCL-v6S.js`),[]))},{id:`vitesse-light`,displayName:`Vitesse Light`,type:`light`,import:(()=>k(()=>import(`./vitesse-light-VbXTXTou.js`),[]))}].map(e=>[e.id,e.import])),_F=r({createOnigurumaEngine:()=>GF,getDefaultWasmLoader:()=>WF,loadWasm:()=>RF,setDefaultWasmLoader:()=>UF}),vF=class extends Error{constructor(e){super(e),this.name=`ShikiError`}};function yF(){return 2147483648}function bF(){return typeof performance<`u`?performance.now():Date.now()}var xF=(e,t)=>e+(t-e%t)%t;async function SF(e){let t,n,r={};function i(e){n=e,r.HEAPU8=new Uint8Array(e),r.HEAPU32=new Uint32Array(e)}function a(e,t,n){r.HEAPU8.copyWithin(e,t,t+n)}function o(e){try{return t.grow(e-n.byteLength+65535>>>16),i(t.buffer),1}catch{}}function s(e){let t=r.HEAPU8.length;e>>>=0;let n=yF();if(e>n)return!1;for(let r=1;r<=4;r*=2){let i=t*(1+.2/r);if(i=Math.min(i,e+100663296),o(Math.min(n,xF(Math.max(e,i),65536))))return!0}return!1}let c=typeof TextDecoder<`u`?new TextDecoder(`utf8`):void 0;function l(e,t,n=1024){let r=t+n,i=t;for(;e[i]&&!(i>=r);)++i;if(i-t>16&&e.buffer&&c)return c.decode(e.subarray(t,i));let a=``;for(;t<i;){let n=e[t++];if(!(n&128)){a+=String.fromCharCode(n);continue}let r=e[t++]&63;if((n&224)==192){a+=String.fromCharCode((n&31)<<6|r);continue}let i=e[t++]&63;if(n=(n&240)==224?(n&15)<<12|r<<6|i:(n&7)<<18|r<<12|i<<6|e[t++]&63,n<65536)a+=String.fromCharCode(n);else{let e=n-65536;a+=String.fromCharCode(55296|e>>10,56320|e&1023)}}return a}function u(e,t){return e?l(r.HEAPU8,e,t):``}let d={emscripten_get_now:bF,emscripten_memcpy_big:a,emscripten_resize_heap:s,fd_write:()=>0};async function f(){let n=await e({env:d,wasi_snapshot_preview1:d});t=n.memory,i(t.buffer),Object.assign(r,n),r.UTF8ToString=u}return await f(),r}var CF=Object.defineProperty,wF=(e,t,n)=>t in e?CF(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,TF=(e,t,n)=>wF(e,typeof t==`symbol`?t:t+``,n),EF=null;function DF(e){throw new vF(e.UTF8ToString(e.getLastOnigError()))}var OF=class e{constructor(t){TF(this,`utf16Length`),TF(this,`utf8Length`),TF(this,`utf16Value`),TF(this,`utf8Value`),TF(this,`utf16OffsetToUtf8`),TF(this,`utf8OffsetToUtf16`);let n=t.length,r=e._utf8ByteLength(t),i=r!==n,a=i?new Uint32Array(n+1):null;i&&(a[n]=r);let o=i?new Uint32Array(r+1):null;i&&(o[r]=n);let s=new Uint8Array(r),c=0;for(let e=0;e<n;e++){let r=t.charCodeAt(e),l=r,u=!1;if(r>=55296&&r<=56319&&e+1<n){let n=t.charCodeAt(e+1);n>=56320&&n<=57343&&(l=(r-55296<<10)+65536|n-56320,u=!0)}i&&(a[e]=c,u&&(a[e+1]=c),l<=127?o[c+0]=e:l<=2047?(o[c+0]=e,o[c+1]=e):l<=65535?(o[c+0]=e,o[c+1]=e,o[c+2]=e):(o[c+0]=e,o[c+1]=e,o[c+2]=e,o[c+3]=e)),l<=127?s[c++]=l:l<=2047?(s[c++]=192|(l&1984)>>>6,s[c++]=128|(l&63)>>>0):l<=65535?(s[c++]=224|(l&61440)>>>12,s[c++]=128|(l&4032)>>>6,s[c++]=128|(l&63)>>>0):(s[c++]=240|(l&1835008)>>>18,s[c++]=128|(l&258048)>>>12,s[c++]=128|(l&4032)>>>6,s[c++]=128|(l&63)>>>0),u&&e++}this.utf16Length=n,this.utf8Length=r,this.utf16Value=t,this.utf8Value=s,this.utf16OffsetToUtf8=a,this.utf8OffsetToUtf16=o}static _utf8ByteLength(e){let t=0;for(let n=0,r=e.length;n<r;n++){let i=e.charCodeAt(n),a=i,o=!1;if(i>=55296&&i<=56319&&n+1<r){let t=e.charCodeAt(n+1);t>=56320&&t<=57343&&(a=(i-55296<<10)+65536|t-56320,o=!0)}a<=127?t+=1:a<=2047?t+=2:a<=65535?t+=3:t+=4,o&&n++}return t}createString(e){let t=e.omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}},kF=class e{constructor(t){if(TF(this,`id`,++e.LAST_ID),TF(this,`_onigBinding`),TF(this,`content`),TF(this,`utf16Length`),TF(this,`utf8Length`),TF(this,`utf16OffsetToUtf8`),TF(this,`utf8OffsetToUtf16`),TF(this,`ptr`),!EF)throw new vF(`Must invoke loadWasm first.`);this._onigBinding=EF,this.content=t;let n=new OF(t);this.utf16Length=n.utf16Length,this.utf8Length=n.utf8Length,this.utf16OffsetToUtf8=n.utf16OffsetToUtf8,this.utf8OffsetToUtf16=n.utf8OffsetToUtf16,this.utf8Length<1e4&&!e._sharedPtrInUse?(e._sharedPtr||=EF.omalloc(1e4),e._sharedPtrInUse=!0,EF.HEAPU8.set(n.utf8Value,e._sharedPtr),this.ptr=e._sharedPtr):this.ptr=n.createString(EF)}convertUtf8OffsetToUtf16(e){return this.utf8OffsetToUtf16?e<0?0:e>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[e]:e}convertUtf16OffsetToUtf8(e){return this.utf16OffsetToUtf8?e<0?0:e>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[e]:e}dispose(){this.ptr===e._sharedPtr?e._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};TF(kF,`LAST_ID`,0),TF(kF,`_sharedPtr`,0),TF(kF,`_sharedPtrInUse`,!1);var AF=kF,jF=class{constructor(e){if(TF(this,`_onigBinding`),TF(this,`_ptr`),!EF)throw new vF(`Must invoke loadWasm first.`);let t=[],n=[];for(let r=0,i=e.length;r<i;r++){let i=new OF(e[r]);t[r]=i.createString(EF),n[r]=i.utf8Length}let r=EF.omalloc(4*e.length);EF.HEAPU32.set(t,r/4);let i=EF.omalloc(4*e.length);EF.HEAPU32.set(n,i/4);let a=EF.createOnigScanner(r,i,e.length);for(let n=0,r=e.length;n<r;n++)EF.ofree(t[n]);EF.ofree(i),EF.ofree(r),a===0&&DF(EF),this._onigBinding=EF,this._ptr=a}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(e,t,n){let r=0;if(typeof n==`number`&&(r=n),typeof e==`string`){e=new AF(e);let n=this._findNextMatchSync(e,t,!1,r);return e.dispose(),n}return this._findNextMatchSync(e,t,!1,r)}_findNextMatchSync(e,t,n,r){let i=this._onigBinding,a=i.findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),r);if(a===0)return null;let o=i.HEAPU32,s=a/4,c=o[s++],l=o[s++],u=[];for(let t=0;t<l;t++){let n=e.convertUtf8OffsetToUtf16(o[s++]),r=e.convertUtf8OffsetToUtf16(o[s++]);u[t]={start:n,end:r,length:r-n}}return{index:c,captureIndices:u}}};function MF(e){return typeof e.instantiator==`function`}function NF(e){return typeof e.default==`function`}function PF(e){return e.data!==void 0}function FF(e){return typeof Response<`u`&&e instanceof Response}function IF(e){return typeof ArrayBuffer<`u`&&(e instanceof ArrayBuffer||ArrayBuffer.isView(e))||typeof Buffer<`u`&&Buffer.isBuffer?.(e)||typeof SharedArrayBuffer<`u`&&e instanceof SharedArrayBuffer||typeof Uint32Array<`u`&&e instanceof Uint32Array}var LF;function RF(e){if(LF)return LF;async function t(){EF=await SF(async t=>{let n=e;return n=await n,typeof n==`function`&&(n=await n(t)),typeof n==`function`&&(n=await n(t)),MF(n)?n=await n.instantiator(t):NF(n)?n=await n.default(t):(PF(n)&&(n=n.data),FF(n)?n=typeof WebAssembly.instantiateStreaming==`function`?await BF(n)(t):await VF(n)(t):IF(n)||n instanceof WebAssembly.Module?n=await zF(n)(t):`default`in n&&n.default instanceof WebAssembly.Module&&(n=await zF(n.default)(t))),`instance`in n&&(n=n.instance),`exports`in n&&(n=n.exports),n})}return LF=t(),LF}function zF(e){return t=>WebAssembly.instantiate(e,t)}function BF(e){return t=>WebAssembly.instantiateStreaming(e,t)}function VF(e){return async t=>{let n=await e.arrayBuffer();return WebAssembly.instantiate(n,t)}}var HF;function UF(e){HF=e}function WF(){return HF}async function GF(e){return e&&await RF(e),{createScanner(e){return new jF(e.map(e=>typeof e==`string`?e:e.source))},createString(e){return new AF(e)}}}var KF=lF({});dF(KF,_F);var qF=class extends Error{constructor(e){super(e),this.name=`ShikiError`}};function JF(e,t){let n=typeof e==`string`?{}:{...e.colorReplacements},r=typeof e==`string`?e:e.name;for(let[e,i]of Object.entries(t?.colorReplacements||{}))typeof i==`string`?n[e]=i:e===r&&Object.assign(n,i);return n}function YF(e,t){return e&&(t?.[e?.toLowerCase()]||e)}function XF(e){return Array.isArray(e)?e:[e]}async function ZF(e){return Promise.resolve(typeof e==`function`?e():e).then(e=>e.default||e)}function QF(e){return!e||[`plaintext`,`txt`,`text`,`plain`].includes(e)}function $F(e){return e===`ansi`||QF(e)}function eI(e){return e===`none`}function tI(e){return eI(e)}var nI=/(\r?\n)/g;function rI(e,t=!1){if(e.length===0)return[[``,0]];let n=e.split(nI),r=0,i=[];for(let e=0;e<n.length;e+=2){let a=t?n[e]+(n[e+1]||``):n[e];i.push([a,r]),r+=n[e].length,r+=n[e+1]?.length||0}return i}var iI={light:`#333333`,dark:`#bbbbbb`},aI={light:`#fffffe`,dark:`#1e1e1e`},oI=`__shiki_resolved`;function sI(e){if(e?.[oI])return e;let t={...e};t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||=`dark`,t.colorReplacements={...t.colorReplacements},t.settings||=[];let{bg:n,fg:r}=t;if(!n||!r){let e=t.settings?t.settings.find(e=>!e.name&&!e.scope):void 0;e?.settings?.foreground&&(r=e.settings.foreground),e?.settings?.background&&(n=e.settings.background),!r&&t?.colors?.[`editor.foreground`]&&(r=t.colors[`editor.foreground`]),!n&&t?.colors?.[`editor.background`]&&(n=t.colors[`editor.background`]),r||=t.type===`light`?iI.light:iI.dark,n||=t.type===`light`?aI.light:aI.dark,t.fg=r,t.bg=n}t.settings[0]&&t.settings[0].settings&&!t.settings[0].scope||t.settings.unshift({settings:{foreground:t.fg,background:t.bg}});let i=0,a=new Map;function o(e){if(a.has(e))return a.get(e);i+=1;let n=`#${i.toString(16).padStart(8,`0`).toLowerCase()}`;return t.colorReplacements?.[`#${n}`]?o(e):(a.set(e,n),n)}t.settings=t.settings.map(e=>{let n=e.settings?.foreground&&!e.settings.foreground.startsWith(`#`),r=e.settings?.background&&!e.settings.background.startsWith(`#`);if(!n&&!r)return e;let i={...e,settings:{...e.settings}};if(n){let n=o(e.settings.foreground);t.colorReplacements[n]=e.settings.foreground,i.settings.foreground=n}if(r){let n=o(e.settings.background);t.colorReplacements[n]=e.settings.background,i.settings.background=n}return i});for(let e of Object.keys(t.colors||{}))if((e===`editor.foreground`||e===`editor.background`||e.startsWith(`terminal.ansi`))&&!t.colors[e]?.startsWith(`#`)){let n=o(t.colors[e]);t.colorReplacements[n]=t.colors[e],t.colors[e]=n}return Object.defineProperty(t,oI,{enumerable:!1,writable:!1,value:!0}),t}async function cI(e){return[...new Set((await Promise.all(e.filter(e=>!$F(e)).map(async e=>await ZF(e).then(e=>Array.isArray(e)?e:[e])))).flat())]}async function lI(e){return(await Promise.all(e.map(async e=>tI(e)?null:sI(await ZF(e))))).filter(e=>!!e)}function uI(e,t){if(!t)return e;if(t[e]){let n=new Set([e]);for(;t[e];){if(e=t[e],n.has(e))throw new qF(`Circular alias \`${[...n].join(` -> `)} -> ${e}\``);n.add(e)}}return e}var dI=class extends fo{_resolver;_themes;_langs;_alias;_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;constructor(e,t,n,r={}){super(e),this._resolver=e,this._themes=t,this._langs=n,this._alias=r,this._themes.map(e=>this.loadTheme(e)),this.loadLanguages(this._langs)}getTheme(e){return typeof e==`string`?this._resolvedThemes.get(e):this.loadTheme(e)}loadTheme(e){let t=sI(e);return t.name&&(this._resolvedThemes.set(t.name,t),this._loadedThemesCache=null),t}getLoadedThemes(){return this._loadedThemesCache||=[...this._resolvedThemes.keys()],this._loadedThemesCache}setTheme(e){let t=this._textmateThemeCache.get(e);t||(t=Ui.createFromRawTheme(e),this._textmateThemeCache.set(e,t)),this._syncRegistry.setTheme(t)}getGrammar(e){return e=uI(e,this._alias),this._resolvedGrammars.get(e)}loadLanguage(e){if(this.getGrammar(e.name))return;let t=new Set([...this._langMap.values()].filter(t=>t.embeddedLangsLazy?.includes(e.name)));this._resolver.addLanguage(e);let n={balancedBracketSelectors:e.balancedBracketSelectors||[`*`],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(e.scopeName,e);let r=this.loadGrammarWithConfiguration(e.scopeName,1,n);if(r.name=e.name,this._resolvedGrammars.set(e.name,r),e.aliases&&e.aliases.forEach(t=>{this._alias[t]=e.name}),this._loadedLanguagesCache=null,t.size)for(let e of t)this._resolvedGrammars.delete(e.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(e.scopeName),this._syncRegistry?._grammars?.delete(e.scopeName),this.loadLanguage(this._langMap.get(e.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(e){for(let t of e)this.resolveEmbeddedLanguages(t);let t=[...this._langGraph.entries()],n=t.filter(([e,t])=>!t);if(n.length){let e=t.filter(([e,t])=>t?(t.embeddedLanguages||t.embeddedLangs)?.some(e=>n.map(([e])=>e).includes(e)):!1).filter(e=>!n.includes(e));throw new qF(`Missing languages ${n.map(([e])=>`\`${e}\``).join(`, `)}, required by ${e.map(([e])=>`\`${e}\``).join(`, `)}`)}for(let[e,n]of t)this._resolver.addLanguage(n);for(let[e,n]of t)this.loadLanguage(n)}getLoadedLanguages(){return this._loadedLanguagesCache||=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])],this._loadedLanguagesCache}resolveEmbeddedLanguages(e){this._langMap.set(e.name,e),this._langGraph.set(e.name,e);let t=e.embeddedLanguages??e.embeddedLangs;if(t)for(let e of t)this._langGraph.set(e,this._langMap.get(e))}},fI=class{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLib;constructor(e,t){this._onigLib={createOnigScanner:t=>e.createScanner(t),createOnigString:t=>e.createString(t)},t.forEach(e=>this.addLanguage(e))}get onigLib(){return this._onigLib}getLangRegistration(e){return this._langs.get(e)}loadGrammar(e){return this._scopeToLang.get(e)}addLanguage(e){this._langs.set(e.name,e),e.aliases&&e.aliases.forEach(t=>{this._langs.set(t,e)}),this._scopeToLang.set(e.scopeName,e),e.injectTo&&e.injectTo.forEach(t=>{this._injections.get(t)||this._injections.set(t,[]),this._injections.get(t).push(e.scopeName)})}getInjections(e){let t=e.split(`.`),n=[];for(let e=1;e<=t.length;e++){let r=t.slice(0,e).join(`.`);n=[...n,...this._injections.get(r)||[]]}return n}},pI=0;function mI(e){pI+=1,e.warnings!==!1&&pI>=10&&pI%10==0&&console.warn(`[Shiki] ${pI} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let t=!1;if(!e.engine)throw new qF("`engine` option is required for synchronous mode");let n=(e.langs||[]).flat(1),r=(e.themes||[]).flat(1).map(sI),i=new dI(new fI(e.engine,n),r,n,e.langAlias),a;function o(t){return uI(t,e.langAlias)}function s(e){g();let t=i.getGrammar(typeof e==`string`?e:e.name);if(!t)throw new qF(`Language \`${e}\` not found, you may need to load it first`);return t}function c(e){if(e===`none`)return{bg:``,fg:``,name:`none`,settings:[],type:`dark`};g();let t=i.getTheme(e);if(!t)throw new qF(`Theme \`${e}\` not found, you may need to load it first`);return t}function l(e){g();let t=c(e);return a!==e&&(i.setTheme(t),a=e),{theme:t,colorMap:i.getColorMap()}}function u(){return g(),i.getLoadedThemes()}function d(){return g(),i.getLoadedLanguages()}function f(...e){g(),i.loadLanguages(e.flat(1))}async function p(...e){return f(await cI(e))}function m(...e){g();for(let t of e.flat(1))i.loadTheme(t)}async function h(...e){return g(),m(await lI(e))}function g(){if(t)throw new qF(`Shiki instance has been disposed`)}function _(){t||(t=!0,i.dispose(),--pI)}return{setTheme:l,getTheme:c,getLanguage:s,getLoadedThemes:u,getLoadedLanguages:d,resolveLangAlias:o,loadLanguage:p,loadLanguageSync:f,loadTheme:h,loadThemeSync:m,dispose:_,[Symbol.dispose]:_}}async function hI(e){e.engine||console.warn("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");let[t,n,r]=await Promise.all([lI(e.themes||[]),cI(e.langs||[]),e.engine]);return mI({...e,themes:t,langs:n,engine:r})}var gI=new WeakMap;function _I(e,t){gI.set(e,t)}function vI(e){return gI.get(e)}var yI=class e{_stacks={};lang;get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(t,n){return new e(Object.fromEntries(XF(n).map(e=>[e,po])),t)}constructor(...e){if(e.length===2){let[t,n]=e;this.lang=n,this._stacks=t}else{let[t,n,r]=e;this.lang=n,this._stacks={[r]:t}}}getInternalStack(e=this.theme){return this._stacks[e]}getScopes(e=this.theme){return bI(this._stacks[e])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}};function bI(e){let t=[],n=new Set;function r(e){if(n.has(e))return;n.add(e);let i=e?.nameScopesList?.scopeName;i&&t.push(i),e.parent&&r(e.parent)}return r(e),t}function xI(e,t){if(!(e instanceof yI))throw new qF(`Invalid grammar state`);return e.getInternalStack(t)}var SI=/,/,CI=/ /;function wI(e,t,n={}){let{theme:r=e.getLoadedThemes()[0]}=n;if(QF(e.resolveLangAlias(n.lang||`text`))||eI(r))return rI(t).map(e=>[{content:e[0],offset:e[1]}]);let{theme:i,colorMap:a}=e.setTheme(r),o=e.getLanguage(n.lang||`text`);if(n.grammarState){if(n.grammarState.lang!==o.name)throw new qF(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${o.name}"`);if(!n.grammarState.themes.includes(i.name))throw new qF(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${i.name}"`)}return EI(t,o,i,a,n)}function TI(...e){if(e.length===2)return vI(e[1]);let[t,n,r={}]=e,{lang:i=`text`,theme:a=t.getLoadedThemes()[0]}=r;if(QF(i)||eI(a))throw new qF(`Plain language does not have grammar state`);if(i===`ansi`)throw new qF(`ANSI language does not have grammar state`);let{theme:o,colorMap:s}=t.setTheme(a),c=t.getLanguage(i);return new yI(DI(n,c,o,s,r).stateStack,c.name,o.name)}function EI(e,t,n,r,i){let a=DI(e,t,n,r,i),o=new yI(a.stateStack,t.name,n.name);return _I(a.tokens,o),a.tokens}function DI(e,t,n,r,i){let a=JF(n,i),{tokenizeMaxLineLength:o=0,tokenizeTimeLimit:s=500}=i,c=rI(e),l=i.grammarState?xI(i.grammarState,n.name)??po:i.grammarContextCode==null?po:DI(i.grammarContextCode,t,n,r,{...i,grammarState:void 0,grammarContextCode:void 0}).stateStack,u=[],d=[];for(let e=0,f=c.length;e<f;e++){let[f,p]=c[e];if(f===``){u=[],d.push([]);continue}if(o>0&&f.length>=o){u=[],d.push([{content:f,offset:p,color:``,fontStyle:0}]);continue}let m,h,g;i.includeExplanation&&(m=t.tokenizeLine(f,l,s),h=m.tokens,g=0);let _=t.tokenizeLine2(f,l,s),v=_.tokens.length/2;for(let e=0;e<v;e++){let t=_.tokens[2*e],o=e+1<v?_.tokens[2*e+2]:f.length;if(t===o)continue;let s=_.tokens[2*e+1],c=YF(r[na.getForeground(s)],a),l=na.getFontStyle(s),d={content:f.substring(t,o),offset:p+t,color:c,fontStyle:l};if(i.includeExplanation){let e=[];if(i.includeExplanation!==`scopeName`)for(let t of n.settings){let n;switch(typeof t.scope){case`string`:n=t.scope.split(SI).map(e=>e.trim());break;case`object`:n=t.scope;break;default:continue}e.push({settings:t,selectors:n.map(e=>e.split(CI))})}d.explanation=[];let r=0;for(;t+r<o;){let t=h[g],n=f.substring(t.startIndex,t.endIndex);r+=n.length,d.explanation.push({content:n,scopes:i.includeExplanation===`scopeName`?OI(t.scopes):kI(e,t.scopes)}),g+=1}}u.push(d)}d.push(u),u=[],l=_.ruleStack}return{tokens:d,stateStack:l}}function OI(e){return e.map(e=>({scopeName:e}))}function kI(e,t){let n=[];for(let r=0,i=t.length;r<i;r++){let i=t[r];n[r]={scopeName:i,themeMatches:MI(e,i,t.slice(0,r))}}return n}function AI(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]===`.`}function jI(e,t,n){if(!AI(e.at(-1),t))return!1;let r=e.length-2,i=n.length-1;for(;r>=0&&i>=0;)AI(e[r],n[i])&&--r,--i;return r===-1}function MI(e,t,n){let r=[];for(let{selectors:i,settings:a}of e)for(let e of i)if(jI(e,t,n)){r.push(a);break}return r}function NI(e,t,n,r=wI){let i=Object.entries(n.themes).filter(e=>e[1]).map(e=>({color:e[0],theme:e[1]})),a=i.map(i=>{let a=r(e,t,{...n,theme:i.theme});return{tokens:a,state:vI(a),theme:typeof i.theme==`string`?i.theme:i.theme.name}}),o=PI(...a.map(e=>e.tokens)),s=o[0].map((e,t)=>e.map((e,r)=>{let a={content:e.content,variants:{},offset:e.offset};return`includeExplanation`in n&&n.includeExplanation&&(a.explanation=e.explanation),o.forEach((e,n)=>{let{content:o,explanation:s,offset:c,...l}=e[t][r];a.variants[i[n].color]=l}),a})),c=a[0].state?new yI(Object.fromEntries(a.map(e=>[e.theme,e.state?.getInternalStack(e.theme)])),a[0].state.lang):void 0;return c&&_I(s,c),s}function PI(...e){let t=e.map(()=>[]),n=e.length;for(let r=0;r<e[0].length;r++){let i=e.map(e=>e[r]),a=t.map(()=>[]);t.forEach((e,t)=>e.push(a[t]));let o=i.map(()=>0),s=i.map(e=>e[0]);for(;s.every(e=>e);){let e=Math.min(...s.map(e=>e.content.length));for(let t=0;t<n;t++){let n=s[t];n.content.length===e?(a[t].push(n),o[t]+=1,s[t]=i[t][o[t]]):(a[t].push({...n,content:n.content.slice(0,e)}),s[t]={...n,content:n.content.slice(e),offset:n.offset+e})}}}return t}var FI=/\s+/g;function II(e,t){if(!t)return e;e.properties||={},e.properties.class||=[],typeof e.properties.class==`string`&&(e.properties.class=e.properties.class.split(FI)),Array.isArray(e.properties.class)||(e.properties.class=[]);let n=Array.isArray(t)?t:t.split(FI);for(let t of n)t&&!e.properties.class.includes(t)&&e.properties.class.push(t);return e}var LI=/:?lang=["']([^"']+)["']/g,RI=/(?:```|~~~)([\w-]+)/g,zI=/\\begin\{([\w-]+)\}/g,BI=/<script\s+(?:type|lang)=["']([^"']+)["']/gi;function VI(e){let t=rI(e,!0).map(([e])=>e);function n(n){if(n===e.length)return{line:t.length-1,character:t.at(-1).length};let r=n,i=0;for(let e of t){if(r<e.length)break;r-=e.length,i++}return{line:i,character:r}}function r(e,n){let r=0;for(let n=0;n<e;n++)r+=t[n].length;return r+=n,r}return{lines:t,indexToPos:n,posToIndex:r}}function HI(e,t,n){let r=new Set;for(let t of e.matchAll(LI)){let e=t[1].toLowerCase().trim();e&&r.add(e)}for(let t of e.matchAll(RI)){let e=t[1].toLowerCase().trim();e&&r.add(e)}for(let t of e.matchAll(zI)){let e=t[1].toLowerCase().trim();e&&r.add(e)}for(let t of e.matchAll(BI)){let e=t[1].toLowerCase().trim(),n=e.includes(`/`)?e.split(`/`).pop():e;n&&r.add(n)}if(!n)return[...r];let i=n.getBundledLanguages();return[...r].filter(e=>e&&i[e])}var UI=[`color`,`background-color`];function WI(e,t){let n=0,r=[];for(let i of t)i>n&&r.push({...e,content:e.content.slice(n,i),offset:e.offset+n}),n=i;return n<e.content.length&&r.push({...e,content:e.content.slice(n),offset:e.offset+n}),r}function GI(e,t){let n=[...t instanceof Set?t:new Set(t)].sort((e,t)=>e-t);return n.length?e.map(e=>e.flatMap(e=>{let t=n.filter(t=>e.offset<t&&t<e.offset+e.content.length).map(t=>t-e.offset).sort((e,t)=>e-t);return t.length?WI(e,t):e})):e}function KI(e,t,n,r,i=`css-vars`){let a={content:e.content,explanation:e.explanation,offset:e.offset},o=t.map(t=>qI(e.variants[t])),s=new Set(o.flatMap(e=>Object.keys(e))),c={},l=(e,r)=>{let i=r===`color`?``:r===`background-color`?`-bg`:`-${r}`;return n+t[e]+(r===`color`?``:i)};return o.forEach((e,n)=>{for(let a of s){let s=e[a]||`inherit`;if(n===0&&r&&UI.includes(a))if(r===`light-dark()`&&o.length>1){let e=t.findIndex(e=>e===`light`),r=t.findIndex(e=>e===`dark`);if(e===-1||r===-1)throw new qF('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');c[a]=`light-dark(${o[e][a]||`inherit`}, ${o[r][a]||`inherit`})`,i===`css-vars`&&(c[l(n,a)]=s)}else c[a]=s;else i===`css-vars`&&(c[l(n,a)]=s)}}),a.htmlStyle=c,a}function qI(e){let t={};if(e.color&&(t.color=e.color),e.bgColor&&(t[`background-color`]=e.bgColor),e.fontStyle){e.fontStyle&Xi.Italic&&(t[`font-style`]=`italic`),e.fontStyle&Xi.Bold&&(t[`font-weight`]=`bold`);let n=[];e.fontStyle&Xi.Underline&&n.push(`underline`),e.fontStyle&Xi.Strikethrough&&n.push(`line-through`),n.length&&(t[`text-decoration`]=n.join(` `))}return t}function JI(e){return typeof e==`string`?e:Object.entries(e).map(([e,t])=>`${e}:${t}`).join(`;`)}function YI(){let e=new WeakMap;function t(t){if(!e.has(t.meta)){let n=VI(t.source);function r(e){if(typeof e==`number`){if(e<0||e>t.source.length)throw new qF(`Invalid decoration offset: ${e}. Code length: ${t.source.length}`);return{...n.indexToPos(e),offset:e}}else{let t=n.lines[e.line];if(t===void 0)throw new qF(`Invalid decoration position ${JSON.stringify(e)}. Lines length: ${n.lines.length}`);let r=e.character;if(r<0&&(r=t.length+r),r<0||r>t.length)throw new qF(`Invalid decoration position ${JSON.stringify(e)}. Line ${e.line} length: ${t.length}`);return{...e,character:r,offset:n.posToIndex(e.line,r)}}}let i=(t.options.decorations||[]).map(e=>({...e,start:r(e.start),end:r(e.end)}));XI(i),e.set(t.meta,{decorations:i,converter:n,source:t.source})}return e.get(t.meta)}return{name:`shiki:decorations`,tokens(e){if(this.options.decorations?.length)return GI(e,t(this).decorations.flatMap(e=>[e.start.offset,e.end.offset]))},code(e){if(!this.options.decorations?.length)return;let n=t(this),r=[...e.children].filter(e=>e.type===`element`&&e.tagName===`span`);if(r.length!==n.converter.lines.length)throw new qF(`Number of lines in code element (${r.length}) does not match the number of lines in the source (${n.converter.lines.length}). Failed to apply decorations.`);function i(e,t,n,i){let a=r[e],s=``,c=-1,l=-1;if(t===0&&(c=0),n===0&&(l=0),n===1/0&&(l=a.children.length),c===-1||l===-1)for(let e=0;e<a.children.length;e++)s+=ZI(a.children[e]),c===-1&&s.length===t&&(c=e+1),l===-1&&s.length===n&&(l=e+1);if(c===-1)throw new qF(`Failed to find start index for decoration ${JSON.stringify(i.start)}`);if(l===-1)throw new qF(`Failed to find end index for decoration ${JSON.stringify(i.end)}`);let u=a.children.slice(c,l);if(!i.alwaysWrap&&u.length===a.children.length)o(a,i,`line`);else if(!i.alwaysWrap&&u.length===1&&u[0].type===`element`)o(u[0],i,`token`);else{let e={type:`element`,tagName:`span`,properties:{},children:u};o(e,i,`wrapper`),a.children.splice(c,u.length,e)}}function a(e,t){r[e]=o(r[e],t,`line`)}function o(e,t,n){let r=t.properties||{},i=t.transform||(e=>e);return e.tagName=t.tagName||`span`,e.properties={...e.properties,...r,class:e.properties.class},t.properties?.class&&II(e,t.properties.class),e=i(e,n)||e,e}let s=[],c=n.decorations.sort((e,t)=>t.start.offset-e.start.offset||e.end.offset-t.end.offset);for(let e of c){let{start:t,end:n}=e;if(t.line===n.line)i(t.line,t.character,n.character,e);else if(t.line<n.line){i(t.line,t.character,1/0,e);for(let r=t.line+1;r<n.line;r++)s.unshift(()=>a(r,e));i(n.line,0,n.character,e)}}s.forEach(e=>e())}}}function XI(e){for(let t=0;t<e.length;t++){let n=e[t];if(n.start.offset>n.end.offset)throw new qF(`Invalid decoration range: ${JSON.stringify(n.start)} - ${JSON.stringify(n.end)}`);for(let r=t+1;r<e.length;r++){let t=e[r],i=n.start.offset<=t.start.offset&&t.start.offset<n.end.offset,a=n.start.offset<t.end.offset&&t.end.offset<=n.end.offset,o=t.start.offset<=n.start.offset&&n.start.offset<t.end.offset,s=t.start.offset<n.end.offset&&n.end.offset<=t.end.offset;if(i||a||o||s){if(i&&a||o&&s||o&&n.start.offset===n.end.offset||a&&t.start.offset===t.end.offset)continue;throw new qF(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(t.start)} intersect.`)}}}}function ZI(e){return e.type===`text`?e.value:e.type===`element`?e.children.map(ZI).join(``):``}var QI=[YI()];function $I(e){let t=eL(e.transformers||[]);return[...t.pre,...t.normal,...t.post,...QI]}function eL(e){let t=[],n=[],r=[];for(let i of e)switch(i.enforce){case`pre`:t.push(i);break;case`post`:n.push(i);break;default:r.push(i)}return{pre:t,post:n,normal:r}}var tL=[`black`,`red`,`green`,`yellow`,`blue`,`magenta`,`cyan`,`white`,`brightBlack`,`brightRed`,`brightGreen`,`brightYellow`,`brightBlue`,`brightMagenta`,`brightCyan`,`brightWhite`],nL={1:`bold`,2:`dim`,3:`italic`,4:`underline`,7:`reverse`,8:`hidden`,9:`strikethrough`};function rL(e,t){let n=e.indexOf(`\x1B`,t);if(n!==-1&&e[n+1]===`[`){let t=e.indexOf(`m`,n);if(t!==-1)return{sequence:e.substring(n+2,t).split(`;`),startPosition:n,position:t+1}}return{position:e.length}}function iL(e){let t=e.shift();if(t===`2`){let t=e.splice(0,3).map(e=>Number.parseInt(e));return t.length!==3||t.some(e=>Number.isNaN(e))?void 0:{type:`rgb`,rgb:t}}else if(t===`5`){let t=e.shift();if(t)return{type:`table`,index:Number(t)}}}function aL(e){let t=[];for(;e.length>0;){let n=e.shift();if(!n)continue;let r=Number.parseInt(n);if(!Number.isNaN(r))if(r===0)t.push({type:`resetAll`});else if(r<=9)nL[r]&&t.push({type:`setDecoration`,value:nL[r]});else if(r<=29){let e=nL[r-20];e&&(t.push({type:`resetDecoration`,value:e}),e===`dim`&&t.push({type:`resetDecoration`,value:`bold`}))}else if(r<=37)t.push({type:`setForegroundColor`,value:{type:`named`,name:tL[r-30]}});else if(r===38){let n=iL(e);n&&t.push({type:`setForegroundColor`,value:n})}else if(r===39)t.push({type:`resetForegroundColor`});else if(r<=47)t.push({type:`setBackgroundColor`,value:{type:`named`,name:tL[r-40]}});else if(r===48){let n=iL(e);n&&t.push({type:`setBackgroundColor`,value:n})}else r===49?t.push({type:`resetBackgroundColor`}):r===53?t.push({type:`setDecoration`,value:`overline`}):r===55?t.push({type:`resetDecoration`,value:`overline`}):r>=90&&r<=97?t.push({type:`setForegroundColor`,value:{type:`named`,name:tL[r-90+8]}}):r>=100&&r<=107&&t.push({type:`setBackgroundColor`,value:{type:`named`,name:tL[r-100+8]}})}return t}function oL(){let e=null,t=null,n=new Set;return{parse(r){let i=[],a=0;do{let o=rL(r,a),s=o.sequence?r.substring(a,o.startPosition):r.substring(a);if(s.length>0&&i.push({value:s,foreground:e,background:t,decorations:new Set(n)}),o.sequence){let r=aL(o.sequence);for(let i of r)i.type===`resetAll`?(e=null,t=null,n.clear()):i.type===`resetForegroundColor`?e=null:i.type===`resetBackgroundColor`?t=null:i.type===`resetDecoration`&&n.delete(i.value);for(let i of r)i.type===`setForegroundColor`?e=i.value:i.type===`setBackgroundColor`?t=i.value:i.type===`setDecoration`&&n.add(i.value)}a=o.position}while(a<r.length);return i}}}var sL={black:`#000000`,red:`#bb0000`,green:`#00bb00`,yellow:`#bbbb00`,blue:`#0000bb`,magenta:`#ff00ff`,cyan:`#00bbbb`,white:`#eeeeee`,brightBlack:`#555555`,brightRed:`#ff5555`,brightGreen:`#00ff00`,brightYellow:`#ffff55`,brightBlue:`#5555ff`,brightMagenta:`#ff55ff`,brightCyan:`#55ffff`,brightWhite:`#ffffff`};function cL(e=sL){function t(t){return e[t]}function n(e){return`#${e.map(e=>Math.max(0,Math.min(e,255)).toString(16).padStart(2,`0`)).join(``)}`}let r;function i(){if(r)return r;r=[];for(let e=0;e<tL.length;e++)r.push(t(tL[e]));let e=[0,95,135,175,215,255];for(let t=0;t<6;t++)for(let i=0;i<6;i++)for(let a=0;a<6;a++)r.push(n([e[t],e[i],e[a]]));let i=8;for(let e=0;e<24;e++,i+=10)r.push(n([i,i,i]));return r}function a(e){return i()[e]}function o(e){switch(e.type){case`named`:return t(e.name);case`rgb`:return n(e.rgb);case`table`:return a(e.index)}}return{value:o}}var lL=/#([0-9a-f]{3,8})/i,uL=/var\((--[\w-]+-ansi-[\w-]+)\)/,dL={black:`#000000`,red:`#cd3131`,green:`#0DBC79`,yellow:`#E5E510`,blue:`#2472C8`,magenta:`#BC3FBC`,cyan:`#11A8CD`,white:`#E5E5E5`,brightBlack:`#666666`,brightRed:`#F14C4C`,brightGreen:`#23D18B`,brightYellow:`#F5F543`,brightBlue:`#3B8EEA`,brightMagenta:`#D670D6`,brightCyan:`#29B8DB`,brightWhite:`#FFFFFF`};function fL(e,t,n){let r=JF(e,n),i=rI(t),a=cL(Object.fromEntries(tL.map(t=>{let n=`terminal.ansi${t[0].toUpperCase()}${t.substring(1)}`;return[t,e.colors?.[n]||dL[t]]}))),o=oL();return i.map(t=>o.parse(t[0]).map(n=>{let i,o;n.decorations.has(`reverse`)?(i=n.background?a.value(n.background):e.bg,o=n.foreground?a.value(n.foreground):e.fg):(i=n.foreground?a.value(n.foreground):e.fg,o=n.background?a.value(n.background):void 0),i=YF(i,r),o=YF(o,r),n.decorations.has(`dim`)&&(i=pL(i));let s=Xi.None;return n.decorations.has(`bold`)&&(s|=Xi.Bold),n.decorations.has(`italic`)&&(s|=Xi.Italic),n.decorations.has(`underline`)&&(s|=Xi.Underline),n.decorations.has(`strikethrough`)&&(s|=Xi.Strikethrough),{content:n.value,offset:t[1],color:i,bgColor:o,fontStyle:s}}))}function pL(e){let t=e.match(lL);if(t){let e=t[1];if(e.length===8){let t=Math.round(Number.parseInt(e.slice(6,8),16)/2).toString(16).padStart(2,`0`);return`#${e.slice(0,6)}${t}`}else if(e.length===6)return`#${e}80`;else if(e.length===4){let t=e[0],n=e[1],r=e[2],i=e[3];return`#${t}${t}${n}${n}${r}${r}${Math.round(Number.parseInt(`${i}${i}`,16)/2).toString(16).padStart(2,`0`)}`}else if(e.length===3){let t=e[0],n=e[1],r=e[2];return`#${t}${t}${n}${n}${r}${r}80`}}let n=e.match(uL);return n?`var(${n[1]}-dim)`:e}function mL(e,t,n={}){let r=e.resolveLangAlias(n.lang||`text`),{theme:i=e.getLoadedThemes()[0]}=n;if(!QF(r)&&!eI(i)&&r===`ansi`){let{theme:r}=e.setTheme(i);return fL(r,t,n)}return wI(e,t,n)}function hL(e,t,n){let r,i,a,o,s,c;if(`themes`in n){let{defaultColor:l=`light`,cssVariablePrefix:u=`--shiki-`,colorsRendering:d=`css-vars`}=n,f=Object.entries(n.themes).filter(e=>e[1]).map(e=>({color:e[0],theme:e[1]})).sort((e,t)=>e.color===l?-1:+(t.color===l));if(f.length===0)throw new qF("`themes` option must not be empty");let p=NI(e,t,n,mL);if(c=vI(p),l&&l!==`light-dark()`&&!f.some(e=>e.color===l))throw new qF(`\`themes\` option must contain the defaultColor key \`${l}\``);let m=f.map(t=>e.getTheme(t.theme)),h=f.map(e=>e.color);a=p.map(e=>e.map(e=>KI(e,h,u,l,d))),c&&_I(a,c);let g=f.map(e=>JF(e.theme,n));i=gL(f,m,g,u,l,`fg`,d),r=gL(f,m,g,u,l,`bg`,d),o=`shiki-themes ${m.map(e=>e.name).join(` `)}`,s=l?void 0:[i,r].join(`;`)}else if(`theme`in n){let s=JF(n.theme,n);a=mL(e,t,n);let l=e.getTheme(n.theme);r=YF(l.bg,s),i=YF(l.fg,s),o=l.name,c=vI(a)}else throw new qF("Invalid options, either `theme` or `themes` must be provided");return{tokens:a,fg:i,bg:r,themeName:o,rootStyle:s,grammarState:c}}function gL(e,t,n,r,i,a,o){return e.map((s,c)=>{let l=YF(t[c][a],n[c])||`inherit`,u=`${r+s.color}${a===`bg`?`-bg`:``}:${l}`;if(c===0&&i){if(i===`light-dark()`&&e.length>1){let r=e.findIndex(e=>e.color===`light`),i=e.findIndex(e=>e.color===`dark`);if(r===-1||i===-1)throw new qF('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');return`light-dark(${YF(t[r][a],n[r])||`inherit`}, ${YF(t[i][a],n[i])||`inherit`});${u}`}return l}return o===`css-vars`?u:null}).filter(e=>!!e).join(`;`)}var _L=/^\s+$/,vL=/^(\s*)(.*?)(\s*)$/;function yL(e,t,n,r={meta:{},options:n,codeToHast:(t,n)=>yL(e,t,n),codeToTokens:(t,n)=>hL(e,t,n)}){let i=t;for(let e of $I(n))i=e.preprocess?.call(r,i,n)||i;let{tokens:a,fg:o,bg:s,themeName:c,rootStyle:l,grammarState:u}=hL(e,i,n),{mergeWhitespaces:d=!0,mergeSameStyleTokens:f=!1}=n;d===!0?a=xL(a):d===`never`&&(a=SL(a)),f&&(a=CL(a));let p={...r,get source(){return i}};for(let e of $I(n))a=e.tokens?.call(p,a)||a;return bL(a,{...n,fg:o,bg:s,themeName:c,rootStyle:n.rootStyle===!1?!1:n.rootStyle??l},p,u)}function bL(e,t,n,r=vI(e)){let i=$I(t),a=[],o={type:`root`,children:[]},{structure:s=`classic`,tabindex:c=`0`}=t,l={class:`shiki ${t.themeName||``}`};t.rootStyle!==!1&&(t.rootStyle==null?l.style=`background-color:${t.bg};color:${t.fg}`:l.style=t.rootStyle),c!==!1&&c!=null&&(l.tabindex=c.toString());for(let[e,n]of Object.entries(t.meta||{}))e.startsWith(`_`)||(l[e]=n);let u={type:`element`,tagName:`pre`,properties:l,children:[],data:t.data},d={type:`element`,tagName:`code`,properties:{},children:a},f=[],p={...n,structure:s,addClassToHast:II,get source(){return n.source},get tokens(){return e},get options(){return t},get root(){return o},get pre(){return u},get code(){return d},get lines(){return f}};if(e.forEach((e,t)=>{t&&(s===`inline`?o.children.push({type:`element`,tagName:`br`,properties:{},children:[]}):s===`classic`&&a.push({type:`text`,value:`
|
|
425
|
+
`}));let n={type:`element`,tagName:`span`,properties:{class:`line`},children:[]},r=0;for(let a of e){let e={type:`element`,tagName:`span`,properties:{...a.htmlAttrs},children:[{type:`text`,value:a.content}]},c=JI(a.htmlStyle||qI(a));c&&(e.properties.style=c);for(let o of i)e=o?.span?.call(p,e,t+1,r,n,a)||e;s===`inline`?o.children.push(e):s===`classic`&&n.children.push(e),r+=a.content.length}if(s===`classic`){for(let e of i)n=e?.line?.call(p,n,t+1)||n;f.push(n),a.push(n)}else s===`inline`&&f.push(n)}),s===`classic`){for(let e of i)d=e?.code?.call(p,d)||d;u.children.push(d);for(let e of i)u=e?.pre?.call(p,u)||u;o.children.push(u)}else if(s===`inline`){let e=[],t={type:`element`,tagName:`span`,properties:{class:`line`},children:[]};for(let n of o.children)n.type===`element`&&n.tagName===`br`?(e.push(t),t={type:`element`,tagName:`span`,properties:{class:`line`},children:[]}):(n.type===`element`||n.type===`text`)&&t.children.push(n);e.push(t);let n={type:`element`,tagName:`code`,properties:{},children:e};for(let e of i)n=e?.code?.call(p,n)||n;o.children=[];for(let e=0;e<n.children.length;e++){e>0&&o.children.push({type:`element`,tagName:`br`,properties:{},children:[]});let t=n.children[e];t.type===`element`&&o.children.push(...t.children)}}let m=o;for(let e of i)m=e?.root?.call(p,m)||m;return r&&_I(m,r),m}function xL(e){return e.map(e=>{let t=[],n=``,r;return e.forEach((i,a)=>{let o=!(i.fontStyle&&(i.fontStyle&Xi.Underline||i.fontStyle&Xi.Strikethrough));o&&_L.test(i.content)&&e[a+1]?(r===void 0&&(r=i.offset),n+=i.content):n?(o?t.push({...i,offset:r,content:n+i.content}):t.push({content:n,offset:r},i),r=void 0,n=``):t.push(i)}),t})}function SL(e){return e.map(e=>e.flatMap(e=>{if(_L.test(e.content))return e;let t=e.content.match(vL);if(!t)return e;let[,n,r,i]=t;if(!n&&!i)return e;let a=[{...e,offset:e.offset+n.length,content:r}];return n&&a.unshift({content:n,offset:e.offset}),i&&a.push({content:i,offset:e.offset+n.length+r.length}),a}))}function CL(e){return e.map(e=>{let t=[];for(let n of e){if(t.length===0){t.push({...n});continue}let e=t.at(-1),r=JI(e.htmlStyle||qI(e)),i=JI(n.htmlStyle||qI(n)),a=e.fontStyle&&(e.fontStyle&Xi.Underline||e.fontStyle&Xi.Strikethrough),o=n.fontStyle&&(n.fontStyle&Xi.Underline||n.fontStyle&Xi.Strikethrough);!a&&!o&&r===i?e.content+=n.content:t.push({...n})}return t})}var wL=ks;function TL(e,t,n){let r={meta:{},options:n,codeToHast:(t,n)=>yL(e,t,n),codeToTokens:(t,n)=>hL(e,t,n)},i=wL(yL(e,t,n,r));for(let e of $I(n))i=e.postprocess?.call(r,i,n)||i;return i}async function EL(e){let t=await hI(e);return{getLastGrammarState:(...e)=>TI(t,...e),codeToTokensBase:(e,n)=>mL(t,e,n),codeToTokensWithThemes:(e,n)=>NI(t,e,n),codeToTokens:(e,n)=>hL(t,e,n),codeToHast:(e,n)=>yL(t,e,n),codeToHtml:(e,n)=>TL(t,e,n),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}function DL(e){let t=e.langs,n=e.themes,r=e.engine;async function i(e){function i(n){if(typeof n==`string`){if(n=e.langAlias?.[n]||n,$F(n))return[];let r=t[n];if(!r)throw new qF(`Language \`${n}\` is not included in this bundle. You may want to load it from external source.`);return r}return n}function a(e){if(tI(e))return`none`;if(typeof e==`string`){let t=n[e];if(!t)throw new qF(`Theme \`${e}\` is not included in this bundle. You may want to load it from external source.`);return t}return e}let o=(e.themes??[]).map(e=>a(e)),s=(e.langs??[]).map(e=>i(e)),c=await EL({engine:e.engine??r(),...e,themes:o,langs:s});return{...c,loadLanguage(...e){return c.loadLanguage(...e.map(i))},loadTheme(...e){return c.loadTheme(...e.map(a))},getBundledLanguages(){return t},getBundledThemes(){return n}}}return i}function OL(e){let t;async function n(n={}){if(t){let e=await t;return await Promise.all([e.loadTheme(...n.themes||[]),e.loadLanguage(...n.langs||[])]),e}else{t=e({...n,themes:[],langs:[]});let r=await t;return await Promise.all([r.loadTheme(...n.themes||[]),r.loadLanguage(...n.langs||[])]),r}}return n}function kL(e,t){let n=OL(e);async function r(e,r){let i=await n({langs:[r.lang],themes:`theme`in r?[r.theme]:Object.values(r.themes)}),a=await t?.guessEmbeddedLanguages?.(e,r.lang,i);return a&&await i.loadLanguage(...a),i}return{getSingletonHighlighter(e){return n(e)},async codeToHtml(e,t){return(await r(e,t)).codeToHtml(e,t)},async codeToHast(e,t){return(await r(e,t)).codeToHast(e,t)},async codeToTokens(e,t){return(await r(e,t)).codeToTokens(e,t)},async codeToTokensBase(e,t){return(await r(e,t)).codeToTokensBase(e,t)},async codeToTokensWithThemes(e,t){return(await r(e,t)).codeToTokensWithThemes(e,t)},async getLastGrammarState(e,t){return(await n({langs:[t.lang],themes:[t.theme]})).getLastGrammarState(e,t)}}}var AL=DL({langs:hF,themes:gF,engine:()=>(0,KF.createOnigurumaEngine)(k(()=>import(`./wasm-BnjxR4X6.js`),[]))}),{codeToHtml:jL,codeToHast:ML,codeToTokens:NL,codeToTokensBase:PL,codeToTokensWithThemes:FL,getSingletonHighlighter:IL,getLastGrammarState:LL}=kL(AL,{guessEmbeddedLanguages:HI}),RL=e=>e&&e&1,zL=e=>e&&e&2,BL=e=>e&&e&4,VL=e=>e.map((e,t)=>({key:`line-${t}`,tokens:e.map((e,n)=>({key:`line-${t}-${n}`,token:e}))})),HL=({token:e})=>(0,$.jsx)(`span`,{className:`dark:!bg-[var(--shiki-dark-bg)] dark:!text-[var(--shiki-dark)]`,style:{backgroundColor:e.bgColor,color:e.color,fontStyle:RL(e.fontStyle)?`italic`:void 0,fontWeight:zL(e.fontStyle)?`bold`:void 0,textDecoration:BL(e.fontStyle)?`underline`:void 0,...e.htmlStyle},children:e.content}),UL=O(`block`,`before:content-[counter(line)]`,`before:inline-block`,`before:[counter-increment:line]`,`before:w-8`,`before:mr-4`,`before:text-right`,`before:text-muted-foreground/50`,`before:font-mono`,`before:select-none`),WL=({keyedLine:e,showLineNumbers:t})=>(0,$.jsx)(`span`,{className:t?UL:`block`,children:e.tokens.length===0?`
|
|
426
|
+
`:e.tokens.map(({token:e,key:t})=>(0,$.jsx)(HL,{token:e},t))}),GL=(0,j.createContext)({code:``}),KL=new Map,qL=new Map,JL=new Map,YL=(e,t)=>{let n=e.slice(0,100),r=e.length>100?e.slice(-100):``;return`${t}:${e.length}:${n}:${r}`},XL=e=>{let t=KL.get(e);if(t)return t;let n=AL({langs:[e],themes:[`github-light`,`github-dark`]});return KL.set(e,n),n},ZL=e=>({bg:`transparent`,fg:`inherit`,tokens:e.split(`
|
|
427
|
+
`).map(e=>e===``?[]:[{color:`inherit`,content:e}])}),QL=(e,t,n)=>{let r=YL(e,t);return qL.get(r)||(n&&(JL.has(r)||JL.set(r,new Set),JL.get(r)?.add(n)),XL(t).then(n=>{let i=n.getLoadedLanguages().includes(t)?t:`text`,a=n.codeToTokens(e,{lang:i,themes:{dark:`github-dark`,light:`github-light`}}),o={bg:a.bg??`transparent`,fg:a.fg??`inherit`,tokens:a.tokens};qL.set(r,o);let s=JL.get(r);if(s){for(let e of s)e(o);JL.delete(r)}}).catch(e=>{console.error(`Failed to highlight code:`,e),JL.delete(r)}),null)},$L=(0,j.memo)(({tokenized:e,showLineNumbers:t,className:n})=>{let r=(0,j.useMemo)(()=>({backgroundColor:e.bg,color:e.fg}),[e.bg,e.fg]),i=(0,j.useMemo)(()=>VL(e.tokens),[e.tokens]);return(0,$.jsx)(`pre`,{className:O(`dark:!bg-[var(--shiki-dark-bg)] dark:!text-[var(--shiki-dark)] m-0 p-4 text-sm`,n),style:r,children:(0,$.jsx)(`code`,{className:O(`font-mono text-sm`,t&&`[counter-increment:line_0] [counter-reset:line]`),children:i.map(e=>(0,$.jsx)(WL,{keyedLine:e,showLineNumbers:t},e.key))})})},(e,t)=>e.tokenized===t.tokenized&&e.showLineNumbers===t.showLineNumbers&&e.className===t.className);$L.displayName=`CodeBlockBody`;var eR=({className:e,language:t,style:n,...r})=>(0,$.jsx)(`div`,{className:O(`group relative w-full overflow-hidden rounded-md border bg-background text-foreground`,e),"data-language":t,style:{containIntrinsicSize:`auto 200px`,contentVisibility:`auto`,...n},...r}),tR=({code:e,language:t,showLineNumbers:n=!1})=>{let r=(0,j.useMemo)(()=>ZL(e),[e]),i=(0,j.useMemo)(()=>QL(e,t)??r,[e,t,r]),[a,o]=(0,j.useState)(null),s=(0,j.useRef)({code:e,language:t});return(s.current.code!==e||s.current.language!==t)&&(s.current={code:e,language:t},o(null)),(0,j.useEffect)(()=>{let n=!1;return QL(e,t,e=>{n||o(e)}),()=>{n=!0}},[e,t]),(0,$.jsx)(`div`,{className:`relative overflow-auto`,children:(0,$.jsx)($L,{showLineNumbers:n,tokenized:a??i})})},nR=({code:e,language:t,showLineNumbers:n=!1,className:r,children:i,...a})=>{let o=(0,j.useMemo)(()=>({code:e}),[e]);return(0,$.jsx)(GL.Provider,{value:o,children:(0,$.jsxs)(eR,{className:r,language:t,...a,children:[i,(0,$.jsx)(tR,{code:e,language:t,showLineNumbers:n})]})})},rR=({className:e,input:t,...n})=>(0,$.jsxs)(`div`,{className:O(`space-y-2 overflow-hidden`,e),...n,children:[(0,$.jsx)(`h4`,{className:`font-medium text-muted-foreground text-xs uppercase tracking-wide`,children:`Parameters`}),(0,$.jsx)(`div`,{className:`rounded-md bg-muted/50`,children:(0,$.jsx)(nR,{code:JSON.stringify(t,null,2),language:`json`})})]}),iR=({className:e,output:t,errorText:n,...r})=>{if(!(t||n))return null;let i=(0,$.jsx)(`div`,{children:t});return typeof t==`object`&&!(0,j.isValidElement)(t)?i=(0,$.jsx)(nR,{code:JSON.stringify(t,null,2),language:`json`}):typeof t==`string`&&(i=(0,$.jsx)(nR,{code:t,language:`json`})),(0,$.jsxs)(`div`,{className:O(`space-y-2`,e),...r,children:[(0,$.jsx)(`h4`,{className:`font-medium text-muted-foreground text-xs uppercase tracking-wide`,children:n?`Error`:`Result`}),(0,$.jsxs)(`div`,{className:O(`overflow-x-auto rounded-md text-xs [&_table]:w-full`,n?`bg-destructive/10 text-destructive`:`bg-muted/50 text-foreground`),children:[n&&(0,$.jsx)(`div`,{children:n}),i]})]})};function aR({from:e,glow:t,children:n}){let r=e===`user`;return(0,$.jsxs)(`div`,{className:`flex gap-3`,children:[(0,$.jsx)(`div`,{className:O(`flex size-8 shrink-0 items-center justify-center rounded-full`,r?`bg-neutral-200`:`bg-muted`,t&&!r&&`jun-avatar-glow`),children:r?(0,$.jsx)(`span`,{className:`text-xs font-semibold text-neutral-700`,children:`U`}):(0,$.jsx)(Me,{className:`size-4`})}),(0,$.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,$.jsx)(`p`,{className:`text-sm font-semibold text-foreground`,children:r?`You`:`junso`}),n]})]})}function oR({text:e,isStreaming:t}){return(0,$.jsxs)(WP,{isStreaming:t,className:`mt-2 mb-0 w-full`,children:[(0,$.jsx)(KP,{}),(0,$.jsx)(JP,{children:e})]})}var sR={commandExecution:{label:`Running command`,icon:Kn},fileChange:{label:`Editing files`,icon:Bn},mcpToolCall:{label:`MCP tool`,icon:In},webSearch:{label:`Searching the web`,icon:ne},webFetch:{label:`Reading webpage`,icon:Ge}};function cR(e){let t=sR[e.toolType]??{label:e.toolType,icon:Jn},n=e.title;return e.toolType===`fileChange`&&(n=n.replace(/^Edit /,``)),(n===t.label||n===e.toolType)&&(n=``),{...t,detail:n}}function lR(e){if(e==null)return!1;let t=JSON.stringify(e);return!!t&&t!==`{}`}function uR({tools:e}){return e.length===0?null:(0,$.jsxs)(ZP,{defaultOpen:!0,className:`mt-3 space-y-2`,children:[(0,$.jsx)(QP,{children:e.some(e=>e.state===`input-streaming`||e.state===`input-available`)?(0,$.jsx)(zP,{duration:1,children:`Working...`}):`Used ${e.length} tool${e.length===1?``:`s`}`}),(0,$.jsx)(rF,{className:`pl-[28px]`,children:e.map((t,n)=>(0,$.jsx)(fR,{entry:t,isLast:n===e.length-1},t.key))})]})}function dR({entry:e}){return(0,$.jsxs)(`div`,{className:`space-y-3 rounded-md border bg-muted/30 p-3`,children:[lR(e.input)?(0,$.jsx)(rR,{input:e.input}):null,(0,$.jsx)(iR,{errorText:e.error,output:e.output?(0,$.jsx)(`pre`,{className:`max-h-64 overflow-auto whitespace-pre-wrap p-3 font-mono text-xs`,children:e.output}):void 0})]})}function fR({entry:e,isLast:t}){let[n,r]=(0,j.useState)(!1),{label:i,icon:a,detail:o}=cR(e),s=e.state===`input-streaming`||e.state===`input-available`,c=e.state===`output-error`,l=lR(e.input)||!!(e.output||e.error);return(0,$.jsxs)(`div`,{className:`relative min-w-0`,children:[(0,$.jsx)(`div`,{className:`absolute rounded-bl-lg border-b border-l border-border`,style:{top:-5,left:-19,width:24,height:16}}),t?null:(0,$.jsx)(`div`,{className:`absolute w-px border-l border-border`,style:{top:0,bottom:-12,left:-19}}),(0,$.jsx)(eF,{icon:c?E:a,status:s?`active`:`complete`,className:O(`[&>div:first-child]:z-[1] [&>div:first-child]:rounded-full [&>div:first-child]:bg-background [&>div:first-child>div]:hidden`,c&&`[&>div:first-child>svg]:text-destructive`),label:(0,$.jsxs)(`button`,{type:`button`,onClick:()=>{l&&r(e=>!e)},className:O(`flex w-full min-w-0 items-center gap-2 text-left`,l?`cursor-pointer hover:text-foreground`:`cursor-default`),children:[(0,$.jsx)(`span`,{className:`shrink-0`,children:s?(0,$.jsx)(zP,{duration:1,children:i}):i}),o?(0,$.jsx)(nF,{className:`min-w-0 max-w-full truncate font-mono`,children:o.length>80?`${o.slice(0,80)}...`:o}):null,l?(0,$.jsx)(x,{className:O(`ml-auto size-3.5 shrink-0 transition-transform`,n?`rotate-180`:`rotate-0`)}):null]}),children:n&&l?(0,$.jsx)(dR,{entry:e}):null})]})}var pR=e=>typeof e==`object`&&e?e:{},mR=e=>typeof e==`string`?e:void 0;function hR(e,t){let n=pR(t);if(e.includes(`commandExecution`)){let e=n.command;return{icon:Kn,kind:`Run command`,primary:typeof e==`string`?e:Array.isArray(e)?e.join(` `):`command`,secondary:mR(n.cwd)}}if(e.includes(`fileChange`)){let e=(Array.isArray(n.changes)?n.changes:[]).map(e=>mR(pR(e).path)).filter(Boolean).map(e=>String(e).split(/[\\/]/).pop());return{icon:zn,kind:`Edit files`,primary:e.length>0?e.join(`, `):`file changes`}}return e.includes(`permissions`)?{icon:ee,kind:`Grant permission`,primary:mR(n.reason)??mR(n.permission)??`permission request`}:{icon:Wn,kind:e.split(`/`).slice(-2,-1)[0]??`request`,primary:mR(n.reason)??e}}function gR({entry:e,responded:t,expired:n,onRespond:r}){let[i,a]=(0,j.useState)(!1),{icon:o,kind:s,primary:c,secondary:l}=hR(e.payload.method,e.payload.params),u=e.resolved,d=!u&&!t&&!n;return(0,$.jsxs)(`div`,{className:O(`mt-3 overflow-hidden rounded-lg border bg-card text-sm`,d&&`ring-1 ring-ring/30`),children:[(0,$.jsxs)(`div`,{className:`flex items-start gap-3 p-3`,children:[(0,$.jsx)(`div`,{className:`mt-0.5 flex size-7 shrink-0 items-center justify-center rounded-md bg-muted text-muted-foreground`,children:(0,$.jsx)(o,{className:`size-4`})}),(0,$.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,$.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,$.jsx)(`span`,{className:`font-medium text-foreground`,children:s}),u?(0,$.jsx)(_t,{variant:`outline`,children:u}):n?(0,$.jsx)(_t,{variant:`outline`,children:`expired`}):t?(0,$.jsx)(_t,{variant:`outline`,children:`sending…`}):(0,$.jsx)(_t,{variant:`secondary`,children:`needs approval`})]}),(0,$.jsx)(`code`,{className:`mt-1 block truncate font-mono text-xs text-muted-foreground`,children:c}),l&&(0,$.jsx)(`div`,{className:`truncate text-xs text-muted-foreground/70`,title:l,children:l})]})]}),d&&(0,$.jsxs)(`div`,{className:`flex items-center gap-2 px-3 pb-3`,children:[(0,$.jsx)(gt,{size:`sm`,onClick:()=>r(e.key,e.payload.requestId,`accept`),children:`Accept`}),(0,$.jsx)(gt,{size:`sm`,variant:`outline`,onClick:()=>r(e.key,e.payload.requestId,`acceptForSession`),children:`Accept for session`}),(0,$.jsx)(gt,{size:`sm`,variant:`ghost`,className:`text-destructive hover:text-destructive`,onClick:()=>r(e.key,e.payload.requestId,`decline`),children:`Decline`})]}),n&&(0,$.jsx)(`div`,{className:`px-3 pb-3 text-xs text-muted-foreground`,children:`This approval can no longer be answered — the waiting turn ended (the engine restarted or the request timed out). Resend your last message to continue.`}),(0,$.jsxs)(T,{open:i,onOpenChange:a,children:[(0,$.jsxs)(w,{className:`flex w-full items-center gap-1.5 border-t px-3 py-1.5 text-xs text-muted-foreground transition-colors hover:text-foreground`,children:[(0,$.jsx)(S,{className:O(`size-3.5 transition-transform`,i&&`rotate-90`)}),`Details`]}),(0,$.jsx)(C,{children:(0,$.jsx)(`pre`,{className:`max-h-72 overflow-auto border-t bg-muted/40 p-3 font-mono text-xs leading-relaxed`,children:JSON.stringify(e.payload.params,null,2)})})]})]})}var _R=j.createContext(void 0);function vR(e){let t=j.useContext(_R);if(t===void 0&&!e)throw Error(Ce(50));return t}var yR=e(o()),bR={...pt,instantType:Ne(e=>e.instantType),hasViewport:Ne(e=>e.hasViewport)},xR=class e extends Ie{constructor(e,t,n=!1){let r=new Ye,i={...SR(),...e};i.floatingRootContext=lt(r,t,n),super(i,{popupRef:j.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:r,closeDelayRef:{current:300},inlineRectCoordsRef:{current:void 0}},bR)}setOpen=(e,t)=>{let n=t.reason,r=n===u,i=e&&n===`trigger-focus`,a=!e&&(n===`trigger-press`||n===`escape-key`);if(t.preventUnmountOnClose=()=>{this.set(`preventUnmountingOnClose`,!0)},this.context.onOpenChange?.(e,t),t.isCanceled)return;let o=t.event;e&&r&&t.trigger&&`clientX`in o&&`clientY`in o&&this.context.inlineRectCoordsRef.current?.element!==t.trigger&&ir(this.context.inlineRectCoordsRef,t.trigger,o.clientX,o.clientY),this.state.floatingRootContext.dispatchOpenChange(e,t);let s=()=>{let r={open:e};i?r.instantType=`focus`:a?r.instantType=`dismiss`:n===`trigger-hover`&&(r.instantType=void 0),Re(r,e,t.trigger),this.update(r)};r?yR.flushSync(s):s()};static useStore(t,n){return De(t,(t,r)=>new e(n,t,r)).store}};function SR(){return{...qe(),instantType:void 0,hasViewport:!1}}function CR(e){let{open:t,defaultOpen:n=!1,onOpenChange:r,onOpenChangeComplete:i,actionsRef:a,handle:o,triggerId:c,defaultTriggerId:u=null,children:d}=e,f=xR.useStore(o?.store,{open:n,openProp:t,activeTriggerId:u,triggerIdProp:c});Ve(()=>{t===void 0&&f.state.open===!1&&n===!0&&f.update({open:!0,activeTriggerId:u})}),f.useControlledProp(`openProp`,t),f.useControlledProp(`triggerIdProp`,c),f.useContextCallback(`onOpenChange`,r),f.useContextCallback(`onOpenChangeComplete`,i);let p=f.useState(`open`),m=f.useState(`activeTriggerId`),h=f.useState(`mounted`),g=f.useState(`payload`);Ee(f);let{forceUnmount:_}=ut(p,f,()=>{f.context.inlineRectCoordsRef.current=void 0});pe(()=>{p&&(m??f.set(`payload`,void 0))},[f,m,p]);let v=j.useCallback(()=>{f.setOpen(!1,s(l))},[f]);j.useImperativeHandle(a,()=>({unmount:_,close:v}),[_,v]);let y=p||h;return(0,$.jsxs)(_R.Provider,{value:f,children:[y&&(0,$.jsx)(wR,{store:f}),typeof d==`function`?d({payload:g}):d]})}function wR({store:e}){let t=mt(e.useState(`floatingRootContext`));return ze(e,{activeTriggerProps:t.reference??Se,inactiveTriggerProps:t.trigger??Se,popupProps:j.useMemo(()=>he(ft,t.floating),[t.floating])}),null}var TR=Ue(function(e){return vR(!0)?(0,$.jsx)(CR,{...e}):(0,$.jsx)(ke,{children:(0,$.jsx)(CR,{...e})})}),ER=j.createContext(void 0);function DR(){let e=j.useContext(ER);if(e===void 0)throw Error(Ce(48));return e}var OR=j.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e;return vR().useState(`mounted`)||n?(0,$.jsx)(ER.Provider,{value:n,children:(0,$.jsx)(ct,{ref:t,...r})}):null}),kR=Oe(function(e,t){let{render:n,className:r,delay:i,closeDelay:a,id:o,payload:s,handle:l,style:u,...d}=e,f=vR(!0),p=l?.store??f;if(!p)throw Error(Ce(89));let m=c(o),h=p.useState(`isTriggerActive`,m),g=p.useState(`isOpenedByTrigger`,m),_=p.useState(`floatingRootContext`),v=p.context.inlineRectCoordsRef,y=j.useRef(null),b=i??600,x=a??300,{registerTrigger:S,isMountedByThisTrigger:C}=Fe(m,y,p,{payload:s});pe(()=>{C&&(p.context.closeDelayRef.current=x)},[p,C,x]);let w=ot(_,{mouseOnly:!0,move:!1,handleClose:Ze(),delay:()=>({open:b,close:x}),triggerElementRef:y,isActiveTrigger:h,isClosing:()=>p.select(`transitionStatus`)===`ending`}),T=Qe(_,{delay:b}),E={open:g},ee=p.useState(`triggerProps`,C),te=rr(v,g);return ge(`a`,e,{state:E,ref:[t,S,y],props:[w,T.reference,ee,te,{id:m},d],stateAttributesMapping:Xe})}),AR=j.createContext(void 0);function jR(){let e=j.useContext(AR);if(e===void 0)throw Error(Ce(49));return e}var MR=j.forwardRef(function(e,t){let{render:n,className:r,anchor:i,positionMethod:a=`absolute`,side:o=`bottom`,align:s=`center`,sideOffset:c=0,alignOffset:l=0,collisionBoundary:u=`clipping-ancestors`,collisionPadding:d=5,arrowPadding:f=5,sticky:p=!1,disableAnchorTracking:m=!1,collisionAvoidance:h=We,style:g,..._}=e,v=vR(),y=DR(),b=Be(),x=v.useState(`open`),S=v.useState(`mounted`),C=v.useState(`floatingRootContext`),w=v.useState(`instantType`),T=v.useState(`transitionStatus`),E=v.useState(`hasViewport`),ee=v.context.inlineRectCoordsRef,te=$e({anchor:i,floatingRootContext:C,positionMethod:a,mounted:S,side:o,sideOffset:c,align:s,alignOffset:l,arrowPadding:f,collisionBoundary:u,collisionPadding:d,sticky:p,disableAnchorTracking:m,keepMounted:y,nodeId:b,collisionAvoidance:h,adaptiveOrigin:E?Je:void 0,inline:ar(ee)}),ne=te.update;pe(()=>{x&&S&&ne()},[x,S,ne]);let re=it(e,{open:x,side:te.side,align:te.align,anchorHidden:te.anchorHidden,instant:w},{styles:te.positionerStyles,transitionStatus:T,props:_,refs:[t,v.useStateSetter(`positionerElement`)],hidden:!S,inert:!x});return(0,$.jsx)(AR.Provider,{value:te,children:(0,$.jsx)(He,{id:b,children:re})})}),NR={...nt,...Pe},PR=j.forwardRef(function(e,t){let{className:n,render:r,style:i,...a}=e,o=vR(),{side:s,align:c}=jR(),l=o.useState(`open`),u=o.useState(`instantType`),d=o.useState(`transitionStatus`),f=o.useState(`popupProps`),p=o.useState(`floatingRootContext`);return et({open:l,ref:o.context.popupRef,onComplete(){l&&o.context.onOpenChangeComplete?.(!0)}}),rt(p,{closeDelay:_e(()=>o.context.closeDelayRef.current)}),ge(`div`,e,{state:{open:l,side:s,align:c,instant:u,transitionStatus:d},ref:[t,o.context.popupRef,o.useStateSetter(`popupElement`)],props:[f,st(d),a],stateAttributesMapping:NR})});function FR({...e}){return(0,$.jsx)(TR,{"data-slot":`hover-card`,...e})}function IR({...e}){return(0,$.jsx)(kR,{"data-slot":`hover-card-trigger`,...e})}function LR({className:e,side:t=`bottom`,sideOffset:n=4,align:r=`center`,alignOffset:i=4,...a}){return(0,$.jsx)(OR,{"data-slot":`hover-card-portal`,children:(0,$.jsx)(MR,{align:r,alignOffset:i,side:t,sideOffset:n,className:`isolate z-50`,children:(0,$.jsx)(PR,{"data-slot":`hover-card-content`,className:O(`z-50 w-64 origin-(--transform-origin) rounded-lg bg-popover p-2.5 text-sm text-popover-foreground shadow-md ring-1 ring-foreground/10 outline-hidden duration-100 data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95`,e),...a})})})}var RR={audio:Hn,document:Bn,image:Vn,source:Ge,unknown:Un,video:qn},zR=e=>{if(e.type===`source-document`)return`source`;let t=e.mediaType??``;return t.startsWith(`image/`)?`image`:t.startsWith(`video/`)?`video`:t.startsWith(`audio/`)?`audio`:t.startsWith(`application/`)||t.startsWith(`text/`)?`document`:`unknown`},BR=e=>{if(e.type===`source-document`)return e.title||e.filename||`Source`;let t=zR(e);return e.filename||(t===`image`?`Image`:`Attachment`)},VR=(e,t,n)=>n?(0,$.jsx)(`img`,{alt:t||`Image`,className:`size-full object-cover`,height:96,src:e,width:96}):(0,$.jsx)(`img`,{alt:t||`Image`,className:`size-full rounded object-cover`,height:20,src:e,width:20}),HR=(0,j.createContext)(null),UR=(0,j.createContext)(null),WR=()=>(0,j.useContext)(HR)??{variant:`grid`},GR=()=>{let e=(0,j.useContext)(UR);if(!e)throw Error(`Attachment components must be used within <Attachment>`);return e},KR=({variant:e=`grid`,className:t,children:n,...r})=>{let i=(0,j.useMemo)(()=>({variant:e}),[e]);return(0,$.jsx)(HR.Provider,{value:i,children:(0,$.jsx)(`div`,{className:O(`flex items-start`,e===`list`?`flex-col gap-2`:`flex-wrap gap-2`,e===`grid`&&`ml-auto w-fit`,t),...r,children:n})})},qR=({data:e,onRemove:t,className:n,children:r,...i})=>{let{variant:a}=WR(),o=zR(e),s=(0,j.useMemo)(()=>({data:e,mediaCategory:o,onRemove:t,variant:a}),[e,o,t,a]);return(0,$.jsx)(UR.Provider,{value:s,children:(0,$.jsx)(`div`,{className:O(`group relative`,a===`grid`&&`size-24 overflow-hidden rounded-lg`,a===`inline`&&[`flex h-8 cursor-pointer select-none items-center gap-1.5`,`rounded-md border border-border px-1.5`,`font-medium text-sm transition-all`,`hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50`],a===`list`&&[`flex w-full items-center gap-3 rounded-lg border p-3`,`hover:bg-accent/50`],n),...i,children:r})})},JR=({fallbackIcon:e,className:t,...n})=>{let{data:r,mediaCategory:i,variant:a}=GR(),o=a===`inline`?`size-3`:`size-4`,s=e=>(0,$.jsx)(e,{className:O(o,`text-muted-foreground`)}),c=()=>{if(i===`image`&&r.type===`file`&&r.url)return VR(r.url,r.filename,a===`grid`);if(i===`video`&&r.type===`file`&&r.url)return(0,$.jsx)(`video`,{className:`size-full object-cover`,muted:!0,src:r.url});let t=RR[i];return e??s(t)};return(0,$.jsx)(`div`,{className:O(`flex shrink-0 items-center justify-center overflow-hidden`,a===`grid`&&`size-full bg-muted`,a===`inline`&&`size-5 rounded bg-background`,a===`list`&&`size-12 rounded bg-muted`,t),...n,children:c()})},YR=({showMediaType:e=!1,className:t,...n})=>{let{data:r,variant:i}=GR(),a=BR(r);return i===`grid`?null:(0,$.jsxs)(`div`,{className:O(`min-w-0 flex-1`,t),...n,children:[(0,$.jsx)(`span`,{className:`block truncate`,children:a}),e&&r.mediaType&&(0,$.jsx)(`span`,{className:`block truncate text-muted-foreground text-xs`,children:r.mediaType})]})},XR=({label:e=`Remove`,className:t,children:n,...r})=>{let{onRemove:i,variant:a}=GR(),o=(0,j.useCallback)(e=>{e.stopPropagation(),i?.()},[i]);return i?(0,$.jsxs)(gt,{"aria-label":e,className:O(a===`grid`&&[`absolute top-2 right-2 size-6 rounded-full p-0`,`bg-background/80 backdrop-blur-sm`,`opacity-0 transition-opacity group-hover:opacity-100`,`hover:bg-background`,`[&>svg]:size-3`],a===`inline`&&[`size-5 rounded p-0`,`opacity-0 transition-opacity group-hover:opacity-100`,`[&>svg]:size-2.5`],a===`list`&&[`size-8 shrink-0 rounded p-0`,`[&>svg]:size-4`],t),onClick:o,type:`button`,variant:`ghost`,...r,children:[n??(0,$.jsx)(se,{}),(0,$.jsx)(`span`,{className:`sr-only`,children:e})]}):null},ZR=e=>(0,$.jsx)(FR,{...e}),QR=({delay:e=0,closeDelay:t=0,...n})=>(0,$.jsx)(IR,{closeDelay:t,delay:e,...n}),$R=({align:e=`start`,className:t,...n})=>(0,$.jsx)(LR,{align:e,className:O(`w-auto p-2`,t),...n});function ez(){let[e,t]=(0,j.useState)([]),[n,r]=(0,j.useState)(!1);return{attachments:e,uploading:n,addFiles:async e=>{if(!(!e||e.length===0)){r(!0);try{let n=new FormData;n.set(`path`,`uploads`);let r=Array.from(e);for(let e of r)n.append(`file`,e);let{saved:i}=await me(`/api/files/upload`,n),a=i.map((e,t)=>({id:e,type:`file`,url:ye(e),mediaType:r[t]?.type||`application/octet-stream`,filename:r[t]?.name??e.split(`/`).pop()??e,workspacePath:e}));t(e=>[...e,...a])}finally{r(!1)}}},remove:e=>t(t=>t.filter(t=>t.id!==e)),clear:()=>t([]),toRunAttachments:()=>e.map(e=>({name:(e.type===`file`?e.filename:void 0)??e.workspacePath,path:e.workspacePath,mediaType:e.mediaType}))}}function tz({attachments:e,onRemove:t}){return e.length===0?null:(0,$.jsx)(KR,{variant:`inline`,className:`ml-0 w-full`,children:e.map(e=>(0,$.jsxs)(ZR,{children:[(0,$.jsx)(QR,{render:(0,$.jsxs)(qR,{data:e,onRemove:()=>t(e.id),children:[(0,$.jsx)(JR,{}),(0,$.jsx)(YR,{className:`max-w-40`}),(0,$.jsx)(XR,{})]})}),(0,$.jsx)($R,{children:e.type===`file`&&e.mediaType?.startsWith(`image/`)?(0,$.jsx)(`img`,{alt:e.filename??`attachment`,className:`max-h-64 max-w-64 rounded object-contain`,src:e.url}):(0,$.jsx)(`span`,{className:`text-xs`,children:e.workspacePath})})]},e.id))})}function nz({onFiles:e,uploading:t,className:n}){let r=(0,j.useRef)(null);return(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(`button`,{type:`button`,className:n,title:t?`Uploading…`:`Attach files`,disabled:t,onClick:()=>r.current?.click(),children:(0,$.jsx)(Un,{className:`size-4`})}),(0,$.jsx)(`input`,{ref:r,type:`file`,multiple:!0,hidden:!0,onChange:t=>{e(t.target.files),t.target.value=``}})]})}var rz={damping:.7,stiffness:.05,mass:1.25},iz=70,az=1e3/60,oz=350,sz=!1;globalThis.document?.addEventListener(`mousedown`,()=>{sz=!0}),globalThis.document?.addEventListener(`mouseup`,()=>{sz=!1}),globalThis.document?.addEventListener(`click`,()=>{sz=!1});var cz=(e={})=>{let[t,n]=(0,j.useState)(!1),[r,i]=(0,j.useState)(e.initial!==!1),[a,o]=(0,j.useState)(!1),s=(0,j.useRef)(null);s.current=e;let c=(0,j.useCallback)(()=>{if(!sz)return!1;let e=window.getSelection();if(!e||!e.rangeCount)return!1;let t=e.getRangeAt(0);return t.commonAncestorContainer.contains(g.current)||g.current?.contains(t.commonAncestorContainer)},[]),l=(0,j.useCallback)(e=>{d.isAtBottom=e,i(e)},[]),u=(0,j.useCallback)(e=>{d.escapedFromLock=e,n(e)},[]),d=(0,j.useMemo)(()=>{let n;return{escapedFromLock:t,isAtBottom:r,resizeDifference:0,accumulated:0,velocity:0,listeners:new Set,get scrollTop(){return g.current?.scrollTop??0},set scrollTop(e){if(g.current){let{scrollBehavior:t}=getComputedStyle(g.current);t!==`auto`&&(g.current.style.scrollBehavior=`auto`),g.current.scrollTop=e,d.ignoreScrollToTop=g.current.scrollTop,t!==`auto`&&(g.current.style.scrollBehavior=t)}},get targetScrollTop(){return!g.current||!_.current?0:g.current.scrollHeight-1-g.current.clientHeight},get calculatedTargetScrollTop(){if(!g.current||!_.current)return 0;let{targetScrollTop:t}=this;if(!e.targetScrollTop)return t;if(n?.targetScrollTop===t)return n.calculatedScrollTop;let r=Math.max(Math.min(e.targetScrollTop(t,{scrollElement:g.current,contentElement:_.current}),t),0);return n={targetScrollTop:t,calculatedScrollTop:r},requestAnimationFrame(()=>{n=void 0}),r},get scrollDifference(){return this.calculatedTargetScrollTop-this.scrollTop},get isNearBottom(){return this.scrollDifference<=iz}}},[]),f=(0,j.useCallback)((e={})=>{typeof e==`string`&&(e={animation:e}),e.preserveScrollPosition||l(!0);let t=Date.now()+(Number(e.wait)||0),n=dz(s.current,e.animation),{ignoreEscapes:r=!1}=e,i,a=d.calculatedTargetScrollTop;e.duration instanceof Promise?e.duration.finally(()=>{i=Date.now()}):i=t+(e.duration??0);let o=async()=>{let e=new Promise(requestAnimationFrame).then(()=>{if(!d.isAtBottom)return d.animation=void 0,!1;let{scrollTop:l}=d,u=performance.now(),p=(u-(d.lastTick??u))/az;if(d.animation||={behavior:n,promise:e,ignoreEscapes:r},d.animation.behavior===n&&(d.lastTick=u),c()||t>Date.now())return o();if(l<Math.min(a,d.calculatedTargetScrollTop)){if(d.animation?.behavior===n){if(n===`instant`)return d.scrollTop=d.calculatedTargetScrollTop,o();d.velocity=(n.damping*d.velocity+n.stiffness*d.scrollDifference)/n.mass,d.accumulated+=d.velocity*p,d.scrollTop+=d.accumulated,d.scrollTop!==l&&(d.accumulated=0)}return o()}return i>Date.now()?(a=d.calculatedTargetScrollTop,o()):(d.animation=void 0,d.scrollTop<d.calculatedTargetScrollTop?f({animation:dz(s.current,s.current.resize),ignoreEscapes:r,duration:Math.max(0,i-Date.now())||void 0}):d.isAtBottom)});return e.then(e=>(requestAnimationFrame(()=>{d.animation||(d.lastTick=void 0,d.velocity=0)}),e))};return e.wait!==!0&&(d.animation=void 0),d.animation?.behavior===n?d.animation.promise:o()},[l,c,d]),p=(0,j.useCallback)(()=>{u(!0),l(!1)},[u,l]),m=(0,j.useCallback)(({target:e})=>{if(e!==g.current)return;let{scrollTop:t,ignoreScrollToTop:n}=d,{lastScrollTop:r=t}=d;d.lastScrollTop=t,d.ignoreScrollToTop=void 0,n&&n>t&&(r=n),o(d.isNearBottom),setTimeout(()=>{if(d.resizeDifference||t===n)return;if(c()){u(!0),l(!1);return}let e=t>r,i=t<r;if(d.animation?.ignoreEscapes){d.scrollTop=r;return}i&&(u(!0),l(!1)),e&&u(!1),!d.escapedFromLock&&d.isNearBottom&&l(!0)},1)},[u,l,c,d]),h=(0,j.useCallback)(({target:e,deltaY:t})=>{let n=e;for(;![`scroll`,`auto`].includes(getComputedStyle(n).overflow);){if(!n.parentElement)return;n=n.parentElement}n===g.current&&t<0&&g.current.scrollHeight>g.current.clientHeight&&!d.animation?.ignoreEscapes&&(u(!0),l(!1))},[u,l,d]),g=lz(e=>{g.current?.removeEventListener(`scroll`,m),g.current?.removeEventListener(`wheel`,h),e?.addEventListener(`scroll`,m,{passive:!0}),e?.addEventListener(`wheel`,h,{passive:!0})},[]),_=lz(e=>{if(d.resizeObserver?.disconnect(),d.resizeObserver=void 0,!e)return;let t;d.resizeObserver=new ResizeObserver(([e])=>{let{height:n}=e.contentRect,r=n-(t??n);if(d.resizeDifference=r,d.scrollTop>d.targetScrollTop&&(d.scrollTop=d.targetScrollTop),o(d.isNearBottom),r>=0){let e=dz(s.current,t?s.current.resize:s.current.initial);f({animation:e,wait:!0,preserveScrollPosition:!0,duration:e===`instant`?void 0:oz})}else d.isNearBottom&&(u(!1),l(!0));t=n,requestAnimationFrame(()=>{setTimeout(()=>{d.resizeDifference===r&&(d.resizeDifference=0)},1)})}),d.resizeObserver?.observe(e)},[]);return{contentRef:_,scrollRef:g,scrollToBottom:f,stopScroll:p,isAtBottom:r||a,isNearBottom:a,escapedFromLock:t,state:d}};function lz(e,t){let n=(0,j.useCallback)(t=>(n.current=t,e(t)),t);return n}var uz=new Map;function dz(...e){let t={...rz},n=!1;for(let r of e){if(r===`instant`){n=!0;continue}typeof r==`object`&&(n=!1,t.damping=r.damping??t.damping,t.stiffness=r.stiffness??t.stiffness,t.mass=r.mass??t.mass)}let r=JSON.stringify(t);return uz.has(r)||uz.set(r,Object.freeze(t)),n?`instant`:uz.get(r)}var fz=(0,j.createContext)(null),pz=typeof window<`u`?j.useLayoutEffect:j.useEffect;function mz({instance:e,children:t,resize:n,initial:r,mass:i,damping:a,stiffness:o,targetScrollTop:s,contextRef:c,...l}){let u=(0,j.useRef)(null),d=cz({mass:i,damping:a,stiffness:o,resize:n,initial:r,targetScrollTop:j.useCallback((e,t)=>(y?.targetScrollTop??s)?.(e,t)??e,[s])}),{scrollRef:f,contentRef:p,scrollToBottom:m,stopScroll:h,isAtBottom:g,escapedFromLock:_,state:v}=e??d,y=(0,j.useMemo)(()=>({scrollToBottom:m,stopScroll:h,scrollRef:f,isAtBottom:g,escapedFromLock:_,contentRef:p,state:v,get targetScrollTop(){return u.current},set targetScrollTop(e){u.current=e}}),[m,g,p,f,h,_,v]);return(0,j.useImperativeHandle)(c,()=>y,[y]),pz(()=>{f.current&&getComputedStyle(f.current).overflow===`visible`&&(f.current.style.overflow=`auto`)},[]),j.createElement(fz.Provider,{value:y},j.createElement(`div`,{...l},typeof t==`function`?t(y):t))}(function(e){function t({children:e,scrollClassName:t,...n}){let r=hz();return j.createElement(`div`,{ref:r.scrollRef,style:{height:`100%`,width:`100%`,scrollbarGutter:`stable both-edges`},className:t},j.createElement(`div`,{...n,ref:r.contentRef},typeof e==`function`?e(r):e))}e.Content=t})(mz||={});function hz(){let e=(0,j.useContext)(fz);if(!e)throw Error(`use-stick-to-bottom component context must be used within a StickToBottom component`);return e}var gz=({className:e,...t})=>(0,$.jsx)(mz,{className:O(`shadcn-scrollbar relative flex-1 overflow-y-hidden`,e),initial:`smooth`,resize:`smooth`,role:`log`,...t}),_z=({className:e,...t})=>(0,$.jsx)(mz.Content,{className:O(`flex flex-col gap-8 p-4`,e),...t}),vz=({className:e,...t})=>{let{isAtBottom:n,scrollToBottom:r}=hz(),i=(0,j.useCallback)(()=>{r()},[r]);return!n&&(0,$.jsx)(gt,{className:O(`absolute bottom-4 left-[50%] translate-x-[-50%] rounded-full dark:bg-background dark:hover:bg-muted`,e),onClick:i,size:`icon`,type:`button`,variant:`outline`,...t,children:(0,$.jsx)(Fn,{className:`size-4`})})};ht(`flex w-fit items-stretch *:focus-visible:relative *:focus-visible:z-10 has-[>[data-slot=button-group]]:gap-2 has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-r-lg [&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit [&>input]:flex-1`,{variants:{orientation:{horizontal:`*:data-slot:rounded-r-none [&>[data-slot]:not(:has(~[data-slot]))]:rounded-r-lg! [&>[data-slot]~[data-slot]]:rounded-l-none [&>[data-slot]~[data-slot]]:border-l-0`,vertical:`flex-col *:data-slot:rounded-b-none [&>[data-slot]:not(:has(~[data-slot]))]:rounded-b-lg! [&>[data-slot]~[data-slot]]:rounded-t-none [&>[data-slot]~[data-slot]]:border-t-0`}},defaultVariants:{orientation:`horizontal`}}),(0,j.createContext)(null);var yz={cjk:Oi,code:kp,math:zb,mermaid:rw},bz=(0,j.memo)(({className:e,...t})=>(0,$.jsx)(It,{className:O(`size-full [&>*:first-child]:mt-0 [&>*:last-child]:mb-0`,e),plugins:yz,...t}),(e,t)=>e.children===t.children&&t.isAnimating===e.isAnimating);bz.displayName=`MessageResponse`;var xz=j.createContext(void 0);function Sz(){let e=j.useContext(xz);if(e===void 0)throw Error(Ce(53));return e}var Cz=function(e){return e.scrollAreaCornerHeight=`--scroll-area-corner-height`,e.scrollAreaCornerWidth=`--scroll-area-corner-width`,e}({});function wz(e,t,n){if(!e)return 0;let r=getComputedStyle(e),i=n===`x`?`Inline`:`Block`;return n===`x`&&t===`margin`?parseFloat(r[`${t}InlineStart`])*2:parseFloat(r[`${t}${i}Start`])+parseFloat(r[`${t}${i}End`])}var Tz=function(e){return e.orientation=`data-orientation`,e.hovering=`data-hovering`,e.scrolling=`data-scrolling`,e.hasOverflowX=`data-has-overflow-x`,e.hasOverflowY=`data-has-overflow-y`,e.overflowXStart=`data-overflow-x-start`,e.overflowXEnd=`data-overflow-x-end`,e.overflowYStart=`data-overflow-y-start`,e.overflowYEnd=`data-overflow-y-end`,e}({}),Ez=function(e){return e.scrolling=`data-scrolling`,e.hasOverflowX=`data-has-overflow-x`,e.hasOverflowY=`data-has-overflow-y`,e.overflowXStart=`data-overflow-x-start`,e.overflowXEnd=`data-overflow-x-end`,e.overflowYStart=`data-overflow-y-start`,e.overflowYEnd=`data-overflow-y-end`,e}({}),Dz={hasOverflowX:e=>e?{[Ez.hasOverflowX]:``}:null,hasOverflowY:e=>e?{[Ez.hasOverflowY]:``}:null,overflowXStart:e=>e?{[Ez.overflowXStart]:``}:null,overflowXEnd:e=>e?{[Ez.overflowXEnd]:``}:null,overflowYStart:e=>e?{[Ez.overflowYStart]:``}:null,overflowYEnd:e=>e?{[Ez.overflowYEnd]:``}:null,cornerHidden:()=>null},Oz={x:0,y:0},kz={width:0,height:0},Az={xStart:!1,xEnd:!1,yStart:!1,yEnd:!1},jz={x:!0,y:!0,corner:!0},Mz=j.forwardRef(function(e,t){let{render:n,className:r,overflowEdgeThreshold:i,style:a,...o}=e,s=Nz(i),l=c(),u=Ae(),d=Ae(),{nonce:f,disableStyleElements:p}=h(),[m,g]=j.useState(!1),[v,y]=j.useState(!1),[b,x]=j.useState(!1),[S,C]=j.useState(!1),[w,T]=j.useState(!1),[E,ee]=j.useState(kz),[te,ne]=j.useState(kz),[re,ie]=j.useState(Az),[ae,oe]=j.useState(jz),se=j.useRef(null),D=j.useRef(null),ce=j.useRef(null),le=j.useRef(null),ue=j.useRef(null),de=j.useRef(null),fe=j.useRef(null),pe=j.useRef(!1),me=j.useRef(0),O=j.useRef(0),he=j.useRef(0),ve=j.useRef(0),ye=j.useRef(`vertical`),be=j.useRef(Oz),xe=_e(e=>{let t=e.x-be.current.x,n=e.y-be.current.y;be.current=e,n!==0&&(x(!0),u.start(500,()=>{x(!1)})),t!==0&&(y(!0),d.start(500,()=>{y(!1)}))}),Se=_e(e=>{e.button===0&&(pe.current=!0,me.current=e.clientY,O.current=e.clientX,ye.current=e.currentTarget.getAttribute(Tz.orientation),D.current&&(he.current=D.current.scrollTop,ve.current=D.current.scrollLeft),ue.current&&ye.current===`vertical`&&ue.current.setPointerCapture(e.pointerId),de.current&&ye.current===`horizontal`&&de.current.setPointerCapture(e.pointerId))}),Ce=_e(e=>{if(!pe.current)return;let t=e.clientY-me.current,n=e.clientX-O.current;if(D.current){let r=D.current.scrollHeight,i=D.current.clientHeight,a=D.current.scrollWidth,o=D.current.clientWidth;if(ue.current&&ce.current&&ye.current===`vertical`){let n=wz(ce.current,`padding`,`y`),a=wz(ue.current,`margin`,`y`),o=ue.current.offsetHeight,s=t/(ce.current.offsetHeight-o-n-a);D.current.scrollTop=he.current+s*(r-i),e.preventDefault(),x(!0),u.start(500,()=>{x(!1)})}if(de.current&&le.current&&ye.current===`horizontal`){let t=wz(le.current,`padding`,`x`),r=wz(de.current,`margin`,`x`),i=de.current.offsetWidth,s=n/(le.current.offsetWidth-i-t-r);D.current.scrollLeft=ve.current+s*(a-o),e.preventDefault(),y(!0),d.start(500,()=>{y(!1)})}}}),we=_e(e=>{pe.current=!1,ue.current&&ye.current===`vertical`&&ue.current.releasePointerCapture(e.pointerId),de.current&&ye.current===`horizontal`&&de.current.releasePointerCapture(e.pointerId)});function Te(e){C(e.pointerType===`touch`)}function Ee(e){Te(e),e.pointerType!==`touch`&&g(tt(se.current,e.target))}let De=j.useMemo(()=>({scrolling:v||b,hasOverflowX:!ae.x,hasOverflowY:!ae.y,overflowXStart:re.xStart,overflowXEnd:re.xEnd,overflowYStart:re.yStart,overflowYEnd:re.yEnd,cornerHidden:ae.corner}),[v,b,ae.x,ae.y,ae.corner,re]),Oe={role:`presentation`,onPointerEnter:Ee,onPointerMove:Ee,onPointerDown:Te,onPointerLeave(){g(!1)},style:{position:`relative`,[Cz.scrollAreaCornerHeight]:`${E.height}px`,[Cz.scrollAreaCornerWidth]:`${E.width}px`}},ke=ge(`div`,e,{state:De,ref:[t,se],props:[Oe,o],stateAttributesMapping:Dz}),je=j.useMemo(()=>({handlePointerDown:Se,handlePointerMove:Ce,handlePointerUp:we,handleScroll:xe,cornerSize:E,setCornerSize:ee,thumbSize:te,setThumbSize:ne,hasMeasuredScrollbar:w,setHasMeasuredScrollbar:T,touchModality:S,cornerRef:fe,scrollingX:v,setScrollingX:y,scrollingY:b,setScrollingY:x,hovering:m,setHovering:g,viewportRef:D,rootRef:se,scrollbarYRef:ce,scrollbarXRef:le,thumbYRef:ue,thumbXRef:de,rootId:l,hiddenState:ae,setHiddenState:oe,overflowEdges:re,setOverflowEdges:ie,viewportState:De,overflowEdgeThreshold:s}),[Se,Ce,we,xe,E,te,w,S,v,y,b,x,m,g,l,ae,re,De,s]);return(0,$.jsxs)(xz.Provider,{value:je,children:[!p&&_.getElement(f),ke]})});function Nz(e){if(typeof e==`number`){let t=Math.max(0,e);return{xStart:t,xEnd:t,yStart:t,yEnd:t}}return{xStart:Math.max(0,e?.xStart||0),xEnd:Math.max(0,e?.xEnd||0),yStart:Math.max(0,e?.yStart||0),yEnd:Math.max(0,e?.yEnd||0)}}var Pz=j.createContext(void 0);function Fz(){let e=j.useContext(Pz);if(e===void 0)throw Error(Ce(55));return e}var Iz=function(e){return e.scrollAreaOverflowXStart=`--scroll-area-overflow-x-start`,e.scrollAreaOverflowXEnd=`--scroll-area-overflow-x-end`,e.scrollAreaOverflowYStart=`--scroll-area-overflow-y-start`,e.scrollAreaOverflowYEnd=`--scroll-area-overflow-y-end`,e}({}),Lz=!1;function Rz(){Lz||Te||(typeof CSS<`u`&&`registerProperty`in CSS&&[Iz.scrollAreaOverflowXStart,Iz.scrollAreaOverflowXEnd,Iz.scrollAreaOverflowYStart,Iz.scrollAreaOverflowYEnd].forEach(e=>{try{CSS.registerProperty({name:e,syntax:`<length>`,inherits:!1,initialValue:`0px`})}catch{}}),Lz=!0)}var zz=j.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{viewportRef:o,scrollbarYRef:s,scrollbarXRef:c,thumbYRef:l,thumbXRef:u,cornerRef:d,cornerSize:f,setCornerSize:m,setThumbSize:h,rootId:g,setHiddenState:v,hiddenState:b,setHasMeasuredScrollbar:x,handleScroll:S,setHovering:C,setOverflowEdges:w,overflowEdges:T,overflowEdgeThreshold:E,scrollingX:ee,scrollingY:te}=Sz(),ne=at(),re=j.useRef(!0),ie=j.useRef([NaN,NaN,NaN,NaN]),ae=Ae(),oe=Ae(),se=_e(()=>{let e=o.current,t=s.current,n=c.current,r=l.current,i=u.current,a=d.current;if(!e)return;let g=e.scrollHeight,_=e.scrollWidth,b=e.clientHeight,S=e.clientWidth,C=e.scrollTop,T=e.scrollLeft,ee=ie.current,te=Number.isNaN(ee[0]);if(ee[0]=b,ee[1]=g,ee[2]=S,ee[3]=_,te&&x(!0),g===0||_===0)return;let re=Bz(e),ae=re.y,oe=re.x,se=S/_,D=b/g,ce=Math.max(0,_-S),le=Math.max(0,g-b),ue=0,de=0;if(!oe){let e=0;e=p(ne===`rtl`?-T:T,0,ce),ue=y(e,ce),de=ce-ue}let fe=ae?0:p(C,0,le),pe=ae?0:y(fe,le),me=ae?0:le-pe,O=oe?0:S,he=ae?0:b,ge=0,_e=0;!oe&&!ae&&(ge=t?.offsetWidth||0,_e=n?.offsetHeight||0);let ve=f.width===0&&f.height===0,ye=ve?ge:0,be=ve?_e:0,xe=wz(n,`padding`,`x`),Se=wz(t,`padding`,`y`),Ce=wz(i,`margin`,`x`),we=wz(r,`margin`,`y`),Te=O-xe-Ce,Ee=he-Se-we,De=n?Math.min(n.offsetWidth-ye,Te):Te,Oe=t?Math.min(t.offsetHeight-be,Ee):Ee,ke=Math.max(16,De*se),Ae=Math.max(16,Oe*D);if(h(e=>e.height===Ae&&e.width===ke?e:{width:ke,height:Ae}),t&&r){let e=t.offsetHeight-Ae-Se-we,n=g-b,i=n===0?0:C/n,a=Math.min(e,Math.max(0,i*e));r.style.transform=`translate3d(0,${a}px,0)`}if(n&&i){let e=n.offsetWidth-ke-xe-Ce,t=_-S,r=t===0?0:T/t,a=ne===`rtl`?p(r*e,-e,0):p(r*e,0,e);i.style.transform=`translate3d(${a}px,0,0)`}let je=[[Iz.scrollAreaOverflowXStart,ue],[Iz.scrollAreaOverflowXEnd,de],[Iz.scrollAreaOverflowYStart,pe],[Iz.scrollAreaOverflowYEnd,me]];for(let[t,n]of je)e.style.setProperty(t,`${n}px`);a&&(oe||ae?m({width:0,height:0}):!oe&&!ae&&m({width:ge,height:_e})),v(e=>Vz(e,re));let Me={xStart:!oe&&ue>E.xStart,xEnd:!oe&&de>E.xEnd,yStart:!ae&&pe>E.yStart,yEnd:!ae&&me>E.yEnd};w(e=>e.xStart===Me.xStart&&e.xEnd===Me.xEnd&&e.yStart===Me.yStart&&e.yEnd===Me.yEnd?e:Me)});pe(()=>{o.current&&Rz()},[o]),pe(()=>{queueMicrotask(se)},[se,b,ne]),pe(()=>{o.current?.matches(`:hover`)&&C(!0)},[o,C]),j.useEffect(()=>{let e=o.current;if(typeof ResizeObserver>`u`||!e)return;let t=!1,n=new ResizeObserver(()=>{if(!t){t=!0;let n=ie.current;if(n[0]===e.clientHeight&&n[1]===e.scrollHeight&&n[2]===e.clientWidth&&n[3]===e.scrollWidth)return}se()});return n.observe(e),oe.start(0,()=>{let t=e.getAnimations({subtree:!0});t.length!==0&&Promise.allSettled(t.map(e=>e.finished)).then(se).catch(()=>{})}),()=>{n.disconnect(),oe.clear()}},[se,o,oe]);function D(){re.current=!1}let ce={role:`presentation`,...g&&{"data-id":`${g}-viewport`},tabIndex:b.x&&b.y?-1:0,className:_.className,style:{overflow:`scroll`},onScroll(){o.current&&(se(),re.current||S({x:o.current.scrollLeft,y:o.current.scrollTop}),ae.start(100,()=>{re.current=!0}))},onWheel:D,onTouchMove:D,onPointerMove:D,onPointerEnter:D,onKeyDown:D},le=j.useMemo(()=>({scrolling:ee||te,hasOverflowX:!b.x,hasOverflowY:!b.y,overflowXStart:T.xStart,overflowXEnd:T.xEnd,overflowYStart:T.yStart,overflowYEnd:T.yEnd,cornerHidden:b.corner}),[ee,te,b.x,b.y,b.corner,T]),ue=ge(`div`,e,{ref:[t,o],state:le,props:[ce,a],stateAttributesMapping:Dz}),de=j.useMemo(()=>({computeThumbPosition:se}),[se]);return(0,$.jsx)(Pz.Provider,{value:de,children:ue})});function Bz(e){let t=e.clientHeight>=e.scrollHeight,n=e.clientWidth>=e.scrollWidth;return{y:t,x:n,corner:t||n}}function Vz(e,t){return e.y===t.y&&e.x===t.x&&e.corner===t.corner?e:t}var Hz=j.createContext(void 0);function Uz(){let e=j.useContext(Hz);if(e===void 0)throw Error(Ce(54));return e}var Wz=function(e){return e.scrollAreaThumbHeight=`--scroll-area-thumb-height`,e.scrollAreaThumbWidth=`--scroll-area-thumb-width`,e}({}),Gz=j.forwardRef(function(e,t){let{render:n,className:r,orientation:i=`vertical`,keepMounted:a=!1,style:o,...s}=e,{hovering:c,scrollingX:l,scrollingY:u,hiddenState:d,overflowEdges:f,scrollbarYRef:p,scrollbarXRef:m,viewportRef:h,thumbYRef:g,thumbXRef:_,handlePointerDown:v,handlePointerUp:y,rootId:b,thumbSize:x,hasMeasuredScrollbar:S}=Sz(),C={hovering:c,scrolling:{horizontal:l,vertical:u}[i],orientation:i,hasOverflowX:!d.x,hasOverflowY:!d.y,overflowXStart:f.xStart,overflowXEnd:f.xEnd,overflowYStart:f.yStart,overflowYEnd:f.yEnd,cornerHidden:d.corner},w=at(),T=!S&&!a,E=i===`vertical`?d.y:d.x,ee=a||!E;j.useEffect(()=>{if(!ee)return;let e=h.current,t=i===`vertical`?p.current:m.current;if(!t)return;function n(n){if(!e||!t||n.ctrlKey)return;n.preventDefault();let r=i===`horizontal`,a=r?`scrollLeft`:`scrollTop`,o=r?n.deltaX:n.deltaY,s=r?e.scrollWidth-e.clientWidth:e.scrollHeight-e.clientHeight,c=r&&w===`rtl`?-s:0,l=r&&w===`rtl`?0:s,u=e[a];u<=c&&o<0||u>=l&&o>0||(e[a]=Math.min(l,Math.max(c,u+o)))}return dt(t,`wheel`,n,{passive:!1})},[w,i,m,p,ee,h]);let te={...b&&{"data-id":`${b}-scrollbar`},onPointerDown(e){if(e.button!==0)return;let t=we(e.nativeEvent),n=i===`vertical`?g.current:_.current;if(!(n&&tt(n,t))&&h.current){if(g.current&&p.current&&i===`vertical`){let t=wz(g.current,`margin`,`y`),n=wz(p.current,`padding`,`y`),r=g.current.offsetHeight,i=p.current.getBoundingClientRect(),a=e.clientY-i.top-r/2-n+t/2,o=h.current.scrollHeight,s=h.current.clientHeight,c=a/(p.current.offsetHeight-r-n-t)*(o-s);h.current.scrollTop=c}if(_.current&&m.current&&i===`horizontal`){let t=wz(_.current,`margin`,`x`),n=wz(m.current,`padding`,`x`),r=_.current.offsetWidth,i=m.current.getBoundingClientRect(),a=e.clientX-i.left-r/2-n+t/2,o=h.current.scrollWidth,s=h.current.clientWidth,c=a/(m.current.offsetWidth-r-n-t),l;w===`rtl`?(l=(1-c)*(o-s),h.current.scrollLeft<=0&&(l=-l)):l=c*(o-s),h.current.scrollLeft=l}v(e)}},onPointerUp:y,style:{position:`absolute`,touchAction:`none`,WebkitUserSelect:`none`,userSelect:`none`,visibility:T?`hidden`:void 0,...i===`vertical`&&{top:0,bottom:`var(${Cz.scrollAreaCornerHeight})`,insetInlineEnd:0,[Wz.scrollAreaThumbHeight]:`${x.height}px`},...i===`horizontal`&&{insetInlineStart:0,insetInlineEnd:`var(${Cz.scrollAreaCornerWidth})`,bottom:0,[Wz.scrollAreaThumbWidth]:`${x.width}px`}}},ne=ge(`div`,e,{ref:[t,i===`vertical`?p:m],state:C,props:[te,s],stateAttributesMapping:Dz}),re=j.useMemo(()=>({orientation:i}),[i]);return ee?(0,$.jsx)(Hz.Provider,{value:re,children:ne}):null}),Kz=j.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{computeThumbPosition:o}=Fz(),{viewportState:s}=Sz(),c=j.useRef(null);return pe(()=>{if(typeof ResizeObserver>`u`)return;let e=!1,t=new ResizeObserver(()=>{if(!e){e=!0;return}o()});return c.current&&t.observe(c.current),()=>{t.disconnect()}},[o]),ge(`div`,e,{ref:[t,c],state:s,stateAttributesMapping:Dz,props:[{role:`presentation`,style:{minWidth:`fit-content`}},a]})}),qz=j.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{thumbYRef:o,thumbXRef:s,handlePointerDown:c,handlePointerMove:l,handlePointerUp:u,setScrollingX:d,setScrollingY:f,hasMeasuredScrollbar:p}=Sz(),{orientation:m}=Uz();return ge(`div`,e,{ref:[t,m===`vertical`?o:s],state:{orientation:m},props:[{onPointerDown:c,onPointerMove:l,onPointerUp(e){m===`vertical`&&f(!1),m===`horizontal`&&d(!1),u(e)},style:{visibility:p?void 0:`hidden`,...m===`vertical`&&{height:`var(${Wz.scrollAreaThumbHeight})`},...m===`horizontal`&&{width:`var(${Wz.scrollAreaThumbWidth})`}}},a]})}),Jz=j.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{cornerRef:o,cornerSize:s,hiddenState:c}=Sz(),l=ge(`div`,e,{ref:[t,o],props:[{style:{position:`absolute`,bottom:0,insetInlineEnd:0,width:s.width,height:s.height}},a]});return c.corner?null:l});function Yz({className:e,children:t,viewportClassName:n,...r}){return(0,$.jsxs)(Mz,{"data-slot":`scroll-area`,className:O(`relative overflow-hidden`,e),...r,children:[(0,$.jsx)(zz,{"data-slot":`scroll-area-viewport`,className:O(`size-full overscroll-contain`,n),children:(0,$.jsx)(Kz,{children:t})}),(0,$.jsx)(Xz,{}),(0,$.jsx)(Jz,{})]})}function Xz({className:e,orientation:t=`vertical`,...n}){return(0,$.jsx)(Gz,{"data-slot":`scroll-area-scrollbar`,orientation:t,className:O(`absolute flex touch-none select-none transition-colors`,t===`vertical`&&`right-0.5 top-0.5 h-[calc(100%-0.25rem)] w-2.5 border-l border-l-transparent p-px`,t===`horizontal`&&`bottom-0.5 left-0.5 h-2.5 w-[calc(100%-0.25rem)] flex-col border-t border-t-transparent p-px`,e),...n,children:(0,$.jsx)(qz,{"data-slot":`scroll-area-thumb`,className:`relative flex-1 rounded-full bg-border`})})}function Zz({open:e,onOpenChange:t,disabled:n,mode:r,modes:i,onModeChange:a,models:o,selectedModel:s,onModelChange:c,effortValue:l,effortOptions:u,onEffortChange:d}){return(0,$.jsxs)(de,{open:e,onOpenChange:t,children:[(0,$.jsx)(ae,{"data-slot":`run-settings-trigger`,className:`channel-attach text-muted-foreground`,title:`Run settings`,"aria-label":`Run settings`,children:(0,$.jsx)(Gn,{className:`size-4`})}),(0,$.jsxs)(le,{"data-slot":`run-settings`,children:[(0,$.jsxs)(ce,{children:[(0,$.jsx)(ue,{children:`Run settings`}),(0,$.jsx)(oe,{children:`Model, reasoning, and permissions for runs in this workspace.`})]}),(0,$.jsxs)(`div`,{className:`grid gap-3`,children:[s&&(0,$.jsxs)(`div`,{className:`grid gap-1.5`,children:[(0,$.jsx)(vt,{htmlFor:`run-model`,children:`Model`}),(0,$.jsxs)(b,{value:s.model,onValueChange:e=>c(e??``),children:[(0,$.jsx)(m,{id:`run-model`,size:`sm`,disabled:n,className:`w-full`,children:(0,$.jsx)(f,{children:s.displayName})}),(0,$.jsx)(g,{children:o.map(e=>(0,$.jsx)(v,{value:e.model,children:(0,$.jsxs)(`span`,{className:`channel-mode-item`,children:[(0,$.jsxs)(`span`,{className:`channel-mode-label`,children:[e.displayName,e.isDefault?` · default`:``]}),(0,$.jsx)(`span`,{className:`channel-mode-hint`,children:e.description})]})},e.id))})]})]}),(0,$.jsxs)(`div`,{className:`grid gap-1.5`,children:[(0,$.jsx)(vt,{htmlFor:`run-effort`,children:`Reasoning effort`}),(0,$.jsxs)(b,{value:l,onValueChange:e=>d(e??``),children:[(0,$.jsx)(m,{id:`run-effort`,size:`sm`,disabled:n,className:`w-full`,children:(0,$.jsx)(f,{children:l})}),(0,$.jsx)(g,{children:u.map(e=>(0,$.jsx)(v,{value:e.reasoningEffort,children:(0,$.jsxs)(`span`,{className:`channel-mode-item`,children:[(0,$.jsx)(`span`,{className:`channel-mode-label`,children:e.reasoningEffort}),e.description&&(0,$.jsx)(`span`,{className:`channel-mode-hint`,children:e.description})]})},e.reasoningEffort))})]})]}),(0,$.jsxs)(`div`,{className:`grid gap-1.5`,children:[(0,$.jsx)(vt,{htmlFor:`run-mode`,children:`Permissions`}),(0,$.jsxs)(b,{value:r,onValueChange:e=>a(e),children:[(0,$.jsx)(m,{id:`run-mode`,size:`sm`,disabled:n,className:`w-full`,children:(0,$.jsx)(f,{children:i[r].label})}),(0,$.jsx)(g,{children:Object.keys(i).map(e=>(0,$.jsx)(v,{value:e,children:(0,$.jsxs)(`span`,{className:`channel-mode-item`,children:[(0,$.jsx)(`span`,{className:`channel-mode-label`,children:i[e].label}),(0,$.jsx)(`span`,{className:`channel-mode-hint`,children:i[e].hint})]})},e))})]}),(0,$.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:i[r].hint})]})]}),(0,$.jsx)(ie,{children:(0,$.jsx)(D,{render:(0,$.jsx)(gt,{variant:`outline`}),children:`Done`})})]})]})}var Qz=new Set([`queued`,`starting`,`running`,`waiting_approval`]),$z=300,eB=[`Summarize my recent notes`,`What tools do you have?`,`Help me draft a plan`],tB={default:{label:`Default`,hint:`You approve risky actions · workspace-write sandbox`,approvalPolicy:`onRequest`,sandbox:`workspaceWrite`,approvalsReviewer:`user`},unattended:{label:`Unattended`,hint:`A Codex subagent approves for you · workspace-write sandbox (24/7)`,approvalPolicy:`onRequest`,sandbox:`workspaceWrite`,approvalsReviewer:`auto_review`},all:{label:`Allow everything`,hint:`⚠ No approvals + full disk/network access. Use with care.`,approvalPolicy:`never`,sandbox:`dangerFullAccess`,approvalsReviewer:`user`}},nB=[{cmd:`/review`,hint:`Code-review uncommitted changes — add text for custom instructions`},{cmd:`/compact`,hint:`Compact this conversation's context window`},{cmd:`/fast`,hint:`Toggle fast mode — 1.5x speed, increased usage`}];function rB(e){for(let t of Object.keys(tB)){let n=tB[t];if(e.sandbox===n.sandbox&&e.approvalPolicy===n.approvalPolicy&&e.approvalsReviewer===n.approvalsReviewer)return t}return`default`}function iB(e){if(e.title)return e.title;let t=e.prompt.split(`
|
|
428
|
+
`)[0]?.trim();return t&&t.length>0?t:`Untitled`}function aB(e){let t=new Date(e);return Number.isNaN(t.getTime())?``:t.toLocaleDateString(void 0,{month:`short`,day:`numeric`})}function oB(){let[e,t]=(0,j.useState)([]),[n,r]=(0,j.useState)(null),[i,a]=(0,j.useState)([]),[o,s]=(0,j.useState)(null),[c,l]=(0,j.useState)(!1),[u,d]=(0,j.useState)(``),[f,p]=(0,j.useState)(null),[m,h]=(0,j.useState)(!1),[g,_]=(0,j.useState)(`default`),[v,y]=(0,j.useState)([]),[b,x]=(0,j.useState)(``),[S,C]=(0,j.useState)(``),[w,T]=(0,j.useState)(!1),E=ez(),[ee,ne]=(0,j.useState)(new Set),[ie,ae]=(0,j.useState)(new Set),oe=(0,j.useRef)(null),se=e.find(e=>e.id===n)??null,D=se?Qz.has(se.status):!1,ce=se===null,le=(0,j.useCallback)(async()=>{try{let{runs:e}=await ve(`/api/runs`);t(e)}catch(e){p(e instanceof Error?e.message:String(e))}},[]);(0,j.useEffect)(()=>{le()},[le]),(0,j.useEffect)(()=>{ve(`/api/models`).then(({models:e})=>y(e)).catch(()=>{})},[]),(0,j.useEffect)(()=>{let e=oe.current;e&&(e.style.height=`0px`,e.style.height=`${Math.min(e.scrollHeight,220)}px`)},[u]),(0,j.useEffect)(()=>{if(!n)return;a([]),s(null);let e=xe(`/api/runs/${n}/events`);return e.onmessage=e=>{try{let t=JSON.parse(String(e.data));a(e=>lr([...e,t])),(t.type===`codex.turn.completed`||t.type.startsWith(`run.`)||t.type.startsWith(`codex.approval.`)||t.type===`approval.resolved`)&&le()}catch{}},ve(`/api/runs/${n}?tail=${$z}`).then(e=>{a(t=>lr([...e.events,...t])),s(e.eventsOffset)}).catch(e=>p(e instanceof Error?e.message:String(e))),()=>e.close()},[n,le]);let ue=(0,j.useCallback)(async()=>{if(!(!n||o===null||o<=0||c)){l(!0);try{let e=await ve(`/api/runs/${n}?tail=${$z}&before=${o}`);a(t=>lr([...e.events,...t])),s(e.eventsOffset)}catch(e){p(e instanceof Error?e.message:String(e))}finally{l(!1)}}},[n,o,c]),de=()=>{r(null),a([]),d(``),_(`default`),x(``),C(``),E.clear(),p(null),requestAnimationFrame(()=>oe.current?.focus())},fe=t=>{r(t),d(``),E.clear();let n=e.find(e=>e.id===t);n&&(_(rB(n)),x(n.model??``),C(n.effort??``))},pe=async()=>{let e=u.trim();if(!(!e||m)){h(!0),p(null);try{if(!ce&&e.startsWith(`/`)){let t=e.indexOf(` `),n=(t===-1?e.slice(1):e.slice(1,t)).toLowerCase(),r=t===-1?``:e.slice(t+1).trim();if(n===`compact`)await be(`/api/runs/${se.id}/compact`);else if(n===`fast`)await be(`/api/runs/${se.id}/fast`,{enabled:se.serviceTier!==`priority`});else if(n===`review`)await be(`/api/runs/${se.id}/review`,{instructions:r||void 0});else throw Error(`Unknown command: /${n}`)}else if(!ce&&D)await be(`/api/runs/${se.id}/steer`,{prompt:e,attachments:E.toRunAttachments()});else if(ce){let t=tB[g],{run:n}=await be(`/api/runs`,{prompt:e,attachments:E.toRunAttachments(),approvalPolicy:t.approvalPolicy,sandbox:t.sandbox,approvalsReviewer:t.approvalsReviewer,model:b||void 0,effort:S||void 0});r(n.id)}else{let t=tB[g];await be(`/api/runs/${se.id}/resume`,{prompt:e,attachments:E.toRunAttachments(),approvalPolicy:t.approvalPolicy,sandbox:t.sandbox,approvalsReviewer:t.approvalsReviewer,model:b||void 0,effort:S||void 0})}d(``),E.clear(),await le()}catch(e){p(e instanceof Error?e.message:String(e))}finally{h(!1)}}},me=async()=>{if(n)try{await be(`/api/runs/${n}/stop`),await le()}catch(e){p(e instanceof Error?e.message:String(e))}},O=async(e,t,r)=>{if(!(!n||ee.has(e))){ne(t=>new Set(t).add(e));try{await be(`/api/runs/${n}/approve`,{requestId:t,decision:r})}catch(t){let n=t instanceof Error?t.message:String(t);ne(t=>{let n=new Set(t);return n.delete(e),n}),n.includes(`No matching pending approval`)?ae(t=>new Set(t).add(e)):p(n)}}},he=(0,j.useMemo)(()=>or(hr(i)),[i]),ge=he.length>0?he[he.length-1].key:null,_e=(0,j.useMemo)(()=>{if(!D||he.length===0)return!1;let e=he[he.length-1];if(e.kind===`user`)return!0;let t=e.blocks[e.blocks.length-1];return t?t.kind===`assistant`||t.kind===`reasoning`||t.kind===`approval`&&!t.resolved?!1:t.kind===`tools`?!t.tools.some(e=>e.state===`input-streaming`||e.state===`input-available`):!0:!0},[he,D])&&he[he.length-1]?.kind===`user`,ye=he.length===0,Se=v.find(e=>e.isDefault)??v[0],Ce=v.find(e=>e.model===b)??Se,we=Ce&&Ce.supportedReasoningEfforts.length>0?Ce.supportedReasoningEfforts:[`low`,`medium`,`high`].map(e=>({reasoningEffort:e,description:``})),Te=!ce&&!D&&u.startsWith(`/`)&&!u.includes(`
|
|
429
|
+
`)?nB.filter(e=>e.cmd.startsWith(u.trim().split(/\s/)[0])):[];return(0,$.jsxs)(`div`,{className:`runs-page`,children:[(0,$.jsxs)(`aside`,{className:`channels-sidebar`,children:[(0,$.jsxs)(`div`,{className:`channels-header`,children:[(0,$.jsx)(`span`,{className:`channels-title`,children:`Conversations`}),(0,$.jsx)(`button`,{className:`channels-add`,onClick:de,title:`New conversation`,children:(0,$.jsx)(te,{className:`size-4`})})]}),(0,$.jsx)(Yz,{className:`channel-list-scroll`,children:(0,$.jsxs)(`ul`,{className:`channel-list`,children:[e.map(e=>(0,$.jsxs)(`li`,{className:`channel-item ${e.id===n?`selected`:``}`,onClick:()=>fe(e.id),children:[(0,$.jsxs)(`div`,{className:`channel-name`,children:[(0,$.jsx)(je,{className:`channel-hash size-3.5`}),(0,$.jsx)(`span`,{className:`channel-name-text`,title:e.prompt,children:iB(e)}),e.source===`schedule`&&(0,$.jsx)(`span`,{className:`inline-flex shrink-0`,title:e.scheduleName?`Started by schedule: ${e.scheduleName}`:`Started by a schedule`,children:(0,$.jsx)(Ke,{className:`size-3 text-muted-foreground`})}),Qz.has(e.status)&&(0,$.jsx)(`span`,{className:`channel-live`,title:e.status})]}),(0,$.jsx)(`div`,{className:`channel-date`,children:aB(e.startedAt)})]},e.id)),e.length===0&&(0,$.jsx)(`p`,{className:`channels-empty`,children:`No conversations yet. Hit + to start one.`})]})})]}),(0,$.jsxs)(`section`,{className:`channel-main`,children:[(0,$.jsxs)(`header`,{className:`channel-topbar`,children:[(0,$.jsxs)(`div`,{className:`channel-topbar-title`,children:[(0,$.jsxs)(`span`,{className:`channel-topbar-name`,children:[se?iB(se):`New conversation`,se?.source===`schedule`&&(0,$.jsxs)(_t,{variant:`outline`,className:`ml-2 gap-1 align-middle text-muted-foreground`,children:[(0,$.jsx)(Ke,{className:`size-3`}),se.scheduleName??`Scheduled`]})]}),(0,$.jsx)(`span`,{className:`channel-topbar-sub`,children:`Live conversation view through the self-hosted runtime`})]}),(0,$.jsx)(`div`,{className:`channel-topbar-actions`,children:(0,$.jsx)(`button`,{className:`channel-clear`,onClick:de,title:`New conversation`,children:(0,$.jsx)(Rn,{className:`size-4`})})})]}),f&&(0,$.jsx)(`div`,{className:`banner error channel-banner`,children:f}),(0,$.jsxs)(`div`,{className:`channel-body`,children:[D&&(0,$.jsx)(`div`,{className:`ai-glow-overlay`}),ye?(0,$.jsxs)(`div`,{className:`channel-empty`,children:[(0,$.jsx)(Me,{className:`channel-empty-logo`}),(0,$.jsx)(`h2`,{className:`channel-empty-title`,children:`Start a conversation`}),(0,$.jsx)(`p`,{className:`channel-empty-sub`,children:`Ask anything or try one of these:`}),(0,$.jsx)(`div`,{className:`channel-suggestions`,children:eB.map(e=>(0,$.jsx)(`button`,{type:`button`,className:`suggestion-chip`,onClick:()=>{d(e),oe.current?.focus()},children:e},e))})]}):(0,$.jsxs)(gz,{className:`ai-chat relative min-h-0 flex-1`,children:[(0,$.jsxs)(_z,{className:`w-full gap-4 px-0 pb-6`,children:[o!==null&&o>0&&(0,$.jsx)(`div`,{className:`flex justify-center pt-2`,children:(0,$.jsx)(gt,{variant:`outline`,size:`sm`,className:`rounded-full`,onClick:ue,disabled:c,children:c?`Loading…`:`Load earlier messages`})}),he.map(e=>(0,$.jsx)(cB,{turn:e,isLast:e.key===ge,runActive:D,respondedKeys:ee,expiredKeys:ie,onRespond:O},e.key)),_e&&(0,$.jsx)(aR,{from:`assistant`,glow:!0})]}),(0,$.jsx)(vz,{})]})]}),(0,$.jsxs)(`div`,{className:`channel-composer`,children:[(0,$.jsx)(tz,{attachments:E.attachments,onRemove:E.remove}),(0,$.jsxs)(`div`,{className:`channel-input-box relative`,children:[Te.length>0&&(0,$.jsx)(`div`,{className:`absolute inset-x-0 bottom-full mb-2 rounded-md border bg-card p-1 text-sm shadow-md`,children:Te.map(e=>(0,$.jsxs)(`button`,{type:`button`,className:`flex w-full items-baseline gap-2 rounded px-2 py-1.5 text-left hover:bg-muted`,onClick:()=>{d(`${e.cmd} `),oe.current?.focus()},children:[(0,$.jsx)(`code`,{className:`font-medium`,children:e.cmd}),(0,$.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:e.hint})]},e.cmd))}),(0,$.jsx)(`textarea`,{ref:oe,className:`channel-input`,rows:1,placeholder:D?`Steer Codex while it works…`:ce?`Message the workspace…`:`Reply, or type / for commands…`,value:u,onChange:e=>d(e.target.value),onKeyDown:e=>{e.key===`Enter`&&!e.shiftKey&&(e.preventDefault(),pe())}}),(0,$.jsxs)(`div`,{className:`channel-input-bar`,children:[(0,$.jsxs)(`div`,{className:`channel-input-bar-left`,children:[(0,$.jsx)(nz,{className:`channel-attach`,onFiles:E.addFiles,uploading:E.uploading}),(0,$.jsx)(Zz,{open:w,onOpenChange:T,disabled:D||m,mode:g,modes:tB,onModeChange:_,models:v,selectedModel:Ce,onModelChange:e=>x(e),effortValue:S||`medium`,effortOptions:we,onEffortChange:e=>C(e)})]}),(0,$.jsxs)(`div`,{className:`flex items-center gap-2`,children:[D&&(0,$.jsxs)(gt,{variant:`outline`,className:`rounded-full`,onClick:me,children:[(0,$.jsx)(re,{className:`size-3.5`}),` Stop`]}),(0,$.jsx)(gt,{className:`rounded-full`,onClick:pe,disabled:m||u.trim().length===0,children:m?`Sending…`:D?`Steer`:`Send`})]})]})]})]})]})]})}function sB({attachments:e}){return e.length===0?null:(0,$.jsx)(KR,{variant:`inline`,className:`ml-0 mt-2`,children:e.map(e=>(0,$.jsxs)(qR,{data:{id:e.path,type:`file`,url:ye(e.path),mediaType:e.mediaType??`application/octet-stream`,filename:e.name},children:[(0,$.jsx)(JR,{}),(0,$.jsx)(YR,{className:`max-w-40`})]},e.path))})}function cB({turn:e,isLast:t,runActive:n,respondedKeys:r,expiredKeys:i,onRespond:a}){if(e.kind===`user`)return(0,$.jsxs)(aR,{from:`user`,children:[(0,$.jsx)(`div`,{className:`mt-1 whitespace-pre-wrap text-sm text-muted-foreground`,children:e.text}),(0,$.jsx)(sB,{attachments:e.attachments})]});let o=e.blocks.length>0?e.blocks[e.blocks.length-1].key:null;return(0,$.jsx)(aR,{from:`assistant`,glow:n&&t,children:e.blocks.map(e=>(0,$.jsx)(lB,{block:e,isStreaming:n&&t&&e.key===o,responded:r.has(e.key),expired:i.has(e.key),onRespond:a},e.key))})}function lB({block:e,isStreaming:t,responded:n,expired:r,onRespond:i}){switch(e.kind){case`reasoning`:return(0,$.jsx)(oR,{text:e.text,isStreaming:t});case`tools`:return(0,$.jsx)(uR,{tools:e.tools});case`assistant`:return(0,$.jsxs)(`div`,{className:`mt-3 text-sm text-muted-foreground`,children:[(0,$.jsx)(bz,{children:e.text}),e.memoryCitation&&(0,$.jsxs)(`div`,{className:`mt-1.5 flex flex-wrap items-center gap-1.5 text-xs text-muted-foreground/70`,children:[(0,$.jsx)(Le,{className:`size-3`}),(0,$.jsx)(`span`,{children:`From memory:`}),e.memoryCitation.entries.map((e,t)=>(0,$.jsx)(`span`,{className:`rounded bg-muted/60 px-1.5 py-0.5`,title:`${e.path}:${e.lineStart}-${e.lineEnd}`,children:e.note||e.path.split(`/`).pop()},`${e.path}:${t}`))]})]});case`approval`:return(0,$.jsx)(gR,{entry:e,responded:n,expired:r,onRespond:i});default:return(0,$.jsxs)(`div`,{className:`run-entry event mt-2`,children:[(0,$.jsx)(`span`,{className:`event-type`,children:e.type}),e.summary&&(0,$.jsx)(`span`,{className:`event-summary`,children:e.summary})]})}}export{oB as RunsPage,Z as a,Sb as c,yb as d,hb as f,J as i,mb as l,bb as m,Sm as n,L as o,Mh as p,xb as r,gb as s,P as t,vb as u};
|