this["JST"] = this["JST"] || {}; this["JST"]["alt_dropdown"] = function anonymous(locals /**/) { var buf = []; var locals_ = (locals || {}),alts = locals_.alts,username = locals_.username,alt = locals_.alt;if ( alts) { buf.push("
  • " + (jade.escape(null == (jade.interp = username) ? "" : jade.interp)) + "(none)
  • "); // iterate alts ;(function(){ var $$obj = alts; if ('number' == typeof $$obj.length) { for (var $index = 0, $$l = $$obj.length; $index < $$l; $index++) { var alt = $$obj[$index]; buf.push("
  • " + (jade.escape(null == (jade.interp = alt) ? "" : jade.interp)) + "
  • "); } } else { var $$l = 0; for (var $index in $$obj) { $$l++; var alt = $$obj[$index]; buf.push("
  • " + (jade.escape(null == (jade.interp = alt) ? "" : jade.interp)) + "
  • "); } } }).call(this); if ( alts.length < 5) { buf.push("
  • + Add Alt
  • "); } } else { if ( alt) { buf.push("
    " + (jade.escape(null == (jade.interp = alt) ? "" : jade.interp)) + "
    "); } else { buf.push("
    " + (jade.escape(null == (jade.interp = username) ? "" : jade.interp)) + "(none)
    "); } };return buf.join(""); }; this["JST"]["battle"] = function anonymous(locals /**/) { var buf = []; var locals_ = (locals || {}),yourIndex = locals_.yourIndex,yourTeam = locals_.yourTeam,opponentTeam = locals_.opponentTeam,window = locals_.window;for (var i = 0; i < 2; i++) { var pokemonClass = (i === yourIndex ? " bottom" : " top") var team = (i === yourIndex ? yourTeam : opponentTeam).get('pokemon') for (var j = 0, len = team.length; j < len; j++) { buf.push(""); if ( (team.at(j).attributes.species == 'Zoroark' || team.at(j).attributes.species == 'Zorua') && team.at(j).attributes.percent == 100) { buf.push(null == (jade.interp = window.JST['battle_pokemon']({pokemon: team.at(team.length - 1)})) ? "" : jade.interp); } else { buf.push(null == (jade.interp = window.JST['battle_pokemon']({pokemon: team.at(j)})) ? "" : jade.interp); } buf.push(""); } };return buf.join(""); }; this["JST"]["battle_actions"] = function anonymous(locals /**/) { var buf = []; var locals_ = (locals || {}),window = locals_.window,validActions = locals_.validActions,yourTeam = locals_.yourTeam;var moveButton_mixin = function(forPokemon, i){ var block = this.block, attributes = this.attributes || {}, escaped = this.escaped || {}; var moveName = forPokemon.get('moves')[i] var origName = moveName var moveType = forPokemon.get('moveTypes')[i].toLowerCase() var pp = forPokemon.get('pp')[i] var maxPP = forPokemon.get('maxPP')[i] var isEnabled = validMoves.indexOf(moveName) !== -1 var disabledClass = (!isEnabled ? ' disabled' : '') var bigClass = (validMoves.length === 1 ? ' big' : '') var spanClass = (validMoves.length === 1 ? 'span12' : 'span6') if ( moveName === 'Hidden Power') { moveType = window.HiddenPower.BW.type(forPokemon.get('ivs')) moveName += ' (' + moveType + ')' moveType = moveType.toLowerCase() } var moveClass = moveType + disabledClass + bigClass buf.push("
    " + (jade.escape(null == (jade.interp = moveName) ? "" : jade.interp)) + "
    " + (jade.escape(null == (jade.interp = pp) ? "" : jade.interp)) + "/" + (jade.escape((jade.interp = maxPP) == null ? '' : jade.interp)) + "
    "); }; var validMoves = validActions.moves || [] var validSwitches = validActions.switches || [] buf.push("

    Moves

    "); var pokemon = yourTeam.at(0) var numMoves = pokemon.get('moves').length if ( validMoves.length === 1) { var moveIndex = pokemon.get('moves').indexOf(validMoves[0]) buf.push("
    "); if ( moveIndex === -1) { buf.push("
    " + (jade.escape(null == (jade.interp = validMoves[0]) ? "" : jade.interp)) + "
    "); } else { moveButton_mixin(pokemon, moveIndex); } buf.push("
    "); } else { for (var i = 0; i < numMoves; i += 2) { buf.push("
    "); moveButton_mixin(pokemon, i); if ( i + 1 < numMoves) { moveButton_mixin(pokemon, i + 1); } buf.push("
    "); } } buf.push("
    Mega Evolve

    Pokemon

    "); var teamPokemon = yourTeam.get('pokemon') for (var j = 0, len = teamPokemon.length; j < len; j += 3) { buf.push("
    "); for (var i = j; i < j + 3; i++) { var pokemon = teamPokemon.at(i) var isEnabled = validSwitches.indexOf(i) !== -1 var disabledClass = (!isEnabled ? 'disabled' : '') if ( pokemon) { buf.push("
    "); } } buf.push(""); } buf.push("
    " + (null == (jade.interp = window.JST['spinner']()) ? "" : jade.interp) + "
    ");;return buf.join(""); }; this["JST"]["battle_controls"] = function anonymous(locals /**/) { var buf = []; var locals_ = (locals || {}),speeds = locals_.speeds,currentSpeed = locals_.currentSpeed;buf.push("

    Battle speed

    "); // iterate speeds ;(function(){ var $$obj = speeds; if ('number' == typeof $$obj.length) { for (var name = 0, $$l = $$obj.length; name < $$l; name++) { var speed = $$obj[name]; buf.push(""); } } else { var $$l = 0; for (var name in $$obj) { $$l++; var speed = $$obj[name]; buf.push(""); } } }).call(this); buf.push("
    ");;return buf.join(""); }; this["JST"]["battle_end"] = function anonymous(locals /**/) { var buf = []; var locals_ = (locals || {}),window = locals_.window;buf.push("
    Save replay
    " + (null == (jade.interp = window.JST['spinner']()) ? "" : jade.interp) + "
    Save log
    Return to lobby
    ");;return buf.join(""); }; this["JST"]["battle_hover_info"] = function anonymous(locals /**/) { var buf = []; var locals_ = (locals || {}),pokemon = locals_.pokemon;buf.push("

    HP: " + (jade.escape((jade.interp = pokemon.getPercentHP()) == null ? '' : jade.interp)) + "%"); if ( pokemon.has('hp')) { buf.push(" (" + (jade.escape((jade.interp = pokemon.get('hp')) == null ? '' : jade.interp)) + "/" + (jade.escape((jade.interp = pokemon.get('maxHP')) == null ? '' : jade.interp)) + ")"); } buf.push("
    "); if ( pokemon.has('ability')) { buf.push("Ability: " + (jade.escape((jade.interp = pokemon.get('ability')) == null ? '' : jade.interp)) + ""); } else { buf.push("Possible abilities: " + (jade.escape((jade.interp = pokemon.getAbilities().join(', ')) == null ? '' : jade.interp)) + ""); } buf.push("
    Status: " + (jade.escape((jade.interp = pokemon.getStatus()) == null ? '' : jade.interp)) + "

    "); if ( pokemon.has('moves')) { buf.push("
    "); // iterate pokemon.get('moves') ;(function(){ var $$obj = pokemon.get('moves'); if ('number' == typeof $$obj.length) { for (var i = 0, $$l = $$obj.length; i < $$l; i++) { var moveName = $$obj[i]; var moveClass = pokemon.get('moveTypes')[i].toLowerCase() var pp = pokemon.get('pp')[i] var maxPP = pokemon.get('maxPP')[i] buf.push("
    " + (jade.escape(null == (jade.interp = moveName) ? "" : jade.interp)) + "
    " + (jade.escape(null == (jade.interp = pp) ? "" : jade.interp)) + "/" + (jade.escape((jade.interp = maxPP) == null ? '' : jade.interp)) + "
    "); } } else { var $$l = 0; for (var i in $$obj) { $$l++; var moveName = $$obj[i]; var moveClass = pokemon.get('moveTypes')[i].toLowerCase() var pp = pokemon.get('pp')[i] var maxPP = pokemon.get('maxPP')[i] buf.push("
    " + (jade.escape(null == (jade.interp = moveName) ? "" : jade.interp)) + "
    " + (jade.escape(null == (jade.interp = pp) ? "" : jade.interp)) + "/" + (jade.escape((jade.interp = maxPP) == null ? '' : jade.interp)) + "
    "); } } }).call(this); buf.push(""); };return buf.join(""); }; this["JST"]["battle_list"] = function anonymous(locals /**/) { var buf = []; var locals_ = (locals || {}),battles = locals_.battles;buf.push("

    Battle List (" + (jade.escape((jade.interp = battles.length) == null ? '' : jade.interp)) + " battles)

    "); if ( battles.length == 0) { buf.push("

    There are no active battles happening at this time.

    "); } // iterate battles ;(function(){ var $$obj = battles; if ('number' == typeof $$obj.length) { for (var $index = 0, $$l = $$obj.length; $index < $$l; $index++) { var battle = $$obj[$index]; buf.push("
    " + (jade.escape(null == (jade.interp = battle[1]) ? "" : jade.interp)) + "VS" + (jade.escape(null == (jade.interp = battle[2]) ? "" : jade.interp)) + "
    "); } } else { var $$l = 0; for (var $index in $$obj) { $$l++; var battle = $$obj[$index]; buf.push("
    " + (jade.escape(null == (jade.interp = battle[1]) ? "" : jade.interp)) + "VS" + (jade.escape(null == (jade.interp = battle[2]) ? "" : jade.interp)) + "
    "); } } }).call(this); buf.push("");;return buf.join(""); }; this["JST"]["battle_pokemon"] = function anonymous(locals /**/) { var buf = []; var locals_ = (locals || {}),pokemon = locals_.pokemon;var percent = pokemon.getPercentHP() var color = ((percent <= 25) ? "#f00" : (percent <= 50) ? "#ff0" : "#0f0") var style = "width: " + percent + "%" var greenStyle = style + "; background-color: " + color buf.push("
    " + (jade.escape(null == (jade.interp = pokemon.get('name')) ? "" : jade.interp)) + ""); if ( pokemon.get('gender') === 'F') { buf.push(""); } else if ( pokemon.get('gender') === 'M') { buf.push(""); } buf.push(" Lv." + (jade.escape(null == (jade.interp = pokemon.get('level')) ? "" : jade.interp)) + "
    " + (jade.escape((jade.interp = percent) == null ? '' : jade.interp)) + "%
    ");;return buf.join(""); }; this["JST"]["battle_team_preview"] = function anonymous(locals /**/) { var buf = []; var locals_ = (locals || {}),battle = locals_.battle,window = locals_.window;var displayOtherTeam_mixin = function(team, text){ var block = this.block, attributes = this.attributes || {}, escaped = this.escaped || {}; var teamvisible = team.collection.parents[0].get('visibleteam') var isdef = typeof teamvisible if ( isdef != 'undefined' && teamvisible) { buf.push("

    " + (jade.escape(null == (jade.interp = text) ? "" : jade.interp)) + "

      "); team.get('pokemon').each(function(pokemon) { { buf.push("
    • "); displayPokemon_mixin(pokemon); buf.push("
    • "); } }) buf.push("
    "); } }; var displayYourTeam_mixin = function(team, text){ var block = this.block, attributes = this.attributes || {}, escaped = this.escaped || {}; buf.push("

    " + (jade.escape(null == (jade.interp = text) ? "" : jade.interp)) + "

      "); for (var i = 0; i < battle.numActive; i++) { buf.push("
    • "); if ( battle.numActive > 1) { buf.push("Lead " + (jade.escape((jade.interp = i + 1) == null ? '' : jade.interp)) + ""); } else { buf.push("Lead"); } buf.push("
    • "); } buf.push("
      "); yourTeam.get('pokemon').each(function(pokemon, i) { { buf.push("
    • "); displayPokemon_mixin(pokemon, i); buf.push("
    • "); } }) buf.push("
    Start battle
    "); }; var displayPokemon_mixin = function(pokemon, i){ var block = this.block, attributes = this.attributes || {}, escaped = this.escaped || {}; buf.push("
    "); var style = window.PokemonIconBackground(pokemon) buf.push("
    "); if ( pokemon.get('gender') === 'F') { buf.push("
    "); } else if ( pokemon.get('gender') === 'M') { buf.push("
    "); } if ( pokemon.get('level') != 120) { buf.push("
    Lv." + (jade.escape((jade.interp = pokemon.get('level')) == null ? '' : jade.interp)) + "
    "); } }; buf.push("
    "); var theirTeam = battle.getOpponentTeam() var yourTeam = battle.getTeam() displayOtherTeam_mixin(theirTeam, theirTeam.get('owner') + "'s team:"); if ( !battle.get('spectating')) { displayYourTeam_mixin(yourTeam, "Click Pokemon to switch them around:"); } else { displayOtherTeam_mixin(yourTeam, yourTeam.get('owner') + "'s team:"); } buf.push("
    ");;return buf.join(""); }; this["JST"]["battle_user_info"] = function anonymous(locals /**/) { var buf = []; var locals_ = (locals || {}),yourTeam = locals_.yourTeam,opponentTeam = locals_.opponentTeam,yourIndex = locals_.yourIndex,window = locals_.window;// iterate [ yourTeam, opponentTeam ] ;(function(){ var $$obj = [ yourTeam, opponentTeam ]; if ('number' == typeof $$obj.length) { for (var $index = 0, $$l = $$obj.length; $index < $$l; $index++) { var team = $$obj[$index]; var leftOrRight = (team === yourTeam ? 'left' : 'right') var teamIndex = (team === yourTeam ? yourIndex : 1 - yourIndex) buf.push("
    " + (jade.escape(null == (jade.interp = team.get('owner')) ? "" : jade.interp)) + "
    "); var teamvisible = team.collection.parents[0].get('visibleteam') var isdef = typeof teamvisible var orig = team.get('pokemon') var teamPokemon = team.getRandomOrder() for (var i = 0, len = teamPokemon.length; i < len; i += 1) { var pokemon = teamPokemon[i] if ( pokemon) { buf.push("
    "); var origpkmn = orig.findWhere({species: pokemon.species}); var faintClass = (origpkmn.isFainted() ? 'fainted' : '') var style = window.PokemonIconBackground(origpkmn) if ( isdef != 'undefined' && teamvisible) { buf.push(""); if ( !origpkmn.isFainted()) { buf.push("
    "); } } else { var hasbeeninbattle = origpkmn.get('beeninbattle') if ( hasbeeninbattle == true) { buf.push(""); if ( !origpkmn.isFainted()) { buf.push("
    "); } } else { var newstyle = "background:url('../Sprites/Icons/iconempty.png')!important; background-size: cover!important;" buf.push(""); if ( !origpkmn.isFainted()) { buf.push("
    "); } } } buf.push(""); } } buf.push(""); } } else { var $$l = 0; for (var $index in $$obj) { $$l++; var team = $$obj[$index]; var leftOrRight = (team === yourTeam ? 'left' : 'right') var teamIndex = (team === yourTeam ? yourIndex : 1 - yourIndex) buf.push("
    " + (jade.escape(null == (jade.interp = team.get('owner')) ? "" : jade.interp)) + "
    "); var teamvisible = team.collection.parents[0].get('visibleteam') var isdef = typeof teamvisible var orig = team.get('pokemon') var teamPokemon = team.getRandomOrder() for (var i = 0, len = teamPokemon.length; i < len; i += 1) { var pokemon = teamPokemon[i] if ( pokemon) { buf.push("
    "); var origpkmn = orig.findWhere({species: pokemon.species}); var faintClass = (origpkmn.isFainted() ? 'fainted' : '') var style = window.PokemonIconBackground(origpkmn) if ( isdef != 'undefined' && teamvisible) { buf.push(""); if ( !origpkmn.isFainted()) { buf.push("
    "); } } else { var hasbeeninbattle = origpkmn.get('beeninbattle') if ( hasbeeninbattle == true) { buf.push(""); if ( !origpkmn.isFainted()) { buf.push("
    "); } } else { var newstyle = "background:url('../Sprites/Icons/iconempty.png')!important; background-size: cover!important;" buf.push(""); if ( !origpkmn.isFainted()) { buf.push("
    "); } } } buf.push(""); } } buf.push(""); } } }).call(this); ;return buf.join(""); }; this["JST"]["battle_window"] = function anonymous(locals /**/) { var buf = []; var locals_ = (locals || {}),battle = locals_.battle,window = locals_.window;buf.push("
    "); var numBackgrounds = 6 var backgroundNumber = parseInt(battle.id.substr(0, 6), 16) backgroundNumber = (backgroundNumber % numBackgrounds) buf.push("
    " + (null == (jade.interp = window.JST['chat']()) ? "" : jade.interp) + "
    ");;return buf.join(""); }; this["JST"]["challenge"] = function anonymous(locals /**/) { var buf = []; buf.push("
    Accept
    Reject
    Challenge
    Close
    ");;return buf.join(""); }; this["JST"]["chat"] = function anonymous(locals /**/) { var buf = []; buf.push("

      ");;return buf.join(""); }; this["JST"]["modals/achievements"] = function anonymous(locals /**/) { var buf = []; var locals_ = (locals || {}),achievements = locals_.achievements,window = locals_.window;buf.push("

      Achievements Earned

      "); // iterate achievements ;(function(){ var $$obj = achievements; if ('number' == typeof $$obj.length) { for (var $index = 0, $$l = $$obj.length; $index < $$l; $index++) { var achievement = $$obj[$index]; buf.push("

      " + (jade.escape(null == (jade.interp = achievement.name) ? "" : jade.interp)) + "

      " + (jade.escape(null == (jade.interp = achievement.condition) ? "" : jade.interp)) + "

      "); } } else { var $$l = 0; for (var $index in $$obj) { $$l++; var achievement = $$obj[$index]; buf.push("

      " + (jade.escape(null == (jade.interp = achievement.name) ? "" : jade.interp)) + "

      " + (jade.escape(null == (jade.interp = achievement.condition) ? "" : jade.interp)) + "

      "); } } }).call(this); buf.push("
      ");;return buf.join(""); }; this["JST"]["modals/credits"] = function anonymous(locals /**/) { var buf = []; buf.push("

      PokeBattle Credits

      • Pokémon is © 1995-2016 Nintendo. All Pokemon names and sprites are\n owned by them.
      • Huge thanks to PokeBattle.com for developing this awesome engine\n You can find their engine at this GitHub repo!
      • Big thanks to Suzey and the rest of the devteam of Insurgence for\n creating Insurgence
      • Major thanks to my faithful testers who helped me make sure this thing\n actually worked
      • And of course thanks to you, the user, for actually using this thing,\n we love you
      ");;return buf.join(""); }; this["JST"]["modals/errors"] = function anonymous(locals /**/) { var buf = []; var locals_ = (locals || {}),title = locals_.title,body = locals_.body;buf.push("

      " + (jade.escape(null == (jade.interp = title) ? "" : jade.interp)) + "

      " + (null == (jade.interp = body) ? "" : jade.interp) + "
      ");;return buf.join(""); }; this["JST"]["modals/export_team"] = function anonymous(locals /**/) { var buf = []; buf.push("

      Your exported team

      ");;return buf.join(""); }; this["JST"]["modals/import_team"] = function anonymous(locals /**/) { var buf = []; buf.push("

      Import a team from PS/PO

      ");;return buf.join(""); }; this["JST"]["modals/new_client"] = function anonymous(locals /**/) { var buf = []; buf.push("

      A new client appeared!

      Your client is outdated! Please refresh to upgrade to the latest version of the client. If you\n choose not to refresh, you may see odd behavior. If you were editing\n a team, you should save the team first, then manually refresh.

      ");;return buf.join(""); }; this["JST"]["modals/teams_differ"] = function anonymous(locals /**/) { var buf = []; var locals_ = (locals || {}),teamText = locals_.teamText;buf.push("

      Our teams differ!

      Your copy of this team differs from ours!

      Perhaps you edited this team on a different computer? Or disconnected\n during a save? Either way, this is the team we have:

      ");;return buf.join(""); }; this["JST"]["modify"] = function anonymous(locals /**/) { var buf = []; ;return buf.join(""); }; this["JST"]["move_hover_info"] = function anonymous(locals /**/) { var buf = []; var locals_ = (locals || {}),move = locals_.move;buf.push("

      Base Power:"); if ( move.power == 0) { buf.push(" —"); } else { buf.push(" " + (jade.escape((jade.interp = move.power) == null ? '' : jade.interp)) + ""); } buf.push("

      Accuracy:"); if ( move.accuracy == 0) { buf.push(" —"); } else { buf.push(" " + (jade.escape((jade.interp = move.accuracy) == null ? '' : jade.interp)) + "%"); } buf.push("

      "); if ( move.priority != 0) { buf.push("

      Priority:"); if ( move.priority > 0) { buf.push(" +" + (jade.escape((jade.interp = move.priority) == null ? '' : jade.interp)) + ""); } else { buf.push(" " + (jade.escape((jade.interp = move.priority) == null ? '' : jade.interp)) + ""); } buf.push("

      "); } buf.push("

      Description: " + (jade.escape((jade.interp = move.description) == null ? '' : jade.interp)) + "

      ");;return buf.join(""); }; this["JST"]["navigation"] = function anonymous(locals /**/) { var buf = []; buf.push("

      Chat

      • Lobby

      Other links

        Messages

          ");;return buf.join(""); }; this["JST"]["new_battle"] = function anonymous(locals /**/) { var buf = []; var locals_ = (locals || {}),window = locals_.window,defaultClauses = locals_.defaultClauses;buf.push("

          Format:

            "); var allformats = window.PokeBattle.conditions.Formats() // iterate allformats ;(function(){ var $$obj = allformats; if ('number' == typeof $$obj.length) { for (var $index = 0, $$l = $$obj.length; $index < $$l; $index++) { var format = $$obj[$index]; buf.push("
          • " + (jade.escape((jade.interp = format.humanName) == null ? '' : jade.interp)) + "
          • "); } } else { var $$l = 0; for (var $index in $$obj) { $$l++; var format = $$obj[$index]; buf.push("
          • " + (jade.escape((jade.interp = format.humanName) == null ? '' : jade.interp)) + "
          • "); } } }).call(this); buf.push("

          Select a team:

          Your team
            "); if ( defaultClauses) { buf.push("

            Clauses:

              "); // iterate window.SelectableConditions ;(function(){ var $$obj = window.SelectableConditions; if ('number' == typeof $$obj.length) { for (var $index = 0, $$l = $$obj.length; $index < $$l; $index++) { var value = $$obj[$index]; var checked = (defaultClauses.indexOf(value) >= 0) var clause = window._.invert(window.Conditions)[value] buf.push("
            • "); } } else { var $$l = 0; for (var $index in $$obj) { $$l++; var value = $$obj[$index]; var checked = (defaultClauses.indexOf(value) >= 0) var clause = window._.invert(window.Conditions)[value] buf.push("
            • "); } } }).call(this); buf.push("
            "); };return buf.join(""); }; this["JST"]["private_message"] = function anonymous(locals /**/) { var buf = []; var locals_ = (locals || {}),id = locals_.id,title = locals_.title;buf.push("
            " + (jade.escape((jade.interp = title) == null ? '' : jade.interp)) + "
            Challenge
            ");;return buf.join(""); }; this["JST"]["replay"] = function anonymous(locals /**/) { var buf = []; var locals_ = (locals || {}),replay = locals_.replay,window = locals_.window;buf.push("
            " + (jade.escape(null == (jade.interp = replay.get('name')) ? "" : jade.interp)) + "" + (jade.escape(null == (jade.interp = replay.getFormat()) ? "" : jade.interp)) + "" + (jade.escape(null == (jade.interp = replay.getCreatedAt()) ? "" : jade.interp)) + "Delete
            " + (null == (jade.interp = window.JST['spinner']()) ? "" : jade.interp) + "
            ");;return buf.join(""); }; this["JST"]["spinner"] = function anonymous(locals /**/) { var buf = []; buf.push("
            ");;return buf.join(""); }; this["JST"]["team_dropdown"] = function anonymous(locals /**/) { var buf = []; var locals_ = (locals || {}),team = locals_.team,window = locals_.window,teams = locals_.teams;if ( team) { buf.push("
            " + (jade.escape(null == (jade.interp = team.getName()) ? "" : jade.interp)) + "
            " + (null == (jade.interp = window.JST['team_small']({team: team, window: window})) ? "" : jade.interp)); } else { // iterate teams ;(function(){ var $$obj = teams; if ('number' == typeof $$obj.length) { for (var i = 0, $$l = $$obj.length; i < $$l; i++) { var team = $$obj[i]; buf.push("
          • " + (jade.escape(null == (jade.interp = team.getName()) ? "" : jade.interp)) + "
            " + (null == (jade.interp = window.JST['team_small']({team: team, window: window})) ? "" : jade.interp) + "
          • "); } } else { var $$l = 0; for (var i in $$obj) { $$l++; var team = $$obj[i]; buf.push("
          • " + (jade.escape(null == (jade.interp = team.getName()) ? "" : jade.interp)) + "
            " + (null == (jade.interp = window.JST['team_small']({team: team, window: window})) ? "" : jade.interp) + "
          • "); } } }).call(this); buf.push("
          • Build a Team
          • "); };return buf.join(""); }; this["JST"]["team_small"] = function anonymous(locals /**/) { var buf = []; var locals_ = (locals || {}),team = locals_.team,window = locals_.window;if ( team.hasPBV()) { buf.push("
            PBV: "); if ( team.getPBV() <= team.getMaxPBV()) { buf.push(jade.escape(null == (jade.interp = team.getPBV()) ? "" : jade.interp)); } else { buf.push("" + (jade.escape(null == (jade.interp = team.getPBV()) ? "" : jade.interp)) + ""); } buf.push("/" + (jade.escape((jade.interp = team.getMaxPBV()) == null ? '' : jade.interp)) + "
            "); } else if ( team.hasTier()) { buf.push("
            Tier: "); if ( team.getTier().tierRank <= team.getMaxTier().tierRank) { buf.push(jade.escape(null == (jade.interp = team.getTier().humanName) ? "" : jade.interp)); } else { buf.push("" + (jade.escape(null == (jade.interp = team.getTier().humanName) ? "" : jade.interp)) + ""); } buf.push("/" + (jade.escape((jade.interp = team.getMaxTier().humanName) == null ? '' : jade.interp)) + "
            "); } buf.push("
            "); // iterate team.get('pokemon').models ;(function(){ var $$obj = team.get('pokemon').models; if ('number' == typeof $$obj.length) { for (var i = 0, $$l = $$obj.length; i < $$l; i++) { var pokemon = $$obj[i]; var style = window.PokemonIconBackground(pokemon) buf.push("
            "); } } else { var $$l = 0; for (var i in $$obj) { $$l++; var pokemon = $$obj[i]; var style = window.PokemonIconBackground(pokemon) buf.push(""); } } }).call(this); buf.push("");;return buf.join(""); }; this["JST"]["teambuilder/main"] = function anonymous(locals /**/) { var buf = []; var locals_ = (locals || {}),window = locals_.window;buf.push("
            "); var allformats = window.PokeBattle.conditions.Formats() buf.push("
              "); // iterate allformats ;(function(){ var $$obj = allformats; if ('number' == typeof $$obj.length) { for (var $index = 0, $$l = $$obj.length; $index < $$l; $index++) { var format = $$obj[$index]; buf.push("
            • " + (jade.escape((jade.interp = format.humanName) == null ? '' : jade.interp)) + "
            • "); } } else { var $$l = 0; for (var $index in $$obj) { $$l++; var format = $$obj[$index]; buf.push("
            • " + (jade.escape((jade.interp = format.humanName) == null ? '' : jade.interp)) + "
            • "); } } }).call(this); buf.push("
            Save
            Back
              + Add Pokemon
              ");;return buf.join(""); }; this["JST"]["teambuilder/moves"] = function anonymous(locals /**/) { var buf = []; var locals_ = (locals || {}),pokemon = locals_.pokemon,window = locals_.window;buf.push("
              Moves:
              " + (jade.escape(null == (jade.interp = "View " + pokemon.get('species') + " Movesets") ? "" : jade.interp)) + "
              "); // iterate pokemon.getMovepool() ;(function(){ var $$obj = pokemon.getMovepool(); if ('number' == typeof $$obj.length) { for (var $index = 0, $$l = $$obj.length; $index < $$l; $index++) { var move = $$obj[$index]; buf.push(""); } } else { var $$l = 0; for (var $index in $$obj) { $$l++; var move = $$obj[$index]; buf.push(""); } } }).call(this); buf.push("
              NameTypeCat.PowerAcc.PPDescription
              " + (jade.escape(null == (jade.interp = move.name) ? "" : jade.interp)) + ""); var damageFriendly = move.damage[0].toUpperCase() + move.damage.substr(1) buf.push("" + (jade.escape(null == (jade.interp = (move.power == 0) ? "-" : move.power) ? "" : jade.interp)) + "" + (jade.escape(null == (jade.interp = (move.accuracy == 0) ? "-" : move.accuracy + '%') ? "" : jade.interp)) + "" + (jade.escape(null == (jade.interp = move.pp) ? "" : jade.interp)) + "" + (jade.escape(null == (jade.interp = move.description) ? "" : jade.interp)) + "
              " + (jade.escape(null == (jade.interp = move.name) ? "" : jade.interp)) + ""); var damageFriendly = move.damage[0].toUpperCase() + move.damage.substr(1) buf.push("" + (jade.escape(null == (jade.interp = (move.power == 0) ? "-" : move.power) ? "" : jade.interp)) + "" + (jade.escape(null == (jade.interp = (move.accuracy == 0) ? "-" : move.accuracy + '%') ? "" : jade.interp)) + "" + (jade.escape(null == (jade.interp = move.pp) ? "" : jade.interp)) + "" + (jade.escape(null == (jade.interp = move.description) ? "" : jade.interp)) + "
              ");;return buf.join(""); }; this["JST"]["teambuilder/pokemon"] = function anonymous(locals /**/) { var buf = []; var locals_ = (locals || {}),speciesList = locals_.speciesList,itemList = locals_.itemList,window = locals_.window;var printStat_mixin = function(statName, keyName){ var block = this.block, attributes = this.attributes || {}, escaped = this.escaped || {}; buf.push("" + (jade.escape((jade.interp = statName) == null ? '' : jade.interp)) + ":"); }; buf.push("
              /
              Nickname:
              Ability:
              Nature:
              Item:
              Gender:
              Level:
              "); printStat_mixin("HP", "hp"); printStat_mixin("Attack", "attack"); printStat_mixin("Defense", "defense"); printStat_mixin("Sp. Attack", "specialAttack"); printStat_mixin("Sp. Defense", "specialDefense"); printStat_mixin("Speed", "speed"); buf.push("
              EVIVBaseStat
              Remaining EVs:
              Hidden Power:
              ");;return buf.join(""); }; this["JST"]["teambuilder/pokemon_list"] = function anonymous(locals /**/) { var buf = []; var locals_ = (locals || {}),pokemonList = locals_.pokemonList,window = locals_.window;// iterate pokemonList ;(function(){ var $$obj = pokemonList; if ('number' == typeof $$obj.length) { for (var i = 0, $$l = $$obj.length; i < $$l; i++) { var pokemon = $$obj[i]; buf.push(""); var style = window.PokemonIconBackground(pokemon) buf.push("
              "); if ( pokemon.isNull) { buf.push("Empty"); } else { buf.push("
              " + (jade.escape(null == (jade.interp = pokemon.get("species")) ? "" : jade.interp)) + "
              "); if ( pokemon.getTeam().hasPBV()) { buf.push("
              PBV: " + (jade.escape(null == (jade.interp = pokemon.getPBV()) ? "" : jade.interp)) + "
              "); } else if ( pokemon.getTeam().hasTier()) { buf.push("
              Tier: " + (jade.escape(null == (jade.interp = pokemon.getTier().humanName) ? "" : jade.interp)) + "
              "); } } buf.push("
              "); } } else { var $$l = 0; for (var i in $$obj) { $$l++; var pokemon = $$obj[i]; buf.push(""); var style = window.PokemonIconBackground(pokemon) buf.push("
              "); if ( pokemon.isNull) { buf.push("Empty"); } else { buf.push("
              " + (jade.escape(null == (jade.interp = pokemon.get("species")) ? "" : jade.interp)) + "
              "); if ( pokemon.getTeam().hasPBV()) { buf.push("
              PBV: " + (jade.escape(null == (jade.interp = pokemon.getPBV()) ? "" : jade.interp)) + "
              "); } else if ( pokemon.getTeam().hasTier()) { buf.push("
              Tier: " + (jade.escape(null == (jade.interp = pokemon.getTier().humanName) ? "" : jade.interp)) + "
              "); } } buf.push("
              "); } } }).call(this); ;return buf.join(""); }; this["JST"]["teambuilder/species"] = function anonymous(locals /**/) { var buf = []; var locals_ = (locals || {}),window = locals_.window,pokemon = locals_.pokemon;buf.push("
              "); var url = window.PokemonSprite(pokemon) buf.push("
              "); // iterate pokemon.getForme().types ;(function(){ var $$obj = pokemon.getForme().types; if ('number' == typeof $$obj.length) { for (var $index = 0, $$l = $$obj.length; $index < $$l; $index++) { var type = $$obj[$index]; buf.push(""); } } else { var $$l = 0; for (var $index in $$obj) { $$l++; var type = $$obj[$index]; buf.push(""); } } }).call(this); buf.push("
              "); var formes = pokemon.getSelectableFormes() if ( formes.length > 1) { buf.push("
              Forme:
              "); };return buf.join(""); }; this["JST"]["teambuilder/team"] = function anonymous(locals /**/) { var buf = []; var locals_ = (locals || {}),team = locals_.team,window = locals_.window;buf.push("

              " + (jade.escape(null == (jade.interp = team.getName()) ? "" : jade.interp)) + "

              " + (null == (jade.interp = window.JST['team_small']({team: team, window: window})) ? "" : jade.interp) + "
              Export | Clone | Delete
              " + (null == (jade.interp = window.JST['spinner']()) ? "" : jade.interp) + "
              ");;return buf.join(""); }; this["JST"]["teambuilder/teams"] = function anonymous(locals /**/) { var buf = []; var locals_ = (locals || {}),teams = locals_.teams,window = locals_.window;buf.push("

              Your teams

              "); // iterate teams ;(function(){ var $$obj = teams; if ('number' == typeof $$obj.length) { for (var $index = 0, $$l = $$obj.length; $index < $$l; $index++) { var team = $$obj[$index]; buf.push(null == (jade.interp = window.JST['teambuilder/team']({team: team, window: window})) ? "" : jade.interp); } } else { var $$l = 0; for (var $index in $$obj) { $$l++; var team = $$obj[$index]; buf.push(null == (jade.interp = window.JST['teambuilder/team']({team: team, window: window})) ? "" : jade.interp); } } }).call(this); buf.push("
              Add new team
              Import
              ");;return buf.join(""); }; this["JST"]["user_list"] = function anonymous(locals /**/) { var buf = []; var locals_ = (locals || {}),userList = locals_.userList;// iterate userList ;(function(){ var $$obj = userList; if ('number' == typeof $$obj.length) { for (var $index = 0, $$l = $$obj.length; $index < $$l; $index++) { var user = $$obj[$index]; if ( user.isAlt()) { buf.push("
            • " + (jade.escape(null == (jade.interp = user.getDisplayName()) ? "" : jade.interp)) + "
            • "); } else { buf.push("" + (jade.escape(null == (jade.interp = user.getDisplayName()) ? "" : jade.interp)) + ""); } } } else { var $$l = 0; for (var $index in $$obj) { $$l++; var user = $$obj[$index]; if ( user.isAlt()) { buf.push("
            • " + (jade.escape(null == (jade.interp = user.getDisplayName()) ? "" : jade.interp)) + "
            • "); } else { buf.push("" + (jade.escape(null == (jade.interp = user.getDisplayName()) ? "" : jade.interp)) + ""); } } } }).call(this); ;return buf.join(""); };