"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const Functional_1 = require("../../../../../../Class/Functional");
const Image_1 = require("../../../../../../wrap/Image");
const _ids_1 = require("../../../../../_ids");
class Image1 extends Functional_1.Functional {
    constructor(system) {
        super({
            i: ['image'],
            o: ['image'],
        }, {
            input: {
                image: {
                    ref: true,
                },
            },
            output: {
                image: {
                    ref: true,
                },
            },
        }, system, _ids_1.ID_IMAGE_0);
    }
    async f({ image }, done) {
        const image_ = await image.image();
        const image__ = (0, Image_1.wrapImage)(image_, this.__system);
        done({
            image: image__,
        });
    }
}
exports.default = Image1;
//# sourceMappingURL=index.js.map