@tickernelz/paperclip-pro-ui 2026.1002.1 → 2026.1002.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{AgentAvatar-DNN1aAlU.js → AgentAvatar-vHdJ_j8Q.js} +1 -1
- package/dist/assets/{AgentIdentity-b3pzXoFU.js → AgentIdentity-DpavDfDR.js} +1 -1
- package/dist/assets/{Agents.production-BKPX85a7.js → Agents.production-BvVBz6Bb.js} +2 -2
- package/dist/assets/CompanyActivity.production-CkWIeGHA.js +1 -0
- package/dist/assets/{CompanyExport-AJHRDgPX.js → CompanyExport-BlgUdPy3.js} +2 -2
- package/dist/assets/{CompanySkills.production-DEte8xc1.js → CompanySkills.production-Dw5EEbFS.js} +3 -3
- package/dist/assets/{Costs.production-82FH3cxi.js → Costs.production-B7xh4FKY.js} +1 -1
- package/dist/assets/{EmptyState-DSAob43E.js → EmptyState-CkiAU2cy.js} +1 -1
- package/dist/assets/{MarkdownBody-hSj7wMwK.js → MarkdownBody-Dc5pAWyT.js} +2 -2
- package/dist/assets/{MarkdownEditor-DhOkCe8q.js → MarkdownEditor-CEjOwoOw.js} +1 -1
- package/dist/assets/{OrgChart.production-BXSpu5C9.js → OrgChart.production-0bLYORRI.js} +1 -1
- package/dist/assets/{PageSkeleton-Bb3gOnqb.js → PageSkeleton-C9GpVJ3b.js} +1 -1
- package/dist/assets/{RoutineDetail.production-BBP1I-Cb.js → RoutineDetail.production-HhdCP-Xh.js} +1 -1
- package/dist/assets/{RoutineRunVariablesDialog-B7IG454s.js → RoutineRunVariablesDialog-BxPUA-_s.js} +2 -2
- package/dist/assets/{Routines.production-Ha20odfj.js → Routines.production-BXN9SzuM.js} +1 -1
- package/dist/assets/{SidebarContext-CEonkVTc.js → SidebarContext-BzqYhcyf.js} +1 -1
- package/dist/assets/{StatusIcon-Ce5Cymi0.js → StatusIcon-DZVfuu7f.js} +1 -1
- package/dist/assets/{agents-EgopqlRF.js → agents-S2cJMIK7.js} +1 -1
- package/dist/assets/{badge-BzDyxQA_.js → badge-CDo3gnAS.js} +1 -1
- package/dist/assets/{bot-SnTe3UEj.js → bot-Ds68iyWW.js} +1 -1
- package/dist/assets/{button-B88nBobN.js → button-L-o1dNjR.js} +1 -1
- package/dist/assets/{card-C3xuBj9F.js → card-kuRnaECX.js} +1 -1
- package/dist/assets/{check-DiTvqt9f.js → check-qnovnvSs.js} +1 -1
- package/dist/assets/{checkbox-CLdcRGnx.js → checkbox-Be8I1-GR.js} +1 -1
- package/dist/assets/{chevron-down-CSzK2utq.js → chevron-down-BT1C9igz.js} +1 -1
- package/dist/assets/{chevron-right-CEAI_3f1.js → chevron-right-DI7co3UN.js} +1 -1
- package/dist/assets/{clipboard-BNjohVM9.js → clipboard-Bo4IrVtO.js} +1 -1
- package/dist/assets/{company-members-BLqmUhC_.js → company-members-Cs8yGeoI.js} +1 -1
- package/dist/assets/{createLucideIcon-BY5zEeth.js → createLucideIcon-CLQ6uxcH.js} +30 -30
- package/dist/assets/{definition-D14CNOhw.js → definition-BQZGnC0n.js} +1 -1
- package/dist/assets/{dist-B6PG7LSl.js → dist-BbSVBEix.js} +1 -1
- package/dist/assets/{dist-IkV7XjF6.js → dist-DrRrxz2U.js} +1 -1
- package/dist/assets/{environments-Db-5PwTL.js → environments-XRhpXB-M.js} +1 -1
- package/dist/assets/{external-link-C0fxPTmL.js → external-link-K3IGxvWK.js} +1 -1
- package/dist/assets/{file-text-CFk8yuxg.js → file-text-KXVUI6i-.js} +1 -1
- package/dist/assets/{health-uDuG_Kdk.js → health-Dnr6MCRc.js} +1 -1
- package/dist/assets/{heartbeats-CY-OhSkI.js → heartbeats-CbpnptmQ.js} +1 -1
- package/dist/assets/{index-B0ZdgWne.js → index-BwUOm4Xq.js} +168 -167
- package/dist/assets/index-D9x0wcjq.css +1 -0
- package/dist/assets/{input-eETG1M5C.js → input-BoiP6orR.js} +1 -1
- package/dist/assets/{label-CaB9H2SL.js → label-CELIzVlm.js} +1 -1
- package/dist/assets/{loader-circle-GP19zXLR.js → loader-circle-SRrhJJNd.js} +1 -1
- package/dist/assets/{mention-chips-DTyYiiiu.js → mention-chips-B3tFslbs.js} +9 -9
- package/dist/assets/{octagon-alert-DX7KDHMN.js → octagon-alert-BK-ZgTBH.js} +1 -1
- package/dist/assets/{rotate-ccw-AONvzlvS.js → rotate-ccw-C-migVv-.js} +1 -1
- package/dist/assets/{router-D9K0z3tS.js → router-BF60R0zd.js} +2 -2
- package/dist/assets/{save-DEgZPLfX.js → save-BiJVRX4n.js} +1 -1
- package/dist/assets/{select-DK8w-ynH.js → select-C5wSYGXD.js} +1 -1
- package/dist/assets/{sheet-gGD3j06A.js → sheet-DdVF0068.js} +1 -1
- package/dist/assets/{skeleton-BLy6O28Y.js → skeleton-BqTPd9e1.js} +1 -1
- package/dist/assets/{tabs-BfMGh_Jv.js → tabs-DA7s0b5p.js} +1 -1
- package/dist/assets/{triangle-alert-xF2os76Q.js → triangle-alert-DLfImvPL.js} +1 -1
- package/dist/assets/{use-adapter-capabilities-D5gIkuKA.js → use-adapter-capabilities-zxCr69V4.js} +1 -1
- package/dist/assets/{useHiddenSettings-z0AwYeA9.js → useHiddenSettings-DmjgEkL4.js} +1 -1
- package/dist/assets/{zap-C2Kg_IRl.js → zap-CeCCVOlg.js} +1 -1
- package/dist/index.html +46 -46
- package/dist/pixels/furniture/ALARM_LIGHT/ALARM_LIGHT.png +0 -0
- package/dist/pixels/furniture/ALARM_LIGHT/ALARM_LIGHT_ON.png +0 -0
- package/dist/pixels/furniture/ALARM_LIGHT/manifest.json +32 -0
- package/dist/pixels/furniture/COIN_STACK/COIN_STACK.png +0 -0
- package/dist/pixels/furniture/COIN_STACK/manifest.json +13 -0
- package/dist/pixels/furniture/CONFETTI/CONFETTI.png +0 -0
- package/dist/pixels/furniture/CONFETTI/manifest.json +13 -0
- package/dist/pixels/furniture/DESK_LAMP/DESK_LAMP.png +0 -0
- package/dist/pixels/furniture/DESK_LAMP/manifest.json +13 -0
- package/dist/pixels/furniture/KANBAN_BOARD/KANBAN_BOARD.png +0 -0
- package/dist/pixels/furniture/KANBAN_BOARD/manifest.json +13 -0
- package/dist/pixels/furniture/MAILBOX/MAILBOX.png +0 -0
- package/dist/pixels/furniture/MAILBOX/manifest.json +13 -0
- package/dist/pixels/furniture/SMOKE/SMOKE_1.png +0 -0
- package/dist/pixels/furniture/SMOKE/SMOKE_2.png +0 -0
- package/dist/pixels/furniture/SMOKE/SMOKE_3.png +0 -0
- package/dist/pixels/furniture/SMOKE/manifest.json +42 -0
- package/dist/pixels/pixels-office-assets.json +1 -1
- package/dist/sw.js +1 -1
- package/package.json +1 -1
- package/dist/assets/CompanyActivity.production-CDPyOWs4.js +0 -1
- package/dist/assets/index-BTKFpILc.css +0 -1
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
var mn=Object.defineProperty;var r=(e,n)=>mn(e,"name",{value:n,configurable:!0});import{n as gn}from"./rolldown-runtime-ZpX3ckPj.js";import{Tn as kn,t as ce}from"./createLucideIcon-BY5zEeth.js";import{A as dn,C as xn,D as bn,E as yn,M as wn,O as In,P as Sn,S as vn,T as Cn,_ as Tn,a as En,b as zn,c as _n,d as An,f as Ln,g as Mn,h as Fn,i as Rn,j as Bn,k as Dn,l as Pn,m as $n,n as On,o as Nn,p as Hn,r as jn,s as qn,t as Vn,u as Un,v as Wn,w as Qn,x as Gn,y as Kn}from"./zap-C2Kg_IRl.js";import{t as Xn}from"./bot-SnTe3UEj.js";var et="project://",tt="agent://",Yn="user://",nt="skill://",Zn="routine://",Jn=/^[0-9a-f]{6}$/i,er=/^[0-9a-f]{3}$/i,tr=/^#[0-9a-f]{6}$/i,nr=/^#[0-9a-f]{3}$/i,rr=/^[a-z0-9-]+$/i,ir=/^[a-z0-9][a-z0-9-]*$/i;function Tt(e){if(!e)return null;const n=e.trim();if(!n)return null;if(tr.test(n))return n.toLowerCase();if(Jn.test(n))return`#${n.toLowerCase()}`;if(nr.test(n)){const t=n.slice(1).toLowerCase();return`#${t[0]}${t[0]}${t[1]}${t[1]}${t[2]}${t[2]}`}if(er.test(n)){const t=n.toLowerCase();return`#${t[0]}${t[0]}${t[1]}${t[1]}${t[2]}${t[2]}`}return null}r(Tt,"normalizeHexColor");function cl(e,n){const t=e.trim(),i=Tt(n??null);return i?`${et}${t}?c=${encodeURIComponent(i.slice(1))}`:`${et}${t}`}r(cl,"buildProjectMentionHref");function ur(e){if(!e.startsWith("project://"))return null;let n;try{n=new URL(e)}catch{return null}if(n.protocol!=="project:")return null;const t=`${n.hostname}${n.pathname}`.replace(/^\/+/,"").trim();return t?{projectId:t,color:Tt(n.searchParams.get("c")??n.searchParams.get("color"))}:null}r(ur,"parseProjectMentionHref");function hl(e,n){const t=e.trim(),i=Et(n??null);return i?`${tt}${t}?i=${encodeURIComponent(i)}`:`${tt}${t}`}r(hl,"buildAgentMentionHref");function ar(e){if(!e.startsWith("agent://"))return null;let n;try{n=new URL(e)}catch{return null}if(n.protocol!=="agent:")return null;const t=`${n.hostname}${n.pathname}`.replace(/^\/+/,"").trim();return t?{agentId:t,icon:Et(n.searchParams.get("i")??n.searchParams.get("icon"))}:null}r(ar,"parseAgentMentionHref");function fl(e){return`${Yn}${e.trim()}`}r(fl,"buildUserMentionHref");function lr(e){if(!e.startsWith("user://"))return null;let n;try{n=new URL(e)}catch{return null}if(n.protocol!=="user:")return null;const t=`${n.hostname}${n.pathname}`.replace(/^\/+/,"").trim();return t?{userId:t}:null}r(lr,"parseUserMentionHref");function pl(e,n){const t=e.trim(),i=zt(n??null);return i?`${nt}${t}?s=${encodeURIComponent(i)}`:`${nt}${t}`}r(pl,"buildSkillMentionHref");function or(e){if(!e.startsWith("skill://"))return null;let n;try{n=new URL(e)}catch{return null}if(n.protocol!=="skill:")return null;const t=`${n.hostname}${n.pathname}`.replace(/^\/+/,"").trim();return t?{skillId:t,slug:zt(n.searchParams.get("s")??n.searchParams.get("slug"))}:null}r(or,"parseSkillMentionHref");function ml(e){return`${Zn}${e.trim()}`}r(ml,"buildRoutineMentionHref");function sr(e){if(!e.startsWith("routine://"))return null;let n;try{n=new URL(e)}catch{return null}if(n.protocol!=="routine:")return null;const t=`${n.hostname}${n.pathname}`.replace(/^\/+/,"").trim();return t?{routineId:t}:null}r(sr,"parseRoutineMentionHref");function Et(e){if(!e)return null;const n=e.trim().toLowerCase();return!n||!rr.test(n)?null:n}r(Et,"normalizeAgentIcon");function zt(e){if(!e)return null;const n=e.trim().toLowerCase();return!n||!ir.test(n)?null:n}r(zt,"normalizeSkillSlug");var cr=/^[A-Z][A-Z0-9]*-\d+$/;function _t(e){const n=e.trim().toUpperCase();return cr.test(n)?n:null}r(_t,"normalizeIssueIdentifier");function gl(e){return`/issues/${_t(e)??e.trim()}`}r(gl,"buildIssueReferenceHref");function hr(e){const n=e.trim();if(!n)return null;let t;try{t=n.startsWith("/")?new URL(n,"https://paperclip.invalid"):new URL(n)}catch{return null}const i=t.pathname.split("/").map(u=>u.trim()).filter(Boolean);for(let u=0;u<i.length-1;u+=1){if(i[u]?.toLowerCase()!=="issues")continue;const a=_t(i[u+1]??"");if(a)return{identifier:a}}return null}r(hr,"parseIssueReferenceHref");var fr=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M11 9h4a2 2 0 0 0 2-2V3",key:"1ve2rv"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"M7 21v-4a2 2 0 0 1 2-2h4",key:"1fwkro"}],["circle",{cx:"15",cy:"15",r:"2",key:"3i40o0"}]],pr=ce("circuit-board",fr),mr=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],gr=ce("eye",mr),kr=[["path",{d:"M12 10a2 2 0 0 0-2 2c0 1.02-.1 2.51-.26 4",key:"1nerag"}],["path",{d:"M14 13.12c0 2.38 0 6.38-1 8.88",key:"o46ks0"}],["path",{d:"M17.29 21.02c.12-.6.43-2.3.5-3.02",key:"ptglia"}],["path",{d:"M2 12a10 10 0 0 1 18-6",key:"ydlgp0"}],["path",{d:"M2 16h.01",key:"1gqxmh"}],["path",{d:"M21.8 16c.2-2 .131-5.354 0-6",key:"drycrb"}],["path",{d:"M5 19.5C5.5 18 6 15 6 12a6 6 0 0 1 .34-2",key:"1tidbn"}],["path",{d:"M8.65 22c.21-.66.45-1.32.57-2",key:"13wd9y"}],["path",{d:"M9 6.8a6 6 0 0 1 9 5.2v2",key:"1fr1j5"}]],dr=ce("fingerprint-pattern",kr),xr=[["path",{d:"M6 18h8",key:"1borvv"}],["path",{d:"M3 22h18",key:"8prr45"}],["path",{d:"M14 22a7 7 0 1 0 0-14h-1",key:"1jwaiy"}],["path",{d:"M9 14h2",key:"197e7h"}],["path",{d:"M9 12a2 2 0 0 1-2-2V6h6v4a2 2 0 0 1-2 2Z",key:"1bmzmy"}],["path",{d:"M12 6V3a1 1 0 0 0-1-1H9a1 1 0 0 0-1 1v3",key:"1drr47"}]],br=ce("microscope",xr),yr=[["path",{d:"M10.83 2.38a2 2 0 0 1 2.34 0l8 5.74a2 2 0 0 1 .73 2.25l-3.04 9.26a2 2 0 0 1-1.9 1.37H7.04a2 2 0 0 1-1.9-1.37L2.1 10.37a2 2 0 0 1 .73-2.25z",key:"2hea0t"}]],wr=ce("pentagon",yr),Ir=[["path",{d:"m13 19 6-6",key:"gj6q8g"}],["path",{d:"M14.5 17.5 3.586 6.586A2 2 0 013 5.172V3h2.172a2 2 0 011.414.586L17.5 14.5",key:"uwfxh8"}],["path",{d:"m14.828 6.172 2.586-2.586A2 2 0 0118.828 3H21v2.172a2 2 0 01-.586 1.414l-2.586 2.586",key:"1f17hx"}],["path",{d:"m16 16 4 4",key:"up5ibb"}],["path",{d:"m19 21 2-2",key:"1phfkn"}],["path",{d:"m5 14 4 4",key:"1gk0qx"}],["path",{d:"m5 21-2-2",key:"1kw20b"}],["path",{d:"M7.5 16.5 4 20",key:"14nozp"}]],Sr=ce("swords",Ir),vr=[["path",{d:"m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72",key:"ul74o6"}],["path",{d:"m14 7 3 3",key:"1r5n42"}],["path",{d:"M5 6v4",key:"ilb8ba"}],["path",{d:"M19 14v4",key:"blhpug"}],["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M7 8H3",key:"zfb6yr"}],["path",{d:"M21 16h-4",key:"1cnmox"}],["path",{d:"M11 3H9",key:"1obp7u"}]],Cr=ce("wand-sparkles",vr),Tr=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],kl=ce("x",Tr),rt={bot:Xn,cpu:In,brain:wn,zap:Vn,rocket:Un,code:dn,terminal:jn,shield:_n,eye:gr,search:Pn,wrench:On,hammer:zn,lightbulb:Tn,sparkles:qn,star:Nn,heart:Kn,flame:Qn,bug:Bn,cog:Dn,database:yn,globe:Gn,lock:Mn,mail:Fn,"message-square":$n,"file-code":Cn,"git-branch":vn,package:Hn,puzzle:Ln,target:En,wand:Cr,atom:Sn,"circuit-board":pr,radar:An,swords:Sr,telescope:Rn,microscope:br,crown:bn,gem:xn,hexagon:Wn,pentagon:wr,fingerprint:dr},Er="bot";function zr(e){return e&&kn.includes(e)?rt[e]:rt[Er]}r(zr,"getAgentIcon");function K(e,n,t,i){const u=e.length;let a=0,l;if(n<0?n=-n>u?0:u+n:n=n>u?u:n,t=t>0?t:0,i.length<1e4)l=Array.from(i),l.unshift(n,t),e.splice(...l);else for(t&&e.splice(n,t);a<i.length;)l=i.slice(a,a+1e4),l.unshift(n,0),e.splice(...l),a+=1e4,n+=1e4}r(K,"splice");function Y(e,n){return e.length>0?(K(e,e.length,0,n),e):n}r(Y,"push");var ee=he(/[A-Za-z]/),J=he(/[\dA-Za-z]/),_r=he(/[#-'*+\--9=?A-Z^-~]/);function $e(e){return e!==null&&(e<32||e===127)}r($e,"asciiControl");var Oe=he(/\d/),Ar=he(/[\dA-Fa-f]/),Lr=he(/[!-/:-@[-`{-~]/);function z(e){return e!==null&&e<-2}r(z,"markdownLineEnding");function U(e){return e!==null&&(e<0||e===32)}r(U,"markdownLineEndingOrSpace");function L(e){return e===-2||e===-1||e===32}r(L,"markdownSpace");var Mr=he(new RegExp("\\p{P}|\\p{S}","u")),Fr=he(/\s/);function he(e){return n;function n(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}r(he,"regexCheck");function be(e){if(e===null||U(e)||Fr(e))return 1;if(Mr(e))return 2}r(be,"classifyCharacter");function Ae(e,n,t){const i=[];let u=-1;for(;++u<e.length;){const a=e[u].resolveAll;a&&!i.includes(a)&&(n=a(n,t),i.push(a))}return n}r(Ae,"resolveAll");function dl(e){let n=(e||{}).singleTilde;const t={name:"strikethrough",tokenize:u,resolveAll:i};return n==null&&(n=!0),{text:{126:t},insideSpan:{null:[t]},attentionMarkers:{null:[126]}};function i(a,l){let o=-1;for(;++o<a.length;)if(a[o][0]==="enter"&&a[o][1].type==="strikethroughSequenceTemporary"&&a[o][1]._close){let s=o;for(;s--;)if(a[s][0]==="exit"&&a[s][1].type==="strikethroughSequenceTemporary"&&a[s][1]._open&&a[o][1].end.offset-a[o][1].start.offset===a[s][1].end.offset-a[s][1].start.offset){a[o][1].type="strikethroughSequence",a[s][1].type="strikethroughSequence";const c={type:"strikethrough",start:Object.assign({},a[s][1].start),end:Object.assign({},a[o][1].end)},p={type:"strikethroughText",start:Object.assign({},a[s][1].end),end:Object.assign({},a[o][1].start)},f=[["enter",c,l],["enter",a[s][1],l],["exit",a[s][1],l],["enter",p,l]],k=l.parser.constructs.insideSpan.null;k&&K(f,f.length,0,Ae(k,a.slice(s+1,o),l)),K(f,f.length,0,[["exit",p,l],["enter",a[o][1],l],["exit",a[o][1],l],["exit",c,l]]),K(a,s-1,o-s+3,f),o=s+f.length-2;break}}for(o=-1;++o<a.length;)a[o][1].type==="strikethroughSequenceTemporary"&&(a[o][1].type="data");return a}r(i,"resolveAllStrikethrough");function u(a,l,o){const s=this.previous,c=this.events;let p=0;return f;function f(h){return s===126&&c[c.length-1][1].type!=="characterEscape"?o(h):(a.enter("strikethroughSequenceTemporary"),k(h))}function k(h){const w=be(s);if(h===126)return p>1?o(h):(a.consume(h),p++,k);if(p<2&&!n)return o(h);const v=a.exit("strikethroughSequenceTemporary"),C=be(h);return v._open=!C||C===2&&!!w,v._close=!w||w===2&&!!C,l(h)}}r(u,"tokenizeStrikethrough")}r(dl,"gfmStrikethrough");var Rr=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];At.peek=Pr;function xl(){return{canContainEols:["delete"],enter:{strikethrough:Br},exit:{strikethrough:Dr}}}r(xl,"gfmStrikethroughFromMarkdown");function bl(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Rr}],handlers:{delete:At}}}r(bl,"gfmStrikethroughToMarkdown");function Br(e){this.enter({type:"delete",children:[]},e)}r(Br,"enterStrikethrough");function Dr(e){this.exit(e)}r(Dr,"exitStrikethrough");function At(e,n,t,i){const u=t.createTracker(i),a=t.enter("strikethrough");let l=u.move("~~");return l+=t.containerPhrasing(e,{...u.current(),before:l,after:"~"}),l+=u.move("~~"),a(),l}r(At,"handleDelete");function Pr(){return"~"}r(Pr,"peekDelete");function yl(e,n){const t=String(e);if(typeof n!="string")throw new TypeError("Expected character");let i=0,u=t.indexOf(n);for(;u!==-1;)i++,u=t.indexOf(n,u+n.length);return i}r(yl,"ccount");function wl(){}r(wl,"ok$1");function Il(){}r(Il,"unreachable");var it=document.createElement("i");function je(e){const n="&"+e+";";it.innerHTML=n;const t=it.textContent;return t.charCodeAt(t.length-1)===59&&e!=="semi"||t===n?!1:t}r(je,"decodeNamedCharacterReference");function ve(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?ut(e.position):"start"in e||"end"in e?ut(e):"line"in e||"column"in e?Ne(e):""}r(ve,"stringifyPosition");function Ne(e){return at(e&&e.line)+":"+at(e&&e.column)}r(Ne,"point$1");function ut(e){return Ne(e&&e.start)+"-"+Ne(e&&e.end)}r(ut,"position");function at(e){return e&&typeof e=="number"?e:1}r(at,"index");var X=class extends Error{static{r(this,"VFileMessage")}constructor(e,n,t){super(),typeof n=="string"&&(t=n,n=void 0);let i="",u={},a=!1;if(n&&("line"in n&&"column"in n?u={place:n}:"start"in n&&"end"in n?u={place:n}:"type"in n?u={ancestors:[n],place:n.position}:u={...n}),typeof e=="string"?i=e:!u.cause&&e&&(a=!0,i=e.message,u.cause=e),!u.ruleId&&!u.source&&typeof t=="string"){const o=t.indexOf(":");o===-1?u.ruleId=t:(u.source=t.slice(0,o),u.ruleId=t.slice(o+1))}if(!u.place&&u.ancestors&&u.ancestors){const o=u.ancestors[u.ancestors.length-1];o&&(u.place=o.position)}const l=u.place&&"start"in u.place?u.place.start:u.place;this.ancestors=u.ancestors||void 0,this.cause=u.cause||void 0,this.column=l?l.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=l?l.line:void 0,this.name=ve(u.place)||"1:1",this.place=u.place||void 0,this.reason=this.message,this.ruleId=u.ruleId||void 0,this.source=u.source||void 0,this.stack=a&&u.cause&&typeof u.cause.stack=="string"?u.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}};X.prototype.file="";X.prototype.name="";X.prototype.reason="";X.prototype.message="";X.prototype.stack="";X.prototype.column=void 0;X.prototype.line=void 0;X.prototype.ancestors=void 0;X.prototype.cause=void 0;X.prototype.fatal=void 0;X.prototype.place=void 0;X.prototype.ruleId=void 0;X.prototype.source=void 0;var $r=/[$_\p{ID_Start}]/u,Or=/[$_\u{200C}\u{200D}\p{ID_Continue}]/u,Nr=/[-$_\u{200C}\u{200D}\p{ID_Continue}]/u,Hr=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,jr=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Lt={};function Sl(e){return e?$r.test(String.fromCodePoint(e)):!1}r(Sl,"start");function vl(e,n){const t=(n||Lt).jsx?Nr:Or;return e?t.test(String.fromCodePoint(e)):!1}r(vl,"cont");function Cl(e,n){return((n||Lt).jsx?jr:Hr).test(e)}r(Cl,"name");function D(e,n,t,i){const u=i?i-1:Number.POSITIVE_INFINITY;let a=0;return l;function l(s){return L(s)?(e.enter(t),o(s)):n(s)}function o(s){return L(s)&&a++<u?(e.consume(s),o):(e.exit(t),n(s))}}r(D,"factorySpace");function qr(e,n,t,i){const u=t.enter("blockquote"),a=t.createTracker(i);a.move("> "),a.shift(2);const l=t.indentLines(t.containerFlow(e,a.current()),Vr);return u(),l}r(qr,"blockquote");function Vr(e,n,t){return">"+(t?"":" ")+e}r(Vr,"map$1");function Ur(e,n){return lt(e,n.inConstruct,!0)&&!lt(e,n.notInConstruct,!1)}r(Ur,"patternInScope");function lt(e,n,t){if(typeof n=="string"&&(n=[n]),!n||n.length===0)return t;let i=-1;for(;++i<n.length;)if(e.includes(n[i]))return!0;return!1}r(lt,"listInScope");function ot(e,n,t,i){let u=-1;for(;++u<t.unsafe.length;)if(t.unsafe[u].character===`
|
|
2
|
-
`&&
|
|
3
|
-
`}r(ot,"hardBreak");function
|
|
1
|
+
var gn=Object.defineProperty;var r=(e,n)=>gn(e,"name",{value:n,configurable:!0});import{n as kn}from"./rolldown-runtime-ZpX3ckPj.js";import{En as dn,t as ce}from"./createLucideIcon-CLQ6uxcH.js";import{A as xn,C as bn,D as yn,E as wn,M as In,O as Sn,P as vn,S as Cn,T as En,_ as Tn,a as zn,b as _n,c as An,d as Ln,f as Mn,g as Fn,h as Rn,i as Bn,j as Dn,k as Pn,l as $n,m as On,n as Nn,o as Hn,p as jn,r as qn,s as Vn,t as Un,u as Wn,v as Qn,w as Gn,x as Kn,y as Xn}from"./zap-CeCCVOlg.js";import{t as Yn}from"./bot-Ds68iyWW.js";var et="project://",tt="agent://",Zn="user://",nt="skill://",Jn="routine://",er=/^[0-9a-f]{6}$/i,tr=/^[0-9a-f]{3}$/i,nr=/^#[0-9a-f]{6}$/i,rr=/^#[0-9a-f]{3}$/i,ir=/\[[^\]]*]\((agent:\/\/[^)\s]+)\)/gi,ur=/^[a-z0-9-]+$/i,ar=/^[a-z0-9][a-z0-9-]*$/i;function Et(e){if(!e)return null;const n=e.trim();if(!n)return null;if(nr.test(n))return n.toLowerCase();if(er.test(n))return`#${n.toLowerCase()}`;if(rr.test(n)){const t=n.slice(1).toLowerCase();return`#${t[0]}${t[0]}${t[1]}${t[1]}${t[2]}${t[2]}`}if(tr.test(n)){const t=n.toLowerCase();return`#${t[0]}${t[0]}${t[1]}${t[1]}${t[2]}${t[2]}`}return null}r(Et,"normalizeHexColor");function hl(e,n){const t=e.trim(),i=Et(n??null);return i?`${et}${t}?c=${encodeURIComponent(i.slice(1))}`:`${et}${t}`}r(hl,"buildProjectMentionHref");function lr(e){if(!e.startsWith("project://"))return null;let n;try{n=new URL(e)}catch{return null}if(n.protocol!=="project:")return null;const t=`${n.hostname}${n.pathname}`.replace(/^\/+/,"").trim();return t?{projectId:t,color:Et(n.searchParams.get("c")??n.searchParams.get("color"))}:null}r(lr,"parseProjectMentionHref");function fl(e,n){const t=e.trim(),i=zt(n??null);return i?`${tt}${t}?i=${encodeURIComponent(i)}`:`${tt}${t}`}r(fl,"buildAgentMentionHref");function Tt(e){if(!e.startsWith("agent://"))return null;let n;try{n=new URL(e)}catch{return null}if(n.protocol!=="agent:")return null;const t=`${n.hostname}${n.pathname}`.replace(/^\/+/,"").trim();return t?{agentId:t,icon:zt(n.searchParams.get("i")??n.searchParams.get("icon"))}:null}r(Tt,"parseAgentMentionHref");function pl(e){return`${Zn}${e.trim()}`}r(pl,"buildUserMentionHref");function or(e){if(!e.startsWith("user://"))return null;let n;try{n=new URL(e)}catch{return null}if(n.protocol!=="user:")return null;const t=`${n.hostname}${n.pathname}`.replace(/^\/+/,"").trim();return t?{userId:t}:null}r(or,"parseUserMentionHref");function ml(e,n){const t=e.trim(),i=_t(n??null);return i?`${nt}${t}?s=${encodeURIComponent(i)}`:`${nt}${t}`}r(ml,"buildSkillMentionHref");function sr(e){if(!e.startsWith("skill://"))return null;let n;try{n=new URL(e)}catch{return null}if(n.protocol!=="skill:")return null;const t=`${n.hostname}${n.pathname}`.replace(/^\/+/,"").trim();return t?{skillId:t,slug:_t(n.searchParams.get("s")??n.searchParams.get("slug"))}:null}r(sr,"parseSkillMentionHref");function gl(e){return`${Jn}${e.trim()}`}r(gl,"buildRoutineMentionHref");function cr(e){if(!e.startsWith("routine://"))return null;let n;try{n=new URL(e)}catch{return null}if(n.protocol!=="routine:")return null;const t=`${n.hostname}${n.pathname}`.replace(/^\/+/,"").trim();return t?{routineId:t}:null}r(cr,"parseRoutineMentionHref");function kl(e){if(!e)return[];const n=new Set,t=new RegExp(ir);let i;for(;(i=t.exec(e))!==null;){const u=Tt(i[1]);u&&n.add(u.agentId)}return[...n]}r(kl,"extractAgentMentionIds");function zt(e){if(!e)return null;const n=e.trim().toLowerCase();return!n||!ur.test(n)?null:n}r(zt,"normalizeAgentIcon");function _t(e){if(!e)return null;const n=e.trim().toLowerCase();return!n||!ar.test(n)?null:n}r(_t,"normalizeSkillSlug");var hr=/^[A-Z][A-Z0-9]*-\d+$/;function At(e){const n=e.trim().toUpperCase();return hr.test(n)?n:null}r(At,"normalizeIssueIdentifier");function dl(e){return`/issues/${At(e)??e.trim()}`}r(dl,"buildIssueReferenceHref");function fr(e){const n=e.trim();if(!n)return null;let t;try{t=n.startsWith("/")?new URL(n,"https://paperclip.invalid"):new URL(n)}catch{return null}const i=t.pathname.split("/").map(u=>u.trim()).filter(Boolean);for(let u=0;u<i.length-1;u+=1){if(i[u]?.toLowerCase()!=="issues")continue;const a=At(i[u+1]??"");if(a)return{identifier:a}}return null}r(fr,"parseIssueReferenceHref");var pr=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M11 9h4a2 2 0 0 0 2-2V3",key:"1ve2rv"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"M7 21v-4a2 2 0 0 1 2-2h4",key:"1fwkro"}],["circle",{cx:"15",cy:"15",r:"2",key:"3i40o0"}]],mr=ce("circuit-board",pr),gr=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],kr=ce("eye",gr),dr=[["path",{d:"M12 10a2 2 0 0 0-2 2c0 1.02-.1 2.51-.26 4",key:"1nerag"}],["path",{d:"M14 13.12c0 2.38 0 6.38-1 8.88",key:"o46ks0"}],["path",{d:"M17.29 21.02c.12-.6.43-2.3.5-3.02",key:"ptglia"}],["path",{d:"M2 12a10 10 0 0 1 18-6",key:"ydlgp0"}],["path",{d:"M2 16h.01",key:"1gqxmh"}],["path",{d:"M21.8 16c.2-2 .131-5.354 0-6",key:"drycrb"}],["path",{d:"M5 19.5C5.5 18 6 15 6 12a6 6 0 0 1 .34-2",key:"1tidbn"}],["path",{d:"M8.65 22c.21-.66.45-1.32.57-2",key:"13wd9y"}],["path",{d:"M9 6.8a6 6 0 0 1 9 5.2v2",key:"1fr1j5"}]],xr=ce("fingerprint-pattern",dr),br=[["path",{d:"M6 18h8",key:"1borvv"}],["path",{d:"M3 22h18",key:"8prr45"}],["path",{d:"M14 22a7 7 0 1 0 0-14h-1",key:"1jwaiy"}],["path",{d:"M9 14h2",key:"197e7h"}],["path",{d:"M9 12a2 2 0 0 1-2-2V6h6v4a2 2 0 0 1-2 2Z",key:"1bmzmy"}],["path",{d:"M12 6V3a1 1 0 0 0-1-1H9a1 1 0 0 0-1 1v3",key:"1drr47"}]],yr=ce("microscope",br),wr=[["path",{d:"M10.83 2.38a2 2 0 0 1 2.34 0l8 5.74a2 2 0 0 1 .73 2.25l-3.04 9.26a2 2 0 0 1-1.9 1.37H7.04a2 2 0 0 1-1.9-1.37L2.1 10.37a2 2 0 0 1 .73-2.25z",key:"2hea0t"}]],Ir=ce("pentagon",wr),Sr=[["path",{d:"m13 19 6-6",key:"gj6q8g"}],["path",{d:"M14.5 17.5 3.586 6.586A2 2 0 013 5.172V3h2.172a2 2 0 011.414.586L17.5 14.5",key:"uwfxh8"}],["path",{d:"m14.828 6.172 2.586-2.586A2 2 0 0118.828 3H21v2.172a2 2 0 01-.586 1.414l-2.586 2.586",key:"1f17hx"}],["path",{d:"m16 16 4 4",key:"up5ibb"}],["path",{d:"m19 21 2-2",key:"1phfkn"}],["path",{d:"m5 14 4 4",key:"1gk0qx"}],["path",{d:"m5 21-2-2",key:"1kw20b"}],["path",{d:"M7.5 16.5 4 20",key:"14nozp"}]],vr=ce("swords",Sr),Cr=[["path",{d:"m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72",key:"ul74o6"}],["path",{d:"m14 7 3 3",key:"1r5n42"}],["path",{d:"M5 6v4",key:"ilb8ba"}],["path",{d:"M19 14v4",key:"blhpug"}],["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M7 8H3",key:"zfb6yr"}],["path",{d:"M21 16h-4",key:"1cnmox"}],["path",{d:"M11 3H9",key:"1obp7u"}]],Er=ce("wand-sparkles",Cr),Tr=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],xl=ce("x",Tr),rt={bot:Yn,cpu:Sn,brain:In,zap:Un,rocket:Wn,code:xn,terminal:qn,shield:An,eye:kr,search:$n,wrench:Nn,hammer:_n,lightbulb:Tn,sparkles:Vn,star:Hn,heart:Xn,flame:Gn,bug:Dn,cog:Pn,database:wn,globe:Kn,lock:Fn,mail:Rn,"message-square":On,"file-code":En,"git-branch":Cn,package:jn,puzzle:Mn,target:zn,wand:Er,atom:vn,"circuit-board":mr,radar:Ln,swords:vr,telescope:Bn,microscope:yr,crown:yn,gem:bn,hexagon:Qn,pentagon:Ir,fingerprint:xr},zr="bot";function _r(e){return e&&dn.includes(e)?rt[e]:rt[zr]}r(_r,"getAgentIcon");function K(e,n,t,i){const u=e.length;let a=0,l;if(n<0?n=-n>u?0:u+n:n=n>u?u:n,t=t>0?t:0,i.length<1e4)l=Array.from(i),l.unshift(n,t),e.splice(...l);else for(t&&e.splice(n,t);a<i.length;)l=i.slice(a,a+1e4),l.unshift(n,0),e.splice(...l),a+=1e4,n+=1e4}r(K,"splice");function Y(e,n){return e.length>0?(K(e,e.length,0,n),e):n}r(Y,"push");var ee=he(/[A-Za-z]/),J=he(/[\dA-Za-z]/),Ar=he(/[#-'*+\--9=?A-Z^-~]/);function $e(e){return e!==null&&(e<32||e===127)}r($e,"asciiControl");var Oe=he(/\d/),Lr=he(/[\dA-Fa-f]/),Mr=he(/[!-/:-@[-`{-~]/);function z(e){return e!==null&&e<-2}r(z,"markdownLineEnding");function U(e){return e!==null&&(e<0||e===32)}r(U,"markdownLineEndingOrSpace");function L(e){return e===-2||e===-1||e===32}r(L,"markdownSpace");var Fr=he(new RegExp("\\p{P}|\\p{S}","u")),Rr=he(/\s/);function he(e){return n;function n(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}r(he,"regexCheck");function be(e){if(e===null||U(e)||Rr(e))return 1;if(Fr(e))return 2}r(be,"classifyCharacter");function Ae(e,n,t){const i=[];let u=-1;for(;++u<e.length;){const a=e[u].resolveAll;a&&!i.includes(a)&&(n=a(n,t),i.push(a))}return n}r(Ae,"resolveAll");function bl(e){let n=(e||{}).singleTilde;const t={name:"strikethrough",tokenize:u,resolveAll:i};return n==null&&(n=!0),{text:{126:t},insideSpan:{null:[t]},attentionMarkers:{null:[126]}};function i(a,l){let o=-1;for(;++o<a.length;)if(a[o][0]==="enter"&&a[o][1].type==="strikethroughSequenceTemporary"&&a[o][1]._close){let s=o;for(;s--;)if(a[s][0]==="exit"&&a[s][1].type==="strikethroughSequenceTemporary"&&a[s][1]._open&&a[o][1].end.offset-a[o][1].start.offset===a[s][1].end.offset-a[s][1].start.offset){a[o][1].type="strikethroughSequence",a[s][1].type="strikethroughSequence";const c={type:"strikethrough",start:Object.assign({},a[s][1].start),end:Object.assign({},a[o][1].end)},p={type:"strikethroughText",start:Object.assign({},a[s][1].end),end:Object.assign({},a[o][1].start)},f=[["enter",c,l],["enter",a[s][1],l],["exit",a[s][1],l],["enter",p,l]],k=l.parser.constructs.insideSpan.null;k&&K(f,f.length,0,Ae(k,a.slice(s+1,o),l)),K(f,f.length,0,[["exit",p,l],["enter",a[o][1],l],["exit",a[o][1],l],["exit",c,l]]),K(a,s-1,o-s+3,f),o=s+f.length-2;break}}for(o=-1;++o<a.length;)a[o][1].type==="strikethroughSequenceTemporary"&&(a[o][1].type="data");return a}r(i,"resolveAllStrikethrough");function u(a,l,o){const s=this.previous,c=this.events;let p=0;return f;function f(h){return s===126&&c[c.length-1][1].type!=="characterEscape"?o(h):(a.enter("strikethroughSequenceTemporary"),k(h))}function k(h){const w=be(s);if(h===126)return p>1?o(h):(a.consume(h),p++,k);if(p<2&&!n)return o(h);const v=a.exit("strikethroughSequenceTemporary"),C=be(h);return v._open=!C||C===2&&!!w,v._close=!w||w===2&&!!C,l(h)}}r(u,"tokenizeStrikethrough")}r(bl,"gfmStrikethrough");var Br=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Lt.peek=$r;function yl(){return{canContainEols:["delete"],enter:{strikethrough:Dr},exit:{strikethrough:Pr}}}r(yl,"gfmStrikethroughFromMarkdown");function wl(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Br}],handlers:{delete:Lt}}}r(wl,"gfmStrikethroughToMarkdown");function Dr(e){this.enter({type:"delete",children:[]},e)}r(Dr,"enterStrikethrough");function Pr(e){this.exit(e)}r(Pr,"exitStrikethrough");function Lt(e,n,t,i){const u=t.createTracker(i),a=t.enter("strikethrough");let l=u.move("~~");return l+=t.containerPhrasing(e,{...u.current(),before:l,after:"~"}),l+=u.move("~~"),a(),l}r(Lt,"handleDelete");function $r(){return"~"}r($r,"peekDelete");function Il(e,n){const t=String(e);if(typeof n!="string")throw new TypeError("Expected character");let i=0,u=t.indexOf(n);for(;u!==-1;)i++,u=t.indexOf(n,u+n.length);return i}r(Il,"ccount");function Sl(){}r(Sl,"ok$1");function vl(){}r(vl,"unreachable");var it=document.createElement("i");function je(e){const n="&"+e+";";it.innerHTML=n;const t=it.textContent;return t.charCodeAt(t.length-1)===59&&e!=="semi"||t===n?!1:t}r(je,"decodeNamedCharacterReference");function ve(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?ut(e.position):"start"in e||"end"in e?ut(e):"line"in e||"column"in e?Ne(e):""}r(ve,"stringifyPosition");function Ne(e){return at(e&&e.line)+":"+at(e&&e.column)}r(Ne,"point$1");function ut(e){return Ne(e&&e.start)+"-"+Ne(e&&e.end)}r(ut,"position");function at(e){return e&&typeof e=="number"?e:1}r(at,"index");var X=class extends Error{static{r(this,"VFileMessage")}constructor(e,n,t){super(),typeof n=="string"&&(t=n,n=void 0);let i="",u={},a=!1;if(n&&("line"in n&&"column"in n?u={place:n}:"start"in n&&"end"in n?u={place:n}:"type"in n?u={ancestors:[n],place:n.position}:u={...n}),typeof e=="string"?i=e:!u.cause&&e&&(a=!0,i=e.message,u.cause=e),!u.ruleId&&!u.source&&typeof t=="string"){const o=t.indexOf(":");o===-1?u.ruleId=t:(u.source=t.slice(0,o),u.ruleId=t.slice(o+1))}if(!u.place&&u.ancestors&&u.ancestors){const o=u.ancestors[u.ancestors.length-1];o&&(u.place=o.position)}const l=u.place&&"start"in u.place?u.place.start:u.place;this.ancestors=u.ancestors||void 0,this.cause=u.cause||void 0,this.column=l?l.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=l?l.line:void 0,this.name=ve(u.place)||"1:1",this.place=u.place||void 0,this.reason=this.message,this.ruleId=u.ruleId||void 0,this.source=u.source||void 0,this.stack=a&&u.cause&&typeof u.cause.stack=="string"?u.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}};X.prototype.file="";X.prototype.name="";X.prototype.reason="";X.prototype.message="";X.prototype.stack="";X.prototype.column=void 0;X.prototype.line=void 0;X.prototype.ancestors=void 0;X.prototype.cause=void 0;X.prototype.fatal=void 0;X.prototype.place=void 0;X.prototype.ruleId=void 0;X.prototype.source=void 0;var Or=/[$_\p{ID_Start}]/u,Nr=/[$_\u{200C}\u{200D}\p{ID_Continue}]/u,Hr=/[-$_\u{200C}\u{200D}\p{ID_Continue}]/u,jr=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,qr=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Mt={};function Cl(e){return e?Or.test(String.fromCodePoint(e)):!1}r(Cl,"start");function El(e,n){const t=(n||Mt).jsx?Hr:Nr;return e?t.test(String.fromCodePoint(e)):!1}r(El,"cont");function Tl(e,n){return((n||Mt).jsx?qr:jr).test(e)}r(Tl,"name");function D(e,n,t,i){const u=i?i-1:Number.POSITIVE_INFINITY;let a=0;return l;function l(s){return L(s)?(e.enter(t),o(s)):n(s)}function o(s){return L(s)&&a++<u?(e.consume(s),o):(e.exit(t),n(s))}}r(D,"factorySpace");function Vr(e,n,t,i){const u=t.enter("blockquote"),a=t.createTracker(i);a.move("> "),a.shift(2);const l=t.indentLines(t.containerFlow(e,a.current()),Ur);return u(),l}r(Vr,"blockquote");function Ur(e,n,t){return">"+(t?"":" ")+e}r(Ur,"map$1");function Wr(e,n){return lt(e,n.inConstruct,!0)&&!lt(e,n.notInConstruct,!1)}r(Wr,"patternInScope");function lt(e,n,t){if(typeof n=="string"&&(n=[n]),!n||n.length===0)return t;let i=-1;for(;++i<n.length;)if(e.includes(n[i]))return!0;return!1}r(lt,"listInScope");function ot(e,n,t,i){let u=-1;for(;++u<t.unsafe.length;)if(t.unsafe[u].character===`
|
|
2
|
+
`&&Wr(t.stack,t.unsafe[u]))return/[ \t]/.test(i.before)?"":" ";return`\\
|
|
3
|
+
`}r(ot,"hardBreak");function Qr(e,n){const t=String(e);let i=t.indexOf(n),u=i,a=0,l=0;if(typeof n!="string")throw new TypeError("Expected substring");for(;i!==-1;)i===u?++a>l&&(l=a):a=1,u=i+n.length,i=t.indexOf(n,u);return l}r(Qr,"longestStreak");function Gr(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))}r(Gr,"formatCodeAsIndented");function Kr(e){const n=e.options.fence||"`";if(n!=="`"&&n!=="~")throw new Error("Cannot serialize code with `"+n+"` for `options.fence`, expected `` ` `` or `~`");return n}r(Kr,"checkFence");function Xr(e,n,t,i){const u=Kr(t),a=e.value||"",l=u==="`"?"GraveAccent":"Tilde";if(Gr(e,t)){const f=t.enter("codeIndented"),k=t.indentLines(a,Yr);return f(),k}const o=t.createTracker(i),s=u.repeat(Math.max(Qr(a,u)+1,3)),c=t.enter("codeFenced");let p=o.move(s);if(e.lang){const f=t.enter(`codeFencedLang${l}`);p+=o.move(t.safe(e.lang,{before:p,after:" ",encode:["`"],...o.current()})),f()}if(e.lang&&e.meta){const f=t.enter(`codeFencedMeta${l}`);p+=o.move(" "),p+=o.move(t.safe(e.meta,{before:p,after:`
|
|
4
4
|
`,encode:["`"],...o.current()})),f()}return p+=o.move(`
|
|
5
5
|
`),a&&(p+=o.move(a+`
|
|
6
|
-
`)),p+=o.move(s),c(),p}r(
|
|
7
|
-
`,...s.current()}))),o(),e.title&&(o=t.enter(`title${a}`),c+=s.move(" "+u),c+=s.move(t.safe(e.title,{before:c,after:u,...s.current()})),c+=s.move(u),o()),l(),c}r(
|
|
6
|
+
`)),p+=o.move(s),c(),p}r(Xr,"code");function Yr(e,n,t){return(t?"":" ")+e}r(Yr,"map");function qe(e){const n=e.options.quote||'"';if(n!=='"'&&n!=="'")throw new Error("Cannot serialize title with `"+n+"` for `options.quote`, expected `\"`, or `'`");return n}r(qe,"checkQuote");function Zr(e,n,t,i){const u=qe(t),a=u==='"'?"Quote":"Apostrophe",l=t.enter("definition");let o=t.enter("label");const s=t.createTracker(i);let c=s.move("[");return c+=s.move(t.safe(t.associationId(e),{before:c,after:"]",...s.current()})),c+=s.move("]: "),o(),!e.url||/[\0- \u007F]/.test(e.url)?(o=t.enter("destinationLiteral"),c+=s.move("<"),c+=s.move(t.safe(e.url,{before:c,after:">",...s.current()})),c+=s.move(">")):(o=t.enter("destinationRaw"),c+=s.move(t.safe(e.url,{before:c,after:e.title?" ":`
|
|
7
|
+
`,...s.current()}))),o(),e.title&&(o=t.enter(`title${a}`),c+=s.move(" "+u),c+=s.move(t.safe(e.title,{before:c,after:u,...s.current()})),c+=s.move(u),o()),l(),c}r(Zr,"definition$1");function Jr(e){const n=e.options.emphasis||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize emphasis with `"+n+"` for `options.emphasis`, expected `*`, or `_`");return n}r(Jr,"checkEmphasis");function Ee(e){return"&#x"+e.toString(16).toUpperCase()+";"}r(Ee,"encodeCharacterReference");function _e(e,n,t){const i=be(e),u=be(n);return i===void 0?u===void 0?t==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:u===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:i===1?u===void 0?{inside:!1,outside:!1}:u===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:u===void 0?{inside:!1,outside:!1}:u===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}r(_e,"encodeInfo");Ft.peek=ei;function Ft(e,n,t,i){const u=Jr(t),a=t.enter("emphasis"),l=t.createTracker(i),o=l.move(u);let s=l.move(t.containerPhrasing(e,{after:u,before:o,...l.current()}));const c=s.charCodeAt(0),p=_e(i.before.charCodeAt(i.before.length-1),c,u);p.inside&&(s=Ee(c)+s.slice(1));const f=s.charCodeAt(s.length-1),k=_e(i.after.charCodeAt(0),f,u);k.inside&&(s=s.slice(0,-1)+Ee(f));const h=l.move(u);return a(),t.attentionEncodeSurroundingInfo={after:k.outside,before:p.outside},o+s+h}r(Ft,"emphasis");function ei(e,n,t){return t.options.emphasis||"*"}r(ei,"emphasisPeek");var Ve=r((function(e){if(e==null)return ii;if(typeof e=="function")return Le(e);if(typeof e=="object")return Array.isArray(e)?ti(e):ni(e);if(typeof e=="string")return ri(e);throw new Error("Expected function, string, or object as test")}),"convert");function ti(e){const n=[];let t=-1;for(;++t<e.length;)n[t]=Ve(e[t]);return Le(i);function i(...u){let a=-1;for(;++a<n.length;)if(n[a].apply(this,u))return!0;return!1}}r(ti,"anyFactory");function ni(e){const n=e;return Le(t);function t(i){const u=i;let a;for(a in e)if(u[a]!==n[a])return!1;return!0}}r(ni,"propertiesFactory");function ri(e){return Le(n);function n(t){return t&&t.type===e}}r(ri,"typeFactory");function Le(e){return n;function n(t,i,u){return!!(ui(t)&&e.call(this,t,typeof i=="number"?i:void 0,u||void 0))}}r(Le,"castFactory");function ii(){return!0}r(ii,"ok");function ui(e){return e!==null&&typeof e=="object"&&"type"in e}r(ui,"looksLikeANode");var Rt=[];function ai(e,n,t,i){let u;typeof n=="function"&&typeof t!="function"?(i=t,t=n):u=n;const a=Ve(u),l=i?-1:1;o(e,void 0,[])();function o(s,c,p){const f=s&&typeof s=="object"?s:{};if(typeof f.type=="string"){const h=typeof f.tagName=="string"?f.tagName:typeof f.name=="string"?f.name:void 0;Object.defineProperty(k,"name",{value:"node ("+(s.type+(h?"<"+h+">":""))+")"})}return k;function k(){let h=Rt,w,v,C;if((!n||a(s,c,p[p.length-1]||void 0))&&(h=li(t(s,p)),h[0]===!1))return h;if("children"in s&&s.children){const b=s;if(b.children&&h[0]!=="skip")for(v=(i?b.children.length:-1)+l,C=p.concat(b);v>-1&&v<b.children.length;){const _=b.children[v];if(w=o(_,v,C)(),w[0]===!1)return w;v=typeof w[1]=="number"?w[1]:v+l}}return h}}r(o,"factory")}r(ai,"visitParents");function li(e){return Array.isArray(e)?e:typeof e=="number"?[!0,e]:e==null?Rt:[e]}r(li,"toResult");function oi(e,n,t,i){let u,a,l;typeof n=="function"&&typeof t!="function"?(a=void 0,l=n,u=t):(a=n,l=t,u=i),ai(e,a,o,u);function o(s,c){const p=c[c.length-1],f=p?p.children.indexOf(s):void 0;return l(s,f,p)}r(o,"overload")}r(oi,"visit");var si={};function Ue(e,n){const t=n||si;return Bt(e,typeof t.includeImageAlt=="boolean"?t.includeImageAlt:!0,typeof t.includeHtml=="boolean"?t.includeHtml:!0)}r(Ue,"toString");function Bt(e,n,t){if(ci(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 st(e.children,n,t)}return Array.isArray(e)?st(e,n,t):""}r(Bt,"one");function st(e,n,t){const i=[];let u=-1;for(;++u<e.length;)i[u]=Bt(e[u],n,t);return i.join("")}r(st,"all");function ci(e){return!!(e&&typeof e=="object")}r(ci,"node");function hi(e,n){let t=!1;return oi(e,function(i){if("value"in i&&/\r?\n|\r/.test(i.value)||i.type==="break")return t=!0,!1}),!!((!e.depth||e.depth<3)&&Ue(e)&&(n.options.setext||t))}r(hi,"formatHeadingAsSetext");function fi(e,n,t,i){const u=Math.max(Math.min(6,e.depth||1),1),a=t.createTracker(i);if(hi(e,t)){const p=t.enter("headingSetext"),f=t.enter("phrasing"),k=t.containerPhrasing(e,{...a.current(),before:`
|
|
8
8
|
`,after:`
|
|
9
9
|
`});return f(),p(),k+`
|
|
10
10
|
`+(u===1?"=":"-").repeat(k.length-(Math.max(k.lastIndexOf("\r"),k.lastIndexOf(`
|
|
11
11
|
`))+1))}const l="#".repeat(u),o=t.enter("headingAtx"),s=t.enter("phrasing");a.move(l+" ");let c=t.containerPhrasing(e,{before:"# ",after:`
|
|
12
|
-
`,...a.current()});return/^[\t ]/.test(c)&&(c=Te(c.charCodeAt(0))+c.slice(1)),c=c?l+" "+c:l,t.options.closeAtx&&(c+=" "+l),s(),o(),c}r(hi,"heading");Bt.peek=fi;function Bt(e){return e.value||""}r(Bt,"html");function fi(){return"<"}r(fi,"htmlPeek");Dt.peek=pi;function Dt(e,n,t,i){const u=qe(t),a=u==='"'?"Quote":"Apostrophe",l=t.enter("image");let o=t.enter("label");const s=t.createTracker(i);let c=s.move("![");return c+=s.move(t.safe(e.alt,{before:c,after:"]",...s.current()})),c+=s.move("]("),o(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(o=t.enter("destinationLiteral"),c+=s.move("<"),c+=s.move(t.safe(e.url,{before:c,after:">",...s.current()})),c+=s.move(">")):(o=t.enter("destinationRaw"),c+=s.move(t.safe(e.url,{before:c,after:e.title?" ":")",...s.current()}))),o(),e.title&&(o=t.enter(`title${a}`),c+=s.move(" "+u),c+=s.move(t.safe(e.title,{before:c,after:u,...s.current()})),c+=s.move(u),o()),c+=s.move(")"),l(),c}r(Dt,"image");function pi(){return"!"}r(pi,"imagePeek");Pt.peek=mi;function Pt(e,n,t,i){const u=e.referenceType,a=t.enter("imageReference");let l=t.enter("label");const o=t.createTracker(i);let s=o.move("![");const c=t.safe(e.alt,{before:s,after:"]",...o.current()});s+=o.move(c+"]["),l();const p=t.stack;t.stack=[],l=t.enter("reference");const f=t.safe(t.associationId(e),{before:s,after:"]",...o.current()});return l(),t.stack=p,a(),u==="full"||!c||c!==f?s+=o.move(f+"]"):u==="shortcut"?s=s.slice(0,-1):s+=o.move("]"),s}r(Pt,"imageReference");function mi(){return"!"}r(mi,"imageReferencePeek");$t.peek=gi;function $t(e,n,t){let i=e.value||"",u="`",a=-1;for(;new RegExp("(^|[^`])"+u+"([^`]|$)").test(i);)u+="`";for(/[^ \r\n]/.test(i)&&(/^[ \r\n]/.test(i)&&/[ \r\n]$/.test(i)||/^`|`$/.test(i))&&(i=" "+i+" ");++a<t.unsafe.length;){const l=t.unsafe[a],o=t.compilePattern(l);let s;if(l.atBreak)for(;s=o.exec(i);){let c=s.index;i.charCodeAt(c)===10&&i.charCodeAt(c-1)===13&&c--,i=i.slice(0,c)+" "+i.slice(s.index+1)}}return u+i+u}r($t,"inlineCode");function gi(){return"`"}r(gi,"inlineCodePeek");function Ot(e,n){const t=Ue(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))}r(Ot,"formatLinkAsAutolink");Nt.peek=ki;function Nt(e,n,t,i){const u=qe(t),a=u==='"'?"Quote":"Apostrophe",l=t.createTracker(i);let o,s;if(Ot(e,t)){const p=t.stack;t.stack=[],o=t.enter("autolink");let f=l.move("<");return f+=l.move(t.containerPhrasing(e,{before:f,after:">",...l.current()})),f+=l.move(">"),o(),t.stack=p,f}o=t.enter("link"),s=t.enter("label");let c=l.move("[");return c+=l.move(t.containerPhrasing(e,{before:c,after:"](",...l.current()})),c+=l.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=t.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(t.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(s=t.enter("destinationRaw"),c+=l.move(t.safe(e.url,{before:c,after:e.title?" ":")",...l.current()}))),s(),e.title&&(s=t.enter(`title${a}`),c+=l.move(" "+u),c+=l.move(t.safe(e.title,{before:c,after:u,...l.current()})),c+=l.move(u),s()),c+=l.move(")"),o(),c}r(Nt,"link");function ki(e,n,t){return Ot(e,t)?"<":"["}r(ki,"linkPeek");Ht.peek=di;function Ht(e,n,t,i){const u=e.referenceType,a=t.enter("linkReference");let l=t.enter("label");const o=t.createTracker(i);let s=o.move("[");const c=t.containerPhrasing(e,{before:s,after:"]",...o.current()});s+=o.move(c+"]["),l();const p=t.stack;t.stack=[],l=t.enter("reference");const f=t.safe(t.associationId(e),{before:s,after:"]",...o.current()});return l(),t.stack=p,a(),u==="full"||!c||c!==f?s+=o.move(f+"]"):u==="shortcut"?s=s.slice(0,-1):s+=o.move("]"),s}r(Ht,"linkReference");function di(){return"["}r(di,"linkReferencePeek");function We(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}r(We,"checkBullet");function xi(e){const n=We(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}r(xi,"checkBulletOther");function bi(e){const n=e.options.bulletOrdered||".";if(n!=="."&&n!==")")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOrdered`, expected `.` or `)`");return n}r(bi,"checkBulletOrdered");function jt(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}r(jt,"checkRule");function yi(e,n,t,i){const u=t.enter("list"),a=t.bulletCurrent;let l=e.ordered?bi(t):We(t);const o=e.ordered?l==="."?")":".":xi(t);let s=n&&t.bulletLastUsed?l===t.bulletLastUsed:!1;if(!e.ordered){const p=e.children?e.children[0]:void 0;if((l==="*"||l==="-")&&p&&(!p.children||!p.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&&(s=!0),jt(t)===l&&p){let f=-1;for(;++f<e.children.length;){const k=e.children[f];if(k&&k.type==="listItem"&&k.children&&k.children[0]&&k.children[0].type==="thematicBreak"){s=!0;break}}}}s&&(l=o),t.bulletCurrent=l;const c=t.containerFlow(e,i);return t.bulletLastUsed=l,t.bulletCurrent=a,u(),c}r(yi,"list$1");function wi(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}r(wi,"checkListItemIndent");function Ii(e,n,t,i){const u=wi(t);let a=t.bulletCurrent||We(t);n&&n.type==="list"&&n.ordered&&(a=(typeof n.start=="number"&&n.start>-1?n.start:1)+(t.options.incrementListMarker===!1?0:n.children.indexOf(e))+a);let l=a.length+1;(u==="tab"||u==="mixed"&&(n&&n.type==="list"&&n.spread||e.spread))&&(l=Math.ceil(l/4)*4);const o=t.createTracker(i);o.move(a+" ".repeat(l-a.length)),o.shift(l);const s=t.enter("listItem"),c=t.indentLines(t.containerFlow(e,o.current()),p);return s(),c;function p(f,k,h){return k?(h?"":" ".repeat(l))+f:(h?a:a+" ".repeat(l-a.length))+f}r(p,"map")}r(Ii,"listItem");function Si(e,n,t,i){const u=t.enter("paragraph"),a=t.enter("phrasing"),l=t.containerPhrasing(e,i);return a(),u(),l}r(Si,"paragraph");var vi=Ve(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Ci(e,n,t,i){return(e.children.some(function(u){return vi(u)})?t.containerPhrasing:t.containerFlow).call(t,e,i)}r(Ci,"root");function Ti(e){const n=e.options.strong||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize strong with `"+n+"` for `options.strong`, expected `*`, or `_`");return n}r(Ti,"checkStrong");qt.peek=Ei;function qt(e,n,t,i){const u=Ti(t),a=t.enter("strong"),l=t.createTracker(i),o=l.move(u+u);let s=l.move(t.containerPhrasing(e,{after:u,before:o,...l.current()}));const c=s.charCodeAt(0),p=_e(i.before.charCodeAt(i.before.length-1),c,u);p.inside&&(s=Te(c)+s.slice(1));const f=s.charCodeAt(s.length-1),k=_e(i.after.charCodeAt(0),f,u);k.inside&&(s=s.slice(0,-1)+Te(f));const h=l.move(u+u);return a(),t.attentionEncodeSurroundingInfo={after:k.outside,before:p.outside},o+s+h}r(qt,"strong");function Ei(e,n,t){return t.options.strong||"*"}r(Ei,"strongPeek");function zi(e,n,t,i){return t.safe(e.value,i)}r(zi,"text$2");function _i(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}r(_i,"checkRuleRepetition");function Ai(e,n,t){const i=(jt(t)+(t.options.ruleSpaces?" ":"")).repeat(_i(t));return t.options.ruleSpaces?i.slice(0,-1):i}r(Ai,"thematicBreak$1");var Vt={blockquote:qr,break:ot,code:Kr,definition:Yr,emphasis:Mt,hardBreak:ot,heading:hi,html:Bt,image:Dt,imageReference:Pt,inlineCode:$t,link:Nt,linkReference:Ht,list:yi,listItem:Ii,paragraph:Si,root:Ci,strong:qt,text:zi,thematicBreak:Ai};function Ut(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)}r(Ut,"decodeNumericCharacterReference");var Li=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Mi(e){return e.replace(Li,Fi)}r(Mi,"decodeString");function Fi(e,n,t){if(n)return n;if(t.charCodeAt(0)===35){const i=t.charCodeAt(1),u=i===120||i===88;return Ut(t.slice(u?2:1),u?16:10)}return je(t)||e}r(Fi,"decode");var ct={}.hasOwnProperty;function Ri(e){const n={};let t=-1;for(;++t<e.length;)Bi(n,e[t]);return n}r(Ri,"combineExtensions");function Bi(e,n){let t;for(t in n){const i=(ct.call(e,t)?e[t]:void 0)||(e[t]={}),u=n[t];let a;if(u)for(a in u){ct.call(i,a)||(i[a]=[]);const l=u[a];Di(i[a],Array.isArray(l)?l:l?[l]:[])}}}r(Bi,"syntaxExtension");function Di(e,n){let t=-1;const i=[];for(;++t<n.length;)(n[t].add==="after"?e:i).push(n[t]);K(e,0,0,i)}r(Di,"constructs");function xe(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}r(xe,"normalizeIdentifier");var Pi={tokenize:$i};function $i(e){const n=e.attempt(this.parser.constructs.contentInitial,i,u);let t;return n;function i(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),D(e,n,"linePrefix")}function u(o){return e.enter("paragraph"),a(o)}function a(o){const s=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=s),t=s,l(o)}function l(o){if(o===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(o);return}return z(o)?(e.consume(o),e.exit("chunkText"),a):(e.consume(o),l)}}r($i,"initializeContent");var Oi={tokenize:Ni},ht={tokenize:Hi};function Ni(e){const n=this,t=[];let i=0,u,a,l;return o;function o(S){if(i<t.length){const F=t[i];return n.containerState=F[1],e.attempt(F[0].continuation,s,c)(S)}return c(S)}function s(S){if(i++,n.containerState._closeFlow){n.containerState._closeFlow=void 0,u&&_();const F=n.events.length;let M=F,y;for(;M--;)if(n.events[M][0]==="exit"&&n.events[M][1].type==="chunkFlow"){y=n.events[M][1].end;break}b(i);let R=F;for(;R<n.events.length;)n.events[R][1].end={...y},R++;return K(n.events,M+1,0,n.events.slice(F)),n.events.length=R,c(S)}return o(S)}function c(S){if(i===t.length){if(!u)return k(S);if(u.currentConstruct&&u.currentConstruct.concrete)return w(S);n.interrupt=!!(u.currentConstruct&&!u._gfmTableDynamicInterruptHack)}return n.containerState={},e.check(ht,p,f)(S)}function p(S){return u&&_(),b(i),k(S)}function f(S){return n.parser.lazy[n.now().line]=i!==t.length,l=n.now().offset,w(S)}function k(S){return n.containerState={},e.attempt(ht,h,w)(S)}function h(S){return i++,t.push([n.currentConstruct,n.containerState]),k(S)}function w(S){if(S===null){u&&_(),b(0),e.consume(S);return}return u=u||n.parser.flow(n.now()),e.enter("chunkFlow",{_tokenizer:u,contentType:"flow",previous:a}),v(S)}function v(S){if(S===null){C(e.exit("chunkFlow"),!0),b(0),e.consume(S);return}return z(S)?(e.consume(S),C(e.exit("chunkFlow")),i=0,n.interrupt=void 0,o):(e.consume(S),v)}function C(S,F){const M=n.sliceStream(S);if(F&&M.push(null),S.previous=a,a&&(a.next=S),a=S,u.defineSkip(S.start),u.write(M),n.parser.lazy[S.start.line]){let y=u.events.length;for(;y--;)if(u.events[y][1].start.offset<l&&(!u.events[y][1].end||u.events[y][1].end.offset>l))return;const R=n.events.length;let O=R,P,d;for(;O--;)if(n.events[O][0]==="exit"&&n.events[O][1].type==="chunkFlow"){if(P){d=n.events[O][1].end;break}P=!0}for(b(i),y=R;y<n.events.length;)n.events[y][1].end={...d},y++;K(n.events,O+1,0,n.events.slice(R)),n.events.length=y}}function b(S){let F=t.length;for(;F-- >S;){const M=t[F];n.containerState=M[1],M[0].exit.call(n,e)}t.length=S}function _(){u.write([null]),a=void 0,u=void 0,n.containerState._closeFlow=void 0}}r(Ni,"initializeDocument");function Hi(e,n,t){return D(e,e.attempt(this.parser.constructs.document,n,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}r(Hi,"tokenizeContainer");var He={name:"attention",resolveAll:ji,tokenize:qi};function ji(e,n){let t=-1,i,u,a,l,o,s,c,p;for(;++t<e.length;)if(e[t][0]==="enter"&&e[t][1].type==="attentionSequence"&&e[t][1]._close){for(i=t;i--;)if(e[i][0]==="exit"&&e[i][1].type==="attentionSequence"&&e[i][1]._open&&n.sliceSerialize(e[i][1]).charCodeAt(0)===n.sliceSerialize(e[t][1]).charCodeAt(0)){if((e[i][1]._close||e[t][1]._open)&&(e[t][1].end.offset-e[t][1].start.offset)%3&&!((e[i][1].end.offset-e[i][1].start.offset+e[t][1].end.offset-e[t][1].start.offset)%3))continue;s=e[i][1].end.offset-e[i][1].start.offset>1&&e[t][1].end.offset-e[t][1].start.offset>1?2:1;const f={...e[i][1].end},k={...e[t][1].start};ft(f,-s),ft(k,s),l={type:s>1?"strongSequence":"emphasisSequence",start:f,end:{...e[i][1].end}},o={type:s>1?"strongSequence":"emphasisSequence",start:{...e[t][1].start},end:k},a={type:s>1?"strongText":"emphasisText",start:{...e[i][1].end},end:{...e[t][1].start}},u={type:s>1?"strong":"emphasis",start:{...l.start},end:{...o.end}},e[i][1].end={...l.start},e[t][1].start={...o.end},c=[],e[i][1].end.offset-e[i][1].start.offset&&(c=Y(c,[["enter",e[i][1],n],["exit",e[i][1],n]])),c=Y(c,[["enter",u,n],["enter",l,n],["exit",l,n],["enter",a,n]]),c=Y(c,Ae(n.parser.constructs.insideSpan.null,e.slice(i+1,t),n)),c=Y(c,[["exit",a,n],["enter",o,n],["exit",o,n],["exit",u,n]]),e[t][1].end.offset-e[t][1].start.offset?(p=2,c=Y(c,[["enter",e[t][1],n],["exit",e[t][1],n]])):p=0,K(e,i-1,t-i+3,c),t=i+c.length-p-2;break}}for(t=-1;++t<e.length;)e[t][1].type==="attentionSequence"&&(e[t][1].type="data");return e}r(ji,"resolveAllAttention");function qi(e,n){const t=this.parser.constructs.attentionMarkers.null,i=this.previous,u=be(i);let a;return l;function l(s){return a=s,e.enter("attentionSequence"),o(s)}function o(s){if(s===a)return e.consume(s),o;const c=e.exit("attentionSequence"),p=be(s),f=!p||p===2&&u||t.includes(s),k=!u||u===2&&p||t.includes(i);return c._open=!!(a===42?f:f&&(u||!k)),c._close=!!(a===42?k:k&&(p||!f)),n(s)}}r(qi,"tokenizeAttention");function ft(e,n){e.column+=n,e.offset+=n,e._bufferIndex+=n}r(ft,"movePoint");var Vi={name:"autolink",tokenize:Ui};function Ui(e,n,t){let i=0;return u;function u(h){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),a}function a(h){return ee(h)?(e.consume(h),l):h===64?t(h):c(h)}function l(h){return h===43||h===45||h===46||J(h)?(i=1,o(h)):c(h)}function o(h){return h===58?(e.consume(h),i=0,s):(h===43||h===45||h===46||J(h))&&i++<32?(e.consume(h),o):(i=0,c(h))}function s(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||$e(h)?t(h):(e.consume(h),s)}function c(h){return h===64?(e.consume(h),p):_r(h)?(e.consume(h),c):t(h)}function p(h){return J(h)?f(h):t(h)}function f(h){return h===46?(e.consume(h),i=0,p):h===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),n):k(h)}function k(h){if((h===45||J(h))&&i++<63){const w=h===45?k:f;return e.consume(h),w}return t(h)}}r(Ui,"tokenizeAutolink");var Me={partial:!0,tokenize:Wi};function Wi(e,n,t){return i;function i(a){return L(a)?D(e,u,"linePrefix")(a):u(a)}function u(a){return a===null||z(a)?n(a):t(a)}}r(Wi,"tokenizeBlankLine");var Wt={continuation:{tokenize:Gi},exit:Ki,name:"blockQuote",tokenize:Qi};function Qi(e,n,t){const i=this;return u;function u(l){if(l===62){const o=i.containerState;return o.open||(e.enter("blockQuote",{_container:!0}),o.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(l),e.exit("blockQuoteMarker"),a}return t(l)}function a(l){return L(l)?(e.enter("blockQuotePrefixWhitespace"),e.consume(l),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),n):(e.exit("blockQuotePrefix"),n(l))}}r(Qi,"tokenizeBlockQuoteStart");function Gi(e,n,t){const i=this;return u;function u(l){return L(l)?D(e,a,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l):a(l)}function a(l){return e.attempt(Wt,n,t)(l)}}r(Gi,"tokenizeBlockQuoteContinuation");function Ki(e){e.exit("blockQuote")}r(Ki,"exit$1");var Qt={name:"characterEscape",tokenize:Xi};function Xi(e,n,t){return i;function i(a){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(a),e.exit("escapeMarker"),u}function u(a){return Lr(a)?(e.enter("characterEscapeValue"),e.consume(a),e.exit("characterEscapeValue"),e.exit("characterEscape"),n):t(a)}}r(Xi,"tokenizeCharacterEscape");var Gt={name:"characterReference",tokenize:Yi};function Yi(e,n,t){const i=this;let u=0,a,l;return o;function o(f){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),s}function s(f){return f===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(f),e.exit("characterReferenceMarkerNumeric"),c):(e.enter("characterReferenceValue"),a=31,l=J,p(f))}function c(f){return f===88||f===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(f),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,l=Ar,p):(e.enter("characterReferenceValue"),a=7,l=Oe,p(f))}function p(f){if(f===59&&u){const k=e.exit("characterReferenceValue");return l===J&&!je(i.sliceSerialize(k))?t(f):(e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),e.exit("characterReference"),n)}return l(f)&&u++<a?(e.consume(f),p):t(f)}}r(Yi,"tokenizeCharacterReference");var pt={partial:!0,tokenize:Ji},mt={concrete:!0,name:"codeFenced",tokenize:Zi};function Zi(e,n,t){const i=this,u={partial:!0,tokenize:M};let a=0,l=0,o;return s;function s(y){return c(y)}function c(y){const R=i.events[i.events.length-1];return a=R&&R[1].type==="linePrefix"?R[2].sliceSerialize(R[1],!0).length:0,o=y,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),p(y)}function p(y){return y===o?(l++,e.consume(y),p):l<3?t(y):(e.exit("codeFencedFenceSequence"),L(y)?D(e,f,"whitespace")(y):f(y))}function f(y){return y===null||z(y)?(e.exit("codeFencedFence"),i.interrupt?n(y):e.check(pt,v,F)(y)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),k(y))}function k(y){return y===null||z(y)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),f(y)):L(y)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),D(e,h,"whitespace")(y)):y===96&&y===o?t(y):(e.consume(y),k)}function h(y){return y===null||z(y)?f(y):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),w(y))}function w(y){return y===null||z(y)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),f(y)):y===96&&y===o?t(y):(e.consume(y),w)}function v(y){return e.attempt(u,F,C)(y)}function C(y){return e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),b}function b(y){return a>0&&L(y)?D(e,_,"linePrefix",a+1)(y):_(y)}function _(y){return y===null||z(y)?e.check(pt,v,F)(y):(e.enter("codeFlowValue"),S(y))}function S(y){return y===null||z(y)?(e.exit("codeFlowValue"),_(y)):(e.consume(y),S)}function F(y){return e.exit("codeFenced"),n(y)}function M(y,R,O){let P=0;return d;function d(B){return y.enter("lineEnding"),y.consume(B),y.exit("lineEnding"),T}function T(B){return y.enter("codeFencedFence"),L(B)?D(y,E,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(B):E(B)}function E(B){return B===o?(y.enter("codeFencedFenceSequence"),$(B)):O(B)}function $(B){return B===o?(P++,y.consume(B),$):P>=l?(y.exit("codeFencedFenceSequence"),L(B)?D(y,j,"whitespace")(B):j(B)):O(B)}function j(B){return B===null||z(B)?(y.exit("codeFencedFence"),R(B)):O(B)}}}r(Zi,"tokenizeCodeFenced");function Ji(e,n,t){const i=this;return u;function u(l){return l===null?t(l):(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),a)}function a(l){return i.parser.lazy[i.now().line]?t(l):n(l)}}r(Ji,"tokenizeNonLazyContinuation");var Fe={name:"codeIndented",tokenize:tu},eu={partial:!0,tokenize:nu};function tu(e,n,t){const i=this;return u;function u(c){return e.enter("codeIndented"),D(e,a,"linePrefix",5)(c)}function a(c){const p=i.events[i.events.length-1];return p&&p[1].type==="linePrefix"&&p[2].sliceSerialize(p[1],!0).length>=4?l(c):t(c)}function l(c){return c===null?s(c):z(c)?e.attempt(eu,l,s)(c):(e.enter("codeFlowValue"),o(c))}function o(c){return c===null||z(c)?(e.exit("codeFlowValue"),l(c)):(e.consume(c),o)}function s(c){return e.exit("codeIndented"),n(c)}}r(tu,"tokenizeCodeIndented");function nu(e,n,t){const i=this;return u;function u(l){return i.parser.lazy[i.now().line]?t(l):z(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),u):D(e,a,"linePrefix",5)(l)}function a(l){const o=i.events[i.events.length-1];return o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?n(l):z(l)?u(l):t(l)}}r(nu,"tokenizeFurtherStart");var ru={name:"codeText",previous:uu,resolve:iu,tokenize:au};function iu(e){let n=e.length-4,t=3,i,u;if((e[t][1].type==="lineEnding"||e[t][1].type==="space")&&(e[n][1].type==="lineEnding"||e[n][1].type==="space")){for(i=t;++i<n;)if(e[i][1].type==="codeTextData"){e[t][1].type="codeTextPadding",e[n][1].type="codeTextPadding",t+=2,n-=2;break}}for(i=t-1,n++;++i<=n;)u===void 0?i!==n&&e[i][1].type!=="lineEnding"&&(u=i):(i===n||e[i][1].type==="lineEnding")&&(e[u][1].type="codeTextData",i!==u+2&&(e[u][1].end=e[i-1][1].end,e.splice(u+2,i-u-2),n-=i-u-2,i=u+2),u=void 0);return e}r(iu,"resolveCodeText");function uu(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}r(uu,"previous");function au(e,n,t){let i=0,u,a;return l;function l(f){return e.enter("codeText"),e.enter("codeTextSequence"),o(f)}function o(f){return f===96?(e.consume(f),i++,o):(e.exit("codeTextSequence"),s(f))}function s(f){return f===null?t(f):f===32?(e.enter("space"),e.consume(f),e.exit("space"),s):f===96?(a=e.enter("codeTextSequence"),u=0,p(f)):z(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),s):(e.enter("codeTextData"),c(f))}function c(f){return f===null||f===32||f===96||z(f)?(e.exit("codeTextData"),s(f)):(e.consume(f),c)}function p(f){return f===96?(e.consume(f),u++,p):u===i?(e.exit("codeTextSequence"),e.exit("codeText"),n(f)):(a.type="codeTextData",c(f))}}r(au,"tokenizeCodeText");var lu=class{static{r(this,"SpliceBuffer")}constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,n){const t=n??Number.POSITIVE_INFINITY;return t<this.left.length?this.left.slice(e,t):e>this.left.length?this.right.slice(this.right.length-t+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-t+this.left.length).reverse())}splice(e,n,t){const i=n||0;this.setCursor(Math.trunc(e));const u=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return t&&Se(this.left,t),u.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),Se(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),Se(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&this.right.length===0||e<0&&this.left.length===0))if(e<this.left.length){const n=this.left.splice(e,Number.POSITIVE_INFINITY);Se(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);Se(this.left,n.reverse())}}};function Se(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}r(Se,"chunkedPush");function Kt(e){const n={};let t=-1,i,u,a,l,o,s,c;const p=new lu(e);for(;++t<p.length;){for(;t in n;)t=n[t];if(i=p.get(t),t&&i[1].type==="chunkFlow"&&p.get(t-1)[1].type==="listItemPrefix"&&(s=i[1]._tokenizer.events,a=0,a<s.length&&s[a][1].type==="lineEndingBlank"&&(a+=2),a<s.length&&s[a][1].type==="content"))for(;++a<s.length&&s[a][1].type!=="content";)s[a][1].type==="chunkText"&&(s[a][1]._isInFirstContentOfListItem=!0,a++);if(i[0]==="enter")i[1].contentType&&(Object.assign(n,ou(p,t)),t=n[t],c=!0);else if(i[1]._container){for(a=t,u=void 0;a--;)if(l=p.get(a),l[1].type==="lineEnding"||l[1].type==="lineEndingBlank")l[0]==="enter"&&(u&&(p.get(u)[1].type="lineEndingBlank"),l[1].type="lineEnding",u=a);else if(!(l[1].type==="linePrefix"||l[1].type==="listItemIndent"))break;u&&(i[1].end={...p.get(u)[1].start},o=p.slice(u,t),o.unshift(i),p.splice(u,t-u+1,o))}}return K(e,0,Number.POSITIVE_INFINITY,p.slice(0)),!c}r(Kt,"subtokenize");function ou(e,n){const t=e.get(n)[1],i=e.get(n)[2];let u=n-1;const a=[];let l=t._tokenizer;l||(l=i.parser[t.contentType](t.start),t._contentTypeTextTrailing&&(l._contentTypeTextTrailing=!0));const o=l.events,s=[],c={};let p,f,k=-1,h=t,w=0,v=0;const C=[v];for(;h;){for(;e.get(++u)[1]!==h;);a.push(u),h._tokenizer||(p=i.sliceStream(h),h.next||p.push(null),f&&l.defineSkip(h.start),h._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=!0),l.write(p),h._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=void 0)),f=h,h=h.next}for(h=t;++k<o.length;)o[k][0]==="exit"&&o[k-1][0]==="enter"&&o[k][1].type===o[k-1][1].type&&o[k][1].start.line!==o[k][1].end.line&&(v=k+1,C.push(v),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(l.events=[],h?(h._tokenizer=void 0,h.previous=void 0):C.pop(),k=C.length;k--;){const b=o.slice(C[k],C[k+1]),_=a.pop();s.push([_,_+b.length-1]),e.splice(_,2,b)}for(s.reverse(),k=-1;++k<s.length;)c[w+s[k][0]]=w+s[k][1],w+=s[k][1]-s[k][0]-1;return c}r(ou,"subcontent");var su={resolve:hu,tokenize:fu},cu={partial:!0,tokenize:pu};function hu(e){return Kt(e),e}r(hu,"resolveContent");function fu(e,n){let t;return i;function i(o){return e.enter("content"),t=e.enter("chunkContent",{contentType:"content"}),u(o)}function u(o){return o===null?a(o):z(o)?e.check(cu,l,a)(o):(e.consume(o),u)}function a(o){return e.exit("chunkContent"),e.exit("content"),n(o)}function l(o){return e.consume(o),e.exit("chunkContent"),t.next=e.enter("chunkContent",{contentType:"content",previous:t}),t=t.next,u}}r(fu,"tokenizeContent");function pu(e,n,t){const i=this;return u;function u(l){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),D(e,a,"linePrefix")}function a(l){if(l===null||z(l))return t(l);const o=i.events[i.events.length-1];return!i.parser.constructs.disable.null.includes("codeIndented")&&o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?n(l):e.interrupt(i.parser.constructs.flow,t,n)(l)}}r(pu,"tokenizeContinuation");function Xt(e,n,t,i,u,a,l,o,s){const c=s||Number.POSITIVE_INFINITY;let p=0;return f;function f(b){return b===60?(e.enter(i),e.enter(u),e.enter(a),e.consume(b),e.exit(a),k):b===null||b===32||b===41||$e(b)?t(b):(e.enter(i),e.enter(l),e.enter(o),e.enter("chunkString",{contentType:"string"}),v(b))}function k(b){return b===62?(e.enter(a),e.consume(b),e.exit(a),e.exit(u),e.exit(i),n):(e.enter(o),e.enter("chunkString",{contentType:"string"}),h(b))}function h(b){return b===62?(e.exit("chunkString"),e.exit(o),k(b)):b===null||b===60||z(b)?t(b):(e.consume(b),b===92?w:h)}function w(b){return b===60||b===62||b===92?(e.consume(b),h):h(b)}function v(b){return!p&&(b===null||b===41||U(b))?(e.exit("chunkString"),e.exit(o),e.exit(l),e.exit(i),n(b)):p<c&&b===40?(e.consume(b),p++,v):b===41?(e.consume(b),p--,v):b===null||b===32||b===40||$e(b)?t(b):(e.consume(b),b===92?C:v)}function C(b){return b===40||b===41||b===92?(e.consume(b),v):v(b)}}r(Xt,"factoryDestination");function Yt(e,n,t,i,u,a){const l=this;let o=0,s;return c;function c(h){return e.enter(i),e.enter(u),e.consume(h),e.exit(u),e.enter(a),p}function p(h){return o>999||h===null||h===91||h===93&&!s||h===94&&!o&&"_hiddenFootnoteSupport"in l.parser.constructs?t(h):h===93?(e.exit(a),e.enter(u),e.consume(h),e.exit(u),e.exit(i),n):z(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),p):(e.enter("chunkString",{contentType:"string"}),f(h))}function f(h){return h===null||h===91||h===93||z(h)||o++>999?(e.exit("chunkString"),p(h)):(e.consume(h),s||(s=!L(h)),h===92?k:f)}function k(h){return h===91||h===92||h===93?(e.consume(h),o++,f):f(h)}}r(Yt,"factoryLabel");function Zt(e,n,t,i,u,a){let l;return o;function o(k){return k===34||k===39||k===40?(e.enter(i),e.enter(u),e.consume(k),e.exit(u),l=k===40?41:k,s):t(k)}function s(k){return k===l?(e.enter(u),e.consume(k),e.exit(u),e.exit(i),n):(e.enter(a),c(k))}function c(k){return k===l?(e.exit(a),s(l)):k===null?t(k):z(k)?(e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),D(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),p(k))}function p(k){return k===l||k===null||z(k)?(e.exit("chunkString"),c(k)):(e.consume(k),k===92?f:p)}function f(k){return k===l||k===92?(e.consume(k),p):p(k)}}r(Zt,"factoryTitle");function Ce(e,n){let t;return i;function i(u){return z(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),t=!0,i):L(u)?D(e,i,t?"linePrefix":"lineSuffix")(u):n(u)}}r(Ce,"factoryWhitespace");var mu={name:"definition",tokenize:ku},gu={partial:!0,tokenize:du};function ku(e,n,t){const i=this;let u;return a;function a(h){return e.enter("definition"),l(h)}function l(h){return Yt.call(i,e,o,t,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function o(h){return u=xe(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),s):t(h)}function s(h){return U(h)?Ce(e,c)(h):c(h)}function c(h){return Xt(e,p,t,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function p(h){return e.attempt(gu,f,f)(h)}function f(h){return L(h)?D(e,k,"whitespace")(h):k(h)}function k(h){return h===null||z(h)?(e.exit("definition"),i.parser.defined.push(u),n(h)):t(h)}}r(ku,"tokenizeDefinition");function du(e,n,t){return i;function i(o){return U(o)?Ce(e,u)(o):t(o)}function u(o){return Zt(e,a,t,"definitionTitle","definitionTitleMarker","definitionTitleString")(o)}function a(o){return L(o)?D(e,l,"whitespace")(o):l(o)}function l(o){return o===null||z(o)?n(o):t(o)}}r(du,"tokenizeTitleBefore");var xu={name:"hardBreakEscape",tokenize:bu};function bu(e,n,t){return i;function i(a){return e.enter("hardBreakEscape"),e.consume(a),u}function u(a){return z(a)?(e.exit("hardBreakEscape"),n(a)):t(a)}}r(bu,"tokenizeHardBreakEscape");var yu={name:"headingAtx",resolve:wu,tokenize:Iu};function wu(e,n){let t=e.length-2,i=3,u,a;return e[i][1].type==="whitespace"&&(i+=2),t-2>i&&e[t][1].type==="whitespace"&&(t-=2),e[t][1].type==="atxHeadingSequence"&&(i===t-1||t-4>i&&e[t-2][1].type==="whitespace")&&(t-=i+1===t?2:4),t>i&&(u={type:"atxHeadingText",start:e[i][1].start,end:e[t][1].end},a={type:"chunkText",start:e[i][1].start,end:e[t][1].end,contentType:"text"},K(e,i,t-i+1,[["enter",u,n],["enter",a,n],["exit",a,n],["exit",u,n]])),e}r(wu,"resolveHeadingAtx");function Iu(e,n,t){let i=0;return u;function u(p){return e.enter("atxHeading"),a(p)}function a(p){return e.enter("atxHeadingSequence"),l(p)}function l(p){return p===35&&i++<6?(e.consume(p),l):p===null||U(p)?(e.exit("atxHeadingSequence"),o(p)):t(p)}function o(p){return p===35?(e.enter("atxHeadingSequence"),s(p)):p===null||z(p)?(e.exit("atxHeading"),n(p)):L(p)?D(e,o,"whitespace")(p):(e.enter("atxHeadingText"),c(p))}function s(p){return p===35?(e.consume(p),s):(e.exit("atxHeadingSequence"),o(p))}function c(p){return p===null||p===35||U(p)?(e.exit("atxHeadingText"),o(p)):(e.consume(p),c)}}r(Iu,"tokenizeHeadingAtx");var Su=["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"],gt=["pre","script","style","textarea"],vu={concrete:!0,name:"htmlFlow",resolveTo:Eu,tokenize:zu},Cu={partial:!0,tokenize:Au},Tu={partial:!0,tokenize:_u};function Eu(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}r(Eu,"resolveToHtmlFlow");function zu(e,n,t){const i=this;let u,a,l,o,s;return c;function c(g){return p(g)}function p(g){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(g),f}function f(g){return g===33?(e.consume(g),k):g===47?(e.consume(g),a=!0,v):g===63?(e.consume(g),u=3,i.interrupt?n:m):ee(g)?(e.consume(g),l=String.fromCharCode(g),C):t(g)}function k(g){return g===45?(e.consume(g),u=2,h):g===91?(e.consume(g),u=5,o=0,w):ee(g)?(e.consume(g),u=4,i.interrupt?n:m):t(g)}function h(g){return g===45?(e.consume(g),i.interrupt?n:m):t(g)}function w(g){return g==="CDATA[".charCodeAt(o++)?(e.consume(g),o===6?i.interrupt?n:E:w):t(g)}function v(g){return ee(g)?(e.consume(g),l=String.fromCharCode(g),C):t(g)}function C(g){if(g===null||g===47||g===62||U(g)){const le=g===47,fe=l.toLowerCase();return!le&&!a&>.includes(fe)?(u=1,i.interrupt?n(g):E(g)):Su.includes(l.toLowerCase())?(u=6,le?(e.consume(g),b):i.interrupt?n(g):E(g)):(u=7,i.interrupt&&!i.parser.lazy[i.now().line]?t(g):a?_(g):S(g))}return g===45||J(g)?(e.consume(g),l+=String.fromCharCode(g),C):t(g)}function b(g){return g===62?(e.consume(g),i.interrupt?n:E):t(g)}function _(g){return L(g)?(e.consume(g),_):d(g)}function S(g){return g===47?(e.consume(g),d):g===58||g===95||ee(g)?(e.consume(g),F):L(g)?(e.consume(g),S):d(g)}function F(g){return g===45||g===46||g===58||g===95||J(g)?(e.consume(g),F):M(g)}function M(g){return g===61?(e.consume(g),y):L(g)?(e.consume(g),M):S(g)}function y(g){return g===null||g===60||g===61||g===62||g===96?t(g):g===34||g===39?(e.consume(g),s=g,R):L(g)?(e.consume(g),y):O(g)}function R(g){return g===s?(e.consume(g),s=null,P):g===null||z(g)?t(g):(e.consume(g),R)}function O(g){return g===null||g===34||g===39||g===47||g===60||g===61||g===62||g===96||U(g)?M(g):(e.consume(g),O)}function P(g){return g===47||g===62||L(g)?S(g):t(g)}function d(g){return g===62?(e.consume(g),T):t(g)}function T(g){return g===null||z(g)?E(g):L(g)?(e.consume(g),T):t(g)}function E(g){return g===45&&u===2?(e.consume(g),W):g===60&&u===1?(e.consume(g),q):g===62&&u===4?(e.consume(g),ae):g===63&&u===3?(e.consume(g),m):g===93&&u===5?(e.consume(g),te):z(g)&&(u===6||u===7)?(e.exit("htmlFlowData"),e.check(Cu,ne,$)(g)):g===null||z(g)?(e.exit("htmlFlowData"),$(g)):(e.consume(g),E)}function $(g){return e.check(Tu,j,ne)(g)}function j(g){return e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),B}function B(g){return g===null||z(g)?$(g):(e.enter("htmlFlowData"),E(g))}function W(g){return g===45?(e.consume(g),m):E(g)}function q(g){return g===47?(e.consume(g),l="",Z):E(g)}function Z(g){if(g===62){const le=l.toLowerCase();return gt.includes(le)?(e.consume(g),ae):E(g)}return ee(g)&&l.length<8?(e.consume(g),l+=String.fromCharCode(g),Z):E(g)}function te(g){return g===93?(e.consume(g),m):E(g)}function m(g){return g===62?(e.consume(g),ae):g===45&&u===2?(e.consume(g),m):E(g)}function ae(g){return g===null||z(g)?(e.exit("htmlFlowData"),ne(g)):(e.consume(g),ae)}function ne(g){return e.exit("htmlFlow"),n(g)}}r(zu,"tokenizeHtmlFlow");function _u(e,n,t){const i=this;return u;function u(l){return z(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),a):t(l)}function a(l){return i.parser.lazy[i.now().line]?t(l):n(l)}}r(_u,"tokenizeNonLazyContinuationStart");function Au(e,n,t){return i;function i(u){return e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),e.attempt(Me,n,t)}}r(Au,"tokenizeBlankLineBefore");var Lu={name:"htmlText",tokenize:Mu};function Mu(e,n,t){const i=this;let u,a,l;return o;function o(m){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(m),s}function s(m){return m===33?(e.consume(m),c):m===47?(e.consume(m),M):m===63?(e.consume(m),S):ee(m)?(e.consume(m),O):t(m)}function c(m){return m===45?(e.consume(m),p):m===91?(e.consume(m),a=0,w):ee(m)?(e.consume(m),_):t(m)}function p(m){return m===45?(e.consume(m),h):t(m)}function f(m){return m===null?t(m):m===45?(e.consume(m),k):z(m)?(l=f,q(m)):(e.consume(m),f)}function k(m){return m===45?(e.consume(m),h):f(m)}function h(m){return m===62?W(m):m===45?k(m):f(m)}function w(m){return m==="CDATA[".charCodeAt(a++)?(e.consume(m),a===6?v:w):t(m)}function v(m){return m===null?t(m):m===93?(e.consume(m),C):z(m)?(l=v,q(m)):(e.consume(m),v)}function C(m){return m===93?(e.consume(m),b):v(m)}function b(m){return m===62?W(m):m===93?(e.consume(m),b):v(m)}function _(m){return m===null||m===62?W(m):z(m)?(l=_,q(m)):(e.consume(m),_)}function S(m){return m===null?t(m):m===63?(e.consume(m),F):z(m)?(l=S,q(m)):(e.consume(m),S)}function F(m){return m===62?W(m):S(m)}function M(m){return ee(m)?(e.consume(m),y):t(m)}function y(m){return m===45||J(m)?(e.consume(m),y):R(m)}function R(m){return z(m)?(l=R,q(m)):L(m)?(e.consume(m),R):W(m)}function O(m){return m===45||J(m)?(e.consume(m),O):m===47||m===62||U(m)?P(m):t(m)}function P(m){return m===47?(e.consume(m),W):m===58||m===95||ee(m)?(e.consume(m),d):z(m)?(l=P,q(m)):L(m)?(e.consume(m),P):W(m)}function d(m){return m===45||m===46||m===58||m===95||J(m)?(e.consume(m),d):T(m)}function T(m){return m===61?(e.consume(m),E):z(m)?(l=T,q(m)):L(m)?(e.consume(m),T):P(m)}function E(m){return m===null||m===60||m===61||m===62||m===96?t(m):m===34||m===39?(e.consume(m),u=m,$):z(m)?(l=E,q(m)):L(m)?(e.consume(m),E):(e.consume(m),j)}function $(m){return m===u?(e.consume(m),u=void 0,B):m===null?t(m):z(m)?(l=$,q(m)):(e.consume(m),$)}function j(m){return m===null||m===34||m===39||m===60||m===61||m===96?t(m):m===47||m===62||U(m)?P(m):(e.consume(m),j)}function B(m){return m===47||m===62||U(m)?P(m):t(m)}function W(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"),Z}function Z(m){return L(m)?D(e,te,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(m):te(m)}function te(m){return e.enter("htmlTextData"),l(m)}}r(Mu,"tokenizeHtmlText");var Qe={name:"labelEnd",resolveAll:Du,resolveTo:Pu,tokenize:$u},Fu={tokenize:Ou},Ru={tokenize:Nu},Bu={tokenize:Hu};function Du(e){let n=-1;const t=[];for(;++n<e.length;){const i=e[n][1];if(t.push(e[n]),i.type==="labelImage"||i.type==="labelLink"||i.type==="labelEnd"){const u=i.type==="labelImage"?4:2;i.type="data",n+=u}}return e.length!==t.length&&K(e,0,e.length,t),e}r(Du,"resolveAllLabelEnd");function Pu(e,n){let t=e.length,i=0,u,a,l,o;for(;t--;)if(u=e[t][1],a){if(u.type==="link"||u.type==="labelLink"&&u._inactive)break;e[t][0]==="enter"&&u.type==="labelLink"&&(u._inactive=!0)}else if(l){if(e[t][0]==="enter"&&(u.type==="labelImage"||u.type==="labelLink")&&!u._balanced&&(a=t,u.type!=="labelLink")){i=2;break}}else u.type==="labelEnd"&&(l=t);const s={type:e[a][1].type==="labelLink"?"link":"image",start:{...e[a][1].start},end:{...e[e.length-1][1].end}},c={type:"label",start:{...e[a][1].start},end:{...e[l][1].end}},p={type:"labelText",start:{...e[a+i+2][1].end},end:{...e[l-2][1].start}};return o=[["enter",s,n],["enter",c,n]],o=Y(o,e.slice(a+1,a+i+3)),o=Y(o,[["enter",p,n]]),o=Y(o,Ae(n.parser.constructs.insideSpan.null,e.slice(a+i+4,l-3),n)),o=Y(o,[["exit",p,n],e[l-2],e[l-1],["exit",c,n]]),o=Y(o,e.slice(l+1)),o=Y(o,[["exit",s,n]]),K(e,a,e.length,o),e}r(Pu,"resolveToLabelEnd");function $u(e,n,t){const i=this;let u=i.events.length,a,l;for(;u--;)if((i.events[u][1].type==="labelImage"||i.events[u][1].type==="labelLink")&&!i.events[u][1]._balanced){a=i.events[u][1];break}return o;function o(k){return a?a._inactive?f(k):(l=i.parser.defined.includes(xe(i.sliceSerialize({start:a.end,end:i.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(k),e.exit("labelMarker"),e.exit("labelEnd"),s):t(k)}function s(k){return k===40?e.attempt(Fu,p,l?p:f)(k):k===91?e.attempt(Ru,p,l?c:f)(k):l?p(k):f(k)}function c(k){return e.attempt(Bu,p,f)(k)}function p(k){return n(k)}function f(k){return a._balanced=!0,t(k)}}r($u,"tokenizeLabelEnd");function Ou(e,n,t){return i;function i(f){return e.enter("resource"),e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),u}function u(f){return U(f)?Ce(e,a)(f):a(f)}function a(f){return f===41?p(f):Xt(e,l,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function l(f){return U(f)?Ce(e,s)(f):p(f)}function o(f){return t(f)}function s(f){return f===34||f===39||f===40?Zt(e,c,t,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):p(f)}function c(f){return U(f)?Ce(e,p)(f):p(f)}function p(f){return f===41?(e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),e.exit("resource"),n):t(f)}}r(Ou,"tokenizeResource");function Nu(e,n,t){const i=this;return u;function u(o){return Yt.call(i,e,a,l,"reference","referenceMarker","referenceString")(o)}function a(o){return i.parser.defined.includes(xe(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?n(o):t(o)}function l(o){return t(o)}}r(Nu,"tokenizeReferenceFull");function Hu(e,n,t){return i;function i(a){return e.enter("reference"),e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),u}function u(a){return a===93?(e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),e.exit("reference"),n):t(a)}}r(Hu,"tokenizeReferenceCollapsed");var ju={name:"labelStartImage",resolveAll:Qe.resolveAll,tokenize:qu};function qu(e,n,t){const i=this;return u;function u(o){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(o),e.exit("labelImageMarker"),a}function a(o){return o===91?(e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelImage"),l):t(o)}function l(o){return o===94&&"_hiddenFootnoteSupport"in i.parser.constructs?t(o):n(o)}}r(qu,"tokenizeLabelStartImage");var Vu={name:"labelStartLink",resolveAll:Qe.resolveAll,tokenize:Uu};function Uu(e,n,t){const i=this;return u;function u(l){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelLink"),a}function a(l){return l===94&&"_hiddenFootnoteSupport"in i.parser.constructs?t(l):n(l)}}r(Uu,"tokenizeLabelStartLink");var Re={name:"lineEnding",tokenize:Wu};function Wu(e,n){return t;function t(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),D(e,n,"linePrefix")}}r(Wu,"tokenizeLineEnding");var ze={name:"thematicBreak",tokenize:Qu};function Qu(e,n,t){let i=0,u;return a;function a(c){return e.enter("thematicBreak"),l(c)}function l(c){return u=c,o(c)}function o(c){return c===u?(e.enter("thematicBreakSequence"),s(c)):i>=3&&(c===null||z(c))?(e.exit("thematicBreak"),n(c)):t(c)}function s(c){return c===u?(e.consume(c),i++,s):(e.exit("thematicBreakSequence"),L(c)?D(e,o,"whitespace")(c):o(c))}}r(Qu,"tokenizeThematicBreak");var Q={continuation:{tokenize:Yu},exit:Ju,name:"list",tokenize:Xu},Gu={partial:!0,tokenize:ea},Ku={partial:!0,tokenize:Zu};function Xu(e,n,t){const i=this,u=i.events[i.events.length-1];let a=u&&u[1].type==="linePrefix"?u[2].sliceSerialize(u[1],!0).length:0,l=0;return o;function o(h){const w=i.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(w==="listUnordered"?!i.containerState.marker||h===i.containerState.marker:Oe(h)){if(i.containerState.type||(i.containerState.type=w,e.enter(w,{_container:!0})),w==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(ze,t,c)(h):c(h);if(!i.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(h)}return t(h)}function s(h){return Oe(h)&&++l<10?(e.consume(h),s):(!i.interrupt||l<2)&&(i.containerState.marker?h===i.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),c(h)):t(h)}function c(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||h,e.check(Me,i.interrupt?t:p,e.attempt(Gu,k,f))}function p(h){return i.containerState.initialBlankLine=!0,a++,k(h)}function f(h){return L(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),k):t(h)}function k(h){return i.containerState.size=a+i.sliceSerialize(e.exit("listItemPrefix"),!0).length,n(h)}}r(Xu,"tokenizeListStart");function Yu(e,n,t){const i=this;return i.containerState._closeFlow=void 0,e.check(Me,u,a);function u(o){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,D(e,n,"listItemIndent",i.containerState.size+1)(o)}r(u,"onBlank");function a(o){return i.containerState.furtherBlankLines||!L(o)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,l(o)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,e.attempt(Ku,n,l)(o))}r(a,"notBlank");function l(o){return i.containerState._closeFlow=!0,i.interrupt=void 0,D(e,e.attempt(Q,n,t),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}r(l,"notInCurrentItem")}r(Yu,"tokenizeListContinuation");function Zu(e,n,t){const i=this;return D(e,u,"listItemIndent",i.containerState.size+1);function u(a){const l=i.events[i.events.length-1];return l&&l[1].type==="listItemIndent"&&l[2].sliceSerialize(l[1],!0).length===i.containerState.size?n(a):t(a)}}r(Zu,"tokenizeIndent");function Ju(e){e.exit(this.containerState.type)}r(Ju,"tokenizeListEnd");function ea(e,n,t){const i=this;return D(e,u,"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function u(a){const l=i.events[i.events.length-1];return!L(a)&&l&&l[1].type==="listItemPrefixWhitespace"?n(a):t(a)}}r(ea,"tokenizeListItemPrefixWhitespace");var kt={name:"setextUnderline",resolveTo:ta,tokenize:na};function ta(e,n){let t=e.length,i,u,a;for(;t--;)if(e[t][0]==="enter"){if(e[t][1].type==="content"){i=t;break}e[t][1].type==="paragraph"&&(u=t)}else e[t][1].type==="content"&&e.splice(t,1),!a&&e[t][1].type==="definition"&&(a=t);const l={type:"setextHeading",start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[u][1].type="setextHeadingText",a?(e.splice(u,0,["enter",l,n]),e.splice(a+1,0,["exit",e[i][1],n]),e[i][1].end={...e[a][1].end}):e[i][1]=l,e.push(["exit",l,n]),e}r(ta,"resolveToSetextUnderline");function na(e,n,t){const i=this;let u;return a;function a(c){let p=i.events.length,f;for(;p--;)if(i.events[p][1].type!=="lineEnding"&&i.events[p][1].type!=="linePrefix"&&i.events[p][1].type!=="content"){f=i.events[p][1].type==="paragraph";break}return!i.parser.lazy[i.now().line]&&(i.interrupt||f)?(e.enter("setextHeadingLine"),u=c,l(c)):t(c)}function l(c){return e.enter("setextHeadingLineSequence"),o(c)}function o(c){return c===u?(e.consume(c),o):(e.exit("setextHeadingLineSequence"),L(c)?D(e,s,"lineSuffix")(c):s(c))}function s(c){return c===null||z(c)?(e.exit("setextHeadingLine"),n(c)):t(c)}}r(na,"tokenizeSetextUnderline");var ra={tokenize:ia};function ia(e){const n=this,t=e.attempt(Me,i,e.attempt(this.parser.constructs.flowInitial,u,D(e,e.attempt(this.parser.constructs.flow,u,e.attempt(su,u)),"linePrefix")));return t;function i(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),n.currentConstruct=void 0,t}function u(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),n.currentConstruct=void 0,t}}r(ia,"initializeFlow");var ua={resolveAll:en()},aa=Jt("string"),la=Jt("text");function Jt(e){return{resolveAll:en(e==="text"?oa:void 0),tokenize:n};function n(t){const i=this,u=this.parser.constructs[e],a=t.attempt(u,l,o);return l;function l(p){return c(p)?a(p):o(p)}function o(p){if(p===null){t.consume(p);return}return t.enter("data"),t.consume(p),s}function s(p){return c(p)?(t.exit("data"),a(p)):(t.consume(p),s)}function c(p){if(p===null)return!0;const f=u[p];let k=-1;if(f)for(;++k<f.length;){const h=f[k];if(!h.previous||h.previous.call(i,i.previous))return!0}return!1}}}r(Jt,"initializeFactory");function en(e){return n;function n(t,i){let u=-1,a;for(;++u<=t.length;)a===void 0?t[u]&&t[u][1].type==="data"&&(a=u,u++):(!t[u]||t[u][1].type!=="data")&&(u!==a+2&&(t[a][1].end=t[u-1][1].end,t.splice(a+2,u-a-2),u=a+2),a=void 0);return e?e(t,i):t}}r(en,"createResolver");function oa(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 i=e[t-1][1],u=n.sliceStream(i);let a=u.length,l=-1,o=0,s;for(;a--;){const c=u[a];if(typeof c=="string"){for(l=c.length;c.charCodeAt(l-1)===32;)o++,l--;if(l)break;l=-1}else if(c===-2)s=!0,o++;else if(c!==-1){a++;break}}if(n._contentTypeTextTrailing&&t===e.length&&(o=0),o){const c={type:t===e.length||s||o<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:a?l:i.start._bufferIndex+l,_index:i.start._index+a,line:i.end.line,column:i.end.column-o,offset:i.end.offset-o},end:{...i.end}};i.end={...c.start},i.start.offset===i.end.offset?Object.assign(i,c):(e.splice(t,0,["enter",c,n],["exit",c,n]),t+=2)}t++}return e}r(oa,"resolveAllLineSuffixes");var sa=gn({attentionMarkers:r(()=>da,"attentionMarkers"),contentInitial:r(()=>ha,"contentInitial"),disable:r(()=>xa,"disable"),document:r(()=>ca,"document"),flow:r(()=>pa,"flow"),flowInitial:r(()=>fa,"flowInitial"),insideSpan:r(()=>ka,"insideSpan"),string:r(()=>ma,"string"),text:r(()=>ga,"text")}),ca={42:Q,43:Q,45:Q,48:Q,49:Q,50:Q,51:Q,52:Q,53:Q,54:Q,55:Q,56:Q,57:Q,62:Wt},ha={91:mu},fa={[-2]:Fe,[-1]:Fe,32:Fe},pa={35:yu,42:ze,45:[kt,ze],60:vu,61:kt,95:ze,96:mt,126:mt},ma={38:Gt,92:Qt},ga={[-5]:Re,[-4]:Re,[-3]:Re,33:ju,38:Gt,42:He,60:[Vi,Lu],91:Vu,92:[xu,Qt],93:Qe,95:He,96:ru},ka={null:[He,ua]},da={null:[42,95]},xa={null:[]};function ba(e,n,t){let i={_bufferIndex:-1,_index:0,line:t&&t.line||1,column:t&&t.column||1,offset:t&&t.offset||0};const u={},a=[];let l=[],o=[];const s={attempt:R(M),check:R(y),consume:_,enter:S,exit:F,interrupt:R(y,{interrupt:!0})},c={code:null,containerState:{},defineSkip:v,events:[],now:w,parser:e,previous:null,sliceSerialize:k,sliceStream:h,write:f};let p=n.tokenize.call(c,s);return n.resolveAll&&a.push(n),c;function f(T){return l=Y(l,T),C(),l[l.length-1]!==null?[]:(O(n,0),c.events=Ae(a,c.events,c),c.events)}r(f,"write");function k(T,E){return wa(h(T),E)}r(k,"sliceSerialize");function h(T){return ya(l,T)}r(h,"sliceStream");function w(){const{_bufferIndex:T,_index:E,line:$,column:j,offset:B}=i;return{_bufferIndex:T,_index:E,line:$,column:j,offset:B}}r(w,"now");function v(T){u[T.line]=T.column,d()}r(v,"defineSkip");function C(){let T;for(;i._index<l.length;){const E=l[i._index];if(typeof E=="string")for(T=i._index,i._bufferIndex<0&&(i._bufferIndex=0);i._index===T&&i._bufferIndex<E.length;)b(E.charCodeAt(i._bufferIndex));else b(E)}}r(C,"main");function b(T){p=p(T)}r(b,"go");function _(T){z(T)?(i.line++,i.column=1,i.offset+=T===-3?2:1,d()):T!==-1&&(i.column++,i.offset++),i._bufferIndex<0?i._index++:(i._bufferIndex++,i._bufferIndex===l[i._index].length&&(i._bufferIndex=-1,i._index++)),c.previous=T}r(_,"consume");function S(T,E){const $=E||{};return $.type=T,$.start=w(),c.events.push(["enter",$,c]),o.push($),$}r(S,"enter");function F(T){const E=o.pop();return E.end=w(),c.events.push(["exit",E,c]),E}r(F,"exit");function M(T,E){O(T,E.from)}r(M,"onsuccessfulconstruct");function y(T,E){E.restore()}r(y,"onsuccessfulcheck");function R(T,E){return $;function $(j,B,W){let q,Z,te,m;return Array.isArray(j)?ne(j):"tokenize"in j?ne([j]):ae(j);function ae(V){return ye;function ye(re){const pe=re!==null&&V[re],me=re!==null&&V.null;return ne([...Array.isArray(pe)?pe:pe?[pe]:[],...Array.isArray(me)?me:me?[me]:[]])(re)}}function ne(V){return q=V,Z=0,V.length===0?W:g(V[Z])}function g(V){return ye;function ye(re){return m=P(),te=V,V.partial||(c.currentConstruct=V),V.name&&c.parser.constructs.disable.null.includes(V.name)?fe(re):V.tokenize.call(E?Object.assign(Object.create(c),E):c,s,le,fe)(re)}}function le(V){return T(te,m),B}function fe(V){return m.restore(),++Z<q.length?g(q[Z]):W}}}r(R,"constructFactory");function O(T,E){T.resolveAll&&!a.includes(T)&&a.push(T),T.resolve&&K(c.events,E,c.events.length-E,T.resolve(c.events.slice(E),c)),T.resolveTo&&(c.events=T.resolveTo(c.events,c))}r(O,"addResult");function P(){const T=w(),E=c.previous,$=c.currentConstruct,j=c.events.length,B=Array.from(o);return{from:j,restore:W};function W(){i=T,c.previous=E,c.currentConstruct=$,c.events.length=j,o=B,d()}}r(P,"store");function d(){i.line in u&&i.column<2&&(i.column=u[i.line],i.offset+=u[i.line]-1)}r(d,"accountForPotentialSkip")}r(ba,"createTokenizer");function ya(e,n){const t=n.start._index,i=n.start._bufferIndex,u=n.end._index,a=n.end._bufferIndex;let l;if(t===u)l=[e[t].slice(i,a)];else{if(l=e.slice(t,u),i>-1){const o=l[0];typeof o=="string"?l[0]=o.slice(i):l.shift()}a>0&&l.push(e[u].slice(0,a))}return l}r(ya,"sliceChunks");function wa(e,n){let t=-1;const i=[];let u;for(;++t<e.length;){const a=e[t];let l;if(typeof a=="string")l=a;else switch(a){case-5:l="\r";break;case-4:l=`
|
|
12
|
+
`,...a.current()});return/^[\t ]/.test(c)&&(c=Ee(c.charCodeAt(0))+c.slice(1)),c=c?l+" "+c:l,t.options.closeAtx&&(c+=" "+l),s(),o(),c}r(fi,"heading");Dt.peek=pi;function Dt(e){return e.value||""}r(Dt,"html");function pi(){return"<"}r(pi,"htmlPeek");Pt.peek=mi;function Pt(e,n,t,i){const u=qe(t),a=u==='"'?"Quote":"Apostrophe",l=t.enter("image");let o=t.enter("label");const s=t.createTracker(i);let c=s.move("![");return c+=s.move(t.safe(e.alt,{before:c,after:"]",...s.current()})),c+=s.move("]("),o(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(o=t.enter("destinationLiteral"),c+=s.move("<"),c+=s.move(t.safe(e.url,{before:c,after:">",...s.current()})),c+=s.move(">")):(o=t.enter("destinationRaw"),c+=s.move(t.safe(e.url,{before:c,after:e.title?" ":")",...s.current()}))),o(),e.title&&(o=t.enter(`title${a}`),c+=s.move(" "+u),c+=s.move(t.safe(e.title,{before:c,after:u,...s.current()})),c+=s.move(u),o()),c+=s.move(")"),l(),c}r(Pt,"image");function mi(){return"!"}r(mi,"imagePeek");$t.peek=gi;function $t(e,n,t,i){const u=e.referenceType,a=t.enter("imageReference");let l=t.enter("label");const o=t.createTracker(i);let s=o.move("![");const c=t.safe(e.alt,{before:s,after:"]",...o.current()});s+=o.move(c+"]["),l();const p=t.stack;t.stack=[],l=t.enter("reference");const f=t.safe(t.associationId(e),{before:s,after:"]",...o.current()});return l(),t.stack=p,a(),u==="full"||!c||c!==f?s+=o.move(f+"]"):u==="shortcut"?s=s.slice(0,-1):s+=o.move("]"),s}r($t,"imageReference");function gi(){return"!"}r(gi,"imageReferencePeek");Ot.peek=ki;function Ot(e,n,t){let i=e.value||"",u="`",a=-1;for(;new RegExp("(^|[^`])"+u+"([^`]|$)").test(i);)u+="`";for(/[^ \r\n]/.test(i)&&(/^[ \r\n]/.test(i)&&/[ \r\n]$/.test(i)||/^`|`$/.test(i))&&(i=" "+i+" ");++a<t.unsafe.length;){const l=t.unsafe[a],o=t.compilePattern(l);let s;if(l.atBreak)for(;s=o.exec(i);){let c=s.index;i.charCodeAt(c)===10&&i.charCodeAt(c-1)===13&&c--,i=i.slice(0,c)+" "+i.slice(s.index+1)}}return u+i+u}r(Ot,"inlineCode");function ki(){return"`"}r(ki,"inlineCodePeek");function Nt(e,n){const t=Ue(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))}r(Nt,"formatLinkAsAutolink");Ht.peek=di;function Ht(e,n,t,i){const u=qe(t),a=u==='"'?"Quote":"Apostrophe",l=t.createTracker(i);let o,s;if(Nt(e,t)){const p=t.stack;t.stack=[],o=t.enter("autolink");let f=l.move("<");return f+=l.move(t.containerPhrasing(e,{before:f,after:">",...l.current()})),f+=l.move(">"),o(),t.stack=p,f}o=t.enter("link"),s=t.enter("label");let c=l.move("[");return c+=l.move(t.containerPhrasing(e,{before:c,after:"](",...l.current()})),c+=l.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=t.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(t.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(s=t.enter("destinationRaw"),c+=l.move(t.safe(e.url,{before:c,after:e.title?" ":")",...l.current()}))),s(),e.title&&(s=t.enter(`title${a}`),c+=l.move(" "+u),c+=l.move(t.safe(e.title,{before:c,after:u,...l.current()})),c+=l.move(u),s()),c+=l.move(")"),o(),c}r(Ht,"link");function di(e,n,t){return Nt(e,t)?"<":"["}r(di,"linkPeek");jt.peek=xi;function jt(e,n,t,i){const u=e.referenceType,a=t.enter("linkReference");let l=t.enter("label");const o=t.createTracker(i);let s=o.move("[");const c=t.containerPhrasing(e,{before:s,after:"]",...o.current()});s+=o.move(c+"]["),l();const p=t.stack;t.stack=[],l=t.enter("reference");const f=t.safe(t.associationId(e),{before:s,after:"]",...o.current()});return l(),t.stack=p,a(),u==="full"||!c||c!==f?s+=o.move(f+"]"):u==="shortcut"?s=s.slice(0,-1):s+=o.move("]"),s}r(jt,"linkReference");function xi(){return"["}r(xi,"linkReferencePeek");function We(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}r(We,"checkBullet");function bi(e){const n=We(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}r(bi,"checkBulletOther");function yi(e){const n=e.options.bulletOrdered||".";if(n!=="."&&n!==")")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOrdered`, expected `.` or `)`");return n}r(yi,"checkBulletOrdered");function qt(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}r(qt,"checkRule");function wi(e,n,t,i){const u=t.enter("list"),a=t.bulletCurrent;let l=e.ordered?yi(t):We(t);const o=e.ordered?l==="."?")":".":bi(t);let s=n&&t.bulletLastUsed?l===t.bulletLastUsed:!1;if(!e.ordered){const p=e.children?e.children[0]:void 0;if((l==="*"||l==="-")&&p&&(!p.children||!p.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&&(s=!0),qt(t)===l&&p){let f=-1;for(;++f<e.children.length;){const k=e.children[f];if(k&&k.type==="listItem"&&k.children&&k.children[0]&&k.children[0].type==="thematicBreak"){s=!0;break}}}}s&&(l=o),t.bulletCurrent=l;const c=t.containerFlow(e,i);return t.bulletLastUsed=l,t.bulletCurrent=a,u(),c}r(wi,"list$1");function Ii(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}r(Ii,"checkListItemIndent");function Si(e,n,t,i){const u=Ii(t);let a=t.bulletCurrent||We(t);n&&n.type==="list"&&n.ordered&&(a=(typeof n.start=="number"&&n.start>-1?n.start:1)+(t.options.incrementListMarker===!1?0:n.children.indexOf(e))+a);let l=a.length+1;(u==="tab"||u==="mixed"&&(n&&n.type==="list"&&n.spread||e.spread))&&(l=Math.ceil(l/4)*4);const o=t.createTracker(i);o.move(a+" ".repeat(l-a.length)),o.shift(l);const s=t.enter("listItem"),c=t.indentLines(t.containerFlow(e,o.current()),p);return s(),c;function p(f,k,h){return k?(h?"":" ".repeat(l))+f:(h?a:a+" ".repeat(l-a.length))+f}r(p,"map")}r(Si,"listItem");function vi(e,n,t,i){const u=t.enter("paragraph"),a=t.enter("phrasing"),l=t.containerPhrasing(e,i);return a(),u(),l}r(vi,"paragraph");var Ci=Ve(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Ei(e,n,t,i){return(e.children.some(function(u){return Ci(u)})?t.containerPhrasing:t.containerFlow).call(t,e,i)}r(Ei,"root");function Ti(e){const n=e.options.strong||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize strong with `"+n+"` for `options.strong`, expected `*`, or `_`");return n}r(Ti,"checkStrong");Vt.peek=zi;function Vt(e,n,t,i){const u=Ti(t),a=t.enter("strong"),l=t.createTracker(i),o=l.move(u+u);let s=l.move(t.containerPhrasing(e,{after:u,before:o,...l.current()}));const c=s.charCodeAt(0),p=_e(i.before.charCodeAt(i.before.length-1),c,u);p.inside&&(s=Ee(c)+s.slice(1));const f=s.charCodeAt(s.length-1),k=_e(i.after.charCodeAt(0),f,u);k.inside&&(s=s.slice(0,-1)+Ee(f));const h=l.move(u+u);return a(),t.attentionEncodeSurroundingInfo={after:k.outside,before:p.outside},o+s+h}r(Vt,"strong");function zi(e,n,t){return t.options.strong||"*"}r(zi,"strongPeek");function _i(e,n,t,i){return t.safe(e.value,i)}r(_i,"text$2");function Ai(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}r(Ai,"checkRuleRepetition");function Li(e,n,t){const i=(qt(t)+(t.options.ruleSpaces?" ":"")).repeat(Ai(t));return t.options.ruleSpaces?i.slice(0,-1):i}r(Li,"thematicBreak$1");var Ut={blockquote:Vr,break:ot,code:Xr,definition:Zr,emphasis:Ft,hardBreak:ot,heading:fi,html:Dt,image:Pt,imageReference:$t,inlineCode:Ot,link:Ht,linkReference:jt,list:wi,listItem:Si,paragraph:vi,root:Ei,strong:Vt,text:_i,thematicBreak:Li};function Wt(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)}r(Wt,"decodeNumericCharacterReference");var Mi=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Fi(e){return e.replace(Mi,Ri)}r(Fi,"decodeString");function Ri(e,n,t){if(n)return n;if(t.charCodeAt(0)===35){const i=t.charCodeAt(1),u=i===120||i===88;return Wt(t.slice(u?2:1),u?16:10)}return je(t)||e}r(Ri,"decode");var ct={}.hasOwnProperty;function Bi(e){const n={};let t=-1;for(;++t<e.length;)Di(n,e[t]);return n}r(Bi,"combineExtensions");function Di(e,n){let t;for(t in n){const i=(ct.call(e,t)?e[t]:void 0)||(e[t]={}),u=n[t];let a;if(u)for(a in u){ct.call(i,a)||(i[a]=[]);const l=u[a];Pi(i[a],Array.isArray(l)?l:l?[l]:[])}}}r(Di,"syntaxExtension");function Pi(e,n){let t=-1;const i=[];for(;++t<n.length;)(n[t].add==="after"?e:i).push(n[t]);K(e,0,0,i)}r(Pi,"constructs");function xe(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}r(xe,"normalizeIdentifier");var $i={tokenize:Oi};function Oi(e){const n=e.attempt(this.parser.constructs.contentInitial,i,u);let t;return n;function i(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),D(e,n,"linePrefix")}function u(o){return e.enter("paragraph"),a(o)}function a(o){const s=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=s),t=s,l(o)}function l(o){if(o===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(o);return}return z(o)?(e.consume(o),e.exit("chunkText"),a):(e.consume(o),l)}}r(Oi,"initializeContent");var Ni={tokenize:Hi},ht={tokenize:ji};function Hi(e){const n=this,t=[];let i=0,u,a,l;return o;function o(S){if(i<t.length){const F=t[i];return n.containerState=F[1],e.attempt(F[0].continuation,s,c)(S)}return c(S)}function s(S){if(i++,n.containerState._closeFlow){n.containerState._closeFlow=void 0,u&&_();const F=n.events.length;let M=F,y;for(;M--;)if(n.events[M][0]==="exit"&&n.events[M][1].type==="chunkFlow"){y=n.events[M][1].end;break}b(i);let R=F;for(;R<n.events.length;)n.events[R][1].end={...y},R++;return K(n.events,M+1,0,n.events.slice(F)),n.events.length=R,c(S)}return o(S)}function c(S){if(i===t.length){if(!u)return k(S);if(u.currentConstruct&&u.currentConstruct.concrete)return w(S);n.interrupt=!!(u.currentConstruct&&!u._gfmTableDynamicInterruptHack)}return n.containerState={},e.check(ht,p,f)(S)}function p(S){return u&&_(),b(i),k(S)}function f(S){return n.parser.lazy[n.now().line]=i!==t.length,l=n.now().offset,w(S)}function k(S){return n.containerState={},e.attempt(ht,h,w)(S)}function h(S){return i++,t.push([n.currentConstruct,n.containerState]),k(S)}function w(S){if(S===null){u&&_(),b(0),e.consume(S);return}return u=u||n.parser.flow(n.now()),e.enter("chunkFlow",{_tokenizer:u,contentType:"flow",previous:a}),v(S)}function v(S){if(S===null){C(e.exit("chunkFlow"),!0),b(0),e.consume(S);return}return z(S)?(e.consume(S),C(e.exit("chunkFlow")),i=0,n.interrupt=void 0,o):(e.consume(S),v)}function C(S,F){const M=n.sliceStream(S);if(F&&M.push(null),S.previous=a,a&&(a.next=S),a=S,u.defineSkip(S.start),u.write(M),n.parser.lazy[S.start.line]){let y=u.events.length;for(;y--;)if(u.events[y][1].start.offset<l&&(!u.events[y][1].end||u.events[y][1].end.offset>l))return;const R=n.events.length;let O=R,P,d;for(;O--;)if(n.events[O][0]==="exit"&&n.events[O][1].type==="chunkFlow"){if(P){d=n.events[O][1].end;break}P=!0}for(b(i),y=R;y<n.events.length;)n.events[y][1].end={...d},y++;K(n.events,O+1,0,n.events.slice(R)),n.events.length=y}}function b(S){let F=t.length;for(;F-- >S;){const M=t[F];n.containerState=M[1],M[0].exit.call(n,e)}t.length=S}function _(){u.write([null]),a=void 0,u=void 0,n.containerState._closeFlow=void 0}}r(Hi,"initializeDocument");function ji(e,n,t){return D(e,e.attempt(this.parser.constructs.document,n,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}r(ji,"tokenizeContainer");var He={name:"attention",resolveAll:qi,tokenize:Vi};function qi(e,n){let t=-1,i,u,a,l,o,s,c,p;for(;++t<e.length;)if(e[t][0]==="enter"&&e[t][1].type==="attentionSequence"&&e[t][1]._close){for(i=t;i--;)if(e[i][0]==="exit"&&e[i][1].type==="attentionSequence"&&e[i][1]._open&&n.sliceSerialize(e[i][1]).charCodeAt(0)===n.sliceSerialize(e[t][1]).charCodeAt(0)){if((e[i][1]._close||e[t][1]._open)&&(e[t][1].end.offset-e[t][1].start.offset)%3&&!((e[i][1].end.offset-e[i][1].start.offset+e[t][1].end.offset-e[t][1].start.offset)%3))continue;s=e[i][1].end.offset-e[i][1].start.offset>1&&e[t][1].end.offset-e[t][1].start.offset>1?2:1;const f={...e[i][1].end},k={...e[t][1].start};ft(f,-s),ft(k,s),l={type:s>1?"strongSequence":"emphasisSequence",start:f,end:{...e[i][1].end}},o={type:s>1?"strongSequence":"emphasisSequence",start:{...e[t][1].start},end:k},a={type:s>1?"strongText":"emphasisText",start:{...e[i][1].end},end:{...e[t][1].start}},u={type:s>1?"strong":"emphasis",start:{...l.start},end:{...o.end}},e[i][1].end={...l.start},e[t][1].start={...o.end},c=[],e[i][1].end.offset-e[i][1].start.offset&&(c=Y(c,[["enter",e[i][1],n],["exit",e[i][1],n]])),c=Y(c,[["enter",u,n],["enter",l,n],["exit",l,n],["enter",a,n]]),c=Y(c,Ae(n.parser.constructs.insideSpan.null,e.slice(i+1,t),n)),c=Y(c,[["exit",a,n],["enter",o,n],["exit",o,n],["exit",u,n]]),e[t][1].end.offset-e[t][1].start.offset?(p=2,c=Y(c,[["enter",e[t][1],n],["exit",e[t][1],n]])):p=0,K(e,i-1,t-i+3,c),t=i+c.length-p-2;break}}for(t=-1;++t<e.length;)e[t][1].type==="attentionSequence"&&(e[t][1].type="data");return e}r(qi,"resolveAllAttention");function Vi(e,n){const t=this.parser.constructs.attentionMarkers.null,i=this.previous,u=be(i);let a;return l;function l(s){return a=s,e.enter("attentionSequence"),o(s)}function o(s){if(s===a)return e.consume(s),o;const c=e.exit("attentionSequence"),p=be(s),f=!p||p===2&&u||t.includes(s),k=!u||u===2&&p||t.includes(i);return c._open=!!(a===42?f:f&&(u||!k)),c._close=!!(a===42?k:k&&(p||!f)),n(s)}}r(Vi,"tokenizeAttention");function ft(e,n){e.column+=n,e.offset+=n,e._bufferIndex+=n}r(ft,"movePoint");var Ui={name:"autolink",tokenize:Wi};function Wi(e,n,t){let i=0;return u;function u(h){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),a}function a(h){return ee(h)?(e.consume(h),l):h===64?t(h):c(h)}function l(h){return h===43||h===45||h===46||J(h)?(i=1,o(h)):c(h)}function o(h){return h===58?(e.consume(h),i=0,s):(h===43||h===45||h===46||J(h))&&i++<32?(e.consume(h),o):(i=0,c(h))}function s(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||$e(h)?t(h):(e.consume(h),s)}function c(h){return h===64?(e.consume(h),p):Ar(h)?(e.consume(h),c):t(h)}function p(h){return J(h)?f(h):t(h)}function f(h){return h===46?(e.consume(h),i=0,p):h===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),n):k(h)}function k(h){if((h===45||J(h))&&i++<63){const w=h===45?k:f;return e.consume(h),w}return t(h)}}r(Wi,"tokenizeAutolink");var Me={partial:!0,tokenize:Qi};function Qi(e,n,t){return i;function i(a){return L(a)?D(e,u,"linePrefix")(a):u(a)}function u(a){return a===null||z(a)?n(a):t(a)}}r(Qi,"tokenizeBlankLine");var Qt={continuation:{tokenize:Ki},exit:Xi,name:"blockQuote",tokenize:Gi};function Gi(e,n,t){const i=this;return u;function u(l){if(l===62){const o=i.containerState;return o.open||(e.enter("blockQuote",{_container:!0}),o.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(l),e.exit("blockQuoteMarker"),a}return t(l)}function a(l){return L(l)?(e.enter("blockQuotePrefixWhitespace"),e.consume(l),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),n):(e.exit("blockQuotePrefix"),n(l))}}r(Gi,"tokenizeBlockQuoteStart");function Ki(e,n,t){const i=this;return u;function u(l){return L(l)?D(e,a,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l):a(l)}function a(l){return e.attempt(Qt,n,t)(l)}}r(Ki,"tokenizeBlockQuoteContinuation");function Xi(e){e.exit("blockQuote")}r(Xi,"exit$1");var Gt={name:"characterEscape",tokenize:Yi};function Yi(e,n,t){return i;function i(a){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(a),e.exit("escapeMarker"),u}function u(a){return Mr(a)?(e.enter("characterEscapeValue"),e.consume(a),e.exit("characterEscapeValue"),e.exit("characterEscape"),n):t(a)}}r(Yi,"tokenizeCharacterEscape");var Kt={name:"characterReference",tokenize:Zi};function Zi(e,n,t){const i=this;let u=0,a,l;return o;function o(f){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),s}function s(f){return f===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(f),e.exit("characterReferenceMarkerNumeric"),c):(e.enter("characterReferenceValue"),a=31,l=J,p(f))}function c(f){return f===88||f===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(f),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,l=Lr,p):(e.enter("characterReferenceValue"),a=7,l=Oe,p(f))}function p(f){if(f===59&&u){const k=e.exit("characterReferenceValue");return l===J&&!je(i.sliceSerialize(k))?t(f):(e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),e.exit("characterReference"),n)}return l(f)&&u++<a?(e.consume(f),p):t(f)}}r(Zi,"tokenizeCharacterReference");var pt={partial:!0,tokenize:eu},mt={concrete:!0,name:"codeFenced",tokenize:Ji};function Ji(e,n,t){const i=this,u={partial:!0,tokenize:M};let a=0,l=0,o;return s;function s(y){return c(y)}function c(y){const R=i.events[i.events.length-1];return a=R&&R[1].type==="linePrefix"?R[2].sliceSerialize(R[1],!0).length:0,o=y,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),p(y)}function p(y){return y===o?(l++,e.consume(y),p):l<3?t(y):(e.exit("codeFencedFenceSequence"),L(y)?D(e,f,"whitespace")(y):f(y))}function f(y){return y===null||z(y)?(e.exit("codeFencedFence"),i.interrupt?n(y):e.check(pt,v,F)(y)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),k(y))}function k(y){return y===null||z(y)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),f(y)):L(y)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),D(e,h,"whitespace")(y)):y===96&&y===o?t(y):(e.consume(y),k)}function h(y){return y===null||z(y)?f(y):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),w(y))}function w(y){return y===null||z(y)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),f(y)):y===96&&y===o?t(y):(e.consume(y),w)}function v(y){return e.attempt(u,F,C)(y)}function C(y){return e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),b}function b(y){return a>0&&L(y)?D(e,_,"linePrefix",a+1)(y):_(y)}function _(y){return y===null||z(y)?e.check(pt,v,F)(y):(e.enter("codeFlowValue"),S(y))}function S(y){return y===null||z(y)?(e.exit("codeFlowValue"),_(y)):(e.consume(y),S)}function F(y){return e.exit("codeFenced"),n(y)}function M(y,R,O){let P=0;return d;function d(B){return y.enter("lineEnding"),y.consume(B),y.exit("lineEnding"),E}function E(B){return y.enter("codeFencedFence"),L(B)?D(y,T,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(B):T(B)}function T(B){return B===o?(y.enter("codeFencedFenceSequence"),$(B)):O(B)}function $(B){return B===o?(P++,y.consume(B),$):P>=l?(y.exit("codeFencedFenceSequence"),L(B)?D(y,j,"whitespace")(B):j(B)):O(B)}function j(B){return B===null||z(B)?(y.exit("codeFencedFence"),R(B)):O(B)}}}r(Ji,"tokenizeCodeFenced");function eu(e,n,t){const i=this;return u;function u(l){return l===null?t(l):(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),a)}function a(l){return i.parser.lazy[i.now().line]?t(l):n(l)}}r(eu,"tokenizeNonLazyContinuation");var Fe={name:"codeIndented",tokenize:nu},tu={partial:!0,tokenize:ru};function nu(e,n,t){const i=this;return u;function u(c){return e.enter("codeIndented"),D(e,a,"linePrefix",5)(c)}function a(c){const p=i.events[i.events.length-1];return p&&p[1].type==="linePrefix"&&p[2].sliceSerialize(p[1],!0).length>=4?l(c):t(c)}function l(c){return c===null?s(c):z(c)?e.attempt(tu,l,s)(c):(e.enter("codeFlowValue"),o(c))}function o(c){return c===null||z(c)?(e.exit("codeFlowValue"),l(c)):(e.consume(c),o)}function s(c){return e.exit("codeIndented"),n(c)}}r(nu,"tokenizeCodeIndented");function ru(e,n,t){const i=this;return u;function u(l){return i.parser.lazy[i.now().line]?t(l):z(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),u):D(e,a,"linePrefix",5)(l)}function a(l){const o=i.events[i.events.length-1];return o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?n(l):z(l)?u(l):t(l)}}r(ru,"tokenizeFurtherStart");var iu={name:"codeText",previous:au,resolve:uu,tokenize:lu};function uu(e){let n=e.length-4,t=3,i,u;if((e[t][1].type==="lineEnding"||e[t][1].type==="space")&&(e[n][1].type==="lineEnding"||e[n][1].type==="space")){for(i=t;++i<n;)if(e[i][1].type==="codeTextData"){e[t][1].type="codeTextPadding",e[n][1].type="codeTextPadding",t+=2,n-=2;break}}for(i=t-1,n++;++i<=n;)u===void 0?i!==n&&e[i][1].type!=="lineEnding"&&(u=i):(i===n||e[i][1].type==="lineEnding")&&(e[u][1].type="codeTextData",i!==u+2&&(e[u][1].end=e[i-1][1].end,e.splice(u+2,i-u-2),n-=i-u-2,i=u+2),u=void 0);return e}r(uu,"resolveCodeText");function au(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}r(au,"previous");function lu(e,n,t){let i=0,u,a;return l;function l(f){return e.enter("codeText"),e.enter("codeTextSequence"),o(f)}function o(f){return f===96?(e.consume(f),i++,o):(e.exit("codeTextSequence"),s(f))}function s(f){return f===null?t(f):f===32?(e.enter("space"),e.consume(f),e.exit("space"),s):f===96?(a=e.enter("codeTextSequence"),u=0,p(f)):z(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),s):(e.enter("codeTextData"),c(f))}function c(f){return f===null||f===32||f===96||z(f)?(e.exit("codeTextData"),s(f)):(e.consume(f),c)}function p(f){return f===96?(e.consume(f),u++,p):u===i?(e.exit("codeTextSequence"),e.exit("codeText"),n(f)):(a.type="codeTextData",c(f))}}r(lu,"tokenizeCodeText");var ou=class{static{r(this,"SpliceBuffer")}constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,n){const t=n??Number.POSITIVE_INFINITY;return t<this.left.length?this.left.slice(e,t):e>this.left.length?this.right.slice(this.right.length-t+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-t+this.left.length).reverse())}splice(e,n,t){const i=n||0;this.setCursor(Math.trunc(e));const u=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return t&&Se(this.left,t),u.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),Se(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),Se(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&this.right.length===0||e<0&&this.left.length===0))if(e<this.left.length){const n=this.left.splice(e,Number.POSITIVE_INFINITY);Se(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);Se(this.left,n.reverse())}}};function Se(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}r(Se,"chunkedPush");function Xt(e){const n={};let t=-1,i,u,a,l,o,s,c;const p=new ou(e);for(;++t<p.length;){for(;t in n;)t=n[t];if(i=p.get(t),t&&i[1].type==="chunkFlow"&&p.get(t-1)[1].type==="listItemPrefix"&&(s=i[1]._tokenizer.events,a=0,a<s.length&&s[a][1].type==="lineEndingBlank"&&(a+=2),a<s.length&&s[a][1].type==="content"))for(;++a<s.length&&s[a][1].type!=="content";)s[a][1].type==="chunkText"&&(s[a][1]._isInFirstContentOfListItem=!0,a++);if(i[0]==="enter")i[1].contentType&&(Object.assign(n,su(p,t)),t=n[t],c=!0);else if(i[1]._container){for(a=t,u=void 0;a--;)if(l=p.get(a),l[1].type==="lineEnding"||l[1].type==="lineEndingBlank")l[0]==="enter"&&(u&&(p.get(u)[1].type="lineEndingBlank"),l[1].type="lineEnding",u=a);else if(!(l[1].type==="linePrefix"||l[1].type==="listItemIndent"))break;u&&(i[1].end={...p.get(u)[1].start},o=p.slice(u,t),o.unshift(i),p.splice(u,t-u+1,o))}}return K(e,0,Number.POSITIVE_INFINITY,p.slice(0)),!c}r(Xt,"subtokenize");function su(e,n){const t=e.get(n)[1],i=e.get(n)[2];let u=n-1;const a=[];let l=t._tokenizer;l||(l=i.parser[t.contentType](t.start),t._contentTypeTextTrailing&&(l._contentTypeTextTrailing=!0));const o=l.events,s=[],c={};let p,f,k=-1,h=t,w=0,v=0;const C=[v];for(;h;){for(;e.get(++u)[1]!==h;);a.push(u),h._tokenizer||(p=i.sliceStream(h),h.next||p.push(null),f&&l.defineSkip(h.start),h._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=!0),l.write(p),h._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=void 0)),f=h,h=h.next}for(h=t;++k<o.length;)o[k][0]==="exit"&&o[k-1][0]==="enter"&&o[k][1].type===o[k-1][1].type&&o[k][1].start.line!==o[k][1].end.line&&(v=k+1,C.push(v),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(l.events=[],h?(h._tokenizer=void 0,h.previous=void 0):C.pop(),k=C.length;k--;){const b=o.slice(C[k],C[k+1]),_=a.pop();s.push([_,_+b.length-1]),e.splice(_,2,b)}for(s.reverse(),k=-1;++k<s.length;)c[w+s[k][0]]=w+s[k][1],w+=s[k][1]-s[k][0]-1;return c}r(su,"subcontent");var cu={resolve:fu,tokenize:pu},hu={partial:!0,tokenize:mu};function fu(e){return Xt(e),e}r(fu,"resolveContent");function pu(e,n){let t;return i;function i(o){return e.enter("content"),t=e.enter("chunkContent",{contentType:"content"}),u(o)}function u(o){return o===null?a(o):z(o)?e.check(hu,l,a)(o):(e.consume(o),u)}function a(o){return e.exit("chunkContent"),e.exit("content"),n(o)}function l(o){return e.consume(o),e.exit("chunkContent"),t.next=e.enter("chunkContent",{contentType:"content",previous:t}),t=t.next,u}}r(pu,"tokenizeContent");function mu(e,n,t){const i=this;return u;function u(l){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),D(e,a,"linePrefix")}function a(l){if(l===null||z(l))return t(l);const o=i.events[i.events.length-1];return!i.parser.constructs.disable.null.includes("codeIndented")&&o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?n(l):e.interrupt(i.parser.constructs.flow,t,n)(l)}}r(mu,"tokenizeContinuation");function Yt(e,n,t,i,u,a,l,o,s){const c=s||Number.POSITIVE_INFINITY;let p=0;return f;function f(b){return b===60?(e.enter(i),e.enter(u),e.enter(a),e.consume(b),e.exit(a),k):b===null||b===32||b===41||$e(b)?t(b):(e.enter(i),e.enter(l),e.enter(o),e.enter("chunkString",{contentType:"string"}),v(b))}function k(b){return b===62?(e.enter(a),e.consume(b),e.exit(a),e.exit(u),e.exit(i),n):(e.enter(o),e.enter("chunkString",{contentType:"string"}),h(b))}function h(b){return b===62?(e.exit("chunkString"),e.exit(o),k(b)):b===null||b===60||z(b)?t(b):(e.consume(b),b===92?w:h)}function w(b){return b===60||b===62||b===92?(e.consume(b),h):h(b)}function v(b){return!p&&(b===null||b===41||U(b))?(e.exit("chunkString"),e.exit(o),e.exit(l),e.exit(i),n(b)):p<c&&b===40?(e.consume(b),p++,v):b===41?(e.consume(b),p--,v):b===null||b===32||b===40||$e(b)?t(b):(e.consume(b),b===92?C:v)}function C(b){return b===40||b===41||b===92?(e.consume(b),v):v(b)}}r(Yt,"factoryDestination");function Zt(e,n,t,i,u,a){const l=this;let o=0,s;return c;function c(h){return e.enter(i),e.enter(u),e.consume(h),e.exit(u),e.enter(a),p}function p(h){return o>999||h===null||h===91||h===93&&!s||h===94&&!o&&"_hiddenFootnoteSupport"in l.parser.constructs?t(h):h===93?(e.exit(a),e.enter(u),e.consume(h),e.exit(u),e.exit(i),n):z(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),p):(e.enter("chunkString",{contentType:"string"}),f(h))}function f(h){return h===null||h===91||h===93||z(h)||o++>999?(e.exit("chunkString"),p(h)):(e.consume(h),s||(s=!L(h)),h===92?k:f)}function k(h){return h===91||h===92||h===93?(e.consume(h),o++,f):f(h)}}r(Zt,"factoryLabel");function Jt(e,n,t,i,u,a){let l;return o;function o(k){return k===34||k===39||k===40?(e.enter(i),e.enter(u),e.consume(k),e.exit(u),l=k===40?41:k,s):t(k)}function s(k){return k===l?(e.enter(u),e.consume(k),e.exit(u),e.exit(i),n):(e.enter(a),c(k))}function c(k){return k===l?(e.exit(a),s(l)):k===null?t(k):z(k)?(e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),D(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),p(k))}function p(k){return k===l||k===null||z(k)?(e.exit("chunkString"),c(k)):(e.consume(k),k===92?f:p)}function f(k){return k===l||k===92?(e.consume(k),p):p(k)}}r(Jt,"factoryTitle");function Ce(e,n){let t;return i;function i(u){return z(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),t=!0,i):L(u)?D(e,i,t?"linePrefix":"lineSuffix")(u):n(u)}}r(Ce,"factoryWhitespace");var gu={name:"definition",tokenize:du},ku={partial:!0,tokenize:xu};function du(e,n,t){const i=this;let u;return a;function a(h){return e.enter("definition"),l(h)}function l(h){return Zt.call(i,e,o,t,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function o(h){return u=xe(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),s):t(h)}function s(h){return U(h)?Ce(e,c)(h):c(h)}function c(h){return Yt(e,p,t,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function p(h){return e.attempt(ku,f,f)(h)}function f(h){return L(h)?D(e,k,"whitespace")(h):k(h)}function k(h){return h===null||z(h)?(e.exit("definition"),i.parser.defined.push(u),n(h)):t(h)}}r(du,"tokenizeDefinition");function xu(e,n,t){return i;function i(o){return U(o)?Ce(e,u)(o):t(o)}function u(o){return Jt(e,a,t,"definitionTitle","definitionTitleMarker","definitionTitleString")(o)}function a(o){return L(o)?D(e,l,"whitespace")(o):l(o)}function l(o){return o===null||z(o)?n(o):t(o)}}r(xu,"tokenizeTitleBefore");var bu={name:"hardBreakEscape",tokenize:yu};function yu(e,n,t){return i;function i(a){return e.enter("hardBreakEscape"),e.consume(a),u}function u(a){return z(a)?(e.exit("hardBreakEscape"),n(a)):t(a)}}r(yu,"tokenizeHardBreakEscape");var wu={name:"headingAtx",resolve:Iu,tokenize:Su};function Iu(e,n){let t=e.length-2,i=3,u,a;return e[i][1].type==="whitespace"&&(i+=2),t-2>i&&e[t][1].type==="whitespace"&&(t-=2),e[t][1].type==="atxHeadingSequence"&&(i===t-1||t-4>i&&e[t-2][1].type==="whitespace")&&(t-=i+1===t?2:4),t>i&&(u={type:"atxHeadingText",start:e[i][1].start,end:e[t][1].end},a={type:"chunkText",start:e[i][1].start,end:e[t][1].end,contentType:"text"},K(e,i,t-i+1,[["enter",u,n],["enter",a,n],["exit",a,n],["exit",u,n]])),e}r(Iu,"resolveHeadingAtx");function Su(e,n,t){let i=0;return u;function u(p){return e.enter("atxHeading"),a(p)}function a(p){return e.enter("atxHeadingSequence"),l(p)}function l(p){return p===35&&i++<6?(e.consume(p),l):p===null||U(p)?(e.exit("atxHeadingSequence"),o(p)):t(p)}function o(p){return p===35?(e.enter("atxHeadingSequence"),s(p)):p===null||z(p)?(e.exit("atxHeading"),n(p)):L(p)?D(e,o,"whitespace")(p):(e.enter("atxHeadingText"),c(p))}function s(p){return p===35?(e.consume(p),s):(e.exit("atxHeadingSequence"),o(p))}function c(p){return p===null||p===35||U(p)?(e.exit("atxHeadingText"),o(p)):(e.consume(p),c)}}r(Su,"tokenizeHeadingAtx");var vu=["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"],gt=["pre","script","style","textarea"],Cu={concrete:!0,name:"htmlFlow",resolveTo:zu,tokenize:_u},Eu={partial:!0,tokenize:Lu},Tu={partial:!0,tokenize:Au};function zu(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}r(zu,"resolveToHtmlFlow");function _u(e,n,t){const i=this;let u,a,l,o,s;return c;function c(g){return p(g)}function p(g){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(g),f}function f(g){return g===33?(e.consume(g),k):g===47?(e.consume(g),a=!0,v):g===63?(e.consume(g),u=3,i.interrupt?n:m):ee(g)?(e.consume(g),l=String.fromCharCode(g),C):t(g)}function k(g){return g===45?(e.consume(g),u=2,h):g===91?(e.consume(g),u=5,o=0,w):ee(g)?(e.consume(g),u=4,i.interrupt?n:m):t(g)}function h(g){return g===45?(e.consume(g),i.interrupt?n:m):t(g)}function w(g){return g==="CDATA[".charCodeAt(o++)?(e.consume(g),o===6?i.interrupt?n:T:w):t(g)}function v(g){return ee(g)?(e.consume(g),l=String.fromCharCode(g),C):t(g)}function C(g){if(g===null||g===47||g===62||U(g)){const le=g===47,fe=l.toLowerCase();return!le&&!a&>.includes(fe)?(u=1,i.interrupt?n(g):T(g)):vu.includes(l.toLowerCase())?(u=6,le?(e.consume(g),b):i.interrupt?n(g):T(g)):(u=7,i.interrupt&&!i.parser.lazy[i.now().line]?t(g):a?_(g):S(g))}return g===45||J(g)?(e.consume(g),l+=String.fromCharCode(g),C):t(g)}function b(g){return g===62?(e.consume(g),i.interrupt?n:T):t(g)}function _(g){return L(g)?(e.consume(g),_):d(g)}function S(g){return g===47?(e.consume(g),d):g===58||g===95||ee(g)?(e.consume(g),F):L(g)?(e.consume(g),S):d(g)}function F(g){return g===45||g===46||g===58||g===95||J(g)?(e.consume(g),F):M(g)}function M(g){return g===61?(e.consume(g),y):L(g)?(e.consume(g),M):S(g)}function y(g){return g===null||g===60||g===61||g===62||g===96?t(g):g===34||g===39?(e.consume(g),s=g,R):L(g)?(e.consume(g),y):O(g)}function R(g){return g===s?(e.consume(g),s=null,P):g===null||z(g)?t(g):(e.consume(g),R)}function O(g){return g===null||g===34||g===39||g===47||g===60||g===61||g===62||g===96||U(g)?M(g):(e.consume(g),O)}function P(g){return g===47||g===62||L(g)?S(g):t(g)}function d(g){return g===62?(e.consume(g),E):t(g)}function E(g){return g===null||z(g)?T(g):L(g)?(e.consume(g),E):t(g)}function T(g){return g===45&&u===2?(e.consume(g),W):g===60&&u===1?(e.consume(g),q):g===62&&u===4?(e.consume(g),ae):g===63&&u===3?(e.consume(g),m):g===93&&u===5?(e.consume(g),te):z(g)&&(u===6||u===7)?(e.exit("htmlFlowData"),e.check(Eu,ne,$)(g)):g===null||z(g)?(e.exit("htmlFlowData"),$(g)):(e.consume(g),T)}function $(g){return e.check(Tu,j,ne)(g)}function j(g){return e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),B}function B(g){return g===null||z(g)?$(g):(e.enter("htmlFlowData"),T(g))}function W(g){return g===45?(e.consume(g),m):T(g)}function q(g){return g===47?(e.consume(g),l="",Z):T(g)}function Z(g){if(g===62){const le=l.toLowerCase();return gt.includes(le)?(e.consume(g),ae):T(g)}return ee(g)&&l.length<8?(e.consume(g),l+=String.fromCharCode(g),Z):T(g)}function te(g){return g===93?(e.consume(g),m):T(g)}function m(g){return g===62?(e.consume(g),ae):g===45&&u===2?(e.consume(g),m):T(g)}function ae(g){return g===null||z(g)?(e.exit("htmlFlowData"),ne(g)):(e.consume(g),ae)}function ne(g){return e.exit("htmlFlow"),n(g)}}r(_u,"tokenizeHtmlFlow");function Au(e,n,t){const i=this;return u;function u(l){return z(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),a):t(l)}function a(l){return i.parser.lazy[i.now().line]?t(l):n(l)}}r(Au,"tokenizeNonLazyContinuationStart");function Lu(e,n,t){return i;function i(u){return e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),e.attempt(Me,n,t)}}r(Lu,"tokenizeBlankLineBefore");var Mu={name:"htmlText",tokenize:Fu};function Fu(e,n,t){const i=this;let u,a,l;return o;function o(m){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(m),s}function s(m){return m===33?(e.consume(m),c):m===47?(e.consume(m),M):m===63?(e.consume(m),S):ee(m)?(e.consume(m),O):t(m)}function c(m){return m===45?(e.consume(m),p):m===91?(e.consume(m),a=0,w):ee(m)?(e.consume(m),_):t(m)}function p(m){return m===45?(e.consume(m),h):t(m)}function f(m){return m===null?t(m):m===45?(e.consume(m),k):z(m)?(l=f,q(m)):(e.consume(m),f)}function k(m){return m===45?(e.consume(m),h):f(m)}function h(m){return m===62?W(m):m===45?k(m):f(m)}function w(m){return m==="CDATA[".charCodeAt(a++)?(e.consume(m),a===6?v:w):t(m)}function v(m){return m===null?t(m):m===93?(e.consume(m),C):z(m)?(l=v,q(m)):(e.consume(m),v)}function C(m){return m===93?(e.consume(m),b):v(m)}function b(m){return m===62?W(m):m===93?(e.consume(m),b):v(m)}function _(m){return m===null||m===62?W(m):z(m)?(l=_,q(m)):(e.consume(m),_)}function S(m){return m===null?t(m):m===63?(e.consume(m),F):z(m)?(l=S,q(m)):(e.consume(m),S)}function F(m){return m===62?W(m):S(m)}function M(m){return ee(m)?(e.consume(m),y):t(m)}function y(m){return m===45||J(m)?(e.consume(m),y):R(m)}function R(m){return z(m)?(l=R,q(m)):L(m)?(e.consume(m),R):W(m)}function O(m){return m===45||J(m)?(e.consume(m),O):m===47||m===62||U(m)?P(m):t(m)}function P(m){return m===47?(e.consume(m),W):m===58||m===95||ee(m)?(e.consume(m),d):z(m)?(l=P,q(m)):L(m)?(e.consume(m),P):W(m)}function d(m){return m===45||m===46||m===58||m===95||J(m)?(e.consume(m),d):E(m)}function E(m){return m===61?(e.consume(m),T):z(m)?(l=E,q(m)):L(m)?(e.consume(m),E):P(m)}function T(m){return m===null||m===60||m===61||m===62||m===96?t(m):m===34||m===39?(e.consume(m),u=m,$):z(m)?(l=T,q(m)):L(m)?(e.consume(m),T):(e.consume(m),j)}function $(m){return m===u?(e.consume(m),u=void 0,B):m===null?t(m):z(m)?(l=$,q(m)):(e.consume(m),$)}function j(m){return m===null||m===34||m===39||m===60||m===61||m===96?t(m):m===47||m===62||U(m)?P(m):(e.consume(m),j)}function B(m){return m===47||m===62||U(m)?P(m):t(m)}function W(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"),Z}function Z(m){return L(m)?D(e,te,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(m):te(m)}function te(m){return e.enter("htmlTextData"),l(m)}}r(Fu,"tokenizeHtmlText");var Qe={name:"labelEnd",resolveAll:Pu,resolveTo:$u,tokenize:Ou},Ru={tokenize:Nu},Bu={tokenize:Hu},Du={tokenize:ju};function Pu(e){let n=-1;const t=[];for(;++n<e.length;){const i=e[n][1];if(t.push(e[n]),i.type==="labelImage"||i.type==="labelLink"||i.type==="labelEnd"){const u=i.type==="labelImage"?4:2;i.type="data",n+=u}}return e.length!==t.length&&K(e,0,e.length,t),e}r(Pu,"resolveAllLabelEnd");function $u(e,n){let t=e.length,i=0,u,a,l,o;for(;t--;)if(u=e[t][1],a){if(u.type==="link"||u.type==="labelLink"&&u._inactive)break;e[t][0]==="enter"&&u.type==="labelLink"&&(u._inactive=!0)}else if(l){if(e[t][0]==="enter"&&(u.type==="labelImage"||u.type==="labelLink")&&!u._balanced&&(a=t,u.type!=="labelLink")){i=2;break}}else u.type==="labelEnd"&&(l=t);const s={type:e[a][1].type==="labelLink"?"link":"image",start:{...e[a][1].start},end:{...e[e.length-1][1].end}},c={type:"label",start:{...e[a][1].start},end:{...e[l][1].end}},p={type:"labelText",start:{...e[a+i+2][1].end},end:{...e[l-2][1].start}};return o=[["enter",s,n],["enter",c,n]],o=Y(o,e.slice(a+1,a+i+3)),o=Y(o,[["enter",p,n]]),o=Y(o,Ae(n.parser.constructs.insideSpan.null,e.slice(a+i+4,l-3),n)),o=Y(o,[["exit",p,n],e[l-2],e[l-1],["exit",c,n]]),o=Y(o,e.slice(l+1)),o=Y(o,[["exit",s,n]]),K(e,a,e.length,o),e}r($u,"resolveToLabelEnd");function Ou(e,n,t){const i=this;let u=i.events.length,a,l;for(;u--;)if((i.events[u][1].type==="labelImage"||i.events[u][1].type==="labelLink")&&!i.events[u][1]._balanced){a=i.events[u][1];break}return o;function o(k){return a?a._inactive?f(k):(l=i.parser.defined.includes(xe(i.sliceSerialize({start:a.end,end:i.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(k),e.exit("labelMarker"),e.exit("labelEnd"),s):t(k)}function s(k){return k===40?e.attempt(Ru,p,l?p:f)(k):k===91?e.attempt(Bu,p,l?c:f)(k):l?p(k):f(k)}function c(k){return e.attempt(Du,p,f)(k)}function p(k){return n(k)}function f(k){return a._balanced=!0,t(k)}}r(Ou,"tokenizeLabelEnd");function Nu(e,n,t){return i;function i(f){return e.enter("resource"),e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),u}function u(f){return U(f)?Ce(e,a)(f):a(f)}function a(f){return f===41?p(f):Yt(e,l,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function l(f){return U(f)?Ce(e,s)(f):p(f)}function o(f){return t(f)}function s(f){return f===34||f===39||f===40?Jt(e,c,t,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):p(f)}function c(f){return U(f)?Ce(e,p)(f):p(f)}function p(f){return f===41?(e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),e.exit("resource"),n):t(f)}}r(Nu,"tokenizeResource");function Hu(e,n,t){const i=this;return u;function u(o){return Zt.call(i,e,a,l,"reference","referenceMarker","referenceString")(o)}function a(o){return i.parser.defined.includes(xe(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?n(o):t(o)}function l(o){return t(o)}}r(Hu,"tokenizeReferenceFull");function ju(e,n,t){return i;function i(a){return e.enter("reference"),e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),u}function u(a){return a===93?(e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),e.exit("reference"),n):t(a)}}r(ju,"tokenizeReferenceCollapsed");var qu={name:"labelStartImage",resolveAll:Qe.resolveAll,tokenize:Vu};function Vu(e,n,t){const i=this;return u;function u(o){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(o),e.exit("labelImageMarker"),a}function a(o){return o===91?(e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelImage"),l):t(o)}function l(o){return o===94&&"_hiddenFootnoteSupport"in i.parser.constructs?t(o):n(o)}}r(Vu,"tokenizeLabelStartImage");var Uu={name:"labelStartLink",resolveAll:Qe.resolveAll,tokenize:Wu};function Wu(e,n,t){const i=this;return u;function u(l){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelLink"),a}function a(l){return l===94&&"_hiddenFootnoteSupport"in i.parser.constructs?t(l):n(l)}}r(Wu,"tokenizeLabelStartLink");var Re={name:"lineEnding",tokenize:Qu};function Qu(e,n){return t;function t(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),D(e,n,"linePrefix")}}r(Qu,"tokenizeLineEnding");var ze={name:"thematicBreak",tokenize:Gu};function Gu(e,n,t){let i=0,u;return a;function a(c){return e.enter("thematicBreak"),l(c)}function l(c){return u=c,o(c)}function o(c){return c===u?(e.enter("thematicBreakSequence"),s(c)):i>=3&&(c===null||z(c))?(e.exit("thematicBreak"),n(c)):t(c)}function s(c){return c===u?(e.consume(c),i++,s):(e.exit("thematicBreakSequence"),L(c)?D(e,o,"whitespace")(c):o(c))}}r(Gu,"tokenizeThematicBreak");var Q={continuation:{tokenize:Zu},exit:ea,name:"list",tokenize:Yu},Ku={partial:!0,tokenize:ta},Xu={partial:!0,tokenize:Ju};function Yu(e,n,t){const i=this,u=i.events[i.events.length-1];let a=u&&u[1].type==="linePrefix"?u[2].sliceSerialize(u[1],!0).length:0,l=0;return o;function o(h){const w=i.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(w==="listUnordered"?!i.containerState.marker||h===i.containerState.marker:Oe(h)){if(i.containerState.type||(i.containerState.type=w,e.enter(w,{_container:!0})),w==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(ze,t,c)(h):c(h);if(!i.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(h)}return t(h)}function s(h){return Oe(h)&&++l<10?(e.consume(h),s):(!i.interrupt||l<2)&&(i.containerState.marker?h===i.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),c(h)):t(h)}function c(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||h,e.check(Me,i.interrupt?t:p,e.attempt(Ku,k,f))}function p(h){return i.containerState.initialBlankLine=!0,a++,k(h)}function f(h){return L(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),k):t(h)}function k(h){return i.containerState.size=a+i.sliceSerialize(e.exit("listItemPrefix"),!0).length,n(h)}}r(Yu,"tokenizeListStart");function Zu(e,n,t){const i=this;return i.containerState._closeFlow=void 0,e.check(Me,u,a);function u(o){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,D(e,n,"listItemIndent",i.containerState.size+1)(o)}r(u,"onBlank");function a(o){return i.containerState.furtherBlankLines||!L(o)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,l(o)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,e.attempt(Xu,n,l)(o))}r(a,"notBlank");function l(o){return i.containerState._closeFlow=!0,i.interrupt=void 0,D(e,e.attempt(Q,n,t),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}r(l,"notInCurrentItem")}r(Zu,"tokenizeListContinuation");function Ju(e,n,t){const i=this;return D(e,u,"listItemIndent",i.containerState.size+1);function u(a){const l=i.events[i.events.length-1];return l&&l[1].type==="listItemIndent"&&l[2].sliceSerialize(l[1],!0).length===i.containerState.size?n(a):t(a)}}r(Ju,"tokenizeIndent");function ea(e){e.exit(this.containerState.type)}r(ea,"tokenizeListEnd");function ta(e,n,t){const i=this;return D(e,u,"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function u(a){const l=i.events[i.events.length-1];return!L(a)&&l&&l[1].type==="listItemPrefixWhitespace"?n(a):t(a)}}r(ta,"tokenizeListItemPrefixWhitespace");var kt={name:"setextUnderline",resolveTo:na,tokenize:ra};function na(e,n){let t=e.length,i,u,a;for(;t--;)if(e[t][0]==="enter"){if(e[t][1].type==="content"){i=t;break}e[t][1].type==="paragraph"&&(u=t)}else e[t][1].type==="content"&&e.splice(t,1),!a&&e[t][1].type==="definition"&&(a=t);const l={type:"setextHeading",start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[u][1].type="setextHeadingText",a?(e.splice(u,0,["enter",l,n]),e.splice(a+1,0,["exit",e[i][1],n]),e[i][1].end={...e[a][1].end}):e[i][1]=l,e.push(["exit",l,n]),e}r(na,"resolveToSetextUnderline");function ra(e,n,t){const i=this;let u;return a;function a(c){let p=i.events.length,f;for(;p--;)if(i.events[p][1].type!=="lineEnding"&&i.events[p][1].type!=="linePrefix"&&i.events[p][1].type!=="content"){f=i.events[p][1].type==="paragraph";break}return!i.parser.lazy[i.now().line]&&(i.interrupt||f)?(e.enter("setextHeadingLine"),u=c,l(c)):t(c)}function l(c){return e.enter("setextHeadingLineSequence"),o(c)}function o(c){return c===u?(e.consume(c),o):(e.exit("setextHeadingLineSequence"),L(c)?D(e,s,"lineSuffix")(c):s(c))}function s(c){return c===null||z(c)?(e.exit("setextHeadingLine"),n(c)):t(c)}}r(ra,"tokenizeSetextUnderline");var ia={tokenize:ua};function ua(e){const n=this,t=e.attempt(Me,i,e.attempt(this.parser.constructs.flowInitial,u,D(e,e.attempt(this.parser.constructs.flow,u,e.attempt(cu,u)),"linePrefix")));return t;function i(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),n.currentConstruct=void 0,t}function u(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),n.currentConstruct=void 0,t}}r(ua,"initializeFlow");var aa={resolveAll:tn()},la=en("string"),oa=en("text");function en(e){return{resolveAll:tn(e==="text"?sa:void 0),tokenize:n};function n(t){const i=this,u=this.parser.constructs[e],a=t.attempt(u,l,o);return l;function l(p){return c(p)?a(p):o(p)}function o(p){if(p===null){t.consume(p);return}return t.enter("data"),t.consume(p),s}function s(p){return c(p)?(t.exit("data"),a(p)):(t.consume(p),s)}function c(p){if(p===null)return!0;const f=u[p];let k=-1;if(f)for(;++k<f.length;){const h=f[k];if(!h.previous||h.previous.call(i,i.previous))return!0}return!1}}}r(en,"initializeFactory");function tn(e){return n;function n(t,i){let u=-1,a;for(;++u<=t.length;)a===void 0?t[u]&&t[u][1].type==="data"&&(a=u,u++):(!t[u]||t[u][1].type!=="data")&&(u!==a+2&&(t[a][1].end=t[u-1][1].end,t.splice(a+2,u-a-2),u=a+2),a=void 0);return e?e(t,i):t}}r(tn,"createResolver");function sa(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 i=e[t-1][1],u=n.sliceStream(i);let a=u.length,l=-1,o=0,s;for(;a--;){const c=u[a];if(typeof c=="string"){for(l=c.length;c.charCodeAt(l-1)===32;)o++,l--;if(l)break;l=-1}else if(c===-2)s=!0,o++;else if(c!==-1){a++;break}}if(n._contentTypeTextTrailing&&t===e.length&&(o=0),o){const c={type:t===e.length||s||o<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:a?l:i.start._bufferIndex+l,_index:i.start._index+a,line:i.end.line,column:i.end.column-o,offset:i.end.offset-o},end:{...i.end}};i.end={...c.start},i.start.offset===i.end.offset?Object.assign(i,c):(e.splice(t,0,["enter",c,n],["exit",c,n]),t+=2)}t++}return e}r(sa,"resolveAllLineSuffixes");var ca=kn({attentionMarkers:r(()=>xa,"attentionMarkers"),contentInitial:r(()=>fa,"contentInitial"),disable:r(()=>ba,"disable"),document:r(()=>ha,"document"),flow:r(()=>ma,"flow"),flowInitial:r(()=>pa,"flowInitial"),insideSpan:r(()=>da,"insideSpan"),string:r(()=>ga,"string"),text:r(()=>ka,"text")}),ha={42:Q,43:Q,45:Q,48:Q,49:Q,50:Q,51:Q,52:Q,53:Q,54:Q,55:Q,56:Q,57:Q,62:Qt},fa={91:gu},pa={[-2]:Fe,[-1]:Fe,32:Fe},ma={35:wu,42:ze,45:[kt,ze],60:Cu,61:kt,95:ze,96:mt,126:mt},ga={38:Kt,92:Gt},ka={[-5]:Re,[-4]:Re,[-3]:Re,33:qu,38:Kt,42:He,60:[Ui,Mu],91:Uu,92:[bu,Gt],93:Qe,95:He,96:iu},da={null:[He,aa]},xa={null:[42,95]},ba={null:[]};function ya(e,n,t){let i={_bufferIndex:-1,_index:0,line:t&&t.line||1,column:t&&t.column||1,offset:t&&t.offset||0};const u={},a=[];let l=[],o=[];const s={attempt:R(M),check:R(y),consume:_,enter:S,exit:F,interrupt:R(y,{interrupt:!0})},c={code:null,containerState:{},defineSkip:v,events:[],now:w,parser:e,previous:null,sliceSerialize:k,sliceStream:h,write:f};let p=n.tokenize.call(c,s);return n.resolveAll&&a.push(n),c;function f(E){return l=Y(l,E),C(),l[l.length-1]!==null?[]:(O(n,0),c.events=Ae(a,c.events,c),c.events)}r(f,"write");function k(E,T){return Ia(h(E),T)}r(k,"sliceSerialize");function h(E){return wa(l,E)}r(h,"sliceStream");function w(){const{_bufferIndex:E,_index:T,line:$,column:j,offset:B}=i;return{_bufferIndex:E,_index:T,line:$,column:j,offset:B}}r(w,"now");function v(E){u[E.line]=E.column,d()}r(v,"defineSkip");function C(){let E;for(;i._index<l.length;){const T=l[i._index];if(typeof T=="string")for(E=i._index,i._bufferIndex<0&&(i._bufferIndex=0);i._index===E&&i._bufferIndex<T.length;)b(T.charCodeAt(i._bufferIndex));else b(T)}}r(C,"main");function b(E){p=p(E)}r(b,"go");function _(E){z(E)?(i.line++,i.column=1,i.offset+=E===-3?2:1,d()):E!==-1&&(i.column++,i.offset++),i._bufferIndex<0?i._index++:(i._bufferIndex++,i._bufferIndex===l[i._index].length&&(i._bufferIndex=-1,i._index++)),c.previous=E}r(_,"consume");function S(E,T){const $=T||{};return $.type=E,$.start=w(),c.events.push(["enter",$,c]),o.push($),$}r(S,"enter");function F(E){const T=o.pop();return T.end=w(),c.events.push(["exit",T,c]),T}r(F,"exit");function M(E,T){O(E,T.from)}r(M,"onsuccessfulconstruct");function y(E,T){T.restore()}r(y,"onsuccessfulcheck");function R(E,T){return $;function $(j,B,W){let q,Z,te,m;return Array.isArray(j)?ne(j):"tokenize"in j?ne([j]):ae(j);function ae(V){return ye;function ye(re){const pe=re!==null&&V[re],me=re!==null&&V.null;return ne([...Array.isArray(pe)?pe:pe?[pe]:[],...Array.isArray(me)?me:me?[me]:[]])(re)}}function ne(V){return q=V,Z=0,V.length===0?W:g(V[Z])}function g(V){return ye;function ye(re){return m=P(),te=V,V.partial||(c.currentConstruct=V),V.name&&c.parser.constructs.disable.null.includes(V.name)?fe(re):V.tokenize.call(T?Object.assign(Object.create(c),T):c,s,le,fe)(re)}}function le(V){return E(te,m),B}function fe(V){return m.restore(),++Z<q.length?g(q[Z]):W}}}r(R,"constructFactory");function O(E,T){E.resolveAll&&!a.includes(E)&&a.push(E),E.resolve&&K(c.events,T,c.events.length-T,E.resolve(c.events.slice(T),c)),E.resolveTo&&(c.events=E.resolveTo(c.events,c))}r(O,"addResult");function P(){const E=w(),T=c.previous,$=c.currentConstruct,j=c.events.length,B=Array.from(o);return{from:j,restore:W};function W(){i=E,c.previous=T,c.currentConstruct=$,c.events.length=j,o=B,d()}}r(P,"store");function d(){i.line in u&&i.column<2&&(i.column=u[i.line],i.offset+=u[i.line]-1)}r(d,"accountForPotentialSkip")}r(ya,"createTokenizer");function wa(e,n){const t=n.start._index,i=n.start._bufferIndex,u=n.end._index,a=n.end._bufferIndex;let l;if(t===u)l=[e[t].slice(i,a)];else{if(l=e.slice(t,u),i>-1){const o=l[0];typeof o=="string"?l[0]=o.slice(i):l.shift()}a>0&&l.push(e[u].slice(0,a))}return l}r(wa,"sliceChunks");function Ia(e,n){let t=-1;const i=[];let u;for(;++t<e.length;){const a=e[t];let l;if(typeof a=="string")l=a;else switch(a){case-5:l="\r";break;case-4:l=`
|
|
13
13
|
`;break;case-3:l=`\r
|
|
14
|
-
`;break;case-2:l=n?" ":" ";break;case-1:if(!n&&u)continue;l=" ";break;default:l=String.fromCharCode(a)}u=a===-2,i.push(l)}return i.join("")}r(wa,"serializeChunks");function Ia(e){const n={constructs:Ri([sa,...(e||{}).extensions||[]]),content:t(Pi),defined:[],document:t(Oi),flow:t(ra),lazy:{},string:t(aa),text:t(la)};return n;function t(i){return u;function u(a){return ba(n,i,a)}}}r(Ia,"parse");function Sa(e){for(;!Kt(e););return e}r(Sa,"postprocess");var dt=/[\0\t\n\r]/g;function va(){let e=1,n="",t=!0,i;return u;function u(a,l,o){const s=[];let c,p,f,k,h;for(a=n+(typeof a=="string"?a.toString():new TextDecoder(l||void 0).decode(a)),f=0,n="",t&&(a.charCodeAt(0)===65279&&f++,t=void 0);f<a.length;){if(dt.lastIndex=f,c=dt.exec(a),k=c&&c.index!==void 0?c.index:a.length,h=a.charCodeAt(k),!c){n=a.slice(f);break}if(h===10&&f===k&&i)s.push(-3),i=void 0;else switch(i&&(s.push(-5),i=void 0),f<k&&(s.push(a.slice(f,k)),e+=k-f),h){case 0:s.push(65533),e++;break;case 9:for(p=Math.ceil(e/4)*4,s.push(-2);e++<p;)s.push(-1);break;case 10:s.push(-4),e=1;break;default:i=!0,e=1}f=k+1}return o&&(i&&s.push(-5),n&&s.push(n),s.push(null)),s}}r(va,"preprocess");var tn={}.hasOwnProperty;function Tl(e,n,t){return n&&typeof n=="object"&&(t=n,n=void 0),Ca(t)(Sa(Ia(t).document().write(va()(e,n,!0))))}r(Tl,"fromMarkdown");function Ca(e){const n={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(Ze),autolinkProtocol:P,autolinkEmail:P,atxHeading:a(Ke),blockQuote:a(me),characterEscape:P,characterReference:P,codeFenced:a(Ge),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:a(Ge,l),codeText:a(un,l),codeTextData:P,data:P,codeFlowValue:P,definition:a(an),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:a(ln),hardBreakEscape:a(Xe),hardBreakTrailing:a(Xe),htmlFlow:a(Ye,l),htmlFlowData:P,htmlText:a(Ye,l),htmlTextData:P,image:a(on),label:l,link:a(Ze),listItem:a(sn),listItemValue:k,listOrdered:a(Je,f),listUnordered:a(Je),paragraph:a(cn),reference:g,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:a(Ke),strong:a(hn),thematicBreak:a(pn)},exit:{atxHeading:s(),atxHeadingSequence:M,autolink:s(),autolinkEmail:pe,autolinkProtocol:re,blockQuote:s(),characterEscapeValue:d,characterReferenceMarkerHexadecimal:fe,characterReferenceMarkerNumeric:fe,characterReferenceValue:V,characterReference:ye,codeFenced:s(C),codeFencedFence:v,codeFencedFenceInfo:h,codeFencedFenceMeta:w,codeFlowValue:d,codeIndented:s(b),codeText:s(B),codeTextData:d,data:d,definition:s(),definitionDestinationString:F,definitionLabelString:_,definitionTitleString:S,emphasis:s(),hardBreakEscape:s(E),hardBreakTrailing:s(E),htmlFlow:s($),htmlFlowData:d,htmlText:s(j),htmlTextData:d,image:s(q),label:te,labelText:Z,lineEnding:T,link:s(W),listItem:s(),listOrdered:s(),listUnordered:s(),paragraph:s(),referenceString:le,resourceDestinationString:m,resourceTitleString:ae,resource:ne,setextHeading:s(O),setextHeadingLineSequence:R,setextHeadingText:y,strong:s(),thematicBreak:s()}};nn(n,(e||{}).mdastExtensions||[]);const t={};return i;function i(x){let I={type:"root",children:[]};const A={stack:[I],tokenStack:[],config:n,enter:o,exit:c,buffer:l,resume:p,data:t},N=[];let H=-1;for(;++H<x.length;)(x[H][1].type==="listOrdered"||x[H][1].type==="listUnordered")&&(x[H][0]==="enter"?N.push(H):H=u(x,N.pop(),H));for(H=-1;++H<x.length;){const oe=n[x[H][0]];tn.call(oe,x[H][1].type)&&oe[x[H][1].type].call(Object.assign({sliceSerialize:x[H][2].sliceSerialize},A),x[H][1])}if(A.tokenStack.length>0){const oe=A.tokenStack[A.tokenStack.length-1];(oe[1]||xt).call(A,void 0,oe[0])}for(I.position={start:se(x.length>0?x[0][1].start:{line:1,column:1,offset:0}),end:se(x.length>0?x[x.length-2][1].end:{line:1,column:1,offset:0})},H=-1;++H<n.transforms.length;)I=n.transforms[H](I)||I;return I}function u(x,I,A){let N=I-1,H=-1,oe=!1,ge,ie,we,Ie;for(;++N<=A;){const G=x[N];switch(G[1].type){case"listUnordered":case"listOrdered":case"blockQuote":G[0]==="enter"?H++:H--,Ie=void 0;break;case"lineEndingBlank":G[0]==="enter"&&(ge&&!Ie&&!H&&!we&&(we=N),Ie=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Ie=void 0}if(!H&&G[0]==="enter"&&G[1].type==="listItemPrefix"||H===-1&&G[0]==="exit"&&(G[1].type==="listUnordered"||G[1].type==="listOrdered")){if(ge){let ke=N;for(ie=void 0;ke--;){const ue=x[ke];if(ue[1].type==="lineEnding"||ue[1].type==="lineEndingBlank"){if(ue[0]==="exit")continue;ie&&(x[ie][1].type="lineEndingBlank",oe=!0),ue[1].type="lineEnding",ie=ke}else if(!(ue[1].type==="linePrefix"||ue[1].type==="blockQuotePrefix"||ue[1].type==="blockQuotePrefixWhitespace"||ue[1].type==="blockQuoteMarker"||ue[1].type==="listItemIndent"))break}we&&(!ie||we<ie)&&(ge._spread=!0),ge.end=Object.assign({},ie?x[ie][1].start:G[1].end),x.splice(ie||N,0,["exit",ge,G[2]]),N++,A++}if(G[1].type==="listItemPrefix"){const ke={type:"listItem",_spread:!1,start:Object.assign({},G[1].start),end:void 0};ge=ke,x.splice(N,0,["enter",ke,G[2]]),N++,A++,we=void 0,Ie=!0}}}return x[I][1]._spread=oe,A}function a(x,I){return A;function A(N){o.call(this,x(N),N),I&&I.call(this,N)}}function l(){this.stack.push({type:"fragment",children:[]})}function o(x,I,A){this.stack[this.stack.length-1].children.push(x),this.stack.push(x),this.tokenStack.push([I,A||void 0]),x.position={start:se(I.start),end:void 0}}function s(x){return I;function I(A){x&&x.call(this,A),c.call(this,A)}}function c(x,I){const A=this.stack.pop(),N=this.tokenStack.pop();if(N)N[0].type!==x.type&&(I?I.call(this,x,N[0]):(N[1]||xt).call(this,x,N[0]));else throw new Error("Cannot close `"+x.type+"` ("+ve({start:x.start,end:x.end})+"): it’s not open");A.position.end=se(x.end)}function p(){return Ue(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function k(x){if(this.data.expectingFirstListItemValue){const I=this.stack[this.stack.length-2];I.start=Number.parseInt(this.sliceSerialize(x),10),this.data.expectingFirstListItemValue=void 0}}function h(){const x=this.resume(),I=this.stack[this.stack.length-1];I.lang=x}function w(){const x=this.resume(),I=this.stack[this.stack.length-1];I.meta=x}function v(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function C(){const x=this.resume(),I=this.stack[this.stack.length-1];I.value=x.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function b(){const x=this.resume(),I=this.stack[this.stack.length-1];I.value=x.replace(/(\r?\n|\r)$/g,"")}function _(x){const I=this.resume(),A=this.stack[this.stack.length-1];A.label=I,A.identifier=xe(this.sliceSerialize(x)).toLowerCase()}function S(){const x=this.resume(),I=this.stack[this.stack.length-1];I.title=x}function F(){const x=this.resume(),I=this.stack[this.stack.length-1];I.url=x}function M(x){const I=this.stack[this.stack.length-1];I.depth||(I.depth=this.sliceSerialize(x).length)}function y(){this.data.setextHeadingSlurpLineEnding=!0}function R(x){const I=this.stack[this.stack.length-1];I.depth=this.sliceSerialize(x).codePointAt(0)===61?1:2}function O(){this.data.setextHeadingSlurpLineEnding=void 0}function P(x){const I=this.stack[this.stack.length-1].children;let A=I[I.length-1];(!A||A.type!=="text")&&(A=fn(),A.position={start:se(x.start),end:void 0},I.push(A)),this.stack.push(A)}function d(x){const I=this.stack.pop();I.value+=this.sliceSerialize(x),I.position.end=se(x.end)}function T(x){const I=this.stack[this.stack.length-1];if(this.data.atHardBreak){const A=I.children[I.children.length-1];A.position.end=se(x.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&n.canContainEols.includes(I.type)&&(P.call(this,x),d.call(this,x))}function E(){this.data.atHardBreak=!0}function $(){const x=this.resume(),I=this.stack[this.stack.length-1];I.value=x}function j(){const x=this.resume(),I=this.stack[this.stack.length-1];I.value=x}function B(){const x=this.resume(),I=this.stack[this.stack.length-1];I.value=x}function W(){const x=this.stack[this.stack.length-1];if(this.data.inReference){const I=this.data.referenceType||"shortcut";x.type+="Reference",x.referenceType=I,delete x.url,delete x.title}else delete x.identifier,delete x.label;this.data.referenceType=void 0}function q(){const x=this.stack[this.stack.length-1];if(this.data.inReference){const I=this.data.referenceType||"shortcut";x.type+="Reference",x.referenceType=I,delete x.url,delete x.title}else delete x.identifier,delete x.label;this.data.referenceType=void 0}function Z(x){const I=this.sliceSerialize(x),A=this.stack[this.stack.length-2];A.label=Mi(I),A.identifier=xe(I).toLowerCase()}function te(){const x=this.stack[this.stack.length-1],I=this.resume(),A=this.stack[this.stack.length-1];this.data.inReference=!0,A.type==="link"?A.children=x.children:A.alt=I}function m(){const x=this.resume(),I=this.stack[this.stack.length-1];I.url=x}function ae(){const x=this.resume(),I=this.stack[this.stack.length-1];I.title=x}function ne(){this.data.inReference=void 0}function g(){this.data.referenceType="collapsed"}function le(x){const I=this.resume(),A=this.stack[this.stack.length-1];A.label=I,A.identifier=xe(this.sliceSerialize(x)).toLowerCase(),this.data.referenceType="full"}function fe(x){this.data.characterReferenceType=x.type}function V(x){const I=this.sliceSerialize(x),A=this.data.characterReferenceType;let N;A?(N=Ut(I,A==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):N=je(I);const H=this.stack[this.stack.length-1];H.value+=N}function ye(x){const I=this.stack.pop();I.position.end=se(x.end)}function re(x){d.call(this,x);const I=this.stack[this.stack.length-1];I.url=this.sliceSerialize(x)}function pe(x){d.call(this,x);const I=this.stack[this.stack.length-1];I.url="mailto:"+this.sliceSerialize(x)}function me(){return{type:"blockquote",children:[]}}function Ge(){return{type:"code",lang:null,meta:null,value:""}}function un(){return{type:"inlineCode",value:""}}function an(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function ln(){return{type:"emphasis",children:[]}}function Ke(){return{type:"heading",depth:0,children:[]}}function Xe(){return{type:"break"}}function Ye(){return{type:"html",value:""}}function on(){return{type:"image",title:null,url:"",alt:null}}function Ze(){return{type:"link",title:null,url:"",children:[]}}function Je(x){return{type:"list",ordered:x.type==="listOrdered",start:null,spread:x._spread,children:[]}}function sn(x){return{type:"listItem",spread:x._spread,checked:null,children:[]}}function cn(){return{type:"paragraph",children:[]}}function hn(){return{type:"strong",children:[]}}function fn(){return{type:"text",value:""}}function pn(){return{type:"thematicBreak"}}}r(Ca,"compiler");function se(e){return{line:e.line,column:e.column,offset:e.offset}}r(se,"point");function nn(e,n){let t=-1;for(;++t<n.length;){const i=n[t];Array.isArray(i)?nn(e,i):Ta(e,i)}}r(nn,"configure");function Ta(e,n){let t;for(t in n)if(tn.call(n,t))switch(t){case"canContainEols":{const i=n[t];i&&e[t].push(...i);break}case"transforms":{const i=n[t];i&&e[t].push(...i);break}case"enter":case"exit":{const i=n[t];i&&Object.assign(e[t],i);break}}}r(Ta,"extension");function xt(e,n){throw e?new Error("Cannot close `"+e.type+"` ("+ve({start:e.start,end:e.end})+"): a different token (`"+n.type+"`, "+ve({start:n.start,end:n.end})+") is open"):new Error("Cannot close document, a token (`"+n.type+"`, "+ve({start:n.start,end:n.end})+") is still open")}r(xt,"defaultOnError");var Ea={name:"tasklistCheck",tokenize:za};function El(){return{text:{91:Ea}}}r(El,"gfmTaskListItem");function za(e,n,t){const i=this;return u;function u(s){return i.previous!==null||!i._gfmTasklistFirstContentOfListItem?t(s):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(s),e.exit("taskListCheckMarker"),a)}function a(s){return U(s)?(e.enter("taskListCheckValueUnchecked"),e.consume(s),e.exit("taskListCheckValueUnchecked"),l):s===88||s===120?(e.enter("taskListCheckValueChecked"),e.consume(s),e.exit("taskListCheckValueChecked"),l):t(s)}function l(s){return s===93?(e.enter("taskListCheckMarker"),e.consume(s),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),o):t(s)}function o(s){return z(s)?n(s):L(s)?e.check({tokenize:_a},n,t)(s):t(s)}}r(za,"tokenizeTasklistCheck");function _a(e,n,t){return D(e,i,"whitespace");function i(u){return u===null?t(u):n(u)}}r(_a,"spaceThenNonSpace");function zl(){return{exit:{taskListCheckValueChecked:bt,taskListCheckValueUnchecked:bt,paragraph:Aa}}}r(zl,"gfmTaskListItemFromMarkdown");function _l(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:La}}}r(_l,"gfmTaskListItemToMarkdown");function bt(e){const n=this.stack[this.stack.length-2];n.type,n.checked=e.type==="taskListCheckValueChecked"}r(bt,"exitCheck");function Aa(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 i=t.children[0];if(i&&i.type==="text"){const u=n.children;let a=-1,l;for(;++a<u.length;){const o=u[a];if(o.type==="paragraph"){l=o;break}}l===t&&(i.value=i.value.slice(1),i.value.length===0?t.children.shift():t.position&&i.position&&typeof i.position.start.offset=="number"&&(i.position.start.column++,i.position.start.offset++,t.position.start=Object.assign({},i.position.start)))}}this.exit(e)}r(Aa,"exitParagraphWithTaskListItem");function La(e,n,t,i){const u=e.children[0],a=typeof e.checked=="boolean"&&u&&u.type==="paragraph",l="["+(e.checked?"x":" ")+"] ",o=t.createTracker(i);a&&o.move(l);let s=Vt.listItem(e,n,t,{...i,...o.current()});return a&&(s=s.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,c)),s;function c(p){return p+l}r(c,"check")}r(La,"listItemWithTaskListItem");function Ma(e){return e.length}r(Ma,"defaultStringLength");function Fa(e,n){const t=n||{},i=(t.align||[]).concat(),u=t.stringLength||Ma,a=[],l=[],o=[],s=[];let c=0,p=-1;for(;++p<e.length;){const v=[],C=[];let b=-1;for(e[p].length>c&&(c=e[p].length);++b<e[p].length;){const _=Ra(e[p][b]);if(t.alignDelimiters!==!1){const S=u(_);C[b]=S,(s[b]===void 0||S>s[b])&&(s[b]=S)}v.push(_)}l[p]=v,o[p]=C}let f=-1;if(typeof i=="object"&&"length"in i)for(;++f<c;)a[f]=yt(i[f]);else{const v=yt(i);for(;++f<c;)a[f]=v}f=-1;const k=[],h=[];for(;++f<c;){const v=a[f];let C="",b="";v===99?(C=":",b=":"):v===108?C=":":v===114&&(b=":");let _=t.alignDelimiters===!1?1:Math.max(1,s[f]-C.length-b.length);const S=C+"-".repeat(_)+b;t.alignDelimiters!==!1&&(_=C.length+_+b.length,_>s[f]&&(s[f]=_),h[f]=_),k[f]=S}l.splice(1,0,k),o.splice(1,0,h),p=-1;const w=[];for(;++p<l.length;){const v=l[p],C=o[p];f=-1;const b=[];for(;++f<c;){const _=v[f]||"";let S="",F="";if(t.alignDelimiters!==!1){const M=s[f]-(C[f]||0),y=a[f];y===114?S=" ".repeat(M):y===99?M%2?(S=" ".repeat(M/2+.5),F=" ".repeat(M/2-.5)):(S=" ".repeat(M/2),F=S):F=" ".repeat(M)}t.delimiterStart!==!1&&!f&&b.push("|"),t.padding!==!1&&!(t.alignDelimiters===!1&&_==="")&&(t.delimiterStart!==!1||f)&&b.push(" "),t.alignDelimiters!==!1&&b.push(S),b.push(_),t.alignDelimiters!==!1&&b.push(F),t.padding!==!1&&b.push(" "),(t.delimiterEnd!==!1||f!==c-1)&&b.push("|")}w.push(t.delimiterEnd===!1?b.join("").replace(/ +$/,""):b.join(""))}return w.join(`
|
|
15
|
-
`)}r(
|
|
14
|
+
`;break;case-2:l=n?" ":" ";break;case-1:if(!n&&u)continue;l=" ";break;default:l=String.fromCharCode(a)}u=a===-2,i.push(l)}return i.join("")}r(Ia,"serializeChunks");function Sa(e){const n={constructs:Bi([ca,...(e||{}).extensions||[]]),content:t($i),defined:[],document:t(Ni),flow:t(ia),lazy:{},string:t(la),text:t(oa)};return n;function t(i){return u;function u(a){return ya(n,i,a)}}}r(Sa,"parse");function va(e){for(;!Xt(e););return e}r(va,"postprocess");var dt=/[\0\t\n\r]/g;function Ca(){let e=1,n="",t=!0,i;return u;function u(a,l,o){const s=[];let c,p,f,k,h;for(a=n+(typeof a=="string"?a.toString():new TextDecoder(l||void 0).decode(a)),f=0,n="",t&&(a.charCodeAt(0)===65279&&f++,t=void 0);f<a.length;){if(dt.lastIndex=f,c=dt.exec(a),k=c&&c.index!==void 0?c.index:a.length,h=a.charCodeAt(k),!c){n=a.slice(f);break}if(h===10&&f===k&&i)s.push(-3),i=void 0;else switch(i&&(s.push(-5),i=void 0),f<k&&(s.push(a.slice(f,k)),e+=k-f),h){case 0:s.push(65533),e++;break;case 9:for(p=Math.ceil(e/4)*4,s.push(-2);e++<p;)s.push(-1);break;case 10:s.push(-4),e=1;break;default:i=!0,e=1}f=k+1}return o&&(i&&s.push(-5),n&&s.push(n),s.push(null)),s}}r(Ca,"preprocess");var nn={}.hasOwnProperty;function zl(e,n,t){return n&&typeof n=="object"&&(t=n,n=void 0),Ea(t)(va(Sa(t).document().write(Ca()(e,n,!0))))}r(zl,"fromMarkdown");function Ea(e){const n={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(Ze),autolinkProtocol:P,autolinkEmail:P,atxHeading:a(Ke),blockQuote:a(me),characterEscape:P,characterReference:P,codeFenced:a(Ge),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:a(Ge,l),codeText:a(an,l),codeTextData:P,data:P,codeFlowValue:P,definition:a(ln),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:a(on),hardBreakEscape:a(Xe),hardBreakTrailing:a(Xe),htmlFlow:a(Ye,l),htmlFlowData:P,htmlText:a(Ye,l),htmlTextData:P,image:a(sn),label:l,link:a(Ze),listItem:a(cn),listItemValue:k,listOrdered:a(Je,f),listUnordered:a(Je),paragraph:a(hn),reference:g,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:a(Ke),strong:a(fn),thematicBreak:a(mn)},exit:{atxHeading:s(),atxHeadingSequence:M,autolink:s(),autolinkEmail:pe,autolinkProtocol:re,blockQuote:s(),characterEscapeValue:d,characterReferenceMarkerHexadecimal:fe,characterReferenceMarkerNumeric:fe,characterReferenceValue:V,characterReference:ye,codeFenced:s(C),codeFencedFence:v,codeFencedFenceInfo:h,codeFencedFenceMeta:w,codeFlowValue:d,codeIndented:s(b),codeText:s(B),codeTextData:d,data:d,definition:s(),definitionDestinationString:F,definitionLabelString:_,definitionTitleString:S,emphasis:s(),hardBreakEscape:s(T),hardBreakTrailing:s(T),htmlFlow:s($),htmlFlowData:d,htmlText:s(j),htmlTextData:d,image:s(q),label:te,labelText:Z,lineEnding:E,link:s(W),listItem:s(),listOrdered:s(),listUnordered:s(),paragraph:s(),referenceString:le,resourceDestinationString:m,resourceTitleString:ae,resource:ne,setextHeading:s(O),setextHeadingLineSequence:R,setextHeadingText:y,strong:s(),thematicBreak:s()}};rn(n,(e||{}).mdastExtensions||[]);const t={};return i;function i(x){let I={type:"root",children:[]};const A={stack:[I],tokenStack:[],config:n,enter:o,exit:c,buffer:l,resume:p,data:t},N=[];let H=-1;for(;++H<x.length;)(x[H][1].type==="listOrdered"||x[H][1].type==="listUnordered")&&(x[H][0]==="enter"?N.push(H):H=u(x,N.pop(),H));for(H=-1;++H<x.length;){const oe=n[x[H][0]];nn.call(oe,x[H][1].type)&&oe[x[H][1].type].call(Object.assign({sliceSerialize:x[H][2].sliceSerialize},A),x[H][1])}if(A.tokenStack.length>0){const oe=A.tokenStack[A.tokenStack.length-1];(oe[1]||xt).call(A,void 0,oe[0])}for(I.position={start:se(x.length>0?x[0][1].start:{line:1,column:1,offset:0}),end:se(x.length>0?x[x.length-2][1].end:{line:1,column:1,offset:0})},H=-1;++H<n.transforms.length;)I=n.transforms[H](I)||I;return I}function u(x,I,A){let N=I-1,H=-1,oe=!1,ge,ie,we,Ie;for(;++N<=A;){const G=x[N];switch(G[1].type){case"listUnordered":case"listOrdered":case"blockQuote":G[0]==="enter"?H++:H--,Ie=void 0;break;case"lineEndingBlank":G[0]==="enter"&&(ge&&!Ie&&!H&&!we&&(we=N),Ie=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Ie=void 0}if(!H&&G[0]==="enter"&&G[1].type==="listItemPrefix"||H===-1&&G[0]==="exit"&&(G[1].type==="listUnordered"||G[1].type==="listOrdered")){if(ge){let ke=N;for(ie=void 0;ke--;){const ue=x[ke];if(ue[1].type==="lineEnding"||ue[1].type==="lineEndingBlank"){if(ue[0]==="exit")continue;ie&&(x[ie][1].type="lineEndingBlank",oe=!0),ue[1].type="lineEnding",ie=ke}else if(!(ue[1].type==="linePrefix"||ue[1].type==="blockQuotePrefix"||ue[1].type==="blockQuotePrefixWhitespace"||ue[1].type==="blockQuoteMarker"||ue[1].type==="listItemIndent"))break}we&&(!ie||we<ie)&&(ge._spread=!0),ge.end=Object.assign({},ie?x[ie][1].start:G[1].end),x.splice(ie||N,0,["exit",ge,G[2]]),N++,A++}if(G[1].type==="listItemPrefix"){const ke={type:"listItem",_spread:!1,start:Object.assign({},G[1].start),end:void 0};ge=ke,x.splice(N,0,["enter",ke,G[2]]),N++,A++,we=void 0,Ie=!0}}}return x[I][1]._spread=oe,A}function a(x,I){return A;function A(N){o.call(this,x(N),N),I&&I.call(this,N)}}function l(){this.stack.push({type:"fragment",children:[]})}function o(x,I,A){this.stack[this.stack.length-1].children.push(x),this.stack.push(x),this.tokenStack.push([I,A||void 0]),x.position={start:se(I.start),end:void 0}}function s(x){return I;function I(A){x&&x.call(this,A),c.call(this,A)}}function c(x,I){const A=this.stack.pop(),N=this.tokenStack.pop();if(N)N[0].type!==x.type&&(I?I.call(this,x,N[0]):(N[1]||xt).call(this,x,N[0]));else throw new Error("Cannot close `"+x.type+"` ("+ve({start:x.start,end:x.end})+"): it’s not open");A.position.end=se(x.end)}function p(){return Ue(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function k(x){if(this.data.expectingFirstListItemValue){const I=this.stack[this.stack.length-2];I.start=Number.parseInt(this.sliceSerialize(x),10),this.data.expectingFirstListItemValue=void 0}}function h(){const x=this.resume(),I=this.stack[this.stack.length-1];I.lang=x}function w(){const x=this.resume(),I=this.stack[this.stack.length-1];I.meta=x}function v(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function C(){const x=this.resume(),I=this.stack[this.stack.length-1];I.value=x.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function b(){const x=this.resume(),I=this.stack[this.stack.length-1];I.value=x.replace(/(\r?\n|\r)$/g,"")}function _(x){const I=this.resume(),A=this.stack[this.stack.length-1];A.label=I,A.identifier=xe(this.sliceSerialize(x)).toLowerCase()}function S(){const x=this.resume(),I=this.stack[this.stack.length-1];I.title=x}function F(){const x=this.resume(),I=this.stack[this.stack.length-1];I.url=x}function M(x){const I=this.stack[this.stack.length-1];I.depth||(I.depth=this.sliceSerialize(x).length)}function y(){this.data.setextHeadingSlurpLineEnding=!0}function R(x){const I=this.stack[this.stack.length-1];I.depth=this.sliceSerialize(x).codePointAt(0)===61?1:2}function O(){this.data.setextHeadingSlurpLineEnding=void 0}function P(x){const I=this.stack[this.stack.length-1].children;let A=I[I.length-1];(!A||A.type!=="text")&&(A=pn(),A.position={start:se(x.start),end:void 0},I.push(A)),this.stack.push(A)}function d(x){const I=this.stack.pop();I.value+=this.sliceSerialize(x),I.position.end=se(x.end)}function E(x){const I=this.stack[this.stack.length-1];if(this.data.atHardBreak){const A=I.children[I.children.length-1];A.position.end=se(x.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&n.canContainEols.includes(I.type)&&(P.call(this,x),d.call(this,x))}function T(){this.data.atHardBreak=!0}function $(){const x=this.resume(),I=this.stack[this.stack.length-1];I.value=x}function j(){const x=this.resume(),I=this.stack[this.stack.length-1];I.value=x}function B(){const x=this.resume(),I=this.stack[this.stack.length-1];I.value=x}function W(){const x=this.stack[this.stack.length-1];if(this.data.inReference){const I=this.data.referenceType||"shortcut";x.type+="Reference",x.referenceType=I,delete x.url,delete x.title}else delete x.identifier,delete x.label;this.data.referenceType=void 0}function q(){const x=this.stack[this.stack.length-1];if(this.data.inReference){const I=this.data.referenceType||"shortcut";x.type+="Reference",x.referenceType=I,delete x.url,delete x.title}else delete x.identifier,delete x.label;this.data.referenceType=void 0}function Z(x){const I=this.sliceSerialize(x),A=this.stack[this.stack.length-2];A.label=Fi(I),A.identifier=xe(I).toLowerCase()}function te(){const x=this.stack[this.stack.length-1],I=this.resume(),A=this.stack[this.stack.length-1];this.data.inReference=!0,A.type==="link"?A.children=x.children:A.alt=I}function m(){const x=this.resume(),I=this.stack[this.stack.length-1];I.url=x}function ae(){const x=this.resume(),I=this.stack[this.stack.length-1];I.title=x}function ne(){this.data.inReference=void 0}function g(){this.data.referenceType="collapsed"}function le(x){const I=this.resume(),A=this.stack[this.stack.length-1];A.label=I,A.identifier=xe(this.sliceSerialize(x)).toLowerCase(),this.data.referenceType="full"}function fe(x){this.data.characterReferenceType=x.type}function V(x){const I=this.sliceSerialize(x),A=this.data.characterReferenceType;let N;A?(N=Wt(I,A==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):N=je(I);const H=this.stack[this.stack.length-1];H.value+=N}function ye(x){const I=this.stack.pop();I.position.end=se(x.end)}function re(x){d.call(this,x);const I=this.stack[this.stack.length-1];I.url=this.sliceSerialize(x)}function pe(x){d.call(this,x);const I=this.stack[this.stack.length-1];I.url="mailto:"+this.sliceSerialize(x)}function me(){return{type:"blockquote",children:[]}}function Ge(){return{type:"code",lang:null,meta:null,value:""}}function an(){return{type:"inlineCode",value:""}}function ln(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function on(){return{type:"emphasis",children:[]}}function Ke(){return{type:"heading",depth:0,children:[]}}function Xe(){return{type:"break"}}function Ye(){return{type:"html",value:""}}function sn(){return{type:"image",title:null,url:"",alt:null}}function Ze(){return{type:"link",title:null,url:"",children:[]}}function Je(x){return{type:"list",ordered:x.type==="listOrdered",start:null,spread:x._spread,children:[]}}function cn(x){return{type:"listItem",spread:x._spread,checked:null,children:[]}}function hn(){return{type:"paragraph",children:[]}}function fn(){return{type:"strong",children:[]}}function pn(){return{type:"text",value:""}}function mn(){return{type:"thematicBreak"}}}r(Ea,"compiler");function se(e){return{line:e.line,column:e.column,offset:e.offset}}r(se,"point");function rn(e,n){let t=-1;for(;++t<n.length;){const i=n[t];Array.isArray(i)?rn(e,i):Ta(e,i)}}r(rn,"configure");function Ta(e,n){let t;for(t in n)if(nn.call(n,t))switch(t){case"canContainEols":{const i=n[t];i&&e[t].push(...i);break}case"transforms":{const i=n[t];i&&e[t].push(...i);break}case"enter":case"exit":{const i=n[t];i&&Object.assign(e[t],i);break}}}r(Ta,"extension");function xt(e,n){throw e?new Error("Cannot close `"+e.type+"` ("+ve({start:e.start,end:e.end})+"): a different token (`"+n.type+"`, "+ve({start:n.start,end:n.end})+") is open"):new Error("Cannot close document, a token (`"+n.type+"`, "+ve({start:n.start,end:n.end})+") is still open")}r(xt,"defaultOnError");var za={name:"tasklistCheck",tokenize:_a};function _l(){return{text:{91:za}}}r(_l,"gfmTaskListItem");function _a(e,n,t){const i=this;return u;function u(s){return i.previous!==null||!i._gfmTasklistFirstContentOfListItem?t(s):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(s),e.exit("taskListCheckMarker"),a)}function a(s){return U(s)?(e.enter("taskListCheckValueUnchecked"),e.consume(s),e.exit("taskListCheckValueUnchecked"),l):s===88||s===120?(e.enter("taskListCheckValueChecked"),e.consume(s),e.exit("taskListCheckValueChecked"),l):t(s)}function l(s){return s===93?(e.enter("taskListCheckMarker"),e.consume(s),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),o):t(s)}function o(s){return z(s)?n(s):L(s)?e.check({tokenize:Aa},n,t)(s):t(s)}}r(_a,"tokenizeTasklistCheck");function Aa(e,n,t){return D(e,i,"whitespace");function i(u){return u===null?t(u):n(u)}}r(Aa,"spaceThenNonSpace");function Al(){return{exit:{taskListCheckValueChecked:bt,taskListCheckValueUnchecked:bt,paragraph:La}}}r(Al,"gfmTaskListItemFromMarkdown");function Ll(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Ma}}}r(Ll,"gfmTaskListItemToMarkdown");function bt(e){const n=this.stack[this.stack.length-2];n.type,n.checked=e.type==="taskListCheckValueChecked"}r(bt,"exitCheck");function La(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 i=t.children[0];if(i&&i.type==="text"){const u=n.children;let a=-1,l;for(;++a<u.length;){const o=u[a];if(o.type==="paragraph"){l=o;break}}l===t&&(i.value=i.value.slice(1),i.value.length===0?t.children.shift():t.position&&i.position&&typeof i.position.start.offset=="number"&&(i.position.start.column++,i.position.start.offset++,t.position.start=Object.assign({},i.position.start)))}}this.exit(e)}r(La,"exitParagraphWithTaskListItem");function Ma(e,n,t,i){const u=e.children[0],a=typeof e.checked=="boolean"&&u&&u.type==="paragraph",l="["+(e.checked?"x":" ")+"] ",o=t.createTracker(i);a&&o.move(l);let s=Ut.listItem(e,n,t,{...i,...o.current()});return a&&(s=s.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,c)),s;function c(p){return p+l}r(c,"check")}r(Ma,"listItemWithTaskListItem");function Fa(e){return e.length}r(Fa,"defaultStringLength");function Ra(e,n){const t=n||{},i=(t.align||[]).concat(),u=t.stringLength||Fa,a=[],l=[],o=[],s=[];let c=0,p=-1;for(;++p<e.length;){const v=[],C=[];let b=-1;for(e[p].length>c&&(c=e[p].length);++b<e[p].length;){const _=Ba(e[p][b]);if(t.alignDelimiters!==!1){const S=u(_);C[b]=S,(s[b]===void 0||S>s[b])&&(s[b]=S)}v.push(_)}l[p]=v,o[p]=C}let f=-1;if(typeof i=="object"&&"length"in i)for(;++f<c;)a[f]=yt(i[f]);else{const v=yt(i);for(;++f<c;)a[f]=v}f=-1;const k=[],h=[];for(;++f<c;){const v=a[f];let C="",b="";v===99?(C=":",b=":"):v===108?C=":":v===114&&(b=":");let _=t.alignDelimiters===!1?1:Math.max(1,s[f]-C.length-b.length);const S=C+"-".repeat(_)+b;t.alignDelimiters!==!1&&(_=C.length+_+b.length,_>s[f]&&(s[f]=_),h[f]=_),k[f]=S}l.splice(1,0,k),o.splice(1,0,h),p=-1;const w=[];for(;++p<l.length;){const v=l[p],C=o[p];f=-1;const b=[];for(;++f<c;){const _=v[f]||"";let S="",F="";if(t.alignDelimiters!==!1){const M=s[f]-(C[f]||0),y=a[f];y===114?S=" ".repeat(M):y===99?M%2?(S=" ".repeat(M/2+.5),F=" ".repeat(M/2-.5)):(S=" ".repeat(M/2),F=S):F=" ".repeat(M)}t.delimiterStart!==!1&&!f&&b.push("|"),t.padding!==!1&&!(t.alignDelimiters===!1&&_==="")&&(t.delimiterStart!==!1||f)&&b.push(" "),t.alignDelimiters!==!1&&b.push(S),b.push(_),t.alignDelimiters!==!1&&b.push(F),t.padding!==!1&&b.push(" "),(t.delimiterEnd!==!1||f!==c-1)&&b.push("|")}w.push(t.delimiterEnd===!1?b.join("").replace(/ +$/,""):b.join(""))}return w.join(`
|
|
15
|
+
`)}r(Ra,"markdownTable");function Ba(e){return e==null?"":String(e)}r(Ba,"serialize");function yt(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}r(yt,"toAlignment");function Ml(){return{enter:{table:Da,tableData:wt,tableHeader:wt,tableRow:$a},exit:{codeText:Oa,table:Pa,tableData:Be,tableHeader:Be,tableRow:Be}}}r(Ml,"gfmTableFromMarkdown");function Da(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}r(Da,"enterTable");function Pa(e){this.exit(e),this.data.inTable=void 0}r(Pa,"exitTable");function $a(e){this.enter({type:"tableRow",children:[]},e)}r($a,"enterRow");function Be(e){this.exit(e)}r(Be,"exit");function wt(e){this.enter({type:"tableCell",children:[]},e)}r(wt,"enterCell");function Oa(e){let n=this.resume();this.data.inTable&&(n=n.replace(/\\([\\|])/g,Na));const t=this.stack[this.stack.length-1];t.type,t.value=n,this.exit(e)}r(Oa,"exitCodeText");function Na(e,n){return n==="|"?n:e}r(Na,"replace");function Fl(e){const n=e||{},t=n.tableCellPadding,i=n.tablePipeAlign,u=n.stringLength,a=t?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
16
16
|
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:k,table:l,tableCell:s,tableRow:o}};function l(h,w,v,C){return c(p(h,v,C),h.align)}function o(h,w,v,C){const b=c([f(h,v,C)]);return b.slice(0,b.indexOf(`
|
|
17
|
-
`))}function s(h,w,v,C){const b=v.enter("tableCell"),_=v.enter("phrasing"),S=v.containerPhrasing(h,{...C,before:a,after:a});return _(),b(),S}function c(h,w){return Fa(h,{align:w,alignDelimiters:i,padding:t,stringLength:u})}function p(h,w,v){const C=h.children;let b=-1;const _=[],S=w.enter("table");for(;++b<C.length;)_[b]=f(C[b],w,v);return S(),_}function f(h,w,v){const C=h.children;let b=-1;const _=[],S=w.enter("tableRow");for(;++b<C.length;)_[b]=s(C[b],h,w,v);return S(),_}function k(h,w,v){let C=Vt.inlineCode(h,w,v);return v.stack.includes("tableCell")&&(C=C.replace(/\|/g,"\\$&")),C}}r(Ll,"gfmTableToMarkdown");var Na=class{static{r(this,"EditMap")}constructor(){this.map=[]}add(e,n,t){Ha(this,e,n,t)}consume(e){if(this.map.sort(function(u,a){return u[0]-a[0]}),this.map.length===0)return;let n=this.map.length;const t=[];for(;n>0;)n-=1,t.push(e.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),e.length=this.map[n][0];t.push(e.slice()),e.length=0;let i=t.pop();for(;i;){for(const u of i)e.push(u);i=t.pop()}this.map.length=0}};function Ha(e,n,t,i){let u=0;if(!(t===0&&i.length===0)){for(;u<e.map.length;){if(e.map[u][0]===n){e.map[u][1]+=t,e.map[u][2].push(...i);return}u+=1}e.map.push([n,t,i])}}r(Ha,"addImplementation");function ja(e,n){let t=!1;const i=[];for(;n<e.length;){const u=e[n];if(t){if(u[0]==="enter")u[1].type==="tableContent"&&i.push(e[n+1][1].type==="tableDelimiterMarker"?"left":"none");else if(u[1].type==="tableContent"){if(e[n-1][1].type==="tableDelimiterMarker"){const a=i.length-1;i[a]=i[a]==="left"?"center":"right"}}else if(u[1].type==="tableDelimiterRow")break}else u[0]==="enter"&&u[1].type==="tableDelimiterRow"&&(t=!0);n+=1}return i}r(ja,"gfmTableAlign");function Ml(){return{flow:{null:{name:"table",tokenize:qa,resolveAll:Va}}}}r(Ml,"gfmTable");function qa(e,n,t){const i=this;let u=0,a=0,l;return o;function o(d){let T=i.events.length-1;for(;T>-1;){const j=i.events[T][1].type;if(j==="lineEnding"||j==="linePrefix")T--;else break}const E=T>-1?i.events[T][1].type:null,$=E==="tableHead"||E==="tableRow"?y:s;return $===y&&i.parser.lazy[i.now().line]?t(d):$(d)}function s(d){return e.enter("tableHead"),e.enter("tableRow"),c(d)}function c(d){return d===124||(l=!0,a+=1),p(d)}function p(d){return d===null?t(d):z(d)?a>1?(a=0,i.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),h):t(d):L(d)?D(e,p,"whitespace")(d):(a+=1,l&&(l=!1,u+=1),d===124?(e.enter("tableCellDivider"),e.consume(d),e.exit("tableCellDivider"),l=!0,p):(e.enter("data"),f(d)))}function f(d){return d===null||d===124||U(d)?(e.exit("data"),p(d)):(e.consume(d),d===92?k:f)}function k(d){return d===92||d===124?(e.consume(d),f):f(d)}function h(d){return i.interrupt=!1,i.parser.lazy[i.now().line]?t(d):(e.enter("tableDelimiterRow"),l=!1,L(d)?D(e,w,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(d):w(d))}function w(d){return d===45||d===58?C(d):d===124?(l=!0,e.enter("tableCellDivider"),e.consume(d),e.exit("tableCellDivider"),v):M(d)}function v(d){return L(d)?D(e,C,"whitespace")(d):C(d)}function C(d){return d===58?(a+=1,l=!0,e.enter("tableDelimiterMarker"),e.consume(d),e.exit("tableDelimiterMarker"),b):d===45?(a+=1,b(d)):d===null||z(d)?F(d):M(d)}function b(d){return d===45?(e.enter("tableDelimiterFiller"),_(d)):M(d)}function _(d){return d===45?(e.consume(d),_):d===58?(l=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(d),e.exit("tableDelimiterMarker"),S):(e.exit("tableDelimiterFiller"),S(d))}function S(d){return L(d)?D(e,F,"whitespace")(d):F(d)}function F(d){return d===124?w(d):d===null||z(d)?!l||u!==a?M(d):(e.exit("tableDelimiterRow"),e.exit("tableHead"),n(d)):M(d)}function M(d){return t(d)}function y(d){return e.enter("tableRow"),R(d)}function R(d){return d===124?(e.enter("tableCellDivider"),e.consume(d),e.exit("tableCellDivider"),R):d===null||z(d)?(e.exit("tableRow"),n(d)):L(d)?D(e,R,"whitespace")(d):(e.enter("data"),O(d))}function O(d){return d===null||d===124||U(d)?(e.exit("data"),R(d)):(e.consume(d),d===92?P:O)}function P(d){return d===92||d===124?(e.consume(d),O):O(d)}}r(qa,"tokenizeTable");function Va(e,n){let t=-1,i=!0,u=0,a=[0,0,0,0],l=[0,0,0,0],o=!1,s=0,c,p,f;const k=new Na;for(;++t<e.length;){const h=e[t],w=h[1];h[0]==="enter"?w.type==="tableHead"?(o=!1,s!==0&&(It(k,n,s,c,p),p=void 0,s=0),c={type:"table",start:Object.assign({},w.start),end:Object.assign({},w.end)},k.add(t,0,[["enter",c,n]])):w.type==="tableRow"||w.type==="tableDelimiterRow"?(i=!0,f=void 0,a=[0,0,0,0],l=[0,t+1,0,0],o&&(o=!1,p={type:"tableBody",start:Object.assign({},w.start),end:Object.assign({},w.end)},k.add(t,0,[["enter",p,n]])),u=w.type==="tableDelimiterRow"?2:p?3:1):u&&(w.type==="data"||w.type==="tableDelimiterMarker"||w.type==="tableDelimiterFiller")?(i=!1,l[2]===0&&(a[1]!==0&&(l[0]=l[1],f=Ee(k,n,a,u,void 0,f),a=[0,0,0,0]),l[2]=t)):w.type==="tableCellDivider"&&(i?i=!1:(a[1]!==0&&(l[0]=l[1],f=Ee(k,n,a,u,void 0,f)),a=l,l=[a[1],t,0,0])):w.type==="tableHead"?(o=!0,s=t):w.type==="tableRow"||w.type==="tableDelimiterRow"?(s=t,a[1]!==0?(l[0]=l[1],f=Ee(k,n,a,u,t,f)):l[1]!==0&&(f=Ee(k,n,l,u,t,f)),u=0):u&&(w.type==="data"||w.type==="tableDelimiterMarker"||w.type==="tableDelimiterFiller")&&(l[3]=t)}for(s!==0&&It(k,n,s,c,p),k.consume(n.events),t=-1;++t<n.events.length;){const h=n.events[t];h[0]==="enter"&&h[1].type==="table"&&(h[1]._align=ja(n.events,t))}return e}r(Va,"resolveTable");function Ee(e,n,t,i,u,a){const l=i===1?"tableHeader":i===2?"tableDelimiter":"tableData",o="tableContent";t[0]!==0&&(a.end=Object.assign({},de(n.events,t[0])),e.add(t[0],0,[["exit",a,n]]));const s=de(n.events,t[1]);if(a={type:l,start:Object.assign({},s),end:Object.assign({},s)},e.add(t[1],0,[["enter",a,n]]),t[2]!==0){const c=de(n.events,t[2]),p=de(n.events,t[3]),f={type:o,start:Object.assign({},c),end:Object.assign({},p)};if(e.add(t[2],0,[["enter",f,n]]),i!==2){const k=n.events[t[2]],h=n.events[t[3]];if(k[1].end=Object.assign({},h[1].end),k[1].type="chunkText",k[1].contentType="text",t[3]>t[2]+1){const w=t[2]+1,v=t[3]-t[2]-1;e.add(w,v,[])}}e.add(t[3]+1,0,[["exit",f,n]])}return u!==void 0&&(a.end=Object.assign({},de(n.events,u)),e.add(u,0,[["exit",a,n]]),a=void 0),a}r(Ee,"flushCell");function It(e,n,t,i,u){const a=[],l=de(n.events,t);u&&(u.end=Object.assign({},l),a.push(["exit",u,n])),i.end=Object.assign({},l),a.push(["exit",i,n]),e.add(t+1,0,a)}r(It,"flushTableEnd");function de(e,n){const t=e[n],i=t[0]==="enter"?"start":"end";return t[1][i]}r(de,"getPoint");var Ua={r:24,g:24,b:27},Wa={r:255,g:255,b:255};function rn(e){const n=/^#?([0-9a-f]{3,6})$/i.exec(e.trim());if(!n)return null;let t=n[1];return t.length===3&&(t=t.split("").map(i=>`${i}${i}`).join("")),t.length!==6?null:{r:parseInt(t.slice(0,2),16),g:parseInt(t.slice(2,4),16),b:parseInt(t.slice(4,6),16)}}r(rn,"hexToRgb");function De(e){const n=e/255;return n<=.03928?n/12.92:((n+.055)/1.055)**2.4}r(De,"relativeLuminanceChannel");function Pe(e,n,t){return .2126*De(e)+.7152*De(n)+.0722*De(t)}r(Pe,"relativeLuminance");function St(e,n){const t=Math.max(e,n),i=Math.min(e,n);return(t+.05)/(i+.05)}r(St,"contrastRatio");function Qa(){return typeof document>"u"?!0:document.documentElement.classList.contains("dark")}r(Qa,"isDarkMode");function Ga(e,n,t){return{r:Math.round(t*e.r+(1-t)*n.r),g:Math.round(t*e.g+(1-t)*n.g),b:Math.round(t*e.b+(1-t)*n.b)}}r(Ga,"composite");var Ka="#f8fafc",Xa="#111827",vt=Ka,Ya=Xa;function Za(e,n=.22){const t=rn(e);if(!t)return vt;const i=Ga(t,Qa()?Ua:Wa,n),u=Pe(i.r,i.g,i.b),a=Pe(248,250,252),l=Pe(17,24,39);return St(u,a)>=St(u,l)?vt:Ya}r(Za,"pickTextColorForPillBg");var Ct=new Map;function Fl(e){if(/^https?:\/\//i.test(e.trim()))return null;const n=hr(e);if(n)return{kind:"issue",identifier:n.identifier};const t=ar(e);if(t)return{kind:"agent",agentId:t.agentId,icon:t.icon};const i=ur(e);if(i)return{kind:"project",projectId:i.projectId,color:i.color};const u=lr(e);if(u)return{kind:"user",userId:u.userId};const a=or(e);if(a)return{kind:"skill",skillId:a.skillId,slug:a.slug};const l=sr(e);return l?{kind:"routine",routineId:l.routineId}:null}r(Fl,"parseMentionChipHref");function Ja(e){const n={};if(e.kind==="project"&&e.color){const t=tl(e.color);Object.assign(n,t),n["--paperclip-mention-project-color"]=e.color}if(e.kind==="agent"){const t=nl(e.icon);t&&(n["--paperclip-mention-icon-mask"]=t)}return Object.keys(n).length>0?n:void 0}r(Ja,"mentionChipInlineStyle");function Rl(e,n){el(e),e.dataset.mentionKind=n.kind,e.setAttribute("contenteditable","false"),e.classList.add("paperclip-mention-chip",`paperclip-mention-chip--${n.kind}`),n.kind==="project"&&e.classList.add("paperclip-project-mention-chip");const t=Ja(n);if(t)for(const[i,u]of Object.entries(t))typeof u=="string"&&(i.startsWith("--")?e.style.setProperty(i,u):e.style[i]=u)}r(Rl,"applyMentionChipDecoration");function el(e){delete e.dataset.mentionKind,e.classList.remove("paperclip-mention-chip","paperclip-mention-chip--agent","paperclip-mention-chip--issue","paperclip-mention-chip--project","paperclip-mention-chip--routine","paperclip-mention-chip--user","paperclip-mention-chip--skill","paperclip-project-mention-chip"),e.removeAttribute("contenteditable"),e.style.removeProperty("border-color"),e.style.removeProperty("background-color"),e.style.removeProperty("color"),e.style.removeProperty("--paperclip-mention-project-color"),e.style.removeProperty("--paperclip-mention-icon-mask")}r(el,"clearMentionChipDecoration");function tl(e){const n=rn(e);return n?{borderColor:e,backgroundColor:`rgba(${n.r}, ${n.g}, ${n.b}, 0.22)`,color:Za(e)}:{}}r(tl,"projectMentionColors");function nl(e){const n=e??"__default__",t=Ct.get(n);if(t)return t;const i=rl(zr(e));if(!Array.isArray(i)||i.length===0)return null;const u=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="#000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">${i.map(([l,o])=>{const s=Object.entries(o).filter(([c])=>c!=="key").map(([c,p])=>`${c}="${il(String(p))}"`).join(" ");return`<${l}${s?` ${s}`:""}></${l}>`}).join("")}</svg>`,a=`url("data:image/svg+xml,${encodeURIComponent(u)}")`;return Ct.set(n,a),a}r(nl,"buildAgentIconMask");function rl(e){const n=e.iconNode;if(Array.isArray(n)&&n.length>0)return n;const t=e.render,i=(typeof t=="function"?t({},null):null)?.props?.iconNode;return Array.isArray(i)&&i.length>0?i:null}r(rl,"resolveLucideIconNode");function il(e){return e.replaceAll("&","&").replaceAll('"',""").replaceAll("<","<").replaceAll(">",">")}r(il,"escapeAttribute");export{Cr as $,Sl as A,Ae as B,Ve as C,D,Ur as E,Il as F,z as G,ee as H,yl as I,Mr as J,U as K,xl as L,ve as M,je as N,vl as O,wl as P,kl as Q,bl as R,ui as S,Qr as T,J as U,be as V,$e as W,K as X,Fr as Y,zr as Z,Ri as _,Xa as a,ml as at,ci as b,Ml as c,ar as ct,zl as d,dr as et,_l as f,xe as g,Me as h,Fl as i,cl as it,X as j,Cl as k,Al as l,Tl as m,el as n,gl as nt,Ka as o,pl as ot,El as p,L as q,Ja as r,hl as rt,Za as s,fl as st,Rl as t,gr as tt,Ll as u,Mi as v,Te as w,li as x,Vt as y,dl as z};
|
|
17
|
+
`))}function s(h,w,v,C){const b=v.enter("tableCell"),_=v.enter("phrasing"),S=v.containerPhrasing(h,{...C,before:a,after:a});return _(),b(),S}function c(h,w){return Ra(h,{align:w,alignDelimiters:i,padding:t,stringLength:u})}function p(h,w,v){const C=h.children;let b=-1;const _=[],S=w.enter("table");for(;++b<C.length;)_[b]=f(C[b],w,v);return S(),_}function f(h,w,v){const C=h.children;let b=-1;const _=[],S=w.enter("tableRow");for(;++b<C.length;)_[b]=s(C[b],h,w,v);return S(),_}function k(h,w,v){let C=Ut.inlineCode(h,w,v);return v.stack.includes("tableCell")&&(C=C.replace(/\|/g,"\\$&")),C}}r(Fl,"gfmTableToMarkdown");var Ha=class{static{r(this,"EditMap")}constructor(){this.map=[]}add(e,n,t){ja(this,e,n,t)}consume(e){if(this.map.sort(function(u,a){return u[0]-a[0]}),this.map.length===0)return;let n=this.map.length;const t=[];for(;n>0;)n-=1,t.push(e.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),e.length=this.map[n][0];t.push(e.slice()),e.length=0;let i=t.pop();for(;i;){for(const u of i)e.push(u);i=t.pop()}this.map.length=0}};function ja(e,n,t,i){let u=0;if(!(t===0&&i.length===0)){for(;u<e.map.length;){if(e.map[u][0]===n){e.map[u][1]+=t,e.map[u][2].push(...i);return}u+=1}e.map.push([n,t,i])}}r(ja,"addImplementation");function qa(e,n){let t=!1;const i=[];for(;n<e.length;){const u=e[n];if(t){if(u[0]==="enter")u[1].type==="tableContent"&&i.push(e[n+1][1].type==="tableDelimiterMarker"?"left":"none");else if(u[1].type==="tableContent"){if(e[n-1][1].type==="tableDelimiterMarker"){const a=i.length-1;i[a]=i[a]==="left"?"center":"right"}}else if(u[1].type==="tableDelimiterRow")break}else u[0]==="enter"&&u[1].type==="tableDelimiterRow"&&(t=!0);n+=1}return i}r(qa,"gfmTableAlign");function Rl(){return{flow:{null:{name:"table",tokenize:Va,resolveAll:Ua}}}}r(Rl,"gfmTable");function Va(e,n,t){const i=this;let u=0,a=0,l;return o;function o(d){let E=i.events.length-1;for(;E>-1;){const j=i.events[E][1].type;if(j==="lineEnding"||j==="linePrefix")E--;else break}const T=E>-1?i.events[E][1].type:null,$=T==="tableHead"||T==="tableRow"?y:s;return $===y&&i.parser.lazy[i.now().line]?t(d):$(d)}function s(d){return e.enter("tableHead"),e.enter("tableRow"),c(d)}function c(d){return d===124||(l=!0,a+=1),p(d)}function p(d){return d===null?t(d):z(d)?a>1?(a=0,i.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),h):t(d):L(d)?D(e,p,"whitespace")(d):(a+=1,l&&(l=!1,u+=1),d===124?(e.enter("tableCellDivider"),e.consume(d),e.exit("tableCellDivider"),l=!0,p):(e.enter("data"),f(d)))}function f(d){return d===null||d===124||U(d)?(e.exit("data"),p(d)):(e.consume(d),d===92?k:f)}function k(d){return d===92||d===124?(e.consume(d),f):f(d)}function h(d){return i.interrupt=!1,i.parser.lazy[i.now().line]?t(d):(e.enter("tableDelimiterRow"),l=!1,L(d)?D(e,w,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(d):w(d))}function w(d){return d===45||d===58?C(d):d===124?(l=!0,e.enter("tableCellDivider"),e.consume(d),e.exit("tableCellDivider"),v):M(d)}function v(d){return L(d)?D(e,C,"whitespace")(d):C(d)}function C(d){return d===58?(a+=1,l=!0,e.enter("tableDelimiterMarker"),e.consume(d),e.exit("tableDelimiterMarker"),b):d===45?(a+=1,b(d)):d===null||z(d)?F(d):M(d)}function b(d){return d===45?(e.enter("tableDelimiterFiller"),_(d)):M(d)}function _(d){return d===45?(e.consume(d),_):d===58?(l=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(d),e.exit("tableDelimiterMarker"),S):(e.exit("tableDelimiterFiller"),S(d))}function S(d){return L(d)?D(e,F,"whitespace")(d):F(d)}function F(d){return d===124?w(d):d===null||z(d)?!l||u!==a?M(d):(e.exit("tableDelimiterRow"),e.exit("tableHead"),n(d)):M(d)}function M(d){return t(d)}function y(d){return e.enter("tableRow"),R(d)}function R(d){return d===124?(e.enter("tableCellDivider"),e.consume(d),e.exit("tableCellDivider"),R):d===null||z(d)?(e.exit("tableRow"),n(d)):L(d)?D(e,R,"whitespace")(d):(e.enter("data"),O(d))}function O(d){return d===null||d===124||U(d)?(e.exit("data"),R(d)):(e.consume(d),d===92?P:O)}function P(d){return d===92||d===124?(e.consume(d),O):O(d)}}r(Va,"tokenizeTable");function Ua(e,n){let t=-1,i=!0,u=0,a=[0,0,0,0],l=[0,0,0,0],o=!1,s=0,c,p,f;const k=new Ha;for(;++t<e.length;){const h=e[t],w=h[1];h[0]==="enter"?w.type==="tableHead"?(o=!1,s!==0&&(It(k,n,s,c,p),p=void 0,s=0),c={type:"table",start:Object.assign({},w.start),end:Object.assign({},w.end)},k.add(t,0,[["enter",c,n]])):w.type==="tableRow"||w.type==="tableDelimiterRow"?(i=!0,f=void 0,a=[0,0,0,0],l=[0,t+1,0,0],o&&(o=!1,p={type:"tableBody",start:Object.assign({},w.start),end:Object.assign({},w.end)},k.add(t,0,[["enter",p,n]])),u=w.type==="tableDelimiterRow"?2:p?3:1):u&&(w.type==="data"||w.type==="tableDelimiterMarker"||w.type==="tableDelimiterFiller")?(i=!1,l[2]===0&&(a[1]!==0&&(l[0]=l[1],f=Te(k,n,a,u,void 0,f),a=[0,0,0,0]),l[2]=t)):w.type==="tableCellDivider"&&(i?i=!1:(a[1]!==0&&(l[0]=l[1],f=Te(k,n,a,u,void 0,f)),a=l,l=[a[1],t,0,0])):w.type==="tableHead"?(o=!0,s=t):w.type==="tableRow"||w.type==="tableDelimiterRow"?(s=t,a[1]!==0?(l[0]=l[1],f=Te(k,n,a,u,t,f)):l[1]!==0&&(f=Te(k,n,l,u,t,f)),u=0):u&&(w.type==="data"||w.type==="tableDelimiterMarker"||w.type==="tableDelimiterFiller")&&(l[3]=t)}for(s!==0&&It(k,n,s,c,p),k.consume(n.events),t=-1;++t<n.events.length;){const h=n.events[t];h[0]==="enter"&&h[1].type==="table"&&(h[1]._align=qa(n.events,t))}return e}r(Ua,"resolveTable");function Te(e,n,t,i,u,a){const l=i===1?"tableHeader":i===2?"tableDelimiter":"tableData",o="tableContent";t[0]!==0&&(a.end=Object.assign({},de(n.events,t[0])),e.add(t[0],0,[["exit",a,n]]));const s=de(n.events,t[1]);if(a={type:l,start:Object.assign({},s),end:Object.assign({},s)},e.add(t[1],0,[["enter",a,n]]),t[2]!==0){const c=de(n.events,t[2]),p=de(n.events,t[3]),f={type:o,start:Object.assign({},c),end:Object.assign({},p)};if(e.add(t[2],0,[["enter",f,n]]),i!==2){const k=n.events[t[2]],h=n.events[t[3]];if(k[1].end=Object.assign({},h[1].end),k[1].type="chunkText",k[1].contentType="text",t[3]>t[2]+1){const w=t[2]+1,v=t[3]-t[2]-1;e.add(w,v,[])}}e.add(t[3]+1,0,[["exit",f,n]])}return u!==void 0&&(a.end=Object.assign({},de(n.events,u)),e.add(u,0,[["exit",a,n]]),a=void 0),a}r(Te,"flushCell");function It(e,n,t,i,u){const a=[],l=de(n.events,t);u&&(u.end=Object.assign({},l),a.push(["exit",u,n])),i.end=Object.assign({},l),a.push(["exit",i,n]),e.add(t+1,0,a)}r(It,"flushTableEnd");function de(e,n){const t=e[n],i=t[0]==="enter"?"start":"end";return t[1][i]}r(de,"getPoint");var Wa={r:24,g:24,b:27},Qa={r:255,g:255,b:255};function un(e){const n=/^#?([0-9a-f]{3,6})$/i.exec(e.trim());if(!n)return null;let t=n[1];return t.length===3&&(t=t.split("").map(i=>`${i}${i}`).join("")),t.length!==6?null:{r:parseInt(t.slice(0,2),16),g:parseInt(t.slice(2,4),16),b:parseInt(t.slice(4,6),16)}}r(un,"hexToRgb");function De(e){const n=e/255;return n<=.03928?n/12.92:((n+.055)/1.055)**2.4}r(De,"relativeLuminanceChannel");function Pe(e,n,t){return .2126*De(e)+.7152*De(n)+.0722*De(t)}r(Pe,"relativeLuminance");function St(e,n){const t=Math.max(e,n),i=Math.min(e,n);return(t+.05)/(i+.05)}r(St,"contrastRatio");function Ga(){return typeof document>"u"?!0:document.documentElement.classList.contains("dark")}r(Ga,"isDarkMode");function Ka(e,n,t){return{r:Math.round(t*e.r+(1-t)*n.r),g:Math.round(t*e.g+(1-t)*n.g),b:Math.round(t*e.b+(1-t)*n.b)}}r(Ka,"composite");var Xa="#f8fafc",Ya="#111827",vt=Xa,Za=Ya;function Ja(e,n=.22){const t=un(e);if(!t)return vt;const i=Ka(t,Ga()?Wa:Qa,n),u=Pe(i.r,i.g,i.b),a=Pe(248,250,252),l=Pe(17,24,39);return St(u,a)>=St(u,l)?vt:Za}r(Ja,"pickTextColorForPillBg");var Ct=new Map;function Bl(e){if(/^https?:\/\//i.test(e.trim()))return null;const n=fr(e);if(n)return{kind:"issue",identifier:n.identifier};const t=Tt(e);if(t)return{kind:"agent",agentId:t.agentId,icon:t.icon};const i=lr(e);if(i)return{kind:"project",projectId:i.projectId,color:i.color};const u=or(e);if(u)return{kind:"user",userId:u.userId};const a=sr(e);if(a)return{kind:"skill",skillId:a.skillId,slug:a.slug};const l=cr(e);return l?{kind:"routine",routineId:l.routineId}:null}r(Bl,"parseMentionChipHref");function el(e){const n={};if(e.kind==="project"&&e.color){const t=nl(e.color);Object.assign(n,t),n["--paperclip-mention-project-color"]=e.color}if(e.kind==="agent"){const t=rl(e.icon);t&&(n["--paperclip-mention-icon-mask"]=t)}return Object.keys(n).length>0?n:void 0}r(el,"mentionChipInlineStyle");function Dl(e,n){tl(e),e.dataset.mentionKind=n.kind,e.setAttribute("contenteditable","false"),e.classList.add("paperclip-mention-chip",`paperclip-mention-chip--${n.kind}`),n.kind==="project"&&e.classList.add("paperclip-project-mention-chip");const t=el(n);if(t)for(const[i,u]of Object.entries(t))typeof u=="string"&&(i.startsWith("--")?e.style.setProperty(i,u):e.style[i]=u)}r(Dl,"applyMentionChipDecoration");function tl(e){delete e.dataset.mentionKind,e.classList.remove("paperclip-mention-chip","paperclip-mention-chip--agent","paperclip-mention-chip--issue","paperclip-mention-chip--project","paperclip-mention-chip--routine","paperclip-mention-chip--user","paperclip-mention-chip--skill","paperclip-project-mention-chip"),e.removeAttribute("contenteditable"),e.style.removeProperty("border-color"),e.style.removeProperty("background-color"),e.style.removeProperty("color"),e.style.removeProperty("--paperclip-mention-project-color"),e.style.removeProperty("--paperclip-mention-icon-mask")}r(tl,"clearMentionChipDecoration");function nl(e){const n=un(e);return n?{borderColor:e,backgroundColor:`rgba(${n.r}, ${n.g}, ${n.b}, 0.22)`,color:Ja(e)}:{}}r(nl,"projectMentionColors");function rl(e){const n=e??"__default__",t=Ct.get(n);if(t)return t;const i=il(_r(e));if(!Array.isArray(i)||i.length===0)return null;const u=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="#000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">${i.map(([l,o])=>{const s=Object.entries(o).filter(([c])=>c!=="key").map(([c,p])=>`${c}="${ul(String(p))}"`).join(" ");return`<${l}${s?` ${s}`:""}></${l}>`}).join("")}</svg>`,a=`url("data:image/svg+xml,${encodeURIComponent(u)}")`;return Ct.set(n,a),a}r(rl,"buildAgentIconMask");function il(e){const n=e.iconNode;if(Array.isArray(n)&&n.length>0)return n;const t=e.render,i=(typeof t=="function"?t({},null):null)?.props?.iconNode;return Array.isArray(i)&&i.length>0?i:null}r(il,"resolveLucideIconNode");function ul(e){return e.replaceAll("&","&").replaceAll('"',""").replaceAll("<","<").replaceAll(">",">")}r(ul,"escapeAttribute");export{Er as $,Cl as A,Ae as B,Ve as C,D,Wr as E,vl as F,z as G,ee as H,Il as I,Fr as J,U as K,yl as L,ve as M,je as N,El as O,Sl as P,xl as Q,wl as R,ai as S,Gr as T,J as U,be as V,$e as W,K as X,Rr as Y,_r as Z,Bi as _,Ya as a,gl as at,hi as b,Rl as c,kl as ct,Al as d,xr as et,Ll as f,xe as g,Me as h,Bl as i,hl as it,X as j,Tl as k,Ml as l,Tt as lt,zl as m,tl as n,dl as nt,Xa as o,ml as ot,_l as p,L as q,el as r,fl as rt,Ja as s,pl as st,Dl as t,kr as tt,Fl as u,Fi as v,Ee as w,oi as x,Ut as y,bl as z};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as a}from"./createLucideIcon-
|
|
1
|
+
import{t as a}from"./createLucideIcon-CLQ6uxcH.js";var t=[["path",{d:"M12 16h.01",key:"1drbdi"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M15.312 2a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586l-4.688-4.688A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2z",key:"1fd625"}]],o=a("octagon-alert",t);export{o as t};
|