"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const I=require("../util/check-bullet.cjs.js"),k=require("../util/check-list-item-indent.cjs.js");function b(c,e,t,o){const n=k.checkListItemIndent(t);let r=t.bulletCurrent||I.checkBullet(t);e&&e.type==="list"&&e.ordered&&(r=(typeof e.start=="number"&&e.start>-1?e.start:1)+(t.options.incrementListMarker===!1?0:e.children.indexOf(c))+r);let i=r.length+1;(n==="tab"||n==="mixed"&&(e&&e.type==="list"&&e.spread||c.spread))&&(i=Math.ceil(i/4)*4);const l=t.createTracker(o);l.move(r+" ".repeat(i-r.length)),l.shift(i);const m=t.enter("listItem"),d=t.indentLines(t.containerFlow(c,l.current()),f);return m(),d;function f(s,h,u){return h?(u?"":" ".repeat(i))+s:(u?r:r+" ".repeat(i-r.length))+s}}exports.listItem=b;
//# sourceMappingURL=list-item.cjs.js.map
