"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.wrapTextEncoder = wrapTextEncoder;
const _1 = require("../Class/$");
function wrapTextEncoder(encoder, system) {
    const ctx = new (class Node extends _1.$ {
        constructor() {
            super(...arguments);
            this.__ = ['TD'];
        }
        encode(opt, text) {
            return encoder.encode(text);
        }
    })(system);
    return ctx;
}
//# sourceMappingURL=TextEncoder.js.map