@(data: play.api.libs.json.JsObject, pov: Pov)(implicit ctx: Context) @import lila.rating.PerfType.iconByVariant @moreCss = { @cssTag("analyse.css") @if(!pov.game.synthetic && pov.game.playable && ctx.me.flatMap(pov.game.player).isDefined) { @cssTag("forecast.css") } } @moreJs = { @jsAt(s"compiled/lichess.analyse${isProd??(".min")}.js") @embedJs { lichess = lichess || {}; lichess.user_analysis = { data: @safeJson(data), i18n: @userAnalysisI18n( withForecast = !pov.game.synthetic && pov.game.playable && ctx.me.flatMap(pov.game.player).isDefined ), explorer: { endpoint: "@explorerEndpoint", tablebaseEndpoint: "@tablebaseEndpoint" } }; } } @side = { @if(pov.game.synthetic) {