// Metro module 12088 (f12089). import * as _classCallCheck from "./_classCallCheck"; import * as __createClass from "./_createClass"; import { HermesBuiltin } from "../_hermes/prelude"; let env8319 = {}; const Doc = function Doc(args = []) { _classCallCheck(this, Doc); this.content = []; this.indent = 0; if (this) { this.args = args; } }; exports.Doc = __createClass(Doc, [{ key: "indented", value: function indented(a0) { this.indent = this.indent + 1; a0(this); this.indent = this.indent - 1; } }, { key: "write", value: function write(a0) { let c27254_0; if (typeof a0 === "function") { a0(this, { execution: "sync" }); a0(this, { execution: "async" }); return void 0; } const r25 = a0.split("\n").filter((item) => item); const r7 = Math; c27254_0 = r7.min.apply(r7, [...r25.map((item) => item.length - item.trimStart().length)]); for (const item of r25.map((item) => item.slice(c27254_0)).map((item) => " ".repeat(2 * this.indent) + item)) { this.content.push(item); } } }, { key: "compile", value: function compile() { const r6 = Function; const args = this?.args; const r13 = [,]; const r1 = HermesBuiltin.arraySpread(r13, args, 0); let r9 = this?.content; if (r9 == null) { r9 = [""]; } r13[r1] = [...r9.map((item) => ` ${item}`)].join("\n"); return new r6(...r13); } }]);