"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Definition = void 0;
const lodash_1 = require("lodash");
const session_1 = require("../../../../session");
const dates_and_calendars_1 = require("../dates-and-calendars");
function Definition(params) {
    return {
        getData(session = (0, session_1.getDefault)()) {
            const datesAndCalendarsProvider = new dates_and_calendars_1.DatesAndCalendarsProvider(session);
            return datesAndCalendarsProvider.getCountPeriods([params]);
        },
        /** @internal */
        getInstrument() {
            return (0, lodash_1.cloneDeep)(params);
        },
    };
}
exports.Definition = Definition;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVmaW5pdGlvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy9jb250ZW50L2lwYS9kYXRlcy1hbmQtY2FsZW5kYXJzL2NvdW50LXBlcmlvZHMvZGVmaW5pdGlvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSxtQ0FBbUM7QUFLbkMsaURBQTBEO0FBQzFELGdFQUFtRTtBQUVuRSxTQUFnQixVQUFVLENBQUMsTUFBYztJQUNyQyxPQUFPO1FBQ0gsT0FBTyxDQUFDLFVBQW1CLElBQUEsb0JBQVUsR0FBRTtZQUNuQyxNQUFNLHlCQUF5QixHQUFHLElBQUksK0NBQXlCLENBQUMsT0FBTyxDQUFDLENBQUM7WUFFekUsT0FBTyx5QkFBeUIsQ0FBQyxlQUFlLENBQUMsQ0FBQyxNQUFNLENBQUMsQ0FBQyxDQUFDO1FBQy9ELENBQUM7UUFFRCxnQkFBZ0I7UUFDaEIsYUFBYTtZQUNULE9BQU8sSUFBQSxrQkFBUyxFQUFDLE1BQU0sQ0FBQyxDQUFDO1FBQzdCLENBQUM7S0FDSixDQUFDO0FBQ04sQ0FBQztBQWJELGdDQWFDIn0=