"use strict";
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
    if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
        if (ar || !(i in from)) {
            if (!ar) ar = Array.prototype.slice.call(from, 0, i);
            ar[i] = from[i];
        }
    }
    return to.concat(ar || Array.prototype.slice.call(from));
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.slideRows = slideRows;
function slideRows(rows, fromIndex, toIndex, count) {
    if (count === void 0) { count = 1; }
    var rowsWithoutMoved = __spreadArray(__spreadArray([], rows.slice(0, fromIndex), true), rows.slice(fromIndex + count), true);
    return __spreadArray(__spreadArray(__spreadArray([], rowsWithoutMoved.slice(0, toIndex), true), rows.slice(fromIndex, fromIndex + count), true), rowsWithoutMoved.slice(toIndex), true);
}
