/**
 * Define a set of template paths to pre-load
 * Pre-loaded templates are compiled and cached for fast access when rendering
 * @return {Promise}
 */
export const preloadHandlebarsTemplates = async function () {
    const templatePaths = [
        "systems/shadowrun-de/templates/sheets/common/collapsible-content-item.hbs",
        "systems/shadowrun-de/templates/parts/npc_grunt_group.hbs",
        "systems/shadowrun-de/templates/parts/tab-effects.hbs",
        "systems/shadowrun-de/templates/item/item-mods.hbs",
        "systems/shadowrun-de/templates/item/item-effects.hbs",
        "systems/shadowrun-de/templates/item/item-effects-ro.hbs",
        "systems/shadowrun-de/templates/item/item-sheet-header.hbs",
        "systems/shadowrun-de/templates/sidebar/combat-tracker.hbs",
        "systems/shadowrun-de/templates/sidebar/combat-tracker-v9.html",
        "systems/shadowrun-de/templates/sidebar/combat-tracker-v12.html",
        "systems/shadowrun-de/templates/dialog/partRollDialogEdge.html",
        "systems/shadowrun-de/templates/dialog/partRollDialogOpposed.html",
        "systems/shadowrun-de/templates/dialog/partRollDialogSpell.html",
        "systems/shadowrun-de/templates/dialog/partRollDialogWeapon.html",
        "systems/shadowrun-de/templates/parts/npc_edit_critter.html",
        "systems/shadowrun-de/templates/parts/npc_edit_grunt.html",
        "systems/shadowrun-de/templates/parts/npc_edit_spirit.html",
        "systems/shadowrun-de/templates/parts/npc_full_edit_sheet.html",
        "systems/shadowrun-de/templates/parts/npc_usage_sheet.html",
        "systems/shadowrun-de/templates/parts/npc_usage_spirit.html",
        "systems/shadowrun-de/templates/parts/attributes.html",
        "systems/shadowrun-de/templates/parts/edge-token.html",
        "systems/shadowrun-de/templates/parts/initiatives.html",
        "systems/shadowrun-de/templates/parts/nuyen-token.html",
        "systems/shadowrun-de/templates/parts/attributes-augmented.html",
        "systems/shadowrun-de/templates/parts/monitors.html",
        "systems/shadowrun-de/templates/parts/npc-attributes.html",
        "systems/shadowrun-de/templates/parts/npc-attributes-ro.html",
        "systems/shadowrun-de/templates/parts/npc-augmentations.html",
        "systems/shadowrun-de/templates/parts/npc-complex-forms.html",
        "systems/shadowrun-de/templates/parts/npc-critterpowers.html",
        "systems/shadowrun-de/templates/parts/npc-gear.html",
        "systems/shadowrun-de/templates/parts/npc-item-descriptions.html",
        "systems/shadowrun-de/templates/parts/npc-metamagics.html",
        "systems/shadowrun-de/templates/parts/npc-powers.html",
        "systems/shadowrun-de/templates/parts/npc-qualities.html",
        "systems/shadowrun-de/templates/parts/npc-skills.html",
        "systems/shadowrun-de/templates/parts/npc-spells.html",
        "systems/shadowrun-de/templates/parts/npc-echoes.html",
        "systems/shadowrun-de/templates/parts/npc-weapons.html",
        "systems/shadowrun-de/templates/parts/tab-combat.html",
        "systems/shadowrun-de/templates/parts/tab-magic.html",
        "systems/shadowrun-de/templates/parts/tab-matrix.html",
        "systems/shadowrun-de/templates/parts/tab-biography.html",
        "systems/shadowrun-de/templates/parts/tab-vehicles.html",
        "systems/shadowrun-de/templates/parts/pc-derived.html",
        "systems/shadowrun-de/templates/parts/pc-skills.html",
        "systems/shadowrun-de/templates/parts/pc-skillvalues.html",
        "systems/shadowrun-de/templates/parts/programs.html",
        "systems/shadowrun-de/templates/parts/section-adeptpowers.html",
        "systems/shadowrun-de/templates/parts/section-ammo.html",
        "systems/shadowrun-de/templates/parts/section-armor.html",
        "systems/shadowrun-de/templates/parts/section-autosoft.html",
        "systems/shadowrun-de/templates/parts/section-bodyware.html",
        "systems/shadowrun-de/templates/parts/section-complexforms.html",
        "systems/shadowrun-de/templates/parts/section-critterpower.html",
        "systems/shadowrun-de/templates/parts/section-drones.html",
        "systems/shadowrun-de/templates/parts/section-echoes.html",
        "systems/shadowrun-de/templates/parts/section-gear.html",
        "systems/shadowrun-de/templates/parts/section-item-mods.html",
        "systems/shadowrun-de/templates/parts/section-magicbase.html",
        "systems/shadowrun-de/templates/parts/section-martialart.html",
        "systems/shadowrun-de/templates/parts/section-matrixactions.html",
        "systems/shadowrun-de/templates/parts/section-matrixbase.html",
        "systems/shadowrun-de/templates/parts/section-matrixdevices.html",
        "systems/shadowrun-de/templates/parts/section-metamagics.html",
        "systems/shadowrun-de/templates/parts/section-notes.html",
        "systems/shadowrun-de/templates/parts/section-rituals.html",
        "systems/shadowrun-de/templates/parts/section-focus.html",
        "systems/shadowrun-de/templates/parts/section-qualities.html",
        "systems/shadowrun-de/templates/parts/section-riggingbase.html",
        "systems/shadowrun-de/templates/parts/section-skills-action.html",
        "systems/shadowrun-de/templates/parts/section-skills-knowledge.html",
        "systems/shadowrun-de/templates/parts/section-skills-language.html",
        "systems/shadowrun-de/templates/parts/section-soakresist.html",
        "systems/shadowrun-de/templates/parts/section-spells.html",
        "systems/shadowrun-de/templates/parts/section-weapons.html",
        "systems/shadowrun-de/templates/parts/section-karma_rep.html",
        "systems/shadowrun-de/templates/parts/section-sins.html",
        "systems/shadowrun-de/templates/parts/section-contacts.html",
        "systems/shadowrun-de/templates/parts/section-lifestyles.html",
        "systems/shadowrun-de/templates/parts/section-vehicles.html",
        "systems/shadowrun-de/templates/parts/vehicle-accessories.html",
        "systems/shadowrun-de/templates/parts/vehicle-brain.html",
        "systems/shadowrun-de/templates/parts/vehicle-monitor.html",
        "systems/shadowrun-de/templates/parts/vehicle-piloting.html",
        "systems/shadowrun-de/templates/parts/vehicle-software.html",
        "systems/shadowrun-de/templates/parts/vehicle-speed.html",
        "systems/shadowrun-de/templates/parts/vehicle-stats.html",
        "systems/shadowrun-de/templates/parts/vehicle-weapons.html"
    ];
    console.log(`SR6E | Load templates`);
    return loadTemplates(templatePaths);
};