@phosart/devtool 0.3.13 → 0.3.15
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/build/client/editor/_app/immutable/assets/0.D2MIqFqk.css +1 -0
- package/build/client/editor/_app/immutable/assets/0.D2MIqFqk.css.br +0 -0
- package/build/client/editor/_app/immutable/assets/0.D2MIqFqk.css.gz +0 -0
- package/build/client/editor/_app/immutable/chunks/{CP4vdn7E.js → B3Ch1c2c.js} +1 -1
- package/build/client/editor/_app/immutable/chunks/B3Ch1c2c.js.br +0 -0
- package/build/client/editor/_app/immutable/chunks/B3Ch1c2c.js.gz +0 -0
- package/build/client/editor/_app/immutable/chunks/{CdjsM8hp.js → B6ji-0hq.js} +1 -1
- package/build/client/editor/_app/immutable/chunks/B6ji-0hq.js.br +0 -0
- package/build/client/editor/_app/immutable/chunks/B6ji-0hq.js.gz +0 -0
- package/build/client/editor/_app/immutable/chunks/{BsavUv4x.js → B6s-1I7G.js} +1 -1
- package/build/client/editor/_app/immutable/chunks/B6s-1I7G.js.br +0 -0
- package/build/client/editor/_app/immutable/chunks/B6s-1I7G.js.gz +0 -0
- package/build/client/editor/_app/immutable/chunks/{CFV3RbKP.js → BLM40R4o.js} +1 -1
- package/build/client/editor/_app/immutable/chunks/BLM40R4o.js.br +0 -0
- package/build/client/editor/_app/immutable/chunks/BLM40R4o.js.gz +0 -0
- package/build/client/editor/_app/immutable/chunks/{CZr_eRBB.js → BXzq7bb8.js} +1 -1
- package/build/client/editor/_app/immutable/chunks/BXzq7bb8.js.br +2 -0
- package/build/client/editor/_app/immutable/chunks/BXzq7bb8.js.gz +0 -0
- package/build/client/editor/_app/immutable/chunks/{BZioZMs6.js → BkHFKm_k.js} +1 -1
- package/build/client/editor/_app/immutable/chunks/BkHFKm_k.js.br +0 -0
- package/build/client/editor/_app/immutable/chunks/BkHFKm_k.js.gz +0 -0
- package/build/client/editor/_app/immutable/chunks/{B2Mf6hjd.js → CB6mukju.js} +1 -1
- package/build/client/editor/_app/immutable/chunks/CB6mukju.js.br +0 -0
- package/build/client/editor/_app/immutable/chunks/CB6mukju.js.gz +0 -0
- package/build/client/editor/_app/immutable/chunks/{BH7Aakft.js → CFV5px7P.js} +1 -1
- package/build/client/editor/_app/immutable/chunks/CFV5px7P.js.br +0 -0
- package/build/client/editor/_app/immutable/chunks/CFV5px7P.js.gz +0 -0
- package/build/client/editor/_app/immutable/chunks/CcMZXW2Q.js +3 -0
- package/build/client/editor/_app/immutable/chunks/CcMZXW2Q.js.br +0 -0
- package/build/client/editor/_app/immutable/chunks/CcMZXW2Q.js.gz +0 -0
- package/build/client/editor/_app/immutable/chunks/{CLdoeRCz.js → D00NIYmr.js} +1 -1
- package/build/client/editor/_app/immutable/chunks/D00NIYmr.js.br +0 -0
- package/build/client/editor/_app/immutable/chunks/D00NIYmr.js.gz +0 -0
- package/build/client/editor/_app/immutable/chunks/{CzbclIdJ.js → D7xX-nUV.js} +1 -1
- package/build/client/editor/_app/immutable/chunks/D7xX-nUV.js.br +0 -0
- package/build/client/editor/_app/immutable/chunks/D7xX-nUV.js.gz +0 -0
- package/build/client/editor/_app/immutable/chunks/{DgonU9-3.js → DhoABqLu.js} +1 -1
- package/build/client/editor/_app/immutable/chunks/DhoABqLu.js.br +0 -0
- package/build/client/editor/_app/immutable/chunks/DhoABqLu.js.gz +0 -0
- package/build/client/editor/_app/immutable/chunks/{DZwBq58I.js → Dj7uu75K.js} +1 -1
- package/build/client/editor/_app/immutable/chunks/Dj7uu75K.js.br +0 -0
- package/build/client/editor/_app/immutable/chunks/Dj7uu75K.js.gz +0 -0
- package/build/client/editor/_app/immutable/chunks/{BCZ2kogd.js → DyEyaCAS.js} +1 -1
- package/build/client/editor/_app/immutable/chunks/DyEyaCAS.js.br +0 -0
- package/build/client/editor/_app/immutable/chunks/DyEyaCAS.js.gz +0 -0
- package/build/client/editor/_app/immutable/chunks/{tTl1XUIM.js → EkzMtUSg.js} +1 -1
- package/build/client/editor/_app/immutable/chunks/EkzMtUSg.js.br +0 -0
- package/build/client/editor/_app/immutable/chunks/EkzMtUSg.js.gz +0 -0
- package/build/client/editor/_app/immutable/chunks/{C-hf3gFL.js → YV2aRQwm.js} +1 -1
- package/build/client/editor/_app/immutable/chunks/YV2aRQwm.js.br +0 -0
- package/build/client/editor/_app/immutable/chunks/YV2aRQwm.js.gz +0 -0
- package/build/client/editor/_app/immutable/chunks/{DzGDScmx.js → pP3fUEwB.js} +1 -1
- package/build/client/editor/_app/immutable/chunks/pP3fUEwB.js.br +0 -0
- package/build/client/editor/_app/immutable/chunks/pP3fUEwB.js.gz +0 -0
- package/build/client/editor/_app/immutable/entry/{app.fZY_Ga81.js → app.F6hM6J4a.js} +2 -2
- package/build/client/editor/_app/immutable/entry/app.F6hM6J4a.js.br +0 -0
- package/build/client/editor/_app/immutable/entry/app.F6hM6J4a.js.gz +0 -0
- package/build/client/editor/_app/immutable/entry/start.BpHI5zht.js +1 -0
- package/build/client/editor/_app/immutable/entry/start.BpHI5zht.js.br +2 -0
- package/build/client/editor/_app/immutable/entry/start.BpHI5zht.js.gz +0 -0
- package/build/client/editor/_app/immutable/nodes/0.DiAexMq7.js +8 -0
- package/build/client/editor/_app/immutable/nodes/0.DiAexMq7.js.br +0 -0
- package/build/client/editor/_app/immutable/nodes/0.DiAexMq7.js.gz +0 -0
- package/build/client/editor/_app/immutable/nodes/{1.CjoXsmxk.js → 1.DfFMq9H8.js} +1 -1
- package/build/client/editor/_app/immutable/nodes/1.DfFMq9H8.js.br +0 -0
- package/build/client/editor/_app/immutable/nodes/1.DfFMq9H8.js.gz +0 -0
- package/build/client/editor/_app/immutable/nodes/{2.Owl79jao.js → 2.KchtK8WJ.js} +1 -1
- package/build/client/editor/_app/immutable/nodes/2.KchtK8WJ.js.br +0 -0
- package/build/client/editor/_app/immutable/nodes/2.KchtK8WJ.js.gz +0 -0
- package/build/client/editor/_app/immutable/nodes/{3.8_4KwFPG.js → 3.BxBmnOCg.js} +1 -1
- package/build/client/editor/_app/immutable/nodes/3.BxBmnOCg.js.br +0 -0
- package/build/client/editor/_app/immutable/nodes/3.BxBmnOCg.js.gz +0 -0
- package/build/client/editor/_app/immutable/nodes/{4.Cae5JZS3.js → 4.Co8WXijL.js} +10 -10
- package/build/client/editor/_app/immutable/nodes/4.Co8WXijL.js.br +0 -0
- package/build/client/editor/_app/immutable/nodes/4.Co8WXijL.js.gz +0 -0
- package/build/client/editor/_app/immutable/nodes/{5.LrwLphBI.js → 5.q0b1HQtL.js} +1 -1
- package/build/client/editor/_app/immutable/nodes/5.q0b1HQtL.js.br +0 -0
- package/build/client/editor/_app/immutable/nodes/5.q0b1HQtL.js.gz +0 -0
- package/build/client/editor/_app/immutable/nodes/6.dSsUNlWV.js +1 -0
- package/build/client/editor/_app/immutable/nodes/6.dSsUNlWV.js.br +0 -0
- package/build/client/editor/_app/immutable/nodes/6.dSsUNlWV.js.gz +0 -0
- package/build/client/editor/_app/immutable/nodes/{7.B9CRmNEg.js → 7.DT1sdQFV.js} +1 -1
- package/build/client/editor/_app/immutable/nodes/7.DT1sdQFV.js.br +0 -0
- package/build/client/editor/_app/immutable/nodes/7.DT1sdQFV.js.gz +0 -0
- package/build/client/editor/_app/version.json +1 -1
- package/build/client/editor/_app/version.json.br +0 -0
- package/build/client/editor/_app/version.json.gz +0 -0
- package/build/server/chunks/{0-EPcQpNZj.js → 0-BdB5Xhg2.js} +5 -5
- package/build/server/chunks/{0-EPcQpNZj.js.map → 0-BdB5Xhg2.js.map} +1 -1
- package/build/server/chunks/{1-B9PN7QEj.js → 1-5bjMzU_o.js} +2 -2
- package/build/server/chunks/{1-B9PN7QEj.js.map → 1-5bjMzU_o.js.map} +1 -1
- package/build/server/chunks/{2-BYGDEqVX.js → 2-Be6V8Af0.js} +3 -3
- package/build/server/chunks/{2-BYGDEqVX.js.map → 2-Be6V8Af0.js.map} +1 -1
- package/build/server/chunks/{3-CTIJY7Ad.js → 3-BEN_J31B.js} +3 -3
- package/build/server/chunks/{3-CTIJY7Ad.js.map → 3-BEN_J31B.js.map} +1 -1
- package/build/server/chunks/{4-Bk4DdyeC.js → 4-Bd9w1bse.js} +3 -3
- package/build/server/chunks/{4-Bk4DdyeC.js.map → 4-Bd9w1bse.js.map} +1 -1
- package/build/server/chunks/{5-BmJCvhGs.js → 5-F18EytLC.js} +3 -3
- package/build/server/chunks/{5-BmJCvhGs.js.map → 5-F18EytLC.js.map} +1 -1
- package/build/server/chunks/{6-B1OOGK48.js → 6-j0pywN59.js} +3 -3
- package/build/server/chunks/{6-B1OOGK48.js.map → 6-j0pywN59.js.map} +1 -1
- package/build/server/chunks/{7-JQh76bD1.js → 7-BfdtiU6Y.js} +2 -2
- package/build/server/chunks/{7-JQh76bD1.js.map → 7-BfdtiU6Y.js.map} +1 -1
- package/build/server/chunks/{SearchInput-ClLeCDYo.js → SearchInput-BtgGl-Ij.js} +2 -2
- package/build/server/chunks/{SearchInput-ClLeCDYo.js.map → SearchInput-BtgGl-Ij.js.map} +1 -1
- package/build/server/chunks/{TagEdit-xCo_VQvZ.js → TagEdit-CpdVyjQZ.js} +3 -3
- package/build/server/chunks/{TagEdit-xCo_VQvZ.js.map → TagEdit-CpdVyjQZ.js.map} +1 -1
- package/build/server/chunks/{TextInput-DPhM0JMf.js → TextInput-NfplTe89.js} +2 -2
- package/build/server/chunks/{TextInput-DPhM0JMf.js.map → TextInput-NfplTe89.js.map} +1 -1
- package/build/server/chunks/{_layout.svelte-BDbe1uM7.js → _layout.svelte-CYfFBPUl.js} +154 -5
- package/build/server/chunks/_layout.svelte-CYfFBPUl.js.map +1 -0
- package/build/server/chunks/{_page.svelte-jkGArpaZ.js → _page.svelte-CG9cEgP9.js} +4 -4
- package/build/server/chunks/{_page.svelte-jkGArpaZ.js.map → _page.svelte-CG9cEgP9.js.map} +1 -1
- package/build/server/chunks/{_page.svelte-D2ePzaNf.js → _page.svelte-CYX5ADB_.js} +3 -3
- package/build/server/chunks/{_page.svelte-D2ePzaNf.js.map → _page.svelte-CYX5ADB_.js.map} +1 -1
- package/build/server/chunks/{_page.svelte-CeO44t44.js → _page.svelte-CfpAsV75.js} +4 -4
- package/build/server/chunks/{_page.svelte-CeO44t44.js.map → _page.svelte-CfpAsV75.js.map} +1 -1
- package/build/server/chunks/{_page.svelte-CwuF9gTo.js → _page.svelte-DBfvNCDl.js} +36 -12
- package/build/server/chunks/_page.svelte-DBfvNCDl.js.map +1 -0
- package/build/server/chunks/{_page.svelte-DvuAyZEN.js → _page.svelte-DxeHfMeq.js} +3 -3
- package/build/server/chunks/{_page.svelte-DvuAyZEN.js.map → _page.svelte-DxeHfMeq.js.map} +1 -1
- package/build/server/chunks/{_server.ts-BLpv7RP8.js → _server.ts-CUY8FF2q.js} +11 -3
- package/build/server/chunks/_server.ts-CUY8FF2q.js.map +1 -0
- package/build/server/chunks/{_server.ts-Cpcex6QU.js → _server.ts-Dlsxe2Ab.js} +2 -2
- package/build/server/chunks/{_server.ts-Cpcex6QU.js.map → _server.ts-Dlsxe2Ab.js.map} +1 -1
- package/build/server/chunks/{_server.ts-_aMPk1T_.js → _server.ts-WRZQtMdQ.js} +2 -2
- package/build/server/chunks/{_server.ts-_aMPk1T_.js.map → _server.ts-WRZQtMdQ.js.map} +1 -1
- package/build/server/chunks/{util-DctM9nMJ.js → util-Rz0QeqoV.js} +11 -3
- package/build/server/chunks/util-Rz0QeqoV.js.map +1 -0
- package/build/server/index.js +1 -1
- package/build/server/index.js.map +1 -1
- package/build/server/manifest.js +12 -12
- package/build/server/manifest.js.map +1 -1
- package/package.json +2 -2
- package/build/client/editor/_app/immutable/assets/0.Bi6Jv2ib.css +0 -1
- package/build/client/editor/_app/immutable/assets/0.Bi6Jv2ib.css.br +0 -0
- package/build/client/editor/_app/immutable/assets/0.Bi6Jv2ib.css.gz +0 -0
- package/build/client/editor/_app/immutable/chunks/B2Mf6hjd.js.br +0 -0
- package/build/client/editor/_app/immutable/chunks/B2Mf6hjd.js.gz +0 -0
- package/build/client/editor/_app/immutable/chunks/BCZ2kogd.js.br +0 -0
- package/build/client/editor/_app/immutable/chunks/BCZ2kogd.js.gz +0 -0
- package/build/client/editor/_app/immutable/chunks/BH7Aakft.js.br +0 -0
- package/build/client/editor/_app/immutable/chunks/BH7Aakft.js.gz +0 -0
- package/build/client/editor/_app/immutable/chunks/BZioZMs6.js.br +0 -0
- package/build/client/editor/_app/immutable/chunks/BZioZMs6.js.gz +0 -0
- package/build/client/editor/_app/immutable/chunks/BsavUv4x.js.br +0 -0
- package/build/client/editor/_app/immutable/chunks/BsavUv4x.js.gz +0 -0
- package/build/client/editor/_app/immutable/chunks/C-hf3gFL.js.br +0 -0
- package/build/client/editor/_app/immutable/chunks/C-hf3gFL.js.gz +0 -0
- package/build/client/editor/_app/immutable/chunks/CFV3RbKP.js.br +0 -0
- package/build/client/editor/_app/immutable/chunks/CFV3RbKP.js.gz +0 -0
- package/build/client/editor/_app/immutable/chunks/CLdoeRCz.js.br +0 -0
- package/build/client/editor/_app/immutable/chunks/CLdoeRCz.js.gz +0 -0
- package/build/client/editor/_app/immutable/chunks/CP4vdn7E.js.br +0 -0
- package/build/client/editor/_app/immutable/chunks/CP4vdn7E.js.gz +0 -0
- package/build/client/editor/_app/immutable/chunks/CZr_eRBB.js.br +0 -0
- package/build/client/editor/_app/immutable/chunks/CZr_eRBB.js.gz +0 -0
- package/build/client/editor/_app/immutable/chunks/CdjsM8hp.js.br +0 -0
- package/build/client/editor/_app/immutable/chunks/CdjsM8hp.js.gz +0 -0
- package/build/client/editor/_app/immutable/chunks/CzbclIdJ.js.br +0 -0
- package/build/client/editor/_app/immutable/chunks/CzbclIdJ.js.gz +0 -0
- package/build/client/editor/_app/immutable/chunks/DZwBq58I.js.br +0 -0
- package/build/client/editor/_app/immutable/chunks/DZwBq58I.js.gz +0 -0
- package/build/client/editor/_app/immutable/chunks/DgonU9-3.js.br +0 -0
- package/build/client/editor/_app/immutable/chunks/DgonU9-3.js.gz +0 -0
- package/build/client/editor/_app/immutable/chunks/DzGDScmx.js.br +0 -0
- package/build/client/editor/_app/immutable/chunks/DzGDScmx.js.gz +0 -0
- package/build/client/editor/_app/immutable/chunks/gSjiTX5C.js +0 -3
- package/build/client/editor/_app/immutable/chunks/gSjiTX5C.js.br +0 -0
- package/build/client/editor/_app/immutable/chunks/gSjiTX5C.js.gz +0 -0
- package/build/client/editor/_app/immutable/chunks/tTl1XUIM.js.br +0 -0
- package/build/client/editor/_app/immutable/chunks/tTl1XUIM.js.gz +0 -0
- package/build/client/editor/_app/immutable/entry/app.fZY_Ga81.js.br +0 -0
- package/build/client/editor/_app/immutable/entry/app.fZY_Ga81.js.gz +0 -0
- package/build/client/editor/_app/immutable/entry/start.B_nPqGLe.js +0 -1
- package/build/client/editor/_app/immutable/entry/start.B_nPqGLe.js.br +0 -2
- package/build/client/editor/_app/immutable/entry/start.B_nPqGLe.js.gz +0 -0
- package/build/client/editor/_app/immutable/nodes/0.Dmm2KN-_.js +0 -7
- package/build/client/editor/_app/immutable/nodes/0.Dmm2KN-_.js.br +0 -0
- package/build/client/editor/_app/immutable/nodes/0.Dmm2KN-_.js.gz +0 -0
- package/build/client/editor/_app/immutable/nodes/1.CjoXsmxk.js.br +0 -5
- package/build/client/editor/_app/immutable/nodes/1.CjoXsmxk.js.gz +0 -0
- package/build/client/editor/_app/immutable/nodes/2.Owl79jao.js.br +0 -0
- package/build/client/editor/_app/immutable/nodes/2.Owl79jao.js.gz +0 -0
- package/build/client/editor/_app/immutable/nodes/3.8_4KwFPG.js.br +0 -0
- package/build/client/editor/_app/immutable/nodes/3.8_4KwFPG.js.gz +0 -0
- package/build/client/editor/_app/immutable/nodes/4.Cae5JZS3.js.br +0 -0
- package/build/client/editor/_app/immutable/nodes/4.Cae5JZS3.js.gz +0 -0
- package/build/client/editor/_app/immutable/nodes/5.LrwLphBI.js.br +0 -0
- package/build/client/editor/_app/immutable/nodes/5.LrwLphBI.js.gz +0 -0
- package/build/client/editor/_app/immutable/nodes/6.DRDVpfsA.js +0 -1
- package/build/client/editor/_app/immutable/nodes/6.DRDVpfsA.js.br +0 -0
- package/build/client/editor/_app/immutable/nodes/6.DRDVpfsA.js.gz +0 -0
- package/build/client/editor/_app/immutable/nodes/7.B9CRmNEg.js.br +0 -0
- package/build/client/editor/_app/immutable/nodes/7.B9CRmNEg.js.gz +0 -0
- package/build/server/chunks/_layout.svelte-BDbe1uM7.js.map +0 -1
- package/build/server/chunks/_page.svelte-CwuF9gTo.js.map +0 -1
- package/build/server/chunks/_server.ts-BLpv7RP8.js.map +0 -1
- package/build/server/chunks/util-DctM9nMJ.js.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import{g as Zt,c as ft,a as ne,d as sl,p as cl,f as pe,b as qe,s as Jt}from"../chunks/uKr-h81c.js";import{j as Ft,q as Vn,av as vt,t as Ve,k as Wn,U as fl,bs as hl,w as Qn,aC as pl,aE as ml,aL as dl,aF as gl,au as yl,a_ as xl,bt as kl,p as nt,f as Qe,n as Oe,a as rt,h as He,b as Yn,g as A,y as bl,z as wl,e as vl,d as he,c as j,s as oe,r as M,$ as Sl,x as Ze,u as Ce,i as Cl}from"../chunks/ojCXFEeF.js";import{s as ht,r as pt,i as Fe}from"../chunks/BwcXpOFi.js";import{I as mt,d as dt,x as Al,h as Il,e as El,T as en,o as Kn,f as Nt,c as _l,r as Tl,n as Pl}from"../chunks/tTl1XUIM.js";import{i as zl}from"../chunks/gSjiTX5C.js";import{C as Gn}from"../chunks/CFV3RbKP.js";import{a as Dl,g as Ll}from"../chunks/DZwBq58I.js";import{A as Xn,I as Zn}from"../chunks/CzbclIdJ.js";import{O as Jn}from"../chunks/DzGDScmx.js";import{L as Fl,S as Nl}from"../chunks/C-hf3gFL.js";import{T as er}from"../chunks/B2Mf6hjd.js";import{M as tr,T as nr}from"../chunks/CLdoeRCz.js";import{T as rr,S as Ol}from"../chunks/BsavUv4x.js";function ir(e,n,t=!1,r=!1,i=!1,o=!1){var l=e,a="";if(t){var u=e;Ft&&(l=Vn(vt(u)))}Ve(()=>{var s=fl;if(a===(a=n()??"")){Ft&&Wn();return}if(t&&!Ft){s.nodes=null,u.innerHTML=a,a!==""&&Zt(vt(u),u.lastChild);return}if(s.nodes!==null&&(hl(s.nodes.start,s.nodes.end),s.nodes=null),a!==""){if(Ft){Qn.data;for(var f=Wn(),c=f;f!==null&&(f.nodeType!==pl||f.data!=="");)c=f,f=ml(f);if(f===null)throw dl(),gl;Zt(Qn,c),l=Vn(f);return}var p=r?xl:i?kl:void 0,h=yl(r?"svg":i?"math":"template",p);h.innerHTML=a;var g=r||i?h:h.content;if(Zt(vt(g),g.lastChild),r||i)for(;vt(g);)l.before(vt(g));else l.before(g)}})}var Rl=new Set(["$$slots","$$events","$$legacy"]);function Ml(e,n){nt(n,!0);let t=pt(n,Rl);const r=[["path",{d:"m6 9 6 6 6-6"}]];mt(e,ht({name:"chevron-down"},()=>t,{get iconNode(){return r},children:(i,o)=>{var l=ft(),a=Qe(l);dt(a,()=>n.children??Oe),ne(i,l)},$$slots:{default:!0}})),rt()}var Bl=new Set(["$$slots","$$events","$$legacy"]);function $l(e,n){nt(n,!0);let t=pt(n,Bl);const r=[["path",{d:"m18 15-6-6-6 6"}]];mt(e,ht({name:"chevron-up"},()=>t,{get iconNode(){return r},children:(i,o)=>{var l=ft(),a=Qe(l);dt(a,()=>n.children??Oe),ne(i,l)},$$slots:{default:!0}})),rt()}var jl=new Set(["$$slots","$$events","$$legacy"]);function ql(e,n){nt(n,!0);let t=pt(n,jl);const r=[["circle",{cx:"12",cy:"12",r:"10"}],["path",{d:"M8 12h8"}],["path",{d:"M12 8v8"}]];mt(e,ht({name:"circle-plus"},()=>t,{get iconNode(){return r},children:(i,o)=>{var l=ft(),a=Qe(l);dt(a,()=>n.children??Oe),ne(i,l)},$$slots:{default:!0}})),rt()}var Hl=new Set(["$$slots","$$events","$$legacy"]);function lr(e,n){nt(n,!0);let t=pt(n,Hl);const r=[["line",{x1:"2",x2:"22",y1:"2",y2:"22"}],["path",{d:"M10.41 10.41a2 2 0 1 1-2.83-2.83"}],["line",{x1:"13.5",x2:"6",y1:"13.5",y2:"21"}],["line",{x1:"18",x2:"21",y1:"12",y2:"15"}],["path",{d:"M3.59 3.59A1.99 1.99 0 0 0 3 5v14a2 2 0 0 0 2 2h14c.55 0 1.052-.22 1.41-.59"}],["path",{d:"M21 15V5a2 2 0 0 0-2-2H9"}]];mt(e,ht({name:"image-off"},()=>t,{get iconNode(){return r},children:(i,o)=>{var l=ft(),a=Qe(l);dt(a,()=>n.children??Oe),ne(i,l)},$$slots:{default:!0}})),rt()}var Ul=new Set(["$$slots","$$events","$$legacy"]);function Vl(e,n){nt(n,!0);let t=pt(n,Ul);const r=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2"}],["circle",{cx:"9",cy:"9",r:"2"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21"}]];mt(e,ht({name:"image"},()=>t,{get iconNode(){return r},children:(i,o)=>{var l=ft(),a=Qe(l);dt(a,()=>n.children??Oe),ne(i,l)},$$slots:{default:!0}})),rt()}var Wl=new Set(["$$slots","$$events","$$legacy"]);function Ql(e,n){nt(n,!0);let t=pt(n,Wl);const r=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z"}],["path",{d:"m15 5 4 4"}]];mt(e,ht({name:"pencil"},()=>t,{get iconNode(){return r},children:(i,o)=>{var l=ft(),a=Qe(l);dt(a,()=>n.children??Oe),ne(i,l)},$$slots:{default:!0}})),rt()}function or(e){if(e)throw e}var tn,ar;function Yl(){if(ar)return tn;ar=1;var e=Object.prototype.hasOwnProperty,n=Object.prototype.toString,t=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(s){return typeof Array.isArray=="function"?Array.isArray(s):n.call(s)==="[object Array]"},o=function(s){if(!s||n.call(s)!=="[object Object]")return!1;var f=e.call(s,"constructor"),c=s.constructor&&s.constructor.prototype&&e.call(s.constructor.prototype,"isPrototypeOf");if(s.constructor&&!f&&!c)return!1;var p;for(p in s);return typeof p>"u"||e.call(s,p)},l=function(s,f){t&&f.name==="__proto__"?t(s,f.name,{enumerable:!0,configurable:!0,value:f.newValue,writable:!0}):s[f.name]=f.newValue},a=function(s,f){if(f==="__proto__")if(e.call(s,f)){if(r)return r(s,f).value}else return;return s[f]};return tn=function u(){var s,f,c,p,h,g,w=arguments[0],v=1,x=arguments.length,I=!1;for(typeof w=="boolean"&&(I=w,w=arguments[1]||{},v=2),(w==null||typeof w!="object"&&typeof w!="function")&&(w={});v<x;++v)if(s=arguments[v],s!=null)for(f in s)c=a(w,f),p=a(s,f),w!==p&&(I&&p&&(o(p)||(h=i(p)))?(h?(h=!1,g=c&&i(c)?c:[]):g=c&&o(c)?c:{},l(w,{name:f,newValue:u(I,g,p)})):typeof p<"u"&&l(w,{name:f,newValue:p}));return w},tn}var Kl=Yl();const nn=Al(Kl);function kn(e){if(typeof e!="object"||e===null)return!1;const n=Object.getPrototypeOf(e);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Gl(){const e=[],n={run:t,use:r};return n;function t(...i){let o=-1;const l=i.pop();if(typeof l!="function")throw new TypeError("Expected function as last argument, not "+l);a(null,...i);function a(u,...s){const f=e[++o];let c=-1;if(u){l(u);return}for(;++c<i.length;)(s[c]===null||s[c]===void 0)&&(s[c]=i[c]);i=s,f?Xl(f,a)(...s):l(null,...s)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),n}}function Xl(e,n){let t;return r;function r(...l){const a=e.length>l.length;let u;a&&l.push(i);try{u=e.apply(this,l)}catch(s){const f=s;if(a&&t)throw f;return i(f)}a||(u&&u.then&&typeof u.then=="function"?u.then(o,i):u instanceof Error?i(u):o(u))}function i(l,...a){t||(t=!0,n(l,...a))}function o(l){i(null,l)}}function At(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?ur(e.position):"start"in e||"end"in e?ur(e):"line"in e||"column"in e?bn(e):""}function bn(e){return sr(e&&e.line)+":"+sr(e&&e.column)}function ur(e){return bn(e&&e.start)+"-"+bn(e&&e.end)}function sr(e){return e&&typeof e=="number"?e:1}class ke extends Error{constructor(n,t,r){super(),typeof t=="string"&&(r=t,t=void 0);let i="",o={},l=!1;if(t&&("line"in t&&"column"in t?o={place:t}:"start"in t&&"end"in t?o={place:t}:"type"in t?o={ancestors:[t],place:t.position}:o={...t}),typeof n=="string"?i=n:!o.cause&&n&&(l=!0,i=n.message,o.cause=n),!o.ruleId&&!o.source&&typeof r=="string"){const u=r.indexOf(":");u===-1?o.ruleId=r:(o.source=r.slice(0,u),o.ruleId=r.slice(u+1))}if(!o.place&&o.ancestors&&o.ancestors){const u=o.ancestors[o.ancestors.length-1];u&&(o.place=u.position)}const a=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=a?a.line:void 0,this.name=At(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=l&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}ke.prototype.file="";ke.prototype.name="";ke.prototype.reason="";ke.prototype.message="";ke.prototype.stack="";ke.prototype.column=void 0;ke.prototype.line=void 0;ke.prototype.ancestors=void 0;ke.prototype.cause=void 0;ke.prototype.fatal=void 0;ke.prototype.place=void 0;ke.prototype.ruleId=void 0;ke.prototype.source=void 0;const Ne={basename:Zl,dirname:Jl,extname:eo,join:to,sep:"/"};function Zl(e,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');Pt(e);let t=0,r=-1,i=e.length,o;if(n===void 0||n.length===0||n.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(o){t=i+1;break}}else r<0&&(o=!0,r=i+1);return r<0?"":e.slice(t,r)}if(n===e)return"";let l=-1,a=n.length-1;for(;i--;)if(e.codePointAt(i)===47){if(o){t=i+1;break}}else l<0&&(o=!0,l=i+1),a>-1&&(e.codePointAt(i)===n.codePointAt(a--)?a<0&&(r=i):(a=-1,r=l));return t===r?r=l:r<0&&(r=e.length),e.slice(t,r)}function Jl(e){if(Pt(e),e.length===0)return".";let n=-1,t=e.length,r;for(;--t;)if(e.codePointAt(t)===47){if(r){n=t;break}}else r||(r=!0);return n<0?e.codePointAt(0)===47?"/":".":n===1&&e.codePointAt(0)===47?"//":e.slice(0,n)}function eo(e){Pt(e);let n=e.length,t=-1,r=0,i=-1,o=0,l;for(;n--;){const a=e.codePointAt(n);if(a===47){if(l){r=n+1;break}continue}t<0&&(l=!0,t=n+1),a===46?i<0?i=n:o!==1&&(o=1):i>-1&&(o=-1)}return i<0||t<0||o===0||o===1&&i===t-1&&i===r+1?"":e.slice(i,t)}function to(...e){let n=-1,t;for(;++n<e.length;)Pt(e[n]),e[n]&&(t=t===void 0?e[n]:t+"/"+e[n]);return t===void 0?".":no(t)}function no(e){Pt(e);const n=e.codePointAt(0)===47;let t=ro(e,!n);return t.length===0&&!n&&(t="."),t.length>0&&e.codePointAt(e.length-1)===47&&(t+="/"),n?"/"+t:t}function ro(e,n){let t="",r=0,i=-1,o=0,l=-1,a,u;for(;++l<=e.length;){if(l<e.length)a=e.codePointAt(l);else{if(a===47)break;a=47}if(a===47){if(!(i===l-1||o===1))if(i!==l-1&&o===2){if(t.length<2||r!==2||t.codePointAt(t.length-1)!==46||t.codePointAt(t.length-2)!==46){if(t.length>2){if(u=t.lastIndexOf("/"),u!==t.length-1){u<0?(t="",r=0):(t=t.slice(0,u),r=t.length-1-t.lastIndexOf("/")),i=l,o=0;continue}}else if(t.length>0){t="",r=0,i=l,o=0;continue}}n&&(t=t.length>0?t+"/..":"..",r=2)}else t.length>0?t+="/"+e.slice(i+1,l):t=e.slice(i+1,l),r=l-i-1;i=l,o=0}else a===46&&o>-1?o++:o=-1}return t}function Pt(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const io={cwd:lo};function lo(){return"/"}function wn(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function oo(e){if(typeof e=="string")e=new URL(e);else if(!wn(e)){const n=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw n.code="ERR_INVALID_ARG_TYPE",n}if(e.protocol!=="file:"){const n=new TypeError("The URL must be of scheme file");throw n.code="ERR_INVALID_URL_SCHEME",n}return ao(e)}function ao(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const n=e.pathname;let t=-1;for(;++t<n.length;)if(n.codePointAt(t)===37&&n.codePointAt(t+1)===50){const r=n.codePointAt(t+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(n)}const rn=["history","path","basename","stem","extname","dirname"];class uo{constructor(n){let t;n?wn(n)?t={path:n}:typeof n=="string"||so(n)?t={value:n}:t=n:t={},this.cwd="cwd"in t?"":io.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<rn.length;){const o=rn[r];o in t&&t[o]!==void 0&&t[o]!==null&&(this[o]=o==="history"?[...t[o]]:t[o])}let i;for(i in t)rn.includes(i)||(this[i]=t[i])}get basename(){return typeof this.path=="string"?Ne.basename(this.path):void 0}set basename(n){on(n,"basename"),ln(n,"basename"),this.path=Ne.join(this.dirname||"",n)}get dirname(){return typeof this.path=="string"?Ne.dirname(this.path):void 0}set dirname(n){cr(this.basename,"dirname"),this.path=Ne.join(n||"",this.basename)}get extname(){return typeof this.path=="string"?Ne.extname(this.path):void 0}set extname(n){if(ln(n,"extname"),cr(this.dirname,"extname"),n){if(n.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(n.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Ne.join(this.dirname,this.stem+(n||""))}get path(){return this.history[this.history.length-1]}set path(n){wn(n)&&(n=oo(n)),on(n,"path"),this.path!==n&&this.history.push(n)}get stem(){return typeof this.path=="string"?Ne.basename(this.path,this.extname):void 0}set stem(n){on(n,"stem"),ln(n,"stem"),this.path=Ne.join(this.dirname||"",n+(this.extname||""))}fail(n,t,r){const i=this.message(n,t,r);throw i.fatal=!0,i}info(n,t,r){const i=this.message(n,t,r);return i.fatal=void 0,i}message(n,t,r){const i=new ke(n,t,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(n){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(n||void 0).decode(this.value)}}function ln(e,n){if(e&&e.includes(Ne.sep))throw new Error("`"+n+"` cannot be a path: did not expect `"+Ne.sep+"`")}function on(e,n){if(!e)throw new Error("`"+n+"` cannot be empty")}function cr(e,n){if(!e)throw new Error("Setting `"+n+"` requires `path` to be set too")}function so(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const co=(function(e){const r=this.constructor.prototype,i=r[e],o=function(){return i.apply(o,arguments)};return Object.setPrototypeOf(o,r),o}),fo={}.hasOwnProperty;class zn extends co{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=Gl()}copy(){const n=new zn;let t=-1;for(;++t<this.attachers.length;){const r=this.attachers[t];n.use(...r)}return n.data(nn(!0,{},this.namespace)),n}data(n,t){return typeof n=="string"?arguments.length===2?(sn("data",this.frozen),this.namespace[n]=t,this):fo.call(this.namespace,n)&&this.namespace[n]||void 0:n?(sn("data",this.frozen),this.namespace=n,this):this.namespace}freeze(){if(this.frozen)return this;const n=this;for(;++this.freezeIndex<this.attachers.length;){const[t,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=t.call(n,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(n){this.freeze();const t=Ot(n),r=this.parser||this.Parser;return an("parse",r),r(String(t),t)}process(n,t){const r=this;return this.freeze(),an("process",this.parser||this.Parser),un("process",this.compiler||this.Compiler),t?i(void 0,t):new Promise(i);function i(o,l){const a=Ot(n),u=r.parse(a);r.run(u,a,function(f,c,p){if(f||!c||!p)return s(f);const h=c,g=r.stringify(h,p);mo(g)?p.value=g:p.result=g,s(f,p)});function s(f,c){f||!c?l(f):o?o(c):t(void 0,c)}}}processSync(n){let t=!1,r;return this.freeze(),an("processSync",this.parser||this.Parser),un("processSync",this.compiler||this.Compiler),this.process(n,i),hr("processSync","process",t),r;function i(o,l){t=!0,or(o),r=l}}run(n,t,r){fr(n),this.freeze();const i=this.transformers;return!r&&typeof t=="function"&&(r=t,t=void 0),r?o(void 0,r):new Promise(o);function o(l,a){const u=Ot(t);i.run(n,u,s);function s(f,c,p){const h=c||n;f?a(f):l?l(h):r(void 0,h,p)}}}runSync(n,t){let r=!1,i;return this.run(n,t,o),hr("runSync","run",r),i;function o(l,a){or(l),i=a,r=!0}}stringify(n,t){this.freeze();const r=Ot(t),i=this.compiler||this.Compiler;return un("stringify",i),fr(n),i(n,r)}use(n,...t){const r=this.attachers,i=this.namespace;if(sn("use",this.frozen),n!=null)if(typeof n=="function")u(n,t);else if(typeof n=="object")Array.isArray(n)?a(n):l(n);else throw new TypeError("Expected usable value, not `"+n+"`");return this;function o(s){if(typeof s=="function")u(s,[]);else if(typeof s=="object")if(Array.isArray(s)){const[f,...c]=s;u(f,c)}else l(s);else throw new TypeError("Expected usable value, not `"+s+"`")}function l(s){if(!("plugins"in s)&&!("settings"in s))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");a(s.plugins),s.settings&&(i.settings=nn(!0,i.settings,s.settings))}function a(s){let f=-1;if(s!=null)if(Array.isArray(s))for(;++f<s.length;){const c=s[f];o(c)}else throw new TypeError("Expected a list of plugins, not `"+s+"`")}function u(s,f){let c=-1,p=-1;for(;++c<r.length;)if(r[c][0]===s){p=c;break}if(p===-1)r.push([s,...f]);else if(f.length>0){let[h,...g]=f;const w=r[p][1];kn(w)&&kn(h)&&(h=nn(!0,w,h)),r[p]=[s,h,...g]}}}}const ho=new zn().freeze();function an(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function un(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function sn(e,n){if(n)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function fr(e){if(!kn(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function hr(e,n,t){if(!t)throw new Error("`"+e+"` finished async. Use `"+n+"` instead")}function Ot(e){return po(e)?e:new uo(e)}function po(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function mo(e){return typeof e=="string"||go(e)}function go(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const yo={};function Dn(e,n){const t=yo,r=typeof t.includeImageAlt=="boolean"?t.includeImageAlt:!0,i=typeof t.includeHtml=="boolean"?t.includeHtml:!0;return Gr(e,r,i)}function Gr(e,n,t){if(xo(e)){if("value"in e)return e.type==="html"&&!t?"":e.value;if(n&&"alt"in e&&e.alt)return e.alt;if("children"in e)return pr(e.children,n,t)}return Array.isArray(e)?pr(e,n,t):""}function pr(e,n,t){const r=[];let i=-1;for(;++i<e.length;)r[i]=Gr(e[i],n,t);return r.join("")}function xo(e){return!!(e&&typeof e=="object")}const mr=document.createElement("i");function Ln(e){const n="&"+e+";";mr.innerHTML=n;const t=mr.textContent;return t.charCodeAt(t.length-1)===59&&e!=="semi"||t===n?!1:t}function Ie(e,n,t,r){const i=e.length;let o=0,l;if(n<0?n=-n>i?0:i+n:n=n>i?i:n,t=t>0?t:0,r.length<1e4)l=Array.from(r),l.unshift(n,t),e.splice(...l);else for(t&&e.splice(n,t);o<r.length;)l=r.slice(o,o+1e4),l.unshift(n,0),e.splice(...l),o+=1e4,n+=1e4}function _e(e,n){return e.length>0?(Ie(e,e.length,0,n),e):n}const dr={}.hasOwnProperty;function Xr(e){const n={};let t=-1;for(;++t<e.length;)ko(n,e[t]);return n}function ko(e,n){let t;for(t in n){const i=(dr.call(e,t)?e[t]:void 0)||(e[t]={}),o=n[t];let l;if(o)for(l in o){dr.call(i,l)||(i[l]=[]);const a=o[l];bo(i[l],Array.isArray(a)?a:a?[a]:[])}}}function bo(e,n){let t=-1;const r=[];for(;++t<n.length;)(n[t].add==="after"?e:r).push(n[t]);Ie(e,0,0,r)}function Zr(e,n){const t=Number.parseInt(e,n);return t<9||t===11||t>13&&t<32||t>126&&t<160||t>55295&&t<57344||t>64975&&t<65008||(t&65535)===65535||(t&65535)===65534||t>1114111?"�":String.fromCodePoint(t)}function Le(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const ye=Ye(/[A-Za-z]/),ge=Ye(/[\dA-Za-z]/),wo=Ye(/[#-'*+\--9=?A-Z^-~]/);function Ht(e){return e!==null&&(e<32||e===127)}const vn=Ye(/\d/),vo=Ye(/[\dA-Fa-f]/),So=Ye(/[!-/:-@[-`{-~]/);function z(e){return e!==null&&e<-2}function X(e){return e!==null&&(e<0||e===32)}function q(e){return e===-2||e===-1||e===32}const Qt=Ye(new RegExp("\\p{P}|\\p{S}","u")),tt=Ye(/\s/);function Ye(e){return n;function n(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function gt(e){const n=[];let t=-1,r=0,i=0;for(;++t<e.length;){const o=e.charCodeAt(t);let l="";if(o===37&&ge(e.charCodeAt(t+1))&&ge(e.charCodeAt(t+2)))i=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(l=String.fromCharCode(o));else if(o>55295&&o<57344){const a=e.charCodeAt(t+1);o<56320&&a>56319&&a<57344?(l=String.fromCharCode(o,a),i=1):l="�"}else l=String.fromCharCode(o);l&&(n.push(e.slice(r,t),encodeURIComponent(l)),r=t+i+1,l=""),i&&(t+=i,i=0)}return n.join("")+e.slice(r)}function U(e,n,t,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return l;function l(u){return q(u)?(e.enter(t),a(u)):n(u)}function a(u){return q(u)&&o++<i?(e.consume(u),a):(e.exit(t),n(u))}}const Co={tokenize:Ao};function Ao(e){const n=e.attempt(this.parser.constructs.contentInitial,r,i);let t;return n;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),U(e,n,"linePrefix")}function i(a){return e.enter("paragraph"),o(a)}function o(a){const u=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=u),t=u,l(a)}function l(a){if(a===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(a);return}return z(a)?(e.consume(a),e.exit("chunkText"),o):(e.consume(a),l)}}const Io={tokenize:Eo},gr={tokenize:_o};function Eo(e){const n=this,t=[];let r=0,i,o,l;return a;function a(C){if(r<t.length){const L=t[r];return n.containerState=L[1],e.attempt(L[0].continuation,u,s)(C)}return s(C)}function u(C){if(r++,n.containerState._closeFlow){n.containerState._closeFlow=void 0,i&&I();const L=n.events.length;let F=L,k;for(;F--;)if(n.events[F][0]==="exit"&&n.events[F][1].type==="chunkFlow"){k=n.events[F][1].end;break}x(r);let $=L;for(;$<n.events.length;)n.events[$][1].end={...k},$++;return Ie(n.events,F+1,0,n.events.slice(L)),n.events.length=$,s(C)}return a(C)}function s(C){if(r===t.length){if(!i)return p(C);if(i.currentConstruct&&i.currentConstruct.concrete)return g(C);n.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return n.containerState={},e.check(gr,f,c)(C)}function f(C){return i&&I(),x(r),p(C)}function c(C){return n.parser.lazy[n.now().line]=r!==t.length,l=n.now().offset,g(C)}function p(C){return n.containerState={},e.attempt(gr,h,g)(C)}function h(C){return r++,t.push([n.currentConstruct,n.containerState]),p(C)}function g(C){if(C===null){i&&I(),x(0),e.consume(C);return}return i=i||n.parser.flow(n.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:o}),w(C)}function w(C){if(C===null){v(e.exit("chunkFlow"),!0),x(0),e.consume(C);return}return z(C)?(e.consume(C),v(e.exit("chunkFlow")),r=0,n.interrupt=void 0,a):(e.consume(C),w)}function v(C,L){const F=n.sliceStream(C);if(L&&F.push(null),C.previous=o,o&&(o.next=C),o=C,i.defineSkip(C.start),i.write(F),n.parser.lazy[C.start.line]){let k=i.events.length;for(;k--;)if(i.events[k][1].start.offset<l&&(!i.events[k][1].end||i.events[k][1].end.offset>l))return;const $=n.events.length;let W=$,B,y;for(;W--;)if(n.events[W][0]==="exit"&&n.events[W][1].type==="chunkFlow"){if(B){y=n.events[W][1].end;break}B=!0}for(x(r),k=$;k<n.events.length;)n.events[k][1].end={...y},k++;Ie(n.events,W+1,0,n.events.slice($)),n.events.length=k}}function x(C){let L=t.length;for(;L-- >C;){const F=t[L];n.containerState=F[1],F[0].exit.call(n,e)}t.length=C}function I(){i.write([null]),o=void 0,i=void 0,n.containerState._closeFlow=void 0}}function _o(e,n,t){return U(e,e.attempt(this.parser.constructs.document,n,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function ct(e){if(e===null||X(e)||tt(e))return 1;if(Qt(e))return 2}function Yt(e,n,t){const r=[];let i=-1;for(;++i<e.length;){const o=e[i].resolveAll;o&&!r.includes(o)&&(n=o(n,t),r.push(o))}return n}const Sn={name:"attention",resolveAll:To,tokenize:Po};function To(e,n){let t=-1,r,i,o,l,a,u,s,f;for(;++t<e.length;)if(e[t][0]==="enter"&&e[t][1].type==="attentionSequence"&&e[t][1]._close){for(r=t;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&n.sliceSerialize(e[r][1]).charCodeAt(0)===n.sliceSerialize(e[t][1]).charCodeAt(0)){if((e[r][1]._close||e[t][1]._open)&&(e[t][1].end.offset-e[t][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[t][1].end.offset-e[t][1].start.offset)%3))continue;u=e[r][1].end.offset-e[r][1].start.offset>1&&e[t][1].end.offset-e[t][1].start.offset>1?2:1;const c={...e[r][1].end},p={...e[t][1].start};yr(c,-u),yr(p,u),l={type:u>1?"strongSequence":"emphasisSequence",start:c,end:{...e[r][1].end}},a={type:u>1?"strongSequence":"emphasisSequence",start:{...e[t][1].start},end:p},o={type:u>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[t][1].start}},i={type:u>1?"strong":"emphasis",start:{...l.start},end:{...a.end}},e[r][1].end={...l.start},e[t][1].start={...a.end},s=[],e[r][1].end.offset-e[r][1].start.offset&&(s=_e(s,[["enter",e[r][1],n],["exit",e[r][1],n]])),s=_e(s,[["enter",i,n],["enter",l,n],["exit",l,n],["enter",o,n]]),s=_e(s,Yt(n.parser.constructs.insideSpan.null,e.slice(r+1,t),n)),s=_e(s,[["exit",o,n],["enter",a,n],["exit",a,n],["exit",i,n]]),e[t][1].end.offset-e[t][1].start.offset?(f=2,s=_e(s,[["enter",e[t][1],n],["exit",e[t][1],n]])):f=0,Ie(e,r-1,t-r+3,s),t=r+s.length-f-2;break}}for(t=-1;++t<e.length;)e[t][1].type==="attentionSequence"&&(e[t][1].type="data");return e}function Po(e,n){const t=this.parser.constructs.attentionMarkers.null,r=this.previous,i=ct(r);let o;return l;function l(u){return o=u,e.enter("attentionSequence"),a(u)}function a(u){if(u===o)return e.consume(u),a;const s=e.exit("attentionSequence"),f=ct(u),c=!f||f===2&&i||t.includes(u),p=!i||i===2&&f||t.includes(r);return s._open=!!(o===42?c:c&&(i||!p)),s._close=!!(o===42?p:p&&(f||!c)),n(u)}}function yr(e,n){e.column+=n,e.offset+=n,e._bufferIndex+=n}const zo={name:"autolink",tokenize:Do};function Do(e,n,t){let r=0;return i;function i(h){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(h){return ye(h)?(e.consume(h),l):h===64?t(h):s(h)}function l(h){return h===43||h===45||h===46||ge(h)?(r=1,a(h)):s(h)}function a(h){return h===58?(e.consume(h),r=0,u):(h===43||h===45||h===46||ge(h))&&r++<32?(e.consume(h),a):(r=0,s(h))}function u(h){return h===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),n):h===null||h===32||h===60||Ht(h)?t(h):(e.consume(h),u)}function s(h){return h===64?(e.consume(h),f):wo(h)?(e.consume(h),s):t(h)}function f(h){return ge(h)?c(h):t(h)}function c(h){return h===46?(e.consume(h),r=0,f):h===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),n):p(h)}function p(h){if((h===45||ge(h))&&r++<63){const g=h===45?p:c;return e.consume(h),g}return t(h)}}const zt={partial:!0,tokenize:Lo};function Lo(e,n,t){return r;function r(o){return q(o)?U(e,i,"linePrefix")(o):i(o)}function i(o){return o===null||z(o)?n(o):t(o)}}const Jr={continuation:{tokenize:No},exit:Oo,name:"blockQuote",tokenize:Fo};function Fo(e,n,t){const r=this;return i;function i(l){if(l===62){const a=r.containerState;return a.open||(e.enter("blockQuote",{_container:!0}),a.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(l),e.exit("blockQuoteMarker"),o}return t(l)}function o(l){return q(l)?(e.enter("blockQuotePrefixWhitespace"),e.consume(l),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),n):(e.exit("blockQuotePrefix"),n(l))}}function No(e,n,t){const r=this;return i;function i(l){return q(l)?U(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l):o(l)}function o(l){return e.attempt(Jr,n,t)(l)}}function Oo(e){e.exit("blockQuote")}const ei={name:"characterEscape",tokenize:Ro};function Ro(e,n,t){return r;function r(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),i}function i(o){return So(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),n):t(o)}}const ti={name:"characterReference",tokenize:Mo};function Mo(e,n,t){const r=this;let i=0,o,l;return a;function a(c){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),u}function u(c){return c===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(c),e.exit("characterReferenceMarkerNumeric"),s):(e.enter("characterReferenceValue"),o=31,l=ge,f(c))}function s(c){return c===88||c===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(c),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,l=vo,f):(e.enter("characterReferenceValue"),o=7,l=vn,f(c))}function f(c){if(c===59&&i){const p=e.exit("characterReferenceValue");return l===ge&&!Ln(r.sliceSerialize(p))?t(c):(e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),e.exit("characterReference"),n)}return l(c)&&i++<o?(e.consume(c),f):t(c)}}const xr={partial:!0,tokenize:$o},kr={concrete:!0,name:"codeFenced",tokenize:Bo};function Bo(e,n,t){const r=this,i={partial:!0,tokenize:F};let o=0,l=0,a;return u;function u(k){return s(k)}function s(k){const $=r.events[r.events.length-1];return o=$&&$[1].type==="linePrefix"?$[2].sliceSerialize($[1],!0).length:0,a=k,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),f(k)}function f(k){return k===a?(l++,e.consume(k),f):l<3?t(k):(e.exit("codeFencedFenceSequence"),q(k)?U(e,c,"whitespace")(k):c(k))}function c(k){return k===null||z(k)?(e.exit("codeFencedFence"),r.interrupt?n(k):e.check(xr,w,L)(k)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),p(k))}function p(k){return k===null||z(k)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(k)):q(k)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),U(e,h,"whitespace")(k)):k===96&&k===a?t(k):(e.consume(k),p)}function h(k){return k===null||z(k)?c(k):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),g(k))}function g(k){return k===null||z(k)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(k)):k===96&&k===a?t(k):(e.consume(k),g)}function w(k){return e.attempt(i,L,v)(k)}function v(k){return e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),x}function x(k){return o>0&&q(k)?U(e,I,"linePrefix",o+1)(k):I(k)}function I(k){return k===null||z(k)?e.check(xr,w,L)(k):(e.enter("codeFlowValue"),C(k))}function C(k){return k===null||z(k)?(e.exit("codeFlowValue"),I(k)):(e.consume(k),C)}function L(k){return e.exit("codeFenced"),n(k)}function F(k,$,W){let B=0;return y;function y(D){return k.enter("lineEnding"),k.consume(D),k.exit("lineEnding"),T}function T(D){return k.enter("codeFencedFence"),q(D)?U(k,_,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(D):_(D)}function _(D){return D===a?(k.enter("codeFencedFenceSequence"),P(D)):W(D)}function P(D){return D===a?(B++,k.consume(D),P):B>=l?(k.exit("codeFencedFenceSequence"),q(D)?U(k,R,"whitespace")(D):R(D)):W(D)}function R(D){return D===null||z(D)?(k.exit("codeFencedFence"),$(D)):W(D)}}}function $o(e,n,t){const r=this;return i;function i(l){return l===null?t(l):(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o)}function o(l){return r.parser.lazy[r.now().line]?t(l):n(l)}}const cn={name:"codeIndented",tokenize:qo},jo={partial:!0,tokenize:Ho};function qo(e,n,t){const r=this;return i;function i(s){return e.enter("codeIndented"),U(e,o,"linePrefix",5)(s)}function o(s){const f=r.events[r.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?l(s):t(s)}function l(s){return s===null?u(s):z(s)?e.attempt(jo,l,u)(s):(e.enter("codeFlowValue"),a(s))}function a(s){return s===null||z(s)?(e.exit("codeFlowValue"),l(s)):(e.consume(s),a)}function u(s){return e.exit("codeIndented"),n(s)}}function Ho(e,n,t){const r=this;return i;function i(l){return r.parser.lazy[r.now().line]?t(l):z(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),i):U(e,o,"linePrefix",5)(l)}function o(l){const a=r.events[r.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?n(l):z(l)?i(l):t(l)}}const Uo={name:"codeText",previous:Wo,resolve:Vo,tokenize:Qo};function Vo(e){let n=e.length-4,t=3,r,i;if((e[t][1].type==="lineEnding"||e[t][1].type==="space")&&(e[n][1].type==="lineEnding"||e[n][1].type==="space")){for(r=t;++r<n;)if(e[r][1].type==="codeTextData"){e[t][1].type="codeTextPadding",e[n][1].type="codeTextPadding",t+=2,n-=2;break}}for(r=t-1,n++;++r<=n;)i===void 0?r!==n&&e[r][1].type!=="lineEnding"&&(i=r):(r===n||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),n-=r-i-2,r=i+2),i=void 0);return e}function Wo(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Qo(e,n,t){let r=0,i,o;return l;function l(c){return e.enter("codeText"),e.enter("codeTextSequence"),a(c)}function a(c){return c===96?(e.consume(c),r++,a):(e.exit("codeTextSequence"),u(c))}function u(c){return c===null?t(c):c===32?(e.enter("space"),e.consume(c),e.exit("space"),u):c===96?(o=e.enter("codeTextSequence"),i=0,f(c)):z(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),u):(e.enter("codeTextData"),s(c))}function s(c){return c===null||c===32||c===96||z(c)?(e.exit("codeTextData"),u(c)):(e.consume(c),s)}function f(c){return c===96?(e.consume(c),i++,f):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),n(c)):(o.type="codeTextData",s(c))}}class Yo{constructor(n){this.left=n?[...n]:[],this.right=[]}get(n){if(n<0||n>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+n+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return n<this.left.length?this.left[n]:this.right[this.right.length-n+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(n,t){const r=t??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(n,r):n>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-n+this.left.length).reverse():this.left.slice(n).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(n,t,r){const i=t||0;this.setCursor(Math.trunc(n));const o=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&St(this.left,r),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(n){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(n)}pushMany(n){this.setCursor(Number.POSITIVE_INFINITY),St(this.left,n)}unshift(n){this.setCursor(0),this.right.push(n)}unshiftMany(n){this.setCursor(0),St(this.right,n.reverse())}setCursor(n){if(!(n===this.left.length||n>this.left.length&&this.right.length===0||n<0&&this.left.length===0))if(n<this.left.length){const t=this.left.splice(n,Number.POSITIVE_INFINITY);St(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-n,Number.POSITIVE_INFINITY);St(this.left,t.reverse())}}}function St(e,n){let t=0;if(n.length<1e4)e.push(...n);else for(;t<n.length;)e.push(...n.slice(t,t+1e4)),t+=1e4}function ni(e){const n={};let t=-1,r,i,o,l,a,u,s;const f=new Yo(e);for(;++t<f.length;){for(;t in n;)t=n[t];if(r=f.get(t),t&&r[1].type==="chunkFlow"&&f.get(t-1)[1].type==="listItemPrefix"&&(u=r[1]._tokenizer.events,o=0,o<u.length&&u[o][1].type==="lineEndingBlank"&&(o+=2),o<u.length&&u[o][1].type==="content"))for(;++o<u.length&&u[o][1].type!=="content";)u[o][1].type==="chunkText"&&(u[o][1]._isInFirstContentOfListItem=!0,o++);if(r[0]==="enter")r[1].contentType&&(Object.assign(n,Ko(f,t)),t=n[t],s=!0);else if(r[1]._container){for(o=t,i=void 0;o--;)if(l=f.get(o),l[1].type==="lineEnding"||l[1].type==="lineEndingBlank")l[0]==="enter"&&(i&&(f.get(i)[1].type="lineEndingBlank"),l[1].type="lineEnding",i=o);else if(!(l[1].type==="linePrefix"||l[1].type==="listItemIndent"))break;i&&(r[1].end={...f.get(i)[1].start},a=f.slice(i,t),a.unshift(r),f.splice(i,t-i+1,a))}}return Ie(e,0,Number.POSITIVE_INFINITY,f.slice(0)),!s}function Ko(e,n){const t=e.get(n)[1],r=e.get(n)[2];let i=n-1;const o=[];let l=t._tokenizer;l||(l=r.parser[t.contentType](t.start),t._contentTypeTextTrailing&&(l._contentTypeTextTrailing=!0));const a=l.events,u=[],s={};let f,c,p=-1,h=t,g=0,w=0;const v=[w];for(;h;){for(;e.get(++i)[1]!==h;);o.push(i),h._tokenizer||(f=r.sliceStream(h),h.next||f.push(null),c&&l.defineSkip(h.start),h._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=!0),l.write(f),h._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=void 0)),c=h,h=h.next}for(h=t;++p<a.length;)a[p][0]==="exit"&&a[p-1][0]==="enter"&&a[p][1].type===a[p-1][1].type&&a[p][1].start.line!==a[p][1].end.line&&(w=p+1,v.push(w),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(l.events=[],h?(h._tokenizer=void 0,h.previous=void 0):v.pop(),p=v.length;p--;){const x=a.slice(v[p],v[p+1]),I=o.pop();u.push([I,I+x.length-1]),e.splice(I,2,x)}for(u.reverse(),p=-1;++p<u.length;)s[g+u[p][0]]=g+u[p][1],g+=u[p][1]-u[p][0]-1;return s}const Go={resolve:Zo,tokenize:Jo},Xo={partial:!0,tokenize:ea};function Zo(e){return ni(e),e}function Jo(e,n){let t;return r;function r(a){return e.enter("content"),t=e.enter("chunkContent",{contentType:"content"}),i(a)}function i(a){return a===null?o(a):z(a)?e.check(Xo,l,o)(a):(e.consume(a),i)}function o(a){return e.exit("chunkContent"),e.exit("content"),n(a)}function l(a){return e.consume(a),e.exit("chunkContent"),t.next=e.enter("chunkContent",{contentType:"content",previous:t}),t=t.next,i}}function ea(e,n,t){const r=this;return i;function i(l){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),U(e,o,"linePrefix")}function o(l){if(l===null||z(l))return t(l);const a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?n(l):e.interrupt(r.parser.constructs.flow,t,n)(l)}}function ri(e,n,t,r,i,o,l,a,u){const s=u||Number.POSITIVE_INFINITY;let f=0;return c;function c(x){return x===60?(e.enter(r),e.enter(i),e.enter(o),e.consume(x),e.exit(o),p):x===null||x===32||x===41||Ht(x)?t(x):(e.enter(r),e.enter(l),e.enter(a),e.enter("chunkString",{contentType:"string"}),w(x))}function p(x){return x===62?(e.enter(o),e.consume(x),e.exit(o),e.exit(i),e.exit(r),n):(e.enter(a),e.enter("chunkString",{contentType:"string"}),h(x))}function h(x){return x===62?(e.exit("chunkString"),e.exit(a),p(x)):x===null||x===60||z(x)?t(x):(e.consume(x),x===92?g:h)}function g(x){return x===60||x===62||x===92?(e.consume(x),h):h(x)}function w(x){return!f&&(x===null||x===41||X(x))?(e.exit("chunkString"),e.exit(a),e.exit(l),e.exit(r),n(x)):f<s&&x===40?(e.consume(x),f++,w):x===41?(e.consume(x),f--,w):x===null||x===32||x===40||Ht(x)?t(x):(e.consume(x),x===92?v:w)}function v(x){return x===40||x===41||x===92?(e.consume(x),w):w(x)}}function ii(e,n,t,r,i,o){const l=this;let a=0,u;return s;function s(h){return e.enter(r),e.enter(i),e.consume(h),e.exit(i),e.enter(o),f}function f(h){return a>999||h===null||h===91||h===93&&!u||h===94&&!a&&"_hiddenFootnoteSupport"in l.parser.constructs?t(h):h===93?(e.exit(o),e.enter(i),e.consume(h),e.exit(i),e.exit(r),n):z(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),f):(e.enter("chunkString",{contentType:"string"}),c(h))}function c(h){return h===null||h===91||h===93||z(h)||a++>999?(e.exit("chunkString"),f(h)):(e.consume(h),u||(u=!q(h)),h===92?p:c)}function p(h){return h===91||h===92||h===93?(e.consume(h),a++,c):c(h)}}function li(e,n,t,r,i,o){let l;return a;function a(p){return p===34||p===39||p===40?(e.enter(r),e.enter(i),e.consume(p),e.exit(i),l=p===40?41:p,u):t(p)}function u(p){return p===l?(e.enter(i),e.consume(p),e.exit(i),e.exit(r),n):(e.enter(o),s(p))}function s(p){return p===l?(e.exit(o),u(l)):p===null?t(p):z(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),U(e,s,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),f(p))}function f(p){return p===l||p===null||z(p)?(e.exit("chunkString"),s(p)):(e.consume(p),p===92?c:f)}function c(p){return p===l||p===92?(e.consume(p),f):f(p)}}function It(e,n){let t;return r;function r(i){return z(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t=!0,r):q(i)?U(e,r,t?"linePrefix":"lineSuffix")(i):n(i)}}const ta={name:"definition",tokenize:ra},na={partial:!0,tokenize:ia};function ra(e,n,t){const r=this;let i;return o;function o(h){return e.enter("definition"),l(h)}function l(h){return ii.call(r,e,a,t,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function a(h){return i=Le(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),u):t(h)}function u(h){return X(h)?It(e,s)(h):s(h)}function s(h){return ri(e,f,t,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function f(h){return e.attempt(na,c,c)(h)}function c(h){return q(h)?U(e,p,"whitespace")(h):p(h)}function p(h){return h===null||z(h)?(e.exit("definition"),r.parser.defined.push(i),n(h)):t(h)}}function ia(e,n,t){return r;function r(a){return X(a)?It(e,i)(a):t(a)}function i(a){return li(e,o,t,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function o(a){return q(a)?U(e,l,"whitespace")(a):l(a)}function l(a){return a===null||z(a)?n(a):t(a)}}const la={name:"hardBreakEscape",tokenize:oa};function oa(e,n,t){return r;function r(o){return e.enter("hardBreakEscape"),e.consume(o),i}function i(o){return z(o)?(e.exit("hardBreakEscape"),n(o)):t(o)}}const aa={name:"headingAtx",resolve:ua,tokenize:sa};function ua(e,n){let t=e.length-2,r=3,i,o;return e[r][1].type==="whitespace"&&(r+=2),t-2>r&&e[t][1].type==="whitespace"&&(t-=2),e[t][1].type==="atxHeadingSequence"&&(r===t-1||t-4>r&&e[t-2][1].type==="whitespace")&&(t-=r+1===t?2:4),t>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[t][1].end},o={type:"chunkText",start:e[r][1].start,end:e[t][1].end,contentType:"text"},Ie(e,r,t-r+1,[["enter",i,n],["enter",o,n],["exit",o,n],["exit",i,n]])),e}function sa(e,n,t){let r=0;return i;function i(f){return e.enter("atxHeading"),o(f)}function o(f){return e.enter("atxHeadingSequence"),l(f)}function l(f){return f===35&&r++<6?(e.consume(f),l):f===null||X(f)?(e.exit("atxHeadingSequence"),a(f)):t(f)}function a(f){return f===35?(e.enter("atxHeadingSequence"),u(f)):f===null||z(f)?(e.exit("atxHeading"),n(f)):q(f)?U(e,a,"whitespace")(f):(e.enter("atxHeadingText"),s(f))}function u(f){return f===35?(e.consume(f),u):(e.exit("atxHeadingSequence"),a(f))}function s(f){return f===null||f===35||X(f)?(e.exit("atxHeadingText"),a(f)):(e.consume(f),s)}}const ca=["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"],br=["pre","script","style","textarea"],fa={concrete:!0,name:"htmlFlow",resolveTo:ma,tokenize:da},ha={partial:!0,tokenize:ya},pa={partial:!0,tokenize:ga};function ma(e){let n=e.length;for(;n--&&!(e[n][0]==="enter"&&e[n][1].type==="htmlFlow"););return n>1&&e[n-2][1].type==="linePrefix"&&(e[n][1].start=e[n-2][1].start,e[n+1][1].start=e[n-2][1].start,e.splice(n-2,2)),e}function da(e,n,t){const r=this;let i,o,l,a,u;return s;function s(d){return f(d)}function f(d){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(d),c}function c(d){return d===33?(e.consume(d),p):d===47?(e.consume(d),o=!0,w):d===63?(e.consume(d),i=3,r.interrupt?n:m):ye(d)?(e.consume(d),l=String.fromCharCode(d),v):t(d)}function p(d){return d===45?(e.consume(d),i=2,h):d===91?(e.consume(d),i=5,a=0,g):ye(d)?(e.consume(d),i=4,r.interrupt?n:m):t(d)}function h(d){return d===45?(e.consume(d),r.interrupt?n:m):t(d)}function g(d){const ae="CDATA[";return d===ae.charCodeAt(a++)?(e.consume(d),a===ae.length?r.interrupt?n:_:g):t(d)}function w(d){return ye(d)?(e.consume(d),l=String.fromCharCode(d),v):t(d)}function v(d){if(d===null||d===47||d===62||X(d)){const ae=d===47,me=l.toLowerCase();return!ae&&!o&&br.includes(me)?(i=1,r.interrupt?n(d):_(d)):ca.includes(l.toLowerCase())?(i=6,ae?(e.consume(d),x):r.interrupt?n(d):_(d)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?t(d):o?I(d):C(d))}return d===45||ge(d)?(e.consume(d),l+=String.fromCharCode(d),v):t(d)}function x(d){return d===62?(e.consume(d),r.interrupt?n:_):t(d)}function I(d){return q(d)?(e.consume(d),I):y(d)}function C(d){return d===47?(e.consume(d),y):d===58||d===95||ye(d)?(e.consume(d),L):q(d)?(e.consume(d),C):y(d)}function L(d){return d===45||d===46||d===58||d===95||ge(d)?(e.consume(d),L):F(d)}function F(d){return d===61?(e.consume(d),k):q(d)?(e.consume(d),F):C(d)}function k(d){return d===null||d===60||d===61||d===62||d===96?t(d):d===34||d===39?(e.consume(d),u=d,$):q(d)?(e.consume(d),k):W(d)}function $(d){return d===u?(e.consume(d),u=null,B):d===null||z(d)?t(d):(e.consume(d),$)}function W(d){return d===null||d===34||d===39||d===47||d===60||d===61||d===62||d===96||X(d)?F(d):(e.consume(d),W)}function B(d){return d===47||d===62||q(d)?C(d):t(d)}function y(d){return d===62?(e.consume(d),T):t(d)}function T(d){return d===null||z(d)?_(d):q(d)?(e.consume(d),T):t(d)}function _(d){return d===45&&i===2?(e.consume(d),re):d===60&&i===1?(e.consume(d),Q):d===62&&i===4?(e.consume(d),Z):d===63&&i===3?(e.consume(d),m):d===93&&i===5?(e.consume(d),ee):z(d)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(ha,fe,P)(d)):d===null||z(d)?(e.exit("htmlFlowData"),P(d)):(e.consume(d),_)}function P(d){return e.check(pa,R,fe)(d)}function R(d){return e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),D}function D(d){return d===null||z(d)?P(d):(e.enter("htmlFlowData"),_(d))}function re(d){return d===45?(e.consume(d),m):_(d)}function Q(d){return d===47?(e.consume(d),l="",ie):_(d)}function ie(d){if(d===62){const ae=l.toLowerCase();return br.includes(ae)?(e.consume(d),Z):_(d)}return ye(d)&&l.length<8?(e.consume(d),l+=String.fromCharCode(d),ie):_(d)}function ee(d){return d===93?(e.consume(d),m):_(d)}function m(d){return d===62?(e.consume(d),Z):d===45&&i===2?(e.consume(d),m):_(d)}function Z(d){return d===null||z(d)?(e.exit("htmlFlowData"),fe(d)):(e.consume(d),Z)}function fe(d){return e.exit("htmlFlow"),n(d)}}function ga(e,n,t){const r=this;return i;function i(l){return z(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o):t(l)}function o(l){return r.parser.lazy[r.now().line]?t(l):n(l)}}function ya(e,n,t){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(zt,n,t)}}const xa={name:"htmlText",tokenize:ka};function ka(e,n,t){const r=this;let i,o,l;return a;function a(m){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(m),u}function u(m){return m===33?(e.consume(m),s):m===47?(e.consume(m),F):m===63?(e.consume(m),C):ye(m)?(e.consume(m),W):t(m)}function s(m){return m===45?(e.consume(m),f):m===91?(e.consume(m),o=0,g):ye(m)?(e.consume(m),I):t(m)}function f(m){return m===45?(e.consume(m),h):t(m)}function c(m){return m===null?t(m):m===45?(e.consume(m),p):z(m)?(l=c,Q(m)):(e.consume(m),c)}function p(m){return m===45?(e.consume(m),h):c(m)}function h(m){return m===62?re(m):m===45?p(m):c(m)}function g(m){const Z="CDATA[";return m===Z.charCodeAt(o++)?(e.consume(m),o===Z.length?w:g):t(m)}function w(m){return m===null?t(m):m===93?(e.consume(m),v):z(m)?(l=w,Q(m)):(e.consume(m),w)}function v(m){return m===93?(e.consume(m),x):w(m)}function x(m){return m===62?re(m):m===93?(e.consume(m),x):w(m)}function I(m){return m===null||m===62?re(m):z(m)?(l=I,Q(m)):(e.consume(m),I)}function C(m){return m===null?t(m):m===63?(e.consume(m),L):z(m)?(l=C,Q(m)):(e.consume(m),C)}function L(m){return m===62?re(m):C(m)}function F(m){return ye(m)?(e.consume(m),k):t(m)}function k(m){return m===45||ge(m)?(e.consume(m),k):$(m)}function $(m){return z(m)?(l=$,Q(m)):q(m)?(e.consume(m),$):re(m)}function W(m){return m===45||ge(m)?(e.consume(m),W):m===47||m===62||X(m)?B(m):t(m)}function B(m){return m===47?(e.consume(m),re):m===58||m===95||ye(m)?(e.consume(m),y):z(m)?(l=B,Q(m)):q(m)?(e.consume(m),B):re(m)}function y(m){return m===45||m===46||m===58||m===95||ge(m)?(e.consume(m),y):T(m)}function T(m){return m===61?(e.consume(m),_):z(m)?(l=T,Q(m)):q(m)?(e.consume(m),T):B(m)}function _(m){return m===null||m===60||m===61||m===62||m===96?t(m):m===34||m===39?(e.consume(m),i=m,P):z(m)?(l=_,Q(m)):q(m)?(e.consume(m),_):(e.consume(m),R)}function P(m){return m===i?(e.consume(m),i=void 0,D):m===null?t(m):z(m)?(l=P,Q(m)):(e.consume(m),P)}function R(m){return m===null||m===34||m===39||m===60||m===61||m===96?t(m):m===47||m===62||X(m)?B(m):(e.consume(m),R)}function D(m){return m===47||m===62||X(m)?B(m):t(m)}function re(m){return m===62?(e.consume(m),e.exit("htmlTextData"),e.exit("htmlText"),n):t(m)}function Q(m){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),ie}function ie(m){return q(m)?U(e,ee,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(m):ee(m)}function ee(m){return e.enter("htmlTextData"),l(m)}}const Fn={name:"labelEnd",resolveAll:Sa,resolveTo:Ca,tokenize:Aa},ba={tokenize:Ia},wa={tokenize:Ea},va={tokenize:_a};function Sa(e){let n=-1;const t=[];for(;++n<e.length;){const r=e[n][1];if(t.push(e[n]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",n+=i}}return e.length!==t.length&&Ie(e,0,e.length,t),e}function Ca(e,n){let t=e.length,r=0,i,o,l,a;for(;t--;)if(i=e[t][1],o){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[t][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(l){if(e[t][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(o=t,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(l=t);const u={type:e[o][1].type==="labelLink"?"link":"image",start:{...e[o][1].start},end:{...e[e.length-1][1].end}},s={type:"label",start:{...e[o][1].start},end:{...e[l][1].end}},f={type:"labelText",start:{...e[o+r+2][1].end},end:{...e[l-2][1].start}};return a=[["enter",u,n],["enter",s,n]],a=_e(a,e.slice(o+1,o+r+3)),a=_e(a,[["enter",f,n]]),a=_e(a,Yt(n.parser.constructs.insideSpan.null,e.slice(o+r+4,l-3),n)),a=_e(a,[["exit",f,n],e[l-2],e[l-1],["exit",s,n]]),a=_e(a,e.slice(l+1)),a=_e(a,[["exit",u,n]]),Ie(e,o,e.length,a),e}function Aa(e,n,t){const r=this;let i=r.events.length,o,l;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){o=r.events[i][1];break}return a;function a(p){return o?o._inactive?c(p):(l=r.parser.defined.includes(Le(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(p),e.exit("labelMarker"),e.exit("labelEnd"),u):t(p)}function u(p){return p===40?e.attempt(ba,f,l?f:c)(p):p===91?e.attempt(wa,f,l?s:c)(p):l?f(p):c(p)}function s(p){return e.attempt(va,f,c)(p)}function f(p){return n(p)}function c(p){return o._balanced=!0,t(p)}}function Ia(e,n,t){return r;function r(c){return e.enter("resource"),e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),i}function i(c){return X(c)?It(e,o)(c):o(c)}function o(c){return c===41?f(c):ri(e,l,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(c)}function l(c){return X(c)?It(e,u)(c):f(c)}function a(c){return t(c)}function u(c){return c===34||c===39||c===40?li(e,s,t,"resourceTitle","resourceTitleMarker","resourceTitleString")(c):f(c)}function s(c){return X(c)?It(e,f)(c):f(c)}function f(c){return c===41?(e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),e.exit("resource"),n):t(c)}}function Ea(e,n,t){const r=this;return i;function i(a){return ii.call(r,e,o,l,"reference","referenceMarker","referenceString")(a)}function o(a){return r.parser.defined.includes(Le(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?n(a):t(a)}function l(a){return t(a)}}function _a(e,n,t){return r;function r(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),i}function i(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),n):t(o)}}const Ta={name:"labelStartImage",resolveAll:Fn.resolveAll,tokenize:Pa};function Pa(e,n,t){const r=this;return i;function i(a){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(a),e.exit("labelImageMarker"),o}function o(a){return a===91?(e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelImage"),l):t(a)}function l(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?t(a):n(a)}}const za={name:"labelStartLink",resolveAll:Fn.resolveAll,tokenize:Da};function Da(e,n,t){const r=this;return i;function i(l){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelLink"),o}function o(l){return l===94&&"_hiddenFootnoteSupport"in r.parser.constructs?t(l):n(l)}}const fn={name:"lineEnding",tokenize:La};function La(e,n){return t;function t(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),U(e,n,"linePrefix")}}const qt={name:"thematicBreak",tokenize:Fa};function Fa(e,n,t){let r=0,i;return o;function o(s){return e.enter("thematicBreak"),l(s)}function l(s){return i=s,a(s)}function a(s){return s===i?(e.enter("thematicBreakSequence"),u(s)):r>=3&&(s===null||z(s))?(e.exit("thematicBreak"),n(s)):t(s)}function u(s){return s===i?(e.consume(s),r++,u):(e.exit("thematicBreakSequence"),q(s)?U(e,a,"whitespace")(s):a(s))}}const xe={continuation:{tokenize:Ma},exit:$a,name:"list",tokenize:Ra},Na={partial:!0,tokenize:ja},Oa={partial:!0,tokenize:Ba};function Ra(e,n,t){const r=this,i=r.events[r.events.length-1];let o=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,l=0;return a;function a(h){const g=r.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(g==="listUnordered"?!r.containerState.marker||h===r.containerState.marker:vn(h)){if(r.containerState.type||(r.containerState.type=g,e.enter(g,{_container:!0})),g==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(qt,t,s)(h):s(h);if(!r.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),u(h)}return t(h)}function u(h){return vn(h)&&++l<10?(e.consume(h),u):(!r.interrupt||l<2)&&(r.containerState.marker?h===r.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),s(h)):t(h)}function s(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||h,e.check(zt,r.interrupt?t:f,e.attempt(Na,p,c))}function f(h){return r.containerState.initialBlankLine=!0,o++,p(h)}function c(h){return q(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),p):t(h)}function p(h){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,n(h)}}function Ma(e,n,t){const r=this;return r.containerState._closeFlow=void 0,e.check(zt,i,o);function i(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,U(e,n,"listItemIndent",r.containerState.size+1)(a)}function o(a){return r.containerState.furtherBlankLines||!q(a)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,l(a)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Oa,n,l)(a))}function l(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,U(e,e.attempt(xe,n,t),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function Ba(e,n,t){const r=this;return U(e,i,"listItemIndent",r.containerState.size+1);function i(o){const l=r.events[r.events.length-1];return l&&l[1].type==="listItemIndent"&&l[2].sliceSerialize(l[1],!0).length===r.containerState.size?n(o):t(o)}}function $a(e){e.exit(this.containerState.type)}function ja(e,n,t){const r=this;return U(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(o){const l=r.events[r.events.length-1];return!q(o)&&l&&l[1].type==="listItemPrefixWhitespace"?n(o):t(o)}}const wr={name:"setextUnderline",resolveTo:qa,tokenize:Ha};function qa(e,n){let t=e.length,r,i,o;for(;t--;)if(e[t][0]==="enter"){if(e[t][1].type==="content"){r=t;break}e[t][1].type==="paragraph"&&(i=t)}else e[t][1].type==="content"&&e.splice(t,1),!o&&e[t][1].type==="definition"&&(o=t);const l={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",o?(e.splice(i,0,["enter",l,n]),e.splice(o+1,0,["exit",e[r][1],n]),e[r][1].end={...e[o][1].end}):e[r][1]=l,e.push(["exit",l,n]),e}function Ha(e,n,t){const r=this;let i;return o;function o(s){let f=r.events.length,c;for(;f--;)if(r.events[f][1].type!=="lineEnding"&&r.events[f][1].type!=="linePrefix"&&r.events[f][1].type!=="content"){c=r.events[f][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||c)?(e.enter("setextHeadingLine"),i=s,l(s)):t(s)}function l(s){return e.enter("setextHeadingLineSequence"),a(s)}function a(s){return s===i?(e.consume(s),a):(e.exit("setextHeadingLineSequence"),q(s)?U(e,u,"lineSuffix")(s):u(s))}function u(s){return s===null||z(s)?(e.exit("setextHeadingLine"),n(s)):t(s)}}const Ua={tokenize:Va};function Va(e){const n=this,t=e.attempt(zt,r,e.attempt(this.parser.constructs.flowInitial,i,U(e,e.attempt(this.parser.constructs.flow,i,e.attempt(Go,i)),"linePrefix")));return t;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),n.currentConstruct=void 0,t}function i(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n.currentConstruct=void 0,t}}const Wa={resolveAll:ai()},Qa=oi("string"),Ya=oi("text");function oi(e){return{resolveAll:ai(e==="text"?Ka:void 0),tokenize:n};function n(t){const r=this,i=this.parser.constructs[e],o=t.attempt(i,l,a);return l;function l(f){return s(f)?o(f):a(f)}function a(f){if(f===null){t.consume(f);return}return t.enter("data"),t.consume(f),u}function u(f){return s(f)?(t.exit("data"),o(f)):(t.consume(f),u)}function s(f){if(f===null)return!0;const c=i[f];let p=-1;if(c)for(;++p<c.length;){const h=c[p];if(!h.previous||h.previous.call(r,r.previous))return!0}return!1}}}function ai(e){return n;function n(t,r){let i=-1,o;for(;++i<=t.length;)o===void 0?t[i]&&t[i][1].type==="data"&&(o=i,i++):(!t[i]||t[i][1].type!=="data")&&(i!==o+2&&(t[o][1].end=t[i-1][1].end,t.splice(o+2,i-o-2),i=o+2),o=void 0);return e?e(t,r):t}}function Ka(e,n){let t=0;for(;++t<=e.length;)if((t===e.length||e[t][1].type==="lineEnding")&&e[t-1][1].type==="data"){const r=e[t-1][1],i=n.sliceStream(r);let o=i.length,l=-1,a=0,u;for(;o--;){const s=i[o];if(typeof s=="string"){for(l=s.length;s.charCodeAt(l-1)===32;)a++,l--;if(l)break;l=-1}else if(s===-2)u=!0,a++;else if(s!==-1){o++;break}}if(n._contentTypeTextTrailing&&t===e.length&&(a=0),a){const s={type:t===e.length||u||a<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?l:r.start._bufferIndex+l,_index:r.start._index+o,line:r.end.line,column:r.end.column-a,offset:r.end.offset-a},end:{...r.end}};r.end={...s.start},r.start.offset===r.end.offset?Object.assign(r,s):(e.splice(t,0,["enter",s,n],["exit",s,n]),t+=2)}t++}return e}const Ga={42:xe,43:xe,45:xe,48:xe,49:xe,50:xe,51:xe,52:xe,53:xe,54:xe,55:xe,56:xe,57:xe,62:Jr},Xa={91:ta},Za={[-2]:cn,[-1]:cn,32:cn},Ja={35:aa,42:qt,45:[wr,qt],60:fa,61:wr,95:qt,96:kr,126:kr},eu={38:ti,92:ei},tu={[-5]:fn,[-4]:fn,[-3]:fn,33:Ta,38:ti,42:Sn,60:[zo,xa],91:za,92:[la,ei],93:Fn,95:Sn,96:Uo},nu={null:[Sn,Wa]},ru={null:[42,95]},iu={null:[]},lu=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:ru,contentInitial:Xa,disable:iu,document:Ga,flow:Ja,flowInitial:Za,insideSpan:nu,string:eu,text:tu},Symbol.toStringTag,{value:"Module"}));function ou(e,n,t){let r={_bufferIndex:-1,_index:0,line:t&&t.line||1,column:t&&t.column||1,offset:t&&t.offset||0};const i={},o=[];let l=[],a=[];const u={attempt:$(F),check:$(k),consume:I,enter:C,exit:L,interrupt:$(k,{interrupt:!0})},s={code:null,containerState:{},defineSkip:w,events:[],now:g,parser:e,previous:null,sliceSerialize:p,sliceStream:h,write:c};let f=n.tokenize.call(s,u);return n.resolveAll&&o.push(n),s;function c(T){return l=_e(l,T),v(),l[l.length-1]!==null?[]:(W(n,0),s.events=Yt(o,s.events,s),s.events)}function p(T,_){return uu(h(T),_)}function h(T){return au(l,T)}function g(){const{_bufferIndex:T,_index:_,line:P,column:R,offset:D}=r;return{_bufferIndex:T,_index:_,line:P,column:R,offset:D}}function w(T){i[T.line]=T.column,y()}function v(){let T;for(;r._index<l.length;){const _=l[r._index];if(typeof _=="string")for(T=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===T&&r._bufferIndex<_.length;)x(_.charCodeAt(r._bufferIndex));else x(_)}}function x(T){f=f(T)}function I(T){z(T)?(r.line++,r.column=1,r.offset+=T===-3?2:1,y()):T!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===l[r._index].length&&(r._bufferIndex=-1,r._index++)),s.previous=T}function C(T,_){const P=_||{};return P.type=T,P.start=g(),s.events.push(["enter",P,s]),a.push(P),P}function L(T){const _=a.pop();return _.end=g(),s.events.push(["exit",_,s]),_}function F(T,_){W(T,_.from)}function k(T,_){_.restore()}function $(T,_){return P;function P(R,D,re){let Q,ie,ee,m;return Array.isArray(R)?fe(R):"tokenize"in R?fe([R]):Z(R);function Z(Y){return we;function we(le){const se=le!==null&&Y[le],Ee=le!==null&&Y.null,je=[...Array.isArray(se)?se:se?[se]:[],...Array.isArray(Ee)?Ee:Ee?[Ee]:[]];return fe(je)(le)}}function fe(Y){return Q=Y,ie=0,Y.length===0?re:d(Y[ie])}function d(Y){return we;function we(le){return m=B(),ee=Y,Y.partial||(s.currentConstruct=Y),Y.name&&s.parser.constructs.disable.null.includes(Y.name)?me():Y.tokenize.call(_?Object.assign(Object.create(s),_):s,u,ae,me)(le)}}function ae(Y){return T(ee,m),D}function me(Y){return m.restore(),++ie<Q.length?d(Q[ie]):re}}}function W(T,_){T.resolveAll&&!o.includes(T)&&o.push(T),T.resolve&&Ie(s.events,_,s.events.length-_,T.resolve(s.events.slice(_),s)),T.resolveTo&&(s.events=T.resolveTo(s.events,s))}function B(){const T=g(),_=s.previous,P=s.currentConstruct,R=s.events.length,D=Array.from(a);return{from:R,restore:re};function re(){r=T,s.previous=_,s.currentConstruct=P,s.events.length=R,a=D,y()}}function y(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function au(e,n){const t=n.start._index,r=n.start._bufferIndex,i=n.end._index,o=n.end._bufferIndex;let l;if(t===i)l=[e[t].slice(r,o)];else{if(l=e.slice(t,i),r>-1){const a=l[0];typeof a=="string"?l[0]=a.slice(r):l.shift()}o>0&&l.push(e[i].slice(0,o))}return l}function uu(e,n){let t=-1;const r=[];let i;for(;++t<e.length;){const o=e[t];let l;if(typeof o=="string")l=o;else switch(o){case-5:{l="\r";break}case-4:{l=`
|
|
1
|
+
import{g as Zt,c as ft,a as ne,d as sl,p as cl,f as pe,b as qe,s as Jt}from"../chunks/uKr-h81c.js";import{j as Ft,q as Vn,av as vt,t as Ve,k as Wn,U as fl,bs as hl,w as Qn,aC as pl,aE as ml,aL as dl,aF as gl,au as yl,a_ as xl,bt as kl,p as rt,f as Qe,n as Oe,a as it,h as He,b as Yn,g as A,y as bl,z as wl,e as vl,d as he,c as j,s as oe,r as M,$ as Sl,x as Ze,u as Ce,i as Cl}from"../chunks/ojCXFEeF.js";import{s as ht,r as pt,i as Fe}from"../chunks/BwcXpOFi.js";import{I as mt,d as dt,x as Al,h as Il,e as El,T as en,o as Kn,f as Nt,c as _l,r as Tl,n as Pl}from"../chunks/EkzMtUSg.js";import{i as zl}from"../chunks/CcMZXW2Q.js";import{C as Gn}from"../chunks/BLM40R4o.js";import{a as Dl,g as Ll}from"../chunks/Dj7uu75K.js";import{A as Xn,I as Zn}from"../chunks/D7xX-nUV.js";import{O as Jn}from"../chunks/pP3fUEwB.js";import{L as Fl,S as Nl}from"../chunks/YV2aRQwm.js";import{T as er}from"../chunks/CB6mukju.js";import{M as tr,T as nr}from"../chunks/D00NIYmr.js";import{T as rr,S as Ol}from"../chunks/B6s-1I7G.js";function ir(e,n,t=!1,r=!1,i=!1,o=!1){var l=e,a="";if(t){var u=e;Ft&&(l=Vn(vt(u)))}Ve(()=>{var s=fl;if(a===(a=n()??"")){Ft&&Wn();return}if(t&&!Ft){s.nodes=null,u.innerHTML=a,a!==""&&Zt(vt(u),u.lastChild);return}if(s.nodes!==null&&(hl(s.nodes.start,s.nodes.end),s.nodes=null),a!==""){if(Ft){Qn.data;for(var f=Wn(),c=f;f!==null&&(f.nodeType!==pl||f.data!=="");)c=f,f=ml(f);if(f===null)throw dl(),gl;Zt(Qn,c),l=Vn(f);return}var p=r?xl:i?kl:void 0,h=yl(r?"svg":i?"math":"template",p);h.innerHTML=a;var g=r||i?h:h.content;if(Zt(vt(g),g.lastChild),r||i)for(;vt(g);)l.before(vt(g));else l.before(g)}})}var Rl=new Set(["$$slots","$$events","$$legacy"]);function Ml(e,n){rt(n,!0);let t=pt(n,Rl);const r=[["path",{d:"m6 9 6 6 6-6"}]];mt(e,ht({name:"chevron-down"},()=>t,{get iconNode(){return r},children:(i,o)=>{var l=ft(),a=Qe(l);dt(a,()=>n.children??Oe),ne(i,l)},$$slots:{default:!0}})),it()}var Bl=new Set(["$$slots","$$events","$$legacy"]);function $l(e,n){rt(n,!0);let t=pt(n,Bl);const r=[["path",{d:"m18 15-6-6-6 6"}]];mt(e,ht({name:"chevron-up"},()=>t,{get iconNode(){return r},children:(i,o)=>{var l=ft(),a=Qe(l);dt(a,()=>n.children??Oe),ne(i,l)},$$slots:{default:!0}})),it()}var jl=new Set(["$$slots","$$events","$$legacy"]);function ql(e,n){rt(n,!0);let t=pt(n,jl);const r=[["circle",{cx:"12",cy:"12",r:"10"}],["path",{d:"M8 12h8"}],["path",{d:"M12 8v8"}]];mt(e,ht({name:"circle-plus"},()=>t,{get iconNode(){return r},children:(i,o)=>{var l=ft(),a=Qe(l);dt(a,()=>n.children??Oe),ne(i,l)},$$slots:{default:!0}})),it()}var Hl=new Set(["$$slots","$$events","$$legacy"]);function lr(e,n){rt(n,!0);let t=pt(n,Hl);const r=[["line",{x1:"2",x2:"22",y1:"2",y2:"22"}],["path",{d:"M10.41 10.41a2 2 0 1 1-2.83-2.83"}],["line",{x1:"13.5",x2:"6",y1:"13.5",y2:"21"}],["line",{x1:"18",x2:"21",y1:"12",y2:"15"}],["path",{d:"M3.59 3.59A1.99 1.99 0 0 0 3 5v14a2 2 0 0 0 2 2h14c.55 0 1.052-.22 1.41-.59"}],["path",{d:"M21 15V5a2 2 0 0 0-2-2H9"}]];mt(e,ht({name:"image-off"},()=>t,{get iconNode(){return r},children:(i,o)=>{var l=ft(),a=Qe(l);dt(a,()=>n.children??Oe),ne(i,l)},$$slots:{default:!0}})),it()}var Ul=new Set(["$$slots","$$events","$$legacy"]);function Vl(e,n){rt(n,!0);let t=pt(n,Ul);const r=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2"}],["circle",{cx:"9",cy:"9",r:"2"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21"}]];mt(e,ht({name:"image"},()=>t,{get iconNode(){return r},children:(i,o)=>{var l=ft(),a=Qe(l);dt(a,()=>n.children??Oe),ne(i,l)},$$slots:{default:!0}})),it()}var Wl=new Set(["$$slots","$$events","$$legacy"]);function Ql(e,n){rt(n,!0);let t=pt(n,Wl);const r=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z"}],["path",{d:"m15 5 4 4"}]];mt(e,ht({name:"pencil"},()=>t,{get iconNode(){return r},children:(i,o)=>{var l=ft(),a=Qe(l);dt(a,()=>n.children??Oe),ne(i,l)},$$slots:{default:!0}})),it()}function or(e){if(e)throw e}var tn,ar;function Yl(){if(ar)return tn;ar=1;var e=Object.prototype.hasOwnProperty,n=Object.prototype.toString,t=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(s){return typeof Array.isArray=="function"?Array.isArray(s):n.call(s)==="[object Array]"},o=function(s){if(!s||n.call(s)!=="[object Object]")return!1;var f=e.call(s,"constructor"),c=s.constructor&&s.constructor.prototype&&e.call(s.constructor.prototype,"isPrototypeOf");if(s.constructor&&!f&&!c)return!1;var p;for(p in s);return typeof p>"u"||e.call(s,p)},l=function(s,f){t&&f.name==="__proto__"?t(s,f.name,{enumerable:!0,configurable:!0,value:f.newValue,writable:!0}):s[f.name]=f.newValue},a=function(s,f){if(f==="__proto__")if(e.call(s,f)){if(r)return r(s,f).value}else return;return s[f]};return tn=function u(){var s,f,c,p,h,g,w=arguments[0],v=1,x=arguments.length,I=!1;for(typeof w=="boolean"&&(I=w,w=arguments[1]||{},v=2),(w==null||typeof w!="object"&&typeof w!="function")&&(w={});v<x;++v)if(s=arguments[v],s!=null)for(f in s)c=a(w,f),p=a(s,f),w!==p&&(I&&p&&(o(p)||(h=i(p)))?(h?(h=!1,g=c&&i(c)?c:[]):g=c&&o(c)?c:{},l(w,{name:f,newValue:u(I,g,p)})):typeof p<"u"&&l(w,{name:f,newValue:p}));return w},tn}var Kl=Yl();const nn=Al(Kl);function kn(e){if(typeof e!="object"||e===null)return!1;const n=Object.getPrototypeOf(e);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Gl(){const e=[],n={run:t,use:r};return n;function t(...i){let o=-1;const l=i.pop();if(typeof l!="function")throw new TypeError("Expected function as last argument, not "+l);a(null,...i);function a(u,...s){const f=e[++o];let c=-1;if(u){l(u);return}for(;++c<i.length;)(s[c]===null||s[c]===void 0)&&(s[c]=i[c]);i=s,f?Xl(f,a)(...s):l(null,...s)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),n}}function Xl(e,n){let t;return r;function r(...l){const a=e.length>l.length;let u;a&&l.push(i);try{u=e.apply(this,l)}catch(s){const f=s;if(a&&t)throw f;return i(f)}a||(u&&u.then&&typeof u.then=="function"?u.then(o,i):u instanceof Error?i(u):o(u))}function i(l,...a){t||(t=!0,n(l,...a))}function o(l){i(null,l)}}function At(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?ur(e.position):"start"in e||"end"in e?ur(e):"line"in e||"column"in e?bn(e):""}function bn(e){return sr(e&&e.line)+":"+sr(e&&e.column)}function ur(e){return bn(e&&e.start)+"-"+bn(e&&e.end)}function sr(e){return e&&typeof e=="number"?e:1}class ke extends Error{constructor(n,t,r){super(),typeof t=="string"&&(r=t,t=void 0);let i="",o={},l=!1;if(t&&("line"in t&&"column"in t?o={place:t}:"start"in t&&"end"in t?o={place:t}:"type"in t?o={ancestors:[t],place:t.position}:o={...t}),typeof n=="string"?i=n:!o.cause&&n&&(l=!0,i=n.message,o.cause=n),!o.ruleId&&!o.source&&typeof r=="string"){const u=r.indexOf(":");u===-1?o.ruleId=r:(o.source=r.slice(0,u),o.ruleId=r.slice(u+1))}if(!o.place&&o.ancestors&&o.ancestors){const u=o.ancestors[o.ancestors.length-1];u&&(o.place=u.position)}const a=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=a?a.line:void 0,this.name=At(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=l&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}ke.prototype.file="";ke.prototype.name="";ke.prototype.reason="";ke.prototype.message="";ke.prototype.stack="";ke.prototype.column=void 0;ke.prototype.line=void 0;ke.prototype.ancestors=void 0;ke.prototype.cause=void 0;ke.prototype.fatal=void 0;ke.prototype.place=void 0;ke.prototype.ruleId=void 0;ke.prototype.source=void 0;const Ne={basename:Zl,dirname:Jl,extname:eo,join:to,sep:"/"};function Zl(e,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');Pt(e);let t=0,r=-1,i=e.length,o;if(n===void 0||n.length===0||n.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(o){t=i+1;break}}else r<0&&(o=!0,r=i+1);return r<0?"":e.slice(t,r)}if(n===e)return"";let l=-1,a=n.length-1;for(;i--;)if(e.codePointAt(i)===47){if(o){t=i+1;break}}else l<0&&(o=!0,l=i+1),a>-1&&(e.codePointAt(i)===n.codePointAt(a--)?a<0&&(r=i):(a=-1,r=l));return t===r?r=l:r<0&&(r=e.length),e.slice(t,r)}function Jl(e){if(Pt(e),e.length===0)return".";let n=-1,t=e.length,r;for(;--t;)if(e.codePointAt(t)===47){if(r){n=t;break}}else r||(r=!0);return n<0?e.codePointAt(0)===47?"/":".":n===1&&e.codePointAt(0)===47?"//":e.slice(0,n)}function eo(e){Pt(e);let n=e.length,t=-1,r=0,i=-1,o=0,l;for(;n--;){const a=e.codePointAt(n);if(a===47){if(l){r=n+1;break}continue}t<0&&(l=!0,t=n+1),a===46?i<0?i=n:o!==1&&(o=1):i>-1&&(o=-1)}return i<0||t<0||o===0||o===1&&i===t-1&&i===r+1?"":e.slice(i,t)}function to(...e){let n=-1,t;for(;++n<e.length;)Pt(e[n]),e[n]&&(t=t===void 0?e[n]:t+"/"+e[n]);return t===void 0?".":no(t)}function no(e){Pt(e);const n=e.codePointAt(0)===47;let t=ro(e,!n);return t.length===0&&!n&&(t="."),t.length>0&&e.codePointAt(e.length-1)===47&&(t+="/"),n?"/"+t:t}function ro(e,n){let t="",r=0,i=-1,o=0,l=-1,a,u;for(;++l<=e.length;){if(l<e.length)a=e.codePointAt(l);else{if(a===47)break;a=47}if(a===47){if(!(i===l-1||o===1))if(i!==l-1&&o===2){if(t.length<2||r!==2||t.codePointAt(t.length-1)!==46||t.codePointAt(t.length-2)!==46){if(t.length>2){if(u=t.lastIndexOf("/"),u!==t.length-1){u<0?(t="",r=0):(t=t.slice(0,u),r=t.length-1-t.lastIndexOf("/")),i=l,o=0;continue}}else if(t.length>0){t="",r=0,i=l,o=0;continue}}n&&(t=t.length>0?t+"/..":"..",r=2)}else t.length>0?t+="/"+e.slice(i+1,l):t=e.slice(i+1,l),r=l-i-1;i=l,o=0}else a===46&&o>-1?o++:o=-1}return t}function Pt(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const io={cwd:lo};function lo(){return"/"}function wn(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function oo(e){if(typeof e=="string")e=new URL(e);else if(!wn(e)){const n=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw n.code="ERR_INVALID_ARG_TYPE",n}if(e.protocol!=="file:"){const n=new TypeError("The URL must be of scheme file");throw n.code="ERR_INVALID_URL_SCHEME",n}return ao(e)}function ao(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const n=e.pathname;let t=-1;for(;++t<n.length;)if(n.codePointAt(t)===37&&n.codePointAt(t+1)===50){const r=n.codePointAt(t+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(n)}const rn=["history","path","basename","stem","extname","dirname"];class uo{constructor(n){let t;n?wn(n)?t={path:n}:typeof n=="string"||so(n)?t={value:n}:t=n:t={},this.cwd="cwd"in t?"":io.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<rn.length;){const o=rn[r];o in t&&t[o]!==void 0&&t[o]!==null&&(this[o]=o==="history"?[...t[o]]:t[o])}let i;for(i in t)rn.includes(i)||(this[i]=t[i])}get basename(){return typeof this.path=="string"?Ne.basename(this.path):void 0}set basename(n){on(n,"basename"),ln(n,"basename"),this.path=Ne.join(this.dirname||"",n)}get dirname(){return typeof this.path=="string"?Ne.dirname(this.path):void 0}set dirname(n){cr(this.basename,"dirname"),this.path=Ne.join(n||"",this.basename)}get extname(){return typeof this.path=="string"?Ne.extname(this.path):void 0}set extname(n){if(ln(n,"extname"),cr(this.dirname,"extname"),n){if(n.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(n.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Ne.join(this.dirname,this.stem+(n||""))}get path(){return this.history[this.history.length-1]}set path(n){wn(n)&&(n=oo(n)),on(n,"path"),this.path!==n&&this.history.push(n)}get stem(){return typeof this.path=="string"?Ne.basename(this.path,this.extname):void 0}set stem(n){on(n,"stem"),ln(n,"stem"),this.path=Ne.join(this.dirname||"",n+(this.extname||""))}fail(n,t,r){const i=this.message(n,t,r);throw i.fatal=!0,i}info(n,t,r){const i=this.message(n,t,r);return i.fatal=void 0,i}message(n,t,r){const i=new ke(n,t,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(n){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(n||void 0).decode(this.value)}}function ln(e,n){if(e&&e.includes(Ne.sep))throw new Error("`"+n+"` cannot be a path: did not expect `"+Ne.sep+"`")}function on(e,n){if(!e)throw new Error("`"+n+"` cannot be empty")}function cr(e,n){if(!e)throw new Error("Setting `"+n+"` requires `path` to be set too")}function so(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const co=(function(e){const r=this.constructor.prototype,i=r[e],o=function(){return i.apply(o,arguments)};return Object.setPrototypeOf(o,r),o}),fo={}.hasOwnProperty;class zn extends co{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=Gl()}copy(){const n=new zn;let t=-1;for(;++t<this.attachers.length;){const r=this.attachers[t];n.use(...r)}return n.data(nn(!0,{},this.namespace)),n}data(n,t){return typeof n=="string"?arguments.length===2?(sn("data",this.frozen),this.namespace[n]=t,this):fo.call(this.namespace,n)&&this.namespace[n]||void 0:n?(sn("data",this.frozen),this.namespace=n,this):this.namespace}freeze(){if(this.frozen)return this;const n=this;for(;++this.freezeIndex<this.attachers.length;){const[t,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=t.call(n,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(n){this.freeze();const t=Ot(n),r=this.parser||this.Parser;return an("parse",r),r(String(t),t)}process(n,t){const r=this;return this.freeze(),an("process",this.parser||this.Parser),un("process",this.compiler||this.Compiler),t?i(void 0,t):new Promise(i);function i(o,l){const a=Ot(n),u=r.parse(a);r.run(u,a,function(f,c,p){if(f||!c||!p)return s(f);const h=c,g=r.stringify(h,p);mo(g)?p.value=g:p.result=g,s(f,p)});function s(f,c){f||!c?l(f):o?o(c):t(void 0,c)}}}processSync(n){let t=!1,r;return this.freeze(),an("processSync",this.parser||this.Parser),un("processSync",this.compiler||this.Compiler),this.process(n,i),hr("processSync","process",t),r;function i(o,l){t=!0,or(o),r=l}}run(n,t,r){fr(n),this.freeze();const i=this.transformers;return!r&&typeof t=="function"&&(r=t,t=void 0),r?o(void 0,r):new Promise(o);function o(l,a){const u=Ot(t);i.run(n,u,s);function s(f,c,p){const h=c||n;f?a(f):l?l(h):r(void 0,h,p)}}}runSync(n,t){let r=!1,i;return this.run(n,t,o),hr("runSync","run",r),i;function o(l,a){or(l),i=a,r=!0}}stringify(n,t){this.freeze();const r=Ot(t),i=this.compiler||this.Compiler;return un("stringify",i),fr(n),i(n,r)}use(n,...t){const r=this.attachers,i=this.namespace;if(sn("use",this.frozen),n!=null)if(typeof n=="function")u(n,t);else if(typeof n=="object")Array.isArray(n)?a(n):l(n);else throw new TypeError("Expected usable value, not `"+n+"`");return this;function o(s){if(typeof s=="function")u(s,[]);else if(typeof s=="object")if(Array.isArray(s)){const[f,...c]=s;u(f,c)}else l(s);else throw new TypeError("Expected usable value, not `"+s+"`")}function l(s){if(!("plugins"in s)&&!("settings"in s))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");a(s.plugins),s.settings&&(i.settings=nn(!0,i.settings,s.settings))}function a(s){let f=-1;if(s!=null)if(Array.isArray(s))for(;++f<s.length;){const c=s[f];o(c)}else throw new TypeError("Expected a list of plugins, not `"+s+"`")}function u(s,f){let c=-1,p=-1;for(;++c<r.length;)if(r[c][0]===s){p=c;break}if(p===-1)r.push([s,...f]);else if(f.length>0){let[h,...g]=f;const w=r[p][1];kn(w)&&kn(h)&&(h=nn(!0,w,h)),r[p]=[s,h,...g]}}}}const ho=new zn().freeze();function an(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function un(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function sn(e,n){if(n)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function fr(e){if(!kn(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function hr(e,n,t){if(!t)throw new Error("`"+e+"` finished async. Use `"+n+"` instead")}function Ot(e){return po(e)?e:new uo(e)}function po(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function mo(e){return typeof e=="string"||go(e)}function go(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const yo={};function Dn(e,n){const t=yo,r=typeof t.includeImageAlt=="boolean"?t.includeImageAlt:!0,i=typeof t.includeHtml=="boolean"?t.includeHtml:!0;return Gr(e,r,i)}function Gr(e,n,t){if(xo(e)){if("value"in e)return e.type==="html"&&!t?"":e.value;if(n&&"alt"in e&&e.alt)return e.alt;if("children"in e)return pr(e.children,n,t)}return Array.isArray(e)?pr(e,n,t):""}function pr(e,n,t){const r=[];let i=-1;for(;++i<e.length;)r[i]=Gr(e[i],n,t);return r.join("")}function xo(e){return!!(e&&typeof e=="object")}const mr=document.createElement("i");function Ln(e){const n="&"+e+";";mr.innerHTML=n;const t=mr.textContent;return t.charCodeAt(t.length-1)===59&&e!=="semi"||t===n?!1:t}function Ie(e,n,t,r){const i=e.length;let o=0,l;if(n<0?n=-n>i?0:i+n:n=n>i?i:n,t=t>0?t:0,r.length<1e4)l=Array.from(r),l.unshift(n,t),e.splice(...l);else for(t&&e.splice(n,t);o<r.length;)l=r.slice(o,o+1e4),l.unshift(n,0),e.splice(...l),o+=1e4,n+=1e4}function _e(e,n){return e.length>0?(Ie(e,e.length,0,n),e):n}const dr={}.hasOwnProperty;function Xr(e){const n={};let t=-1;for(;++t<e.length;)ko(n,e[t]);return n}function ko(e,n){let t;for(t in n){const i=(dr.call(e,t)?e[t]:void 0)||(e[t]={}),o=n[t];let l;if(o)for(l in o){dr.call(i,l)||(i[l]=[]);const a=o[l];bo(i[l],Array.isArray(a)?a:a?[a]:[])}}}function bo(e,n){let t=-1;const r=[];for(;++t<n.length;)(n[t].add==="after"?e:r).push(n[t]);Ie(e,0,0,r)}function Zr(e,n){const t=Number.parseInt(e,n);return t<9||t===11||t>13&&t<32||t>126&&t<160||t>55295&&t<57344||t>64975&&t<65008||(t&65535)===65535||(t&65535)===65534||t>1114111?"�":String.fromCodePoint(t)}function Le(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const ye=Ye(/[A-Za-z]/),ge=Ye(/[\dA-Za-z]/),wo=Ye(/[#-'*+\--9=?A-Z^-~]/);function Ht(e){return e!==null&&(e<32||e===127)}const vn=Ye(/\d/),vo=Ye(/[\dA-Fa-f]/),So=Ye(/[!-/:-@[-`{-~]/);function z(e){return e!==null&&e<-2}function Z(e){return e!==null&&(e<0||e===32)}function q(e){return e===-2||e===-1||e===32}const Qt=Ye(new RegExp("\\p{P}|\\p{S}","u")),nt=Ye(/\s/);function Ye(e){return n;function n(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function gt(e){const n=[];let t=-1,r=0,i=0;for(;++t<e.length;){const o=e.charCodeAt(t);let l="";if(o===37&&ge(e.charCodeAt(t+1))&&ge(e.charCodeAt(t+2)))i=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(l=String.fromCharCode(o));else if(o>55295&&o<57344){const a=e.charCodeAt(t+1);o<56320&&a>56319&&a<57344?(l=String.fromCharCode(o,a),i=1):l="�"}else l=String.fromCharCode(o);l&&(n.push(e.slice(r,t),encodeURIComponent(l)),r=t+i+1,l=""),i&&(t+=i,i=0)}return n.join("")+e.slice(r)}function U(e,n,t,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return l;function l(u){return q(u)?(e.enter(t),a(u)):n(u)}function a(u){return q(u)&&o++<i?(e.consume(u),a):(e.exit(t),n(u))}}const Co={tokenize:Ao};function Ao(e){const n=e.attempt(this.parser.constructs.contentInitial,r,i);let t;return n;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),U(e,n,"linePrefix")}function i(a){return e.enter("paragraph"),o(a)}function o(a){const u=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=u),t=u,l(a)}function l(a){if(a===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(a);return}return z(a)?(e.consume(a),e.exit("chunkText"),o):(e.consume(a),l)}}const Io={tokenize:Eo},gr={tokenize:_o};function Eo(e){const n=this,t=[];let r=0,i,o,l;return a;function a(C){if(r<t.length){const L=t[r];return n.containerState=L[1],e.attempt(L[0].continuation,u,s)(C)}return s(C)}function u(C){if(r++,n.containerState._closeFlow){n.containerState._closeFlow=void 0,i&&I();const L=n.events.length;let N=L,k;for(;N--;)if(n.events[N][0]==="exit"&&n.events[N][1].type==="chunkFlow"){k=n.events[N][1].end;break}x(r);let $=L;for(;$<n.events.length;)n.events[$][1].end={...k},$++;return Ie(n.events,N+1,0,n.events.slice(L)),n.events.length=$,s(C)}return a(C)}function s(C){if(r===t.length){if(!i)return p(C);if(i.currentConstruct&&i.currentConstruct.concrete)return g(C);n.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return n.containerState={},e.check(gr,f,c)(C)}function f(C){return i&&I(),x(r),p(C)}function c(C){return n.parser.lazy[n.now().line]=r!==t.length,l=n.now().offset,g(C)}function p(C){return n.containerState={},e.attempt(gr,h,g)(C)}function h(C){return r++,t.push([n.currentConstruct,n.containerState]),p(C)}function g(C){if(C===null){i&&I(),x(0),e.consume(C);return}return i=i||n.parser.flow(n.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:o}),w(C)}function w(C){if(C===null){v(e.exit("chunkFlow"),!0),x(0),e.consume(C);return}return z(C)?(e.consume(C),v(e.exit("chunkFlow")),r=0,n.interrupt=void 0,a):(e.consume(C),w)}function v(C,L){const N=n.sliceStream(C);if(L&&N.push(null),C.previous=o,o&&(o.next=C),o=C,i.defineSkip(C.start),i.write(N),n.parser.lazy[C.start.line]){let k=i.events.length;for(;k--;)if(i.events[k][1].start.offset<l&&(!i.events[k][1].end||i.events[k][1].end.offset>l))return;const $=n.events.length;let W=$,B,y;for(;W--;)if(n.events[W][0]==="exit"&&n.events[W][1].type==="chunkFlow"){if(B){y=n.events[W][1].end;break}B=!0}for(x(r),k=$;k<n.events.length;)n.events[k][1].end={...y},k++;Ie(n.events,W+1,0,n.events.slice($)),n.events.length=k}}function x(C){let L=t.length;for(;L-- >C;){const N=t[L];n.containerState=N[1],N[0].exit.call(n,e)}t.length=C}function I(){i.write([null]),o=void 0,i=void 0,n.containerState._closeFlow=void 0}}function _o(e,n,t){return U(e,e.attempt(this.parser.constructs.document,n,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function ct(e){if(e===null||Z(e)||nt(e))return 1;if(Qt(e))return 2}function Yt(e,n,t){const r=[];let i=-1;for(;++i<e.length;){const o=e[i].resolveAll;o&&!r.includes(o)&&(n=o(n,t),r.push(o))}return n}const Sn={name:"attention",resolveAll:To,tokenize:Po};function To(e,n){let t=-1,r,i,o,l,a,u,s,f;for(;++t<e.length;)if(e[t][0]==="enter"&&e[t][1].type==="attentionSequence"&&e[t][1]._close){for(r=t;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&n.sliceSerialize(e[r][1]).charCodeAt(0)===n.sliceSerialize(e[t][1]).charCodeAt(0)){if((e[r][1]._close||e[t][1]._open)&&(e[t][1].end.offset-e[t][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[t][1].end.offset-e[t][1].start.offset)%3))continue;u=e[r][1].end.offset-e[r][1].start.offset>1&&e[t][1].end.offset-e[t][1].start.offset>1?2:1;const c={...e[r][1].end},p={...e[t][1].start};yr(c,-u),yr(p,u),l={type:u>1?"strongSequence":"emphasisSequence",start:c,end:{...e[r][1].end}},a={type:u>1?"strongSequence":"emphasisSequence",start:{...e[t][1].start},end:p},o={type:u>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[t][1].start}},i={type:u>1?"strong":"emphasis",start:{...l.start},end:{...a.end}},e[r][1].end={...l.start},e[t][1].start={...a.end},s=[],e[r][1].end.offset-e[r][1].start.offset&&(s=_e(s,[["enter",e[r][1],n],["exit",e[r][1],n]])),s=_e(s,[["enter",i,n],["enter",l,n],["exit",l,n],["enter",o,n]]),s=_e(s,Yt(n.parser.constructs.insideSpan.null,e.slice(r+1,t),n)),s=_e(s,[["exit",o,n],["enter",a,n],["exit",a,n],["exit",i,n]]),e[t][1].end.offset-e[t][1].start.offset?(f=2,s=_e(s,[["enter",e[t][1],n],["exit",e[t][1],n]])):f=0,Ie(e,r-1,t-r+3,s),t=r+s.length-f-2;break}}for(t=-1;++t<e.length;)e[t][1].type==="attentionSequence"&&(e[t][1].type="data");return e}function Po(e,n){const t=this.parser.constructs.attentionMarkers.null,r=this.previous,i=ct(r);let o;return l;function l(u){return o=u,e.enter("attentionSequence"),a(u)}function a(u){if(u===o)return e.consume(u),a;const s=e.exit("attentionSequence"),f=ct(u),c=!f||f===2&&i||t.includes(u),p=!i||i===2&&f||t.includes(r);return s._open=!!(o===42?c:c&&(i||!p)),s._close=!!(o===42?p:p&&(f||!c)),n(u)}}function yr(e,n){e.column+=n,e.offset+=n,e._bufferIndex+=n}const zo={name:"autolink",tokenize:Do};function Do(e,n,t){let r=0;return i;function i(h){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(h){return ye(h)?(e.consume(h),l):h===64?t(h):s(h)}function l(h){return h===43||h===45||h===46||ge(h)?(r=1,a(h)):s(h)}function a(h){return h===58?(e.consume(h),r=0,u):(h===43||h===45||h===46||ge(h))&&r++<32?(e.consume(h),a):(r=0,s(h))}function u(h){return h===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),n):h===null||h===32||h===60||Ht(h)?t(h):(e.consume(h),u)}function s(h){return h===64?(e.consume(h),f):wo(h)?(e.consume(h),s):t(h)}function f(h){return ge(h)?c(h):t(h)}function c(h){return h===46?(e.consume(h),r=0,f):h===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),n):p(h)}function p(h){if((h===45||ge(h))&&r++<63){const g=h===45?p:c;return e.consume(h),g}return t(h)}}const zt={partial:!0,tokenize:Lo};function Lo(e,n,t){return r;function r(o){return q(o)?U(e,i,"linePrefix")(o):i(o)}function i(o){return o===null||z(o)?n(o):t(o)}}const Jr={continuation:{tokenize:No},exit:Oo,name:"blockQuote",tokenize:Fo};function Fo(e,n,t){const r=this;return i;function i(l){if(l===62){const a=r.containerState;return a.open||(e.enter("blockQuote",{_container:!0}),a.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(l),e.exit("blockQuoteMarker"),o}return t(l)}function o(l){return q(l)?(e.enter("blockQuotePrefixWhitespace"),e.consume(l),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),n):(e.exit("blockQuotePrefix"),n(l))}}function No(e,n,t){const r=this;return i;function i(l){return q(l)?U(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l):o(l)}function o(l){return e.attempt(Jr,n,t)(l)}}function Oo(e){e.exit("blockQuote")}const ei={name:"characterEscape",tokenize:Ro};function Ro(e,n,t){return r;function r(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),i}function i(o){return So(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),n):t(o)}}const ti={name:"characterReference",tokenize:Mo};function Mo(e,n,t){const r=this;let i=0,o,l;return a;function a(c){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),u}function u(c){return c===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(c),e.exit("characterReferenceMarkerNumeric"),s):(e.enter("characterReferenceValue"),o=31,l=ge,f(c))}function s(c){return c===88||c===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(c),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,l=vo,f):(e.enter("characterReferenceValue"),o=7,l=vn,f(c))}function f(c){if(c===59&&i){const p=e.exit("characterReferenceValue");return l===ge&&!Ln(r.sliceSerialize(p))?t(c):(e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),e.exit("characterReference"),n)}return l(c)&&i++<o?(e.consume(c),f):t(c)}}const xr={partial:!0,tokenize:$o},kr={concrete:!0,name:"codeFenced",tokenize:Bo};function Bo(e,n,t){const r=this,i={partial:!0,tokenize:N};let o=0,l=0,a;return u;function u(k){return s(k)}function s(k){const $=r.events[r.events.length-1];return o=$&&$[1].type==="linePrefix"?$[2].sliceSerialize($[1],!0).length:0,a=k,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),f(k)}function f(k){return k===a?(l++,e.consume(k),f):l<3?t(k):(e.exit("codeFencedFenceSequence"),q(k)?U(e,c,"whitespace")(k):c(k))}function c(k){return k===null||z(k)?(e.exit("codeFencedFence"),r.interrupt?n(k):e.check(xr,w,L)(k)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),p(k))}function p(k){return k===null||z(k)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(k)):q(k)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),U(e,h,"whitespace")(k)):k===96&&k===a?t(k):(e.consume(k),p)}function h(k){return k===null||z(k)?c(k):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),g(k))}function g(k){return k===null||z(k)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(k)):k===96&&k===a?t(k):(e.consume(k),g)}function w(k){return e.attempt(i,L,v)(k)}function v(k){return e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),x}function x(k){return o>0&&q(k)?U(e,I,"linePrefix",o+1)(k):I(k)}function I(k){return k===null||z(k)?e.check(xr,w,L)(k):(e.enter("codeFlowValue"),C(k))}function C(k){return k===null||z(k)?(e.exit("codeFlowValue"),I(k)):(e.consume(k),C)}function L(k){return e.exit("codeFenced"),n(k)}function N(k,$,W){let B=0;return y;function y(D){return k.enter("lineEnding"),k.consume(D),k.exit("lineEnding"),T}function T(D){return k.enter("codeFencedFence"),q(D)?U(k,_,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(D):_(D)}function _(D){return D===a?(k.enter("codeFencedFenceSequence"),P(D)):W(D)}function P(D){return D===a?(B++,k.consume(D),P):B>=l?(k.exit("codeFencedFenceSequence"),q(D)?U(k,R,"whitespace")(D):R(D)):W(D)}function R(D){return D===null||z(D)?(k.exit("codeFencedFence"),$(D)):W(D)}}}function $o(e,n,t){const r=this;return i;function i(l){return l===null?t(l):(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o)}function o(l){return r.parser.lazy[r.now().line]?t(l):n(l)}}const cn={name:"codeIndented",tokenize:qo},jo={partial:!0,tokenize:Ho};function qo(e,n,t){const r=this;return i;function i(s){return e.enter("codeIndented"),U(e,o,"linePrefix",5)(s)}function o(s){const f=r.events[r.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?l(s):t(s)}function l(s){return s===null?u(s):z(s)?e.attempt(jo,l,u)(s):(e.enter("codeFlowValue"),a(s))}function a(s){return s===null||z(s)?(e.exit("codeFlowValue"),l(s)):(e.consume(s),a)}function u(s){return e.exit("codeIndented"),n(s)}}function Ho(e,n,t){const r=this;return i;function i(l){return r.parser.lazy[r.now().line]?t(l):z(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),i):U(e,o,"linePrefix",5)(l)}function o(l){const a=r.events[r.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?n(l):z(l)?i(l):t(l)}}const Uo={name:"codeText",previous:Wo,resolve:Vo,tokenize:Qo};function Vo(e){let n=e.length-4,t=3,r,i;if((e[t][1].type==="lineEnding"||e[t][1].type==="space")&&(e[n][1].type==="lineEnding"||e[n][1].type==="space")){for(r=t;++r<n;)if(e[r][1].type==="codeTextData"){e[t][1].type="codeTextPadding",e[n][1].type="codeTextPadding",t+=2,n-=2;break}}for(r=t-1,n++;++r<=n;)i===void 0?r!==n&&e[r][1].type!=="lineEnding"&&(i=r):(r===n||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),n-=r-i-2,r=i+2),i=void 0);return e}function Wo(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Qo(e,n,t){let r=0,i,o;return l;function l(c){return e.enter("codeText"),e.enter("codeTextSequence"),a(c)}function a(c){return c===96?(e.consume(c),r++,a):(e.exit("codeTextSequence"),u(c))}function u(c){return c===null?t(c):c===32?(e.enter("space"),e.consume(c),e.exit("space"),u):c===96?(o=e.enter("codeTextSequence"),i=0,f(c)):z(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),u):(e.enter("codeTextData"),s(c))}function s(c){return c===null||c===32||c===96||z(c)?(e.exit("codeTextData"),u(c)):(e.consume(c),s)}function f(c){return c===96?(e.consume(c),i++,f):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),n(c)):(o.type="codeTextData",s(c))}}class Yo{constructor(n){this.left=n?[...n]:[],this.right=[]}get(n){if(n<0||n>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+n+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return n<this.left.length?this.left[n]:this.right[this.right.length-n+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(n,t){const r=t??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(n,r):n>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-n+this.left.length).reverse():this.left.slice(n).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(n,t,r){const i=t||0;this.setCursor(Math.trunc(n));const o=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&St(this.left,r),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(n){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(n)}pushMany(n){this.setCursor(Number.POSITIVE_INFINITY),St(this.left,n)}unshift(n){this.setCursor(0),this.right.push(n)}unshiftMany(n){this.setCursor(0),St(this.right,n.reverse())}setCursor(n){if(!(n===this.left.length||n>this.left.length&&this.right.length===0||n<0&&this.left.length===0))if(n<this.left.length){const t=this.left.splice(n,Number.POSITIVE_INFINITY);St(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-n,Number.POSITIVE_INFINITY);St(this.left,t.reverse())}}}function St(e,n){let t=0;if(n.length<1e4)e.push(...n);else for(;t<n.length;)e.push(...n.slice(t,t+1e4)),t+=1e4}function ni(e){const n={};let t=-1,r,i,o,l,a,u,s;const f=new Yo(e);for(;++t<f.length;){for(;t in n;)t=n[t];if(r=f.get(t),t&&r[1].type==="chunkFlow"&&f.get(t-1)[1].type==="listItemPrefix"&&(u=r[1]._tokenizer.events,o=0,o<u.length&&u[o][1].type==="lineEndingBlank"&&(o+=2),o<u.length&&u[o][1].type==="content"))for(;++o<u.length&&u[o][1].type!=="content";)u[o][1].type==="chunkText"&&(u[o][1]._isInFirstContentOfListItem=!0,o++);if(r[0]==="enter")r[1].contentType&&(Object.assign(n,Ko(f,t)),t=n[t],s=!0);else if(r[1]._container){for(o=t,i=void 0;o--;)if(l=f.get(o),l[1].type==="lineEnding"||l[1].type==="lineEndingBlank")l[0]==="enter"&&(i&&(f.get(i)[1].type="lineEndingBlank"),l[1].type="lineEnding",i=o);else if(!(l[1].type==="linePrefix"||l[1].type==="listItemIndent"))break;i&&(r[1].end={...f.get(i)[1].start},a=f.slice(i,t),a.unshift(r),f.splice(i,t-i+1,a))}}return Ie(e,0,Number.POSITIVE_INFINITY,f.slice(0)),!s}function Ko(e,n){const t=e.get(n)[1],r=e.get(n)[2];let i=n-1;const o=[];let l=t._tokenizer;l||(l=r.parser[t.contentType](t.start),t._contentTypeTextTrailing&&(l._contentTypeTextTrailing=!0));const a=l.events,u=[],s={};let f,c,p=-1,h=t,g=0,w=0;const v=[w];for(;h;){for(;e.get(++i)[1]!==h;);o.push(i),h._tokenizer||(f=r.sliceStream(h),h.next||f.push(null),c&&l.defineSkip(h.start),h._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=!0),l.write(f),h._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=void 0)),c=h,h=h.next}for(h=t;++p<a.length;)a[p][0]==="exit"&&a[p-1][0]==="enter"&&a[p][1].type===a[p-1][1].type&&a[p][1].start.line!==a[p][1].end.line&&(w=p+1,v.push(w),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(l.events=[],h?(h._tokenizer=void 0,h.previous=void 0):v.pop(),p=v.length;p--;){const x=a.slice(v[p],v[p+1]),I=o.pop();u.push([I,I+x.length-1]),e.splice(I,2,x)}for(u.reverse(),p=-1;++p<u.length;)s[g+u[p][0]]=g+u[p][1],g+=u[p][1]-u[p][0]-1;return s}const Go={resolve:Zo,tokenize:Jo},Xo={partial:!0,tokenize:ea};function Zo(e){return ni(e),e}function Jo(e,n){let t;return r;function r(a){return e.enter("content"),t=e.enter("chunkContent",{contentType:"content"}),i(a)}function i(a){return a===null?o(a):z(a)?e.check(Xo,l,o)(a):(e.consume(a),i)}function o(a){return e.exit("chunkContent"),e.exit("content"),n(a)}function l(a){return e.consume(a),e.exit("chunkContent"),t.next=e.enter("chunkContent",{contentType:"content",previous:t}),t=t.next,i}}function ea(e,n,t){const r=this;return i;function i(l){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),U(e,o,"linePrefix")}function o(l){if(l===null||z(l))return t(l);const a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?n(l):e.interrupt(r.parser.constructs.flow,t,n)(l)}}function ri(e,n,t,r,i,o,l,a,u){const s=u||Number.POSITIVE_INFINITY;let f=0;return c;function c(x){return x===60?(e.enter(r),e.enter(i),e.enter(o),e.consume(x),e.exit(o),p):x===null||x===32||x===41||Ht(x)?t(x):(e.enter(r),e.enter(l),e.enter(a),e.enter("chunkString",{contentType:"string"}),w(x))}function p(x){return x===62?(e.enter(o),e.consume(x),e.exit(o),e.exit(i),e.exit(r),n):(e.enter(a),e.enter("chunkString",{contentType:"string"}),h(x))}function h(x){return x===62?(e.exit("chunkString"),e.exit(a),p(x)):x===null||x===60||z(x)?t(x):(e.consume(x),x===92?g:h)}function g(x){return x===60||x===62||x===92?(e.consume(x),h):h(x)}function w(x){return!f&&(x===null||x===41||Z(x))?(e.exit("chunkString"),e.exit(a),e.exit(l),e.exit(r),n(x)):f<s&&x===40?(e.consume(x),f++,w):x===41?(e.consume(x),f--,w):x===null||x===32||x===40||Ht(x)?t(x):(e.consume(x),x===92?v:w)}function v(x){return x===40||x===41||x===92?(e.consume(x),w):w(x)}}function ii(e,n,t,r,i,o){const l=this;let a=0,u;return s;function s(h){return e.enter(r),e.enter(i),e.consume(h),e.exit(i),e.enter(o),f}function f(h){return a>999||h===null||h===91||h===93&&!u||h===94&&!a&&"_hiddenFootnoteSupport"in l.parser.constructs?t(h):h===93?(e.exit(o),e.enter(i),e.consume(h),e.exit(i),e.exit(r),n):z(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),f):(e.enter("chunkString",{contentType:"string"}),c(h))}function c(h){return h===null||h===91||h===93||z(h)||a++>999?(e.exit("chunkString"),f(h)):(e.consume(h),u||(u=!q(h)),h===92?p:c)}function p(h){return h===91||h===92||h===93?(e.consume(h),a++,c):c(h)}}function li(e,n,t,r,i,o){let l;return a;function a(p){return p===34||p===39||p===40?(e.enter(r),e.enter(i),e.consume(p),e.exit(i),l=p===40?41:p,u):t(p)}function u(p){return p===l?(e.enter(i),e.consume(p),e.exit(i),e.exit(r),n):(e.enter(o),s(p))}function s(p){return p===l?(e.exit(o),u(l)):p===null?t(p):z(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),U(e,s,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),f(p))}function f(p){return p===l||p===null||z(p)?(e.exit("chunkString"),s(p)):(e.consume(p),p===92?c:f)}function c(p){return p===l||p===92?(e.consume(p),f):f(p)}}function It(e,n){let t;return r;function r(i){return z(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t=!0,r):q(i)?U(e,r,t?"linePrefix":"lineSuffix")(i):n(i)}}const ta={name:"definition",tokenize:ra},na={partial:!0,tokenize:ia};function ra(e,n,t){const r=this;let i;return o;function o(h){return e.enter("definition"),l(h)}function l(h){return ii.call(r,e,a,t,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function a(h){return i=Le(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),u):t(h)}function u(h){return Z(h)?It(e,s)(h):s(h)}function s(h){return ri(e,f,t,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function f(h){return e.attempt(na,c,c)(h)}function c(h){return q(h)?U(e,p,"whitespace")(h):p(h)}function p(h){return h===null||z(h)?(e.exit("definition"),r.parser.defined.push(i),n(h)):t(h)}}function ia(e,n,t){return r;function r(a){return Z(a)?It(e,i)(a):t(a)}function i(a){return li(e,o,t,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function o(a){return q(a)?U(e,l,"whitespace")(a):l(a)}function l(a){return a===null||z(a)?n(a):t(a)}}const la={name:"hardBreakEscape",tokenize:oa};function oa(e,n,t){return r;function r(o){return e.enter("hardBreakEscape"),e.consume(o),i}function i(o){return z(o)?(e.exit("hardBreakEscape"),n(o)):t(o)}}const aa={name:"headingAtx",resolve:ua,tokenize:sa};function ua(e,n){let t=e.length-2,r=3,i,o;return e[r][1].type==="whitespace"&&(r+=2),t-2>r&&e[t][1].type==="whitespace"&&(t-=2),e[t][1].type==="atxHeadingSequence"&&(r===t-1||t-4>r&&e[t-2][1].type==="whitespace")&&(t-=r+1===t?2:4),t>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[t][1].end},o={type:"chunkText",start:e[r][1].start,end:e[t][1].end,contentType:"text"},Ie(e,r,t-r+1,[["enter",i,n],["enter",o,n],["exit",o,n],["exit",i,n]])),e}function sa(e,n,t){let r=0;return i;function i(f){return e.enter("atxHeading"),o(f)}function o(f){return e.enter("atxHeadingSequence"),l(f)}function l(f){return f===35&&r++<6?(e.consume(f),l):f===null||Z(f)?(e.exit("atxHeadingSequence"),a(f)):t(f)}function a(f){return f===35?(e.enter("atxHeadingSequence"),u(f)):f===null||z(f)?(e.exit("atxHeading"),n(f)):q(f)?U(e,a,"whitespace")(f):(e.enter("atxHeadingText"),s(f))}function u(f){return f===35?(e.consume(f),u):(e.exit("atxHeadingSequence"),a(f))}function s(f){return f===null||f===35||Z(f)?(e.exit("atxHeadingText"),a(f)):(e.consume(f),s)}}const ca=["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"],br=["pre","script","style","textarea"],fa={concrete:!0,name:"htmlFlow",resolveTo:ma,tokenize:da},ha={partial:!0,tokenize:ya},pa={partial:!0,tokenize:ga};function ma(e){let n=e.length;for(;n--&&!(e[n][0]==="enter"&&e[n][1].type==="htmlFlow"););return n>1&&e[n-2][1].type==="linePrefix"&&(e[n][1].start=e[n-2][1].start,e[n+1][1].start=e[n-2][1].start,e.splice(n-2,2)),e}function da(e,n,t){const r=this;let i,o,l,a,u;return s;function s(d){return f(d)}function f(d){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(d),c}function c(d){return d===33?(e.consume(d),p):d===47?(e.consume(d),o=!0,w):d===63?(e.consume(d),i=3,r.interrupt?n:m):ye(d)?(e.consume(d),l=String.fromCharCode(d),v):t(d)}function p(d){return d===45?(e.consume(d),i=2,h):d===91?(e.consume(d),i=5,a=0,g):ye(d)?(e.consume(d),i=4,r.interrupt?n:m):t(d)}function h(d){return d===45?(e.consume(d),r.interrupt?n:m):t(d)}function g(d){const ae="CDATA[";return d===ae.charCodeAt(a++)?(e.consume(d),a===ae.length?r.interrupt?n:_:g):t(d)}function w(d){return ye(d)?(e.consume(d),l=String.fromCharCode(d),v):t(d)}function v(d){if(d===null||d===47||d===62||Z(d)){const ae=d===47,me=l.toLowerCase();return!ae&&!o&&br.includes(me)?(i=1,r.interrupt?n(d):_(d)):ca.includes(l.toLowerCase())?(i=6,ae?(e.consume(d),x):r.interrupt?n(d):_(d)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?t(d):o?I(d):C(d))}return d===45||ge(d)?(e.consume(d),l+=String.fromCharCode(d),v):t(d)}function x(d){return d===62?(e.consume(d),r.interrupt?n:_):t(d)}function I(d){return q(d)?(e.consume(d),I):y(d)}function C(d){return d===47?(e.consume(d),y):d===58||d===95||ye(d)?(e.consume(d),L):q(d)?(e.consume(d),C):y(d)}function L(d){return d===45||d===46||d===58||d===95||ge(d)?(e.consume(d),L):N(d)}function N(d){return d===61?(e.consume(d),k):q(d)?(e.consume(d),N):C(d)}function k(d){return d===null||d===60||d===61||d===62||d===96?t(d):d===34||d===39?(e.consume(d),u=d,$):q(d)?(e.consume(d),k):W(d)}function $(d){return d===u?(e.consume(d),u=null,B):d===null||z(d)?t(d):(e.consume(d),$)}function W(d){return d===null||d===34||d===39||d===47||d===60||d===61||d===62||d===96||Z(d)?N(d):(e.consume(d),W)}function B(d){return d===47||d===62||q(d)?C(d):t(d)}function y(d){return d===62?(e.consume(d),T):t(d)}function T(d){return d===null||z(d)?_(d):q(d)?(e.consume(d),T):t(d)}function _(d){return d===45&&i===2?(e.consume(d),re):d===60&&i===1?(e.consume(d),Q):d===62&&i===4?(e.consume(d),J):d===63&&i===3?(e.consume(d),m):d===93&&i===5?(e.consume(d),ee):z(d)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(ha,fe,P)(d)):d===null||z(d)?(e.exit("htmlFlowData"),P(d)):(e.consume(d),_)}function P(d){return e.check(pa,R,fe)(d)}function R(d){return e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),D}function D(d){return d===null||z(d)?P(d):(e.enter("htmlFlowData"),_(d))}function re(d){return d===45?(e.consume(d),m):_(d)}function Q(d){return d===47?(e.consume(d),l="",ie):_(d)}function ie(d){if(d===62){const ae=l.toLowerCase();return br.includes(ae)?(e.consume(d),J):_(d)}return ye(d)&&l.length<8?(e.consume(d),l+=String.fromCharCode(d),ie):_(d)}function ee(d){return d===93?(e.consume(d),m):_(d)}function m(d){return d===62?(e.consume(d),J):d===45&&i===2?(e.consume(d),m):_(d)}function J(d){return d===null||z(d)?(e.exit("htmlFlowData"),fe(d)):(e.consume(d),J)}function fe(d){return e.exit("htmlFlow"),n(d)}}function ga(e,n,t){const r=this;return i;function i(l){return z(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o):t(l)}function o(l){return r.parser.lazy[r.now().line]?t(l):n(l)}}function ya(e,n,t){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(zt,n,t)}}const xa={name:"htmlText",tokenize:ka};function ka(e,n,t){const r=this;let i,o,l;return a;function a(m){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(m),u}function u(m){return m===33?(e.consume(m),s):m===47?(e.consume(m),N):m===63?(e.consume(m),C):ye(m)?(e.consume(m),W):t(m)}function s(m){return m===45?(e.consume(m),f):m===91?(e.consume(m),o=0,g):ye(m)?(e.consume(m),I):t(m)}function f(m){return m===45?(e.consume(m),h):t(m)}function c(m){return m===null?t(m):m===45?(e.consume(m),p):z(m)?(l=c,Q(m)):(e.consume(m),c)}function p(m){return m===45?(e.consume(m),h):c(m)}function h(m){return m===62?re(m):m===45?p(m):c(m)}function g(m){const J="CDATA[";return m===J.charCodeAt(o++)?(e.consume(m),o===J.length?w:g):t(m)}function w(m){return m===null?t(m):m===93?(e.consume(m),v):z(m)?(l=w,Q(m)):(e.consume(m),w)}function v(m){return m===93?(e.consume(m),x):w(m)}function x(m){return m===62?re(m):m===93?(e.consume(m),x):w(m)}function I(m){return m===null||m===62?re(m):z(m)?(l=I,Q(m)):(e.consume(m),I)}function C(m){return m===null?t(m):m===63?(e.consume(m),L):z(m)?(l=C,Q(m)):(e.consume(m),C)}function L(m){return m===62?re(m):C(m)}function N(m){return ye(m)?(e.consume(m),k):t(m)}function k(m){return m===45||ge(m)?(e.consume(m),k):$(m)}function $(m){return z(m)?(l=$,Q(m)):q(m)?(e.consume(m),$):re(m)}function W(m){return m===45||ge(m)?(e.consume(m),W):m===47||m===62||Z(m)?B(m):t(m)}function B(m){return m===47?(e.consume(m),re):m===58||m===95||ye(m)?(e.consume(m),y):z(m)?(l=B,Q(m)):q(m)?(e.consume(m),B):re(m)}function y(m){return m===45||m===46||m===58||m===95||ge(m)?(e.consume(m),y):T(m)}function T(m){return m===61?(e.consume(m),_):z(m)?(l=T,Q(m)):q(m)?(e.consume(m),T):B(m)}function _(m){return m===null||m===60||m===61||m===62||m===96?t(m):m===34||m===39?(e.consume(m),i=m,P):z(m)?(l=_,Q(m)):q(m)?(e.consume(m),_):(e.consume(m),R)}function P(m){return m===i?(e.consume(m),i=void 0,D):m===null?t(m):z(m)?(l=P,Q(m)):(e.consume(m),P)}function R(m){return m===null||m===34||m===39||m===60||m===61||m===96?t(m):m===47||m===62||Z(m)?B(m):(e.consume(m),R)}function D(m){return m===47||m===62||Z(m)?B(m):t(m)}function re(m){return m===62?(e.consume(m),e.exit("htmlTextData"),e.exit("htmlText"),n):t(m)}function Q(m){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),ie}function ie(m){return q(m)?U(e,ee,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(m):ee(m)}function ee(m){return e.enter("htmlTextData"),l(m)}}const Fn={name:"labelEnd",resolveAll:Sa,resolveTo:Ca,tokenize:Aa},ba={tokenize:Ia},wa={tokenize:Ea},va={tokenize:_a};function Sa(e){let n=-1;const t=[];for(;++n<e.length;){const r=e[n][1];if(t.push(e[n]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",n+=i}}return e.length!==t.length&&Ie(e,0,e.length,t),e}function Ca(e,n){let t=e.length,r=0,i,o,l,a;for(;t--;)if(i=e[t][1],o){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[t][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(l){if(e[t][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(o=t,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(l=t);const u={type:e[o][1].type==="labelLink"?"link":"image",start:{...e[o][1].start},end:{...e[e.length-1][1].end}},s={type:"label",start:{...e[o][1].start},end:{...e[l][1].end}},f={type:"labelText",start:{...e[o+r+2][1].end},end:{...e[l-2][1].start}};return a=[["enter",u,n],["enter",s,n]],a=_e(a,e.slice(o+1,o+r+3)),a=_e(a,[["enter",f,n]]),a=_e(a,Yt(n.parser.constructs.insideSpan.null,e.slice(o+r+4,l-3),n)),a=_e(a,[["exit",f,n],e[l-2],e[l-1],["exit",s,n]]),a=_e(a,e.slice(l+1)),a=_e(a,[["exit",u,n]]),Ie(e,o,e.length,a),e}function Aa(e,n,t){const r=this;let i=r.events.length,o,l;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){o=r.events[i][1];break}return a;function a(p){return o?o._inactive?c(p):(l=r.parser.defined.includes(Le(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(p),e.exit("labelMarker"),e.exit("labelEnd"),u):t(p)}function u(p){return p===40?e.attempt(ba,f,l?f:c)(p):p===91?e.attempt(wa,f,l?s:c)(p):l?f(p):c(p)}function s(p){return e.attempt(va,f,c)(p)}function f(p){return n(p)}function c(p){return o._balanced=!0,t(p)}}function Ia(e,n,t){return r;function r(c){return e.enter("resource"),e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),i}function i(c){return Z(c)?It(e,o)(c):o(c)}function o(c){return c===41?f(c):ri(e,l,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(c)}function l(c){return Z(c)?It(e,u)(c):f(c)}function a(c){return t(c)}function u(c){return c===34||c===39||c===40?li(e,s,t,"resourceTitle","resourceTitleMarker","resourceTitleString")(c):f(c)}function s(c){return Z(c)?It(e,f)(c):f(c)}function f(c){return c===41?(e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),e.exit("resource"),n):t(c)}}function Ea(e,n,t){const r=this;return i;function i(a){return ii.call(r,e,o,l,"reference","referenceMarker","referenceString")(a)}function o(a){return r.parser.defined.includes(Le(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?n(a):t(a)}function l(a){return t(a)}}function _a(e,n,t){return r;function r(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),i}function i(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),n):t(o)}}const Ta={name:"labelStartImage",resolveAll:Fn.resolveAll,tokenize:Pa};function Pa(e,n,t){const r=this;return i;function i(a){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(a),e.exit("labelImageMarker"),o}function o(a){return a===91?(e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelImage"),l):t(a)}function l(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?t(a):n(a)}}const za={name:"labelStartLink",resolveAll:Fn.resolveAll,tokenize:Da};function Da(e,n,t){const r=this;return i;function i(l){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelLink"),o}function o(l){return l===94&&"_hiddenFootnoteSupport"in r.parser.constructs?t(l):n(l)}}const fn={name:"lineEnding",tokenize:La};function La(e,n){return t;function t(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),U(e,n,"linePrefix")}}const qt={name:"thematicBreak",tokenize:Fa};function Fa(e,n,t){let r=0,i;return o;function o(s){return e.enter("thematicBreak"),l(s)}function l(s){return i=s,a(s)}function a(s){return s===i?(e.enter("thematicBreakSequence"),u(s)):r>=3&&(s===null||z(s))?(e.exit("thematicBreak"),n(s)):t(s)}function u(s){return s===i?(e.consume(s),r++,u):(e.exit("thematicBreakSequence"),q(s)?U(e,a,"whitespace")(s):a(s))}}const xe={continuation:{tokenize:Ma},exit:$a,name:"list",tokenize:Ra},Na={partial:!0,tokenize:ja},Oa={partial:!0,tokenize:Ba};function Ra(e,n,t){const r=this,i=r.events[r.events.length-1];let o=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,l=0;return a;function a(h){const g=r.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(g==="listUnordered"?!r.containerState.marker||h===r.containerState.marker:vn(h)){if(r.containerState.type||(r.containerState.type=g,e.enter(g,{_container:!0})),g==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(qt,t,s)(h):s(h);if(!r.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),u(h)}return t(h)}function u(h){return vn(h)&&++l<10?(e.consume(h),u):(!r.interrupt||l<2)&&(r.containerState.marker?h===r.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),s(h)):t(h)}function s(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||h,e.check(zt,r.interrupt?t:f,e.attempt(Na,p,c))}function f(h){return r.containerState.initialBlankLine=!0,o++,p(h)}function c(h){return q(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),p):t(h)}function p(h){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,n(h)}}function Ma(e,n,t){const r=this;return r.containerState._closeFlow=void 0,e.check(zt,i,o);function i(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,U(e,n,"listItemIndent",r.containerState.size+1)(a)}function o(a){return r.containerState.furtherBlankLines||!q(a)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,l(a)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Oa,n,l)(a))}function l(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,U(e,e.attempt(xe,n,t),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function Ba(e,n,t){const r=this;return U(e,i,"listItemIndent",r.containerState.size+1);function i(o){const l=r.events[r.events.length-1];return l&&l[1].type==="listItemIndent"&&l[2].sliceSerialize(l[1],!0).length===r.containerState.size?n(o):t(o)}}function $a(e){e.exit(this.containerState.type)}function ja(e,n,t){const r=this;return U(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(o){const l=r.events[r.events.length-1];return!q(o)&&l&&l[1].type==="listItemPrefixWhitespace"?n(o):t(o)}}const wr={name:"setextUnderline",resolveTo:qa,tokenize:Ha};function qa(e,n){let t=e.length,r,i,o;for(;t--;)if(e[t][0]==="enter"){if(e[t][1].type==="content"){r=t;break}e[t][1].type==="paragraph"&&(i=t)}else e[t][1].type==="content"&&e.splice(t,1),!o&&e[t][1].type==="definition"&&(o=t);const l={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",o?(e.splice(i,0,["enter",l,n]),e.splice(o+1,0,["exit",e[r][1],n]),e[r][1].end={...e[o][1].end}):e[r][1]=l,e.push(["exit",l,n]),e}function Ha(e,n,t){const r=this;let i;return o;function o(s){let f=r.events.length,c;for(;f--;)if(r.events[f][1].type!=="lineEnding"&&r.events[f][1].type!=="linePrefix"&&r.events[f][1].type!=="content"){c=r.events[f][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||c)?(e.enter("setextHeadingLine"),i=s,l(s)):t(s)}function l(s){return e.enter("setextHeadingLineSequence"),a(s)}function a(s){return s===i?(e.consume(s),a):(e.exit("setextHeadingLineSequence"),q(s)?U(e,u,"lineSuffix")(s):u(s))}function u(s){return s===null||z(s)?(e.exit("setextHeadingLine"),n(s)):t(s)}}const Ua={tokenize:Va};function Va(e){const n=this,t=e.attempt(zt,r,e.attempt(this.parser.constructs.flowInitial,i,U(e,e.attempt(this.parser.constructs.flow,i,e.attempt(Go,i)),"linePrefix")));return t;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),n.currentConstruct=void 0,t}function i(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n.currentConstruct=void 0,t}}const Wa={resolveAll:ai()},Qa=oi("string"),Ya=oi("text");function oi(e){return{resolveAll:ai(e==="text"?Ka:void 0),tokenize:n};function n(t){const r=this,i=this.parser.constructs[e],o=t.attempt(i,l,a);return l;function l(f){return s(f)?o(f):a(f)}function a(f){if(f===null){t.consume(f);return}return t.enter("data"),t.consume(f),u}function u(f){return s(f)?(t.exit("data"),o(f)):(t.consume(f),u)}function s(f){if(f===null)return!0;const c=i[f];let p=-1;if(c)for(;++p<c.length;){const h=c[p];if(!h.previous||h.previous.call(r,r.previous))return!0}return!1}}}function ai(e){return n;function n(t,r){let i=-1,o;for(;++i<=t.length;)o===void 0?t[i]&&t[i][1].type==="data"&&(o=i,i++):(!t[i]||t[i][1].type!=="data")&&(i!==o+2&&(t[o][1].end=t[i-1][1].end,t.splice(o+2,i-o-2),i=o+2),o=void 0);return e?e(t,r):t}}function Ka(e,n){let t=0;for(;++t<=e.length;)if((t===e.length||e[t][1].type==="lineEnding")&&e[t-1][1].type==="data"){const r=e[t-1][1],i=n.sliceStream(r);let o=i.length,l=-1,a=0,u;for(;o--;){const s=i[o];if(typeof s=="string"){for(l=s.length;s.charCodeAt(l-1)===32;)a++,l--;if(l)break;l=-1}else if(s===-2)u=!0,a++;else if(s!==-1){o++;break}}if(n._contentTypeTextTrailing&&t===e.length&&(a=0),a){const s={type:t===e.length||u||a<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?l:r.start._bufferIndex+l,_index:r.start._index+o,line:r.end.line,column:r.end.column-a,offset:r.end.offset-a},end:{...r.end}};r.end={...s.start},r.start.offset===r.end.offset?Object.assign(r,s):(e.splice(t,0,["enter",s,n],["exit",s,n]),t+=2)}t++}return e}const Ga={42:xe,43:xe,45:xe,48:xe,49:xe,50:xe,51:xe,52:xe,53:xe,54:xe,55:xe,56:xe,57:xe,62:Jr},Xa={91:ta},Za={[-2]:cn,[-1]:cn,32:cn},Ja={35:aa,42:qt,45:[wr,qt],60:fa,61:wr,95:qt,96:kr,126:kr},eu={38:ti,92:ei},tu={[-5]:fn,[-4]:fn,[-3]:fn,33:Ta,38:ti,42:Sn,60:[zo,xa],91:za,92:[la,ei],93:Fn,95:Sn,96:Uo},nu={null:[Sn,Wa]},ru={null:[42,95]},iu={null:[]},lu=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:ru,contentInitial:Xa,disable:iu,document:Ga,flow:Ja,flowInitial:Za,insideSpan:nu,string:eu,text:tu},Symbol.toStringTag,{value:"Module"}));function ou(e,n,t){let r={_bufferIndex:-1,_index:0,line:t&&t.line||1,column:t&&t.column||1,offset:t&&t.offset||0};const i={},o=[];let l=[],a=[];const u={attempt:$(N),check:$(k),consume:I,enter:C,exit:L,interrupt:$(k,{interrupt:!0})},s={code:null,containerState:{},defineSkip:w,events:[],now:g,parser:e,previous:null,sliceSerialize:p,sliceStream:h,write:c};let f=n.tokenize.call(s,u);return n.resolveAll&&o.push(n),s;function c(T){return l=_e(l,T),v(),l[l.length-1]!==null?[]:(W(n,0),s.events=Yt(o,s.events,s),s.events)}function p(T,_){return uu(h(T),_)}function h(T){return au(l,T)}function g(){const{_bufferIndex:T,_index:_,line:P,column:R,offset:D}=r;return{_bufferIndex:T,_index:_,line:P,column:R,offset:D}}function w(T){i[T.line]=T.column,y()}function v(){let T;for(;r._index<l.length;){const _=l[r._index];if(typeof _=="string")for(T=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===T&&r._bufferIndex<_.length;)x(_.charCodeAt(r._bufferIndex));else x(_)}}function x(T){f=f(T)}function I(T){z(T)?(r.line++,r.column=1,r.offset+=T===-3?2:1,y()):T!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===l[r._index].length&&(r._bufferIndex=-1,r._index++)),s.previous=T}function C(T,_){const P=_||{};return P.type=T,P.start=g(),s.events.push(["enter",P,s]),a.push(P),P}function L(T){const _=a.pop();return _.end=g(),s.events.push(["exit",_,s]),_}function N(T,_){W(T,_.from)}function k(T,_){_.restore()}function $(T,_){return P;function P(R,D,re){let Q,ie,ee,m;return Array.isArray(R)?fe(R):"tokenize"in R?fe([R]):J(R);function J(Y){return we;function we(le){const se=le!==null&&Y[le],Ee=le!==null&&Y.null,je=[...Array.isArray(se)?se:se?[se]:[],...Array.isArray(Ee)?Ee:Ee?[Ee]:[]];return fe(je)(le)}}function fe(Y){return Q=Y,ie=0,Y.length===0?re:d(Y[ie])}function d(Y){return we;function we(le){return m=B(),ee=Y,Y.partial||(s.currentConstruct=Y),Y.name&&s.parser.constructs.disable.null.includes(Y.name)?me():Y.tokenize.call(_?Object.assign(Object.create(s),_):s,u,ae,me)(le)}}function ae(Y){return T(ee,m),D}function me(Y){return m.restore(),++ie<Q.length?d(Q[ie]):re}}}function W(T,_){T.resolveAll&&!o.includes(T)&&o.push(T),T.resolve&&Ie(s.events,_,s.events.length-_,T.resolve(s.events.slice(_),s)),T.resolveTo&&(s.events=T.resolveTo(s.events,s))}function B(){const T=g(),_=s.previous,P=s.currentConstruct,R=s.events.length,D=Array.from(a);return{from:R,restore:re};function re(){r=T,s.previous=_,s.currentConstruct=P,s.events.length=R,a=D,y()}}function y(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function au(e,n){const t=n.start._index,r=n.start._bufferIndex,i=n.end._index,o=n.end._bufferIndex;let l;if(t===i)l=[e[t].slice(r,o)];else{if(l=e.slice(t,i),r>-1){const a=l[0];typeof a=="string"?l[0]=a.slice(r):l.shift()}o>0&&l.push(e[i].slice(0,o))}return l}function uu(e,n){let t=-1;const r=[];let i;for(;++t<e.length;){const o=e[t];let l;if(typeof o=="string")l=o;else switch(o){case-5:{l="\r";break}case-4:{l=`
|
|
2
2
|
`;break}case-3:{l=`\r
|
|
3
|
-
`;break}case-2:{l=n?" ":" ";break}case-1:{if(!n&&i)continue;l=" ";break}default:l=String.fromCharCode(o)}i=o===-2,r.push(l)}return r.join("")}function su(e){const r={constructs:Xr([lu,...(e||{}).extensions||[]]),content:i(Co),defined:[],document:i(Io),flow:i(Ua),lazy:{},string:i(Qa),text:i(Ya)};return r;function i(o){return l;function l(a){return ou(r,o,a)}}}function cu(e){for(;!ni(e););return e}const vr=/[\0\t\n\r]/g;function fu(){let e=1,n="",t=!0,r;return i;function i(o,l,a){const u=[];let s,f,c,p,h;for(o=n+(typeof o=="string"?o.toString():new TextDecoder(l||void 0).decode(o)),c=0,n="",t&&(o.charCodeAt(0)===65279&&c++,t=void 0);c<o.length;){if(vr.lastIndex=c,s=vr.exec(o),p=s&&s.index!==void 0?s.index:o.length,h=o.charCodeAt(p),!s){n=o.slice(c);break}if(h===10&&c===p&&r)u.push(-3),r=void 0;else switch(r&&(u.push(-5),r=void 0),c<p&&(u.push(o.slice(c,p)),e+=p-c),h){case 0:{u.push(65533),e++;break}case 9:{for(f=Math.ceil(e/4)*4,u.push(-2);e++<f;)u.push(-1);break}case 10:{u.push(-4),e=1;break}default:r=!0,e=1}c=p+1}return a&&(r&&u.push(-5),n&&u.push(n),u.push(null)),u}}const hu=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function pu(e){return e.replace(hu,mu)}function mu(e,n,t){if(n)return n;if(t.charCodeAt(0)===35){const i=t.charCodeAt(1),o=i===120||i===88;return Zr(t.slice(o?2:1),o?16:10)}return Ln(t)||e}const ui={}.hasOwnProperty;function du(e,n,t){return n&&typeof n=="object"&&(t=n,n=void 0),gu(t)(cu(su(t).document().write(fu()(e,n,!0))))}function gu(e){const n={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(V),autolinkProtocol:B,autolinkEmail:B,atxHeading:o(te),blockQuote:o(Ee),characterEscape:B,characterReference:B,codeFenced:o(je),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:o(je,l),codeText:o(xt,l),codeTextData:B,data:B,codeFlowValue:B,definition:o(Ke),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:o(Ge),hardBreakEscape:o(de),hardBreakTrailing:o(de),htmlFlow:o(Te,l),htmlFlowData:B,htmlText:o(Te,l),htmlTextData:B,image:o(Pe),label:l,link:o(V),listItem:o(ze),listItemValue:p,listOrdered:o(K,c),listUnordered:o(K),paragraph:o(ve),reference:d,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:o(te),strong:o(kt),thematicBreak:o(ul)},exit:{atxHeading:u(),atxHeadingSequence:F,autolink:u(),autolinkEmail:se,autolinkProtocol:le,blockQuote:u(),characterEscapeValue:y,characterReferenceMarkerHexadecimal:me,characterReferenceMarkerNumeric:me,characterReferenceValue:Y,characterReference:we,codeFenced:u(v),codeFencedFence:w,codeFencedFenceInfo:h,codeFencedFenceMeta:g,codeFlowValue:y,codeIndented:u(x),codeText:u(D),codeTextData:y,data:y,definition:u(),definitionDestinationString:L,definitionLabelString:I,definitionTitleString:C,emphasis:u(),hardBreakEscape:u(_),hardBreakTrailing:u(_),htmlFlow:u(P),htmlFlowData:y,htmlText:u(R),htmlTextData:y,image:u(Q),label:ee,labelText:ie,lineEnding:T,link:u(re),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:ae,resourceDestinationString:m,resourceTitleString:Z,resource:fe,setextHeading:u(W),setextHeadingLineSequence:$,setextHeadingText:k,strong:u(),thematicBreak:u()}};si(n,(e||{}).mdastExtensions||[]);const t={};return r;function r(b){let E={type:"root",children:[]};const N={stack:[E],tokenStack:[],config:n,enter:a,exit:s,buffer:l,resume:f,data:t},H=[];let G=-1;for(;++G<b.length;)if(b[G][1].type==="listOrdered"||b[G][1].type==="listUnordered")if(b[G][0]==="enter")H.push(G);else{const De=H.pop();G=i(b,De,G)}for(G=-1;++G<b.length;){const De=n[b[G][0]];ui.call(De,b[G][1].type)&&De[b[G][1].type].call(Object.assign({sliceSerialize:b[G][2].sliceSerialize},N),b[G][1])}if(N.tokenStack.length>0){const De=N.tokenStack[N.tokenStack.length-1];(De[1]||Sr).call(N,void 0,De[0])}for(E.position={start:Ue(b.length>0?b[0][1].start:{line:1,column:1,offset:0}),end:Ue(b.length>0?b[b.length-2][1].end:{line:1,column:1,offset:0})},G=-1;++G<n.transforms.length;)E=n.transforms[G](E)||E;return E}function i(b,E,N){let H=E-1,G=-1,De=!1,Xe,Me,bt,wt;for(;++H<=N;){const Se=b[H];switch(Se[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Se[0]==="enter"?G++:G--,wt=void 0;break}case"lineEndingBlank":{Se[0]==="enter"&&(Xe&&!wt&&!G&&!bt&&(bt=H),wt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:wt=void 0}if(!G&&Se[0]==="enter"&&Se[1].type==="listItemPrefix"||G===-1&&Se[0]==="exit"&&(Se[1].type==="listUnordered"||Se[1].type==="listOrdered")){if(Xe){let lt=H;for(Me=void 0;lt--;){const Be=b[lt];if(Be[1].type==="lineEnding"||Be[1].type==="lineEndingBlank"){if(Be[0]==="exit")continue;Me&&(b[Me][1].type="lineEndingBlank",De=!0),Be[1].type="lineEnding",Me=lt}else if(!(Be[1].type==="linePrefix"||Be[1].type==="blockQuotePrefix"||Be[1].type==="blockQuotePrefixWhitespace"||Be[1].type==="blockQuoteMarker"||Be[1].type==="listItemIndent"))break}bt&&(!Me||bt<Me)&&(Xe._spread=!0),Xe.end=Object.assign({},Me?b[Me][1].start:Se[1].end),b.splice(Me||H,0,["exit",Xe,Se[2]]),H++,N++}if(Se[1].type==="listItemPrefix"){const lt={type:"listItem",_spread:!1,start:Object.assign({},Se[1].start),end:void 0};Xe=lt,b.splice(H,0,["enter",lt,Se[2]]),H++,N++,bt=void 0,wt=!0}}}return b[E][1]._spread=De,N}function o(b,E){return N;function N(H){a.call(this,b(H),H),E&&E.call(this,H)}}function l(){this.stack.push({type:"fragment",children:[]})}function a(b,E,N){this.stack[this.stack.length-1].children.push(b),this.stack.push(b),this.tokenStack.push([E,N||void 0]),b.position={start:Ue(E.start),end:void 0}}function u(b){return E;function E(N){b&&b.call(this,N),s.call(this,N)}}function s(b,E){const N=this.stack.pop(),H=this.tokenStack.pop();if(H)H[0].type!==b.type&&(E?E.call(this,b,H[0]):(H[1]||Sr).call(this,b,H[0]));else throw new Error("Cannot close `"+b.type+"` ("+At({start:b.start,end:b.end})+"): it’s not open");N.position.end=Ue(b.end)}function f(){return Dn(this.stack.pop())}function c(){this.data.expectingFirstListItemValue=!0}function p(b){if(this.data.expectingFirstListItemValue){const E=this.stack[this.stack.length-2];E.start=Number.parseInt(this.sliceSerialize(b),10),this.data.expectingFirstListItemValue=void 0}}function h(){const b=this.resume(),E=this.stack[this.stack.length-1];E.lang=b}function g(){const b=this.resume(),E=this.stack[this.stack.length-1];E.meta=b}function w(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function v(){const b=this.resume(),E=this.stack[this.stack.length-1];E.value=b.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function x(){const b=this.resume(),E=this.stack[this.stack.length-1];E.value=b.replace(/(\r?\n|\r)$/g,"")}function I(b){const E=this.resume(),N=this.stack[this.stack.length-1];N.label=E,N.identifier=Le(this.sliceSerialize(b)).toLowerCase()}function C(){const b=this.resume(),E=this.stack[this.stack.length-1];E.title=b}function L(){const b=this.resume(),E=this.stack[this.stack.length-1];E.url=b}function F(b){const E=this.stack[this.stack.length-1];if(!E.depth){const N=this.sliceSerialize(b).length;E.depth=N}}function k(){this.data.setextHeadingSlurpLineEnding=!0}function $(b){const E=this.stack[this.stack.length-1];E.depth=this.sliceSerialize(b).codePointAt(0)===61?1:2}function W(){this.data.setextHeadingSlurpLineEnding=void 0}function B(b){const N=this.stack[this.stack.length-1].children;let H=N[N.length-1];(!H||H.type!=="text")&&(H=al(),H.position={start:Ue(b.start),end:void 0},N.push(H)),this.stack.push(H)}function y(b){const E=this.stack.pop();E.value+=this.sliceSerialize(b),E.position.end=Ue(b.end)}function T(b){const E=this.stack[this.stack.length-1];if(this.data.atHardBreak){const N=E.children[E.children.length-1];N.position.end=Ue(b.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&n.canContainEols.includes(E.type)&&(B.call(this,b),y.call(this,b))}function _(){this.data.atHardBreak=!0}function P(){const b=this.resume(),E=this.stack[this.stack.length-1];E.value=b}function R(){const b=this.resume(),E=this.stack[this.stack.length-1];E.value=b}function D(){const b=this.resume(),E=this.stack[this.stack.length-1];E.value=b}function re(){const b=this.stack[this.stack.length-1];if(this.data.inReference){const E=this.data.referenceType||"shortcut";b.type+="Reference",b.referenceType=E,delete b.url,delete b.title}else delete b.identifier,delete b.label;this.data.referenceType=void 0}function Q(){const b=this.stack[this.stack.length-1];if(this.data.inReference){const E=this.data.referenceType||"shortcut";b.type+="Reference",b.referenceType=E,delete b.url,delete b.title}else delete b.identifier,delete b.label;this.data.referenceType=void 0}function ie(b){const E=this.sliceSerialize(b),N=this.stack[this.stack.length-2];N.label=pu(E),N.identifier=Le(E).toLowerCase()}function ee(){const b=this.stack[this.stack.length-1],E=this.resume(),N=this.stack[this.stack.length-1];if(this.data.inReference=!0,N.type==="link"){const H=b.children;N.children=H}else N.alt=E}function m(){const b=this.resume(),E=this.stack[this.stack.length-1];E.url=b}function Z(){const b=this.resume(),E=this.stack[this.stack.length-1];E.title=b}function fe(){this.data.inReference=void 0}function d(){this.data.referenceType="collapsed"}function ae(b){const E=this.resume(),N=this.stack[this.stack.length-1];N.label=E,N.identifier=Le(this.sliceSerialize(b)).toLowerCase(),this.data.referenceType="full"}function me(b){this.data.characterReferenceType=b.type}function Y(b){const E=this.sliceSerialize(b),N=this.data.characterReferenceType;let H;N?(H=Zr(E,N==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):H=Ln(E);const G=this.stack[this.stack.length-1];G.value+=H}function we(b){const E=this.stack.pop();E.position.end=Ue(b.end)}function le(b){y.call(this,b);const E=this.stack[this.stack.length-1];E.url=this.sliceSerialize(b)}function se(b){y.call(this,b);const E=this.stack[this.stack.length-1];E.url="mailto:"+this.sliceSerialize(b)}function Ee(){return{type:"blockquote",children:[]}}function je(){return{type:"code",lang:null,meta:null,value:""}}function xt(){return{type:"inlineCode",value:""}}function Ke(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Ge(){return{type:"emphasis",children:[]}}function te(){return{type:"heading",depth:0,children:[]}}function de(){return{type:"break"}}function Te(){return{type:"html",value:""}}function Pe(){return{type:"image",title:null,url:"",alt:null}}function V(){return{type:"link",title:null,url:"",children:[]}}function K(b){return{type:"list",ordered:b.type==="listOrdered",start:null,spread:b._spread,children:[]}}function ze(b){return{type:"listItem",spread:b._spread,checked:null,children:[]}}function ve(){return{type:"paragraph",children:[]}}function kt(){return{type:"strong",children:[]}}function al(){return{type:"text",value:""}}function ul(){return{type:"thematicBreak"}}}function Ue(e){return{line:e.line,column:e.column,offset:e.offset}}function si(e,n){let t=-1;for(;++t<n.length;){const r=n[t];Array.isArray(r)?si(e,r):yu(e,r)}}function yu(e,n){let t;for(t in n)if(ui.call(n,t))switch(t){case"canContainEols":{const r=n[t];r&&e[t].push(...r);break}case"transforms":{const r=n[t];r&&e[t].push(...r);break}case"enter":case"exit":{const r=n[t];r&&Object.assign(e[t],r);break}}}function Sr(e,n){throw e?new Error("Cannot close `"+e.type+"` ("+At({start:e.start,end:e.end})+"): a different token (`"+n.type+"`, "+At({start:n.start,end:n.end})+") is open"):new Error("Cannot close document, a token (`"+n.type+"`, "+At({start:n.start,end:n.end})+") is still open")}function xu(e){const n=this;n.parser=t;function t(r){return du(r,{...n.data("settings"),...e,extensions:n.data("micromarkExtensions")||[],mdastExtensions:n.data("fromMarkdownExtensions")||[]})}}function Ut(e,n){const t=String(e);if(typeof n!="string")throw new TypeError("Expected character");let r=0,i=t.indexOf(n);for(;i!==-1;)r++,i=t.indexOf(n,i+n.length);return r}function ku(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}const Kt=(function(e){if(e==null)return Su;if(typeof e=="function")return Gt(e);if(typeof e=="object")return Array.isArray(e)?bu(e):wu(e);if(typeof e=="string")return vu(e);throw new Error("Expected function, string, or object as test")});function bu(e){const n=[];let t=-1;for(;++t<e.length;)n[t]=Kt(e[t]);return Gt(r);function r(...i){let o=-1;for(;++o<n.length;)if(n[o].apply(this,i))return!0;return!1}}function wu(e){const n=e;return Gt(t);function t(r){const i=r;let o;for(o in e)if(i[o]!==n[o])return!1;return!0}}function vu(e){return Gt(n);function n(t){return t&&t.type===e}}function Gt(e){return n;function n(t,r,i){return!!(Cu(t)&&e.call(this,t,typeof r=="number"?r:void 0,i||void 0))}}function Su(){return!0}function Cu(e){return e!==null&&typeof e=="object"&&"type"in e}const ci=[],Au=!0,Cn=!1,Iu="skip";function fi(e,n,t,r){let i;typeof n=="function"&&typeof t!="function"?(r=t,t=n):i=n;const o=Kt(i),l=r?-1:1;a(e,void 0,[])();function a(u,s,f){const c=u&&typeof u=="object"?u:{};if(typeof c.type=="string"){const h=typeof c.tagName=="string"?c.tagName:typeof c.name=="string"?c.name:void 0;Object.defineProperty(p,"name",{value:"node ("+(u.type+(h?"<"+h+">":""))+")"})}return p;function p(){let h=ci,g,w,v;if((!n||o(u,s,f[f.length-1]||void 0))&&(h=Eu(t(u,f)),h[0]===Cn))return h;if("children"in u&&u.children){const x=u;if(x.children&&h[0]!==Iu)for(w=(r?x.children.length:-1)+l,v=f.concat(x);w>-1&&w<x.children.length;){const I=x.children[w];if(g=a(I,w,v)(),g[0]===Cn)return g;w=typeof g[1]=="number"?g[1]:w+l}}return h}}}function Eu(e){return Array.isArray(e)?e:typeof e=="number"?[Au,e]:e==null?ci:[e]}function _u(e,n,t){const i=Kt((t||{}).ignore||[]),o=Tu(n);let l=-1;for(;++l<o.length;)fi(e,"text",a);function a(s,f){let c=-1,p;for(;++c<f.length;){const h=f[c],g=p?p.children:void 0;if(i(h,g?g.indexOf(h):void 0,p))return;p=h}if(p)return u(s,f)}function u(s,f){const c=f[f.length-1],p=o[l][0],h=o[l][1];let g=0;const v=c.children.indexOf(s);let x=!1,I=[];p.lastIndex=0;let C=p.exec(s.value);for(;C;){const L=C.index,F={index:C.index,input:C.input,stack:[...f,s]};let k=h(...C,F);if(typeof k=="string"&&(k=k.length>0?{type:"text",value:k}:void 0),k===!1?p.lastIndex=L+1:(g!==L&&I.push({type:"text",value:s.value.slice(g,L)}),Array.isArray(k)?I.push(...k):k&&I.push(k),g=L+C[0].length,x=!0),!p.global)break;C=p.exec(s.value)}return x?(g<s.value.length&&I.push({type:"text",value:s.value.slice(g)}),c.children.splice(v,1,...I)):I=[s],v+I.length}}function Tu(e){const n=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const t=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<t.length;){const i=t[r];n.push([Pu(i[0]),zu(i[1])])}return n}function Pu(e){return typeof e=="string"?new RegExp(ku(e),"g"):e}function zu(e){return typeof e=="function"?e:function(){return e}}const hn="phrasing",pn=["autolink","link","image","label"];function Du(){return{transforms:[Bu],enter:{literalAutolink:Fu,literalAutolinkEmail:mn,literalAutolinkHttp:mn,literalAutolinkWww:mn},exit:{literalAutolink:Mu,literalAutolinkEmail:Ru,literalAutolinkHttp:Nu,literalAutolinkWww:Ou}}}function Lu(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:hn,notInConstruct:pn},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:hn,notInConstruct:pn},{character:":",before:"[ps]",after:"\\/",inConstruct:hn,notInConstruct:pn}]}}function Fu(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function mn(e){this.config.enter.autolinkProtocol.call(this,e)}function Nu(e){this.config.exit.autolinkProtocol.call(this,e)}function Ou(e){this.config.exit.data.call(this,e);const n=this.stack[this.stack.length-1];n.type,n.url="http://"+this.sliceSerialize(e)}function Ru(e){this.config.exit.autolinkEmail.call(this,e)}function Mu(e){this.exit(e)}function Bu(e){_u(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,$u],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),ju]],{ignore:["link","linkReference"]})}function $u(e,n,t,r,i){let o="";if(!hi(i)||(/^w/i.test(n)&&(t=n+t,n="",o="http://"),!qu(t)))return!1;const l=Hu(t+r);if(!l[0])return!1;const a={type:"link",title:null,url:o+n+l[0],children:[{type:"text",value:n+l[0]}]};return l[1]?[a,{type:"text",value:l[1]}]:a}function ju(e,n,t,r){return!hi(r,!0)||/[-\d_]$/.test(t)?!1:{type:"link",title:null,url:"mailto:"+n+"@"+t,children:[{type:"text",value:n+"@"+t}]}}function qu(e){const n=e.split(".");return!(n.length<2||n[n.length-1]&&(/_/.test(n[n.length-1])||!/[a-zA-Z\d]/.test(n[n.length-1]))||n[n.length-2]&&(/_/.test(n[n.length-2])||!/[a-zA-Z\d]/.test(n[n.length-2])))}function Hu(e){const n=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!n)return[e,void 0];e=e.slice(0,n.index);let t=n[0],r=t.indexOf(")");const i=Ut(e,"(");let o=Ut(e,")");for(;r!==-1&&i>o;)e+=t.slice(0,r+1),t=t.slice(r+1),r=t.indexOf(")"),o++;return[e,t]}function hi(e,n){const t=e.input.charCodeAt(e.index-1);return(e.index===0||tt(t)||Qt(t))&&(!n||t!==47)}pi.peek=Zu;function Uu(){this.buffer()}function Vu(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function Wu(){this.buffer()}function Qu(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function Yu(e){const n=this.resume(),t=this.stack[this.stack.length-1];t.type,t.identifier=Le(this.sliceSerialize(e)).toLowerCase(),t.label=n}function Ku(e){this.exit(e)}function Gu(e){const n=this.resume(),t=this.stack[this.stack.length-1];t.type,t.identifier=Le(this.sliceSerialize(e)).toLowerCase(),t.label=n}function Xu(e){this.exit(e)}function Zu(){return"["}function pi(e,n,t,r){const i=t.createTracker(r);let o=i.move("[^");const l=t.enter("footnoteReference"),a=t.enter("reference");return o+=i.move(t.safe(t.associationId(e),{after:"]",before:o})),a(),l(),o+=i.move("]"),o}function Ju(){return{enter:{gfmFootnoteCallString:Uu,gfmFootnoteCall:Vu,gfmFootnoteDefinitionLabelString:Wu,gfmFootnoteDefinition:Qu},exit:{gfmFootnoteCallString:Yu,gfmFootnoteCall:Ku,gfmFootnoteDefinitionLabelString:Gu,gfmFootnoteDefinition:Xu}}}function es(e){let n=!1;return e&&e.firstLineBlank&&(n=!0),{handlers:{footnoteDefinition:t,footnoteReference:pi},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function t(r,i,o,l){const a=o.createTracker(l);let u=a.move("[^");const s=o.enter("footnoteDefinition"),f=o.enter("label");return u+=a.move(o.safe(o.associationId(r),{before:u,after:"]"})),f(),u+=a.move("]:"),r.children&&r.children.length>0&&(a.shift(4),u+=a.move((n?`
|
|
4
|
-
`:" ")+o.indentLines(o.containerFlow(r,a.current()),n?mi:ts))),s(),u}}function ts(e,n,t){return n===0?e:mi(e,n,t)}function mi(e,n,t){return(t?"":" ")+e}const ns=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];di.peek=as;function rs(){return{canContainEols:["delete"],enter:{strikethrough:ls},exit:{strikethrough:os}}}function is(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:ns}],handlers:{delete:di}}}function ls(e){this.enter({type:"delete",children:[]},e)}function os(e){this.exit(e)}function di(e,n,t,r){const i=t.createTracker(r),o=t.enter("strikethrough");let l=i.move("~~");return l+=t.containerPhrasing(e,{...i.current(),before:l,after:"~"}),l+=i.move("~~"),o(),l}function as(){return"~"}function us(e){return e.length}function ss(e,n){const t=n||{},r=(t.align||[]).concat(),i=t.stringLength||us,o=[],l=[],a=[],u=[];let s=0,f=-1;for(;++f<e.length;){const w=[],v=[];let x=-1;for(e[f].length>s&&(s=e[f].length);++x<e[f].length;){const I=cs(e[f][x]);if(t.alignDelimiters!==!1){const C=i(I);v[x]=C,(u[x]===void 0||C>u[x])&&(u[x]=C)}w.push(I)}l[f]=w,a[f]=v}let c=-1;if(typeof r=="object"&&"length"in r)for(;++c<s;)o[c]=Cr(r[c]);else{const w=Cr(r);for(;++c<s;)o[c]=w}c=-1;const p=[],h=[];for(;++c<s;){const w=o[c];let v="",x="";w===99?(v=":",x=":"):w===108?v=":":w===114&&(x=":");let I=t.alignDelimiters===!1?1:Math.max(1,u[c]-v.length-x.length);const C=v+"-".repeat(I)+x;t.alignDelimiters!==!1&&(I=v.length+I+x.length,I>u[c]&&(u[c]=I),h[c]=I),p[c]=C}l.splice(1,0,p),a.splice(1,0,h),f=-1;const g=[];for(;++f<l.length;){const w=l[f],v=a[f];c=-1;const x=[];for(;++c<s;){const I=w[c]||"";let C="",L="";if(t.alignDelimiters!==!1){const
|
|
3
|
+
`;break}case-2:{l=n?" ":" ";break}case-1:{if(!n&&i)continue;l=" ";break}default:l=String.fromCharCode(o)}i=o===-2,r.push(l)}return r.join("")}function su(e){const r={constructs:Xr([lu,...(e||{}).extensions||[]]),content:i(Co),defined:[],document:i(Io),flow:i(Ua),lazy:{},string:i(Qa),text:i(Ya)};return r;function i(o){return l;function l(a){return ou(r,o,a)}}}function cu(e){for(;!ni(e););return e}const vr=/[\0\t\n\r]/g;function fu(){let e=1,n="",t=!0,r;return i;function i(o,l,a){const u=[];let s,f,c,p,h;for(o=n+(typeof o=="string"?o.toString():new TextDecoder(l||void 0).decode(o)),c=0,n="",t&&(o.charCodeAt(0)===65279&&c++,t=void 0);c<o.length;){if(vr.lastIndex=c,s=vr.exec(o),p=s&&s.index!==void 0?s.index:o.length,h=o.charCodeAt(p),!s){n=o.slice(c);break}if(h===10&&c===p&&r)u.push(-3),r=void 0;else switch(r&&(u.push(-5),r=void 0),c<p&&(u.push(o.slice(c,p)),e+=p-c),h){case 0:{u.push(65533),e++;break}case 9:{for(f=Math.ceil(e/4)*4,u.push(-2);e++<f;)u.push(-1);break}case 10:{u.push(-4),e=1;break}default:r=!0,e=1}c=p+1}return a&&(r&&u.push(-5),n&&u.push(n),u.push(null)),u}}const hu=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function pu(e){return e.replace(hu,mu)}function mu(e,n,t){if(n)return n;if(t.charCodeAt(0)===35){const i=t.charCodeAt(1),o=i===120||i===88;return Zr(t.slice(o?2:1),o?16:10)}return Ln(t)||e}const ui={}.hasOwnProperty;function du(e,n,t){return n&&typeof n=="object"&&(t=n,n=void 0),gu(t)(cu(su(t).document().write(fu()(e,n,!0))))}function gu(e){const n={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(V),autolinkProtocol:B,autolinkEmail:B,atxHeading:o(te),blockQuote:o(Ee),characterEscape:B,characterReference:B,codeFenced:o(je),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:o(je,l),codeText:o(xt,l),codeTextData:B,data:B,codeFlowValue:B,definition:o(Ke),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:o(Ge),hardBreakEscape:o(de),hardBreakTrailing:o(de),htmlFlow:o(Te,l),htmlFlowData:B,htmlText:o(Te,l),htmlTextData:B,image:o(Pe),label:l,link:o(V),listItem:o(ze),listItemValue:p,listOrdered:o(K,c),listUnordered:o(K),paragraph:o(ve),reference:d,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:o(te),strong:o(kt),thematicBreak:o(ul)},exit:{atxHeading:u(),atxHeadingSequence:N,autolink:u(),autolinkEmail:se,autolinkProtocol:le,blockQuote:u(),characterEscapeValue:y,characterReferenceMarkerHexadecimal:me,characterReferenceMarkerNumeric:me,characterReferenceValue:Y,characterReference:we,codeFenced:u(v),codeFencedFence:w,codeFencedFenceInfo:h,codeFencedFenceMeta:g,codeFlowValue:y,codeIndented:u(x),codeText:u(D),codeTextData:y,data:y,definition:u(),definitionDestinationString:L,definitionLabelString:I,definitionTitleString:C,emphasis:u(),hardBreakEscape:u(_),hardBreakTrailing:u(_),htmlFlow:u(P),htmlFlowData:y,htmlText:u(R),htmlTextData:y,image:u(Q),label:ee,labelText:ie,lineEnding:T,link:u(re),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:ae,resourceDestinationString:m,resourceTitleString:J,resource:fe,setextHeading:u(W),setextHeadingLineSequence:$,setextHeadingText:k,strong:u(),thematicBreak:u()}};si(n,(e||{}).mdastExtensions||[]);const t={};return r;function r(b){let E={type:"root",children:[]};const O={stack:[E],tokenStack:[],config:n,enter:a,exit:s,buffer:l,resume:f,data:t},H=[];let G=-1;for(;++G<b.length;)if(b[G][1].type==="listOrdered"||b[G][1].type==="listUnordered")if(b[G][0]==="enter")H.push(G);else{const De=H.pop();G=i(b,De,G)}for(G=-1;++G<b.length;){const De=n[b[G][0]];ui.call(De,b[G][1].type)&&De[b[G][1].type].call(Object.assign({sliceSerialize:b[G][2].sliceSerialize},O),b[G][1])}if(O.tokenStack.length>0){const De=O.tokenStack[O.tokenStack.length-1];(De[1]||Sr).call(O,void 0,De[0])}for(E.position={start:Ue(b.length>0?b[0][1].start:{line:1,column:1,offset:0}),end:Ue(b.length>0?b[b.length-2][1].end:{line:1,column:1,offset:0})},G=-1;++G<n.transforms.length;)E=n.transforms[G](E)||E;return E}function i(b,E,O){let H=E-1,G=-1,De=!1,Xe,Me,bt,wt;for(;++H<=O;){const Se=b[H];switch(Se[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Se[0]==="enter"?G++:G--,wt=void 0;break}case"lineEndingBlank":{Se[0]==="enter"&&(Xe&&!wt&&!G&&!bt&&(bt=H),wt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:wt=void 0}if(!G&&Se[0]==="enter"&&Se[1].type==="listItemPrefix"||G===-1&&Se[0]==="exit"&&(Se[1].type==="listUnordered"||Se[1].type==="listOrdered")){if(Xe){let ot=H;for(Me=void 0;ot--;){const Be=b[ot];if(Be[1].type==="lineEnding"||Be[1].type==="lineEndingBlank"){if(Be[0]==="exit")continue;Me&&(b[Me][1].type="lineEndingBlank",De=!0),Be[1].type="lineEnding",Me=ot}else if(!(Be[1].type==="linePrefix"||Be[1].type==="blockQuotePrefix"||Be[1].type==="blockQuotePrefixWhitespace"||Be[1].type==="blockQuoteMarker"||Be[1].type==="listItemIndent"))break}bt&&(!Me||bt<Me)&&(Xe._spread=!0),Xe.end=Object.assign({},Me?b[Me][1].start:Se[1].end),b.splice(Me||H,0,["exit",Xe,Se[2]]),H++,O++}if(Se[1].type==="listItemPrefix"){const ot={type:"listItem",_spread:!1,start:Object.assign({},Se[1].start),end:void 0};Xe=ot,b.splice(H,0,["enter",ot,Se[2]]),H++,O++,bt=void 0,wt=!0}}}return b[E][1]._spread=De,O}function o(b,E){return O;function O(H){a.call(this,b(H),H),E&&E.call(this,H)}}function l(){this.stack.push({type:"fragment",children:[]})}function a(b,E,O){this.stack[this.stack.length-1].children.push(b),this.stack.push(b),this.tokenStack.push([E,O||void 0]),b.position={start:Ue(E.start),end:void 0}}function u(b){return E;function E(O){b&&b.call(this,O),s.call(this,O)}}function s(b,E){const O=this.stack.pop(),H=this.tokenStack.pop();if(H)H[0].type!==b.type&&(E?E.call(this,b,H[0]):(H[1]||Sr).call(this,b,H[0]));else throw new Error("Cannot close `"+b.type+"` ("+At({start:b.start,end:b.end})+"): it’s not open");O.position.end=Ue(b.end)}function f(){return Dn(this.stack.pop())}function c(){this.data.expectingFirstListItemValue=!0}function p(b){if(this.data.expectingFirstListItemValue){const E=this.stack[this.stack.length-2];E.start=Number.parseInt(this.sliceSerialize(b),10),this.data.expectingFirstListItemValue=void 0}}function h(){const b=this.resume(),E=this.stack[this.stack.length-1];E.lang=b}function g(){const b=this.resume(),E=this.stack[this.stack.length-1];E.meta=b}function w(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function v(){const b=this.resume(),E=this.stack[this.stack.length-1];E.value=b.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function x(){const b=this.resume(),E=this.stack[this.stack.length-1];E.value=b.replace(/(\r?\n|\r)$/g,"")}function I(b){const E=this.resume(),O=this.stack[this.stack.length-1];O.label=E,O.identifier=Le(this.sliceSerialize(b)).toLowerCase()}function C(){const b=this.resume(),E=this.stack[this.stack.length-1];E.title=b}function L(){const b=this.resume(),E=this.stack[this.stack.length-1];E.url=b}function N(b){const E=this.stack[this.stack.length-1];if(!E.depth){const O=this.sliceSerialize(b).length;E.depth=O}}function k(){this.data.setextHeadingSlurpLineEnding=!0}function $(b){const E=this.stack[this.stack.length-1];E.depth=this.sliceSerialize(b).codePointAt(0)===61?1:2}function W(){this.data.setextHeadingSlurpLineEnding=void 0}function B(b){const O=this.stack[this.stack.length-1].children;let H=O[O.length-1];(!H||H.type!=="text")&&(H=al(),H.position={start:Ue(b.start),end:void 0},O.push(H)),this.stack.push(H)}function y(b){const E=this.stack.pop();E.value+=this.sliceSerialize(b),E.position.end=Ue(b.end)}function T(b){const E=this.stack[this.stack.length-1];if(this.data.atHardBreak){const O=E.children[E.children.length-1];O.position.end=Ue(b.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&n.canContainEols.includes(E.type)&&(B.call(this,b),y.call(this,b))}function _(){this.data.atHardBreak=!0}function P(){const b=this.resume(),E=this.stack[this.stack.length-1];E.value=b}function R(){const b=this.resume(),E=this.stack[this.stack.length-1];E.value=b}function D(){const b=this.resume(),E=this.stack[this.stack.length-1];E.value=b}function re(){const b=this.stack[this.stack.length-1];if(this.data.inReference){const E=this.data.referenceType||"shortcut";b.type+="Reference",b.referenceType=E,delete b.url,delete b.title}else delete b.identifier,delete b.label;this.data.referenceType=void 0}function Q(){const b=this.stack[this.stack.length-1];if(this.data.inReference){const E=this.data.referenceType||"shortcut";b.type+="Reference",b.referenceType=E,delete b.url,delete b.title}else delete b.identifier,delete b.label;this.data.referenceType=void 0}function ie(b){const E=this.sliceSerialize(b),O=this.stack[this.stack.length-2];O.label=pu(E),O.identifier=Le(E).toLowerCase()}function ee(){const b=this.stack[this.stack.length-1],E=this.resume(),O=this.stack[this.stack.length-1];if(this.data.inReference=!0,O.type==="link"){const H=b.children;O.children=H}else O.alt=E}function m(){const b=this.resume(),E=this.stack[this.stack.length-1];E.url=b}function J(){const b=this.resume(),E=this.stack[this.stack.length-1];E.title=b}function fe(){this.data.inReference=void 0}function d(){this.data.referenceType="collapsed"}function ae(b){const E=this.resume(),O=this.stack[this.stack.length-1];O.label=E,O.identifier=Le(this.sliceSerialize(b)).toLowerCase(),this.data.referenceType="full"}function me(b){this.data.characterReferenceType=b.type}function Y(b){const E=this.sliceSerialize(b),O=this.data.characterReferenceType;let H;O?(H=Zr(E,O==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):H=Ln(E);const G=this.stack[this.stack.length-1];G.value+=H}function we(b){const E=this.stack.pop();E.position.end=Ue(b.end)}function le(b){y.call(this,b);const E=this.stack[this.stack.length-1];E.url=this.sliceSerialize(b)}function se(b){y.call(this,b);const E=this.stack[this.stack.length-1];E.url="mailto:"+this.sliceSerialize(b)}function Ee(){return{type:"blockquote",children:[]}}function je(){return{type:"code",lang:null,meta:null,value:""}}function xt(){return{type:"inlineCode",value:""}}function Ke(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Ge(){return{type:"emphasis",children:[]}}function te(){return{type:"heading",depth:0,children:[]}}function de(){return{type:"break"}}function Te(){return{type:"html",value:""}}function Pe(){return{type:"image",title:null,url:"",alt:null}}function V(){return{type:"link",title:null,url:"",children:[]}}function K(b){return{type:"list",ordered:b.type==="listOrdered",start:null,spread:b._spread,children:[]}}function ze(b){return{type:"listItem",spread:b._spread,checked:null,children:[]}}function ve(){return{type:"paragraph",children:[]}}function kt(){return{type:"strong",children:[]}}function al(){return{type:"text",value:""}}function ul(){return{type:"thematicBreak"}}}function Ue(e){return{line:e.line,column:e.column,offset:e.offset}}function si(e,n){let t=-1;for(;++t<n.length;){const r=n[t];Array.isArray(r)?si(e,r):yu(e,r)}}function yu(e,n){let t;for(t in n)if(ui.call(n,t))switch(t){case"canContainEols":{const r=n[t];r&&e[t].push(...r);break}case"transforms":{const r=n[t];r&&e[t].push(...r);break}case"enter":case"exit":{const r=n[t];r&&Object.assign(e[t],r);break}}}function Sr(e,n){throw e?new Error("Cannot close `"+e.type+"` ("+At({start:e.start,end:e.end})+"): a different token (`"+n.type+"`, "+At({start:n.start,end:n.end})+") is open"):new Error("Cannot close document, a token (`"+n.type+"`, "+At({start:n.start,end:n.end})+") is still open")}function xu(e){const n=this;n.parser=t;function t(r){return du(r,{...n.data("settings"),...e,extensions:n.data("micromarkExtensions")||[],mdastExtensions:n.data("fromMarkdownExtensions")||[]})}}function Ut(e,n){const t=String(e);if(typeof n!="string")throw new TypeError("Expected character");let r=0,i=t.indexOf(n);for(;i!==-1;)r++,i=t.indexOf(n,i+n.length);return r}function ku(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}const Kt=(function(e){if(e==null)return Su;if(typeof e=="function")return Gt(e);if(typeof e=="object")return Array.isArray(e)?bu(e):wu(e);if(typeof e=="string")return vu(e);throw new Error("Expected function, string, or object as test")});function bu(e){const n=[];let t=-1;for(;++t<e.length;)n[t]=Kt(e[t]);return Gt(r);function r(...i){let o=-1;for(;++o<n.length;)if(n[o].apply(this,i))return!0;return!1}}function wu(e){const n=e;return Gt(t);function t(r){const i=r;let o;for(o in e)if(i[o]!==n[o])return!1;return!0}}function vu(e){return Gt(n);function n(t){return t&&t.type===e}}function Gt(e){return n;function n(t,r,i){return!!(Cu(t)&&e.call(this,t,typeof r=="number"?r:void 0,i||void 0))}}function Su(){return!0}function Cu(e){return e!==null&&typeof e=="object"&&"type"in e}const ci=[],Au=!0,Cn=!1,Iu="skip";function fi(e,n,t,r){let i;typeof n=="function"&&typeof t!="function"?(r=t,t=n):i=n;const o=Kt(i),l=r?-1:1;a(e,void 0,[])();function a(u,s,f){const c=u&&typeof u=="object"?u:{};if(typeof c.type=="string"){const h=typeof c.tagName=="string"?c.tagName:typeof c.name=="string"?c.name:void 0;Object.defineProperty(p,"name",{value:"node ("+(u.type+(h?"<"+h+">":""))+")"})}return p;function p(){let h=ci,g,w,v;if((!n||o(u,s,f[f.length-1]||void 0))&&(h=Eu(t(u,f)),h[0]===Cn))return h;if("children"in u&&u.children){const x=u;if(x.children&&h[0]!==Iu)for(w=(r?x.children.length:-1)+l,v=f.concat(x);w>-1&&w<x.children.length;){const I=x.children[w];if(g=a(I,w,v)(),g[0]===Cn)return g;w=typeof g[1]=="number"?g[1]:w+l}}return h}}}function Eu(e){return Array.isArray(e)?e:typeof e=="number"?[Au,e]:e==null?ci:[e]}function _u(e,n,t){const i=Kt((t||{}).ignore||[]),o=Tu(n);let l=-1;for(;++l<o.length;)fi(e,"text",a);function a(s,f){let c=-1,p;for(;++c<f.length;){const h=f[c],g=p?p.children:void 0;if(i(h,g?g.indexOf(h):void 0,p))return;p=h}if(p)return u(s,f)}function u(s,f){const c=f[f.length-1],p=o[l][0],h=o[l][1];let g=0;const v=c.children.indexOf(s);let x=!1,I=[];p.lastIndex=0;let C=p.exec(s.value);for(;C;){const L=C.index,N={index:C.index,input:C.input,stack:[...f,s]};let k=h(...C,N);if(typeof k=="string"&&(k=k.length>0?{type:"text",value:k}:void 0),k===!1?p.lastIndex=L+1:(g!==L&&I.push({type:"text",value:s.value.slice(g,L)}),Array.isArray(k)?I.push(...k):k&&I.push(k),g=L+C[0].length,x=!0),!p.global)break;C=p.exec(s.value)}return x?(g<s.value.length&&I.push({type:"text",value:s.value.slice(g)}),c.children.splice(v,1,...I)):I=[s],v+I.length}}function Tu(e){const n=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const t=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<t.length;){const i=t[r];n.push([Pu(i[0]),zu(i[1])])}return n}function Pu(e){return typeof e=="string"?new RegExp(ku(e),"g"):e}function zu(e){return typeof e=="function"?e:function(){return e}}const hn="phrasing",pn=["autolink","link","image","label"];function Du(){return{transforms:[Bu],enter:{literalAutolink:Fu,literalAutolinkEmail:mn,literalAutolinkHttp:mn,literalAutolinkWww:mn},exit:{literalAutolink:Mu,literalAutolinkEmail:Ru,literalAutolinkHttp:Nu,literalAutolinkWww:Ou}}}function Lu(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:hn,notInConstruct:pn},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:hn,notInConstruct:pn},{character:":",before:"[ps]",after:"\\/",inConstruct:hn,notInConstruct:pn}]}}function Fu(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function mn(e){this.config.enter.autolinkProtocol.call(this,e)}function Nu(e){this.config.exit.autolinkProtocol.call(this,e)}function Ou(e){this.config.exit.data.call(this,e);const n=this.stack[this.stack.length-1];n.type,n.url="http://"+this.sliceSerialize(e)}function Ru(e){this.config.exit.autolinkEmail.call(this,e)}function Mu(e){this.exit(e)}function Bu(e){_u(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,$u],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),ju]],{ignore:["link","linkReference"]})}function $u(e,n,t,r,i){let o="";if(!hi(i)||(/^w/i.test(n)&&(t=n+t,n="",o="http://"),!qu(t)))return!1;const l=Hu(t+r);if(!l[0])return!1;const a={type:"link",title:null,url:o+n+l[0],children:[{type:"text",value:n+l[0]}]};return l[1]?[a,{type:"text",value:l[1]}]:a}function ju(e,n,t,r){return!hi(r,!0)||/[-\d_]$/.test(t)?!1:{type:"link",title:null,url:"mailto:"+n+"@"+t,children:[{type:"text",value:n+"@"+t}]}}function qu(e){const n=e.split(".");return!(n.length<2||n[n.length-1]&&(/_/.test(n[n.length-1])||!/[a-zA-Z\d]/.test(n[n.length-1]))||n[n.length-2]&&(/_/.test(n[n.length-2])||!/[a-zA-Z\d]/.test(n[n.length-2])))}function Hu(e){const n=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!n)return[e,void 0];e=e.slice(0,n.index);let t=n[0],r=t.indexOf(")");const i=Ut(e,"(");let o=Ut(e,")");for(;r!==-1&&i>o;)e+=t.slice(0,r+1),t=t.slice(r+1),r=t.indexOf(")"),o++;return[e,t]}function hi(e,n){const t=e.input.charCodeAt(e.index-1);return(e.index===0||nt(t)||Qt(t))&&(!n||t!==47)}pi.peek=Zu;function Uu(){this.buffer()}function Vu(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function Wu(){this.buffer()}function Qu(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function Yu(e){const n=this.resume(),t=this.stack[this.stack.length-1];t.type,t.identifier=Le(this.sliceSerialize(e)).toLowerCase(),t.label=n}function Ku(e){this.exit(e)}function Gu(e){const n=this.resume(),t=this.stack[this.stack.length-1];t.type,t.identifier=Le(this.sliceSerialize(e)).toLowerCase(),t.label=n}function Xu(e){this.exit(e)}function Zu(){return"["}function pi(e,n,t,r){const i=t.createTracker(r);let o=i.move("[^");const l=t.enter("footnoteReference"),a=t.enter("reference");return o+=i.move(t.safe(t.associationId(e),{after:"]",before:o})),a(),l(),o+=i.move("]"),o}function Ju(){return{enter:{gfmFootnoteCallString:Uu,gfmFootnoteCall:Vu,gfmFootnoteDefinitionLabelString:Wu,gfmFootnoteDefinition:Qu},exit:{gfmFootnoteCallString:Yu,gfmFootnoteCall:Ku,gfmFootnoteDefinitionLabelString:Gu,gfmFootnoteDefinition:Xu}}}function es(e){let n=!1;return e&&e.firstLineBlank&&(n=!0),{handlers:{footnoteDefinition:t,footnoteReference:pi},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function t(r,i,o,l){const a=o.createTracker(l);let u=a.move("[^");const s=o.enter("footnoteDefinition"),f=o.enter("label");return u+=a.move(o.safe(o.associationId(r),{before:u,after:"]"})),f(),u+=a.move("]:"),r.children&&r.children.length>0&&(a.shift(4),u+=a.move((n?`
|
|
4
|
+
`:" ")+o.indentLines(o.containerFlow(r,a.current()),n?mi:ts))),s(),u}}function ts(e,n,t){return n===0?e:mi(e,n,t)}function mi(e,n,t){return(t?"":" ")+e}const ns=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];di.peek=as;function rs(){return{canContainEols:["delete"],enter:{strikethrough:ls},exit:{strikethrough:os}}}function is(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:ns}],handlers:{delete:di}}}function ls(e){this.enter({type:"delete",children:[]},e)}function os(e){this.exit(e)}function di(e,n,t,r){const i=t.createTracker(r),o=t.enter("strikethrough");let l=i.move("~~");return l+=t.containerPhrasing(e,{...i.current(),before:l,after:"~"}),l+=i.move("~~"),o(),l}function as(){return"~"}function us(e){return e.length}function ss(e,n){const t=n||{},r=(t.align||[]).concat(),i=t.stringLength||us,o=[],l=[],a=[],u=[];let s=0,f=-1;for(;++f<e.length;){const w=[],v=[];let x=-1;for(e[f].length>s&&(s=e[f].length);++x<e[f].length;){const I=cs(e[f][x]);if(t.alignDelimiters!==!1){const C=i(I);v[x]=C,(u[x]===void 0||C>u[x])&&(u[x]=C)}w.push(I)}l[f]=w,a[f]=v}let c=-1;if(typeof r=="object"&&"length"in r)for(;++c<s;)o[c]=Cr(r[c]);else{const w=Cr(r);for(;++c<s;)o[c]=w}c=-1;const p=[],h=[];for(;++c<s;){const w=o[c];let v="",x="";w===99?(v=":",x=":"):w===108?v=":":w===114&&(x=":");let I=t.alignDelimiters===!1?1:Math.max(1,u[c]-v.length-x.length);const C=v+"-".repeat(I)+x;t.alignDelimiters!==!1&&(I=v.length+I+x.length,I>u[c]&&(u[c]=I),h[c]=I),p[c]=C}l.splice(1,0,p),a.splice(1,0,h),f=-1;const g=[];for(;++f<l.length;){const w=l[f],v=a[f];c=-1;const x=[];for(;++c<s;){const I=w[c]||"";let C="",L="";if(t.alignDelimiters!==!1){const N=u[c]-(v[c]||0),k=o[c];k===114?C=" ".repeat(N):k===99?N%2?(C=" ".repeat(N/2+.5),L=" ".repeat(N/2-.5)):(C=" ".repeat(N/2),L=C):L=" ".repeat(N)}t.delimiterStart!==!1&&!c&&x.push("|"),t.padding!==!1&&!(t.alignDelimiters===!1&&I==="")&&(t.delimiterStart!==!1||c)&&x.push(" "),t.alignDelimiters!==!1&&x.push(C),x.push(I),t.alignDelimiters!==!1&&x.push(L),t.padding!==!1&&x.push(" "),(t.delimiterEnd!==!1||c!==s-1)&&x.push("|")}g.push(t.delimiterEnd===!1?x.join("").replace(/ +$/,""):x.join(""))}return g.join(`
|
|
5
5
|
`)}function cs(e){return e==null?"":String(e)}function Cr(e){const n=typeof e=="string"?e.codePointAt(0):0;return n===67||n===99?99:n===76||n===108?108:n===82||n===114?114:0}const Ar={}.hasOwnProperty;function fs(e,n){const t=n||{};function r(i,...o){let l=r.invalid;const a=r.handlers;if(i&&Ar.call(i,e)){const u=String(i[e]);l=Ar.call(a,u)?a[u]:r.unknown}if(l)return l.call(this,i,...o)}return r.handlers=t.handlers||{},r.invalid=t.invalid,r.unknown=t.unknown,r}function hs(e,n,t,r){const i=t.enter("blockquote"),o=t.createTracker(r);o.move("> "),o.shift(2);const l=t.indentLines(t.containerFlow(e,o.current()),ps);return i(),l}function ps(e,n,t){return">"+(t?"":" ")+e}function ms(e,n){return Ir(e,n.inConstruct,!0)&&!Ir(e,n.notInConstruct,!1)}function Ir(e,n,t){if(typeof n=="string"&&(n=[n]),!n||n.length===0)return t;let r=-1;for(;++r<n.length;)if(e.includes(n[r]))return!0;return!1}function Er(e,n,t,r){let i=-1;for(;++i<t.unsafe.length;)if(t.unsafe[i].character===`
|
|
6
6
|
`&&ms(t.stack,t.unsafe[i]))return/[ \t]/.test(r.before)?"":" ";return`\\
|
|
7
7
|
`}function ds(e,n){const t=String(e);let r=t.indexOf(n),i=r,o=0,l=0;if(typeof n!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===i?++o>l&&(l=o):o=1,i=r+n.length,r=t.indexOf(n,i);return l}function gs(e,n){return!!(n.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function ys(e){const n=e.options.fence||"`";if(n!=="`"&&n!=="~")throw new Error("Cannot serialize code with `"+n+"` for `options.fence`, expected `` ` `` or `~`");return n}function xs(e,n,t,r){const i=ys(t),o=e.value||"",l=i==="`"?"GraveAccent":"Tilde";if(gs(e,t)){const c=t.enter("codeIndented"),p=t.indentLines(o,ks);return c(),p}const a=t.createTracker(r),u=i.repeat(Math.max(ds(o,i)+1,3)),s=t.enter("codeFenced");let f=a.move(u);if(e.lang){const c=t.enter(`codeFencedLang${l}`);f+=a.move(t.safe(e.lang,{before:f,after:" ",encode:["`"],...a.current()})),c()}if(e.lang&&e.meta){const c=t.enter(`codeFencedMeta${l}`);f+=a.move(" "),f+=a.move(t.safe(e.meta,{before:f,after:`
|
|
@@ -15,17 +15,17 @@ import{g as Zt,c as ft,a as ne,d as sl,p as cl,f as pe,b as qe,s as Jt}from"../c
|
|
|
15
15
|
`))+1))}const l="#".repeat(i),a=t.enter("headingAtx"),u=t.enter("phrasing");o.move(l+" ");let s=t.containerPhrasing(e,{before:"# ",after:`
|
|
16
16
|
`,...o.current()});return/^[\t ]/.test(s)&&(s=_t(s.charCodeAt(0))+s.slice(1)),s=s?l+" "+s:l,t.options.closeAtx&&(s+=" "+l),u(),a(),s}xi.peek=As;function xi(e){return e.value||""}function As(){return"<"}ki.peek=Is;function ki(e,n,t,r){const i=Nn(t),o=i==='"'?"Quote":"Apostrophe",l=t.enter("image");let a=t.enter("label");const u=t.createTracker(r);let s=u.move("![");return s+=u.move(t.safe(e.alt,{before:s,after:"]",...u.current()})),s+=u.move("]("),a(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(a=t.enter("destinationLiteral"),s+=u.move("<"),s+=u.move(t.safe(e.url,{before:s,after:">",...u.current()})),s+=u.move(">")):(a=t.enter("destinationRaw"),s+=u.move(t.safe(e.url,{before:s,after:e.title?" ":")",...u.current()}))),a(),e.title&&(a=t.enter(`title${o}`),s+=u.move(" "+i),s+=u.move(t.safe(e.title,{before:s,after:i,...u.current()})),s+=u.move(i),a()),s+=u.move(")"),l(),s}function Is(){return"!"}bi.peek=Es;function bi(e,n,t,r){const i=e.referenceType,o=t.enter("imageReference");let l=t.enter("label");const a=t.createTracker(r);let u=a.move("![");const s=t.safe(e.alt,{before:u,after:"]",...a.current()});u+=a.move(s+"]["),l();const f=t.stack;t.stack=[],l=t.enter("reference");const c=t.safe(t.associationId(e),{before:u,after:"]",...a.current()});return l(),t.stack=f,o(),i==="full"||!s||s!==c?u+=a.move(c+"]"):i==="shortcut"?u=u.slice(0,-1):u+=a.move("]"),u}function Es(){return"!"}wi.peek=_s;function wi(e,n,t){let r=e.value||"",i="`",o=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++o<t.unsafe.length;){const l=t.unsafe[o],a=t.compilePattern(l);let u;if(l.atBreak)for(;u=a.exec(r);){let s=u.index;r.charCodeAt(s)===10&&r.charCodeAt(s-1)===13&&s--,r=r.slice(0,s)+" "+r.slice(u.index+1)}}return i+r+i}function _s(){return"`"}function vi(e,n){const t=Dn(e);return!!(!n.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(t===e.url||"mailto:"+t===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}Si.peek=Ts;function Si(e,n,t,r){const i=Nn(t),o=i==='"'?"Quote":"Apostrophe",l=t.createTracker(r);let a,u;if(vi(e,t)){const f=t.stack;t.stack=[],a=t.enter("autolink");let c=l.move("<");return c+=l.move(t.containerPhrasing(e,{before:c,after:">",...l.current()})),c+=l.move(">"),a(),t.stack=f,c}a=t.enter("link"),u=t.enter("label");let s=l.move("[");return s+=l.move(t.containerPhrasing(e,{before:s,after:"](",...l.current()})),s+=l.move("]("),u(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(u=t.enter("destinationLiteral"),s+=l.move("<"),s+=l.move(t.safe(e.url,{before:s,after:">",...l.current()})),s+=l.move(">")):(u=t.enter("destinationRaw"),s+=l.move(t.safe(e.url,{before:s,after:e.title?" ":")",...l.current()}))),u(),e.title&&(u=t.enter(`title${o}`),s+=l.move(" "+i),s+=l.move(t.safe(e.title,{before:s,after:i,...l.current()})),s+=l.move(i),u()),s+=l.move(")"),a(),s}function Ts(e,n,t){return vi(e,t)?"<":"["}Ci.peek=Ps;function Ci(e,n,t,r){const i=e.referenceType,o=t.enter("linkReference");let l=t.enter("label");const a=t.createTracker(r);let u=a.move("[");const s=t.containerPhrasing(e,{before:u,after:"]",...a.current()});u+=a.move(s+"]["),l();const f=t.stack;t.stack=[],l=t.enter("reference");const c=t.safe(t.associationId(e),{before:u,after:"]",...a.current()});return l(),t.stack=f,o(),i==="full"||!s||s!==c?u+=a.move(c+"]"):i==="shortcut"?u=u.slice(0,-1):u+=a.move("]"),u}function Ps(){return"["}function On(e){const n=e.options.bullet||"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bullet`, expected `*`, `+`, or `-`");return n}function zs(e){const n=On(e),t=e.options.bulletOther;if(!t)return n==="*"?"-":"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(t===n)throw new Error("Expected `bullet` (`"+n+"`) and `bulletOther` (`"+t+"`) to be different");return t}function Ds(e){const n=e.options.bulletOrdered||".";if(n!=="."&&n!==")")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOrdered`, expected `.` or `)`");return n}function Ai(e){const n=e.options.rule||"*";if(n!=="*"&&n!=="-"&&n!=="_")throw new Error("Cannot serialize rules with `"+n+"` for `options.rule`, expected `*`, `-`, or `_`");return n}function Ls(e,n,t,r){const i=t.enter("list"),o=t.bulletCurrent;let l=e.ordered?Ds(t):On(t);const a=e.ordered?l==="."?")":".":zs(t);let u=n&&t.bulletLastUsed?l===t.bulletLastUsed:!1;if(!e.ordered){const f=e.children?e.children[0]:void 0;if((l==="*"||l==="-")&&f&&(!f.children||!f.children[0])&&t.stack[t.stack.length-1]==="list"&&t.stack[t.stack.length-2]==="listItem"&&t.stack[t.stack.length-3]==="list"&&t.stack[t.stack.length-4]==="listItem"&&t.indexStack[t.indexStack.length-1]===0&&t.indexStack[t.indexStack.length-2]===0&&t.indexStack[t.indexStack.length-3]===0&&(u=!0),Ai(t)===l&&f){let c=-1;for(;++c<e.children.length;){const p=e.children[c];if(p&&p.type==="listItem"&&p.children&&p.children[0]&&p.children[0].type==="thematicBreak"){u=!0;break}}}}u&&(l=a),t.bulletCurrent=l;const s=t.containerFlow(e,r);return t.bulletLastUsed=l,t.bulletCurrent=o,i(),s}function Fs(e){const n=e.options.listItemIndent||"one";if(n!=="tab"&&n!=="one"&&n!=="mixed")throw new Error("Cannot serialize items with `"+n+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return n}function Ns(e,n,t,r){const i=Fs(t);let o=t.bulletCurrent||On(t);n&&n.type==="list"&&n.ordered&&(o=(typeof n.start=="number"&&n.start>-1?n.start:1)+(t.options.incrementListMarker===!1?0:n.children.indexOf(e))+o);let l=o.length+1;(i==="tab"||i==="mixed"&&(n&&n.type==="list"&&n.spread||e.spread))&&(l=Math.ceil(l/4)*4);const a=t.createTracker(r);a.move(o+" ".repeat(l-o.length)),a.shift(l);const u=t.enter("listItem"),s=t.indentLines(t.containerFlow(e,a.current()),f);return u(),s;function f(c,p,h){return p?(h?"":" ".repeat(l))+c:(h?o:o+" ".repeat(l-o.length))+c}}function Os(e,n,t,r){const i=t.enter("paragraph"),o=t.enter("phrasing"),l=t.containerPhrasing(e,r);return o(),i(),l}const Rs=Kt(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Ms(e,n,t,r){return(e.children.some(function(l){return Rs(l)})?t.containerPhrasing:t.containerFlow).call(t,e,r)}function Bs(e){const n=e.options.strong||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize strong with `"+n+"` for `options.strong`, expected `*`, or `_`");return n}Ii.peek=$s;function Ii(e,n,t,r){const i=Bs(t),o=t.enter("strong"),l=t.createTracker(r),a=l.move(i+i);let u=l.move(t.containerPhrasing(e,{after:i,before:a,...l.current()}));const s=u.charCodeAt(0),f=Vt(r.before.charCodeAt(r.before.length-1),s,i);f.inside&&(u=_t(s)+u.slice(1));const c=u.charCodeAt(u.length-1),p=Vt(r.after.charCodeAt(0),c,i);p.inside&&(u=u.slice(0,-1)+_t(c));const h=l.move(i+i);return o(),t.attentionEncodeSurroundingInfo={after:p.outside,before:f.outside},a+u+h}function $s(e,n,t){return t.options.strong||"*"}function js(e,n,t,r){return t.safe(e.value,r)}function qs(e){const n=e.options.ruleRepetition||3;if(n<3)throw new Error("Cannot serialize rules with repetition `"+n+"` for `options.ruleRepetition`, expected `3` or more");return n}function Hs(e,n,t){const r=(Ai(t)+(t.options.ruleSpaces?" ":"")).repeat(qs(t));return t.options.ruleSpaces?r.slice(0,-1):r}const Ei={blockquote:hs,break:Er,code:xs,definition:bs,emphasis:gi,hardBreak:Er,heading:Cs,html:xi,image:ki,imageReference:bi,inlineCode:wi,link:Si,linkReference:Ci,list:Ls,listItem:Ns,paragraph:Os,root:Ms,strong:Ii,text:js,thematicBreak:Hs};function Us(){return{enter:{table:Vs,tableData:_r,tableHeader:_r,tableRow:Qs},exit:{codeText:Ys,table:Ws,tableData:dn,tableHeader:dn,tableRow:dn}}}function Vs(e){const n=e._align;this.enter({type:"table",align:n.map(function(t){return t==="none"?null:t}),children:[]},e),this.data.inTable=!0}function Ws(e){this.exit(e),this.data.inTable=void 0}function Qs(e){this.enter({type:"tableRow",children:[]},e)}function dn(e){this.exit(e)}function _r(e){this.enter({type:"tableCell",children:[]},e)}function Ys(e){let n=this.resume();this.data.inTable&&(n=n.replace(/\\([\\|])/g,Ks));const t=this.stack[this.stack.length-1];t.type,t.value=n,this.exit(e)}function Ks(e,n){return n==="|"?n:e}function Gs(e){const n=e||{},t=n.tableCellPadding,r=n.tablePipeAlign,i=n.stringLength,o=t?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
17
17
|
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:p,table:l,tableCell:u,tableRow:a}};function l(h,g,w,v){return s(f(h,w,v),h.align)}function a(h,g,w,v){const x=c(h,w,v),I=s([x]);return I.slice(0,I.indexOf(`
|
|
18
|
-
`))}function u(h,g,w,v){const x=w.enter("tableCell"),I=w.enter("phrasing"),C=w.containerPhrasing(h,{...v,before:o,after:o});return I(),x(),C}function s(h,g){return ss(h,{align:g,alignDelimiters:r,padding:t,stringLength:i})}function f(h,g,w){const v=h.children;let x=-1;const I=[],C=g.enter("table");for(;++x<v.length;)I[x]=c(v[x],g,w);return C(),I}function c(h,g,w){const v=h.children;let x=-1;const I=[],C=g.enter("tableRow");for(;++x<v.length;)I[x]=u(v[x],h,g,w);return C(),I}function p(h,g,w){let v=Ei.inlineCode(h,g,w);return w.stack.includes("tableCell")&&(v=v.replace(/\|/g,"\\$&")),v}}function Xs(){return{exit:{taskListCheckValueChecked:Tr,taskListCheckValueUnchecked:Tr,paragraph:Js}}}function Zs(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:ec}}}function Tr(e){const n=this.stack[this.stack.length-2];n.type,n.checked=e.type==="taskListCheckValueChecked"}function Js(e){const n=this.stack[this.stack.length-2];if(n&&n.type==="listItem"&&typeof n.checked=="boolean"){const t=this.stack[this.stack.length-1];t.type;const r=t.children[0];if(r&&r.type==="text"){const i=n.children;let o=-1,l;for(;++o<i.length;){const a=i[o];if(a.type==="paragraph"){l=a;break}}l===t&&(r.value=r.value.slice(1),r.value.length===0?t.children.shift():t.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,t.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function ec(e,n,t,r){const i=e.children[0],o=typeof e.checked=="boolean"&&i&&i.type==="paragraph",l="["+(e.checked?"x":" ")+"] ",a=t.createTracker(r);o&&a.move(l);let u=Ei.listItem(e,n,t,{...r,...a.current()});return o&&(u=u.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,s)),u;function s(f){return f+l}}function tc(){return[Du(),Ju(),rs(),Us(),Xs()]}function nc(e){return{extensions:[Lu(),es(e),is(),Gs(e),Zs()]}}const rc={tokenize:sc,partial:!0},_i={tokenize:cc,partial:!0},Ti={tokenize:fc,partial:!0},Pi={tokenize:hc,partial:!0},ic={tokenize:pc,partial:!0},zi={name:"wwwAutolink",tokenize:ac,previous:Li},Di={name:"protocolAutolink",tokenize:uc,previous:Fi},$e={name:"emailAutolink",tokenize:oc,previous:Ni},Re={};function lc(){return{text:Re}}let Je=48;for(;Je<123;)Re[Je]=$e,Je++,Je===58?Je=65:Je===91&&(Je=97);Re[43]=$e;Re[45]=$e;Re[46]=$e;Re[95]=$e;Re[72]=[$e,Di];Re[104]=[$e,Di];Re[87]=[$e,zi];Re[119]=[$e,zi];function oc(e,n,t){const r=this;let i,o;return l;function l(c){return!An(c)||!Ni.call(r,r.previous)||Rn(r.events)?t(c):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(c))}function a(c){return An(c)?(e.consume(c),a):c===64?(e.consume(c),u):t(c)}function u(c){return c===46?e.check(ic,f,s)(c):c===45||c===95||ge(c)?(o=!0,e.consume(c),u):f(c)}function s(c){return e.consume(c),i=!0,u}function f(c){return o&&i&&ye(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),n(c)):t(c)}}function ac(e,n,t){const r=this;return i;function i(l){return l!==87&&l!==119||!Li.call(r,r.previous)||Rn(r.events)?t(l):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(rc,e.attempt(_i,e.attempt(Ti,o),t),t)(l))}function o(l){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),n(l)}}function uc(e,n,t){const r=this;let i="",o=!1;return l;function l(c){return(c===72||c===104)&&Fi.call(r,r.previous)&&!Rn(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(c),e.consume(c),a):t(c)}function a(c){if(ye(c)&&i.length<5)return i+=String.fromCodePoint(c),e.consume(c),a;if(c===58){const p=i.toLowerCase();if(p==="http"||p==="https")return e.consume(c),u}return t(c)}function u(c){return c===47?(e.consume(c),o?s:(o=!0,u)):t(c)}function s(c){return c===null||Ht(c)||X(c)||tt(c)||Qt(c)?t(c):e.attempt(_i,e.attempt(Ti,f),t)(c)}function f(c){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),n(c)}}function sc(e,n,t){let r=0;return i;function i(l){return(l===87||l===119)&&r<3?(r++,e.consume(l),i):l===46&&r===3?(e.consume(l),o):t(l)}function o(l){return l===null?t(l):n(l)}}function cc(e,n,t){let r,i,o;return l;function l(s){return s===46||s===95?e.check(Pi,u,a)(s):s===null||X(s)||tt(s)||s!==45&&Qt(s)?u(s):(o=!0,e.consume(s),l)}function a(s){return s===95?r=!0:(i=r,r=void 0),e.consume(s),l}function u(s){return i||r||!o?t(s):n(s)}}function fc(e,n){let t=0,r=0;return i;function i(l){return l===40?(t++,e.consume(l),i):l===41&&r<t?o(l):l===33||l===34||l===38||l===39||l===41||l===42||l===44||l===46||l===58||l===59||l===60||l===63||l===93||l===95||l===126?e.check(Pi,n,o)(l):l===null||X(l)||tt(l)?n(l):(e.consume(l),i)}function o(l){return l===41&&r++,e.consume(l),i}}function hc(e,n,t){return r;function r(a){return a===33||a===34||a===39||a===41||a===42||a===44||a===46||a===58||a===59||a===63||a===95||a===126?(e.consume(a),r):a===38?(e.consume(a),o):a===93?(e.consume(a),i):a===60||a===null||X(a)||tt(a)?n(a):t(a)}function i(a){return a===null||a===40||a===91||X(a)||tt(a)?n(a):r(a)}function o(a){return ye(a)?l(a):t(a)}function l(a){return a===59?(e.consume(a),r):ye(a)?(e.consume(a),l):t(a)}}function pc(e,n,t){return r;function r(o){return e.consume(o),i}function i(o){return ge(o)?t(o):n(o)}}function Li(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||X(e)}function Fi(e){return!ye(e)}function Ni(e){return!(e===47||An(e))}function An(e){return e===43||e===45||e===46||e===95||ge(e)}function Rn(e){let n=e.length,t=!1;for(;n--;){const r=e[n][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){t=!0;break}if(r._gfmAutolinkLiteralWalkedInto){t=!1;break}}return e.length>0&&!t&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),t}const mc={tokenize:vc,partial:!0};function dc(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:kc,continuation:{tokenize:bc},exit:wc}},text:{91:{name:"gfmFootnoteCall",tokenize:xc},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:gc,resolveTo:yc}}}}function gc(e,n,t){const r=this;let i=r.events.length;const o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let l;for(;i--;){const u=r.events[i][1];if(u.type==="labelImage"){l=u;break}if(u.type==="gfmFootnoteCall"||u.type==="labelLink"||u.type==="label"||u.type==="image"||u.type==="link")break}return a;function a(u){if(!l||!l._balanced)return t(u);const s=Le(r.sliceSerialize({start:l.end,end:r.now()}));return s.codePointAt(0)!==94||!o.includes(s.slice(1))?t(u):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(u),e.exit("gfmFootnoteCallLabelMarker"),n(u))}}function yc(e,n){let t=e.length;for(;t--;)if(e[t][1].type==="labelImage"&&e[t][0]==="enter"){e[t][1];break}e[t+1][1].type="data",e[t+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[t+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[t+3][1].end),end:Object.assign({},e[t+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const o={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},l={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},a=[e[t+1],e[t+2],["enter",r,n],e[t+3],e[t+4],["enter",i,n],["exit",i,n],["enter",o,n],["enter",l,n],["exit",l,n],["exit",o,n],e[e.length-2],e[e.length-1],["exit",r,n]];return e.splice(t,e.length-t+1,...a),e}function xc(e,n,t){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o=0,l;return a;function a(c){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),u}function u(c){return c!==94?t(c):(e.enter("gfmFootnoteCallMarker"),e.consume(c),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",s)}function s(c){if(o>999||c===93&&!l||c===null||c===91||X(c))return t(c);if(c===93){e.exit("chunkString");const p=e.exit("gfmFootnoteCallString");return i.includes(Le(r.sliceSerialize(p)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),n):t(c)}return X(c)||(l=!0),o++,e.consume(c),c===92?f:s}function f(c){return c===91||c===92||c===93?(e.consume(c),o++,s):s(c)}}function kc(e,n,t){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,l=0,a;return u;function u(g){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),s}function s(g){return g===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",f):t(g)}function f(g){if(l>999||g===93&&!a||g===null||g===91||X(g))return t(g);if(g===93){e.exit("chunkString");const w=e.exit("gfmFootnoteDefinitionLabelString");return o=Le(r.sliceSerialize(w)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return X(g)||(a=!0),l++,e.consume(g),g===92?c:f}function c(g){return g===91||g===92||g===93?(e.consume(g),l++,f):f(g)}function p(g){return g===58?(e.enter("definitionMarker"),e.consume(g),e.exit("definitionMarker"),i.includes(o)||i.push(o),U(e,h,"gfmFootnoteDefinitionWhitespace")):t(g)}function h(g){return n(g)}}function bc(e,n,t){return e.check(zt,n,e.attempt(mc,n,t))}function wc(e){e.exit("gfmFootnoteDefinition")}function vc(e,n,t){const r=this;return U(e,i,"gfmFootnoteDefinitionIndent",5);function i(o){const l=r.events[r.events.length-1];return l&&l[1].type==="gfmFootnoteDefinitionIndent"&&l[2].sliceSerialize(l[1],!0).length===4?n(o):t(o)}}function Sc(e){let t=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:o,resolveAll:i};return t==null&&(t=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(l,a){let u=-1;for(;++u<l.length;)if(l[u][0]==="enter"&&l[u][1].type==="strikethroughSequenceTemporary"&&l[u][1]._close){let s=u;for(;s--;)if(l[s][0]==="exit"&&l[s][1].type==="strikethroughSequenceTemporary"&&l[s][1]._open&&l[u][1].end.offset-l[u][1].start.offset===l[s][1].end.offset-l[s][1].start.offset){l[u][1].type="strikethroughSequence",l[s][1].type="strikethroughSequence";const f={type:"strikethrough",start:Object.assign({},l[s][1].start),end:Object.assign({},l[u][1].end)},c={type:"strikethroughText",start:Object.assign({},l[s][1].end),end:Object.assign({},l[u][1].start)},p=[["enter",f,a],["enter",l[s][1],a],["exit",l[s][1],a],["enter",c,a]],h=a.parser.constructs.insideSpan.null;h&&Ie(p,p.length,0,Yt(h,l.slice(s+1,u),a)),Ie(p,p.length,0,[["exit",c,a],["enter",l[u][1],a],["exit",l[u][1],a],["exit",f,a]]),Ie(l,s-1,u-s+3,p),u=s+p.length-2;break}}for(u=-1;++u<l.length;)l[u][1].type==="strikethroughSequenceTemporary"&&(l[u][1].type="data");return l}function o(l,a,u){const s=this.previous,f=this.events;let c=0;return p;function p(g){return s===126&&f[f.length-1][1].type!=="characterEscape"?u(g):(l.enter("strikethroughSequenceTemporary"),h(g))}function h(g){const w=ct(s);if(g===126)return c>1?u(g):(l.consume(g),c++,h);if(c<2&&!t)return u(g);const v=l.exit("strikethroughSequenceTemporary"),x=ct(g);return v._open=!x||x===2&&!!w,v._close=!w||w===2&&!!x,a(g)}}}class Cc{constructor(){this.map=[]}add(n,t,r){Ac(this,n,t,r)}consume(n){if(this.map.sort(function(o,l){return o[0]-l[0]}),this.map.length===0)return;let t=this.map.length;const r=[];for(;t>0;)t-=1,r.push(n.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),n.length=this.map[t][0];r.push(n.slice()),n.length=0;let i=r.pop();for(;i;){for(const o of i)n.push(o);i=r.pop()}this.map.length=0}}function Ac(e,n,t,r){let i=0;if(!(t===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===n){e.map[i][1]+=t,e.map[i][2].push(...r);return}i+=1}e.map.push([n,t,r])}}function Ic(e,n){let t=!1;const r=[];for(;n<e.length;){const i=e[n];if(t){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(e[n+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[n-1][1].type==="tableDelimiterMarker"){const o=r.length-1;r[o]=r[o]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(t=!0);n+=1}return r}function Ec(){return{flow:{null:{name:"table",tokenize:_c,resolveAll:Tc}}}}function _c(e,n,t){const r=this;let i=0,o=0,l;return a;function a(y){let T=r.events.length-1;for(;T>-1;){const R=r.events[T][1].type;if(R==="lineEnding"||R==="linePrefix")T--;else break}const _=T>-1?r.events[T][1].type:null,P=_==="tableHead"||_==="tableRow"?k:u;return P===k&&r.parser.lazy[r.now().line]?t(y):P(y)}function u(y){return e.enter("tableHead"),e.enter("tableRow"),s(y)}function s(y){return y===124||(l=!0,o+=1),f(y)}function f(y){return y===null?t(y):z(y)?o>1?(o=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),h):t(y):q(y)?U(e,f,"whitespace")(y):(o+=1,l&&(l=!1,i+=1),y===124?(e.enter("tableCellDivider"),e.consume(y),e.exit("tableCellDivider"),l=!0,f):(e.enter("data"),c(y)))}function c(y){return y===null||y===124||X(y)?(e.exit("data"),f(y)):(e.consume(y),y===92?p:c)}function p(y){return y===92||y===124?(e.consume(y),c):c(y)}function h(y){return r.interrupt=!1,r.parser.lazy[r.now().line]?t(y):(e.enter("tableDelimiterRow"),l=!1,q(y)?U(e,g,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(y):g(y))}function g(y){return y===45||y===58?v(y):y===124?(l=!0,e.enter("tableCellDivider"),e.consume(y),e.exit("tableCellDivider"),w):F(y)}function w(y){return q(y)?U(e,v,"whitespace")(y):v(y)}function v(y){return y===58?(o+=1,l=!0,e.enter("tableDelimiterMarker"),e.consume(y),e.exit("tableDelimiterMarker"),x):y===45?(o+=1,x(y)):y===null||z(y)?L(y):F(y)}function x(y){return y===45?(e.enter("tableDelimiterFiller"),I(y)):F(y)}function I(y){return y===45?(e.consume(y),I):y===58?(l=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(y),e.exit("tableDelimiterMarker"),C):(e.exit("tableDelimiterFiller"),C(y))}function C(y){return q(y)?U(e,L,"whitespace")(y):L(y)}function L(y){return y===124?g(y):y===null||z(y)?!l||i!==o?F(y):(e.exit("tableDelimiterRow"),e.exit("tableHead"),n(y)):F(y)}function F(y){return t(y)}function k(y){return e.enter("tableRow"),$(y)}function $(y){return y===124?(e.enter("tableCellDivider"),e.consume(y),e.exit("tableCellDivider"),$):y===null||z(y)?(e.exit("tableRow"),n(y)):q(y)?U(e,$,"whitespace")(y):(e.enter("data"),W(y))}function W(y){return y===null||y===124||X(y)?(e.exit("data"),$(y)):(e.consume(y),y===92?B:W)}function B(y){return y===92||y===124?(e.consume(y),W):W(y)}}function Tc(e,n){let t=-1,r=!0,i=0,o=[0,0,0,0],l=[0,0,0,0],a=!1,u=0,s,f,c;const p=new Cc;for(;++t<e.length;){const h=e[t],g=h[1];h[0]==="enter"?g.type==="tableHead"?(a=!1,u!==0&&(Pr(p,n,u,s,f),f=void 0,u=0),s={type:"table",start:Object.assign({},g.start),end:Object.assign({},g.end)},p.add(t,0,[["enter",s,n]])):g.type==="tableRow"||g.type==="tableDelimiterRow"?(r=!0,c=void 0,o=[0,0,0,0],l=[0,t+1,0,0],a&&(a=!1,f={type:"tableBody",start:Object.assign({},g.start),end:Object.assign({},g.end)},p.add(t,0,[["enter",f,n]])),i=g.type==="tableDelimiterRow"?2:f?3:1):i&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")?(r=!1,l[2]===0&&(o[1]!==0&&(l[0]=l[1],c=Rt(p,n,o,i,void 0,c),o=[0,0,0,0]),l[2]=t)):g.type==="tableCellDivider"&&(r?r=!1:(o[1]!==0&&(l[0]=l[1],c=Rt(p,n,o,i,void 0,c)),o=l,l=[o[1],t,0,0])):g.type==="tableHead"?(a=!0,u=t):g.type==="tableRow"||g.type==="tableDelimiterRow"?(u=t,o[1]!==0?(l[0]=l[1],c=Rt(p,n,o,i,t,c)):l[1]!==0&&(c=Rt(p,n,l,i,t,c)),i=0):i&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")&&(l[3]=t)}for(u!==0&&Pr(p,n,u,s,f),p.consume(n.events),t=-1;++t<n.events.length;){const h=n.events[t];h[0]==="enter"&&h[1].type==="table"&&(h[1]._align=Ic(n.events,t))}return e}function Rt(e,n,t,r,i,o){const l=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",a="tableContent";t[0]!==0&&(o.end=Object.assign({},at(n.events,t[0])),e.add(t[0],0,[["exit",o,n]]));const u=at(n.events,t[1]);if(o={type:l,start:Object.assign({},u),end:Object.assign({},u)},e.add(t[1],0,[["enter",o,n]]),t[2]!==0){const s=at(n.events,t[2]),f=at(n.events,t[3]),c={type:a,start:Object.assign({},s),end:Object.assign({},f)};if(e.add(t[2],0,[["enter",c,n]]),r!==2){const p=n.events[t[2]],h=n.events[t[3]];if(p[1].end=Object.assign({},h[1].end),p[1].type="chunkText",p[1].contentType="text",t[3]>t[2]+1){const g=t[2]+1,w=t[3]-t[2]-1;e.add(g,w,[])}}e.add(t[3]+1,0,[["exit",c,n]])}return i!==void 0&&(o.end=Object.assign({},at(n.events,i)),e.add(i,0,[["exit",o,n]]),o=void 0),o}function Pr(e,n,t,r,i){const o=[],l=at(n.events,t);i&&(i.end=Object.assign({},l),o.push(["exit",i,n])),r.end=Object.assign({},l),o.push(["exit",r,n]),e.add(t+1,0,o)}function at(e,n){const t=e[n],r=t[0]==="enter"?"start":"end";return t[1][r]}const Pc={name:"tasklistCheck",tokenize:Dc};function zc(){return{text:{91:Pc}}}function Dc(e,n,t){const r=this;return i;function i(u){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?t(u):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),o)}function o(u){return X(u)?(e.enter("taskListCheckValueUnchecked"),e.consume(u),e.exit("taskListCheckValueUnchecked"),l):u===88||u===120?(e.enter("taskListCheckValueChecked"),e.consume(u),e.exit("taskListCheckValueChecked"),l):t(u)}function l(u){return u===93?(e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),a):t(u)}function a(u){return z(u)?n(u):q(u)?e.check({tokenize:Lc},n,t)(u):t(u)}}function Lc(e,n,t){return U(e,r,"whitespace");function r(i){return i===null?t(i):n(i)}}function Fc(e){return Xr([lc(),dc(),Sc(e),Ec(),zc()])}const Nc={};function Oc(e){const n=this,t=e||Nc,r=n.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),o=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),l=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(Fc(t)),o.push(tc()),l.push(nc(t))}function Rc(e,n){const t={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(n),!0)};return e.patch(n,t),e.applyData(n,t)}function Mc(e,n){const t={type:"element",tagName:"br",properties:{},children:[]};return e.patch(n,t),[e.applyData(n,t),{type:"text",value:`
|
|
18
|
+
`))}function u(h,g,w,v){const x=w.enter("tableCell"),I=w.enter("phrasing"),C=w.containerPhrasing(h,{...v,before:o,after:o});return I(),x(),C}function s(h,g){return ss(h,{align:g,alignDelimiters:r,padding:t,stringLength:i})}function f(h,g,w){const v=h.children;let x=-1;const I=[],C=g.enter("table");for(;++x<v.length;)I[x]=c(v[x],g,w);return C(),I}function c(h,g,w){const v=h.children;let x=-1;const I=[],C=g.enter("tableRow");for(;++x<v.length;)I[x]=u(v[x],h,g,w);return C(),I}function p(h,g,w){let v=Ei.inlineCode(h,g,w);return w.stack.includes("tableCell")&&(v=v.replace(/\|/g,"\\$&")),v}}function Xs(){return{exit:{taskListCheckValueChecked:Tr,taskListCheckValueUnchecked:Tr,paragraph:Js}}}function Zs(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:ec}}}function Tr(e){const n=this.stack[this.stack.length-2];n.type,n.checked=e.type==="taskListCheckValueChecked"}function Js(e){const n=this.stack[this.stack.length-2];if(n&&n.type==="listItem"&&typeof n.checked=="boolean"){const t=this.stack[this.stack.length-1];t.type;const r=t.children[0];if(r&&r.type==="text"){const i=n.children;let o=-1,l;for(;++o<i.length;){const a=i[o];if(a.type==="paragraph"){l=a;break}}l===t&&(r.value=r.value.slice(1),r.value.length===0?t.children.shift():t.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,t.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function ec(e,n,t,r){const i=e.children[0],o=typeof e.checked=="boolean"&&i&&i.type==="paragraph",l="["+(e.checked?"x":" ")+"] ",a=t.createTracker(r);o&&a.move(l);let u=Ei.listItem(e,n,t,{...r,...a.current()});return o&&(u=u.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,s)),u;function s(f){return f+l}}function tc(){return[Du(),Ju(),rs(),Us(),Xs()]}function nc(e){return{extensions:[Lu(),es(e),is(),Gs(e),Zs()]}}const rc={tokenize:sc,partial:!0},_i={tokenize:cc,partial:!0},Ti={tokenize:fc,partial:!0},Pi={tokenize:hc,partial:!0},ic={tokenize:pc,partial:!0},zi={name:"wwwAutolink",tokenize:ac,previous:Li},Di={name:"protocolAutolink",tokenize:uc,previous:Fi},$e={name:"emailAutolink",tokenize:oc,previous:Ni},Re={};function lc(){return{text:Re}}let Je=48;for(;Je<123;)Re[Je]=$e,Je++,Je===58?Je=65:Je===91&&(Je=97);Re[43]=$e;Re[45]=$e;Re[46]=$e;Re[95]=$e;Re[72]=[$e,Di];Re[104]=[$e,Di];Re[87]=[$e,zi];Re[119]=[$e,zi];function oc(e,n,t){const r=this;let i,o;return l;function l(c){return!An(c)||!Ni.call(r,r.previous)||Rn(r.events)?t(c):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(c))}function a(c){return An(c)?(e.consume(c),a):c===64?(e.consume(c),u):t(c)}function u(c){return c===46?e.check(ic,f,s)(c):c===45||c===95||ge(c)?(o=!0,e.consume(c),u):f(c)}function s(c){return e.consume(c),i=!0,u}function f(c){return o&&i&&ye(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),n(c)):t(c)}}function ac(e,n,t){const r=this;return i;function i(l){return l!==87&&l!==119||!Li.call(r,r.previous)||Rn(r.events)?t(l):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(rc,e.attempt(_i,e.attempt(Ti,o),t),t)(l))}function o(l){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),n(l)}}function uc(e,n,t){const r=this;let i="",o=!1;return l;function l(c){return(c===72||c===104)&&Fi.call(r,r.previous)&&!Rn(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(c),e.consume(c),a):t(c)}function a(c){if(ye(c)&&i.length<5)return i+=String.fromCodePoint(c),e.consume(c),a;if(c===58){const p=i.toLowerCase();if(p==="http"||p==="https")return e.consume(c),u}return t(c)}function u(c){return c===47?(e.consume(c),o?s:(o=!0,u)):t(c)}function s(c){return c===null||Ht(c)||Z(c)||nt(c)||Qt(c)?t(c):e.attempt(_i,e.attempt(Ti,f),t)(c)}function f(c){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),n(c)}}function sc(e,n,t){let r=0;return i;function i(l){return(l===87||l===119)&&r<3?(r++,e.consume(l),i):l===46&&r===3?(e.consume(l),o):t(l)}function o(l){return l===null?t(l):n(l)}}function cc(e,n,t){let r,i,o;return l;function l(s){return s===46||s===95?e.check(Pi,u,a)(s):s===null||Z(s)||nt(s)||s!==45&&Qt(s)?u(s):(o=!0,e.consume(s),l)}function a(s){return s===95?r=!0:(i=r,r=void 0),e.consume(s),l}function u(s){return i||r||!o?t(s):n(s)}}function fc(e,n){let t=0,r=0;return i;function i(l){return l===40?(t++,e.consume(l),i):l===41&&r<t?o(l):l===33||l===34||l===38||l===39||l===41||l===42||l===44||l===46||l===58||l===59||l===60||l===63||l===93||l===95||l===126?e.check(Pi,n,o)(l):l===null||Z(l)||nt(l)?n(l):(e.consume(l),i)}function o(l){return l===41&&r++,e.consume(l),i}}function hc(e,n,t){return r;function r(a){return a===33||a===34||a===39||a===41||a===42||a===44||a===46||a===58||a===59||a===63||a===95||a===126?(e.consume(a),r):a===38?(e.consume(a),o):a===93?(e.consume(a),i):a===60||a===null||Z(a)||nt(a)?n(a):t(a)}function i(a){return a===null||a===40||a===91||Z(a)||nt(a)?n(a):r(a)}function o(a){return ye(a)?l(a):t(a)}function l(a){return a===59?(e.consume(a),r):ye(a)?(e.consume(a),l):t(a)}}function pc(e,n,t){return r;function r(o){return e.consume(o),i}function i(o){return ge(o)?t(o):n(o)}}function Li(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Z(e)}function Fi(e){return!ye(e)}function Ni(e){return!(e===47||An(e))}function An(e){return e===43||e===45||e===46||e===95||ge(e)}function Rn(e){let n=e.length,t=!1;for(;n--;){const r=e[n][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){t=!0;break}if(r._gfmAutolinkLiteralWalkedInto){t=!1;break}}return e.length>0&&!t&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),t}const mc={tokenize:vc,partial:!0};function dc(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:kc,continuation:{tokenize:bc},exit:wc}},text:{91:{name:"gfmFootnoteCall",tokenize:xc},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:gc,resolveTo:yc}}}}function gc(e,n,t){const r=this;let i=r.events.length;const o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let l;for(;i--;){const u=r.events[i][1];if(u.type==="labelImage"){l=u;break}if(u.type==="gfmFootnoteCall"||u.type==="labelLink"||u.type==="label"||u.type==="image"||u.type==="link")break}return a;function a(u){if(!l||!l._balanced)return t(u);const s=Le(r.sliceSerialize({start:l.end,end:r.now()}));return s.codePointAt(0)!==94||!o.includes(s.slice(1))?t(u):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(u),e.exit("gfmFootnoteCallLabelMarker"),n(u))}}function yc(e,n){let t=e.length;for(;t--;)if(e[t][1].type==="labelImage"&&e[t][0]==="enter"){e[t][1];break}e[t+1][1].type="data",e[t+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[t+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[t+3][1].end),end:Object.assign({},e[t+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const o={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},l={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},a=[e[t+1],e[t+2],["enter",r,n],e[t+3],e[t+4],["enter",i,n],["exit",i,n],["enter",o,n],["enter",l,n],["exit",l,n],["exit",o,n],e[e.length-2],e[e.length-1],["exit",r,n]];return e.splice(t,e.length-t+1,...a),e}function xc(e,n,t){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o=0,l;return a;function a(c){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),u}function u(c){return c!==94?t(c):(e.enter("gfmFootnoteCallMarker"),e.consume(c),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",s)}function s(c){if(o>999||c===93&&!l||c===null||c===91||Z(c))return t(c);if(c===93){e.exit("chunkString");const p=e.exit("gfmFootnoteCallString");return i.includes(Le(r.sliceSerialize(p)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),n):t(c)}return Z(c)||(l=!0),o++,e.consume(c),c===92?f:s}function f(c){return c===91||c===92||c===93?(e.consume(c),o++,s):s(c)}}function kc(e,n,t){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,l=0,a;return u;function u(g){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),s}function s(g){return g===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",f):t(g)}function f(g){if(l>999||g===93&&!a||g===null||g===91||Z(g))return t(g);if(g===93){e.exit("chunkString");const w=e.exit("gfmFootnoteDefinitionLabelString");return o=Le(r.sliceSerialize(w)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return Z(g)||(a=!0),l++,e.consume(g),g===92?c:f}function c(g){return g===91||g===92||g===93?(e.consume(g),l++,f):f(g)}function p(g){return g===58?(e.enter("definitionMarker"),e.consume(g),e.exit("definitionMarker"),i.includes(o)||i.push(o),U(e,h,"gfmFootnoteDefinitionWhitespace")):t(g)}function h(g){return n(g)}}function bc(e,n,t){return e.check(zt,n,e.attempt(mc,n,t))}function wc(e){e.exit("gfmFootnoteDefinition")}function vc(e,n,t){const r=this;return U(e,i,"gfmFootnoteDefinitionIndent",5);function i(o){const l=r.events[r.events.length-1];return l&&l[1].type==="gfmFootnoteDefinitionIndent"&&l[2].sliceSerialize(l[1],!0).length===4?n(o):t(o)}}function Sc(e){let t=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:o,resolveAll:i};return t==null&&(t=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(l,a){let u=-1;for(;++u<l.length;)if(l[u][0]==="enter"&&l[u][1].type==="strikethroughSequenceTemporary"&&l[u][1]._close){let s=u;for(;s--;)if(l[s][0]==="exit"&&l[s][1].type==="strikethroughSequenceTemporary"&&l[s][1]._open&&l[u][1].end.offset-l[u][1].start.offset===l[s][1].end.offset-l[s][1].start.offset){l[u][1].type="strikethroughSequence",l[s][1].type="strikethroughSequence";const f={type:"strikethrough",start:Object.assign({},l[s][1].start),end:Object.assign({},l[u][1].end)},c={type:"strikethroughText",start:Object.assign({},l[s][1].end),end:Object.assign({},l[u][1].start)},p=[["enter",f,a],["enter",l[s][1],a],["exit",l[s][1],a],["enter",c,a]],h=a.parser.constructs.insideSpan.null;h&&Ie(p,p.length,0,Yt(h,l.slice(s+1,u),a)),Ie(p,p.length,0,[["exit",c,a],["enter",l[u][1],a],["exit",l[u][1],a],["exit",f,a]]),Ie(l,s-1,u-s+3,p),u=s+p.length-2;break}}for(u=-1;++u<l.length;)l[u][1].type==="strikethroughSequenceTemporary"&&(l[u][1].type="data");return l}function o(l,a,u){const s=this.previous,f=this.events;let c=0;return p;function p(g){return s===126&&f[f.length-1][1].type!=="characterEscape"?u(g):(l.enter("strikethroughSequenceTemporary"),h(g))}function h(g){const w=ct(s);if(g===126)return c>1?u(g):(l.consume(g),c++,h);if(c<2&&!t)return u(g);const v=l.exit("strikethroughSequenceTemporary"),x=ct(g);return v._open=!x||x===2&&!!w,v._close=!w||w===2&&!!x,a(g)}}}class Cc{constructor(){this.map=[]}add(n,t,r){Ac(this,n,t,r)}consume(n){if(this.map.sort(function(o,l){return o[0]-l[0]}),this.map.length===0)return;let t=this.map.length;const r=[];for(;t>0;)t-=1,r.push(n.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),n.length=this.map[t][0];r.push(n.slice()),n.length=0;let i=r.pop();for(;i;){for(const o of i)n.push(o);i=r.pop()}this.map.length=0}}function Ac(e,n,t,r){let i=0;if(!(t===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===n){e.map[i][1]+=t,e.map[i][2].push(...r);return}i+=1}e.map.push([n,t,r])}}function Ic(e,n){let t=!1;const r=[];for(;n<e.length;){const i=e[n];if(t){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(e[n+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[n-1][1].type==="tableDelimiterMarker"){const o=r.length-1;r[o]=r[o]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(t=!0);n+=1}return r}function Ec(){return{flow:{null:{name:"table",tokenize:_c,resolveAll:Tc}}}}function _c(e,n,t){const r=this;let i=0,o=0,l;return a;function a(y){let T=r.events.length-1;for(;T>-1;){const R=r.events[T][1].type;if(R==="lineEnding"||R==="linePrefix")T--;else break}const _=T>-1?r.events[T][1].type:null,P=_==="tableHead"||_==="tableRow"?k:u;return P===k&&r.parser.lazy[r.now().line]?t(y):P(y)}function u(y){return e.enter("tableHead"),e.enter("tableRow"),s(y)}function s(y){return y===124||(l=!0,o+=1),f(y)}function f(y){return y===null?t(y):z(y)?o>1?(o=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),h):t(y):q(y)?U(e,f,"whitespace")(y):(o+=1,l&&(l=!1,i+=1),y===124?(e.enter("tableCellDivider"),e.consume(y),e.exit("tableCellDivider"),l=!0,f):(e.enter("data"),c(y)))}function c(y){return y===null||y===124||Z(y)?(e.exit("data"),f(y)):(e.consume(y),y===92?p:c)}function p(y){return y===92||y===124?(e.consume(y),c):c(y)}function h(y){return r.interrupt=!1,r.parser.lazy[r.now().line]?t(y):(e.enter("tableDelimiterRow"),l=!1,q(y)?U(e,g,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(y):g(y))}function g(y){return y===45||y===58?v(y):y===124?(l=!0,e.enter("tableCellDivider"),e.consume(y),e.exit("tableCellDivider"),w):N(y)}function w(y){return q(y)?U(e,v,"whitespace")(y):v(y)}function v(y){return y===58?(o+=1,l=!0,e.enter("tableDelimiterMarker"),e.consume(y),e.exit("tableDelimiterMarker"),x):y===45?(o+=1,x(y)):y===null||z(y)?L(y):N(y)}function x(y){return y===45?(e.enter("tableDelimiterFiller"),I(y)):N(y)}function I(y){return y===45?(e.consume(y),I):y===58?(l=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(y),e.exit("tableDelimiterMarker"),C):(e.exit("tableDelimiterFiller"),C(y))}function C(y){return q(y)?U(e,L,"whitespace")(y):L(y)}function L(y){return y===124?g(y):y===null||z(y)?!l||i!==o?N(y):(e.exit("tableDelimiterRow"),e.exit("tableHead"),n(y)):N(y)}function N(y){return t(y)}function k(y){return e.enter("tableRow"),$(y)}function $(y){return y===124?(e.enter("tableCellDivider"),e.consume(y),e.exit("tableCellDivider"),$):y===null||z(y)?(e.exit("tableRow"),n(y)):q(y)?U(e,$,"whitespace")(y):(e.enter("data"),W(y))}function W(y){return y===null||y===124||Z(y)?(e.exit("data"),$(y)):(e.consume(y),y===92?B:W)}function B(y){return y===92||y===124?(e.consume(y),W):W(y)}}function Tc(e,n){let t=-1,r=!0,i=0,o=[0,0,0,0],l=[0,0,0,0],a=!1,u=0,s,f,c;const p=new Cc;for(;++t<e.length;){const h=e[t],g=h[1];h[0]==="enter"?g.type==="tableHead"?(a=!1,u!==0&&(Pr(p,n,u,s,f),f=void 0,u=0),s={type:"table",start:Object.assign({},g.start),end:Object.assign({},g.end)},p.add(t,0,[["enter",s,n]])):g.type==="tableRow"||g.type==="tableDelimiterRow"?(r=!0,c=void 0,o=[0,0,0,0],l=[0,t+1,0,0],a&&(a=!1,f={type:"tableBody",start:Object.assign({},g.start),end:Object.assign({},g.end)},p.add(t,0,[["enter",f,n]])),i=g.type==="tableDelimiterRow"?2:f?3:1):i&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")?(r=!1,l[2]===0&&(o[1]!==0&&(l[0]=l[1],c=Rt(p,n,o,i,void 0,c),o=[0,0,0,0]),l[2]=t)):g.type==="tableCellDivider"&&(r?r=!1:(o[1]!==0&&(l[0]=l[1],c=Rt(p,n,o,i,void 0,c)),o=l,l=[o[1],t,0,0])):g.type==="tableHead"?(a=!0,u=t):g.type==="tableRow"||g.type==="tableDelimiterRow"?(u=t,o[1]!==0?(l[0]=l[1],c=Rt(p,n,o,i,t,c)):l[1]!==0&&(c=Rt(p,n,l,i,t,c)),i=0):i&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")&&(l[3]=t)}for(u!==0&&Pr(p,n,u,s,f),p.consume(n.events),t=-1;++t<n.events.length;){const h=n.events[t];h[0]==="enter"&&h[1].type==="table"&&(h[1]._align=Ic(n.events,t))}return e}function Rt(e,n,t,r,i,o){const l=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",a="tableContent";t[0]!==0&&(o.end=Object.assign({},ut(n.events,t[0])),e.add(t[0],0,[["exit",o,n]]));const u=ut(n.events,t[1]);if(o={type:l,start:Object.assign({},u),end:Object.assign({},u)},e.add(t[1],0,[["enter",o,n]]),t[2]!==0){const s=ut(n.events,t[2]),f=ut(n.events,t[3]),c={type:a,start:Object.assign({},s),end:Object.assign({},f)};if(e.add(t[2],0,[["enter",c,n]]),r!==2){const p=n.events[t[2]],h=n.events[t[3]];if(p[1].end=Object.assign({},h[1].end),p[1].type="chunkText",p[1].contentType="text",t[3]>t[2]+1){const g=t[2]+1,w=t[3]-t[2]-1;e.add(g,w,[])}}e.add(t[3]+1,0,[["exit",c,n]])}return i!==void 0&&(o.end=Object.assign({},ut(n.events,i)),e.add(i,0,[["exit",o,n]]),o=void 0),o}function Pr(e,n,t,r,i){const o=[],l=ut(n.events,t);i&&(i.end=Object.assign({},l),o.push(["exit",i,n])),r.end=Object.assign({},l),o.push(["exit",r,n]),e.add(t+1,0,o)}function ut(e,n){const t=e[n],r=t[0]==="enter"?"start":"end";return t[1][r]}const Pc={name:"tasklistCheck",tokenize:Dc};function zc(){return{text:{91:Pc}}}function Dc(e,n,t){const r=this;return i;function i(u){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?t(u):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),o)}function o(u){return Z(u)?(e.enter("taskListCheckValueUnchecked"),e.consume(u),e.exit("taskListCheckValueUnchecked"),l):u===88||u===120?(e.enter("taskListCheckValueChecked"),e.consume(u),e.exit("taskListCheckValueChecked"),l):t(u)}function l(u){return u===93?(e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),a):t(u)}function a(u){return z(u)?n(u):q(u)?e.check({tokenize:Lc},n,t)(u):t(u)}}function Lc(e,n,t){return U(e,r,"whitespace");function r(i){return i===null?t(i):n(i)}}function Fc(e){return Xr([lc(),dc(),Sc(e),Ec(),zc()])}const Nc={};function Oc(e){const n=this,t=e||Nc,r=n.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),o=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),l=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(Fc(t)),o.push(tc()),l.push(nc(t))}function Rc(e,n){const t={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(n),!0)};return e.patch(n,t),e.applyData(n,t)}function Mc(e,n){const t={type:"element",tagName:"br",properties:{},children:[]};return e.patch(n,t),[e.applyData(n,t),{type:"text",value:`
|
|
19
19
|
`}]}function Bc(e,n){const t=n.value?n.value+`
|
|
20
20
|
`:"",r={},i=n.lang?n.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let o={type:"element",tagName:"code",properties:r,children:[{type:"text",value:t}]};return n.meta&&(o.data={meta:n.meta}),e.patch(n,o),o=e.applyData(n,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(n,o),o}function $c(e,n){const t={type:"element",tagName:"del",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function jc(e,n){const t={type:"element",tagName:"em",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function qc(e,n){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(n.identifier).toUpperCase(),i=gt(r.toLowerCase()),o=e.footnoteOrder.indexOf(r);let l,a=e.footnoteCounts.get(r);a===void 0?(a=0,e.footnoteOrder.push(r),l=e.footnoteOrder.length):l=o+1,a+=1,e.footnoteCounts.set(r,a);const u={type:"element",tagName:"a",properties:{href:"#"+t+"fn-"+i,id:t+"fnref-"+i+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(l)}]};e.patch(n,u);const s={type:"element",tagName:"sup",properties:{},children:[u]};return e.patch(n,s),e.applyData(n,s)}function Hc(e,n){const t={type:"element",tagName:"h"+n.depth,properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function Uc(e,n){if(e.options.allowDangerousHtml){const t={type:"raw",value:n.value};return e.patch(n,t),e.applyData(n,t)}}function Oi(e,n){const t=n.referenceType;let r="]";if(t==="collapsed"?r+="[]":t==="full"&&(r+="["+(n.label||n.identifier)+"]"),n.type==="imageReference")return[{type:"text",value:"!["+n.alt+r}];const i=e.all(n),o=i[0];o&&o.type==="text"?o.value="["+o.value:i.unshift({type:"text",value:"["});const l=i[i.length-1];return l&&l.type==="text"?l.value+=r:i.push({type:"text",value:r}),i}function Vc(e,n){const t=String(n.identifier).toUpperCase(),r=e.definitionById.get(t);if(!r)return Oi(e,n);const i={src:gt(r.url||""),alt:n.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"img",properties:i,children:[]};return e.patch(n,o),e.applyData(n,o)}function Wc(e,n){const t={src:gt(n.url)};n.alt!==null&&n.alt!==void 0&&(t.alt=n.alt),n.title!==null&&n.title!==void 0&&(t.title=n.title);const r={type:"element",tagName:"img",properties:t,children:[]};return e.patch(n,r),e.applyData(n,r)}function Qc(e,n){const t={type:"text",value:n.value.replace(/\r?\n|\r/g," ")};e.patch(n,t);const r={type:"element",tagName:"code",properties:{},children:[t]};return e.patch(n,r),e.applyData(n,r)}function Yc(e,n){const t=String(n.identifier).toUpperCase(),r=e.definitionById.get(t);if(!r)return Oi(e,n);const i={href:gt(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"a",properties:i,children:e.all(n)};return e.patch(n,o),e.applyData(n,o)}function Kc(e,n){const t={href:gt(n.url)};n.title!==null&&n.title!==void 0&&(t.title=n.title);const r={type:"element",tagName:"a",properties:t,children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function Gc(e,n,t){const r=e.all(n),i=t?Xc(t):Ri(n),o={},l=[];if(typeof n.checked=="boolean"){const f=r[0];let c;f&&f.type==="element"&&f.tagName==="p"?c=f:(c={type:"element",tagName:"p",properties:{},children:[]},r.unshift(c)),c.children.length>0&&c.children.unshift({type:"text",value:" "}),c.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:n.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let a=-1;for(;++a<r.length;){const f=r[a];(i||a!==0||f.type!=="element"||f.tagName!=="p")&&l.push({type:"text",value:`
|
|
21
21
|
`}),f.type==="element"&&f.tagName==="p"&&!i?l.push(...f.children):l.push(f)}const u=r[r.length-1];u&&(i||u.type!=="element"||u.tagName!=="p")&&l.push({type:"text",value:`
|
|
22
|
-
`});const s={type:"element",tagName:"li",properties:o,children:l};return e.patch(n,s),e.applyData(n,s)}function Xc(e){let n=!1;if(e.type==="list"){n=e.spread||!1;const t=e.children;let r=-1;for(;!n&&++r<t.length;)n=Ri(t[r])}return n}function Ri(e){const n=e.spread;return n??e.children.length>1}function Zc(e,n){const t={},r=e.all(n);let i=-1;for(typeof n.start=="number"&&n.start!==1&&(t.start=n.start);++i<r.length;){const l=r[i];if(l.type==="element"&&l.tagName==="li"&&l.properties&&Array.isArray(l.properties.className)&&l.properties.className.includes("task-list-item")){t.className=["contains-task-list"];break}}const o={type:"element",tagName:n.ordered?"ol":"ul",properties:t,children:e.wrap(r,!0)};return e.patch(n,o),e.applyData(n,o)}function Jc(e,n){const t={type:"element",tagName:"p",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function ef(e,n){const t={type:"root",children:e.wrap(e.all(n))};return e.patch(n,t),e.applyData(n,t)}function tf(e,n){const t={type:"element",tagName:"strong",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}const Mi=$i("end"),Bi=$i("start");function $i(e){return n;function n(t){const r=t&&t.position&&t.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function ji(e){const n=Bi(e),t=Mi(e);if(n&&t)return{start:n,end:t}}function nf(e,n){const t=e.all(n),r=t.shift(),i=[];if(r){const l={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(n.children[0],l),i.push(l)}if(t.length>0){const l={type:"element",tagName:"tbody",properties:{},children:e.wrap(t,!0)},a=Bi(n.children[1]),u=Mi(n.children[n.children.length-1]);a&&u&&(l.position={start:a,end:u}),i.push(l)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(n,o),e.applyData(n,o)}function rf(e,n,t){const r=t?t.children:void 0,o=(r?r.indexOf(n):1)===0?"th":"td",l=t&&t.type==="table"?t.align:void 0,a=l?l.length:n.children.length;let u=-1;const s=[];for(;++u<a;){const c=n.children[u],p={},h=l?l[u]:void 0;h&&(p.align=h);let g={type:"element",tagName:o,properties:p,children:[]};c&&(g.children=e.all(c),e.patch(c,g),g=e.applyData(c,g)),s.push(g)}const f={type:"element",tagName:"tr",properties:{},children:e.wrap(s,!0)};return e.patch(n,f),e.applyData(n,f)}function lf(e,n){const t={type:"element",tagName:"td",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}const zr=9,Dr=32;function of(e){const n=String(e),t=/\r?\n|\r/g;let r=t.exec(n),i=0;const o=[];for(;r;)o.push(Lr(n.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=t.exec(n);return o.push(Lr(n.slice(i),i>0,!1)),o.join("")}function Lr(e,n,t){let r=0,i=e.length;if(n){let o=e.codePointAt(r);for(;o===zr||o===Dr;)r++,o=e.codePointAt(r)}if(t){let o=e.codePointAt(i-1);for(;o===zr||o===Dr;)i--,o=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function af(e,n){const t={type:"text",value:of(String(n.value))};return e.patch(n,t),e.applyData(n,t)}function uf(e,n){const t={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(n,t),e.applyData(n,t)}const sf={blockquote:Rc,break:Mc,code:Bc,delete:$c,emphasis:jc,footnoteReference:qc,heading:Hc,html:Uc,imageReference:Vc,image:Wc,inlineCode:Qc,linkReference:Yc,link:Kc,listItem:Gc,list:Zc,paragraph:Jc,root:ef,strong:tf,table:nf,tableCell:lf,tableRow:rf,text:af,thematicBreak:uf,toml:Mt,yaml:Mt,definition:Mt,footnoteDefinition:Mt};function Mt(){}const qi=-1,Xt=0,Et=1,Wt=2,Mn=3,Bn=4,$n=5,jn=6,Hi=7,Ui=8,
|
|
22
|
+
`});const s={type:"element",tagName:"li",properties:o,children:l};return e.patch(n,s),e.applyData(n,s)}function Xc(e){let n=!1;if(e.type==="list"){n=e.spread||!1;const t=e.children;let r=-1;for(;!n&&++r<t.length;)n=Ri(t[r])}return n}function Ri(e){const n=e.spread;return n??e.children.length>1}function Zc(e,n){const t={},r=e.all(n);let i=-1;for(typeof n.start=="number"&&n.start!==1&&(t.start=n.start);++i<r.length;){const l=r[i];if(l.type==="element"&&l.tagName==="li"&&l.properties&&Array.isArray(l.properties.className)&&l.properties.className.includes("task-list-item")){t.className=["contains-task-list"];break}}const o={type:"element",tagName:n.ordered?"ol":"ul",properties:t,children:e.wrap(r,!0)};return e.patch(n,o),e.applyData(n,o)}function Jc(e,n){const t={type:"element",tagName:"p",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function ef(e,n){const t={type:"root",children:e.wrap(e.all(n))};return e.patch(n,t),e.applyData(n,t)}function tf(e,n){const t={type:"element",tagName:"strong",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}const Mi=$i("end"),Bi=$i("start");function $i(e){return n;function n(t){const r=t&&t.position&&t.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function ji(e){const n=Bi(e),t=Mi(e);if(n&&t)return{start:n,end:t}}function nf(e,n){const t=e.all(n),r=t.shift(),i=[];if(r){const l={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(n.children[0],l),i.push(l)}if(t.length>0){const l={type:"element",tagName:"tbody",properties:{},children:e.wrap(t,!0)},a=Bi(n.children[1]),u=Mi(n.children[n.children.length-1]);a&&u&&(l.position={start:a,end:u}),i.push(l)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(n,o),e.applyData(n,o)}function rf(e,n,t){const r=t?t.children:void 0,o=(r?r.indexOf(n):1)===0?"th":"td",l=t&&t.type==="table"?t.align:void 0,a=l?l.length:n.children.length;let u=-1;const s=[];for(;++u<a;){const c=n.children[u],p={},h=l?l[u]:void 0;h&&(p.align=h);let g={type:"element",tagName:o,properties:p,children:[]};c&&(g.children=e.all(c),e.patch(c,g),g=e.applyData(c,g)),s.push(g)}const f={type:"element",tagName:"tr",properties:{},children:e.wrap(s,!0)};return e.patch(n,f),e.applyData(n,f)}function lf(e,n){const t={type:"element",tagName:"td",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}const zr=9,Dr=32;function of(e){const n=String(e),t=/\r?\n|\r/g;let r=t.exec(n),i=0;const o=[];for(;r;)o.push(Lr(n.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=t.exec(n);return o.push(Lr(n.slice(i),i>0,!1)),o.join("")}function Lr(e,n,t){let r=0,i=e.length;if(n){let o=e.codePointAt(r);for(;o===zr||o===Dr;)r++,o=e.codePointAt(r)}if(t){let o=e.codePointAt(i-1);for(;o===zr||o===Dr;)i--,o=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function af(e,n){const t={type:"text",value:of(String(n.value))};return e.patch(n,t),e.applyData(n,t)}function uf(e,n){const t={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(n,t),e.applyData(n,t)}const sf={blockquote:Rc,break:Mc,code:Bc,delete:$c,emphasis:jc,footnoteReference:qc,heading:Hc,html:Uc,imageReference:Vc,image:Wc,inlineCode:Qc,linkReference:Yc,link:Kc,listItem:Gc,list:Zc,paragraph:Jc,root:ef,strong:tf,table:nf,tableCell:lf,tableRow:rf,text:af,thematicBreak:uf,toml:Mt,yaml:Mt,definition:Mt,footnoteDefinition:Mt};function Mt(){}const qi=-1,Xt=0,Et=1,Wt=2,Mn=3,Bn=4,$n=5,jn=6,Hi=7,Ui=8,cf=typeof self=="object"?self:globalThis,Fr=(e,n)=>{switch(e){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw new TypeError("unable to deserialize "+e)}return new cf[e](n)},ff=(e,n)=>{const t=(i,o)=>(e.set(o,i),i),r=i=>{if(e.has(i))return e.get(i);const[o,l]=n[i];switch(o){case Xt:case qi:return t(l,i);case Et:{const a=t([],i);for(const u of l)a.push(r(u));return a}case Wt:{const a=t({},i);for(const[u,s]of l)a[r(u)]=r(s);return a}case Mn:return t(new Date(l),i);case Bn:{const{source:a,flags:u}=l;return t(new RegExp(a,u),i)}case $n:{const a=t(new Map,i);for(const[u,s]of l)a.set(r(u),r(s));return a}case jn:{const a=t(new Set,i);for(const u of l)a.add(r(u));return a}case Hi:{const{name:a,message:u}=l;return t(Fr(a,u),i)}case Ui:return t(BigInt(l),i);case"BigInt":return t(Object(BigInt(l)),i);case"ArrayBuffer":return t(new Uint8Array(l).buffer,l);case"DataView":{const{buffer:a}=new Uint8Array(l);return t(new DataView(a),l)}}return t(Fr(o,l),i)};return r},Nr=e=>ff(new Map,e)(0),at="",{toString:hf}={},{keys:pf}=Object,Ct=e=>{const n=typeof e;if(n!=="object"||!e)return[Xt,n];const t=hf.call(e).slice(8,-1);switch(t){case"Array":return[Et,at];case"Object":return[Wt,at];case"Date":return[Mn,at];case"RegExp":return[Bn,at];case"Map":return[$n,at];case"Set":return[jn,at];case"DataView":return[Et,t]}return t.includes("Array")?[Et,t]:t.includes("Error")?[Hi,t]:[Wt,t]},Bt=([e,n])=>e===Xt&&(n==="function"||n==="symbol"),mf=(e,n,t,r)=>{const i=(l,a)=>{const u=r.push(l)-1;return t.set(a,u),u},o=l=>{if(t.has(l))return t.get(l);let[a,u]=Ct(l);switch(a){case Xt:{let f=l;switch(u){case"bigint":a=Ui,f=l.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+u);f=null;break;case"undefined":return i([qi],l)}return i([a,f],l)}case Et:{if(u){let p=l;return u==="DataView"?p=new Uint8Array(l.buffer):u==="ArrayBuffer"&&(p=new Uint8Array(l)),i([u,[...p]],l)}const f=[],c=i([a,f],l);for(const p of l)f.push(o(p));return c}case Wt:{if(u)switch(u){case"BigInt":return i([u,l.toString()],l);case"Boolean":case"Number":case"String":return i([u,l.valueOf()],l)}if(n&&"toJSON"in l)return o(l.toJSON());const f=[],c=i([a,f],l);for(const p of pf(l))(e||!Bt(Ct(l[p])))&&f.push([o(p),o(l[p])]);return c}case Mn:return i([a,l.toISOString()],l);case Bn:{const{source:f,flags:c}=l;return i([a,{source:f,flags:c}],l)}case $n:{const f=[],c=i([a,f],l);for(const[p,h]of l)(e||!(Bt(Ct(p))||Bt(Ct(h))))&&f.push([o(p),o(h)]);return c}case jn:{const f=[],c=i([a,f],l);for(const p of l)(e||!Bt(Ct(p)))&&f.push(o(p));return c}}const{message:s}=l;return i([a,{name:u,message:s}],l)};return o},Or=(e,{json:n,lossy:t}={})=>{const r=[];return mf(!(n||t),!!n,new Map,r)(e),r},Tt=typeof structuredClone=="function"?(e,n)=>n&&("json"in n||"lossy"in n)?Nr(Or(e,n)):structuredClone(e):(e,n)=>Nr(Or(e,n));function df(e,n){const t=[{type:"text",value:"↩"}];return n>1&&t.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(n)}]}),t}function gf(e,n){return"Back to reference "+(e+1)+(n>1?"-"+n:"")}function yf(e){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",t=e.options.footnoteBackContent||df,r=e.options.footnoteBackLabel||gf,i=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",l=e.options.footnoteLabelProperties||{className:["sr-only"]},a=[];let u=-1;for(;++u<e.footnoteOrder.length;){const s=e.footnoteById.get(e.footnoteOrder[u]);if(!s)continue;const f=e.all(s),c=String(s.identifier).toUpperCase(),p=gt(c.toLowerCase());let h=0;const g=[],w=e.footnoteCounts.get(c);for(;w!==void 0&&++h<=w;){g.length>0&&g.push({type:"text",value:" "});let I=typeof t=="string"?t:t(u,h);typeof I=="string"&&(I={type:"text",value:I}),g.push({type:"element",tagName:"a",properties:{href:"#"+n+"fnref-"+p+(h>1?"-"+h:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(u,h),className:["data-footnote-backref"]},children:Array.isArray(I)?I:[I]})}const v=f[f.length-1];if(v&&v.type==="element"&&v.tagName==="p"){const I=v.children[v.children.length-1];I&&I.type==="text"?I.value+=" ":v.children.push({type:"text",value:" "}),v.children.push(...g)}else f.push(...g);const x={type:"element",tagName:"li",properties:{id:n+"fn-"+p},children:e.wrap(f,!0)};e.patch(s,x),a.push(x)}if(a.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...Tt(l),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
|
|
23
23
|
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(a,!0)},{type:"text",value:`
|
|
24
|
-
`}]}}const In={}.hasOwnProperty,
|
|
24
|
+
`}]}}const In={}.hasOwnProperty,xf={};function kf(e,n){const t=n||xf,r=new Map,i=new Map,o=new Map,l={...sf,...t.handlers},a={all:s,applyData:wf,definitionById:r,footnoteById:i,footnoteCounts:o,footnoteOrder:[],handlers:l,one:u,options:t,patch:bf,wrap:Sf};return yi(e,function(f){if(f.type==="definition"||f.type==="footnoteDefinition"){const c=f.type==="definition"?r:i,p=String(f.identifier).toUpperCase();c.has(p)||c.set(p,f)}}),a;function u(f,c){const p=f.type,h=a.handlers[p];if(In.call(a.handlers,p)&&h)return h(a,f,c);if(a.options.passThrough&&a.options.passThrough.includes(p)){if("children"in f){const{children:w,...v}=f,x=Tt(v);return x.children=a.all(f),x}return Tt(f)}return(a.options.unknownHandler||vf)(a,f,c)}function s(f){const c=[];if("children"in f){const p=f.children;let h=-1;for(;++h<p.length;){const g=a.one(p[h],f);if(g){if(h&&p[h-1].type==="break"&&(!Array.isArray(g)&&g.type==="text"&&(g.value=Rr(g.value)),!Array.isArray(g)&&g.type==="element")){const w=g.children[0];w&&w.type==="text"&&(w.value=Rr(w.value))}Array.isArray(g)?c.push(...g):c.push(g)}}}return c}}function bf(e,n){e.position&&(n.position=ji(e))}function wf(e,n){let t=n;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,o=e.data.hProperties;if(typeof r=="string")if(t.type==="element")t.tagName=r;else{const l="children"in t?t.children:[t];t={type:"element",tagName:r,properties:{},children:l}}t.type==="element"&&o&&Object.assign(t.properties,Tt(o)),"children"in t&&t.children&&i!==null&&i!==void 0&&(t.children=i)}return t}function vf(e,n){const t=n.data||{},r="value"in n&&!(In.call(t,"hProperties")||In.call(t,"hChildren"))?{type:"text",value:n.value}:{type:"element",tagName:"div",properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function Sf(e,n){const t=[];let r=-1;for(n&&t.push({type:"text",value:`
|
|
25
25
|
`});++r<e.length;)r&&t.push({type:"text",value:`
|
|
26
26
|
`}),t.push(e[r]);return n&&e.length>0&&t.push({type:"text",value:`
|
|
27
|
-
`}),t}function Rr(e){let n=0,t=e.charCodeAt(n);for(;t===9||t===32;)n++,t=e.charCodeAt(n);return e.slice(n)}function Mr(e,n){const t=
|
|
28
|
-
`},i),o}function Sf(e,n){return e&&"run"in e?async function(t,r){const i=Mr(t,{file:r,...n});await e.run(i,r)}:function(t,r){return Mr(t,{file:r,...e||n})}}const et=["ariaDescribedBy","ariaLabel","ariaLabelledBy"],Br={ancestors:{tbody:["table"],td:["table"],th:["table"],thead:["table"],tfoot:["table"],tr:["table"]},attributes:{a:[...et,"dataFootnoteBackref","dataFootnoteRef",["className","data-footnote-backref"],"href"],blockquote:["cite"],code:[["className",/^language-./]],del:["cite"],div:["itemScope","itemType"],dl:[...et],h2:[["className","sr-only"]],img:[...et,"longDesc","src"],input:[["disabled",!0],["type","checkbox"]],ins:["cite"],li:[["className","task-list-item"]],ol:[...et,["className","contains-task-list"]],q:["cite"],section:["dataFootnotes",["className","footnotes"]],source:["srcSet"],summary:[...et],table:[...et],ul:[...et,["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"]},We={}.hasOwnProperty;function Cf(e,n){let t={type:"root",children:[]};const r={schema:n?{...Br,...n}:Br,stack:[]},i=Vi(r,e);return i&&(Array.isArray(i)?i.length===1?t=i[0]:t.children=i:t=i),t}function Vi(e,n){if(n&&typeof n=="object"){const t=n;switch(typeof t.type=="string"?t.type:""){case"comment":return Af(e,t);case"doctype":return If(e,t);case"element":return Ef(e,t);case"root":return _f(e,t);case"text":return Tf(e,t)}}}function Af(e,n){if(e.schema.allowComments){const t=typeof n.value=="string"?n.value:"",r=t.indexOf("-->"),o={type:"comment",value:r<0?t:t.slice(0,r)};return Dt(o,n),o}}function If(e,n){if(e.schema.allowDoctypes){const t={type:"doctype"};return Dt(t,n),t}}function Ef(e,n){const t=typeof n.tagName=="string"?n.tagName:"";e.stack.push(t);const r=Wi(e,n.children),i=Pf(e,n.properties);e.stack.pop();let o=!1;if(t&&t!=="*"&&(!e.schema.tagNames||e.schema.tagNames.includes(t))&&(o=!0,e.schema.ancestors&&We.call(e.schema.ancestors,t))){const a=e.schema.ancestors[t];let u=-1;for(o=!1;++u<a.length;)e.stack.includes(a[u])&&(o=!0)}if(!o)return e.schema.strip&&!e.schema.strip.includes(t)?r:void 0;const l={type:"element",tagName:t,properties:i,children:r};return Dt(l,n),l}function _f(e,n){const r={type:"root",children:Wi(e,n.children)};return Dt(r,n),r}function Tf(e,n){const r={type:"text",value:typeof n.value=="string"?n.value:""};return Dt(r,n),r}function Wi(e,n){const t=[];if(Array.isArray(n)){const r=n;let i=-1;for(;++i<r.length;){const o=Vi(e,r[i]);o&&(Array.isArray(o)?t.push(...o):t.push(o))}}return t}function Pf(e,n){const t=e.stack[e.stack.length-1],r=e.schema.attributes,i=e.schema.required,o=r&&We.call(r,t)?r[t]:void 0,l=r&&We.call(r,"*")?r["*"]:void 0,a=n&&typeof n=="object"?n:{},u={};let s;for(s in a)if(We.call(a,s)){const f=a[s];let c=$r(e,jr(o,s),s,f);c==null&&(c=$r(e,jr(l,s),s,f)),c!=null&&(u[s]=c)}if(i&&We.call(i,t)){const f=i[t];for(s in f)We.call(f,s)&&!We.call(u,s)&&(u[s]=f[s])}return u}function $r(e,n,t,r){return n?Array.isArray(r)?zf(e,n,t,r):Qi(e,n,t,r):void 0}function zf(e,n,t,r){let i=-1;const o=[];for(;++i<r.length;){const l=Qi(e,n,t,r[i]);(typeof l=="number"||typeof l=="string")&&o.push(l)}return o}function Qi(e,n,t,r){if(!(typeof r!="boolean"&&typeof r!="number"&&typeof r!="string")&&Df(e,t,r)){if(typeof n=="object"&&n.length>1){let i=!1,o=0;for(;++o<n.length;){const l=n[o];if(l&&typeof l=="object"&&"flags"in l){if(l.test(String(r))){i=!0;break}}else if(l===r){i=!0;break}}if(!i)return}return e.schema.clobber&&e.schema.clobberPrefix&&e.schema.clobber.includes(t)?e.schema.clobberPrefix+r:r}}function Df(e,n,t){const r=e.schema.protocols&&We.call(e.schema.protocols,n)?e.schema.protocols[n]:void 0;if(!r||r.length===0)return!0;const i=String(t),o=i.indexOf(":"),l=i.indexOf("?"),a=i.indexOf("#"),u=i.indexOf("/");if(o<0||u>-1&&o>u||l>-1&&o>l||a>-1&&o>a)return!0;let s=-1;for(;++s<r.length;){const f=r[s];if(o===f.length&&i.slice(0,f.length)===f)return!0}return!1}function Dt(e,n){const t=ji(n);n.data&&(e.data=Tt(n.data)),t&&(e.position=t)}function jr(e,n){let t,r=-1;if(e)for(;++r<e.length;){const i=e[r],o=typeof i=="string"?i:i[0];if(o===n)return i;o==="data*"&&(t=i)}if(n.length>4&&n.slice(0,4).toLowerCase()==="data")return t}function Lf(e){return function(n){return Cf(n,e)}}const Ff=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];class Lt{constructor(n,t,r){this.normal=t,this.property=n,r&&(this.space=r)}}Lt.prototype.normal={};Lt.prototype.property={};Lt.prototype.space=void 0;function Yi(e,n){const t={},r={};for(const i of e)Object.assign(t,i.property),Object.assign(r,i.normal);return new Lt(t,r,n)}function En(e){return e.toLowerCase()}class be{constructor(n,t){this.attribute=t,this.property=n}}be.prototype.attribute="";be.prototype.booleanish=!1;be.prototype.boolean=!1;be.prototype.commaOrSpaceSeparated=!1;be.prototype.commaSeparated=!1;be.prototype.defined=!1;be.prototype.mustUseProperty=!1;be.prototype.number=!1;be.prototype.overloadedBoolean=!1;be.prototype.property="";be.prototype.spaceSeparated=!1;be.prototype.space=void 0;let Nf=0;const O=it(),ue=it(),_n=it(),S=it(),J=it(),ut=it(),Ae=it();function it(){return 2**++Nf}const Tn=Object.freeze(Object.defineProperty({__proto__:null,boolean:O,booleanish:ue,commaOrSpaceSeparated:Ae,commaSeparated:ut,number:S,overloadedBoolean:_n,spaceSeparated:J},Symbol.toStringTag,{value:"Module"})),gn=Object.keys(Tn);class qn extends be{constructor(n,t,r,i){let o=-1;if(super(n,t),qr(this,"space",i),typeof r=="number")for(;++o<gn.length;){const l=gn[o];qr(this,gn[o],(r&Tn[l])===Tn[l])}}}qn.prototype.defined=!0;function qr(e,n,t){t&&(e[n]=t)}function yt(e){const n={},t={};for(const[r,i]of Object.entries(e.properties)){const o=new qn(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),n[r]=o,t[En(r)]=r,t[En(o.attribute)]=r}return new Lt(n,t,e.space)}const Ki=yt({properties:{ariaActiveDescendant:null,ariaAtomic:ue,ariaAutoComplete:null,ariaBusy:ue,ariaChecked:ue,ariaColCount:S,ariaColIndex:S,ariaColSpan:S,ariaControls:J,ariaCurrent:null,ariaDescribedBy:J,ariaDetails:null,ariaDisabled:ue,ariaDropEffect:J,ariaErrorMessage:null,ariaExpanded:ue,ariaFlowTo:J,ariaGrabbed:ue,ariaHasPopup:null,ariaHidden:ue,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:J,ariaLevel:S,ariaLive:null,ariaModal:ue,ariaMultiLine:ue,ariaMultiSelectable:ue,ariaOrientation:null,ariaOwns:J,ariaPlaceholder:null,ariaPosInSet:S,ariaPressed:ue,ariaReadOnly:ue,ariaRelevant:null,ariaRequired:ue,ariaRoleDescription:J,ariaRowCount:S,ariaRowIndex:S,ariaRowSpan:S,ariaSelected:ue,ariaSetSize:S,ariaSort:null,ariaValueMax:S,ariaValueMin:S,ariaValueNow:S,ariaValueText:null,role:null},transform(e,n){return n==="role"?n:"aria-"+n.slice(4).toLowerCase()}});function Gi(e,n){return n in e?e[n]:n}function Xi(e,n){return Gi(e,n.toLowerCase())}const Of=yt({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:ut,acceptCharset:J,accessKey:J,action:null,allow:null,allowFullScreen:O,allowPaymentRequest:O,allowUserMedia:O,alt:null,as:null,async:O,autoCapitalize:null,autoComplete:J,autoFocus:O,autoPlay:O,blocking:J,capture:null,charSet:null,checked:O,cite:null,className:J,cols:S,colSpan:null,content:null,contentEditable:ue,controls:O,controlsList:J,coords:S|ut,crossOrigin:null,data:null,dateTime:null,decoding:null,default:O,defer:O,dir:null,dirName:null,disabled:O,download:_n,draggable:ue,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:O,formTarget:null,headers:J,height:S,hidden:_n,high:S,href:null,hrefLang:null,htmlFor:J,httpEquiv:J,id:null,imageSizes:null,imageSrcSet:null,inert:O,inputMode:null,integrity:null,is:null,isMap:O,itemId:null,itemProp:J,itemRef:J,itemScope:O,itemType:J,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:O,low:S,manifest:null,max:null,maxLength:S,media:null,method:null,min:null,minLength:S,multiple:O,muted:O,name:null,nonce:null,noModule:O,noValidate:O,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:O,optimum:S,pattern:null,ping:J,placeholder:null,playsInline:O,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:O,referrerPolicy:null,rel:J,required:O,reversed:O,rows:S,rowSpan:S,sandbox:J,scope:null,scoped:O,seamless:O,selected:O,shadowRootClonable:O,shadowRootDelegatesFocus:O,shadowRootMode:null,shape:null,size:S,sizes:null,slot:null,span:S,spellCheck:ue,src:null,srcDoc:null,srcLang:null,srcSet:null,start:S,step:null,style:null,tabIndex:S,target:null,title:null,translate:null,type:null,typeMustMatch:O,useMap:null,value:ue,width:S,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:J,axis:null,background:null,bgColor:null,border:S,borderColor:null,bottomMargin:S,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:O,declare:O,event:null,face:null,frame:null,frameBorder:null,hSpace:S,leftMargin:S,link:null,longDesc:null,lowSrc:null,marginHeight:S,marginWidth:S,noResize:O,noHref:O,noShade:O,noWrap:O,object:null,profile:null,prompt:null,rev:null,rightMargin:S,rules:null,scheme:null,scrolling:ue,standby:null,summary:null,text:null,topMargin:S,valueType:null,version:null,vAlign:null,vLink:null,vSpace:S,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:O,disableRemotePlayback:O,prefix:null,property:null,results:S,security:null,unselectable:null},space:"html",transform:Xi}),Rf=yt({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Ae,accentHeight:S,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:S,amplitude:S,arabicForm:null,ascent:S,attributeName:null,attributeType:null,azimuth:S,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:S,by:null,calcMode:null,capHeight:S,className:J,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:S,diffuseConstant:S,direction:null,display:null,dur:null,divisor:S,dominantBaseline:null,download:O,dx:null,dy:null,edgeMode:null,editable:null,elevation:S,enableBackground:null,end:null,event:null,exponent:S,externalResourcesRequired:null,fill:null,fillOpacity:S,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:ut,g2:ut,glyphName:ut,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:S,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:S,horizOriginX:S,horizOriginY:S,id:null,ideographic:S,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:S,k:S,k1:S,k2:S,k3:S,k4:S,kernelMatrix:Ae,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:S,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:S,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:S,overlineThickness:S,paintOrder:null,panose1:null,path:null,pathLength:S,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:J,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:S,pointsAtY:S,pointsAtZ:S,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Ae,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Ae,rev:Ae,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Ae,requiredFeatures:Ae,requiredFonts:Ae,requiredFormats:Ae,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:S,specularExponent:S,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:S,strikethroughThickness:S,string:null,stroke:null,strokeDashArray:Ae,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:S,strokeOpacity:S,strokeWidth:null,style:null,surfaceScale:S,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Ae,tabIndex:S,tableValues:null,target:null,targetX:S,targetY:S,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Ae,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:S,underlineThickness:S,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:S,values:null,vAlphabetic:S,vMathematical:S,vectorEffect:null,vHanging:S,vIdeographic:S,version:null,vertAdvY:S,vertOriginX:S,vertOriginY:S,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:S,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Gi}),Zi=yt({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,n){return"xlink:"+n.slice(5).toLowerCase()}}),Ji=yt({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Xi}),el=yt({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,n){return"xml:"+n.slice(3).toLowerCase()}}),Mf=/[A-Z]/g,Hr=/-[a-z]/g,Bf=/^data[-\w.:]+$/i;function $f(e,n){const t=En(n);let r=n,i=be;if(t in e.normal)return e.property[e.normal[t]];if(t.length>4&&t.slice(0,4)==="data"&&Bf.test(n)){if(n.charAt(4)==="-"){const o=n.slice(5).replace(Hr,qf);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=n.slice(4);if(!Hr.test(o)){let l=o.replace(Mf,jf);l.charAt(0)!=="-"&&(l="-"+l),n="data"+l}}i=qn}return new i(r,n)}function jf(e){return"-"+e.toLowerCase()}function qf(e){return e.charAt(1).toUpperCase()}const Hf=Yi([Ki,Of,Zi,Ji,el],"html"),tl=Yi([Ki,Rf,Zi,Ji,el],"svg"),Uf=/["&'<>`]/g,Vf=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Wf=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,Qf=/[|\\{}()[\]^$+*?.]/g,Ur=new WeakMap;function Yf(e,n){if(e=e.replace(n.subset?Kf(n.subset):Uf,r),n.subset||n.escapeOnly)return e;return e.replace(Vf,t).replace(Wf,r);function t(i,o,l){return n.format((i.charCodeAt(0)-55296)*1024+i.charCodeAt(1)-56320+65536,l.charCodeAt(o+2),n)}function r(i,o,l){return n.format(i.charCodeAt(0),l.charCodeAt(o+1),n)}}function Kf(e){let n=Ur.get(e);return n||(n=Gf(e),Ur.set(e,n)),n}function Gf(e){const n=[];let t=-1;for(;++t<e.length;)n.push(e[t].replace(Qf,"\\$&"));return new RegExp("(?:"+n.join("|")+")","g")}const Xf=/[\dA-Fa-f]/;function Zf(e,n,t){const r="&#x"+e.toString(16).toUpperCase();return t&&n&&!Xf.test(String.fromCharCode(n))?r:r+";"}const Jf=/\d/;function eh(e,n,t){const r="&#"+String(e);return t&&n&&!Jf.test(String.fromCharCode(n))?r:r+";"}const th=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],yn={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},nh=["cent","copy","divide","gt","lt","not","para","times"],nl={}.hasOwnProperty,Pn={};let $t;for($t in yn)nl.call(yn,$t)&&(Pn[yn[$t]]=$t);const rh=/[^\dA-Za-z]/;function ih(e,n,t,r){const i=String.fromCharCode(e);if(nl.call(Pn,i)){const o=Pn[i],l="&"+o;return t&&th.includes(o)&&!nh.includes(o)&&(!r||n&&n!==61&&rh.test(String.fromCharCode(n)))?l:l+";"}return""}function lh(e,n,t){let r=Zf(e,n,t.omitOptionalSemicolons),i;if((t.useNamedReferences||t.useShortestReferences)&&(i=ih(e,n,t.omitOptionalSemicolons,t.attribute)),(t.useShortestReferences||!i)&&t.useShortestReferences){const o=eh(e,n,t.omitOptionalSemicolons);o.length<r.length&&(r=o)}return i&&(!t.useShortestReferences||i.length<r.length)?i:r}function st(e,n){return Yf(e,Object.assign({format:lh},n))}const oh=/^>|^->|<!--|-->|--!>|<!-$/g,ah=[">"],uh=["<",">"];function sh(e,n,t,r){return r.settings.bogusComments?"<?"+st(e.value,Object.assign({},r.settings.characterReferences,{subset:ah}))+">":"<!--"+e.value.replace(oh,i)+"-->";function i(o){return st(o,Object.assign({},r.settings.characterReferences,{subset:uh}))}}function ch(e,n,t,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}function fh(e,n){const t=n||{};return(e[e.length-1]===""?[...e,""]:e).join((t.padRight?" ":"")+","+(t.padLeft===!1?"":" ")).trim()}function hh(e){return e.join(" ").trim()}const ph=/[ \t\n\f\r]/g;function Hn(e){return typeof e=="object"?e.type==="text"?Vr(e.value):!1:Vr(e)}function Vr(e){return e.replace(ph,"")===""}const ce=il(1),rl=il(-1),mh=[];function il(e){return n;function n(t,r,i){const o=t?t.children:mh;let l=(r||0)+e,a=o[l];if(!i)for(;a&&Hn(a);)l+=e,a=o[l];return a}}const dh={}.hasOwnProperty;function ll(e){return n;function n(t,r,i){return dh.call(e,t.tagName)&&e[t.tagName](t,r,i)}}const Un=ll({body:yh,caption:xn,colgroup:xn,dd:wh,dt:bh,head:xn,html:gh,li:kh,optgroup:vh,option:Sh,p:xh,rp:Wr,rt:Wr,tbody:Ah,td:Qr,tfoot:Ih,th:Qr,thead:Ch,tr:Eh});function xn(e,n,t){const r=ce(t,n,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&Hn(r.value.charAt(0)))}function gh(e,n,t){const r=ce(t,n);return!r||r.type!=="comment"}function yh(e,n,t){const r=ce(t,n);return!r||r.type!=="comment"}function xh(e,n,t){const r=ce(t,n);return r?r.type==="element"&&(r.tagName==="address"||r.tagName==="article"||r.tagName==="aside"||r.tagName==="blockquote"||r.tagName==="details"||r.tagName==="div"||r.tagName==="dl"||r.tagName==="fieldset"||r.tagName==="figcaption"||r.tagName==="figure"||r.tagName==="footer"||r.tagName==="form"||r.tagName==="h1"||r.tagName==="h2"||r.tagName==="h3"||r.tagName==="h4"||r.tagName==="h5"||r.tagName==="h6"||r.tagName==="header"||r.tagName==="hgroup"||r.tagName==="hr"||r.tagName==="main"||r.tagName==="menu"||r.tagName==="nav"||r.tagName==="ol"||r.tagName==="p"||r.tagName==="pre"||r.tagName==="section"||r.tagName==="table"||r.tagName==="ul"):!t||!(t.type==="element"&&(t.tagName==="a"||t.tagName==="audio"||t.tagName==="del"||t.tagName==="ins"||t.tagName==="map"||t.tagName==="noscript"||t.tagName==="video"))}function kh(e,n,t){const r=ce(t,n);return!r||r.type==="element"&&r.tagName==="li"}function bh(e,n,t){const r=ce(t,n);return!!(r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd"))}function wh(e,n,t){const r=ce(t,n);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function Wr(e,n,t){const r=ce(t,n);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}function vh(e,n,t){const r=ce(t,n);return!r||r.type==="element"&&r.tagName==="optgroup"}function Sh(e,n,t){const r=ce(t,n);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}function Ch(e,n,t){const r=ce(t,n);return!!(r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot"))}function Ah(e,n,t){const r=ce(t,n);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function Ih(e,n,t){return!ce(t,n)}function Eh(e,n,t){const r=ce(t,n);return!r||r.type==="element"&&r.tagName==="tr"}function Qr(e,n,t){const r=ce(t,n);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}const _h=ll({body:zh,colgroup:Dh,head:Ph,html:Th,tbody:Lh});function Th(e){const n=ce(e,-1);return!n||n.type!=="comment"}function Ph(e){const n=new Set;for(const r of e.children)if(r.type==="element"&&(r.tagName==="base"||r.tagName==="title")){if(n.has(r.tagName))return!1;n.add(r.tagName)}const t=e.children[0];return!t||t.type==="element"}function zh(e){const n=ce(e,-1,!0);return!n||n.type!=="comment"&&!(n.type==="text"&&Hn(n.value.charAt(0)))&&!(n.type==="element"&&(n.tagName==="meta"||n.tagName==="link"||n.tagName==="script"||n.tagName==="style"||n.tagName==="template"))}function Dh(e,n,t){const r=rl(t,n),i=ce(e,-1,!0);return t&&r&&r.type==="element"&&r.tagName==="colgroup"&&Un(r,t.children.indexOf(r),t)?!1:!!(i&&i.type==="element"&&i.tagName==="col")}function Lh(e,n,t){const r=rl(t,n),i=ce(e,-1);return t&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&Un(r,t.children.indexOf(r),t)?!1:!!(i&&i.type==="element"&&i.tagName==="tr")}const jt={name:[[`
|
|
27
|
+
`}),t}function Rr(e){let n=0,t=e.charCodeAt(n);for(;t===9||t===32;)n++,t=e.charCodeAt(n);return e.slice(n)}function Mr(e,n){const t=kf(e,n),r=t.one(e,void 0),i=yf(t),o=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&o.children.push({type:"text",value:`
|
|
28
|
+
`},i),o}function Cf(e,n){return e&&"run"in e?async function(t,r){const i=Mr(t,{file:r,...n});await e.run(i,r)}:function(t,r){return Mr(t,{file:r,...e||n})}}const et=["ariaDescribedBy","ariaLabel","ariaLabelledBy"],Br={ancestors:{tbody:["table"],td:["table"],th:["table"],thead:["table"],tfoot:["table"],tr:["table"]},attributes:{a:[...et,"dataFootnoteBackref","dataFootnoteRef",["className","data-footnote-backref"],"href"],blockquote:["cite"],code:[["className",/^language-./]],del:["cite"],div:["itemScope","itemType"],dl:[...et],h2:[["className","sr-only"]],img:[...et,"longDesc","src"],input:[["disabled",!0],["type","checkbox"]],ins:["cite"],li:[["className","task-list-item"]],ol:[...et,["className","contains-task-list"]],q:["cite"],section:["dataFootnotes",["className","footnotes"]],source:["srcSet"],summary:[...et],table:[...et],ul:[...et,["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"]},We={}.hasOwnProperty;function Af(e,n){let t={type:"root",children:[]};const r={schema:n?{...Br,...n}:Br,stack:[]},i=Vi(r,e);return i&&(Array.isArray(i)?i.length===1?t=i[0]:t.children=i:t=i),t}function Vi(e,n){if(n&&typeof n=="object"){const t=n;switch(typeof t.type=="string"?t.type:""){case"comment":return If(e,t);case"doctype":return Ef(e,t);case"element":return _f(e,t);case"root":return Tf(e,t);case"text":return Pf(e,t)}}}function If(e,n){if(e.schema.allowComments){const t=typeof n.value=="string"?n.value:"",r=t.indexOf("-->"),o={type:"comment",value:r<0?t:t.slice(0,r)};return Dt(o,n),o}}function Ef(e,n){if(e.schema.allowDoctypes){const t={type:"doctype"};return Dt(t,n),t}}function _f(e,n){const t=typeof n.tagName=="string"?n.tagName:"";e.stack.push(t);const r=Wi(e,n.children),i=zf(e,n.properties);e.stack.pop();let o=!1;if(t&&t!=="*"&&(!e.schema.tagNames||e.schema.tagNames.includes(t))&&(o=!0,e.schema.ancestors&&We.call(e.schema.ancestors,t))){const a=e.schema.ancestors[t];let u=-1;for(o=!1;++u<a.length;)e.stack.includes(a[u])&&(o=!0)}if(!o)return e.schema.strip&&!e.schema.strip.includes(t)?r:void 0;const l={type:"element",tagName:t,properties:i,children:r};return Dt(l,n),l}function Tf(e,n){const r={type:"root",children:Wi(e,n.children)};return Dt(r,n),r}function Pf(e,n){const r={type:"text",value:typeof n.value=="string"?n.value:""};return Dt(r,n),r}function Wi(e,n){const t=[];if(Array.isArray(n)){const r=n;let i=-1;for(;++i<r.length;){const o=Vi(e,r[i]);o&&(Array.isArray(o)?t.push(...o):t.push(o))}}return t}function zf(e,n){const t=e.stack[e.stack.length-1],r=e.schema.attributes,i=e.schema.required,o=r&&We.call(r,t)?r[t]:void 0,l=r&&We.call(r,"*")?r["*"]:void 0,a=n&&typeof n=="object"?n:{},u={};let s;for(s in a)if(We.call(a,s)){const f=a[s];let c=$r(e,jr(o,s),s,f);c==null&&(c=$r(e,jr(l,s),s,f)),c!=null&&(u[s]=c)}if(i&&We.call(i,t)){const f=i[t];for(s in f)We.call(f,s)&&!We.call(u,s)&&(u[s]=f[s])}return u}function $r(e,n,t,r){return n?Array.isArray(r)?Df(e,n,t,r):Qi(e,n,t,r):void 0}function Df(e,n,t,r){let i=-1;const o=[];for(;++i<r.length;){const l=Qi(e,n,t,r[i]);(typeof l=="number"||typeof l=="string")&&o.push(l)}return o}function Qi(e,n,t,r){if(!(typeof r!="boolean"&&typeof r!="number"&&typeof r!="string")&&Lf(e,t,r)){if(typeof n=="object"&&n.length>1){let i=!1,o=0;for(;++o<n.length;){const l=n[o];if(l&&typeof l=="object"&&"flags"in l){if(l.test(String(r))){i=!0;break}}else if(l===r){i=!0;break}}if(!i)return}return e.schema.clobber&&e.schema.clobberPrefix&&e.schema.clobber.includes(t)?e.schema.clobberPrefix+r:r}}function Lf(e,n,t){const r=e.schema.protocols&&We.call(e.schema.protocols,n)?e.schema.protocols[n]:void 0;if(!r||r.length===0)return!0;const i=String(t),o=i.indexOf(":"),l=i.indexOf("?"),a=i.indexOf("#"),u=i.indexOf("/");if(o<0||u>-1&&o>u||l>-1&&o>l||a>-1&&o>a)return!0;let s=-1;for(;++s<r.length;){const f=r[s];if(o===f.length&&i.slice(0,f.length)===f)return!0}return!1}function Dt(e,n){const t=ji(n);n.data&&(e.data=Tt(n.data)),t&&(e.position=t)}function jr(e,n){let t,r=-1;if(e)for(;++r<e.length;){const i=e[r],o=typeof i=="string"?i:i[0];if(o===n)return i;o==="data*"&&(t=i)}if(n.length>4&&n.slice(0,4).toLowerCase()==="data")return t}function Ff(e){return function(n){return Af(n,e)}}const Nf=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];class Lt{constructor(n,t,r){this.normal=t,this.property=n,r&&(this.space=r)}}Lt.prototype.normal={};Lt.prototype.property={};Lt.prototype.space=void 0;function Yi(e,n){const t={},r={};for(const i of e)Object.assign(t,i.property),Object.assign(r,i.normal);return new Lt(t,r,n)}function En(e){return e.toLowerCase()}class be{constructor(n,t){this.attribute=t,this.property=n}}be.prototype.attribute="";be.prototype.booleanish=!1;be.prototype.boolean=!1;be.prototype.commaOrSpaceSeparated=!1;be.prototype.commaSeparated=!1;be.prototype.defined=!1;be.prototype.mustUseProperty=!1;be.prototype.number=!1;be.prototype.overloadedBoolean=!1;be.prototype.property="";be.prototype.spaceSeparated=!1;be.prototype.space=void 0;let Of=0;const F=lt(),ue=lt(),_n=lt(),S=lt(),X=lt(),tt=lt(),Ae=lt();function lt(){return 2**++Of}const Tn=Object.freeze(Object.defineProperty({__proto__:null,boolean:F,booleanish:ue,commaOrSpaceSeparated:Ae,commaSeparated:tt,number:S,overloadedBoolean:_n,spaceSeparated:X},Symbol.toStringTag,{value:"Module"})),gn=Object.keys(Tn);class qn extends be{constructor(n,t,r,i){let o=-1;if(super(n,t),qr(this,"space",i),typeof r=="number")for(;++o<gn.length;){const l=gn[o];qr(this,gn[o],(r&Tn[l])===Tn[l])}}}qn.prototype.defined=!0;function qr(e,n,t){t&&(e[n]=t)}function yt(e){const n={},t={};for(const[r,i]of Object.entries(e.properties)){const o=new qn(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),n[r]=o,t[En(r)]=r,t[En(o.attribute)]=r}return new Lt(n,t,e.space)}const Ki=yt({properties:{ariaActiveDescendant:null,ariaAtomic:ue,ariaAutoComplete:null,ariaBusy:ue,ariaChecked:ue,ariaColCount:S,ariaColIndex:S,ariaColSpan:S,ariaControls:X,ariaCurrent:null,ariaDescribedBy:X,ariaDetails:null,ariaDisabled:ue,ariaDropEffect:X,ariaErrorMessage:null,ariaExpanded:ue,ariaFlowTo:X,ariaGrabbed:ue,ariaHasPopup:null,ariaHidden:ue,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:X,ariaLevel:S,ariaLive:null,ariaModal:ue,ariaMultiLine:ue,ariaMultiSelectable:ue,ariaOrientation:null,ariaOwns:X,ariaPlaceholder:null,ariaPosInSet:S,ariaPressed:ue,ariaReadOnly:ue,ariaRelevant:null,ariaRequired:ue,ariaRoleDescription:X,ariaRowCount:S,ariaRowIndex:S,ariaRowSpan:S,ariaSelected:ue,ariaSetSize:S,ariaSort:null,ariaValueMax:S,ariaValueMin:S,ariaValueNow:S,ariaValueText:null,role:null},transform(e,n){return n==="role"?n:"aria-"+n.slice(4).toLowerCase()}});function Gi(e,n){return n in e?e[n]:n}function Xi(e,n){return Gi(e,n.toLowerCase())}const Rf=yt({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:tt,acceptCharset:X,accessKey:X,action:null,allow:null,allowFullScreen:F,allowPaymentRequest:F,allowUserMedia:F,alpha:F,alt:null,as:null,async:F,autoCapitalize:null,autoComplete:X,autoFocus:F,autoPlay:F,blocking:X,capture:null,charSet:null,checked:F,cite:null,className:X,closedBy:null,colorSpace:null,cols:S,colSpan:S,command:null,commandFor:null,content:null,contentEditable:ue,controls:F,controlsList:X,coords:S|tt,crossOrigin:null,data:null,dateTime:null,decoding:null,default:F,defer:F,dir:null,dirName:null,disabled:F,download:_n,draggable:ue,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:F,formTarget:null,headers:X,height:S,hidden:_n,high:S,href:null,hrefLang:null,htmlFor:X,httpEquiv:X,id:null,imageSizes:null,imageSrcSet:null,inert:F,inputMode:null,integrity:null,is:null,isMap:F,itemId:null,itemProp:X,itemRef:X,itemScope:F,itemType:X,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:F,low:S,manifest:null,max:null,maxLength:S,media:null,method:null,min:null,minLength:S,multiple:F,muted:F,name:null,nonce:null,noModule:F,noValidate:F,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:F,optimum:S,pattern:null,ping:X,placeholder:null,playsInline:F,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:F,referrerPolicy:null,rel:X,required:F,reversed:F,rows:S,rowSpan:S,sandbox:X,scope:null,scoped:F,seamless:F,selected:F,shadowRootClonable:F,shadowRootCustomElementRegistry:F,shadowRootDelegatesFocus:F,shadowRootMode:null,shadowRootSerializable:F,shape:null,size:S,sizes:null,slot:null,span:S,spellCheck:ue,src:null,srcDoc:null,srcLang:null,srcSet:null,start:S,step:null,style:null,tabIndex:S,target:null,title:null,translate:null,type:null,typeMustMatch:F,useMap:null,value:ue,width:S,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:X,axis:null,background:null,bgColor:null,border:S,borderColor:null,bottomMargin:S,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:F,declare:F,event:null,face:null,frame:null,frameBorder:null,hSpace:S,leftMargin:S,link:null,longDesc:null,lowSrc:null,marginHeight:S,marginWidth:S,noResize:F,noHref:F,noShade:F,noWrap:F,object:null,profile:null,prompt:null,rev:null,rightMargin:S,rules:null,scheme:null,scrolling:ue,standby:null,summary:null,text:null,topMargin:S,valueType:null,version:null,vAlign:null,vLink:null,vSpace:S,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:F,disablePictureInPicture:F,disableRemotePlayback:F,exportParts:tt,part:X,prefix:null,property:null,results:S,security:null,unselectable:null},space:"html",transform:Xi}),Mf=yt({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",maskType:"mask-type",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Ae,accentHeight:S,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:S,amplitude:S,arabicForm:null,ascent:S,attributeName:null,attributeType:null,azimuth:S,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:S,by:null,calcMode:null,capHeight:S,className:X,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:S,diffuseConstant:S,direction:null,display:null,dur:null,divisor:S,dominantBaseline:null,download:F,dx:null,dy:null,edgeMode:null,editable:null,elevation:S,enableBackground:null,end:null,event:null,exponent:S,externalResourcesRequired:null,fill:null,fillOpacity:S,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:tt,g2:tt,glyphName:tt,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:S,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:S,horizOriginX:S,horizOriginY:S,id:null,ideographic:S,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:S,k:S,k1:S,k2:S,k3:S,k4:S,kernelMatrix:Ae,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:S,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:S,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:S,overlineThickness:S,paintOrder:null,panose1:null,path:null,pathLength:S,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:X,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:S,pointsAtY:S,pointsAtZ:S,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Ae,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Ae,rev:Ae,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Ae,requiredFeatures:Ae,requiredFonts:Ae,requiredFormats:Ae,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:S,specularExponent:S,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:S,strikethroughThickness:S,string:null,stroke:null,strokeDashArray:Ae,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:S,strokeOpacity:S,strokeWidth:null,style:null,surfaceScale:S,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Ae,tabIndex:S,tableValues:null,target:null,targetX:S,targetY:S,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Ae,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:S,underlineThickness:S,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:S,values:null,vAlphabetic:S,vMathematical:S,vectorEffect:null,vHanging:S,vIdeographic:S,version:null,vertAdvY:S,vertOriginX:S,vertOriginY:S,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:S,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Gi}),Zi=yt({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,n){return"xlink:"+n.slice(5).toLowerCase()}}),Ji=yt({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Xi}),el=yt({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,n){return"xml:"+n.slice(3).toLowerCase()}}),Bf=/[A-Z]/g,Hr=/-[a-z]/g,$f=/^data[-\w.:]+$/i;function jf(e,n){const t=En(n);let r=n,i=be;if(t in e.normal)return e.property[e.normal[t]];if(t.length>4&&t.slice(0,4)==="data"&&$f.test(n)){if(n.charAt(4)==="-"){const o=n.slice(5).replace(Hr,Hf);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=n.slice(4);if(!Hr.test(o)){let l=o.replace(Bf,qf);l.charAt(0)!=="-"&&(l="-"+l),n="data"+l}}i=qn}return new i(r,n)}function qf(e){return"-"+e.toLowerCase()}function Hf(e){return e.charAt(1).toUpperCase()}const Uf=Yi([Ki,Rf,Zi,Ji,el],"html"),tl=Yi([Ki,Mf,Zi,Ji,el],"svg"),Vf=/["&'<>`]/g,Wf=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Qf=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,Yf=/[|\\{}()[\]^$+*?.]/g,Ur=new WeakMap;function Kf(e,n){if(e=e.replace(n.subset?Gf(n.subset):Vf,r),n.subset||n.escapeOnly)return e;return e.replace(Wf,t).replace(Qf,r);function t(i,o,l){return n.format((i.charCodeAt(0)-55296)*1024+i.charCodeAt(1)-56320+65536,l.charCodeAt(o+2),n)}function r(i,o,l){return n.format(i.charCodeAt(0),l.charCodeAt(o+1),n)}}function Gf(e){let n=Ur.get(e);return n||(n=Xf(e),Ur.set(e,n)),n}function Xf(e){const n=[];let t=-1;for(;++t<e.length;)n.push(e[t].replace(Yf,"\\$&"));return new RegExp("(?:"+n.join("|")+")","g")}const Zf=/[\dA-Fa-f]/;function Jf(e,n,t){const r="&#x"+e.toString(16).toUpperCase();return t&&n&&!Zf.test(String.fromCharCode(n))?r:r+";"}const eh=/\d/;function th(e,n,t){const r="&#"+String(e);return t&&n&&!eh.test(String.fromCharCode(n))?r:r+";"}const nh=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],yn={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},rh=["cent","copy","divide","gt","lt","not","para","times"],nl={}.hasOwnProperty,Pn={};let $t;for($t in yn)nl.call(yn,$t)&&(Pn[yn[$t]]=$t);const ih=/[^\dA-Za-z]/;function lh(e,n,t,r){const i=String.fromCharCode(e);if(nl.call(Pn,i)){const o=Pn[i],l="&"+o;return t&&nh.includes(o)&&!rh.includes(o)&&(!r||n&&n!==61&&ih.test(String.fromCharCode(n)))?l:l+";"}return""}function oh(e,n,t){let r=Jf(e,n,t.omitOptionalSemicolons),i;if((t.useNamedReferences||t.useShortestReferences)&&(i=lh(e,n,t.omitOptionalSemicolons,t.attribute)),(t.useShortestReferences||!i)&&t.useShortestReferences){const o=th(e,n,t.omitOptionalSemicolons);o.length<r.length&&(r=o)}return i&&(!t.useShortestReferences||i.length<r.length)?i:r}function st(e,n){return Kf(e,Object.assign({format:oh},n))}const ah=/^>|^->|<!--|-->|--!>|<!-$/g,uh=[">"],sh=["<",">"];function ch(e,n,t,r){return r.settings.bogusComments?"<?"+st(e.value,Object.assign({},r.settings.characterReferences,{subset:uh}))+">":"<!--"+e.value.replace(ah,i)+"-->";function i(o){return st(o,Object.assign({},r.settings.characterReferences,{subset:sh}))}}function fh(e,n,t,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}function hh(e,n){const t=n||{};return(e[e.length-1]===""?[...e,""]:e).join((t.padRight?" ":"")+","+(t.padLeft===!1?"":" ")).trim()}function ph(e){return e.join(" ").trim()}const mh=/[ \t\n\f\r]/g;function Hn(e){return typeof e=="object"?e.type==="text"?Vr(e.value):!1:Vr(e)}function Vr(e){return e.replace(mh,"")===""}const ce=il(1),rl=il(-1),dh=[];function il(e){return n;function n(t,r,i){const o=t?t.children:dh;let l=(r||0)+e,a=o[l];if(!i)for(;a&&Hn(a);)l+=e,a=o[l];return a}}const gh={}.hasOwnProperty;function ll(e){return n;function n(t,r,i){return gh.call(e,t.tagName)&&e[t.tagName](t,r,i)}}const Un=ll({body:xh,caption:xn,colgroup:xn,dd:vh,dt:wh,head:xn,html:yh,li:bh,optgroup:Sh,option:Ch,p:kh,rp:Wr,rt:Wr,tbody:Ih,td:Qr,tfoot:Eh,th:Qr,thead:Ah,tr:_h});function xn(e,n,t){const r=ce(t,n,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&Hn(r.value.charAt(0)))}function yh(e,n,t){const r=ce(t,n);return!r||r.type!=="comment"}function xh(e,n,t){const r=ce(t,n);return!r||r.type!=="comment"}function kh(e,n,t){const r=ce(t,n);return r?r.type==="element"&&(r.tagName==="address"||r.tagName==="article"||r.tagName==="aside"||r.tagName==="blockquote"||r.tagName==="details"||r.tagName==="div"||r.tagName==="dl"||r.tagName==="fieldset"||r.tagName==="figcaption"||r.tagName==="figure"||r.tagName==="footer"||r.tagName==="form"||r.tagName==="h1"||r.tagName==="h2"||r.tagName==="h3"||r.tagName==="h4"||r.tagName==="h5"||r.tagName==="h6"||r.tagName==="header"||r.tagName==="hgroup"||r.tagName==="hr"||r.tagName==="main"||r.tagName==="menu"||r.tagName==="nav"||r.tagName==="ol"||r.tagName==="p"||r.tagName==="pre"||r.tagName==="section"||r.tagName==="table"||r.tagName==="ul"):!t||!(t.type==="element"&&(t.tagName==="a"||t.tagName==="audio"||t.tagName==="del"||t.tagName==="ins"||t.tagName==="map"||t.tagName==="noscript"||t.tagName==="video"))}function bh(e,n,t){const r=ce(t,n);return!r||r.type==="element"&&r.tagName==="li"}function wh(e,n,t){const r=ce(t,n);return!!(r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd"))}function vh(e,n,t){const r=ce(t,n);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function Wr(e,n,t){const r=ce(t,n);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}function Sh(e,n,t){const r=ce(t,n);return!r||r.type==="element"&&r.tagName==="optgroup"}function Ch(e,n,t){const r=ce(t,n);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}function Ah(e,n,t){const r=ce(t,n);return!!(r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot"))}function Ih(e,n,t){const r=ce(t,n);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function Eh(e,n,t){return!ce(t,n)}function _h(e,n,t){const r=ce(t,n);return!r||r.type==="element"&&r.tagName==="tr"}function Qr(e,n,t){const r=ce(t,n);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}const Th=ll({body:Dh,colgroup:Lh,head:zh,html:Ph,tbody:Fh});function Ph(e){const n=ce(e,-1);return!n||n.type!=="comment"}function zh(e){const n=new Set;for(const r of e.children)if(r.type==="element"&&(r.tagName==="base"||r.tagName==="title")){if(n.has(r.tagName))return!1;n.add(r.tagName)}const t=e.children[0];return!t||t.type==="element"}function Dh(e){const n=ce(e,-1,!0);return!n||n.type!=="comment"&&!(n.type==="text"&&Hn(n.value.charAt(0)))&&!(n.type==="element"&&(n.tagName==="meta"||n.tagName==="link"||n.tagName==="script"||n.tagName==="style"||n.tagName==="template"))}function Lh(e,n,t){const r=rl(t,n),i=ce(e,-1,!0);return t&&r&&r.type==="element"&&r.tagName==="colgroup"&&Un(r,t.children.indexOf(r),t)?!1:!!(i&&i.type==="element"&&i.tagName==="col")}function Fh(e,n,t){const r=rl(t,n),i=ce(e,-1);return t&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&Un(r,t.children.indexOf(r),t)?!1:!!(i&&i.type==="element"&&i.tagName==="tr")}const jt={name:[[`
|
|
29
29
|
\f\r &/=>`.split(""),`
|
|
30
30
|
\f\r "&'/=>\``.split("")],[`\0
|
|
31
31
|
\f\r "&'/<=>`.split(""),`\0
|
|
@@ -33,5 +33,5 @@ import{g as Zt,c as ft,a as ne,d as sl,p as cl,f as pe,b as qe,s as Jt}from"../c
|
|
|
33
33
|
\f\r &>`.split(""),`\0
|
|
34
34
|
\f\r "&'<=>\``.split("")],[`\0
|
|
35
35
|
\f\r "&'<=>\``.split(""),`\0
|
|
36
|
-
\f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function
|
|
37
|
-
added to any gallery!</div></div>`,1),ep=pe('<div class="m-4 min-w-100"><!> <!></div>'),tp=pe('<div class="mr-2 h-128 w-128 shrink-0 max-xl:h-64 max-xl:w-64"><!></div>'),np=pe('<button title="move up" class="btn-icon preset-tonal"><!></button>'),rp=pe('<button title="move down" class="btn-icon preset-tonal"><!></button>'),ip=pe('<div class="mx-3 mt-3 border-l-3 border-l-primary-200-800 pl-3 text-xl font-extralight italic max-xl:text-lg"></div>'),lp=pe('<div class="my-8 flex"><!> <div class="flex grow flex-col items-stretch"><div class="flex items-center gap-3 border-b border-surface-600-400 pb-3"><div class="mr-4 flex h-24 min-h-24 w-24 min-w-24 items-center justify-center overflow-hidden rounded-full border border-surface-600-400 max-xl:h-16 max-xl:min-h-16 max-xl:w-16 max-xl:min-w-16"><!></div> <div class="pb-2 text-6xl font-extralight max-xl:text-3xl"> </div> <div class="px-2 pb-2 text-6xl font-extralight max-xl:text-3xl" style="transform: scaleX(0.1);">|</div> <div class="pt-3 pb-2 text-xl font-light text-surface-800-200"> </div> <div class="grow"></div> <div class="flex flex-col justify-around gap-2"><!> <!></div> <div><button class="btn preset-filled-primary-200-800"><!> Edit</button></div></div> <!> <div class="mx-3 mt-3 max-h-80 min-w-0 shrink overflow-x-auto overflow-y-scroll"></div></div></div>'),op=pe('<button class="btn preset-filled-primary-50-950 p-3"><!> <span>Save</span></button>'),ap=pe('<div class="h-full cursor-pointer rounded-2xl border p-3">Saving...</div>'),up=pe('<div class="flex items-center gap-x-3 py-1 pr-4"><div><button style="line-height: 1;"><div class="flex items-center"><!> <span class="font-normal">Delete</span></div> <div class="text-[8pt]">(requires shift-click)</div></button></div> <div><!> <!></div></div>'),sp=pe('<div class="flex flex-col items-center"><!> <button style="line-height: 1;"><div class="flex items-center"><!> <span class="font-normal">Remove Thumbnail</span></div> <div class="text-[8pt]">(requires shift-click)</div></button></div>'),cp=pe("<pre> </pre>"),fp=pe('<div class="min-h-[75vh] min-w-[50vw] p-3"><div class="grid grid-cols-2 grid-rows-1"><div><!> <!> <!> <!></div> <div class="flex flex-col items-center"><div><!></div> <div><!></div></div></div> <div><!></div></div>'),hp=pe('<div class="absolute right-3 bottom-2 z-10"><!></div> <div class="flex flex-col overflow-hidden text-surface-contrast-50-950"></div> <!>',1);function Ip(e,n){const t=cl();nt(n,!0);let r=He(Yn(Object.values(n.data.characters))),i=He(Yn(new WeakMap(Object.values(A(r)).map(v=>[v,v.name])))),o=He(!1),l=He(!1),a=He(""),u=He(null);const s=Ce(()=>A(u)??!0),f=Dl(),c=Ll();bl(()=>{A(u)===!1?window.localStorage.setItem("is-character-view-partial","true"):A(u)===!0&&window.localStorage.removeItem("is-character-view-partial")}),wl(()=>{window.localStorage.getItem("is-character-view-partial")&&he(u,!1);const v=x=>{he(o,x.shiftKey,!0)};return window.addEventListener("keydown",v),window.addEventListener("keyup",v),()=>{window.removeEventListener("keydown",v),window.removeEventListener("keyup",v)}});async function p(){he(l,!0);try{await fetch(Tl("/api/characters/save"),{method:"POST",body:JSON.stringify(A(r)),headers:{"Content-Type":"application/json"}}),c.epoch+=1,f.reset(),he(i,new WeakMap(Object.values(A(r)).map(v=>[v,v.name])),!0)}finally{he(l,!1),zl()}}let h=He(""),g=He(null);const w=Ce(()=>A(h)?Pl.go(A(h),A(r),{keys:["name","short_description","description"]}).map(v=>{const x=A(r).findIndex(I=>I.name===v.obj.name);return[v.obj,x]}):A(r).map((v,x)=>[v,x]));Il("75i7xh",v=>{vl(()=>{Sl.title="Character Editor | Art Site Editor"})}),Fl(e,{title:"Characters",navRight:x=>{var I=Gh(),C=j(I),L=j(C),F=oe(L,2),k=j(F);Nl(k,{get id(){return`${t}-search-box`},autoFocus:!0,class:"input h-8 w-0 grow",noReportValidation:!0,acceptSuggestionOnEnter:!0,get options(){return n.data.characters},onSelect:(y,T)=>{if(T){const _=A(r).findIndex(P=>P.name===T.name);he(g,[T,_],!0)}},get search(){return A(h)},set search(y){he(h,y,!0)}}),M(F),M(C);var $=oe(C,2),W=j($);nr(W,{tooltip:"hide character portraits",placement:"bottom",children:(T,_=Oe)=>{var P=Kr();let R;var D=j(P);lr(D,{}),M(P),Kn(P,_),Ve(()=>R=Nt(P,1,"btn-icon btn",null,R,{"preset-filled":!A(s)})),qe("click",P,()=>{he(u,!1)}),ne(T,P)},$$slots:{default:!0}});var B=oe(W,2);nr(B,{tooltip:"show character portraits",placement:"bottom",children:(T,_=Oe)=>{var P=Kr();let R;var D=j(P);Vl(D,{}),M(P),Kn(P,_),Ve(()=>R=Nt(P,1,"btn-icon btn",null,R,{"preset-filled":A(s)})),qe("click",P,()=>{he(u,!0)}),ne(T,P)},$$slots:{default:!0}}),M($),M(I),Ve(()=>_l(L,"for",`${t}-search-box`)),ne(x,I)},children:(x,I)=>{var C=hp(),L=Qe(C),F=j(L);tr(F,{title:"New Character",class:"preset-filled-primary-50-950",onClose:()=>{he(a,"")},icon:T=>{ql(T,{size:"8pt"})},children:(T,_=Oe)=>{var P=ep(),R=j(P);en(R,{label:"Character name",get value(){return A(a)},set value(m){he(a,m,!0)}});var D=oe(R,2);{var re=m=>{var Z=Xh();ne(m,Z)},Q=m=>{var Z=Zh();ne(m,Z)},ie=Ce(()=>A(r).find(m=>m.name===A(a))),ee=m=>{var Z=Jh(),fe=Qe(Z);{let d=Ce(()=>`Drag a character image here to add ${A(a)}!`);Xn(fe,{get title(){return A(d)},class:"m-2",galleryPath:{character:"",for:"full"},existingIdentifiers:[],onUpload:ae=>{he(r,[...ae.map((me,Y)=>({description:"",index:A(r).length+Y,name:Y===0?A(a):me.file.name,picture:{alt:"",image:me.piece.image},pronouns:"",type:"Character",short_description:void 0,thumbnail:void 0})),...A(r)],!0),p(),_()()}})}Ze(2),ne(m,Z)};Fe(D,m=>{A(a)?A(ie)?m(Q,1):m(ee,-1):m(re)})}M(P),ne(T,P)},$$slots:{icon:!0,default:!0}}),M(L);var k=oe(L,2);El(k,21,()=>A(w),([B,y])=>`${y}-${A(r).length}`,(B,y)=>{var T=Ce(()=>Cl(A(y),2));let _=()=>A(T)[0],P=()=>A(T)[1];const R=Ce(()=>A(i).get(_())??_().name);var D=lp(),re=j(D);{var Q=V=>{var K=tp(),ze=j(K);{let ve=Ce(()=>({character:A(R),for:"full"}));Jn(ze,{get galleryPath(){return A(ve)}})}M(K),ne(V,K)};Fe(re,V=>{A(s)&&V(Q)})}var ie=oe(re,2),ee=j(ie),m=j(ee),Z=j(m);{var fe=V=>{{let K=Ce(()=>({character:A(R),for:A(s)||_().thumbnail?"thumb":"full"}));Jn(V,{class:"object-cover object-center",get galleryPath(){return A(K)}})}},d=V=>{lr(V,{})};Fe(Z,V=>{_().thumbnail||!A(s)?V(fe):V(d,-1)})}M(m);var ae=oe(m,2),me=j(ae,!0);M(ae);var Y=oe(ae,4),we=j(Y,!0);M(Y);var le=oe(Y,4),se=j(le);{var Ee=V=>{var K=np(),ze=j(K);$l(ze,{}),M(K),qe("click",K,ve=>{ve.preventDefault(),ve.stopPropagation(),he(r,[...A(r).slice(0,P()-1),_(),A(r)[P()-1],...A(r).slice(P()+1)],!0),p()}),ne(V,K)};Fe(se,V=>{P()>0&&V(Ee)})}var je=oe(se,2);{var xt=V=>{var K=rp(),ze=j(K);Ml(ze,{}),M(K),qe("click",K,ve=>{ve.preventDefault(),ve.stopPropagation(),he(r,[...A(r).slice(0,P()),A(r)[P()+1],_(),...A(r).slice(P()+2)],!0),p()}),ne(V,K)};Fe(je,V=>{P()<A(r).length-1&&V(xt)})}M(le);var Ke=oe(le,2),Ge=j(Ke),te=j(Ge);Ql(te,{}),Ze(),M(Ge),M(Ke),M(ee);var de=oe(ee,2);{var Te=V=>{var K=ip();ir(K,()=>Yr(_().short_description),!0),M(K),ne(V,K)};Fe(de,V=>{_().short_description&&V(Te)})}var Pe=oe(de,2);ir(Pe,()=>Yr(_().description),!0),M(Pe),M(ie),M(D),Ve(()=>{Jt(me,_().name),Jt(we,_().pronouns)}),qe("click",Ge,()=>{he(g,[_(),P()],!0)}),ne(B,D)}),M(k);var $=oe(k,2);{var W=B=>{const y=Ce(()=>{const[R,D]=A(g);return{character:R,i:D}}),T=Ce(()=>A(i).get(A(y).character)??A(y).character.name);var _=()=>!0,P=R=>{R||(he(g,null),he(h,""))};tr(B,{headless:!0,get title(){return`Edit ${A(y).character.name??""}`},get open(){return _()},set open(D){P(D)},modalRight:(D,re=Oe)=>{var Q=up(),ie=j(Q),ee=j(ie);let m;var Z=j(ee),fe=j(Z);rr(fe,{size:16}),Ze(2),M(Z),Ze(2),M(ee),M(ie);var d=oe(ie,2),ae=j(d);{var me=le=>{var se=op(),Ee=j(se);Ol(Ee,{size:16}),Ze(2),M(se),qe("click",se,()=>{p()}),ne(le,se)},Y=le=>{var se=ap();ne(le,se)};Fe(ae,le=>{A(l)?le(Y,-1):le(me)})}var we=oe(ae,2);Fe(we,le=>{}),M(d),M(Q),Ve(()=>{m=Nt(ee,1,"btn flex flex-col items-center preset-filled-error-50-950 p-3",null,m,{"cursor-pointer":A(o),"cursor-not-allowed":!A(o)}),ee.disabled=!A(o)}),qe("click",ee,le=>{le.shiftKey&&(he(r,[...A(r).slice(0,A(y).i),...A(r).slice(A(y).i+1)],!0),p(),re()())}),ne(D,Q)},children:(D,re)=>{var Q=fp(),ie=j(Q),ee=j(ie),m=j(ee);en(m,{label:"Name",get value(){return A(y).character.name},set value(te){A(y).character.name=te}});var Z=oe(m,2);en(Z,{label:"Pronouns",get value(){return A(y).character.pronouns},set value(te){A(y).character.pronouns=te}});var fe=oe(Z,2),d=()=>A(y).character.short_description??"",ae=te=>A(y).character.short_description=te;er(fe,{label:"Tagline / Short Description",get value(){return d()},set value(te){ae(te)}});var me=oe(fe,2);er(me,{label:"Description",big:!0,get value(){return A(y).character.description},set value(te){A(y).character.description=te}}),M(ee);var Y=oe(ee,2),we=j(Y),le=j(we);{let te=Ce(()=>({character:A(T),for:"full"}));Zn(le,{get galleryPath(){return A(te)},alts:null,isComic:null,isDeindexed:null,isNsfw:null,get resource(){return A(y).character.picture},set resource(de){A(y).character.picture=de},get alt(){return A(y).character.picture.alt},set alt(de){A(y).character.picture.alt=de}})}M(we);var se=oe(we,2),Ee=j(se);{var je=te=>{var de=sp(),Te=j(de);{let ve=Ce(()=>({character:A(T),for:"thumb"}));Zn(Te,{get galleryPath(){return A(ve)},alts:null,isComic:null,isDeindexed:null,isNsfw:null,get resource(){return A(y).character.thumbnail},set resource(kt){A(y).character.thumbnail=kt},get alt(){return A(y).character.thumbnail.alt},set alt(kt){A(y).character.thumbnail.alt=kt}})}var Pe=oe(Te,2);let V;var K=j(Pe),ze=j(K);rr(ze,{size:16}),Ze(2),M(K),Ze(2),M(Pe),M(de),Ve(()=>{V=Nt(Pe,1,"mb-2 btn flex items-center preset-filled-warning-50-950 py-2",null,V,{"cursor-pointer":A(o),"cursor-not-allowed":!A(o)}),Pe.disabled=!A(o)}),qe("click",Pe,ve=>{ve.shiftKey&&(A(y).character.thumbnail=void 0,p())}),ne(te,de)},xt=te=>{{let de=Ce(()=>({character:A(y).character.name,for:"thumb"}));Xn(te,{title:"Drag an image to add a character thumbnail",class:"m-2",get galleryPath(){return A(de)},existingIdentifiers:[],onUpload:Te=>{A(y).character.thumbnail=Te[0].piece,p()}})}};Fe(Ee,te=>{A(y).character.thumbnail?te(je):te(xt,-1)})}M(se),M(Y),M(ie);var Ke=oe(ie,2),Ge=j(Ke);Gn(Ge,{title:"Advanced",class:"my-3",children:(te,de)=>{Gn(te,{title:"JSON",initial:!1,class:"mt-2 no-scrollbar overflow-scroll border-t",children:(Te,Pe)=>{var V=cp(),K=j(V,!0);M(V),Ve(ze=>Jt(K,ze),[()=>JSON.stringify(A(y).character,null,4)]),ne(Te,V)},$$slots:{default:!0}})},$$slots:{default:!0}}),M(Ke),M(Q),ne(D,Q)},$$slots:{modalRight:!0,default:!0}})};Fe($,B=>{A(g)&&B(W)})}ne(x,C)},$$slots:{navRight:!0,default:!0}}),rt()}sl(["click"]);export{Ip as component};
|
|
36
|
+
\f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function Nh(e,n,t,r){const i=r.schema,o=i.space==="svg"?!1:r.settings.omitOptionalTags;let l=i.space==="svg"?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase());const a=[];let u;i.space==="html"&&e.tagName==="svg"&&(r.schema=tl);const s=Oh(r,e.properties),f=r.all(i.space==="html"&&e.tagName==="template"?e.content:e);return r.schema=i,f&&(l=!1),(s||!o||!Th(e,n,t))&&(a.push("<",e.tagName,s?" "+s:""),l&&(i.space==="svg"||r.settings.closeSelfClosing)&&(u=s.charAt(s.length-1),(!r.settings.tightSelfClosing||u==="/"||u&&u!=='"'&&u!=="'")&&a.push(" "),a.push("/")),a.push(">")),a.push(f),!l&&(!o||!Un(e,n,t))&&a.push("</"+e.tagName+">"),a.join("")}function Oh(e,n){const t=[];let r=-1,i;if(n){for(i in n)if(n[i]!==null&&n[i]!==void 0){const o=Rh(e,i,n[i]);o&&t.push(o)}}for(;++r<t.length;){const o=e.settings.tightAttributes?t[r].charAt(t[r].length-1):void 0;r!==t.length-1&&o!=='"'&&o!=="'"&&(t[r]+=" ")}return t.join("")}function Rh(e,n,t){const r=jf(e.schema,n),i=e.settings.allowParseErrors&&e.schema.space==="html"?0:1,o=e.settings.allowDangerousCharacters?0:1;let l=e.quote,a;if(r.overloadedBoolean&&(t===r.attribute||t==="")?t=!0:(r.boolean||r.overloadedBoolean)&&(typeof t!="string"||t===r.attribute||t==="")&&(t=!!t),t==null||t===!1||typeof t=="number"&&Number.isNaN(t))return"";const u=st(r.attribute,Object.assign({},e.settings.characterReferences,{subset:jt.name[i][o]}));return t===!0||(t=Array.isArray(t)?(r.commaSeparated?hh:ph)(t,{padLeft:!e.settings.tightCommaSeparatedLists}):String(t),e.settings.collapseEmptyAttributes&&!t)?u:(e.settings.preferUnquoted&&(a=st(t,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:jt.unquoted[i][o]}))),a!==t&&(e.settings.quoteSmart&&Ut(t,l)>Ut(t,e.alternative)&&(l=e.alternative),a=l+st(t,Object.assign({},e.settings.characterReferences,{subset:(l==="'"?jt.single:jt.double)[i][o],attribute:!0}))+l),u+(a&&"="+a))}const Mh=["<","&"];function ol(e,n,t,r){return t&&t.type==="element"&&(t.tagName==="script"||t.tagName==="style")?e.value:st(e.value,Object.assign({},r.settings.characterReferences,{subset:Mh}))}function Bh(e,n,t,r){return r.settings.allowDangerousHtml?e.value:ol(e,n,t,r)}function $h(e,n,t,r){return r.all(e)}const jh=fs("type",{invalid:qh,unknown:Hh,handlers:{comment:ch,doctype:fh,element:Nh,raw:Bh,root:$h,text:ol}});function qh(e){throw new Error("Expected node, not `"+e+"`")}function Hh(e){const n=e;throw new Error("Cannot compile unknown node `"+n.type+"`")}const Uh={},Vh={},Wh=[];function Qh(e,n){const t=n||Uh,r=t.quote||'"',i=r==='"'?"'":'"';if(r!=='"'&&r!=="'")throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:Yh,all:Kh,settings:{omitOptionalTags:t.omitOptionalTags||!1,allowParseErrors:t.allowParseErrors||!1,allowDangerousCharacters:t.allowDangerousCharacters||!1,quoteSmart:t.quoteSmart||!1,preferUnquoted:t.preferUnquoted||!1,tightAttributes:t.tightAttributes||!1,upperDoctype:t.upperDoctype||!1,tightDoctype:t.tightDoctype||!1,bogusComments:t.bogusComments||!1,tightCommaSeparatedLists:t.tightCommaSeparatedLists||!1,tightSelfClosing:t.tightSelfClosing||!1,collapseEmptyAttributes:t.collapseEmptyAttributes||!1,allowDangerousHtml:t.allowDangerousHtml||!1,voids:t.voids||Nf,characterReferences:t.characterReferences||Vh,closeSelfClosing:t.closeSelfClosing||!1,closeEmptyElements:t.closeEmptyElements||!1},schema:t.space==="svg"?tl:Uf,quote:r,alternative:i}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function Yh(e,n,t){return jh(e,n,t,this)}function Kh(e){const n=[],t=e&&e.children||Wh;let r=-1;for(;++r<t.length;)n[r]=this.one(t[r],r,e);return n.join("")}function Gh(e){const n=this,t={...n.data("settings"),...e};n.compiler=r;function r(i){return Qh(i,t)}}function Yr(e){return ho().use(xu).use(Oc).use(Cf).use(Ff).use(Gh).processSync(e).toString()}var Kr=pe("<button><!></button>"),Xh=pe('<div class="flex items-center gap-2"><div class="my-4 flex w-64 grow items-center gap-x-2 pr-4"><label><i class="fa-solid fa-search"></i></label> <div class="relative flex grow overflow-visible"><!></div></div> <div class="btn-group preset-outlined-surface-200-800"><!> <!></div></div>'),Zh=pe('<div class="text-center text-warning-500">Character name required</div>'),Jh=pe('<div class="text-center text-warning-500">A character already exists with that name</div>'),ep=pe(`<!> <div class="mx-5 mb-8 flex max-w-100 flex-row items-center"><i class="fa-solid fa-info-circle mr-2 text-blue-300"></i> <div class="text-surface-contrast-300-700 italic">Note that this image will represent the character on the Character page, but is not
|
|
37
|
+
added to any gallery!</div></div>`,1),tp=pe('<div class="m-4 min-w-100"><!> <!></div>'),np=pe('<div class="mr-2 h-128 w-128 shrink-0 max-xl:h-64 max-xl:w-64"><!></div>'),rp=pe('<button title="move up" class="btn-icon preset-tonal"><!></button>'),ip=pe('<button title="move down" class="btn-icon preset-tonal"><!></button>'),lp=pe('<div class="mx-3 mt-3 border-l-3 border-l-primary-200-800 pl-3 text-xl font-extralight italic max-xl:text-lg"></div>'),op=pe('<div class="my-8 flex"><!> <div class="flex grow flex-col items-stretch"><div class="flex items-center gap-3 border-b border-surface-600-400 pb-3"><div class="mr-4 flex h-24 min-h-24 w-24 min-w-24 items-center justify-center overflow-hidden rounded-full border border-surface-600-400 max-xl:h-16 max-xl:min-h-16 max-xl:w-16 max-xl:min-w-16"><!></div> <div class="pb-2 text-6xl font-extralight max-xl:text-3xl"> </div> <div class="px-2 pb-2 text-6xl font-extralight max-xl:text-3xl" style="transform: scaleX(0.1);">|</div> <div class="pt-3 pb-2 text-xl font-light text-surface-800-200"> </div> <div class="grow"></div> <div class="flex flex-col justify-around gap-2"><!> <!></div> <div><button class="btn preset-filled-primary-200-800"><!> Edit</button></div></div> <!> <div class="mx-3 mt-3 max-h-80 min-w-0 shrink overflow-x-auto overflow-y-scroll"></div></div></div>'),ap=pe('<button class="btn preset-filled-primary-50-950 p-3"><!> <span>Save</span></button>'),up=pe('<div class="h-full cursor-pointer rounded-2xl border p-3">Saving...</div>'),sp=pe('<div class="flex items-center gap-x-3 py-1 pr-4"><div><button style="line-height: 1;"><div class="flex items-center"><!> <span class="font-normal">Delete</span></div> <div class="text-[8pt]">(requires shift-click)</div></button></div> <div><!> <!></div></div>'),cp=pe('<div class="flex flex-col items-center"><!> <button style="line-height: 1;"><div class="flex items-center"><!> <span class="font-normal">Remove Thumbnail</span></div> <div class="text-[8pt]">(requires shift-click)</div></button></div>'),fp=pe("<pre> </pre>"),hp=pe('<div class="min-h-[75vh] min-w-[50vw] p-3"><div class="grid grid-cols-2 grid-rows-1"><div><!> <!> <!> <!></div> <div class="flex flex-col items-center"><div><!></div> <div><!></div></div></div> <div><!></div></div>'),pp=pe('<div class="absolute right-3 bottom-2 z-10"><!></div> <div class="flex flex-col overflow-hidden text-surface-contrast-50-950"></div> <!>',1);function Ep(e,n){const t=cl();rt(n,!0);let r=He(Yn(Object.values(n.data.characters))),i=He(Yn(new WeakMap(Object.values(A(r)).map(v=>[v,v.name])))),o=He(!1),l=He(!1),a=He(""),u=He(null);const s=Ce(()=>A(u)??!0),f=Dl(),c=Ll();bl(()=>{A(u)===!1?window.localStorage.setItem("is-character-view-partial","true"):A(u)===!0&&window.localStorage.removeItem("is-character-view-partial")}),wl(()=>{window.localStorage.getItem("is-character-view-partial")&&he(u,!1);const v=x=>{he(o,x.shiftKey,!0)};return window.addEventListener("keydown",v),window.addEventListener("keyup",v),()=>{window.removeEventListener("keydown",v),window.removeEventListener("keyup",v)}});async function p(){he(l,!0);try{await fetch(Tl("/api/characters/save"),{method:"POST",body:JSON.stringify(A(r)),headers:{"Content-Type":"application/json"}}),c.epoch+=1,f.reset(),he(i,new WeakMap(Object.values(A(r)).map(v=>[v,v.name])),!0)}finally{he(l,!1),zl()}}let h=He(""),g=He(null);const w=Ce(()=>A(h)?Pl.go(A(h),A(r),{keys:["name","short_description","description"]}).map(v=>{const x=A(r).findIndex(I=>I.name===v.obj.name);return[v.obj,x]}):A(r).map((v,x)=>[v,x]));Il("75i7xh",v=>{vl(()=>{Sl.title="Character Editor | Art Site Editor"})}),Fl(e,{title:"Characters",navRight:x=>{var I=Xh(),C=j(I),L=j(C),N=oe(L,2),k=j(N);Nl(k,{get id(){return`${t}-search-box`},autoFocus:!0,class:"input h-8 w-0 grow",noReportValidation:!0,acceptSuggestionOnEnter:!0,get options(){return n.data.characters},onSelect:(y,T)=>{if(T){const _=A(r).findIndex(P=>P.name===T.name);he(g,[T,_],!0)}},get search(){return A(h)},set search(y){he(h,y,!0)}}),M(N),M(C);var $=oe(C,2),W=j($);nr(W,{tooltip:"hide character portraits",placement:"bottom",children:(T,_=Oe)=>{var P=Kr();let R;var D=j(P);lr(D,{}),M(P),Kn(P,_),Ve(()=>R=Nt(P,1,"btn-icon btn",null,R,{"preset-filled":!A(s)})),qe("click",P,()=>{he(u,!1)}),ne(T,P)},$$slots:{default:!0}});var B=oe(W,2);nr(B,{tooltip:"show character portraits",placement:"bottom",children:(T,_=Oe)=>{var P=Kr();let R;var D=j(P);Vl(D,{}),M(P),Kn(P,_),Ve(()=>R=Nt(P,1,"btn-icon btn",null,R,{"preset-filled":A(s)})),qe("click",P,()=>{he(u,!0)}),ne(T,P)},$$slots:{default:!0}}),M($),M(I),Ve(()=>_l(L,"for",`${t}-search-box`)),ne(x,I)},children:(x,I)=>{var C=pp(),L=Qe(C),N=j(L);tr(N,{title:"New Character",class:"preset-filled-primary-50-950",onClose:()=>{he(a,"")},icon:T=>{ql(T,{size:"8pt"})},children:(T,_=Oe)=>{var P=tp(),R=j(P);en(R,{label:"Character name",get value(){return A(a)},set value(m){he(a,m,!0)}});var D=oe(R,2);{var re=m=>{var J=Zh();ne(m,J)},Q=m=>{var J=Jh();ne(m,J)},ie=Ce(()=>A(r).find(m=>m.name===A(a))),ee=m=>{var J=ep(),fe=Qe(J);{let d=Ce(()=>`Drag a character image here to add ${A(a)}!`);Xn(fe,{get title(){return A(d)},class:"m-2",galleryPath:{character:"",for:"full"},existingIdentifiers:[],onUpload:ae=>{he(r,[...ae.map((me,Y)=>({description:"",index:A(r).length+Y,name:Y===0?A(a):me.file.name,picture:{alt:"",image:me.piece.image},pronouns:"",type:"Character",short_description:void 0,thumbnail:void 0})),...A(r)],!0),p(),_()()}})}Ze(2),ne(m,J)};Fe(D,m=>{A(a)?A(ie)?m(Q,1):m(ee,-1):m(re)})}M(P),ne(T,P)},$$slots:{icon:!0,default:!0}}),M(L);var k=oe(L,2);El(k,21,()=>A(w),([B,y])=>`${y}-${A(r).length}`,(B,y)=>{var T=Ce(()=>Cl(A(y),2));let _=()=>A(T)[0],P=()=>A(T)[1];const R=Ce(()=>A(i).get(_())??_().name);var D=op(),re=j(D);{var Q=V=>{var K=np(),ze=j(K);{let ve=Ce(()=>({character:A(R),for:"full"}));Jn(ze,{get galleryPath(){return A(ve)}})}M(K),ne(V,K)};Fe(re,V=>{A(s)&&V(Q)})}var ie=oe(re,2),ee=j(ie),m=j(ee),J=j(m);{var fe=V=>{{let K=Ce(()=>({character:A(R),for:A(s)||_().thumbnail?"thumb":"full"}));Jn(V,{class:"object-cover object-center",get galleryPath(){return A(K)}})}},d=V=>{lr(V,{})};Fe(J,V=>{_().thumbnail||!A(s)?V(fe):V(d,-1)})}M(m);var ae=oe(m,2),me=j(ae,!0);M(ae);var Y=oe(ae,4),we=j(Y,!0);M(Y);var le=oe(Y,4),se=j(le);{var Ee=V=>{var K=rp(),ze=j(K);$l(ze,{}),M(K),qe("click",K,ve=>{ve.preventDefault(),ve.stopPropagation(),he(r,[...A(r).slice(0,P()-1),_(),A(r)[P()-1],...A(r).slice(P()+1)],!0),p()}),ne(V,K)};Fe(se,V=>{P()>0&&V(Ee)})}var je=oe(se,2);{var xt=V=>{var K=ip(),ze=j(K);Ml(ze,{}),M(K),qe("click",K,ve=>{ve.preventDefault(),ve.stopPropagation(),he(r,[...A(r).slice(0,P()),A(r)[P()+1],_(),...A(r).slice(P()+2)],!0),p()}),ne(V,K)};Fe(je,V=>{P()<A(r).length-1&&V(xt)})}M(le);var Ke=oe(le,2),Ge=j(Ke),te=j(Ge);Ql(te,{}),Ze(),M(Ge),M(Ke),M(ee);var de=oe(ee,2);{var Te=V=>{var K=lp();ir(K,()=>Yr(_().short_description),!0),M(K),ne(V,K)};Fe(de,V=>{_().short_description&&V(Te)})}var Pe=oe(de,2);ir(Pe,()=>Yr(_().description),!0),M(Pe),M(ie),M(D),Ve(()=>{Jt(me,_().name),Jt(we,_().pronouns)}),qe("click",Ge,()=>{he(g,[_(),P()],!0)}),ne(B,D)}),M(k);var $=oe(k,2);{var W=B=>{const y=Ce(()=>{const[R,D]=A(g);return{character:R,i:D}}),T=Ce(()=>A(i).get(A(y).character)??A(y).character.name);var _=()=>!0,P=R=>{R||(he(g,null),he(h,""))};tr(B,{headless:!0,get title(){return`Edit ${A(y).character.name??""}`},get open(){return _()},set open(D){P(D)},modalRight:(D,re=Oe)=>{var Q=sp(),ie=j(Q),ee=j(ie);let m;var J=j(ee),fe=j(J);rr(fe,{size:16}),Ze(2),M(J),Ze(2),M(ee),M(ie);var d=oe(ie,2),ae=j(d);{var me=le=>{var se=ap(),Ee=j(se);Ol(Ee,{size:16}),Ze(2),M(se),qe("click",se,()=>{p()}),ne(le,se)},Y=le=>{var se=up();ne(le,se)};Fe(ae,le=>{A(l)?le(Y,-1):le(me)})}var we=oe(ae,2);Fe(we,le=>{}),M(d),M(Q),Ve(()=>{m=Nt(ee,1,"btn flex flex-col items-center preset-filled-error-50-950 p-3",null,m,{"cursor-pointer":A(o),"cursor-not-allowed":!A(o)}),ee.disabled=!A(o)}),qe("click",ee,le=>{le.shiftKey&&(he(r,[...A(r).slice(0,A(y).i),...A(r).slice(A(y).i+1)],!0),p(),re()())}),ne(D,Q)},children:(D,re)=>{var Q=hp(),ie=j(Q),ee=j(ie),m=j(ee);en(m,{label:"Name",get value(){return A(y).character.name},set value(te){A(y).character.name=te}});var J=oe(m,2);en(J,{label:"Pronouns",get value(){return A(y).character.pronouns},set value(te){A(y).character.pronouns=te}});var fe=oe(J,2),d=()=>A(y).character.short_description??"",ae=te=>A(y).character.short_description=te;er(fe,{label:"Tagline / Short Description",get value(){return d()},set value(te){ae(te)}});var me=oe(fe,2);er(me,{label:"Description",big:!0,get value(){return A(y).character.description},set value(te){A(y).character.description=te}}),M(ee);var Y=oe(ee,2),we=j(Y),le=j(we);{let te=Ce(()=>({character:A(T),for:"full"}));Zn(le,{get galleryPath(){return A(te)},alts:null,isComic:null,isDeindexed:null,isNsfw:null,get resource(){return A(y).character.picture},set resource(de){A(y).character.picture=de},get alt(){return A(y).character.picture.alt},set alt(de){A(y).character.picture.alt=de}})}M(we);var se=oe(we,2),Ee=j(se);{var je=te=>{var de=cp(),Te=j(de);{let ve=Ce(()=>({character:A(T),for:"thumb"}));Zn(Te,{get galleryPath(){return A(ve)},alts:null,isComic:null,isDeindexed:null,isNsfw:null,get resource(){return A(y).character.thumbnail},set resource(kt){A(y).character.thumbnail=kt},get alt(){return A(y).character.thumbnail.alt},set alt(kt){A(y).character.thumbnail.alt=kt}})}var Pe=oe(Te,2);let V;var K=j(Pe),ze=j(K);rr(ze,{size:16}),Ze(2),M(K),Ze(2),M(Pe),M(de),Ve(()=>{V=Nt(Pe,1,"mb-2 btn flex items-center preset-filled-warning-50-950 py-2",null,V,{"cursor-pointer":A(o),"cursor-not-allowed":!A(o)}),Pe.disabled=!A(o)}),qe("click",Pe,ve=>{ve.shiftKey&&(A(y).character.thumbnail=void 0,p())}),ne(te,de)},xt=te=>{{let de=Ce(()=>({character:A(y).character.name,for:"thumb"}));Xn(te,{title:"Drag an image to add a character thumbnail",class:"m-2",get galleryPath(){return A(de)},existingIdentifiers:[],onUpload:Te=>{A(y).character.thumbnail=Te[0].piece,p()}})}};Fe(Ee,te=>{A(y).character.thumbnail?te(je):te(xt,-1)})}M(se),M(Y),M(ie);var Ke=oe(ie,2),Ge=j(Ke);Gn(Ge,{title:"Advanced",class:"my-3",children:(te,de)=>{Gn(te,{title:"JSON",initial:!1,class:"mt-2 no-scrollbar overflow-scroll border-t",children:(Te,Pe)=>{var V=fp(),K=j(V,!0);M(V),Ve(ze=>Jt(K,ze),[()=>JSON.stringify(A(y).character,null,4)]),ne(Te,V)},$$slots:{default:!0}})},$$slots:{default:!0}}),M(Ke),M(Q),ne(D,Q)},$$slots:{modalRight:!0,default:!0}})};Fe($,B=>{A(g)&&B(W)})}ne(x,C)},$$slots:{navRight:!0,default:!0}}),it()}sl(["click"]);export{Ep as component};
|