import{p as s,s as m,f as l,c as i,S as p,t as o}from"./Code-BLWhl1y6.js";import{yaml as f}from"./yaml-DsCXHVTH.js";import"./i18n-Dnhn5Rxr.js";import"./index-DWyDLubb.js";const n=/^---\s*$/m,M={defineNodes:[{name:"Frontmatter",block:!0},"FrontmatterMark"],props:[m({Frontmatter:[o.documentMeta,o.monospace],FrontmatterMark:o.processingInstruction}),l.add({Frontmatter:i,FrontmatterMark:()=>null})],wrap:s(t=>{const{parser:e}=p.define(f);return t.type.name==="Frontmatter"?{parser:e,overlay:[{from:t.from+4,to:t.to-4}]}:null}),parseBlock:[{name:"Frontmatter",before:"HorizontalRule",parse:(t,e)=>{let r;const a=new Array;if(t.lineStart===0&&n.test(e.text)){for(a.push(t.elt("FrontmatterMark",0,4));t.nextLine();)if(n.test(e.text)){r=t.lineStart+4;break}return r!==void 0&&(a.push(t.elt("FrontmatterMark",r-4,r)),t.addElement(t.elt("Frontmatter",0,r,a))),!0}return!1}}]};export{M as frontmatter};
