"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.CompositeSquadProvider = void 0;
class CompositeSquadProvider {
    primary;
    fallback;
    constructor(primary, fallback) {
        this.primary = primary;
        this.fallback = fallback;
    }
    load() {
        const data = this.primary.load();
        return data.length ? data : this.fallback.load();
    }
}
exports.CompositeSquadProvider = CompositeSquadProvider;
