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