@antseed/gateway-console 0.1.2 → 0.1.4
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/assets/{Activity-BHckTctH.js → Activity-BsmDMcni.js} +1 -1
- package/dist/assets/{Audit-CheQE0ki.js → Audit-TIDz29y6.js} +1 -1
- package/dist/assets/{ChainGate-BO2NzC31.js → ChainGate-Dvm-SUef.js} +1 -1
- package/dist/assets/{ChannelClose-ODGHySRH.js → ChannelClose-9Lq8KHLH.js} +1 -1
- package/dist/assets/{Charts-CrCKBk_i.js → Charts-DAh9h4sf.js} +1 -1
- package/dist/assets/Chat-Dtte195G.css +1 -0
- package/dist/assets/Chat-DznobJkE.js +220 -0
- package/dist/assets/{ConnectWallet-BqD3R1R9.js → ConnectWallet-DSqRjyNA.js} +1 -1
- package/dist/assets/{DataTable-B36eMErM.js → DataTable-CDFSD9Kq.js} +1 -1
- package/dist/assets/{Disclosure-DS6GTz8G.js → Disclosure-UjXa2WU7.js} +1 -1
- package/dist/assets/{KeyHolder-CG5sSLQK.js → KeyHolder-e5NvqLQn.js} +1 -1
- package/dist/assets/{Keys-Cxz0K09V.js → Keys-CxaYteT3.js} +1 -1
- package/dist/assets/{Logs-DV-trPqy.js → Logs-CNCQTTeZ.js} +1 -1
- package/dist/assets/{Members-Cp_3A-Dy.js → Members-Bme-PLUh.js} +1 -1
- package/dist/assets/{Migrate-BD-0-NY-.js → Migrate-I3FULNOQ.js} +1 -1
- package/dist/assets/{Models-DHeLeAiN.js → Models-Bt59XWgD.js} +1 -1
- package/dist/assets/{OperatorActions-Bety6436.js → OperatorActions-DTrUYN6Z.js} +1 -1
- package/dist/assets/{OperatorGateAlert-Jd5E0V_d.js → OperatorGateAlert-CCPFpK6Y.js} +1 -1
- package/dist/assets/{Overview-37mja3y-.js → Overview-zEyUG_qA.js} +1 -1
- package/dist/assets/PolicyEditor-BdoaX9gK.js +1 -0
- package/dist/assets/{PolicyField-D7O5D7fl.js → PolicyField-DIPl0B1x.js} +1 -1
- package/dist/assets/{Presets-CgfFG3fw.js → Presets-CoTmwoy_.js} +1 -1
- package/dist/assets/{Providers-sZFgSVHV.js → Providers-BxpNjH9s.js} +1 -1
- package/dist/assets/{RequestLog-BbR8E_9_.js → RequestLog-DhID_VN7.js} +1 -1
- package/dist/assets/{Rewards-CuWsg5m7.js → Rewards-XyWhpm9Z.js} +2 -2
- package/dist/assets/{RewardsClaim-CRgTiF93.js → RewardsClaim-BSNDTCMG.js} +1 -1
- package/dist/assets/{Routing-BebcQMko.js → Routing-Du8GLQCH.js} +1 -1
- package/dist/assets/{Segmented-C9jux-Mr.js → Segmented-Qx6JB6EU.js} +1 -1
- package/dist/assets/{SelectField-BSNXjRiC.js → SelectField-D8fxDUNO.js} +1 -1
- package/dist/assets/Settings-CvfS7lxA.js +7 -0
- package/dist/assets/{Switch-hSHNLapF.js → Switch-Ba56zux7.js} +1 -1
- package/dist/assets/{Tabs-Dle_Eq4t.js → Tabs-BmjCmD5T.js} +1 -1
- package/dist/assets/{TextAreaField-9B3_7w3L.js → TextAreaField-CF9_zjuC.js} +1 -1
- package/dist/assets/{UsageByModel-6qZIqVRY.js → UsageByModel-BBqXiIqo.js} +1 -1
- package/dist/assets/Wallet-DggtuX-0.js +9 -0
- package/dist/assets/{WalletConfirm-Dm8Lr6DT.js → WalletConfirm-BQCbOnNv.js} +1 -1
- package/dist/assets/{WalletFunding-CSVVBvPP.js → WalletFunding-CvDkcGVU.js} +1 -1
- package/dist/assets/{WalletSignIn-DLX6sQbD.js → WalletSignIn-B9g_MY0h.js} +1 -1
- package/dist/assets/{Workspaces-DZmGjFFI.js → Workspaces-DUn5iA_D.js} +1 -1
- package/dist/assets/{add-DXI2Cp6k.js → add-1gRRQJKT.js} +1 -1
- package/dist/assets/{all-wallets-LQt3S9MV.js → all-wallets-vhiMb1eR.js} +1 -1
- package/dist/assets/{app-store-CRiNXiqm.js → app-store-DFWwIQzp.js} +1 -1
- package/dist/assets/{apple-BXH3yGFL.js → apple-DgwSchgH.js} +1 -1
- package/dist/assets/{arrow-bottom-D3S4BxFo.js → arrow-bottom-Cq4YmOQg.js} +1 -1
- package/dist/assets/{arrow-bottom-circle-Zukia-8I.js → arrow-bottom-circle-PbZ344lB.js} +1 -1
- package/dist/assets/{arrow-left-DHP2QErV.js → arrow-left-BLB_Dkvm.js} +1 -1
- package/dist/assets/{arrow-right-Co_bi7Vn.js → arrow-right-DpKTBsRx.js} +1 -1
- package/dist/assets/{arrow-top-D3hEtyvW.js → arrow-top-DSAScZJW.js} +1 -1
- package/dist/assets/{bank-CZ3b6K7o.js → bank-wStsFuNb.js} +1 -1
- package/dist/assets/{basic-nJtiapU4.js → basic-CsVGrHuh.js} +1 -1
- package/dist/assets/{browser-CRgINMXV.js → browser-DlwffXFC.js} +1 -1
- package/dist/assets/bundle-full-sn1k_IQV.js +13 -0
- package/dist/assets/{card-ZwByuY3V.js → card-pVIbVhmB.js} +1 -1
- package/dist/assets/{ccip-DpVxliwq.js → ccip-DAldItLP.js} +1 -1
- package/dist/assets/{checkmark-BS_v4cXd.js → checkmark-BpTw56ma.js} +1 -1
- package/dist/assets/{checkmark-bold-gJWlj_By.js → checkmark-bold-kTaP3XxB.js} +1 -1
- package/dist/assets/{chevron-bottom-DB25HS1C.js → chevron-bottom-bMFNlOX_.js} +1 -1
- package/dist/assets/{chevron-left-nQo8fTuX.js → chevron-left-BvUO5nig.js} +1 -1
- package/dist/assets/{chevron-right-D18s-hRU.js → chevron-right-CsjPzxKK.js} +1 -1
- package/dist/assets/{chevron-top-Dj1C_edY.js → chevron-top-k0xp7Can.js} +1 -1
- package/dist/assets/{chrome-store-BM7Ft7N1.js → chrome-store-PaJUtH_w.js} +1 -1
- package/dist/assets/{clock-Gp9Oq3uQ.js → clock-CMJ0qXc5.js} +1 -1
- package/dist/assets/{close-CvZGqQc2.js → close-D_Xc77Yh.js} +1 -1
- package/dist/assets/code-block-xCUZ4Wg2.js +3 -0
- package/dist/assets/{coinPlaceholder-CxGDG0FR.js → coinPlaceholder-D-kUAKbs.js} +1 -1
- package/dist/assets/{compass-D_QgO5G3.js → compass-CGS5aeKg.js} +1 -1
- package/dist/assets/{copy-ClteGnkV.js → copy-BES3eNqf.js} +1 -1
- package/dist/assets/{core-BGzEHhOa.js → core-Cw7VIz-a.js} +3 -3
- package/dist/assets/cursor-BG-gmA3f.js +3 -0
- package/dist/assets/{cursor-transparent-D2iBVjlE.js → cursor-transparent-Dqx5HyjH.js} +1 -1
- package/dist/assets/{desktop-C7ehLazj.js → desktop-83z42M8J.js} +1 -1
- package/dist/assets/{disconnect-DfCN-2S3.js → disconnect-D49VmdOl.js} +1 -1
- package/dist/assets/{discord-wpQmn3Vb.js → discord-MHKJZWwF.js} +1 -1
- package/dist/assets/{en_US-Y4ZOVFV4-BuTiJwkw.js → en_US-Y4ZOVFV4-CzjJ6dvA.js} +4 -4
- package/dist/assets/{etherscan-2pj2VsLB.js → etherscan-_rlcuy0M.js} +1 -1
- package/dist/assets/{exclamation-triangle-D3kTTS0o.js → exclamation-triangle-Bw5MhRmd.js} +1 -1
- package/dist/assets/{extension-BaGxTMr_.js → extension-D7frsaxu.js} +1 -1
- package/dist/assets/{external-link-DPkcev-7.js → external-link-C7l3-PhY.js} +1 -1
- package/dist/assets/{facebook-B-3uuPNQ.js → facebook-D2S1lToP.js} +1 -1
- package/dist/assets/{farcaster-CP4KBXgf.js → farcaster-BKD1k1GK.js} +1 -1
- package/dist/assets/{filters-DayLkPQN.js → filters-LINb1X7z.js} +1 -1
- package/dist/assets/{github-nb58vW5j.js → github-CanBnK1J.js} +1 -1
- package/dist/assets/{google-Cbr4pP2d.js → google-DcyjnYXY.js} +1 -1
- package/dist/assets/{help-circle-dO8TgJbO.js → help-circle-EWFFZOKF.js} +1 -1
- package/dist/assets/highlighted-body-KQOG7T2V-4q_hgdCF.js +1 -0
- package/dist/assets/{id-FL_XAzzL.js → id-CwpQkL3B.js} +1 -1
- package/dist/assets/{image-D0cgJ5JG.js → image-Bru4L9C0.js} +1 -1
- package/dist/assets/{index-Bv4ef0pT.js → index-BTqmifYb.js} +1 -1
- package/dist/assets/{index-CWuVUb-3.js → index-CO2ldxDL.js} +3 -3
- package/dist/assets/index-D5ERwHFX.js +1 -0
- package/dist/assets/{index-DvqgpSC-.js → index-DI3oIpGN.js} +1 -1
- package/dist/assets/index-DqdaAEyo.js +91 -0
- package/dist/assets/{index-CqEPMnZS.css → index-M34IaZVB.css} +1 -1
- package/dist/assets/{index-Vg8tZZdB.js → index-mLThkLKM.js} +1 -1
- package/dist/assets/{index.es-D7XOFxw2.js → index.es-Dajqanx_.js} +4 -4
- package/dist/assets/{info-DtK2iYRv.js → info-BiKqTS2d.js} +1 -1
- package/dist/assets/{info-circle-D7UwRt4U.js → info-circle-BBN-kA77.js} +1 -1
- package/dist/assets/{lightbulb-ClVdo2zx.js → lightbulb-DOHEz8mA.js} +1 -1
- package/dist/assets/{limits-BjBtkRFh.js → limits-DETkh9Vy.js} +1 -1
- package/dist/assets/{mail-D7xIfGjE.js → mail-B58fLIk0.js} +1 -1
- package/dist/assets/mermaid-MCJ5UELQ-CNEVzFUk.js +562 -0
- package/dist/assets/{metamask-sdk-BFHzYYth.js → metamask-sdk-CgV17tbH.js} +1 -1
- package/dist/assets/{mobile-oyVoYDtW.js → mobile-Der0Vnyo.js} +1 -1
- package/dist/assets/{models-D5AfPpBK.js → models-Ben8ko6c.js} +1 -1
- package/dist/assets/{more-DWZmSEse.js → more-BoKgpjap.js} +1 -1
- package/dist/assets/{network-placeholder-DkrrPbIk.js → network-placeholder-DgO-AHV1.js} +1 -1
- package/dist/assets/{nftPlaceholder-y-NnnMjT.js → nftPlaceholder-DQN5ewFX.js} +1 -1
- package/dist/assets/{off-Bq6ESslh.js → off-M-ZEZL9r.js} +1 -1
- package/dist/assets/{play-store-BVSRtmaK.js → play-store-DGLOVnal.js} +1 -1
- package/dist/assets/{plus-CiV0r3Hz.js → plus-BiSIXTnl.js} +1 -1
- package/dist/assets/{qr-code-CQuLdjAg.js → qr-code-CqHp65c8.js} +1 -1
- package/dist/assets/{recycle-horizontal-Dz6rR748.js → recycle-horizontal-CRSsOzCz.js} +1 -1
- package/dist/assets/{refresh-DNo0Vden.js → refresh-CNcLCWXe.js} +1 -1
- package/dist/assets/{reown-logo-sOWGngZq.js → reown-logo-DHp9kF6o.js} +1 -1
- package/dist/assets/{search-rho6BP4J.js → search-Bk2sMNiB.js} +1 -1
- package/dist/assets/{secp256k1-eMq7yeYD.js → secp256k1-eRLZxtys.js} +1 -1
- package/dist/assets/{send-DxwNodDV.js → send-Ctv_HF2O.js} +1 -1
- package/dist/assets/{swapHorizontal-CJ1qgU06.js → swapHorizontal-zaD-84iv.js} +1 -1
- package/dist/assets/{swapHorizontalBold-G3QDMS0U.js → swapHorizontalBold-f_5MNh3F.js} +1 -1
- package/dist/assets/{swapHorizontalMedium-CRUvBpIN.js → swapHorizontalMedium-CnARNDiR.js} +1 -1
- package/dist/assets/{swapHorizontalRoundedBold-DOVIZTm_.js → swapHorizontalRoundedBold-BxdOAjIc.js} +1 -1
- package/dist/assets/{swapVertical-KviDiZLh.js → swapVertical-BS-jDYcd.js} +1 -1
- package/dist/assets/{telegram-96Q1zZ7u.js → telegram-DfO33sxQ.js} +1 -1
- package/dist/assets/{three-dots-CLIQcjDl.js → three-dots-K3AmCfOo.js} +1 -1
- package/dist/assets/{twitch-8bwY5wnt.js → twitch-DfjpmeLa.js} +1 -1
- package/dist/assets/{twitterIcon-yigFfTCz.js → twitterIcon-CXaUDkHK.js} +1 -1
- package/dist/assets/{usage-4421Rf6_.js → usage-CjxizGfE.js} +1 -1
- package/dist/assets/{useInfiniteQuery-DXLHm6RI.js → useInfiniteQuery-Dm7RR6wI.js} +1 -1
- package/dist/assets/{useTx-JDF5s1ox.js → useTx-BRRWrJlB.js} +1 -1
- package/dist/assets/{verify-BvV_kZ_V.js → verify-CplHry9Z.js} +1 -1
- package/dist/assets/{verify-filled-D31I1gjO.js → verify-filled-CLSOHfSX.js} +1 -1
- package/dist/assets/{w3m-modal-BSlq8p9f.js → w3m-modal-CQNWLiT9.js} +1 -1
- package/dist/assets/{wallet-CBsAqlQ7.js → wallet-C3roxttu.js} +1 -1
- package/dist/assets/{wallet-placeholder-DHTeowzX.js → wallet-placeholder-CC9q2-xU.js} +1 -1
- package/dist/assets/{walletconnect-CR_egxhB.js → walletconnect-Bnkz4udx.js} +1 -1
- package/dist/assets/{warning-circle-BP-YPvjB.js → warning-circle-Be9gSeqg.js} +1 -1
- package/dist/assets/{x-CpVuDSxb.js → x-5eg1spDB.js} +1 -1
- package/dist/index.html +2 -2
- package/package.json +1 -1
- package/dist/assets/PolicyEditor-B5BAs2vC.js +0 -1
- package/dist/assets/Settings-BLIkiFNw.js +0 -7
- package/dist/assets/Wallet-BbwYd9fm.js +0 -9
- package/dist/assets/ant-icon-zZhiTevn.svg +0 -25
- package/dist/assets/cursor-CrB_GPgJ.js +0 -3
- package/dist/assets/highlighted-body-KQOG7T2V-D_9pxxPW.js +0 -1
- package/dist/assets/index-BjRmy3XE.js +0 -91
- package/dist/assets/index-iM-80gy8.js +0 -1
- package/dist/assets/mermaid-MCJ5UELQ-BFJCTi2D.css +0 -1
- package/dist/assets/mermaid-MCJ5UELQ-DTUKqcxP.js +0 -793
|
@@ -0,0 +1,562 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/highlighted-body-KQOG7T2V-4q_hgdCF.js","assets/index-DqdaAEyo.js","assets/index-M34IaZVB.css","assets/bundle-full-sn1k_IQV.js","assets/clsx-B-dksMZM.js","assets/Chat-DznobJkE.js","assets/index-D5ERwHFX.js","assets/Chat-Dtte195G.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
var qp=Object.defineProperty;var jp=Object.getPrototypeOf;var Gp=Reflect.get;var Rl=e=>{throw TypeError(e)};var Vp=(e,t,r)=>t in e?qp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Ae=(e,t,r)=>Vp(e,typeof t!="symbol"?t+"":t,r),_s=(e,t,r)=>t.has(e)||Rl("Cannot "+r);var ft=(e,t,r)=>(_s(e,t,"read from private field"),r?r.call(e):t.get(e)),Sr=(e,t,r)=>t.has(e)?Rl("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),qt=(e,t,r,n)=>(_s(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),ii=(e,t,r)=>(_s(e,t,"access private method"),r);var Dl=(e,t,r)=>Gp(jp(e),r,t);import{c3 as Z1,r as D,j as I,_ as J1}from"./index-DqdaAEyo.js";import{b as Yp,c as Wp,a as Xp,f as ts,p as Ol,d as Ml,n as Pl,h as ja,s as Qr,z as eh,e as th,g as rh,i as Qp,j as Bl,w as Kp}from"./bundle-full-sn1k_IQV.js";import{c as nh}from"./clsx-B-dksMZM.js";import{t as ah}from"./Chat-DznobJkE.js";import{r as Tu}from"./index-D5ERwHFX.js";const Zp={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},Fl=4294967295;function Jp(e){var t;return!e.sticky&&!((t=e.rawOptions)!=null&&t.strategy)}function Hl(e,t){return{index:e,captureIndices:t.map(r=>r==null?{start:Fl,end:Fl,length:0}:{start:r[0],end:r[1],length:r[1]-r[0]})}}var e2=class{constructor(e,t={}){Ae(this,"patterns");Ae(this,"options");Ae(this,"regexps");Ae(this,"lastSearches");this.patterns=e,this.options=t;const{forgiving:r=!1,cache:n,regexConstructor:a}=t;if(!a)throw new Error("Option `regexConstructor` is not provided");this.regexps=e.map(i=>{if(typeof i!="string")return i;const s=n==null?void 0:n.get(i);if(s){if(s instanceof RegExp)return s;if(r)return null;throw s}try{const u=a(i);return n==null||n.set(i,u),u}catch(u){if(n==null||n.set(i,u),r)return null;throw u}}),this.lastSearches=this.regexps.map(i=>i&&Jp(i)?{strId:0,searchedFrom:0,matchIndex:-1,indices:null}:null)}findNextMatchSync(e,t,r){const n=typeof e=="string"?e:e.content,a=typeof e=="string"?0:e.id||0;let i=-1,s=0,u=null;for(let l=0;l<this.regexps.length;l++){const o=this.regexps[l];if(o)try{const c=a?this.lastSearches[l]:null;let h,f;if(c&&c.strId===a&&c.searchedFrom<=t&&(c.matchIndex===-1||c.matchIndex>=t))h=c.matchIndex,f=c.indices;else{o.lastIndex=t;const p=o.exec(n);h=p?p.index:-1,f=p?p.indices:null,c&&(c.strId=a,c.searchedFrom=t,c.matchIndex=h,c.indices=f)}if(h===-1)continue;if(h===t)return Hl(l,f);(i===-1||h<s)&&(i=l,s=h,u=f)}catch(c){if(this.options.forgiving)continue;throw c}}return i===-1?null:Hl(i,u)}};let t2=0;function r2(e){return{content:e,id:++t2}}function Qn(e){if([...e].length!==1)throw new Error(`Expected "${e}" to be a single code point`);return e.codePointAt(0)}function n2(e,t,r){return e.has(t)||e.set(t,r),e.get(t)}const vu=new Set(["alnum","alpha","ascii","blank","cntrl","digit","graph","lower","print","punct","space","upper","word","xdigit"]),it=String.raw;function Kn(e,t){if(e==null)throw new Error(t??"Value expected");return e}const ih=it`\[\^?`,sh=`c.? | C(?:-.?)?|${it`[pP]\{(?:\^?[-\x20_]*[A-Za-z][-\x20\w]*\})?`}|${it`x[89A-Fa-f]\p{AHex}(?:\\x[89A-Fa-f]\p{AHex})*`}|${it`u(?:\p{AHex}{4})? | x\{[^\}]*\}? | x\p{AHex}{0,2}`}|${it`o\{[^\}]*\}?`}|${it`\d{1,3}`}`,ku=/[?*+][?+]?|\{(?:\d+(?:,\d*)?|,\d+)\}\??/,si=new RegExp(it`
|
|
3
|
+
\\ (?:
|
|
4
|
+
${sh}
|
|
5
|
+
| [gk]<[^>]*>?
|
|
6
|
+
| [gk]'[^']*'?
|
|
7
|
+
| .
|
|
8
|
+
)
|
|
9
|
+
| \( (?:
|
|
10
|
+
\? (?:
|
|
11
|
+
[:=!>({]
|
|
12
|
+
| <[=!]
|
|
13
|
+
| <[^>]*>
|
|
14
|
+
| '[^']*'
|
|
15
|
+
| ~\|?
|
|
16
|
+
| #(?:[^)\\]|\\.?)*
|
|
17
|
+
| [^:)]*[:)]
|
|
18
|
+
)?
|
|
19
|
+
| \*[^\)]*\)?
|
|
20
|
+
)?
|
|
21
|
+
| (?:${ku.source})+
|
|
22
|
+
| ${ih}
|
|
23
|
+
| .
|
|
24
|
+
`.replace(/\s+/g,""),"gsu"),Ns=new RegExp(it`
|
|
25
|
+
\\ (?:
|
|
26
|
+
${sh}
|
|
27
|
+
| .
|
|
28
|
+
)
|
|
29
|
+
| \[:(?:\^?\p{Alpha}+|\^):\]
|
|
30
|
+
| ${ih}
|
|
31
|
+
| &&
|
|
32
|
+
| .
|
|
33
|
+
`.replace(/\s+/g,""),"gsu");function a2(e,t={}){const r={flags:"",...t,rules:{captureGroup:!1,singleline:!1,...t.rules}};if(typeof e!="string")throw new Error("String expected as pattern");const n=k2(r.flags),a=[n.extended],i={captureGroup:r.rules.captureGroup,getCurrentModX(){return a.at(-1)},numOpenGroups:0,popModX(){a.pop()},pushModX(h){a.push(h)},replaceCurrentModX(h){a[a.length-1]=h},singleline:r.rules.singleline};let s=[],u;for(si.lastIndex=0;u=si.exec(e);){const h=i2(i,e,u[0],si.lastIndex);h.tokens?s.push(...h.tokens):h.token&&s.push(h.token),h.lastIndex!==void 0&&(si.lastIndex=h.lastIndex)}const l=[];let o=0;s.filter(h=>h.type==="GroupOpen").forEach(h=>{h.kind==="capturing"?h.number=++o:h.raw==="("&&l.push(h)}),o||l.forEach((h,f)=>{h.kind="capturing",h.number=f+1});const c=o||l.length;return{tokens:s.map(h=>h.type==="EscapedNumber"?A2(h,c):h).flat(),flags:n}}function i2(e,t,r,n){const[a,i]=r;if(r==="["||r==="[^"){const s=s2(t,r,n);return{tokens:s.tokens,lastIndex:s.lastIndex}}if(a==="\\"){if("AbBGyYzZ".includes(i))return{token:zl(r,r)};if(/^\\g[<']/.test(r)){if(!/^\\g(?:<[^>]+>|'[^']+')$/.test(r))throw new Error(`Invalid group name "${r}"`);return{token:g2(r)}}if(/^\\k[<']/.test(r)){if(!/^\\k(?:<[^>]+>|'[^']+')$/.test(r))throw new Error(`Invalid group name "${r}"`);return{token:lh(r)}}if(i==="K")return{token:oh("keep",r)};if(i==="N"||i==="R")return{token:fn("newline",r,{negate:i==="N"})};if(i==="O")return{token:fn("any",r)};if(i==="X")return{token:fn("text_segment",r)};const s=uh(r,{inCharClass:!1});return Array.isArray(s)?{tokens:s}:{token:s}}if(a==="("){if(i==="*")return{token:y2(r)};if(r==="(?{")throw new Error(`Unsupported callout "${r}"`);if(r.startsWith("(?#")){if(t[n]!==")")throw new Error('Unclosed comment group "(?#"');return{lastIndex:n+1}}if(/^\(\?[-imx]+[:)]$/.test(r))return{token:E2(r,e)};if(e.pushModX(e.getCurrentModX()),e.numOpenGroups++,r==="("&&!e.captureGroup||r==="(?:")return{token:Bn("group",r)};if(r==="(?>")return{token:Bn("atomic",r)};if(r==="(?="||r==="(?!"||r==="(?<="||r==="(?<!")return{token:Bn(r[2]==="<"?"lookbehind":"lookahead",r,{negate:r.endsWith("!")})};if(r==="("&&e.captureGroup||r.startsWith("(?<")&&r.endsWith(">")||r.startsWith("(?'")&&r.endsWith("'"))return{token:Bn("capturing",r,{...r!=="("&&{name:r.slice(3,-1)}})};if(r.startsWith("(?~")){if(r==="(?~|")throw new Error(`Unsupported absence function kind "${r}"`);return{token:Bn("absence_repeater",r)}}throw r==="(?("?new Error(`Unsupported conditional "${r}"`):new Error(`Invalid or unsupported group option "${r}"`)}if(r===")"){if(e.popModX(),e.numOpenGroups--,e.numOpenGroups<0)throw new Error('Unmatched ")"');return{token:f2(r)}}if(e.getCurrentModX()){if(r==="#"){const s=t.indexOf(`
|
|
34
|
+
`,n);return{lastIndex:s===-1?t.length:s}}if(/^\s$/.test(r)){const s=/\s+/y;return s.lastIndex=n,{lastIndex:s.exec(t)?s.lastIndex:n}}}if(r===".")return{token:fn("dot",r)};if(r==="^"||r==="$"){const s=e.singleline?{"^":it`\A`,$:it`\Z`}[r]:r;return{token:zl(s,r)}}return r==="|"?{token:l2(r)}:ku.test(r)?{tokens:C2(r)}:{token:xr(Qn(r),r)}}function s2(e,t,r){const n=[$l(t[1]==="^",t)];let a=1,i;for(Ns.lastIndex=r;i=Ns.exec(e);){const s=i[0];if(s[0]==="["&&s[1]!==":")a++,n.push($l(s[1]==="^",s));else if(s==="]"){if(n.at(-1).type==="CharacterClassOpen")n.push(xr(93,s));else if(a--,n.push(o2(s)),!a)break}else{const u=u2(s);Array.isArray(u)?n.push(...u):n.push(u)}}return{tokens:n,lastIndex:Ns.lastIndex||e.length}}function u2(e){if(e[0]==="\\")return uh(e,{inCharClass:!0});if(e[0]==="["){const t=/\[:(?<negate>\^?)(?<name>[a-z]+):\]/.exec(e);if(!t||!vu.has(t.groups.name))throw new Error(`Invalid POSIX class "${e}"`);return fn("posix",e,{value:t.groups.name,negate:!!t.groups.negate})}return e==="-"?c2(e):e==="&&"?h2(e):xr(Qn(e),e)}function uh(e,{inCharClass:t}){const r=e[1];if(r==="c"||r==="C")return x2(e);if("dDhHsSwW".includes(r))return T2(e);if(e.startsWith(it`\o{`))throw new Error(`Incomplete, invalid, or unsupported octal code point "${e}"`);if(/^\\[pP]\{/.test(e)){if(e.length===3)throw new Error(`Incomplete or invalid Unicode property "${e}"`);return v2(e)}if(new RegExp("^\\\\x[89A-Fa-f]\\p{AHex}","u").test(e))try{const n=e.split(/\\x/).slice(1).map(s=>parseInt(s,16)),a=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}).decode(new Uint8Array(n)),i=new TextEncoder;return[...a].map(s=>{const u=[...i.encode(s)].map(l=>`\\x${l.toString(16)}`).join("");return xr(Qn(s),u)})}catch{throw new Error(`Multibyte code "${e}" incomplete or invalid in Oniguruma`)}if(r==="u"||r==="x")return xr(w2(e),e);if(Ul.has(r))return xr(Ul.get(r),e);if(/\d/.test(r))return d2(t,e);if(e==="\\")throw new Error(it`Incomplete escape "\"`);if(r==="M")throw new Error(`Unsupported meta "${e}"`);if([...e].length===2)return xr(e.codePointAt(1),e);throw new Error(`Unexpected escape "${e}"`)}function l2(e){return{type:"Alternator",raw:e}}function zl(e,t){return{type:"Assertion",kind:e,raw:t}}function lh(e){return{type:"Backreference",raw:e}}function xr(e,t){return{type:"Character",value:e,raw:t}}function o2(e){return{type:"CharacterClassClose",raw:e}}function c2(e){return{type:"CharacterClassHyphen",raw:e}}function h2(e){return{type:"CharacterClassIntersector",raw:e}}function $l(e,t){return{type:"CharacterClassOpen",negate:e,raw:t}}function fn(e,t,r={}){return{type:"CharacterSet",kind:e,...r,raw:t}}function oh(e,t,r={}){return e==="keep"?{type:"Directive",kind:e,raw:t}:{type:"Directive",kind:e,flags:Kn(r.flags),raw:t}}function d2(e,t){return{type:"EscapedNumber",inCharClass:e,raw:t}}function f2(e){return{type:"GroupClose",raw:e}}function Bn(e,t,r={}){return{type:"GroupOpen",kind:e,...r,raw:t}}function m2(e,t,r,n){return{type:"NamedCallout",kind:e,tag:t,arguments:r,raw:n}}function p2(e,t,r,n){return{type:"Quantifier",kind:e,min:t,max:r,raw:n}}function g2(e){return{type:"Subroutine",raw:e}}const b2=new Set(["COUNT","CMP","ERROR","FAIL","MAX","MISMATCH","SKIP","TOTAL_COUNT"]),Ul=new Map([["a",7],["b",8],["e",27],["f",12],["n",10],["r",13],["t",9],["v",11]]);function x2(e){const t=e[1]==="c"?e[2]:e[3];if(!t||!/[A-Za-z]/.test(t))throw new Error(`Unsupported control character "${e}"`);return xr(Qn(t.toUpperCase())-64,e)}function E2(e,t){let{on:r,off:n}=/^\(\?(?<on>[imx]*)(?:-(?<off>[-imx]*))?/.exec(e).groups;n??(n="");const a=(t.getCurrentModX()||r.includes("x"))&&!n.includes("x"),i=jl(r),s=jl(n),u={};if(i&&(u.enable=i),s&&(u.disable=s),e.endsWith(")"))return t.replaceCurrentModX(a),oh("flags",e,{flags:u});if(e.endsWith(":"))return t.pushModX(a),t.numOpenGroups++,Bn("group",e,{...(i||s)&&{flags:u}});throw new Error(`Unexpected flag modifier "${e}"`)}function y2(e){const t=/\(\*(?<name>[A-Za-z_]\w*)?(?:\[(?<tag>(?:[A-Za-z_]\w*)?)\])?(?:\{(?<args>[^}]*)\})?\)/.exec(e);if(!t)throw new Error(`Incomplete or invalid named callout "${e}"`);const{name:r,tag:n,args:a}=t.groups;if(!r)throw new Error(`Invalid named callout "${e}"`);if(n==="")throw new Error(`Named callout tag with empty value not allowed "${e}"`);const i=a?a.split(",").filter(c=>c!=="").map(c=>/^[+-]?\d+$/.test(c)?+c:c):[],[s,u,l]=i,o=b2.has(r)?r.toLowerCase():"custom";switch(o){case"fail":case"mismatch":case"skip":if(i.length>0)throw new Error(`Named callout arguments not allowed "${i}"`);break;case"error":if(i.length>1)throw new Error(`Named callout allows only one argument "${i}"`);if(typeof s=="string")throw new Error(`Named callout argument must be a number "${s}"`);break;case"max":if(!i.length||i.length>2)throw new Error(`Named callout must have one or two arguments "${i}"`);if(typeof s=="string"&&!/^[A-Za-z_]\w*$/.test(s))throw new Error(`Named callout argument one must be a tag or number "${s}"`);if(i.length===2&&(typeof u=="number"||!/^[<>X]$/.test(u)))throw new Error(`Named callout optional argument two must be '<', '>', or 'X' "${u}"`);break;case"count":case"total_count":if(i.length>1)throw new Error(`Named callout allows only one argument "${i}"`);if(i.length===1&&(typeof s=="number"||!/^[<>X]$/.test(s)))throw new Error(`Named callout optional argument must be '<', '>', or 'X' "${s}"`);break;case"cmp":if(i.length!==3)throw new Error(`Named callout must have three arguments "${i}"`);if(typeof s=="string"&&!/^[A-Za-z_]\w*$/.test(s))throw new Error(`Named callout argument one must be a tag or number "${s}"`);if(typeof u=="number"||!/^(?:[<>!=]=|[<>])$/.test(u))throw new Error(`Named callout argument two must be '==', '!=', '>', '<', '>=', or '<=' "${u}"`);if(typeof l=="string"&&!/^[A-Za-z_]\w*$/.test(l))throw new Error(`Named callout argument three must be a tag or number "${l}"`);break;case"custom":throw new Error(`Undefined callout name "${r}"`);default:throw new Error(`Unexpected named callout kind "${o}"`)}return m2(o,n??null,(a==null?void 0:a.split(","))??null,e)}function ql(e){let t=null,r,n;if(e[0]==="{"){const{minStr:a,maxStr:i}=/^\{(?<minStr>\d*)(?:,(?<maxStr>\d*))?/.exec(e).groups,s=1e5;if(+a>s||i&&+i>s)throw new Error("Quantifier value unsupported in Oniguruma");if(r=+a,n=i===void 0?+a:i===""?1/0:+i,r>n&&(t="possessive",[r,n]=[n,r]),e.endsWith("?")){if(t==="possessive")throw new Error('Unsupported possessive interval quantifier chain with "?"');t="lazy"}else t||(t="greedy")}else r=e[0]==="+"?1:0,n=e[0]==="?"?1:1/0,t=e[1]==="+"?"possessive":e[1]==="?"?"lazy":"greedy";return p2(t,r,n,e)}function T2(e){const t=e[1].toLowerCase();return fn({d:"digit",h:"hex",s:"space",w:"word"}[t],e,{negate:e[1]!==t})}function v2(e){const{p:t,neg:r,value:n}=/^\\(?<p>[pP])\{(?<neg>\^?)(?<value>[^}]+)/.exec(e).groups;return fn("property",e,{value:n,negate:t==="P"&&!r||t==="p"&&!!r})}function jl(e){const 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 k2(e){const t={ignoreCase:!1,dotAll:!1,extended:!1,digitIsAscii:!1,posixIsAscii:!1,spaceIsAscii:!1,wordIsAscii:!1,textSegmentMode:null};for(let r=0;r<e.length;r++){const n=e[r];if(!"imxDPSWy".includes(n))throw new Error(`Invalid flag "${n}"`);if(n==="y"){if(!/^y{[gw]}/.test(e.slice(r)))throw new Error('Invalid or unspecified flag "y" mode');t.textSegmentMode=e[r+2]==="g"?"grapheme":"word",r+=3;continue}t[{i:"ignoreCase",m:"dotAll",x:"extended",D:"digitIsAscii",P:"posixIsAscii",S:"spaceIsAscii",W:"wordIsAscii"}[n]]=!0}return t}function w2(e){if(new RegExp("^(?:\\\\u(?!\\p{AHex}{4})|\\\\x(?!\\p{AHex}{1,2}|\\{\\p{AHex}{1,8}\\}))","u").test(e))throw new Error(`Incomplete or invalid escape "${e}"`);const t=e[2]==="{"?new RegExp("^\\\\x\\{\\s*(?<hex>\\p{AHex}+)","u").exec(e).groups.hex:e.slice(2);return parseInt(t,16)}function A2(e,t){const{raw:r,inCharClass:n}=e,a=r.slice(1);if(!n&&(a!=="0"&&a.length===1||a[0]!=="0"&&+a<=t))return[lh(r)];const i=[],s=a.match(/^[0-7]+|\d/g);for(let u=0;u<s.length;u++){const l=s[u];let o;if(u===0&&l!=="8"&&l!=="9"){if(o=parseInt(l,8),o>127)throw new Error(it`Octal encoded byte above 177 unsupported "${r}"`)}else o=Qn(l);i.push(xr(o,(u===0?"\\":"")+l))}return i}function C2(e){const t=[],r=new RegExp(ku,"gy");let n;for(;n=r.exec(e);){const a=n[0];if(a[0]==="{"){const i=/^\{(?<min>\d+),(?<max>\d+)\}\??$/.exec(a);if(i){const{min:s,max:u}=i.groups;if(+s>+u&&a.endsWith("?")){r.lastIndex--,t.push(ql(a.slice(0,-1)));continue}}}t.push(ql(a))}return t}function ch(e,t){if(!Array.isArray(e.body))throw new Error("Expected node with body array");if(e.body.length!==1)return!1;const r=e.body[0];return!t||Object.keys(t).every(n=>t[n]===r[n])}function S2(e){return I2.has(e.type)}const I2=new Set(["AbsenceFunction","Backreference","CapturingGroup","Character","CharacterClass","CharacterSet","Group","Quantifier","Subroutine"]);function hh(e,t={}){const r={flags:"",normalizeUnknownPropertyNames:!1,skipBackrefValidation:!1,skipLookbehindValidation:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t,rules:{captureGroup:!1,singleline:!1,...t.rules}},n=a2(e,{flags:r.flags,rules:{captureGroup:r.rules.captureGroup,singleline:r.rules.singleline}}),a=(f,p)=>{const b=n.tokens[i.nextIndex];switch(i.parent=f,i.nextIndex++,b.type){case"Alternator":return xn();case"Assertion":return _2(b);case"Backreference":return N2(b,i);case"Character":return rs(b.value,{useLastValid:!!p.isCheckingRangeEnd});case"CharacterClassHyphen":return L2(b,i,p);case"CharacterClassOpen":return R2(b,i,p);case"CharacterSet":return D2(b,i);case"Directive":return H2(b.kind,{flags:b.flags});case"GroupOpen":return O2(b,i,p);case"NamedCallout":return $2(b.kind,b.tag,b.arguments);case"Quantifier":return M2(b,i);case"Subroutine":return P2(b,i);default:throw new Error(`Unexpected token type "${b.type}"`)}},i={capturingGroups:[],hasNumberedRef:!1,namedGroupsByName:new Map,nextIndex:0,normalizeUnknownPropertyNames:r.normalizeUnknownPropertyNames,parent:null,skipBackrefValidation:r.skipBackrefValidation,skipLookbehindValidation:r.skipLookbehindValidation,skipPropertyNameValidation:r.skipPropertyNameValidation,subroutines:[],tokens:n.tokens,unicodePropertyMap:r.unicodePropertyMap,walk:a},s=q2(z2(n.flags));let u=s.body[0];for(;i.nextIndex<n.tokens.length;){const f=a(u,{});f.type==="Alternative"?(s.body.push(f),u=f):u.body.push(f)}const{capturingGroups:l,hasNumberedRef:o,namedGroupsByName:c,subroutines:h}=i;if(o&&c.size&&!r.rules.captureGroup)throw new Error("Numbered backref/subroutine not allowed when using named capture");for(const{ref:f}of h)if(typeof f=="number"){if(f>l.length)throw new Error("Subroutine uses a group number that's not defined");f&&(l[f-1].isSubroutined=!0)}else if(c.has(f)){if(c.get(f).length>1)throw new Error(it`Subroutine uses a duplicate group name "\g<${f}>"`);c.get(f)[0].isSubroutined=!0}else throw new Error(it`Subroutine uses a group name that's not defined "\g<${f}>"`);return s}function _2({kind:e}){return k0(Kn({"^":"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===it`\B`||e===it`\Y`})}function N2({raw:e},t){const r=/^\\k[<']/.test(e),n=r?e.slice(3,-1):e.slice(1),a=(i,s=!1)=>{const u=t.capturingGroups.length;let l=!1;if(i>u)if(t.skipBackrefValidation)l=!0;else throw new Error(`Not enough capturing groups defined to the left "${e}"`);return t.hasNumberedRef=!0,w0(s?u+1-i:i,{orphan:l})};if(r){const i=/^(?<sign>-?)0*(?<num>[1-9]\d*)$/.exec(n);if(i)return a(+i.groups.num,!!i.groups.sign);if(/[-+]/.test(n))throw new Error(`Invalid backref name "${e}"`);if(!t.namedGroupsByName.has(n))throw new Error(`Group name not defined to the left "${e}"`);return w0(n)}return a(+n)}function L2(e,t,r){const{tokens:n,walk:a}=t,i=t.parent,s=i.body.at(-1),u=n[t.nextIndex];if(!r.isCheckingRangeEnd&&s&&s.type!=="CharacterClass"&&s.type!=="CharacterClassRange"&&u&&u.type!=="CharacterClassOpen"&&u.type!=="CharacterClassClose"&&u.type!=="CharacterClassIntersector"){const l=a(i,{...r,isCheckingRangeEnd:!0});if(s.type==="Character"&&l.type==="Character")return i.body.pop(),F2(s,l);throw new Error("Invalid character class range")}return rs(Qn("-"))}function R2({negate:e},t,r){const{tokens:n,walk:a}=t,i=[Ci()],s=n[t.nextIndex];let u=Yl(s);for(;u.type!=="CharacterClassClose";){if(u.type==="CharacterClassIntersector")i.push(Ci()),t.nextIndex++;else{const o=i.at(-1);o.body.push(a(o,r))}u=Yl(n[t.nextIndex],s)}const l=Ci({negate:e});return i.length===1?l.body=i[0].body:(l.kind="intersection",l.body=i.map(o=>o.body.length===1?o.body[0]:o)),t.nextIndex++,l}function D2({kind:e,negate:t,value:r},n){const{normalizeUnknownPropertyNames:a,skipPropertyNameValidation:i,unicodePropertyMap:s}=n;if(e==="property"){const u=ns(r);if(vu.has(u)&&!(s!=null&&s.has(u)))e="posix",r=u;else return Fn(r,{negate:t,normalizeUnknownPropertyNames:a,skipPropertyNameValidation:i,unicodePropertyMap:s})}return e==="posix"?U2(r,{negate:t}):A0(e,{negate:t})}function O2(e,t,r){const{tokens:n,capturingGroups:a,namedGroupsByName:i,skipLookbehindValidation:s,walk:u}=t,l=j2(e),o=l.type==="AbsenceFunction",c=Vl(l),h=c&&l.negate;if(l.type==="CapturingGroup"&&(a.push(l),l.name&&n2(i,l.name,[]).push(l)),o&&r.isInAbsenceFunction)throw new Error("Nested absence function not supported by Oniguruma");let f=Wl(n[t.nextIndex]);for(;f.type!=="GroupClose";){if(f.type==="Alternator")l.body.push(xn()),t.nextIndex++;else{const p=l.body.at(-1),b=u(p,{...r,isInAbsenceFunction:r.isInAbsenceFunction||o,isInLookbehind:r.isInLookbehind||c,isInNegLookbehind:r.isInNegLookbehind||h});if(p.body.push(b),(c||r.isInLookbehind)&&!s){const E="Lookbehind includes a pattern not allowed by Oniguruma";if(h||r.isInNegLookbehind){if(Gl(b)||b.type==="CapturingGroup")throw new Error(E)}else if(Gl(b)||Vl(b)&&b.negate)throw new Error(E)}}f=Wl(n[t.nextIndex])}return t.nextIndex++,l}function M2({kind:e,min:t,max:r},n){const a=n.parent,i=a.body.at(-1);if(!i||!S2(i))throw new Error("Quantifier requires a repeatable token");const s=fh(e,t,r,i);return a.body.pop(),s}function P2({raw:e},t){const{capturingGroups:r,subroutines:n}=t;let a=e.slice(3,-1);const i=/^(?<sign>[-+]?)0*(?<num>[1-9]\d*)$/.exec(a);if(i){const u=+i.groups.num,l=r.length;if(t.hasNumberedRef=!0,a={"":u,"+":l+u,"-":l+1-u}[i.groups.sign],a<1)throw new Error("Invalid subroutine number")}else a==="0"&&(a=0);const s=mh(a);return n.push(s),s}function B2(e,t){return{type:"AbsenceFunction",kind:e,body:Ga(t==null?void 0:t.body)}}function xn(e){return{type:"Alternative",body:ph(e==null?void 0:e.body)}}function k0(e,t){const r={type:"Assertion",kind:e};return(e==="word_boundary"||e==="text_segment_boundary")&&(r.negate=!!(t!=null&&t.negate)),r}function w0(e,t){const r=!!(t!=null&&t.orphan);return{type:"Backreference",ref:e,...r&&{orphan:r}}}function dh(e,t){const r={name:void 0,isSubroutined:!1,...t};if(r.name!==void 0&&!G2(r.name))throw new Error(`Group name "${r.name}" invalid in Oniguruma`);return{type:"CapturingGroup",number:e,...r.name&&{name:r.name},...r.isSubroutined&&{isSubroutined:r.isSubroutined},body:Ga(t==null?void 0:t.body)}}function rs(e,t){const r={useLastValid:!1,...t};if(e>1114111){const n=e.toString(16);if(r.useLastValid)e=1114111;else throw e>1310719?new Error(`Invalid code point out of range "\\x{${n}}"`):new Error(`Invalid code point out of range in JS "\\x{${n}}"`)}return{type:"Character",value:e}}function Ci(e){const t={kind:"union",negate:!1,...e};return{type:"CharacterClass",kind:t.kind,negate:t.negate,body:ph(e==null?void 0:e.body)}}function F2(e,t){if(t.value<e.value)throw new Error("Character class range out of order");return{type:"CharacterClassRange",min:e,max:t}}function A0(e,t){const r=!!(t!=null&&t.negate),n={type:"CharacterSet",kind:e};return(e==="digit"||e==="hex"||e==="newline"||e==="space"||e==="word")&&(n.negate=r),(e==="text_segment"||e==="newline"&&!r)&&(n.variableLength=!0),n}function H2(e,t={}){if(e==="keep")return{type:"Directive",kind:e};if(e==="flags")return{type:"Directive",kind:e,flags:Kn(t.flags)};throw new Error(`Unexpected directive kind "${e}"`)}function z2(e){return{type:"Flags",...e}}function Gt(e){const t=e==null?void 0:e.atomic,r=e==null?void 0:e.flags;if(t&&r)throw new Error("Atomic group cannot have flags");return{type:"Group",...t&&{atomic:t},...r&&{flags:r},body:Ga(e==null?void 0:e.body)}}function cn(e){const t={behind:!1,negate:!1,...e};return{type:"LookaroundAssertion",kind:t.behind?"lookbehind":"lookahead",negate:t.negate,body:Ga(e==null?void 0:e.body)}}function $2(e,t,r){return{type:"NamedCallout",kind:e,tag:t,arguments:r}}function U2(e,t){const r=!!(t!=null&&t.negate);if(!vu.has(e))throw new Error(`Invalid POSIX class "${e}"`);return{type:"CharacterSet",kind:"posix",value:e,negate:r}}function fh(e,t,r,n){if(t>r)throw new Error("Invalid reversed quantifier range");return{type:"Quantifier",kind:e,min:t,max:r,body:n}}function q2(e,t){return{type:"Regex",body:Ga(t==null?void 0:t.body),flags:e}}function mh(e){return{type:"Subroutine",ref:e}}function Fn(e,t){var a;const r={negate:!1,normalizeUnknownPropertyNames:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t};let n=(a=r.unicodePropertyMap)==null?void 0:a.get(ns(e));if(!n){if(r.normalizeUnknownPropertyNames)n=V2(e);else if(r.unicodePropertyMap&&!r.skipPropertyNameValidation)throw new Error(it`Invalid Unicode property "\p{${e}}"`)}return{type:"CharacterSet",kind:"property",value:n??e,negate:r.negate}}function j2({flags:e,kind:t,name:r,negate:n,number:a}){switch(t){case"absence_repeater":return B2("repeater");case"atomic":return Gt({atomic:!0});case"capturing":return dh(a,{name:r});case"group":return Gt({flags:e});case"lookahead":case"lookbehind":return cn({behind:t==="lookbehind",negate:n});default:throw new Error(`Unexpected group kind "${t}"`)}}function Ga(e){if(e===void 0)e=[xn()];else if(!Array.isArray(e)||!e.length||!e.every(t=>t.type==="Alternative"))throw new Error("Invalid body; expected array of one or more Alternative nodes");return e}function ph(e){if(e===void 0)e=[];else if(!Array.isArray(e)||!e.every(t=>!!t.type))throw new Error("Invalid body; expected array of nodes");return e}function Gl(e){return e.type==="LookaroundAssertion"&&e.kind==="lookahead"}function Vl(e){return e.type==="LookaroundAssertion"&&e.kind==="lookbehind"}function G2(e){return/^[\p{Alpha}\p{Pc}][^)]*$/u.test(e)}function V2(e){return e.trim().replace(/[- _]+/g,"_").replace(/[A-Z][a-z]+(?=[A-Z])/g,"$&_").replace(/[A-Za-z]+/g,t=>t[0].toUpperCase()+t.slice(1).toLowerCase())}function ns(e){return e.replace(/[- _]+/g,"").toLowerCase()}function Yl(e,t){const r=t;return Kn(e,`Unclosed character class${(r==null?void 0:r.type)==="Character"&&r.value===93&&r.raw==="]"?' (started with "]")':""}`)}function Wl(e){return Kn(e,"Unclosed group")}function Aa(e,t,r=null){function n(i,s){for(let u=0;u<i.length;u++){const l=a(i[u],s,u,i);u=Math.max(-1,u+l)}}function a(i,s=null,u=null,l=null){var k,C;let o=0,c=!1;const h={node:i,parent:s,key:u,container:l,root:e,remove(){ui(l).splice(Math.max(0,Nn(u)+o),1),o--,c=!0},removeAllNextSiblings(){return ui(l).splice(Nn(u)+1)},removeAllPrevSiblings(){const w=Nn(u)+o;return o-=w,ui(l).splice(0,Math.max(0,w))},replaceWith(w,H={}){const z=!!H.traverse;l?l[Math.max(0,Nn(u)+o)]=w:Kn(s,"Can't replace root node")[u]=w,z&&a(w,s,u,l),c=!0},replaceWithMultiple(w,H={}){const z=!!H.traverse;if(ui(l).splice(Math.max(0,Nn(u)+o),1,...w),o+=w.length-1,z){let O=0;for(let U=0;U<w.length;U++)O+=a(w[U],s,Nn(u)+U+O,l)}c=!0},skip(){c=!0}},{type:f}=i,p=t["*"],b=t[f],E=typeof p=="function"?p:p==null?void 0:p.enter,T=typeof b=="function"?b:b==null?void 0:b.enter;if(E==null||E(h,r),T==null||T(h,r),!c)switch(f){case"AbsenceFunction":case"Alternative":case"CapturingGroup":case"CharacterClass":case"Group":case"LookaroundAssertion":n(i.body,i);break;case"Assertion":case"Backreference":case"Character":case"CharacterSet":case"Directive":case"Flags":case"NamedCallout":case"Subroutine":break;case"CharacterClassRange":a(i.min,i,"min"),a(i.max,i,"max");break;case"Quantifier":a(i.body,i,"body");break;case"Regex":n(i.body,i),a(i.flags,i,"flags");break;default:throw new Error(`Unexpected node type "${f}"`)}return(k=b==null?void 0:b.exit)==null||k.call(b,h,r),(C=p==null?void 0:p.exit)==null||C.call(p,h,r),o}return a(e),e}function ui(e){if(!Array.isArray(e))throw new Error("Container expected");return e}function Nn(e){if(typeof e!="number")throw new Error("Numeric key expected");return e}const Y2=String.raw`\(\?(?:[:=!>A-Za-z\-]|<[=!]|\(DEFINE\))`;function W2(e,t){for(let r=0;r<e.length;r++)e[r]>=t&&e[r]++}function X2(e,t,r,n){return e.slice(0,t)+n+e.slice(t+r.length)}const Pt=Object.freeze({DEFAULT:"DEFAULT",CHAR_CLASS:"CHAR_CLASS"});function wu(e,t,r,n){const a=new RegExp(String.raw`${t}|(?<$skip>\[\^?|\\?.)`,"gsu"),i=[!1];let s=0,u="";for(const l of e.matchAll(a)){const{0:o,groups:{$skip:c}}=l;if(!c&&(!n||n===Pt.DEFAULT==!s)){r instanceof Function?u+=r(l,{context:s?Pt.CHAR_CLASS:Pt.DEFAULT,negated:i[i.length-1]}):u+=r;continue}o[0]==="["?(s++,i.push(o[1]==="^")):o==="]"&&s&&(s--,i.pop()),u+=o}return u}function gh(e,t,r,n){wu(e,t,r,n)}function Q2(e,t,r=0,n){if(!new RegExp(t,"su").test(e))return null;const a=new RegExp(`${t}|(?<$skip>\\\\?.)`,"gsu");a.lastIndex=r;let i=0,s;for(;s=a.exec(e);){const{0:u,groups:{$skip:l}}=s;if(!l&&(!n||n===Pt.DEFAULT==!i))return s;u==="["?i++:u==="]"&&i&&i--,a.lastIndex==s.index&&a.lastIndex++}return null}function li(e,t,r){return!!Q2(e,t,0,r)}function K2(e,t){const r=/\\?./gsu;r.lastIndex=t;let n=e.length,a=0,i=1,s;for(;s=r.exec(e);){const[u]=s;if(u==="[")a++;else if(a)u==="]"&&a--;else if(u==="(")i++;else if(u===")"&&(i--,!i)){n=s.index;break}}return e.slice(t,n)}const Xl=new RegExp(String.raw`(?<noncapturingStart>${Y2})|(?<capturingStart>\((?:\?<[^>]+>)?)|\\?.`,"gsu");function Z2(e,t){const r=(t==null?void 0:t.hiddenCaptures)??[];let n=(t==null?void 0:t.captureTransfers)??new Map;if(!/\(\?>/.test(e))return{pattern:e,captureTransfers:n,hiddenCaptures:r};const a="(?>",i="(?:(?=(",s=[0],u=[];let l=0,o=0,c=NaN,h;do{h=!1;let f=0,p=0,b=!1,E;for(Xl.lastIndex=Number.isNaN(c)?0:c+i.length;E=Xl.exec(e);){const{0:T,index:k,groups:{capturingStart:C,noncapturingStart:w}}=E;if(T==="[")f++;else if(f)T==="]"&&f--;else if(T===a&&!b)c=k,b=!0;else if(b&&w)p++;else if(C)b?p++:(l++,s.push(l+o));else if(T===")"&&b){if(!p){o++;const H=l+o;if(e=`${e.slice(0,c)}${i}${e.slice(c+a.length,k)}))<$$${H}>)${e.slice(k+1)}`,h=!0,u.push(H),W2(r,H),n.size){const z=new Map;n.forEach((O,U)=>{z.set(U>=H?U+1:U,O.map(q=>q>=H?q+1:q))}),n=z}break}p--}}}while(h);return r.push(...u),e=wu(e,String.raw`\\(?<backrefNum>[1-9]\d*)|<\$\$(?<wrappedBackrefNum>\d+)>`,({0:f,groups:{backrefNum:p,wrappedBackrefNum:b}})=>{if(p){const E=+p;if(E>s.length-1)throw new Error(`Backref "${f}" greater than number of captures`);return`\\${s[E]}`}return`\\${b}`},Pt.DEFAULT),{pattern:e,captureTransfers:n,hiddenCaptures:r}}const bh=String.raw`(?:[?*+]|\{\d+(?:,\d*)?\})`,Ls=new RegExp(String.raw`
|
|
35
|
+
\\(?: \d+
|
|
36
|
+
| c[A-Za-z]
|
|
37
|
+
| [gk]<[^>]+>
|
|
38
|
+
| [pPu]\{[^\}]+\}
|
|
39
|
+
| u[A-Fa-f\d]{4}
|
|
40
|
+
| x[A-Fa-f\d]{2}
|
|
41
|
+
)
|
|
42
|
+
| \((?: \? (?: [:=!>]
|
|
43
|
+
| <(?:[=!]|[^>]+>)
|
|
44
|
+
| [A-Za-z\-]+:
|
|
45
|
+
| \(DEFINE\)
|
|
46
|
+
))?
|
|
47
|
+
| (?<qBase>${bh})(?<qMod>[?+]?)(?<invalidQ>[?*+\{]?)
|
|
48
|
+
| \\?.
|
|
49
|
+
`.replace(/\s+/g,""),"gsu");function J2(e){if(!new RegExp(`${bh}\\+`).test(e))return{pattern:e};const t=[];let r=null,n=null,a="",i=0,s;for(Ls.lastIndex=0;s=Ls.exec(e);){const{0:u,index:l,groups:{qBase:o,qMod:c,invalidQ:h}}=s;if(u==="[")i||(n=l),i++;else if(u==="]")i?i--:n=null;else if(!i)if(c==="+"&&a&&!a.startsWith("(")){if(h)throw new Error(`Invalid quantifier "${u}"`);let f=-1;if(/^\{\d+\}$/.test(o))e=X2(e,l+o.length,c,"");else{if(a===")"||a==="]"){const p=a===")"?r:n;if(p===null)throw new Error(`Invalid unmatched "${a}"`);e=`${e.slice(0,p)}(?>${e.slice(p,l)}${o})${e.slice(l+u.length)}`}else e=`${e.slice(0,l-a.length)}(?>${a}${o})${e.slice(l+u.length)}`;f+=4}Ls.lastIndex+=f}else u[0]==="("?t.push(l):u===")"&&(r=t.length?t.pop():null);a=u}return{pattern:e}}const Mt=String.raw,e4=Mt`\\g<(?<gRNameOrNum>[^>&]+)&R=(?<gRDepth>[^>]+)>`,C0=Mt`\(\?R=(?<rDepth>[^\)]+)\)|${e4}`,as=Mt`\(\?<(?![=!])(?<captureName>[^>]+)>`,xh=Mt`${as}|(?<unnamed>\()(?!\?)`,an=new RegExp(Mt`${as}|${C0}|\(\?|\\?.`,"gsu"),Rs="Cannot use multiple overlapping recursions";function t4(e,t){const{hiddenCaptures:r,mode:n}={hiddenCaptures:[],mode:"plugin",...t};let a=(t==null?void 0:t.captureTransfers)??new Map;if(!new RegExp(C0,"su").test(e))return{pattern:e,captureTransfers:a,hiddenCaptures:r};if(n==="plugin"&&li(e,Mt`\(\?\(DEFINE\)`,Pt.DEFAULT))throw new Error("DEFINE groups cannot be used with recursion");const i=[],s=li(e,Mt`\\[1-9]`,Pt.DEFAULT),u=new Map,l=[];let o=!1,c=0,h=0,f;for(an.lastIndex=0;f=an.exec(e);){const{0:p,groups:{captureName:b,rDepth:E,gRNameOrNum:T,gRDepth:k}}=f;if(p==="[")c++;else if(c)p==="]"&&c--;else if(E){if(Ql(E),o)throw new Error(Rs);if(s)throw new Error(`${n==="external"?"Backrefs":"Numbered backrefs"} cannot be used with global recursion`);const C=e.slice(0,f.index),w=e.slice(an.lastIndex);if(li(w,C0,Pt.DEFAULT))throw new Error(Rs);const H=+E-1;e=Kl(C,w,H,!1,r,i,h),a=Jl(a,C,H,i.length,0,h);break}else if(T){Ql(k);let C=!1;for(const j of l)if(j.name===T||j.num===+T){if(C=!0,j.hasRecursedWithin)throw new Error(Rs);break}if(!C)throw new Error(Mt`Recursive \g cannot be used outside the referenced group "${n==="external"?T:Mt`\g<${T}&R=${k}>`}"`);const w=u.get(T),H=K2(e,w);if(s&&li(H,Mt`${as}|\((?!\?)`,Pt.DEFAULT))throw new Error(`${n==="external"?"Backrefs":"Numbered backrefs"} cannot be used with recursion of capturing groups`);const z=e.slice(w,f.index),O=H.slice(z.length+p.length),U=i.length,q=+k-1,G=Kl(z,O,q,!0,r,i,h);a=Jl(a,z,q,i.length-U,U,h);const P=e.slice(0,w),K=e.slice(w+H.length);e=`${P}${G}${K}`,an.lastIndex+=G.length-p.length-z.length-O.length,l.forEach(j=>j.hasRecursedWithin=!0),o=!0}else if(b)h++,u.set(String(h),an.lastIndex),u.set(b,an.lastIndex),l.push({num:h,name:b});else if(p[0]==="("){const C=p==="(";C&&(h++,u.set(String(h),an.lastIndex)),l.push(C?{num:h}:{})}else p===")"&&l.pop()}return r.push(...i),{pattern:e,captureTransfers:a,hiddenCaptures:r}}function Ql(e){const t=`Max depth must be integer between 2 and 100; used ${e}`;if(!/^[1-9]\d*$/.test(e))throw new Error(t);if(e=+e,e<2||e>100)throw new Error(t)}function Kl(e,t,r,n,a,i,s){const u=new Set;n&&gh(e+t,as,({groups:{captureName:o}})=>{u.add(o)},Pt.DEFAULT);const l=[r,n?u:null,a,i,s];return`${e}${Zl(`(?:${e}`,"forward",...l)}(?:)${Zl(`${t})`,"backward",...l)}${t}`}function Zl(e,t,r,n,a,i,s){const l=c=>t==="forward"?c+2:r-c+2-1;let o="";for(let c=0;c<r;c++){const h=l(c);o+=wu(e,Mt`${xh}|\\k<(?<backref>[^>]+)>`,({0:f,groups:{captureName:p,unnamed:b,backref:E}})=>{if(E&&n&&!n.has(E))return f;const T=`_$${h}`;if(b||p){const k=s+i.length+1;return i.push(k),r4(a,k),b?f:`(?<${p}${T}>`}return Mt`\k<${E}${T}>`},Pt.DEFAULT)}return o}function r4(e,t){for(let r=0;r<e.length;r++)e[r]>=t&&e[r]++}function Jl(e,t,r,n,a,i){if(e.size&&n){let s=0;gh(t,xh,()=>s++,Pt.DEFAULT);const u=i-s+a,l=new Map;return e.forEach((o,c)=>{const h=(n-s*r)/r,f=s*r,p=c>u+s?c+n:c,b=[];for(const E of o)if(E<=u)b.push(E);else if(E>u+s+h)b.push(E+n);else if(E<=u+s)for(let T=0;T<=r;T++)b.push(E+s*T);else for(let T=0;T<=r;T++)b.push(E+f+h*T);l.set(p,b)}),l}return e}var tt=String.fromCodePoint,pe=String.raw,Vt={},is=globalThis.RegExp;Vt.flagGroups=(()=>{try{new is("(?i:)")}catch{return!1}return!0})();Vt.unicodeSets=(()=>{try{new is("[[]]","v")}catch{return!1}return!0})();Vt.bugFlagVLiteralHyphenIsRange=Vt.unicodeSets?(()=>{try{new is(pe`[\d\-a]`,"v")}catch{return!0}return!1})():!1;Vt.bugNestedClassIgnoresNegation=Vt.unicodeSets&&new is("[[^a]]","v").test("a");function Mi(e,{enable:t,disable:r}){return{dotAll:!(r!=null&&r.dotAll)&&!!(t!=null&&t.dotAll||e.dotAll),ignoreCase:!(r!=null&&r.ignoreCase)&&!!(t!=null&&t.ignoreCase||e.ignoreCase)}}function Pa(e,t,r){return e.has(t)||e.set(t,r),e.get(t)}function S0(e,t){return eo[e]>=eo[t]}function n4(e,t){if(e==null)throw new Error(t??"Value expected");return e}var eo={ES2025:2025,ES2024:2024,ES2018:2018},a4={auto:"auto",ES2025:"ES2025",ES2024:"ES2024",ES2018:"ES2018"};function Eh(e={}){if({}.toString.call(e)!=="[object Object]")throw new Error("Unexpected options");if(e.target!==void 0&&!a4[e.target])throw new Error(`Unexpected target "${e.target}"`);const 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=Vt.flagGroups?"ES2025":Vt.unicodeSets?"ES2024":"ES2018"),t}var i4="[ -\r ]",s4=new Set([tt(304),tt(305)]),dr=pe`[\p{L}\p{M}\p{N}\p{Pc}]`;function yh(e){if(s4.has(e))return[e];const t=new Set,r=e.toLowerCase(),n=r.toUpperCase(),a=o4.get(r),i=u4.get(r),s=l4.get(r);return[...n].length===1&&t.add(n),s&&t.add(s),a&&t.add(a),t.add(r),i&&t.add(i),[...t]}var Au=new Map(`C Other
|
|
50
|
+
Cc Control cntrl
|
|
51
|
+
Cf Format
|
|
52
|
+
Cn Unassigned
|
|
53
|
+
Co Private_Use
|
|
54
|
+
Cs Surrogate
|
|
55
|
+
L Letter
|
|
56
|
+
LC Cased_Letter
|
|
57
|
+
Ll Lowercase_Letter
|
|
58
|
+
Lm Modifier_Letter
|
|
59
|
+
Lo Other_Letter
|
|
60
|
+
Lt Titlecase_Letter
|
|
61
|
+
Lu Uppercase_Letter
|
|
62
|
+
M Mark Combining_Mark
|
|
63
|
+
Mc Spacing_Mark
|
|
64
|
+
Me Enclosing_Mark
|
|
65
|
+
Mn Nonspacing_Mark
|
|
66
|
+
N Number
|
|
67
|
+
Nd Decimal_Number digit
|
|
68
|
+
Nl Letter_Number
|
|
69
|
+
No Other_Number
|
|
70
|
+
P Punctuation punct
|
|
71
|
+
Pc Connector_Punctuation
|
|
72
|
+
Pd Dash_Punctuation
|
|
73
|
+
Pe Close_Punctuation
|
|
74
|
+
Pf Final_Punctuation
|
|
75
|
+
Pi Initial_Punctuation
|
|
76
|
+
Po Other_Punctuation
|
|
77
|
+
Ps Open_Punctuation
|
|
78
|
+
S Symbol
|
|
79
|
+
Sc Currency_Symbol
|
|
80
|
+
Sk Modifier_Symbol
|
|
81
|
+
Sm Math_Symbol
|
|
82
|
+
So Other_Symbol
|
|
83
|
+
Z Separator
|
|
84
|
+
Zl Line_Separator
|
|
85
|
+
Zp Paragraph_Separator
|
|
86
|
+
Zs Space_Separator
|
|
87
|
+
ASCII
|
|
88
|
+
ASCII_Hex_Digit AHex
|
|
89
|
+
Alphabetic Alpha
|
|
90
|
+
Any
|
|
91
|
+
Assigned
|
|
92
|
+
Bidi_Control Bidi_C
|
|
93
|
+
Bidi_Mirrored Bidi_M
|
|
94
|
+
Case_Ignorable CI
|
|
95
|
+
Cased
|
|
96
|
+
Changes_When_Casefolded CWCF
|
|
97
|
+
Changes_When_Casemapped CWCM
|
|
98
|
+
Changes_When_Lowercased CWL
|
|
99
|
+
Changes_When_NFKC_Casefolded CWKCF
|
|
100
|
+
Changes_When_Titlecased CWT
|
|
101
|
+
Changes_When_Uppercased CWU
|
|
102
|
+
Dash
|
|
103
|
+
Default_Ignorable_Code_Point DI
|
|
104
|
+
Deprecated Dep
|
|
105
|
+
Diacritic Dia
|
|
106
|
+
Emoji
|
|
107
|
+
Emoji_Component EComp
|
|
108
|
+
Emoji_Modifier EMod
|
|
109
|
+
Emoji_Modifier_Base EBase
|
|
110
|
+
Emoji_Presentation EPres
|
|
111
|
+
Extended_Pictographic ExtPict
|
|
112
|
+
Extender Ext
|
|
113
|
+
Grapheme_Base Gr_Base
|
|
114
|
+
Grapheme_Extend Gr_Ext
|
|
115
|
+
Hex_Digit Hex
|
|
116
|
+
IDS_Binary_Operator IDSB
|
|
117
|
+
IDS_Trinary_Operator IDST
|
|
118
|
+
ID_Continue IDC
|
|
119
|
+
ID_Start IDS
|
|
120
|
+
Ideographic Ideo
|
|
121
|
+
Join_Control Join_C
|
|
122
|
+
Logical_Order_Exception LOE
|
|
123
|
+
Lowercase Lower
|
|
124
|
+
Math
|
|
125
|
+
Noncharacter_Code_Point NChar
|
|
126
|
+
Pattern_Syntax Pat_Syn
|
|
127
|
+
Pattern_White_Space Pat_WS
|
|
128
|
+
Quotation_Mark QMark
|
|
129
|
+
Radical
|
|
130
|
+
Regional_Indicator RI
|
|
131
|
+
Sentence_Terminal STerm
|
|
132
|
+
Soft_Dotted SD
|
|
133
|
+
Terminal_Punctuation Term
|
|
134
|
+
Unified_Ideograph UIdeo
|
|
135
|
+
Uppercase Upper
|
|
136
|
+
Variation_Selector VS
|
|
137
|
+
White_Space space
|
|
138
|
+
XID_Continue XIDC
|
|
139
|
+
XID_Start XIDS`.split(/\s/).map(e=>[ns(e),e])),u4=new Map([["s",tt(383)],[tt(383),"s"]]),l4=new Map([[tt(223),tt(7838)],[tt(107),tt(8490)],[tt(229),tt(8491)],[tt(969),tt(8486)]]),o4=new Map([Rr(453),Rr(456),Rr(459),Rr(498),...Ds(8072,8079),...Ds(8088,8095),...Ds(8104,8111),Rr(8124),Rr(8140),Rr(8188)]),c4=new Map([["alnum",pe`[\p{Alpha}\p{Nd}]`],["alpha",pe`\p{Alpha}`],["ascii",pe`\p{ASCII}`],["blank",pe`[\p{Zs}\t]`],["cntrl",pe`\p{Cc}`],["digit",pe`\p{Nd}`],["graph",pe`[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]`],["lower",pe`\p{Lower}`],["print",pe`[[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]\p{Zs}]`],["punct",pe`[\p{P}\p{S}]`],["space",pe`\p{space}`],["upper",pe`\p{Upper}`],["word",pe`[\p{Alpha}\p{M}\p{Nd}\p{Pc}]`],["xdigit",pe`\p{AHex}`]]);function h4(e,t){const r=[];for(let n=e;n<=t;n++)r.push(n);return r}function Rr(e){const t=tt(e);return[t.toLowerCase(),t]}function Ds(e,t){return h4(e,t).map(r=>Rr(r))}var Th=new Set(["Lower","Lowercase","Upper","Uppercase","Ll","Lowercase_Letter","Lt","Titlecase_Letter","Lu","Uppercase_Letter"]);function d4(e,t){const r={accuracy:"default",asciiWordBoundaries:!1,avoidSubclass:!1,bestEffortTarget:"ES2025",...t};vh(e);const n={accuracy:r.accuracy,asciiWordBoundaries:r.asciiWordBoundaries,avoidSubclass:r.avoidSubclass,flagDirectivesByAlt:new Map,jsGroupNameMap:new Map,minTargetEs2024:S0(r.bestEffortTarget,"ES2024"),passedLookbehind:!1,strategy:null,subroutineRefMap:new Map,supportedGNodes:new Set,digitIsAscii:e.flags.digitIsAscii,spaceIsAscii:e.flags.spaceIsAscii,wordIsAscii:e.flags.wordIsAscii};Aa(e,f4,n);const a={dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},i={currentFlags:a,prevFlags:null,globalFlags:a,groupOriginByCopy:new Map,groupsByName:new Map,multiplexCapturesToLeftByRef:new Map,openRefs:new Map,reffedNodesByReferencer:new Map,subroutineRefMap:n.subroutineRefMap};Aa(e,m4,i);const s={groupsByName:i.groupsByName,highestOrphanBackref:0,numCapturesToLeft:0,reffedNodesByReferencer:i.reffedNodesByReferencer};return Aa(e,p4,s),e._originMap=i.groupOriginByCopy,e._strategy=n.strategy,e}var f4={AbsenceFunction({node:e,parent:t,replaceWith:r}){const{body:n,kind:a}=e;if(a==="repeater"){const i=Gt();i.body[0].body.push(cn({negate:!0,body:n}),Fn("Any"));const s=Gt();s.body[0].body.push(fh("greedy",0,1/0,i)),r(Ve(s,t),{traverse:!0})}else throw new Error('Unsupported absence function "(?~|"')},Alternative:{enter({node:e,parent:t,key:r},{flagDirectivesByAlt:n}){const a=e.body.filter(i=>i.kind==="flags");for(let i=r+1;i<t.body.length;i++){const s=t.body[i];Pa(n,s,[]).push(...a)}},exit({node:e},{flagDirectivesByAlt:t}){var r;if((r=t.get(e))!=null&&r.length){const n=wh(t.get(e));if(n){const a=Gt({flags:n});a.body[0].body=e.body,e.body=[Ve(a,e)]}}}},Assertion({node:e,parent:t,key:r,container:n,root:a,remove:i,replaceWith:s},u){const{kind:l,negate:o}=e,{asciiWordBoundaries:c,avoidSubclass:h,supportedGNodes:f,wordIsAscii:p}=u;if(l==="text_segment_boundary")throw new Error(`Unsupported text segment boundary "\\${o?"Y":"y"}"`);if(l==="line_end")s(Ve(cn({body:[xn({body:[k0("string_end")]}),xn({body:[rs(10)]})]}),t));else if(l==="line_start")s(Ve(fr(pe`(?<=\A|\n(?!\z))`,{skipLookbehindValidation:!0}),t));else if(l==="search_start")if(f.has(e))a.flags.sticky=!0,i();else{const b=n[r-1];if(b&&T4(b))s(Ve(cn({negate:!0}),t));else{if(h)throw new Error(pe`Uses "\G" in a way that requires a subclass`);s(Dr(k0("string_start"),t)),u.strategy="clip_search"}}else if(!(l==="string_end"||l==="string_start"))if(l==="string_end_newline")s(Ve(fr(pe`(?=\n?\z)`),t));else if(l==="word_boundary"){if(!p&&!c){const b=`(?:(?<=${dr})(?!${dr})|(?<!${dr})(?=${dr}))`,E=`(?:(?<=${dr})(?=${dr})|(?<!${dr})(?!${dr}))`;s(Ve(fr(o?E:b),t))}}else throw new Error(`Unexpected assertion kind "${l}"`)},Backreference({node:e},{jsGroupNameMap:t}){let{ref:r}=e;typeof r=="string"&&!Ms(r)&&(r=Os(r,t),e.ref=r)},CapturingGroup({node:e},{jsGroupNameMap:t,subroutineRefMap:r}){let{name:n}=e;n&&!Ms(n)&&(n=Os(n,t),e.name=n),r.set(e.number,e),n&&r.set(n,e)},CharacterClassRange({node:e,parent:t,replaceWith:r}){if(t.kind==="intersection"){const n=Ci({body:[e]});r(Ve(n,t),{traverse:!0})}},CharacterSet({node:e,parent:t,replaceWith:r},{accuracy:n,minTargetEs2024:a,digitIsAscii:i,spaceIsAscii:s,wordIsAscii:u}){const{kind:l,negate:o,value:c}=e;if(i&&(l==="digit"||c==="digit")){r(Dr(A0("digit",{negate:o}),t));return}if(s&&(l==="space"||c==="space")){r(Ve(Ps(fr(i4),o),t));return}if(u&&(l==="word"||c==="word")){r(Dr(A0("word",{negate:o}),t));return}if(l==="any")r(Dr(Fn("Any"),t));else if(l==="digit")r(Dr(Fn("Nd",{negate:o}),t));else if(l!=="dot")if(l==="text_segment"){if(n==="strict")throw new Error(pe`Use of "\X" requires non-strict accuracy`);const h="\\p{Emoji}(?:\\p{EMod}|\\uFE0F\\u20E3?|[\\x{E0020}-\\x{E007E}]+\\x{E007F})?",f=pe`\p{RI}{2}|${h}(?:\u200D${h})*`;r(Ve(fr(pe`(?>\r\n|${a?pe`\p{RGI_Emoji}`:f}|\P{M}\p{M}*)`,{skipPropertyNameValidation:!0}),t))}else if(l==="hex")r(Dr(Fn("AHex",{negate:o}),t));else if(l==="newline")r(Ve(fr(o?`[^
|
|
140
|
+
]`:`(?>\r
|
|
141
|
+
?|[
|
|
142
|
+
\v\f
\u2028\u2029])`),t));else if(l==="posix")if(!a&&(c==="graph"||c==="print")){if(n==="strict")throw new Error(`POSIX class "${c}" requires min target ES2024 or non-strict accuracy`);let h={graph:"!-~",print:" -~"}[c];o&&(h=`\0-${tt(h.codePointAt(0)-1)}${tt(h.codePointAt(2)+1)}-`),r(Ve(fr(`[${h}]`),t))}else r(Ve(Ps(fr(c4.get(c)),o),t));else if(l==="property")Au.has(ns(c))||(e.key="sc");else if(l==="space")r(Dr(Fn("space",{negate:o}),t));else if(l==="word")r(Ve(Ps(fr(dr),o),t));else throw new Error(`Unexpected character set kind "${l}"`)},Directive({node:e,parent:t,root:r,remove:n,replaceWith:a,removeAllPrevSiblings:i,removeAllNextSiblings:s}){const{kind:u,flags:l}=e;if(u==="flags")if(!l.enable&&!l.disable)n();else{const o=Gt({flags:l});o.body[0].body=s(),a(Ve(o,t),{traverse:!0})}else if(u==="keep"){const o=r.body[0],h=r.body.length===1&&ch(o,{type:"Group"})&&o.body[0].body.length===1?o.body[0]:r;if(t.parent!==h||h.body.length>1)throw new Error(pe`Uses "\K" in a way that's unsupported`);const f=cn({behind:!0});f.body[0].body=i(),a(Ve(f,t))}else throw new Error(`Unexpected directive kind "${u}"`)},Flags({node:e,parent:t}){if(e.posixIsAscii)throw new Error('Unsupported flag "P"');if(e.textSegmentMode==="word")throw new Error('Unsupported flag "y{w}"');["digitIsAscii","extended","posixIsAscii","spaceIsAscii","wordIsAscii","textSegmentMode"].forEach(r=>delete e[r]),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;const{enable:t,disable:r}=e.flags;t!=null&&t.extended&&delete t.extended,r!=null&&r.extended&&delete r.extended,t!=null&&t.dotAll&&(r!=null&&r.dotAll)&&delete t.dotAll,t!=null&&t.ignoreCase&&(r!=null&&r.ignoreCase)&&delete t.ignoreCase,t&&!Object.keys(t).length&&delete e.flags.enable,r&&!Object.keys(r).length&&delete e.flags.disable,!e.flags.enable&&!e.flags.disable&&delete e.flags},LookaroundAssertion({node:e},t){const{kind:r}=e;r==="lookbehind"&&(t.passedLookbehind=!0)},NamedCallout({node:e,parent:t,replaceWith:r}){const{kind:n}=e;if(n==="fail")r(Ve(cn({negate:!0}),t));else throw new Error(`Unsupported named callout "(*${n.toUpperCase()}"`)},Quantifier({node:e}){if(e.body.type==="Quantifier"){const t=Gt();t.body[0].body.push(e.body),e.body=Ve(t,e)}},Regex:{enter({node:e},{supportedGNodes:t}){const r=[];let n=!1,a=!1;for(const i of e.body)if(i.body.length===1&&i.body[0].kind==="search_start")i.body.pop();else{const s=Ch(i.body);s?(n=!0,Array.isArray(s)?r.push(...s):r.push(s)):a=!0}n&&!a&&r.forEach(i=>t.add(i))},exit(e,{accuracy:t,passedLookbehind:r,strategy:n}){if(t==="strict"&&r&&n)throw new Error(pe`Uses "\G" in a way that requires non-strict accuracy`)}},Subroutine({node:e},{jsGroupNameMap:t}){let{ref:r}=e;typeof r=="string"&&!Ms(r)&&(r=Os(r,t),e.ref=r)}},m4={Backreference({node:e},{multiplexCapturesToLeftByRef:t,reffedNodesByReferencer:r}){const{orphan:n,ref:a}=e;n||r.set(e,[...t.get(a).map(({node:i})=>i)])},CapturingGroup:{enter({node:e,parent:t,replaceWith:r,skip:n},{groupOriginByCopy:a,groupsByName:i,multiplexCapturesToLeftByRef:s,openRefs:u,reffedNodesByReferencer:l}){const o=a.get(e);if(o&&u.has(e.number)){const h=Dr(to(e.number),t);l.set(h,u.get(e.number)),r(h);return}u.set(e.number,e),s.set(e.number,[]),e.name&&Pa(s,e.name,[]);const c=s.get(e.name??e.number);for(let h=0;h<c.length;h++){const f=c[h];if(o===f.node||o&&o===f.origin||e===f.origin){c.splice(h,1);break}}if(s.get(e.number).push({node:e,origin:o}),e.name&&s.get(e.name).push({node:e,origin:o}),e.name){const h=Pa(i,e.name,new Map);let f=!1;if(o)f=!0;else for(const p of h.values())if(!p.hasDuplicateNameToRemove){f=!0;break}i.get(e.name).set(e,{node:e,hasDuplicateNameToRemove:f})}},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=Mi(t.currentFlags,e.flags))},exit(e,t){t.currentFlags=t.prevFlags}},Subroutine({node:e,parent:t,replaceWith:r},n){const{isRecursive:a,ref:i}=e;if(a){let c=t;for(;(c=c.parent)&&!(c.type==="CapturingGroup"&&(c.name===i||c.number===i)););n.reffedNodesByReferencer.set(e,c);return}const s=n.subroutineRefMap.get(i),u=i===0,l=u?to(0):kh(s,n.groupOriginByCopy,null);let o=l;if(!u){const c=wh(x4(s,f=>f.type==="Group"&&!!f.flags)),h=c?Mi(n.globalFlags,c):n.globalFlags;g4(h,n.currentFlags)||(o=Gt({flags:E4(h)}),o.body[0].body.push(l))}r(Ve(o,t),{traverse:!u})}},p4={Backreference({node:e,parent:t,replaceWith:r},n){if(e.orphan){n.highestOrphanBackref=Math.max(n.highestOrphanBackref,e.ref);return}const i=n.reffedNodesByReferencer.get(e).filter(s=>b4(s,e));if(!i.length)r(Ve(cn({negate:!0}),t));else if(i.length>1){const s=Gt({atomic:!0,body:i.reverse().map(u=>xn({body:[w0(u.number)]}))});r(Ve(s,t))}else e.ref=i[0].number},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){const r=Math.max(t.highestOrphanBackref-t.numCapturesToLeft,0);for(let n=0;n<r;n++){const a=dh();e.body.at(-1).body.push(a)}}},Subroutine({node:e},t){!e.isRecursive||e.ref===0||(e.ref=t.reffedNodesByReferencer.get(e).number)}};function vh(e){Aa(e,{"*"({node:t,parent:r}){t.parent=r}})}function g4(e,t){return e.dotAll===t.dotAll&&e.ignoreCase===t.ignoreCase}function b4(e,t){let r=t;do{if(r.type==="Regex")return!1;if(r.type==="Alternative")continue;if(r===e)return!1;const n=Ah(r.parent);for(const a of n){if(a===r)break;if(a===e||Sh(a,e))return!0}}while(r=r.parent);throw new Error("Unexpected path")}function kh(e,t,r,n){const a=Array.isArray(e)?[]:{};for(const[i,s]of Object.entries(e))i==="parent"?a.parent=Array.isArray(r)?n:r:s&&typeof s=="object"?a[i]=kh(s,t,a,r):(i==="type"&&s==="CapturingGroup"&&t.set(a,t.get(e)??e),a[i]=s);return a}function to(e){const t=mh(e);return t.isRecursive=!0,t}function x4(e,t){const r=[];for(;e=e.parent;)(!t||t(e))&&r.push(e);return r}function Os(e,t){if(t.has(e))return t.get(e);const r=`$${t.size}_${e.replace(/^[^$_\p{IDS}]|[^$\u200C\u200D\p{IDC}]/ug,"_")}`;return t.set(e,r),r}function wh(e){const t=["dotAll","ignoreCase"],r={enable:{},disable:{}};return e.forEach(({flags:n})=>{t.forEach(a=>{var i,s;(i=n.enable)!=null&&i[a]&&(delete r.disable[a],r.enable[a]=!0),(s=n.disable)!=null&&s[a]&&(r.disable[a]=!0)})}),Object.keys(r.enable).length||delete r.enable,Object.keys(r.disable).length||delete r.disable,r.enable||r.disable?r:null}function E4({dotAll:e,ignoreCase:t}){const r={};return(e||t)&&(r.enable={},e&&(r.enable.dotAll=!0),t&&(r.enable.ignoreCase=!0)),(!e||!t)&&(r.disable={},!e&&(r.disable.dotAll=!0),!t&&(r.disable.ignoreCase=!0)),r}function Ah(e){if(!e)throw new Error("Node expected");const{body:t}=e;return Array.isArray(t)?t:t?[t]:null}function Ch(e){const t=e.find(r=>r.kind==="search_start"||v4(r,{negate:!1})||!y4(r));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"){const r=[];for(const n of t.body){const a=Ch(n.body);if(!a)return null;Array.isArray(a)?r.push(...a):r.push(a)}return r}return null}function Sh(e,t){const r=Ah(e)??[];for(const n of r)if(n===t||Sh(n,t))return!0;return!1}function y4({type:e}){return e==="Assertion"||e==="Directive"||e==="LookaroundAssertion"}function T4(e){const t=["Character","CharacterClass","CharacterSet"];return t.includes(e.type)||e.type==="Quantifier"&&e.min&&t.includes(e.body.type)}function v4(e,t){const r={negate:null,...t};return e.type==="LookaroundAssertion"&&(r.negate===null||e.negate===r.negate)&&e.body.length===1&&ch(e.body[0],{type:"Assertion",kind:"search_start"})}function Ms(e){return/^[$_\p{IDS}][$\u200C\u200D\p{IDC}]*$/u.test(e)}function fr(e,t){const n=hh(e,{...t,unicodePropertyMap:Au}).body;return n.length>1||n[0].body.length>1?Gt({body:n}):n[0].body[0]}function Ps(e,t){return e.negate=t,e}function Dr(e,t){return e.parent=t,e}function Ve(e,t){return vh(e),e.parent=t,e}function k4(e,t){const r=Eh(t),n=S0(r.target,"ES2024"),a=S0(r.target,"ES2025"),i=r.rules.recursionLimit;if(!Number.isInteger(i)||i<2||i>20)throw new Error("Invalid recursionLimit; use 2-20");let s=null,u=null;if(!a){const p=[e.flags.ignoreCase];Aa(e,w4,{getCurrentModI:()=>p.at(-1),popModI(){p.pop()},pushModI(b){p.push(b)},setHasCasedChar(){p.at(-1)?s=!0:u=!0}})}const l={dotAll:e.flags.dotAll,ignoreCase:!!((e.flags.ignoreCase||s)&&!u)};let o=e;const c={accuracy:r.accuracy,appliedGlobalFlags:l,captureMap:new Map,currentFlags:{dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},inCharClass:!1,lastNode:o,originMap:e._originMap,recursionLimit:i,useAppliedIgnoreCase:!!(!a&&s&&u),useFlagMods:a,useFlagV:n,verbose:r.verbose};function h(p){return c.lastNode=o,o=p,n4(A4[p.type],`Unexpected node type "${p.type}"`)(p,c,h)}const f={pattern:e.body.map(h).join("|"),flags:h(e.flags),options:{...e.options}};return n||(delete f.options.force.v,f.options.disable.v=!0,f.options.unicodeSetsPlugin=null),f._captureTransfers=new Map,f._hiddenCaptures=[],c.captureMap.forEach((p,b)=>{p.hidden&&f._hiddenCaptures.push(b),p.transferTo&&Pa(f._captureTransfers,p.transferTo,[]).push(b)}),f}var w4={"*":{enter({node:e},t){if(no(e)){const r=t.getCurrentModI();t.pushModI(e.flags?Mi({ignoreCase:r},e.flags).ignoreCase:r)}},exit({node:e},t){no(e)&&t.popModI()}},Backreference(e,t){t.setHasCasedChar()},Character({node:e},t){Cu(tt(e.value))&&t.setHasCasedChar()},CharacterClassRange({node:e,skip:t},r){t(),Ih(e,{firstOnly:!0}).length&&r.setHasCasedChar()},CharacterSet({node:e},t){e.kind==="property"&&Th.has(e.value)&&t.setHasCasedChar()}},A4={Alternative({body:e},t,r){return e.map(r).join("")},Assertion({kind:e,negate:t}){if(e==="string_end")return"$";if(e==="string_start")return"^";if(e==="word_boundary")return t?pe`\B`:pe`\b`;throw new Error(`Unexpected assertion kind "${e}"`)},Backreference({ref:e},t){if(typeof e!="number")throw new Error("Unexpected named backref in transformed AST");if(!t.useFlagMods&&t.accuracy==="strict"&&t.currentFlags.ignoreCase&&!t.captureMap.get(e).ignoreCase)throw new Error("Use of case-insensitive backref to case-sensitive group requires target ES2025 or non-strict accuracy");return"\\"+e},CapturingGroup(e,t,r){const{body:n,name:a,number:i}=e,s={ignoreCase:t.currentFlags.ignoreCase},u=t.originMap.get(e);return u&&(s.hidden=!0,i>u.number&&(s.transferTo=u.number)),t.captureMap.set(i,s),`(${a?`?<${a}>`:""}${n.map(r).join("|")})`},Character({value:e},t){const r=tt(e),n=Ln(e,{escDigit:t.lastNode.type==="Backreference",inCharClass:t.inCharClass,useFlagV:t.useFlagV});if(n!==r)return n;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase&&Cu(r)){const a=yh(r);return t.inCharClass?a.join(""):a.length>1?`[${a.join("")}]`:a[0]}return r},CharacterClass(e,t,r){const{kind:n,negate:a,parent:i}=e;let{body:s}=e;if(n==="intersection"&&!t.useFlagV)throw new Error("Use of character class intersection requires min target ES2024");Vt.bugFlagVLiteralHyphenIsRange&&t.useFlagV&&s.some(ao)&&(s=[rs(45),...s.filter(o=>!ao(o))]);const u=()=>`[${a?"^":""}${s.map(r).join(n==="intersection"?"&&":"")}]`;if(!t.inCharClass){if((!t.useFlagV||Vt.bugNestedClassIgnoresNegation)&&!a){const c=s.filter(h=>h.type==="CharacterClass"&&h.kind==="union"&&h.negate);if(c.length){const h=Gt(),f=h.body[0];return h.parent=i,f.parent=h,s=s.filter(p=>!c.includes(p)),e.body=s,s.length?(e.parent=f,f.body.push(e)):h.body.pop(),c.forEach(p=>{const b=xn({body:[p]});p.parent=b,b.parent=h,h.body.push(b)}),r(h)}}t.inCharClass=!0;const o=u();return t.inCharClass=!1,o}const l=s[0];if(n==="union"&&!a&&l&&((!t.useFlagV||!t.verbose)&&i.kind==="union"&&!(Vt.bugFlagVLiteralHyphenIsRange&&t.useFlagV)||!t.verbose&&i.kind==="intersection"&&s.length===1&&l.type!=="CharacterClassRange"))return s.map(r).join("");if(!t.useFlagV&&i.type==="CharacterClass")throw new Error("Uses nested character class in a way that requires min target ES2024");return u()},CharacterClassRange(e,t){const r=e.min.value,n=e.max.value,a={escDigit:!1,inCharClass:!0,useFlagV:t.useFlagV},i=Ln(r,a),s=Ln(n,a),u=new Set;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase){const l=Ih(e);N4(l).forEach(c=>{u.add(Array.isArray(c)?`${Ln(c[0],a)}-${Ln(c[1],a)}`:Ln(c,a))})}return`${i}-${s}${[...u].join("")}`},CharacterSet({kind:e,negate:t,value:r,key:n},a){if(e==="dot")return a.currentFlags.dotAll?a.appliedGlobalFlags.dotAll||a.useFlagMods?".":"[^]":pe`[^\n]`;if(e==="digit")return t?pe`\D`:pe`\d`;if(e==="property"){if(a.useAppliedIgnoreCase&&a.currentFlags.ignoreCase&&Th.has(r))throw new Error(`Unicode property "${r}" can't be case-insensitive when other chars have specific case`);return`${t?pe`\P`:pe`\p`}{${n?`${n}=`:""}${r}}`}if(e==="word")return t?pe`\W`:pe`\w`;throw new 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:r,parent:n},a,i){const s=a.currentFlags;r&&(a.currentFlags=Mi(s,r));const u=t.map(i).join("|"),l=!a.verbose&&t.length===1&&n.type!=="Quantifier"&&!e&&(!a.useFlagMods||!r)?u:`(?${L4(e,r,a.useFlagMods)}${u})`;return a.currentFlags=s,l},LookaroundAssertion({body:e,kind:t,negate:r},n,a){return`(?${`${t==="lookahead"?"":"<"}${r?"!":"="}`}${e.map(a).join("|")})`},Quantifier(e,t,r){return r(e.body)+R4(e)},Subroutine({isRecursive:e,ref:t},r){if(!e)throw new Error("Unexpected non-recursive subroutine in transformed AST");const n=r.recursionLimit;return t===0?`(?R=${n})`:pe`\g<${t}&R=${n}>`}},C4=new Set(["$","(",")","*","+",".","?","[","\\","]","^","{","|","}"]),S4=new Set(["-","\\","]","^","["]),I4=new Set(["(",")","-","/","[","\\","]","^","{","|","}","!","#","$","%","&","*","+",",",".",":",";","<","=",">","?","@","`","~"]),ro=new Map([[9,pe`\t`],[10,pe`\n`],[11,pe`\v`],[12,pe`\f`],[13,pe`\r`],[8232,pe`\u2028`],[8233,pe`\u2029`],[65279,pe`\uFEFF`]]),_4=new RegExp("^\\p{Cased}$","u");function Cu(e){return _4.test(e)}function Ih(e,t){const r=!!(t!=null&&t.firstOnly),n=e.min.value,a=e.max.value,i=[];if(n<65&&(a===65535||a>=131071)||n===65536&&a>=131071)return i;for(let s=n;s<=a;s++){const u=tt(s);if(!Cu(u))continue;const l=yh(u).filter(o=>{const c=o.codePointAt(0);return c<n||c>a});if(l.length&&(i.push(...l),r))break}return i}function Ln(e,{escDigit:t,inCharClass:r,useFlagV:n}){if(ro.has(e))return ro.get(e);if(e<32||e>126&&e<160||e>262143||t&&D4(e))return e>255?`\\u{${e.toString(16).toUpperCase()}}`:`\\x${e.toString(16).toUpperCase().padStart(2,"0")}`;const a=r?n?I4:S4:C4,i=tt(e);return(a.has(i)?"\\":"")+i}function N4(e){const t=e.map(a=>a.codePointAt(0)).sort((a,i)=>a-i),r=[];let n=null;for(let a=0;a<t.length;a++)t[a+1]===t[a]+1?n??(n=t[a]):n===null?r.push(t[a]):(r.push([n,t[a]]),n=null);return r}function L4(e,t,r){if(e)return">";let n="";if(t&&r){const{enable:a,disable:i}=t;n=(a!=null&&a.ignoreCase?"i":"")+(a!=null&&a.dotAll?"s":"")+(i?"-":"")+(i!=null&&i.ignoreCase?"i":"")+(i!=null&&i.dotAll?"s":"")}return`${n}:`}function R4({kind:e,max:t,min:r}){let n;return!r&&t===1?n="?":!r&&t===1/0?n="*":r===1&&t===1/0?n="+":r===t?n=`{${r}}`:n=`{${r},${t===1/0?"":t}}`,n+{greedy:"",lazy:"?",possessive:"+"}[e]}function no({type:e}){return e==="CapturingGroup"||e==="Group"||e==="LookaroundAssertion"}function D4(e){return e>47&&e<58}function ao({type:e,value:t}){return e==="Character"&&t===45}var Fr,gr,mn,Hr,pn,qa,I0,qr,O4=(qr=class extends RegExp{constructor(r,n,a){var t=(...MS)=>(super(...MS),Sr(this,qa),Sr(this,Fr,new Map),Sr(this,gr,null),Sr(this,mn),Sr(this,Hr,null),Sr(this,pn,null),Ae(this,"rawOptions",{}),this);const i=!!(a!=null&&a.lazyCompile);if(r instanceof RegExp){if(a)throw new Error("Cannot provide options when copying a regexp");const s=r;t(s,n),qt(this,mn,s.source),s instanceof qr&&(qt(this,Fr,ft(s,Fr)),qt(this,Hr,ft(s,Hr)),qt(this,pn,ft(s,pn)),this.rawOptions=s.rawOptions)}else{const s={hiddenCaptures:[],strategy:null,transfers:[],...a};t(i?"":r,n),qt(this,mn,r),qt(this,Fr,P4(s.hiddenCaptures,s.transfers)),qt(this,pn,s.strategy),this.rawOptions=a??{}}i||qt(this,gr,this)}get source(){return ft(this,mn)||"(?:)"}exec(r){if(!ft(this,gr)){const{lazyCompile:i,...s}=this.rawOptions;qt(this,gr,new qr(ft(this,mn),this.flags,s))}const n=this.global||this.sticky,a=this.lastIndex;if(ft(this,pn)==="clip_search"&&n&&a){this.lastIndex=0;const i=ii(this,qa,I0).call(this,r.slice(a));return i&&(M4(i,a,r,this.hasIndices),this.lastIndex+=a),i}return ii(this,qa,I0).call(this,r)}},Fr=new WeakMap,gr=new WeakMap,mn=new WeakMap,Hr=new WeakMap,pn=new WeakMap,qa=new WeakSet,I0=function(r){ft(this,gr).lastIndex=this.lastIndex;const n=Dl(qr.prototype,this,"exec").call(ft(this,gr),r);if(this.lastIndex=ft(this,gr).lastIndex,!n||!ft(this,Fr).size)return n;const a=[...n];n.length=1;let i;this.hasIndices&&(i=[...n.indices],n.indices.length=1);const s=[0];for(let u=1;u<a.length;u++){const{hidden:l,transferTo:o}=ft(this,Fr).get(u)??{};if(l?s.push(null):(s.push(n.length),n.push(a[u]),this.hasIndices&&n.indices.push(i[u])),o&&a[u]!==void 0){const c=s[o];if(!c)throw new Error(`Invalid capture transfer to "${c}"`);if(n[c]=a[u],this.hasIndices&&(n.indices[c]=i[u]),n.groups){ft(this,Hr)||qt(this,Hr,B4(this.source));const h=ft(this,Hr).get(o);h&&(n.groups[h]=a[u],this.hasIndices&&(n.indices.groups[h]=i[u]))}}}return n},qr);function M4(e,t,r,n){if(e.index+=t,e.input=r,n){const a=e.indices;for(let s=0;s<a.length;s++){const u=a[s];u&&(a[s]=[u[0]+t,u[1]+t])}const i=a.groups;i&&Object.keys(i).forEach(s=>{const u=i[s];u&&(i[s]=[u[0]+t,u[1]+t])})}}function P4(e,t){const r=new Map;for(const n of e)r.set(n,{hidden:!0});for(const[n,a]of t)for(const i of a)Pa(r,i,{}).transferTo=n;return r}function B4(e){const t=/(?<capture>\((?:\?<(?![=!])(?<name>[^>]+)>|(?!\?)))|\\?./gsu,r=new Map;let n=0,a=0,i;for(;i=t.exec(e);){const{0:s,groups:{capture:u,name:l}}=i;s==="["?n++:n?s==="]"&&n--:u&&(a++,l&&r.set(a,l))}return r}function F4(e,t){const r=H4(e,t);return r.options?new O4(r.pattern,r.flags,r.options):new RegExp(r.pattern,r.flags)}function H4(e,t){const r=Eh(t),n=hh(e,{flags:r.flags,normalizeUnknownPropertyNames:!0,rules:{captureGroup:r.rules.captureGroup,singleline:r.rules.singleline},skipBackrefValidation:r.rules.allowOrphanBackrefs,unicodePropertyMap:Au}),a=d4(n,{accuracy:r.accuracy,asciiWordBoundaries:r.rules.asciiWordBoundaries,avoidSubclass:r.avoidSubclass,bestEffortTarget:r.target}),i=k4(a,r),s=t4(i.pattern,{captureTransfers:i._captureTransfers,hiddenCaptures:i._hiddenCaptures,mode:"external"}),u=J2(s.pattern),l=Z2(u.pattern,{captureTransfers:s.captureTransfers,hiddenCaptures:s.hiddenCaptures}),o={pattern:l.pattern,flags:`${r.hasIndices?"d":""}${r.global?"g":""}${i.flags}${i.options.disable.v?"u":"v"}`};if(r.avoidSubclass){if(r.lazyCompileLength!==1/0)throw new Error("Lazy compilation requires subclass")}else{const c=l.hiddenCaptures.sort((b,E)=>b-E),h=Array.from(l.captureTransfers),f=a._strategy,p=o.pattern.length>=r.lazyCompileLength;(c.length||h.length||f||p)&&(o.options={...c.length&&{hiddenCaptures:c},...h.length&&{transfers:h},...f&&{strategy:f},...p&&{lazyCompile:p}})}return o}function z4(e,t){return F4(e,{global:!0,hasIndices:!0,lazyCompileLength:3e3,rules:{allowOrphanBackrefs:!0,asciiWordBoundaries:!0,captureGroup:!0,recursionLimit:5,singleline:!0},...t})}function $4(e={}){const t={target:"auto",cache:new Map,...e};return t.regexConstructor||(t.regexConstructor=r=>z4(r,{target:t.target})),{createScanner(r){return new e2(r,t)},createString:r2}}var U4=$4({forgiving:!0}),q4=Object.fromEntries(Xp.flatMap(e=>{var t;return((t=e.aliases)!=null?t:[]).map(r=>[r,e.id])})),Si=new Set(Object.keys(Yp)),io=e=>{let t=e.trim().toLowerCase();return q4[t]||(Si.has(t),t)},Bs=new Map,j4=3e5,G4=5e3,V4=64,Er=new Map,_0=0,Y4=(e,t)=>{let r=t.tokens.length+Math.ceil(e.length/V4);for(let n of t.tokens)r+=n.length;return r},so=e=>{let t=Er.get(e);return t&&(Er.delete(e),Er.set(e,t)),t==null?void 0:t.result},uo=e=>{let t=Er.get(e);t&&(Er.delete(e),_0-=t.cost)},W4=(e,t)=>{uo(e);let r=Y4(e,t);for(Er.set(e,{cost:r,result:t}),_0+=r;(_0>j4||Er.size>G4)&&Er.size>1;)uo(Er.keys().next().value)},N0=new Map,X4=4,Q4=(e,t)=>{let r=N0.get(e);if(!r)return;let n=r.findIndex(a=>t.startsWith(a.prefix));return n===-1?void 0:r.splice(n,1)[0]},lo=(e,t)=>{let r=N0.get(e);r||(r=[],N0.set(e,r)),r.unshift(t),r.length>X4&&r.pop()},oo=(e,t)=>{if(t!==0)for(let r of e)for(let n of r)n.offset+=t},K4=(e,t,r,n,a)=>{let i=Q4(r,t),s=i?i.prefix:"",u=i?i.rows:[],l=i==null?void 0:i.grammarState,o=t.lastIndexOf(`
|
|
143
|
+
`)+1;if(o>s.length){let h=e.codeToTokens(t.slice(s.length,o),{lang:n,themes:a,grammarState:l}),f=h.tokens;f.pop(),oo(f,s.length),u=u.concat(f),l=h.grammarState,s=t.slice(0,o),lo(r,{grammarState:l,prefix:s,rows:u})}else i&&lo(r,i);let c=e.codeToTokens(t.slice(o),{lang:n,themes:a,grammarState:l});return oo(c.tokens,o),{...c,tokens:u.concat(c.tokens)}},Pi=e=>{var t;return typeof e=="string"?e:(t=e.name)!=null?t:"custom"},_h=(e,t)=>`${e}-${Pi(t[0])}-${Pi(t[1])}`,Z4=(e,t,r)=>`${t}:${r[0]}:${r[1]}
|
|
144
|
+
${e}`,J4=(e,t)=>{let r=_h(e,t);if(Bs.has(r))return Bs.get(r);let n=Wp({themes:t,langs:[e],engine:U4});return Bs.set(r,n),n};function e3(e={}){var t;let r=(t=e.themes)!=null?t:["github-light","github-dark"];return{name:"shiki",type:"code-highlighter",supportsLanguage(n){let a=io(n);return Si.has(a)},getSupportedLanguages(){return Array.from(Si)},getThemes(){return r},highlight({code:n,language:a,themes:i,isIncomplete:s=!1},u){let l=io(a),o=[Pi(i[0]),Pi(i[1])],c=Si.has(l)?l:"text",h=Z4(n,c,o);return so(h)||(J4(c,i).then(p=>{let b=p.getLoadedLanguages().includes(l)?l:"text",E=so(h);E||(E=K4(p,n,`${_h(c,i)}:${b}`,b,{light:o[0],dark:o[1]}),s||W4(h,E)),u==null||u(E)}).catch(p=>{console.error("[Streamdown Code] Failed to highlight code:",p)}),null)}}}var t3=e3();const co=/[#.]/g;function r3(e,t){const r=e||"",n={};let a=0,i,s;for(;a<r.length;){co.lastIndex=a;const u=co.exec(r),l=r.slice(a,u?u.index:r.length);l&&(i?i==="#"?n.id=l:Array.isArray(n.className)?n.className.push(l):n.className=[l]:s=l,a+=l.length),u&&(i=u[0],a++)}return{type:"element",tagName:s||t||"div",properties:n,children:[]}}function Nh(e,t,r){const n=r?s3(r):void 0;function a(i,s,...u){let l;if(i==null){l={type:"root",children:[]};const o=s;u.unshift(o)}else{l=r3(i,t);const o=l.tagName.toLowerCase(),c=n?n.get(o):void 0;if(l.tagName=c||o,n3(s))u.unshift(s);else for(const[h,f]of Object.entries(s))a3(e,l.properties,h,f)}for(const o of u)L0(l.children,o);return l.type==="element"&&l.tagName==="template"&&(l.content={type:"root",children:l.children},l.children=[]),l}return a}function n3(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;if(typeof e.type!="string")return!1;const t=e,r=Object.keys(e);for(const n of r){const a=t[n];if(a&&typeof a=="object"){if(!Array.isArray(a))return!0;const i=a;for(const s of i)if(typeof s!="number"&&typeof s!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function a3(e,t,r,n){const a=ts(e,r);let i;if(n!=null){if(typeof n=="number"){if(Number.isNaN(n))return;i=n}else typeof n=="boolean"?i=n:typeof n=="string"?a.spaceSeparated?i=Ol(n):a.commaSeparated?i=Ml(n):a.commaOrSpaceSeparated?i=Ol(Ml(n).join(" ")):i=ho(a,a.property,n):Array.isArray(n)?i=[...n]:i=a.property==="style"?i3(n):String(n);if(Array.isArray(i)){const s=[];for(const u of i)s.push(ho(a,a.property,u));i=s}a.property==="className"&&Array.isArray(t.className)&&(i=t.className.concat(i)),t[a.property]=i}}function L0(e,t){if(t!=null)if(typeof t=="number"||typeof t=="string")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const r of t)L0(e,r);else if(typeof t=="object"&&"type"in t)t.type==="root"?L0(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function ho(e,t,r){if(typeof r=="string"){if(e.number&&r&&!Number.isNaN(Number(r)))return Number(r);if((e.boolean||e.overloadedBoolean)&&(r===""||Pl(r)===Pl(t)))return!0}return r}function i3(e){const t=[];for(const[r,n]of Object.entries(e))t.push([r,n].join(": "));return t.join("; ")}function s3(e){const t=new Map;for(const r of e)t.set(r.toLowerCase(),r);return t}const u3=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"],Lh=Nh(ja,"div"),Rh=Nh(Qr,"g",u3),er={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function l3(e,t){return Dh(e,{})||{type:"root",children:[]}}function Dh(e,t){const r=o3(e,t);return r&&t.afterTransform&&t.afterTransform(e,r),r}function o3(e,t){switch(e.nodeType){case 1:return f3(e,t);case 3:return h3(e);case 8:return d3(e);case 9:return fo(e,t);case 10:return c3();case 11:return fo(e,t);default:return}}function fo(e,t){return{type:"root",children:Oh(e,t)}}function c3(){return{type:"doctype"}}function h3(e){return{type:"text",value:e.nodeValue||""}}function d3(e){return{type:"comment",value:e.nodeValue||""}}function f3(e,t){const r=e.namespaceURI,n=r===er.svg?Rh:Lh,a=r===er.html?e.tagName.toLowerCase():e.tagName,i=r===er.html&&a==="template"?e.content:e,s=e.getAttributeNames(),u={};let l=-1;for(;++l<s.length;)u[s[l]]=e.getAttribute(s[l])||"";return n(a,u,Oh(i,t))}function Oh(e,t){const r=e.childNodes,n=[];let a=-1;for(;++a<r.length;){const i=Dh(r[a],t);i!==void 0&&n.push(i)}return n}new DOMParser;function m3(e,t){const r=p3(e);return l3(r)}function p3(e){const t=document.createElement("template");return t.innerHTML=e,t.content}const Va=(function(e){if(e==null)return E3;if(typeof e=="function")return ss(e);if(typeof e=="object")return Array.isArray(e)?g3(e):b3(e);if(typeof e=="string")return x3(e);throw new Error("Expected function, string, or object as test")});function g3(e){const t=[];let r=-1;for(;++r<e.length;)t[r]=Va(e[r]);return ss(n);function n(...a){let i=-1;for(;++i<t.length;)if(t[i].apply(this,a))return!0;return!1}}function b3(e){const t=e;return ss(r);function r(n){const a=n;let i;for(i in e)if(a[i]!==t[i])return!1;return!0}}function x3(e){return ss(t);function t(r){return r&&r.type===e}}function ss(e){return t;function t(r,n,a){return!!(y3(r)&&e.call(this,r,typeof n=="number"?n:void 0,a||void 0))}}function E3(){return!0}function y3(e){return e!==null&&typeof e=="object"&&"type"in e}const mo=(function(e,t,r){const n=Va(r);if(!e||!e.type||!e.children)throw new Error("Expected parent node");if(typeof t=="number"){if(t<0||t===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index")}else if(t=e.children.indexOf(t),t<0)throw new Error("Expected child node or index");for(;++t<e.children.length;)if(n(e.children[t],t,e))return e.children[t]}),vn=(function(e){if(e==null)return k3;if(typeof e=="string")return v3(e);if(typeof e=="object")return T3(e);if(typeof e=="function")return Su(e);throw new Error("Expected function, string, or array as `test`")});function T3(e){const t=[];let r=-1;for(;++r<e.length;)t[r]=vn(e[r]);return Su(n);function n(...a){let i=-1;for(;++i<t.length;)if(t[i].apply(this,a))return!0;return!1}}function v3(e){return Su(t);function t(r){return r.tagName===e}}function Su(e){return t;function t(r,n,a){return!!(w3(r)&&e.call(this,r,typeof n=="number"?n:void 0,a||void 0))}}function k3(e){return!!(e&&typeof e=="object"&&"type"in e&&e.type==="element"&&"tagName"in e&&typeof e.tagName=="string")}function w3(e){return e!==null&&typeof e=="object"&&"type"in e&&"tagName"in e}const po=/\n/g,go=/[\t ]+/g,R0=vn("br"),bo=vn(R3),A3=vn("p"),xo=vn("tr"),C3=vn(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",L3,D3]),Mh=vn(["address","article","aside","blockquote","body","caption","center","dd","dialog","dir","dl","dt","div","figure","figcaption","footer","form,","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","legend","li","listing","main","menu","nav","ol","p","plaintext","pre","section","ul","xmp"]);function S3(e,t){const r=t||{},n="children"in e?e.children:[],a=Mh(e),i=Fh(e,{whitespace:r.whitespace||"normal"}),s=[];(e.type==="text"||e.type==="comment")&&s.push(...Bh(e,{breakBefore:!0,breakAfter:!0}));let u=-1;for(;++u<n.length;)s.push(...Ph(n[u],e,{whitespace:i,breakBefore:u?void 0:a,breakAfter:u<n.length-1?R0(n[u+1]):a}));const l=[];let o;for(u=-1;++u<s.length;){const c=s[u];typeof c=="number"?o!==void 0&&c>o&&(o=c):c&&(o!==void 0&&o>-1&&l.push(`
|
|
145
|
+
`.repeat(o)||" "),o=-1,l.push(c))}return l.join("")}function Ph(e,t,r){return e.type==="element"?I3(e,t,r):e.type==="text"?r.whitespace==="normal"?Bh(e,r):_3(e):[]}function I3(e,t,r){const n=Fh(e,r),a=e.children||[];let i=-1,s=[];if(C3(e))return s;let u,l;for(R0(e)||xo(e)&&mo(t,e,xo)?l=`
|
|
146
|
+
`:A3(e)?(u=2,l=2):Mh(e)&&(u=1,l=1);++i<a.length;)s=s.concat(Ph(a[i],e,{whitespace:n,breakBefore:i?void 0:u,breakAfter:i<a.length-1?R0(a[i+1]):l}));return bo(e)&&mo(t,e,bo)&&s.push(" "),u&&s.unshift(u),l&&s.push(l),s}function Bh(e,t){const r=String(e.value),n=[],a=[];let i=0;for(;i<=r.length;){po.lastIndex=i;const l=po.exec(r),o=l&&"index"in l?l.index:r.length;n.push(N3(r.slice(i,o).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),i===0?t.breakBefore:!0,o===r.length?t.breakAfter:!0)),i=o+1}let s=-1,u;for(;++s<n.length;)n[s].charCodeAt(n[s].length-1)===8203||s<n.length-1&&n[s+1].charCodeAt(0)===8203?(a.push(n[s]),u=void 0):n[s]?(typeof u=="number"&&a.push(u),a.push(n[s]),u=0):(s===0||s===n.length-1)&&a.push(0);return a}function _3(e){return[String(e.value)]}function N3(e,t,r){const n=[];let a=0,i;for(;a<e.length;){go.lastIndex=a;const s=go.exec(e);i=s?s.index:e.length,!a&&!i&&s&&!t&&n.push(""),a!==i&&n.push(e.slice(a,i)),a=s?i+s[0].length:i}return a!==i&&!r&&n.push(""),n.join(" ")}function Fh(e,t){if(e.type==="element"){const r=e.properties||{};switch(e.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return r.wrap?"pre-wrap":"pre";case"td":case"th":return r.noWrap?"nowrap":t.whitespace;case"textarea":return"pre-wrap"}}return t.whitespace}function L3(e){return!!(e.properties||{}).hidden}function R3(e){return e.tagName==="td"||e.tagName==="th"}function D3(e){return e.tagName==="dialog"&&!(e.properties||{}).open}class J extends Error{constructor(t,r){var n="KaTeX parse error: "+t,a,i,s=r&&r.loc;if(s&&s.start<=s.end){var u=s.lexer.input;a=s.start,i=s.end,a===u.length?n+=" at end of input: ":n+=" at position "+(a+1)+": ";var l=u.slice(a,i).replace(/[^]/g,"$&̲"),o;a>15?o="…"+u.slice(a-15,a):o=u.slice(0,a);var c;i+15<u.length?c=u.slice(i,i+15)+"…":c=u.slice(i),n+=o+l+c}super(n),this.name="ParseError",this.position=void 0,this.length=void 0,this.rawMessage=void 0,Object.setPrototypeOf(this,J.prototype),this.position=a,a!=null&&i!=null&&(this.length=i-a),this.rawMessage=t}}var O3=/([A-Z])/g,M3=e=>e.replace(O3,"-$1").toLowerCase(),P3={"&":"&",">":">","<":"<",'"':""","'":"'"},B3=/[&><"']/g,ct=e=>String(e).replace(B3,t=>P3[t]),Ii=e=>e.type==="ordgroup"||e.type==="color"?e.body.length===1?Ii(e.body[0]):e:e.type==="font"?Ii(e.body):e,F3=new Set(["mathord","textord","atom"]),vr=e=>F3.has(Ii(e).type),H3=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"},D0={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 z3(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 new Error("Unexpected schema type; settings must declare an explicit default.")}}function $3(e){if(e.default!==void 0)return e.default;var t=Array.isArray(e.type)?e.type[0]:e.type;return z3(t)}function U3(e,t,r,n){var a=r[t];e[t]=a!==void 0?n.processor?n.processor(a):a:$3(n)}class Iu{constructor(t){t===void 0&&(t={}),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,t=t||{};for(var r of Object.keys(D0)){var n=D0[r];n&&U3(this,r,t,n)}}reportNonstrict(t,r,n){var a=this.strict;if(typeof a=="function"&&(a=a(t,r,n)),!(!a||a==="ignore")){if(a===!0||a==="error")throw new J("LaTeX-incompatible input and strict mode is set to 'error': "+(r+" ["+t+"]"),n);a==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(r+" ["+t+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+a+"': "+r+" ["+t+"]"))}}useStrictBehavior(t,r,n){var a=this.strict;if(typeof a=="function")try{a=a(t,r,n)}catch{a="error"}return!a||a==="ignore"?!1:a===!0||a==="error"?!0:a==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(r+" ["+t+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+a+"': "+r+" ["+t+"]")),!1)}isTrusted(t){if("url"in t&&t.url&&!t.protocol){var r=H3(t.url);if(r==null)return!1;t.protocol=r}var n=typeof this.trust=="function"?this.trust(t):this.trust;return!!n}}class Ir{constructor(t,r,n){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=t,this.size=r,this.cramped=n}sup(){return Zt[q3[this.id]]}sub(){return Zt[j3[this.id]]}fracNum(){return Zt[G3[this.id]]}fracDen(){return Zt[V3[this.id]]}cramp(){return Zt[Y3[this.id]]}text(){return Zt[W3[this.id]]}isTight(){return this.size>=2}}var _u=0,Bi=1,$n=2,yr=3,Ba=4,Bt=5,qn=6,xt=7,Zt=[new Ir(_u,0,!1),new Ir(Bi,0,!0),new Ir($n,1,!1),new Ir(yr,1,!0),new Ir(Ba,2,!1),new Ir(Bt,2,!0),new Ir(qn,3,!1),new Ir(xt,3,!0)],q3=[Ba,Bt,Ba,Bt,qn,xt,qn,xt],j3=[Bt,Bt,Bt,Bt,xt,xt,xt,xt],G3=[$n,yr,Ba,Bt,qn,xt,qn,xt],V3=[yr,yr,Bt,Bt,xt,xt,xt,xt],Y3=[Bi,Bi,yr,yr,Bt,Bt,xt,xt],W3=[_u,Bi,$n,yr,$n,yr,$n,yr],me={DISPLAY:Zt[_u],TEXT:Zt[$n],SCRIPT:Zt[Ba],SCRIPTSCRIPT:Zt[qn]},O0=[{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 X3(e){for(var t=0;t<O0.length;t++)for(var r=O0[t],n=0;n<r.blocks.length;n++){var a=r.blocks[n];if(e>=a[0]&&e<=a[1])return r.name}return null}var _i=[];O0.forEach(e=>e.blocks.forEach(t=>_i.push(...t)));function Hh(e){for(var t=0;t<_i.length;t+=2)if(e>=_i[t]&&e<=_i[t+1])return!0;return!1}var et=e=>e+" "+e,Rn=80,Q3=function(t,r){return"M95,"+(622+t+r)+`
|
|
147
|
+
c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
|
|
148
|
+
c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
|
|
149
|
+
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
|
|
150
|
+
s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429
|
|
151
|
+
c69,-144,104.5,-217.7,106.5,-221
|
|
152
|
+
l`+t/2.075+" -"+t+`
|
|
153
|
+
c5.3,-9.3,12,-14,20,-14
|
|
154
|
+
H400000v`+(40+t)+`H845.2724
|
|
155
|
+
s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
|
|
156
|
+
c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
|
|
157
|
+
M`+(834+t)+" "+r+"h400000v"+(40+t)+"h-400000z"},K3=function(t,r){return"M263,"+(601+t+r)+`c0.7,0,18,39.7,52,119
|
|
158
|
+
c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
|
|
159
|
+
c340,-704.7,510.7,-1060.3,512,-1067
|
|
160
|
+
l`+t/2.084+" -"+t+`
|
|
161
|
+
c4.7,-7.3,11,-11,19,-11
|
|
162
|
+
H40000v`+(40+t)+`H1012.3
|
|
163
|
+
s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232
|
|
164
|
+
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
|
|
165
|
+
s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
|
|
166
|
+
c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
|
|
167
|
+
M`+(1001+t)+" "+r+"h400000v"+(40+t)+"h-400000z"},Z3=function(t,r){return"M983 "+(10+t+r)+`
|
|
168
|
+
l`+t/3.13+" -"+t+`
|
|
169
|
+
c4,-6.7,10,-10,18,-10 H400000v`+(40+t)+`
|
|
170
|
+
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
|
|
171
|
+
s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744
|
|
172
|
+
c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30
|
|
173
|
+
c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722
|
|
174
|
+
c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5
|
|
175
|
+
c53.7,-170.3,84.5,-266.8,92.5,-289.5z
|
|
176
|
+
M`+(1001+t)+" "+r+"h400000v"+(40+t)+"h-400000z"},J3=function(t,r){return"M424,"+(2398+t+r)+`
|
|
177
|
+
c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
|
|
178
|
+
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
|
|
179
|
+
s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121
|
|
180
|
+
s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081
|
|
181
|
+
l`+t/4.223+" -"+t+`c4,-6.7,10,-10,18,-10 H400000
|
|
182
|
+
v`+(40+t)+`H1014.6
|
|
183
|
+
s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185
|
|
184
|
+
c-2,6,-10,9,-24,9
|
|
185
|
+
c-8,0,-12,-0.7,-12,-2z M`+(1001+t)+" "+r+`
|
|
186
|
+
h400000v`+(40+t)+"h-400000z"},e6=function(t,r){return"M473,"+(2713+t+r)+`
|
|
187
|
+
c339.3,-1799.3,509.3,-2700,510,-2702 l`+t/5.298+" -"+t+`
|
|
188
|
+
c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+t)+`H1017.7
|
|
189
|
+
s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9
|
|
190
|
+
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
|
|
191
|
+
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
|
|
192
|
+
s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,
|
|
193
|
+
606zM`+(1001+t)+" "+r+"h400000v"+(40+t)+"H1017.7z"},t6=function(t){var r=t/2;return"M400000 "+t+" H0 L"+r+" 0 l65 45 L145 "+(t-80)+" H400000z"},r6=function(t,r,n){var a=n-54-r-t;return"M702 "+(t+r)+"H400000"+(40+t)+`
|
|
194
|
+
H742v`+a+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1
|
|
195
|
+
h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170
|
|
196
|
+
c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
|
|
197
|
+
219 661 l218 661zM702 `+r+"H400000v"+(40+t)+"H742z"},n6=function(t,r,n){r=1e3*r;var a="";switch(t){case"sqrtMain":a=Q3(r,Rn);break;case"sqrtSize1":a=K3(r,Rn);break;case"sqrtSize2":a=Z3(r,Rn);break;case"sqrtSize3":a=J3(r,Rn);break;case"sqrtSize4":a=e6(r,Rn);break;case"sqrtTall":a=r6(r,Rn,n)}return a},a6=function(t,r){switch(t){case"⎜":return et("M291 0 H417 V"+r+" H291z");case"∣":return et("M145 0 H188 V"+r+" H145z");case"∥":return et("M145 0 H188 V"+r+" H145z")+et("M367 0 H410 V"+r+" H367z");case"⎟":return et("M457 0 H583 V"+r+" H457z");case"⎢":return et("M319 0 H403 V"+r+" H319z");case"⎥":return et("M263 0 H347 V"+r+" H263z");case"⎪":return et("M384 0 H504 V"+r+" H384z");case"⏐":return et("M312 0 H355 V"+r+" H312z");case"‖":return et("M257 0 H300 V"+r+" H257z")+et("M478 0 H521 V"+r+" H478z");default:return""}},Eo={doubleleftarrow:`M262 157
|
|
198
|
+
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
|
|
199
|
+
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
|
|
200
|
+
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
|
|
201
|
+
c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5
|
|
202
|
+
157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87
|
|
203
|
+
-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7
|
|
204
|
+
-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z
|
|
205
|
+
m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l
|
|
206
|
+
-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5
|
|
207
|
+
14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88
|
|
208
|
+
-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68
|
|
209
|
+
-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18
|
|
210
|
+
-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782
|
|
211
|
+
c-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3
|
|
212
|
+
-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120
|
|
213
|
+
135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8
|
|
214
|
+
-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247
|
|
215
|
+
c-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208
|
|
216
|
+
490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3
|
|
217
|
+
1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202
|
|
218
|
+
l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117
|
|
219
|
+
-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7
|
|
220
|
+
5-6 9-10 13-.7 1-7.3 1-20 1H6z`,leftbraceunder:`M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13
|
|
221
|
+
35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688
|
|
222
|
+
0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7
|
|
223
|
+
-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80
|
|
224
|
+
H435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0
|
|
225
|
+
435 0h399565z`,leftgroupunder:`M400000 262
|
|
226
|
+
H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219
|
|
227
|
+
435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3
|
|
228
|
+
-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5
|
|
229
|
+
-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7
|
|
230
|
+
-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z`,leftharpoonplus:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5
|
|
231
|
+
20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3
|
|
232
|
+
-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7
|
|
233
|
+
-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z
|
|
234
|
+
m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333
|
|
235
|
+
5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5
|
|
236
|
+
1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667
|
|
237
|
+
-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z`,leftharpoondownplus:`M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12
|
|
238
|
+
10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7
|
|
239
|
+
-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0
|
|
240
|
+
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
|
|
241
|
+
-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
|
|
242
|
+
-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
|
|
243
|
+
71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:et("M40 281 V428 H0 V94 H40 V241 H400000 v40z"),leftbracketunder:et("M0 0 h120 V290 H399995 v120 H0z"),leftbracketover:et("M0 440 h120 V150 H399995 v-120 H0z"),leftmapsto:et("M40 281 V448H0V74H40V241H400000v40z"),leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23
|
|
244
|
+
-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8
|
|
245
|
+
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
|
|
246
|
+
68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:et("M0 50 h400000 v40H0z m0 194h40000v40H0z"),midbrace:`M200428 334
|
|
247
|
+
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
|
|
248
|
+
-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7
|
|
249
|
+
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
|
|
250
|
+
12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214
|
|
251
|
+
c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14
|
|
252
|
+
53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3
|
|
253
|
+
11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0
|
|
254
|
+
-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z`,oiintSize1:`M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6
|
|
255
|
+
-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z
|
|
256
|
+
m368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8
|
|
257
|
+
60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z`,oiintSize2:`M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8
|
|
258
|
+
-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z
|
|
259
|
+
m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2
|
|
260
|
+
c0 110 84 276 504 276s502.4-166 502.4-276z`,oiiintSize1:`M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6
|
|
261
|
+
-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z
|
|
262
|
+
m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0
|
|
263
|
+
85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z`,oiiintSize2:`M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8
|
|
264
|
+
-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z
|
|
265
|
+
m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1
|
|
266
|
+
c0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z`,rightarrow:`M0 241v40h399891c-47.3 35.3-84 78-110 128
|
|
267
|
+
-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20
|
|
268
|
+
11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7
|
|
269
|
+
39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85
|
|
270
|
+
-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
|
|
271
|
+
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
|
|
272
|
+
151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l
|
|
273
|
+
-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5
|
|
274
|
+
s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1
|
|
275
|
+
c124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z`,rightbraceunder:`M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3
|
|
276
|
+
28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237
|
|
277
|
+
-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z`,rightgroup:`M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0
|
|
278
|
+
3-1 3-3v-38c-76-158-257-219-435-219H0z`,rightgroupunder:`M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18
|
|
279
|
+
0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z`,rightharpoon:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3
|
|
280
|
+
-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2
|
|
281
|
+
-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58
|
|
282
|
+
69.2 92 94.5zm0 0v40h399900v-40z`,rightharpoonplus:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11
|
|
283
|
+
-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7
|
|
284
|
+
2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z
|
|
285
|
+
m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown:`M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8
|
|
286
|
+
8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5
|
|
287
|
+
-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95
|
|
288
|
+
-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z`,rightharpoondownplus:`M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8
|
|
289
|
+
15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3
|
|
290
|
+
8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3
|
|
291
|
+
-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z
|
|
292
|
+
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
|
|
293
|
+
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
|
|
294
|
+
-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
|
|
295
|
+
66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:et("M399960 241 V94 h40 V428 h-40 V281 H0 v-40z"),rightbracketunder:et("M399995 0 h-120 V290 H0 v120 H400000z"),rightbracketover:et("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
|
|
296
|
+
1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32
|
|
297
|
+
-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
|
|
298
|
+
-167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40
|
|
299
|
+
115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69
|
|
300
|
+
-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3
|
|
301
|
+
-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19
|
|
302
|
+
-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101
|
|
303
|
+
10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z`,twoheadrightarrow:`M400000 167
|
|
304
|
+
c-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3
|
|
305
|
+
41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42
|
|
306
|
+
18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333
|
|
307
|
+
-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70
|
|
308
|
+
101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z`,tilde1:`M200 55.538c-77 0-168 73.953-177 73.953-3 0-7
|
|
309
|
+
-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0
|
|
310
|
+
114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0
|
|
311
|
+
4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128
|
|
312
|
+
-68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418
|
|
313
|
+
-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9
|
|
314
|
+
31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114
|
|
315
|
+
c1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751
|
|
316
|
+
181.476 676 181.476c-149 0-189-126.21-332-126.21z`,tilde3:`M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457
|
|
317
|
+
-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0
|
|
318
|
+
411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697
|
|
319
|
+
16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696
|
|
320
|
+
-338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345
|
|
321
|
+
-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409
|
|
322
|
+
177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9
|
|
323
|
+
14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409
|
|
324
|
+
-175.236-744-175.236z`,vec:`M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5
|
|
325
|
+
3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11
|
|
326
|
+
10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63
|
|
327
|
+
-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1
|
|
328
|
+
-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59
|
|
329
|
+
H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359
|
|
330
|
+
c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22
|
|
331
|
+
c-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z`,widehat2:`M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10
|
|
332
|
+
-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat3:`M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10
|
|
333
|
+
-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat4:`M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10
|
|
334
|
+
-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widecheck1:`M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,
|
|
335
|
+
-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z`,widecheck2:`M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
|
336
|
+
-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck3:`M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
|
337
|
+
-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck4:`M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
|
338
|
+
-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,baraboveleftarrow:`M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202
|
|
339
|
+
c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5
|
|
340
|
+
c-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130
|
|
341
|
+
s-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47
|
|
342
|
+
121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6
|
|
343
|
+
s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11
|
|
344
|
+
c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z
|
|
345
|
+
M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32
|
|
346
|
+
-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0
|
|
347
|
+
13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39
|
|
348
|
+
-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5
|
|
349
|
+
-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
|
|
350
|
+
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
|
|
351
|
+
151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
|
|
352
|
+
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17
|
|
353
|
+
c2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21
|
|
354
|
+
c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40
|
|
355
|
+
c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z
|
|
356
|
+
M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0
|
|
357
|
+
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,
|
|
358
|
+
-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
|
|
359
|
+
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
|
|
360
|
+
M0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z`,shortbaraboveleftharpoon:`M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
|
|
361
|
+
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,
|
|
362
|
+
1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,
|
|
363
|
+
-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z
|
|
364
|
+
M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`,shortrightharpoonabovebar:`M53,241l0,40c398570,0,399437,0,399437,0
|
|
365
|
+
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,
|
|
366
|
+
-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
|
|
367
|
+
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
|
|
368
|
+
M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},i6=function(t,r){switch(t){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+r+` v1759 v84 h347 v-84
|
|
369
|
+
H403z M403 1759 V0 H319 V1759 v`+r+" v1759 v84 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+r+` v1759 H0 v84 H347z
|
|
370
|
+
M347 1759 V0 H263 V1759 v`+r+" v1759 h84z";case"vert":return"M145 15 v585 v"+r+` v585 c2.667,10,9.667,15,21,15
|
|
371
|
+
c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
|
372
|
+
c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+r+" v585 h43z";case"doublevert":return"M145 15 v585 v"+r+` v585 c2.667,10,9.667,15,21,15
|
|
373
|
+
c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
|
374
|
+
c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+r+` v585 h43z
|
|
375
|
+
M367 15 v585 v`+r+` v585 c2.667,10,9.667,15,21,15
|
|
376
|
+
c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
|
377
|
+
c-10,0,-16.667,5,-20,15z M410 15 H367 v585 v`+r+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+r+` v1715 h263 v84 H319z
|
|
378
|
+
MM319 602 V0 H403 V602 v`+r+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+r+` v1799 H0 v-84 H319z
|
|
379
|
+
MM319 602 V0 H403 V602 v`+r+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+r+` v602 h84z
|
|
380
|
+
M403 1759 V0 H319 V1759 v`+r+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+r+` v602 h84z
|
|
381
|
+
M347 1759 V0 h-84 V1759 v`+r+" v602 h84z";case"lparen":return`M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1
|
|
382
|
+
c-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349,
|
|
383
|
+
-36,557 l0,`+(r+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,
|
|
384
|
+
949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9
|
|
385
|
+
c0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5,
|
|
386
|
+
-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189
|
|
387
|
+
l0,-`+(r+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,
|
|
388
|
+
-210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z`;case"rparen":return`M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3,
|
|
389
|
+
63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5
|
|
390
|
+
c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(r+9)+`
|
|
391
|
+
c-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664
|
|
392
|
+
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,11
|
|
393
|
+
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
|
|
394
|
+
c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558
|
|
395
|
+
l0,-`+(r+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
396
|
+
-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}};function s6(e){return"toText"in e}class Zn{constructor(t){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=t,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(t){return this.classes.includes(t)}toNode(){for(var t=document.createDocumentFragment(),r=0;r<this.children.length;r++)t.appendChild(this.children[r].toNode());return t}toMarkup(){for(var t="",r=0;r<this.children.length;r++)t+=this.children[r].toMarkup();return t}toText(){return this.children.map(t=>{if(s6(t))return t.toText();throw new Error("Expected MathDomNode with toText, got "+t.constructor.name)}).join("")}}var M0={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},u6={ex:!0,em:!0,mu:!0},zh=function(t){return typeof t!="string"&&(t=t.unit),t in M0||t in u6||t==="ex"},Ue=function(t,r){var n;if(t.unit in M0)n=M0[t.unit]/r.fontMetrics().ptPerEm/r.sizeMultiplier;else if(t.unit==="mu")n=r.fontMetrics().cssEmPerMu;else{var a;if(r.style.isTight()?a=r.havingStyle(r.style.text()):a=r,t.unit==="ex")n=a.fontMetrics().xHeight;else if(t.unit==="em")n=a.fontMetrics().quad;else throw new J("Invalid unit: '"+t.unit+"'");a!==r&&(n*=a.sizeMultiplier/r.sizeMultiplier)}return Math.min(t.number*n,r.maxSize)},te=function(t){return+t.toFixed(4)+"em"},jr=function(t){return t.filter(r=>r).join(" ")},Nu=function(t){var r="";for(var n of Object.keys(t)){var a=t[n];a!==void 0&&(r+=M3(n)+":"+a+";")}return r},$h=function(t,r,n){if(this.classes=t||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=n||{},r){r.style.isTight()&&this.classes.push("mtight");var a=r.getColor();a&&(this.style.color=a)}},Uh=function(t){var r=document.createElement(t);r.className=jr(this.classes),Object.assign(r.style,this.style);for(var n of Object.keys(this.attributes))r.setAttribute(n,this.attributes[n]);for(var a=0;a<this.children.length;a++)r.appendChild(this.children[a].toNode());return r},l6=/[\s"'>/=\x00-\x1f]/,qh=function(t){var r="<"+t;this.classes.length&&(r+=' class="'+ct(jr(this.classes))+'"');var n=Nu(this.style);n&&(r+=' style="'+ct(n)+'"');for(var a of Object.keys(this.attributes)){if(l6.test(a))throw new J("Invalid attribute name '"+a+"'");r+=" "+a+'="'+ct(this.attributes[a])+'"'}r+=">";for(var i=0;i<this.children.length;i++)r+=this.children[i].toMarkup();return r+="</"+t+">",r};class Jn{constructor(t,r,n,a){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,this.italic=void 0,$h.call(this,t,n,a),this.children=r||[]}setAttribute(t,r){this.attributes[t]=r}hasClass(t){return this.classes.includes(t)}toNode(){return Uh.call(this,"span")}toMarkup(){return qh.call(this,"span")}}class us{constructor(t,r,n,a){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,$h.call(this,r,a),this.children=n||[],this.setAttribute("href",t)}setAttribute(t,r){this.attributes[t]=r}hasClass(t){return this.classes.includes(t)}toNode(){return Uh.call(this,"a")}toMarkup(){return qh.call(this,"a")}}class o6{constructor(t,r,n){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=r,this.src=t,this.classes=["mord"],this.height=0,this.depth=0,this.maxFontSize=0,this.style=n}hasClass(t){return this.classes.includes(t)}toNode(){var t=document.createElement("img");return t.src=this.src,t.alt=this.alt,t.className="mord",Object.assign(t.style,this.style),t}toMarkup(){var t='<img src="'+ct(this.src)+'"'+(' alt="'+ct(this.alt)+'"'),r=Nu(this.style);return r&&(t+=' style="'+ct(r)+'"'),t+="'/>",t}}var c6={î:"ı̂",ï:"ı̈",í:"ı́",ì:"ı̀"};class It{constructor(t,r,n,a,i,s,u,l){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=t,this.height=r||0,this.depth=n||0,this.italic=a||0,this.skew=i||0,this.width=s||0,this.classes=u||[],this.style=l||{},this.maxFontSize=0;var o=X3(this.text.charCodeAt(0));o&&this.classes.push(o+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=c6[this.text])}hasClass(t){return this.classes.includes(t)}toNode(){var t=document.createTextNode(this.text),r=null;return this.italic>0&&(r=document.createElement("span"),r.style.marginRight=te(this.italic)),this.classes.length>0&&(r=r||document.createElement("span"),r.className=jr(this.classes)),Object.keys(this.style).length>0&&(r=r||document.createElement("span"),Object.assign(r.style,this.style)),r?(r.appendChild(t),r):t}toMarkup(){var t=!1,r="<span";this.classes.length&&(t=!0,r+=' class="',r+=ct(jr(this.classes)),r+='"');var n="";this.italic>0&&(n+="margin-right:"+te(this.italic)+";"),n+=Nu(this.style),n&&(t=!0,r+=' style="'+ct(n)+'"');var a=ct(this.text);return t?(r+=">",r+=a,r+="</span>",r):a}}class Tr{constructor(t,r){this.children=void 0,this.attributes=void 0,this.children=t||[],this.attributes=r||{}}toNode(){var t="http://www.w3.org/2000/svg",r=document.createElementNS(t,"svg");for(var n of Object.keys(this.attributes))r.setAttribute(n,this.attributes[n]);for(var a=0;a<this.children.length;a++)r.appendChild(this.children[a].toNode());return r}toMarkup(){var t='<svg xmlns="http://www.w3.org/2000/svg"';for(var r of Object.keys(this.attributes))t+=" "+r+'="'+ct(this.attributes[r])+'"';t+=">";for(var n=0;n<this.children.length;n++)t+=this.children[n].toMarkup();return t+="</svg>",t}}class Gr{constructor(t,r){this.pathName=void 0,this.alternate=void 0,this.pathName=t,this.alternate=r}toNode(){var t="http://www.w3.org/2000/svg",r=document.createElementNS(t,"path");return this.alternate?r.setAttribute("d",this.alternate):r.setAttribute("d",Eo[this.pathName]),r}toMarkup(){return this.alternate?'<path d="'+ct(this.alternate)+'"/>':'<path d="'+ct(Eo[this.pathName])+'"/>'}}class P0{constructor(t){this.attributes=void 0,this.attributes=t||{}}toNode(){var t="http://www.w3.org/2000/svg",r=document.createElementNS(t,"line");for(var n of Object.keys(this.attributes))r.setAttribute(n,this.attributes[n]);return r}toMarkup(){var t="<line";for(var r of Object.keys(this.attributes))t+=" "+r+'="'+ct(this.attributes[r])+'"';return t+="/>",t}}function h6(e){if(e instanceof It)return e;throw new Error("Expected symbolNode but got "+String(e)+".")}function d6(e){if(e instanceof Jn)return e;throw new Error("Expected span<HtmlDomNode> but got "+String(e)+".")}var f6=e=>e instanceof Jn||e instanceof us||e instanceof Zn,tr={"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]}},oi={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]},yo={Å:"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 m6(e,t){tr[e]=t}function Lu(e,t,r){if(!tr[t])throw new Error("Font metrics not found for font: "+t+".");var n=e.charCodeAt(0),a=tr[t][n];if(!a&&e[0]in yo&&(n=yo[e[0]].charCodeAt(0),a=tr[t][n]),!a&&r==="text"&&Hh(n)&&(a=tr[t][77]),a)return{depth:a[0],height:a[1],italic:a[2],skew:a[3],width:a[4]}}var Fs={};function p6(e){var t;if(e>=5?t=0:e>=3?t=1:t=2,!Fs[t]){var r=Fs[t]={cssEmPerMu:oi.quad[t]/18};for(var n in oi)oi.hasOwnProperty(n)&&(r[n]=oi[n][t])}return Fs[t]}var Fe={math:{},text:{}};function m(e,t,r,n,a,i){Fe[e][a]={font:t,group:r,replace:n},i&&n&&(Fe[e][n]=Fe[e][a])}var g="math",V="text",x="main",S="ams",He="accent-token",ae="bin",yt="close",ea="inner",de="mathord",Je="op-token",_t="open",Ya="punct",_="rel",kr="spacing",M="textord";m(g,x,_,"≡","\\equiv",!0);m(g,x,_,"≺","\\prec",!0);m(g,x,_,"≻","\\succ",!0);m(g,x,_,"∼","\\sim",!0);m(g,x,_,"⊥","\\perp");m(g,x,_,"⪯","\\preceq",!0);m(g,x,_,"⪰","\\succeq",!0);m(g,x,_,"≃","\\simeq",!0);m(g,x,_,"∣","\\mid",!0);m(g,x,_,"≪","\\ll",!0);m(g,x,_,"≫","\\gg",!0);m(g,x,_,"≍","\\asymp",!0);m(g,x,_,"∥","\\parallel");m(g,x,_,"⋈","\\bowtie",!0);m(g,x,_,"⌣","\\smile",!0);m(g,x,_,"⊑","\\sqsubseteq",!0);m(g,x,_,"⊒","\\sqsupseteq",!0);m(g,x,_,"≐","\\doteq",!0);m(g,x,_,"⌢","\\frown",!0);m(g,x,_,"∋","\\ni",!0);m(g,x,_,"∝","\\propto",!0);m(g,x,_,"⊢","\\vdash",!0);m(g,x,_,"⊣","\\dashv",!0);m(g,x,_,"∋","\\owns");m(g,x,Ya,".","\\ldotp");m(g,x,Ya,"⋅","\\cdotp");m(g,x,Ya,"⋅","·");m(V,x,M,"⋅","·");m(g,x,M,"#","\\#");m(V,x,M,"#","\\#");m(g,x,M,"&","\\&");m(V,x,M,"&","\\&");m(g,x,M,"ℵ","\\aleph",!0);m(g,x,M,"∀","\\forall",!0);m(g,x,M,"ℏ","\\hbar",!0);m(g,x,M,"∃","\\exists",!0);m(g,x,M,"∇","\\nabla",!0);m(g,x,M,"♭","\\flat",!0);m(g,x,M,"ℓ","\\ell",!0);m(g,x,M,"♮","\\natural",!0);m(g,x,M,"♣","\\clubsuit",!0);m(g,x,M,"℘","\\wp",!0);m(g,x,M,"♯","\\sharp",!0);m(g,x,M,"♢","\\diamondsuit",!0);m(g,x,M,"ℜ","\\Re",!0);m(g,x,M,"♡","\\heartsuit",!0);m(g,x,M,"ℑ","\\Im",!0);m(g,x,M,"♠","\\spadesuit",!0);m(g,x,M,"§","\\S",!0);m(V,x,M,"§","\\S");m(g,x,M,"¶","\\P",!0);m(V,x,M,"¶","\\P");m(g,x,M,"†","\\dag");m(V,x,M,"†","\\dag");m(V,x,M,"†","\\textdagger");m(g,x,M,"‡","\\ddag");m(V,x,M,"‡","\\ddag");m(V,x,M,"‡","\\textdaggerdbl");m(g,x,yt,"⎱","\\rmoustache",!0);m(g,x,_t,"⎰","\\lmoustache",!0);m(g,x,yt,"⟯","\\rgroup",!0);m(g,x,_t,"⟮","\\lgroup",!0);m(g,x,ae,"∓","\\mp",!0);m(g,x,ae,"⊖","\\ominus",!0);m(g,x,ae,"⊎","\\uplus",!0);m(g,x,ae,"⊓","\\sqcap",!0);m(g,x,ae,"∗","\\ast");m(g,x,ae,"⊔","\\sqcup",!0);m(g,x,ae,"◯","\\bigcirc",!0);m(g,x,ae,"∙","\\bullet",!0);m(g,x,ae,"‡","\\ddagger");m(g,x,ae,"≀","\\wr",!0);m(g,x,ae,"⨿","\\amalg");m(g,x,ae,"&","\\And");m(g,x,_,"⟵","\\longleftarrow",!0);m(g,x,_,"⇐","\\Leftarrow",!0);m(g,x,_,"⟸","\\Longleftarrow",!0);m(g,x,_,"⟶","\\longrightarrow",!0);m(g,x,_,"⇒","\\Rightarrow",!0);m(g,x,_,"⟹","\\Longrightarrow",!0);m(g,x,_,"↔","\\leftrightarrow",!0);m(g,x,_,"⟷","\\longleftrightarrow",!0);m(g,x,_,"⇔","\\Leftrightarrow",!0);m(g,x,_,"⟺","\\Longleftrightarrow",!0);m(g,x,_,"↦","\\mapsto",!0);m(g,x,_,"⟼","\\longmapsto",!0);m(g,x,_,"↗","\\nearrow",!0);m(g,x,_,"↩","\\hookleftarrow",!0);m(g,x,_,"↪","\\hookrightarrow",!0);m(g,x,_,"↘","\\searrow",!0);m(g,x,_,"↼","\\leftharpoonup",!0);m(g,x,_,"⇀","\\rightharpoonup",!0);m(g,x,_,"↙","\\swarrow",!0);m(g,x,_,"↽","\\leftharpoondown",!0);m(g,x,_,"⇁","\\rightharpoondown",!0);m(g,x,_,"↖","\\nwarrow",!0);m(g,x,_,"⇌","\\rightleftharpoons",!0);m(g,S,_,"≮","\\nless",!0);m(g,S,_,"","\\@nleqslant");m(g,S,_,"","\\@nleqq");m(g,S,_,"⪇","\\lneq",!0);m(g,S,_,"≨","\\lneqq",!0);m(g,S,_,"","\\@lvertneqq");m(g,S,_,"⋦","\\lnsim",!0);m(g,S,_,"⪉","\\lnapprox",!0);m(g,S,_,"⊀","\\nprec",!0);m(g,S,_,"⋠","\\npreceq",!0);m(g,S,_,"⋨","\\precnsim",!0);m(g,S,_,"⪹","\\precnapprox",!0);m(g,S,_,"≁","\\nsim",!0);m(g,S,_,"","\\@nshortmid");m(g,S,_,"∤","\\nmid",!0);m(g,S,_,"⊬","\\nvdash",!0);m(g,S,_,"⊭","\\nvDash",!0);m(g,S,_,"⋪","\\ntriangleleft");m(g,S,_,"⋬","\\ntrianglelefteq",!0);m(g,S,_,"⊊","\\subsetneq",!0);m(g,S,_,"","\\@varsubsetneq");m(g,S,_,"⫋","\\subsetneqq",!0);m(g,S,_,"","\\@varsubsetneqq");m(g,S,_,"≯","\\ngtr",!0);m(g,S,_,"","\\@ngeqslant");m(g,S,_,"","\\@ngeqq");m(g,S,_,"⪈","\\gneq",!0);m(g,S,_,"≩","\\gneqq",!0);m(g,S,_,"","\\@gvertneqq");m(g,S,_,"⋧","\\gnsim",!0);m(g,S,_,"⪊","\\gnapprox",!0);m(g,S,_,"⊁","\\nsucc",!0);m(g,S,_,"⋡","\\nsucceq",!0);m(g,S,_,"⋩","\\succnsim",!0);m(g,S,_,"⪺","\\succnapprox",!0);m(g,S,_,"≆","\\ncong",!0);m(g,S,_,"","\\@nshortparallel");m(g,S,_,"∦","\\nparallel",!0);m(g,S,_,"⊯","\\nVDash",!0);m(g,S,_,"⋫","\\ntriangleright");m(g,S,_,"⋭","\\ntrianglerighteq",!0);m(g,S,_,"","\\@nsupseteqq");m(g,S,_,"⊋","\\supsetneq",!0);m(g,S,_,"","\\@varsupsetneq");m(g,S,_,"⫌","\\supsetneqq",!0);m(g,S,_,"","\\@varsupsetneqq");m(g,S,_,"⊮","\\nVdash",!0);m(g,S,_,"⪵","\\precneqq",!0);m(g,S,_,"⪶","\\succneqq",!0);m(g,S,_,"","\\@nsubseteqq");m(g,S,ae,"⊴","\\unlhd");m(g,S,ae,"⊵","\\unrhd");m(g,S,_,"↚","\\nleftarrow",!0);m(g,S,_,"↛","\\nrightarrow",!0);m(g,S,_,"⇍","\\nLeftarrow",!0);m(g,S,_,"⇏","\\nRightarrow",!0);m(g,S,_,"↮","\\nleftrightarrow",!0);m(g,S,_,"⇎","\\nLeftrightarrow",!0);m(g,S,_,"△","\\vartriangle");m(g,S,M,"ℏ","\\hslash");m(g,S,M,"▽","\\triangledown");m(g,S,M,"◊","\\lozenge");m(g,S,M,"Ⓢ","\\circledS");m(g,S,M,"®","\\circledR");m(V,S,M,"®","\\circledR");m(g,S,M,"∡","\\measuredangle",!0);m(g,S,M,"∄","\\nexists");m(g,S,M,"℧","\\mho");m(g,S,M,"Ⅎ","\\Finv",!0);m(g,S,M,"⅁","\\Game",!0);m(g,S,M,"‵","\\backprime");m(g,S,M,"▲","\\blacktriangle");m(g,S,M,"▼","\\blacktriangledown");m(g,S,M,"■","\\blacksquare");m(g,S,M,"⧫","\\blacklozenge");m(g,S,M,"★","\\bigstar");m(g,S,M,"∢","\\sphericalangle",!0);m(g,S,M,"∁","\\complement",!0);m(g,S,M,"ð","\\eth",!0);m(V,x,M,"ð","ð");m(g,S,M,"╱","\\diagup");m(g,S,M,"╲","\\diagdown");m(g,S,M,"□","\\square");m(g,S,M,"□","\\Box");m(g,S,M,"◊","\\Diamond");m(g,S,M,"¥","\\yen",!0);m(V,S,M,"¥","\\yen",!0);m(g,S,M,"✓","\\checkmark",!0);m(V,S,M,"✓","\\checkmark");m(g,S,M,"ℶ","\\beth",!0);m(g,S,M,"ℸ","\\daleth",!0);m(g,S,M,"ℷ","\\gimel",!0);m(g,S,M,"ϝ","\\digamma",!0);m(g,S,M,"ϰ","\\varkappa");m(g,S,_t,"┌","\\@ulcorner",!0);m(g,S,yt,"┐","\\@urcorner",!0);m(g,S,_t,"└","\\@llcorner",!0);m(g,S,yt,"┘","\\@lrcorner",!0);m(g,S,_,"≦","\\leqq",!0);m(g,S,_,"⩽","\\leqslant",!0);m(g,S,_,"⪕","\\eqslantless",!0);m(g,S,_,"≲","\\lesssim",!0);m(g,S,_,"⪅","\\lessapprox",!0);m(g,S,_,"≊","\\approxeq",!0);m(g,S,ae,"⋖","\\lessdot");m(g,S,_,"⋘","\\lll",!0);m(g,S,_,"≶","\\lessgtr",!0);m(g,S,_,"⋚","\\lesseqgtr",!0);m(g,S,_,"⪋","\\lesseqqgtr",!0);m(g,S,_,"≑","\\doteqdot");m(g,S,_,"≓","\\risingdotseq",!0);m(g,S,_,"≒","\\fallingdotseq",!0);m(g,S,_,"∽","\\backsim",!0);m(g,S,_,"⋍","\\backsimeq",!0);m(g,S,_,"⫅","\\subseteqq",!0);m(g,S,_,"⋐","\\Subset",!0);m(g,S,_,"⊏","\\sqsubset",!0);m(g,S,_,"≼","\\preccurlyeq",!0);m(g,S,_,"⋞","\\curlyeqprec",!0);m(g,S,_,"≾","\\precsim",!0);m(g,S,_,"⪷","\\precapprox",!0);m(g,S,_,"⊲","\\vartriangleleft");m(g,S,_,"⊴","\\trianglelefteq");m(g,S,_,"⊨","\\vDash",!0);m(g,S,_,"⊪","\\Vvdash",!0);m(g,S,_,"⌣","\\smallsmile");m(g,S,_,"⌢","\\smallfrown");m(g,S,_,"≏","\\bumpeq",!0);m(g,S,_,"≎","\\Bumpeq",!0);m(g,S,_,"≧","\\geqq",!0);m(g,S,_,"⩾","\\geqslant",!0);m(g,S,_,"⪖","\\eqslantgtr",!0);m(g,S,_,"≳","\\gtrsim",!0);m(g,S,_,"⪆","\\gtrapprox",!0);m(g,S,ae,"⋗","\\gtrdot");m(g,S,_,"⋙","\\ggg",!0);m(g,S,_,"≷","\\gtrless",!0);m(g,S,_,"⋛","\\gtreqless",!0);m(g,S,_,"⪌","\\gtreqqless",!0);m(g,S,_,"≖","\\eqcirc",!0);m(g,S,_,"≗","\\circeq",!0);m(g,S,_,"≜","\\triangleq",!0);m(g,S,_,"∼","\\thicksim");m(g,S,_,"≈","\\thickapprox");m(g,S,_,"⫆","\\supseteqq",!0);m(g,S,_,"⋑","\\Supset",!0);m(g,S,_,"⊐","\\sqsupset",!0);m(g,S,_,"≽","\\succcurlyeq",!0);m(g,S,_,"⋟","\\curlyeqsucc",!0);m(g,S,_,"≿","\\succsim",!0);m(g,S,_,"⪸","\\succapprox",!0);m(g,S,_,"⊳","\\vartriangleright");m(g,S,_,"⊵","\\trianglerighteq");m(g,S,_,"⊩","\\Vdash",!0);m(g,S,_,"∣","\\shortmid");m(g,S,_,"∥","\\shortparallel");m(g,S,_,"≬","\\between",!0);m(g,S,_,"⋔","\\pitchfork",!0);m(g,S,_,"∝","\\varpropto");m(g,S,_,"◀","\\blacktriangleleft");m(g,S,_,"∴","\\therefore",!0);m(g,S,_,"∍","\\backepsilon");m(g,S,_,"▶","\\blacktriangleright");m(g,S,_,"∵","\\because",!0);m(g,S,_,"⋘","\\llless");m(g,S,_,"⋙","\\gggtr");m(g,S,ae,"⊲","\\lhd");m(g,S,ae,"⊳","\\rhd");m(g,S,_,"≂","\\eqsim",!0);m(g,x,_,"⋈","\\Join");m(g,S,_,"≑","\\Doteq",!0);m(g,S,ae,"∔","\\dotplus",!0);m(g,S,ae,"∖","\\smallsetminus");m(g,S,ae,"⋒","\\Cap",!0);m(g,S,ae,"⋓","\\Cup",!0);m(g,S,ae,"⩞","\\doublebarwedge",!0);m(g,S,ae,"⊟","\\boxminus",!0);m(g,S,ae,"⊞","\\boxplus",!0);m(g,S,ae,"⋇","\\divideontimes",!0);m(g,S,ae,"⋉","\\ltimes",!0);m(g,S,ae,"⋊","\\rtimes",!0);m(g,S,ae,"⋋","\\leftthreetimes",!0);m(g,S,ae,"⋌","\\rightthreetimes",!0);m(g,S,ae,"⋏","\\curlywedge",!0);m(g,S,ae,"⋎","\\curlyvee",!0);m(g,S,ae,"⊝","\\circleddash",!0);m(g,S,ae,"⊛","\\circledast",!0);m(g,S,ae,"⋅","\\centerdot");m(g,S,ae,"⊺","\\intercal",!0);m(g,S,ae,"⋒","\\doublecap");m(g,S,ae,"⋓","\\doublecup");m(g,S,ae,"⊠","\\boxtimes",!0);m(g,S,_,"⇢","\\dashrightarrow",!0);m(g,S,_,"⇠","\\dashleftarrow",!0);m(g,S,_,"⇇","\\leftleftarrows",!0);m(g,S,_,"⇆","\\leftrightarrows",!0);m(g,S,_,"⇚","\\Lleftarrow",!0);m(g,S,_,"↞","\\twoheadleftarrow",!0);m(g,S,_,"↢","\\leftarrowtail",!0);m(g,S,_,"↫","\\looparrowleft",!0);m(g,S,_,"⇋","\\leftrightharpoons",!0);m(g,S,_,"↶","\\curvearrowleft",!0);m(g,S,_,"↺","\\circlearrowleft",!0);m(g,S,_,"↰","\\Lsh",!0);m(g,S,_,"⇈","\\upuparrows",!0);m(g,S,_,"↿","\\upharpoonleft",!0);m(g,S,_,"⇃","\\downharpoonleft",!0);m(g,x,_,"⊶","\\origof",!0);m(g,x,_,"⊷","\\imageof",!0);m(g,S,_,"⊸","\\multimap",!0);m(g,S,_,"↭","\\leftrightsquigarrow",!0);m(g,S,_,"⇉","\\rightrightarrows",!0);m(g,S,_,"⇄","\\rightleftarrows",!0);m(g,S,_,"↠","\\twoheadrightarrow",!0);m(g,S,_,"↣","\\rightarrowtail",!0);m(g,S,_,"↬","\\looparrowright",!0);m(g,S,_,"↷","\\curvearrowright",!0);m(g,S,_,"↻","\\circlearrowright",!0);m(g,S,_,"↱","\\Rsh",!0);m(g,S,_,"⇊","\\downdownarrows",!0);m(g,S,_,"↾","\\upharpoonright",!0);m(g,S,_,"⇂","\\downharpoonright",!0);m(g,S,_,"⇝","\\rightsquigarrow",!0);m(g,S,_,"⇝","\\leadsto");m(g,S,_,"⇛","\\Rrightarrow",!0);m(g,S,_,"↾","\\restriction");m(g,x,M,"‘","`");m(g,x,M,"$","\\$");m(V,x,M,"$","\\$");m(V,x,M,"$","\\textdollar");m(g,x,M,"%","\\%");m(V,x,M,"%","\\%");m(g,x,M,"_","\\_");m(V,x,M,"_","\\_");m(V,x,M,"_","\\textunderscore");m(g,x,M,"∠","\\angle",!0);m(g,x,M,"∞","\\infty",!0);m(g,x,M,"′","\\prime");m(g,x,M,"△","\\triangle");m(g,x,M,"Γ","\\Gamma",!0);m(g,x,M,"Δ","\\Delta",!0);m(g,x,M,"Θ","\\Theta",!0);m(g,x,M,"Λ","\\Lambda",!0);m(g,x,M,"Ξ","\\Xi",!0);m(g,x,M,"Π","\\Pi",!0);m(g,x,M,"Σ","\\Sigma",!0);m(g,x,M,"Υ","\\Upsilon",!0);m(g,x,M,"Φ","\\Phi",!0);m(g,x,M,"Ψ","\\Psi",!0);m(g,x,M,"Ω","\\Omega",!0);m(g,x,M,"A","Α");m(g,x,M,"B","Β");m(g,x,M,"E","Ε");m(g,x,M,"Z","Ζ");m(g,x,M,"H","Η");m(g,x,M,"I","Ι");m(g,x,M,"K","Κ");m(g,x,M,"M","Μ");m(g,x,M,"N","Ν");m(g,x,M,"O","Ο");m(g,x,M,"P","Ρ");m(g,x,M,"T","Τ");m(g,x,M,"X","Χ");m(g,x,M,"¬","\\neg",!0);m(g,x,M,"¬","\\lnot");m(g,x,M,"⊤","\\top");m(g,x,M,"⊥","\\bot");m(g,x,M,"∅","\\emptyset");m(g,S,M,"∅","\\varnothing");m(g,x,de,"α","\\alpha",!0);m(g,x,de,"β","\\beta",!0);m(g,x,de,"γ","\\gamma",!0);m(g,x,de,"δ","\\delta",!0);m(g,x,de,"ϵ","\\epsilon",!0);m(g,x,de,"ζ","\\zeta",!0);m(g,x,de,"η","\\eta",!0);m(g,x,de,"θ","\\theta",!0);m(g,x,de,"ι","\\iota",!0);m(g,x,de,"κ","\\kappa",!0);m(g,x,de,"λ","\\lambda",!0);m(g,x,de,"μ","\\mu",!0);m(g,x,de,"ν","\\nu",!0);m(g,x,de,"ξ","\\xi",!0);m(g,x,de,"ο","\\omicron",!0);m(g,x,de,"π","\\pi",!0);m(g,x,de,"ρ","\\rho",!0);m(g,x,de,"σ","\\sigma",!0);m(g,x,de,"τ","\\tau",!0);m(g,x,de,"υ","\\upsilon",!0);m(g,x,de,"ϕ","\\phi",!0);m(g,x,de,"χ","\\chi",!0);m(g,x,de,"ψ","\\psi",!0);m(g,x,de,"ω","\\omega",!0);m(g,x,de,"ε","\\varepsilon",!0);m(g,x,de,"ϑ","\\vartheta",!0);m(g,x,de,"ϖ","\\varpi",!0);m(g,x,de,"ϱ","\\varrho",!0);m(g,x,de,"ς","\\varsigma",!0);m(g,x,de,"φ","\\varphi",!0);m(g,x,ae,"∗","*",!0);m(g,x,ae,"+","+");m(g,x,ae,"−","-",!0);m(g,x,ae,"⋅","\\cdot",!0);m(g,x,ae,"∘","\\circ",!0);m(g,x,ae,"÷","\\div",!0);m(g,x,ae,"±","\\pm",!0);m(g,x,ae,"×","\\times",!0);m(g,x,ae,"∩","\\cap",!0);m(g,x,ae,"∪","\\cup",!0);m(g,x,ae,"∖","\\setminus",!0);m(g,x,ae,"∧","\\land");m(g,x,ae,"∨","\\lor");m(g,x,ae,"∧","\\wedge",!0);m(g,x,ae,"∨","\\vee",!0);m(g,x,M,"√","\\surd");m(g,x,_t,"⟨","\\langle",!0);m(g,x,_t,"∣","\\lvert");m(g,x,_t,"∥","\\lVert");m(g,x,yt,"?","?");m(g,x,yt,"!","!");m(g,x,yt,"⟩","\\rangle",!0);m(g,x,yt,"∣","\\rvert");m(g,x,yt,"∥","\\rVert");m(g,x,_,"=","=");m(g,x,_,":",":");m(g,x,_,"≈","\\approx",!0);m(g,x,_,"≅","\\cong",!0);m(g,x,_,"≥","\\ge");m(g,x,_,"≥","\\geq",!0);m(g,x,_,"←","\\gets");m(g,x,_,">","\\gt",!0);m(g,x,_,"∈","\\in",!0);m(g,x,_,"","\\@not");m(g,x,_,"⊂","\\subset",!0);m(g,x,_,"⊃","\\supset",!0);m(g,x,_,"⊆","\\subseteq",!0);m(g,x,_,"⊇","\\supseteq",!0);m(g,S,_,"⊈","\\nsubseteq",!0);m(g,S,_,"⊉","\\nsupseteq",!0);m(g,x,_,"⊨","\\models");m(g,x,_,"←","\\leftarrow",!0);m(g,x,_,"≤","\\le");m(g,x,_,"≤","\\leq",!0);m(g,x,_,"<","\\lt",!0);m(g,x,_,"→","\\rightarrow",!0);m(g,x,_,"→","\\to");m(g,S,_,"≱","\\ngeq",!0);m(g,S,_,"≰","\\nleq",!0);m(g,x,kr," ","\\ ");m(g,x,kr," ","\\space");m(g,x,kr," ","\\nobreakspace");m(V,x,kr," ","\\ ");m(V,x,kr," "," ");m(V,x,kr," ","\\space");m(V,x,kr," ","\\nobreakspace");m(g,x,kr,"","\\nobreak");m(g,x,kr,"","\\allowbreak");m(g,x,Ya,",",",");m(g,x,Ya,";",";");m(g,S,ae,"⊼","\\barwedge",!0);m(g,S,ae,"⊻","\\veebar",!0);m(g,x,ae,"⊙","\\odot",!0);m(g,x,ae,"⊕","\\oplus",!0);m(g,x,ae,"⊗","\\otimes",!0);m(g,x,M,"∂","\\partial",!0);m(g,x,ae,"⊘","\\oslash",!0);m(g,S,ae,"⊚","\\circledcirc",!0);m(g,S,ae,"⊡","\\boxdot",!0);m(g,x,ae,"△","\\bigtriangleup");m(g,x,ae,"▽","\\bigtriangledown");m(g,x,ae,"†","\\dagger");m(g,x,ae,"⋄","\\diamond");m(g,x,ae,"⋆","\\star");m(g,x,ae,"◃","\\triangleleft");m(g,x,ae,"▹","\\triangleright");m(g,x,_t,"{","\\{");m(V,x,M,"{","\\{");m(V,x,M,"{","\\textbraceleft");m(g,x,yt,"}","\\}");m(V,x,M,"}","\\}");m(V,x,M,"}","\\textbraceright");m(g,x,_t,"{","\\lbrace");m(g,x,yt,"}","\\rbrace");m(g,x,_t,"[","\\lbrack",!0);m(V,x,M,"[","\\lbrack",!0);m(g,x,yt,"]","\\rbrack",!0);m(V,x,M,"]","\\rbrack",!0);m(g,x,_t,"(","\\lparen",!0);m(g,x,yt,")","\\rparen",!0);m(V,x,M,"<","\\textless",!0);m(V,x,M,">","\\textgreater",!0);m(g,x,_t,"⌊","\\lfloor",!0);m(g,x,yt,"⌋","\\rfloor",!0);m(g,x,_t,"⌈","\\lceil",!0);m(g,x,yt,"⌉","\\rceil",!0);m(g,x,M,"\\","\\backslash");m(g,x,M,"∣","|");m(g,x,M,"∣","\\vert");m(V,x,M,"|","\\textbar",!0);m(g,x,M,"∥","\\|");m(g,x,M,"∥","\\Vert");m(V,x,M,"∥","\\textbardbl");m(V,x,M,"~","\\textasciitilde");m(V,x,M,"\\","\\textbackslash");m(V,x,M,"^","\\textasciicircum");m(g,x,_,"↑","\\uparrow",!0);m(g,x,_,"⇑","\\Uparrow",!0);m(g,x,_,"↓","\\downarrow",!0);m(g,x,_,"⇓","\\Downarrow",!0);m(g,x,_,"↕","\\updownarrow",!0);m(g,x,_,"⇕","\\Updownarrow",!0);m(g,x,Je,"∐","\\coprod");m(g,x,Je,"⋁","\\bigvee");m(g,x,Je,"⋀","\\bigwedge");m(g,x,Je,"⨄","\\biguplus");m(g,x,Je,"⋂","\\bigcap");m(g,x,Je,"⋃","\\bigcup");m(g,x,Je,"∫","\\int");m(g,x,Je,"∫","\\intop");m(g,x,Je,"∬","\\iint");m(g,x,Je,"∭","\\iiint");m(g,x,Je,"∏","\\prod");m(g,x,Je,"∑","\\sum");m(g,x,Je,"⨂","\\bigotimes");m(g,x,Je,"⨁","\\bigoplus");m(g,x,Je,"⨀","\\bigodot");m(g,x,Je,"∮","\\oint");m(g,x,Je,"∯","\\oiint");m(g,x,Je,"∰","\\oiiint");m(g,x,Je,"⨆","\\bigsqcup");m(g,x,Je,"∫","\\smallint");m(V,x,ea,"…","\\textellipsis");m(g,x,ea,"…","\\mathellipsis");m(V,x,ea,"…","\\ldots",!0);m(g,x,ea,"…","\\ldots",!0);m(g,x,ea,"⋯","\\@cdots",!0);m(g,x,ea,"⋱","\\ddots",!0);m(g,x,M,"⋮","\\varvdots");m(V,x,M,"⋮","\\varvdots");m(g,x,He,"ˊ","\\acute");m(g,x,He,"ˋ","\\grave");m(g,x,He,"¨","\\ddot");m(g,x,He,"~","\\tilde");m(g,x,He,"ˉ","\\bar");m(g,x,He,"˘","\\breve");m(g,x,He,"ˇ","\\check");m(g,x,He,"^","\\hat");m(g,x,He,"⃗","\\vec");m(g,x,He,"˙","\\dot");m(g,x,He,"˚","\\mathring");m(g,x,de,"","\\@imath");m(g,x,de,"","\\@jmath");m(g,x,M,"ı","ı");m(g,x,M,"ȷ","ȷ");m(V,x,M,"ı","\\i",!0);m(V,x,M,"ȷ","\\j",!0);m(V,x,M,"ß","\\ss",!0);m(V,x,M,"æ","\\ae",!0);m(V,x,M,"œ","\\oe",!0);m(V,x,M,"ø","\\o",!0);m(V,x,M,"Æ","\\AE",!0);m(V,x,M,"Œ","\\OE",!0);m(V,x,M,"Ø","\\O",!0);m(V,x,He,"ˊ","\\'");m(V,x,He,"ˋ","\\`");m(V,x,He,"ˆ","\\^");m(V,x,He,"˜","\\~");m(V,x,He,"ˉ","\\=");m(V,x,He,"˘","\\u");m(V,x,He,"˙","\\.");m(V,x,He,"¸","\\c");m(V,x,He,"˚","\\r");m(V,x,He,"ˇ","\\v");m(V,x,He,"¨",'\\"');m(V,x,He,"˝","\\H");m(V,x,He,"◯","\\textcircled");var jh={"--":!0,"---":!0,"``":!0,"''":!0};m(V,x,M,"–","--",!0);m(V,x,M,"–","\\textendash");m(V,x,M,"—","---",!0);m(V,x,M,"—","\\textemdash");m(V,x,M,"‘","`",!0);m(V,x,M,"‘","\\textquoteleft");m(V,x,M,"’","'",!0);m(V,x,M,"’","\\textquoteright");m(V,x,M,"“","``",!0);m(V,x,M,"“","\\textquotedblleft");m(V,x,M,"”","''",!0);m(V,x,M,"”","\\textquotedblright");m(g,x,M,"°","\\degree",!0);m(V,x,M,"°","\\degree");m(V,x,M,"°","\\textdegree",!0);m(g,x,M,"£","\\pounds");m(g,x,M,"£","\\mathsterling",!0);m(V,x,M,"£","\\pounds");m(V,x,M,"£","\\textsterling",!0);m(g,S,M,"✠","\\maltese");m(V,S,M,"✠","\\maltese");var To='0123456789/@."';for(var Hs=0;Hs<To.length;Hs++){var vo=To.charAt(Hs);m(g,x,M,vo,vo)}var ko='0123456789!@*()-=+";:?/.,';for(var zs=0;zs<ko.length;zs++){var wo=ko.charAt(zs);m(V,x,M,wo,wo)}var Fi="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";for(var $s=0;$s<Fi.length;$s++){var ci=Fi.charAt($s);m(g,x,de,ci,ci),m(V,x,M,ci,ci)}m(g,S,M,"C","ℂ");m(V,S,M,"C","ℂ");m(g,S,M,"H","ℍ");m(V,S,M,"H","ℍ");m(g,S,M,"N","ℕ");m(V,S,M,"N","ℕ");m(g,S,M,"P","ℙ");m(V,S,M,"P","ℙ");m(g,S,M,"Q","ℚ");m(V,S,M,"Q","ℚ");m(g,S,M,"R","ℝ");m(V,S,M,"R","ℝ");m(g,S,M,"Z","ℤ");m(V,S,M,"Z","ℤ");m(g,x,de,"h","ℎ");m(V,x,de,"h","ℎ");var fe;for(var mt=0;mt<Fi.length;mt++){var je=Fi.charAt(mt);fe=String.fromCharCode(55349,56320+mt),m(g,x,de,je,fe),m(V,x,M,je,fe),fe=String.fromCharCode(55349,56372+mt),m(g,x,de,je,fe),m(V,x,M,je,fe),fe=String.fromCharCode(55349,56424+mt),m(g,x,de,je,fe),m(V,x,M,je,fe),fe=String.fromCharCode(55349,56580+mt),m(g,x,de,je,fe),m(V,x,M,je,fe),fe=String.fromCharCode(55349,56684+mt),m(g,x,de,je,fe),m(V,x,M,je,fe),fe=String.fromCharCode(55349,56736+mt),m(g,x,de,je,fe),m(V,x,M,je,fe),fe=String.fromCharCode(55349,56788+mt),m(g,x,de,je,fe),m(V,x,M,je,fe),fe=String.fromCharCode(55349,56840+mt),m(g,x,de,je,fe),m(V,x,M,je,fe),fe=String.fromCharCode(55349,56944+mt),m(g,x,de,je,fe),m(V,x,M,je,fe),mt<26&&(fe=String.fromCharCode(55349,56632+mt),m(g,x,de,je,fe),m(V,x,M,je,fe),fe=String.fromCharCode(55349,56476+mt),m(g,x,de,je,fe),m(V,x,M,je,fe))}fe="𝕜";m(g,x,de,"k",fe);m(V,x,M,"k",fe);for(var sn=0;sn<10;sn++){var _r=sn.toString();fe=String.fromCharCode(55349,57294+sn),m(g,x,de,_r,fe),m(V,x,M,_r,fe),fe=String.fromCharCode(55349,57314+sn),m(g,x,de,_r,fe),m(V,x,M,_r,fe),fe=String.fromCharCode(55349,57324+sn),m(g,x,de,_r,fe),m(V,x,M,_r,fe),fe=String.fromCharCode(55349,57334+sn),m(g,x,de,_r,fe),m(V,x,M,_r,fe)}var B0="ÐÞþ";for(var Us=0;Us<B0.length;Us++){var hi=B0.charAt(Us);m(g,x,de,hi,hi),m(V,x,M,hi,hi)}var F0={mathClass:"mathbf",textClass:"textbf",font:"Main-Bold"},Ao={mathClass:"mathnormal",textClass:"textit",font:"Math-Italic"},Co={mathClass:"boldsymbol",textClass:"boldsymbol",font:"Main-BoldItalic"},g6={mathClass:"mathscr",textClass:"textscr",font:"Script-Regular"},hn={mathClass:"",textClass:"",font:""},So={mathClass:"mathfrak",textClass:"textfrak",font:"Fraktur-Regular"},Io={mathClass:"mathbb",textClass:"textbb",font:"AMS-Regular"},_o={mathClass:"mathboldfrak",textClass:"textboldfrak",font:"Fraktur-Regular"},H0={mathClass:"mathsf",textClass:"textsf",font:"SansSerif-Regular"},z0={mathClass:"mathboldsf",textClass:"textboldsf",font:"SansSerif-Bold"},No={mathClass:"mathitsf",textClass:"textitsf",font:"SansSerif-Italic"},$0={mathClass:"mathtt",textClass:"texttt",font:"Typewriter-Regular"},Lo=[F0,F0,Ao,Ao,Co,Co,g6,hn,hn,hn,So,So,Io,Io,_o,_o,H0,H0,z0,z0,No,No,hn,hn,$0,$0],b6=[F0,hn,H0,z0,$0],x6=e=>{var t=e.charCodeAt(0),r=e.charCodeAt(1),n=(t-55296)*1024+(r-56320)+65536;if(119808<=n&&n<120484){var a=Math.floor((n-119808)/26);return Lo[a]}else if(120782<=n&&n<=120831){var i=Math.floor((n-120782)/10);return b6[i]}else{if(n===120485||n===120486)return Lo[0];if(120486<n&&n<120782)return hn;throw new J("Unsupported character: "+e)}},ls=function(t,r,n){if(Fe[n][t]){var a=Fe[n][t].replace;a&&(t=a)}return{value:t,metrics:Lu(t,r,n)}},gt=function(t,r,n,a,i){var s=ls(t,r,n),u=s.metrics;t=s.value;var l;if(u){var o=u.italic;(n==="text"||a&&a.font==="mathit")&&(o=0),l=new It(t,u.height,u.depth,o,u.skew,u.width,i)}else typeof console<"u"&&console.warn("No character metrics "+("for '"+t+"' in style '"+r+"' and mode '"+n+"'")),l=new It(t,0,0,0,0,0,i);if(a){l.maxFontSize=a.sizeMultiplier,a.style.isTight()&&l.classes.push("mtight");var c=a.getColor();c&&(l.style.color=c)}return l},Ru=function(t,r,n,a){return a===void 0&&(a=[]),n.font==="boldsymbol"&&ls(t,"Main-Bold",r).metrics?gt(t,"Main-Bold",r,n,a.concat(["mathbf"])):t==="\\"||Fe[r][t].font==="main"?gt(t,"Main-Regular",r,n,a):gt(t,"AMS-Regular",r,n,a.concat(["amsrm"]))},E6=function(t,r,n){return n!=="textord"&&ls(t,"Math-BoldItalic",r).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},os=function(t,r,n){var a=t.mode,i=t.text,s=["mord"],{font:u,fontFamily:l,fontWeight:o,fontShape:c}=r,h=a==="math"||a==="text"&&!!u,f=h?u:l,p="",b="";if(i.charCodeAt(0)===55349){var E=x6(i);p=E.font,b=E[a+"Class"]}if(p)return gt(i,p,a,r,s.concat(b));if(f){var T,k;if(f==="boldsymbol"){var C=E6(i,a,n);T=C.fontName,k=[C.fontClass]}else h?(T=U0[u].fontName,k=[u]):(T=di(l,o,c),k=[l,o,c]);if(ls(i,T,a).metrics)return gt(i,T,a,r,s.concat(k));if(jh.hasOwnProperty(i)&&T.slice(0,10)==="Typewriter"){for(var w=[],H=0;H<i.length;H++)w.push(gt(i[H],T,a,r,s.concat(k)));return wr(w)}}if(n==="mathord")return gt(i,"Math-Italic",a,r,s.concat(["mathnormal"]));if(n==="textord"){var z=Fe[a][i]&&Fe[a][i].font;if(z==="ams"){var O=di("amsrm",o,c);return gt(i,O,a,r,s.concat("amsrm",o,c))}else if(z==="main"||!z){var U=di("textrm",o,c);return gt(i,U,a,r,s.concat(o,c))}else{var q=di(z,o,c);return gt(i,q,a,r,s.concat(q,o,c))}}else throw new Error("unexpected type: "+n+" in makeOrd")},y6=(e,t)=>{if(jr(e.classes)!==jr(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize||e.italic!==0&&e.hasClass("mathnormal"))return!1;if(e.classes.length===1){var r=e.classes[0];if(r==="mbin"||r==="mord")return!1}for(var n of Object.keys(e.style))if(e.style[n]!==t.style[n])return!1;for(var a of Object.keys(t.style))if(e.style[a]!==t.style[a])return!1;return!0},Gh=e=>{for(var t=0;t<e.length-1;t++){var r=e[t],n=e[t+1];r instanceof It&&n instanceof It&&y6(r,n)&&(r.text+=n.text,r.height=Math.max(r.height,n.height),r.depth=Math.max(r.depth,n.depth),r.italic=n.italic,e.splice(t+1,1),t--)}return e},Du=function(t){for(var r=0,n=0,a=0,i=0;i<t.children.length;i++){var s=t.children[i];s.height>r&&(r=s.height),s.depth>n&&(n=s.depth),s.maxFontSize>a&&(a=s.maxFontSize)}t.height=r,t.depth=n,t.maxFontSize=a},Q=function(t,r,n,a){var i=new Jn(t,r,n,a);return Du(i),i},Vr=(e,t,r,n)=>new Jn(e,t,r,n),jn=function(t,r,n){var a=Q([t],[],r);return a.height=Math.max(n||r.fontMetrics().defaultRuleThickness,r.minRuleThickness),a.style.borderBottomWidth=te(a.height),a.maxFontSize=1,a},T6=function(t,r,n,a){var i=new us(t,r,n,a);return Du(i),i},wr=function(t){var r=new Zn(t);return Du(r),r},Gn=function(t,r){return t instanceof Zn?Q([],[t],r):t},v6=function(t){if(t.positionType==="individualShift"){for(var r=t.children,n=[r[0]],a=-r[0].shift-r[0].elem.depth,i=a,s=1;s<r.length;s++){var u=-r[s].shift-i-r[s].elem.depth,l=u-(r[s-1].elem.height+r[s-1].elem.depth);i=i+u,n.push({type:"kern",size:l}),n.push(r[s])}return{children:n,depth:a}}var o;if(t.positionType==="top"){for(var c=t.positionData,h=0;h<t.children.length;h++){var f=t.children[h];c-=f.type==="kern"?f.size:f.elem.height+f.elem.depth}o=c}else if(t.positionType==="bottom")o=-t.positionData;else{var p=t.children[0];if(p.type!=="elem")throw new Error('First child must have type "elem".');if(t.positionType==="shift")o=-p.elem.depth-t.positionData;else if(t.positionType==="firstBaseline")o=-p.elem.depth;else throw new Error("Invalid positionType "+t.positionType+".")}return{children:t.children,depth:o}},Ce=function(t,r){for(var{children:n,depth:a}=v6(t),i=0,s=0;s<n.length;s++){var u=n[s];if(u.type==="elem"){var l=u.elem;i=Math.max(i,l.maxFontSize,l.height)}}i+=2;var o=Q(["pstrut"],[]);o.style.height=te(i);for(var c=[],h=a,f=a,p=a,b=0;b<n.length;b++){var E=n[b];if(E.type==="kern")p+=E.size;else{var T=E.elem,k=E.wrapperClasses||[],C=E.wrapperStyle||{},w=Q(k,[o,T],void 0,C);w.style.top=te(-i-p-T.depth),E.marginLeft&&(w.style.marginLeft=E.marginLeft),E.marginRight&&(w.style.marginRight=E.marginRight),c.push(w),p+=T.height+T.depth}h=Math.min(h,p),f=Math.max(f,p)}var H=Q(["vlist"],c);H.style.height=te(f);var z;if(h<0){var O=Q([],[]),U=Q(["vlist"],[O]);U.style.height=te(-h);var q=Q(["vlist-s"],[new It("")]);z=[Q(["vlist-r"],[H,q]),Q(["vlist-r"],[U])]}else z=[Q(["vlist-r"],[H])];var G=Q(["vlist-t"],z);return z.length===2&&G.classes.push("vlist-t2"),G.height=f,G.depth=-h,G},Vh=(e,t)=>{var r=Q(["mspace"],[],t),n=Ue(e,t);return r.style.marginRight=te(n),r},di=(e,t,r)=>{var n,a;switch(e){case"amsrm":n="AMS";break;case"textrm":n="Main";break;case"textsf":n="SansSerif";break;case"texttt":n="Typewriter";break;default:n=e}return t==="textbf"&&r==="textit"?a="BoldItalic":t==="textbf"?a="Bold":r==="textit"?a="Italic":a="Regular",n+"-"+a},U0={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"}},Yh={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},Wh=function(t,r){var[n,a,i]=Yh[t],s=new Gr(n),u=new Tr([s],{width:te(a),height:te(i),style:"width:"+te(a),viewBox:"0 0 "+1e3*a+" "+1e3*i,preserveAspectRatio:"xMinYMin"}),l=Vr(["overlay"],[u],r);return l.height=i,l.style.height=te(i),l.style.width=te(a),l},$e={number:3,unit:"mu"},un={number:4,unit:"mu"},mr={number:5,unit:"mu"},k6={mord:{mop:$e,mbin:un,mrel:mr,minner:$e},mop:{mord:$e,mop:$e,mrel:mr,minner:$e},mbin:{mord:un,mop:un,mopen:un,minner:un},mrel:{mord:mr,mop:mr,mopen:mr,minner:mr},mopen:{},mclose:{mop:$e,mbin:un,mrel:mr,minner:$e},mpunct:{mord:$e,mop:$e,mrel:mr,mopen:$e,mclose:$e,mpunct:$e,minner:$e},minner:{mord:$e,mop:$e,mbin:un,mrel:mr,mopen:$e,mpunct:$e,minner:$e}},w6={mord:{mop:$e},mop:{mord:$e,mop:$e},mbin:{},mrel:{},mopen:{},mclose:{mop:$e},mpunct:{},minner:{mop:$e}},Xh={},Hi={},zi={};function ne(e){for(var{type:t,names:r,props:n,handler:a,htmlBuilder:i,mathmlBuilder:s}=e,u={type:t,numArgs:n.numArgs,argTypes:n.argTypes,allowedInArgument:!!n.allowedInArgument,allowedInText:!!n.allowedInText,allowedInMath:n.allowedInMath===void 0?!0:n.allowedInMath,numOptionalArgs:n.numOptionalArgs||0,infix:!!n.infix,primitive:!!n.primitive,handler:a},l=0;l<r.length;++l)Xh[r[l]]=u;t&&(i&&(Hi[t]=i),s&&(zi[t]=s))}function kn(e){var{type:t,htmlBuilder:r,mathmlBuilder:n}=e;ne({type:t,names:[],props:{numArgs:0},handler(){throw new Error("Should never be called.")},htmlBuilder:r,mathmlBuilder:n})}var $i=function(t){return t.type==="ordgroup"&&t.body.length===1?t.body[0]:t},Ke=function(t){return t.type==="ordgroup"?t.body:[t]},A6=new Set(["leftmost","mbin","mopen","mrel","mop","mpunct"]),C6=new Set(["rightmost","mrel","mclose","mpunct"]),S6={display:me.DISPLAY,text:me.TEXT,script:me.SCRIPT,scriptscript:me.SCRIPTSCRIPT},I6={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},rt=function(t,r,n,a){a===void 0&&(a=[null,null]);for(var i=[],s=0;s<t.length;s++){var u=Se(t[s],r);if(u instanceof Zn){var l=u.children;i.push(...l)}else i.push(u)}if(Gh(i),!n)return i;var o=r;if(t.length===1){var c=t[0];c.type==="sizing"?o=r.havingSize(c.size):c.type==="styling"&&(o=r.havingStyle(S6[c.style]))}var h=Q([a[0]||"leftmost"],[],r),f=Q([a[1]||"rightmost"],[],r),p=n==="root";return q0(i,(b,E)=>{var T=E.classes[0],k=b.classes[0];T==="mbin"&&C6.has(k)?E.classes[0]="mord":k==="mbin"&&A6.has(T)&&(b.classes[0]="mord")},{node:h},f,p),q0(i,(b,E)=>{var T,k,C=G0(E),w=G0(b),H=C&&w?b.hasClass("mtight")?(T=w6[C])==null?void 0:T[w]:(k=k6[C])==null?void 0:k[w]:null;if(H)return Vh(H,o)},{node:h},f,p),i},q0=function(t,r,n,a,i){a&&t.push(a);for(var s=0;s<t.length;s++){var u=t[s],l=Qh(u);if(l){q0(l.children,r,n,null,i);continue}var o=!u.hasClass("mspace");if(o){var c=r(u,n.node);c&&(n.insertAfter?n.insertAfter(c):(t.unshift(c),s++))}o?n.node=u:i&&u.hasClass("newline")&&(n.node=Q(["leftmost"])),n.insertAfter=(h=>f=>{t.splice(h+1,0,f),s++})(s)}a&&t.pop()},Qh=function(t){return t instanceof Zn||t instanceof us||t instanceof Jn&&t.hasClass("enclosing")?t:null},j0=function(t,r){var n=Qh(t);if(n){var a=n.children;if(a.length){if(r==="right")return j0(a[a.length-1],"right");if(r==="left")return j0(a[0],"left")}}return t},G0=function(t,r){if(!t)return null;r&&(t=j0(t,r));var n=t.classes[0];return I6[n]||null},Fa=function(t,r){var n=["nulldelimiter"].concat(t.baseSizingClasses());return Q(r.concat(n))},Se=function(t,r,n){if(!t)return Q();if(Hi[t.type]){var a=Hi[t.type](t,r);if(n&&r.size!==n.size){a=Q(r.sizingClasses(n),[a],r);var i=r.sizeMultiplier/n.sizeMultiplier;a.height*=i,a.depth*=i}return a}else throw new J("Got group of unknown type: '"+t.type+"'")};function fi(e,t){var r=Q(["base"],e,t),n=Q(["strut"]);return n.style.height=te(r.height+r.depth),r.depth&&(n.style.verticalAlign=te(-r.depth)),r.children.unshift(n),r}function V0(e,t){var r=null;e.length===1&&e[0].type==="tag"&&(r=e[0].tag,e=e[0].body);var n=rt(e,t,"root"),a;n.length===2&&n[1].hasClass("tag")&&(a=n.pop());for(var i=[],s=[],u=0;u<n.length;u++)if(s.push(n[u]),n[u].hasClass("mbin")||n[u].hasClass("mrel")||n[u].hasClass("allowbreak")){for(var l=!1;u<n.length-1&&n[u+1].hasClass("mspace")&&!n[u+1].hasClass("newline");)u++,s.push(n[u]),n[u].hasClass("nobreak")&&(l=!0);l||(i.push(fi(s,t)),s=[])}else n[u].hasClass("newline")&&(s.pop(),s.length>0&&(i.push(fi(s,t)),s=[]),i.push(n[u]));s.length>0&&i.push(fi(s,t));var o;r?(o=fi(rt(r,t,!0),t),o.classes=["tag"],i.push(o)):a&&i.push(a);var c=Q(["katex-html"],i);if(c.setAttribute("aria-hidden","true"),o){var h=o.children[0];h.style.height=te(c.height+c.depth),c.depth&&(h.style.verticalAlign=te(-c.depth))}return c}function Kh(e){return new Zn(e)}class ee{constructor(t,r,n){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=t,this.attributes={},this.children=r||[],this.classes=n||[]}setAttribute(t,r){this.attributes[t]=r}getAttribute(t){return this.attributes[t]}toNode(){var t=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&t.setAttribute(r,this.attributes[r]);this.classes.length>0&&(t.className=jr(this.classes));for(var n=0;n<this.children.length;n++)if(this.children[n]instanceof Ze&&this.children[n+1]instanceof Ze){for(var a=this.children[n].toText()+this.children[++n].toText();this.children[n+1]instanceof Ze;)a+=this.children[++n].toText();t.appendChild(new Ze(a).toNode())}else t.appendChild(this.children[n].toNode());return t}toMarkup(){var t="<"+this.type;for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&(t+=" "+r+'="',t+=ct(this.attributes[r]),t+='"');this.classes.length>0&&(t+=' class ="'+ct(jr(this.classes))+'"'),t+=">";for(var n=0;n<this.children.length;n++)t+=this.children[n].toMarkup();return t+="</"+this.type+">",t}toText(){return this.children.map(t=>t.toText()).join("")}}class Ze{constructor(t){this.text=void 0,this.text=t}toNode(){return document.createTextNode(this.text)}toMarkup(){return ct(this.toText())}toText(){return this.text}}class Zh{constructor(t){this.width=void 0,this.character=void 0,this.width=t,t>=.05555&&t<=.05556?this.character=" ":t>=.1666&&t<=.1667?this.character=" ":t>=.2222&&t<=.2223?this.character=" ":t>=.2777&&t<=.2778?this.character=" ":t>=-.05556&&t<=-.05555?this.character=" ":t>=-.1667&&t<=-.1666?this.character=" ":t>=-.2223&&t<=-.2222?this.character=" ":t>=-.2778&&t<=-.2777?this.character=" ":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var t=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return t.setAttribute("width",te(this.width)),t}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+te(this.width)+'"/>'}toText(){return this.character?this.character:" "}}var _6=new Set(["\\imath","\\jmath"]),N6=new Set(["mrow","mtable"]),Ft=function(t,r,n){return Fe[r][t]&&Fe[r][t].replace&&t.charCodeAt(0)!==55349&&!(jh.hasOwnProperty(t)&&n&&(n.fontFamily&&n.fontFamily.slice(4,6)==="tt"||n.font&&n.font.slice(4,6)==="tt"))&&(t=Fe[r][t].replace),new Ze(t)},Ou=function(t){return t.length===1?t[0]:new ee("mrow",t)},L6={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"},Mu=(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 r=t.font;if(!r||r==="mathnormal")return null;var n=e.mode,a=L6[r];if(a)return typeof a=="function"?a(e):a;var i=e.text;if(_6.has(i))return null;if(Fe[n][i]){var s=Fe[n][i].replace;s&&(i=s)}var u=U0[r].fontName;return Lu(i,u,n)?U0[r].variant:null};function qs(e){if(!e)return!1;if(e.type==="mi"&&e.children.length===1){var t=e.children[0];return t instanceof Ze&&t.text==="."}else if(e.type==="mo"&&e.children.length===1&&e.getAttribute("separator")==="true"&&e.getAttribute("lspace")==="0em"&&e.getAttribute("rspace")==="0em"){var r=e.children[0];return r instanceof Ze&&r.text===","}else return!1}var Nt=function(t,r,n){if(t.length===1){var a=Le(t[0],r);return n&&a instanceof ee&&a.type==="mo"&&(a.setAttribute("lspace","0em"),a.setAttribute("rspace","0em")),[a]}for(var i=[],s,u=0;u<t.length;u++){var l=Le(t[u],r);if(l instanceof ee&&s instanceof ee){if(l.type==="mtext"&&s.type==="mtext"&&l.getAttribute("mathvariant")===s.getAttribute("mathvariant")){s.children.push(...l.children);continue}else if(l.type==="mn"&&s.type==="mn"){s.children.push(...l.children);continue}else if(qs(l)&&s.type==="mn"){s.children.push(...l.children);continue}else if(l.type==="mn"&&qs(s))l.children=[...s.children,...l.children],i.pop();else if((l.type==="msup"||l.type==="msub")&&l.children.length>=1&&(s.type==="mn"||qs(s))){var o=l.children[0];o instanceof ee&&o.type==="mn"&&(o.children=[...s.children,...o.children],i.pop())}else if(s.type==="mi"&&s.children.length===1){var c=s.children[0];if(c instanceof Ze&&c.text==="̸"&&(l.type==="mo"||l.type==="mi"||l.type==="mn")){var h=l.children[0];h instanceof Ze&&h.text.length>0&&(h.text=h.text.slice(0,1)+"̸"+h.text.slice(1),i.pop())}}}i.push(l),s=l}return i},Yr=function(t,r,n){return Ou(Nt(t,r,n))},Le=function(t,r){if(!t)return new ee("mrow");if(zi[t.type])return zi[t.type](t,r);throw new J("Got group of unknown type: '"+t.type+"'")};function Ro(e,t,r,n,a){var i=Nt(e,r),s;i.length===1&&i[0]instanceof ee&&N6.has(i[0].type)?s=i[0]:s=new ee("mrow",i);var u=new ee("annotation",[new Ze(t)]);u.setAttribute("encoding","application/x-tex");var l=new ee("semantics",[s,u]),o=new ee("math",[l]);o.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),n&&o.setAttribute("display","block");var c=a?"katex":"katex-mathml";return Q([c],[o])}var R6=[[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]],Do=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],Oo=function(t,r){return r.size<2?t:R6[t-1][r.size-1]};class pr{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||pr.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=Do[this.size-1],this.maxSize=t.maxSize,this.minRuleThickness=t.minRuleThickness,this._fontMetrics=void 0}extend(t){var r={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};return Object.assign(r,t),new pr(r)}havingStyle(t){return this.style===t?this:this.extend({style:t,size:Oo(this.textSize,t)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(t){return this.size===t&&this.textSize===t?this:this.extend({style:this.style.text(),size:t,textSize:t,sizeMultiplier:Do[t-1]})}havingBaseStyle(t){t=t||this.style.text();var r=Oo(pr.BASESIZE,t);return this.size===r&&this.textSize===pr.BASESIZE&&this.style===t?this:this.extend({style:t,size:r})}havingBaseSizing(){var t;switch(this.style.id){case 4:case 5:t=3;break;case 6:case 7:t=1;break;default:t=6}return this.extend({style:this.style.text(),size:t})}withColor(t){return this.extend({color:t})}withPhantom(){return this.extend({phantom:!0})}withFont(t){return this.extend({font:t})}withTextFontFamily(t){return this.extend({fontFamily:t,font:""})}withTextFontWeight(t){return this.extend({fontWeight:t,font:""})}withTextFontShape(t){return this.extend({fontShape:t,font:""})}sizingClasses(t){return t.size!==this.size?["sizing","reset-size"+t.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==pr.BASESIZE?["sizing","reset-size"+this.size,"size"+pr.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=p6(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}pr.BASESIZE=6;var Jh=function(t){return new pr({style:t.displayMode?me.DISPLAY:me.TEXT,maxSize:t.maxSize,minRuleThickness:t.minRuleThickness})},ed=function(t,r){if(r.displayMode){var n=["katex-display"];r.leqno&&n.push("leqno"),r.fleqn&&n.push("fleqn"),t=Q(n,[t])}return t},D6=function(t,r,n){var a=Jh(n),i;if(n.output==="mathml")return Ro(t,r,a,n.displayMode,!0);if(n.output==="html"){var s=V0(t,a);i=Q(["katex"],[s])}else{var u=Ro(t,r,a,n.displayMode,!1),l=V0(t,a);i=Q(["katex"],[u,l])}return ed(i,n)},O6=function(t,r,n){var a=Jh(n),i=V0(t,a),s=Q(["katex"],[i]);return ed(s,n)},M6={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":"="},cs=function(t){var r=new ee("mo",[new Ze(M6[t.replace(/^\\/,"")])]);return r.setAttribute("stretchy","true"),r},P6={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]},B6=new Set(["widehat","widecheck","widetilde","utilde"]),hs=function(t,r){function n(){var u=4e5,l=t.label.slice(1);if(B6.has(l)&&"base"in t){var o=t.base.type==="ordgroup"?t.base.body.length:1,c,h,f;if(o>5)l==="widehat"||l==="widecheck"?(c=420,u=2364,f=.42,h=l+"4"):(c=312,u=2340,f=.34,h="tilde4");else{var p=[1,1,2,2,3,3][o];l==="widehat"||l==="widecheck"?(u=[0,1062,2364,2364,2364][p],c=[0,239,300,360,420][p],f=[0,.24,.3,.3,.36,.42][p],h=l+p):(u=[0,600,1033,2339,2340][p],c=[0,260,286,306,312][p],f=[0,.26,.286,.3,.306,.34][p],h="tilde"+p)}var b=new Gr(h),E=new Tr([b],{width:"100%",height:te(f),viewBox:"0 0 "+u+" "+c,preserveAspectRatio:"none"});return{span:Vr([],[E],r),minWidth:0,height:f}}else{var T=[],k=P6[l];if(!k)throw new Error('No SVG data for "'+l+'".');var[C,w,H]=k,z=H/1e3,O=C.length,U,q;if(O===1){if(k.length!==4)throw new Error('Expected 4-tuple for single-path SVG data "'+l+'".');U=["hide-tail"],q=[k[3]]}else if(O===2)U=["halfarrow-left","halfarrow-right"],q=["xMinYMin","xMaxYMin"];else if(O===3)U=["brace-left","brace-center","brace-right"],q=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
|
|
397
|
+
`+O+" children.");for(var G=0;G<O;G++){var P=new Gr(C[G]),K=new Tr([P],{width:"400em",height:te(z),viewBox:"0 0 "+u+" "+H,preserveAspectRatio:q[G]+" slice"}),j=Vr([U[G]],[K],r);if(O===1)return{span:j,minWidth:w,height:z};j.style.height=te(z),T.push(j)}return{span:Q(["stretchy"],T,r),minWidth:w,height:z}}}var{span:a,minWidth:i,height:s}=n();return a.height=s,a.style.height=te(s),i>0&&(a.style.minWidth=te(i)),a},F6=function(t,r,n,a,i){var s,u=t.height+t.depth+n+a;if(/fbox|color|angl/.test(r)){if(s=Q(["stretchy",r],[],i),r==="fbox"){var l=i.color&&i.getColor();l&&(s.style.borderColor=l)}}else{var o=[];/^[bx]cancel$/.test(r)&&o.push(new P0({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(r)&&o.push(new P0({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var c=new Tr(o,{width:"100%",height:te(u)});s=Vr([],[c],i)}return s.height=u,s.style.height=te(u),s},H6={bin:1,close:1,inner:1,open:1,punct:1,rel:1},z6={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1};function $6(e){return e in H6}function be(e,t){if(!e||e.type!==t)throw new Error("Expected node of type "+t+", but got "+(e?"node of type "+e.type:String(e)));return e}function ds(e){var t=fs(e);if(!t)throw new Error("Expected node of symbol group type, but got "+(e?"node of type "+e.type:String(e)));return t}function fs(e){return e&&(e.type==="atom"||z6.hasOwnProperty(e.type))?e:null}var td=e=>{if(e instanceof It)return e;if(f6(e)&&e.children.length===1)return td(e.children[0])},Pu=(e,t)=>{var r,n,a;e&&e.type==="supsub"?(n=be(e.base,"accent"),r=n.base,e.base=r,a=d6(Se(e,t)),e.base=n):(n=be(e,"accent"),r=n.base);var i=Se(r,t.havingCrampedStyle()),s=n.isShifty&&vr(r),u=0;if(s){var l,o;u=(l=(o=td(i))==null?void 0:o.skew)!=null?l:0}var c=n.label==="\\c",h=c?i.height+i.depth:Math.min(i.height,t.fontMetrics().xHeight),f;if(n.isStretchy)f=hs(n,t),f=Ce({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"elem",elem:f,wrapperClasses:["svg-align"],wrapperStyle:u>0?{width:"calc(100% - "+te(2*u)+")",marginLeft:te(2*u)}:void 0}]});else{var p,b;n.label==="\\vec"?(p=Wh("vec",t),b=Yh.vec[1]):(p=os({mode:n.mode,text:n.label},t,"textord"),p=h6(p),p.italic=0,b=p.width,c&&(h+=p.depth)),f=Q(["accent-body"],[p]);var E=n.label==="\\textcircled";E&&(f.classes.push("accent-full"),h=i.height);var T=u;E||(T-=b/2),f.style.left=te(T),n.label==="\\textcircled"&&(f.style.top=".2em"),f=Ce({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"kern",size:-h},{type:"elem",elem:f}]})}var k=Q(["mord","accent"],[f],t);return a?(a.children[0]=k,a.height=Math.max(k.height,a.height),a.classes[0]="mord",a):k},rd=(e,t)=>{var r=e.isStretchy?cs(e.label):new ee("mo",[Ft(e.label,e.mode)]),n=new ee("mover",[Le(e.base,t),r]);return n.setAttribute("accent","true"),n},U6=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(e=>"\\"+e).join("|"));ne({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(e,t)=>{var r=$i(t[0]),n=!U6.test(e.funcName),a=!n||e.funcName==="\\widehat"||e.funcName==="\\widetilde"||e.funcName==="\\widecheck";return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:n,isShifty:a,base:r}},htmlBuilder:Pu,mathmlBuilder:rd});ne({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(e,t)=>{var r=t[0],n=e.parser.mode;return n==="math"&&(e.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+e.funcName+" works only in text mode"),n="text"),{type:"accent",mode:n,label:e.funcName,isStretchy:!1,isShifty:!0,base:r}},htmlBuilder:Pu,mathmlBuilder:rd});ne({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(e,t)=>{var{parser:r,funcName:n}=e,a=t[0];return{type:"accentUnder",mode:r.mode,label:n,base:a}},htmlBuilder:(e,t)=>{var r=Se(e.base,t),n=hs(e,t),a=e.label==="\\utilde"?.12:0,i=Ce({positionType:"top",positionData:r.height,children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:a},{type:"elem",elem:r}]});return Q(["mord","accentunder"],[i],t)},mathmlBuilder:(e,t)=>{var r=cs(e.label),n=new ee("munder",[Le(e.base,t),r]);return n.setAttribute("accentunder","true"),n}});var mi=e=>{var t=new ee("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};ne({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,r){var{parser:n,funcName:a}=e;return{type:"xArrow",mode:n.mode,label:a,body:t[0],below:r[0]}},htmlBuilder(e,t){var r=t.style,n=t.havingStyle(r.sup()),a=Gn(Se(e.body,n,t),t),i=e.label.slice(0,2)==="\\x"?"x":"cd";a.classes.push(i+"-arrow-pad");var s;e.below&&(n=t.havingStyle(r.sub()),s=Gn(Se(e.below,n,t),t),s.classes.push(i+"-arrow-pad"));var u=hs(e,t),l=-t.fontMetrics().axisHeight+.5*u.height,o=-t.fontMetrics().axisHeight-.5*u.height-.111;(a.depth>.25||e.label==="\\xleftequilibrium")&&(o-=a.depth);var c;if(s){var h=-t.fontMetrics().axisHeight+s.height+.5*u.height+.111;c=Ce({positionType:"individualShift",children:[{type:"elem",elem:a,shift:o},{type:"elem",elem:u,shift:l,wrapperClasses:["svg-align"]},{type:"elem",elem:s,shift:h}]})}else c=Ce({positionType:"individualShift",children:[{type:"elem",elem:a,shift:o},{type:"elem",elem:u,shift:l,wrapperClasses:["svg-align"]}]});return Q(["mrel","x-arrow"],[c],t)},mathmlBuilder(e,t){var r=cs(e.label);r.setAttribute("minsize",e.label.charAt(0)==="x"?"1.75em":"3.0em");var n;if(e.body){var a=mi(Le(e.body,t));if(e.below){var i=mi(Le(e.below,t));n=new ee("munderover",[r,i,a])}else n=new ee("mover",[r,a])}else if(e.below){var s=mi(Le(e.below,t));n=new ee("munder",[r,s])}else n=mi(),n=new ee("mover",[r,n]);return n}});function nd(e,t){var r=rt(e.body,t,!0);return Q([e.mclass],r,t)}function ad(e,t){var r,n=Nt(e.body,t);return e.mclass==="minner"?r=new ee("mpadded",n):e.mclass==="mord"?e.isCharacterBox?(r=n[0],r.type="mi"):r=new ee("mi",n):(e.isCharacterBox?(r=n[0],r.type="mo"):r=new ee("mo",n),e.mclass==="mbin"?(r.attributes.lspace="0.22em",r.attributes.rspace="0.22em"):e.mclass==="mpunct"?(r.attributes.lspace="0em",r.attributes.rspace="0.17em"):e.mclass==="mopen"||e.mclass==="mclose"?(r.attributes.lspace="0em",r.attributes.rspace="0em"):e.mclass==="minner"&&(r.attributes.lspace="0.0556em",r.attributes.width="+0.1111em")),r}ne({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(e,t){var{parser:r,funcName:n}=e,a=t[0];return{type:"mclass",mode:r.mode,mclass:"m"+n.slice(5),body:Ke(a),isCharacterBox:vr(a)}},htmlBuilder:nd,mathmlBuilder:ad});var ms=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"};ne({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(e,t){var{parser:r}=e;return{type:"mclass",mode:r.mode,mclass:ms(t[0]),body:Ke(t[1]),isCharacterBox:vr(t[1])}}});ne({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(e,t){var{parser:r,funcName:n}=e,a=t[1],i=t[0],s;n!=="\\stackrel"?s=ms(a):s="mrel";var u={type:"op",mode:a.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:n!=="\\stackrel",body:Ke(a)},l={type:"supsub",mode:i.mode,base:u,sup:n==="\\underset"?null:i,sub:n==="\\underset"?i:null};return{type:"mclass",mode:r.mode,mclass:s,body:[l],isCharacterBox:vr(l)}},htmlBuilder:nd,mathmlBuilder:ad});ne({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"pmb",mode:r.mode,mclass:ms(t[0]),body:Ke(t[0])}},htmlBuilder(e,t){var r=rt(e.body,t,!0),n=Q([e.mclass],r,t);return n.style.textShadow="0.02em 0.01em 0.04px",n},mathmlBuilder(e,t){var r=Nt(e.body,t),n=new ee("mstyle",r);return n.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),n}});var q6={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},Mo=()=>({type:"styling",body:[],mode:"math",style:"display",resetFont:!0}),Po=e=>e.type==="textord"&&e.text==="@",j6=(e,t)=>(e.type==="mathord"||e.type==="atom")&&e.text===t;function G6(e,t,r){var n=q6[e];switch(n){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return r.callFunction(n,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":{var a=r.callFunction("\\\\cdleft",[t[0]],[]),i={type:"atom",text:n,mode:"math",family:"rel"},s=r.callFunction("\\Big",[i],[]),u=r.callFunction("\\\\cdright",[t[1]],[]),l={type:"ordgroup",mode:"math",body:[a,s,u]};return r.callFunction("\\\\cdparent",[l],[])}case"\\\\cdlongequal":return r.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var o={type:"textord",text:"\\Vert",mode:"math"};return r.callFunction("\\Big",[o],[])}default:return{type:"textord",text:" ",mode:"math"}}}function V6(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set("\\cr","\\\\\\relax"),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,"\\\\")),e.gullet.endGroup(),e.gullet.beginGroup();var r=e.fetch().text;if(r==="&"||r==="\\\\")e.consume();else if(r==="\\end"){t[t.length-1].length===0&&t.pop();break}else throw new J("Expected \\\\ or \\cr or \\end",e.nextToken)}for(var n=[],a=[n],i=0;i<t.length;i++){for(var s=t[i],u=Mo(),l=0;l<s.length;l++)if(!Po(s[l]))u.body.push(s[l]);else{n.push(u),l+=1;var o=ds(s[l]).text,c=new Array(2);if(c[0]={type:"ordgroup",mode:"math",body:[]},c[1]={type:"ordgroup",mode:"math",body:[]},!"=|.".includes(o))if("<>AV".includes(o))for(var h=0;h<2;h++){for(var f=!0,p=l+1;p<s.length;p++){if(j6(s[p],o)){f=!1,l=p;break}if(Po(s[p]))throw new J("Missing a "+o+" character to complete a CD arrow.",s[p]);c[h].body.push(s[p])}if(f)throw new J("Missing a "+o+" character to complete a CD arrow.",s[l])}else throw new J('Expected one of "<>AV=|." after @',s[l]);var b=G6(o,c,e),E={type:"styling",body:[b],mode:"math",style:"display",resetFont:!0};n.push(E),u=Mo()}i%2===0?n.push(u):n.shift(),n=[],a.push(n)}e.gullet.endGroup(),e.gullet.endGroup();var T=new Array(a[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:a,arraystretch:1,addJot:!0,rowGaps:[null],cols:T,colSeparationType:"CD",hLinesBeforeRow:new Array(a.length+1).fill([])}}ne({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:n}=e;return{type:"cdlabel",mode:r.mode,side:n.slice(4),label:t[0]}},htmlBuilder(e,t){var r=t.havingStyle(t.style.sup()),n=Gn(Se(e.label,r,t),t);return n.classes.push("cd-label-"+e.side),n.style.bottom=te(.8-n.depth),n.height=0,n.depth=0,n},mathmlBuilder(e,t){var r=new ee("mrow",[Le(e.label,t)]);return r=new ee("mpadded",[r]),r.setAttribute("width","0"),e.side==="left"&&r.setAttribute("lspace","-1width"),r.setAttribute("voffset","0.7em"),r=new ee("mstyle",[r]),r.setAttribute("displaystyle","false"),r.setAttribute("scriptlevel","1"),r}});ne({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(e,t){var{parser:r}=e;return{type:"cdlabelparent",mode:r.mode,fragment:t[0]}},htmlBuilder(e,t){var r=Gn(Se(e.fragment,t),t);return r.classes.push("cd-vert-arrow"),r},mathmlBuilder(e,t){return new ee("mrow",[Le(e.fragment,t)])}});ne({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:r}=e,n=be(t[0],"ordgroup"),a=n.body,i="",s=0;s<a.length;s++){var u=be(a[s],"textord");i+=u.text}var l=parseInt(i),o;if(isNaN(l))throw new J("\\@char has non-numeric argument "+i);if(l<0||l>=1114111)throw new J("\\@char with invalid code point "+i);return l<=65535?o=String.fromCharCode(l):(l-=65536,o=String.fromCharCode((l>>10)+55296,(l&1023)+56320)),{type:"textord",mode:r.mode,text:o}}});var id=(e,t)=>{var r=rt(e.body,t.withColor(e.color),!1);return wr(r)},sd=(e,t)=>{var r=Nt(e.body,t.withColor(e.color)),n=new ee("mstyle",r);return n.setAttribute("mathcolor",e.color),n};ne({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(e,t){var{parser:r}=e,n=be(t[0],"color-token").color,a=t[1];return{type:"color",mode:r.mode,color:n,body:Ke(a)}},htmlBuilder:id,mathmlBuilder:sd});ne({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(e,t){var{parser:r,breakOnTokenText:n}=e,a=be(t[0],"color-token").color;r.gullet.macros.set("\\current@color",a);var i=r.parseExpression(!0,n);return{type:"color",mode:r.mode,color:a,body:i}},htmlBuilder:id,mathmlBuilder:sd});ne({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,r){var{parser:n}=e,a=n.gullet.future().text==="["?n.parseSizeGroup(!0):null,i=!n.settings.displayMode||!n.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:n.mode,newLine:i,size:a&&be(a,"size").value}},htmlBuilder(e,t){var r=Q(["mspace"],[],t);return e.newLine&&(r.classes.push("newline"),e.size&&(r.style.marginTop=te(Ue(e.size,t)))),r},mathmlBuilder(e,t){var r=new ee("mspace");return e.newLine&&(r.setAttribute("linebreak","newline"),e.size&&r.setAttribute("height",te(Ue(e.size,t)))),r}});var Y0={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},ud=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new J("Expected a control sequence",e);return t},Y6=e=>{var t=e.gullet.popToken();return t.text==="="&&(t=e.gullet.popToken(),t.text===" "&&(t=e.gullet.popToken())),t},ld=(e,t,r,n)=>{var a=e.gullet.macros.get(r.text);a==null&&(r.noexpand=!0,a={tokens:[r],numArgs:0,unexpandable:!e.gullet.isExpandable(r.text)}),e.gullet.macros.set(t,a,n)};ne({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t,funcName:r}=e;t.consumeSpaces();var n=t.fetch();if(Y0[n.text])return(r==="\\global"||r==="\\\\globallong")&&(n.text=Y0[n.text]),be(t.parseFunction(),"internal");throw new J("Invalid token after macro prefix",n)}});ne({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,n=t.gullet.popToken(),a=n.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(a))throw new J("Expected a control sequence",n);for(var i=0,s,u=[[]];t.gullet.future().text!=="{";)if(n=t.gullet.popToken(),n.text==="#"){if(t.gullet.future().text==="{"){s=t.gullet.future(),u[i].push("{");break}if(n=t.gullet.popToken(),!/^[1-9]$/.test(n.text))throw new J('Invalid argument number "'+n.text+'"');if(parseInt(n.text)!==i+1)throw new J('Argument number "'+n.text+'" out of order');i++,u.push([])}else{if(n.text==="EOF")throw new J("Expected a macro definition");u[i].push(n.text)}var{tokens:l}=t.gullet.consumeArg();return s&&l.unshift(s),(r==="\\edef"||r==="\\xdef")&&(l=t.gullet.expandTokens(l),l.reverse()),t.gullet.macros.set(a,{tokens:l,numArgs:i,delimiters:u},r===Y0[r]),{type:"internal",mode:t.mode}}});ne({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,n=ud(t.gullet.popToken());t.gullet.consumeSpaces();var a=Y6(t);return ld(t,n,a,r==="\\\\globallet"),{type:"internal",mode:t.mode}}});ne({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,n=ud(t.gullet.popToken()),a=t.gullet.popToken(),i=t.gullet.popToken();return ld(t,n,i,r==="\\\\globalfuture"),t.gullet.pushToken(i),t.gullet.pushToken(a),{type:"internal",mode:t.mode}}});var ya=function(t,r,n){var a=Fe.math[t]&&Fe.math[t].replace,i=Lu(a||t,r,n);if(!i)throw new Error("Unsupported symbol "+t+" and font size "+r+".");return i},Bu=function(t,r,n,a){var i=n.havingBaseStyle(r),s=Q(a.concat(i.sizingClasses(n)),[t],n),u=i.sizeMultiplier/n.sizeMultiplier;return s.height*=u,s.depth*=u,s.maxFontSize=i.sizeMultiplier,s},od=function(t,r,n){var a=r.havingBaseStyle(n),i=(1-r.sizeMultiplier/a.sizeMultiplier)*r.fontMetrics().axisHeight;t.classes.push("delimcenter"),t.style.top=te(i),t.height-=i,t.depth+=i},W6=function(t,r,n,a,i,s){var u=gt(t,"Main-Regular",i,a),l=Bu(u,r,a,s);return od(l,a,r),l},X6=function(t,r,n,a){return gt(t,"Size"+r+"-Regular",n,a)},cd=function(t,r,n,a,i,s){var u=X6(t,r,i,a),l=Bu(Q(["delimsizing","size"+r],[u],a),me.TEXT,a,s);return n&&od(l,a,me.TEXT),l},js=function(t,r,n){var a;r==="Size1-Regular"?a="delim-size1":a="delim-size4";var i=Q(["delimsizinginner",a],[Q([],[gt(t,r,n)])]);return{type:"elem",elem:i}},Gs=function(t,r,n){var a=tr["Size4-Regular"][t.charCodeAt(0)]?tr["Size4-Regular"][t.charCodeAt(0)][4]:tr["Size1-Regular"][t.charCodeAt(0)][4],i=new Gr("inner",a6(t,Math.round(1e3*r))),s=new Tr([i],{width:te(a),height:te(r),style:"width:"+te(a),viewBox:"0 0 "+1e3*a+" "+Math.round(1e3*r),preserveAspectRatio:"xMinYMin"}),u=Vr([],[s],n);return u.height=r,u.style.height=te(r),u.style.width=te(a),{type:"elem",elem:u}},W0=.008,pi={type:"kern",size:-1*W0},Q6=new Set(["|","\\lvert","\\rvert","\\vert"]),K6=new Set(["\\|","\\lVert","\\rVert","\\Vert"]),hd=function(t,r,n,a,i,s){var u,l,o,c,h="",f=0;u=o=c=t,l=null;var p="Size1-Regular";t==="\\uparrow"?o=c="⏐":t==="\\Uparrow"?o=c="‖":t==="\\downarrow"?u=o="⏐":t==="\\Downarrow"?u=o="‖":t==="\\updownarrow"?(u="\\uparrow",o="⏐",c="\\downarrow"):t==="\\Updownarrow"?(u="\\Uparrow",o="‖",c="\\Downarrow"):Q6.has(t)?(o="∣",h="vert",f=333):K6.has(t)?(o="∥",h="doublevert",f=556):t==="["||t==="\\lbrack"?(u="⎡",o="⎢",c="⎣",p="Size4-Regular",h="lbrack",f=667):t==="]"||t==="\\rbrack"?(u="⎤",o="⎥",c="⎦",p="Size4-Regular",h="rbrack",f=667):t==="\\lfloor"||t==="⌊"?(o=u="⎢",c="⎣",p="Size4-Regular",h="lfloor",f=667):t==="\\lceil"||t==="⌈"?(u="⎡",o=c="⎢",p="Size4-Regular",h="lceil",f=667):t==="\\rfloor"||t==="⌋"?(o=u="⎥",c="⎦",p="Size4-Regular",h="rfloor",f=667):t==="\\rceil"||t==="⌉"?(u="⎤",o=c="⎥",p="Size4-Regular",h="rceil",f=667):t==="("||t==="\\lparen"?(u="⎛",o="⎜",c="⎝",p="Size4-Regular",h="lparen",f=875):t===")"||t==="\\rparen"?(u="⎞",o="⎟",c="⎠",p="Size4-Regular",h="rparen",f=875):t==="\\{"||t==="\\lbrace"?(u="⎧",l="⎨",c="⎩",o="⎪",p="Size4-Regular"):t==="\\}"||t==="\\rbrace"?(u="⎫",l="⎬",c="⎭",o="⎪",p="Size4-Regular"):t==="\\lgroup"||t==="⟮"?(u="⎧",c="⎩",o="⎪",p="Size4-Regular"):t==="\\rgroup"||t==="⟯"?(u="⎫",c="⎭",o="⎪",p="Size4-Regular"):t==="\\lmoustache"||t==="⎰"?(u="⎧",c="⎭",o="⎪",p="Size4-Regular"):(t==="\\rmoustache"||t==="⎱")&&(u="⎫",c="⎩",o="⎪",p="Size4-Regular");var b=ya(u,p,i),E=b.height+b.depth,T=ya(o,p,i),k=T.height+T.depth,C=ya(c,p,i),w=C.height+C.depth,H=0,z=1;if(l!==null){var O=ya(l,p,i);H=O.height+O.depth,z=2}var U=E+w+H,q=Math.max(0,Math.ceil((r-U)/(z*k))),G=U+q*z*k,P=a.fontMetrics().axisHeight;n&&(P*=a.sizeMultiplier);var K=G/2-P,j=[];if(h.length>0){var ce=G-E-w,re=Math.round(G*1e3),Y=i6(h,Math.round(ce*1e3)),le=new Gr(h,Y),xe=te(f/1e3),_e=te(re/1e3),qe=new Tr([le],{width:xe,height:_e,viewBox:"0 0 "+f+" "+re}),L=Vr([],[qe],a);L.height=re/1e3,L.style.width=xe,L.style.height=_e,j.push({type:"elem",elem:L})}else{if(j.push(js(c,p,i)),j.push(pi),l===null){var Ie=G-E-w+2*W0;j.push(Gs(o,Ie,a))}else{var Ge=(G-E-w-H)/2+2*W0;j.push(Gs(o,Ge,a)),j.push(pi),j.push(js(l,p,i)),j.push(pi),j.push(Gs(o,Ge,a))}j.push(pi),j.push(js(u,p,i))}var R=a.havingBaseStyle(me.TEXT),Pe=Ce({positionType:"bottom",positionData:K,children:j});return Bu(Q(["delimsizing","mult"],[Pe],R),me.TEXT,a,s)},Vs=80,Ys=.08,Ws=function(t,r,n,a,i){var s=n6(t,a,n),u=new Gr(t,s),l=new Tr([u],{width:"400em",height:te(r),viewBox:"0 0 400000 "+n,preserveAspectRatio:"xMinYMin slice"});return Vr(["hide-tail"],[l],i)},Z6=function(t,r){var n=r.havingBaseSizing(),a=gd("\\surd",t*n.sizeMultiplier,pd,n),i=n.sizeMultiplier,s=Math.max(0,r.minRuleThickness-r.fontMetrics().sqrtRuleThickness),u,l,o,c,h;return a.type==="small"?(c=1e3+1e3*s+Vs,t<1?i=1:t<1.4&&(i=.7),l=(1+s+Ys)/i,o=(1+s)/i,u=Ws("sqrtMain",l,c,s,r),u.style.minWidth="0.853em",h=.833/i):a.type==="large"?(c=(1e3+Vs)*Ca[a.size],o=(Ca[a.size]+s)/i,l=(Ca[a.size]+s+Ys)/i,u=Ws("sqrtSize"+a.size,l,c,s,r),u.style.minWidth="1.02em",h=1/i):(l=t+s+Ys,o=t+s,c=Math.floor(1e3*t+s)+Vs,u=Ws("sqrtTall",l,c,s,r),u.style.minWidth="0.742em",h=1.056),u.height=o,u.style.height=te(l),{span:u,advanceWidth:h,ruleWidth:(r.fontMetrics().sqrtRuleThickness+s)*i}},dd=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"]),J6=new Set(["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"]),fd=new Set(["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"]),Ca=[0,1.2,1.8,2.4,3],md=function(t,r,n,a,i){if(t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle"),dd.has(t)||fd.has(t))return cd(t,r,!1,n,a,i);if(J6.has(t))return hd(t,Ca[r],!1,n,a,i);throw new J("Illegal delimiter: '"+t+"'")},e5=[{type:"small",style:me.SCRIPTSCRIPT},{type:"small",style:me.SCRIPT},{type:"small",style:me.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],t5=[{type:"small",style:me.SCRIPTSCRIPT},{type:"small",style:me.SCRIPT},{type:"small",style:me.TEXT},{type:"stack"}],pd=[{type:"small",style:me.SCRIPTSCRIPT},{type:"small",style:me.SCRIPT},{type:"small",style:me.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],r5=function(t){if(t.type==="small")return"Main-Regular";if(t.type==="large")return"Size"+t.size+"-Regular";if(t.type==="stack")return"Size4-Regular";var r=t.type;throw new Error("Add support for delim type '"+r+"' here.")},gd=function(t,r,n,a){for(var i=Math.min(2,3-a.style.size),s=i;s<n.length;s++){var u=n[s];if(u.type==="stack")break;var l=ya(t,r5(u),"math"),o=l.height+l.depth;if(u.type==="small"){var c=a.havingBaseStyle(u.style);o*=c.sizeMultiplier}if(o>r)return u}return n[n.length-1]},X0=function(t,r,n,a,i,s){t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle");var u;fd.has(t)?u=e5:dd.has(t)?u=pd:u=t5;var l=gd(t,r,u,a);return l.type==="small"?W6(t,l.style,n,a,i,s):l.type==="large"?cd(t,l.size,n,a,i,s):hd(t,r,n,a,i,s)},Xs=function(t,r,n,a,i,s){var u=a.fontMetrics().axisHeight*a.sizeMultiplier,l=901,o=5/a.fontMetrics().ptPerEm,c=Math.max(r-u,n+u),h=Math.max(c/500*l,2*c-o);return X0(t,h,!0,a,i,s)},Bo={"\\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}},n5=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."]);function Fo(e){return"isMiddle"in e}function ps(e,t){var r=fs(e);if(r&&n5.has(r.text))return r;throw r?new J("Invalid delimiter '"+r.text+"' after '"+t.funcName+"'",e):new J("Invalid delimiter type '"+e.type+"'",e)}ne({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(e,t)=>{var r=ps(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:Bo[e.funcName].size,mclass:Bo[e.funcName].mclass,delim:r.text}},htmlBuilder:(e,t)=>e.delim==="."?Q([e.mclass]):md(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];e.delim!=="."&&t.push(Ft(e.delim,e.mode));var r=new ee("mo",t);e.mclass==="mopen"||e.mclass==="mclose"?r.setAttribute("fence","true"):r.setAttribute("fence","false"),r.setAttribute("stretchy","true");var n=te(Ca[e.size]);return r.setAttribute("minsize",n),r.setAttribute("maxsize",n),r}});function Ho(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}ne({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=e.parser.gullet.macros.get("\\current@color");if(r&&typeof r!="string")throw new J("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:ps(t[0],e).text,color:r}}});ne({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=ps(t[0],e),n=e.parser;++n.leftrightDepth;var a=n.parseExpression(!1);--n.leftrightDepth,n.expect("\\right",!1);var i=be(n.parseFunction(),"leftright-right");return{type:"leftright",mode:n.mode,body:a,left:r.text,right:i.delim,rightColor:i.color}},htmlBuilder:(e,t)=>{Ho(e);for(var r=rt(e.body,t,!0,["mopen","mclose"]),n=0,a=0,i=!1,s=0;s<r.length;s++){var u=r[s];Fo(u)?i=!0:(n=Math.max(r[s].height,n),a=Math.max(r[s].depth,a))}n*=t.sizeMultiplier,a*=t.sizeMultiplier;var l;if(e.left==="."?l=Fa(t,["mopen"]):l=Xs(e.left,n,a,t,e.mode,["mopen"]),r.unshift(l),i)for(var o=1;o<r.length;o++){var c=r[o];if(Fo(c)){var h=c.isMiddle;r[o]=Xs(h.delim,n,a,h.options,e.mode,[])}}var f;if(e.right===".")f=Fa(t,["mclose"]);else{var p=e.rightColor?t.withColor(e.rightColor):t;f=Xs(e.right,n,a,p,e.mode,["mclose"])}return r.push(f),Q(["minner"],r,t)},mathmlBuilder:(e,t)=>{Ho(e);var r=Nt(e.body,t);if(e.left!=="."){var n=new ee("mo",[Ft(e.left,e.mode)]);n.setAttribute("fence","true"),r.unshift(n)}if(e.right!=="."){var a=new ee("mo",[Ft(e.right,e.mode)]);a.setAttribute("fence","true"),e.rightColor&&a.setAttribute("mathcolor",e.rightColor),r.push(a)}return Ou(r)}});ne({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=ps(t[0],e);if(!e.parser.leftrightDepth)throw new J("\\middle without preceding \\left",r);return{type:"middle",mode:e.parser.mode,delim:r.text}},htmlBuilder:(e,t)=>{var r;return e.delim==="."?r=Fa(t,[]):(r=md(e.delim,1,t,e.mode,[]),r.isMiddle={delim:e.delim,options:t}),r},mathmlBuilder:(e,t)=>{var r=e.delim==="\\vert"||e.delim==="|"?Ft("|","text"):Ft(e.delim,e.mode),n=new ee("mo",[r]);return n.setAttribute("fence","true"),n.setAttribute("lspace","0.05em"),n.setAttribute("rspace","0.05em"),n}});var gs=(e,t)=>{var r=Gn(Se(e.body,t),t),n=e.label.slice(1),a=t.sizeMultiplier,i,s,u=vr(e.body);if(n==="sout")i=Q(["stretchy","sout"]),i.height=t.fontMetrics().defaultRuleThickness/a,s=-.5*t.fontMetrics().xHeight;else if(n==="phase"){var l=Ue({number:.6,unit:"pt"},t),o=Ue({number:.35,unit:"ex"},t),c=t.havingBaseSizing();a=a/c.sizeMultiplier;var h=r.height+r.depth+l+o;r.style.paddingLeft=te(h/2+l);var f=Math.floor(1e3*h*a),p=t6(f),b=new Tr([new Gr("phase",p)],{width:"400em",height:te(f/1e3),viewBox:"0 0 400000 "+f,preserveAspectRatio:"xMinYMin slice"});i=Vr(["hide-tail"],[b],t),i.style.height=te(h),s=r.depth+l+o}else{/cancel/.test(n)?u||r.classes.push("cancel-pad"):n==="angl"?r.classes.push("anglpad"):r.classes.push("boxpad");var E,T,k=0;/box/.test(n)?(k=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),E=t.fontMetrics().fboxsep+(n==="colorbox"?0:k),T=E):n==="angl"?(k=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),E=4*k,T=Math.max(0,.25-r.depth)):(E=u?.2:0,T=E),i=F6(r,n,E,T,t),/fbox|boxed|fcolorbox/.test(n)?(i.style.borderStyle="solid",i.style.borderWidth=te(k)):n==="angl"&&k!==.049&&(i.style.borderTopWidth=te(k),i.style.borderRightWidth=te(k)),s=r.depth+T,e.backgroundColor&&(i.style.backgroundColor=e.backgroundColor,e.borderColor&&(i.style.borderColor=e.borderColor))}var C;if(e.backgroundColor)C=Ce({positionType:"individualShift",children:[{type:"elem",elem:i,shift:s},{type:"elem",elem:r,shift:0}]});else{var w=/cancel|phase/.test(n)?["svg-align"]:[];C=Ce({positionType:"individualShift",children:[{type:"elem",elem:r,shift:0},{type:"elem",elem:i,shift:s,wrapperClasses:w}]})}return/cancel/.test(n)&&(C.height=r.height,C.depth=r.depth),/cancel/.test(n)&&!u?Q(["mord","cancel-lap"],[C],t):Q(["mord"],[C],t)},bs=(e,t)=>{var r,n=new ee(e.label.includes("colorbox")?"mpadded":"menclose",[Le(e.body,t)]);switch(e.label){case"\\cancel":n.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":n.setAttribute("notation","downdiagonalstrike");break;case"\\phase":n.setAttribute("notation","phasorangle");break;case"\\sout":n.setAttribute("notation","horizontalstrike");break;case"\\fbox":n.setAttribute("notation","box");break;case"\\angl":n.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(r=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,n.setAttribute("width","+"+2*r+"pt"),n.setAttribute("height","+"+2*r+"pt"),n.setAttribute("lspace",r+"pt"),n.setAttribute("voffset",r+"pt"),e.label==="\\fcolorbox"){var a=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);n.setAttribute("style","border: "+te(a)+" solid "+e.borderColor)}break;case"\\xcancel":n.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return e.backgroundColor&&n.setAttribute("mathbackground",e.backgroundColor),n};ne({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","hbox"]},handler(e,t,r){var{parser:n,funcName:a}=e,i=be(t[0],"color-token").color,s=t[1];return{type:"enclose",mode:n.mode,label:a,backgroundColor:i,body:s}},htmlBuilder:gs,mathmlBuilder:bs});ne({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","hbox"]},handler(e,t,r){var{parser:n,funcName:a}=e,i=be(t[0],"color-token").color,s=be(t[1],"color-token").color,u=t[2];return{type:"enclose",mode:n.mode,label:a,backgroundColor:s,borderColor:i,body:u}},htmlBuilder:gs,mathmlBuilder:bs});ne({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"enclose",mode:r.mode,label:"\\fbox",body:t[0]}}});ne({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\phase"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:n}=e,a=t[0];return{type:"enclose",mode:r.mode,label:n,body:a}},htmlBuilder:gs,mathmlBuilder:bs});ne({type:"enclose",names:["\\sout"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:r,funcName:n}=e;r.mode==="math"&&r.settings.reportNonstrict("mathVsSout","LaTeX's \\sout works only in text mode");var a=t[0];return{type:"enclose",mode:r.mode,label:n,body:a}},htmlBuilder:gs,mathmlBuilder:bs});ne({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(e,t){var{parser:r}=e;return{type:"enclose",mode:r.mode,label:"\\angl",body:t[0]}}});var bd={};function rr(e){for(var{type:t,names:r,props:n,handler:a,htmlBuilder:i,mathmlBuilder:s}=e,u={type:t,numArgs:n.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:a},l=0;l<r.length;++l)bd[r[l]]=u;i&&(Hi[t]=i),s&&(zi[t]=s)}var xd={};function y(e,t){xd[e]=t}class kt{constructor(t,r,n){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=t,this.start=r,this.end=n}static range(t,r){return r?!t||!t.loc||!r.loc||t.loc.lexer!==r.loc.lexer?null:new kt(t.loc.lexer,t.loc.start,r.loc.end):t&&t.loc}}class Ct{constructor(t,r){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=t,this.loc=r}range(t,r){return new Ct(r,kt.range(this,t))}}function zo(e){var t=[];e.consumeSpaces();var r=e.fetch().text;for(r==="\\relax"&&(e.consume(),e.consumeSpaces(),r=e.fetch().text);r==="\\hline"||r==="\\hdashline";)e.consume(),t.push(r==="\\hdashline"),e.consumeSpaces(),r=e.fetch().text;return t}var xs=e=>{var t=e.parser.settings;if(!t.displayMode)throw new J("{"+e.envName+"} can be used only in display mode.")},a5=new Set(["gather","gather*"]);function Fu(e){if(!e.includes("ed"))return!e.includes("*")}function Kr(e,t,r){var{hskipBeforeAndAfter:n,addJot:a,cols:i,arraystretch:s,colSeparationType:u,autoTag:l,singleRow:o,emptySingleRow:c,maxNumCols:h,leqno:f}=t;if(e.gullet.beginGroup(),o||e.gullet.macros.set("\\cr","\\\\\\relax"),!s){var p=e.gullet.expandMacroAsText("\\arraystretch");if(p==null)s=1;else if(s=parseFloat(p),!s||s<0)throw new J("Invalid \\arraystretch: "+p)}e.gullet.beginGroup();var b=[],E=[b],T=[],k=[],C=l!=null?[]:void 0;function w(){l&&e.gullet.macros.set("\\@eqnsw","1",!0)}function H(){C&&(e.gullet.macros.get("\\df@tag")?(C.push(e.subparse([new Ct("\\df@tag")])),e.gullet.macros.set("\\df@tag",void 0,!0)):C.push(!!l&&e.gullet.macros.get("\\@eqnsw")==="1"))}for(w(),k.push(zo(e));;){var z=e.parseExpression(!1,o?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup();var O={type:"ordgroup",mode:e.mode,body:z};r&&(O={type:"styling",mode:e.mode,style:r,resetFont:!0,body:[O]}),b.push(O);var U=e.fetch().text;if(U==="&"){if(h&&b.length===h){if(o||u)throw new J("Too many tab characters: &",e.nextToken);e.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}e.consume()}else if(U==="\\end"){H(),b.length===1&&O.type==="styling"&&O.body.length===1&&O.body[0].type==="ordgroup"&&O.body[0].body.length===0&&(E.length>1||!c)&&E.pop(),k.length<E.length+1&&k.push([]);break}else if(U==="\\\\"){e.consume();var q=void 0;e.gullet.future().text!==" "&&(q=e.parseSizeGroup(!0)),T.push(q?q.value:null),H(),k.push(zo(e)),b=[],E.push(b),w()}else throw new J("Expected & or \\\\ or \\cr or \\end",e.nextToken)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:"array",mode:e.mode,addJot:a,arraystretch:s,body:E,cols:i,rowGaps:T,hskipBeforeAndAfter:n,hLinesBeforeRow:k,colSeparationType:u,tags:C,leqno:f}}function Hu(e){return e.slice(0,1)==="d"?"display":"text"}var nr=function(t,r){var n,a,i=t.body.length,s=t.hLinesBeforeRow,u=0,l=new Array(i),o=[],c=Math.max(r.fontMetrics().arrayRuleWidth,r.minRuleThickness),h=1/r.fontMetrics().ptPerEm,f=5*h;if(t.colSeparationType&&t.colSeparationType==="small"){var p=r.havingStyle(me.SCRIPT).sizeMultiplier;f=.2778*(p/r.sizeMultiplier)}var b=t.colSeparationType==="CD"?Ue({number:3,unit:"ex"},r):12*h,E=3*h,T=t.arraystretch*b,k=.7*T,C=.3*T,w=0;function H(ie){for(var oe=0;oe<ie.length;++oe)oe>0&&(w+=.25),o.push({pos:w,isDashed:ie[oe]})}for(H(s[0]),n=0;n<t.body.length;++n){var z=t.body[n],O=k,U=C;u<z.length&&(u=z.length);var q={cells:new Array(z.length),height:0,depth:0,pos:0};for(a=0;a<z.length;++a){var G=Se(z[a],r);U<G.depth&&(U=G.depth),O<G.height&&(O=G.height),q.cells[a]=G}var P=t.rowGaps[n],K=0;P&&(K=Ue(P,r),K>0&&(K+=C,U<K&&(U=K),K=0)),t.addJot&&n<t.body.length-1&&(U+=E),q.height=O,q.depth=U,w+=O,q.pos=w,w+=U+K,l[n]=q,H(s[n+1])}var j=w/2+r.fontMetrics().axisHeight,ce=t.cols||[],re=[],Y,le,xe=[];if(t.tags&&t.tags.some(ie=>ie))for(n=0;n<i;++n){var _e=l[n],qe=_e.pos-j,L=t.tags[n],Ie=void 0;L===!0?Ie=Q(["eqn-num"],[],r):L===!1?Ie=Q([],[],r):Ie=Q([],rt(L,r,!0),r),Ie.depth=_e.depth,Ie.height=_e.height,xe.push({type:"elem",elem:Ie,shift:qe})}for(a=0,le=0;a<u||le<ce.length;++a,++le){for(var Ge,R=ce[le],Pe=!0;((ze=R)==null?void 0:ze.type)==="separator";){var ze;if(Pe||(Y=Q(["arraycolsep"],[]),Y.style.width=te(r.fontMetrics().doubleRuleSep),re.push(Y)),R.separator==="|"||R.separator===":"){var De=R.separator==="|"?"solid":"dashed",We=Q(["vertical-separator"],[],r);We.style.height=te(w),We.style.borderRightWidth=te(c),We.style.borderRightStyle=De,We.style.margin="0 "+te(-c/2);var Xe=w-j;Xe&&(We.style.verticalAlign=te(-Xe)),re.push(We)}else throw new J("Invalid separator type: "+R.separator);le++,R=ce[le],Pe=!1}if(!(a>=u)){var se=void 0;if(a>0||t.hskipBeforeAndAfter){var we,Qe;se=(we=(Qe=R)==null?void 0:Qe.pregap)!=null?we:f,se!==0&&(Y=Q(["arraycolsep"],[]),Y.style.width=te(se),re.push(Y))}var $t=[];for(n=0;n<i;++n){var Lt=l[n],lr=Lt.cells[a];if(lr){var Sn=Lt.pos-j;lr.depth=Lt.depth,lr.height=Lt.height,$t.push({type:"elem",elem:lr,shift:Sn})}}var Jr=Ce({positionType:"individualShift",children:$t}),en=Q(["col-align-"+(((Ge=R)==null?void 0:Ge.align)||"c")],[Jr]);if(re.push(en),a<u-1||t.hskipBeforeAndAfter){var tn,Ut;se=(tn=(Ut=R)==null?void 0:Ut.postgap)!=null?tn:f,se!==0&&(Y=Q(["arraycolsep"],[]),Y.style.width=te(se),re.push(Y))}}}var or=Q(["mtable"],re);if(o.length>0){for(var la=jn("hline",r,c),oa=jn("hdashline",r,c),rn=[{type:"elem",elem:or,shift:0}];o.length>0;){var In=o.pop(),he=In.pos-j;In.isDashed?rn.push({type:"elem",elem:oa,shift:he}):rn.push({type:"elem",elem:la,shift:he})}or=Ce({positionType:"individualShift",children:rn})}if(xe.length===0)return Q(["mord"],[or],r);var F=Ce({positionType:"individualShift",children:xe}),X=Q(["tag"],[F],r);return wr([or,X])},i5={c:"center ",l:"left ",r:"right "},ar=function(t,r){for(var n=[],a=new ee("mtd",[],["mtr-glue"]),i=new ee("mtd",[],["mml-eqn-num"]),s=0;s<t.body.length;s++){for(var u=t.body[s],l=[],o=0;o<u.length;o++)l.push(new ee("mtd",[Le(u[o],r)]));t.tags&&t.tags[s]&&(l.unshift(a),l.push(a),t.leqno?l.unshift(i):l.push(i)),n.push(new ee("mtr",l))}var c=new ee("mtable",n),h=t.arraystretch===.5?.1:.16+t.arraystretch-1+(t.addJot?.09:0);c.setAttribute("rowspacing",te(h));var f="",p="";if(t.cols&&t.cols.length>0){var b=t.cols,E="",T=!1,k=0,C=b.length;b[0].type==="separator"&&(f+="top ",k=1),b[b.length-1].type==="separator"&&(f+="bottom ",C-=1);for(var w=k;w<C;w++){var H=b[w];H.type==="align"?(p+=i5[H.align],T&&(E+="none "),T=!0):H.type==="separator"&&T&&(E+=H.separator==="|"?"solid ":"dashed ",T=!1)}c.setAttribute("columnalign",p.trim()),/[sd]/.test(E)&&c.setAttribute("columnlines",E.trim())}if(t.colSeparationType==="align"){for(var z=t.cols||[],O="",U=1;U<z.length;U++)O+=U%2?"0em ":"1em ";c.setAttribute("columnspacing",O.trim())}else t.colSeparationType==="alignat"||t.colSeparationType==="gather"?c.setAttribute("columnspacing","0em"):t.colSeparationType==="small"?c.setAttribute("columnspacing","0.2778em"):t.colSeparationType==="CD"?c.setAttribute("columnspacing","0.5em"):c.setAttribute("columnspacing","1em");var q="",G=t.hLinesBeforeRow;f+=G[0].length>0?"left ":"",f+=G[G.length-1].length>0?"right ":"";for(var P=1;P<G.length-1;P++)q+=G[P].length===0?"none ":G[P][0]?"dashed ":"solid ";return/[sd]/.test(q)&&c.setAttribute("rowlines",q.trim()),f!==""&&(c=new ee("menclose",[c]),c.setAttribute("notation",f.trim())),t.arraystretch&&t.arraystretch<1&&(c=new ee("mstyle",[c]),c.setAttribute("scriptlevel","1")),c},Ed=function(t,r){t.envName.includes("ed")||xs(t);var n=[],a=t.envName.includes("at")?"alignat":"align",i=t.envName==="split",s=Kr(t.parser,{cols:n,addJot:!0,autoTag:i?void 0:Fu(t.envName),emptySingleRow:!0,colSeparationType:a,maxNumCols:i?2:void 0,leqno:t.parser.settings.leqno},"display"),u=0,l=0,o={type:"ordgroup",mode:t.mode,body:[]};if(r[0]&&r[0].type==="ordgroup"){for(var c="",h=0;h<r[0].body.length;h++){var f=be(r[0].body[h],"textord");c+=f.text}u=Number(c),l=u*2}var p=!l;s.body.forEach(function(k){for(var C=1;C<k.length;C+=2){var w=be(k[C],"styling"),H=be(w.body[0],"ordgroup");H.body.unshift(o)}if(p)l<k.length&&(l=k.length);else{var z=k.length/2;if(u<z)throw new J("Too many math in a row: "+("expected "+u+", but got "+z),k[0])}});for(var b=0;b<l;++b){var E="r",T=0;b%2===1?E="l":b>0&&p&&(T=1),n[b]={type:"align",align:E,pregap:T,postgap:0}}return s.colSeparationType=p?"align":"alignat",s};rr({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,t){var r=fs(t[0]),n=r?[t[0]]:be(t[0],"ordgroup").body,a=n.map(function(s){var u=ds(s),l=u.text;if("lcr".includes(l))return{type:"align",align:l};if(l==="|")return{type:"separator",separator:"|"};if(l===":")return{type:"separator",separator:":"};throw new J("Unknown column alignment: "+l,s)}),i={cols:a,hskipBeforeAndAfter:!0,maxNumCols:a.length};return Kr(e.parser,i,Hu(e.envName))},htmlBuilder:nr,mathmlBuilder:ar});rr({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(e){var t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName.replace("*","")],r="c",n={hskipBeforeAndAfter:!1,cols:[{type:"align",align:r}]};if(e.envName.charAt(e.envName.length-1)==="*"){var a=e.parser;if(a.consumeSpaces(),a.fetch().text==="["){if(a.consume(),a.consumeSpaces(),r=a.fetch().text,!"lcr".includes(r))throw new J("Expected l or c or r",a.nextToken);a.consume(),a.consumeSpaces(),a.expect("]"),a.consume(),n.cols=[{type:"align",align:r}]}}var i=Kr(e.parser,n,Hu(e.envName)),s=Math.max(0,...i.body.map(u=>u.length));return i.cols=new Array(s).fill({type:"align",align:r}),t?{type:"leftright",mode:e.mode,body:[i],left:t[0],right:t[1],rightColor:void 0}:i},htmlBuilder:nr,mathmlBuilder:ar});rr({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){var t={arraystretch:.5},r=Kr(e.parser,t,"script");return r.colSeparationType="small",r},htmlBuilder:nr,mathmlBuilder:ar});rr({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){var r=fs(t[0]),n=r?[t[0]]:be(t[0],"ordgroup").body,a=n.map(function(u){var l=ds(u),o=l.text;if("lc".includes(o))return{type:"align",align:o};throw new J("Unknown column alignment: "+o,u)});if(a.length>1)throw new J("{subarray} can contain only one column");var i={cols:a,hskipBeforeAndAfter:!1,arraystretch:.5},s=Kr(e.parser,i,"script");if(s.body.length>0&&s.body[0].length>1)throw new J("{subarray} can contain only one column");return s},htmlBuilder:nr,mathmlBuilder:ar});rr({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(e){var t={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},r=Kr(e.parser,t,Hu(e.envName));return{type:"leftright",mode:e.mode,body:[r],left:e.envName.includes("r")?".":"\\{",right:e.envName.includes("r")?"\\}":".",rightColor:void 0}},htmlBuilder:nr,mathmlBuilder:ar});rr({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:Ed,htmlBuilder:nr,mathmlBuilder:ar});rr({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){a5.has(e.envName)&&xs(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:Fu(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return Kr(e.parser,t,"display")},htmlBuilder:nr,mathmlBuilder:ar});rr({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:Ed,htmlBuilder:nr,mathmlBuilder:ar});rr({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){xs(e);var t={autoTag:Fu(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return Kr(e.parser,t,"display")},htmlBuilder:nr,mathmlBuilder:ar});rr({type:"array",names:["CD"],props:{numArgs:0},handler(e){return xs(e),V6(e.parser)},htmlBuilder:nr,mathmlBuilder:ar});y("\\nonumber","\\gdef\\@eqnsw{0}");y("\\notag","\\nonumber");ne({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new J(e.funcName+" valid only within array environment")}});var $o=bd;ne({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(e,t){var{parser:r,funcName:n}=e,a=t[0];if(a.type!=="ordgroup")throw new J("Invalid environment name",a);for(var i="",s=0;s<a.body.length;++s)i+=be(a.body[s],"textord").text;if(n==="\\begin"){if(!$o.hasOwnProperty(i))throw new J("No such environment: "+i,a);var u=$o[i],{args:l,optArgs:o}=r.parseArguments("\\begin{"+i+"}",u),c={mode:r.mode,envName:i,parser:r},h=u.handler(c,l,o);r.expect("\\end",!1);var f=r.nextToken,p=be(r.parseFunction(),"environment");if(p.name!==i)throw new J("Mismatch: \\begin{"+i+"} matched by \\end{"+p.name+"}",f);return h}return{type:"environment",mode:r.mode,name:i,nameGroup:a}}});var yd=(e,t)=>{var r=e.font,n=t.withFont(r);return Se(e.body,n)},Td=(e,t)=>{var r=e.font,n=t.withFont(r);return Le(e.body,n)},Uo={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak"};ne({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathsfit","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(e,t)=>{var{parser:r,funcName:n}=e,a=$i(t[0]),i=n;return i in Uo&&(i=Uo[i]),{type:"font",mode:r.mode,font:i.slice(1),body:a}},htmlBuilder:yd,mathmlBuilder:Td});ne({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(e,t)=>{var{parser:r}=e,n=t[0];return{type:"mclass",mode:r.mode,mclass:ms(n),body:[{type:"font",mode:r.mode,font:"boldsymbol",body:n}],isCharacterBox:vr(n)}}});ne({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{parser:r,funcName:n,breakOnTokenText:a}=e,{mode:i}=r,s=r.parseExpression(!0,a);return{type:"font",mode:i,font:"math"+n.slice(1),body:{type:"ordgroup",mode:r.mode,body:s}}},htmlBuilder:yd,mathmlBuilder:Td});var s5=(e,t)=>{var r=t.style,n=r.fracNum(),a=r.fracDen(),i;i=t.havingStyle(n);var s=Se(e.numer,i,t);if(e.continued){var u=8.5/t.fontMetrics().ptPerEm,l=3.5/t.fontMetrics().ptPerEm;s.height=s.height<u?u:s.height,s.depth=s.depth<l?l:s.depth}i=t.havingStyle(a);var o=Se(e.denom,i,t),c,h,f;e.hasBarLine?(e.barSize?(h=Ue(e.barSize,t),c=jn("frac-line",t,h)):c=jn("frac-line",t),h=c.height,f=c.height):(c=null,h=0,f=t.fontMetrics().defaultRuleThickness);var p,b,E;r.size===me.DISPLAY.size?(p=t.fontMetrics().num1,h>0?b=3*f:b=7*f,E=t.fontMetrics().denom1):(h>0?(p=t.fontMetrics().num2,b=f):(p=t.fontMetrics().num3,b=3*f),E=t.fontMetrics().denom2);var T;if(c){var C=t.fontMetrics().axisHeight;p-s.depth-(C+.5*h)<b&&(p+=b-(p-s.depth-(C+.5*h))),C-.5*h-(o.height-E)<b&&(E+=b-(C-.5*h-(o.height-E)));var w=-(C-.5*h);T=Ce({positionType:"individualShift",children:[{type:"elem",elem:o,shift:E},{type:"elem",elem:c,shift:w},{type:"elem",elem:s,shift:-p}]})}else{var k=p-s.depth-(o.height-E);k<b&&(p+=.5*(b-k),E+=.5*(b-k)),T=Ce({positionType:"individualShift",children:[{type:"elem",elem:o,shift:E},{type:"elem",elem:s,shift:-p}]})}i=t.havingStyle(r),T.height*=i.sizeMultiplier/t.sizeMultiplier,T.depth*=i.sizeMultiplier/t.sizeMultiplier;var H;r.size===me.DISPLAY.size?H=t.fontMetrics().delim1:r.size===me.SCRIPTSCRIPT.size?H=t.havingStyle(me.SCRIPT).fontMetrics().delim2:H=t.fontMetrics().delim2;var z,O;return e.leftDelim==null?z=Fa(t,["mopen"]):z=X0(e.leftDelim,H,!0,t.havingStyle(r),e.mode,["mopen"]),e.continued?O=Q([]):e.rightDelim==null?O=Fa(t,["mclose"]):O=X0(e.rightDelim,H,!0,t.havingStyle(r),e.mode,["mclose"]),Q(["mord"].concat(i.sizingClasses(t)),[z,Q(["mfrac"],[T]),O],t)},u5=(e,t)=>{var r=new ee("mfrac",[Le(e.numer,t),Le(e.denom,t)]);if(!e.hasBarLine)r.setAttribute("linethickness","0px");else if(e.barSize){var n=Ue(e.barSize,t);r.setAttribute("linethickness",te(n))}if(e.leftDelim!=null||e.rightDelim!=null){var a=[];if(e.leftDelim!=null){var i=new ee("mo",[new Ze(e.leftDelim.replace("\\",""))]);i.setAttribute("fence","true"),a.push(i)}if(a.push(r),e.rightDelim!=null){var s=new ee("mo",[new Ze(e.rightDelim.replace("\\",""))]);s.setAttribute("fence","true"),a.push(s)}return Ou(a)}return r},vd=(e,t)=>{if(!t)return e;var r={type:"styling",mode:e.mode,style:t,body:[e]};return r};ne({type:"genfrac",names:["\\cfrac","\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(e,t)=>{var{parser:r,funcName:n}=e,a=t[0],i=t[1],s,u=null,l=null;switch(n){case"\\cfrac":case"\\dfrac":case"\\frac":case"\\tfrac":s=!0;break;case"\\\\atopfrac":s=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":s=!1,u="(",l=")";break;case"\\\\bracefrac":s=!1,u="\\{",l="\\}";break;case"\\\\brackfrac":s=!1,u="[",l="]";break;default:throw new Error("Unrecognized genfrac command")}var o=n==="\\cfrac",c=null;return o||n.startsWith("\\d")?c="display":n.startsWith("\\t")&&(c="text"),vd({type:"genfrac",mode:r.mode,numer:a,denom:i,continued:o,hasBarLine:s,leftDelim:u,rightDelim:l,barSize:null},c)},htmlBuilder:s5,mathmlBuilder:u5});ne({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(e){var{parser:t,funcName:r,token:n}=e,a;switch(r){case"\\over":a="\\frac";break;case"\\choose":a="\\binom";break;case"\\atop":a="\\\\atopfrac";break;case"\\brace":a="\\\\bracefrac";break;case"\\brack":a="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:t.mode,replaceWith:a,token:n}}});var qo=["display","text","script","scriptscript"],jo=function(t){var r=null;return t.length>0&&(r=t,r=r==="."?null:r),r};ne({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(e,t){var{parser:r}=e,n=t[4],a=t[5],i=$i(t[0]),s=i.type==="atom"&&i.family==="open"?jo(i.text):null,u=$i(t[1]),l=u.type==="atom"&&u.family==="close"?jo(u.text):null,o=be(t[2],"size"),c,h=null;o.isBlank?c=!0:(h=o.value,c=h.number>0);var f=null,p=t[3];if(p.type==="ordgroup"){if(p.body.length>0){var b=be(p.body[0],"textord");f=qo[Number(b.text)]}}else p=be(p,"textord"),f=qo[Number(p.text)];return vd({type:"genfrac",mode:r.mode,numer:n,denom:a,continued:!1,hasBarLine:c,barSize:h,leftDelim:s,rightDelim:l},f)}});ne({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(e,t){var{parser:r,funcName:n,token:a}=e;return{type:"infix",mode:r.mode,replaceWith:"\\\\abovefrac",size:be(t[0],"size").value,token:a}}});ne({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(e,t)=>{var{parser:r,funcName:n}=e,a=t[0],i=be(t[1],"infix").size;if(!i)throw new Error("\\\\abovefrac expected size, but got "+String(i));var s=t[2],u=i.number>0;return{type:"genfrac",mode:r.mode,numer:a,denom:s,continued:!1,hasBarLine:u,barSize:i,leftDelim:null,rightDelim:null}}});var kd=(e,t)=>{var r=t.style,n,a;e.type==="supsub"?(n=e.sup?Se(e.sup,t.havingStyle(r.sup()),t):Se(e.sub,t.havingStyle(r.sub()),t),a=be(e.base,"horizBrace")):a=be(e,"horizBrace");var i=Se(a.base,t.havingBaseStyle(me.DISPLAY)),s=hs(a,t),u;if(a.isOver?u=Ce({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"kern",size:.1},{type:"elem",elem:s,wrapperClasses:["svg-align"]}]}):u=Ce({positionType:"bottom",positionData:i.depth+.1+s.height,children:[{type:"elem",elem:s,wrapperClasses:["svg-align"]},{type:"kern",size:.1},{type:"elem",elem:i}]}),n){var l=Q(["minner",a.isOver?"mover":"munder"],[u],t);a.isOver?u=Ce({positionType:"firstBaseline",children:[{type:"elem",elem:l},{type:"kern",size:.2},{type:"elem",elem:n}]}):u=Ce({positionType:"bottom",positionData:l.depth+.2+n.height+n.depth,children:[{type:"elem",elem:n},{type:"kern",size:.2},{type:"elem",elem:l}]})}return Q(["minner",a.isOver?"mover":"munder"],[u],t)},l5=(e,t)=>{var r=cs(e.label);return new ee(e.isOver?"mover":"munder",[Le(e.base,t),r])};ne({type:"horizBrace",names:["\\overbrace","\\underbrace","\\overbracket","\\underbracket"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:n}=e;return{type:"horizBrace",mode:r.mode,label:n,isOver:n.includes("\\over"),base:t[0]}},htmlBuilder:kd,mathmlBuilder:l5});ne({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=t[1],a=be(t[0],"url").url;return r.settings.isTrusted({command:"\\href",url:a})?{type:"href",mode:r.mode,href:a,body:Ke(n)}:r.formatUnsupportedCmd("\\href")},htmlBuilder:(e,t)=>{var r=rt(e.body,t,!1);return T6(e.href,[],r,t)},mathmlBuilder:(e,t)=>{var r=Yr(e.body,t);return r instanceof ee||(r=new ee("mrow",[r])),r.setAttribute("href",e.href),r}});ne({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=be(t[0],"url").url;if(!r.settings.isTrusted({command:"\\url",url:n}))return r.formatUnsupportedCmd("\\url");for(var a=[],i=0;i<n.length;i++){var s=n[i];s==="~"&&(s="\\textasciitilde"),a.push({type:"textord",mode:"text",text:s})}var u={type:"text",mode:r.mode,font:"\\texttt",body:a};return{type:"href",mode:r.mode,href:n,body:Ke(u)}}});ne({type:"hbox",names:["\\hbox"],props:{numArgs:1,argTypes:["text"],allowedInText:!0,primitive:!0},handler(e,t){var{parser:r}=e;return{type:"hbox",mode:r.mode,body:Ke(t[0])}},htmlBuilder(e,t){var r=rt(e.body,t.withFont(""),!1);return wr(r)},mathmlBuilder(e,t){return new ee("mrow",Nt(e.body,t.withFont("")))}});ne({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:(e,t)=>{var{parser:r,funcName:n,token:a}=e,i=be(t[0],"raw").string,s=t[1];r.settings.strict&&r.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var u,l={};switch(n){case"\\htmlClass":l.class=i,u={command:"\\htmlClass",class:i};break;case"\\htmlId":l.id=i,u={command:"\\htmlId",id:i};break;case"\\htmlStyle":l.style=i,u={command:"\\htmlStyle",style:i};break;case"\\htmlData":{for(var o=i.split(","),c=0;c<o.length;c++){var h=o[c],f=h.indexOf("=");if(f<0)throw new J("\\htmlData key/value '"+h+"' missing equals sign");var p=h.slice(0,f),b=h.slice(f+1);l["data-"+p.trim()]=b}u={command:"\\htmlData",attributes:l};break}default:throw new Error("Unrecognized html command")}return r.settings.isTrusted(u)?{type:"html",mode:r.mode,attributes:l,body:Ke(s)}:r.formatUnsupportedCmd(n)},htmlBuilder:(e,t)=>{var r=rt(e.body,t,!1),n=["enclosing"];e.attributes.class&&n.push(...e.attributes.class.trim().split(/\s+/));var a=Q(n,r,t);for(var i in e.attributes)i!=="class"&&e.attributes.hasOwnProperty(i)&&a.setAttribute(i,e.attributes[i]);return a},mathmlBuilder:(e,t)=>Yr(e.body,t)});ne({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInArgument:!0,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e;return{type:"htmlmathml",mode:r.mode,html:Ke(t[0]),mathml:Ke(t[1])}},htmlBuilder:(e,t)=>{var r=rt(e.html,t,!1);return wr(r)},mathmlBuilder:(e,t)=>Yr(e.mathml,t)});var Qs=function(t){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(t))return{number:+t,unit:"bp"};var r=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t);if(!r)throw new J("Invalid size: '"+t+"' in \\includegraphics");var n={number:+(r[1]+r[2]),unit:r[3]};if(!zh(n))throw new J("Invalid unit: '"+n.unit+"' in \\includegraphics.");return n};ne({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(e,t,r)=>{var{parser:n}=e,a={number:0,unit:"em"},i={number:.9,unit:"em"},s={number:0,unit:"em"},u="";if(r[0])for(var l=be(r[0],"raw").string,o=l.split(","),c=0;c<o.length;c++){var h=o[c].split("=");if(h.length===2){var f=h[1].trim();switch(h[0].trim()){case"alt":u=f;break;case"width":a=Qs(f);break;case"height":i=Qs(f);break;case"totalheight":s=Qs(f);break;default:throw new J("Invalid key: '"+h[0]+"' in \\includegraphics.")}}}var p=be(t[0],"url").url;return u===""&&(u=p,u=u.replace(/^.*[\\/]/,""),u=u.substring(0,u.lastIndexOf("."))),n.settings.isTrusted({command:"\\includegraphics",url:p})?{type:"includegraphics",mode:n.mode,alt:u,width:a,height:i,totalheight:s,src:p}:n.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:(e,t)=>{var r=Ue(e.height,t),n=0;e.totalheight.number>0&&(n=Ue(e.totalheight,t)-r);var a=0;e.width.number>0&&(a=Ue(e.width,t));var i={height:te(r+n)};a>0&&(i.width=te(a)),n>0&&(i.verticalAlign=te(-n));var s=new o6(e.src,e.alt,i);return s.height=r,s.depth=n,s},mathmlBuilder:(e,t)=>{var r=new ee("mglyph",[]);r.setAttribute("alt",e.alt);var n=Ue(e.height,t),a=0;if(e.totalheight.number>0&&(a=Ue(e.totalheight,t)-n,r.setAttribute("valign",te(-a))),r.setAttribute("height",te(n+a)),e.width.number>0){var i=Ue(e.width,t);r.setAttribute("width",te(i))}return r.setAttribute("src",e.src),r}});ne({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(e,t){var{parser:r,funcName:n}=e,a=be(t[0],"size");if(r.settings.strict){var i=n[1]==="m",s=a.value.unit==="mu";i?(s||r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" supports only mu units, "+("not "+a.value.unit+" units")),r.mode!=="math"&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" works only in math mode")):s&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" doesn't support mu units")}return{type:"kern",mode:r.mode,dimension:a.value}},htmlBuilder(e,t){return Vh(e.dimension,t)},mathmlBuilder(e,t){var r=Ue(e.dimension,t);return new Zh(r)}});ne({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r,funcName:n}=e,a=t[0];return{type:"lap",mode:r.mode,alignment:n.slice(5),body:a}},htmlBuilder:(e,t)=>{var r;e.alignment==="clap"?(r=Q([],[Se(e.body,t)]),r=Q(["inner"],[r],t)):r=Q(["inner"],[Se(e.body,t)]);var n=Q(["fix"],[]),a=Q([e.alignment],[r,n],t),i=Q(["strut"]);return i.style.height=te(a.height+a.depth),a.depth&&(i.style.verticalAlign=te(-a.depth)),a.children.unshift(i),a=Q(["thinbox"],[a],t),Q(["mord","vbox"],[a],t)},mathmlBuilder:(e,t)=>{var r=new ee("mpadded",[Le(e.body,t)]);if(e.alignment!=="rlap"){var n=e.alignment==="llap"?"-1":"-0.5";r.setAttribute("lspace",n+"width")}return r.setAttribute("width","0px"),r}});ne({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:r,parser:n}=e,a=n.mode;n.switchMode("math");var i=r==="\\("?"\\)":"$",s=n.parseExpression(!1,i);return n.expect(i),n.switchMode(a),{type:"styling",mode:n.mode,style:"text",resetFont:!0,body:s}}});ne({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new J("Mismatched "+e.funcName)}});var Go=(e,t)=>{switch(t.style.size){case me.DISPLAY.size:return e.display;case me.TEXT.size:return e.text;case me.SCRIPT.size:return e.script;case me.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};ne({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:r}=e;return{type:"mathchoice",mode:r.mode,display:Ke(t[0]),text:Ke(t[1]),script:Ke(t[2]),scriptscript:Ke(t[3])}},htmlBuilder:(e,t)=>{var r=Go(e,t),n=rt(r,t,!1);return wr(n)},mathmlBuilder:(e,t)=>{var r=Go(e,t);return Yr(r,t)}});var wd=(e,t,r,n,a,i,s)=>{e=Q([],[e]);var u=r&&vr(r),l,o;if(t){var c=Se(t,n.havingStyle(a.sup()),n);o={elem:c,kern:Math.max(n.fontMetrics().bigOpSpacing1,n.fontMetrics().bigOpSpacing3-c.depth)}}if(r){var h=Se(r,n.havingStyle(a.sub()),n);l={elem:h,kern:Math.max(n.fontMetrics().bigOpSpacing2,n.fontMetrics().bigOpSpacing4-h.height)}}var f;if(o&&l){var p=n.fontMetrics().bigOpSpacing5+l.elem.height+l.elem.depth+l.kern+e.depth+s;f=Ce({positionType:"bottom",positionData:p,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:l.elem,marginLeft:te(-i)},{type:"kern",size:l.kern},{type:"elem",elem:e},{type:"kern",size:o.kern},{type:"elem",elem:o.elem,marginLeft:te(i)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]})}else if(l){var b=e.height-s;f=Ce({positionType:"top",positionData:b,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:l.elem,marginLeft:te(-i)},{type:"kern",size:l.kern},{type:"elem",elem:e}]})}else if(o){var E=e.depth+s;f=Ce({positionType:"bottom",positionData:E,children:[{type:"elem",elem:e},{type:"kern",size:o.kern},{type:"elem",elem:o.elem,marginLeft:te(i)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]})}else return e;var T=[f];if(l&&i!==0&&!u){var k=Q(["mspace"],[],n);k.style.marginRight=te(i),T.unshift(k)}return Q(["mop","op-limits"],T,n)},Ad=new Set(["\\smallint"]),ta=(e,t)=>{var r,n,a=!1,i;e.type==="supsub"?(r=e.sup,n=e.sub,i=be(e.base,"op"),a=!0):i=be(e,"op");var s=t.style,u=!1;s.size===me.DISPLAY.size&&i.symbol&&!Ad.has(i.name)&&(u=!0);var l,o;if(i.symbol){var c=u?"Size2-Regular":"Size1-Regular",h="";if((i.name==="\\oiint"||i.name==="\\oiiint")&&(h=i.name.slice(1),i.name=h==="oiint"?"\\iint":"\\iiint"),l=gt(i.name,c,"math",t,["mop","op-symbol",u?"large-op":"small-op"]),o=l.italic,h.length>0){var f=Wh(h+"Size"+(u?"2":"1"),t);l=Ce({positionType:"individualShift",children:[{type:"elem",elem:l,shift:0},{type:"elem",elem:f,shift:u?.08:0}]}),i.name="\\"+h,l.classes.unshift("mop"),l.italic=o}}else if(i.body){var p=rt(i.body,t,!0);p.length===1&&p[0]instanceof It?(l=p[0],l.classes[0]="mop"):l=Q(["mop"],p,t)}else{for(var b=[],E=1;E<i.name.length;E++)b.push(Ru(i.name[E],i.mode,t));l=Q(["mop"],b,t)}var T=0,k=0;if((l instanceof It||i.name==="\\oiint"||i.name==="\\oiiint")&&!i.suppressBaseShift){var C;T=(l.height-l.depth)/2-t.fontMetrics().axisHeight,k=(C=l.italic)!=null?C:0}return a?wd(l,r,n,t,s,k,T):(T&&(l.style.position="relative",l.style.top=te(T)),l)},Wa=(e,t)=>{var r;if(e.symbol)r=new ee("mo",[Ft(e.name,e.mode)]),Ad.has(e.name)&&r.setAttribute("largeop","false");else if(e.body)r=new ee("mo",Nt(e.body,t));else{r=new ee("mi",[new Ze(e.name.slice(1))]);var n=new ee("mo",[Ft("","text")]);e.parentIsSupSub?r=new ee("mrow",[r,n]):r=Kh([r,n])}return r},o5={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};ne({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:(e,t)=>{var{parser:r,funcName:n}=e,a=n;return a.length===1&&(a=o5[a]),{type:"op",mode:r.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:a}},htmlBuilder:ta,mathmlBuilder:Wa});ne({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var{parser:r}=e,n=t[0];return{type:"op",mode:r.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:Ke(n)}},htmlBuilder:ta,mathmlBuilder:Wa});var c5={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};ne({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(e){var{parser:t,funcName:r}=e;return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:r}},htmlBuilder:ta,mathmlBuilder:Wa});ne({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(e){var{parser:t,funcName:r}=e;return{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:r}},htmlBuilder:ta,mathmlBuilder:Wa});ne({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0,allowedInArgument:!0},handler(e){var{parser:t,funcName:r}=e,n=r;return n.length===1&&(n=c5[n]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:n}},htmlBuilder:ta,mathmlBuilder:Wa});var Cd=(e,t)=>{var r,n,a=!1,i;e.type==="supsub"?(r=e.sup,n=e.sub,i=be(e.base,"operatorname"),a=!0):i=be(e,"operatorname");var s;if(i.body.length>0){for(var u=i.body.map(h=>{var f="text"in h?h.text:void 0;return typeof f=="string"?{type:"textord",mode:h.mode,text:f}:h}),l=rt(u,t.withFont("mathrm"),!0),o=0;o<l.length;o++){var c=l[o];c instanceof It&&(c.text=c.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}s=Q(["mop"],l,t)}else s=Q(["mop"],[],t);return a?wd(s,r,n,t,t.style,0,0):s},h5=(e,t)=>{for(var r=Nt(e.body,t.withFont("mathrm")),n=!0,a=0;a<r.length;a++){var i=r[a];if(!(i instanceof Zh))if(i instanceof ee)switch(i.type){case"mi":case"mn":case"mspace":case"mtext":break;case"mo":{var s=i.children[0];i.children.length===1&&s instanceof Ze?s.text=s.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):n=!1;break}default:n=!1}else n=!1}if(n){var u=r.map(c=>c.toText()).join("");r=[new Ze(u)]}var l=new ee("mi",r);l.setAttribute("mathvariant","normal");var o=new ee("mo",[Ft("","text")]);return e.parentIsSupSub?new ee("mrow",[l,o]):Kh([l,o])};ne({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(e,t)=>{var{parser:r,funcName:n}=e,a=t[0];return{type:"operatorname",mode:r.mode,body:Ke(a),alwaysHandleSupSub:n==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:Cd,mathmlBuilder:h5});y("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");kn({type:"ordgroup",htmlBuilder(e,t){return e.semisimple?wr(rt(e.body,t,!1)):Q(["mord"],rt(e.body,t,!0),t)},mathmlBuilder(e,t){return Yr(e.body,t,!0)}});ne({type:"overline",names:["\\overline"],props:{numArgs:1},handler(e,t){var{parser:r}=e,n=t[0];return{type:"overline",mode:r.mode,body:n}},htmlBuilder(e,t){var r=Se(e.body,t.havingCrampedStyle()),n=jn("overline-line",t),a=t.fontMetrics().defaultRuleThickness,i=Ce({positionType:"firstBaseline",children:[{type:"elem",elem:r},{type:"kern",size:3*a},{type:"elem",elem:n},{type:"kern",size:a}]});return Q(["mord","overline"],[i],t)},mathmlBuilder(e,t){var r=new ee("mo",[new Ze("‾")]);r.setAttribute("stretchy","true");var n=new ee("mover",[Le(e.body,t),r]);return n.setAttribute("accent","true"),n}});ne({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=t[0];return{type:"phantom",mode:r.mode,body:Ke(n)}},htmlBuilder:(e,t)=>{var r=rt(e.body,t.withPhantom(),!1);return wr(r)},mathmlBuilder:(e,t)=>{var r=Nt(e.body,t);return new ee("mphantom",r)}});y("\\hphantom","\\smash{\\phantom{#1}}");ne({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=t[0];return{type:"vphantom",mode:r.mode,body:n}},htmlBuilder:(e,t)=>{var r=Q(["inner"],[Se(e.body,t.withPhantom())]),n=Q(["fix"],[]);return Q(["mord","rlap"],[r,n],t)},mathmlBuilder:(e,t)=>{var r=Nt(Ke(e.body),t),n=new ee("mphantom",r),a=new ee("mpadded",[n]);return a.setAttribute("width","0px"),a}});ne({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(e,t){var{parser:r}=e,n=be(t[0],"size").value,a=t[1];return{type:"raisebox",mode:r.mode,dy:n,body:a}},htmlBuilder(e,t){var r=Se(e.body,t),n=Ue(e.dy,t);return Ce({positionType:"shift",positionData:-n,children:[{type:"elem",elem:r}]})},mathmlBuilder(e,t){var r=new ee("mpadded",[Le(e.body,t)]),n=e.dy.number+e.dy.unit;return r.setAttribute("voffset",n),r}});ne({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(e){var{parser:t}=e;return{type:"internal",mode:t.mode}}});ne({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"]},handler(e,t,r){var{parser:n}=e,a=r[0],i=be(t[0],"size"),s=be(t[1],"size");return{type:"rule",mode:n.mode,shift:a&&be(a,"size").value,width:i.value,height:s.value}},htmlBuilder(e,t){var r=Q(["mord","rule"],[],t),n=Ue(e.width,t),a=Ue(e.height,t),i=e.shift?Ue(e.shift,t):0;return r.style.borderRightWidth=te(n),r.style.borderTopWidth=te(a),r.style.bottom=te(i),r.width=n,r.height=a+i,r.depth=-i,r.maxFontSize=a*1.125*t.sizeMultiplier,r},mathmlBuilder(e,t){var r=Ue(e.width,t),n=Ue(e.height,t),a=e.shift?Ue(e.shift,t):0,i=t.color&&t.getColor()||"black",s=new ee("mspace");s.setAttribute("mathbackground",i),s.setAttribute("width",te(r)),s.setAttribute("height",te(n));var u=new ee("mpadded",[s]);return a>=0?u.setAttribute("height",te(a)):(u.setAttribute("height",te(a)),u.setAttribute("depth",te(-a))),u.setAttribute("voffset",te(a)),u}});function Sd(e,t,r){for(var n=rt(e,t,!1),a=t.sizeMultiplier/r.sizeMultiplier,i=0;i<n.length;i++){var s=n[i].classes.indexOf("sizing");s<0?Array.prototype.push.apply(n[i].classes,t.sizingClasses(r)):n[i].classes[s+1]==="reset-size"+t.size&&(n[i].classes[s+1]="reset-size"+r.size),n[i].height*=a,n[i].depth*=a}return wr(n)}var Vo=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],d5=(e,t)=>{var r=t.havingSize(e.size);return Sd(e.body,r,t)};ne({type:"sizing",names:Vo,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{breakOnTokenText:r,funcName:n,parser:a}=e,i=a.parseExpression(!1,r);return{type:"sizing",mode:a.mode,size:Vo.indexOf(n)+1,body:i}},htmlBuilder:d5,mathmlBuilder:(e,t)=>{var r=t.havingSize(e.size),n=Nt(e.body,r),a=new ee("mstyle",n);return a.setAttribute("mathsize",te(r.sizeMultiplier)),a}});ne({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,r)=>{var{parser:n}=e,a=!1,i=!1,s=r[0]&&be(r[0],"ordgroup");if(s)for(var u,l=0;l<s.body.length;++l){var o=s.body[l];if(u=ds(o).text,u==="t")a=!0;else if(u==="b")i=!0;else{a=!1,i=!1;break}}else a=!0,i=!0;var c=t[0];return{type:"smash",mode:n.mode,body:c,smashHeight:a,smashDepth:i}},htmlBuilder:(e,t)=>{var r=Q([],[Se(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return r;if(e.smashHeight&&(r.height=0),e.smashDepth&&(r.depth=0),e.smashHeight&&e.smashDepth)return Q(["mord","smash"],[r],t);if(r.children)for(var n=0;n<r.children.length;n++)e.smashHeight&&(r.children[n].height=0),e.smashDepth&&(r.children[n].depth=0);var a=Ce({positionType:"firstBaseline",children:[{type:"elem",elem:r}]});return Q(["mord"],[a],t)},mathmlBuilder:(e,t)=>{var r=new ee("mpadded",[Le(e.body,t)]);return e.smashHeight&&r.setAttribute("height","0px"),e.smashDepth&&r.setAttribute("depth","0px"),r}});ne({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,r){var{parser:n}=e,a=r[0],i=t[0];return{type:"sqrt",mode:n.mode,body:i,index:a}},htmlBuilder(e,t){var r=Se(e.body,t.havingCrampedStyle());r.height===0&&(r.height=t.fontMetrics().xHeight),r=Gn(r,t);var n=t.fontMetrics(),a=n.defaultRuleThickness,i=a;t.style.id<me.TEXT.id&&(i=t.fontMetrics().xHeight);var s=a+i/4,u=r.height+r.depth+s+a,{span:l,ruleWidth:o,advanceWidth:c}=Z6(u,t),h=l.height-o;h>r.height+r.depth+s&&(s=(s+h-r.height-r.depth)/2);var f=l.height-r.height-s-o;r.style.paddingLeft=te(c);var p=Ce({positionType:"firstBaseline",children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:-(r.height+f)},{type:"elem",elem:l},{type:"kern",size:o}]});if(e.index){var b=t.havingStyle(me.SCRIPTSCRIPT),E=Se(e.index,b,t),T=.6*(p.height-p.depth),k=Ce({positionType:"shift",positionData:-T,children:[{type:"elem",elem:E}]}),C=Q(["root"],[k]);return Q(["mord","sqrt"],[C,p],t)}else return Q(["mord","sqrt"],[p],t)},mathmlBuilder(e,t){var{body:r,index:n}=e;return n?new ee("mroot",[Le(r,t),Le(n,t)]):new ee("msqrt",[Le(r,t)])}});var Q0={display:me.DISPLAY,text:me.TEXT,script:me.SCRIPT,scriptscript:me.SCRIPTSCRIPT};function f5(e){return e in Q0}ne({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:r,funcName:n,parser:a}=e,i=a.parseExpression(!0,r),s=n.slice(1,n.length-5);if(!f5(s))throw new Error("Unknown style: "+s);return{type:"styling",mode:a.mode,style:s,body:i}},htmlBuilder(e,t){var r=Q0[e.style],n=t.havingStyle(r);return e.resetFont&&(n=n.withFont("")),Sd(e.body,n,t)},mathmlBuilder(e,t){var r=Q0[e.style],n=t.havingStyle(r);e.resetFont&&(n=n.withFont(""));var a=Nt(e.body,n),i=new ee("mstyle",a),s={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},u=s[e.style];return i.setAttribute("scriptlevel",u[0]),i.setAttribute("displaystyle",u[1]),i}});var m5=function(t,r){var n=t.base;if(n)if(n.type==="op"){var a=n.limits&&(r.style.size===me.DISPLAY.size||n.alwaysHandleSupSub);return a?ta:null}else if(n.type==="operatorname"){var i=n.alwaysHandleSupSub&&(r.style.size===me.DISPLAY.size||n.limits);return i?Cd:null}else{if(n.type==="accent")return vr(n.base)?Pu:null;if(n.type==="horizBrace"){var s=!t.sub;return s===n.isOver?kd:null}else return null}else return null};kn({type:"supsub",htmlBuilder(e,t){var r=m5(e,t);if(r)return r(e,t);var{base:n,sup:a,sub:i}=e,s=Se(n,t),u,l,o=t.fontMetrics(),c=0,h=0,f=n&&vr(n);if(a){var p=t.havingStyle(t.style.sup());u=Se(a,p,t),f||(c=s.height-p.fontMetrics().supDrop*p.sizeMultiplier/t.sizeMultiplier)}if(i){var b=t.havingStyle(t.style.sub());l=Se(i,b,t),f||(h=s.depth+b.fontMetrics().subDrop*b.sizeMultiplier/t.sizeMultiplier)}var E;t.style===me.DISPLAY?E=o.sup1:t.style.cramped?E=o.sup3:E=o.sup2;var T=t.sizeMultiplier,k=te(.5/o.ptPerEm/T),C=null;if(l){var w=e.base&&e.base.type==="op"&&e.base.name&&(e.base.name==="\\oiint"||e.base.name==="\\oiiint");if(s instanceof It||w){var H;C=te(-((H=s.italic)!=null?H:0))}}var z;if(u&&l){c=Math.max(c,E,u.depth+.25*o.xHeight),h=Math.max(h,o.sub2);var O=o.defaultRuleThickness,U=4*O;if(c-u.depth-(l.height-h)<U){h=U-(c-u.depth)+l.height;var q=.8*o.xHeight-(c-u.depth);q>0&&(c+=q,h-=q)}var G=[{type:"elem",elem:l,shift:h,marginRight:k,marginLeft:C},{type:"elem",elem:u,shift:-c,marginRight:k}];z=Ce({positionType:"individualShift",children:G})}else if(l){h=Math.max(h,o.sub1,l.height-.8*o.xHeight);var P=[{type:"elem",elem:l,marginLeft:C,marginRight:k}];z=Ce({positionType:"shift",positionData:h,children:P})}else if(u)c=Math.max(c,E,u.depth+.25*o.xHeight),z=Ce({positionType:"shift",positionData:-c,children:[{type:"elem",elem:u,marginRight:k}]});else throw new Error("supsub must have either sup or sub.");var K=G0(s,"right")||"mord";return Q([K],[s,Q(["msupsub"],[z])],t)},mathmlBuilder(e,t){var r=!1,n,a;e.base&&e.base.type==="horizBrace"&&(a=!!e.sup,a===e.base.isOver&&(r=!0,n=e.base.isOver)),e.base&&(e.base.type==="op"||e.base.type==="operatorname")&&(e.base.parentIsSupSub=!0);var i=[Le(e.base,t)];e.sub&&i.push(Le(e.sub,t)),e.sup&&i.push(Le(e.sup,t));var s;if(r)s=n?"mover":"munder";else if(e.sub)if(e.sup){var o=e.base;o&&o.type==="op"&&o.limits&&t.style===me.DISPLAY||o&&o.type==="operatorname"&&o.alwaysHandleSupSub&&(t.style===me.DISPLAY||o.limits)?s="munderover":s="msubsup"}else{var l=e.base;l&&l.type==="op"&&l.limits&&(t.style===me.DISPLAY||l.alwaysHandleSupSub)||l&&l.type==="operatorname"&&l.alwaysHandleSupSub&&(l.limits||t.style===me.DISPLAY)?s="munder":s="msub"}else{var u=e.base;u&&u.type==="op"&&u.limits&&(t.style===me.DISPLAY||u.alwaysHandleSupSub)||u&&u.type==="operatorname"&&u.alwaysHandleSupSub&&(u.limits||t.style===me.DISPLAY)?s="mover":s="msup"}return new ee(s,i)}});kn({type:"atom",htmlBuilder(e,t){return Ru(e.text,e.mode,t,["m"+e.family])},mathmlBuilder(e,t){var r=new ee("mo",[Ft(e.text,e.mode)]);if(e.family==="bin"){var n=Mu(e,t);n==="bold-italic"&&r.setAttribute("mathvariant",n)}else e.family==="punct"?r.setAttribute("separator","true"):(e.family==="open"||e.family==="close")&&r.setAttribute("stretchy","false");return r}});var Id={mi:"italic",mn:"normal",mtext:"normal"};kn({type:"mathord",htmlBuilder(e,t){return os(e,t,"mathord")},mathmlBuilder(e,t){var r=new ee("mi",[Ft(e.text,e.mode,t)]),n=Mu(e,t)||"italic";return n!==Id[r.type]&&r.setAttribute("mathvariant",n),r}});kn({type:"textord",htmlBuilder(e,t){return os(e,t,"textord")},mathmlBuilder(e,t){var r=Ft(e.text,e.mode,t),n=Mu(e,t)||"normal",a;return e.mode==="text"?a=new ee("mtext",[r]):/[0-9]/.test(e.text)?a=new ee("mn",[r]):e.text==="\\prime"?a=new ee("mo",[r]):a=new ee("mi",[r]),n!==Id[a.type]&&a.setAttribute("mathvariant",n),a}});var Ks={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},Zs={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};kn({type:"spacing",htmlBuilder(e,t){if(Zs.hasOwnProperty(e.text)){var r=Zs[e.text].className||"";if(e.mode==="text"){var n=os(e,t,"textord");return n.classes.push(r),n}else return Q(["mspace",r],[Ru(e.text,e.mode,t)],t)}else{if(Ks.hasOwnProperty(e.text))return Q(["mspace",Ks[e.text]],[],t);throw new J('Unknown type of space "'+e.text+'"')}},mathmlBuilder(e,t){var r;if(Zs.hasOwnProperty(e.text))r=new ee("mtext",[new Ze(" ")]);else{if(Ks.hasOwnProperty(e.text))return new ee("mspace");throw new J('Unknown type of space "'+e.text+'"')}return r}});var Yo=()=>{var e=new ee("mtd",[]);return e.setAttribute("width","50%"),e};kn({type:"tag",mathmlBuilder(e,t){var r=new ee("mtable",[new ee("mtr",[Yo(),new ee("mtd",[Yr(e.body,t)]),Yo(),new ee("mtd",[Yr(e.tag,t)])])]);return r.setAttribute("width","100%"),r}});var Wo={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},Xo={"\\textbf":"textbf","\\textmd":"textmd"},p5={"\\textit":"textit","\\textup":"textup"},Qo=(e,t)=>{var r=e.font;if(r){if(Wo[r])return t.withTextFontFamily(Wo[r]);if(Xo[r])return t.withTextFontWeight(Xo[r]);if(r==="\\emph")return t.fontShape==="textit"?t.withTextFontShape("textup"):t.withTextFontShape("textit")}else return t;return t.withTextFontShape(p5[r])};ne({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(e,t){var{parser:r,funcName:n}=e,a=t[0];return{type:"text",mode:r.mode,body:Ke(a),font:n}},htmlBuilder(e,t){var r=Qo(e,t),n=rt(e.body,r,!0);return Q(["mord","text"],n,r)},mathmlBuilder(e,t){var r=Qo(e,t);return Yr(e.body,r)}});ne({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"underline",mode:r.mode,body:t[0]}},htmlBuilder(e,t){var r=Se(e.body,t),n=jn("underline-line",t),a=t.fontMetrics().defaultRuleThickness,i=Ce({positionType:"top",positionData:r.height,children:[{type:"kern",size:a},{type:"elem",elem:n},{type:"kern",size:3*a},{type:"elem",elem:r}]});return Q(["mord","underline"],[i],t)},mathmlBuilder(e,t){var r=new ee("mo",[new Ze("‾")]);r.setAttribute("stretchy","true");var n=new ee("munder",[Le(e.body,t),r]);return n.setAttribute("accentunder","true"),n}});ne({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(e,t){var{parser:r}=e;return{type:"vcenter",mode:r.mode,body:t[0]}},htmlBuilder(e,t){var r=Se(e.body,t),n=t.fontMetrics().axisHeight,a=.5*(r.height-n-(r.depth+n));return Ce({positionType:"shift",positionData:a,children:[{type:"elem",elem:r}]})},mathmlBuilder(e,t){var r=new ee("mpadded",[Le(e.body,t)],["vcenter"]);return new ee("mrow",[r])}});ne({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,r){throw new J("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,t){for(var r=Ko(e),n=[],a=t.havingStyle(t.style.text()),i=0;i<r.length;i++){var s=r[i];s==="~"&&(s="\\textasciitilde"),n.push(gt(s,"Typewriter-Regular",e.mode,a,["mord","texttt"]))}return Q(["mord","text"].concat(a.sizingClasses(t)),Gh(n),a)},mathmlBuilder(e,t){var r=new Ze(Ko(e)),n=new ee("mtext",[r]);return n.setAttribute("mathvariant","monospace"),n}});var Ko=e=>e.body.replace(/ /g,e.star?"␣":" "),zr=Xh,_d=`[ \r
|
|
398
|
+
]`,g5="\\\\[a-zA-Z@]+",b5="\\\\[^\uD800-\uDFFF]",x5="("+g5+")"+_d+"*",E5=`\\\\(
|
|
399
|
+
|[ \r ]+
|
|
400
|
+
?)[ \r ]*`,K0="[̀-ͯ]",y5=new RegExp(K0+"+$"),T5="("+_d+"+)|"+(E5+"|")+"([!-\\[\\]-‧-豈-]"+(K0+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(K0+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+x5)+("|"+b5+")");class Zo{constructor(t,r){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=t,this.settings=r,this.tokenRegex=new RegExp(T5,"g"),this.catcodes={"%":14,"~":13}}setCatcode(t,r){this.catcodes[t]=r}lex(){var t=this.input,r=this.tokenRegex.lastIndex;if(r===t.length)return new Ct("EOF",new kt(this,r,r));var n=this.tokenRegex.exec(t);if(n===null||n.index!==r)throw new J("Unexpected character: '"+t[r]+"'",new Ct(t[r],new kt(this,r,r+1)));var a=n[6]||n[3]||(n[2]?"\\ ":" ");if(this.catcodes[a]===14){var i=t.indexOf(`
|
|
401
|
+
`,this.tokenRegex.lastIndex);return i===-1?(this.tokenRegex.lastIndex=t.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 Ct(a,new kt(this,r,this.tokenRegex.lastIndex))}}class v5{constructor(t,r){t===void 0&&(t={}),r===void 0&&(r={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=r,this.builtins=t,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new J("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var t=this.undefStack.pop();for(var r in t)t.hasOwnProperty(r)&&(t[r]==null?delete this.current[r]:this.current[r]=t[r])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(t){return this.current.hasOwnProperty(t)||this.builtins.hasOwnProperty(t)}get(t){return this.current.hasOwnProperty(t)?this.current[t]:this.builtins[t]}set(t,r,n){if(n===void 0&&(n=!1),n){for(var a=0;a<this.undefStack.length;a++)delete this.undefStack[a][t];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][t]=r)}else{var i=this.undefStack[this.undefStack.length-1];i&&!i.hasOwnProperty(t)&&(i[t]=this.current[t])}r==null?delete this.current[t]:this.current[t]=r}}var k5=xd;y("\\noexpand",function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}});y("\\expandafter",function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}});y("\\@firstoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[0],numArgs:0}});y("\\@secondoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[1],numArgs:0}});y("\\@ifnextchar",function(e){var t=e.consumeArgs(3);e.consumeSpaces();var r=e.future();return t[0].length===1&&t[0][0].text===r.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}});y("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");y("\\TextOrMath",function(e){var t=e.consumeArgs(2);return e.mode==="text"?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var Jo={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};y("\\char",function(e){var t=e.popToken(),r,n=0;if(t.text==="'")r=8,t=e.popToken();else if(t.text==='"')r=16,t=e.popToken();else if(t.text==="`")if(t=e.popToken(),t.text[0]==="\\")n=t.text.charCodeAt(1);else{if(t.text==="EOF")throw new J("\\char` missing argument");n=t.text.charCodeAt(0)}else r=10;if(r){if(n=Jo[t.text],n==null||n>=r)throw new J("Invalid base-"+r+" digit "+t.text);for(var a;(a=Jo[e.future().text])!=null&&a<r;)n*=r,n+=a,e.popToken()}return"\\@char{"+n+"}"});var zu=(e,t,r,n)=>{var a=e.consumeArg().tokens;if(a.length!==1)throw new J("\\newcommand's first argument must be a macro name");var i=a[0].text,s=e.isDefined(i);if(s&&!t)throw new J("\\newcommand{"+i+"} attempting to redefine "+(i+"; use \\renewcommand"));if(!s&&!r)throw new J("\\renewcommand{"+i+"} when command "+i+" does not yet exist; use \\newcommand");var u=0;if(a=e.consumeArg().tokens,a.length===1&&a[0].text==="["){for(var l="",o=e.expandNextToken();o.text!=="]"&&o.text!=="EOF";)l+=o.text,o=e.expandNextToken();if(!l.match(/^\s*[0-9]+\s*$/))throw new J("Invalid number of arguments: "+l);u=parseInt(l),a=e.consumeArg().tokens}return s&&n||e.macros.set(i,{tokens:a,numArgs:u}),""};y("\\newcommand",e=>zu(e,!1,!0,!1));y("\\renewcommand",e=>zu(e,!0,!1,!1));y("\\providecommand",e=>zu(e,!0,!0,!0));y("\\message",e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(r=>r.text).join("")),""});y("\\errmessage",e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(r=>r.text).join("")),""});y("\\show",e=>{var t=e.popToken(),r=t.text;return console.log(t,e.macros.get(r),zr[r],Fe.math[r],Fe.text[r]),""});y("\\bgroup","{");y("\\egroup","}");y("~","\\nobreakspace");y("\\lq","`");y("\\rq","'");y("\\aa","\\r a");y("\\AA","\\r A");y("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}");y("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");y("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}");y("ℬ","\\mathscr{B}");y("ℰ","\\mathscr{E}");y("ℱ","\\mathscr{F}");y("ℋ","\\mathscr{H}");y("ℐ","\\mathscr{I}");y("ℒ","\\mathscr{L}");y("ℳ","\\mathscr{M}");y("ℛ","\\mathscr{R}");y("ℭ","\\mathfrak{C}");y("ℌ","\\mathfrak{H}");y("ℨ","\\mathfrak{Z}");y("\\Bbbk","\\Bbb{k}");y("\\llap","\\mathllap{\\textrm{#1}}");y("\\rlap","\\mathrlap{\\textrm{#1}}");y("\\clap","\\mathclap{\\textrm{#1}}");y("\\mathstrut","\\vphantom{(}");y("\\underbar","\\underline{\\text{#1}}");y("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}\\nobreak}{\\char"338}');y("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}");y("\\ne","\\neq");y("≠","\\neq");y("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}");y("∉","\\notin");y("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}");y("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}");y("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}");y("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}");y("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}");y("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}");y("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}");y("⟂","\\perp");y("‼","\\mathclose{!\\mkern-0.8mu!}");y("∌","\\notni");y("⌜","\\ulcorner");y("⌝","\\urcorner");y("⌞","\\llcorner");y("⌟","\\lrcorner");y("©","\\copyright");y("®","\\textregistered");y("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');y("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');y("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');y("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');y("\\vdots","{\\varvdots\\rule{0pt}{15pt}}");y("⋮","\\vdots");y("\\varGamma","\\mathit{\\Gamma}");y("\\varDelta","\\mathit{\\Delta}");y("\\varTheta","\\mathit{\\Theta}");y("\\varLambda","\\mathit{\\Lambda}");y("\\varXi","\\mathit{\\Xi}");y("\\varPi","\\mathit{\\Pi}");y("\\varSigma","\\mathit{\\Sigma}");y("\\varUpsilon","\\mathit{\\Upsilon}");y("\\varPhi","\\mathit{\\Phi}");y("\\varPsi","\\mathit{\\Psi}");y("\\varOmega","\\mathit{\\Omega}");y("\\substack","\\begin{subarray}{c}#1\\end{subarray}");y("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");y("\\boxed","\\fbox{$\\displaystyle{#1}$}");y("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");y("\\implies","\\DOTSB\\;\\Longrightarrow\\;");y("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");y("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}");y("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");var ec={",":"\\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"},w5=new Set(["bin","rel"]);y("\\dots",function(e){var t="\\dotso",r=e.expandAfterFuture().text;return r in ec?t=ec[r]:(r.slice(0,4)==="\\not"||r in Fe.math&&w5.has(Fe.math[r].group))&&(t="\\dotsb"),t});var $u={")":!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};y("\\dotso",function(e){var t=e.future().text;return t in $u?"\\ldots\\,":"\\ldots"});y("\\dotsc",function(e){var t=e.future().text;return t in $u&&t!==","?"\\ldots\\,":"\\ldots"});y("\\cdots",function(e){var t=e.future().text;return t in $u?"\\@cdots\\,":"\\@cdots"});y("\\dotsb","\\cdots");y("\\dotsm","\\cdots");y("\\dotsi","\\!\\cdots");y("\\dotsx","\\ldots\\,");y("\\DOTSI","\\relax");y("\\DOTSB","\\relax");y("\\DOTSX","\\relax");y("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");y("\\,","\\tmspace+{3mu}{.1667em}");y("\\thinspace","\\,");y("\\>","\\mskip{4mu}");y("\\:","\\tmspace+{4mu}{.2222em}");y("\\medspace","\\:");y("\\;","\\tmspace+{5mu}{.2777em}");y("\\thickspace","\\;");y("\\!","\\tmspace-{3mu}{.1667em}");y("\\negthinspace","\\!");y("\\negmedspace","\\tmspace-{4mu}{.2222em}");y("\\negthickspace","\\tmspace-{5mu}{.277em}");y("\\enspace","\\kern.5em ");y("\\enskip","\\hskip.5em\\relax");y("\\quad","\\hskip1em\\relax");y("\\qquad","\\hskip2em\\relax");y("\\tag","\\@ifstar\\tag@literal\\tag@paren");y("\\tag@paren","\\tag@literal{({#1})}");y("\\tag@literal",e=>{if(e.macros.get("\\df@tag"))throw new J("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});y("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");y("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");y("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");y("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");y("\\newline","\\\\\\relax");y("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var Nd=te(tr["Main-Regular"][84][1]-.7*tr["Main-Regular"][65][1]);y("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+Nd+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");y("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+Nd+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");y("\\hspace","\\@ifstar\\@hspacer\\@hspace");y("\\@hspace","\\hskip #1\\relax");y("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");y("\\ordinarycolon",":");y("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");y("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');y("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');y("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');y("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');y("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');y("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');y("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');y("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');y("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');y("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');y("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');y("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');y("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');y("∷","\\dblcolon");y("∹","\\eqcolon");y("≔","\\coloneqq");y("≕","\\eqqcolon");y("⩴","\\Coloneqq");y("\\ratio","\\vcentcolon");y("\\coloncolon","\\dblcolon");y("\\colonequals","\\coloneqq");y("\\coloncolonequals","\\Coloneqq");y("\\equalscolon","\\eqqcolon");y("\\equalscoloncolon","\\Eqqcolon");y("\\colonminus","\\coloneq");y("\\coloncolonminus","\\Coloneq");y("\\minuscolon","\\eqcolon");y("\\minuscoloncolon","\\Eqcolon");y("\\coloncolonapprox","\\Colonapprox");y("\\coloncolonsim","\\Colonsim");y("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");y("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");y("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");y("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");y("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}");y("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");y("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");y("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");y("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");y("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");y("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");y("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");y("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");y("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}");y("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}");y("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}");y("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}");y("\\nleqq","\\html@mathml{\\@nleqq}{≰}");y("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}");y("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}");y("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}");y("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}");y("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}");y("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}");y("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}");y("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}");y("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}");y("\\imath","\\html@mathml{\\@imath}{ı}");y("\\jmath","\\html@mathml{\\@jmath}{ȷ}");y("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}");y("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}");y("⟦","\\llbracket");y("⟧","\\rrbracket");y("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}");y("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}");y("⦃","\\lBrace");y("⦄","\\rBrace");y("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}");y("⦵","\\minuso");y("\\darr","\\downarrow");y("\\dArr","\\Downarrow");y("\\Darr","\\Downarrow");y("\\lang","\\langle");y("\\rang","\\rangle");y("\\uarr","\\uparrow");y("\\uArr","\\Uparrow");y("\\Uarr","\\Uparrow");y("\\N","\\mathbb{N}");y("\\R","\\mathbb{R}");y("\\Z","\\mathbb{Z}");y("\\alef","\\aleph");y("\\alefsym","\\aleph");y("\\Alpha","\\mathrm{A}");y("\\Beta","\\mathrm{B}");y("\\bull","\\bullet");y("\\Chi","\\mathrm{X}");y("\\clubs","\\clubsuit");y("\\cnums","\\mathbb{C}");y("\\Complex","\\mathbb{C}");y("\\Dagger","\\ddagger");y("\\diamonds","\\diamondsuit");y("\\empty","\\emptyset");y("\\Epsilon","\\mathrm{E}");y("\\Eta","\\mathrm{H}");y("\\exist","\\exists");y("\\harr","\\leftrightarrow");y("\\hArr","\\Leftrightarrow");y("\\Harr","\\Leftrightarrow");y("\\hearts","\\heartsuit");y("\\image","\\Im");y("\\infin","\\infty");y("\\Iota","\\mathrm{I}");y("\\isin","\\in");y("\\Kappa","\\mathrm{K}");y("\\larr","\\leftarrow");y("\\lArr","\\Leftarrow");y("\\Larr","\\Leftarrow");y("\\lrarr","\\leftrightarrow");y("\\lrArr","\\Leftrightarrow");y("\\Lrarr","\\Leftrightarrow");y("\\Mu","\\mathrm{M}");y("\\natnums","\\mathbb{N}");y("\\Nu","\\mathrm{N}");y("\\Omicron","\\mathrm{O}");y("\\plusmn","\\pm");y("\\rarr","\\rightarrow");y("\\rArr","\\Rightarrow");y("\\Rarr","\\Rightarrow");y("\\real","\\Re");y("\\reals","\\mathbb{R}");y("\\Reals","\\mathbb{R}");y("\\Rho","\\mathrm{P}");y("\\sdot","\\cdot");y("\\sect","\\S");y("\\spades","\\spadesuit");y("\\sub","\\subset");y("\\sube","\\subseteq");y("\\supe","\\supseteq");y("\\Tau","\\mathrm{T}");y("\\thetasym","\\vartheta");y("\\weierp","\\wp");y("\\Zeta","\\mathrm{Z}");y("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");y("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");y("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");y("\\bra","\\mathinner{\\langle{#1}|}");y("\\ket","\\mathinner{|{#1}\\rangle}");y("\\braket","\\mathinner{\\langle{#1}\\rangle}");y("\\Bra","\\left\\langle#1\\right|");y("\\Ket","\\left|#1\\right\\rangle");var Ld=e=>t=>{var r=t.consumeArg().tokens,n=t.consumeArg().tokens,a=t.consumeArg().tokens,i=t.consumeArg().tokens,s=t.macros.get("|"),u=t.macros.get("\\|");t.macros.beginGroup();var l=h=>f=>{e&&(f.macros.set("|",s),a.length&&f.macros.set("\\|",u));var p=h;if(!h&&a.length){var b=f.future();b.text==="|"&&(f.popToken(),p=!0)}return{tokens:p?a:n,numArgs:0}};t.macros.set("|",l(!1)),a.length&&t.macros.set("\\|",l(!0));var o=t.consumeArg().tokens,c=t.expandTokens([...i,...o,...r]);return t.macros.endGroup(),{tokens:c.reverse(),numArgs:0}};y("\\bra@ket",Ld(!1));y("\\bra@set",Ld(!0));y("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");y("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");y("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");y("\\angln","{\\angl n}");y("\\blue","\\textcolor{##6495ed}{#1}");y("\\orange","\\textcolor{##ffa500}{#1}");y("\\pink","\\textcolor{##ff00af}{#1}");y("\\red","\\textcolor{##df0030}{#1}");y("\\green","\\textcolor{##28ae7b}{#1}");y("\\gray","\\textcolor{gray}{#1}");y("\\purple","\\textcolor{##9d38bd}{#1}");y("\\blueA","\\textcolor{##ccfaff}{#1}");y("\\blueB","\\textcolor{##80f6ff}{#1}");y("\\blueC","\\textcolor{##63d9ea}{#1}");y("\\blueD","\\textcolor{##11accd}{#1}");y("\\blueE","\\textcolor{##0c7f99}{#1}");y("\\tealA","\\textcolor{##94fff5}{#1}");y("\\tealB","\\textcolor{##26edd5}{#1}");y("\\tealC","\\textcolor{##01d1c1}{#1}");y("\\tealD","\\textcolor{##01a995}{#1}");y("\\tealE","\\textcolor{##208170}{#1}");y("\\greenA","\\textcolor{##b6ffb0}{#1}");y("\\greenB","\\textcolor{##8af281}{#1}");y("\\greenC","\\textcolor{##74cf70}{#1}");y("\\greenD","\\textcolor{##1fab54}{#1}");y("\\greenE","\\textcolor{##0d923f}{#1}");y("\\goldA","\\textcolor{##ffd0a9}{#1}");y("\\goldB","\\textcolor{##ffbb71}{#1}");y("\\goldC","\\textcolor{##ff9c39}{#1}");y("\\goldD","\\textcolor{##e07d10}{#1}");y("\\goldE","\\textcolor{##a75a05}{#1}");y("\\redA","\\textcolor{##fca9a9}{#1}");y("\\redB","\\textcolor{##ff8482}{#1}");y("\\redC","\\textcolor{##f9685d}{#1}");y("\\redD","\\textcolor{##e84d39}{#1}");y("\\redE","\\textcolor{##bc2612}{#1}");y("\\maroonA","\\textcolor{##ffbde0}{#1}");y("\\maroonB","\\textcolor{##ff92c6}{#1}");y("\\maroonC","\\textcolor{##ed5fa6}{#1}");y("\\maroonD","\\textcolor{##ca337c}{#1}");y("\\maroonE","\\textcolor{##9e034e}{#1}");y("\\purpleA","\\textcolor{##ddd7ff}{#1}");y("\\purpleB","\\textcolor{##c6b9fc}{#1}");y("\\purpleC","\\textcolor{##aa87ff}{#1}");y("\\purpleD","\\textcolor{##7854ab}{#1}");y("\\purpleE","\\textcolor{##543b78}{#1}");y("\\mintA","\\textcolor{##f5f9e8}{#1}");y("\\mintB","\\textcolor{##edf2df}{#1}");y("\\mintC","\\textcolor{##e0e5cc}{#1}");y("\\grayA","\\textcolor{##f6f7f7}{#1}");y("\\grayB","\\textcolor{##f0f1f2}{#1}");y("\\grayC","\\textcolor{##e3e5e6}{#1}");y("\\grayD","\\textcolor{##d6d8da}{#1}");y("\\grayE","\\textcolor{##babec2}{#1}");y("\\grayF","\\textcolor{##888d93}{#1}");y("\\grayG","\\textcolor{##626569}{#1}");y("\\grayH","\\textcolor{##3b3e40}{#1}");y("\\grayI","\\textcolor{##21242c}{#1}");y("\\kaBlue","\\textcolor{##314453}{#1}");y("\\kaGreen","\\textcolor{##71B307}{#1}");var Rd={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class A5{constructor(t,r,n){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=r,this.expansionCount=0,this.feed(t),this.macros=new v5(k5,r.macros),this.mode=n,this.stack=[]}feed(t){this.lexer=new Zo(t,this.settings)}switchMode(t){this.mode=t}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(t){this.stack.push(t)}pushTokens(t){this.stack.push(...t)}scanArgument(t){var r,n,a;if(t){if(this.consumeSpaces(),this.future().text!=="[")return null;r=this.popToken(),{tokens:a,end:n}=this.consumeArg(["]"])}else({tokens:a,start:r,end:n}=this.consumeArg());return this.pushToken(new Ct("EOF",n.loc)),this.pushTokens(a),new Ct("",kt.range(r,n))}consumeSpaces(){for(;;){var t=this.future();if(t.text===" ")this.stack.pop();else break}}consumeArg(t){var r=[],n=t&&t.length>0;n||this.consumeSpaces();var a=this.future(),i,s=0,u=0;do{if(i=this.popToken(),r.push(i),i.text==="{")++s;else if(i.text==="}"){if(--s,s===-1)throw new J("Extra }",i)}else if(i.text==="EOF")throw new J("Unexpected end of input in a macro argument, expected '"+(t&&n?t[u]:"}")+"'",i);if(t&&n)if((s===0||s===1&&t[u]==="{")&&i.text===t[u]){if(++u,u===t.length){r.splice(-u,u);break}}else u=0}while(s!==0||n);return a.text==="{"&&r[r.length-1].text==="}"&&(r.pop(),r.shift()),r.reverse(),{tokens:r,start:a,end:i}}consumeArgs(t,r){if(r){if(r.length!==t+1)throw new J("The length of delimiters doesn't match the number of args!");for(var n=r[0],a=0;a<n.length;a++){var i=this.popToken();if(n[a]!==i.text)throw new J("Use of the macro doesn't match its definition",i)}}for(var s=[],u=0;u<t;u++)s.push(this.consumeArg(r&&r[u+1]).tokens);return s}countExpansion(t){if(this.expansionCount+=t,this.expansionCount>this.settings.maxExpand)throw new J("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(t){var r=this.popToken(),n=r.text,a=r.noexpand?null:this._getExpansion(n);if(a==null||t&&a.unexpandable){if(t&&a==null&&n[0]==="\\"&&!this.isDefined(n))throw new J("Undefined control sequence: "+n);return this.pushToken(r),!1}this.countExpansion(1);var i=a.tokens,s=this.consumeArgs(a.numArgs,a.delimiters);if(a.numArgs){i=i.slice();for(var u=i.length-1;u>=0;--u){var l=i[u];if(l.text==="#"){if(u===0)throw new J("Incomplete placeholder at end of macro body",l);if(l=i[--u],l.text==="#")i.splice(u+1,1);else if(/^[1-9]$/.test(l.text))i.splice(u,2,...s[+l.text-1]);else throw new J("Not a valid argument number",l)}}}return this.pushTokens(i),i.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var t=this.stack.pop();return t.treatAsRelax&&(t.text="\\relax"),t}}expandMacro(t){return this.macros.has(t)?this.expandTokens([new Ct(t)]):void 0}expandTokens(t){var r=[],n=this.stack.length;for(this.pushTokens(t);this.stack.length>n;)if(this.expandOnce(!0)===!1){var a=this.stack.pop();a.treatAsRelax&&(a.noexpand=!1,a.treatAsRelax=!1),r.push(a)}return this.countExpansion(r.length),r}expandMacroAsText(t){var r=this.expandMacro(t);return r&&r.map(n=>n.text).join("")}_getExpansion(t){var r=this.macros.get(t);if(r==null)return r;if(t.length===1){var n=this.lexer.catcodes[t];if(n!=null&&n!==13)return}var a=typeof r=="function"?r(this):r;if(typeof a=="string"){var i=0;if(a.includes("#"))for(var s=a.replace(/##/g,"");s.includes("#"+(i+1));)++i;for(var u=new Zo(a,this.settings),l=[],o=u.lex();o.text!=="EOF";)l.push(o),o=u.lex();l.reverse();var c={tokens:l,numArgs:i};return c}return a}isDefined(t){return this.macros.has(t)||zr.hasOwnProperty(t)||Fe.math.hasOwnProperty(t)||Fe.text.hasOwnProperty(t)||Rd.hasOwnProperty(t)}isExpandable(t){var r=this.macros.get(t);return r!=null?typeof r=="string"||typeof r=="function"||!r.unexpandable:zr.hasOwnProperty(t)&&!zr[t].primitive}}var tc=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,gi=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","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),Js={"́":{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"}},rc={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};let Dd=class Od{constructor(t,r){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new A5(t,r,this.mode),this.settings=r,this.leftrightDepth=0,this.nextToken=null}expect(t,r){if(r===void 0&&(r=!0),this.fetch().text!==t)throw new J("Expected '"+t+"', got '"+this.fetch().text+"'",this.fetch());r&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(t){this.mode=t,this.gullet.switchMode(t)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var t=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),t}finally{this.gullet.endGroups()}}subparse(t){var r=this.nextToken;this.consume(),this.gullet.pushToken(new Ct("}")),this.gullet.pushTokens(t);var n=this.parseExpression(!1);return this.expect("}"),this.nextToken=r,n}parseExpression(t,r){for(var n=[];;){this.mode==="math"&&this.consumeSpaces();var a=this.fetch();if(Od.endOfExpression.has(a.text)||r&&a.text===r||t&&zr[a.text]&&zr[a.text].infix)break;var i=this.parseAtom(r);if(i){if(i.type==="internal")continue}else break;n.push(i)}return this.mode==="text"&&this.formLigatures(n),this.handleInfixNodes(n)}handleInfixNodes(t){for(var r=-1,n,a=0;a<t.length;a++){var i=t[a];if(i.type==="infix"){if(r!==-1)throw new J("only one infix operator per group",i.token);r=a,n=i.replaceWith}}if(r!==-1&&n){var s,u,l=t.slice(0,r),o=t.slice(r+1);l.length===1&&l[0].type==="ordgroup"?s=l[0]:s={type:"ordgroup",mode:this.mode,body:l},o.length===1&&o[0].type==="ordgroup"?u=o[0]:u={type:"ordgroup",mode:this.mode,body:o};var c;return n==="\\\\abovefrac"?c=this.callFunction(n,[s,t[r],u],[]):c=this.callFunction(n,[s,u],[]),[c]}else return t}handleSupSubscript(t){var r=this.fetch(),n=r.text;this.consume(),this.consumeSpaces();var a;do{var i;a=this.parseGroup(t)}while(((i=a)==null?void 0:i.type)==="internal");if(!a)throw new J("Expected group after '"+n+"'",r);return a}formatUnsupportedCmd(t){for(var r=[],n=0;n<t.length;n++)r.push({type:"textord",mode:"text",text:t[n]});var a={type:"text",mode:this.mode,body:r},i={type:"color",mode:this.mode,color:this.settings.errorColor,body:[a]};return i}parseAtom(t){var r=this.parseGroup("atom",t);if((r==null?void 0:r.type)==="internal"||this.mode==="text")return r;for(var n,a;;){this.consumeSpaces();var i=this.fetch();if(i.text==="\\limits"||i.text==="\\nolimits"){if(r&&r.type==="op"){var s=i.text==="\\limits";r.limits=s,r.alwaysHandleSupSub=!0}else if(r&&r.type==="operatorname")r.alwaysHandleSupSub&&(r.limits=i.text==="\\limits");else throw new J("Limit controls must follow a math operator",i);this.consume()}else if(i.text==="^"){if(n)throw new J("Double superscript",i);n=this.handleSupSubscript("superscript")}else if(i.text==="_"){if(a)throw new J("Double subscript",i);a=this.handleSupSubscript("subscript")}else if(i.text==="'"){if(n)throw new J("Double superscript",i);var u={type:"textord",mode:this.mode,text:"\\prime"},l=[u];for(this.consume();this.fetch().text==="'";)l.push(u),this.consume();this.fetch().text==="^"&&l.push(this.handleSupSubscript("superscript")),n={type:"ordgroup",mode:this.mode,body:l}}else if(gi[i.text]){var o=tc.test(i.text),c=[];for(c.push(new Ct(gi[i.text])),this.consume();;){var h=this.fetch().text;if(!gi[h]||tc.test(h)!==o)break;c.unshift(new Ct(gi[h])),this.consume()}var f=this.subparse(c);o?a={type:"ordgroup",mode:"math",body:f}:n={type:"ordgroup",mode:"math",body:f}}else break}return n||a?{type:"supsub",mode:this.mode,base:r,sup:n,sub:a}:r}parseFunction(t,r){var n=this.fetch(),a=n.text,i=zr[a];if(!i)return null;if(this.consume(),r&&r!=="atom"&&!i.allowedInArgument)throw new J("Got function '"+a+"' with no arguments"+(r?" as "+r:""),n);if(this.mode==="text"&&!i.allowedInText)throw new J("Can't use function '"+a+"' in text mode",n);if(this.mode==="math"&&i.allowedInMath===!1)throw new J("Can't use function '"+a+"' in math mode",n);var{args:s,optArgs:u}=this.parseArguments(a,i);return this.callFunction(a,s,u,n,t)}callFunction(t,r,n,a,i){var s={funcName:t,parser:this,token:a,breakOnTokenText:i},u=zr[t];if(u&&u.handler)return u.handler(s,r,n);throw new J("No function handler for "+t)}parseArguments(t,r){var n=r.numArgs+r.numOptionalArgs;if(n===0)return{args:[],optArgs:[]};for(var a=[],i=[],s=0;s<n;s++){var u=r.argTypes&&r.argTypes[s],l=s<r.numOptionalArgs;("primitive"in r&&r.primitive&&u==null||r.type==="sqrt"&&s===1&&i[0]==null)&&(u="primitive");var o=this.parseGroupOfType("argument to '"+t+"'",u,l);if(l)i.push(o);else if(o!=null)a.push(o);else throw new J("Null argument, please report this as a bug")}return{args:a,optArgs:i}}parseGroupOfType(t,r,n){switch(r){case"color":return this.parseColorGroup(n);case"size":return this.parseSizeGroup(n);case"url":return this.parseUrlGroup(n);case"math":case"text":return this.parseArgumentGroup(n,r);case"hbox":{var a=this.parseArgumentGroup(n,"text");return a!=null?{type:"styling",mode:a.mode,body:[a],style:"text",resetFont:!0}:null}case"raw":{var i=this.parseStringGroup("raw",n);return i!=null?{type:"raw",mode:"text",string:i.text}:null}case"primitive":{if(n)throw new J("A primitive argument cannot be optional");var s=this.parseGroup(t);if(s==null)throw new J("Expected group as "+t,this.fetch());return s}case"original":case null:case void 0:return this.parseArgumentGroup(n);default:throw new J("Unknown group type as "+t,this.fetch())}}consumeSpaces(){for(;this.fetch().text===" ";)this.consume()}parseStringGroup(t,r){var n=this.gullet.scanArgument(r);if(n==null)return null;for(var a="",i;(i=this.fetch()).text!=="EOF";)a+=i.text,this.consume();return this.consume(),n.text=a,n}parseRegexGroup(t,r){for(var n=this.fetch(),a=n,i="",s;(s=this.fetch()).text!=="EOF"&&t.test(i+s.text);)a=s,i+=a.text,this.consume();if(i==="")throw new J("Invalid "+r+": '"+n.text+"'",n);return n.range(a,i)}parseColorGroup(t){var r=this.parseStringGroup("color",t);if(r==null)return null;var n=/^(#[a-f0-9]{3,4}|#[a-f0-9]{6}|#[a-f0-9]{8}|[a-f0-9]{6}|[a-z]+)$/i.exec(r.text);if(!n)throw new J("Invalid color: '"+r.text+"'",r);var a=n[0];return/^[0-9a-f]{6}$/i.test(a)&&(a="#"+a),{type:"color-token",mode:this.mode,color:a}}parseSizeGroup(t){var r,n=!1;if(this.gullet.consumeSpaces(),!t&&this.gullet.future().text!=="{"?r=this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"):r=this.parseStringGroup("size",t),!r)return null;!t&&r.text.length===0&&(r.text="0pt",n=!0);var a=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(r.text);if(!a)throw new J("Invalid size: '"+r.text+"'",r);var i={number:+(a[1]+a[2]),unit:a[3]};if(!zh(i))throw new J("Invalid unit: '"+i.unit+"'",r);return{type:"size",mode:this.mode,value:i,isBlank:n}}parseUrlGroup(t){this.gullet.lexer.setCatcode("%",13),this.gullet.lexer.setCatcode("~",12);var r=this.parseStringGroup("url",t);if(this.gullet.lexer.setCatcode("%",14),this.gullet.lexer.setCatcode("~",13),r==null)return null;var n=r.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:n}}parseArgumentGroup(t,r){var n=this.gullet.scanArgument(t);if(n==null)return null;var a=this.mode;r&&this.switchMode(r),this.gullet.beginGroup();var i=this.parseExpression(!1,"EOF");this.expect("EOF"),this.gullet.endGroup();var s={type:"ordgroup",mode:this.mode,loc:n.loc,body:i};return r&&this.switchMode(a),s}parseGroup(t,r){var n=this.fetch(),a=n.text,i;if(a==="{"||a==="\\begingroup"){this.consume();var s=a==="{"?"}":"\\endgroup";this.gullet.beginGroup();var u=this.parseExpression(!1,s),l=this.fetch();this.expect(s),this.gullet.endGroup(),i={type:"ordgroup",mode:this.mode,loc:kt.range(n,l),body:u,semisimple:a==="\\begingroup"||void 0}}else if(i=this.parseFunction(r,t)||this.parseSymbol(),i==null&&a[0]==="\\"&&!Rd.hasOwnProperty(a)){if(this.settings.throwOnError)throw new J("Undefined control sequence: "+a,n);i=this.formatUnsupportedCmd(a),this.consume()}return i}formLigatures(t){for(var r=t.length-1,n=0;n<r;++n){var a=t[n];if(a.type==="textord"){var i=a.text,s=t[n+1];if(!(!s||s.type!=="textord")){if(i==="-"&&s.text==="-"){var u=t[n+2];n+1<r&&u&&u.type==="textord"&&u.text==="-"?(t.splice(n,3,{type:"textord",mode:"text",loc:kt.range(a,u),text:"---"}),r-=2):(t.splice(n,2,{type:"textord",mode:"text",loc:kt.range(a,s),text:"--"}),r-=1)}(i==="'"||i==="`")&&s.text===i&&(t.splice(n,2,{type:"textord",mode:"text",loc:kt.range(a,s),text:i+i}),r-=1)}}}}parseSymbol(){var t=this.fetch(),r=t.text;if(/^\\verb[^a-zA-Z]/.test(r)){this.consume();var n=r.slice(5),a=n.charAt(0)==="*";if(a&&(n=n.slice(1)),n.length<2||n.charAt(0)!==n.slice(-1))throw new J(`\\verb assertion failed --
|
|
402
|
+
please report what input caused this bug`);return n=n.slice(1,-1),{type:"verb",mode:"text",body:n,star:a}}rc.hasOwnProperty(r[0])&&!Fe[this.mode][r[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+r[0]+'" used in math mode',t),r=rc[r[0]]+r.slice(1));var i=y5.exec(r);i&&(r=r.substring(0,i.index),r==="i"?r="ı":r==="j"&&(r="ȷ"));var s;if(Fe[this.mode][r]){this.settings.strict&&this.mode==="math"&&B0.includes(r)&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+r[0]+'" used in math mode',t);var u=Fe[this.mode][r].group,l=kt.range(t),o;$6(u)?o={type:"atom",mode:this.mode,family:u,loc:l,text:r}:o={type:u,mode:this.mode,loc:l,text:r},s=o}else if(r.charCodeAt(0)>=128)this.settings.strict&&(Hh(r.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+r[0]+'" used in math mode',t):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+r[0]+'"'+(" ("+r.charCodeAt(0)+")"),t)),s={type:"textord",mode:"text",loc:kt.range(t),text:r};else return null;if(this.consume(),i)for(var c=0;c<i[0].length;c++){var h=i[0][c];if(!Js[h])throw new J("Unknown accent ' "+h+"'",t);var f=Js[h][this.mode]||Js[h].text;if(!f)throw new J("Accent "+h+" unsupported in "+this.mode+" mode",t);s={type:"accent",mode:this.mode,loc:kt.range(t),label:f,isStretchy:!1,isShifty:!0,base:s}}return s}};Dd.endOfExpression=new Set(["}","\\endgroup","\\end","\\right","&"]);var Uu=function(t,r){if(!(typeof t=="string"||t instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var n=new Dd(t,r);delete n.gullet.macros.current["\\df@tag"];var a=n.parse();if(delete n.gullet.macros.current["\\current@color"],delete n.gullet.macros.current["\\color"],n.gullet.macros.get("\\df@tag")){if(!r.displayMode)throw new J("\\tag works only in display equations");a=[{type:"tag",mode:"text",body:a,tag:n.subparse([new Ct("\\df@tag")])}]}return a},Md=function(t,r,n){r.textContent="";var a=qu(t,n).toNode();r.appendChild(a)};typeof document<"u"&&document.compatMode!=="CSS1Compat"&&(typeof console<"u"&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),Md=function(){throw new J("KaTeX doesn't work in quirks mode.")});var C5=function(t,r){var n=qu(t,r).toMarkup();return n},S5=function(t,r){var n=new Iu(r);return Uu(t,n)},Pd=function(t,r,n){if(n.throwOnError||!(t instanceof J))throw t;var a=Q(["katex-error"],[new It(r)]);return a.setAttribute("title",t.toString()),a.setAttribute("style","color:"+n.errorColor),a},qu=function(t,r){var n=new Iu(r);try{var a=Uu(t,n);return D6(a,t,n)}catch(i){return Pd(i,t,n)}},I5=function(t,r){var n=new Iu(r);try{var a=Uu(t,n);return O6(a,t,n)}catch(i){return Pd(i,t,n)}},_5="0.16.47",N5={Span:Jn,Anchor:us,SymbolNode:It,SvgNode:Tr,PathNode:Gr,LineNode:P0},nc={version:_5,render:Md,renderToString:C5,ParseError:J,SETTINGS_SCHEMA:D0,__parse:S5,__renderToDomTree:qu,__renderToHTMLTree:I5,__setFontMetrics:m6,__defineSymbol:m,__defineFunction:ne,__defineMacro:y,__domTree:N5};const Bd=[],Ta=!0,Z0=!1,$r="skip";function Xa(e,t,r,n){let a;typeof t=="function"&&typeof r!="function"?(n=r,r=t):a=t;const i=Va(a),s=n?-1:1;u(e,void 0,[])();function u(l,o,c){const h=l&&typeof l=="object"?l:{};if(typeof h.type=="string"){const p=typeof h.tagName=="string"?h.tagName:typeof h.name=="string"?h.name:void 0;Object.defineProperty(f,"name",{value:"node ("+(l.type+(p?"<"+p+">":""))+")"})}return f;function f(){let p=Bd,b,E,T;if((!t||i(l,o,c[c.length-1]||void 0))&&(p=L5(r(l,c)),p[0]===Z0))return p;if("children"in l&&l.children){const k=l;if(k.children&&p[0]!==$r)for(E=(n?k.children.length:-1)+s,T=c.concat(k);E>-1&&E<k.children.length;){const C=k.children[E];if(b=u(C,E,T)(),b[0]===Z0)return b;E=typeof b[1]=="number"?b[1]:E+s}}return p}}}function L5(e){return Array.isArray(e)?e:typeof e=="number"?[Ta,e]:e==null?Bd:[e]}const R5={},D5=[];function O5(e){const t=e||R5;return function(r,n){Xa(r,"element",function(a,i){const s=Array.isArray(a.properties.className)?a.properties.className:D5,u=s.includes("language-math"),l=s.includes("math-display"),o=s.includes("math-inline");let c=l;if(!u&&!l&&!o)return;let h=i[i.length-1],f=a;if(a.tagName==="code"&&u&&h&&h.type==="element"&&h.tagName==="pre"&&(f=h,h=i[i.length-2],c=!0),!h)return;const p=S3(f,{whitespace:"pre"});let b;try{b=nc.renderToString(p,{...t,displayMode:c,throwOnError:!0})}catch(T){const k=T,C=k.name.toLowerCase();n.message("Could not render math with KaTeX",{ancestors:[...i,a],cause:k,place:a.position,ruleId:C,source:"rehype-katex"});try{b=nc.renderToString(p,{...t,displayMode:c,strict:"ignore",throwOnError:!1})}catch{b=[{type:"element",tagName:"span",properties:{className:["katex-error"],style:"color:"+(t.errorColor||"#cc0000"),title:String(T)},children:[{type:"text",value:p}]}]}}typeof b=="string"&&(b=m3(b).children);const E=h.children.indexOf(f);return h.children.splice(E,1,...b),$r})}}function Fd(e,t){const r=String(e);let n=r.indexOf(t),a=n,i=0,s=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;n!==-1;)n===a?++i>s&&(s=i):i=1,a=n+t.length,n=r.indexOf(t,a);return s}function M5(){return{enter:{mathFlow:e,mathFlowFenceMeta:t,mathText:i},exit:{mathFlow:a,mathFlowFence:n,mathFlowFenceMeta:r,mathFlowValue:u,mathText:s,mathTextData:u}};function e(l){const o={type:"element",tagName:"code",properties:{className:["language-math","math-display"]},children:[]};this.enter({type:"math",meta:null,value:"",data:{hName:"pre",hChildren:[o]}},l)}function t(){this.buffer()}function r(){const l=this.resume(),o=this.stack[this.stack.length-1];o.type,o.meta=l}function n(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)}function a(l){const o=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),c=this.stack[this.stack.length-1];c.type,this.exit(l),c.value=o;const h=c.data.hChildren[0];h.type,h.tagName,h.children.push({type:"text",value:o}),this.data.mathFlowInside=void 0}function i(l){this.enter({type:"inlineMath",value:"",data:{hName:"code",hProperties:{className:["language-math","math-inline"]},hChildren:[]}},l),this.buffer()}function s(l){const o=this.resume(),c=this.stack[this.stack.length-1];c.type,this.exit(l),c.value=o,c.data.hChildren.push({type:"text",value:o})}function u(l){this.config.enter.data.call(this,l),this.config.exit.data.call(this,l)}}function P5(e){let t=(e||{}).singleDollarTextMath;return t==null&&(t=!0),n.peek=a,{unsafe:[{character:"\r",inConstruct:"mathFlowMeta"},{character:`
|
|
403
|
+
`,inConstruct:"mathFlowMeta"},{character:"$",after:t?void 0:"\\$",inConstruct:"phrasing"},{character:"$",inConstruct:"mathFlowMeta"},{atBreak:!0,character:"$",after:"\\$"}],handlers:{math:r,inlineMath:n}};function r(i,s,u,l){const o=i.value||"",c=u.createTracker(l),h="$".repeat(Math.max(Fd(o,"$")+1,2)),f=u.enter("mathFlow");let p=c.move(h);if(i.meta){const b=u.enter("mathFlowMeta");p+=c.move(u.safe(i.meta,{after:`
|
|
404
|
+
`,before:p,encode:["$"],...c.current()})),b()}return p+=c.move(`
|
|
405
|
+
`),o&&(p+=c.move(o+`
|
|
406
|
+
`)),p+=c.move(h),f(),p}function n(i,s,u){let l=i.value||"",o=1;for(t||o++;new RegExp("(^|[^$])"+"\\$".repeat(o)+"([^$]|$)").test(l);)o++;const c="$".repeat(o);/[^ \r\n]/.test(l)&&(/^[ \r\n]/.test(l)&&/[ \r\n]$/.test(l)||/^\$|\$$/.test(l))&&(l=" "+l+" ");let h=-1;for(;++h<u.unsafe.length;){const f=u.unsafe[h];if(!f.atBreak)continue;const p=u.compilePattern(f);let b;for(;b=p.exec(l);){let E=b.index;l.codePointAt(E)===10&&l.codePointAt(E-1)===13&&E--,l=l.slice(0,E)+" "+l.slice(b.index+1)}}return c+l+c}function a(){return"$"}}const bt=Zr(/[A-Za-z]/),ot=Zr(/[\dA-Za-z]/),B5=Zr(/[#-'*+\--9=?A-Z^-~]/);function Ui(e){return e!==null&&(e<32||e===127)}const J0=Zr(/\d/),F5=Zr(/[\dA-Fa-f]/),H5=Zr(/[!-/:-@[-`{-~]/);function ue(e){return e!==null&&e<-2}function Re(e){return e!==null&&(e<0||e===32)}function ke(e){return e===-2||e===-1||e===32}const Es=Zr(new RegExp("\\p{P}|\\p{S}","u")),En=Zr(/\s/);function Zr(e){return t;function t(r){return r!==null&&r>-1&&e.test(String.fromCharCode(r))}}function Te(e,t,r,n){const a=n?n-1:Number.POSITIVE_INFINITY;let i=0;return s;function s(l){return ke(l)?(e.enter(r),u(l)):t(l)}function u(l){return ke(l)&&i++<a?(e.consume(l),u):(e.exit(r),t(l))}}const z5={tokenize:$5,concrete:!0,name:"mathFlow"},ac={tokenize:U5,partial:!0};function $5(e,t,r){const n=this,a=n.events[n.events.length-1],i=a&&a[1].type==="linePrefix"?a[2].sliceSerialize(a[1],!0).length:0;let s=0;return u;function u(C){return e.enter("mathFlow"),e.enter("mathFlowFence"),e.enter("mathFlowFenceSequence"),l(C)}function l(C){return C===36?(e.consume(C),s++,l):s<2?r(C):(e.exit("mathFlowFenceSequence"),Te(e,o,"whitespace")(C))}function o(C){return C===null||ue(C)?h(C):(e.enter("mathFlowFenceMeta"),e.enter("chunkString",{contentType:"string"}),c(C))}function c(C){return C===null||ue(C)?(e.exit("chunkString"),e.exit("mathFlowFenceMeta"),h(C)):C===36?r(C):(e.consume(C),c)}function h(C){return e.exit("mathFlowFence"),n.interrupt?t(C):e.attempt(ac,f,T)(C)}function f(C){return e.attempt({tokenize:k,partial:!0},T,p)(C)}function p(C){return(i?Te(e,b,"linePrefix",i+1):b)(C)}function b(C){return C===null?T(C):ue(C)?e.attempt(ac,f,T)(C):(e.enter("mathFlowValue"),E(C))}function E(C){return C===null||ue(C)?(e.exit("mathFlowValue"),b(C)):(e.consume(C),E)}function T(C){return e.exit("mathFlow"),t(C)}function k(C,w,H){let z=0;return Te(C,O,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function O(G){return C.enter("mathFlowFence"),C.enter("mathFlowFenceSequence"),U(G)}function U(G){return G===36?(z++,C.consume(G),U):z<s?H(G):(C.exit("mathFlowFenceSequence"),Te(C,q,"whitespace")(G))}function q(G){return G===null||ue(G)?(C.exit("mathFlowFence"),w(G)):H(G)}}}function U5(e,t,r){const n=this;return a;function a(s){return s===null?t(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i)}function i(s){return n.parser.lazy[n.now().line]?r(s):t(s)}}function q5(e){let r=(e||{}).singleDollarTextMath;return r==null&&(r=!0),{tokenize:n,resolve:j5,previous:G5,name:"mathText"};function n(a,i,s){let u=0,l,o;return c;function c(E){return a.enter("mathText"),a.enter("mathTextSequence"),h(E)}function h(E){return E===36?(a.consume(E),u++,h):u<2&&!r?s(E):(a.exit("mathTextSequence"),f(E))}function f(E){return E===null?s(E):E===36?(o=a.enter("mathTextSequence"),l=0,b(E)):E===32?(a.enter("space"),a.consume(E),a.exit("space"),f):ue(E)?(a.enter("lineEnding"),a.consume(E),a.exit("lineEnding"),f):(a.enter("mathTextData"),p(E))}function p(E){return E===null||E===32||E===36||ue(E)?(a.exit("mathTextData"),f(E)):(a.consume(E),p)}function b(E){return E===36?(a.consume(E),l++,b):l===u?(a.exit("mathTextSequence"),a.exit("mathText"),i(E)):(o.type="mathTextData",p(E))}}}function j5(e){let t=e.length-4,r=3,n,a;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(n=r;++n<t;)if(e[n][1].type==="mathTextData"){e[t][1].type="mathTextPadding",e[r][1].type="mathTextPadding",r+=2,t-=2;break}}for(n=r-1,t++;++n<=t;)a===void 0?n!==t&&e[n][1].type!=="lineEnding"&&(a=n):(n===t||e[n][1].type==="lineEnding")&&(e[a][1].type="mathTextData",n!==a+2&&(e[a][1].end=e[n-1][1].end,e.splice(a+2,n-a-2),t-=n-a-2,n=a+2),a=void 0);return e}function G5(e){return e!==36||this.events[this.events.length-1][1].type==="characterEscape"}function V5(e){return{flow:{36:z5},text:{36:q5(e)}}}const Y5={};function W5(e){const t=this,r=e||Y5,n=t.data(),a=n.micromarkExtensions||(n.micromarkExtensions=[]),i=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),s=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);a.push(V5(r)),i.push(M5()),s.push(P5(r))}function X5(e={}){var t,r;let n=[W5,{singleDollarTextMath:(t=e.singleDollarTextMath)!=null?t:!1}],a=[O5,{errorColor:(r=e.errorColor)!=null?r:"var(--color-muted-foreground)"}];return{name:"katex",type:"math",remarkPlugin:n,rehypePlugin:a,getStyles(){return"katex/dist/katex.min.css"}}}var Q5=X5();function Ht(e,t,r,n){let a,i,s;typeof t=="function"&&typeof r!="function"?(i=void 0,s=t,a=r):(i=t,s=r,a=n),Xa(e,i,u,a);function u(l,o){const c=o[o.length-1],h=c?c.children.indexOf(l):void 0;return s(l,h,c)}}const Vn={indicator:"indicator",textOnly:"text-only",remove:"remove"};function K5({defaultOrigin:e="",allowedLinkPrefixes:t=[],allowedImagePrefixes:r=[],allowDataImages:n=!1,allowedProtocols:a=[],blockedImageClass:i="inline-block bg-gray-200 dark:bg-gray-700 text-gray-600 dark:text-gray-400 px-3 py-1 rounded text-sm",blockedLinkClass:s="text-gray-500",linkBlockPolicy:u=Vn.indicator,imageBlockPolicy:l=Vn.indicator}){const o=t.length&&!t.every(h=>h==="*"),c=r.length&&!r.every(h=>h==="*");if(!e&&(o||c))throw new Error("defaultOrigin is required when allowedLinkPrefixes or allowedImagePrefixes are provided");return h=>{const f=ng(e,t,r,n,a,i,s,u,l);Hd(h),Ht(h,f)}}function ic(e,t){if(typeof e!="string")return null;try{return new URL(e)}catch{if(t)try{return new URL(e,t)}catch{return null}if(e.startsWith("/")||e.startsWith("./")||e.startsWith("../"))try{return new URL(e,"http://example.com")}catch{return null}return null}}function Z5(e){return typeof e!="string"?!1:e.startsWith("/")||e.startsWith("./")||e.startsWith("../")}const J5=new Set(["https:","http:","irc:","ircs:","mailto:","xmpp:","blob:"]),eg=new Set(["javascript:","data:","file:","vbscript:"]);function sc(e,t,r,n=!1,a=!1,i=[]){if(!e)return null;if(typeof e=="string"&&e.startsWith("#")&&!a)try{if(new URL(e,"http://example.com").hash===e)return e}catch{}if(typeof e=="string"&&e.startsWith("data:"))return a&&n&&e.startsWith("data:image/")?e:null;if(typeof e=="string"&&e.startsWith("blob:")){try{if(new URL(e).protocol==="blob:"&&e.length>5){const c=e.substring(5);if(c&&c.length>0&&c!=="invalid")return e}}catch{return null}return null}const s=ic(e,r);if(!s||eg.has(s.protocol)||!(J5.has(s.protocol)||i.includes(s.protocol)||i.includes("*")))return null;if(s.protocol==="mailto:"||!s.protocol.match(/^https?:$/))return s.href;const l=Z5(e);return s&&t.some(o=>{const c=ic(o,r);return!c||c.origin!==s.origin?!1:s.href.startsWith(c.href)})?l?s.pathname+s.search+s.hash:s.href:t.includes("*")?s.protocol!=="https:"&&s.protocol!=="http:"?null:l?s.pathname+s.search+s.hash:s.href:null}function Hd(e){if("children"in e&&Array.isArray(e.children)){e.children=e.children.filter(t=>t!=null);for(const t of e.children)Hd(t)}}const e0=Symbol("node-seen");function tg(e,t,r){return t===Vn.remove?{type:"remove"}:t===Vn.textOnly?{type:"replace",element:{type:"element",tagName:"span",properties:{},children:[...e.children]}}:{type:"replace",element:{type:"element",tagName:"span",properties:{title:"Blocked URL: "+String(e.properties.href),class:r},children:[...e.children,{type:"text",value:" [blocked]"}]}}}function rg(e,t,r){if(t===Vn.remove)return{type:"remove"};if(t===Vn.textOnly){const n=String(e.properties.alt||"");return n?{type:"replace",element:{type:"element",tagName:"span",properties:{},children:[{type:"text",value:n}]}}:{type:"remove"}}return{type:"replace",element:{type:"element",tagName:"span",properties:{class:r},children:[{type:"text",value:"[Image blocked: "+String(e.properties.alt||"No description")+"]"}]}}}const ng=(e,t,r,n,a,i,s,u,l)=>{const o=(c,h,f)=>{if(c.type!=="element"||c[e0])return Ta;if(c.tagName==="a"){const p=sc(c.properties.href,t,e,!1,!1,a);if(p===null){if(c[e0]=!0,Ht(c,o),f&&typeof h=="number"){const b=tg(c,u,s);if(b.type==="remove")return f.children.splice(h,1),[$r,h];f.children[h]=b.element}return $r}else return c.properties.href=p,c.properties.target="_blank",c.properties.rel="noopener noreferrer",Ta}if(c.tagName==="img"){const p=sc(c.properties.src,r,e,n,!0,a);if(p===null){if(c[e0]=!0,Ht(c,o),f&&typeof h=="number"){const b=rg(c,l,i);if(b.type==="remove")return f.children.splice(h,1),[$r,h];f.children[h]=b.element}return $r}else return c.properties.src=p,Ta}return Ta};return o},zd=-1,ys=0,Sa=1,qi=2,ju=3,Gu=4,Vu=5,Yu=6,$d=7,Ud=8,uc=typeof self=="object"?self:globalThis,ag=(e,t)=>{const r=(a,i)=>(e.set(i,a),a),n=a=>{if(e.has(a))return e.get(a);const[i,s]=t[a];switch(i){case ys:case zd:return r(s,a);case Sa:{const u=r([],a);for(const l of s)u.push(n(l));return u}case qi:{const u=r({},a);for(const[l,o]of s)u[n(l)]=n(o);return u}case ju:return r(new Date(s),a);case Gu:{const{source:u,flags:l}=s;return r(new RegExp(u,l),a)}case Vu:{const u=r(new Map,a);for(const[l,o]of s)u.set(n(l),n(o));return u}case Yu:{const u=r(new Set,a);for(const l of s)u.add(n(l));return u}case $d:{const{name:u,message:l}=s;return r(new uc[u](l),a)}case Ud:return r(BigInt(s),a);case"BigInt":return r(Object(BigInt(s)),a);case"ArrayBuffer":return r(new Uint8Array(s).buffer,s);case"DataView":{const{buffer:u}=new Uint8Array(s);return r(new DataView(u),s)}}return r(new uc[i](s),a)};return n},lc=e=>ag(new Map,e)(0),Dn="",{toString:ig}={},{keys:sg}=Object,da=e=>{const t=typeof e;if(t!=="object"||!e)return[ys,t];const r=ig.call(e).slice(8,-1);switch(r){case"Array":return[Sa,Dn];case"Object":return[qi,Dn];case"Date":return[ju,Dn];case"RegExp":return[Gu,Dn];case"Map":return[Vu,Dn];case"Set":return[Yu,Dn];case"DataView":return[Sa,r]}return r.includes("Array")?[Sa,r]:r.includes("Error")?[$d,r]:[qi,r]},bi=([e,t])=>e===ys&&(t==="function"||t==="symbol"),ug=(e,t,r,n)=>{const a=(s,u)=>{const l=n.push(s)-1;return r.set(u,l),l},i=s=>{if(r.has(s))return r.get(s);let[u,l]=da(s);switch(u){case ys:{let c=s;switch(l){case"bigint":u=Ud,c=s.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);c=null;break;case"undefined":return a([zd],s)}return a([u,c],s)}case Sa:{if(l){let f=s;return l==="DataView"?f=new Uint8Array(s.buffer):l==="ArrayBuffer"&&(f=new Uint8Array(s)),a([l,[...f]],s)}const c=[],h=a([u,c],s);for(const f of s)c.push(i(f));return h}case qi:{if(l)switch(l){case"BigInt":return a([l,s.toString()],s);case"Boolean":case"Number":case"String":return a([l,s.valueOf()],s)}if(t&&"toJSON"in s)return i(s.toJSON());const c=[],h=a([u,c],s);for(const f of sg(s))(e||!bi(da(s[f])))&&c.push([i(f),i(s[f])]);return h}case ju:return a([u,s.toISOString()],s);case Gu:{const{source:c,flags:h}=s;return a([u,{source:c,flags:h}],s)}case Vu:{const c=[],h=a([u,c],s);for(const[f,p]of s)(e||!(bi(da(f))||bi(da(p))))&&c.push([i(f),i(p)]);return h}case Yu:{const c=[],h=a([u,c],s);for(const f of s)(e||!bi(da(f)))&&c.push(i(f));return h}}const{message:o}=s;return a([u,{name:l,message:o}],s)};return i},oc=(e,{json:t,lossy:r}={})=>{const n=[];return ug(!(t||r),!!t,new Map,n)(e),n},yn=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?lc(oc(e,t)):structuredClone(e):(e,t)=>lc(oc(e,t));function lg(e){const t=String(e),r=[];return{toOffset:a,toPoint:n};function n(i){if(typeof i=="number"&&i>-1&&i<=t.length){let s=0;for(;;){let u=r[s];if(u===void 0){const l=cc(t,r[s-1]);u=l===-1?t.length+1:l+1,r[s]=u}if(u>i)return{line:s+1,column:i-(s>0?r[s-1]:0)+1,offset:i};s++}}}function a(i){if(i&&typeof i.line=="number"&&typeof i.column=="number"&&!Number.isNaN(i.line)&&!Number.isNaN(i.column)){for(;r.length<i.line;){const u=r[r.length-1],l=cc(t,u),o=l===-1?t.length+1:l+1;if(u===o)break;r.push(o)}const s=(i.line>1?r[i.line-2]:0)+i.column-1;if(s<r[i.line-1])return s}}}function cc(e,t){const r=e.indexOf("\r",t),n=e.indexOf(`
|
|
407
|
+
`,t);return n===-1?r:r===-1||r+1===n?n:r<n?r:n}const qd={}.hasOwnProperty,og=Object.prototype;function cg(e,t){const r=t||{};return Wu({file:r.file||void 0,location:!1,schema:r.space==="svg"?Qr:ja,verbose:r.verbose||!1},e)}function Wu(e,t){let r;switch(t.nodeName){case"#comment":{const n=t;return r={type:"comment",value:n.data},Ni(e,n,r),r}case"#document":case"#document-fragment":{const n=t,a="mode"in n?n.mode==="quirks"||n.mode==="limited-quirks":!1;if(r={type:"root",children:jd(e,t.childNodes),data:{quirksMode:a}},e.file&&e.location){const i=String(e.file),s=lg(i),u=s.toPoint(0),l=s.toPoint(i.length);r.position={start:u,end:l}}return r}case"#documentType":{const n=t;return r={type:"doctype"},Ni(e,n,r),r}case"#text":{const n=t;return r={type:"text",value:n.value},Ni(e,n,r),r}default:return r=hg(e,t),r}}function jd(e,t){let r=-1;const n=[];for(;++r<t.length;){const a=Wu(e,t[r]);n.push(a)}return n}function hg(e,t){const r=e.schema;e.schema=t.namespaceURI===er.svg?Qr:ja;let n=-1;const a={};for(;++n<t.attrs.length;){const u=t.attrs[n],l=(u.prefix?u.prefix+":":"")+u.name;qd.call(og,l)||(a[l]=u.value)}const s=(e.schema.space==="svg"?Rh:Lh)(t.tagName,a,jd(e,t.childNodes));if(Ni(e,t,s),s.tagName==="template"){const u=t,l=u.sourceCodeLocation,o=l&&l.startTag&&zn(l.startTag),c=l&&l.endTag&&zn(l.endTag),h=Wu(e,u.content);o&&c&&e.file&&(h.position={start:o.end,end:c.start}),s.content=h}return e.schema=r,s}function Ni(e,t,r){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const n=dg(e,r,t.sourceCodeLocation);n&&(e.location=!0,r.position=n)}}function dg(e,t,r){const n=zn(r);if(t.type==="element"){const a=t.children[t.children.length-1];if(n&&!r.endTag&&a&&a.position&&a.position.end&&(n.end=Object.assign({},a.position.end)),e.verbose){const i={};let s;if(r.attrs)for(s in r.attrs)qd.call(r.attrs,s)&&(i[ts(e.schema,s).property]=zn(r.attrs[s]));r.startTag;const u=zn(r.startTag),l=r.endTag?zn(r.endTag):void 0,o={opening:u};l&&(o.closing=l),o.properties=i,t.data={position:o}}}return n}function zn(e){const t=hc({line:e.startLine,column:e.startCol,offset:e.startOffset}),r=hc({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||r?{start:t,end:r}:void 0}function hc(e){return e.line&&e.column?e:void 0}const fg={},mg={}.hasOwnProperty,Gd=eh("type",{handlers:{root:gg,element:Tg,text:Eg,comment:yg,doctype:xg}});function pg(e,t){const n=(t||fg).space;return Gd(e,n==="svg"?Qr:ja)}function gg(e,t){const r={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return r.childNodes=Xu(e.children,r,t),ra(e,r),r}function bg(e,t){const r={nodeName:"#document-fragment",childNodes:[]};return r.childNodes=Xu(e.children,r,t),ra(e,r),r}function xg(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return ra(e,t),t}function Eg(e){const t={nodeName:"#text",value:e.value,parentNode:null};return ra(e,t),t}function yg(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return ra(e,t),t}function Tg(e,t){const r=t;let n=r;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&r.space==="html"&&(n=Qr);const a=[];let i;if(e.properties){for(i in e.properties)if(i!=="children"&&mg.call(e.properties,i)){const l=vg(n,i,e.properties[i]);l&&a.push(l)}}const s=n.space,u={nodeName:e.tagName,tagName:e.tagName,attrs:a,namespaceURI:er[s],childNodes:[],parentNode:null};return u.childNodes=Xu(e.children,u,n),ra(e,u),e.tagName==="template"&&e.content&&(u.content=bg(e.content,n)),u}function vg(e,t,r){const n=ts(e,t);if(r===!1||r===null||r===void 0||typeof r=="number"&&Number.isNaN(r)||!r&&n.boolean)return;Array.isArray(r)&&(r=n.commaSeparated?th(r):rh(r));const a={name:n.attribute,value:r===!0?"":String(r)};if(n.space&&n.space!=="html"&&n.space!=="svg"){const i=a.name.indexOf(":");i<0?a.prefix="":(a.name=a.name.slice(i+1),a.prefix=n.attribute.slice(0,i)),a.namespace=er[n.space]}return a}function Xu(e,t,r){let n=-1;const a=[];if(e)for(;++n<e.length;){const i=Gd(e[n],r);i.parentNode=t,a.push(i)}return a}function ra(e,t){const r=e.position;r&&r.start&&r.end&&(r.start.offset,r.end.offset,t.sourceCodeLocation={startLine:r.start.line,startCol:r.start.column,startOffset:r.start.offset,endLine:r.end.line,endCol:r.end.column,endOffset:r.end.offset})}const kg=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),Be="�";var v;(function(e){e[e.EOF=-1]="EOF",e[e.NULL=0]="NULL",e[e.TABULATION=9]="TABULATION",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.LINE_FEED=10]="LINE_FEED",e[e.FORM_FEED=12]="FORM_FEED",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_0=48]="DIGIT_0",e[e.DIGIT_9=57]="DIGIT_9",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",e[e.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_A=97]="LATIN_SMALL_A",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(v||(v={}));const Tt={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function Vd(e){return e>=55296&&e<=57343}function wg(e){return e>=56320&&e<=57343}function Ag(e,t){return(e-55296)*1024+9216+t}function Yd(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function Wd(e){return e>=64976&&e<=65007||kg.has(e)}var $;(function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})($||($={}));const Cg=65536;class Sg{constructor(t){this.handler=t,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=Cg,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(t,r){const{line:n,col:a,offset:i}=this,s=a+r,u=i+r;return{code:t,startLine:n,endLine:n,startCol:s,endCol:s,startOffset:u,endOffset:u}}_err(t){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(t,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.html.length-1){const r=this.html.charCodeAt(this.pos+1);if(wg(r))return this.pos++,this._addGap(),Ag(t,r)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,v.EOF;return this._err($.surrogateInInputStream),t}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(t,r){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=r}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,r){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(r)return this.html.startsWith(t,this.pos);for(let n=0;n<t.length;n++)if((this.html.charCodeAt(this.pos+n)|32)!==t.charCodeAt(n))return!1;return!0}peek(t){const r=this.pos+t;if(r>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,v.EOF;const n=this.html.charCodeAt(r);return n===v.CARRIAGE_RETURN?v.LINE_FEED:n}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,v.EOF;let t=this.html.charCodeAt(this.pos);return t===v.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,v.LINE_FEED):t===v.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,Vd(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===v.LINE_FEED||t===v.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){Yd(t)?this._err($.controlCharacterInInputStream):Wd(t)&&this._err($.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var ye;(function(e){e[e.CHARACTER=0]="CHARACTER",e[e.NULL_CHARACTER=1]="NULL_CHARACTER",e[e.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",e[e.START_TAG=3]="START_TAG",e[e.END_TAG=4]="END_TAG",e[e.COMMENT=5]="COMMENT",e[e.DOCTYPE=6]="DOCTYPE",e[e.EOF=7]="EOF",e[e.HIBERNATION=8]="HIBERNATION"})(ye||(ye={}));function Xd(e,t){for(let r=e.attrs.length-1;r>=0;r--)if(e.attrs[r].name===t)return e.attrs[r].value;return null}const Ig=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),_g=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function Ng(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=_g.get(e))!==null&&t!==void 0?t:e}var st;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(st||(st={}));const Lg=32;var Ur;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(Ur||(Ur={}));function eu(e){return e>=st.ZERO&&e<=st.NINE}function Rg(e){return e>=st.UPPER_A&&e<=st.UPPER_F||e>=st.LOWER_A&&e<=st.LOWER_F}function Dg(e){return e>=st.UPPER_A&&e<=st.UPPER_Z||e>=st.LOWER_A&&e<=st.LOWER_Z||eu(e)}function Og(e){return e===st.EQUALS||Dg(e)}var at;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(at||(at={}));var br;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(br||(br={}));class Mg{constructor(t,r,n){this.decodeTree=t,this.emitCodePoint=r,this.errors=n,this.state=at.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=br.Strict}startEntity(t){this.decodeMode=t,this.state=at.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,r){switch(this.state){case at.EntityStart:return t.charCodeAt(r)===st.NUM?(this.state=at.NumericStart,this.consumed+=1,this.stateNumericStart(t,r+1)):(this.state=at.NamedEntity,this.stateNamedEntity(t,r));case at.NumericStart:return this.stateNumericStart(t,r);case at.NumericDecimal:return this.stateNumericDecimal(t,r);case at.NumericHex:return this.stateNumericHex(t,r);case at.NamedEntity:return this.stateNamedEntity(t,r)}}stateNumericStart(t,r){return r>=t.length?-1:(t.charCodeAt(r)|Lg)===st.LOWER_X?(this.state=at.NumericHex,this.consumed+=1,this.stateNumericHex(t,r+1)):(this.state=at.NumericDecimal,this.stateNumericDecimal(t,r))}addToNumericResult(t,r,n,a){if(r!==n){const i=n-r;this.result=this.result*Math.pow(a,i)+Number.parseInt(t.substr(r,i),a),this.consumed+=i}}stateNumericHex(t,r){const n=r;for(;r<t.length;){const a=t.charCodeAt(r);if(eu(a)||Rg(a))r+=1;else return this.addToNumericResult(t,n,r,16),this.emitNumericEntity(a,3)}return this.addToNumericResult(t,n,r,16),-1}stateNumericDecimal(t,r){const n=r;for(;r<t.length;){const a=t.charCodeAt(r);if(eu(a))r+=1;else return this.addToNumericResult(t,n,r,10),this.emitNumericEntity(a,2)}return this.addToNumericResult(t,n,r,10),-1}emitNumericEntity(t,r){var n;if(this.consumed<=r)return(n=this.errors)===null||n===void 0||n.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===st.SEMI)this.consumed+=1;else if(this.decodeMode===br.Strict)return 0;return this.emitCodePoint(Ng(this.result),this.consumed),this.errors&&(t!==st.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,r){const{decodeTree:n}=this;let a=n[this.treeIndex],i=(a&Ur.VALUE_LENGTH)>>14;for(;r<t.length;r++,this.excess++){const s=t.charCodeAt(r);if(this.treeIndex=Pg(n,a,this.treeIndex+Math.max(1,i),s),this.treeIndex<0)return this.result===0||this.decodeMode===br.Attribute&&(i===0||Og(s))?0:this.emitNotTerminatedNamedEntity();if(a=n[this.treeIndex],i=(a&Ur.VALUE_LENGTH)>>14,i!==0){if(s===st.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==br.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:r,decodeTree:n}=this,a=(n[r]&Ur.VALUE_LENGTH)>>14;return this.emitNamedEntityData(r,a,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,r,n){const{decodeTree:a}=this;return this.emitCodePoint(r===1?a[t]&~Ur.VALUE_LENGTH:a[t+1],n),r===3&&this.emitCodePoint(a[t+2],n),n}end(){var t;switch(this.state){case at.NamedEntity:return this.result!==0&&(this.decodeMode!==br.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case at.NumericDecimal:return this.emitNumericEntity(0,2);case at.NumericHex:return this.emitNumericEntity(0,3);case at.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case at.EntityStart:return 0}}}function Pg(e,t,r,n){const a=(t&Ur.BRANCH_LENGTH)>>7,i=t&Ur.JUMP_TABLE;if(a===0)return i!==0&&n===i?r:-1;if(i){const l=n-i;return l<0||l>=a?-1:e[r+l]-1}let s=r,u=s+a-1;for(;s<=u;){const l=s+u>>>1,o=e[l];if(o<n)s=l+1;else if(o>n)u=l-1;else return e[l+a]}return-1}var W;(function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"})(W||(W={}));var gn;(function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"})(gn||(gn={}));var Rt;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(Rt||(Rt={}));var B;(function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SEARCH="search",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"})(B||(B={}));var d;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SEARCH=94]="SEARCH",e[e.SECTION=95]="SECTION",e[e.SELECT=96]="SELECT",e[e.SOURCE=97]="SOURCE",e[e.SMALL=98]="SMALL",e[e.SPAN=99]="SPAN",e[e.STRIKE=100]="STRIKE",e[e.STRONG=101]="STRONG",e[e.STYLE=102]="STYLE",e[e.SUB=103]="SUB",e[e.SUMMARY=104]="SUMMARY",e[e.SUP=105]="SUP",e[e.TABLE=106]="TABLE",e[e.TBODY=107]="TBODY",e[e.TEMPLATE=108]="TEMPLATE",e[e.TEXTAREA=109]="TEXTAREA",e[e.TFOOT=110]="TFOOT",e[e.TD=111]="TD",e[e.TH=112]="TH",e[e.THEAD=113]="THEAD",e[e.TITLE=114]="TITLE",e[e.TR=115]="TR",e[e.TRACK=116]="TRACK",e[e.TT=117]="TT",e[e.U=118]="U",e[e.UL=119]="UL",e[e.SVG=120]="SVG",e[e.VAR=121]="VAR",e[e.WBR=122]="WBR",e[e.XMP=123]="XMP"})(d||(d={}));const Bg=new Map([[B.A,d.A],[B.ADDRESS,d.ADDRESS],[B.ANNOTATION_XML,d.ANNOTATION_XML],[B.APPLET,d.APPLET],[B.AREA,d.AREA],[B.ARTICLE,d.ARTICLE],[B.ASIDE,d.ASIDE],[B.B,d.B],[B.BASE,d.BASE],[B.BASEFONT,d.BASEFONT],[B.BGSOUND,d.BGSOUND],[B.BIG,d.BIG],[B.BLOCKQUOTE,d.BLOCKQUOTE],[B.BODY,d.BODY],[B.BR,d.BR],[B.BUTTON,d.BUTTON],[B.CAPTION,d.CAPTION],[B.CENTER,d.CENTER],[B.CODE,d.CODE],[B.COL,d.COL],[B.COLGROUP,d.COLGROUP],[B.DD,d.DD],[B.DESC,d.DESC],[B.DETAILS,d.DETAILS],[B.DIALOG,d.DIALOG],[B.DIR,d.DIR],[B.DIV,d.DIV],[B.DL,d.DL],[B.DT,d.DT],[B.EM,d.EM],[B.EMBED,d.EMBED],[B.FIELDSET,d.FIELDSET],[B.FIGCAPTION,d.FIGCAPTION],[B.FIGURE,d.FIGURE],[B.FONT,d.FONT],[B.FOOTER,d.FOOTER],[B.FOREIGN_OBJECT,d.FOREIGN_OBJECT],[B.FORM,d.FORM],[B.FRAME,d.FRAME],[B.FRAMESET,d.FRAMESET],[B.H1,d.H1],[B.H2,d.H2],[B.H3,d.H3],[B.H4,d.H4],[B.H5,d.H5],[B.H6,d.H6],[B.HEAD,d.HEAD],[B.HEADER,d.HEADER],[B.HGROUP,d.HGROUP],[B.HR,d.HR],[B.HTML,d.HTML],[B.I,d.I],[B.IMG,d.IMG],[B.IMAGE,d.IMAGE],[B.INPUT,d.INPUT],[B.IFRAME,d.IFRAME],[B.KEYGEN,d.KEYGEN],[B.LABEL,d.LABEL],[B.LI,d.LI],[B.LINK,d.LINK],[B.LISTING,d.LISTING],[B.MAIN,d.MAIN],[B.MALIGNMARK,d.MALIGNMARK],[B.MARQUEE,d.MARQUEE],[B.MATH,d.MATH],[B.MENU,d.MENU],[B.META,d.META],[B.MGLYPH,d.MGLYPH],[B.MI,d.MI],[B.MO,d.MO],[B.MN,d.MN],[B.MS,d.MS],[B.MTEXT,d.MTEXT],[B.NAV,d.NAV],[B.NOBR,d.NOBR],[B.NOFRAMES,d.NOFRAMES],[B.NOEMBED,d.NOEMBED],[B.NOSCRIPT,d.NOSCRIPT],[B.OBJECT,d.OBJECT],[B.OL,d.OL],[B.OPTGROUP,d.OPTGROUP],[B.OPTION,d.OPTION],[B.P,d.P],[B.PARAM,d.PARAM],[B.PLAINTEXT,d.PLAINTEXT],[B.PRE,d.PRE],[B.RB,d.RB],[B.RP,d.RP],[B.RT,d.RT],[B.RTC,d.RTC],[B.RUBY,d.RUBY],[B.S,d.S],[B.SCRIPT,d.SCRIPT],[B.SEARCH,d.SEARCH],[B.SECTION,d.SECTION],[B.SELECT,d.SELECT],[B.SOURCE,d.SOURCE],[B.SMALL,d.SMALL],[B.SPAN,d.SPAN],[B.STRIKE,d.STRIKE],[B.STRONG,d.STRONG],[B.STYLE,d.STYLE],[B.SUB,d.SUB],[B.SUMMARY,d.SUMMARY],[B.SUP,d.SUP],[B.TABLE,d.TABLE],[B.TBODY,d.TBODY],[B.TEMPLATE,d.TEMPLATE],[B.TEXTAREA,d.TEXTAREA],[B.TFOOT,d.TFOOT],[B.TD,d.TD],[B.TH,d.TH],[B.THEAD,d.THEAD],[B.TITLE,d.TITLE],[B.TR,d.TR],[B.TRACK,d.TRACK],[B.TT,d.TT],[B.U,d.U],[B.UL,d.UL],[B.SVG,d.SVG],[B.VAR,d.VAR],[B.WBR,d.WBR],[B.XMP,d.XMP]]);function na(e){var t;return(t=Bg.get(e))!==null&&t!==void 0?t:d.UNKNOWN}const Z=d,Fg={[W.HTML]:new Set([Z.ADDRESS,Z.APPLET,Z.AREA,Z.ARTICLE,Z.ASIDE,Z.BASE,Z.BASEFONT,Z.BGSOUND,Z.BLOCKQUOTE,Z.BODY,Z.BR,Z.BUTTON,Z.CAPTION,Z.CENTER,Z.COL,Z.COLGROUP,Z.DD,Z.DETAILS,Z.DIR,Z.DIV,Z.DL,Z.DT,Z.EMBED,Z.FIELDSET,Z.FIGCAPTION,Z.FIGURE,Z.FOOTER,Z.FORM,Z.FRAME,Z.FRAMESET,Z.H1,Z.H2,Z.H3,Z.H4,Z.H5,Z.H6,Z.HEAD,Z.HEADER,Z.HGROUP,Z.HR,Z.HTML,Z.IFRAME,Z.IMG,Z.INPUT,Z.LI,Z.LINK,Z.LISTING,Z.MAIN,Z.MARQUEE,Z.MENU,Z.META,Z.NAV,Z.NOEMBED,Z.NOFRAMES,Z.NOSCRIPT,Z.OBJECT,Z.OL,Z.P,Z.PARAM,Z.PLAINTEXT,Z.PRE,Z.SCRIPT,Z.SECTION,Z.SELECT,Z.SOURCE,Z.STYLE,Z.SUMMARY,Z.TABLE,Z.TBODY,Z.TD,Z.TEMPLATE,Z.TEXTAREA,Z.TFOOT,Z.TH,Z.THEAD,Z.TITLE,Z.TR,Z.TRACK,Z.UL,Z.WBR,Z.XMP]),[W.MATHML]:new Set([Z.MI,Z.MO,Z.MN,Z.MS,Z.MTEXT,Z.ANNOTATION_XML]),[W.SVG]:new Set([Z.TITLE,Z.FOREIGN_OBJECT,Z.DESC]),[W.XLINK]:new Set,[W.XML]:new Set,[W.XMLNS]:new Set},tu=new Set([Z.H1,Z.H2,Z.H3,Z.H4,Z.H5,Z.H6]);B.STYLE,B.SCRIPT,B.XMP,B.IFRAME,B.NOEMBED,B.NOFRAMES,B.PLAINTEXT;var A;(function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(A||(A={}));const Ye={DATA:A.DATA,RCDATA:A.RCDATA,RAWTEXT:A.RAWTEXT,SCRIPT_DATA:A.SCRIPT_DATA,PLAINTEXT:A.PLAINTEXT,CDATA_SECTION:A.CDATA_SECTION};function Hg(e){return e>=v.DIGIT_0&&e<=v.DIGIT_9}function va(e){return e>=v.LATIN_CAPITAL_A&&e<=v.LATIN_CAPITAL_Z}function zg(e){return e>=v.LATIN_SMALL_A&&e<=v.LATIN_SMALL_Z}function Or(e){return zg(e)||va(e)}function dc(e){return Or(e)||Hg(e)}function xi(e){return e+32}function Qd(e){return e===v.SPACE||e===v.LINE_FEED||e===v.TABULATION||e===v.FORM_FEED}function fc(e){return Qd(e)||e===v.SOLIDUS||e===v.GREATER_THAN_SIGN}function $g(e){return e===v.NULL?$.nullCharacterReference:e>1114111?$.characterReferenceOutsideUnicodeRange:Vd(e)?$.surrogateCharacterReference:Wd(e)?$.noncharacterCharacterReference:Yd(e)||e===v.CARRIAGE_RETURN?$.controlCharacterReference:null}class Ug{constructor(t,r){this.options=t,this.handler=r,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=A.DATA,this.returnState=A.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new Sg(r),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new Mg(Ig,(n,a)=>{this.preprocessor.pos=this.entityStartPos+a-1,this._flushCodePointConsumedAsCharacterReference(n)},r.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err($.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:n=>{this._err($.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+n)},validateNumericCharacterReference:n=>{const a=$g(n);a&&this._err(a,1)}}:void 0)}_err(t,r=0){var n,a;(a=(n=this.handler).onParseError)===null||a===void 0||a.call(n,this.preprocessor.getError(t,r))}getCurrentLocation(t){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-t,startOffset:this.preprocessor.offset-t,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this._callState(t)}this.inLoop=!1}}pause(){this.paused=!0}resume(t){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||t==null||t())}write(t,r,n){this.active=!0,this.preprocessor.write(t,r),this._runParsingLoop(),this.paused||n==null||n()}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(t){this.consumedAfterSnapshot+=t;for(let r=0;r<t;r++)this.preprocessor.advance()}_consumeSequenceIfMatch(t,r){return this.preprocessor.startsWith(t,r)?(this._advanceBy(t.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:ye.START_TAG,tagName:"",tagID:d.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:ye.END_TAG,tagName:"",tagID:d.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:ye.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:ye.DOCTYPE,name:t,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(t,r){this.currentCharacterToken={type:t,chars:r,location:this.currentLocation}}_createAttr(t){this.currentAttr={name:t,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var t,r;const n=this.currentToken;if(Xd(n,this.currentAttr.name)===null){if(n.attrs.push(this.currentAttr),n.location&&this.currentLocation){const a=(t=(r=n.location).attrs)!==null&&t!==void 0?t:r.attrs=Object.create(null);a[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err($.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(t){this._emitCurrentCharacterToken(t.location),this.currentToken=null,t.location&&(t.location.endLine=this.preprocessor.line,t.location.endCol=this.preprocessor.col+1,t.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const t=this.currentToken;this.prepareToken(t),t.tagID=na(t.tagName),t.type===ye.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err($.endTagWithAttributes),t.selfClosing&&this._err($.endTagWithTrailingSolidus),this.handler.onEndTag(t)),this.preprocessor.dropParsedChunk()}emitCurrentComment(t){this.prepareToken(t),this.handler.onComment(t),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(t){this.prepareToken(t),this.handler.onDoctype(t),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(t){if(this.currentCharacterToken){switch(t&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=t.startLine,this.currentCharacterToken.location.endCol=t.startCol,this.currentCharacterToken.location.endOffset=t.startOffset),this.currentCharacterToken.type){case ye.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case ye.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case ye.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const t=this.getCurrentLocation(0);t&&(t.endLine=t.startLine,t.endCol=t.startCol,t.endOffset=t.startOffset),this._emitCurrentCharacterToken(t),this.handler.onEof({type:ye.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,r){if(this.currentCharacterToken)if(this.currentCharacterToken.type===t){this.currentCharacterToken.chars+=r;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(t,r)}_emitCodePoint(t){const r=Qd(t)?ye.WHITESPACE_CHARACTER:t===v.NULL?ye.NULL_CHARACTER:ye.CHARACTER;this._appendCharToCurrentCharacterToken(r,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(ye.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=A.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?br.Attribute:br.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===A.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===A.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===A.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case A.DATA:{this._stateData(t);break}case A.RCDATA:{this._stateRcdata(t);break}case A.RAWTEXT:{this._stateRawtext(t);break}case A.SCRIPT_DATA:{this._stateScriptData(t);break}case A.PLAINTEXT:{this._statePlaintext(t);break}case A.TAG_OPEN:{this._stateTagOpen(t);break}case A.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case A.TAG_NAME:{this._stateTagName(t);break}case A.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case A.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case A.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case A.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case A.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case A.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case A.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case A.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case A.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case A.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case A.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case A.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case A.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case A.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case A.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case A.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case A.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case A.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case A.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case A.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case A.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case A.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case A.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case A.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case A.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case A.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case A.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case A.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case A.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case A.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case A.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case A.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case A.BOGUS_COMMENT:{this._stateBogusComment(t);break}case A.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case A.COMMENT_START:{this._stateCommentStart(t);break}case A.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case A.COMMENT:{this._stateComment(t);break}case A.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case A.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case A.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case A.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case A.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case A.COMMENT_END:{this._stateCommentEnd(t);break}case A.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case A.DOCTYPE:{this._stateDoctype(t);break}case A.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case A.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case A.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case A.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case A.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case A.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case A.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case A.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case A.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case A.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case A.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case A.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case A.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case A.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case A.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case A.CDATA_SECTION:{this._stateCdataSection(t);break}case A.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case A.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case A.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case A.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case v.LESS_THAN_SIGN:{this.state=A.TAG_OPEN;break}case v.AMPERSAND:{this._startCharacterReference();break}case v.NULL:{this._err($.unexpectedNullCharacter),this._emitCodePoint(t);break}case v.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case v.AMPERSAND:{this._startCharacterReference();break}case v.LESS_THAN_SIGN:{this.state=A.RCDATA_LESS_THAN_SIGN;break}case v.NULL:{this._err($.unexpectedNullCharacter),this._emitChars(Be);break}case v.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case v.LESS_THAN_SIGN:{this.state=A.RAWTEXT_LESS_THAN_SIGN;break}case v.NULL:{this._err($.unexpectedNullCharacter),this._emitChars(Be);break}case v.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case v.LESS_THAN_SIGN:{this.state=A.SCRIPT_DATA_LESS_THAN_SIGN;break}case v.NULL:{this._err($.unexpectedNullCharacter),this._emitChars(Be);break}case v.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case v.NULL:{this._err($.unexpectedNullCharacter),this._emitChars(Be);break}case v.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(Or(t))this._createStartTagToken(),this.state=A.TAG_NAME,this._stateTagName(t);else switch(t){case v.EXCLAMATION_MARK:{this.state=A.MARKUP_DECLARATION_OPEN;break}case v.SOLIDUS:{this.state=A.END_TAG_OPEN;break}case v.QUESTION_MARK:{this._err($.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=A.BOGUS_COMMENT,this._stateBogusComment(t);break}case v.EOF:{this._err($.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err($.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=A.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(Or(t))this._createEndTagToken(),this.state=A.TAG_NAME,this._stateTagName(t);else switch(t){case v.GREATER_THAN_SIGN:{this._err($.missingEndTagName),this.state=A.DATA;break}case v.EOF:{this._err($.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err($.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=A.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){const r=this.currentToken;switch(t){case v.SPACE:case v.LINE_FEED:case v.TABULATION:case v.FORM_FEED:{this.state=A.BEFORE_ATTRIBUTE_NAME;break}case v.SOLIDUS:{this.state=A.SELF_CLOSING_START_TAG;break}case v.GREATER_THAN_SIGN:{this.state=A.DATA,this.emitCurrentTagToken();break}case v.NULL:{this._err($.unexpectedNullCharacter),r.tagName+=Be;break}case v.EOF:{this._err($.eofInTag),this._emitEOFToken();break}default:r.tagName+=String.fromCodePoint(va(t)?xi(t):t)}}_stateRcdataLessThanSign(t){t===v.SOLIDUS?this.state=A.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=A.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){Or(t)?(this.state=A.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=A.RCDATA,this._stateRcdata(t))}handleSpecialEndTag(t){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const r=this.currentToken;switch(r.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case v.SPACE:case v.LINE_FEED:case v.TABULATION:case v.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=A.BEFORE_ATTRIBUTE_NAME,!1;case v.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=A.SELF_CLOSING_START_TAG,!1;case v.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=A.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=A.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===v.SOLIDUS?this.state=A.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=A.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){Or(t)?(this.state=A.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=A.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=A.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case v.SOLIDUS:{this.state=A.SCRIPT_DATA_END_TAG_OPEN;break}case v.EXCLAMATION_MARK:{this.state=A.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=A.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){Or(t)?(this.state=A.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=A.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=A.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===v.HYPHEN_MINUS?(this.state=A.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=A.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===v.HYPHEN_MINUS?(this.state=A.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=A.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case v.HYPHEN_MINUS:{this.state=A.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case v.LESS_THAN_SIGN:{this.state=A.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case v.NULL:{this._err($.unexpectedNullCharacter),this._emitChars(Be);break}case v.EOF:{this._err($.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case v.HYPHEN_MINUS:{this.state=A.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case v.LESS_THAN_SIGN:{this.state=A.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case v.NULL:{this._err($.unexpectedNullCharacter),this.state=A.SCRIPT_DATA_ESCAPED,this._emitChars(Be);break}case v.EOF:{this._err($.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=A.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case v.HYPHEN_MINUS:{this._emitChars("-");break}case v.LESS_THAN_SIGN:{this.state=A.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case v.GREATER_THAN_SIGN:{this.state=A.SCRIPT_DATA,this._emitChars(">");break}case v.NULL:{this._err($.unexpectedNullCharacter),this.state=A.SCRIPT_DATA_ESCAPED,this._emitChars(Be);break}case v.EOF:{this._err($.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=A.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===v.SOLIDUS?this.state=A.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:Or(t)?(this._emitChars("<"),this.state=A.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=A.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){Or(t)?(this.state=A.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=A.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=A.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(Tt.SCRIPT,!1)&&fc(this.preprocessor.peek(Tt.SCRIPT.length))){this._emitCodePoint(t);for(let r=0;r<Tt.SCRIPT.length;r++)this._emitCodePoint(this._consume());this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=A.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case v.HYPHEN_MINUS:{this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case v.LESS_THAN_SIGN:{this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case v.NULL:{this._err($.unexpectedNullCharacter),this._emitChars(Be);break}case v.EOF:{this._err($.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case v.HYPHEN_MINUS:{this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case v.LESS_THAN_SIGN:{this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case v.NULL:{this._err($.unexpectedNullCharacter),this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Be);break}case v.EOF:{this._err($.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case v.HYPHEN_MINUS:{this._emitChars("-");break}case v.LESS_THAN_SIGN:{this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case v.GREATER_THAN_SIGN:{this.state=A.SCRIPT_DATA,this._emitChars(">");break}case v.NULL:{this._err($.unexpectedNullCharacter),this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Be);break}case v.EOF:{this._err($.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===v.SOLIDUS?(this.state=A.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(Tt.SCRIPT,!1)&&fc(this.preprocessor.peek(Tt.SCRIPT.length))){this._emitCodePoint(t);for(let r=0;r<Tt.SCRIPT.length;r++)this._emitCodePoint(this._consume());this.state=A.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case v.SPACE:case v.LINE_FEED:case v.TABULATION:case v.FORM_FEED:break;case v.SOLIDUS:case v.GREATER_THAN_SIGN:case v.EOF:{this.state=A.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case v.EQUALS_SIGN:{this._err($.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=A.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=A.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case v.SPACE:case v.LINE_FEED:case v.TABULATION:case v.FORM_FEED:case v.SOLIDUS:case v.GREATER_THAN_SIGN:case v.EOF:{this._leaveAttrName(),this.state=A.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case v.EQUALS_SIGN:{this._leaveAttrName(),this.state=A.BEFORE_ATTRIBUTE_VALUE;break}case v.QUOTATION_MARK:case v.APOSTROPHE:case v.LESS_THAN_SIGN:{this._err($.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case v.NULL:{this._err($.unexpectedNullCharacter),this.currentAttr.name+=Be;break}default:this.currentAttr.name+=String.fromCodePoint(va(t)?xi(t):t)}}_stateAfterAttributeName(t){switch(t){case v.SPACE:case v.LINE_FEED:case v.TABULATION:case v.FORM_FEED:break;case v.SOLIDUS:{this.state=A.SELF_CLOSING_START_TAG;break}case v.EQUALS_SIGN:{this.state=A.BEFORE_ATTRIBUTE_VALUE;break}case v.GREATER_THAN_SIGN:{this.state=A.DATA,this.emitCurrentTagToken();break}case v.EOF:{this._err($.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=A.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case v.SPACE:case v.LINE_FEED:case v.TABULATION:case v.FORM_FEED:break;case v.QUOTATION_MARK:{this.state=A.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case v.APOSTROPHE:{this.state=A.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case v.GREATER_THAN_SIGN:{this._err($.missingAttributeValue),this.state=A.DATA,this.emitCurrentTagToken();break}default:this.state=A.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case v.QUOTATION_MARK:{this.state=A.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case v.AMPERSAND:{this._startCharacterReference();break}case v.NULL:{this._err($.unexpectedNullCharacter),this.currentAttr.value+=Be;break}case v.EOF:{this._err($.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case v.APOSTROPHE:{this.state=A.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case v.AMPERSAND:{this._startCharacterReference();break}case v.NULL:{this._err($.unexpectedNullCharacter),this.currentAttr.value+=Be;break}case v.EOF:{this._err($.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case v.SPACE:case v.LINE_FEED:case v.TABULATION:case v.FORM_FEED:{this._leaveAttrValue(),this.state=A.BEFORE_ATTRIBUTE_NAME;break}case v.AMPERSAND:{this._startCharacterReference();break}case v.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=A.DATA,this.emitCurrentTagToken();break}case v.NULL:{this._err($.unexpectedNullCharacter),this.currentAttr.value+=Be;break}case v.QUOTATION_MARK:case v.APOSTROPHE:case v.LESS_THAN_SIGN:case v.EQUALS_SIGN:case v.GRAVE_ACCENT:{this._err($.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case v.EOF:{this._err($.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case v.SPACE:case v.LINE_FEED:case v.TABULATION:case v.FORM_FEED:{this._leaveAttrValue(),this.state=A.BEFORE_ATTRIBUTE_NAME;break}case v.SOLIDUS:{this._leaveAttrValue(),this.state=A.SELF_CLOSING_START_TAG;break}case v.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=A.DATA,this.emitCurrentTagToken();break}case v.EOF:{this._err($.eofInTag),this._emitEOFToken();break}default:this._err($.missingWhitespaceBetweenAttributes),this.state=A.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case v.GREATER_THAN_SIGN:{const r=this.currentToken;r.selfClosing=!0,this.state=A.DATA,this.emitCurrentTagToken();break}case v.EOF:{this._err($.eofInTag),this._emitEOFToken();break}default:this._err($.unexpectedSolidusInTag),this.state=A.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){const r=this.currentToken;switch(t){case v.GREATER_THAN_SIGN:{this.state=A.DATA,this.emitCurrentComment(r);break}case v.EOF:{this.emitCurrentComment(r),this._emitEOFToken();break}case v.NULL:{this._err($.unexpectedNullCharacter),r.data+=Be;break}default:r.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(Tt.DASH_DASH,!0)?(this._createCommentToken(Tt.DASH_DASH.length+1),this.state=A.COMMENT_START):this._consumeSequenceIfMatch(Tt.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(Tt.DOCTYPE.length+1),this.state=A.DOCTYPE):this._consumeSequenceIfMatch(Tt.CDATA_START,!0)?this.inForeignNode?this.state=A.CDATA_SECTION:(this._err($.cdataInHtmlContent),this._createCommentToken(Tt.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=A.BOGUS_COMMENT):this._ensureHibernation()||(this._err($.incorrectlyOpenedComment),this._createCommentToken(2),this.state=A.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case v.HYPHEN_MINUS:{this.state=A.COMMENT_START_DASH;break}case v.GREATER_THAN_SIGN:{this._err($.abruptClosingOfEmptyComment),this.state=A.DATA;const r=this.currentToken;this.emitCurrentComment(r);break}default:this.state=A.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){const r=this.currentToken;switch(t){case v.HYPHEN_MINUS:{this.state=A.COMMENT_END;break}case v.GREATER_THAN_SIGN:{this._err($.abruptClosingOfEmptyComment),this.state=A.DATA,this.emitCurrentComment(r);break}case v.EOF:{this._err($.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+="-",this.state=A.COMMENT,this._stateComment(t)}}_stateComment(t){const r=this.currentToken;switch(t){case v.HYPHEN_MINUS:{this.state=A.COMMENT_END_DASH;break}case v.LESS_THAN_SIGN:{r.data+="<",this.state=A.COMMENT_LESS_THAN_SIGN;break}case v.NULL:{this._err($.unexpectedNullCharacter),r.data+=Be;break}case v.EOF:{this._err($.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){const r=this.currentToken;switch(t){case v.EXCLAMATION_MARK:{r.data+="!",this.state=A.COMMENT_LESS_THAN_SIGN_BANG;break}case v.LESS_THAN_SIGN:{r.data+="<";break}default:this.state=A.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===v.HYPHEN_MINUS?this.state=A.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=A.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===v.HYPHEN_MINUS?this.state=A.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=A.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==v.GREATER_THAN_SIGN&&t!==v.EOF&&this._err($.nestedComment),this.state=A.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const r=this.currentToken;switch(t){case v.HYPHEN_MINUS:{this.state=A.COMMENT_END;break}case v.EOF:{this._err($.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+="-",this.state=A.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){const r=this.currentToken;switch(t){case v.GREATER_THAN_SIGN:{this.state=A.DATA,this.emitCurrentComment(r);break}case v.EXCLAMATION_MARK:{this.state=A.COMMENT_END_BANG;break}case v.HYPHEN_MINUS:{r.data+="-";break}case v.EOF:{this._err($.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+="--",this.state=A.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){const r=this.currentToken;switch(t){case v.HYPHEN_MINUS:{r.data+="--!",this.state=A.COMMENT_END_DASH;break}case v.GREATER_THAN_SIGN:{this._err($.incorrectlyClosedComment),this.state=A.DATA,this.emitCurrentComment(r);break}case v.EOF:{this._err($.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+="--!",this.state=A.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case v.SPACE:case v.LINE_FEED:case v.TABULATION:case v.FORM_FEED:{this.state=A.BEFORE_DOCTYPE_NAME;break}case v.GREATER_THAN_SIGN:{this.state=A.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case v.EOF:{this._err($.eofInDoctype),this._createDoctypeToken(null);const r=this.currentToken;r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err($.missingWhitespaceBeforeDoctypeName),this.state=A.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(va(t))this._createDoctypeToken(String.fromCharCode(xi(t))),this.state=A.DOCTYPE_NAME;else switch(t){case v.SPACE:case v.LINE_FEED:case v.TABULATION:case v.FORM_FEED:break;case v.NULL:{this._err($.unexpectedNullCharacter),this._createDoctypeToken(Be),this.state=A.DOCTYPE_NAME;break}case v.GREATER_THAN_SIGN:{this._err($.missingDoctypeName),this._createDoctypeToken(null);const r=this.currentToken;r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=A.DATA;break}case v.EOF:{this._err($.eofInDoctype),this._createDoctypeToken(null);const r=this.currentToken;r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(t)),this.state=A.DOCTYPE_NAME}}_stateDoctypeName(t){const r=this.currentToken;switch(t){case v.SPACE:case v.LINE_FEED:case v.TABULATION:case v.FORM_FEED:{this.state=A.AFTER_DOCTYPE_NAME;break}case v.GREATER_THAN_SIGN:{this.state=A.DATA,this.emitCurrentDoctype(r);break}case v.NULL:{this._err($.unexpectedNullCharacter),r.name+=Be;break}case v.EOF:{this._err($.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.name+=String.fromCodePoint(va(t)?xi(t):t)}}_stateAfterDoctypeName(t){const r=this.currentToken;switch(t){case v.SPACE:case v.LINE_FEED:case v.TABULATION:case v.FORM_FEED:break;case v.GREATER_THAN_SIGN:{this.state=A.DATA,this.emitCurrentDoctype(r);break}case v.EOF:{this._err($.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(Tt.PUBLIC,!1)?this.state=A.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(Tt.SYSTEM,!1)?this.state=A.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err($.invalidCharacterSequenceAfterDoctypeName),r.forceQuirks=!0,this.state=A.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){const r=this.currentToken;switch(t){case v.SPACE:case v.LINE_FEED:case v.TABULATION:case v.FORM_FEED:{this.state=A.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case v.QUOTATION_MARK:{this._err($.missingWhitespaceAfterDoctypePublicKeyword),r.publicId="",this.state=A.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case v.APOSTROPHE:{this._err($.missingWhitespaceAfterDoctypePublicKeyword),r.publicId="",this.state=A.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case v.GREATER_THAN_SIGN:{this._err($.missingDoctypePublicIdentifier),r.forceQuirks=!0,this.state=A.DATA,this.emitCurrentDoctype(r);break}case v.EOF:{this._err($.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err($.missingQuoteBeforeDoctypePublicIdentifier),r.forceQuirks=!0,this.state=A.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){const r=this.currentToken;switch(t){case v.SPACE:case v.LINE_FEED:case v.TABULATION:case v.FORM_FEED:break;case v.QUOTATION_MARK:{r.publicId="",this.state=A.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case v.APOSTROPHE:{r.publicId="",this.state=A.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case v.GREATER_THAN_SIGN:{this._err($.missingDoctypePublicIdentifier),r.forceQuirks=!0,this.state=A.DATA,this.emitCurrentDoctype(r);break}case v.EOF:{this._err($.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err($.missingQuoteBeforeDoctypePublicIdentifier),r.forceQuirks=!0,this.state=A.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){const r=this.currentToken;switch(t){case v.QUOTATION_MARK:{this.state=A.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case v.NULL:{this._err($.unexpectedNullCharacter),r.publicId+=Be;break}case v.GREATER_THAN_SIGN:{this._err($.abruptDoctypePublicIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=A.DATA;break}case v.EOF:{this._err($.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.publicId+=String.fromCodePoint(t)}}_stateDoctypePublicIdentifierSingleQuoted(t){const r=this.currentToken;switch(t){case v.APOSTROPHE:{this.state=A.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case v.NULL:{this._err($.unexpectedNullCharacter),r.publicId+=Be;break}case v.GREATER_THAN_SIGN:{this._err($.abruptDoctypePublicIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=A.DATA;break}case v.EOF:{this._err($.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.publicId+=String.fromCodePoint(t)}}_stateAfterDoctypePublicIdentifier(t){const r=this.currentToken;switch(t){case v.SPACE:case v.LINE_FEED:case v.TABULATION:case v.FORM_FEED:{this.state=A.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case v.GREATER_THAN_SIGN:{this.state=A.DATA,this.emitCurrentDoctype(r);break}case v.QUOTATION_MARK:{this._err($.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),r.systemId="",this.state=A.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case v.APOSTROPHE:{this._err($.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),r.systemId="",this.state=A.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case v.EOF:{this._err($.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err($.missingQuoteBeforeDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=A.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){const r=this.currentToken;switch(t){case v.SPACE:case v.LINE_FEED:case v.TABULATION:case v.FORM_FEED:break;case v.GREATER_THAN_SIGN:{this.emitCurrentDoctype(r),this.state=A.DATA;break}case v.QUOTATION_MARK:{r.systemId="",this.state=A.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case v.APOSTROPHE:{r.systemId="",this.state=A.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case v.EOF:{this._err($.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err($.missingQuoteBeforeDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=A.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){const r=this.currentToken;switch(t){case v.SPACE:case v.LINE_FEED:case v.TABULATION:case v.FORM_FEED:{this.state=A.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case v.QUOTATION_MARK:{this._err($.missingWhitespaceAfterDoctypeSystemKeyword),r.systemId="",this.state=A.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case v.APOSTROPHE:{this._err($.missingWhitespaceAfterDoctypeSystemKeyword),r.systemId="",this.state=A.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case v.GREATER_THAN_SIGN:{this._err($.missingDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=A.DATA,this.emitCurrentDoctype(r);break}case v.EOF:{this._err($.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err($.missingQuoteBeforeDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=A.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){const r=this.currentToken;switch(t){case v.SPACE:case v.LINE_FEED:case v.TABULATION:case v.FORM_FEED:break;case v.QUOTATION_MARK:{r.systemId="",this.state=A.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case v.APOSTROPHE:{r.systemId="",this.state=A.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case v.GREATER_THAN_SIGN:{this._err($.missingDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=A.DATA,this.emitCurrentDoctype(r);break}case v.EOF:{this._err($.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err($.missingQuoteBeforeDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=A.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){const r=this.currentToken;switch(t){case v.QUOTATION_MARK:{this.state=A.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case v.NULL:{this._err($.unexpectedNullCharacter),r.systemId+=Be;break}case v.GREATER_THAN_SIGN:{this._err($.abruptDoctypeSystemIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=A.DATA;break}case v.EOF:{this._err($.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.systemId+=String.fromCodePoint(t)}}_stateDoctypeSystemIdentifierSingleQuoted(t){const r=this.currentToken;switch(t){case v.APOSTROPHE:{this.state=A.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case v.NULL:{this._err($.unexpectedNullCharacter),r.systemId+=Be;break}case v.GREATER_THAN_SIGN:{this._err($.abruptDoctypeSystemIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=A.DATA;break}case v.EOF:{this._err($.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.systemId+=String.fromCodePoint(t)}}_stateAfterDoctypeSystemIdentifier(t){const r=this.currentToken;switch(t){case v.SPACE:case v.LINE_FEED:case v.TABULATION:case v.FORM_FEED:break;case v.GREATER_THAN_SIGN:{this.emitCurrentDoctype(r),this.state=A.DATA;break}case v.EOF:{this._err($.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err($.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=A.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){const r=this.currentToken;switch(t){case v.GREATER_THAN_SIGN:{this.emitCurrentDoctype(r),this.state=A.DATA;break}case v.NULL:{this._err($.unexpectedNullCharacter);break}case v.EOF:{this.emitCurrentDoctype(r),this._emitEOFToken();break}}}_stateCdataSection(t){switch(t){case v.RIGHT_SQUARE_BRACKET:{this.state=A.CDATA_SECTION_BRACKET;break}case v.EOF:{this._err($.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===v.RIGHT_SQUARE_BRACKET?this.state=A.CDATA_SECTION_END:(this._emitChars("]"),this.state=A.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case v.GREATER_THAN_SIGN:{this.state=A.DATA;break}case v.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=A.CDATA_SECTION,this._stateCdataSection(t)}}_stateCharacterReference(){let t=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(t<0)if(this.preprocessor.lastChunkWritten)t=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}t===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(v.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&dc(this.preprocessor.peek(1))?A.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){dc(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===v.SEMICOLON&&this._err($.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}}const Kd=new Set([d.DD,d.DT,d.LI,d.OPTGROUP,d.OPTION,d.P,d.RB,d.RP,d.RT,d.RTC]),mc=new Set([...Kd,d.CAPTION,d.COLGROUP,d.TBODY,d.TD,d.TFOOT,d.TH,d.THEAD,d.TR]),ji=new Set([d.APPLET,d.CAPTION,d.HTML,d.MARQUEE,d.OBJECT,d.TABLE,d.TD,d.TEMPLATE,d.TH]),qg=new Set([...ji,d.OL,d.UL]),jg=new Set([...ji,d.BUTTON]),pc=new Set([d.ANNOTATION_XML,d.MI,d.MN,d.MO,d.MS,d.MTEXT]),gc=new Set([d.DESC,d.FOREIGN_OBJECT,d.TITLE]),Gg=new Set([d.TR,d.TEMPLATE,d.HTML]),Vg=new Set([d.TBODY,d.TFOOT,d.THEAD,d.TEMPLATE,d.HTML]),Yg=new Set([d.TABLE,d.TEMPLATE,d.HTML]),Wg=new Set([d.TD,d.TH]);class Xg{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(t,r,n){this.treeAdapter=r,this.handler=n,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=d.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===d.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===W.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(t,r){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=r,this.currentTagId=r,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,r,!0)}pop(){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,r){const n=this._indexOf(t);this.items[n]=r,n===this.stackTop&&(this.current=r)}insertAfter(t,r,n){const a=this._indexOf(t)+1;this.items.splice(a,0,r),this.tagIDs.splice(a,0,n),this.stackTop++,a===this.stackTop&&this._updateCurrentElement(),this.current&&this.currentTagId!==void 0&&this.handler.onItemPush(this.current,this.currentTagId,a===this.stackTop)}popUntilTagNamePopped(t){let r=this.stackTop+1;do r=this.tagIDs.lastIndexOf(t,r-1);while(r>0&&this.treeAdapter.getNamespaceURI(this.items[r])!==W.HTML);this.shortenToLength(Math.max(r,0))}shortenToLength(t){for(;this.stackTop>=t;){const r=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(r,this.stackTop<t)}}popUntilElementPopped(t){const r=this._indexOf(t);this.shortenToLength(Math.max(r,0))}popUntilPopped(t,r){const n=this._indexOfTagNames(t,r);this.shortenToLength(Math.max(n,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(tu,W.HTML)}popUntilTableCellPopped(){this.popUntilPopped(Wg,W.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(t,r){for(let n=this.stackTop;n>=0;n--)if(t.has(this.tagIDs[n])&&this.treeAdapter.getNamespaceURI(this.items[n])===r)return n;return-1}clearBackTo(t,r){const n=this._indexOfTagNames(t,r);this.shortenToLength(n+1)}clearBackToTableContext(){this.clearBackTo(Yg,W.HTML)}clearBackToTableBodyContext(){this.clearBackTo(Vg,W.HTML)}clearBackToTableRowContext(){this.clearBackTo(Gg,W.HTML)}remove(t){const r=this._indexOf(t);r>=0&&(r===this.stackTop?this.pop():(this.items.splice(r,1),this.tagIDs.splice(r,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===d.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){const r=this._indexOf(t)-1;return r>=0?this.items[r]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===d.HTML}hasInDynamicScope(t,r){for(let n=this.stackTop;n>=0;n--){const a=this.tagIDs[n];switch(this.treeAdapter.getNamespaceURI(this.items[n])){case W.HTML:{if(a===t)return!0;if(r.has(a))return!1;break}case W.SVG:{if(gc.has(a))return!1;break}case W.MATHML:{if(pc.has(a))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,ji)}hasInListItemScope(t){return this.hasInDynamicScope(t,qg)}hasInButtonScope(t){return this.hasInDynamicScope(t,jg)}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const r=this.tagIDs[t];switch(this.treeAdapter.getNamespaceURI(this.items[t])){case W.HTML:{if(tu.has(r))return!0;if(ji.has(r))return!1;break}case W.SVG:{if(gc.has(r))return!1;break}case W.MATHML:{if(pc.has(r))return!1;break}}}return!0}hasInTableScope(t){for(let r=this.stackTop;r>=0;r--)if(this.treeAdapter.getNamespaceURI(this.items[r])===W.HTML)switch(this.tagIDs[r]){case t:return!0;case d.TABLE:case d.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===W.HTML)switch(this.tagIDs[t]){case d.TBODY:case d.THEAD:case d.TFOOT:return!0;case d.TABLE:case d.HTML:return!1}return!0}hasInSelectScope(t){for(let r=this.stackTop;r>=0;r--)if(this.treeAdapter.getNamespaceURI(this.items[r])===W.HTML)switch(this.tagIDs[r]){case t:return!0;case d.OPTION:case d.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&Kd.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&mc.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==void 0&&this.currentTagId!==t&&mc.has(this.currentTagId);)this.pop()}}const t0=3;var Jt;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(Jt||(Jt={}));const bc={type:Jt.Marker};class Qg{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,r){const n=[],a=r.length,i=this.treeAdapter.getTagName(t),s=this.treeAdapter.getNamespaceURI(t);for(let u=0;u<this.entries.length;u++){const l=this.entries[u];if(l.type===Jt.Marker)break;const{element:o}=l;if(this.treeAdapter.getTagName(o)===i&&this.treeAdapter.getNamespaceURI(o)===s){const c=this.treeAdapter.getAttrList(o);c.length===a&&n.push({idx:u,attrs:c})}}return n}_ensureNoahArkCondition(t){if(this.entries.length<t0)return;const r=this.treeAdapter.getAttrList(t),n=this._getNoahArkConditionCandidates(t,r);if(n.length<t0)return;const a=new Map(r.map(s=>[s.name,s.value]));let i=0;for(let s=0;s<n.length;s++){const u=n[s];u.attrs.every(l=>a.get(l.name)===l.value)&&(i+=1,i>=t0&&this.entries.splice(u.idx,1))}}insertMarker(){this.entries.unshift(bc)}pushElement(t,r){this._ensureNoahArkCondition(t),this.entries.unshift({type:Jt.Element,element:t,token:r})}insertElementAfterBookmark(t,r){const n=this.entries.indexOf(this.bookmark);this.entries.splice(n,0,{type:Jt.Element,element:t,token:r})}removeEntry(t){const r=this.entries.indexOf(t);r!==-1&&this.entries.splice(r,1)}clearToLastMarker(){const t=this.entries.indexOf(bc);t===-1?this.entries.length=0:this.entries.splice(0,t+1)}getElementEntryInScopeWithTagName(t){const r=this.entries.find(n=>n.type===Jt.Marker||this.treeAdapter.getTagName(n.element)===t);return r&&r.type===Jt.Element?r:null}getElementEntry(t){return this.entries.find(r=>r.type===Jt.Element&&r.element===t)}}const Mr={createDocument(){return{nodeName:"#document",mode:Rt.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,r){return{nodeName:e,tagName:e,attrs:r,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},createTextNode(e){return{nodeName:"#text",value:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,r){const n=e.childNodes.indexOf(r);e.childNodes.splice(n,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,r,n){const a=e.childNodes.find(i=>i.nodeName==="#documentType");if(a)a.name=t,a.publicId=r,a.systemId=n;else{const i={nodeName:"#documentType",name:t,publicId:r,systemId:n,parentNode:null};Mr.appendChild(e,i)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const r=e.childNodes[e.childNodes.length-1];if(Mr.isTextNode(r)){r.value+=t;return}}Mr.appendChild(e,Mr.createTextNode(t))},insertTextBefore(e,t,r){const n=e.childNodes[e.childNodes.indexOf(r)-1];n&&Mr.isTextNode(n)?n.value+=t:Mr.insertBefore(e,Mr.createTextNode(t),r)},adoptAttributes(e,t){const r=new Set(e.attrs.map(n=>n.name));for(let n=0;n<t.length;n++)r.has(t[n].name)||e.attrs.push(t[n])},getFirstChild(e){return e.childNodes[0]},getChildNodes(e){return e.childNodes},getParentNode(e){return e.parentNode},getAttrList(e){return e.attrs},getTagName(e){return e.tagName},getNamespaceURI(e){return e.namespaceURI},getTextNodeContent(e){return e.value},getCommentNodeContent(e){return e.data},getDocumentTypeNodeName(e){return e.name},getDocumentTypeNodePublicId(e){return e.publicId},getDocumentTypeNodeSystemId(e){return e.systemId},isTextNode(e){return e.nodeName==="#text"},isCommentNode(e){return e.nodeName==="#comment"},isDocumentTypeNode(e){return e.nodeName==="#documentType"},isElementNode(e){return Object.prototype.hasOwnProperty.call(e,"tagName")},setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},Zd="html",Kg="about:legacy-compat",Zg="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",Jd=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],Jg=[...Jd,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],eb=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),ef=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],tb=[...ef,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function xc(e,t){return t.some(r=>e.startsWith(r))}function rb(e){return e.name===Zd&&e.publicId===null&&(e.systemId===null||e.systemId===Kg)}function nb(e){if(e.name!==Zd)return Rt.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===Zg)return Rt.QUIRKS;let{publicId:r}=e;if(r!==null){if(r=r.toLowerCase(),eb.has(r))return Rt.QUIRKS;let n=t===null?Jg:Jd;if(xc(r,n))return Rt.QUIRKS;if(n=t===null?ef:tb,xc(r,n))return Rt.LIMITED_QUIRKS}return Rt.NO_QUIRKS}const Ec={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},ab="definitionurl",ib="definitionURL",sb=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),ub=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:W.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:W.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:W.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:W.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:W.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:W.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:W.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:W.XML}],["xml:space",{prefix:"xml",name:"space",namespace:W.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:W.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:W.XMLNS}]]),lb=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),ob=new Set([d.B,d.BIG,d.BLOCKQUOTE,d.BODY,d.BR,d.CENTER,d.CODE,d.DD,d.DIV,d.DL,d.DT,d.EM,d.EMBED,d.H1,d.H2,d.H3,d.H4,d.H5,d.H6,d.HEAD,d.HR,d.I,d.IMG,d.LI,d.LISTING,d.MENU,d.META,d.NOBR,d.OL,d.P,d.PRE,d.RUBY,d.S,d.SMALL,d.SPAN,d.STRONG,d.STRIKE,d.SUB,d.SUP,d.TABLE,d.TT,d.U,d.UL,d.VAR]);function cb(e){const t=e.tagID;return t===d.FONT&&e.attrs.some(({name:n})=>n===gn.COLOR||n===gn.SIZE||n===gn.FACE)||ob.has(t)}function tf(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===ab){e.attrs[t].name=ib;break}}function rf(e){for(let t=0;t<e.attrs.length;t++){const r=sb.get(e.attrs[t].name);r!=null&&(e.attrs[t].name=r)}}function Qu(e){for(let t=0;t<e.attrs.length;t++){const r=ub.get(e.attrs[t].name);r&&(e.attrs[t].prefix=r.prefix,e.attrs[t].name=r.name,e.attrs[t].namespace=r.namespace)}}function hb(e){const t=lb.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=na(e.tagName))}function db(e,t){return t===W.MATHML&&(e===d.MI||e===d.MO||e===d.MN||e===d.MS||e===d.MTEXT)}function fb(e,t,r){if(t===W.MATHML&&e===d.ANNOTATION_XML){for(let n=0;n<r.length;n++)if(r[n].name===gn.ENCODING){const a=r[n].value.toLowerCase();return a===Ec.TEXT_HTML||a===Ec.APPLICATION_XML}}return t===W.SVG&&(e===d.FOREIGN_OBJECT||e===d.DESC||e===d.TITLE)}function mb(e,t,r,n){return(!n||n===W.HTML)&&fb(e,t,r)||(!n||n===W.MATHML)&&db(e,t)}const pb="hidden",gb=8,bb=3;var N;(function(e){e[e.INITIAL=0]="INITIAL",e[e.BEFORE_HTML=1]="BEFORE_HTML",e[e.BEFORE_HEAD=2]="BEFORE_HEAD",e[e.IN_HEAD=3]="IN_HEAD",e[e.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",e[e.AFTER_HEAD=5]="AFTER_HEAD",e[e.IN_BODY=6]="IN_BODY",e[e.TEXT=7]="TEXT",e[e.IN_TABLE=8]="IN_TABLE",e[e.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",e[e.IN_CAPTION=10]="IN_CAPTION",e[e.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",e[e.IN_TABLE_BODY=12]="IN_TABLE_BODY",e[e.IN_ROW=13]="IN_ROW",e[e.IN_CELL=14]="IN_CELL",e[e.IN_SELECT=15]="IN_SELECT",e[e.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",e[e.IN_TEMPLATE=17]="IN_TEMPLATE",e[e.AFTER_BODY=18]="AFTER_BODY",e[e.IN_FRAMESET=19]="IN_FRAMESET",e[e.AFTER_FRAMESET=20]="AFTER_FRAMESET",e[e.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",e[e.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(N||(N={}));const xb={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},nf=new Set([d.TABLE,d.TBODY,d.TFOOT,d.THEAD,d.TR]),yc={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:Mr,onParseError:null};class Tc{constructor(t,r,n=null,a=null){this.fragmentContext=n,this.scriptHandler=a,this.currentToken=null,this.stopped=!1,this.insertionMode=N.INITIAL,this.originalInsertionMode=N.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...yc,...t},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=r??this.treeAdapter.createDocument(),this.tokenizer=new Ug(this.options,this),this.activeFormattingElements=new Qg(this.treeAdapter),this.fragmentContextID=n?na(this.treeAdapter.getTagName(n)):d.UNKNOWN,this._setContextModes(n??this.document,this.fragmentContextID),this.openElements=new Xg(this.document,this.treeAdapter,this)}static parse(t,r){const n=new this(r);return n.tokenizer.write(t,!0),n.document}static getFragmentParser(t,r){const n={...yc,...r};t??(t=n.treeAdapter.createElement(B.TEMPLATE,W.HTML,[]));const a=n.treeAdapter.createElement("documentmock",W.HTML,[]),i=new this(n,a,t);return i.fragmentContextID===d.TEMPLATE&&i.tmplInsertionModeStack.unshift(N.IN_TEMPLATE),i._initTokenizerForFragmentParsing(),i._insertFakeRootElement(),i._resetInsertionMode(),i._findFormInFragmentContext(),i}getFragment(){const t=this.treeAdapter.getFirstChild(this.document),r=this.treeAdapter.createDocumentFragment();return this._adoptNodes(t,r),r}_err(t,r,n){var a;if(!this.onParseError)return;const i=(a=t.location)!==null&&a!==void 0?a:xb,s={code:r,startLine:i.startLine,startCol:i.startCol,startOffset:i.startOffset,endLine:n?i.startLine:i.endLine,endCol:n?i.startCol:i.endCol,endOffset:n?i.startOffset:i.endOffset};this.onParseError(s)}onItemPush(t,r,n){var a,i;(i=(a=this.treeAdapter).onItemPush)===null||i===void 0||i.call(a,t),n&&this.openElements.stackTop>0&&this._setContextModes(t,r)}onItemPop(t,r){var n,a;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(a=(n=this.treeAdapter).onItemPop)===null||a===void 0||a.call(n,t,this.openElements.current),r){let i,s;this.openElements.stackTop===0&&this.fragmentContext?(i=this.fragmentContext,s=this.fragmentContextID):{current:i,currentTagId:s}=this.openElements,this._setContextModes(i,s)}}_setContextModes(t,r){const n=t===this.document||t&&this.treeAdapter.getNamespaceURI(t)===W.HTML;this.currentNotInHTML=!n,this.tokenizer.inForeignNode=!n&&t!==void 0&&r!==void 0&&!this._isIntegrationPoint(r,t)}_switchToTextParsing(t,r){this._insertElement(t,W.HTML),this.tokenizer.state=r,this.originalInsertionMode=this.insertionMode,this.insertionMode=N.TEXT}switchToPlaintextParsing(){this.insertionMode=N.TEXT,this.originalInsertionMode=N.IN_BODY,this.tokenizer.state=Ye.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;for(;t;){if(this.treeAdapter.getTagName(t)===B.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==W.HTML))switch(this.fragmentContextID){case d.TITLE:case d.TEXTAREA:{this.tokenizer.state=Ye.RCDATA;break}case d.STYLE:case d.XMP:case d.IFRAME:case d.NOEMBED:case d.NOFRAMES:case d.NOSCRIPT:{this.tokenizer.state=Ye.RAWTEXT;break}case d.SCRIPT:{this.tokenizer.state=Ye.SCRIPT_DATA;break}case d.PLAINTEXT:{this.tokenizer.state=Ye.PLAINTEXT;break}}}_setDocumentType(t){const r=t.name||"",n=t.publicId||"",a=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,r,n,a),t.location){const s=this.treeAdapter.getChildNodes(this.document).find(u=>this.treeAdapter.isDocumentTypeNode(u));s&&this.treeAdapter.setNodeSourceCodeLocation(s,t.location)}}_attachElementToTree(t,r){if(this.options.sourceCodeLocationInfo){const n=r&&{...r,startTag:r};this.treeAdapter.setNodeSourceCodeLocation(t,n)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const n=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(n??this.document,t)}}_appendElement(t,r){const n=this.treeAdapter.createElement(t.tagName,r,t.attrs);this._attachElementToTree(n,t.location)}_insertElement(t,r){const n=this.treeAdapter.createElement(t.tagName,r,t.attrs);this._attachElementToTree(n,t.location),this.openElements.push(n,t.tagID)}_insertFakeElement(t,r){const n=this.treeAdapter.createElement(t,W.HTML,[]);this._attachElementToTree(n,null),this.openElements.push(n,r)}_insertTemplate(t){const r=this.treeAdapter.createElement(t.tagName,W.HTML,t.attrs),n=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(r,n),this._attachElementToTree(r,t.location),this.openElements.push(r,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,null)}_insertFakeRootElement(){const t=this.treeAdapter.createElement(B.HTML,W.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,d.HTML)}_appendCommentNode(t,r){const n=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(r,n),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,t.location)}_insertCharacters(t){let r,n;if(this._shouldFosterParentOnInsertion()?({parent:r,beforeElement:n}=this._findFosterParentingLocation(),n?this.treeAdapter.insertTextBefore(r,t.chars,n):this.treeAdapter.insertText(r,t.chars)):(r=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(r,t.chars)),!t.location)return;const a=this.treeAdapter.getChildNodes(r),i=n?a.lastIndexOf(n):a.length,s=a[i-1];if(this.treeAdapter.getNodeSourceCodeLocation(s)){const{endLine:l,endCol:o,endOffset:c}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(s,{endLine:l,endCol:o,endOffset:c})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(s,t.location)}_adoptNodes(t,r){for(let n=this.treeAdapter.getFirstChild(t);n;n=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(n),this.treeAdapter.appendChild(r,n)}_setEndLocation(t,r){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&r.location){const n=r.location,a=this.treeAdapter.getTagName(t),i=r.type===ye.END_TAG&&a===r.tagName?{endTag:{...n},endLine:n.endLine,endCol:n.endCol,endOffset:n.endOffset}:{endLine:n.startLine,endCol:n.startCol,endOffset:n.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,i)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let r,n;return this.openElements.stackTop===0&&this.fragmentContext?(r=this.fragmentContext,n=this.fragmentContextID):{current:r,currentTagId:n}=this.openElements,t.tagID===d.SVG&&this.treeAdapter.getTagName(r)===B.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(r)===W.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===d.MGLYPH||t.tagID===d.MALIGNMARK)&&n!==void 0&&!this._isIntegrationPoint(n,r,W.HTML)}_processToken(t){switch(t.type){case ye.CHARACTER:{this.onCharacter(t);break}case ye.NULL_CHARACTER:{this.onNullCharacter(t);break}case ye.COMMENT:{this.onComment(t);break}case ye.DOCTYPE:{this.onDoctype(t);break}case ye.START_TAG:{this._processStartTag(t);break}case ye.END_TAG:{this.onEndTag(t);break}case ye.EOF:{this.onEof(t);break}case ye.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,r,n){const a=this.treeAdapter.getNamespaceURI(r),i=this.treeAdapter.getAttrList(r);return mb(t,a,i,n)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const r=this.activeFormattingElements.entries.findIndex(a=>a.type===Jt.Marker||this.openElements.contains(a.element)),n=r===-1?t-1:r-1;for(let a=n;a>=0;a--){const i=this.activeFormattingElements.entries[a];this._insertElement(i.token,this.treeAdapter.getNamespaceURI(i.element)),i.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=N.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(d.P),this.openElements.popUntilTagNamePopped(d.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case d.TR:{this.insertionMode=N.IN_ROW;return}case d.TBODY:case d.THEAD:case d.TFOOT:{this.insertionMode=N.IN_TABLE_BODY;return}case d.CAPTION:{this.insertionMode=N.IN_CAPTION;return}case d.COLGROUP:{this.insertionMode=N.IN_COLUMN_GROUP;return}case d.TABLE:{this.insertionMode=N.IN_TABLE;return}case d.BODY:{this.insertionMode=N.IN_BODY;return}case d.FRAMESET:{this.insertionMode=N.IN_FRAMESET;return}case d.SELECT:{this._resetInsertionModeForSelect(t);return}case d.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case d.HTML:{this.insertionMode=this.headElement?N.AFTER_HEAD:N.BEFORE_HEAD;return}case d.TD:case d.TH:{if(t>0){this.insertionMode=N.IN_CELL;return}break}case d.HEAD:{if(t>0){this.insertionMode=N.IN_HEAD;return}break}}this.insertionMode=N.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let r=t-1;r>0;r--){const n=this.openElements.tagIDs[r];if(n===d.TEMPLATE)break;if(n===d.TABLE){this.insertionMode=N.IN_SELECT_IN_TABLE;return}}this.insertionMode=N.IN_SELECT}_isElementCausesFosterParenting(t){return nf.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this.openElements.currentTagId!==void 0&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let t=this.openElements.stackTop;t>=0;t--){const r=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case d.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(r)===W.HTML)return{parent:this.treeAdapter.getTemplateContent(r),beforeElement:null};break}case d.TABLE:{const n=this.treeAdapter.getParentNode(r);return n?{parent:n,beforeElement:r}:{parent:this.openElements.items[t-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){const r=this._findFosterParentingLocation();r.beforeElement?this.treeAdapter.insertBefore(r.parent,t,r.beforeElement):this.treeAdapter.appendChild(r.parent,t)}_isSpecialElement(t,r){const n=this.treeAdapter.getNamespaceURI(t);return Fg[n].has(r)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){W7(this,t);return}switch(this.insertionMode){case N.INITIAL:{fa(this,t);break}case N.BEFORE_HTML:{Ia(this,t);break}case N.BEFORE_HEAD:{_a(this,t);break}case N.IN_HEAD:{Na(this,t);break}case N.IN_HEAD_NO_SCRIPT:{La(this,t);break}case N.AFTER_HEAD:{Ra(this,t);break}case N.IN_BODY:case N.IN_CAPTION:case N.IN_CELL:case N.IN_TEMPLATE:{sf(this,t);break}case N.TEXT:case N.IN_SELECT:case N.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case N.IN_TABLE:case N.IN_TABLE_BODY:case N.IN_ROW:{r0(this,t);break}case N.IN_TABLE_TEXT:{df(this,t);break}case N.IN_COLUMN_GROUP:{Gi(this,t);break}case N.AFTER_BODY:{Vi(this,t);break}case N.AFTER_AFTER_BODY:{Li(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){Y7(this,t);return}switch(this.insertionMode){case N.INITIAL:{fa(this,t);break}case N.BEFORE_HTML:{Ia(this,t);break}case N.BEFORE_HEAD:{_a(this,t);break}case N.IN_HEAD:{Na(this,t);break}case N.IN_HEAD_NO_SCRIPT:{La(this,t);break}case N.AFTER_HEAD:{Ra(this,t);break}case N.TEXT:{this._insertCharacters(t);break}case N.IN_TABLE:case N.IN_TABLE_BODY:case N.IN_ROW:{r0(this,t);break}case N.IN_COLUMN_GROUP:{Gi(this,t);break}case N.AFTER_BODY:{Vi(this,t);break}case N.AFTER_AFTER_BODY:{Li(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){ru(this,t);return}switch(this.insertionMode){case N.INITIAL:case N.BEFORE_HTML:case N.BEFORE_HEAD:case N.IN_HEAD:case N.IN_HEAD_NO_SCRIPT:case N.AFTER_HEAD:case N.IN_BODY:case N.IN_TABLE:case N.IN_CAPTION:case N.IN_COLUMN_GROUP:case N.IN_TABLE_BODY:case N.IN_ROW:case N.IN_CELL:case N.IN_SELECT:case N.IN_SELECT_IN_TABLE:case N.IN_TEMPLATE:case N.IN_FRAMESET:case N.AFTER_FRAMESET:{ru(this,t);break}case N.IN_TABLE_TEXT:{ma(this,t);break}case N.AFTER_BODY:{Ab(this,t);break}case N.AFTER_AFTER_BODY:case N.AFTER_AFTER_FRAMESET:{Cb(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case N.INITIAL:{Sb(this,t);break}case N.BEFORE_HEAD:case N.IN_HEAD:case N.IN_HEAD_NO_SCRIPT:case N.AFTER_HEAD:{this._err(t,$.misplacedDoctype);break}case N.IN_TABLE_TEXT:{ma(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,$.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?X7(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case N.INITIAL:{fa(this,t);break}case N.BEFORE_HTML:{Ib(this,t);break}case N.BEFORE_HEAD:{Nb(this,t);break}case N.IN_HEAD:{Xt(this,t);break}case N.IN_HEAD_NO_SCRIPT:{Db(this,t);break}case N.AFTER_HEAD:{Mb(this,t);break}case N.IN_BODY:{ht(this,t);break}case N.IN_TABLE:{Yn(this,t);break}case N.IN_TABLE_TEXT:{ma(this,t);break}case N.IN_CAPTION:{L7(this,t);break}case N.IN_COLUMN_GROUP:{Ju(this,t);break}case N.IN_TABLE_BODY:{ks(this,t);break}case N.IN_ROW:{ws(this,t);break}case N.IN_CELL:{O7(this,t);break}case N.IN_SELECT:{pf(this,t);break}case N.IN_SELECT_IN_TABLE:{P7(this,t);break}case N.IN_TEMPLATE:{F7(this,t);break}case N.AFTER_BODY:{z7(this,t);break}case N.IN_FRAMESET:{$7(this,t);break}case N.AFTER_FRAMESET:{q7(this,t);break}case N.AFTER_AFTER_BODY:{G7(this,t);break}case N.AFTER_AFTER_FRAMESET:{V7(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?Q7(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case N.INITIAL:{fa(this,t);break}case N.BEFORE_HTML:{_b(this,t);break}case N.BEFORE_HEAD:{Lb(this,t);break}case N.IN_HEAD:{Rb(this,t);break}case N.IN_HEAD_NO_SCRIPT:{Ob(this,t);break}case N.AFTER_HEAD:{Pb(this,t);break}case N.IN_BODY:{vs(this,t);break}case N.TEXT:{T7(this,t);break}case N.IN_TABLE:{Ha(this,t);break}case N.IN_TABLE_TEXT:{ma(this,t);break}case N.IN_CAPTION:{R7(this,t);break}case N.IN_COLUMN_GROUP:{D7(this,t);break}case N.IN_TABLE_BODY:{nu(this,t);break}case N.IN_ROW:{mf(this,t);break}case N.IN_CELL:{M7(this,t);break}case N.IN_SELECT:{gf(this,t);break}case N.IN_SELECT_IN_TABLE:{B7(this,t);break}case N.IN_TEMPLATE:{H7(this,t);break}case N.AFTER_BODY:{xf(this,t);break}case N.IN_FRAMESET:{U7(this,t);break}case N.AFTER_FRAMESET:{j7(this,t);break}case N.AFTER_AFTER_BODY:{Li(this,t);break}}}onEof(t){switch(this.insertionMode){case N.INITIAL:{fa(this,t);break}case N.BEFORE_HTML:{Ia(this,t);break}case N.BEFORE_HEAD:{_a(this,t);break}case N.IN_HEAD:{Na(this,t);break}case N.IN_HEAD_NO_SCRIPT:{La(this,t);break}case N.AFTER_HEAD:{Ra(this,t);break}case N.IN_BODY:case N.IN_TABLE:case N.IN_CAPTION:case N.IN_COLUMN_GROUP:case N.IN_TABLE_BODY:case N.IN_ROW:case N.IN_CELL:case N.IN_SELECT:case N.IN_SELECT_IN_TABLE:{cf(this,t);break}case N.TEXT:{v7(this,t);break}case N.IN_TABLE_TEXT:{ma(this,t);break}case N.IN_TEMPLATE:{bf(this,t);break}case N.AFTER_BODY:case N.IN_FRAMESET:case N.AFTER_FRAMESET:case N.AFTER_AFTER_BODY:case N.AFTER_AFTER_FRAMESET:{Zu(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===v.LINE_FEED)){if(t.chars.length===1)return;t.chars=t.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(t);return}switch(this.insertionMode){case N.IN_HEAD:case N.IN_HEAD_NO_SCRIPT:case N.AFTER_HEAD:case N.TEXT:case N.IN_COLUMN_GROUP:case N.IN_SELECT:case N.IN_SELECT_IN_TABLE:case N.IN_FRAMESET:case N.AFTER_FRAMESET:{this._insertCharacters(t);break}case N.IN_BODY:case N.IN_CAPTION:case N.IN_CELL:case N.IN_TEMPLATE:case N.AFTER_BODY:case N.AFTER_AFTER_BODY:case N.AFTER_AFTER_FRAMESET:{af(this,t);break}case N.IN_TABLE:case N.IN_TABLE_BODY:case N.IN_ROW:{r0(this,t);break}case N.IN_TABLE_TEXT:{hf(this,t);break}}}}function Eb(e,t){let r=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return r?e.openElements.contains(r.element)?e.openElements.hasInScope(t.tagID)||(r=null):(e.activeFormattingElements.removeEntry(r),r=null):of(e,t),r}function yb(e,t){let r=null,n=e.openElements.stackTop;for(;n>=0;n--){const a=e.openElements.items[n];if(a===t.element)break;e._isSpecialElement(a,e.openElements.tagIDs[n])&&(r=a)}return r||(e.openElements.shortenToLength(Math.max(n,0)),e.activeFormattingElements.removeEntry(t)),r}function Tb(e,t,r){let n=t,a=e.openElements.getCommonAncestor(t);for(let i=0,s=a;s!==r;i++,s=a){a=e.openElements.getCommonAncestor(s);const u=e.activeFormattingElements.getElementEntry(s),l=u&&i>=bb;!u||l?(l&&e.activeFormattingElements.removeEntry(u),e.openElements.remove(s)):(s=vb(e,u),n===t&&(e.activeFormattingElements.bookmark=u),e.treeAdapter.detachNode(n),e.treeAdapter.appendChild(s,n),n=s)}return n}function vb(e,t){const r=e.treeAdapter.getNamespaceURI(t.element),n=e.treeAdapter.createElement(t.token.tagName,r,t.token.attrs);return e.openElements.replace(t.element,n),t.element=n,n}function kb(e,t,r){const n=e.treeAdapter.getTagName(t),a=na(n);if(e._isElementCausesFosterParenting(a))e._fosterParentElement(r);else{const i=e.treeAdapter.getNamespaceURI(t);a===d.TEMPLATE&&i===W.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,r)}}function wb(e,t,r){const n=e.treeAdapter.getNamespaceURI(r.element),{token:a}=r,i=e.treeAdapter.createElement(a.tagName,n,a.attrs);e._adoptNodes(t,i),e.treeAdapter.appendChild(t,i),e.activeFormattingElements.insertElementAfterBookmark(i,a),e.activeFormattingElements.removeEntry(r),e.openElements.remove(r.element),e.openElements.insertAfter(t,i,a.tagID)}function Ku(e,t){for(let r=0;r<gb;r++){const n=Eb(e,t);if(!n)break;const a=yb(e,n);if(!a)break;e.activeFormattingElements.bookmark=n;const i=Tb(e,a,n.element),s=e.openElements.getCommonAncestor(n.element);e.treeAdapter.detachNode(i),s&&kb(e,s,i),wb(e,a,n)}}function ru(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function Ab(e,t){e._appendCommentNode(t,e.openElements.items[0])}function Cb(e,t){e._appendCommentNode(t,e.document)}function Zu(e,t){if(e.stopped=!0,t.location){const r=e.fragmentContext?0:2;for(let n=e.openElements.stackTop;n>=r;n--)e._setEndLocation(e.openElements.items[n],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const n=e.openElements.items[0],a=e.treeAdapter.getNodeSourceCodeLocation(n);if(a&&!a.endTag&&(e._setEndLocation(n,t),e.openElements.stackTop>=1)){const i=e.openElements.items[1],s=e.treeAdapter.getNodeSourceCodeLocation(i);s&&!s.endTag&&e._setEndLocation(i,t)}}}}function Sb(e,t){e._setDocumentType(t);const r=t.forceQuirks?Rt.QUIRKS:nb(t);rb(t)||e._err(t,$.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,r),e.insertionMode=N.BEFORE_HTML}function fa(e,t){e._err(t,$.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,Rt.QUIRKS),e.insertionMode=N.BEFORE_HTML,e._processToken(t)}function Ib(e,t){t.tagID===d.HTML?(e._insertElement(t,W.HTML),e.insertionMode=N.BEFORE_HEAD):Ia(e,t)}function _b(e,t){const r=t.tagID;(r===d.HTML||r===d.HEAD||r===d.BODY||r===d.BR)&&Ia(e,t)}function Ia(e,t){e._insertFakeRootElement(),e.insertionMode=N.BEFORE_HEAD,e._processToken(t)}function Nb(e,t){switch(t.tagID){case d.HTML:{ht(e,t);break}case d.HEAD:{e._insertElement(t,W.HTML),e.headElement=e.openElements.current,e.insertionMode=N.IN_HEAD;break}default:_a(e,t)}}function Lb(e,t){const r=t.tagID;r===d.HEAD||r===d.BODY||r===d.HTML||r===d.BR?_a(e,t):e._err(t,$.endTagWithoutMatchingOpenElement)}function _a(e,t){e._insertFakeElement(B.HEAD,d.HEAD),e.headElement=e.openElements.current,e.insertionMode=N.IN_HEAD,e._processToken(t)}function Xt(e,t){switch(t.tagID){case d.HTML:{ht(e,t);break}case d.BASE:case d.BASEFONT:case d.BGSOUND:case d.LINK:case d.META:{e._appendElement(t,W.HTML),t.ackSelfClosing=!0;break}case d.TITLE:{e._switchToTextParsing(t,Ye.RCDATA);break}case d.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,Ye.RAWTEXT):(e._insertElement(t,W.HTML),e.insertionMode=N.IN_HEAD_NO_SCRIPT);break}case d.NOFRAMES:case d.STYLE:{e._switchToTextParsing(t,Ye.RAWTEXT);break}case d.SCRIPT:{e._switchToTextParsing(t,Ye.SCRIPT_DATA);break}case d.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=N.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(N.IN_TEMPLATE);break}case d.HEAD:{e._err(t,$.misplacedStartTagForHeadElement);break}default:Na(e,t)}}function Rb(e,t){switch(t.tagID){case d.HEAD:{e.openElements.pop(),e.insertionMode=N.AFTER_HEAD;break}case d.BODY:case d.BR:case d.HTML:{Na(e,t);break}case d.TEMPLATE:{wn(e,t);break}default:e._err(t,$.endTagWithoutMatchingOpenElement)}}function wn(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==d.TEMPLATE&&e._err(t,$.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(d.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,$.endTagWithoutMatchingOpenElement)}function Na(e,t){e.openElements.pop(),e.insertionMode=N.AFTER_HEAD,e._processToken(t)}function Db(e,t){switch(t.tagID){case d.HTML:{ht(e,t);break}case d.BASEFONT:case d.BGSOUND:case d.HEAD:case d.LINK:case d.META:case d.NOFRAMES:case d.STYLE:{Xt(e,t);break}case d.NOSCRIPT:{e._err(t,$.nestedNoscriptInHead);break}default:La(e,t)}}function Ob(e,t){switch(t.tagID){case d.NOSCRIPT:{e.openElements.pop(),e.insertionMode=N.IN_HEAD;break}case d.BR:{La(e,t);break}default:e._err(t,$.endTagWithoutMatchingOpenElement)}}function La(e,t){const r=t.type===ye.EOF?$.openElementsLeftAfterEof:$.disallowedContentInNoscriptInHead;e._err(t,r),e.openElements.pop(),e.insertionMode=N.IN_HEAD,e._processToken(t)}function Mb(e,t){switch(t.tagID){case d.HTML:{ht(e,t);break}case d.BODY:{e._insertElement(t,W.HTML),e.framesetOk=!1,e.insertionMode=N.IN_BODY;break}case d.FRAMESET:{e._insertElement(t,W.HTML),e.insertionMode=N.IN_FRAMESET;break}case d.BASE:case d.BASEFONT:case d.BGSOUND:case d.LINK:case d.META:case d.NOFRAMES:case d.SCRIPT:case d.STYLE:case d.TEMPLATE:case d.TITLE:{e._err(t,$.abandonedHeadElementChild),e.openElements.push(e.headElement,d.HEAD),Xt(e,t),e.openElements.remove(e.headElement);break}case d.HEAD:{e._err(t,$.misplacedStartTagForHeadElement);break}default:Ra(e,t)}}function Pb(e,t){switch(t.tagID){case d.BODY:case d.HTML:case d.BR:{Ra(e,t);break}case d.TEMPLATE:{wn(e,t);break}default:e._err(t,$.endTagWithoutMatchingOpenElement)}}function Ra(e,t){e._insertFakeElement(B.BODY,d.BODY),e.insertionMode=N.IN_BODY,Ts(e,t)}function Ts(e,t){switch(t.type){case ye.CHARACTER:{sf(e,t);break}case ye.WHITESPACE_CHARACTER:{af(e,t);break}case ye.COMMENT:{ru(e,t);break}case ye.START_TAG:{ht(e,t);break}case ye.END_TAG:{vs(e,t);break}case ye.EOF:{cf(e,t);break}}}function af(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function sf(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function Bb(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function Fb(e,t){const r=e.openElements.tryPeekProperlyNestedBodyElement();r&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(r,t.attrs))}function Hb(e,t){const r=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&r&&(e.treeAdapter.detachNode(r),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,W.HTML),e.insertionMode=N.IN_FRAMESET)}function zb(e,t){e.openElements.hasInButtonScope(d.P)&&e._closePElement(),e._insertElement(t,W.HTML)}function $b(e,t){e.openElements.hasInButtonScope(d.P)&&e._closePElement(),e.openElements.currentTagId!==void 0&&tu.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,W.HTML)}function Ub(e,t){e.openElements.hasInButtonScope(d.P)&&e._closePElement(),e._insertElement(t,W.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function qb(e,t){const r=e.openElements.tmplCount>0;(!e.formElement||r)&&(e.openElements.hasInButtonScope(d.P)&&e._closePElement(),e._insertElement(t,W.HTML),r||(e.formElement=e.openElements.current))}function jb(e,t){e.framesetOk=!1;const r=t.tagID;for(let n=e.openElements.stackTop;n>=0;n--){const a=e.openElements.tagIDs[n];if(r===d.LI&&a===d.LI||(r===d.DD||r===d.DT)&&(a===d.DD||a===d.DT)){e.openElements.generateImpliedEndTagsWithExclusion(a),e.openElements.popUntilTagNamePopped(a);break}if(a!==d.ADDRESS&&a!==d.DIV&&a!==d.P&&e._isSpecialElement(e.openElements.items[n],a))break}e.openElements.hasInButtonScope(d.P)&&e._closePElement(),e._insertElement(t,W.HTML)}function Gb(e,t){e.openElements.hasInButtonScope(d.P)&&e._closePElement(),e._insertElement(t,W.HTML),e.tokenizer.state=Ye.PLAINTEXT}function Vb(e,t){e.openElements.hasInScope(d.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(d.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,W.HTML),e.framesetOk=!1}function Yb(e,t){const r=e.activeFormattingElements.getElementEntryInScopeWithTagName(B.A);r&&(Ku(e,t),e.openElements.remove(r.element),e.activeFormattingElements.removeEntry(r)),e._reconstructActiveFormattingElements(),e._insertElement(t,W.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Wb(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,W.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Xb(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(d.NOBR)&&(Ku(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,W.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Qb(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,W.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function Kb(e,t){e.treeAdapter.getDocumentMode(e.document)!==Rt.QUIRKS&&e.openElements.hasInButtonScope(d.P)&&e._closePElement(),e._insertElement(t,W.HTML),e.framesetOk=!1,e.insertionMode=N.IN_TABLE}function uf(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,W.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function lf(e){const t=Xd(e,gn.TYPE);return t!=null&&t.toLowerCase()===pb}function Zb(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,W.HTML),lf(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function Jb(e,t){e._appendElement(t,W.HTML),t.ackSelfClosing=!0}function e7(e,t){e.openElements.hasInButtonScope(d.P)&&e._closePElement(),e._appendElement(t,W.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function t7(e,t){t.tagName=B.IMG,t.tagID=d.IMG,uf(e,t)}function r7(e,t){e._insertElement(t,W.HTML),e.skipNextNewLine=!0,e.tokenizer.state=Ye.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=N.TEXT}function n7(e,t){e.openElements.hasInButtonScope(d.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,Ye.RAWTEXT)}function a7(e,t){e.framesetOk=!1,e._switchToTextParsing(t,Ye.RAWTEXT)}function vc(e,t){e._switchToTextParsing(t,Ye.RAWTEXT)}function i7(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,W.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===N.IN_TABLE||e.insertionMode===N.IN_CAPTION||e.insertionMode===N.IN_TABLE_BODY||e.insertionMode===N.IN_ROW||e.insertionMode===N.IN_CELL?N.IN_SELECT_IN_TABLE:N.IN_SELECT}function s7(e,t){e.openElements.currentTagId===d.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,W.HTML)}function u7(e,t){e.openElements.hasInScope(d.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,W.HTML)}function l7(e,t){e.openElements.hasInScope(d.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(d.RTC),e._insertElement(t,W.HTML)}function o7(e,t){e._reconstructActiveFormattingElements(),tf(t),Qu(t),t.selfClosing?e._appendElement(t,W.MATHML):e._insertElement(t,W.MATHML),t.ackSelfClosing=!0}function c7(e,t){e._reconstructActiveFormattingElements(),rf(t),Qu(t),t.selfClosing?e._appendElement(t,W.SVG):e._insertElement(t,W.SVG),t.ackSelfClosing=!0}function kc(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,W.HTML)}function ht(e,t){switch(t.tagID){case d.I:case d.S:case d.B:case d.U:case d.EM:case d.TT:case d.BIG:case d.CODE:case d.FONT:case d.SMALL:case d.STRIKE:case d.STRONG:{Wb(e,t);break}case d.A:{Yb(e,t);break}case d.H1:case d.H2:case d.H3:case d.H4:case d.H5:case d.H6:{$b(e,t);break}case d.P:case d.DL:case d.OL:case d.UL:case d.DIV:case d.DIR:case d.NAV:case d.MAIN:case d.MENU:case d.ASIDE:case d.CENTER:case d.FIGURE:case d.FOOTER:case d.HEADER:case d.HGROUP:case d.DIALOG:case d.DETAILS:case d.ADDRESS:case d.ARTICLE:case d.SEARCH:case d.SECTION:case d.SUMMARY:case d.FIELDSET:case d.BLOCKQUOTE:case d.FIGCAPTION:{zb(e,t);break}case d.LI:case d.DD:case d.DT:{jb(e,t);break}case d.BR:case d.IMG:case d.WBR:case d.AREA:case d.EMBED:case d.KEYGEN:{uf(e,t);break}case d.HR:{e7(e,t);break}case d.RB:case d.RTC:{u7(e,t);break}case d.RT:case d.RP:{l7(e,t);break}case d.PRE:case d.LISTING:{Ub(e,t);break}case d.XMP:{n7(e,t);break}case d.SVG:{c7(e,t);break}case d.HTML:{Bb(e,t);break}case d.BASE:case d.LINK:case d.META:case d.STYLE:case d.TITLE:case d.SCRIPT:case d.BGSOUND:case d.BASEFONT:case d.TEMPLATE:{Xt(e,t);break}case d.BODY:{Fb(e,t);break}case d.FORM:{qb(e,t);break}case d.NOBR:{Xb(e,t);break}case d.MATH:{o7(e,t);break}case d.TABLE:{Kb(e,t);break}case d.INPUT:{Zb(e,t);break}case d.PARAM:case d.TRACK:case d.SOURCE:{Jb(e,t);break}case d.IMAGE:{t7(e,t);break}case d.BUTTON:{Vb(e,t);break}case d.APPLET:case d.OBJECT:case d.MARQUEE:{Qb(e,t);break}case d.IFRAME:{a7(e,t);break}case d.SELECT:{i7(e,t);break}case d.OPTION:case d.OPTGROUP:{s7(e,t);break}case d.NOEMBED:case d.NOFRAMES:{vc(e,t);break}case d.FRAMESET:{Hb(e,t);break}case d.TEXTAREA:{r7(e,t);break}case d.NOSCRIPT:{e.options.scriptingEnabled?vc(e,t):kc(e,t);break}case d.PLAINTEXT:{Gb(e,t);break}case d.COL:case d.TH:case d.TD:case d.TR:case d.HEAD:case d.FRAME:case d.TBODY:case d.TFOOT:case d.THEAD:case d.CAPTION:case d.COLGROUP:break;default:kc(e,t)}}function h7(e,t){if(e.openElements.hasInScope(d.BODY)&&(e.insertionMode=N.AFTER_BODY,e.options.sourceCodeLocationInfo)){const r=e.openElements.tryPeekProperlyNestedBodyElement();r&&e._setEndLocation(r,t)}}function d7(e,t){e.openElements.hasInScope(d.BODY)&&(e.insertionMode=N.AFTER_BODY,xf(e,t))}function f7(e,t){const r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r))}function m7(e){const t=e.openElements.tmplCount>0,{formElement:r}=e;t||(e.formElement=null),(r||t)&&e.openElements.hasInScope(d.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(d.FORM):r&&e.openElements.remove(r))}function p7(e){e.openElements.hasInButtonScope(d.P)||e._insertFakeElement(B.P,d.P),e._closePElement()}function g7(e){e.openElements.hasInListItemScope(d.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(d.LI),e.openElements.popUntilTagNamePopped(d.LI))}function b7(e,t){const r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.popUntilTagNamePopped(r))}function x7(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function E7(e,t){const r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r),e.activeFormattingElements.clearToLastMarker())}function y7(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(B.BR,d.BR),e.openElements.pop(),e.framesetOk=!1}function of(e,t){const r=t.tagName,n=t.tagID;for(let a=e.openElements.stackTop;a>0;a--){const i=e.openElements.items[a],s=e.openElements.tagIDs[a];if(n===s&&(n!==d.UNKNOWN||e.treeAdapter.getTagName(i)===r)){e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.stackTop>=a&&e.openElements.shortenToLength(a);break}if(e._isSpecialElement(i,s))break}}function vs(e,t){switch(t.tagID){case d.A:case d.B:case d.I:case d.S:case d.U:case d.EM:case d.TT:case d.BIG:case d.CODE:case d.FONT:case d.NOBR:case d.SMALL:case d.STRIKE:case d.STRONG:{Ku(e,t);break}case d.P:{p7(e);break}case d.DL:case d.UL:case d.OL:case d.DIR:case d.DIV:case d.NAV:case d.PRE:case d.MAIN:case d.MENU:case d.ASIDE:case d.BUTTON:case d.CENTER:case d.FIGURE:case d.FOOTER:case d.HEADER:case d.HGROUP:case d.DIALOG:case d.ADDRESS:case d.ARTICLE:case d.DETAILS:case d.SEARCH:case d.SECTION:case d.SUMMARY:case d.LISTING:case d.FIELDSET:case d.BLOCKQUOTE:case d.FIGCAPTION:{f7(e,t);break}case d.LI:{g7(e);break}case d.DD:case d.DT:{b7(e,t);break}case d.H1:case d.H2:case d.H3:case d.H4:case d.H5:case d.H6:{x7(e);break}case d.BR:{y7(e);break}case d.BODY:{h7(e,t);break}case d.HTML:{d7(e,t);break}case d.FORM:{m7(e);break}case d.APPLET:case d.OBJECT:case d.MARQUEE:{E7(e,t);break}case d.TEMPLATE:{wn(e,t);break}default:of(e,t)}}function cf(e,t){e.tmplInsertionModeStack.length>0?bf(e,t):Zu(e,t)}function T7(e,t){var r;t.tagID===d.SCRIPT&&((r=e.scriptHandler)===null||r===void 0||r.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function v7(e,t){e._err(t,$.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function r0(e,t){if(e.openElements.currentTagId!==void 0&&nf.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=N.IN_TABLE_TEXT,t.type){case ye.CHARACTER:{df(e,t);break}case ye.WHITESPACE_CHARACTER:{hf(e,t);break}}else Qa(e,t)}function k7(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,W.HTML),e.insertionMode=N.IN_CAPTION}function w7(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,W.HTML),e.insertionMode=N.IN_COLUMN_GROUP}function A7(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(B.COLGROUP,d.COLGROUP),e.insertionMode=N.IN_COLUMN_GROUP,Ju(e,t)}function C7(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,W.HTML),e.insertionMode=N.IN_TABLE_BODY}function S7(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(B.TBODY,d.TBODY),e.insertionMode=N.IN_TABLE_BODY,ks(e,t)}function I7(e,t){e.openElements.hasInTableScope(d.TABLE)&&(e.openElements.popUntilTagNamePopped(d.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function _7(e,t){lf(t)?e._appendElement(t,W.HTML):Qa(e,t),t.ackSelfClosing=!0}function N7(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,W.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function Yn(e,t){switch(t.tagID){case d.TD:case d.TH:case d.TR:{S7(e,t);break}case d.STYLE:case d.SCRIPT:case d.TEMPLATE:{Xt(e,t);break}case d.COL:{A7(e,t);break}case d.FORM:{N7(e,t);break}case d.TABLE:{I7(e,t);break}case d.TBODY:case d.TFOOT:case d.THEAD:{C7(e,t);break}case d.INPUT:{_7(e,t);break}case d.CAPTION:{k7(e,t);break}case d.COLGROUP:{w7(e,t);break}default:Qa(e,t)}}function Ha(e,t){switch(t.tagID){case d.TABLE:{e.openElements.hasInTableScope(d.TABLE)&&(e.openElements.popUntilTagNamePopped(d.TABLE),e._resetInsertionMode());break}case d.TEMPLATE:{wn(e,t);break}case d.BODY:case d.CAPTION:case d.COL:case d.COLGROUP:case d.HTML:case d.TBODY:case d.TD:case d.TFOOT:case d.TH:case d.THEAD:case d.TR:break;default:Qa(e,t)}}function Qa(e,t){const r=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,Ts(e,t),e.fosterParentingEnabled=r}function hf(e,t){e.pendingCharacterTokens.push(t)}function df(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function ma(e,t){let r=0;if(e.hasNonWhitespacePendingCharacterToken)for(;r<e.pendingCharacterTokens.length;r++)Qa(e,e.pendingCharacterTokens[r]);else for(;r<e.pendingCharacterTokens.length;r++)e._insertCharacters(e.pendingCharacterTokens[r]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const ff=new Set([d.CAPTION,d.COL,d.COLGROUP,d.TBODY,d.TD,d.TFOOT,d.TH,d.THEAD,d.TR]);function L7(e,t){const r=t.tagID;ff.has(r)?e.openElements.hasInTableScope(d.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(d.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=N.IN_TABLE,Yn(e,t)):ht(e,t)}function R7(e,t){const r=t.tagID;switch(r){case d.CAPTION:case d.TABLE:{e.openElements.hasInTableScope(d.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(d.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=N.IN_TABLE,r===d.TABLE&&Ha(e,t));break}case d.BODY:case d.COL:case d.COLGROUP:case d.HTML:case d.TBODY:case d.TD:case d.TFOOT:case d.TH:case d.THEAD:case d.TR:break;default:vs(e,t)}}function Ju(e,t){switch(t.tagID){case d.HTML:{ht(e,t);break}case d.COL:{e._appendElement(t,W.HTML),t.ackSelfClosing=!0;break}case d.TEMPLATE:{Xt(e,t);break}default:Gi(e,t)}}function D7(e,t){switch(t.tagID){case d.COLGROUP:{e.openElements.currentTagId===d.COLGROUP&&(e.openElements.pop(),e.insertionMode=N.IN_TABLE);break}case d.TEMPLATE:{wn(e,t);break}case d.COL:break;default:Gi(e,t)}}function Gi(e,t){e.openElements.currentTagId===d.COLGROUP&&(e.openElements.pop(),e.insertionMode=N.IN_TABLE,e._processToken(t))}function ks(e,t){switch(t.tagID){case d.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,W.HTML),e.insertionMode=N.IN_ROW;break}case d.TH:case d.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(B.TR,d.TR),e.insertionMode=N.IN_ROW,ws(e,t);break}case d.CAPTION:case d.COL:case d.COLGROUP:case d.TBODY:case d.TFOOT:case d.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=N.IN_TABLE,Yn(e,t));break}default:Yn(e,t)}}function nu(e,t){const r=t.tagID;switch(t.tagID){case d.TBODY:case d.TFOOT:case d.THEAD:{e.openElements.hasInTableScope(r)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=N.IN_TABLE);break}case d.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=N.IN_TABLE,Ha(e,t));break}case d.BODY:case d.CAPTION:case d.COL:case d.COLGROUP:case d.HTML:case d.TD:case d.TH:case d.TR:break;default:Ha(e,t)}}function ws(e,t){switch(t.tagID){case d.TH:case d.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,W.HTML),e.insertionMode=N.IN_CELL,e.activeFormattingElements.insertMarker();break}case d.CAPTION:case d.COL:case d.COLGROUP:case d.TBODY:case d.TFOOT:case d.THEAD:case d.TR:{e.openElements.hasInTableScope(d.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=N.IN_TABLE_BODY,ks(e,t));break}default:Yn(e,t)}}function mf(e,t){switch(t.tagID){case d.TR:{e.openElements.hasInTableScope(d.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=N.IN_TABLE_BODY);break}case d.TABLE:{e.openElements.hasInTableScope(d.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=N.IN_TABLE_BODY,nu(e,t));break}case d.TBODY:case d.TFOOT:case d.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(d.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=N.IN_TABLE_BODY,nu(e,t));break}case d.BODY:case d.CAPTION:case d.COL:case d.COLGROUP:case d.HTML:case d.TD:case d.TH:break;default:Ha(e,t)}}function O7(e,t){const r=t.tagID;ff.has(r)?(e.openElements.hasInTableScope(d.TD)||e.openElements.hasInTableScope(d.TH))&&(e._closeTableCell(),ws(e,t)):ht(e,t)}function M7(e,t){const r=t.tagID;switch(r){case d.TD:case d.TH:{e.openElements.hasInTableScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=N.IN_ROW);break}case d.TABLE:case d.TBODY:case d.TFOOT:case d.THEAD:case d.TR:{e.openElements.hasInTableScope(r)&&(e._closeTableCell(),mf(e,t));break}case d.BODY:case d.CAPTION:case d.COL:case d.COLGROUP:case d.HTML:break;default:vs(e,t)}}function pf(e,t){switch(t.tagID){case d.HTML:{ht(e,t);break}case d.OPTION:{e.openElements.currentTagId===d.OPTION&&e.openElements.pop(),e._insertElement(t,W.HTML);break}case d.OPTGROUP:{e.openElements.currentTagId===d.OPTION&&e.openElements.pop(),e.openElements.currentTagId===d.OPTGROUP&&e.openElements.pop(),e._insertElement(t,W.HTML);break}case d.HR:{e.openElements.currentTagId===d.OPTION&&e.openElements.pop(),e.openElements.currentTagId===d.OPTGROUP&&e.openElements.pop(),e._appendElement(t,W.HTML),t.ackSelfClosing=!0;break}case d.INPUT:case d.KEYGEN:case d.TEXTAREA:case d.SELECT:{e.openElements.hasInSelectScope(d.SELECT)&&(e.openElements.popUntilTagNamePopped(d.SELECT),e._resetInsertionMode(),t.tagID!==d.SELECT&&e._processStartTag(t));break}case d.SCRIPT:case d.TEMPLATE:{Xt(e,t);break}}}function gf(e,t){switch(t.tagID){case d.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===d.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===d.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===d.OPTGROUP&&e.openElements.pop();break}case d.OPTION:{e.openElements.currentTagId===d.OPTION&&e.openElements.pop();break}case d.SELECT:{e.openElements.hasInSelectScope(d.SELECT)&&(e.openElements.popUntilTagNamePopped(d.SELECT),e._resetInsertionMode());break}case d.TEMPLATE:{wn(e,t);break}}}function P7(e,t){const r=t.tagID;r===d.CAPTION||r===d.TABLE||r===d.TBODY||r===d.TFOOT||r===d.THEAD||r===d.TR||r===d.TD||r===d.TH?(e.openElements.popUntilTagNamePopped(d.SELECT),e._resetInsertionMode(),e._processStartTag(t)):pf(e,t)}function B7(e,t){const r=t.tagID;r===d.CAPTION||r===d.TABLE||r===d.TBODY||r===d.TFOOT||r===d.THEAD||r===d.TR||r===d.TD||r===d.TH?e.openElements.hasInTableScope(r)&&(e.openElements.popUntilTagNamePopped(d.SELECT),e._resetInsertionMode(),e.onEndTag(t)):gf(e,t)}function F7(e,t){switch(t.tagID){case d.BASE:case d.BASEFONT:case d.BGSOUND:case d.LINK:case d.META:case d.NOFRAMES:case d.SCRIPT:case d.STYLE:case d.TEMPLATE:case d.TITLE:{Xt(e,t);break}case d.CAPTION:case d.COLGROUP:case d.TBODY:case d.TFOOT:case d.THEAD:{e.tmplInsertionModeStack[0]=N.IN_TABLE,e.insertionMode=N.IN_TABLE,Yn(e,t);break}case d.COL:{e.tmplInsertionModeStack[0]=N.IN_COLUMN_GROUP,e.insertionMode=N.IN_COLUMN_GROUP,Ju(e,t);break}case d.TR:{e.tmplInsertionModeStack[0]=N.IN_TABLE_BODY,e.insertionMode=N.IN_TABLE_BODY,ks(e,t);break}case d.TD:case d.TH:{e.tmplInsertionModeStack[0]=N.IN_ROW,e.insertionMode=N.IN_ROW,ws(e,t);break}default:e.tmplInsertionModeStack[0]=N.IN_BODY,e.insertionMode=N.IN_BODY,ht(e,t)}}function H7(e,t){t.tagID===d.TEMPLATE&&wn(e,t)}function bf(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(d.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):Zu(e,t)}function z7(e,t){t.tagID===d.HTML?ht(e,t):Vi(e,t)}function xf(e,t){var r;if(t.tagID===d.HTML){if(e.fragmentContext||(e.insertionMode=N.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===d.HTML){e._setEndLocation(e.openElements.items[0],t);const n=e.openElements.items[1];n&&!(!((r=e.treeAdapter.getNodeSourceCodeLocation(n))===null||r===void 0)&&r.endTag)&&e._setEndLocation(n,t)}}else Vi(e,t)}function Vi(e,t){e.insertionMode=N.IN_BODY,Ts(e,t)}function $7(e,t){switch(t.tagID){case d.HTML:{ht(e,t);break}case d.FRAMESET:{e._insertElement(t,W.HTML);break}case d.FRAME:{e._appendElement(t,W.HTML),t.ackSelfClosing=!0;break}case d.NOFRAMES:{Xt(e,t);break}}}function U7(e,t){t.tagID===d.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==d.FRAMESET&&(e.insertionMode=N.AFTER_FRAMESET))}function q7(e,t){switch(t.tagID){case d.HTML:{ht(e,t);break}case d.NOFRAMES:{Xt(e,t);break}}}function j7(e,t){t.tagID===d.HTML&&(e.insertionMode=N.AFTER_AFTER_FRAMESET)}function G7(e,t){t.tagID===d.HTML?ht(e,t):Li(e,t)}function Li(e,t){e.insertionMode=N.IN_BODY,Ts(e,t)}function V7(e,t){switch(t.tagID){case d.HTML:{ht(e,t);break}case d.NOFRAMES:{Xt(e,t);break}}}function Y7(e,t){t.chars=Be,e._insertCharacters(t)}function W7(e,t){e._insertCharacters(t),e.framesetOk=!1}function Ef(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==W.HTML&&e.openElements.currentTagId!==void 0&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function X7(e,t){if(cb(t))Ef(e),e._startTagOutsideForeignContent(t);else{const r=e._getAdjustedCurrentElement(),n=e.treeAdapter.getNamespaceURI(r);n===W.MATHML?tf(t):n===W.SVG&&(hb(t),rf(t)),Qu(t),t.selfClosing?e._appendElement(t,n):e._insertElement(t,n),t.ackSelfClosing=!0}}function Q7(e,t){if(t.tagID===d.P||t.tagID===d.BR){Ef(e),e._endTagOutsideForeignContent(t);return}for(let r=e.openElements.stackTop;r>0;r--){const n=e.openElements.items[r];if(e.treeAdapter.getNamespaceURI(n)===W.HTML){e._endTagOutsideForeignContent(t);break}const a=e.treeAdapter.getTagName(n);if(a.toLowerCase()===t.tagName){t.tagName=a,e.openElements.shortenToLength(r);break}}}B.AREA,B.BASE,B.BASEFONT,B.BGSOUND,B.BR,B.COL,B.EMBED,B.FRAME,B.HR,B.IMG,B.INPUT,B.KEYGEN,B.LINK,B.META,B.PARAM,B.SOURCE,B.TRACK,B.WBR;const As=yf("end"),ir=yf("start");function yf(e){return t;function t(r){const n=r&&r.position&&r.position[e]||{};if(typeof n.line=="number"&&n.line>0&&typeof n.column=="number"&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset=="number"&&n.offset>-1?n.offset:void 0}}}function Tf(e){const t=ir(e),r=As(e);if(t&&r)return{start:t,end:r}}const K7=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,Z7=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),wc={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function vf(e,t){const r=l8(e),n=eh("type",{handlers:{root:J7,element:e8,text:t8,comment:wf,doctype:r8,raw:a8},unknown:i8}),a={parser:r?new Tc(wc):Tc.getFragmentParser(void 0,wc),handle(u){n(u,a)},stitches:!1,options:t||{}};n(e,a),aa(a,ir());const i=r?a.parser.document:a.parser.getFragment(),s=cg(i,{file:a.options.file});return a.stitches&&Ht(s,"comment",function(u,l,o){const c=u;if(c.value.stitch&&o&&l!==void 0){const h=o.children;return h[l]=c.value.stitch,l}}),s.type==="root"&&s.children.length===1&&s.children[0].type===e.type?s.children[0]:s}function kf(e,t){let r=-1;if(e)for(;++r<e.length;)t.handle(e[r])}function J7(e,t){kf(e.children,t)}function e8(e,t){s8(e,t),kf(e.children,t),u8(e,t)}function t8(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const r={type:ye.CHARACTER,chars:e.value,location:Ka(e)};aa(t,ir(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function r8(e,t){const r={type:ye.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:Ka(e)};aa(t,ir(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function n8(e,t){t.stitches=!0;const r=o8(e);if("children"in e&&"children"in r){const n=vf({type:"root",children:e.children},t.options);r.children=n.children}wf({type:"comment",value:{stitch:r}},t)}function wf(e,t){const r=e.value,n={type:ye.COMMENT,data:r,location:Ka(e)};aa(t,ir(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function a8(e,t){if(t.parser.tokenizer.preprocessor.html="",t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,Af(t,ir(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(K7,"<$1$2"):e.value,!1),t.parser.tokenizer._runParsingLoop(),t.parser.tokenizer.state===72||t.parser.tokenizer.state===78){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;const r=t.parser.tokenizer._consume();t.parser.tokenizer._callState(r)}}function i8(e,t){const r=e;if(t.options.passThrough&&t.options.passThrough.includes(r.type))n8(r,t);else{let n="";throw Z7.has(r.type)&&(n=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+r.type+"` node"+n)}}function aa(e,t){Af(e,t);const r=e.parser.tokenizer.currentCharacterToken;r&&r.location&&(r.location.endLine=e.parser.tokenizer.preprocessor.line,r.location.endCol=e.parser.tokenizer.preprocessor.col+1,r.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=r,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=Ye.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function Af(e,t){if(t&&t.offset!==void 0){const r={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=-t.column+1,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=r}}function s8(e,t){const r=e.tagName.toLowerCase();if(t.parser.tokenizer.state===Ye.PLAINTEXT)return;aa(t,ir(e));const n=t.parser.openElements.current;let a="namespaceURI"in n?n.namespaceURI:er.html;a===er.html&&r==="svg"&&(a=er.svg);const i=pg({...e,children:[]},{space:a===er.svg?"svg":"html"}),s={type:ye.START_TAG,tagName:r,tagID:na(r),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in i?i.attrs:[],location:Ka(e)};t.parser.currentToken=s,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=r}function u8(e,t){const r=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&Qp.includes(r)||t.parser.tokenizer.state===Ye.PLAINTEXT)return;aa(t,As(e));const n={type:ye.END_TAG,tagName:r,tagID:na(r),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:Ka(e)};t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken),r===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===Ye.RCDATA||t.parser.tokenizer.state===Ye.RAWTEXT||t.parser.tokenizer.state===Ye.SCRIPT_DATA)&&(t.parser.tokenizer.state=Ye.DATA)}function l8(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function Ka(e){const t=ir(e)||{line:void 0,column:void 0,offset:void 0},r=As(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:r.line,endCol:r.column,endOffset:r.offset}}function o8(e){return"children"in e?yn({...e,children:[]}):yn(e)}function au(e){return function(t,r){return vf(t,{...e,file:r})}}const ln=["ariaDescribedBy","ariaLabel","ariaLabelledBy"],Pr={ancestors:{tbody:["table"],td:["table"],th:["table"],thead:["table"],tfoot:["table"],tr:["table"]},attributes:{a:[...ln,"dataFootnoteBackref","dataFootnoteRef",["className","data-footnote-backref"],"href"],blockquote:["cite"],code:[["className",/^language-./]],del:["cite"],div:["itemScope","itemType"],dl:[...ln],h2:[["className","sr-only"]],img:[...ln,"longDesc","src"],input:[["disabled",!0],["type","checkbox"]],ins:["cite"],li:[["className","task-list-item"]],ol:[...ln,["className","contains-task-list"]],q:["cite"],section:["dataFootnotes",["className","footnotes"]],source:["srcSet"],summary:[...ln],table:[...ln],ul:[...ln,["className","contains-task-list"]],"*":["abbr","accept","acceptCharset","accessKey","action","align","alt","axis","border","cellPadding","cellSpacing","char","charOff","charSet","checked","clear","colSpan","color","cols","compact","coords","dateTime","dir","encType","frame","hSpace","headers","height","hrefLang","htmlFor","id","isMap","itemProp","label","lang","maxLength","media","method","multiple","name","noHref","noShade","noWrap","open","prompt","readOnly","rev","rowSpan","rows","rules","scope","selected","shape","size","span","start","summary","tabIndex","title","useMap","vAlign","value","width"]},clobber:["ariaDescribedBy","ariaLabelledBy","id","name"],clobberPrefix:"user-content-",protocols:{cite:["http","https"],href:["http","https","irc","ircs","mailto","xmpp"],longDesc:["http","https"],src:["http","https"]},required:{input:{disabled:!0,type:"checkbox"}},strip:["script"],tagNames:["a","b","blockquote","br","code","dd","del","details","div","dl","dt","em","h1","h2","h3","h4","h5","h6","hr","i","img","input","ins","kbd","li","ol","p","picture","pre","q","rp","rt","ruby","s","samp","section","source","span","strike","strong","sub","summary","sup","table","tbody","td","tfoot","th","thead","tr","tt","ul","var"]},Br={}.hasOwnProperty;function c8(e,t){let r={type:"root",children:[]};const n={schema:t?{...Pr,...t}:Pr,stack:[]},a=Cf(n,e);return a&&(Array.isArray(a)?a.length===1?r=a[0]:r.children=a:r=a),r}function Cf(e,t){if(t&&typeof t=="object"){const r=t;switch(typeof r.type=="string"?r.type:""){case"comment":return h8(e,r);case"doctype":return d8(e,r);case"element":return f8(e,r);case"root":return m8(e,r);case"text":return p8(e,r)}}}function h8(e,t){if(e.schema.allowComments){const r=typeof t.value=="string"?t.value:"",n=r.indexOf("-->"),i={type:"comment",value:n<0?r:r.slice(0,n)};return Za(i,t),i}}function d8(e,t){if(e.schema.allowDoctypes){const r={type:"doctype"};return Za(r,t),r}}function f8(e,t){const r=typeof t.tagName=="string"?t.tagName:"";e.stack.push(r);const n=Sf(e,t.children),a=g8(e,t.properties);e.stack.pop();let i=!1;if(r&&r!=="*"&&(!e.schema.tagNames||e.schema.tagNames.includes(r))&&(i=!0,e.schema.ancestors&&Br.call(e.schema.ancestors,r))){const u=e.schema.ancestors[r];let l=-1;for(i=!1;++l<u.length;)e.stack.includes(u[l])&&(i=!0)}if(!i)return e.schema.strip&&!e.schema.strip.includes(r)?n:void 0;const s={type:"element",tagName:r,properties:a,children:n};return Za(s,t),s}function m8(e,t){const n={type:"root",children:Sf(e,t.children)};return Za(n,t),n}function p8(e,t){const n={type:"text",value:typeof t.value=="string"?t.value:""};return Za(n,t),n}function Sf(e,t){const r=[];if(Array.isArray(t)){const n=t;let a=-1;for(;++a<n.length;){const i=Cf(e,n[a]);i&&(Array.isArray(i)?r.push(...i):r.push(i))}}return r}function g8(e,t){const r=e.stack[e.stack.length-1],n=e.schema.attributes,a=e.schema.required,i=n&&Br.call(n,r)?n[r]:void 0,s=n&&Br.call(n,"*")?n["*"]:void 0,u=t&&typeof t=="object"?t:{},l={};let o;for(o in u)if(Br.call(u,o)){const c=u[o];let h=Ac(e,Cc(i,o),o,c);h==null&&(h=Ac(e,Cc(s,o),o,c)),h!=null&&(l[o]=h)}if(a&&Br.call(a,r)){const c=a[r];for(o in c)Br.call(c,o)&&!Br.call(l,o)&&(l[o]=c[o])}return l}function Ac(e,t,r,n){return t?Array.isArray(n)?b8(e,t,r,n):If(e,t,r,n):void 0}function b8(e,t,r,n){let a=-1;const i=[];for(;++a<n.length;){const s=If(e,t,r,n[a]);(typeof s=="number"||typeof s=="string")&&i.push(s)}return i}function If(e,t,r,n){if(!(typeof n!="boolean"&&typeof n!="number"&&typeof n!="string")&&x8(e,r,n)){if(typeof t=="object"&&t.length>1){let a=!1,i=0;for(;++i<t.length;){const s=t[i];if(s&&typeof s=="object"&&"flags"in s){if(s.test(String(n))){a=!0;break}}else if(s===n){a=!0;break}}if(!a)return}return e.schema.clobber&&e.schema.clobberPrefix&&e.schema.clobber.includes(r)?e.schema.clobberPrefix+n:n}}function x8(e,t,r){const n=e.schema.protocols&&Br.call(e.schema.protocols,t)?e.schema.protocols[t]:void 0;if(!n||n.length===0)return!0;const a=String(r),i=a.indexOf(":"),s=a.indexOf("?"),u=a.indexOf("#"),l=a.indexOf("/");if(i<0||l>-1&&i>l||s>-1&&i>s||u>-1&&i>u)return!0;let o=-1;for(;++o<n.length;){const c=n[o];if(i===c.length&&a.slice(0,c.length)===c)return!0}return!1}function Za(e,t){const r=Tf(t);t.data&&(e.data=yn(t.data)),r&&(e.position=r)}function Cc(e,t){let r,n=-1;if(e)for(;++n<e.length;){const a=e[n],i=typeof a=="string"?a:a[0];if(i===t)return a;i==="data*"&&(r=a)}if(t.length>4&&t.slice(0,4).toLowerCase()==="data")return r}function _f(e){return function(t){return c8(t,e)}}function E8(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function y8(e,t,r){const a=Va((r||{}).ignore||[]),i=T8(t);let s=-1;for(;++s<i.length;)Xa(e,"text",u);function u(o,c){let h=-1,f;for(;++h<c.length;){const p=c[h],b=f?f.children:void 0;if(a(p,b?b.indexOf(p):void 0,f))return;f=p}if(f)return l(o,c)}function l(o,c){const h=c[c.length-1],f=i[s][0],p=i[s][1];let b=0;const T=h.children.indexOf(o);let k=!1,C=[];f.lastIndex=0;let w=f.exec(o.value);for(;w;){const H=w.index,z={index:w.index,input:w.input,stack:[...c,o]};let O=p(...w,z);if(typeof O=="string"&&(O=O.length>0?{type:"text",value:O}:void 0),O===!1?f.lastIndex=H+1:(b!==H&&C.push({type:"text",value:o.value.slice(b,H)}),Array.isArray(O)?C.push(...O):O&&C.push(O),b=H+w[0].length,k=!0),!f.global)break;w=f.exec(o.value)}return k?(b<o.value.length&&C.push({type:"text",value:o.value.slice(b)}),h.children.splice(T,1,...C)):C=[o],T+C.length}}function T8(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const r=!e[0]||Array.isArray(e[0])?e:[e];let n=-1;for(;++n<r.length;){const a=r[n];t.push([v8(a[0]),k8(a[1])])}return t}function v8(e){return typeof e=="string"?new RegExp(E8(e),"g"):e}function k8(e){return typeof e=="function"?e:function(){return e}}const n0="phrasing",a0=["autolink","link","image","label"];function w8(){return{transforms:[L8],enter:{literalAutolink:C8,literalAutolinkEmail:i0,literalAutolinkHttp:i0,literalAutolinkWww:i0},exit:{literalAutolink:N8,literalAutolinkEmail:_8,literalAutolinkHttp:S8,literalAutolinkWww:I8}}}function A8(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:n0,notInConstruct:a0},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:n0,notInConstruct:a0},{character:":",before:"[ps]",after:"\\/",inConstruct:n0,notInConstruct:a0}]}}function C8(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function i0(e){this.config.enter.autolinkProtocol.call(this,e)}function S8(e){this.config.exit.autolinkProtocol.call(this,e)}function I8(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function _8(e){this.config.exit.autolinkEmail.call(this,e)}function N8(e){this.exit(e)}function L8(e){y8(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,R8],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),D8]],{ignore:["link","linkReference"]})}function R8(e,t,r,n,a){let i="";if(!Nf(a)||(/^w/i.test(t)&&(r=t+r,t="",i="http://"),!O8(r)))return!1;const s=M8(r+n);if(!s[0])return!1;const u={type:"link",title:null,url:i+t+s[0],children:[{type:"text",value:t+s[0]}]};return s[1]?[u,{type:"text",value:s[1]}]:u}function D8(e,t,r,n){return!Nf(n,!0)||/[-\d_]$/.test(r)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+r,children:[{type:"text",value:t+"@"+r}]}}function O8(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function M8(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let r=t[0],n=r.indexOf(")");const a=Bl(e,"(");let i=Bl(e,")");for(;n!==-1&&a>i;)e+=r.slice(0,n+1),r=r.slice(n+1),n=r.indexOf(")"),i++;return[e,r]}function Nf(e,t){const r=e.input.charCodeAt(e.index-1);return(e.index===0||En(r)||Es(r))&&(!t||r!==47)}function Yt(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}Lf.peek=j8;function P8(){this.buffer()}function B8(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function F8(){this.buffer()}function H8(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function z8(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=Yt(this.sliceSerialize(e)).toLowerCase(),r.label=t}function $8(e){this.exit(e)}function U8(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=Yt(this.sliceSerialize(e)).toLowerCase(),r.label=t}function q8(e){this.exit(e)}function j8(){return"["}function Lf(e,t,r,n){const a=r.createTracker(n);let i=a.move("[^");const s=r.enter("footnoteReference"),u=r.enter("reference");return i+=a.move(r.safe(r.associationId(e),{after:"]",before:i})),u(),s(),i+=a.move("]"),i}function G8(){return{enter:{gfmFootnoteCallString:P8,gfmFootnoteCall:B8,gfmFootnoteDefinitionLabelString:F8,gfmFootnoteDefinition:H8},exit:{gfmFootnoteCallString:z8,gfmFootnoteCall:$8,gfmFootnoteDefinitionLabelString:U8,gfmFootnoteDefinition:q8}}}function V8(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:r,footnoteReference:Lf},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function r(n,a,i,s){const u=i.createTracker(s);let l=u.move("[^");const o=i.enter("footnoteDefinition"),c=i.enter("label");return l+=u.move(i.safe(i.associationId(n),{before:l,after:"]"})),c(),l+=u.move("]:"),n.children&&n.children.length>0&&(u.shift(4),l+=u.move((t?`
|
|
408
|
+
`:" ")+i.indentLines(i.containerFlow(n,u.current()),t?Rf:Y8))),o(),l}}function Y8(e,t,r){return t===0?e:Rf(e,t,r)}function Rf(e,t,r){return(r?"":" ")+e}const W8=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Df.peek=J8;function X8(){return{canContainEols:["delete"],enter:{strikethrough:K8},exit:{strikethrough:Z8}}}function Q8(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:W8}],handlers:{delete:Df}}}function K8(e){this.enter({type:"delete",children:[]},e)}function Z8(e){this.exit(e)}function Df(e,t,r,n){const a=r.createTracker(n),i=r.enter("strikethrough");let s=a.move("~~");return s+=r.containerPhrasing(e,{...a.current(),before:s,after:"~"}),s+=a.move("~~"),i(),s}function J8(){return"~"}function e9(e){return e.length}function t9(e,t){const r=t||{},n=(r.align||[]).concat(),a=r.stringLength||e9,i=[],s=[],u=[],l=[];let o=0,c=-1;for(;++c<e.length;){const E=[],T=[];let k=-1;for(e[c].length>o&&(o=e[c].length);++k<e[c].length;){const C=r9(e[c][k]);if(r.alignDelimiters!==!1){const w=a(C);T[k]=w,(l[k]===void 0||w>l[k])&&(l[k]=w)}E.push(C)}s[c]=E,u[c]=T}let h=-1;if(typeof n=="object"&&"length"in n)for(;++h<o;)i[h]=Sc(n[h]);else{const E=Sc(n);for(;++h<o;)i[h]=E}h=-1;const f=[],p=[];for(;++h<o;){const E=i[h];let T="",k="";E===99?(T=":",k=":"):E===108?T=":":E===114&&(k=":");let C=r.alignDelimiters===!1?1:Math.max(1,l[h]-T.length-k.length);const w=T+"-".repeat(C)+k;r.alignDelimiters!==!1&&(C=T.length+C+k.length,C>l[h]&&(l[h]=C),p[h]=C),f[h]=w}s.splice(1,0,f),u.splice(1,0,p),c=-1;const b=[];for(;++c<s.length;){const E=s[c],T=u[c];h=-1;const k=[];for(;++h<o;){const C=E[h]||"";let w="",H="";if(r.alignDelimiters!==!1){const z=l[h]-(T[h]||0),O=i[h];O===114?w=" ".repeat(z):O===99?z%2?(w=" ".repeat(z/2+.5),H=" ".repeat(z/2-.5)):(w=" ".repeat(z/2),H=w):H=" ".repeat(z)}r.delimiterStart!==!1&&!h&&k.push("|"),r.padding!==!1&&!(r.alignDelimiters===!1&&C==="")&&(r.delimiterStart!==!1||h)&&k.push(" "),r.alignDelimiters!==!1&&k.push(w),k.push(C),r.alignDelimiters!==!1&&k.push(H),r.padding!==!1&&k.push(" "),(r.delimiterEnd!==!1||h!==o-1)&&k.push("|")}b.push(r.delimiterEnd===!1?k.join("").replace(/ +$/,""):k.join(""))}return b.join(`
|
|
409
|
+
`)}function r9(e){return e==null?"":String(e)}function Sc(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function n9(e,t,r,n){const a=r.enter("blockquote"),i=r.createTracker(n);i.move("> "),i.shift(2);const s=r.indentLines(r.containerFlow(e,i.current()),a9);return a(),s}function a9(e,t,r){return">"+(r?"":" ")+e}function i9(e,t){return Ic(e,t.inConstruct,!0)&&!Ic(e,t.notInConstruct,!1)}function Ic(e,t,r){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return r;let n=-1;for(;++n<t.length;)if(e.includes(t[n]))return!0;return!1}function _c(e,t,r,n){let a=-1;for(;++a<r.unsafe.length;)if(r.unsafe[a].character===`
|
|
410
|
+
`&&i9(r.stack,r.unsafe[a]))return/[ \t]/.test(n.before)?"":" ";return`\\
|
|
411
|
+
`}function s9(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function u9(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function l9(e,t,r,n){const a=u9(r),i=e.value||"",s=a==="`"?"GraveAccent":"Tilde";if(s9(e,r)){const h=r.enter("codeIndented"),f=r.indentLines(i,o9);return h(),f}const u=r.createTracker(n),l=a.repeat(Math.max(Fd(i,a)+1,3)),o=r.enter("codeFenced");let c=u.move(l);if(e.lang){const h=r.enter(`codeFencedLang${s}`);c+=u.move(r.safe(e.lang,{before:c,after:" ",encode:["`"],...u.current()})),h()}if(e.lang&&e.meta){const h=r.enter(`codeFencedMeta${s}`);c+=u.move(" "),c+=u.move(r.safe(e.meta,{before:c,after:`
|
|
412
|
+
`,encode:["`"],...u.current()})),h()}return c+=u.move(`
|
|
413
|
+
`),i&&(c+=u.move(i+`
|
|
414
|
+
`)),c+=u.move(l),o(),c}function o9(e,t,r){return(r?"":" ")+e}function el(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function c9(e,t,r,n){const a=el(r),i=a==='"'?"Quote":"Apostrophe",s=r.enter("definition");let u=r.enter("label");const l=r.createTracker(n);let o=l.move("[");return o+=l.move(r.safe(r.associationId(e),{before:o,after:"]",...l.current()})),o+=l.move("]: "),u(),!e.url||/[\0- \u007F]/.test(e.url)?(u=r.enter("destinationLiteral"),o+=l.move("<"),o+=l.move(r.safe(e.url,{before:o,after:">",...l.current()})),o+=l.move(">")):(u=r.enter("destinationRaw"),o+=l.move(r.safe(e.url,{before:o,after:e.title?" ":`
|
|
415
|
+
`,...l.current()}))),u(),e.title&&(u=r.enter(`title${i}`),o+=l.move(" "+a),o+=l.move(r.safe(e.title,{before:o,after:a,...l.current()})),o+=l.move(a),u()),s(),o}function h9(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function za(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Wn(e){if(e===null||Re(e)||En(e))return 1;if(Es(e))return 2}function Yi(e,t,r){const n=Wn(e),a=Wn(t);return n===void 0?a===void 0?r==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:a===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:n===1?a===void 0?{inside:!1,outside:!1}:a===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:a===void 0?{inside:!1,outside:!1}:a===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}Of.peek=d9;function Of(e,t,r,n){const a=h9(r),i=r.enter("emphasis"),s=r.createTracker(n),u=s.move(a);let l=s.move(r.containerPhrasing(e,{after:a,before:u,...s.current()}));const o=l.charCodeAt(0),c=Yi(n.before.charCodeAt(n.before.length-1),o,a);c.inside&&(l=za(o)+l.slice(1));const h=l.charCodeAt(l.length-1),f=Yi(n.after.charCodeAt(0),h,a);f.inside&&(l=l.slice(0,-1)+za(h));const p=s.move(a);return i(),r.attentionEncodeSurroundingInfo={after:f.outside,before:c.outside},u+l+p}function d9(e,t,r){return r.options.emphasis||"*"}const f9={};function tl(e,t){const r=f9,n=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,a=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return Mf(e,n,a)}function Mf(e,t,r){if(m9(e)){if("value"in e)return e.type==="html"&&!r?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Nc(e.children,t,r)}return Array.isArray(e)?Nc(e,t,r):""}function Nc(e,t,r){const n=[];let a=-1;for(;++a<e.length;)n[a]=Mf(e[a],t,r);return n.join("")}function m9(e){return!!(e&&typeof e=="object")}function p9(e,t){let r=!1;return Ht(e,function(n){if("value"in n&&/\r?\n|\r/.test(n.value)||n.type==="break")return r=!0,Z0}),!!((!e.depth||e.depth<3)&&tl(e)&&(t.options.setext||r))}function g9(e,t,r,n){const a=Math.max(Math.min(6,e.depth||1),1),i=r.createTracker(n);if(p9(e,r)){const c=r.enter("headingSetext"),h=r.enter("phrasing"),f=r.containerPhrasing(e,{...i.current(),before:`
|
|
416
|
+
`,after:`
|
|
417
|
+
`});return h(),c(),f+`
|
|
418
|
+
`+(a===1?"=":"-").repeat(f.length-(Math.max(f.lastIndexOf("\r"),f.lastIndexOf(`
|
|
419
|
+
`))+1))}const s="#".repeat(a),u=r.enter("headingAtx"),l=r.enter("phrasing");i.move(s+" ");let o=r.containerPhrasing(e,{before:"# ",after:`
|
|
420
|
+
`,...i.current()});return/^[\t ]/.test(o)&&(o=za(o.charCodeAt(0))+o.slice(1)),o=o?s+" "+o:s,r.options.closeAtx&&(o+=" "+s),l(),u(),o}Pf.peek=b9;function Pf(e){return e.value||""}function b9(){return"<"}Bf.peek=x9;function Bf(e,t,r,n){const a=el(r),i=a==='"'?"Quote":"Apostrophe",s=r.enter("image");let u=r.enter("label");const l=r.createTracker(n);let o=l.move("![");return o+=l.move(r.safe(e.alt,{before:o,after:"]",...l.current()})),o+=l.move("]("),u(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(u=r.enter("destinationLiteral"),o+=l.move("<"),o+=l.move(r.safe(e.url,{before:o,after:">",...l.current()})),o+=l.move(">")):(u=r.enter("destinationRaw"),o+=l.move(r.safe(e.url,{before:o,after:e.title?" ":")",...l.current()}))),u(),e.title&&(u=r.enter(`title${i}`),o+=l.move(" "+a),o+=l.move(r.safe(e.title,{before:o,after:a,...l.current()})),o+=l.move(a),u()),o+=l.move(")"),s(),o}function x9(){return"!"}Ff.peek=E9;function Ff(e,t,r,n){const a=e.referenceType,i=r.enter("imageReference");let s=r.enter("label");const u=r.createTracker(n);let l=u.move("![");const o=r.safe(e.alt,{before:l,after:"]",...u.current()});l+=u.move(o+"]["),s();const c=r.stack;r.stack=[],s=r.enter("reference");const h=r.safe(r.associationId(e),{before:l,after:"]",...u.current()});return s(),r.stack=c,i(),a==="full"||!o||o!==h?l+=u.move(h+"]"):a==="shortcut"?l=l.slice(0,-1):l+=u.move("]"),l}function E9(){return"!"}Hf.peek=y9;function Hf(e,t,r){let n=e.value||"",a="`",i=-1;for(;new RegExp("(^|[^`])"+a+"([^`]|$)").test(n);)a+="`";for(/[^ \r\n]/.test(n)&&(/^[ \r\n]/.test(n)&&/[ \r\n]$/.test(n)||/^`|`$/.test(n))&&(n=" "+n+" ");++i<r.unsafe.length;){const s=r.unsafe[i],u=r.compilePattern(s);let l;if(s.atBreak)for(;l=u.exec(n);){let o=l.index;n.charCodeAt(o)===10&&n.charCodeAt(o-1)===13&&o--,n=n.slice(0,o)+" "+n.slice(l.index+1)}}return a+n+a}function y9(){return"`"}function zf(e,t){const r=tl(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(r===e.url||"mailto:"+r===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}$f.peek=T9;function $f(e,t,r,n){const a=el(r),i=a==='"'?"Quote":"Apostrophe",s=r.createTracker(n);let u,l;if(zf(e,r)){const c=r.stack;r.stack=[],u=r.enter("autolink");let h=s.move("<");return h+=s.move(r.containerPhrasing(e,{before:h,after:">",...s.current()})),h+=s.move(">"),u(),r.stack=c,h}u=r.enter("link"),l=r.enter("label");let o=s.move("[");return o+=s.move(r.containerPhrasing(e,{before:o,after:"](",...s.current()})),o+=s.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=r.enter("destinationLiteral"),o+=s.move("<"),o+=s.move(r.safe(e.url,{before:o,after:">",...s.current()})),o+=s.move(">")):(l=r.enter("destinationRaw"),o+=s.move(r.safe(e.url,{before:o,after:e.title?" ":")",...s.current()}))),l(),e.title&&(l=r.enter(`title${i}`),o+=s.move(" "+a),o+=s.move(r.safe(e.title,{before:o,after:a,...s.current()})),o+=s.move(a),l()),o+=s.move(")"),u(),o}function T9(e,t,r){return zf(e,r)?"<":"["}Uf.peek=v9;function Uf(e,t,r,n){const a=e.referenceType,i=r.enter("linkReference");let s=r.enter("label");const u=r.createTracker(n);let l=u.move("[");const o=r.containerPhrasing(e,{before:l,after:"]",...u.current()});l+=u.move(o+"]["),s();const c=r.stack;r.stack=[],s=r.enter("reference");const h=r.safe(r.associationId(e),{before:l,after:"]",...u.current()});return s(),r.stack=c,i(),a==="full"||!o||o!==h?l+=u.move(h+"]"):a==="shortcut"?l=l.slice(0,-1):l+=u.move("]"),l}function v9(){return"["}function rl(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function k9(e){const t=rl(e),r=e.options.bulletOther;if(!r)return t==="*"?"-":"*";if(r!=="*"&&r!=="+"&&r!=="-")throw new Error("Cannot serialize items with `"+r+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(r===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+r+"`) to be different");return r}function w9(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function qf(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function A9(e,t,r,n){const a=r.enter("list"),i=r.bulletCurrent;let s=e.ordered?w9(r):rl(r);const u=e.ordered?s==="."?")":".":k9(r);let l=t&&r.bulletLastUsed?s===r.bulletLastUsed:!1;if(!e.ordered){const c=e.children?e.children[0]:void 0;if((s==="*"||s==="-")&&c&&(!c.children||!c.children[0])&&r.stack[r.stack.length-1]==="list"&&r.stack[r.stack.length-2]==="listItem"&&r.stack[r.stack.length-3]==="list"&&r.stack[r.stack.length-4]==="listItem"&&r.indexStack[r.indexStack.length-1]===0&&r.indexStack[r.indexStack.length-2]===0&&r.indexStack[r.indexStack.length-3]===0&&(l=!0),qf(r)===s&&c){let h=-1;for(;++h<e.children.length;){const f=e.children[h];if(f&&f.type==="listItem"&&f.children&&f.children[0]&&f.children[0].type==="thematicBreak"){l=!0;break}}}}l&&(s=u),r.bulletCurrent=s;const o=r.containerFlow(e,n);return r.bulletLastUsed=s,r.bulletCurrent=i,a(),o}function C9(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function S9(e,t,r,n){const a=C9(r);let i=r.bulletCurrent||rl(r);t&&t.type==="list"&&t.ordered&&(i=(typeof t.start=="number"&&t.start>-1?t.start:1)+(r.options.incrementListMarker===!1?0:t.children.indexOf(e))+i);let s=i.length+1;(a==="tab"||a==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(s=Math.ceil(s/4)*4);const u=r.createTracker(n);u.move(i+" ".repeat(s-i.length)),u.shift(s);const l=r.enter("listItem"),o=r.indentLines(r.containerFlow(e,u.current()),c);return l(),o;function c(h,f,p){return f?(p?"":" ".repeat(s))+h:(p?i:i+" ".repeat(s-i.length))+h}}function I9(e,t,r,n){const a=r.enter("paragraph"),i=r.enter("phrasing"),s=r.containerPhrasing(e,n);return i(),a(),s}const _9=Va(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function N9(e,t,r,n){return(e.children.some(function(s){return _9(s)})?r.containerPhrasing:r.containerFlow).call(r,e,n)}function L9(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}jf.peek=R9;function jf(e,t,r,n){const a=L9(r),i=r.enter("strong"),s=r.createTracker(n),u=s.move(a+a);let l=s.move(r.containerPhrasing(e,{after:a,before:u,...s.current()}));const o=l.charCodeAt(0),c=Yi(n.before.charCodeAt(n.before.length-1),o,a);c.inside&&(l=za(o)+l.slice(1));const h=l.charCodeAt(l.length-1),f=Yi(n.after.charCodeAt(0),h,a);f.inside&&(l=l.slice(0,-1)+za(h));const p=s.move(a+a);return i(),r.attentionEncodeSurroundingInfo={after:f.outside,before:c.outside},u+l+p}function R9(e,t,r){return r.options.strong||"*"}function D9(e,t,r,n){return r.safe(e.value,n)}function O9(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function M9(e,t,r){const n=(qf(r)+(r.options.ruleSpaces?" ":"")).repeat(O9(r));return r.options.ruleSpaces?n.slice(0,-1):n}const Gf={blockquote:n9,break:_c,code:l9,definition:c9,emphasis:Of,hardBreak:_c,heading:g9,html:Pf,image:Bf,imageReference:Ff,inlineCode:Hf,link:$f,linkReference:Uf,list:A9,listItem:S9,paragraph:I9,root:N9,strong:jf,text:D9,thematicBreak:M9},Lc=document.createElement("i");function nl(e){const t="&"+e+";";Lc.innerHTML=t;const r=Lc.textContent;return r.charCodeAt(r.length-1)===59&&e!=="semi"||r===t?!1:r}function Vf(e,t){const r=Number.parseInt(e,t);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCodePoint(r)}const P9=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function B9(e){return e.replace(P9,F9)}function F9(e,t,r){if(t)return t;if(r.charCodeAt(0)===35){const a=r.charCodeAt(1),i=a===120||a===88;return Vf(r.slice(i?2:1),i?16:10)}return nl(r)||e}function H9(){return{enter:{table:z9,tableData:Rc,tableHeader:Rc,tableRow:U9},exit:{codeText:q9,table:$9,tableData:s0,tableHeader:s0,tableRow:s0}}}function z9(e){const t=e._align;this.enter({type:"table",align:t.map(function(r){return r==="none"?null:r}),children:[]},e),this.data.inTable=!0}function $9(e){this.exit(e),this.data.inTable=void 0}function U9(e){this.enter({type:"tableRow",children:[]},e)}function s0(e){this.exit(e)}function Rc(e){this.enter({type:"tableCell",children:[]},e)}function q9(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,j9));const r=this.stack[this.stack.length-1];r.type,r.value=t,this.exit(e)}function j9(e,t){return t==="|"?t:e}function G9(e){const t=e||{},r=t.tableCellPadding,n=t.tablePipeAlign,a=t.stringLength,i=r?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
421
|
+
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:f,table:s,tableCell:l,tableRow:u}};function s(p,b,E,T){return o(c(p,E,T),p.align)}function u(p,b,E,T){const k=h(p,E,T),C=o([k]);return C.slice(0,C.indexOf(`
|
|
422
|
+
`))}function l(p,b,E,T){const k=E.enter("tableCell"),C=E.enter("phrasing"),w=E.containerPhrasing(p,{...T,before:i,after:i});return C(),k(),w}function o(p,b){return t9(p,{align:b,alignDelimiters:n,padding:r,stringLength:a})}function c(p,b,E){const T=p.children;let k=-1;const C=[],w=b.enter("table");for(;++k<T.length;)C[k]=h(T[k],b,E);return w(),C}function h(p,b,E){const T=p.children;let k=-1;const C=[],w=b.enter("tableRow");for(;++k<T.length;)C[k]=l(T[k],p,b,E);return w(),C}function f(p,b,E){let T=Gf.inlineCode(p,b,E);return E.stack.includes("tableCell")&&(T=T.replace(/\|/g,"\\$&")),T}}function V9(){return{exit:{taskListCheckValueChecked:Dc,taskListCheckValueUnchecked:Dc,paragraph:W9}}}function Y9(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:X9}}}function Dc(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function W9(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const r=this.stack[this.stack.length-1];r.type;const n=r.children[0];if(n&&n.type==="text"){const a=t.children;let i=-1,s;for(;++i<a.length;){const u=a[i];if(u.type==="paragraph"){s=u;break}}s===r&&(n.value=n.value.slice(1),n.value.length===0?r.children.shift():r.position&&n.position&&typeof n.position.start.offset=="number"&&(n.position.start.column++,n.position.start.offset++,r.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function X9(e,t,r,n){const a=e.children[0],i=typeof e.checked=="boolean"&&a&&a.type==="paragraph",s="["+(e.checked?"x":" ")+"] ",u=r.createTracker(n);i&&u.move(s);let l=Gf.listItem(e,t,r,{...n,...u.current()});return i&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,o)),l;function o(c){return c+s}}function Q9(){return[w8(),G8(),X8(),H9(),V9()]}function K9(e){return{extensions:[A8(),V8(e),Q8(),G9(e),Y9()]}}function St(e,t,r,n){const a=e.length;let i=0,s;if(t<0?t=-t>a?0:a+t:t=t>a?a:t,r=r>0?r:0,n.length<1e4)s=Array.from(n),s.unshift(t,r),e.splice(...s);else for(r&&e.splice(t,r);i<n.length;)s=n.slice(i,i+1e4),s.unshift(t,0),e.splice(...s),i+=1e4,t+=1e4}function Dt(e,t){return e.length>0?(St(e,e.length,0,t),e):t}const Oc={}.hasOwnProperty;function Yf(e){const t={};let r=-1;for(;++r<e.length;)Z9(t,e[r]);return t}function Z9(e,t){let r;for(r in t){const a=(Oc.call(e,r)?e[r]:void 0)||(e[r]={}),i=t[r];let s;if(i)for(s in i){Oc.call(a,s)||(a[s]=[]);const u=i[s];J9(a[s],Array.isArray(u)?u:u?[u]:[])}}}function J9(e,t){let r=-1;const n=[];for(;++r<t.length;)(t[r].add==="after"?e:n).push(t[r]);St(e,0,0,n)}const ex={tokenize:sx,partial:!0},Wf={tokenize:ux,partial:!0},Xf={tokenize:lx,partial:!0},Qf={tokenize:ox,partial:!0},tx={tokenize:cx,partial:!0},Kf={name:"wwwAutolink",tokenize:ax,previous:Jf},Zf={name:"protocolAutolink",tokenize:ix,previous:em},Ar={name:"emailAutolink",tokenize:nx,previous:tm},sr={};function rx(){return{text:sr}}let on=48;for(;on<123;)sr[on]=Ar,on++,on===58?on=65:on===91&&(on=97);sr[43]=Ar;sr[45]=Ar;sr[46]=Ar;sr[95]=Ar;sr[72]=[Ar,Zf];sr[104]=[Ar,Zf];sr[87]=[Ar,Kf];sr[119]=[Ar,Kf];function nx(e,t,r){const n=this;let a,i;return s;function s(h){return!iu(h)||!tm.call(n,n.previous)||al(n.events)?r(h):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),u(h))}function u(h){return iu(h)?(e.consume(h),u):h===64?(e.consume(h),l):r(h)}function l(h){return h===46?e.check(tx,c,o)(h):h===45||h===95||ot(h)?(i=!0,e.consume(h),l):c(h)}function o(h){return e.consume(h),a=!0,l}function c(h){return i&&a&&bt(n.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(h)):r(h)}}function ax(e,t,r){const n=this;return a;function a(s){return s!==87&&s!==119||!Jf.call(n,n.previous)||al(n.events)?r(s):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(ex,e.attempt(Wf,e.attempt(Xf,i),r),r)(s))}function i(s){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(s)}}function ix(e,t,r){const n=this;let a="",i=!1;return s;function s(h){return(h===72||h===104)&&em.call(n,n.previous)&&!al(n.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),a+=String.fromCodePoint(h),e.consume(h),u):r(h)}function u(h){if(bt(h)&&a.length<5)return a+=String.fromCodePoint(h),e.consume(h),u;if(h===58){const f=a.toLowerCase();if(f==="http"||f==="https")return e.consume(h),l}return r(h)}function l(h){return h===47?(e.consume(h),i?o:(i=!0,l)):r(h)}function o(h){return h===null||Ui(h)||Re(h)||En(h)||Es(h)?r(h):e.attempt(Wf,e.attempt(Xf,c),r)(h)}function c(h){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(h)}}function sx(e,t,r){let n=0;return a;function a(s){return(s===87||s===119)&&n<3?(n++,e.consume(s),a):s===46&&n===3?(e.consume(s),i):r(s)}function i(s){return s===null?r(s):t(s)}}function ux(e,t,r){let n,a,i;return s;function s(o){return o===46||o===95?e.check(Qf,l,u)(o):o===null||Re(o)||En(o)||o!==45&&Es(o)?l(o):(i=!0,e.consume(o),s)}function u(o){return o===95?n=!0:(a=n,n=void 0),e.consume(o),s}function l(o){return a||n||!i?r(o):t(o)}}function lx(e,t){let r=0,n=0;return a;function a(s){return s===40?(r++,e.consume(s),a):s===41&&n<r?i(s):s===33||s===34||s===38||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===60||s===63||s===93||s===95||s===126?e.check(Qf,t,i)(s):s===null||Re(s)||En(s)?t(s):(e.consume(s),a)}function i(s){return s===41&&n++,e.consume(s),a}}function ox(e,t,r){return n;function n(u){return u===33||u===34||u===39||u===41||u===42||u===44||u===46||u===58||u===59||u===63||u===95||u===126?(e.consume(u),n):u===38?(e.consume(u),i):u===93?(e.consume(u),a):u===60||u===null||Re(u)||En(u)?t(u):r(u)}function a(u){return u===null||u===40||u===91||Re(u)||En(u)?t(u):n(u)}function i(u){return bt(u)?s(u):r(u)}function s(u){return u===59?(e.consume(u),n):bt(u)?(e.consume(u),s):r(u)}}function cx(e,t,r){return n;function n(i){return e.consume(i),a}function a(i){return ot(i)?r(i):t(i)}}function Jf(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Re(e)}function em(e){return!bt(e)}function tm(e){return!(e===47||iu(e))}function iu(e){return e===43||e===45||e===46||e===95||ot(e)}function al(e){let t=e.length,r=!1;for(;t--;){const n=e[t][1];if((n.type==="labelLink"||n.type==="labelImage")&&!n._balanced){r=!0;break}if(n._gfmAutolinkLiteralWalkedInto){r=!1;break}}return e.length>0&&!r&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),r}function ia(e){const t=[];let r=-1,n=0,a=0;for(;++r<e.length;){const i=e.charCodeAt(r);let s="";if(i===37&&ot(e.charCodeAt(r+1))&&ot(e.charCodeAt(r+2)))a=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(s=String.fromCharCode(i));else if(i>55295&&i<57344){const u=e.charCodeAt(r+1);i<56320&&u>56319&&u<57344?(s=String.fromCharCode(i,u),a=1):s="�"}else s=String.fromCharCode(i);s&&(t.push(e.slice(n,r),encodeURIComponent(s)),n=r+a+1,s=""),a&&(r+=a,a=0)}return t.join("")+e.slice(n)}function Cs(e,t,r){const n=[];let a=-1;for(;++a<e.length;){const i=e[a].resolveAll;i&&!n.includes(i)&&(t=i(t,r),n.push(i))}return t}const su={name:"attention",resolveAll:hx,tokenize:dx};function hx(e,t){let r=-1,n,a,i,s,u,l,o,c;for(;++r<e.length;)if(e[r][0]==="enter"&&e[r][1].type==="attentionSequence"&&e[r][1]._close){for(n=r;n--;)if(e[n][0]==="exit"&&e[n][1].type==="attentionSequence"&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[r][1]).charCodeAt(0)){if((e[n][1]._close||e[r][1]._open)&&(e[r][1].end.offset-e[r][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[r][1].end.offset-e[r][1].start.offset)%3))continue;l=e[n][1].end.offset-e[n][1].start.offset>1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;const h={...e[n][1].end},f={...e[r][1].start};Mc(h,-l),Mc(f,l),s={type:l>1?"strongSequence":"emphasisSequence",start:h,end:{...e[n][1].end}},u={type:l>1?"strongSequence":"emphasisSequence",start:{...e[r][1].start},end:f},i={type:l>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[r][1].start}},a={type:l>1?"strong":"emphasis",start:{...s.start},end:{...u.end}},e[n][1].end={...s.start},e[r][1].start={...u.end},o=[],e[n][1].end.offset-e[n][1].start.offset&&(o=Dt(o,[["enter",e[n][1],t],["exit",e[n][1],t]])),o=Dt(o,[["enter",a,t],["enter",s,t],["exit",s,t],["enter",i,t]]),o=Dt(o,Cs(t.parser.constructs.insideSpan.null,e.slice(n+1,r),t)),o=Dt(o,[["exit",i,t],["enter",u,t],["exit",u,t],["exit",a,t]]),e[r][1].end.offset-e[r][1].start.offset?(c=2,o=Dt(o,[["enter",e[r][1],t],["exit",e[r][1],t]])):c=0,St(e,n-1,r-n+3,o),r=n+o.length-c-2;break}}for(r=-1;++r<e.length;)e[r][1].type==="attentionSequence"&&(e[r][1].type="data");return e}function dx(e,t){const r=this.parser.constructs.attentionMarkers.null,n=this.previous,a=Wn(n);let i;return s;function s(l){return i=l,e.enter("attentionSequence"),u(l)}function u(l){if(l===i)return e.consume(l),u;const o=e.exit("attentionSequence"),c=Wn(l),h=!c||c===2&&a||r.includes(l),f=!a||a===2&&c||r.includes(n);return o._open=!!(i===42?h:h&&(a||!f)),o._close=!!(i===42?f:f&&(c||!h)),t(l)}}function Mc(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const fx={name:"autolink",tokenize:mx};function mx(e,t,r){let n=0;return a;function a(p){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i}function i(p){return bt(p)?(e.consume(p),s):p===64?r(p):o(p)}function s(p){return p===43||p===45||p===46||ot(p)?(n=1,u(p)):o(p)}function u(p){return p===58?(e.consume(p),n=0,l):(p===43||p===45||p===46||ot(p))&&n++<32?(e.consume(p),u):(n=0,o(p))}function l(p){return p===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):p===null||p===32||p===60||Ui(p)?r(p):(e.consume(p),l)}function o(p){return p===64?(e.consume(p),c):B5(p)?(e.consume(p),o):r(p)}function c(p){return ot(p)?h(p):r(p)}function h(p){return p===46?(e.consume(p),n=0,c):p===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):f(p)}function f(p){if((p===45||ot(p))&&n++<63){const b=p===45?f:h;return e.consume(p),b}return r(p)}}const Ja={partial:!0,tokenize:px};function px(e,t,r){return n;function n(i){return ke(i)?Te(e,a,"linePrefix")(i):a(i)}function a(i){return i===null||ue(i)?t(i):r(i)}}const rm={continuation:{tokenize:bx},exit:xx,name:"blockQuote",tokenize:gx};function gx(e,t,r){const n=this;return a;function a(s){if(s===62){const u=n.containerState;return u.open||(e.enter("blockQuote",{_container:!0}),u.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(s),e.exit("blockQuoteMarker"),i}return r(s)}function i(s){return ke(s)?(e.enter("blockQuotePrefixWhitespace"),e.consume(s),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(s))}}function bx(e,t,r){const n=this;return a;function a(s){return ke(s)?Te(e,i,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s):i(s)}function i(s){return e.attempt(rm,t,r)(s)}}function xx(e){e.exit("blockQuote")}const nm={name:"characterEscape",tokenize:Ex};function Ex(e,t,r){return n;function n(i){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(i),e.exit("escapeMarker"),a}function a(i){return H5(i)?(e.enter("characterEscapeValue"),e.consume(i),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(i)}}const am={name:"characterReference",tokenize:yx};function yx(e,t,r){const n=this;let a=0,i,s;return u;function u(h){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(h),e.exit("characterReferenceMarker"),l}function l(h){return h===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(h),e.exit("characterReferenceMarkerNumeric"),o):(e.enter("characterReferenceValue"),i=31,s=ot,c(h))}function o(h){return h===88||h===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(h),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),i=6,s=F5,c):(e.enter("characterReferenceValue"),i=7,s=J0,c(h))}function c(h){if(h===59&&a){const f=e.exit("characterReferenceValue");return s===ot&&!nl(n.sliceSerialize(f))?r(h):(e.enter("characterReferenceMarker"),e.consume(h),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return s(h)&&a++<i?(e.consume(h),c):r(h)}}const Pc={partial:!0,tokenize:vx},Bc={concrete:!0,name:"codeFenced",tokenize:Tx};function Tx(e,t,r){const n=this,a={partial:!0,tokenize:z};let i=0,s=0,u;return l;function l(O){return o(O)}function o(O){const U=n.events[n.events.length-1];return i=U&&U[1].type==="linePrefix"?U[2].sliceSerialize(U[1],!0).length:0,u=O,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c(O)}function c(O){return O===u?(s++,e.consume(O),c):s<3?r(O):(e.exit("codeFencedFenceSequence"),ke(O)?Te(e,h,"whitespace")(O):h(O))}function h(O){return O===null||ue(O)?(e.exit("codeFencedFence"),n.interrupt?t(O):e.check(Pc,E,H)(O)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),f(O))}function f(O){return O===null||ue(O)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),h(O)):ke(O)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Te(e,p,"whitespace")(O)):O===96&&O===u?r(O):(e.consume(O),f)}function p(O){return O===null||ue(O)?h(O):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),b(O))}function b(O){return O===null||ue(O)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),h(O)):O===96&&O===u?r(O):(e.consume(O),b)}function E(O){return e.attempt(a,H,T)(O)}function T(O){return e.enter("lineEnding"),e.consume(O),e.exit("lineEnding"),k}function k(O){return i>0&&ke(O)?Te(e,C,"linePrefix",i+1)(O):C(O)}function C(O){return O===null||ue(O)?e.check(Pc,E,H)(O):(e.enter("codeFlowValue"),w(O))}function w(O){return O===null||ue(O)?(e.exit("codeFlowValue"),C(O)):(e.consume(O),w)}function H(O){return e.exit("codeFenced"),t(O)}function z(O,U,q){let G=0;return P;function P(Y){return O.enter("lineEnding"),O.consume(Y),O.exit("lineEnding"),K}function K(Y){return O.enter("codeFencedFence"),ke(Y)?Te(O,j,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Y):j(Y)}function j(Y){return Y===u?(O.enter("codeFencedFenceSequence"),ce(Y)):q(Y)}function ce(Y){return Y===u?(G++,O.consume(Y),ce):G>=s?(O.exit("codeFencedFenceSequence"),ke(Y)?Te(O,re,"whitespace")(Y):re(Y)):q(Y)}function re(Y){return Y===null||ue(Y)?(O.exit("codeFencedFence"),U(Y)):q(Y)}}}function vx(e,t,r){const n=this;return a;function a(s){return s===null?r(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i)}function i(s){return n.parser.lazy[n.now().line]?r(s):t(s)}}const u0={name:"codeIndented",tokenize:wx},kx={partial:!0,tokenize:Ax};function wx(e,t,r){const n=this;return a;function a(o){return e.enter("codeIndented"),Te(e,i,"linePrefix",5)(o)}function i(o){const c=n.events[n.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?s(o):r(o)}function s(o){return o===null?l(o):ue(o)?e.attempt(kx,s,l)(o):(e.enter("codeFlowValue"),u(o))}function u(o){return o===null||ue(o)?(e.exit("codeFlowValue"),s(o)):(e.consume(o),u)}function l(o){return e.exit("codeIndented"),t(o)}}function Ax(e,t,r){const n=this;return a;function a(s){return n.parser.lazy[n.now().line]?r(s):ue(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a):Te(e,i,"linePrefix",5)(s)}function i(s){const u=n.events[n.events.length-1];return u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?t(s):ue(s)?a(s):r(s)}}const Cx={name:"codeText",previous:Ix,resolve:Sx,tokenize:_x};function Sx(e){let t=e.length-4,r=3,n,a;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(n=r;++n<t;)if(e[n][1].type==="codeTextData"){e[r][1].type="codeTextPadding",e[t][1].type="codeTextPadding",r+=2,t-=2;break}}for(n=r-1,t++;++n<=t;)a===void 0?n!==t&&e[n][1].type!=="lineEnding"&&(a=n):(n===t||e[n][1].type==="lineEnding")&&(e[a][1].type="codeTextData",n!==a+2&&(e[a][1].end=e[n-1][1].end,e.splice(a+2,n-a-2),t-=n-a-2,n=a+2),a=void 0);return e}function Ix(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function _x(e,t,r){let n=0,a,i;return s;function s(h){return e.enter("codeText"),e.enter("codeTextSequence"),u(h)}function u(h){return h===96?(e.consume(h),n++,u):(e.exit("codeTextSequence"),l(h))}function l(h){return h===null?r(h):h===32?(e.enter("space"),e.consume(h),e.exit("space"),l):h===96?(i=e.enter("codeTextSequence"),a=0,c(h)):ue(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),l):(e.enter("codeTextData"),o(h))}function o(h){return h===null||h===32||h===96||ue(h)?(e.exit("codeTextData"),l(h)):(e.consume(h),o)}function c(h){return h===96?(e.consume(h),a++,c):a===n?(e.exit("codeTextSequence"),e.exit("codeText"),t(h)):(i.type="codeTextData",o(h))}}class Nx{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,r){const n=r??Number.POSITIVE_INFINITY;return n<this.left.length?this.left.slice(t,n):t>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(t,r,n){const a=r||0;this.setCursor(Math.trunc(t));const i=this.right.splice(this.right.length-a,Number.POSITIVE_INFINITY);return n&&pa(this.left,n),i.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),pa(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),pa(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const r=this.left.splice(t,Number.POSITIVE_INFINITY);pa(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);pa(this.left,r.reverse())}}}function pa(e,t){let r=0;if(t.length<1e4)e.push(...t);else for(;r<t.length;)e.push(...t.slice(r,r+1e4)),r+=1e4}function im(e){const t={};let r=-1,n,a,i,s,u,l,o;const c=new Nx(e);for(;++r<c.length;){for(;r in t;)r=t[r];if(n=c.get(r),r&&n[1].type==="chunkFlow"&&c.get(r-1)[1].type==="listItemPrefix"&&(l=n[1]._tokenizer.events,i=0,i<l.length&&l[i][1].type==="lineEndingBlank"&&(i+=2),i<l.length&&l[i][1].type==="content"))for(;++i<l.length&&l[i][1].type!=="content";)l[i][1].type==="chunkText"&&(l[i][1]._isInFirstContentOfListItem=!0,i++);if(n[0]==="enter")n[1].contentType&&(Object.assign(t,Lx(c,r)),r=t[r],o=!0);else if(n[1]._container){for(i=r,a=void 0;i--;)if(s=c.get(i),s[1].type==="lineEnding"||s[1].type==="lineEndingBlank")s[0]==="enter"&&(a&&(c.get(a)[1].type="lineEndingBlank"),s[1].type="lineEnding",a=i);else if(!(s[1].type==="linePrefix"||s[1].type==="listItemIndent"))break;a&&(n[1].end={...c.get(a)[1].start},u=c.slice(a,r),u.unshift(n),c.splice(a,r-a+1,u))}}return St(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!o}function Lx(e,t){const r=e.get(t)[1],n=e.get(t)[2];let a=t-1;const i=[];let s=r._tokenizer;s||(s=n.parser[r.contentType](r.start),r._contentTypeTextTrailing&&(s._contentTypeTextTrailing=!0));const u=s.events,l=[],o={};let c,h,f=-1,p=r,b=0,E=0;const T=[E];for(;p;){for(;e.get(++a)[1]!==p;);i.push(a),p._tokenizer||(c=n.sliceStream(p),p.next||c.push(null),h&&s.defineSkip(p.start),p._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(c),p._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),h=p,p=p.next}for(p=r;++f<u.length;)u[f][0]==="exit"&&u[f-1][0]==="enter"&&u[f][1].type===u[f-1][1].type&&u[f][1].start.line!==u[f][1].end.line&&(E=f+1,T.push(E),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(s.events=[],p?(p._tokenizer=void 0,p.previous=void 0):T.pop(),f=T.length;f--;){const k=u.slice(T[f],T[f+1]),C=i.pop();l.push([C,C+k.length-1]),e.splice(C,2,k)}for(l.reverse(),f=-1;++f<l.length;)o[b+l[f][0]]=b+l[f][1],b+=l[f][1]-l[f][0]-1;return o}const Rx={resolve:Ox,tokenize:Mx},Dx={partial:!0,tokenize:Px};function Ox(e){return im(e),e}function Mx(e,t){let r;return n;function n(u){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),a(u)}function a(u){return u===null?i(u):ue(u)?e.check(Dx,s,i)(u):(e.consume(u),a)}function i(u){return e.exit("chunkContent"),e.exit("content"),t(u)}function s(u){return e.consume(u),e.exit("chunkContent"),r.next=e.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,a}}function Px(e,t,r){const n=this;return a;function a(s){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),Te(e,i,"linePrefix")}function i(s){if(s===null||ue(s))return r(s);const u=n.events[n.events.length-1];return!n.parser.constructs.disable.null.includes("codeIndented")&&u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?t(s):e.interrupt(n.parser.constructs.flow,r,t)(s)}}function sm(e,t,r,n,a,i,s,u,l){const o=l||Number.POSITIVE_INFINITY;let c=0;return h;function h(k){return k===60?(e.enter(n),e.enter(a),e.enter(i),e.consume(k),e.exit(i),f):k===null||k===32||k===41||Ui(k)?r(k):(e.enter(n),e.enter(s),e.enter(u),e.enter("chunkString",{contentType:"string"}),E(k))}function f(k){return k===62?(e.enter(i),e.consume(k),e.exit(i),e.exit(a),e.exit(n),t):(e.enter(u),e.enter("chunkString",{contentType:"string"}),p(k))}function p(k){return k===62?(e.exit("chunkString"),e.exit(u),f(k)):k===null||k===60||ue(k)?r(k):(e.consume(k),k===92?b:p)}function b(k){return k===60||k===62||k===92?(e.consume(k),p):p(k)}function E(k){return!c&&(k===null||k===41||Re(k))?(e.exit("chunkString"),e.exit(u),e.exit(s),e.exit(n),t(k)):c<o&&k===40?(e.consume(k),c++,E):k===41?(e.consume(k),c--,E):k===null||k===32||k===40||Ui(k)?r(k):(e.consume(k),k===92?T:E)}function T(k){return k===40||k===41||k===92?(e.consume(k),E):E(k)}}function um(e,t,r,n,a,i){const s=this;let u=0,l;return o;function o(p){return e.enter(n),e.enter(a),e.consume(p),e.exit(a),e.enter(i),c}function c(p){return u>999||p===null||p===91||p===93&&!l||p===94&&!u&&"_hiddenFootnoteSupport"in s.parser.constructs?r(p):p===93?(e.exit(i),e.enter(a),e.consume(p),e.exit(a),e.exit(n),t):ue(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),h(p))}function h(p){return p===null||p===91||p===93||ue(p)||u++>999?(e.exit("chunkString"),c(p)):(e.consume(p),l||(l=!ke(p)),p===92?f:h)}function f(p){return p===91||p===92||p===93?(e.consume(p),u++,h):h(p)}}function lm(e,t,r,n,a,i){let s;return u;function u(f){return f===34||f===39||f===40?(e.enter(n),e.enter(a),e.consume(f),e.exit(a),s=f===40?41:f,l):r(f)}function l(f){return f===s?(e.enter(a),e.consume(f),e.exit(a),e.exit(n),t):(e.enter(i),o(f))}function o(f){return f===s?(e.exit(i),l(s)):f===null?r(f):ue(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),Te(e,o,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(f))}function c(f){return f===s||f===null||ue(f)?(e.exit("chunkString"),o(f)):(e.consume(f),f===92?h:c)}function h(f){return f===s||f===92?(e.consume(f),c):c(f)}}function Da(e,t){let r;return n;function n(a){return ue(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),r=!0,n):ke(a)?Te(e,n,r?"linePrefix":"lineSuffix")(a):t(a)}}const Bx={name:"definition",tokenize:Hx},Fx={partial:!0,tokenize:zx};function Hx(e,t,r){const n=this;let a;return i;function i(p){return e.enter("definition"),s(p)}function s(p){return um.call(n,e,u,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function u(p){return a=Yt(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),l):r(p)}function l(p){return Re(p)?Da(e,o)(p):o(p)}function o(p){return sm(e,c,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function c(p){return e.attempt(Fx,h,h)(p)}function h(p){return ke(p)?Te(e,f,"whitespace")(p):f(p)}function f(p){return p===null||ue(p)?(e.exit("definition"),n.parser.defined.push(a),t(p)):r(p)}}function zx(e,t,r){return n;function n(u){return Re(u)?Da(e,a)(u):r(u)}function a(u){return lm(e,i,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(u)}function i(u){return ke(u)?Te(e,s,"whitespace")(u):s(u)}function s(u){return u===null||ue(u)?t(u):r(u)}}const $x={name:"hardBreakEscape",tokenize:Ux};function Ux(e,t,r){return n;function n(i){return e.enter("hardBreakEscape"),e.consume(i),a}function a(i){return ue(i)?(e.exit("hardBreakEscape"),t(i)):r(i)}}const qx={name:"headingAtx",resolve:jx,tokenize:Gx};function jx(e,t){let r=e.length-2,n=3,a,i;return e[n][1].type==="whitespace"&&(n+=2),r-2>n&&e[r][1].type==="whitespace"&&(r-=2),e[r][1].type==="atxHeadingSequence"&&(n===r-1||r-4>n&&e[r-2][1].type==="whitespace")&&(r-=n+1===r?2:4),r>n&&(a={type:"atxHeadingText",start:e[n][1].start,end:e[r][1].end},i={type:"chunkText",start:e[n][1].start,end:e[r][1].end,contentType:"text"},St(e,n,r-n+1,[["enter",a,t],["enter",i,t],["exit",i,t],["exit",a,t]])),e}function Gx(e,t,r){let n=0;return a;function a(c){return e.enter("atxHeading"),i(c)}function i(c){return e.enter("atxHeadingSequence"),s(c)}function s(c){return c===35&&n++<6?(e.consume(c),s):c===null||Re(c)?(e.exit("atxHeadingSequence"),u(c)):r(c)}function u(c){return c===35?(e.enter("atxHeadingSequence"),l(c)):c===null||ue(c)?(e.exit("atxHeading"),t(c)):ke(c)?Te(e,u,"whitespace")(c):(e.enter("atxHeadingText"),o(c))}function l(c){return c===35?(e.consume(c),l):(e.exit("atxHeadingSequence"),u(c))}function o(c){return c===null||c===35||Re(c)?(e.exit("atxHeadingText"),u(c)):(e.consume(c),o)}}const Vx=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Fc=["pre","script","style","textarea"],Yx={concrete:!0,name:"htmlFlow",resolveTo:Qx,tokenize:Kx},Wx={partial:!0,tokenize:Jx},Xx={partial:!0,tokenize:Zx};function Qx(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function Kx(e,t,r){const n=this;let a,i,s,u,l;return o;function o(R){return c(R)}function c(R){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(R),h}function h(R){return R===33?(e.consume(R),f):R===47?(e.consume(R),i=!0,E):R===63?(e.consume(R),a=3,n.interrupt?t:L):bt(R)?(e.consume(R),s=String.fromCharCode(R),T):r(R)}function f(R){return R===45?(e.consume(R),a=2,p):R===91?(e.consume(R),a=5,u=0,b):bt(R)?(e.consume(R),a=4,n.interrupt?t:L):r(R)}function p(R){return R===45?(e.consume(R),n.interrupt?t:L):r(R)}function b(R){const Pe="CDATA[";return R===Pe.charCodeAt(u++)?(e.consume(R),u===Pe.length?n.interrupt?t:j:b):r(R)}function E(R){return bt(R)?(e.consume(R),s=String.fromCharCode(R),T):r(R)}function T(R){if(R===null||R===47||R===62||Re(R)){const Pe=R===47,ze=s.toLowerCase();return!Pe&&!i&&Fc.includes(ze)?(a=1,n.interrupt?t(R):j(R)):Vx.includes(s.toLowerCase())?(a=6,Pe?(e.consume(R),k):n.interrupt?t(R):j(R)):(a=7,n.interrupt&&!n.parser.lazy[n.now().line]?r(R):i?C(R):w(R))}return R===45||ot(R)?(e.consume(R),s+=String.fromCharCode(R),T):r(R)}function k(R){return R===62?(e.consume(R),n.interrupt?t:j):r(R)}function C(R){return ke(R)?(e.consume(R),C):P(R)}function w(R){return R===47?(e.consume(R),P):R===58||R===95||bt(R)?(e.consume(R),H):ke(R)?(e.consume(R),w):P(R)}function H(R){return R===45||R===46||R===58||R===95||ot(R)?(e.consume(R),H):z(R)}function z(R){return R===61?(e.consume(R),O):ke(R)?(e.consume(R),z):w(R)}function O(R){return R===null||R===60||R===61||R===62||R===96?r(R):R===34||R===39?(e.consume(R),l=R,U):ke(R)?(e.consume(R),O):q(R)}function U(R){return R===l?(e.consume(R),l=null,G):R===null||ue(R)?r(R):(e.consume(R),U)}function q(R){return R===null||R===34||R===39||R===47||R===60||R===61||R===62||R===96||Re(R)?z(R):(e.consume(R),q)}function G(R){return R===47||R===62||ke(R)?w(R):r(R)}function P(R){return R===62?(e.consume(R),K):r(R)}function K(R){return R===null||ue(R)?j(R):ke(R)?(e.consume(R),K):r(R)}function j(R){return R===45&&a===2?(e.consume(R),le):R===60&&a===1?(e.consume(R),xe):R===62&&a===4?(e.consume(R),Ie):R===63&&a===3?(e.consume(R),L):R===93&&a===5?(e.consume(R),qe):ue(R)&&(a===6||a===7)?(e.exit("htmlFlowData"),e.check(Wx,Ge,ce)(R)):R===null||ue(R)?(e.exit("htmlFlowData"),ce(R)):(e.consume(R),j)}function ce(R){return e.check(Xx,re,Ge)(R)}function re(R){return e.enter("lineEnding"),e.consume(R),e.exit("lineEnding"),Y}function Y(R){return R===null||ue(R)?ce(R):(e.enter("htmlFlowData"),j(R))}function le(R){return R===45?(e.consume(R),L):j(R)}function xe(R){return R===47?(e.consume(R),s="",_e):j(R)}function _e(R){if(R===62){const Pe=s.toLowerCase();return Fc.includes(Pe)?(e.consume(R),Ie):j(R)}return bt(R)&&s.length<8?(e.consume(R),s+=String.fromCharCode(R),_e):j(R)}function qe(R){return R===93?(e.consume(R),L):j(R)}function L(R){return R===62?(e.consume(R),Ie):R===45&&a===2?(e.consume(R),L):j(R)}function Ie(R){return R===null||ue(R)?(e.exit("htmlFlowData"),Ge(R)):(e.consume(R),Ie)}function Ge(R){return e.exit("htmlFlow"),t(R)}}function Zx(e,t,r){const n=this;return a;function a(s){return ue(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i):r(s)}function i(s){return n.parser.lazy[n.now().line]?r(s):t(s)}}function Jx(e,t,r){return n;function n(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),e.attempt(Ja,t,r)}}const eE={name:"htmlText",tokenize:tE};function tE(e,t,r){const n=this;let a,i,s;return u;function u(L){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(L),l}function l(L){return L===33?(e.consume(L),o):L===47?(e.consume(L),z):L===63?(e.consume(L),w):bt(L)?(e.consume(L),q):r(L)}function o(L){return L===45?(e.consume(L),c):L===91?(e.consume(L),i=0,b):bt(L)?(e.consume(L),C):r(L)}function c(L){return L===45?(e.consume(L),p):r(L)}function h(L){return L===null?r(L):L===45?(e.consume(L),f):ue(L)?(s=h,xe(L)):(e.consume(L),h)}function f(L){return L===45?(e.consume(L),p):h(L)}function p(L){return L===62?le(L):L===45?f(L):h(L)}function b(L){const Ie="CDATA[";return L===Ie.charCodeAt(i++)?(e.consume(L),i===Ie.length?E:b):r(L)}function E(L){return L===null?r(L):L===93?(e.consume(L),T):ue(L)?(s=E,xe(L)):(e.consume(L),E)}function T(L){return L===93?(e.consume(L),k):E(L)}function k(L){return L===62?le(L):L===93?(e.consume(L),k):E(L)}function C(L){return L===null||L===62?le(L):ue(L)?(s=C,xe(L)):(e.consume(L),C)}function w(L){return L===null?r(L):L===63?(e.consume(L),H):ue(L)?(s=w,xe(L)):(e.consume(L),w)}function H(L){return L===62?le(L):w(L)}function z(L){return bt(L)?(e.consume(L),O):r(L)}function O(L){return L===45||ot(L)?(e.consume(L),O):U(L)}function U(L){return ue(L)?(s=U,xe(L)):ke(L)?(e.consume(L),U):le(L)}function q(L){return L===45||ot(L)?(e.consume(L),q):L===47||L===62||Re(L)?G(L):r(L)}function G(L){return L===47?(e.consume(L),le):L===58||L===95||bt(L)?(e.consume(L),P):ue(L)?(s=G,xe(L)):ke(L)?(e.consume(L),G):le(L)}function P(L){return L===45||L===46||L===58||L===95||ot(L)?(e.consume(L),P):K(L)}function K(L){return L===61?(e.consume(L),j):ue(L)?(s=K,xe(L)):ke(L)?(e.consume(L),K):G(L)}function j(L){return L===null||L===60||L===61||L===62||L===96?r(L):L===34||L===39?(e.consume(L),a=L,ce):ue(L)?(s=j,xe(L)):ke(L)?(e.consume(L),j):(e.consume(L),re)}function ce(L){return L===a?(e.consume(L),a=void 0,Y):L===null?r(L):ue(L)?(s=ce,xe(L)):(e.consume(L),ce)}function re(L){return L===null||L===34||L===39||L===60||L===61||L===96?r(L):L===47||L===62||Re(L)?G(L):(e.consume(L),re)}function Y(L){return L===47||L===62||Re(L)?G(L):r(L)}function le(L){return L===62?(e.consume(L),e.exit("htmlTextData"),e.exit("htmlText"),t):r(L)}function xe(L){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(L),e.exit("lineEnding"),_e}function _e(L){return ke(L)?Te(e,qe,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(L):qe(L)}function qe(L){return e.enter("htmlTextData"),s(L)}}const il={name:"labelEnd",resolveAll:iE,resolveTo:sE,tokenize:uE},rE={tokenize:lE},nE={tokenize:oE},aE={tokenize:cE};function iE(e){let t=-1;const r=[];for(;++t<e.length;){const n=e[t][1];if(r.push(e[t]),n.type==="labelImage"||n.type==="labelLink"||n.type==="labelEnd"){const a=n.type==="labelImage"?4:2;n.type="data",t+=a}}return e.length!==r.length&&St(e,0,e.length,r),e}function sE(e,t){let r=e.length,n=0,a,i,s,u;for(;r--;)if(a=e[r][1],i){if(a.type==="link"||a.type==="labelLink"&&a._inactive)break;e[r][0]==="enter"&&a.type==="labelLink"&&(a._inactive=!0)}else if(s){if(e[r][0]==="enter"&&(a.type==="labelImage"||a.type==="labelLink")&&!a._balanced&&(i=r,a.type!=="labelLink")){n=2;break}}else a.type==="labelEnd"&&(s=r);const l={type:e[i][1].type==="labelLink"?"link":"image",start:{...e[i][1].start},end:{...e[e.length-1][1].end}},o={type:"label",start:{...e[i][1].start},end:{...e[s][1].end}},c={type:"labelText",start:{...e[i+n+2][1].end},end:{...e[s-2][1].start}};return u=[["enter",l,t],["enter",o,t]],u=Dt(u,e.slice(i+1,i+n+3)),u=Dt(u,[["enter",c,t]]),u=Dt(u,Cs(t.parser.constructs.insideSpan.null,e.slice(i+n+4,s-3),t)),u=Dt(u,[["exit",c,t],e[s-2],e[s-1],["exit",o,t]]),u=Dt(u,e.slice(s+1)),u=Dt(u,[["exit",l,t]]),St(e,i,e.length,u),e}function uE(e,t,r){const n=this;let a=n.events.length,i,s;for(;a--;)if((n.events[a][1].type==="labelImage"||n.events[a][1].type==="labelLink")&&!n.events[a][1]._balanced){i=n.events[a][1];break}return u;function u(f){return i?i._inactive?h(f):(s=n.parser.defined.includes(Yt(n.sliceSerialize({start:i.end,end:n.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(f),e.exit("labelMarker"),e.exit("labelEnd"),l):r(f)}function l(f){return f===40?e.attempt(rE,c,s?c:h)(f):f===91?e.attempt(nE,c,s?o:h)(f):s?c(f):h(f)}function o(f){return e.attempt(aE,c,h)(f)}function c(f){return t(f)}function h(f){return i._balanced=!0,r(f)}}function lE(e,t,r){return n;function n(h){return e.enter("resource"),e.enter("resourceMarker"),e.consume(h),e.exit("resourceMarker"),a}function a(h){return Re(h)?Da(e,i)(h):i(h)}function i(h){return h===41?c(h):sm(e,s,u,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(h)}function s(h){return Re(h)?Da(e,l)(h):c(h)}function u(h){return r(h)}function l(h){return h===34||h===39||h===40?lm(e,o,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(h):c(h)}function o(h){return Re(h)?Da(e,c)(h):c(h)}function c(h){return h===41?(e.enter("resourceMarker"),e.consume(h),e.exit("resourceMarker"),e.exit("resource"),t):r(h)}}function oE(e,t,r){const n=this;return a;function a(u){return um.call(n,e,i,s,"reference","referenceMarker","referenceString")(u)}function i(u){return n.parser.defined.includes(Yt(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)))?t(u):r(u)}function s(u){return r(u)}}function cE(e,t,r){return n;function n(i){return e.enter("reference"),e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),a}function a(i){return i===93?(e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),e.exit("reference"),t):r(i)}}const hE={name:"labelStartImage",resolveAll:il.resolveAll,tokenize:dE};function dE(e,t,r){const n=this;return a;function a(u){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(u),e.exit("labelImageMarker"),i}function i(u){return u===91?(e.enter("labelMarker"),e.consume(u),e.exit("labelMarker"),e.exit("labelImage"),s):r(u)}function s(u){return u===94&&"_hiddenFootnoteSupport"in n.parser.constructs?r(u):t(u)}}const fE={name:"labelStartLink",resolveAll:il.resolveAll,tokenize:mE};function mE(e,t,r){const n=this;return a;function a(s){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelLink"),i}function i(s){return s===94&&"_hiddenFootnoteSupport"in n.parser.constructs?r(s):t(s)}}const l0={name:"lineEnding",tokenize:pE};function pE(e,t){return r;function r(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),Te(e,t,"linePrefix")}}const Ri={name:"thematicBreak",tokenize:gE};function gE(e,t,r){let n=0,a;return i;function i(o){return e.enter("thematicBreak"),s(o)}function s(o){return a=o,u(o)}function u(o){return o===a?(e.enter("thematicBreakSequence"),l(o)):n>=3&&(o===null||ue(o))?(e.exit("thematicBreak"),t(o)):r(o)}function l(o){return o===a?(e.consume(o),n++,l):(e.exit("thematicBreakSequence"),ke(o)?Te(e,u,"whitespace")(o):u(o))}}const vt={continuation:{tokenize:yE},exit:vE,name:"list",tokenize:EE},bE={partial:!0,tokenize:kE},xE={partial:!0,tokenize:TE};function EE(e,t,r){const n=this,a=n.events[n.events.length-1];let i=a&&a[1].type==="linePrefix"?a[2].sliceSerialize(a[1],!0).length:0,s=0;return u;function u(p){const b=n.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(b==="listUnordered"?!n.containerState.marker||p===n.containerState.marker:J0(p)){if(n.containerState.type||(n.containerState.type=b,e.enter(b,{_container:!0})),b==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(Ri,r,o)(p):o(p);if(!n.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(p)}return r(p)}function l(p){return J0(p)&&++s<10?(e.consume(p),l):(!n.interrupt||s<2)&&(n.containerState.marker?p===n.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),o(p)):r(p)}function o(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),n.containerState.marker=n.containerState.marker||p,e.check(Ja,n.interrupt?r:c,e.attempt(bE,f,h))}function c(p){return n.containerState.initialBlankLine=!0,i++,f(p)}function h(p){return ke(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),f):r(p)}function f(p){return n.containerState.size=i+n.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(p)}}function yE(e,t,r){const n=this;return n.containerState._closeFlow=void 0,e.check(Ja,a,i);function a(u){return n.containerState.furtherBlankLines=n.containerState.furtherBlankLines||n.containerState.initialBlankLine,Te(e,t,"listItemIndent",n.containerState.size+1)(u)}function i(u){return n.containerState.furtherBlankLines||!ke(u)?(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,s(u)):(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,e.attempt(xE,t,s)(u))}function s(u){return n.containerState._closeFlow=!0,n.interrupt=void 0,Te(e,e.attempt(vt,t,r),"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u)}}function TE(e,t,r){const n=this;return Te(e,a,"listItemIndent",n.containerState.size+1);function a(i){const s=n.events[n.events.length-1];return s&&s[1].type==="listItemIndent"&&s[2].sliceSerialize(s[1],!0).length===n.containerState.size?t(i):r(i)}}function vE(e){e.exit(this.containerState.type)}function kE(e,t,r){const n=this;return Te(e,a,"listItemPrefixWhitespace",n.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function a(i){const s=n.events[n.events.length-1];return!ke(i)&&s&&s[1].type==="listItemPrefixWhitespace"?t(i):r(i)}}const Hc={name:"setextUnderline",resolveTo:wE,tokenize:AE};function wE(e,t){let r=e.length,n,a,i;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){n=r;break}e[r][1].type==="paragraph"&&(a=r)}else e[r][1].type==="content"&&e.splice(r,1),!i&&e[r][1].type==="definition"&&(i=r);const s={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};return e[a][1].type="setextHeadingText",i?(e.splice(a,0,["enter",s,t]),e.splice(i+1,0,["exit",e[n][1],t]),e[n][1].end={...e[i][1].end}):e[n][1]=s,e.push(["exit",s,t]),e}function AE(e,t,r){const n=this;let a;return i;function i(o){let c=n.events.length,h;for(;c--;)if(n.events[c][1].type!=="lineEnding"&&n.events[c][1].type!=="linePrefix"&&n.events[c][1].type!=="content"){h=n.events[c][1].type==="paragraph";break}return!n.parser.lazy[n.now().line]&&(n.interrupt||h)?(e.enter("setextHeadingLine"),a=o,s(o)):r(o)}function s(o){return e.enter("setextHeadingLineSequence"),u(o)}function u(o){return o===a?(e.consume(o),u):(e.exit("setextHeadingLineSequence"),ke(o)?Te(e,l,"lineSuffix")(o):l(o))}function l(o){return o===null||ue(o)?(e.exit("setextHeadingLine"),t(o)):r(o)}}const CE={tokenize:OE,partial:!0};function SE(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:LE,continuation:{tokenize:RE},exit:DE}},text:{91:{name:"gfmFootnoteCall",tokenize:NE},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:IE,resolveTo:_E}}}}function IE(e,t,r){const n=this;let a=n.events.length;const i=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let s;for(;a--;){const l=n.events[a][1];if(l.type==="labelImage"){s=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return u;function u(l){if(!s||!s._balanced)return r(l);const o=Yt(n.sliceSerialize({start:s.end,end:n.now()}));return o.codePointAt(0)!==94||!i.includes(o.slice(1))?r(l):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l))}}function _E(e,t){let r=e.length;for(;r--;)if(e[r][1].type==="labelImage"&&e[r][0]==="enter"){e[r][1];break}e[r+1][1].type="data",e[r+3][1].type="gfmFootnoteCallLabelMarker";const n={type:"gfmFootnoteCall",start:Object.assign({},e[r+3][1].start),end:Object.assign({},e[e.length-1][1].end)},a={type:"gfmFootnoteCallMarker",start:Object.assign({},e[r+3][1].end),end:Object.assign({},e[r+3][1].end)};a.end.column++,a.end.offset++,a.end._bufferIndex++;const i={type:"gfmFootnoteCallString",start:Object.assign({},a.end),end:Object.assign({},e[e.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},i.start),end:Object.assign({},i.end)},u=[e[r+1],e[r+2],["enter",n,t],e[r+3],e[r+4],["enter",a,t],["exit",a,t],["enter",i,t],["enter",s,t],["exit",s,t],["exit",i,t],e[e.length-2],e[e.length-1],["exit",n,t]];return e.splice(r,e.length-r+1,...u),e}function NE(e,t,r){const n=this,a=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let i=0,s;return u;function u(h){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(h),e.exit("gfmFootnoteCallLabelMarker"),l}function l(h){return h!==94?r(h):(e.enter("gfmFootnoteCallMarker"),e.consume(h),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",o)}function o(h){if(i>999||h===93&&!s||h===null||h===91||Re(h))return r(h);if(h===93){e.exit("chunkString");const f=e.exit("gfmFootnoteCallString");return a.includes(Yt(n.sliceSerialize(f)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(h),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):r(h)}return Re(h)||(s=!0),i++,e.consume(h),h===92?c:o}function c(h){return h===91||h===92||h===93?(e.consume(h),i++,o):o(h)}}function LE(e,t,r){const n=this,a=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let i,s=0,u;return l;function l(b){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),o}function o(b){return b===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):r(b)}function c(b){if(s>999||b===93&&!u||b===null||b===91||Re(b))return r(b);if(b===93){e.exit("chunkString");const E=e.exit("gfmFootnoteDefinitionLabelString");return i=Yt(n.sliceSerialize(E)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),f}return Re(b)||(u=!0),s++,e.consume(b),b===92?h:c}function h(b){return b===91||b===92||b===93?(e.consume(b),s++,c):c(b)}function f(b){return b===58?(e.enter("definitionMarker"),e.consume(b),e.exit("definitionMarker"),a.includes(i)||a.push(i),Te(e,p,"gfmFootnoteDefinitionWhitespace")):r(b)}function p(b){return t(b)}}function RE(e,t,r){return e.check(Ja,t,e.attempt(CE,t,r))}function DE(e){e.exit("gfmFootnoteDefinition")}function OE(e,t,r){const n=this;return Te(e,a,"gfmFootnoteDefinitionIndent",5);function a(i){const s=n.events[n.events.length-1];return s&&s[1].type==="gfmFootnoteDefinitionIndent"&&s[2].sliceSerialize(s[1],!0).length===4?t(i):r(i)}}function ME(e){let r=(e||{}).singleTilde;const n={name:"strikethrough",tokenize:i,resolveAll:a};return r==null&&(r=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}};function a(s,u){let l=-1;for(;++l<s.length;)if(s[l][0]==="enter"&&s[l][1].type==="strikethroughSequenceTemporary"&&s[l][1]._close){let o=l;for(;o--;)if(s[o][0]==="exit"&&s[o][1].type==="strikethroughSequenceTemporary"&&s[o][1]._open&&s[l][1].end.offset-s[l][1].start.offset===s[o][1].end.offset-s[o][1].start.offset){s[l][1].type="strikethroughSequence",s[o][1].type="strikethroughSequence";const c={type:"strikethrough",start:Object.assign({},s[o][1].start),end:Object.assign({},s[l][1].end)},h={type:"strikethroughText",start:Object.assign({},s[o][1].end),end:Object.assign({},s[l][1].start)},f=[["enter",c,u],["enter",s[o][1],u],["exit",s[o][1],u],["enter",h,u]],p=u.parser.constructs.insideSpan.null;p&&St(f,f.length,0,Cs(p,s.slice(o+1,l),u)),St(f,f.length,0,[["exit",h,u],["enter",s[l][1],u],["exit",s[l][1],u],["exit",c,u]]),St(s,o-1,l-o+3,f),l=o+f.length-2;break}}for(l=-1;++l<s.length;)s[l][1].type==="strikethroughSequenceTemporary"&&(s[l][1].type="data");return s}function i(s,u,l){const o=this.previous,c=this.events;let h=0;return f;function f(b){return o===126&&c[c.length-1][1].type!=="characterEscape"?l(b):(s.enter("strikethroughSequenceTemporary"),p(b))}function p(b){const E=Wn(o);if(b===126)return h>1?l(b):(s.consume(b),h++,p);if(h<2&&!r)return l(b);const T=s.exit("strikethroughSequenceTemporary"),k=Wn(b);return T._open=!k||k===2&&!!E,T._close=!E||E===2&&!!k,u(b)}}}class PE{constructor(){this.map=[]}add(t,r,n){BE(this,t,r,n)}consume(t){if(this.map.sort(function(i,s){return i[0]-s[0]}),this.map.length===0)return;let r=this.map.length;const n=[];for(;r>0;)r-=1,n.push(t.slice(this.map[r][0]+this.map[r][1]),this.map[r][2]),t.length=this.map[r][0];n.push(t.slice()),t.length=0;let a=n.pop();for(;a;){for(const i of a)t.push(i);a=n.pop()}this.map.length=0}}function BE(e,t,r,n){let a=0;if(!(r===0&&n.length===0)){for(;a<e.map.length;){if(e.map[a][0]===t){e.map[a][1]+=r,e.map[a][2].push(...n);return}a+=1}e.map.push([t,r,n])}}function FE(e,t){let r=!1;const n=[];for(;t<e.length;){const a=e[t];if(r){if(a[0]==="enter")a[1].type==="tableContent"&&n.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(a[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const i=n.length-1;n[i]=n[i]==="left"?"center":"right"}}else if(a[1].type==="tableDelimiterRow")break}else a[0]==="enter"&&a[1].type==="tableDelimiterRow"&&(r=!0);t+=1}return n}function HE(){return{flow:{null:{name:"table",tokenize:zE,resolveAll:$E}}}}function zE(e,t,r){const n=this;let a=0,i=0,s;return u;function u(P){let K=n.events.length-1;for(;K>-1;){const re=n.events[K][1].type;if(re==="lineEnding"||re==="linePrefix")K--;else break}const j=K>-1?n.events[K][1].type:null,ce=j==="tableHead"||j==="tableRow"?O:l;return ce===O&&n.parser.lazy[n.now().line]?r(P):ce(P)}function l(P){return e.enter("tableHead"),e.enter("tableRow"),o(P)}function o(P){return P===124||(s=!0,i+=1),c(P)}function c(P){return P===null?r(P):ue(P)?i>1?(i=0,n.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(P),e.exit("lineEnding"),p):r(P):ke(P)?Te(e,c,"whitespace")(P):(i+=1,s&&(s=!1,a+=1),P===124?(e.enter("tableCellDivider"),e.consume(P),e.exit("tableCellDivider"),s=!0,c):(e.enter("data"),h(P)))}function h(P){return P===null||P===124||Re(P)?(e.exit("data"),c(P)):(e.consume(P),P===92?f:h)}function f(P){return P===92||P===124?(e.consume(P),h):h(P)}function p(P){return n.interrupt=!1,n.parser.lazy[n.now().line]?r(P):(e.enter("tableDelimiterRow"),s=!1,ke(P)?Te(e,b,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(P):b(P))}function b(P){return P===45||P===58?T(P):P===124?(s=!0,e.enter("tableCellDivider"),e.consume(P),e.exit("tableCellDivider"),E):z(P)}function E(P){return ke(P)?Te(e,T,"whitespace")(P):T(P)}function T(P){return P===58?(i+=1,s=!0,e.enter("tableDelimiterMarker"),e.consume(P),e.exit("tableDelimiterMarker"),k):P===45?(i+=1,k(P)):P===null||ue(P)?H(P):z(P)}function k(P){return P===45?(e.enter("tableDelimiterFiller"),C(P)):z(P)}function C(P){return P===45?(e.consume(P),C):P===58?(s=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(P),e.exit("tableDelimiterMarker"),w):(e.exit("tableDelimiterFiller"),w(P))}function w(P){return ke(P)?Te(e,H,"whitespace")(P):H(P)}function H(P){return P===124?b(P):P===null||ue(P)?!s||a!==i?z(P):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(P)):z(P)}function z(P){return r(P)}function O(P){return e.enter("tableRow"),U(P)}function U(P){return P===124?(e.enter("tableCellDivider"),e.consume(P),e.exit("tableCellDivider"),U):P===null||ue(P)?(e.exit("tableRow"),t(P)):ke(P)?Te(e,U,"whitespace")(P):(e.enter("data"),q(P))}function q(P){return P===null||P===124||Re(P)?(e.exit("data"),U(P)):(e.consume(P),P===92?G:q)}function G(P){return P===92||P===124?(e.consume(P),q):q(P)}}function $E(e,t){let r=-1,n=!0,a=0,i=[0,0,0,0],s=[0,0,0,0],u=!1,l=0,o,c,h;const f=new PE;for(;++r<e.length;){const p=e[r],b=p[1];p[0]==="enter"?b.type==="tableHead"?(u=!1,l!==0&&(zc(f,t,l,o,c),c=void 0,l=0),o={type:"table",start:Object.assign({},b.start),end:Object.assign({},b.end)},f.add(r,0,[["enter",o,t]])):b.type==="tableRow"||b.type==="tableDelimiterRow"?(n=!0,h=void 0,i=[0,0,0,0],s=[0,r+1,0,0],u&&(u=!1,c={type:"tableBody",start:Object.assign({},b.start),end:Object.assign({},b.end)},f.add(r,0,[["enter",c,t]])),a=b.type==="tableDelimiterRow"?2:c?3:1):a&&(b.type==="data"||b.type==="tableDelimiterMarker"||b.type==="tableDelimiterFiller")?(n=!1,s[2]===0&&(i[1]!==0&&(s[0]=s[1],h=Ei(f,t,i,a,void 0,h),i=[0,0,0,0]),s[2]=r)):b.type==="tableCellDivider"&&(n?n=!1:(i[1]!==0&&(s[0]=s[1],h=Ei(f,t,i,a,void 0,h)),i=s,s=[i[1],r,0,0])):b.type==="tableHead"?(u=!0,l=r):b.type==="tableRow"||b.type==="tableDelimiterRow"?(l=r,i[1]!==0?(s[0]=s[1],h=Ei(f,t,i,a,r,h)):s[1]!==0&&(h=Ei(f,t,s,a,r,h)),a=0):a&&(b.type==="data"||b.type==="tableDelimiterMarker"||b.type==="tableDelimiterFiller")&&(s[3]=r)}for(l!==0&&zc(f,t,l,o,c),f.consume(t.events),r=-1;++r<t.events.length;){const p=t.events[r];p[0]==="enter"&&p[1].type==="table"&&(p[1]._align=FE(t.events,r))}return e}function Ei(e,t,r,n,a,i){const s=n===1?"tableHeader":n===2?"tableDelimiter":"tableData",u="tableContent";r[0]!==0&&(i.end=Object.assign({},Hn(t.events,r[0])),e.add(r[0],0,[["exit",i,t]]));const l=Hn(t.events,r[1]);if(i={type:s,start:Object.assign({},l),end:Object.assign({},l)},e.add(r[1],0,[["enter",i,t]]),r[2]!==0){const o=Hn(t.events,r[2]),c=Hn(t.events,r[3]),h={type:u,start:Object.assign({},o),end:Object.assign({},c)};if(e.add(r[2],0,[["enter",h,t]]),n!==2){const f=t.events[r[2]],p=t.events[r[3]];if(f[1].end=Object.assign({},p[1].end),f[1].type="chunkText",f[1].contentType="text",r[3]>r[2]+1){const b=r[2]+1,E=r[3]-r[2]-1;e.add(b,E,[])}}e.add(r[3]+1,0,[["exit",h,t]])}return a!==void 0&&(i.end=Object.assign({},Hn(t.events,a)),e.add(a,0,[["exit",i,t]]),i=void 0),i}function zc(e,t,r,n,a){const i=[],s=Hn(t.events,r);a&&(a.end=Object.assign({},s),i.push(["exit",a,t])),n.end=Object.assign({},s),i.push(["exit",n,t]),e.add(r+1,0,i)}function Hn(e,t){const r=e[t],n=r[0]==="enter"?"start":"end";return r[1][n]}const UE={name:"tasklistCheck",tokenize:jE};function qE(){return{text:{91:UE}}}function jE(e,t,r){const n=this;return a;function a(l){return n.previous!==null||!n._gfmTasklistFirstContentOfListItem?r(l):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),i)}function i(l){return Re(l)?(e.enter("taskListCheckValueUnchecked"),e.consume(l),e.exit("taskListCheckValueUnchecked"),s):l===88||l===120?(e.enter("taskListCheckValueChecked"),e.consume(l),e.exit("taskListCheckValueChecked"),s):r(l)}function s(l){return l===93?(e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),u):r(l)}function u(l){return ue(l)?t(l):ke(l)?e.check({tokenize:GE},t,r)(l):r(l)}}function GE(e,t,r){return Te(e,n,"whitespace");function n(a){return a===null?r(a):t(a)}}function VE(e){return Yf([rx(),SE(),ME(e),HE(),qE()])}const YE={};function WE(e){const t=this,r=e||YE,n=t.data(),a=n.micromarkExtensions||(n.micromarkExtensions=[]),i=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),s=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);a.push(VE(r)),i.push(Q9()),s.push(K9(r))}var XE=Object.defineProperty,QE=Object.defineProperties,KE=Object.getOwnPropertyDescriptors,$c=Object.getOwnPropertySymbols,ZE=Object.prototype.hasOwnProperty,JE=Object.prototype.propertyIsEnumerable,Uc=(e,t,r)=>t in e?XE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,om=(e,t)=>{for(var r in t||(t={}))ZE.call(t,r)&&Uc(e,r,t[r]);if($c)for(var r of $c(t))JE.call(t,r)&&Uc(e,r,t[r]);return e},cm=(e,t)=>QE(e,KE(t)),Oe={PROSE:0,FENCE_MARKER:1,FENCE_INFO:2,FENCE_BODY:3,CODE_SPAN:4,CODE_SPAN_OPEN:5},ey=/^(`{3,}|~{3,})(.*)$/,ty=e=>e!==void 0&&e>="0"&&e<="9",ry=(e,t)=>{let r=t;if(e[r]==="-"||e[r]==="*"||e[r]==="+")r+=1;else{for(;ty(e[r])&&r-t<9;)r+=1;if(r===t||e[r]!=="."&&e[r]!==")")return-1;r+=1}return e[r]===" "?r+1:-1},ny=(e,t,r)=>{let n=0,a=t,i=!1,s=t;for(;;){for(;s<r&&e[s]===" ";)s+=1;if(e[s]===">"){n+=1,s+=e[s+1]===" "?2:1,a=s,i=!1;continue}let u=s<r?ry(e,s):-1;if(u===-1)return{contentStart:s,listIndent:i?s-a:0,quoteDepth:n};s=u,i=!0}},ay=(e,t,r,n)=>{let a=t;for(let i=0;i<n;i+=1){for(;a<r&&e[a]===" ";)a+=1;if(e[a]!==">")return-1;a+=1,e[a]===" "&&(a+=1)}return a},iy=(e,t,r,n,a)=>{let i=t+n;e.fill(Oe.FENCE_MARKER,i,i+a),e.fill(Oe.FENCE_INFO,i+a,Math.min(r+1,e.length))},sy=(e,t,r,n)=>{let a=t;for(;a<r&&e[a]===" ";)a+=1;let i=0;for(;a<r&&e[a]===n.char;)a+=1,i+=1;if(i<n.length)return!1;for(;a<r;){if(e[a]!==" "&&e[a]!==" "&&e[a]!=="\r")return!1;a+=1}return!0},uy=(e,t,r,n)=>{let a=n>r&&e[n-1]==="\r"?n-1:n,i=ny(e,r,a),s=e.slice(i.contentStart,a).match(ey);if(!s)return null;let[,u,l]=s,o=u[0];return o==="`"&&l.includes("`")?null:(iy(t,r,n,i.contentStart-r,u.length),{char:o,length:u.length,listIndent:i.listIndent,quoteDepth:i.quoteDepth})},ly=(e,t,r,n)=>{let a=ay(e,t,r,n.quoteDepth);if(a===-1||n.listIndent===0)return a;let i=a;for(;i<r&&e[i]===" ";)i+=1;return i===r||e[i]==="\r"&&i+1===r||i-a>=n.listIndent?a:-1},oy=(e,t)=>{let r=e.length,n=null,a=0;for(;a<r;){let i=e.indexOf(`
|
|
423
|
+
`,a);i===-1&&(i=r);let s=n?ly(e,a,i,n):-1;n&&s===-1&&(n=null),n?sy(e,s,i,n)?(t.fill(Oe.FENCE_MARKER,a,i),n=null):t.fill(Oe.FENCE_BODY,a,Math.min(i+1,r)):n=uy(e,t,a,i),a=i+1}return n},qc=(e,t)=>{let r=t+1;for(;r<e.length&&e[r]==="`";)r+=1;return r},cy=(e,t)=>{let r=t+1;for(;r<e.length&&(e[r]===" "||e[r]===" "||e[r]==="\r");)r+=1;return r<e.length&&e[r]===`
|
|
424
|
+
`},hy=(e,t,r)=>{let n=r;for(;;){let a=e.indexOf("`",n);if(a===-1)return-1;let i=a>n&&e[a-1]==="\\"&&t[a-1]===Oe.PROSE;if(t[a]===Oe.PROSE&&!i)return a;n=a+1}},dy=(e,t)=>{let r=e.length,n=-1,a=0,i=0;for(;i<r;){if(n<0){if(i=hy(e,t,i),i===-1)break;let u=qc(e,i);n=i,a=u-i,i=u;continue}if(t[i]!==Oe.PROSE){t.fill(Oe.CODE_SPAN_OPEN,n,i),n=-1,i+=1;continue}if(e[i]===`
|
|
425
|
+
`&&cy(e,i)){n=-1,i+=1;continue}if(e[i]!=="`"){i+=1;continue}let s=qc(e,i);s-i===a&&(t.fill(Oe.CODE_SPAN,n,s),n=-1),i=s}return n>=0?(t.fill(Oe.CODE_SPAN_OPEN,n,r),{start:n,runLength:a}):null},fy=e=>{let t=new Uint8Array(e.length),r=oy(e,t),n=dy(e,t);return{text:e,regions:t,openFence:r,openSpan:n,mathMask:null,linkUrlMask:null,htmlTagMask:null}},uu=null,Di=null,zt=e=>{if(Di!==null&&e===uu)return Di;let t=fy(e);return uu=e,Di=t,t},my=()=>{uu=null,Di=null},py=(e,t)=>t>=e.regions.length?e.openFence!==null||e.openSpan!==null:t<0?!1:e.regions[t]!==Oe.PROSE,gy=(e,t)=>e.regions[t]===Oe.CODE_SPAN,sl=(e,t)=>{let r=zt(e),n=t+t,a=0;for(let i=e.indexOf(n);i!==-1;i=e.indexOf(n,i))r.regions[i]===Oe.PROSE?(a+=1,i+=2):i+=1;return a},ul=new Uint8Array(0),by=e=>e==="inlineLatex"||e==="blockLatex",xy=(e,t)=>t==="["&&e==="none"?"blockLatex":t==="]"&&e==="blockLatex"?"none":t==="("&&e==="none"?"inlineLatex":t===")"&&e==="inlineLatex"?"none":null,Ey=(e,t)=>t?e==="blockDollar"?"none":"blockDollar":e==="blockDollar"?e:e==="inlineDollar"?"none":"inlineDollar",yy=e=>e.includes("$")||e.includes("\\(")||e.includes("\\["),Ty=(e,t,r)=>{let n=e[t+1];if(e[t]==="\\"){if(n==="$")return{context:r,length:2};let a=xy(r,n);return a===null?null:{context:a,length:2}}if(e[t]==="$"&&!by(r)){let a=n==="$";return{context:Ey(r,a),length:a?2:1}}return null},vy=e=>{let{text:t,regions:r}=e,n=t.length,a=new Uint8Array(n),i="none",s=0;for(;s<n;){a[s]=i==="none"?0:1;let u=r[s]===Oe.PROSE?Ty(t,s,i):null;if(u===null){s+=1;continue}i=u.context,u.length===2&&(a[s+1]=i==="none"?0:1),s+=u.length}return a},sa=(e,t)=>t<0||t>=e.text.length?!1:(e.mathMask===null&&(e.mathMask=yy(e.text)?vy(e):ul),e.mathMask[t]===1),ky=(e,t,r,n)=>{let{text:a,regions:i}=e,s=new Uint8Array(r-t),u=0;for(let o=r-1;o>=t;o-=1)a[o]===")"&&i[o]===Oe.PROSE&&(u=1),s[o-t]=u;let l=!1;for(let o=t;o<r;o+=1)l&&s[o-t]===1&&(n[o]=1),i[o]===Oe.PROSE&&(a[o]===")"?l=!1:a[o]==="("&&(l=o>0&&a[o-1]==="]"))},wy=e=>{let{text:t}=e,r=t.length,n=new Uint8Array(r),a=0;for(;a<r;){let i=t.indexOf(`
|
|
426
|
+
`,a);i===-1&&(i=r),ky(e,a,i,n),a=i+1}return n},ll=(e,t)=>t<0||t>=e.text.length?!1:(e.linkUrlMask===null&&(e.linkUrlMask=e.text.includes("](")?wy(e):ul),e.linkUrlMask[t]===1),Ay=e=>{let{text:t,regions:r}=e,n=t.length,a=new Uint8Array(n),i=!1;for(let s=0;s<n;s+=1){if(t[s]===`
|
|
427
|
+
`){i=!1;continue}if(a[s]=i?1:0,r[s]===Oe.PROSE){if(t[s]===">")i=!1;else if(t[s]==="<"){let u=t[s+1];i=u!==void 0&&(u>="a"&&u<="z"||u>="A"&&u<="Z"||u==="/")}}}return a},hm=(e,t)=>t<0||t>=e.text.length?!1:(e.htmlTagMask===null&&(e.htmlTagMask=e.text.includes("<")?Ay(e):ul),e.htmlTagMask[t]===1),Et=(e,t)=>py(zt(e),t),Wr=(e,t)=>gy(zt(e),t),Cy=/^(\s*(?:[-*+]|\d+[.)]) +)>(=?\s*[$]?\d)/gm,Sy=e=>!e||typeof e!="string"||!e.includes(">")?e:e.replace(Cy,(t,r,n,a)=>Et(e,a)?t:`${r}\\>${n}`),Xr=(e,{delimiter:t,markerLength:r,regex:n})=>{let a=e.lastIndexOf(t,e.length-2),i=a===-1?e.length-1:a;return e.slice(Math.max(0,i-r+1)).match(n)},Iy={delimiter:"*",markerLength:2,regex:/(\*\*)([^*]*\*?)$/},_y={delimiter:"_",markerLength:2,regex:/(__)([^_]*?)$/},Ny={delimiter:"*",markerLength:3,regex:/(\*\*\*)([^*]*?)$/},Ly={delimiter:"*",markerLength:1,regex:/(\*)([^*]*?)$/},Ry={delimiter:"_",markerLength:1,regex:/(_)([^_]*?)$/},Dy={delimiter:"~",markerLength:2,regex:/(~~)([^~]*?)$/},Oy={delimiter:"_",markerLength:2,regex:/(__)([^_]+)_$/},My={delimiter:"~",markerLength:2,regex:/(~~)([^~]+)~$/},An=/^[\s_~*`]*$/,dm=/^[\s]*[-*+][\s]+$/,Py=/[\p{L}\p{N}_]/u,By=/^\*{4,}$/,Wt=e=>{if(!e)return!1;let t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122||t===95?!0:Py.test(e)},Fy=(e,t)=>{let r=1;for(let n=t-1;n>=0;n-=1)if(e[n]==="]")r+=1;else if(e[n]==="["&&(r-=1,r===0))return n;return-1},fm=(e,t)=>{let r=1;for(let n=t+1;n<e.length;n+=1)if(e[n]==="[")r+=1;else if(e[n]==="]"&&(r-=1,r===0))return n;return-1},Hy=(e,t)=>sa(zt(e),t),Ss=(e,t,r)=>{let n=0;for(let l=t-1;l>=0;l-=1)if(e[l]===`
|
|
428
|
+
`){n=l+1;break}let a=e.length;for(let l=t;l<e.length;l+=1)if(e[l]===`
|
|
429
|
+
`){a=l;break}let i=e.substring(n,a),s=0,u=!1;for(let l of i)if(l===r)s+=1;else if(l!==" "&&l!==" "){u=!0;break}return s>=3&&!u},zy=(e,t,r,n)=>r==="\\"||sa(e,t)?!0:r!=="*"&&n==="*"?(t<e.text.length-2?e.text[t+2]:"")!=="*":r==="*"||(!r||r===" "||r===" "||r===`
|
|
430
|
+
`)&&(!n||n===" "||n===" "||n===`
|
|
431
|
+
`),Wi=e=>e===" "||e===" "||e===`
|
|
432
|
+
`,$y=(e,t)=>!!(e&&t&&Wt(e)&&Wt(t)),Uy=(e,t,r,n)=>{let a=$y(e,t),i=!!t&&!Wi(t),s=!!e&&!Wi(e);return a&&r%2===0&&!n?{count:!1}:s&&r%2===1||i?{count:!0,inWordAsteriskChain:a}:{count:!1}},mm=e=>{let t=zt(e),r=0,n=!1,a=e.length;for(let i=0;i<a;i+=1){if(e[i]!=="*"||t.regions[i]!==Oe.PROSE){Wt(e[i])||(n=!1);continue}let s=i>0?e[i-1]:"",u=i<a-1?e[i+1]:"";if(zy(t,i,s,u))continue;let l=Uy(s,u,r,n);l.count&&(r+=1,n=l.inWordAsteriskChain)}return r},qy=(e,t,r,n)=>!!(r==="\\"||sa(e,t)||ll(e,t)||hm(e,t)||r==="_"||n==="_"||r&&n&&Wt(r)&&Wt(n)),jy=e=>{let t=zt(e),r=0,n=e.length;for(let a=0;a<n;a+=1){if(e[a]!=="_"||t.regions[a]!==Oe.PROSE)continue;let i=a>0?e[a-1]:"",s=a<n-1?e[a+1]:"";qy(t,a,i,s)||(r+=1)}return r},Gy=e=>{let t=zt(e),r=0,n=0;for(let a=0;a<e.length;a+=1)e[a]==="*"&&t.regions[a]===Oe.PROSE?n+=1:(n>=3&&(r+=Math.floor(n/3)),n=0);return n>=3&&(r+=Math.floor(n/3)),r},ol=e=>sl(e,"*"),jc=e=>e===""||e===" "||e===" "||e===`
|
|
433
|
+
`,Vy=(e,t,r,n,a)=>{if(!(jc(r)&&jc(n)))return!1;if(t>a.lineEnd){let i=e.indexOf(`
|
|
434
|
+
`,t);a.lineEnd=i===-1?e.length:i,a.result=Ss(e,t,"_")}return a.result},Yy=(e,t,r,n)=>{let a=e.text,i=t,s=!1;i>0&&a[i-1]==="\\"&&(i+=1,s=!0);let u=r-i;if(u<2)return!1;let l=i>0?a[i-1]:"",o=s?"\\":l,c=r<a.length?a[r]:"";return Wt(o)&&Wt(c)||Vy(a,i,o,c,n)||sa(e,i)||ll(e,i)||hm(e,i)?!1:Math.floor(u/2)%2===1},Gc=e=>{let t=zt(e),r=e.length,n={lineEnd:-1,result:!1},a=!1,i=0;for(;i<r;){if(e[i]!=="_"||t.regions[i]!==Oe.PROSE){i+=1;continue}let s=i,u=i+1;for(;u<r&&e[u]==="_"&&t.regions[u]===Oe.PROSE;)u+=1;i=u,Yy(t,s,u,n)&&(a=!a)}return a},Wy=(e,t,r)=>{if(!t||An.test(t))return!0;let n=e.substring(0,r).lastIndexOf(`
|
|
435
|
+
`),a=n===-1?0:n+1,i=e.substring(a,r);return dm.test(i)&&t.includes(`
|
|
436
|
+
`)?!0:Ss(e,r,"*")},Xy=e=>{let t=Xr(e,Iy);if(!t)return e;let r=t[2],n=e.lastIndexOf(t[1]);return Et(e,n)||Wr(e,n)||Wy(e,r,n)?e:ol(e)%2===1?r.endsWith("*")?`${e}*`:`${e}**`:e},Qy=(e,t,r)=>{if(!t||An.test(t))return!0;let n=e.substring(0,r).lastIndexOf(`
|
|
437
|
+
`),a=n===-1?0:n+1,i=e.substring(a,r);return dm.test(i)&&t.includes(`
|
|
438
|
+
`)?!0:Ss(e,r,"_")},Ky=e=>{let t=Xr(e,_y);if(!t){let a=Xr(e,Oy);if(a){let i=e.lastIndexOf(a[1]);if(!(Et(e,i)||Wr(e,i))&&Gc(e))return`${e}_`}return e}let r=t[2],n=e.lastIndexOf(t[1]);return Et(e,n)||Wr(e,n)||Qy(e,r,n)?e:Gc(e)?`${e}__`:e},Zy=(e,t)=>{let{text:r}=e;return r[t]==="*"&&e.regions[t]===Oe.PROSE&&r[t-1]!=="*"&&r[t+1]!=="*"&&r[t-1]!=="\\"&&!sa(e,t)},Jy=e=>{let t=zt(e);for(let r=e.indexOf("*");r!==-1;r=e.indexOf("*",r+1)){if(!Zy(t,r))continue;let n=r>0?e[r-1]:"",a=r<e.length-1?e[r+1]:"",i=!n||Wi(n),s=!a||Wi(a);if(!(i&&s)&&!(n&&a&&Wt(n)&&Wt(a))&&!s)return r}return-1},eT=e=>{if(!Xr(e,Ly))return e;let t=Jy(e);if(t===-1||Et(e,t)||Wr(e,t))return e;let r=e.substring(t+1);return!r||An.test(r)?e:mm(e)%2===1?`${e}*`:e},pm=e=>{let t=zt(e);for(let r=e.indexOf("_");r!==-1;r=e.indexOf("_",r+1))if(t.regions[r]===Oe.PROSE&&e[r-1]!=="_"&&e[r+1]!=="_"&&e[r-1]!=="\\"&&!sa(t,r)&&!ll(t,r)){let n=r>0?e[r-1]:"",a=r<e.length-1?e[r+1]:"";if(n&&a&&Wt(n)&&Wt(a))continue;return r}return-1},tT=e=>{let t=e.length;for(;t>0&&e[t-1]===`
|
|
439
|
+
`;)t-=1;if(t<e.length){let r=e.slice(0,t),n=e.slice(t);return`${r}_${n}`}return`${e}_`},rT=e=>{if(!e.endsWith("**"))return null;let t=e.slice(0,-2);if(ol(t)%2!==1)return null;let r=t.indexOf("**"),n=pm(t);return r!==-1&&n!==-1&&r<n?`${t}_**`:null},nT=e=>{if(!Xr(e,Ry))return e;let t=pm(e);if(t===-1)return e;let r=e.substring(t+1);if(!r||An.test(r)||Et(e,t)||Wr(e,t))return e;if(jy(e)%2===1){let n=rT(e);return n!==null?n:tT(e)}return e},aT=e=>{let t=ol(e),r=mm(e);return t%2===0&&r%2===0},iT=(e,t,r)=>!t||An.test(t)||Et(e,r)||Wr(e,r)?!0:Ss(e,r,"*"),sT=e=>{if(By.test(e))return e;let t=Xr(e,Ny);if(!t)return e;let r=t[2],n=e.lastIndexOf(t[1]);return iT(e,r,n)?e:Gy(e)%2===1?aT(e)?e:`${e}***`:e},uT=/<[a-zA-Z/][^>]*$/,lT=/[a-zA-Z/]/,oT=e=>e.includes("$")||e.includes("\\(")||e.includes("\\["),cT=(e,t)=>{let r=e[t+1];return r!==void 0&&lT.test(r)},hT=e=>{let t=e.match(uT);if(!t||t.index===void 0)return e;let r=oT(e);for(let n=t.index;n<e.length;n+=1)if(!(e[n]!=="<"||!cT(e,n))&&!Et(e,n)&&!(r&&Hy(e,n)))return e.substring(0,n).trimEnd();return e},dT=e=>{let t=zt(e);if(t.openFence)return e;let r=t.openSpan;if(!r)return e;let n=e.slice(r.start+r.runLength);if(!n||An.test(n))return e;let a=0,i=e.length-1;for(;i>=0&&e[i]==="`";)a+=1,i-=1;return a>=r.runLength?e:e+"`".repeat(r.runLength-a)},fT=e=>sl(e,"$"),mT=e=>{let t=zt(e),r=0;for(let n=0;n<e.length;n+=1){if(e[n]==="\\"){n+=1;continue}t.regions[n]===Oe.PROSE&&e[n]==="$"&&(n+1<e.length&&e[n+1]==="$"?n+=1:r+=1)}return r},pT=e=>{if(e.endsWith("$")&&!e.endsWith("$$"))return`${e}$`;let t=e.indexOf("$$");return t!==-1&&e.indexOf(`
|
|
440
|
+
`,t)!==-1&&!e.endsWith(`
|
|
441
|
+
`)?`${e}
|
|
442
|
+
$$`:`${e}$$`},gT=e=>fT(e)%2===0?e:pT(e),bT=e=>mT(e)%2===1?`${e}$`:e,$a="streamdown:incomplete-image",xT=(e,t,r)=>{if(e.substring(t+2).includes(")"))return null;let n=Fy(e,t);if(n===-1||Et(e,n))return null;let a=n>0&&e[n-1]==="!",i=a?n-1:n,s=e.substring(0,i),u=e.substring(n+1,t);return a?`${s}`:r==="text-only"?`${s}${u}`:`${s}[${u}](streamdown:incomplete-link)`},Vc=(e,t)=>{for(let r=0;r<t;r++)if(e[r]==="["&&!Et(e,r)){if(r>0&&e[r-1]==="!")continue;let n=fm(e,r);if(n===-1)return r;if(n+1<e.length&&e[n+1]==="("){let a=e.indexOf(")",n+2);a!==-1&&(r=a)}}return t},ET=(e,t,r)=>{let n=t>0&&e[t-1]==="!",a=n?t-1:t;if(!e.substring(t+1).includes("]")){let i=e.substring(0,a);if(n){let s=e.substring(t+1);return`${i}`}if(r==="text-only"){let s=Vc(e,t);return e.substring(0,s)+e.substring(s+1)}return`${e}](streamdown:incomplete-link)`}if(fm(e,t)===-1){let i=e.substring(0,a);if(n){let s=e.substring(t+1);return`${i}`}if(r==="text-only"){let s=Vc(e,t);return e.substring(0,s)+e.substring(s+1)}return`${e}](streamdown:incomplete-link)`}return null},yT=(e,t)=>{let r=e.lastIndexOf("](");if(r!==-1&&!Et(e,r)){let n=xT(e,r,t);if(n!==null)return n}for(let n=e.lastIndexOf("[");n!==-1;n=n===0?-1:e.lastIndexOf("[",n-1))if(!Et(e,n)){let a=ET(e,n,t);if(a!==null)return a}return e},TT=32,gm=(e,t="protocol")=>{let r=e;for(let n=0;n<TT;n+=1){let a=yT(r,t);if(a.length>=r.length)return a;r=a}return r},vT=/^-{1,2}$/,kT=/^[\s]*-{1,2}[\s]+$/,wT=/^={1,2}$/,AT=/^[\s]*={1,2}[\s]+$/,CT=e=>{if(!e||typeof e!="string")return e;let t=e.lastIndexOf(`
|
|
443
|
+
`);if(t===-1)return e;let r=e.substring(t+1),n=e.substring(0,t),a=r.trim();if(vT.test(a)&&!r.match(kT)){let i=n.split(`
|
|
444
|
+
`).at(-1);if(i&&i.trim().length>0)return`${e}`}if(wT.test(a)&&!r.match(AT)){let i=n.split(`
|
|
445
|
+
`).at(-1);if(i&&i.trim().length>0)return`${e}`}return e},ST=/([\p{L}\p{N}_])~(?!~)(?=[\p{L}\p{N}_])/gu,IT=e=>!e||typeof e!="string"||!e.includes("~")?e:e.replace(ST,(t,r,n)=>{let a=n+r.length;return Et(e,a)?t:`${r}\\~`}),Yc=e=>sl(e,"~"),_T=e=>{let t=Xr(e,Dy);if(t){let r=t[2];if(!r||An.test(r))return e;let n=e.lastIndexOf(t[1]);if(Et(e,n)||Wr(e,n))return e;if(Yc(e)%2===1)return`${e}~~`}else{let r=Xr(e,My);if(r){let n=e.lastIndexOf(r[0].slice(0,2));if(Et(e,n)||Wr(e,n))return e;if(Yc(e)%2===1)return`${e}~`}}return e},o0=e=>e!==!1,NT=e=>e===!0,pt={SINGLE_TILDE:0,COMPARISON_OPERATORS:5,HTML_TAGS:10,SETEXT_HEADINGS:15,LINKS:20,BOLD_ITALIC:30,BOLD:35,ITALIC_DOUBLE_UNDERSCORE:40,ITALIC_SINGLE_ASTERISK:41,ITALIC_SINGLE_UNDERSCORE:42,INLINE_CODE:50,STRIKETHROUGH:60,KATEX:70,INLINE_KATEX:75,DEFAULT:100},LT=[{handler:{name:"singleTilde",handle:IT,priority:pt.SINGLE_TILDE},optionKey:"singleTilde"},{handler:{name:"comparisonOperators",handle:Sy,priority:pt.COMPARISON_OPERATORS},optionKey:"comparisonOperators"},{handler:{name:"htmlTags",handle:hT,priority:pt.HTML_TAGS},optionKey:"htmlTags"},{handler:{name:"setextHeadings",handle:CT,priority:pt.SETEXT_HEADINGS},optionKey:"setextHeadings"},{handler:{name:"links",handle:gm,priority:pt.LINKS},optionKey:"links",earlyReturn:e=>e.endsWith("](streamdown:incomplete-link)")||e.endsWith(`](${$a})`)},{handler:{name:"boldItalic",handle:sT,priority:pt.BOLD_ITALIC},optionKey:"boldItalic"},{handler:{name:"bold",handle:Xy,priority:pt.BOLD},optionKey:"bold"},{handler:{name:"italicDoubleUnderscore",handle:Ky,priority:pt.ITALIC_DOUBLE_UNDERSCORE},optionKey:"italic"},{handler:{name:"italicSingleAsterisk",handle:eT,priority:pt.ITALIC_SINGLE_ASTERISK},optionKey:"italic"},{handler:{name:"italicSingleUnderscore",handle:nT,priority:pt.ITALIC_SINGLE_UNDERSCORE},optionKey:"italic"},{handler:{name:"inlineCode",handle:dT,priority:pt.INLINE_CODE},optionKey:"inlineCode"},{handler:{name:"strikethrough",handle:_T,priority:pt.STRIKETHROUGH},optionKey:"strikethrough"},{handler:{name:"katex",handle:gT,priority:pt.KATEX},optionKey:"katex"},{handler:{name:"inlineKatex",handle:bT,priority:pt.INLINE_KATEX},optionKey:"inlineKatex"}],RT=e=>{var t;let r=(t=e==null?void 0:e.linkMode)!=null?t:"protocol";return LT.filter(({handler:n,optionKey:a})=>n.name==="links"?o0(e==null?void 0:e.links)||o0(e==null?void 0:e.images):n.name==="inlineKatex"?NT(e==null?void 0:e.inlineKatex):o0(e==null?void 0:e[a])).map(({handler:n,earlyReturn:a})=>n.name==="links"?{handler:cm(om({},n),{handle:i=>gm(i,r)}),earlyReturn:r==="protocol"?a:void 0}:{handler:n,earlyReturn:a})},DT=(e,t)=>{var r;if(!e||typeof e!="string")return e;let n=e.endsWith(" ")&&!e.endsWith(" ")?e.slice(0,-1):e,a=RT(t),i=((r=t==null?void 0:t.handlers)!=null?r:[]).map(u=>{var l;return{handler:cm(om({},u),{priority:(l=u.priority)!=null?l:pt.DEFAULT}),earlyReturn:void 0}}),s=[...a,...i].sort((u,l)=>{var o,c;return((o=u.handler.priority)!=null?o:0)-((c=l.handler.priority)!=null?c:0)});try{for(let{handler:u,earlyReturn:l}of s)if(n=u.handle(n),l!=null&&l(n))return n;return n.endsWith(" ")&&!n.endsWith(" ")?n.slice(0,-1):n}finally{my()}},OT=DT;const MT=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,PT=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,BT={};function Wc(e,t){return(BT.jsx?PT:MT).test(e)}var On={},c0,Xc;function FT(){if(Xc)return c0;Xc=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,r=/^\s*/,n=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,a=/^:\s*/,i=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,u=/^\s+|\s+$/g,l=`
|
|
446
|
+
`,o="/",c="*",h="",f="comment",p="declaration";function b(T,k){if(typeof T!="string")throw new TypeError("First argument must be a string");if(!T)return[];k=k||{};var C=1,w=1;function H(re){var Y=re.match(t);Y&&(C+=Y.length);var le=re.lastIndexOf(l);w=~le?re.length-le:w+re.length}function z(){var re={line:C,column:w};return function(Y){return Y.position=new O(re),G(),Y}}function O(re){this.start=re,this.end={line:C,column:w},this.source=k.source}O.prototype.content=T;function U(re){var Y=new Error(k.source+":"+C+":"+w+": "+re);if(Y.reason=re,Y.filename=k.source,Y.line=C,Y.column=w,Y.source=T,!k.silent)throw Y}function q(re){var Y=re.exec(T);if(Y){var le=Y[0];return H(le),T=T.slice(le.length),Y}}function G(){q(r)}function P(re){var Y;for(re=re||[];Y=K();)Y!==!1&&re.push(Y);return re}function K(){var re=z();if(!(o!=T.charAt(0)||c!=T.charAt(1))){for(var Y=2;h!=T.charAt(Y)&&(c!=T.charAt(Y)||o!=T.charAt(Y+1));)++Y;if(Y+=2,h===T.charAt(Y-1))return U("End of comment missing");var le=T.slice(2,Y-2);return w+=2,H(le),T=T.slice(Y),w+=2,re({type:f,comment:le})}}function j(){var re=z(),Y=q(n);if(Y){if(K(),!q(a))return U("property missing ':'");var le=q(i),xe=re({type:p,property:E(Y[0].replace(e,h)),value:le?E(le[0].replace(e,h)):h});return q(s),xe}}function ce(){var re=[];P(re);for(var Y;Y=j();)Y!==!1&&(re.push(Y),P(re));return re}return G(),ce()}function E(T){return T?T.replace(u,h):h}return c0=b,c0}var Qc;function HT(){if(Qc)return On;Qc=1;var e=On&&On.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(On,"__esModule",{value:!0}),On.default=r;const t=e(FT());function r(n,a){let i=null;if(!n||typeof n!="string")return i;const s=(0,t.default)(n),u=typeof a=="function";return s.forEach(l=>{if(l.type!=="declaration")return;const{property:o,value:c}=l;u?a(o,c,l):c&&(i=i||{},i[o]=c)}),i}return On}var ga={},Kc;function zT(){if(Kc)return ga;Kc=1,Object.defineProperty(ga,"__esModule",{value:!0}),ga.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,r=/^[^-]+$/,n=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,i=function(o){return!o||r.test(o)||e.test(o)},s=function(o,c){return c.toUpperCase()},u=function(o,c){return"".concat(c,"-")},l=function(o,c){return c===void 0&&(c={}),i(o)?o:(o=o.toLowerCase(),c.reactCompat?o=o.replace(a,u):o=o.replace(n,u),o.replace(t,s))};return ga.camelCase=l,ga}var ba,Zc;function $T(){if(Zc)return ba;Zc=1;var e=ba&&ba.__importDefault||function(a){return a&&a.__esModule?a:{default:a}},t=e(HT()),r=zT();function n(a,i){var s={};return!a||typeof a!="string"||(0,t.default)(a,function(u,l){u&&l&&(s[(0,r.camelCase)(u,i)]=l)}),s}return n.default=n,ba=n,ba}var UT=$T();const qT=Z1(UT);function Oa(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Jc(e.position):"start"in e||"end"in e?Jc(e):"line"in e||"column"in e?lu(e):""}function lu(e){return e1(e&&e.line)+":"+e1(e&&e.column)}function Jc(e){return lu(e&&e.start)+"-"+lu(e&&e.end)}function e1(e){return e&&typeof e=="number"?e:1}class dt extends Error{constructor(t,r,n){super(),typeof r=="string"&&(n=r,r=void 0);let a="",i={},s=!1;if(r&&("line"in r&&"column"in r?i={place:r}:"start"in r&&"end"in r?i={place:r}:"type"in r?i={ancestors:[r],place:r.position}:i={...r}),typeof t=="string"?a=t:!i.cause&&t&&(s=!0,a=t.message,i.cause=t),!i.ruleId&&!i.source&&typeof n=="string"){const l=n.indexOf(":");l===-1?i.ruleId=n:(i.source=n.slice(0,l),i.ruleId=n.slice(l+1))}if(!i.place&&i.ancestors&&i.ancestors){const l=i.ancestors[i.ancestors.length-1];l&&(i.place=l.position)}const u=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=u?u.column:void 0,this.fatal=void 0,this.file="",this.message=a,this.line=u?u.line:void 0,this.name=Oa(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=s&&i.cause&&typeof i.cause.stack=="string"?i.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}dt.prototype.file="";dt.prototype.name="";dt.prototype.reason="";dt.prototype.message="";dt.prototype.stack="";dt.prototype.column=void 0;dt.prototype.line=void 0;dt.prototype.ancestors=void 0;dt.prototype.cause=void 0;dt.prototype.fatal=void 0;dt.prototype.place=void 0;dt.prototype.ruleId=void 0;dt.prototype.source=void 0;const cl={}.hasOwnProperty,jT=new Map,GT=/[A-Z]/g,VT=new Set(["table","tbody","thead","tfoot","tr"]),YT=new Set(["td","th"]),bm="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function WT(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=t.filePath||void 0;let n;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");n=rv(r,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");n=tv(r,t.jsx,t.jsxs)}const a={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:n,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:r,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?Qr:ja,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},i=xm(a,e,void 0);return i&&typeof i!="string"?i:a.create(e,a.Fragment,{children:i||void 0},void 0)}function xm(e,t,r){if(t.type==="element")return XT(e,t,r);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return QT(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return ZT(e,t,r);if(t.type==="mdxjsEsm")return KT(e,t);if(t.type==="root")return JT(e,t,r);if(t.type==="text")return ev(e,t)}function XT(e,t,r){const n=e.schema;let a=n;t.tagName.toLowerCase()==="svg"&&n.space==="html"&&(a=Qr,e.schema=a),e.ancestors.push(t);const i=ym(e,t.tagName,!1),s=nv(e,t);let u=dl(e,t);return VT.has(t.tagName)&&(u=u.filter(function(l){return typeof l=="string"?!Kp(l):!0})),Em(e,s,i,t),hl(s,u),e.ancestors.pop(),e.schema=n,e.create(t,i,s,r)}function QT(e,t){if(t.data&&t.data.estree&&e.evaluater){const n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}Ua(e,t.position)}function KT(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Ua(e,t.position)}function ZT(e,t,r){const n=e.schema;let a=n;t.name==="svg"&&n.space==="html"&&(a=Qr,e.schema=a),e.ancestors.push(t);const i=t.name===null?e.Fragment:ym(e,t.name,!0),s=av(e,t),u=dl(e,t);return Em(e,s,i,t),hl(s,u),e.ancestors.pop(),e.schema=n,e.create(t,i,s,r)}function JT(e,t,r){const n={};return hl(n,dl(e,t)),e.create(t,e.Fragment,n,r)}function ev(e,t){return t.value}function Em(e,t,r,n){typeof r!="string"&&r!==e.Fragment&&e.passNode&&(t.node=n)}function hl(e,t){if(t.length>0){const r=t.length>1?t:t[0];r&&(e.children=r)}}function tv(e,t,r){return n;function n(a,i,s,u){const o=Array.isArray(s.children)?r:t;return u?o(i,s,u):o(i,s)}}function rv(e,t){return r;function r(n,a,i,s){const u=Array.isArray(i.children),l=ir(n);return t(a,i,s,u,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function nv(e,t){const r={};let n,a;for(a in t.properties)if(a!=="children"&&cl.call(t.properties,a)){const i=iv(e,a,t.properties[a]);if(i){const[s,u]=i;e.tableCellAlignToStyle&&s==="align"&&typeof u=="string"&&YT.has(t.tagName)?n=u:r[s]=u}}if(n){const i=r.style||(r.style={});i[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=n}return r}function av(e,t){const r={};for(const n of t.attributes)if(n.type==="mdxJsxExpressionAttribute")if(n.data&&n.data.estree&&e.evaluater){const i=n.data.estree.body[0];i.type;const s=i.expression;s.type;const u=s.properties[0];u.type,Object.assign(r,e.evaluater.evaluateExpression(u.argument))}else Ua(e,t.position);else{const a=n.name;let i;if(n.value&&typeof n.value=="object")if(n.value.data&&n.value.data.estree&&e.evaluater){const u=n.value.data.estree.body[0];u.type,i=e.evaluater.evaluateExpression(u.expression)}else Ua(e,t.position);else i=n.value===null?!0:n.value;r[a]=i}return r}function dl(e,t){const r=[];let n=-1;const a=e.passKeys?new Map:jT;for(;++n<t.children.length;){const i=t.children[n];let s;if(e.passKeys){const l=i.type==="element"?i.tagName:i.type==="mdxJsxFlowElement"||i.type==="mdxJsxTextElement"?i.name:void 0;if(l){const o=a.get(l)||0;s=l+"-"+o,a.set(l,o+1)}}const u=xm(e,i,s);u!==void 0&&r.push(u)}return r}function iv(e,t,r){const n=ts(e.schema,t);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=n.commaSeparated?th(r):rh(r)),n.property==="style"){let a=typeof r=="object"?r:sv(e,String(r));return e.stylePropertyNameCase==="css"&&(a=uv(a)),["style",a]}return[e.elementAttributeNameCase==="react"&&n.space?Zp[n.property]||n.property:n.attribute,r]}}function sv(e,t){try{return qT(t,{reactCompat:!0})}catch(r){if(e.ignoreInvalidStyle)return{};const n=r,a=new dt("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw a.file=e.filePath||void 0,a.url=bm+"#cannot-parse-style-attribute",a}}function ym(e,t,r){let n;if(!r)n={type:"Literal",value:t};else if(t.includes(".")){const a=t.split(".");let i=-1,s;for(;++i<a.length;){const u=Wc(a[i])?{type:"Identifier",name:a[i]}:{type:"Literal",value:a[i]};s=s?{type:"MemberExpression",object:s,property:u,computed:!!(i&&u.type==="Literal"),optional:!1}:u}n=s}else n=Wc(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(n.type==="Literal"){const a=n.value;return cl.call(e.components,a)?e.components[a]:a}if(e.evaluater)return e.evaluater.evaluateExpression(n);Ua(e)}function Ua(e,t){const r=new dt("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=bm+"#cannot-handle-mdx-estrees-without-createevaluater",r}function uv(e){const t={};let r;for(r in e)cl.call(e,r)&&(t[lv(r)]=e[r]);return t}function lv(e){let t=e.replace(GT,ov);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function ov(e){return"-"+e.toLowerCase()}const h0={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},cv={tokenize:hv};function hv(e){const t=e.attempt(this.parser.constructs.contentInitial,n,a);let r;return t;function n(u){if(u===null){e.consume(u);return}return e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),Te(e,t,"linePrefix")}function a(u){return e.enter("paragraph"),i(u)}function i(u){const l=e.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=l),r=l,s(u)}function s(u){if(u===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(u);return}return ue(u)?(e.consume(u),e.exit("chunkText"),i):(e.consume(u),s)}}const dv={tokenize:fv},t1={tokenize:mv};function fv(e){const t=this,r=[];let n=0,a,i,s;return u;function u(w){if(n<r.length){const H=r[n];return t.containerState=H[1],e.attempt(H[0].continuation,l,o)(w)}return o(w)}function l(w){if(n++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,a&&C();const H=t.events.length;let z=H,O;for(;z--;)if(t.events[z][0]==="exit"&&t.events[z][1].type==="chunkFlow"){O=t.events[z][1].end;break}k(n);let U=H;for(;U<t.events.length;)t.events[U][1].end={...O},U++;return St(t.events,z+1,0,t.events.slice(H)),t.events.length=U,o(w)}return u(w)}function o(w){if(n===r.length){if(!a)return f(w);if(a.currentConstruct&&a.currentConstruct.concrete)return b(w);t.interrupt=!!(a.currentConstruct&&!a._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(t1,c,h)(w)}function c(w){return a&&C(),k(n),f(w)}function h(w){return t.parser.lazy[t.now().line]=n!==r.length,s=t.now().offset,b(w)}function f(w){return t.containerState={},e.attempt(t1,p,b)(w)}function p(w){return n++,r.push([t.currentConstruct,t.containerState]),f(w)}function b(w){if(w===null){a&&C(),k(0),e.consume(w);return}return a=a||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:a,contentType:"flow",previous:i}),E(w)}function E(w){if(w===null){T(e.exit("chunkFlow"),!0),k(0),e.consume(w);return}return ue(w)?(e.consume(w),T(e.exit("chunkFlow")),n=0,t.interrupt=void 0,u):(e.consume(w),E)}function T(w,H){const z=t.sliceStream(w);if(H&&z.push(null),w.previous=i,i&&(i.next=w),i=w,a.defineSkip(w.start),a.write(z),t.parser.lazy[w.start.line]){let O=a.events.length;for(;O--;)if(a.events[O][1].start.offset<s&&(!a.events[O][1].end||a.events[O][1].end.offset>s))return;const U=t.events.length;let q=U,G,P;for(;q--;)if(t.events[q][0]==="exit"&&t.events[q][1].type==="chunkFlow"){if(G){P=t.events[q][1].end;break}G=!0}for(k(n),O=U;O<t.events.length;)t.events[O][1].end={...P},O++;St(t.events,q+1,0,t.events.slice(U)),t.events.length=O}}function k(w){let H=r.length;for(;H-- >w;){const z=r[H];t.containerState=z[1],z[0].exit.call(t,e)}r.length=w}function C(){a.write([null]),i=void 0,a=void 0,t.containerState._closeFlow=void 0}}function mv(e,t,r){return Te(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}const pv={tokenize:gv};function gv(e){const t=this,r=e.attempt(Ja,n,e.attempt(this.parser.constructs.flowInitial,a,Te(e,e.attempt(this.parser.constructs.flow,a,e.attempt(Rx,a)),"linePrefix")));return r;function n(i){if(i===null){e.consume(i);return}return e.enter("lineEndingBlank"),e.consume(i),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}function a(i){if(i===null){e.consume(i);return}return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t.currentConstruct=void 0,r}}const bv={resolveAll:vm()},xv=Tm("string"),Ev=Tm("text");function Tm(e){return{resolveAll:vm(e==="text"?yv:void 0),tokenize:t};function t(r){const n=this,a=this.parser.constructs[e],i=r.attempt(a,s,u);return s;function s(c){return o(c)?i(c):u(c)}function u(c){if(c===null){r.consume(c);return}return r.enter("data"),r.consume(c),l}function l(c){return o(c)?(r.exit("data"),i(c)):(r.consume(c),l)}function o(c){if(c===null)return!0;const h=a[c];let f=-1;if(h)for(;++f<h.length;){const p=h[f];if(!p.previous||p.previous.call(n,n.previous))return!0}return!1}}}function vm(e){return t;function t(r,n){let a=-1,i;for(;++a<=r.length;)i===void 0?r[a]&&r[a][1].type==="data"&&(i=a,a++):(!r[a]||r[a][1].type!=="data")&&(a!==i+2&&(r[i][1].end=r[a-1][1].end,r.splice(i+2,a-i-2),a=i+2),i=void 0);return e?e(r,n):r}}function yv(e,t){let r=0;for(;++r<=e.length;)if((r===e.length||e[r][1].type==="lineEnding")&&e[r-1][1].type==="data"){const n=e[r-1][1],a=t.sliceStream(n);let i=a.length,s=-1,u=0,l;for(;i--;){const o=a[i];if(typeof o=="string"){for(s=o.length;o.charCodeAt(s-1)===32;)u++,s--;if(s)break;s=-1}else if(o===-2)l=!0,u++;else if(o!==-1){i++;break}}if(t._contentTypeTextTrailing&&r===e.length&&(u=0),u){const o={type:r===e.length||l||u<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:i?s:n.start._bufferIndex+s,_index:n.start._index+i,line:n.end.line,column:n.end.column-u,offset:n.end.offset-u},end:{...n.end}};n.end={...o.start},n.start.offset===n.end.offset?Object.assign(n,o):(e.splice(r,0,["enter",o,t],["exit",o,t]),r+=2)}r++}return e}const Tv={42:vt,43:vt,45:vt,48:vt,49:vt,50:vt,51:vt,52:vt,53:vt,54:vt,55:vt,56:vt,57:vt,62:rm},vv={91:Bx},kv={[-2]:u0,[-1]:u0,32:u0},wv={35:qx,42:Ri,45:[Hc,Ri],60:Yx,61:Hc,95:Ri,96:Bc,126:Bc},Av={38:am,92:nm},Cv={[-5]:l0,[-4]:l0,[-3]:l0,33:hE,38:am,42:su,60:[fx,eE],91:fE,92:[$x,nm],93:il,95:su,96:Cx},Sv={null:[su,bv]},Iv={null:[42,95]},_v={null:[]},Nv=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:Iv,contentInitial:vv,disable:_v,document:Tv,flow:wv,flowInitial:kv,insideSpan:Sv,string:Av,text:Cv},Symbol.toStringTag,{value:"Module"}));function Lv(e,t,r){let n={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0};const a={},i=[];let s=[],u=[];const l={attempt:U(z),check:U(O),consume:C,enter:w,exit:H,interrupt:U(O,{interrupt:!0})},o={code:null,containerState:{},defineSkip:E,events:[],now:b,parser:e,previous:null,sliceSerialize:f,sliceStream:p,write:h};let c=t.tokenize.call(o,l);return t.resolveAll&&i.push(t),o;function h(K){return s=Dt(s,K),T(),s[s.length-1]!==null?[]:(q(t,0),o.events=Cs(i,o.events,o),o.events)}function f(K,j){return Dv(p(K),j)}function p(K){return Rv(s,K)}function b(){const{_bufferIndex:K,_index:j,line:ce,column:re,offset:Y}=n;return{_bufferIndex:K,_index:j,line:ce,column:re,offset:Y}}function E(K){a[K.line]=K.column,P()}function T(){let K;for(;n._index<s.length;){const j=s[n._index];if(typeof j=="string")for(K=n._index,n._bufferIndex<0&&(n._bufferIndex=0);n._index===K&&n._bufferIndex<j.length;)k(j.charCodeAt(n._bufferIndex));else k(j)}}function k(K){c=c(K)}function C(K){ue(K)?(n.line++,n.column=1,n.offset+=K===-3?2:1,P()):K!==-1&&(n.column++,n.offset++),n._bufferIndex<0?n._index++:(n._bufferIndex++,n._bufferIndex===s[n._index].length&&(n._bufferIndex=-1,n._index++)),o.previous=K}function w(K,j){const ce=j||{};return ce.type=K,ce.start=b(),o.events.push(["enter",ce,o]),u.push(ce),ce}function H(K){const j=u.pop();return j.end=b(),o.events.push(["exit",j,o]),j}function z(K,j){q(K,j.from)}function O(K,j){j.restore()}function U(K,j){return ce;function ce(re,Y,le){let xe,_e,qe,L;return Array.isArray(re)?Ge(re):"tokenize"in re?Ge([re]):Ie(re);function Ie(De){return We;function We(Xe){const se=Xe!==null&&De[Xe],we=Xe!==null&&De.null,Qe=[...Array.isArray(se)?se:se?[se]:[],...Array.isArray(we)?we:we?[we]:[]];return Ge(Qe)(Xe)}}function Ge(De){return xe=De,_e=0,De.length===0?le:R(De[_e])}function R(De){return We;function We(Xe){return L=G(),qe=De,De.partial||(o.currentConstruct=De),De.name&&o.parser.constructs.disable.null.includes(De.name)?ze():De.tokenize.call(j?Object.assign(Object.create(o),j):o,l,Pe,ze)(Xe)}}function Pe(De){return K(qe,L),Y}function ze(De){return L.restore(),++_e<xe.length?R(xe[_e]):le}}}function q(K,j){K.resolveAll&&!i.includes(K)&&i.push(K),K.resolve&&St(o.events,j,o.events.length-j,K.resolve(o.events.slice(j),o)),K.resolveTo&&(o.events=K.resolveTo(o.events,o))}function G(){const K=b(),j=o.previous,ce=o.currentConstruct,re=o.events.length,Y=Array.from(u);return{from:re,restore:le};function le(){n=K,o.previous=j,o.currentConstruct=ce,o.events.length=re,u=Y,P()}}function P(){n.line in a&&n.column<2&&(n.column=a[n.line],n.offset+=a[n.line]-1)}}function Rv(e,t){const r=t.start._index,n=t.start._bufferIndex,a=t.end._index,i=t.end._bufferIndex;let s;if(r===a)s=[e[r].slice(n,i)];else{if(s=e.slice(r,a),n>-1){const u=s[0];typeof u=="string"?s[0]=u.slice(n):s.shift()}i>0&&s.push(e[a].slice(0,i))}return s}function Dv(e,t){let r=-1;const n=[];let a;for(;++r<e.length;){const i=e[r];let s;if(typeof i=="string")s=i;else switch(i){case-5:{s="\r";break}case-4:{s=`
|
|
447
|
+
`;break}case-3:{s=`\r
|
|
448
|
+
`;break}case-2:{s=t?" ":" ";break}case-1:{if(!t&&a)continue;s=" ";break}default:s=String.fromCharCode(i)}a=i===-2,n.push(s)}return n.join("")}function Ov(e){const n={constructs:Yf([Nv,...(e||{}).extensions||[]]),content:a(cv),defined:[],document:a(dv),flow:a(pv),lazy:{},string:a(xv),text:a(Ev)};return n;function a(i){return s;function s(u){return Lv(n,i,u)}}}function Mv(e){for(;!im(e););return e}const r1=/[\0\t\n\r]/g;function Pv(){let e=1,t="",r=!0,n;return a;function a(i,s,u){const l=[];let o,c,h,f,p;for(i=t+(typeof i=="string"?i.toString():new TextDecoder(s||void 0).decode(i)),h=0,t="",r&&(i.charCodeAt(0)===65279&&h++,r=void 0);h<i.length;){if(r1.lastIndex=h,o=r1.exec(i),f=o&&o.index!==void 0?o.index:i.length,p=i.charCodeAt(f),!o){t=i.slice(h);break}if(p===10&&h===f&&n)l.push(-3),n=void 0;else switch(n&&(l.push(-5),n=void 0),h<f&&(l.push(i.slice(h,f)),e+=f-h),p){case 0:{l.push(65533),e++;break}case 9:{for(c=Math.ceil(e/4)*4,l.push(-2);e++<c;)l.push(-1);break}case 10:{l.push(-4),e=1;break}default:n=!0,e=1}h=f+1}return u&&(n&&l.push(-5),t&&l.push(t),l.push(null)),l}}const km={}.hasOwnProperty;function Bv(e,t,r){return t&&typeof t=="object"&&(r=t,t=void 0),Fv(r)(Mv(Ov(r).document().write(Pv()(e,t,!0))))}function Fv(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:i(Ut),autolinkProtocol:G,autolinkEmail:G,atxHeading:i(Sn),blockQuote:i(we),characterEscape:G,characterReference:G,codeFenced:i(Qe),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:i(Qe,s),codeText:i($t,s),codeTextData:G,data:G,codeFlowValue:G,definition:i(Lt),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:i(lr),hardBreakEscape:i(Jr),hardBreakTrailing:i(Jr),htmlFlow:i(en,s),htmlFlowData:G,htmlText:i(en,s),htmlTextData:G,image:i(tn),label:s,link:i(Ut),listItem:i(la),listItemValue:f,listOrdered:i(or,h),listUnordered:i(or),paragraph:i(oa),reference:R,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:i(Sn),strong:i(rn),thematicBreak:i(he)},exit:{atxHeading:l(),atxHeadingSequence:z,autolink:l(),autolinkEmail:se,autolinkProtocol:Xe,blockQuote:l(),characterEscapeValue:P,characterReferenceMarkerHexadecimal:ze,characterReferenceMarkerNumeric:ze,characterReferenceValue:De,characterReference:We,codeFenced:l(T),codeFencedFence:E,codeFencedFenceInfo:p,codeFencedFenceMeta:b,codeFlowValue:P,codeIndented:l(k),codeText:l(Y),codeTextData:P,data:P,definition:l(),definitionDestinationString:H,definitionLabelString:C,definitionTitleString:w,emphasis:l(),hardBreakEscape:l(j),hardBreakTrailing:l(j),htmlFlow:l(ce),htmlFlowData:P,htmlText:l(re),htmlTextData:P,image:l(xe),label:qe,labelText:_e,lineEnding:K,link:l(le),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:Pe,resourceDestinationString:L,resourceTitleString:Ie,resource:Ge,setextHeading:l(q),setextHeadingLineSequence:U,setextHeadingText:O,strong:l(),thematicBreak:l()}};wm(t,(e||{}).mdastExtensions||[]);const r={};return n;function n(F){let X={type:"root",children:[]};const ie={stack:[X],tokenStack:[],config:t,enter:u,exit:o,buffer:s,resume:c,data:r},oe=[];let Ee=-1;for(;++Ee<F.length;)if(F[Ee][1].type==="listOrdered"||F[Ee][1].type==="listUnordered")if(F[Ee][0]==="enter")oe.push(Ee);else{const nt=oe.pop();Ee=a(F,nt,Ee)}for(Ee=-1;++Ee<F.length;){const nt=t[F[Ee][0]];km.call(nt,F[Ee][1].type)&&nt[F[Ee][1].type].call(Object.assign({sliceSerialize:F[Ee][2].sliceSerialize},ie),F[Ee][1])}if(ie.tokenStack.length>0){const nt=ie.tokenStack[ie.tokenStack.length-1];(nt[1]||n1).call(ie,void 0,nt[0])}for(X.position={start:Nr(F.length>0?F[0][1].start:{line:1,column:1,offset:0}),end:Nr(F.length>0?F[F.length-2][1].end:{line:1,column:1,offset:0})},Ee=-1;++Ee<t.transforms.length;)X=t.transforms[Ee](X)||X;return X}function a(F,X,ie){let oe=X-1,Ee=-1,nt=!1,nn,cr,ca,ha;for(;++oe<=ie;){const wt=F[oe];switch(wt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{wt[0]==="enter"?Ee++:Ee--,ha=void 0;break}case"lineEndingBlank":{wt[0]==="enter"&&(nn&&!ha&&!Ee&&!ca&&(ca=oe),ha=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:ha=void 0}if(!Ee&&wt[0]==="enter"&&wt[1].type==="listItemPrefix"||Ee===-1&&wt[0]==="exit"&&(wt[1].type==="listUnordered"||wt[1].type==="listOrdered")){if(nn){let _n=oe;for(cr=void 0;_n--;){const hr=F[_n];if(hr[1].type==="lineEnding"||hr[1].type==="lineEndingBlank"){if(hr[0]==="exit")continue;cr&&(F[cr][1].type="lineEndingBlank",nt=!0),hr[1].type="lineEnding",cr=_n}else if(!(hr[1].type==="linePrefix"||hr[1].type==="blockQuotePrefix"||hr[1].type==="blockQuotePrefixWhitespace"||hr[1].type==="blockQuoteMarker"||hr[1].type==="listItemIndent"))break}ca&&(!cr||ca<cr)&&(nn._spread=!0),nn.end=Object.assign({},cr?F[cr][1].start:wt[1].end),F.splice(cr||oe,0,["exit",nn,wt[2]]),oe++,ie++}if(wt[1].type==="listItemPrefix"){const _n={type:"listItem",_spread:!1,start:Object.assign({},wt[1].start),end:void 0};nn=_n,F.splice(oe,0,["enter",_n,wt[2]]),oe++,ie++,ca=void 0,ha=!0}}}return F[X][1]._spread=nt,ie}function i(F,X){return ie;function ie(oe){u.call(this,F(oe),oe),X&&X.call(this,oe)}}function s(){this.stack.push({type:"fragment",children:[]})}function u(F,X,ie){this.stack[this.stack.length-1].children.push(F),this.stack.push(F),this.tokenStack.push([X,ie||void 0]),F.position={start:Nr(X.start),end:void 0}}function l(F){return X;function X(ie){F&&F.call(this,ie),o.call(this,ie)}}function o(F,X){const ie=this.stack.pop(),oe=this.tokenStack.pop();if(oe)oe[0].type!==F.type&&(X?X.call(this,F,oe[0]):(oe[1]||n1).call(this,F,oe[0]));else throw new Error("Cannot close `"+F.type+"` ("+Oa({start:F.start,end:F.end})+"): it’s not open");ie.position.end=Nr(F.end)}function c(){return tl(this.stack.pop())}function h(){this.data.expectingFirstListItemValue=!0}function f(F){if(this.data.expectingFirstListItemValue){const X=this.stack[this.stack.length-2];X.start=Number.parseInt(this.sliceSerialize(F),10),this.data.expectingFirstListItemValue=void 0}}function p(){const F=this.resume(),X=this.stack[this.stack.length-1];X.lang=F}function b(){const F=this.resume(),X=this.stack[this.stack.length-1];X.meta=F}function E(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function T(){const F=this.resume(),X=this.stack[this.stack.length-1];X.value=F.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function k(){const F=this.resume(),X=this.stack[this.stack.length-1];X.value=F.replace(/(\r?\n|\r)$/g,"")}function C(F){const X=this.resume(),ie=this.stack[this.stack.length-1];ie.label=X,ie.identifier=Yt(this.sliceSerialize(F)).toLowerCase()}function w(){const F=this.resume(),X=this.stack[this.stack.length-1];X.title=F}function H(){const F=this.resume(),X=this.stack[this.stack.length-1];X.url=F}function z(F){const X=this.stack[this.stack.length-1];if(!X.depth){const ie=this.sliceSerialize(F).length;X.depth=ie}}function O(){this.data.setextHeadingSlurpLineEnding=!0}function U(F){const X=this.stack[this.stack.length-1];X.depth=this.sliceSerialize(F).codePointAt(0)===61?1:2}function q(){this.data.setextHeadingSlurpLineEnding=void 0}function G(F){const ie=this.stack[this.stack.length-1].children;let oe=ie[ie.length-1];(!oe||oe.type!=="text")&&(oe=In(),oe.position={start:Nr(F.start),end:void 0},ie.push(oe)),this.stack.push(oe)}function P(F){const X=this.stack.pop();X.value+=this.sliceSerialize(F),X.position.end=Nr(F.end)}function K(F){const X=this.stack[this.stack.length-1];if(this.data.atHardBreak){const ie=X.children[X.children.length-1];ie.position.end=Nr(F.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(X.type)&&(G.call(this,F),P.call(this,F))}function j(){this.data.atHardBreak=!0}function ce(){const F=this.resume(),X=this.stack[this.stack.length-1];X.value=F}function re(){const F=this.resume(),X=this.stack[this.stack.length-1];X.value=F}function Y(){const F=this.resume(),X=this.stack[this.stack.length-1];X.value=F}function le(){const F=this.stack[this.stack.length-1];if(this.data.inReference){const X=this.data.referenceType||"shortcut";F.type+="Reference",F.referenceType=X,delete F.url,delete F.title}else delete F.identifier,delete F.label;this.data.referenceType=void 0}function xe(){const F=this.stack[this.stack.length-1];if(this.data.inReference){const X=this.data.referenceType||"shortcut";F.type+="Reference",F.referenceType=X,delete F.url,delete F.title}else delete F.identifier,delete F.label;this.data.referenceType=void 0}function _e(F){const X=this.sliceSerialize(F),ie=this.stack[this.stack.length-2];ie.label=B9(X),ie.identifier=Yt(X).toLowerCase()}function qe(){const F=this.stack[this.stack.length-1],X=this.resume(),ie=this.stack[this.stack.length-1];if(this.data.inReference=!0,ie.type==="link"){const oe=F.children;ie.children=oe}else ie.alt=X}function L(){const F=this.resume(),X=this.stack[this.stack.length-1];X.url=F}function Ie(){const F=this.resume(),X=this.stack[this.stack.length-1];X.title=F}function Ge(){this.data.inReference=void 0}function R(){this.data.referenceType="collapsed"}function Pe(F){const X=this.resume(),ie=this.stack[this.stack.length-1];ie.label=X,ie.identifier=Yt(this.sliceSerialize(F)).toLowerCase(),this.data.referenceType="full"}function ze(F){this.data.characterReferenceType=F.type}function De(F){const X=this.sliceSerialize(F),ie=this.data.characterReferenceType;let oe;ie?(oe=Vf(X,ie==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):oe=nl(X);const Ee=this.stack[this.stack.length-1];Ee.value+=oe}function We(F){const X=this.stack.pop();X.position.end=Nr(F.end)}function Xe(F){P.call(this,F);const X=this.stack[this.stack.length-1];X.url=this.sliceSerialize(F)}function se(F){P.call(this,F);const X=this.stack[this.stack.length-1];X.url="mailto:"+this.sliceSerialize(F)}function we(){return{type:"blockquote",children:[]}}function Qe(){return{type:"code",lang:null,meta:null,value:""}}function $t(){return{type:"inlineCode",value:""}}function Lt(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function lr(){return{type:"emphasis",children:[]}}function Sn(){return{type:"heading",depth:0,children:[]}}function Jr(){return{type:"break"}}function en(){return{type:"html",value:""}}function tn(){return{type:"image",title:null,url:"",alt:null}}function Ut(){return{type:"link",title:null,url:"",children:[]}}function or(F){return{type:"list",ordered:F.type==="listOrdered",start:null,spread:F._spread,children:[]}}function la(F){return{type:"listItem",spread:F._spread,checked:null,children:[]}}function oa(){return{type:"paragraph",children:[]}}function rn(){return{type:"strong",children:[]}}function In(){return{type:"text",value:""}}function he(){return{type:"thematicBreak"}}}function Nr(e){return{line:e.line,column:e.column,offset:e.offset}}function wm(e,t){let r=-1;for(;++r<t.length;){const n=t[r];Array.isArray(n)?wm(e,n):Hv(e,n)}}function Hv(e,t){let r;for(r in t)if(km.call(t,r))switch(r){case"canContainEols":{const n=t[r];n&&e[r].push(...n);break}case"transforms":{const n=t[r];n&&e[r].push(...n);break}case"enter":case"exit":{const n=t[r];n&&Object.assign(e[r],n);break}}}function n1(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Oa({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Oa({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Oa({start:t.start,end:t.end})+") is still open")}function zv(e){const t=this;t.parser=r;function r(n){return Bv(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function $v(e,t){const r={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,r),e.applyData(t,r)}function Uv(e,t){const r={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,r),[e.applyData(t,r),{type:"text",value:`
|
|
449
|
+
`}]}function qv(e,t){const r=t.value?t.value+`
|
|
450
|
+
`:"",n={},a=t.lang?t.lang.split(/\s+/):[];a.length>0&&(n.className=["language-"+a[0]]);let i={type:"element",tagName:"code",properties:n,children:[{type:"text",value:r}]};return t.meta&&(i.data={meta:t.meta}),e.patch(t,i),i=e.applyData(t,i),i={type:"element",tagName:"pre",properties:{},children:[i]},e.patch(t,i),i}function jv(e,t){const r={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Gv(e,t){const r={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Vv(e,t){const r=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=String(t.identifier).toUpperCase(),a=ia(n.toLowerCase()),i=e.footnoteOrder.indexOf(n);let s,u=e.footnoteCounts.get(n);u===void 0?(u=0,e.footnoteOrder.push(n),s=e.footnoteOrder.length):s=i+1,u+=1,e.footnoteCounts.set(n,u);const l={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+a,id:r+"fnref-"+a+(u>1?"-"+u:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};e.patch(t,l);const o={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,o),e.applyData(t,o)}function Yv(e,t){const r={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Wv(e,t){if(e.options.allowDangerousHtml){const r={type:"raw",value:t.value};return e.patch(t,r),e.applyData(t,r)}}function Am(e,t){const r=t.referenceType;let n="]";if(r==="collapsed"?n+="[]":r==="full"&&(n+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+n}];const a=e.all(t),i=a[0];i&&i.type==="text"?i.value="["+i.value:a.unshift({type:"text",value:"["});const s=a[a.length-1];return s&&s.type==="text"?s.value+=n:a.push({type:"text",value:n}),a}function Xv(e,t){const r=String(t.identifier).toUpperCase(),n=e.definitionById.get(r);if(!n)return Am(e,t);const a={src:ia(n.url||""),alt:t.alt};n.title!==null&&n.title!==void 0&&(a.title=n.title);const i={type:"element",tagName:"img",properties:a,children:[]};return e.patch(t,i),e.applyData(t,i)}function Qv(e,t){const r={src:ia(t.url)};t.alt!==null&&t.alt!==void 0&&(r.alt=t.alt),t.title!==null&&t.title!==void 0&&(r.title=t.title);const n={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,n),e.applyData(t,n)}function Kv(e,t){const r={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,r);const n={type:"element",tagName:"code",properties:{},children:[r]};return e.patch(t,n),e.applyData(t,n)}function Zv(e,t){const r=String(t.identifier).toUpperCase(),n=e.definitionById.get(r);if(!n)return Am(e,t);const a={href:ia(n.url||"")};n.title!==null&&n.title!==void 0&&(a.title=n.title);const i={type:"element",tagName:"a",properties:a,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function Jv(e,t){const r={href:ia(t.url)};t.title!==null&&t.title!==void 0&&(r.title=t.title);const n={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function ek(e,t,r){const n=e.all(t),a=r?tk(r):Cm(t),i={},s=[];if(typeof t.checked=="boolean"){const c=n[0];let h;c&&c.type==="element"&&c.tagName==="p"?h=c:(h={type:"element",tagName:"p",properties:{},children:[]},n.unshift(h)),h.children.length>0&&h.children.unshift({type:"text",value:" "}),h.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}let u=-1;for(;++u<n.length;){const c=n[u];(a||u!==0||c.type!=="element"||c.tagName!=="p")&&s.push({type:"text",value:`
|
|
451
|
+
`}),c.type==="element"&&c.tagName==="p"&&!a?s.push(...c.children):s.push(c)}const l=n[n.length-1];l&&(a||l.type!=="element"||l.tagName!=="p")&&s.push({type:"text",value:`
|
|
452
|
+
`});const o={type:"element",tagName:"li",properties:i,children:s};return e.patch(t,o),e.applyData(t,o)}function tk(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const r=e.children;let n=-1;for(;!t&&++n<r.length;)t=Cm(r[n])}return t}function Cm(e){const t=e.spread;return t??e.children.length>1}function rk(e,t){const r={},n=e.all(t);let a=-1;for(typeof t.start=="number"&&t.start!==1&&(r.start=t.start);++a<n.length;){const s=n[a];if(s.type==="element"&&s.tagName==="li"&&s.properties&&Array.isArray(s.properties.className)&&s.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}const i={type:"element",tagName:t.ordered?"ol":"ul",properties:r,children:e.wrap(n,!0)};return e.patch(t,i),e.applyData(t,i)}function nk(e,t){const r={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function ak(e,t){const r={type:"root",children:e.wrap(e.all(t))};return e.patch(t,r),e.applyData(t,r)}function ik(e,t){const r={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function sk(e,t){const r=e.all(t),n=r.shift(),a=[];if(n){const s={type:"element",tagName:"thead",properties:{},children:e.wrap([n],!0)};e.patch(t.children[0],s),a.push(s)}if(r.length>0){const s={type:"element",tagName:"tbody",properties:{},children:e.wrap(r,!0)},u=ir(t.children[1]),l=As(t.children[t.children.length-1]);u&&l&&(s.position={start:u,end:l}),a.push(s)}const i={type:"element",tagName:"table",properties:{},children:e.wrap(a,!0)};return e.patch(t,i),e.applyData(t,i)}function uk(e,t,r){const n=r?r.children:void 0,i=(n?n.indexOf(t):1)===0?"th":"td",s=r&&r.type==="table"?r.align:void 0,u=s?s.length:t.children.length;let l=-1;const o=[];for(;++l<u;){const h=t.children[l],f={},p=s?s[l]:void 0;p&&(f.align=p);let b={type:"element",tagName:i,properties:f,children:[]};h&&(b.children=e.all(h),e.patch(h,b),b=e.applyData(h,b)),o.push(b)}const c={type:"element",tagName:"tr",properties:{},children:e.wrap(o,!0)};return e.patch(t,c),e.applyData(t,c)}function lk(e,t){const r={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}const a1=9,i1=32;function ok(e){const t=String(e),r=/\r?\n|\r/g;let n=r.exec(t),a=0;const i=[];for(;n;)i.push(s1(t.slice(a,n.index),a>0,!0),n[0]),a=n.index+n[0].length,n=r.exec(t);return i.push(s1(t.slice(a),a>0,!1)),i.join("")}function s1(e,t,r){let n=0,a=e.length;if(t){let i=e.codePointAt(n);for(;i===a1||i===i1;)n++,i=e.codePointAt(n)}if(r){let i=e.codePointAt(a-1);for(;i===a1||i===i1;)a--,i=e.codePointAt(a-1)}return a>n?e.slice(n,a):""}function ck(e,t){const r={type:"text",value:ok(String(t.value))};return e.patch(t,r),e.applyData(t,r)}function hk(e,t){const r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,r),e.applyData(t,r)}const dk={blockquote:$v,break:Uv,code:qv,delete:jv,emphasis:Gv,footnoteReference:Vv,heading:Yv,html:Wv,imageReference:Xv,image:Qv,inlineCode:Kv,linkReference:Zv,link:Jv,listItem:ek,list:rk,paragraph:nk,root:ak,strong:ik,table:sk,tableCell:lk,tableRow:uk,text:ck,thematicBreak:hk,toml:yi,yaml:yi,definition:yi,footnoteDefinition:yi};function yi(){}function fk(e,t){const r=[{type:"text",value:"↩"}];return t>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),r}function mk(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function pk(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||fk,n=e.options.footnoteBackLabel||mk,a=e.options.footnoteLabel||"Footnotes",i=e.options.footnoteLabelTagName||"h2",s=e.options.footnoteLabelProperties||{className:["sr-only"]},u=[];let l=-1;for(;++l<e.footnoteOrder.length;){const o=e.footnoteById.get(e.footnoteOrder[l]);if(!o)continue;const c=e.all(o),h=String(o.identifier).toUpperCase(),f=ia(h.toLowerCase());let p=0;const b=[],E=e.footnoteCounts.get(h);for(;E!==void 0&&++p<=E;){b.length>0&&b.push({type:"text",value:" "});let C=typeof r=="string"?r:r(l,p);typeof C=="string"&&(C={type:"text",value:C}),b.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+f+(p>1?"-"+p:""),dataFootnoteBackref:"",ariaLabel:typeof n=="string"?n:n(l,p),className:["data-footnote-backref"]},children:Array.isArray(C)?C:[C]})}const T=c[c.length-1];if(T&&T.type==="element"&&T.tagName==="p"){const C=T.children[T.children.length-1];C&&C.type==="text"?C.value+=" ":T.children.push({type:"text",value:" "}),T.children.push(...b)}else c.push(...b);const k={type:"element",tagName:"li",properties:{id:t+"fn-"+f},children:e.wrap(c,!0)};e.patch(o,k),u.push(k)}if(u.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:i,properties:{...yn(s),id:"footnote-label"},children:[{type:"text",value:a}]},{type:"text",value:`
|
|
453
|
+
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(u,!0)},{type:"text",value:`
|
|
454
|
+
`}]}}const ou={}.hasOwnProperty,gk={};function bk(e,t){const r=t||gk,n=new Map,a=new Map,i=new Map,s={...dk,...r.handlers},u={all:o,applyData:Ek,definitionById:n,footnoteById:a,footnoteCounts:i,footnoteOrder:[],handlers:s,one:l,options:r,patch:xk,wrap:Tk};return Ht(e,function(c){if(c.type==="definition"||c.type==="footnoteDefinition"){const h=c.type==="definition"?n:a,f=String(c.identifier).toUpperCase();h.has(f)||h.set(f,c)}}),u;function l(c,h){const f=c.type,p=u.handlers[f];if(ou.call(u.handlers,f)&&p)return p(u,c,h);if(u.options.passThrough&&u.options.passThrough.includes(f)){if("children"in c){const{children:E,...T}=c,k=yn(T);return k.children=u.all(c),k}return yn(c)}return(u.options.unknownHandler||yk)(u,c,h)}function o(c){const h=[];if("children"in c){const f=c.children;let p=-1;for(;++p<f.length;){const b=u.one(f[p],c);if(b){if(p&&f[p-1].type==="break"&&(!Array.isArray(b)&&b.type==="text"&&(b.value=u1(b.value)),!Array.isArray(b)&&b.type==="element")){const E=b.children[0];E&&E.type==="text"&&(E.value=u1(E.value))}Array.isArray(b)?h.push(...b):h.push(b)}}}return h}}function xk(e,t){e.position&&(t.position=Tf(e))}function Ek(e,t){let r=t;if(e&&e.data){const n=e.data.hName,a=e.data.hChildren,i=e.data.hProperties;if(typeof n=="string")if(r.type==="element")r.tagName=n;else{const s="children"in r?r.children:[r];r={type:"element",tagName:n,properties:{},children:s}}r.type==="element"&&i&&Object.assign(r.properties,yn(i)),"children"in r&&r.children&&a!==null&&a!==void 0&&(r.children=a)}return r}function yk(e,t){const r=t.data||{},n="value"in t&&!(ou.call(r,"hProperties")||ou.call(r,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Tk(e,t){const r=[];let n=-1;for(t&&r.push({type:"text",value:`
|
|
455
|
+
`});++n<e.length;)n&&r.push({type:"text",value:`
|
|
456
|
+
`}),r.push(e[n]);return t&&e.length>0&&r.push({type:"text",value:`
|
|
457
|
+
`}),r}function u1(e){let t=0,r=e.charCodeAt(t);for(;r===9||r===32;)t++,r=e.charCodeAt(t);return e.slice(t)}function l1(e,t){const r=bk(e,t),n=r.one(e,void 0),a=pk(r),i=Array.isArray(n)?{type:"root",children:n}:n||{type:"root",children:[]};return a&&i.children.push({type:"text",value:`
|
|
458
|
+
`},a),i}function vk(e,t){return e&&"run"in e?async function(r,n){const a=l1(r,{file:n,...t});await e.run(a,n)}:function(r,n){return l1(r,{file:n,...e||t})}}function o1(e){if(e)throw e}var d0,c1;function kk(){if(c1)return d0;c1=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=Object.defineProperty,n=Object.getOwnPropertyDescriptor,a=function(o){return typeof Array.isArray=="function"?Array.isArray(o):t.call(o)==="[object Array]"},i=function(o){if(!o||t.call(o)!=="[object Object]")return!1;var c=e.call(o,"constructor"),h=o.constructor&&o.constructor.prototype&&e.call(o.constructor.prototype,"isPrototypeOf");if(o.constructor&&!c&&!h)return!1;var f;for(f in o);return typeof f>"u"||e.call(o,f)},s=function(o,c){r&&c.name==="__proto__"?r(o,c.name,{enumerable:!0,configurable:!0,value:c.newValue,writable:!0}):o[c.name]=c.newValue},u=function(o,c){if(c==="__proto__")if(e.call(o,c)){if(n)return n(o,c).value}else return;return o[c]};return d0=function l(){var o,c,h,f,p,b,E=arguments[0],T=1,k=arguments.length,C=!1;for(typeof E=="boolean"&&(C=E,E=arguments[1]||{},T=2),(E==null||typeof E!="object"&&typeof E!="function")&&(E={});T<k;++T)if(o=arguments[T],o!=null)for(c in o)h=u(E,c),f=u(o,c),E!==f&&(C&&f&&(i(f)||(p=a(f)))?(p?(p=!1,b=h&&a(h)?h:[]):b=h&&i(h)?h:{},s(E,{name:c,newValue:l(C,b,f)})):typeof f<"u"&&s(E,{name:c,newValue:f}));return E},d0}var wk=kk();const f0=Z1(wk);function cu(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Ak(){const e=[],t={run:r,use:n};return t;function r(...a){let i=-1;const s=a.pop();if(typeof s!="function")throw new TypeError("Expected function as last argument, not "+s);u(null,...a);function u(l,...o){const c=e[++i];let h=-1;if(l){s(l);return}for(;++h<a.length;)(o[h]===null||o[h]===void 0)&&(o[h]=a[h]);a=o,c?Ck(c,u)(...o):s(null,...o)}}function n(a){if(typeof a!="function")throw new TypeError("Expected `middelware` to be a function, not "+a);return e.push(a),t}}function Ck(e,t){let r;return n;function n(...s){const u=e.length>s.length;let l;u&&s.push(a);try{l=e.apply(this,s)}catch(o){const c=o;if(u&&r)throw c;return a(c)}u||(l&&l.then&&typeof l.then=="function"?l.then(i,a):l instanceof Error?a(l):i(l))}function a(s,...u){r||(r=!0,t(s,...u))}function i(s){a(null,s)}}const Kt={basename:Sk,dirname:Ik,extname:_k,join:Nk,sep:"/"};function Sk(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');ei(e);let r=0,n=-1,a=e.length,i;if(t===void 0||t.length===0||t.length>e.length){for(;a--;)if(e.codePointAt(a)===47){if(i){r=a+1;break}}else n<0&&(i=!0,n=a+1);return n<0?"":e.slice(r,n)}if(t===e)return"";let s=-1,u=t.length-1;for(;a--;)if(e.codePointAt(a)===47){if(i){r=a+1;break}}else s<0&&(i=!0,s=a+1),u>-1&&(e.codePointAt(a)===t.codePointAt(u--)?u<0&&(n=a):(u=-1,n=s));return r===n?n=s:n<0&&(n=e.length),e.slice(r,n)}function Ik(e){if(ei(e),e.length===0)return".";let t=-1,r=e.length,n;for(;--r;)if(e.codePointAt(r)===47){if(n){t=r;break}}else n||(n=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function _k(e){ei(e);let t=e.length,r=-1,n=0,a=-1,i=0,s;for(;t--;){const u=e.codePointAt(t);if(u===47){if(s){n=t+1;break}continue}r<0&&(s=!0,r=t+1),u===46?a<0?a=t:i!==1&&(i=1):a>-1&&(i=-1)}return a<0||r<0||i===0||i===1&&a===r-1&&a===n+1?"":e.slice(a,r)}function Nk(...e){let t=-1,r;for(;++t<e.length;)ei(e[t]),e[t]&&(r=r===void 0?e[t]:r+"/"+e[t]);return r===void 0?".":Lk(r)}function Lk(e){ei(e);const t=e.codePointAt(0)===47;let r=Rk(e,!t);return r.length===0&&!t&&(r="."),r.length>0&&e.codePointAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}function Rk(e,t){let r="",n=0,a=-1,i=0,s=-1,u,l;for(;++s<=e.length;){if(s<e.length)u=e.codePointAt(s);else{if(u===47)break;u=47}if(u===47){if(!(a===s-1||i===1))if(a!==s-1&&i===2){if(r.length<2||n!==2||r.codePointAt(r.length-1)!==46||r.codePointAt(r.length-2)!==46){if(r.length>2){if(l=r.lastIndexOf("/"),l!==r.length-1){l<0?(r="",n=0):(r=r.slice(0,l),n=r.length-1-r.lastIndexOf("/")),a=s,i=0;continue}}else if(r.length>0){r="",n=0,a=s,i=0;continue}}t&&(r=r.length>0?r+"/..":"..",n=2)}else r.length>0?r+="/"+e.slice(a+1,s):r=e.slice(a+1,s),n=s-a-1;a=s,i=0}else u===46&&i>-1?i++:i=-1}return r}function ei(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Dk={cwd:Ok};function Ok(){return"/"}function hu(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Mk(e){if(typeof e=="string")e=new URL(e);else if(!hu(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return Pk(e)}function Pk(e){if(e.hostname!==""){const n=new TypeError('File URL host must be "localhost" or empty on darwin');throw n.code="ERR_INVALID_FILE_URL_HOST",n}const t=e.pathname;let r=-1;for(;++r<t.length;)if(t.codePointAt(r)===37&&t.codePointAt(r+1)===50){const n=t.codePointAt(r+2);if(n===70||n===102){const a=new TypeError("File URL path must not include encoded / characters");throw a.code="ERR_INVALID_FILE_URL_PATH",a}}return decodeURIComponent(t)}const m0=["history","path","basename","stem","extname","dirname"];class Bk{constructor(t){let r;t?hu(t)?r={path:t}:typeof t=="string"||Fk(t)?r={value:t}:r=t:r={},this.cwd="cwd"in r?"":Dk.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n=-1;for(;++n<m0.length;){const i=m0[n];i in r&&r[i]!==void 0&&r[i]!==null&&(this[i]=i==="history"?[...r[i]]:r[i])}let a;for(a in r)m0.includes(a)||(this[a]=r[a])}get basename(){return typeof this.path=="string"?Kt.basename(this.path):void 0}set basename(t){g0(t,"basename"),p0(t,"basename"),this.path=Kt.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Kt.dirname(this.path):void 0}set dirname(t){h1(this.basename,"dirname"),this.path=Kt.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Kt.extname(this.path):void 0}set extname(t){if(p0(t,"extname"),h1(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Kt.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){hu(t)&&(t=Mk(t)),g0(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Kt.basename(this.path,this.extname):void 0}set stem(t){g0(t,"stem"),p0(t,"stem"),this.path=Kt.join(this.dirname||"",t+(this.extname||""))}fail(t,r,n){const a=this.message(t,r,n);throw a.fatal=!0,a}info(t,r,n){const a=this.message(t,r,n);return a.fatal=void 0,a}message(t,r,n){const a=new dt(t,r,n);return this.path&&(a.name=this.path+":"+a.name,a.file=this.path),a.fatal=!1,this.messages.push(a),a}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function p0(e,t){if(e&&e.includes(Kt.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Kt.sep+"`")}function g0(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function h1(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function Fk(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Hk=(function(e){const n=this.constructor.prototype,a=n[e],i=function(){return a.apply(i,arguments)};return Object.setPrototypeOf(i,n),i}),zk={}.hasOwnProperty;class fl extends Hk{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=Ak()}copy(){const t=new fl;let r=-1;for(;++r<this.attachers.length;){const n=this.attachers[r];t.use(...n)}return t.data(f0(!0,{},this.namespace)),t}data(t,r){return typeof t=="string"?arguments.length===2?(E0("data",this.frozen),this.namespace[t]=r,this):zk.call(this.namespace,t)&&this.namespace[t]||void 0:t?(E0("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[r,...n]=this.attachers[this.freezeIndex];if(n[0]===!1)continue;n[0]===!0&&(n[0]=void 0);const a=r.call(t,...n);typeof a=="function"&&this.transformers.use(a)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const r=Ti(t),n=this.parser||this.Parser;return b0("parse",n),n(String(r),r)}process(t,r){const n=this;return this.freeze(),b0("process",this.parser||this.Parser),x0("process",this.compiler||this.Compiler),r?a(void 0,r):new Promise(a);function a(i,s){const u=Ti(t),l=n.parse(u);n.run(l,u,function(c,h,f){if(c||!h||!f)return o(c);const p=h,b=n.stringify(p,f);qk(b)?f.value=b:f.result=b,o(c,f)});function o(c,h){c||!h?s(c):i?i(h):r(void 0,h)}}}processSync(t){let r=!1,n;return this.freeze(),b0("processSync",this.parser||this.Parser),x0("processSync",this.compiler||this.Compiler),this.process(t,a),f1("processSync","process",r),n;function a(i,s){r=!0,o1(i),n=s}}run(t,r,n){d1(t),this.freeze();const a=this.transformers;return!n&&typeof r=="function"&&(n=r,r=void 0),n?i(void 0,n):new Promise(i);function i(s,u){const l=Ti(r);a.run(t,l,o);function o(c,h,f){const p=h||t;c?u(c):s?s(p):n(void 0,p,f)}}}runSync(t,r){let n=!1,a;return this.run(t,r,i),f1("runSync","run",n),a;function i(s,u){o1(s),a=u,n=!0}}stringify(t,r){this.freeze();const n=Ti(r),a=this.compiler||this.Compiler;return x0("stringify",a),d1(t),a(t,n)}use(t,...r){const n=this.attachers,a=this.namespace;if(E0("use",this.frozen),t!=null)if(typeof t=="function")l(t,r);else if(typeof t=="object")Array.isArray(t)?u(t):s(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function i(o){if(typeof o=="function")l(o,[]);else if(typeof o=="object")if(Array.isArray(o)){const[c,...h]=o;l(c,h)}else s(o);else throw new TypeError("Expected usable value, not `"+o+"`")}function s(o){if(!("plugins"in o)&&!("settings"in o))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");u(o.plugins),o.settings&&(a.settings=f0(!0,a.settings,o.settings))}function u(o){let c=-1;if(o!=null)if(Array.isArray(o))for(;++c<o.length;){const h=o[c];i(h)}else throw new TypeError("Expected a list of plugins, not `"+o+"`")}function l(o,c){let h=-1,f=-1;for(;++h<n.length;)if(n[h][0]===o){f=h;break}if(f===-1)n.push([o,...c]);else if(c.length>0){let[p,...b]=c;const E=n[f][1];cu(E)&&cu(p)&&(p=f0(!0,E,p)),n[f]=[o,p,...b]}}}}const $k=new fl().freeze();function b0(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function x0(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function E0(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function d1(e){if(!cu(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function f1(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Ti(e){return Uk(e)?e:new Bk(e)}function Uk(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function qk(e){return typeof e=="string"||jk(e)}function jk(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}function ml(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Cn=ml();function Sm(e){Cn=e}var dn={exec:()=>null};function Mn(e){let t=[];return r=>{let n=Math.max(0,Math.min(3,r-1)),a=t[n];return a||(a=e(n),t[n]=a),a}}function ge(e,t=""){let r=typeof e=="string"?e:e.source,n={replace:(a,i)=>{let s=typeof i=="string"?i:i.source;return s=s.replace(lt.caret,"$1"),r=r.replace(a,s),n},getRegex:()=>new RegExp(r,t)};return n}var Gk=((e="")=>{try{return!!new RegExp("(?<=1)(?<!1)"+e)}catch{return!1}})(),lt={codeRemoveIndent:/^(?: {0,3}\t| {1,4})/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,endingSpaceTabChar:/[ \t]$/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,leadingSpaceTab:/^[ \t]+/,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,numericCharacterReference:/&#(?:(\d{1,7})|[Xx]([A-Fa-f0-9]{1,6}));/g,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:Mn(e=>new RegExp(`^ {0,${e}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:Mn(e=>new RegExp(`^ {0,${e}}((?:-[ ]*){3,}|(?:_[ ]*){3,}|(?:\\*[ ]*){3,})(?:\\n+|$)`)),fencesBeginRegex:Mn(e=>new RegExp(`^ {0,${e}}(?:\`\`\`|~~~)`)),headingBeginRegex:Mn(e=>new RegExp(`^ {0,${e}}#`)),htmlBeginRegex:Mn(e=>new RegExp(`^ {0,${e}}(?:</?(?:${ri})(?: +|$|/?>)|<(?:script|pre|style|textarea|!--))`,"i")),blockquoteBeginRegex:Mn(e=>new RegExp(`^ {0,${e}}>`))},Vk=/^(?:[ \t]*(?:\n|$))+/,Yk=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Wk=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,ti=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Xk=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,pl=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,Im=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |fences|blockquote|heading|hr|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_m=ge(Im).replace(/bull/g,pl).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/hr/g,/ {0,3}(?:(?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),Qk=ge(Im).replace(/bull/g,pl).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/hr/g,/ {0,3}(?:(?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),gl=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/,Kk=/^[^\n]+/,bl=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Zk=ge(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",bl).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Jk=ge(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,pl).getRegex(),ri="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",xl=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,ew=ge("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n*|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n*|$)|<![A-Z][\\s\\S]*?(?:>[^\\n]*\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>[^\\n]*\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][a-z0-9-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][a-z0-9-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",xl).replace("tag",ri).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Nm=e=>ge(gl).replace("hr",ti).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list",e).replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ri).getRegex(),tw=Nm(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/),rw=Nm(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/),nw=ge(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",rw).getRegex(),El={blockquote:nw,code:Yk,def:Zk,fences:Wk,heading:Xk,hr:ti,html:ew,lheading:_m,list:Jk,newline:Vk,paragraph:tw,table:dn,text:Kk},m1=ge("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",ti).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ri).getRegex(),aw={...El,lheading:Qk,table:m1,paragraph:ge(gl).replace("hr",ti).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",m1).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ri).getRegex()},iw={...El,html:ge(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",xl).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:dn,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:ge(gl).replace("hr",ti).replace("heading",` *#{1,6} *[^
|
|
459
|
+
]`).replace("lheading",_m).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},sw=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,uw=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Lm=/^( {2,}|\\)\n(?!\s*$)[ \t]*/,lw=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Cr=/[\p{P}\p{S}]/u,ua=/[\s\p{P}\p{S}]/u,ni=/[^\s\p{P}\p{S}]/u,ow=ge(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,ua).getRegex(),cw=/[\p{Pi}\p{Ps}"']/u,Rm=/(?!~)[\p{P}\p{S}]/u,hw=/(?!~)[\s\p{P}\p{S}]/u,dw=/(?:[^\s\p{P}\p{S}]|~)/u,fw=ge(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",Gk?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),Dm=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,mw=ge(Dm,"u").replace(/punct/g,Cr).getRegex(),pw=ge(Dm,"u").replace(/punct/g,Rm).getRegex(),gw=/^(?:\*+(?:((?!\*)(?!openQuote)punct)|([^\s*]))?)|^_+(?:((?!_)(?!openQuote)punct)|([^\s_]))?/,bw=ge(gw,"u").replace(/openQuote/g,cw).replace(/punct/g,Cr).getRegex(),Om="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",xw=ge(Om,"gu").replace(/notPunctSpace/g,ni).replace(/punctSpace/g,ua).replace(/punct/g,Cr).getRegex(),Ew=ge(Om,"gu").replace(/notPunctSpace/g,dw).replace(/punctSpace/g,hw).replace(/punct/g,Rm).getRegex(),yw="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)[\\s](\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|(?:(?!\\*)punct|notPunctSpace)(\\*+)(?!\\*)(?=notPunctSpace)",Tw=ge(yw,"gu").replace(/notPunctSpace/g,ni).replace(/punctSpace/g,ua).replace(/punct/g,Cr).getRegex(),vw=ge("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,ni).replace(/punctSpace/g,ua).replace(/punct/g,Cr).getRegex(),kw="^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)[\\s](_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)|(?:(?!_)punct|notPunctSpace)(_+)(?!_)(?=notPunctSpace)",ww=ge(kw,"gu").replace(/notPunctSpace/g,ni).replace(/punctSpace/g,ua).replace(/punct/g,Cr).getRegex(),Aw=ge(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,Cr).getRegex(),Cw="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",Sw=ge(Cw,"gu").replace(/notPunctSpace/g,ni).replace(/punctSpace/g,ua).replace(/punct/g,Cr).getRegex(),Iw=ge(/\\(punct)/,"gu").replace(/punct/g,Cr).getRegex(),_w=ge(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Nw=ge(xl).replace("(?:-->|$)","-->").getRegex(),Lw=ge("^comment|^</[a-zA-Z][a-zA-Z0-9-]*\\s*>|^<[a-zA-Z][a-zA-Z0-9-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",Nw).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Mm=/\[(?:\\[\s\S]|[^\[\]\\])*\]/,Xi=ge(/(?:\[(?:brackets|\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/).replace("brackets",Mm).getRegex(),Rw=ge(/^!?\[(label)\]\([ \t\n]*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?[ \t\n]*\)/).replace("label",Xi).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Dw=ge(/^!?\[(label)\]\[(ref)\]/).replace("label",Xi).replace("ref",bl).getRegex(),Ow=ge(/^!?\[(ref)\](?:\[\])?/).replace("ref",bl).getRegex(),p1=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\]){1,999}/,Mw=ge(/(?:[^\[\]\\`]*(?:\[(?:brackets|\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\]))){0,999}?[^\[\]\\`]*?/).replace("brackets",Mm).getRegex(),Pw=ge("reflink|nolink(?!\\()","g").replace("reflink",ge(/^!?\[(label)\]\[(ref)\]/).replace("label",Mw).replace("ref",p1).getRegex()).replace("nolink",ge(/^!?\[(ref)\](?:\[\])?/).replace("ref",p1).getRegex()).getRegex(),g1=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Bw=/[A-Za-z0-9._+-]+@[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![\w-])/,Fw=ge(/(?:mailto:email|xmpp:email(?:\/[A-Za-z0-9@.]+)?)/).replace(/email/g,Bw).getRegex(),yl={_backpedal:dn,anyPunctuation:Iw,autolink:_w,blockSkip:fw,br:Lm,code:uw,del:dn,delLDelim:dn,delRDelim:dn,emStrongLDelim:mw,emStrongRDelimAst:xw,emStrongRDelimUnd:vw,escape:sw,link:Rw,nolink:Ow,punctuation:ow,reflink:Dw,reflinkSearch:Pw,tag:Lw,text:lw,url:dn},Hw={...yl,emStrongLDelim:bw,emStrongRDelimAst:Tw,emStrongRDelimUnd:ww,link:ge(/^!?\[(label)\]\((.*?)\)/).replace("label",Xi).getRegex(),reflink:ge(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Xi).getRegex()},du={...yl,emStrongRDelimAst:Ew,emStrongLDelim:pw,delLDelim:Aw,delRDelim:Sw,url:ge(/^emailProtocol|^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("emailProtocol",Fw).replace("protocol",g1).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![\w-])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:ge(/^(?:[^a-zA-Z0-9](?=emailProtocol)|(`+|~+|[^`~])(?:(?=[`~])|(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9](?=emailProtocol)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))))/).replace("protocol",g1).replace(/emailProtocol/g,/(?:mailto|xmpp):/).getRegex()},zw={...du,br:ge(Lm).replace("{2,}","*").getRegex(),text:ge(du.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},vi={normal:El,gfm:aw,pedantic:iw},xa={normal:yl,gfm:du,breaks:zw,pedantic:Hw},$w={"&":"&","<":"<",">":">",'"':""","'":"'"},b1=e=>$w[e];function At(e,t){if(t){if(lt.escapeTest.test(e))return e.replace(lt.escapeReplace,b1)}else if(lt.escapeTestNoEncode.test(e))return e.replace(lt.escapeReplaceNoEncode,b1);return e}function Uw(e){return e.replace(lt.numericCharacterReference,(t,r,n)=>{let a=r===void 0?Number.parseInt(n,16):Number.parseInt(r,10);return a===0||a>1114111||a>=55296&&a<=57343?"�":String.fromCodePoint(a)})}function x1(e){try{e=encodeURI(e).replace(lt.percentDecode,"%")}catch{return null}return e}function E1(e,t){var i;let r=e.replace(lt.findPipe,(s,u,l)=>{let o=!1,c=u;for(;--c>=0&&l[c]==="\\";)o=!o;return o?"|":" |"}),n=r.split(lt.splitPipe),a=0;if(n[0].trim()||n.shift(),n.length>0&&!((i=n.at(-1))!=null&&i.trim())&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;a<n.length;a++)n[a]=n[a].trim().replace(lt.slashPipe,"|");return n}function Lr(e,t,r){let n=e.length;if(n===0)return"";let a=0;for(;a<n&&e.charAt(n-a-1)===t;)a++;return e.slice(0,n-a)}function y1(e){let t=e.split(`
|
|
460
|
+
`),r=t.length-1;for(;r>=0&<.blankLine.test(t[r]);)r--;return t.length-r<=2?e:t.slice(0,r+1).join(`
|
|
461
|
+
`)}function Qi(e){return e.trim().toLowerCase().toUpperCase().toLowerCase()}function T1(e,t){if(e.indexOf(t[0])===-1&&e.indexOf(t[1])===-1)return-1;let r=0;for(let n=0;n<e.length;n++)if(e[n]==="\\")n++;else if(e[n]===t[0])r++;else if(e[n]===t[1]&&(r--,r<0))return n;return r>0?-2:-1}function v1(e,t=0){let r=t,n="";for(let a of e)if(a===" "){let i=4-r%4;n+=" ".repeat(i),r+=i}else n+=a,r++;return n}function k1(e,t,r,n,a){let i=t.href,s=t.title||null,u=e[1].replace(a.other.outputLinkReplace,"$1"),l=e[0].charAt(0)==="!";n.state.inLink=!0;let o=n.state.linkEmitted,c=n.state.inRawBlock;n.state.linkEmitted=!1;let h=n.inlineTokens(u),f=n.state.linkEmitted;if(n.state.linkEmitted=o,n.state.inLink=!1,!l){if(f){n.state.inRawBlock=c;return}n.state.linkEmitted=!0}return{type:l?"image":"link",raw:r,href:i,title:s,text:u,tokens:h}}function qw(e,t,r){let n=e.match(r.other.indentCodeCompensation);if(n===null)return t;let a=n[1];return t.split(`
|
|
462
|
+
`).map(i=>{let s=i.match(r.other.beginningSpace);if(s===null)return i;let[u]=s;return i.slice(Math.min(u.length,a.length))}).join(`
|
|
463
|
+
`)}function w1(e,t,r,n){if(!t.includes("<"))return!1;for(let a=0;a<t.length;a++){if(t[a]==="\\"){a++;continue}if(t[a]==="`"){let u=n.inline.code.exec(t.slice(a));if(u){a+=u[0].length-1;continue}}if(t[a]!=="<")continue;let i=e.slice(r+a),s=n.inline.tag.exec(i)||n.inline.autolink.exec(i);if(s){if(s[0].length>t.length-a)return!0;a+=s[0].length-1}}return!1}var Ki=class{constructor(e){Ae(this,"options");Ae(this,"rules");Ae(this,"lexer");this.options=e||Cn}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let r=this.options.pedantic?t[0]:y1(t[0]),n=r.replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:r,codeBlockStyle:"indented",text:n}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let r=t[0],n=qw(r,t[3]||"",this.rules);return{type:"code",raw:r,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:n}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let r=t[2].trim();if(this.rules.other.endingHash.test(r)){let n=Lr(r,"#");(this.options.pedantic||!n||this.rules.other.endingSpaceTabChar.test(n))&&(r=n.trim())}return{type:"heading",raw:Lr(t[0],`
|
|
464
|
+
`),depth:t[1].length,text:r,tokens:this.lexer.inline(r)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:Lr(t[0],`
|
|
465
|
+
`)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let r=Lr(t[0],`
|
|
466
|
+
`).split(`
|
|
467
|
+
`),n="",a="",i=[];for(;r.length>0;){let s=!1,u=[],l;for(l=0;l<r.length;l++)if(this.rules.other.blockquoteStart.test(r[l]))u.push(r[l]),s=!0;else if(!s)u.push(r[l]);else break;r=r.slice(l);let o=u.join(`
|
|
468
|
+
`),c=o.replace(this.rules.other.blockquoteSetextReplace,`
|
|
469
|
+
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");n=n?`${n}
|
|
470
|
+
${o}`:o,a=a?`${a}
|
|
471
|
+
${c}`:c;let h=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(c,i,!0),this.lexer.state.top=h,r.length===0)break;let f=i.at(-1);if((f==null?void 0:f.type)==="code")break;if((f==null?void 0:f.type)==="blockquote"){let p=f,b=r.join(`
|
|
472
|
+
`),E=p.raw+`
|
|
473
|
+
`+b.replace(this.rules.other.blockquoteSetextReplace2,""),T=this.blockquote(E);i[i.length-1]=T;let k=E.substring(T.raw.length).replace(/^\n/,""),C=k?k.split(`
|
|
474
|
+
`).length:0,w=C?r.slice(0,-C):r;w.length>0&&(n=`${n}
|
|
475
|
+
${w.join(`
|
|
476
|
+
`)}`),a=a.substring(0,a.length-p.text.length)+T.text;break}else if((f==null?void 0:f.type)==="list"){let p=f,b=p.raw+`
|
|
477
|
+
`+r.join(`
|
|
478
|
+
`),E=this.list(b);i[i.length-1]=E,n=n.substring(0,n.length-f.raw.length)+E.raw,a=a.substring(0,a.length-p.raw.length)+E.raw,r=b.substring(i.at(-1).raw.length).split(`
|
|
479
|
+
`);continue}}return{type:"blockquote",raw:n,tokens:i,text:a}}}list(e){let t=this.rules.block.list.exec(e);if(t){let r=t[1].trim(),n=r.length>1,a={type:"list",raw:"",ordered:n,start:n?+r.slice(0,-1):"",loose:!1,items:[]};r=n?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=n?r:"[*+-]");let i=this.rules.other.listItemRegex(r),s=!1;for(;e;){let l=!1,o="",c="";if(!(t=i.exec(e))||this.rules.block.hr.test(e))break;o=t[0],e=e.substring(o.length);let h=t[2].split(`
|
|
480
|
+
`,1)[0],f=t[1].length,p=this.options.pedantic?v1(h,f):h.replace(this.rules.other.leadingSpaceTab,k=>v1(k,f)),b=e.split(`
|
|
481
|
+
`,1)[0],E=!p.trim(),T=0;if(this.options.pedantic?(T=2,c=p.trimStart()):E?T=f+1:(T=p.search(this.rules.other.nonSpaceChar),T=T>4?1:T,c=p.slice(T),T+=f),E&&this.rules.other.blankLine.test(b)&&(o+=b+`
|
|
482
|
+
`,e=e.substring(b.length+1),l=!0),!l){let k=this.rules.other.nextBulletRegex(T),C=this.rules.other.hrRegex(T),w=this.rules.other.fencesBeginRegex(T),H=this.rules.other.headingBeginRegex(T),z=this.rules.other.htmlBeginRegex(T),O=this.rules.other.blockquoteBeginRegex(T);for(;e;){let U=e.split(`
|
|
483
|
+
`,1)[0],q;if(b=U,this.options.pedantic?(b=b.replace(this.rules.other.listReplaceNesting," "),q=b):q=b.replace(this.rules.other.leadingSpaceTab,G=>G.replace(this.rules.other.tabCharGlobal," ")),w.test(b)||H.test(b)||z.test(b)||O.test(b)||k.test(b)||C.test(b))break;if(q.search(this.rules.other.nonSpaceChar)>=T||!b.trim())c+=`
|
|
484
|
+
`+q.slice(T);else{if(E||p.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||w.test(p)||H.test(p)||C.test(p))break;c+=`
|
|
485
|
+
`+b}E=!b.trim(),o+=U+`
|
|
486
|
+
`,e=e.substring(U.length+1),p=q.slice(T)}}a.loose||(s?a.loose=!0:this.rules.other.doubleBlankLine.test(o)&&(s=!0)),a.items.push({type:"list_item",raw:o,task:!!this.options.gfm&&this.rules.other.listIsTask.test(c),loose:!1,text:c,tokens:[]}),a.raw+=o}let u=a.items.at(-1);if(u)u.raw=u.raw.trimEnd(),u.text=u.text.trimEnd();else return;a.raw=a.raw.trimEnd();for(let l of a.items)if(this.lexer.state.top=!1,l.tokens=this.lexer.blockTokens(l.text,[]),!a.loose){let o=l.tokens.filter(h=>h.type==="space"),c=o.length>0&&o.some(h=>this.rules.other.anyLine.test(h.raw));a.loose=c}for(let l of a.items){let o=l.tokens[0];if(l.task&&((o==null?void 0:o.type)==="text"||(o==null?void 0:o.type)==="paragraph")){l.text=l.text.replace(this.rules.other.listReplaceTask,""),o.raw=o.raw.replace(this.rules.other.listReplaceTask,""),o.text=o.text.replace(this.rules.other.listReplaceTask,"");for(let h=this.lexer.inlineQueue.length-1;h>=0;h--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[h].src)){this.lexer.inlineQueue[h].src=this.lexer.inlineQueue[h].src.replace(this.rules.other.listReplaceTask,"");break}let c=this.rules.other.listTaskCheckbox.exec(l.raw);if(c){let h={type:"checkbox",raw:c[0]+" ",checked:c[0]!=="[ ]"};l.checked=h.checked,a.loose?l.tokens[0]&&["paragraph","text"].includes(l.tokens[0].type)&&"tokens"in l.tokens[0]&&l.tokens[0].tokens?(l.tokens[0].raw=h.raw+l.tokens[0].raw,l.tokens[0].text=h.raw+l.tokens[0].text,l.tokens[0].tokens.unshift(h)):l.tokens.unshift({type:"paragraph",raw:h.raw,text:h.raw,tokens:[h]}):l.tokens.unshift(h)}}else l.task&&(l.task=!1)}if(a.loose)for(let l of a.items){l.loose=!0;for(let o of l.tokens)o.type==="text"&&(o.type="paragraph")}return a}}html(e){let t=this.rules.block.html.exec(e);if(t){let r=y1(t[0]);return{type:"html",block:!0,raw:r,pre:t[1]==="pre"||t[1]==="script"||t[1]==="style",text:r}}}def(e){let t=this.rules.block.def.exec(e);if(t){if(!this.rules.other.startAngleBracket.test(t[2])&&T1(t[2],"()")!==-1)return;let r=Qi(t[1]).replace(this.rules.other.multipleSpaceGlobal," "),n=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",a=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:r,raw:Lr(t[0],`
|
|
487
|
+
`),href:n,title:a}}}table(e){var s;let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let r=E1(t[1]),n=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),a=(s=t[3])!=null&&s.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split(`
|
|
488
|
+
`):[],i={type:"table",raw:Lr(t[0],`
|
|
489
|
+
`),header:[],align:[],rows:[]};if(r.length===n.length){for(let u of n)this.rules.other.tableAlignRight.test(u)?i.align.push("right"):this.rules.other.tableAlignCenter.test(u)?i.align.push("center"):this.rules.other.tableAlignLeft.test(u)?i.align.push("left"):i.align.push(null);for(let u=0;u<r.length;u++)i.header.push({text:r[u],tokens:this.lexer.inline(r[u]),header:!0,align:i.align[u]});for(let u of a)i.rows.push(E1(u,i.header.length).map((l,o)=>({text:l,tokens:this.lexer.inline(l),header:!1,align:i.align[o]})));return i}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t){let r=t[1].trim();return{type:"heading",raw:Lr(t[0],`
|
|
490
|
+
`),depth:t[2].charAt(0)==="="?1:2,text:r,tokens:this.lexer.inline(r)}}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let r=t[1].charAt(t[1].length-1)===`
|
|
491
|
+
`?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:r,tokens:this.lexer.inline(r)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){if(this.lexer.state.linkParenPossible===!1)return;let t=this.rules.inline.link.exec(e);if(t){let r=t[0].charAt(0)==="!"?2:1;if(!this.options.pedantic&&w1(e,t[1],r,this.rules))return;let n=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(n)){if(!this.rules.other.endAngleBracket.test(n))return;let s=Lr(n.slice(0,-1),"\\");if((n.length-s.length)%2===0)return}else{let s=T1(t[2],"()");if(s===-2)return;if(s>-1){let u=(t[0].indexOf("!")===0?5:4)+t[1].length+s;t[2]=t[2].substring(0,s),t[0]=t[0].substring(0,u).trim(),t[3]=""}}let a=t[2],i="";if(this.options.pedantic){let s=this.rules.other.pedanticHrefTitle.exec(a);s&&(a=s[1],i=s[3])}else i=t[3]?t[3].slice(1,-1):"";return a=a.trim(),this.rules.other.startAngleBracket.test(a)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(n)?a=a.slice(1):a=a.slice(1,-1)),k1(t,{href:a&&a.replace(this.rules.inline.anyPunctuation,"$1"),title:i&&i.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let r;if((r=this.rules.inline.reflink.exec(e))||(r=this.rules.inline.nolink.exec(e))){let n=r[0].charAt(0)==="!"?2:1;if(!this.options.pedantic&&w1(e,r[1],n,this.rules))return;let a=(r[2]||r[1]).replace(this.rules.other.multipleSpaceGlobal," "),i=t[Qi(a)];if(!i){let s=r[0].charAt(0);return{type:"text",raw:s,text:s}}return k1(r,i,r[0],this.lexer,this.rules)}}emStrong(e,t,r=""){let n=this.rules.inline.emStrongLDelim.exec(e);if(!(!n||!n[1]&&!n[2]&&!n[3]&&!n[4]||n[4]&&r.match(this.rules.other.unicodeAlphaNumeric))&&(!(n[1]||n[3])||!r||this.rules.inline.punctuation.exec(r))){let a=[...n[0]].length-1,i,s,u=a,l=0,o=n[0][0],c=r===o,h=o==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(h.lastIndex=0,t=t.slice(-1*e.length+a);(n=h.exec(t))!==null;){if(i=n[1]||n[2]||n[3]||n[4]||n[5]||n[6],!i)continue;if(s=[...i].length,n[3]||n[4]){u+=s;continue}else if(n[5]||n[6]){if(a%3&&!((a+s)%3)){l+=s;continue}if(c)break}if(u-=s,u>0)continue;s=Math.min(s,s+u+l);let f=[...n[0]][0].length,p=e.slice(0,a+n.index+f+s);if(Math.min(a,s)%2){let E=p.slice(1,-1);return{type:"em",raw:p,text:E,tokens:this.lexer.inlineTokens(E)}}let b=p.slice(2,-2);return{type:"strong",raw:p,text:b,tokens:this.lexer.inlineTokens(b)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let r=t[2].replace(this.rules.other.newLineCharGlobal," "),n=this.rules.other.nonSpaceChar.test(r),a=this.rules.other.startingSpaceChar.test(r)&&this.rules.other.endingSpaceChar.test(r);return n&&a&&(r=r.substring(1,r.length-1)),{type:"codespan",raw:t[0],text:r}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e,t,r=""){let n=this.rules.inline.delLDelim.exec(e);if(n&&(!n[1]||!r||this.rules.inline.punctuation.exec(r))){let a=[...n[0]].length-1,i,s,u=a,l=this.rules.inline.delRDelim;for(l.lastIndex=0,t=t.slice(-1*e.length+a);(n=l.exec(t))!==null;){if(i=n[1]||n[2]||n[3]||n[4]||n[5]||n[6],!i||(s=[...i].length,s!==a))continue;if(n[3]||n[4]){u+=s;continue}if(u-=s,u>0)continue;s=Math.min(s,s+u);let o=[...n[0]][0].length,c=e.slice(0,a+n.index+o+s),h=c.slice(a,-a);return{type:"del",raw:c,text:h,tokens:this.lexer.inlineTokens(h)}}}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let r,n;return t[2]==="@"?(r=t[1],n="mailto:"+r):(r=t[1],n=r),{type:"link",raw:t[0],text:r,href:n,autolink:!0,tokens:[{type:"text",raw:r,text:r}]}}}url(e){var r;let t;if(t=this.rules.inline.url.exec(e)){let n,a;if(t[2]==="@")n=t[0],a="mailto:"+n;else{let i;do i=t[0],t[0]=((r=this.rules.inline._backpedal.exec(t[0]))==null?void 0:r[0])??"";while(i!==t[0]);n=t[0],t[1]==="www."?a="http://"+t[0]:a=t[0]}return{type:"link",raw:t[0],text:n,href:a,autolink:!0,tokens:[{type:"text",raw:n,text:n}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let r=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:r?t[0]:Uw(t[0]),escaped:r}}}},es,Pm,bn,Ot=(bn=class{constructor(t){Sr(this,es);Ae(this,"tokens");Ae(this,"options");Ae(this,"state");Ae(this,"inlineQueue");Ae(this,"tokenizer");this.tokens=[],this.tokens.links=Object.create(null),this.options=t||Cn,this.options.tokenizer=this.options.tokenizer||new Ki,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,linkEmitted:!1,linkParenPossible:!0,top:!0};let r={other:lt,block:vi.normal,inline:xa.normal};this.options.pedantic?(r.block=vi.pedantic,r.inline=xa.pedantic):this.options.gfm&&(r.block=vi.gfm,this.options.breaks?r.inline=xa.breaks:r.inline=xa.gfm),this.tokenizer.rules=r}static get rules(){return{block:vi,inline:xa}}static lex(t,r){return new bn(r).lex(t)}static lexInline(t,r){return new bn(r).inlineTokens(t)}lex(t){t=t.replace(lt.carriageReturn,`
|
|
492
|
+
`),this.blockTokens(t,this.tokens);for(let r=0;r<this.inlineQueue.length;r++){let n=this.inlineQueue[r];this.inlineTokens(n.src,n.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,r=[],n=!1){var i,s,u;this.tokenizer.lexer=this,this.options.pedantic&&(t=t.replace(lt.tabCharGlobal," ").replace(lt.spaceLine,""));let a=1/0;for(;t;){if(t.length<a)a=t.length;else{this.infiniteLoopError(t.charCodeAt(0));break}let l;if((s=(i=this.options.extensions)==null?void 0:i.block)!=null&&s.some(c=>(l=c.call({lexer:this},t,r))?(t=t.substring(l.raw.length),r.push(l),!0):!1))continue;if(l=this.tokenizer.space(t)){t=t.substring(l.raw.length);let c=r.at(-1);l.raw.length===1&&c!==void 0?c.raw+=`
|
|
493
|
+
`:r.push(l);continue}if(l=this.tokenizer.code(t)){t=t.substring(l.raw.length);let c=r.at(-1);(c==null?void 0:c.type)==="paragraph"||(c==null?void 0:c.type)==="text"?(c.raw+=(c.raw.endsWith(`
|
|
494
|
+
`)?"":`
|
|
495
|
+
`)+l.raw,c.text+=`
|
|
496
|
+
`+l.text,this.inlineQueue.at(-1).src=c.text):r.push(l);continue}if(l=this.tokenizer.fences(t)){t=t.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.heading(t)){t=t.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.hr(t)){t=t.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.blockquote(t)){t=t.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.list(t)){t=t.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.html(t)){t=t.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.def(t)){t=t.substring(l.raw.length);let c=r.at(-1);(c==null?void 0:c.type)==="paragraph"||(c==null?void 0:c.type)==="text"?(c.raw+=(c.raw.endsWith(`
|
|
497
|
+
`)?"":`
|
|
498
|
+
`)+l.raw,c.text+=`
|
|
499
|
+
`+l.raw,this.inlineQueue.at(-1).src=c.text):this.tokens.links[l.tag]||(this.tokens.links[l.tag]={href:l.href,title:l.title},r.push(l));continue}if(l=this.tokenizer.table(t)){t=t.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.lheading(t)){t=t.substring(l.raw.length),r.push(l);continue}let o=t;if((u=this.options.extensions)!=null&&u.startBlock){let c=1/0,h=t.slice(1),f;this.options.extensions.startBlock.forEach(p=>{f=p.call({lexer:this},h),typeof f=="number"&&f>=0&&(c=Math.min(c,f))}),c<1/0&&c>=0&&(o=t.substring(0,c+1))}if(this.state.top&&(l=this.tokenizer.paragraph(o))){let c=r.at(-1);n&&(c==null?void 0:c.type)==="paragraph"?(c.raw+=(c.raw.endsWith(`
|
|
500
|
+
`)?"":`
|
|
501
|
+
`)+l.raw,c.text+=`
|
|
502
|
+
`+l.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=c.text):r.push(l),n=o.length!==t.length,t=t.substring(l.raw.length);continue}if(l=this.tokenizer.text(t)){t=t.substring(l.raw.length);let c=r.at(-1);(c==null?void 0:c.type)==="text"?(c.raw+=(c.raw.endsWith(`
|
|
503
|
+
`)?"":`
|
|
504
|
+
`)+l.raw,c.text+=`
|
|
505
|
+
`+l.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=c.text):r.push(l);continue}if(t){this.infiniteLoopError(t.charCodeAt(0));break}}return this.state.top=!0,r}inline(t,r=[]){return this.inlineQueue.push({src:t,tokens:r}),r}linkInText(t){if(!t.includes("["))return!1;let r=this.tokenizer.rules.inline.link;for(let n of t.matchAll(this.tokenizer.rules.inline.blockSkip))if(r.test(n[0])&&t.charAt(n.index-1)!=="!")return!0;for(let n of t.matchAll(this.tokenizer.rules.inline.reflinkSearch)){let a=n[0],i=a.lastIndexOf("[");if(!(a.charAt(0)==="!"||!Object.hasOwn(this.tokens.links,Qi(a.slice(i+1,-1))))&&!(i>1&&this.linkInText(a.slice(1,i-1))))return!0}return!1}inlineTokens(t,r=[]){this.tokenizer.lexer=this;let n=this.state.linkParenPossible;this.state.linkParenPossible=n&&t.includes(")");try{return ii(this,es,Pm).call(this,t,r)}finally{this.state.linkParenPossible=n}}infiniteLoopError(t){let r="Infinite loop on byte: "+t;if(this.options.silent)console.error(r);else throw new Error(r)}},es=new WeakSet,Pm=function(t,r){var u,l,o,c,h;let n=t;if(this.tokens.links&&t.includes("[")){let f=this.tokenizer.rules.inline.reflinkSearch,p=b=>{let E=b.lastIndexOf("[");if(!Object.hasOwn(this.tokens.links,Qi(b.slice(E+1,-1))))return b;if(E>1&&b.charAt(0)!=="!"){let T=b.slice(1,E-1);if(this.linkInText(T))return"["+T.replace(f,p)+"]["+"a".repeat(b.length-E-2)+"]"}return"["+"a".repeat(b.length-2)+"]"};n=n.replace(f,p)}n=n.replace(this.tokenizer.rules.inline.anyPunctuation,f=>"+".repeat(f.length)),n=n.replace(this.tokenizer.rules.inline.blockSkip,(f,p,b)=>{let E=b?b.length:0;return f.slice(0,E)+"["+"a".repeat(f.length-E-2)+"]"}),n=((l=(u=this.options.hooks)==null?void 0:u.emStrongMask)==null?void 0:l.call({lexer:this},n))??n;let a=!1,i="",s=1/0;for(;t;){if(t.length<s)s=t.length;else{this.infiniteLoopError(t.charCodeAt(0));break}a||(i=""),a=!1;let f;if((c=(o=this.options.extensions)==null?void 0:o.inline)!=null&&c.some(b=>(f=b.call({lexer:this},t,r))?(t=t.substring(f.raw.length),r.push(f),!0):!1))continue;if(f=this.tokenizer.escape(t)){t=t.substring(f.raw.length),r.push(f);continue}if(f=this.tokenizer.tag(t)){t=t.substring(f.raw.length),r.push(f);continue}if(f=this.tokenizer.link(t)){t=t.substring(f.raw.length),r.push(f);continue}if(f=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(f.raw.length);let b=r.at(-1);f.type==="text"&&(b==null?void 0:b.type)==="text"?(b.raw+=f.raw,b.text+=f.text):r.push(f);continue}if(f=this.tokenizer.emStrong(t,n,i)){t=t.substring(f.raw.length),r.push(f);continue}if(f=this.tokenizer.codespan(t)){t=t.substring(f.raw.length),r.push(f);continue}if(f=this.tokenizer.br(t)){t=t.substring(f.raw.length),r.push(f);continue}if(f=this.tokenizer.del(t,n,i)){t=t.substring(f.raw.length),r.push(f);continue}if(f=this.tokenizer.autolink(t)){t=t.substring(f.raw.length),r.push(f);continue}if(!this.state.inLink&&(f=this.tokenizer.url(t))){t=t.substring(f.raw.length),r.push(f);continue}let p=t;if((h=this.options.extensions)!=null&&h.startInline){let b=1/0,E=t.slice(1),T;this.options.extensions.startInline.forEach(k=>{T=k.call({lexer:this},E),typeof T=="number"&&T>=0&&(b=Math.min(b,T))}),b<1/0&&b>=0&&(p=t.substring(0,b+1))}if(f=this.tokenizer.inlineText(p)){t=t.substring(f.raw.length),f.raw.slice(-1)!=="_"&&(i=f.raw.slice(-1)),a=!0;let b=r.at(-1);(b==null?void 0:b.type)==="text"?(b.raw+=f.raw,b.text+=f.text):r.push(f);continue}if(t){this.infiniteLoopError(t.charCodeAt(0));break}}return r},bn),Zi=class{constructor(t){Ae(this,"options");Ae(this,"parser");this.options=t||Cn}space(t){return""}code({text:t,lang:r,escaped:n}){var s;let a=(s=(r||"").match(lt.notSpaceStart))==null?void 0:s[0],i=t?t.replace(lt.endingNewline,"")+`
|
|
506
|
+
`:"";return a?'<pre><code class="language-'+At(a)+'">'+(n?i:At(i,!0))+`</code></pre>
|
|
507
|
+
`:"<pre><code>"+(n?i:At(i,!0))+`</code></pre>
|
|
508
|
+
`}blockquote({tokens:t}){return`<blockquote>
|
|
509
|
+
${this.parser.parse(t)}</blockquote>
|
|
510
|
+
`}html({text:t}){return t}def(t){return""}heading({tokens:t,depth:r}){return`<h${r}>${this.parser.parseInline(t)}</h${r}>
|
|
511
|
+
`}hr(t){return`<hr>
|
|
512
|
+
`}list(t){let r=t.ordered,n=t.start,a="";for(let u=0;u<t.items.length;u++){let l=t.items[u];a+=this.listitem(l)}let i=r?"ol":"ul",s=r&&n!==1?' start="'+n+'"':"";return"<"+i+s+`>
|
|
513
|
+
`+a+"</"+i+`>
|
|
514
|
+
`}listitem(t){return`<li>${this.parser.parse(t.tokens)}</li>
|
|
515
|
+
`}checkbox({checked:t}){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:t}){return`<p>${this.parser.parseInline(t)}</p>
|
|
516
|
+
`}table(t){let r="",n="";for(let i=0;i<t.header.length;i++)n+=this.tablecell(t.header[i]);r+=this.tablerow({text:n});let a="";for(let i=0;i<t.rows.length;i++){let s=t.rows[i];n="";for(let u=0;u<s.length;u++)n+=this.tablecell(s[u]);a+=this.tablerow({text:n})}return a&&(a=`<tbody>${a}</tbody>`),`<table>
|
|
517
|
+
<thead>
|
|
518
|
+
`+r+`</thead>
|
|
519
|
+
`+a+`</table>
|
|
520
|
+
`}tablerow({text:t}){return`<tr>
|
|
521
|
+
${t}</tr>
|
|
522
|
+
`}tablecell(t){let r=this.parser.parseInline(t.tokens),n=t.header?"th":"td";return(t.align?`<${n} align="${t.align}">`:`<${n}>`)+r+`</${n}>
|
|
523
|
+
`}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${At(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:r,text:n,tokens:a,autolink:i}){let s=i?At(n,!0):this.parser.parseInline(a),u=x1(t);if(u===null)return s;t=At(u,i);let l='<a href="'+t+'"';return r&&(l+=' title="'+At(r)+'"'),l+=">"+s+"</a>",l}image({href:t,title:r,text:n,tokens:a}){a&&(n=this.parser.parseInline(a,this.parser.textRenderer));let i=x1(t);if(i===null)return At(n);t=i;let s=`<img src="${At(t)}" alt="${At(n)}"`;return r&&(s+=` title="${At(r)}"`),s+=">",s}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:At(t.text)}},Tl=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}checkbox({raw:e}){return e}},jt=class fu{constructor(t){Ae(this,"options");Ae(this,"renderer");Ae(this,"textRenderer");this.options=t||Cn,this.options.renderer=this.options.renderer||new Zi,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Tl}static parse(t,r){return new fu(r).parse(t)}static parseInline(t,r){return new fu(r).parseInline(t)}parse(t){var n,a;this.renderer.parser=this;let r="";for(let i=0;i<t.length;i++){let s=t[i];if((a=(n=this.options.extensions)==null?void 0:n.renderers)!=null&&a[s.type]){let l=s,o=this.options.extensions.renderers[l.type].call({parser:this},l);if(o!==!1||!["space","hr","heading","code","table","blockquote","list","checkbox","html","def","paragraph","text"].includes(l.type)){r+=o||"";continue}}let u=s;switch(u.type){case"space":{r+=this.renderer.space(u);break}case"hr":{r+=this.renderer.hr(u);break}case"heading":{r+=this.renderer.heading(u);break}case"code":{r+=this.renderer.code(u);break}case"table":{r+=this.renderer.table(u);break}case"blockquote":{r+=this.renderer.blockquote(u);break}case"list":{r+=this.renderer.list(u);break}case"checkbox":{r+=this.renderer.checkbox(u);break}case"html":{r+=this.renderer.html(u);break}case"def":{r+=this.renderer.def(u);break}case"paragraph":{r+=this.renderer.paragraph(u);break}case"text":{r+=this.renderer.text(u);break}default:{let l='Token with "'+u.type+'" type was not found.';if(this.options.silent)return console.error(l),"";throw new Error(l)}}}return r}parseInline(t,r=this.renderer){var a,i;this.renderer.parser=this;let n="";for(let s=0;s<t.length;s++){let u=t[s];if((i=(a=this.options.extensions)==null?void 0:a.renderers)!=null&&i[u.type]){let o=this.options.extensions.renderers[u.type].call({parser:this},u);if(o!==!1||!["escape","html","link","image","checkbox","strong","em","codespan","br","del","text"].includes(u.type)){n+=o||"";continue}}let l=u;switch(l.type){case"escape":{n+=r.text(l);break}case"html":{n+=r.html(l);break}case"link":{n+=r.link(l);break}case"image":{n+=r.image(l);break}case"checkbox":{n+=r.checkbox(l);break}case"strong":{n+=r.strong(l);break}case"em":{n+=r.em(l);break}case"codespan":{n+=r.codespan(l);break}case"br":{n+=r.br(l);break}case"del":{n+=r.del(l);break}case"text":{n+=r.text(l);break}default:{let o='Token with "'+l.type+'" type was not found.';if(this.options.silent)return console.error(o),"";throw new Error(o)}}}return n}},Ai,ka=(Ai=class{constructor(e){Ae(this,"options");Ae(this,"block");this.options=e||Cn}preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(e=this.block){return e?Ot.lex:Ot.lexInline}provideParser(e=this.block){return e?jt.parse:jt.parseInline}},Ae(Ai,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),Ae(Ai,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),Ai),jw=class{constructor(...t){Ae(this,"defaults",ml());Ae(this,"options",this.setOptions);Ae(this,"parse",this.parseMarkdown(!0));Ae(this,"parseInline",this.parseMarkdown(!1));Ae(this,"Parser",jt);Ae(this,"Renderer",Zi);Ae(this,"TextRenderer",Tl);Ae(this,"Lexer",Ot);Ae(this,"Tokenizer",Ki);Ae(this,"Hooks",ka);this.use(...t)}walkTokens(t,r){var a,i;let n=[];for(let s of t)switch(n=n.concat(r.call(this,s)),s.type){case"table":{let u=s;for(let l of u.header)n=n.concat(this.walkTokens(l.tokens,r));for(let l of u.rows)for(let o of l)n=n.concat(this.walkTokens(o.tokens,r));break}case"list":{let u=s;n=n.concat(this.walkTokens(u.items,r));break}default:{let u=s;(i=(a=this.defaults.extensions)==null?void 0:a.childTokens)!=null&&i[u.type]?this.defaults.extensions.childTokens[u.type].forEach(l=>{let o=u[l].flat(1/0);n=n.concat(this.walkTokens(o,r))}):u.tokens&&(n=n.concat(this.walkTokens(u.tokens,r)))}}return n}use(...t){let r=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(n=>{let a={...n};if(a.async=this.defaults.async||a.async||!1,n.extensions&&(n.extensions.forEach(i=>{if(!i.name)throw new Error("extension name required");if("renderer"in i){let s=r.renderers[i.name];s?r.renderers[i.name]=function(...u){let l=i.renderer.apply(this,u);return l===!1&&(l=s.apply(this,u)),l}:r.renderers[i.name]=i.renderer}if("tokenizer"in i){if(!i.level||i.level!=="block"&&i.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let s=r[i.level];s?s.unshift(i.tokenizer):r[i.level]=[i.tokenizer],i.start&&(i.level==="block"?r.startBlock?r.startBlock.push(i.start):r.startBlock=[i.start]:i.level==="inline"&&(r.startInline?r.startInline.push(i.start):r.startInline=[i.start]))}"childTokens"in i&&i.childTokens&&(r.childTokens[i.name]=i.childTokens)}),a.extensions=r),n.renderer){let i=this.defaults.renderer||new Zi(this.defaults);for(let s in n.renderer){if(!(s in i))throw new Error(`renderer '${s}' does not exist`);if(["options","parser"].includes(s))continue;let u=s,l=n.renderer[u],o=i[u];i[u]=(...c)=>{let h=l.apply(i,c);return h===!1&&(h=o.apply(i,c)),h||""}}a.renderer=i}if(n.tokenizer){let i=this.defaults.tokenizer||new Ki(this.defaults);for(let s in n.tokenizer){if(!(s in i))throw new Error(`tokenizer '${s}' does not exist`);if(["options","rules","lexer"].includes(s))continue;let u=s,l=n.tokenizer[u],o=i[u];i[u]=(...c)=>{let h=l.apply(i,c);return h===!1&&(h=o.apply(i,c)),h}}a.tokenizer=i}if(n.hooks){let i=this.defaults.hooks||new ka;for(let s in n.hooks){if(!(s in i))throw new Error(`hook '${s}' does not exist`);if(["options","block"].includes(s))continue;let u=s,l=n.hooks[u],o=i[u];ka.passThroughHooks.has(s)?i[u]=c=>{if(this.defaults.async&&ka.passThroughHooksRespectAsync.has(s))return(async()=>{let f=await l.call(i,c);return o.call(i,f)})();let h=l.call(i,c);return o.call(i,h)}:i[u]=(...c)=>{if(this.defaults.async)return(async()=>{let f=await l.apply(i,c);return f===!1&&(f=await o.apply(i,c)),f})();let h=l.apply(i,c);return h===!1&&(h=o.apply(i,c)),h}}a.hooks=i}if(n.walkTokens){let i=this.defaults.walkTokens,s=n.walkTokens;a.walkTokens=function(u){let l=[];return l.push(s.call(this,u)),i&&(l=l.concat(i.call(this,u))),l}}this.defaults={...this.defaults,...a}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,r){return Ot.lex(t,r??this.defaults)}parser(t,r){return jt.parse(t,r??this.defaults)}parseMarkdown(t){return(r,n)=>{let a={...n},i={...this.defaults,...a},s=this.onError(!!i.silent,!!i.async);if(this.defaults.async===!0&&a.async===!1)return s(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof r>"u"||r===null)return s(new Error("marked(): input parameter is undefined or null"));if(typeof r!="string")return s(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));if(i.hooks&&(i.hooks.options=i,i.hooks.block=t),i.async)return(async()=>{let u=i.hooks?await i.hooks.preprocess(r):r,l=await(i.hooks?await i.hooks.provideLexer(t):t?Ot.lex:Ot.lexInline)(u,i),o=i.hooks?await i.hooks.processAllTokens(l):l;i.walkTokens&&await Promise.all(this.walkTokens(o,i.walkTokens));let c=await(i.hooks?await i.hooks.provideParser(t):t?jt.parse:jt.parseInline)(o,i);return i.hooks?await i.hooks.postprocess(c):c})().catch(s);try{i.hooks&&(r=i.hooks.preprocess(r));let u=(i.hooks?i.hooks.provideLexer(t):t?Ot.lex:Ot.lexInline)(r,i);i.hooks&&(u=i.hooks.processAllTokens(u)),i.walkTokens&&this.walkTokens(u,i.walkTokens);let l=(i.hooks?i.hooks.provideParser(t):t?jt.parse:jt.parseInline)(u,i);return i.hooks&&(l=i.hooks.postprocess(l)),l}catch(u){return s(u)}}}onError(t,r){return n=>{if(n.message+=`
|
|
524
|
+
Please report this to https://github.com/markedjs/marked.`,t){let a="<p>An error occurred:</p><pre>"+At(n.message+"",!0)+"</pre>";return r?Promise.resolve(a):a}if(r)return Promise.reject(n);throw n}}},Tn=new jw;function Ne(e,t){return Tn.parse(e,t)}Ne.options=Ne.setOptions=function(e){return Tn.setOptions(e),Ne.defaults=Tn.defaults,Sm(Ne.defaults),Ne};Ne.getDefaults=ml;Ne.defaults=Cn;function Gw(...e){return Tn.use(...e),Ne.defaults=Tn.defaults,Sm(Ne.defaults),Ne}Ne.use=Gw;Ne.walkTokens=function(e,t){return Tn.walkTokens(e,t)};Ne.parseInline=Tn.parseInline;Ne.Parser=jt;Ne.parser=jt.parse;Ne.Renderer=Zi;Ne.TextRenderer=Tl;Ne.Lexer=Ot;Ne.lexer=Ot.lex;Ne.Tokenizer=Ki;Ne.Hooks=ka;Ne.parse=Ne;Ne.options;Ne.setOptions;Ne.walkTokens;Ne.parseInline;jt.parse;Ot.lex;var Vw=300,Yw="300px",Ww=500;function Xw(e={}){let{immediate:t=!1,debounceDelay:r=Vw,rootMargin:n=Yw,idleTimeout:a=Ww}=e,[i,s]=D.useState(!1),u=D.useRef(null),l=D.useRef(null),o=D.useRef(null),c=D.useMemo(()=>p=>{let b=Date.now();return window.setTimeout(()=>{p({didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-b))})},1)},[]),h=D.useMemo(()=>typeof window<"u"&&window.requestIdleCallback?(p,b)=>window.requestIdleCallback(p,b):c,[c]),f=D.useMemo(()=>typeof window<"u"&&window.cancelIdleCallback?p=>window.cancelIdleCallback(p):p=>{clearTimeout(p)},[]);return D.useEffect(()=>{if(t){s(!0);return}let p=u.current;if(!p)return;l.current&&(clearTimeout(l.current),l.current=null),o.current&&(f(o.current),o.current=null);let b=()=>{l.current&&(clearTimeout(l.current),l.current=null),o.current&&(f(o.current),o.current=null)},E=w=>{o.current=h(H=>{H.timeRemaining()>0||H.didTimeout?(s(!0),w.disconnect()):o.current=h(()=>{s(!0),w.disconnect()},{timeout:a/2})},{timeout:a})},T=w=>{b(),l.current=window.setTimeout(()=>{var H,z;let O=w.takeRecords();(O.length===0||(z=(H=O.at(-1))==null?void 0:H.isIntersecting)!=null&&z)&&E(w)},r)},k=(w,H)=>{w.isIntersecting?T(H):b()},C=new IntersectionObserver(w=>{for(let H of w)k(H,C)},{rootMargin:n,threshold:0});return C.observe(p),()=>{l.current&&clearTimeout(l.current),o.current&&f(o.current),C.disconnect()}},[t,r,n,a,f,h]),{shouldRender:i,containerRef:u}}var Qw=320,Kw=4,Bm=()=>typeof performance>"u"?Date.now():performance.now();function A1(e){var t,r;let n=(t=e==null?void 0:e.now)!=null?t:Bm,a=(r=e==null?void 0:e.maxBacklogMs)!=null?r:Qw,i=0,s=0;return{now:n,beginPass(u){s=Math.min(Math.max(i,u),u+a)},mark(){return s},rewind(u){s=u},take(u,l,o){if(u<=0)return{baseDelay:0,step:Math.max(0,l)};let c=Math.max(0,l),h=c===0?0:Math.min(c,Kw),f=Math.max(s,o),p=o+a,b=f+Math.max(0,u-1)*c,E=c;if(b>p&&u>1)if(f<p){let k=p-f;E=Math.max(h,k/(u-1))}else E=h;let T=Math.max(0,Math.round(f-o));return s=f+u*E,{baseDelay:T,step:E}},commitPass(){i=s}}}var Fm=/\s/,vl=/^\s+$/,Zw=new Set(["pre","svg","math","annotation"]),Jw=new Set(["img","hr"]),ai=e=>typeof e=="object"&&e!==null&&"type"in e&&e.type==="element",kl=e=>e.some(t=>ai(t)&&Zw.has(t.tagName)),eA=e=>{for(let t=e.length-1;t>=0;t--){let r=e[t];if(ai(r)&&r.tagName==="li")return r}},tA=(e,t,r,n)=>{e.properties!=null||(e.properties={}),e.properties["data-sd-animate-marker"]=!0;let a=typeof e.properties.style=="string"?`${e.properties.style};`:"";e.properties.style=`${a}--sd-marker-duration:${t}ms;--sd-marker-delay:${Math.round(r)}ms;--sd-marker-easing:${n}`},rA=new Set(["ul","ol","li"]),Hm=e=>{for(let t of e.children)if(ai(t)){if(t.tagName==="input")return t;if(rA.has(t.tagName))continue;let r=Hm(t);if(r)return r}},zm=(e,t,r,n)=>{e.properties!=null||(e.properties={}),e.properties["data-sd-animate"]=!0;let a=typeof e.properties.style=="string"?`${e.properties.style};`:"";e.properties.style=`${a}--sd-animation:sd-${t.animation};--sd-duration:${r}ms;--sd-easing:${t.easing};--sd-delay:${Math.round(n)}ms`},nA=(e,t,r,n)=>{let a=Hm(e);a&&zm(a,t,r,n)},aA=(e,t,r,n,a,i)=>{if(kl(t))return;let s=n.prevContentLength,u=a.count;a.count+=1;let l=s>0&&u<s,o=l?0:i.baseDelay+a.newIndex++*i.step;zm(e,r,l?0:r.duration,o)},iA=e=>{var t;for(let r=e.length-1;r>=0;r-=1){let n=e[r];if(ai(n)){if((t=n.properties)!=null&&t["data-sd-animated"])break;n.properties={...n.properties,"data-sd-animated":!0}}}},$m=e=>{let t=[],r="",n=!1;for(let a of e){let i=Fm.test(a);if(i!==n&&r){if(i){r+=a,n=!0;continue}t.push(r),r=""}r+=a,n=i}return r&&t.push(r),t},Um=e=>{let t=[],r="";for(let n of e)Fm.test(n)?t.length>0&&!vl.test(t.at(-1))?t[t.length-1]+=n:r+=n:(r&&(t.push(r),r=""),t.push(n));return r&&(t.length>0?t[t.length-1]+=r:t.push(r)),t},C1=/^[^\s;:'"\\/](?:[^;:'"\\/\r\n]*[^\s;:'"\\/])?$/,sA=(e,t,r,n)=>{let a=`sd-${t.animation}`,i=`${r?0:t.duration}ms`,s;return t.styleObjects?(s={"--sd-animation":a,"--sd-duration":i,"--sd-easing":t.easing},n&&(s["--sd-delay"]=`${Math.round(n)}ms`)):(s=`--sd-animation:${a};--sd-duration:${i};--sd-easing:${t.easing}`,n&&(s+=`;--sd-delay:${Math.round(n)}ms`)),{type:"element",tagName:"span",properties:{"data-sd-animate":!0,style:s},children:[{type:"text",value:e}]}},S1=(e,t)=>!(e>0&&t<e),mu=e=>ai(e)&&Jw.has(e.tagName),uA=(e,t,r)=>{let n=0,a=0;return Xa(e,i=>i.type==="text"||mu(i),(i,s)=>{if(kl(s))return $r;if(mu(i)){S1(r,a)&&(n+=1),a+=1;return}let u=i.value;if(!u.trim()){a+=u.length;return}let l=t.sep==="char"?Um(u):$m(u);for(let o of l){let c=a;a+=o.length,!vl.test(o)&&S1(r,c)&&(n+=1)}}),n},lA=(e,t,r,n,a,i)=>{var s;let u=t.at(-1);if(!(u&&"children"in u))return;if(kl(t))return $r;let l=u,o=l.children.indexOf(e);if(o===-1)return;let c=e.value;if(!c.trim()){a.count+=c.length;return}let h=r.sep==="char"?Um(c):$m(c),f=n.prevContentLength,p=!1,b=eA(t),E=!!(b&&!((s=b.properties)!=null&&s["data-sd-animate-marker"])),T=!1,k=h.map(C=>{let w=a.count;if(a.count+=C.length,vl.test(C))return{type:"text",value:C};let H=f>0&&w<f,z=H?0:i.baseDelay+a.newIndex++*i.step;if(p=!0,b&&E&&!T){let O=H?0:r.duration;tA(b,O,z,r.easing),nA(b,r,O,z),T=!0}return sA(C,r,H,z)});return p&&iA(t),l.children.splice(o,1,...k),o+k.length},oA=0;function cA(e){return qm(e,!1)}var hA=e=>qm(e,!0);function qm(e,t){var r,n,a,i,s;let u=(r=e==null?void 0:e.animation)!=null?r:"fadeIn",l=(n=e==null?void 0:e.easing)!=null?n:"ease",o={animation:u,duration:(a=e==null?void 0:e.duration)!=null?a:150,easing:l,sep:(i=e==null?void 0:e.sep)!=null?i:"word",stagger:(s=e==null?void 0:e.stagger)!=null?s:40,styleObjects:t&&C1.test(u)&&C1.test(l),timeline:e==null?void 0:e.timeline},c={committedCharCount:0,prevContentLength:0,lastRenderCharCount:0,pendingMark:null},h=oA++,f=()=>p=>{var b;let E={count:0,newIndex:0};c.prevContentLength=c.committedCharCount;let T=o.timeline,k=(b=T==null?void 0:T.now())!=null?b:Bm();T&&(c.pendingMark===null?c.pendingMark=T.mark():T.rewind(c.pendingMark));let C=T?T.take(uA(p,o,c.prevContentLength),o.stagger,k):{baseDelay:0,step:o.stagger};Xa(p,w=>w.type==="text"||mu(w),(w,H)=>{if(w.type==="text")return lA(w,H,o,c,E,C);aA(w,H,o,c,E,C)}),c.lastRenderCharCount=E.count,c.prevContentLength=0};return Object.defineProperty(f,"name",{value:`rehypeAnimate$${h}`}),{name:"animate",type:"animate",rehypePlugin:f,setPrevContentLength(p){c.committedCharCount=p,c.prevContentLength=p},getLastRenderCharCount(){return c.lastRenderCharCount},commit(){c.committedCharCount=c.lastRenderCharCount,c.pendingMark=null}}}cA();var jm=D.createContext(!1),Gm=()=>D.useContext(jm),Is=(...e)=>ah(nh(e)),dA=(e,t)=>{if(!e||!t)return t;let r=`${e}:`;return t.split(/\s+/).filter(Boolean).map(n=>n.startsWith(r)?n:`${e}:${n}`).join(" ")},fA=e=>e?(...t)=>dA(e,ah(nh(t))):Is,Un=(e,t,r)=>{let n=typeof t=="string"&&r.startsWith("text/csv")?"\uFEFF":"",a=typeof t=="string"?new Blob([n+t],{type:r}):t,i=URL.createObjectURL(a),s=document.createElement("a");s.href=i,s.download=e,document.body.appendChild(s),s.click(),document.body.removeChild(s),URL.revokeObjectURL(i)},pu=D.createContext(Is),ve=()=>D.useContext(pu),mA=8,Vm=e=>{if(!(e===void 0||e===0||e===Number.POSITIVE_INFINITY)){if(typeof e=="number")return Number.isFinite(e)&&e>0?`${e}px`:void 0;if(!(e==="0"||e==="none"||e==="Infinity"))return e}},Ym=(e,t,r)=>{let n=D.useRef(null),a=D.useRef(!0),i=D.useRef(!1),s=D.useRef(null);return D.useEffect(()=>{let u=n.current;if(!(u&&t))return;let l=()=>{let o=u.scrollHeight-u.scrollTop-u.clientHeight<mA;a.current=o};return u.addEventListener("scroll",l,{passive:!0}),()=>u.removeEventListener("scroll",l)},[t]),D.useEffect(()=>{e&&!i.current&&(a.current=!0),e||(a.current=!0),i.current=e},[e]),D.useEffect(()=>()=>{s.current!==null&&cancelAnimationFrame(s.current)},[]),D.useEffect(()=>{let u=n.current;!(u&&t&&e&&a.current)||s.current!==null||(s.current=requestAnimationFrame(()=>{s.current=null,a.current&&u.scrollTo({top:u.scrollHeight,behavior:"instant"})}))},[e,t,r]),n},pA=Is("block"),gA=Is("block","before:content-[counter(line)]","before:inline-block","before:[counter-increment:line]","before:w-6","before:mr-4","before:text-[13px]","before:text-right","before:text-muted-foreground/50","before:font-mono","before:select-none"),bA=e=>{let t={};for(let r of e.split(";")){let n=r.indexOf(":");if(n>0){let a=r.slice(0,n).trim(),i=r.slice(n+1).trim();a&&i&&(t[a]=i)}}return t},xA=D.memo(({children:e,result:t,language:r,className:n,maxHeight:a,startLine:i,lineNumbers:s=!0,...u})=>{let l=ve(),{isAnimating:o}=D.useContext(ut),c=Vm(a),h=Ym(o,!!c,t),f=D.useMemo(()=>l(gA),[l]),p=D.useMemo(()=>l(pA),[l]),b=D.useMemo(()=>{let E={};return t.bg&&(E["--sdm-bg"]=t.bg),t.fg&&(E["--sdm-fg"]=t.fg),t.rootStyle&&Object.assign(E,bA(t.rootStyle)),E},[t.bg,t.fg,t.rootStyle]);return I.jsx("div",{className:l(n,c?"overflow-y-auto":null,"overflow-x-auto rounded-md border border-border bg-background p-4 text-sm"),"data-language":r,"data-streamdown":"code-block-body",ref:h,style:c?{maxHeight:c}:void 0,...u,children:I.jsx("pre",{className:l(n,"bg-[var(--sdm-bg,inherit)]","dark:bg-[var(--shiki-dark-bg,var(--sdm-bg,inherit))]"),style:b,children:I.jsx("code",{className:s?l("[counter-increment:line_0] [counter-reset:line]"):void 0,style:s&&i&&i>1?{counterReset:`line ${i-1}`}:void 0,children:t.tokens.map((E,T)=>I.jsx("span",{className:s?f:p,children:E.length===0||E.length===1&&E[0].content===""?`
|
|
525
|
+
`:E.map((k,C)=>{let w={},H=!!k.bgColor;if(k.color&&(w["--sdm-c"]=k.color),k.bgColor&&(w["--sdm-tbg"]=k.bgColor),k.htmlStyle)for(let[z,O]of Object.entries(k.htmlStyle))z==="color"?w["--sdm-c"]=O:z==="background-color"?(w["--sdm-tbg"]=O,H=!0):w[z]=O;return I.jsx("span",{className:l("text-[var(--sdm-c,inherit)]","dark:text-[var(--shiki-dark,var(--sdm-c,inherit))]",H&&"bg-[var(--sdm-tbg)]",H&&"dark:bg-[var(--shiki-dark-bg,var(--sdm-tbg))]"),style:w,...k.htmlAttrs,children:k.content},C)})},T))})})})}),EA=({className:e,language:t,style:r,isIncomplete:n,...a})=>{let i=ve();return I.jsx("div",{className:i("relative my-4 flex w-full flex-col gap-2 rounded-xl border border-border bg-sidebar p-2",e),"data-incomplete":n||void 0,"data-language":t,"data-streamdown":"code-block",style:{contentVisibility:"auto",containIntrinsicSize:"auto 200px",...r},...a})},Wm=D.createContext({code:""}),Xm=()=>D.useContext(Wm),yA=({language:e})=>{let t=ve();return I.jsx("div",{className:t("flex h-8 items-center text-muted-foreground text-xs"),"data-language":e,"data-streamdown":"code-block-header",children:I.jsx("span",{className:t("ml-1 font-mono lowercase"),children:e})})},TA=e=>{let t=e.length;for(;t>0&&e[t-1]===`
|
|
526
|
+
`;)t--;return e.slice(0,t)},vA=D.lazy(()=>J1(()=>import("./highlighted-body-KQOG7T2V-4q_hgdCF.js"),__vite__mapDeps([0,1,2,3,4,5,6,7])).then(e=>({default:e.HighlightedCodeBlockBody}))),kA=({code:e,language:t,className:r,children:n,isIncomplete:a=!1,startLine:i,lineNumbers:s,...u})=>{let l=ve(),{codeBlockMaxHeight:o}=D.useContext(ut),c=D.useMemo(()=>TA(e),[e]),h=D.useMemo(()=>({bg:"transparent",fg:"inherit",tokens:c.split(`
|
|
527
|
+
`).map(f=>[{content:f,color:"inherit",bgColor:"transparent",htmlStyle:{},offset:0}])}),[c]);return I.jsx(Wm.Provider,{value:{code:e},children:I.jsxs(EA,{dir:"ltr",isIncomplete:a,language:t,children:[I.jsx(yA,{language:t}),n?I.jsx("div",{className:l("pointer-events-none absolute top-2 right-2 z-10 flex items-center"),children:I.jsx("div",{className:l("pointer-events-auto flex shrink-0 items-center gap-2 rounded-md border border-sidebar bg-sidebar/80 px-1.5 py-1 supports-[backdrop-filter]:bg-sidebar/70 supports-[backdrop-filter]:backdrop-blur"),"data-streamdown":"code-block-actions",children:n})}):null,I.jsx(D.Suspense,{fallback:I.jsx(xA,{className:r,language:t,lineNumbers:s,maxHeight:o,result:h,startLine:i,...u}),children:I.jsx(vA,{className:r,code:c,isIncomplete:a,language:t,lineNumbers:s,maxHeight:o,raw:h,startLine:i,...u})})]})})},wA=e=>I.jsx("svg",{"aria-hidden":"true",color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:I.jsx("path",{clipRule:"evenodd",d:"M15.5607 3.99999L15.0303 4.53032L6.23744 13.3232C5.55403 14.0066 4.44599 14.0066 3.76257 13.3232L4.2929 12.7929L3.76257 13.3232L0.969676 10.5303L0.439346 9.99999L1.50001 8.93933L2.03034 9.46966L4.82323 12.2626C4.92086 12.3602 5.07915 12.3602 5.17678 12.2626L13.9697 3.46966L14.5 2.93933L15.5607 3.99999Z",fill:"currentColor",fillRule:"evenodd"})}),AA=e=>I.jsx("svg",{"aria-hidden":"true",color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:I.jsx("path",{clipRule:"evenodd",d:"M2.75 0.5C1.7835 0.5 1 1.2835 1 2.25V9.75C1 10.7165 1.7835 11.5 2.75 11.5H3.75H4.5V10H3.75H2.75C2.61193 10 2.5 9.88807 2.5 9.75V2.25C2.5 2.11193 2.61193 2 2.75 2H8.25C8.38807 2 8.5 2.11193 8.5 2.25V3H10V2.25C10 1.2835 9.2165 0.5 8.25 0.5H2.75ZM7.75 4.5C6.7835 4.5 6 5.2835 6 6.25V13.75C6 14.7165 6.7835 15.5 7.75 15.5H13.25C14.2165 15.5 15 14.7165 15 13.75V6.25C15 5.2835 14.2165 4.5 13.25 4.5H7.75ZM7.5 6.25C7.5 6.11193 7.61193 6 7.75 6H13.25C13.3881 6 13.5 6.11193 13.5 6.25V13.75C13.5 13.8881 13.3881 14 13.25 14H7.75C7.61193 14 7.5 13.8881 7.5 13.75V6.25Z",fill:"currentColor",fillRule:"evenodd"})}),CA=e=>I.jsx("svg",{"aria-hidden":"true",color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:I.jsx("path",{clipRule:"evenodd",d:"M8.75 1V1.75V8.68934L10.7197 6.71967L11.25 6.18934L12.3107 7.25L11.7803 7.78033L8.70711 10.8536C8.31658 11.2441 7.68342 11.2441 7.29289 10.8536L4.21967 7.78033L3.68934 7.25L4.75 6.18934L5.28033 6.71967L7.25 8.68934V1.75V1H8.75ZM13.5 9.25V13.5H2.5V9.25V8.5H1V9.25V14C1 14.5523 1.44771 15 2 15H14C14.5523 15 15 14.5523 15 14V9.25V8.5H13.5V9.25Z",fill:"currentColor",fillRule:"evenodd"})}),SA=e=>I.jsxs("svg",{"aria-hidden":"true",color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:[I.jsx("path",{d:"M8 0V4",stroke:"currentColor",strokeWidth:"1.5"}),I.jsx("path",{d:"M8 16V12",opacity:"0.5",stroke:"currentColor",strokeWidth:"1.5"}),I.jsx("path",{d:"M3.29773 1.52783L5.64887 4.7639",opacity:"0.9",stroke:"currentColor",strokeWidth:"1.5"}),I.jsx("path",{d:"M12.7023 1.52783L10.3511 4.7639",opacity:"0.1",stroke:"currentColor",strokeWidth:"1.5"}),I.jsx("path",{d:"M12.7023 14.472L10.3511 11.236",opacity:"0.4",stroke:"currentColor",strokeWidth:"1.5"}),I.jsx("path",{d:"M3.29773 14.472L5.64887 11.236",opacity:"0.6",stroke:"currentColor",strokeWidth:"1.5"}),I.jsx("path",{d:"M15.6085 5.52783L11.8043 6.7639",opacity:"0.2",stroke:"currentColor",strokeWidth:"1.5"}),I.jsx("path",{d:"M0.391602 10.472L4.19583 9.23598",opacity:"0.7",stroke:"currentColor",strokeWidth:"1.5"}),I.jsx("path",{d:"M15.6085 10.4722L11.8043 9.2361",opacity:"0.3",stroke:"currentColor",strokeWidth:"1.5"}),I.jsx("path",{d:"M0.391602 5.52783L4.19583 6.7639",opacity:"0.8",stroke:"currentColor",strokeWidth:"1.5"})]}),IA=e=>I.jsx("svg",{"aria-hidden":"true",color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:I.jsx("path",{clipRule:"evenodd",d:"M1 5.25V6H2.5V5.25V2.5H5.25H6V1H5.25H2C1.44772 1 1 1.44772 1 2V5.25ZM5.25 14.9994H6V13.4994H5.25H2.5V10.7494V9.99939H1V10.7494V13.9994C1 14.5517 1.44772 14.9994 2 14.9994H5.25ZM15 10V10.75V14C15 14.5523 14.5523 15 14 15H10.75H10V13.5H10.75H13.5V10.75V10H15ZM10.75 1H10V2.5H10.75H13.5V5.25V6H15V5.25V2C15 1.44772 14.5523 1 14 1H10.75Z",fill:"currentColor",fillRule:"evenodd"})}),_A=e=>I.jsx("svg",{"aria-hidden":"true",color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:I.jsx("path",{clipRule:"evenodd",d:"M13.5 8C13.5 4.96643 11.0257 2.5 7.96452 2.5C5.42843 2.5 3.29365 4.19393 2.63724 6.5H5.25H6V8H5.25H0.75C0.335787 8 0 7.66421 0 7.25V2.75V2H1.5V2.75V5.23347C2.57851 2.74164 5.06835 1 7.96452 1C11.8461 1 15 4.13001 15 8C15 11.87 11.8461 15 7.96452 15C5.62368 15 3.54872 13.8617 2.27046 12.1122L1.828 11.5066L3.03915 10.6217L3.48161 11.2273C4.48831 12.6051 6.12055 13.5 7.96452 13.5C11.0257 13.5 13.5 11.0336 13.5 8Z",fill:"currentColor",fillRule:"evenodd"})}),NA=e=>I.jsx("svg",{"aria-hidden":"true",color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:I.jsx("path",{clipRule:"evenodd",d:"M12.4697 13.5303L13 14.0607L14.0607 13L13.5303 12.4697L9.06065 7.99999L13.5303 3.53032L14.0607 2.99999L13 1.93933L12.4697 2.46966L7.99999 6.93933L3.53032 2.46966L2.99999 1.93933L1.93933 2.99999L2.46966 3.53032L6.93933 7.99999L2.46966 12.4697L1.93933 13L2.99999 14.0607L3.53032 13.5303L7.99999 9.06065L12.4697 13.5303Z",fill:"currentColor",fillRule:"evenodd"})}),LA=e=>I.jsx("svg",{"aria-hidden":"true",color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:I.jsx("path",{clipRule:"evenodd",d:"M13.5 10.25V13.25C13.5 13.3881 13.3881 13.5 13.25 13.5H2.75C2.61193 13.5 2.5 13.3881 2.5 13.25L2.5 2.75C2.5 2.61193 2.61193 2.5 2.75 2.5H5.75H6.5V1H5.75H2.75C1.7835 1 1 1.7835 1 2.75V13.25C1 14.2165 1.7835 15 2.75 15H13.25C14.2165 15 15 14.2165 15 13.25V10.25V9.5H13.5V10.25ZM9 1H9.75H14.2495C14.6637 1 14.9995 1.33579 14.9995 1.75V6.25V7H13.4995V6.25V3.56066L8.53033 8.52978L8 9.06011L6.93934 7.99945L7.46967 7.46912L12.4388 2.5H9.75H9V1Z",fill:"currentColor",fillRule:"evenodd"})}),RA=e=>I.jsx("svg",{"aria-hidden":"true",color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:I.jsx("path",{clipRule:"evenodd",d:"M1.5 6.5C1.5 3.73858 3.73858 1.5 6.5 1.5C9.26142 1.5 11.5 3.73858 11.5 6.5C11.5 9.26142 9.26142 11.5 6.5 11.5C3.73858 11.5 1.5 9.26142 1.5 6.5ZM6.5 0C2.91015 0 0 2.91015 0 6.5C0 10.0899 2.91015 13 6.5 13C8.02469 13 9.42677 12.475 10.5353 11.596L13.9697 15.0303L14.5 15.5607L15.5607 14.5L15.0303 13.9697L11.596 10.5353C12.475 9.42677 13 8.02469 13 6.5C13 2.91015 10.0899 0 6.5 0ZM4.125 5.875H4.75H5.875V4.75V4.125H7.125V4.75V5.875H8.25H8.875V7.125H8.25H7.125V8.25V8.875H5.875V8.25V7.125H4.75H4.125V5.875Z",fill:"currentColor",fillRule:"evenodd"})}),DA=e=>I.jsx("svg",{"aria-hidden":"true",color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:I.jsx("path",{clipRule:"evenodd",d:"M1.5 6.5C1.5 3.73858 3.73858 1.5 6.5 1.5C9.26142 1.5 11.5 3.73858 11.5 6.5C11.5 9.26142 9.26142 11.5 6.5 11.5C3.73858 11.5 1.5 9.26142 1.5 6.5ZM6.5 0C2.91015 0 0 2.91015 0 6.5C0 10.0899 2.91015 13 6.5 13C8.02469 13 9.42677 12.475 10.5353 11.596L13.9697 15.0303L14.5 15.5607L15.5607 14.5L15.0303 13.9697L11.596 10.5353C12.475 9.42677 13 8.02469 13 6.5C13 2.91015 10.0899 0 6.5 0ZM4.125 5.875H4.75H8.25H8.875V7.125H8.25H4.75H4.125V5.875Z",fill:"currentColor",fillRule:"evenodd"})}),wa={CheckIcon:wA,CopyIcon:AA,DownloadIcon:CA,ExternalLinkIcon:LA,Loader2Icon:SA,Maximize2Icon:IA,RotateCcwIcon:_A,XIcon:NA,ZoomInIcon:RA,ZoomOutIcon:DA},Qm=D.createContext(wa),OA=(e,t)=>{if(e===t)return!0;if(!(e&&t))return e===t;let r=Object.keys(e),n=Object.keys(t);return r.length!==n.length?!1:r.every(a=>e[a]===t[a])},I1=({icons:e,children:t})=>{let r=D.useRef(e),n=D.useRef(e?{...wa,...e}:wa);OA(r.current,e)||(r.current=e,n.current=e?{...wa,...e}:wa);let a=n.current;return I.jsx(Qm.Provider,{value:a,children:t})},Qt=()=>D.useContext(Qm),Km={copyCode:"Copy Code",downloadFile:"Download file",downloadDiagram:"Download diagram",downloadDiagramAsSvg:"Download diagram as SVG",downloadDiagramAsPng:"Download diagram as PNG",downloadDiagramAsMmd:"Download diagram as MMD",viewFullscreen:"View fullscreen",exitFullscreen:"Exit fullscreen",mermaidFormatSvg:"SVG",mermaidFormatPng:"PNG",mermaidFormatMmd:"MMD",zoomIn:"Zoom in",zoomOut:"Zoom out",resetView:"Reset zoom and pan",copyTable:"Copy table",copyTableAsMarkdown:"Copy table as Markdown",copyTableAsCsv:"Copy table as CSV",copyTableAsTsv:"Copy table as TSV",downloadTable:"Download table",downloadTableAsCsv:"Download table as CSV",downloadTableAsMarkdown:"Download table as Markdown",tableFormatMarkdown:"Markdown",tableFormatCsv:"CSV",tableFormatTsv:"TSV",imageNotAvailable:"Image not available",downloadImage:"Download image",openExternalLink:"Open external link?",externalLinkWarning:"You're about to visit an external website.",close:"Close",copyLink:"Copy link",copied:"Copied",openLink:"Open link"},gu=D.createContext(Km),ur=()=>D.useContext(gu),bu=({onCopy:e,onError:t,timeout:r=2e3,children:n,className:a,code:i,...s})=>{let u=ve(),[l,o]=D.useState(!1),c=D.useRef(0),{code:h}=Xm(),{isAnimating:f}=D.useContext(ut),p=ur(),b=i??h,E=async()=>{var C;if(typeof window>"u"||!((C=navigator==null?void 0:navigator.clipboard)!=null&&C.writeText)){t==null||t(new Error("Clipboard API not available"));return}try{l||(await navigator.clipboard.writeText(b),o(!0),e==null||e(),c.current=window.setTimeout(()=>o(!1),r))}catch(w){t==null||t(w)}};D.useEffect(()=>()=>{window.clearTimeout(c.current)},[]);let T=Qt(),k=l?T.CheckIcon:T.CopyIcon;return I.jsxs(I.Fragment,{children:[I.jsx("button",{"aria-label":p.copyCode,className:u("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",a),"data-streamdown":"code-block-copy-button",disabled:f,onClick:E,title:p.copyCode,type:"button",...s,children:n??I.jsx(k,{"aria-hidden":"true",size:14})}),l&&I.jsx("output",{"aria-live":"polite",className:"sr-only",children:p.copied})]})},wl=(e,t,r)=>{if(typeof e=="boolean")return r;let n=e[t];if(typeof n!="object")return r;let a=n.download;return typeof a!="object"?r:a.filename||r},_1=(e,t)=>{if(typeof e=="boolean")return{};let r=e[t];if(typeof r!="object")return{};let n=r.copy;return typeof n!="object"||n===null?{}:{onCopy:n.onCopy,onError:n.onError}},N1={"1c":"1c","1c-query":"1cq",abap:"abap","actionscript-3":"as",ada:"ada",adoc:"adoc","angular-html":"html","angular-ts":"ts",apache:"conf",apex:"cls",apl:"apl",applescript:"applescript",ara:"ara",asciidoc:"adoc",asm:"asm",astro:"astro",awk:"awk",ballerina:"bal",bash:"sh",bat:"bat",batch:"bat",be:"be",beancount:"beancount",berry:"berry",bibtex:"bib",bicep:"bicep",blade:"blade.php",bsl:"bsl",c:"c","c#":"cs","c++":"cpp",cadence:"cdc",cairo:"cairo",cdc:"cdc",clarity:"clar",clj:"clj",clojure:"clj","closure-templates":"soy",cmake:"cmake",cmd:"cmd",cobol:"cob",codeowners:"CODEOWNERS",codeql:"ql",coffee:"coffee",coffeescript:"coffee","common-lisp":"lisp",console:"sh",coq:"v",cpp:"cpp",cql:"cql",crystal:"cr",cs:"cs",csharp:"cs",css:"css",csv:"csv",cue:"cue",cypher:"cql",d:"d",dart:"dart",dax:"dax",desktop:"desktop",diff:"diff",docker:"dockerfile",dockerfile:"dockerfile",dotenv:"env","dream-maker":"dm",edge:"edge",elisp:"el",elixir:"ex",elm:"elm","emacs-lisp":"el",erb:"erb",erl:"erl",erlang:"erl",f:"f","f#":"fs",f03:"f03",f08:"f08",f18:"f18",f77:"f77",f90:"f90",f95:"f95",fennel:"fnl",fish:"fish",fluent:"ftl",for:"for","fortran-fixed-form":"f","fortran-free-form":"f90",fs:"fs",fsharp:"fs",fsl:"fsl",ftl:"ftl",gdresource:"tres",gdscript:"gd",gdshader:"gdshader",genie:"gs",gherkin:"feature","git-commit":"gitcommit","git-rebase":"gitrebase",gjs:"js",gleam:"gleam","glimmer-js":"js","glimmer-ts":"ts",glsl:"glsl",gnuplot:"plt",go:"go",gql:"gql",graphql:"graphql",groovy:"groovy",gts:"gts",hack:"hack",haml:"haml",handlebars:"hbs",haskell:"hs",haxe:"hx",hbs:"hbs",hcl:"hcl",hjson:"hjson",hlsl:"hlsl",hs:"hs",html:"html","html-derivative":"html",http:"http",hxml:"hxml",hy:"hy",imba:"imba",ini:"ini",jade:"jade",java:"java",javascript:"js",jinja:"jinja",jison:"jison",jl:"jl",js:"js",json:"json",json5:"json5",jsonc:"jsonc",jsonl:"jsonl",jsonnet:"jsonnet",jssm:"jssm",jsx:"jsx",julia:"jl",kotlin:"kt",kql:"kql",kt:"kt",kts:"kts",kusto:"kql",latex:"tex",lean:"lean",lean4:"lean",less:"less",liquid:"liquid",lisp:"lisp",lit:"lit",llvm:"ll",log:"log",logo:"logo",lua:"lua",luau:"luau",make:"mak",makefile:"mak",markdown:"md",marko:"marko",matlab:"m",md:"md",mdc:"mdc",mdx:"mdx",mediawiki:"wiki",mermaid:"mmd",mips:"s",mipsasm:"s",mmd:"mmd",mojo:"mojo",move:"move",nar:"nar",narrat:"narrat",nextflow:"nf",nf:"nf",nginx:"conf",nim:"nim",nix:"nix",nu:"nu",nushell:"nu",objc:"m","objective-c":"m","objective-cpp":"mm",ocaml:"ml",pascal:"pas",perl:"pl",perl6:"p6",php:"php",plsql:"pls",po:"po",polar:"polar",postcss:"pcss",pot:"pot",potx:"potx",powerquery:"pq",powershell:"ps1",prisma:"prisma",prolog:"pl",properties:"properties",proto:"proto",protobuf:"proto",ps:"ps",ps1:"ps1",pug:"pug",puppet:"pp",purescript:"purs",py:"py",python:"py",ql:"ql",qml:"qml",qmldir:"qmldir",qss:"qss",r:"r",racket:"rkt",raku:"raku",razor:"cshtml",rb:"rb",reg:"reg",regex:"regex",regexp:"regexp",rel:"rel",riscv:"s",rs:"rs",rst:"rst",ruby:"rb",rust:"rs",sas:"sas",sass:"sass",scala:"scala",scheme:"scm",scss:"scss",sdbl:"sdbl",sh:"sh",shader:"shader",shaderlab:"shader",shell:"sh",shellscript:"sh",shellsession:"sh",smalltalk:"st",solidity:"sol",soy:"soy",sparql:"rq",spl:"spl",splunk:"spl",sql:"sql","ssh-config":"config",stata:"do",styl:"styl",stylus:"styl",svelte:"svelte",swift:"swift","system-verilog":"sv",systemd:"service",talon:"talon",talonscript:"talon",tasl:"tasl",tcl:"tcl",templ:"templ",terraform:"tf",tex:"tex",tf:"tf",tfvars:"tfvars",toml:"toml",ts:"ts","ts-tags":"ts",tsp:"tsp",tsv:"tsv",tsx:"tsx",turtle:"ttl",twig:"twig",typ:"typ",typescript:"ts",typespec:"tsp",typst:"typ",v:"v",vala:"vala",vb:"vb",verilog:"v",vhdl:"vhdl",vim:"vim",viml:"vim",vimscript:"vim",vue:"vue","vue-html":"html","vue-vine":"vine",vy:"vy",vyper:"vy",wasm:"wasm",wenyan:"wy",wgsl:"wgsl",wiki:"wiki",wikitext:"wiki",wit:"wit",wl:"wl",wolfram:"wl",xml:"xml",xsl:"xsl",yaml:"yaml",yml:"yml",zenscript:"zs",zig:"zig",zsh:"zsh",文言:"wy"},MA=({onDownload:e,onError:t,language:r,children:n,className:a,code:i,...s})=>{let u=ve(),{code:l}=Xm(),{isAnimating:o,controls:c}=D.useContext(ut),h=ur(),f=Qt(),p=i??l,b=r&&r in N1?N1[r]:"txt",E=`${wl(c,"code","file")}.${b}`,T="text/plain",k=()=>{try{Un(E,p,T),e==null||e()}catch(C){t==null||t(C)}};return I.jsx("button",{"aria-label":h.downloadFile,className:u("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",a),"data-streamdown":"code-block-download-button",disabled:o,onClick:k,title:h.downloadFile,type:"button",...s,children:n??I.jsx(f.DownloadIcon,{size:14})})},L1=()=>{let{Loader2Icon:e}=Qt(),t=ve();return I.jsxs("div",{className:t("w-full divide-y divide-border overflow-hidden rounded-xl border border-border"),children:[I.jsx("div",{className:t("h-[46px] w-full bg-muted/80")}),I.jsx("div",{className:t("flex w-full items-center justify-center p-4"),children:I.jsx(e,{className:t("size-4 animate-spin")})})]})},PA=/\.[^/.]+$/,BA=({node:e,className:t,src:r,alt:n,onLoad:a,onError:i,showControls:s=!0,showDownloadControl:u=!0,...l})=>{let{DownloadIcon:o}=Qt(),c=ve(),h=D.useRef(null),[f,p]=D.useState(!1),[b,E]=D.useState(!1),T=ur(),k=l.width!=null||l.height!=null,C=(f||k)&&!b&&s&&u,w=b&&!k;D.useEffect(()=>{let U=h.current;if(U!=null&&U.complete){let q=U.naturalWidth>0;p(q),E(!q)}},[]);let H=D.useCallback(U=>{p(!0),E(!1),a==null||a(U)},[a]),z=D.useCallback(U=>{p(!1),E(!0),i==null||i(U)},[i]),O=async()=>{if(r)try{let U=await(await fetch(r)).blob(),q=new URL(r,window.location.origin).pathname.split("/").pop()||"",G=q.split(".").pop(),P=q.includes(".")&&G!==void 0&&G.length<=4,K="";if(P)K=q;else{let j=U.type,ce="png";j.includes("jpeg")||j.includes("jpg")?ce="jpg":j.includes("png")?ce="png":j.includes("svg")?ce="svg":j.includes("gif")?ce="gif":j.includes("webp")&&(ce="webp"),K=`${(n||q||"image").replace(PA,"")}.${ce}`}Un(K,U,U.type)}catch{window.open(r,"_blank")}};return r?r===$a?I.jsx("div",{className:c("group relative my-4 inline-block"),"data-incomplete":"true","data-streamdown":"image-wrapper",children:I.jsx("div",{className:c("h-24 w-48 animate-pulse rounded-lg bg-muted"),"data-streamdown":"image-placeholder"})}):I.jsxs("div",{className:c("group relative my-4 inline-block"),"data-streamdown":"image-wrapper",children:[I.jsx("img",{alt:n,className:c("max-w-full rounded-lg",w&&"hidden",t),"data-streamdown":"image",onError:z,onLoad:H,ref:h,src:r,...l}),w&&I.jsx("span",{className:c("text-muted-foreground text-xs italic"),"data-streamdown":"image-fallback",children:T.imageNotAvailable}),s&&I.jsx("div",{className:c("pointer-events-none absolute inset-0 hidden rounded-lg bg-black/10 group-hover:block"),"data-streamdown":"image-overlay"}),C&&I.jsx("button",{className:c("absolute right-2 bottom-2 flex h-8 w-8 cursor-pointer items-center justify-center rounded-md border border-border bg-background/90 shadow-sm backdrop-blur-sm transition-all duration-200 hover:bg-background","opacity-0 group-hover:opacity-100"),onClick:O,title:T.downloadImage,type:"button",children:I.jsx(o,{size:14})})]}):null},Al=e=>{let t=typeof e=="function"?e():e;return t??document.body},Ma=0,Cl=()=>{Ma+=1,Ma===1&&(document.body.style.overflow="hidden")},Sl=()=>{Ma=Math.max(0,Ma-1),Ma===0&&(document.body.style.overflow="")},FA=({url:e,isOpen:t,onClose:r,onConfirm:n})=>{let{CheckIcon:a,CopyIcon:i,ExternalLinkIcon:s,XIcon:u}=Qt(),l=ve(),[o,c]=D.useState(!1),h=ur(),{portal:f}=D.useContext(ut),p=D.useCallback(async()=>{try{await navigator.clipboard.writeText(e),c(!0),setTimeout(()=>c(!1),2e3)}catch{}},[e]),b=D.useCallback(()=>{n(),r()},[n,r]);if(D.useEffect(()=>{if(t){Cl();let T=k=>{k.key==="Escape"&&r()};return document.addEventListener("keydown",T),()=>{document.removeEventListener("keydown",T),Sl()}}},[t,r]),!t||typeof document>"u")return null;let E=I.jsx("div",{className:l("fixed inset-0 z-50 flex items-center justify-center bg-background/50 backdrop-blur-sm"),"data-streamdown":"link-safety-modal",onClick:r,onKeyDown:T=>{T.key==="Escape"&&r()},role:"button",tabIndex:0,children:I.jsxs("div",{className:l("relative mx-4 flex w-full max-w-md flex-col gap-4 rounded-xl border bg-background p-6 shadow-lg"),onClick:T=>T.stopPropagation(),onKeyDown:T=>T.stopPropagation(),role:"presentation",children:[I.jsx("button",{className:l("absolute top-4 right-4 rounded-md p-1 text-muted-foreground transition-all hover:bg-muted hover:text-foreground"),onClick:r,title:h.close,type:"button",children:I.jsx(u,{size:16})}),I.jsxs("div",{className:l("flex flex-col gap-2"),children:[I.jsxs("div",{className:l("flex items-center gap-2 font-semibold text-lg"),children:[I.jsx(s,{size:20}),I.jsx("span",{children:h.openExternalLink})]}),I.jsx("p",{className:l("text-muted-foreground text-sm"),children:h.externalLinkWarning})]}),I.jsx("div",{className:l("break-all rounded-md bg-muted p-3 font-mono text-sm",e.length>100&&"max-h-32 overflow-y-auto"),children:e}),I.jsxs("div",{className:l("flex gap-2"),children:[I.jsx("button",{className:l("flex flex-1 items-center justify-center gap-2 rounded-md border bg-background px-4 py-2 font-medium text-sm transition-all hover:bg-muted"),onClick:p,type:"button",children:o?I.jsxs(I.Fragment,{children:[I.jsx(a,{size:14}),I.jsx("span",{children:h.copied})]}):I.jsxs(I.Fragment,{children:[I.jsx(i,{size:14}),I.jsx("span",{children:h.copyLink})]})}),I.jsxs("button",{className:l("flex flex-1 items-center justify-center gap-2 rounded-md bg-primary px-4 py-2 font-medium text-primary-foreground text-sm transition-all hover:bg-primary/90"),onClick:b,type:"button",children:[I.jsx(s,{size:14}),I.jsx("span",{children:h.openLink})]})]})]})});return Tu.createPortal(E,Al(f))},xu=D.createContext(null),Il=()=>D.useContext(xu),LS=()=>{var e;let t=Il();return(e=t==null?void 0:t.code)!=null?e:null},_l=()=>{var e;let t=Il();return(e=t==null?void 0:t.mermaid)!=null?e:null},HA=e=>{var t;let r=Il();return r!=null&&r.renderers&&e&&(t=r.renderers.find(n=>Array.isArray(n.language)?n.language.includes(e):n.language===e))!=null?t:null},Zm=/<svg\b[^>]*>/i,zA=/\bviewBox=(['"])(.*?)\1/i,$A=/[\s,]+/,UA=/\swidth=(['"]).*?\1/gi,qA=/\sheight=(['"]).*?\1/gi,R1=/\sstyle=(['"])(.*?)\1/i,jA=/^width\s*:/i,GA=/^height\s*:/i,VA=/^max-width\s*:/i,D1=/^<svg/i,Jm=e=>{let t=e.match(Zm);if(!t)return null;let r=t[0].match(zA),n=r==null?void 0:r[2];if(!n)return null;let a=n.trim().split($A).map(u=>Number.parseFloat(u));if(a.length<4||a.slice(0,4).some(Number.isNaN))return null;let i=a[2],s=a[3];return i>0&&s>0?{height:s,width:i}:null},YA=e=>{let t=e.match(Zm);if(!t)return e;try{let r=t[0],n=Jm(e);if(!n)return e;let{width:a,height:i}=n,s=r.replace(UA,"").replace(qA,""),u=s.match(R1),l=`width:${a}px;height:${i}px;max-width:none;`;if(u){let o=u[1],c=u[2].split(";").map(f=>f.trim()).filter(Boolean).filter(f=>!(jA.test(f)||GA.test(f)||VA.test(f))).join(";"),h=`${l}${c?`${c};`:""}`;s=s.replace(R1,` style=${o}${h}${o}`)}else s=s.replace(D1,`<svg style="${l}"`);return s=s.replace(D1,`<svg width="${a}" height="${i}"`),e.replace(r,s)}catch{return e}},WA=e=>{if(typeof DOMParser>"u"||typeof XMLSerializer>"u")return e;let t=new DOMParser().parseFromString(e,"text/html").querySelector("svg");return t?new XMLSerializer().serializeToString(t):e},XA=(e,t)=>{var r;let n=(r=void 0)!=null?r:5;return new Promise((a,i)=>{let s="data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(e))),u=new Image;u.crossOrigin="anonymous",u.onload=()=>{let l=document.createElement("canvas"),o=u.width*n,c=u.height*n;l.width=o,l.height=c;let h=l.getContext("2d");if(!h){i(new Error("Failed to create 2D canvas context for PNG export"));return}h.drawImage(u,0,0,o,c),l.toBlob(f=>{if(!f){i(new Error("Failed to create PNG blob"));return}a(f)},"image/png")},u.onerror=()=>i(new Error("Failed to load SVG image")),u.src=s})},ep=({chart:e,children:t,className:r,onDownload:n,config:a,onError:i})=>{let s=ve(),[u,l]=D.useState(!1),o=D.useRef(null),{isAnimating:c,controls:h}=D.useContext(ut),f=Qt(),p=_l(),b=ur(),E=wl(h,"mermaid","diagram"),T=async k=>{try{if(k==="mmd"){let U=`${E}.mmd`;Un(U,e,"text/plain"),l(!1),n==null||n(k);return}if(!p){i==null||i(new Error("Mermaid plugin not available"));return}let C=p.getMermaid(a),w=e.split("").reduce((U,q)=>(U<<5)-U+q.charCodeAt(0)|0,0),H=`mermaid-${Math.abs(w)}-${Date.now()}-${Math.random().toString(36).substring(2,9)}`,{svg:z}=await C.render(H,e);if(!z){i==null||i(new Error("SVG not found. Please wait for the diagram to render."));return}let O=WA(z);if(k==="svg"){let U=`${E}.svg`;Un(U,O,"image/svg+xml"),l(!1),n==null||n(k);return}if(k==="png"){let U=await XA(O);Un(`${E}.png`,U,"image/png"),n==null||n(k),l(!1);return}}catch(C){i==null||i(C)}};return D.useEffect(()=>{let k=C=>{let w=C.composedPath();o.current&&!w.includes(o.current)&&l(!1)};return document.addEventListener("mousedown",k),()=>{document.removeEventListener("mousedown",k)}},[]),I.jsxs("div",{className:s("relative"),ref:o,children:[I.jsx("button",{"aria-label":b.downloadDiagram,className:s("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",r),disabled:c,onClick:()=>l(!u),title:b.downloadDiagram,type:"button",children:t??I.jsx(f.DownloadIcon,{"aria-hidden":"true",size:14})}),u?I.jsxs("div",{className:s("absolute top-full right-0 z-10 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg"),children:[I.jsx("button",{"aria-label":b.downloadDiagramAsSvg,className:s("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>T("svg"),title:b.downloadDiagramAsSvg,type:"button",children:b.mermaidFormatSvg}),I.jsx("button",{"aria-label":b.downloadDiagramAsPng,className:s("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>T("png"),title:b.downloadDiagramAsPng,type:"button",children:b.mermaidFormatPng}),I.jsx("button",{"aria-label":b.downloadDiagramAsMmd,className:s("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>T("mmd"),title:b.downloadDiagramAsMmd,type:"button",children:b.mermaidFormatMmd})]}):null]})},QA=({chart:e,config:t,onFullscreen:r,onExit:n,className:a,...i})=>{let{Maximize2Icon:s,XIcon:u}=Qt(),l=ve(),[o,c]=D.useState(!1),{isAnimating:h,controls:f,portal:p}=D.useContext(ut),b=ur(),E=(()=>{if(typeof f=="boolean")return f;let w=f.mermaid;return w===!1?!1:w===!0||w===void 0?!0:w.panZoom!==!1})(),T=(()=>{if(typeof f=="boolean")return f;let w=f.mermaid;return w===!1?!1:w===!0||w===void 0?!0:w.download!==!1})(),k=(()=>{if(typeof f=="boolean")return f;let w=f.mermaid;return w===!1?!1:w===!0||w===void 0?!0:w.copy!==!1})(),C=()=>{c(!o)};return D.useEffect(()=>{if(o){Cl();let w=H=>{H.key==="Escape"&&c(!1)};return document.addEventListener("keydown",w),()=>{document.removeEventListener("keydown",w),Sl()}}},[o]),D.useEffect(()=>{o?r==null||r():n&&n()},[o,r,n]),I.jsxs(I.Fragment,{children:[I.jsx("button",{className:l("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",a),disabled:h,onClick:C,title:b.viewFullscreen,type:"button",...i,"aria-label":b.viewFullscreen,children:I.jsx(s,{"aria-hidden":"true",size:14})}),o?Tu.createPortal(I.jsxs("div",{"aria-label":b.viewFullscreen,"aria-modal":"true",className:l("fixed inset-0 z-50 flex items-center justify-center bg-background/95 backdrop-blur-sm"),"data-streamdown":"mermaid-fullscreen",onClick:C,onKeyDown:w=>{w.key==="Escape"&&C()},role:"dialog",children:[I.jsxs("div",{className:l("absolute top-4 right-4 z-10 flex items-center gap-1"),onClick:w=>w.stopPropagation(),onKeyDown:w=>w.stopPropagation(),role:"presentation",children:[T?I.jsx(ep,{chart:e,config:t}):null,k?I.jsx(bu,{code:e}):null,I.jsx("button",{"aria-label":b.exitFullscreen,className:l("rounded-md p-2 text-muted-foreground transition-all hover:bg-muted hover:text-foreground"),onClick:C,title:b.exitFullscreen,type:"button",children:I.jsx(u,{"aria-hidden":"true",size:20})})]}),I.jsx("div",{className:l("flex size-full items-center justify-center p-4"),onClick:w=>w.stopPropagation(),onKeyDown:w=>w.stopPropagation(),role:"presentation",children:I.jsx(Up,{chart:e,className:l("size-full [&_svg]:h-auto [&_svg]:w-auto"),config:t,fullscreen:!0,showControls:E})})]}),Al(p)):null]})};function Eu(e){var t;if(e.nodeType===Node.TEXT_NODE)return(t=e.textContent)!=null?t:"";if(e.nodeType!==Node.ELEMENT_NODE)return"";let r=e;return r.tagName==="BR"?`
|
|
528
|
+
`:Array.from(r.childNodes).map(Eu).join("")}var tp=e=>{let t=[],r=[],n=e.querySelectorAll("thead th");for(let i of n)t.push(Eu(i).trim());let a=e.querySelectorAll("tbody tr");for(let i of a){let s=[],u=i.querySelectorAll("td");for(let l of u)s.push(Eu(l).trim());r.push(s)}return{headers:t,rows:r}},rp=e=>{var t;if(typeof e!="object")return",";let r=e.table;return typeof r!="object"?",":(t=r.csvSeparator)!=null?t:","},np=(e,t=",")=>{let r;t==="auto"?Intl.NumberFormat().format(1.1).includes(",")?r=";":r=",":r=t;let{headers:n,rows:a}=e,i=o=>{let c=!1;for(let h of o)if(h===r||h==='"'||h===`
|
|
529
|
+
`||h==="\r"){c=!0;break}return c?`"${o.replace(/"/g,'""')}"`:o},s=n.length>0?a.length+1:a.length,u=new Array(s),l=0;n.length>0&&(u[l]=n.map(i).join(r),l+=1);for(let o of a)u[l]=o.map(i).join(r),l+=1;return u.join(`
|
|
530
|
+
`)},KA=e=>{let{headers:t,rows:r}=e,n=u=>{let l=!1;for(let c of u)if(c===" "||c===`
|
|
531
|
+
`||c==="\r"){l=!0;break}if(!l)return u;let o=[];for(let c of u)c===" "?o.push("\\t"):c===`
|
|
532
|
+
`?o.push("\\n"):c==="\r"?o.push("\\r"):o.push(c);return o.join("")},a=t.length>0?r.length+1:r.length,i=new Array(a),s=0;t.length>0&&(i[s]=t.map(n).join(" "),s+=1);for(let u of r)i[s]=u.map(n).join(" "),s+=1;return i.join(`
|
|
533
|
+
`)},y0=e=>{let t=!1;for(let n of e)if(n==="\\"||n==="|"||n===`
|
|
534
|
+
`||n==="&"||n==="<"||n===">"){t=!0;break}if(!t)return e;let r=[];for(let n of e)n==="\\"?r.push("\\\\"):n==="|"?r.push("\\|"):n===`
|
|
535
|
+
`?r.push("<br>"):n==="&"?r.push("&"):n==="<"?r.push("<"):n===">"?r.push(">"):r.push(n);return r.join("")},ap=e=>{let{headers:t,rows:r}=e;if(t.length===0)return"";let n=new Array(r.length+2),a=0,i=t.map(u=>y0(u));n[a]=`| ${i.join(" | ")} |`,a+=1;let s=new Array(t.length);for(let u=0;u<t.length;u+=1)s[u]="---";n[a]=`| ${s.join(" | ")} |`,a+=1;for(let u of r)if(u.length<t.length){let l=new Array(t.length);for(let o=0;o<t.length;o+=1)l[o]=o<u.length?y0(u[o]):"";n[a]=`| ${l.join(" | ")} |`,a+=1}else{let l=u.map(o=>y0(o));n[a]=`| ${l.join(" | ")} |`,a+=1}return n.join(`
|
|
536
|
+
`)},ip=({children:e,className:t,onCopy:r,onError:n,timeout:a=2e3})=>{let i=ve(),[s,u]=D.useState(!1),[l,o]=D.useState(!1),c=D.useRef(null),h=D.useRef(0),{isAnimating:f,controls:p}=D.useContext(ut),b=ur(),E=rp(p),T=async w=>{var H,z;if(typeof window>"u"||!((H=navigator==null?void 0:navigator.clipboard)!=null&&H.write)){n==null||n(new Error("Clipboard API not available"));return}try{let O=(z=c.current)==null?void 0:z.closest('[data-streamdown="table-wrapper"]'),U=O==null?void 0:O.querySelector("table");if(!U){n==null||n(new Error("Table not found"));return}let q=tp(U),G="";w==="csv"?G=np(q,E):w==="tsv"?G=KA(q):G=ap(q);let P=new ClipboardItem({"text/plain":new Blob([G],{type:"text/plain"}),"text/html":new Blob([U.outerHTML],{type:"text/html"})});await navigator.clipboard.write([P]),o(!0),u(!1),r==null||r(w),h.current=window.setTimeout(()=>o(!1),a)}catch(O){n==null||n(O)}};D.useEffect(()=>{let w=H=>{let z=H.composedPath();c.current&&!z.includes(c.current)&&u(!1)};return document.addEventListener("mousedown",w),()=>{document.removeEventListener("mousedown",w),window.clearTimeout(h.current)}},[]);let k=Qt(),C=l?k.CheckIcon:k.CopyIcon;return I.jsxs("div",{className:i("relative"),ref:c,children:[I.jsx("button",{className:i("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",t),disabled:f,onClick:()=>u(!s),title:b.copyTable,type:"button",children:e??I.jsx(C,{height:14,width:14})}),s?I.jsxs("div",{className:i("absolute top-full right-0 z-20 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg"),children:[I.jsx("button",{className:i("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>T("md"),title:b.copyTableAsMarkdown,type:"button",children:b.tableFormatMarkdown}),I.jsx("button",{className:i("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>T("csv"),title:b.copyTableAsCsv,type:"button",children:b.tableFormatCsv}),I.jsx("button",{className:i("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>T("tsv"),title:b.copyTableAsTsv,type:"button",children:b.tableFormatTsv})]}):null]})},sp=({children:e,className:t,onDownload:r,onError:n})=>{let a=ve(),[i,s]=D.useState(!1),u=D.useRef(null),{isAnimating:l,controls:o}=D.useContext(ut),c=ur(),h=Qt(),f=rp(o),p=b=>{var E;try{let T=(E=u.current)==null?void 0:E.closest('[data-streamdown="table-wrapper"]'),k=T==null?void 0:T.querySelector("table");if(!k){n==null||n(new Error("Table not found"));return}let C=tp(k),w=b==="csv"?np(C,f):ap(C),H=b==="csv"?"csv":"md",z=`${wl(o,"table","table")}.${H}`;Un(z,w,b==="csv"?"text/csv":"text/markdown"),s(!1),r==null||r(b)}catch(T){n==null||n(T)}};return D.useEffect(()=>{let b=E=>{let T=E.composedPath();u.current&&!T.includes(u.current)&&s(!1)};return document.addEventListener("mousedown",b),()=>{document.removeEventListener("mousedown",b)}},[]),I.jsxs("div",{className:a("relative"),ref:u,children:[I.jsx("button",{className:a("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",t),disabled:l,onClick:()=>s(!i),title:c.downloadTable,type:"button",children:e??I.jsx(h.DownloadIcon,{size:14})}),i?I.jsxs("div",{className:a("absolute top-full right-0 z-20 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg"),children:[I.jsx("button",{className:a("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>p("csv"),title:c.downloadTableAsCsv,type:"button",children:c.tableFormatCsv}),I.jsx("button",{className:a("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>p("markdown"),title:c.downloadTableAsMarkdown,type:"button",children:c.tableFormatMarkdown})]}):null]})},ZA=({children:e,className:t,showCopy:r=!0,showDownload:n=!0})=>{let{Maximize2Icon:a,XIcon:i}=Qt(),s=ve(),[u,l]=D.useState(!1),{isAnimating:o,portal:c}=D.useContext(ut),h=ur(),f=()=>{l(!0)},p=()=>{l(!1)};return D.useEffect(()=>{if(u){Cl();let b=E=>{E.key==="Escape"&&l(!1)};return document.addEventListener("keydown",b),()=>{document.removeEventListener("keydown",b),Sl()}}},[u]),I.jsxs(I.Fragment,{children:[I.jsx("button",{className:s("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",t),disabled:o,onClick:f,title:h.viewFullscreen,type:"button",children:I.jsx(a,{size:14})}),u?Tu.createPortal(I.jsx("div",{"aria-label":h.viewFullscreen,"aria-modal":"true",className:s("fixed inset-0 z-50 flex flex-col bg-background"),"data-streamdown":"table-fullscreen",onClick:p,onKeyDown:b=>{b.key==="Escape"&&p()},role:"dialog",children:I.jsxs("div",{className:s("flex h-full flex-col"),"data-streamdown":"table-wrapper",onClick:b=>b.stopPropagation(),onKeyDown:b=>b.stopPropagation(),role:"presentation",children:[I.jsxs("div",{className:s("flex items-center justify-end gap-1 p-4"),children:[r?I.jsx(ip,{}):null,n?I.jsx(sp,{}):null,I.jsx("button",{className:s("rounded-md p-1 text-muted-foreground transition-all hover:bg-muted hover:text-foreground"),onClick:p,title:h.exitFullscreen,type:"button",children:I.jsx(i,{size:20})})]}),I.jsx("div",{className:s("flex-1 overflow-auto p-4 pt-0 [&_thead]:sticky [&_thead]:top-0 [&_thead]:z-10"),children:I.jsx("table",{className:s("w-full border-collapse border border-border"),"data-streamdown":"table",children:e})})]})}),Al(c)):null]})},JA=({children:e,className:t,maxHeight:r,showControls:n,showCopy:a=!0,showDownload:i=!0,showFullscreen:s=!0,...u})=>{let l=ve(),{isAnimating:o}=D.useContext(ut),c=Vm(r),h=Ym(o,!!c,e),f=n&&a,p=n&&i,b=n&&s,E=f||p||b;return I.jsxs("div",{className:l("my-4 flex flex-col gap-2 rounded-lg border border-border bg-sidebar p-2"),"data-streamdown":"table-wrapper",children:[E?I.jsxs("div",{className:l("flex items-center justify-end gap-1"),children:[f?I.jsx(ip,{}):null,p?I.jsx(sp,{}):null,b?I.jsx(ZA,{showCopy:f,showDownload:p,children:e}):null]}):null,I.jsx("div",{className:l("border-collapse overflow-x-auto overflow-y-auto rounded-md border border-border bg-background"),ref:h,style:c?{maxHeight:c}:void 0,children:I.jsx("table",{className:l("w-full divide-y divide-border",t),"data-streamdown":"table",...u,children:e})})]})},eC=/startLine=(\d+)/,tC=/\bnoLineNumbers\b/,rC=D.lazy(()=>J1(()=>Promise.resolve().then(()=>vS),void 0).then(e=>({default:e.Mermaid}))),nC=/language-([^\s]+)/,aC="node";function Me(e,t){let r=Object.keys(e);if(r.length!==Object.keys(t).length)return!1;let n=e,a=t;for(let i of r)if(i!==aC&&!Object.is(n[i],a[i]))return!1;return!0}function iC(e,t){var r,n;return((r=e==null?void 0:e.properties)==null?void 0:r.metastring)===((n=t==null?void 0:t.properties)==null?void 0:n.metastring)}var Ji=(e,t)=>typeof e=="boolean"?e:e[t]!==!1,T0=(e,t)=>{if(typeof e=="boolean")return e;let r=e.table;return r===!1?!1:r===!0||r===void 0?!0:r[t]!==!1},O1=(e,t)=>{if(typeof e=="boolean")return e;let r=e.code;return r===!1?!1:r===!0||r===void 0?!0:r[t]!==!1},ki=(e,t)=>{if(typeof e=="boolean")return e;let r=e.mermaid;return r===!1?!1:r===!0||r===void 0?!0:r[t]!==!1},sC=(e,t)=>{if(typeof e=="boolean")return e;let r=e.image;return r===!1?!1:r===!0||r===void 0?!0:r[t]!==!1},Nl=D.memo(({children:e,className:t,node:r,...n})=>{let a=ve();return I.jsx("ol",{className:a("list-inside list-decimal whitespace-normal [li_&]:pl-6",t),"data-streamdown":"ordered-list",...n,children:e})},(e,t)=>Me(e,t));Nl.displayName="MarkdownOl";var up=D.memo(({children:e,className:t,node:r,...n})=>{var a;let i=ve(),s=Array.isArray(e)?e.filter(l=>l!==`
|
|
537
|
+
`&&l!==""):[e],u=s.length===1&&D.isValidElement(s[0])&&(s[0].type===Ll||((a=s[0].props.node)==null?void 0:a.tagname)==="p")?s[0].props.children:e;return I.jsx("li",{className:i("py-1 [&>p]:inline",t),"data-streamdown":"list-item",...n,children:u})},(e,t)=>Me(e,t));up.displayName="MarkdownLi";var lp=D.memo(({children:e,className:t,node:r,...n})=>{let a=ve();return I.jsx("ul",{className:a("list-inside list-disc whitespace-normal [li_&]:pl-6",t),"data-streamdown":"unordered-list",...n,children:e})},(e,t)=>Me(e,t));lp.displayName="MarkdownUl";var op=D.memo(({className:e,node:t,...r})=>{let n=ve();return I.jsx("hr",{className:n("my-6 border-border",e),"data-streamdown":"horizontal-rule",...r})},(e,t)=>Me(e,t));op.displayName="MarkdownHr";var cp=D.memo(({children:e,className:t,node:r,...n})=>{let a=ve();return I.jsx("span",{className:a("font-semibold",t),"data-streamdown":"strong",...n,children:e})},(e,t)=>Me(e,t));cp.displayName="MarkdownStrong";var uC=({children:e,className:t,href:r,node:n,...a})=>{let i=ve(),{linkSafety:s}=D.useContext(ut),[u,l]=D.useState(!1),o=r==="streamdown:incomplete-link",c=D.useCallback(async b=>{if(!(!(s!=null&&s.enabled&&r)||o)){if(b.preventDefault(),s.onLinkCheck&&await s.onLinkCheck(r)){window.open(r,"_blank","noreferrer");return}l(!0)}},[s,r,o]),h=D.useCallback(()=>{r&&window.open(r,"_blank","noreferrer")},[r]),f=D.useCallback(()=>{l(!1)},[]),p={url:r??"",isOpen:u,onClose:f,onConfirm:h};return s!=null&&s.enabled&&r?I.jsxs(I.Fragment,{children:[I.jsx("button",{className:i("wrap-anywhere appearance-none text-left font-medium text-primary underline",t),"data-incomplete":o,"data-streamdown":"link",onClick:c,type:"button",children:e}),s.renderModal?s.renderModal(p):I.jsx(FA,{...p})]}):I.jsx("a",{className:i("wrap-anywhere font-medium text-primary underline",t),"data-incomplete":o,"data-streamdown":"link",href:r,rel:"noreferrer",target:"_blank",...a,children:e})},hp=D.memo(uC,(e,t)=>Me(e,t));hp.displayName="MarkdownA";var dp=D.memo(({children:e,className:t,node:r,...n})=>{let a=ve();return I.jsx("h1",{className:a("mt-6 mb-2 font-semibold text-3xl",t),"data-streamdown":"heading-1",...n,children:e})},(e,t)=>Me(e,t));dp.displayName="MarkdownH1";var fp=D.memo(({children:e,className:t,node:r,...n})=>{let a=ve();return I.jsx("h2",{className:a("mt-6 mb-2 font-semibold text-2xl",t),"data-streamdown":"heading-2",...n,children:e})},(e,t)=>Me(e,t));fp.displayName="MarkdownH2";var mp=D.memo(({children:e,className:t,node:r,...n})=>{let a=ve();return I.jsx("h3",{className:a("mt-6 mb-2 font-semibold text-xl",t),"data-streamdown":"heading-3",...n,children:e})},(e,t)=>Me(e,t));mp.displayName="MarkdownH3";var pp=D.memo(({children:e,className:t,node:r,...n})=>{let a=ve();return I.jsx("h4",{className:a("mt-6 mb-2 font-semibold text-lg",t),"data-streamdown":"heading-4",...n,children:e})},(e,t)=>Me(e,t));pp.displayName="MarkdownH4";var gp=D.memo(({children:e,className:t,node:r,...n})=>{let a=ve();return I.jsx("h5",{className:a("mt-6 mb-2 font-semibold text-base",t),"data-streamdown":"heading-5",...n,children:e})},(e,t)=>Me(e,t));gp.displayName="MarkdownH5";var bp=D.memo(({children:e,className:t,node:r,...n})=>{let a=ve();return I.jsx("h6",{className:a("mt-6 mb-2 font-semibold text-sm",t),"data-streamdown":"heading-6",...n,children:e})},(e,t)=>Me(e,t));bp.displayName="MarkdownH6";var xp=D.memo(({children:e,className:t,node:r,...n})=>{let{controls:a,tableMaxHeight:i}=D.useContext(ut),s=Ji(a,"table"),u=T0(a,"copy"),l=T0(a,"download"),o=T0(a,"fullscreen");return I.jsx(JA,{className:t,maxHeight:i,showControls:s,showCopy:u,showDownload:l,showFullscreen:o,...n,children:e})},(e,t)=>Me(e,t));xp.displayName="MarkdownTable";var Ep=D.memo(({children:e,className:t,node:r,...n})=>{let a=ve();return I.jsx("thead",{className:a("bg-muted/80",t),"data-streamdown":"table-header",...n,children:e})},(e,t)=>Me(e,t));Ep.displayName="MarkdownThead";var yp=D.memo(({children:e,className:t,node:r,...n})=>{let a=ve();return I.jsx("tbody",{className:a("divide-y divide-border",t),"data-streamdown":"table-body",...n,children:e})},(e,t)=>Me(e,t));yp.displayName="MarkdownTbody";var Tp=D.memo(({children:e,className:t,node:r,...n})=>{let a=ve();return I.jsx("tr",{className:a("border-border",t),"data-streamdown":"table-row",...n,children:e})},(e,t)=>Me(e,t));Tp.displayName="MarkdownTr";var vp=D.memo(({children:e,className:t,node:r,...n})=>{let a=ve();return I.jsx("th",{className:a("whitespace-nowrap px-4 py-2 text-left font-semibold text-sm",t),"data-streamdown":"table-header-cell",...n,children:e})},(e,t)=>Me(e,t));vp.displayName="MarkdownTh";var kp=D.memo(({children:e,className:t,node:r,...n})=>{let a=ve();return I.jsx("td",{className:a("px-4 py-2 text-sm",t),"data-streamdown":"table-cell",...n,children:e})},(e,t)=>Me(e,t));kp.displayName="MarkdownTd";var wp=D.memo(({children:e,className:t,node:r,...n})=>{let a=ve();return I.jsx("blockquote",{className:a("my-4 border-muted-foreground/30 border-l-4 pl-4 text-muted-foreground italic",t),"data-streamdown":"blockquote",...n,children:e})},(e,t)=>Me(e,t));wp.displayName="MarkdownBlockquote";var Ap=D.memo(({children:e,className:t,node:r,...n})=>{let a=ve();return I.jsx("sup",{className:a("text-sm",t),"data-streamdown":"superscript",...n,children:e})},(e,t)=>Me(e,t));Ap.displayName="MarkdownSup";var Cp=D.memo(({children:e,className:t,node:r,...n})=>{let a=ve();return I.jsx("sub",{className:a("text-sm",t),"data-streamdown":"subscript",...n,children:e})},(e,t)=>Me(e,t));Cp.displayName="MarkdownSub";var Sp=D.memo(({children:e,className:t,node:r,...n})=>{if("data-footnotes"in n){let a=s=>{var u,l;if(!D.isValidElement(s))return!1;let o=Array.isArray(s.props.children)?s.props.children:[s.props.children],c=!1,h=!1;for(let f of o)if(f){if(typeof f=="string")f.trim()!==""&&(c=!0);else if(D.isValidElement(f))if(((u=f.props)==null?void 0:u["data-footnote-backref"])!==void 0)h=!0;else{let p=Array.isArray(f.props.children)?f.props.children:[f.props.children];for(let b of p){if(typeof b=="string"&&b.trim()!==""){c=!0;break}if(D.isValidElement(b)&&((l=b.props)==null?void 0:l["data-footnote-backref"])===void 0){c=!0;break}}}}return h&&!c},i=Array.isArray(e)?e.map(s=>{if(!D.isValidElement(s))return s;if(s.type===Nl){let u=(Array.isArray(s.props.children)?s.props.children:[s.props.children]).filter(l=>!a(l));return u.length===0?null:{...s,props:{...s.props,children:u}}}return s}):e;return(Array.isArray(i)?i.some(s=>s!==null):i!==null)?I.jsx("section",{className:t,...n,children:i}):null}return I.jsx("section",{className:t,...n,children:e})},(e,t)=>Me(e,t));Sp.displayName="MarkdownSection";var lC=({node:e,className:t,children:r,...n})=>{var a,i;let s=ve(),u=!("data-block"in n),{mermaid:l,controls:o,lineNumbers:c}=D.useContext(ut),h=_l(),f=Gm(),p=t==null?void 0:t.match(nC),b=(a=p==null?void 0:p.at(1))!=null?a:"",E=HA(b);if(u)return I.jsx("code",{className:s("rounded bg-muted px-1.5 py-0.5 font-mono text-sm",t),"data-streamdown":"inline-code",...n,children:r});let T=(i=e==null?void 0:e.properties)==null?void 0:i.metastring,k=T==null?void 0:T.match(eC),C=k?Number.parseInt(k[1],10):void 0,w=C!==void 0&&C>=1?C:void 0,H=!(T&&tC.test(T))&&c!==!1,z="";if(D.isValidElement(r)&&r.props&&typeof r.props=="object"&&"children"in r.props&&typeof r.props.children=="string"?z=r.props.children:typeof r=="string"&&(z=r),E){let K=E.component;return I.jsx(D.Suspense,{fallback:I.jsx(L1,{}),children:I.jsx(K,{code:z,isIncomplete:f,language:b,meta:T})})}if(b==="mermaid"&&h){let K=Ji(o,"mermaid"),j=ki(o,"download"),ce=ki(o,"copy"),re=ki(o,"fullscreen"),Y=ki(o,"panZoom"),le=K&&(j||ce||re);return I.jsx(D.Suspense,{fallback:I.jsx(L1,{}),children:I.jsxs("div",{className:s("group relative my-4 flex w-full flex-col gap-2 rounded-xl border border-border bg-sidebar p-2",t),"data-streamdown":"mermaid-block",children:[I.jsx("div",{className:s("flex h-8 items-center text-muted-foreground text-xs"),children:I.jsx("span",{className:s("ml-1 font-mono lowercase"),children:"mermaid"})}),le?I.jsx("div",{className:s("pointer-events-none absolute top-2 right-2 z-10 flex items-center"),children:I.jsxs("div",{className:s("pointer-events-auto flex shrink-0 items-center gap-2 rounded-md border border-sidebar bg-sidebar/80 px-1.5 py-1 supports-[backdrop-filter]:bg-sidebar/70 supports-[backdrop-filter]:backdrop-blur"),"data-streamdown":"mermaid-block-actions",children:[j?I.jsx(ep,{chart:z,config:l==null?void 0:l.config}):null,ce?I.jsx(bu,{code:z,..._1(o,"mermaid")}):null,re?I.jsx(QA,{chart:z,config:l==null?void 0:l.config}):null]})}):null,I.jsx("div",{className:s("overflow-hidden rounded-md border border-border bg-background"),children:I.jsx(rC,{chart:z,config:l==null?void 0:l.config,showControls:Y})})]})})}let O=Ji(o,"code"),U=O1(o,"download"),q=O1(o,"copy"),{"data-block":G,...P}=n;return I.jsx(kA,{className:t,code:z,isIncomplete:f,language:b,lineNumbers:H,startLine:w,...P,children:O?I.jsxs(I.Fragment,{children:[U?I.jsx(MA,{code:z,language:b}):null,q?I.jsx(bu,{..._1(o,"code")}):null]}):null})},Ip=D.memo(lC,(e,t)=>Me(e,t)&&iC(e.node,t.node));Ip.displayName="MarkdownCode";var oC=({node:e,className:t,...r})=>{let{controls:n}=D.useContext(ut),a=Ji(n,"image"),i=a&&sC(n,"download");return I.jsx(BA,{className:t,node:e,showControls:a,showDownloadControl:i,...r})},_p=D.memo(oC,(e,t)=>Me(e,t));_p.displayName="MarkdownImg";var Ll=D.memo(({children:e,node:t,...r})=>{let n=(Array.isArray(e)?e:[e]).filter(a=>a!=null&&a!=="");if(n.length===1&&D.isValidElement(n[0])){let a=n[0].props.node,i=a==null?void 0:a.tagName;if(i==="img")return I.jsx(I.Fragment,{children:e});if(i==="code"&&"data-block"in n[0].props)return I.jsx(I.Fragment,{children:e})}return I.jsx("p",{...r,children:e})},(e,t)=>Me(e,t));Ll.displayName="MarkdownParagraph";var cC={ol:Nl,li:up,ul:lp,hr:op,strong:cp,a:hp,h1:dp,h2:fp,h3:mp,h4:pp,h5:gp,h6:bp,table:xp,thead:Ep,tbody:yp,tr:Tp,th:vp,td:kp,blockquote:wp,code:Ip,img:_p,pre:({children:e})=>D.isValidElement(e)?D.cloneElement(e,{"data-block":"true"}):e,sup:Ap,sub:Cp,p:Ll,section:Sp},hC=/[\u0590-\u08FF\uFB1D-\uFDFF\uFE70-\uFEFF]/,dC=new RegExp("\\p{L}","u");function Np(e){let t=e.replace(/(```|~~~)[\s\S]*?\1/g,"").replace(/^#{1,6}\s+/gm,"").replace(/(\*{1,3}|_{1,3})/g,"").replace(/`[^`]*`/g,"").replace(/\[([^\]]*)\]\([^)]*\)/g,"$1").replace(/^[\s>*\-+\d.]+/gm,""),r,n=0,a=0;for(let i of t){if(hC.test(i)){r!=null||(r="rtl"),a+=1;continue}dC.test(i)&&(r!=null||(r="ltr"),n+=1)}return a>n?"rtl":n>a?"ltr":r??"ltr"}var fC=/^[ \t]{0,3}(`{3,}|~{3,})/,mC=/^\|?[ \t]*:?-{1,}:?[ \t]*(\|[ \t]*:?-{1,}:?[ \t]*)*\|?$/,M1=e=>{let t=e.split(`
|
|
538
|
+
`),r=null,n=0;for(let a of t){let i=fC.exec(a);if(r===null){if(i){let s=i[1];r=s[0],n=s.length}}else if(i){let s=i[1],u=s[0],l=s.length;u===r&&l>=n&&(r=null,n=0)}}return r!==null},pC=e=>{let t=e.split(`
|
|
539
|
+
`);for(let r of t){let n=r.trim();if(n.length>0&&n.includes("|")&&mC.test(n))return!0}return!1},gC=()=>e=>{Ht(e,"html",(t,r,n)=>{!n||typeof r!="number"||(n.children[r]={type:"text",value:t.value})})},P1=[],B1={allowDangerousHtml:!0},wi=new WeakMap,bC=class{constructor(){this.cache=new Map,this.keyCache=new WeakMap,this.maxSize=100}generateCacheKey(e){let t=this.keyCache.get(e);if(t)return t;let r=e.rehypePlugins,n=e.remarkPlugins,a=e.remarkRehypeOptions;if(!(r||n||a)){let c="default";return this.keyCache.set(e,c),c}let i=c=>{if(!c||c.length===0)return"";let h="";for(let f=0;f<c.length;f+=1){let p=c[f];if(f>0&&(h+=","),Array.isArray(p)){let[b,E]=p;if(typeof b=="function"){let T=wi.get(b);T||(T=b.name,wi.set(b,T)),h+=T}else h+=String(b);h+=":",h+=JSON.stringify(E)}else if(typeof p=="function"){let b=wi.get(p);b||(b=p.name,wi.set(p,b)),h+=b}else h+=String(p)}return h},s=i(r),u=i(n),l=a?JSON.stringify(a):"",o=`${u}::${s}::${l}`;return this.keyCache.set(e,o),o}get(e){let t=this.generateCacheKey(e),r=this.cache.get(t);return r&&(this.cache.delete(t),this.cache.set(t,r)),r}set(e,t){let r=this.generateCacheKey(e);if(this.cache.size>=this.maxSize){let n=this.cache.keys().next().value;n&&this.cache.delete(n)}this.cache.set(r,t)}clear(){this.cache.clear()}},F1=new bC,Lp=e=>{let t=xC(e),r=e.children||"",n=t.runSync(t.parse(r),r);return AC(n,e)},xC=e=>{let t=F1.get(e);if(t)return t;let r=yC(e);return F1.set(e,r),r},EC=e=>e.some(t=>Array.isArray(t)?t[0]===au:t===au),yC=e=>{let t=e.rehypePlugins||P1,r=e.remarkPlugins||P1,n=EC(t)?r:[...r,gC],a=e.remarkRehypeOptions?{...B1,...e.remarkRehypeOptions}:B1;return $k().use(zv).use(n).use(vk,a).use(t)},TC=e=>e,vC=(e,t,r,n)=>{r?e.children.splice(t,1):e.children[t]={type:"text",value:n}},kC=(e,t)=>{var r;for(let n in h0)if(Object.hasOwn(h0,n)&&Object.hasOwn(e.properties,n)){let a=e.properties[n],i=h0[n];(i===null||i.includes(e.tagName))&&(e.properties[n]=(r=t(String(a||""),n,e))!=null?r:void 0)}},wC=(e,t,r,n,a,i)=>{let s=!1;return n?s=!n.includes(e.tagName):a&&(s=a.includes(e.tagName)),!s&&i&&typeof t=="number"&&(s=!i(e,t,r)),s},AC=(e,t)=>{let{allowElement:r,allowedElements:n,disallowedElements:a,skipHtml:i,unwrapDisallowed:s,urlTransform:u}=t;if(r||n||a||i||u){let l=u||TC;Ht(e,(o,c,h)=>{if(o.type==="raw"&&h&&typeof c=="number")return vC(h,c,i,o.value),c;if(o.type==="element"&&(kC(o,l),wC(o,c,h,n,a,r)&&h&&typeof c=="number"))return s&&o.children?h.children.splice(c,1,...o.children):h.children.splice(c,1),c})}return WT(e,{Fragment:I.Fragment,components:t.components,ignoreInvalidStyle:!0,jsx:I.jsx,jsxs:I.jsxs,passKeys:!0,passNode:!0})},CC=/\[\^[\w-]{1,200}\](?!:)/,SC=/\[\^[\w-]{1,200}\]:/,IC=/<([A-Za-z][\w:-]*)[\s>/]/,_C=/^ {0,3}\[[^\]]+\]:/m,NC=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]),H1=new Map,z1=new Map,LC=e=>{let t=e.toLowerCase(),r=H1.get(t);if(r)return r;let n=new RegExp(`<${t}(?=[\\s>/])[^>]*>`,"gi");return H1.set(t,n),n},RC=e=>{let t=e.toLowerCase(),r=z1.get(t);if(r)return r;let n=new RegExp(`</${t}(?=[\\s>])[^>]*>`,"gi");return z1.set(t,n),n},$1=(e,t)=>{if(NC.has(t.toLowerCase()))return 0;let r=e.match(LC(t));if(!r)return 0;let n=0;for(let a of r)a.trimEnd().endsWith("/>")||(n+=1);return n},U1=(e,t)=>{let r=e.match(RC(t));return r?r.length:0},DC=e=>{let t=0;for(let r=0;r<e.length-1;r+=1)e[r]==="$"&&e[r+1]==="$"&&(t+=1,r+=1);return t},OC=/\r\n|\r/g,Rp=e=>new Ot({gfm:!0}).blockTokens(e),Pn=null,MC=`
|
|
540
|
+
|
|
541
|
+
`,PC=e=>{for(let t=e.length-3;t>=0;t-=1)if(e[t].endsWith(MC))return t+1;return 0},BC=e=>` ${e}`.slice(1),Dp=e=>e.map(BC),Op=e=>{let t=[],r=[],n=!1;for(let a of e){let i=a.raw,s=t.length;if(r.length>0){t[s-1]+=i;let u=r.at(-1),l=$1(i,u),o=U1(i,u);for(let c=0;c<l;c+=1)r.push(u);for(let c=0;c<o;c+=1)r.length>0&&r.at(-1)===u&&r.pop();continue}if(a.type==="html"&&a.block){let u=i.match(IC);if(u){let l=u[1],o=$1(i,l),c=U1(i,l);o>c&&r.push(l)}}if(a.type==="space"&&s>0){t[s-1]+=i;continue}if(s>0&&!n){let u=t[s-1];if(DC(u)%2===1){t[s-1]=u+i;continue}}t.push(i),a.type!=="space"&&(n=a.type==="code")}return t},FC=(e,t)=>{if(t.length<=e.input.length||t.slice(0,e.input.length)!==e.input||_C.test(t))return null;let r=PC(e.blocks);if(r===0)return null;let n=e.verifiedCount,a=e.verifiedLength;if(n>r){n=r,a=0;for(let s=0;s<n;s+=1)a+=e.blocks[s].length}for(;n<r&&t.startsWith(e.blocks[n],a);)a+=e.blocks[n].length,n+=1;if(n!==r)return null;let i=Dp(Op(Rp(t.slice(a))));return{input:t,blocks:e.blocks.slice(0,r).concat(i),verifiedCount:n,verifiedLength:a}},HC=e=>{let t=CC.test(e),r=SC.test(e);if(t||r)return[e];let n=e.includes("\r")?e.replace(OC,`
|
|
542
|
+
`):e;if((Pn==null?void 0:Pn.input)===n)return Pn.blocks;let a=Pn?FC(Pn,n):null,i=a??{input:n,blocks:Dp(Op(Rp(n))),verifiedCount:0,verifiedLength:0};return Pn=i,i.blocks},zC=/^\n*/,$C=/\n*$/,yu=/\n\n/g,UC=(e,t,r)=>{if(!t.includes(`
|
|
543
|
+
`))return e+t+r;let n=t.replace(yu,`
|
|
544
|
+
<!---->
|
|
545
|
+
`).replace(zC,`
|
|
546
|
+
|
|
547
|
+
`).replace($C,`
|
|
548
|
+
|
|
549
|
+
`);return`${e}${n}${r}
|
|
550
|
+
|
|
551
|
+
`},qC=(e,t)=>{let r=new RegExp(`<(${t})(?=[\\s>/])([^>]*)>`,"gi"),n="",a=0,i=r.exec(e);for(;i;){let s=i[0],u=i[1],l=i.index+s.length,o=e.slice(l);if(new RegExp(`</${u}\\s*>`,"i").test(o)){i=r.exec(e);continue}if(n+=e.slice(a,i.index),o.length===0){n+=s,a=l,i=r.exec(e);continue}if(o.startsWith(`
|
|
552
|
+
|
|
553
|
+
`)){let f=o.slice(2).replace(yu,`
|
|
554
|
+
<!---->
|
|
555
|
+
`);n+=`${s}
|
|
556
|
+
|
|
557
|
+
${f}`,a=e.length;break}if(!o.startsWith(`
|
|
558
|
+
`)){n+=s,a=l,i=r.exec(e);continue}let c=o.slice(1);if(c.trim().length===0){n+=s,a=l,i=r.exec(e);continue}let h=c.replace(yu,`
|
|
559
|
+
<!---->
|
|
560
|
+
`);n+=`${s}
|
|
561
|
+
|
|
562
|
+
${h}`,a=e.length;break}return a===0?e:n+e.slice(a)},jC=(e,t)=>{if(!t.length)return e;let r=e;for(let n of t){let a=new RegExp(`(<${n}(?=[\\s>/])[^>]*>)([\\s\\S]*?)(</${n}\\s*>)`,"gi");r=r.replace(a,(i,s,u,l)=>UC(s,u,l)),r=qC(r,n)}return r},GC=/([\\`*_~[\]|])/g,VC=e=>e.replace(GC,"\\$1"),YC=(e,t)=>{if(!t.length)return e;let r=e;for(let n of t){let a=new RegExp(`(<${n}(?=[\\s>/])[^>]*>)([\\s\\S]*?)(</${n}\\s*>)`,"gi");r=r.replace(a,(i,s,u,l)=>{let o=VC(u).replace(/\n\n/g," ");return s+o+l})}return r},WC=new Set(["blockquote","dd","dt","figcaption","h1","h2","h3","h4","h5","h6","li","p","td","th"]),Mp=new Set(["code","kbd","pre","samp","var"]);function Pp(e){return e.children.map(t=>t.type==="text"?t.value:t.type==="element"&&!Mp.has(t.tagName)?Pp(t):"").join("")}function XC(){return e=>{Ht(e,"element",t=>{if(Mp.has(t.tagName)){t.properties!=null||(t.properties={}),t.properties.dir="ltr";return}WC.has(t.tagName)&&(t.properties!=null||(t.properties={}),typeof t.properties.dir!="string"&&(t.properties.dir=Np(Pp(t))))})}}var Bp=e=>e.type==="text"?e.value:"children"in e&&Array.isArray(e.children)?e.children.map(Bp).join(""):"",QC=e=>t=>{if(!e||e.length===0)return;let r=new Set(e.map(n=>n.toLowerCase()));Ht(t,"element",n=>{if(r.has(n.tagName.toLowerCase())){let a=Bp(n);n.children=a?[{type:"text",value:a}]:[]}})},KC=()=>e=>{Ht(e,"code",t=>{var r,n;t.meta&&(t.data=(r=t.data)!=null?r:{},t.data.hProperties={...(n=t.data.hProperties)!=null?n:{},metastring:t.meta})})},ZC=/^([a-zA-Z][a-zA-Z\d+\-.]*:)/,JC=e=>new Set(e.map(t=>t.trim().toLowerCase()).filter(t=>t.length>0).map(t=>t.endsWith(":")?t:`${t}:`));function eS(e,t,r){var n,a;let i=(a=(n=e.position)==null?void 0:n.start)==null?void 0:a.offset;if(typeof i=="number"&&r.charCodeAt(i)===91||e.children.length!==1)return!1;let[s]=e.children;if(s.type!=="text")return!1;let u=ZC.exec(e.url);if(!u)return!1;let l=u[1].toLowerCase();return t.has(l)?l==="mailto:"?e.url===`mailto:${s.value}`:e.url===s.value||e.url===`${l}//${s.value}`:!1}var tS=(e=[])=>{let t=JC(e);return(r,n)=>{var a;if(t.size===0)return;let i=String((a=n.value)!=null?a:"");Ht(r,"link",(s,u,l)=>{if(!(!l||u===void 0)&&eS(s,t,i))return l.children.splice(u,1,...s.children),u})}},q1="data-sd-caret-hidden",rS=e=>{let t=D.useRef(null),r=D.useRef(null),[n,a]=D.useState(!1);return D.useEffect(()=>a(!0),[]),D.useLayoutEffect(()=>{var i,s;let u=e&&(s=(i=t.current)==null?void 0:i.lastElementChild)!=null?s:null,l=r.current;l!==u&&(l==null||l.removeAttribute(q1),u==null||u.setAttribute(q1,""),r.current=u)}),{containerRef:t,showCaret:n||!e}},j1=/^[a-z]/,nS=/^[ \t]*<[\w!/?-]/,aS=/(^|\n)[ \t]{4,}(?=<[\w!/?-])/g,iS=e=>typeof e!="string"||e.length===0||!nS.test(e)?e:e.replace(aS,"$1"),G1,V1,Y1,W1,X1,Q1,Oi={...Pr,clobberPrefix:"",protocols:{...Pr.protocols,href:[...(V1=(G1=Pr.protocols)==null?void 0:G1.href)!=null?V1:[],"tel","streamdown"],src:[...(W1=(Y1=Pr.protocols)==null?void 0:Y1.src)!=null?W1:[],"streamdown"]},attributes:{...Pr.attributes,code:[...(Q1=(X1=Pr.attributes)==null?void 0:X1.code)!=null?Q1:[],"metastring"]}},Xn={raw:au,sanitize:[_f,Oi],harden:[K5,{allowedImagePrefixes:["*"],allowedLinkPrefixes:["*"],allowedProtocols:["*"],defaultOrigin:void 0,allowDataImages:!0}]},sS={gfm:[WE,{}],codeMeta:KC},K1=Object.values(Xn),uS=Object.values(sS),lS={block:" ▋",circle:" ●"},Fp=["github-light","github-dark"],Hp={enabled:!0},oS={codeBlockMaxHeight:400,shikiTheme:Fp,controls:!0,isAnimating:!1,lineNumbers:!0,mode:"streaming",mermaid:void 0,linkSafety:Hp,portal:void 0,tableMaxHeight:300},ut=D.createContext(oS),zp=D.memo(({content:e,shouldParseIncompleteMarkdown:t,shouldNormalizeHtmlIndentation:r,index:n,isIncomplete:a,dir:i,animatePlugin:s,...u})=>{D.useLayoutEffect(()=>{s==null||s.commit()});let l=typeof e=="string"&&r?iS(e):e,o=I.jsx(Lp,{...u,children:l});return I.jsx(jm.Provider,{value:a,children:i?I.jsx("div",{dir:i,style:{display:"contents"},children:o}):o})},(e,t)=>{if(e.content!==t.content||e.shouldNormalizeHtmlIndentation!==t.shouldNormalizeHtmlIndentation||e.index!==t.index||e.isIncomplete!==t.isIncomplete||e.dir!==t.dir)return!1;if(e.components!==t.components){let r=Object.keys(e.components||{}),n=Object.keys(t.components||{});if(r.length!==n.length||r.some(a=>{var i,s;return((i=e.components)==null?void 0:i[a])!==((s=t.components)==null?void 0:s[a])}))return!1}return!(e.rehypePlugins!==t.rehypePlugins||e.remarkPlugins!==t.remarkPlugins||!!e.animatePlugin!=!!t.animatePlugin)});zp.displayName="Block";var $p=D.memo(({children:e,mode:t="streaming",dir:r,parseIncompleteMarkdown:n=!0,normalizeHtmlIndentation:a=!1,components:i,rehypePlugins:s=K1,remarkPlugins:u=uS,className:l,shikiTheme:o,mermaid:c,codeBlockMaxHeight:h=400,controls:f=!0,isAnimating:p=!1,tableMaxHeight:b=300,animated:E,BlockComponent:T=zp,parseMarkdownIntoBlocksFn:k=HC,caret:C,plugins:w,remend:H,linkSafety:z=Hp,portal:O,lineNumbers:U=!0,allowedTags:q,fallbackComponent:G,literalTagContent:P,disableAutolinkProtocols:K,translations:j,icons:ce,prefix:re,onAnimationStart:Y,onAnimationEnd:le,...xe})=>{let _e=D.useId(),qe=D.useMemo(()=>fA(re),[re]),L=D.useRef(null),Ie=D.useRef(Y),Ge=D.useRef(le);Ie.current=Y,Ge.current=le,D.useEffect(()=>{var he,F,X;if(t==="static")return;let ie=L.current;if(L.current=p,ie===null){p&&((he=Ie.current)==null||he.call(Ie));return}p&&!ie?(F=Ie.current)==null||F.call(Ie):!p&&ie&&((X=Ge.current)==null||X.call(Ge))},[p,t]);let R=D.useMemo(()=>q?Object.keys(q):[],[q]),Pe=D.useMemo(()=>{if(typeof e!="string")return"";let he=t==="streaming"&&n?OT(e,H):e;return P&&P.length>0&&(he=YC(he,P)),R.length>0&&(he=jC(he,R)),he},[e,t,n,H,R,P]),ze=D.useMemo(()=>k(Pe),[Pe,k]),De=D.useMemo(()=>r==="auto"?ze.map(Np):void 0,[ze,r]),We=D.useMemo(()=>ze.map((he,F)=>`${_e}-${F}`),[ze.length,_e]),Xe=D.useMemo(()=>E===!0?"true":E?JSON.stringify(E):"",[E]),se=D.useRef(null),we=D.useRef([]),Qe=D.useRef([]),$t=D.useRef(null),Lt=D.useRef("");if(Xe){if(Lt.current!==Xe){Lt.current=Xe;let he=Xe!=="true"?E.maxBacklogMs:void 0;se.current=A1({maxBacklogMs:he}),we.current=[],Qe.current=[]}else se.current||(se.current=A1());p&&se.current&&se.current.beginPass(se.current.now())}else se.current=null,we.current=[],Qe.current=[],Lt.current="";D.useLayoutEffect(()=>{var he;p&&((he=se.current)==null||he.commitPass())});let lr=D.useMemo(()=>{var he,F;return{codeBlockMaxHeight:h,shikiTheme:(F=o??((he=w==null?void 0:w.code)==null?void 0:he.getThemes()))!=null?F:Fp,controls:f,isAnimating:p,lineNumbers:U,mode:t,mermaid:c,linkSafety:z,portal:O,tableMaxHeight:b}},[h,o,f,p,U,t,c,z,O,w==null?void 0:w.code,b]),Sn=D.useMemo(()=>j?JSON.stringify(j):"",[j]),Jr=D.useMemo(()=>({...Km,...j}),[Sn]),en=D.useMemo(()=>{let{inlineCode:he,...F}=i??{},X={...cC,...F};if(he){let ie=X.code;X.code=oe=>"data-block"in oe?ie?D.createElement(ie,oe):null:D.createElement(he,oe)}if(G){if(q)for(let oe of Object.keys(q))Object.hasOwn(X,oe)||(X[oe]=G);let ie={configurable:!0,enumerable:!1,value:G,writable:!1};return new Proxy(X,{getOwnPropertyDescriptor(oe,Ee){let nt=Object.getOwnPropertyDescriptor(oe,Ee);if(nt)return nt;if(typeof Ee=="string"&&j1.test(Ee))return ie},get(oe,Ee,nt){return typeof Ee=="string"&&j1.test(Ee)&&!Object.hasOwn(oe,Ee)?G:Reflect.get(oe,Ee,nt)}})}return X},[i,G,q]),tn=D.useMemo(()=>{let he=[];return w!=null&&w.cjk&&(he=[...he,...w.cjk.remarkPluginsBefore]),he=[...he,...u],K&&K.length>0&&(he=[...he,[tS,K]]),w!=null&&w.cjk&&(he=[...he,...w.cjk.remarkPluginsAfter]),w!=null&&w.math&&(he=[...he,w.math.remarkPlugin]),he},[u,w==null?void 0:w.math,w==null?void 0:w.cjk,K]),Ut=D.useMemo(()=>{var he;let F=s;if(q&&Object.keys(q).length>0&&s===K1){let X={...Oi,tagNames:[...(he=Oi.tagNames)!=null?he:[],...Object.keys(q)],attributes:{...Oi.attributes,...q}};F=[Xn.raw,[_f,X],Xn.harden]}return P&&P.length>0&&(F=[...F,[QC,P]]),w!=null&&w.math&&(F=[...F,w.math.rehypePlugin]),r==="auto"&&t==="static"&&(F=[...F,XC]),F},[s,w==null?void 0:w.math,q,P,r,t]),or=D.useMemo(()=>C&&p?{"--streamdown-caret":`"${lS[C]}"`}:void 0,[C,p]),la=D.useMemo(()=>{if(!p||ze.length===0)return!1;let he=ze.at(-1);return M1(he)||pC(he)},[p,ze]),{containerRef:oa,showCaret:rn}=rS(la),In=he=>{let F=null;if(se.current&&p){if(!we.current[he]){let ie=Xe&&Xe!=="true"?E:{},{maxBacklogMs:oe,...Ee}=ie;we.current[he]=hA({...Ee,timeline:se.current})}F=we.current[he]}$t.current!==Ut&&(Qe.current=[],$t.current=Ut),F&&!Qe.current[he]&&(Qe.current[he]=[...Ut,F.rehypePlugin]);let X=F&&Qe.current[he]?Qe.current[he]:Ut;return{blockAnimatePlugin:F,blockRehypePlugins:X}};return t==="static"?I.jsx(gu.Provider,{value:Jr,children:I.jsx(xu.Provider,{value:w??null,children:I.jsx(ut.Provider,{value:lr,children:I.jsx(I1,{icons:ce,children:I.jsx(pu.Provider,{value:qe,children:I.jsx("div",{className:qe("space-y-4 whitespace-normal [&>*:first-child]:mt-0 [&>*:last-child]:mb-0",l),dir:r==="auto"?void 0:r,children:I.jsx(Lp,{components:en,rehypePlugins:Ut,remarkPlugins:tn,...xe,children:Pe})})})})})})}):I.jsx(gu.Provider,{value:Jr,children:I.jsx(xu.Provider,{value:w??null,children:I.jsx(ut.Provider,{value:lr,children:I.jsx(I1,{icons:ce,children:I.jsx(pu.Provider,{value:qe,children:I.jsxs("div",{className:qe("space-y-4 whitespace-normal [&>*:first-child]:mt-0 [&>*:last-child]:mb-0",C&&rn?"[&>*:last-child:not([data-sd-caret-hidden])]:after:inline [&>*:last-child:not([data-sd-caret-hidden])]:after:align-baseline [&>*:last-child:not([data-sd-caret-hidden])]:after:content-[var(--streamdown-caret)]":null,l),ref:oa,style:or,children:[ze.length===0&&C&&p&&I.jsx("span",{}),ze.map((he,F)=>{var X;let ie=F===ze.length-1,oe=p&&ie&&M1(he),{blockAnimatePlugin:Ee,blockRehypePlugins:nt}=In(F);return I.jsx(T,{animatePlugin:Ee,components:en,content:he,dir:(X=De==null?void 0:De[F])!=null?X:r!=="auto"?r:void 0,index:F,isIncomplete:oe,rehypePlugins:nt,remarkPlugins:tn,shouldNormalizeHtmlIndentation:a,shouldParseIncompleteMarkdown:n,...xe},We[F])})]})})})})})})},(e,t)=>e.children===t.children&&e.shikiTheme===t.shikiTheme&&e.isAnimating===t.isAnimating&&e.animated===t.animated&&e.mode===t.mode&&e.plugins===t.plugins&&e.className===t.className&&e.linkSafety===t.linkSafety&&e.lineNumbers===t.lineNumbers&&e.codeBlockMaxHeight===t.codeBlockMaxHeight&&e.tableMaxHeight===t.tableMaxHeight&&e.normalizeHtmlIndentation===t.normalizeHtmlIndentation&&e.literalTagContent===t.literalTagContent&&e.disableAutolinkProtocols===t.disableAutolinkProtocols&&JSON.stringify(e.translations)===JSON.stringify(t.translations)&&e.prefix===t.prefix&&e.dir===t.dir&&e.fallbackComponent===t.fallbackComponent);$p.displayName="Streamdown";var Ea=e=>e>0?e:null,cS=(e,t)=>{if(e.endsWith("px"))return Ea(Number.parseFloat(e));if(e.endsWith("rem")){let r=Number.parseFloat(getComputedStyle(document.documentElement).fontSize||"16");return Ea(Number.parseFloat(e)*r)}if(e.endsWith("em")){let r=Number.parseFloat(getComputedStyle(t).fontSize||"16");return Ea(Number.parseFloat(e)*r)}if(e.endsWith("vh"))return Ea(Number.parseFloat(e)/100*window.innerHeight);if(e.endsWith("%")){let r=t.parentElement;return r&&r.clientHeight>0?Ea(Number.parseFloat(e)/100*r.clientHeight):null}return null},v0=(e,t)=>{let r=t.trim().toLowerCase();return!r||r==="none"||r==="auto"?null:cS(r,e)},hS=/^min\(\s*([^,]+)\s*,\s*([^)]+)\s*\)$/i,dS=(e,t)=>{let r=v0(e,t);if(r!=null)return r;let n=t.trim().match(hS);if(!n)return null;let a=v0(e,n[1].trim()),i=v0(e,n[2].trim());return a==null||i==null?null:Math.min(a,i)},fS=(e,t,r)=>{let n=t.clientWidth;if(!(n>0))return null;if(r){let c=t.clientHeight;if(!(c>0))return null;let h=Math.min(n/e.width,c/e.height,1);return!(h>0)||Number.isNaN(h)?null:{fitZoom:h,viewportHeight:null}}let a=Math.min(n/e.width,1);if(!(a>0)||Number.isNaN(a))return null;let i=e.height*a,s=null,u=t;for(;u&&s==null;){let c=getComputedStyle(u);s=dS(u,c.maxHeight),u=u.parentElement}let l=s!=null?Math.min(i,s):i,o=Math.min(a,l/e.height,1);return!(o>0)||Number.isNaN(o)?null:{fitZoom:o,viewportHeight:l}},mS=({children:e,className:t,contentSize:r,fitKey:n,minZoom:a=.5,maxZoom:i=3,zoomStep:s=.1,showControls:u=!0,initialZoom:l=1,isAutoFit:o=!1,fullscreen:c=!1})=>{let{RotateCcwIcon:h,ZoomInIcon:f,ZoomOutIcon:p}=Qt(),b=ve(),E=ur(),T=D.useRef(null),k=D.useRef(null),C=D.useRef(!1),[w,H]=D.useState(l),[z,O]=D.useState(a),[U,q]=D.useState(l),[G,P]=D.useState({x:0,y:0}),[K,j]=D.useState(!1),[ce,re]=D.useState({x:0,y:0}),[Y,le]=D.useState({x:0,y:0}),[xe,_e]=D.useState(null),qe=D.useCallback(se=>{let we=T.current;if(!we)return;let Qe=fS(se,we,c);if(!Qe)return;let{fitZoom:$t,viewportHeight:Lt}=Qe;_e(Lt),H($t),O(Math.min(a,$t)),C.current||(q($t),P({x:0,y:0}))},[c,a]),L=D.useCallback(se=>{q(we=>Math.max(z,Math.min(i,we+se))),C.current=!0},[z,i]),Ie=D.useCallback(()=>{L(s)},[L,s]),Ge=D.useCallback(()=>{L(-s)},[L,s]),R=D.useCallback(()=>{q(w),P({x:0,y:0}),C.current=!1},[w]),Pe=D.useCallback(se=>{se.preventDefault();let we=se.deltaY>0?-s:s;L(we)},[L,s]),ze=D.useCallback(se=>{if(se.button!==0||se.isPrimary===!1)return;j(!0),C.current=!0,re({x:se.clientX,y:se.clientY}),le(G);let we=se.currentTarget;we instanceof HTMLElement&&we.setPointerCapture(se.pointerId)},[G]),De=D.useCallback(se=>{if(!K)return;se.preventDefault();let we=se.clientX-ce.x,Qe=se.clientY-ce.y;P({x:Y.x+we,y:Y.y+Qe})},[K,ce,Y]),We=D.useCallback(se=>{j(!1);let we=se.currentTarget;we instanceof HTMLElement&&we.releasePointerCapture(se.pointerId)},[]);D.useEffect(()=>{O(a),o||(H(l),q(l),_e(null))},[l,o,a]),D.useLayoutEffect(()=>{if(!(o&&r))return;qe(r);let se=T.current;if(!se||typeof ResizeObserver>"u")return;let we=new ResizeObserver(()=>{qe(r)});return we.observe(se),()=>{we.disconnect()}},[qe,r,o]),D.useEffect(()=>{o&&(C.current=!1)},[n,o]),D.useEffect(()=>{let se=T.current;if(se)return se.addEventListener("wheel",Pe,{passive:!1}),()=>{se.removeEventListener("wheel",Pe)}},[Pe]),D.useEffect(()=>{let se=k.current;if(se&&K)return document.body.style.userSelect="none",se.addEventListener("pointermove",De,{passive:!1}),se.addEventListener("pointerup",We),se.addEventListener("pointercancel",We),()=>{document.body.style.userSelect="",se.removeEventListener("pointermove",De),se.removeEventListener("pointerup",We),se.removeEventListener("pointercancel",We)}},[K,De,We]);let Xe=!c&&o&&xe!=null?{height:xe}:void 0;return I.jsxs("div",{className:b("relative flex flex-col",c?"h-full w-full":"min-h-28 w-full",t),ref:T,style:{cursor:K?"grabbing":"grab",...Xe},children:[u?I.jsxs("div",{className:b("absolute z-10 flex flex-col gap-1 rounded-md border border-border bg-background/80 p-1 supports-[backdrop-filter]:bg-background/70 supports-[backdrop-filter]:backdrop-blur-sm",c?"bottom-4 left-4":"bottom-2 left-2"),children:[I.jsx("button",{"aria-label":E.zoomIn,className:b("flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50"),disabled:U>=i,onClick:Ie,title:E.zoomIn,type:"button",children:I.jsx(f,{"aria-hidden":"true",size:16})}),I.jsx("button",{"aria-label":E.zoomOut,className:b("flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50"),disabled:U<=z,onClick:Ge,title:E.zoomOut,type:"button",children:I.jsx(p,{"aria-hidden":"true",size:16})}),I.jsx("button",{"aria-label":E.resetView,className:b("flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground"),onClick:R,title:E.resetView,type:"button",children:I.jsx(h,{"aria-hidden":"true",size:16})})]}):null,I.jsx("div",{className:b("flex h-full w-full flex-1 origin-center items-center justify-center transition-transform duration-150 ease-out"),onPointerDown:ze,ref:k,role:"application",style:{transform:`translate(${G.x}px, ${G.y}px) scale(${U})`,transformOrigin:"center center",touchAction:"none",willChange:"transform"},children:e})]})},pS=(e,t)=>new Promise(r=>{let n=setTimeout(r,e);t(()=>{clearTimeout(n),r()})}),gS=async(e,{chart:t,config:r},n)=>{try{let a=e.getMermaid(r),i=t.split("").reduce((o,c)=>(o<<5)-o+c.charCodeAt(0)|0,0),s=`mermaid-${Math.abs(i)}-${Date.now()}-${Math.random().toString(36).substring(2,9)}`,{svg:u}=await a.render(s,t),l=Jm(u);return{ok:!0,svg:n?u:YA(u),size:l}}catch(a){return{ok:!1,error:a instanceof Error?a.message:"Failed to render Mermaid chart"}}},Up=({chart:e,className:t,config:r,fullscreen:n=!1,showControls:a=!0})=>{let i=ve(),[s,u]=D.useState(null),[l,o]=D.useState(!1),[c,h]=D.useState(""),[f,p]=D.useState(null),[b,E]=D.useState(""),[T,k]=D.useState(0),{mermaid:C}=D.useContext(ut),w=_l(),H=C==null?void 0:C.errorComponent,{shouldRender:z,containerRef:O}=Xw({immediate:n}),U=D.useRef(null),q=D.useRef(!1),G=D.useRef(!1),P=Gm(),K=D.useRef(P),j=D.useRef(null);D.useEffect(()=>(G.current=!0,()=>{var Y;G.current=!1,(Y=j.current)==null||Y.call(j)}),[]),D.useEffect(()=>{var Y;K.current=P,P||(Y=j.current)==null||Y.call(j)},[P]);let ce=async Y=>{K.current&&(await pS(Y,le=>{j.current=le}),j.current=null)};if(D.useEffect(()=>{if(!z)return;if(!w){u("Mermaid plugin not available. Please add the mermaid plugin to enable diagram rendering.");return}if(U.current={chart:e,config:r},q.current)return;let Y=(le,xe)=>{xe.ok?(h(xe.svg),p(xe.size),E(xe.svg)):le===U.current&&u(xe.error)};(async()=>{q.current=!0,u(null),o(!0);try{let le=U.current;for(;le;){let xe=performance.now(),_e=await gS(w,le,n);if(!G.current||(Y(le,_e),_e.ok&&await ce(performance.now()-xe),!G.current||le===U.current))return;le=U.current}}finally{q.current=!1,G.current&&o(!1)}})()},[e,r,T,z,w]),!(z||c||b))return I.jsx("div",{className:i("my-4 min-h-[200px]",t),ref:O});if(l&&!c&&!b)return I.jsx("div",{className:i("my-4 flex justify-center p-4",t),ref:O,children:I.jsxs("div",{className:i("flex items-center space-x-2 text-muted-foreground"),children:[I.jsx("div",{className:i("h-4 w-4 animate-spin rounded-full border-current border-b-2")}),I.jsx("span",{className:i("text-sm"),children:"Loading diagram..."})]})});if(s&&!c&&!b){let Y=()=>k(le=>le+1);return H?I.jsx("div",{ref:O,children:I.jsx(H,{chart:e,error:s,retry:Y})}):I.jsxs("div",{className:i("rounded-md bg-red-50 p-4",t),ref:O,children:[I.jsxs("p",{className:i("font-mono text-red-700 text-sm"),children:["Mermaid Error: ",s]}),I.jsxs("details",{className:i("mt-2"),children:[I.jsx("summary",{className:i("cursor-pointer text-red-600 text-xs"),children:"Show Code"}),I.jsx("pre",{className:i("mt-2 overflow-x-auto rounded bg-red-100 p-2 text-red-800 text-xs"),children:e})]})]})}let re=c||b;return I.jsx("div",{className:i(n?"size-full":"max-h-[min(70vh,40rem)] w-full",t),"data-streamdown":"mermaid",ref:O,children:I.jsx(mS,{className:i(n?"size-full overflow-hidden":"max-h-[min(70vh,40rem)] overflow-hidden",t),contentSize:f,fitKey:e,fullscreen:n,isAutoFit:!0,maxZoom:3,minZoom:.1,showControls:a,zoomStep:.1,children:I.jsx("div",{"aria-label":"Mermaid chart",className:i("flex justify-center",n?"size-full items-center":null),dangerouslySetInnerHTML:{__html:re},role:"img"})})})};const bS={code:t3,math:Q5},[xS,ES]=Xn.harden,yS=[Xn.raw,Xn.sanitize,[xS,{...ES,allowedImagePrefixes:[],allowDataImages:!1}]];function TS(e){return I.jsx($p,{plugins:bS,rehypePlugins:yS,...e})}const RS=Object.freeze(Object.defineProperty({__proto__:null,default:TS},Symbol.toStringTag,{value:"Module"})),vS=Object.freeze(Object.defineProperty({__proto__:null,Mermaid:Up},Symbol.toStringTag,{value:"Module"}));export{LS as F,ut as S,xA as a,RS as m};
|