"use strict";function A(c,i,t){function h(r){return r.trim().split(" ",2)[0]===i}function y(r,o,f,v,e){return r[o].nesting===1&&r[o].attrJoin("class",i),e.renderToken(r,o,f,v,e)}t=t||{};const m=3,s=t.marker||":",p=s.charCodeAt(0),u=s.length,_=t.validate||h,b=t.render||y;function a(r,o,f,v){let e,M=!1,n=r.bMarks[o]+r.tShift[o],d=r.eMarks[o];if(p!==r.src.charCodeAt(n))return!1;for(e=n+1;e<=d&&s[(e-n)%u]===r.src[e];e++);const C=Math.floor((e-n)/u);if(C=f||(n=r.bMarks[l]+r.tShift[l],d=r.eMarks[l],n=4)){for(e=n+1;e<=d&&s[(e-n)%u]===r.src[e];e++);if(!(Math.floor((e-n)/u)`
${a?`

${a}

`:""} `,_=()=>`
`);const b=[];p=function(a,r){const o=a[r];if(a[r].nesting===1){const f=o.info.trim().slice(t.length).trim();return b.push(f),u(f)}else{const f=b.pop()||"";return _(f)}},m||(m=function(a){return!!a.trim().match(new RegExp(`^${t}\\s*(.*)$`))})}c.use(A,t,{render:p,validate:m,marker:s})}function S(c){k(c,{type:"warning"}),k(c,{type:"danger"}),k(c,{type:"tip"}),k(c,{type:"info"}),k(c,{type:"details",before:i=>`
${i?`${i}`:""} `,after:()=>`
`})}exports.containerPlugin=k,exports.presetContainer=S; //# sourceMappingURL=index.cjs.map