'use strict';module.exports=(string,count=1,options)=>{options={indent:' ',includeEmptyLines:false,...options};if(typeofstring!=='string'){thrownewTypeError(`Expected \`input\` to be a \`string\`, got \`${typeofstring}\``);}if(typeofcount!=='number'){thrownewTypeError(`Expected \`count\` to be a \`number\`, got \`${typeofcount}\``);}if(typeofoptions.indent!=='string'){thrownewTypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeofoptions.indent}\``);}if(count===0){returnstring;}constregex=options.includeEmptyLines?/^/gm:/^(?!\s*$)/gm;returnstring.replace(regex,options.indent.repeat(count));};