# frozen_string_literal: true

EVENT_LOG ||= Logger.new(Rails.root.join('log', 'event.log'))

module Resources
  class Kartalytics < Grape::API
    format :json

    params do
      requires :events, type: Array
    end

    post '/ingest' do
      params[:events].each do |event|
        EVENT_LOG.info event.to_json
        KartalyticsState.ingest(event)
      rescue StandardError => e
        # if anything goes wrong, continue processing events
        EVENT_LOG.error e.message
      end
      status :ok
    end

    get '/event' do
      if !Rails.env.development? || ENV['KARTALYTICS_EVENT_STUB'].nil?
        Entities::Kartalytics::Event.new(true)
      else
        Kartalytics.event_stub
      end
    end

    get '/event_select_players' do
      Entities::Kartalytics::EventSelectPlayers.new(true)
    end

    get '/matches' do
      matches = KartalyticsMatch.finished.with_players.paginate(:page => params[:page]).order('created_at DESC')

      present :matches, matches, with: Entities::Kartalytics::Match
      present :current_match, KartalyticsMatch.current_match, with: Entities::Kartalytics::Match
    end

    params { requires :match_id }
    get '/match/:match_id' do
      present KartalyticsMatch.find(params[:match_id]), with: Entities::Kartalytics::ComplexMatch
    end

    params { requires :race_id }
    get '/race_update/:race_id' do
      KartalyticsRace.find(params[:race_id]).to_chart_json
    end

    get '/leaderboard' do
      present TrueskillLeaderboard.new(League.id_for('kart'), 1.month.ago).latest, with: Entities::Kartalytics::Player
    end

    get '/players' do
      present ::Player.all.order(:name), with: Entities::Kartalytics::Player
    end

    get '/courses' do
      present ::KartalyticsCourse.all.order(:name), with: Entities::Kartalytics::Course
    end

    params { requires :name }
    get '/courses/:name' do
      present ::KartalyticsCourse.find_by(name: params[:name]), with: Entities::Kartalytics::ComplexCourse
    end

    params { requires :name }
    get '/players/:name' do
      present ::Player.find_by(name: params[:name]), with: Entities::Kartalytics::ComplexPlayer
    end

    put '/double-down/' do
      previous_match = KartalyticsMatch.second_to_last
      current_match = KartalyticsMatch.last

      current_match.associate_players!(
        player_one: previous_match.player_one,
        player_two: previous_match.player_two,
        player_three: previous_match.player_three,
        player_four: previous_match.player_four,
      )
    end

    private

    def self.event_stub
      JSON.parse <<-JSON
{
  "title": "Race 1",
  "match": {
    "id": 420,
    "assigned": false,
    "created_at": "2022-04-08T05:34:52.686Z",
    "status": "fooo",
    "started": true,
    "leaderboard": [
      { "player":"player_one", "position": 1, "score": 120, "color":"rgb(254, 207, 0)", "name":"Player 1", "cumulative_race_scores": [0, 15, 30, 45, 60, 62, 64] },
      { "player":"player_two", "position": 2, "score": 80, "color":"rgb(25, 191, 241)", "name":"Player 2", "cumulative_race_scores": [0, 12, 24, 36, 48, 63, 78] },
      { "player":"player_three", "position": 3, "score": 60, "color":"rgb(224, 38, 67)", "name":"Player 3", "cumulative_race_scores": [0, 8, 10, 14, 16, 18, 22] },
      { "player":"player_four", "position": 4, "score": 22, "color": "rgb(93, 251, 60)", "name":"Player 4", "cumulative_race_scores": [0, 7, 12, 14, 23, 32, 38] }
    ]
  },
  "race": {
    "status":"finished",
    "course_name": "Mario Circuit (GBA)",
    "course_champion": "christian",
    "course_best_time": 70.879,
    "course_top_records": [{"player_name": "mike", "race_time": 69.35}],
    "course_top_players": [{"player_name": "mike", "games": 345, "wins": 75, "ratio": 0.22}],
    "race_time": 70.879,
    "course_image": "/assets/courses/mario_circuit_gba.jpg",
    "players":[
      {
        "player":"player_one",
        "label":"Player 1",
        "color":"rgb(254, 207, 0)",
        "delta":"+4.0s",
        "race_time":79.9,
        "data":[{"position":4,"timestamp":"2018-08-13T02:53:21.765Z","item":null},{"position":4,"timestamp":"2018-08-13T02:53:21.775Z","item":null},{"position":5,"timestamp":"2018-08-13T02:53:22.775Z","item":null},{"position":5,"timestamp":"2018-08-13T02:53:22.775Z","item":null},{"position":4,"timestamp":"2018-08-13T02:53:23.745Z","item":null},{"position":4,"timestamp":"2018-08-13T02:53:23.745Z","item":null},{"position":3,"timestamp":"2018-08-13T02:53:24.745Z","item":null},{"position":3,"timestamp":"2018-08-13T02:53:24.755Z","item":null},{"position":3,"timestamp":"2018-08-13T02:53:25.755Z","item":null},{"position":3,"timestamp":"2018-08-13T02:53:25.755Z","item":null},{"position":3,"timestamp":"2018-08-13T02:53:26.715Z","item":null},{"position":3,"timestamp":"2018-08-13T02:53:26.725Z","item":null},{"position":3,"timestamp":"2018-08-13T02:53:27.715Z","item":"green-shell"},{"position":3,"timestamp":"2018-08-13T02:53:27.715Z","item":null},{"position":3,"timestamp":"2018-08-13T02:53:28.765Z","item":null},{"position":3,"timestamp":"2018-08-13T02:53:28.765Z","item":null},{"position":3,"timestamp":"2018-08-13T02:53:29.715Z","item":null},{"position":3,"timestamp":"2018-08-13T02:53:29.715Z","item":null},{"position":3,"timestamp":"2018-08-13T02:53:30.715Z","item":null},{"position":3,"timestamp":"2018-08-13T02:53:30.715Z","item":null},{"position":3,"timestamp":"2018-08-13T02:53:31.775Z","item":null},{"position":3,"timestamp":"2018-08-13T02:53:31.775Z","item":null},{"position":3,"timestamp":"2018-08-13T02:53:32.725Z","item":null},{"position":3,"timestamp":"2018-08-13T02:53:32.735Z","item":null},{"position":3,"timestamp":"2018-08-13T02:53:33.795Z","item":null},{"position":3,"timestamp":"2018-08-13T02:53:33.795Z","item":null},{"position":3,"timestamp":"2018-08-13T02:53:34.705Z","item":null},{"position":3,"timestamp":"2018-08-13T02:53:34.705Z","item":null},{"position":3,"timestamp":"2018-08-13T02:53:35.715Z","item":null},{"position":3,"timestamp":"2018-08-13T02:53:35.715Z","item":null},{"position":3,"timestamp":"2018-08-13T02:53:36.765Z","item":null},{"position":3,"timestamp":"2018-08-13T02:53:36.775Z","item":null},{"position":3,"timestamp":"2018-08-13T02:53:37.765Z","item":null},{"position":3,"timestamp":"2018-08-13T02:53:37.765Z","item":null},{"position":3,"timestamp":"2018-08-13T02:53:39.715Z","item":"green-shell-triple"},{"position":3,"timestamp":"2018-08-13T02:53:39.715Z","item":null},{"position":2,"timestamp":"2018-08-13T02:53:40.705Z","item":null},{"position":2,"timestamp":"2018-08-13T02:53:40.705Z","item":null},{"position":2,"timestamp":"2018-08-13T02:53:41.715Z","item":"green-shell-double"},{"position":2,"timestamp":"2018-08-13T02:53:41.725Z","item":null},{"position":3,"timestamp":"2018-08-13T02:53:42.715Z","item":null},{"position":3,"timestamp":"2018-08-13T02:53:42.715Z","item":null},{"position":3,"timestamp":"2018-08-13T02:53:43.705Z","item":null},{"position":3,"timestamp":"2018-08-13T02:53:43.715Z","item":null},{"position":4,"timestamp":"2018-08-13T02:53:44.705Z","item":null},{"position":4,"timestamp":"2018-08-13T02:53:44.705Z","item":null},{"position":4,"timestamp":"2018-08-13T02:53:45.715Z","item":null},{"position":4,"timestamp":"2018-08-13T02:53:45.715Z","item":null},{"position":4,"timestamp":"2018-08-13T02:53:46.705Z","item":null},{"position":4,"timestamp":"2018-08-13T02:53:46.715Z","item":null},{"position":4,"timestamp":"2018-08-13T02:53:47.715Z","item":null},{"position":4,"timestamp":"2018-08-13T02:53:47.715Z","item":null},{"position":4,"timestamp":"2018-08-13T02:53:48.715Z","item":null},{"position":4,"timestamp":"2018-08-13T02:53:48.715Z","item":null},{"position":5,"timestamp":"2018-08-13T02:53:49.705Z","item":null},{"position":5,"timestamp":"2018-08-13T02:53:49.715Z","item":null},{"position":4,"timestamp":"2018-08-13T02:53:50.715Z","item":null},{"position":4,"timestamp":"2018-08-13T02:53:50.715Z","item":null},{"position":5,"timestamp":"2018-08-13T02:53:51.705Z","item":null},{"position":5,"timestamp":"2018-08-13T02:53:51.715Z","item":null},{"position":5,"timestamp":"2018-08-13T02:53:52.765Z","item":null},{"position":5,"timestamp":"2018-08-13T02:53:52.775Z","item":null},{"position":5,"timestamp":"2018-08-13T02:53:53.725Z","item":null},{"position":5,"timestamp":"2018-08-13T02:53:53.725Z","item":null},{"position":5,"timestamp":"2018-08-13T02:53:54.735Z","item":null},{"position":5,"timestamp":"2018-08-13T02:53:54.735Z","item":null},{"position":5,"timestamp":"2018-08-13T02:53:55.775Z","item":null},{"position":5,"timestamp":"2018-08-13T02:53:55.775Z","item":null},{"position":5,"timestamp":"2018-08-13T02:53:56.715Z","item":"green-shell-triple"},{"position":5,"timestamp":"2018-08-13T02:53:56.725Z","item":null},{"position":5,"timestamp":"2018-08-13T02:53:57.715Z","item":null},{"position":5,"timestamp":"2018-08-13T02:53:57.715Z","item":null},{"position":5,"timestamp":"2018-08-13T02:53:58.725Z","item":null},{"position":5,"timestamp":"2018-08-13T02:53:58.735Z","item":null},{"position":5,"timestamp":"2018-08-13T02:53:59.735Z","item":null},{"position":5,"timestamp":"2018-08-13T02:53:59.735Z","item":null},{"position":5,"timestamp":"2018-08-13T02:54:00.735Z","item":null},{"position":5,"timestamp":"2018-08-13T02:54:00.735Z","item":null},{"position":5,"timestamp":"2018-08-13T02:54:01.725Z","item":null},{"position":5,"timestamp":"2018-08-13T02:54:01.735Z","item":null},{"position":5,"timestamp":"2018-08-13T02:54:02.765Z","item":null},{"position":5,"timestamp":"2018-08-13T02:54:02.775Z","item":null},{"position":4,"timestamp":"2018-08-13T02:54:03.765Z","item":null},{"position":4,"timestamp":"2018-08-13T02:54:03.765Z","item":null},{"position":4,"timestamp":"2018-08-13T02:54:04.705Z","item":null},{"position":4,"timestamp":"2018-08-13T02:54:04.715Z","item":null},{"position":4,"timestamp":"2018-08-13T02:54:05.705Z","item":null},{"position":4,"timestamp":"2018-08-13T02:54:05.705Z","item":null},{"position":4,"timestamp":"2018-08-13T02:54:06.785Z","item":null},{"position":4,"timestamp":"2018-08-13T02:54:06.785Z","item":null},{"position":4,"timestamp":"2018-08-13T02:54:07.715Z","item":null},{"position":4,"timestamp":"2018-08-13T02:54:07.715Z","item":null},{"position":4,"timestamp":"2018-08-13T02:54:08.715Z","item":null},{"position":4,"timestamp":"2018-08-13T02:54:08.715Z","item":null},{"position":4,"timestamp":"2018-08-13T02:54:09.705Z","item":"green-shell"},{"position":4,"timestamp":"2018-08-13T02:54:09.705Z","item":null},{"position":4,"timestamp":"2018-08-13T02:54:10.705Z","item":null},{"position":4,"timestamp":"2018-08-13T02:54:10.715Z","item":null},{"position":4,"timestamp":"2018-08-13T02:54:11.705Z","item":null},{"position":4,"timestamp":"2018-08-13T02:54:11.705Z","item":null},{"position":4,"timestamp":"2018-08-13T02:54:12.725Z","item":null},{"position":4,"timestamp":"2018-08-13T02:54:12.725Z","item":null},{"position":4,"timestamp":"2018-08-13T02:54:13.765Z","item":"mushroom-double"},{"position":4,"timestamp":"2018-08-13T02:54:13.765Z","item":null},{"position":4,"timestamp":"2018-08-13T02:54:14.725Z","item":null},{"position":4,"timestamp":"2018-08-13T02:54:14.745Z","item":null},{"position":4,"timestamp":"2018-08-13T02:54:15.705Z","item":null},{"position":4,"timestamp":"2018-08-13T02:54:15.705Z","item":null},{"position":4,"timestamp":"2018-08-13T02:54:16.755Z","item":null},{"position":4,"timestamp":"2018-08-13T02:54:16.765Z","item":null},{"position":4,"timestamp":"2018-08-13T02:54:17.735Z","item":null},{"position":4,"timestamp":"2018-08-13T02:54:17.735Z","item":null},{"position":4,"timestamp":"2018-08-13T02:54:18.735Z","item":"mushroom"},{"position":4,"timestamp":"2018-08-13T02:54:18.745Z","item":null},{"position":4,"timestamp":"2018-08-13T02:54:19.715Z","item":null},{"position":4,"timestamp":"2018-08-13T02:54:19.735Z","item":null},{"position":4,"timestamp":"2018-08-13T02:54:20.795Z","item":null},{"position":4,"timestamp":"2018-08-13T02:54:20.805Z","item":null},{"position":4,"timestamp":"2018-08-13T02:54:21.705Z","item":null},{"position":4,"timestamp":"2018-08-13T02:54:21.705Z","item":null},{"position":4,"timestamp":"2018-08-13T02:54:22.705Z","item":null},{"position":4,"timestamp":"2018-08-13T02:54:22.705Z","item":null},{"position":4,"timestamp":"2018-08-13T02:54:23.775Z","item":null},{"position":4,"timestamp":"2018-08-13T02:54:23.775Z","item":null},{"position":4,"timestamp":"2018-08-13T02:54:24.785Z","item":null},{"position":4,"timestamp":"2018-08-13T02:54:24.795Z","item":null},{"position":4,"timestamp":"2018-08-13T02:54:25.705Z","item":null},{"position":4,"timestamp":"2018-08-13T02:54:25.715Z","item":null},{"position":4,"timestamp":"2018-08-13T02:54:26.705Z","item":null},{"position":4,"timestamp":"2018-08-13T02:54:26.715Z","item":null},{"position":4,"timestamp":"2018-08-13T02:54:27.695Z","item":null},{"position":4,"timestamp":"2018-08-13T02:54:27.705Z","item":null},{"position":4,"timestamp":"2018-08-13T02:54:28.715Z","item":null},{"position":4,"timestamp":"2018-08-13T02:54:28.725Z","item":null},{"position":4,"timestamp":"2018-08-13T02:54:29.705Z","item":null},{"position":4,"timestamp":"2018-08-13T02:54:29.705Z","item":null},{"position":4,"timestamp":"2018-08-13T02:54:30.705Z","item":null},{"position":4,"timestamp":"2018-08-13T02:54:30.705Z","item":null},{"position":4,"timestamp":"2018-08-13T02:54:31.775Z","item":null},{"position":4,"timestamp":"2018-08-13T02:54:31.775Z","item":null},{"position":4,"timestamp":"2018-08-13T02:54:32.735Z","item":null},{"position":4,"timestamp":"2018-08-13T02:54:32.745Z","item":null},{"position":4,"timestamp":"2018-08-13T02:54:33.695Z","item":null},{"position":4,"timestamp":"2018-08-13T02:54:33.705Z","item":null},{"position":4,"timestamp":"2018-08-13T02:54:34.725Z","item":null},{"position":4,"timestamp":"2018-08-13T02:54:34.725Z","item":null},{"position":4,"timestamp":"2018-08-13T02:54:35.705Z","item":null},{"position":4,"timestamp":"2018-08-13T02:54:35.705Z","item":null},{"position":4,"timestamp":"2018-08-13T02:54:36.705Z","item":null},{"position":4,"timestamp":"2018-08-13T02:54:36.705Z","item":null},{"position":4,"timestamp":"2018-08-13T02:54:37.715Z","item":null},{"position":4,"timestamp":"2018-08-13T02:54:37.725Z","item":null},{"position":4,"timestamp":"2018-08-13T02:54:39.695Z","item":null},{"position":4,"timestamp":"2018-08-13T02:54:39.705Z","item":null}]
      },
      {
        "player":"player_two",
        "label":"Player 2",
        "color":"rgb(25, 191, 241)",
        "delta":"+2.0s",
        "race_time":77.994,
        "pb_set": true,
        "data":[{"position":6,"timestamp":"2018-08-13T02:53:21.765Z","item":null},{"position":6,"timestamp":"2018-08-13T02:53:21.775Z","item":null},{"position":4,"timestamp":"2018-08-13T02:53:22.775Z","item":null},{"position":4,"timestamp":"2018-08-13T02:53:22.775Z","item":null},{"position":4,"timestamp":"2018-08-13T02:53:25.755Z","item":null},{"position":4,"timestamp":"2018-08-13T02:53:25.755Z","item":null},{"position":4,"timestamp":"2018-08-13T02:53:26.715Z","item":null},{"position":4,"timestamp":"2018-08-13T02:53:26.725Z","item":null},{"position":4,"timestamp":"2018-08-13T02:53:27.715Z","item":null},{"position":4,"timestamp":"2018-08-13T02:53:27.715Z","item":null},{"position":4,"timestamp":"2018-08-13T02:53:28.765Z","item":null},{"position":4,"timestamp":"2018-08-13T02:53:28.765Z","item":null},{"position":4,"timestamp":"2018-08-13T02:53:29.715Z","item":"green-shell"},{"position":4,"timestamp":"2018-08-13T02:53:29.715Z","item":null},{"position":4,"timestamp":"2018-08-13T02:53:30.715Z","item":null},{"position":4,"timestamp":"2018-08-13T02:53:30.715Z","item":null},{"position":4,"timestamp":"2018-08-13T02:53:31.775Z","item":null},{"position":4,"timestamp":"2018-08-13T02:53:31.775Z","item":null},{"position":4,"timestamp":"2018-08-13T02:53:32.725Z","item":null},{"position":4,"timestamp":"2018-08-13T02:53:32.735Z","item":null},{"position":4,"timestamp":"2018-08-13T02:53:33.795Z","item":null},{"position":4,"timestamp":"2018-08-13T02:53:33.795Z","item":null},{"position":4,"timestamp":"2018-08-13T02:53:34.705Z","item":null},{"position":4,"timestamp":"2018-08-13T02:53:34.705Z","item":null},{"position":4,"timestamp":"2018-08-13T02:53:35.715Z","item":null},{"position":4,"timestamp":"2018-08-13T02:53:35.715Z","item":null},{"position":4,"timestamp":"2018-08-13T02:53:36.765Z","item":null},{"position":4,"timestamp":"2018-08-13T02:53:36.775Z","item":null},{"position":4,"timestamp":"2018-08-13T02:53:37.765Z","item":null},{"position":4,"timestamp":"2018-08-13T02:53:37.765Z","item":null},{"position":4,"timestamp":"2018-08-13T02:53:38.715Z","item":null},{"position":4,"timestamp":"2018-08-13T02:53:38.725Z","item":null},{"position":4,"timestamp":"2018-08-13T02:53:39.715Z","item":null},{"position":4,"timestamp":"2018-08-13T02:53:39.715Z","item":null},{"position":4,"timestamp":"2018-08-13T02:53:40.705Z","item":null},{"position":4,"timestamp":"2018-08-13T02:53:40.705Z","item":null},{"position":4,"timestamp":"2018-08-13T02:53:41.715Z","item":null},{"position":4,"timestamp":"2018-08-13T02:53:41.725Z","item":null},{"position":4,"timestamp":"2018-08-13T02:53:42.715Z","item":null},{"position":4,"timestamp":"2018-08-13T02:53:42.715Z","item":null},{"position":4,"timestamp":"2018-08-13T02:53:43.705Z","item":null},{"position":4,"timestamp":"2018-08-13T02:53:43.715Z","item":null},{"position":5,"timestamp":"2018-08-13T02:53:44.705Z","item":null},{"position":5,"timestamp":"2018-08-13T02:53:44.705Z","item":null},{"position":5,"timestamp":"2018-08-13T02:53:45.715Z","item":null},{"position":5,"timestamp":"2018-08-13T02:53:45.715Z","item":null},{"position":5,"timestamp":"2018-08-13T02:53:46.705Z","item":null},{"position":5,"timestamp":"2018-08-13T02:53:46.715Z","item":null},{"position":5,"timestamp":"2018-08-13T02:53:47.715Z","item":null},{"position":5,"timestamp":"2018-08-13T02:53:47.715Z","item":null},{"position":5,"timestamp":"2018-08-13T02:53:48.715Z","item":null},{"position":5,"timestamp":"2018-08-13T02:53:48.715Z","item":null},{"position":4,"timestamp":"2018-08-13T02:53:49.705Z","item":null},{"position":4,"timestamp":"2018-08-13T02:53:49.715Z","item":null},{"position":5,"timestamp":"2018-08-13T02:53:50.715Z","item":null},{"position":5,"timestamp":"2018-08-13T02:53:50.715Z","item":null},{"position":4,"timestamp":"2018-08-13T02:53:51.705Z","item":null},{"position":4,"timestamp":"2018-08-13T02:53:51.715Z","item":null},{"position":4,"timestamp":"2018-08-13T02:53:52.765Z","item":null},{"position":4,"timestamp":"2018-08-13T02:53:52.775Z","item":null},{"position":4,"timestamp":"2018-08-13T02:53:53.725Z","item":null},{"position":4,"timestamp":"2018-08-13T02:53:53.725Z","item":null},{"position":4,"timestamp":"2018-08-13T02:53:54.735Z","item":null},{"position":4,"timestamp":"2018-08-13T02:53:54.735Z","item":null},{"position":4,"timestamp":"2018-08-13T02:53:55.775Z","item":null},{"position":4,"timestamp":"2018-08-13T02:53:55.775Z","item":null},{"position":4,"timestamp":"2018-08-13T02:53:56.715Z","item":null},{"position":4,"timestamp":"2018-08-13T02:53:56.725Z","item":null},{"position":4,"timestamp":"2018-08-13T02:53:57.715Z","item":"pirhana-plant"},{"position":4,"timestamp":"2018-08-13T02:53:57.715Z","item":null},{"position":4,"timestamp":"2018-08-13T02:53:58.725Z","item":null},{"position":4,"timestamp":"2018-08-13T02:53:58.735Z","item":null},{"position":4,"timestamp":"2018-08-13T02:53:59.735Z","item":null},{"position":4,"timestamp":"2018-08-13T02:53:59.735Z","item":null},{"position":4,"timestamp":"2018-08-13T02:54:00.735Z","item":null},{"position":4,"timestamp":"2018-08-13T02:54:00.735Z","item":null},{"position":4,"timestamp":"2018-08-13T02:54:01.725Z","item":null},{"position":4,"timestamp":"2018-08-13T02:54:01.735Z","item":null},{"position":4,"timestamp":"2018-08-13T02:54:02.765Z","item":null},{"position":4,"timestamp":"2018-08-13T02:54:02.775Z","item":null},{"position":3,"timestamp":"2018-08-13T02:54:03.765Z","item":null},{"position":3,"timestamp":"2018-08-13T02:54:03.765Z","item":null},{"position":3,"timestamp":"2018-08-13T02:54:04.705Z","item":null},{"position":3,"timestamp":"2018-08-13T02:54:04.715Z","item":null},{"position":3,"timestamp":"2018-08-13T02:54:05.705Z","item":null},{"position":3,"timestamp":"2018-08-13T02:54:05.705Z","item":null},{"position":3,"timestamp":"2018-08-13T02:54:06.785Z","item":null},{"position":3,"timestamp":"2018-08-13T02:54:06.785Z","item":null},{"position":3,"timestamp":"2018-08-13T02:54:07.715Z","item":null},{"position":3,"timestamp":"2018-08-13T02:54:07.715Z","item":null},{"position":3,"timestamp":"2018-08-13T02:54:08.715Z","item":null},{"position":3,"timestamp":"2018-08-13T02:54:08.715Z","item":null},{"position":3,"timestamp":"2018-08-13T02:54:09.705Z","item":null},{"position":3,"timestamp":"2018-08-13T02:54:09.705Z","item":null},{"position":3,"timestamp":"2018-08-13T02:54:10.705Z","item":null},{"position":3,"timestamp":"2018-08-13T02:54:10.715Z","item":null},{"position":3,"timestamp":"2018-08-13T02:54:12.725Z","item":null},{"position":3,"timestamp":"2018-08-13T02:54:12.725Z","item":null},{"position":3,"timestamp":"2018-08-13T02:54:13.765Z","item":null},{"position":3,"timestamp":"2018-08-13T02:54:13.765Z","item":null},{"position":3,"timestamp":"2018-08-13T02:54:14.725Z","item":null},{"position":3,"timestamp":"2018-08-13T02:54:14.745Z","item":null},{"position":3,"timestamp":"2018-08-13T02:54:15.705Z","item":null},{"position":3,"timestamp":"2018-08-13T02:54:15.705Z","item":null},{"position":3,"timestamp":"2018-08-13T02:54:16.755Z","item":null},{"position":3,"timestamp":"2018-08-13T02:54:16.765Z","item":null},{"position":3,"timestamp":"2018-08-13T02:54:17.735Z","item":null},{"position":3,"timestamp":"2018-08-13T02:54:17.735Z","item":null},{"position":3,"timestamp":"2018-08-13T02:54:18.735Z","item":null},{"position":3,"timestamp":"2018-08-13T02:54:18.745Z","item":null},{"position":3,"timestamp":"2018-08-13T02:54:19.715Z","item":null},{"position":3,"timestamp":"2018-08-13T02:54:19.735Z","item":null},{"position":3,"timestamp":"2018-08-13T02:54:20.795Z","item":"golden-mushroom"},{"position":3,"timestamp":"2018-08-13T02:54:20.805Z","item":null},{"position":3,"timestamp":"2018-08-13T02:54:21.705Z","item":null},{"position":3,"timestamp":"2018-08-13T02:54:21.705Z","item":null},{"position":3,"timestamp":"2018-08-13T02:54:22.705Z","item":null},{"position":3,"timestamp":"2018-08-13T02:54:22.705Z","item":null},{"position":3,"timestamp":"2018-08-13T02:54:23.775Z","item":null},{"position":3,"timestamp":"2018-08-13T02:54:23.775Z","item":null},{"position":3,"timestamp":"2018-08-13T02:54:24.785Z","item":null},{"position":3,"timestamp":"2018-08-13T02:54:24.795Z","item":null},{"position":3,"timestamp":"2018-08-13T02:54:25.705Z","item":null},{"position":3,"timestamp":"2018-08-13T02:54:25.715Z","item":null},{"position":3,"timestamp":"2018-08-13T02:54:26.705Z","item":null},{"position":3,"timestamp":"2018-08-13T02:54:26.715Z","item":null},{"position":3,"timestamp":"2018-08-13T02:54:27.695Z","item":null},{"position":3,"timestamp":"2018-08-13T02:54:27.705Z","item":null},{"position":3,"timestamp":"2018-08-13T02:54:28.715Z","item":null},{"position":3,"timestamp":"2018-08-13T02:54:28.725Z","item":null},{"position":3,"timestamp":"2018-08-13T02:54:29.705Z","item":null},{"position":3,"timestamp":"2018-08-13T02:54:29.705Z","item":null},{"position":3,"timestamp":"2018-08-13T02:54:30.705Z","item":null},{"position":3,"timestamp":"2018-08-13T02:54:30.705Z","item":null},{"position":3,"timestamp":"2018-08-13T02:54:31.775Z","item":null},{"position":3,"timestamp":"2018-08-13T02:54:31.775Z","item":null},{"position":3,"timestamp":"2018-08-13T02:54:32.735Z","item":null},{"position":3,"timestamp":"2018-08-13T02:54:32.745Z","item":null},{"position":3,"timestamp":"2018-08-13T02:54:33.695Z","item":null},{"position":3,"timestamp":"2018-08-13T02:54:33.705Z","item":null},{"position":3,"timestamp":"2018-08-13T02:54:34.725Z","item":null},{"position":3,"timestamp":"2018-08-13T02:54:34.725Z","item":null},{"position":3,"timestamp":"2018-08-13T02:54:35.705Z","item":null},{"position":3,"timestamp":"2018-08-13T02:54:35.705Z","item":null},{"position":3,"timestamp":"2018-08-13T02:54:36.705Z","item":null},{"position":3,"timestamp":"2018-08-13T02:54:36.705Z","item":null},{"position":3,"timestamp":"2018-08-13T02:54:37.715Z","item":null},{"position":3,"timestamp":"2018-08-13T02:54:37.725Z","item":null},{"position":3,"timestamp":"2018-08-13T02:54:39.695Z","item":null},{"position":3,"timestamp":"2018-08-13T02:54:39.705Z","item":null}]
      },
      {
        "player":"player_three",
        "label":"Player 3",
        "color":"rgb(224, 38, 67)",
        "race_time":75.9,
        "pb_set": true,
        "course_record_set": true,
        "data":[{"position":1,"timestamp":"2018-08-13T02:53:23.745Z","item":null},{"position":1,"timestamp":"2018-08-13T02:53:23.745Z","item":null},{"position":1,"timestamp":"2018-08-13T02:53:24.745Z","item":null},{"position":1,"timestamp":"2018-08-13T02:53:24.755Z","item":null},{"position":1,"timestamp":"2018-08-13T02:53:26.715Z","item":"coin"},{"position":1,"timestamp":"2018-08-13T02:53:26.725Z","item":null},{"position":1,"timestamp":"2018-08-13T02:53:27.715Z","item":null},{"position":1,"timestamp":"2018-08-13T02:53:27.715Z","item":null},{"position":1,"timestamp":"2018-08-13T02:53:28.765Z","item":null},{"position":1,"timestamp":"2018-08-13T02:53:28.765Z","item":null},{"position":1,"timestamp":"2018-08-13T02:53:29.715Z","item":null},{"position":1,"timestamp":"2018-08-13T02:53:29.715Z","item":null},{"position":1,"timestamp":"2018-08-13T02:53:30.715Z","item":null},{"position":1,"timestamp":"2018-08-13T02:53:30.715Z","item":null},{"position":1,"timestamp":"2018-08-13T02:53:31.775Z","item":null},{"position":1,"timestamp":"2018-08-13T02:53:31.775Z","item":null},{"position":1,"timestamp":"2018-08-13T02:53:32.725Z","item":null},{"position":1,"timestamp":"2018-08-13T02:53:32.735Z","item":null},{"position":1,"timestamp":"2018-08-13T02:53:33.795Z","item":null},{"position":1,"timestamp":"2018-08-13T02:53:33.795Z","item":null},{"position":1,"timestamp":"2018-08-13T02:53:34.705Z","item":null},{"position":1,"timestamp":"2018-08-13T02:53:34.705Z","item":null},{"position":1,"timestamp":"2018-08-13T02:53:36.765Z","item":"green-shell"},{"position":1,"timestamp":"2018-08-13T02:53:36.775Z","item":null},{"position":1,"timestamp":"2018-08-13T02:53:37.765Z","item":null},{"position":1,"timestamp":"2018-08-13T02:53:37.765Z","item":null},{"position":1,"timestamp":"2018-08-13T02:53:38.715Z","item":null},{"position":1,"timestamp":"2018-08-13T02:53:38.725Z","item":null},{"position":1,"timestamp":"2018-08-13T02:53:39.715Z","item":null},{"position":1,"timestamp":"2018-08-13T02:53:39.715Z","item":null},{"position":1,"timestamp":"2018-08-13T02:53:40.705Z","item":null},{"position":1,"timestamp":"2018-08-13T02:53:40.705Z","item":null},{"position":1,"timestamp":"2018-08-13T02:53:41.715Z","item":null},{"position":1,"timestamp":"2018-08-13T02:53:41.725Z","item":null},{"position":1,"timestamp":"2018-08-13T02:53:42.715Z","item":null},{"position":1,"timestamp":"2018-08-13T02:53:42.715Z","item":null},{"position":1,"timestamp":"2018-08-13T02:53:43.705Z","item":"banana"},{"position":1,"timestamp":"2018-08-13T02:53:43.715Z","item":null},{"position":1,"timestamp":"2018-08-13T02:53:44.705Z","item":null},{"position":1,"timestamp":"2018-08-13T02:53:44.705Z","item":null},{"position":1,"timestamp":"2018-08-13T02:53:45.715Z","item":null},{"position":1,"timestamp":"2018-08-13T02:53:45.715Z","item":null},{"position":1,"timestamp":"2018-08-13T02:53:46.705Z","item":null},{"position":1,"timestamp":"2018-08-13T02:53:46.715Z","item":null},{"position":1,"timestamp":"2018-08-13T02:53:47.715Z","item":null},{"position":1,"timestamp":"2018-08-13T02:53:47.715Z","item":null},{"position":1,"timestamp":"2018-08-13T02:53:48.715Z","item":null},{"position":1,"timestamp":"2018-08-13T02:53:48.715Z","item":null},{"position":1,"timestamp":"2018-08-13T02:53:49.705Z","item":null},{"position":1,"timestamp":"2018-08-13T02:53:49.715Z","item":null},{"position":1,"timestamp":"2018-08-13T02:53:50.715Z","item":null},{"position":1,"timestamp":"2018-08-13T02:53:50.715Z","item":null},{"position":1,"timestamp":"2018-08-13T02:53:51.705Z","item":null},{"position":1,"timestamp":"2018-08-13T02:53:51.715Z","item":null},{"position":1,"timestamp":"2018-08-13T02:53:52.765Z","item":null},{"position":1,"timestamp":"2018-08-13T02:53:52.775Z","item":null},{"position":1,"timestamp":"2018-08-13T02:53:53.725Z","item":null},{"position":1,"timestamp":"2018-08-13T02:53:53.725Z","item":null},{"position":1,"timestamp":"2018-08-13T02:53:54.735Z","item":null},{"position":1,"timestamp":"2018-08-13T02:53:54.735Z","item":null},{"position":1,"timestamp":"2018-08-13T02:53:55.775Z","item":null},{"position":1,"timestamp":"2018-08-13T02:53:55.775Z","item":null},{"position":1,"timestamp":"2018-08-13T02:53:56.715Z","item":null},{"position":1,"timestamp":"2018-08-13T02:53:56.725Z","item":null},{"position":1,"timestamp":"2018-08-13T02:53:57.715Z","item":null},{"position":1,"timestamp":"2018-08-13T02:53:57.715Z","item":null},{"position":1,"timestamp":"2018-08-13T02:53:58.725Z","item":null},{"position":1,"timestamp":"2018-08-13T02:53:58.735Z","item":null},{"position":1,"timestamp":"2018-08-13T02:53:59.735Z","item":null},{"position":1,"timestamp":"2018-08-13T02:53:59.735Z","item":null},{"position":1,"timestamp":"2018-08-13T02:54:00.735Z","item":null},{"position":1,"timestamp":"2018-08-13T02:54:00.735Z","item":null},{"position":1,"timestamp":"2018-08-13T02:54:01.725Z","item":null},{"position":1,"timestamp":"2018-08-13T02:54:01.735Z","item":null},{"position":1,"timestamp":"2018-08-13T02:54:02.765Z","item":null},{"position":1,"timestamp":"2018-08-13T02:54:02.775Z","item":null},{"position":1,"timestamp":"2018-08-13T02:54:03.765Z","item":"green-shell"},{"position":1,"timestamp":"2018-08-13T02:54:03.765Z","item":null},{"position":1,"timestamp":"2018-08-13T02:54:04.705Z","item":null},{"position":1,"timestamp":"2018-08-13T02:54:04.715Z","item":null},{"position":1,"timestamp":"2018-08-13T02:54:05.705Z","item":null},{"position":1,"timestamp":"2018-08-13T02:54:05.705Z","item":null},{"position":1,"timestamp":"2018-08-13T02:54:06.785Z","item":null},{"position":1,"timestamp":"2018-08-13T02:54:06.785Z","item":null},{"position":1,"timestamp":"2018-08-13T02:54:07.715Z","item":null},{"position":1,"timestamp":"2018-08-13T02:54:07.715Z","item":null},{"position":1,"timestamp":"2018-08-13T02:54:08.715Z","item":null},{"position":1,"timestamp":"2018-08-13T02:54:08.715Z","item":null},{"position":1,"timestamp":"2018-08-13T02:54:09.705Z","item":null},{"position":1,"timestamp":"2018-08-13T02:54:09.705Z","item":null},{"position":1,"timestamp":"2018-08-13T02:54:10.705Z","item":null},{"position":1,"timestamp":"2018-08-13T02:54:10.715Z","item":null},{"position":1,"timestamp":"2018-08-13T02:54:11.705Z","item":null},{"position":1,"timestamp":"2018-08-13T02:54:11.705Z","item":null},{"position":1,"timestamp":"2018-08-13T02:54:12.725Z","item":null},{"position":1,"timestamp":"2018-08-13T02:54:12.725Z","item":null},{"position":1,"timestamp":"2018-08-13T02:54:13.765Z","item":null},{"position":1,"timestamp":"2018-08-13T02:54:13.765Z","item":null},{"position":1,"timestamp":"2018-08-13T02:54:14.725Z","item":null},{"position":1,"timestamp":"2018-08-13T02:54:14.745Z","item":null},{"position":1,"timestamp":"2018-08-13T02:54:15.705Z","item":null},{"position":1,"timestamp":"2018-08-13T02:54:15.705Z","item":null},{"position":1,"timestamp":"2018-08-13T02:54:16.755Z","item":null},{"position":1,"timestamp":"2018-08-13T02:54:16.765Z","item":null},{"position":1,"timestamp":"2018-08-13T02:54:17.735Z","item":null},{"position":1,"timestamp":"2018-08-13T02:54:17.735Z","item":null},{"position":1,"timestamp":"2018-08-13T02:54:18.735Z","item":null},{"position":1,"timestamp":"2018-08-13T02:54:18.745Z","item":null},{"position":1,"timestamp":"2018-08-13T02:54:19.715Z","item":null},{"position":1,"timestamp":"2018-08-13T02:54:19.735Z","item":null},{"position":1,"timestamp":"2018-08-13T02:54:20.795Z","item":null},{"position":1,"timestamp":"2018-08-13T02:54:20.805Z","item":null},{"position":1,"timestamp":"2018-08-13T02:54:21.705Z","item":"coin"},{"position":1,"timestamp":"2018-08-13T02:54:21.705Z","item":null},{"position":1,"timestamp":"2018-08-13T02:54:22.705Z","item":null},{"position":1,"timestamp":"2018-08-13T02:54:22.705Z","item":null},{"position":1,"timestamp":"2018-08-13T02:54:23.775Z","item":null},{"position":1,"timestamp":"2018-08-13T02:54:23.775Z","item":null},{"position":1,"timestamp":"2018-08-13T02:54:24.785Z","item":null},{"position":1,"timestamp":"2018-08-13T02:54:24.795Z","item":null},{"position":1,"timestamp":"2018-08-13T02:54:25.705Z","item":null},{"position":1,"timestamp":"2018-08-13T02:54:25.715Z","item":null},{"position":1,"timestamp":"2018-08-13T02:54:26.705Z","item":null},{"position":1,"timestamp":"2018-08-13T02:54:26.715Z","item":null},{"position":1,"timestamp":"2018-08-13T02:54:28.715Z","item":null},{"position":1,"timestamp":"2018-08-13T02:54:28.725Z","item":null},{"position":1,"timestamp":"2018-08-13T02:54:29.705Z","item":"banana"},{"position":1,"timestamp":"2018-08-13T02:54:29.705Z","item":null},{"position":1,"timestamp":"2018-08-13T02:54:30.705Z","item":null},{"position":1,"timestamp":"2018-08-13T02:54:30.705Z","item":null},{"position":1,"timestamp":"2018-08-13T02:54:31.775Z","item":null},{"position":1,"timestamp":"2018-08-13T02:54:31.775Z","item":null},{"position":1,"timestamp":"2018-08-13T02:54:32.735Z","item":null},{"position":1,"timestamp":"2018-08-13T02:54:32.745Z","item":null},{"position":1,"timestamp":"2018-08-13T02:54:33.695Z","item":null},{"position":1,"timestamp":"2018-08-13T02:54:33.705Z","item":null},{"position":1,"timestamp":"2018-08-13T02:54:35.705Z","item":null},{"position":1,"timestamp":"2018-08-13T02:54:35.705Z","item":null},{"position":1,"timestamp":"2018-08-13T02:54:36.705Z","item":null},{"position":1,"timestamp":"2018-08-13T02:54:36.705Z","item":null}]
      },
      {
        "player":"player_four",
        "label":"Player 4",
        "color": "rgb(93, 251, 60)",
        "delta":"+13.0s",
        "race_time":88.9,
        "data":[{"position":5,"timestamp":"2018-08-13T02:53:21.765Z","item":null},{"position":5,"timestamp":"2018-08-13T02:53:21.775Z","item":null},{"position":3,"timestamp":"2018-08-13T02:53:22.775Z","item":null},{"position":3,"timestamp":"2018-08-13T02:53:22.775Z","item":null},{"position":2,"timestamp":"2018-08-13T02:53:23.745Z","item":null},{"position":2,"timestamp":"2018-08-13T02:53:23.745Z","item":null},{"position":2,"timestamp":"2018-08-13T02:53:24.745Z","item":null},{"position":2,"timestamp":"2018-08-13T02:53:24.755Z","item":null},{"position":2,"timestamp":"2018-08-13T02:53:25.755Z","item":null},{"position":2,"timestamp":"2018-08-13T02:53:25.755Z","item":null},{"position":2,"timestamp":"2018-08-13T02:53:26.715Z","item":null},{"position":2,"timestamp":"2018-08-13T02:53:26.725Z","item":null},{"position":2,"timestamp":"2018-08-13T02:53:27.715Z","item":"mushroom"},{"position":2,"timestamp":"2018-08-13T02:53:27.715Z","item":null},{"position":2,"timestamp":"2018-08-13T02:53:28.765Z","item":null},{"position":2,"timestamp":"2018-08-13T02:53:28.765Z","item":null},{"position":2,"timestamp":"2018-08-13T02:53:29.715Z","item":null},{"position":2,"timestamp":"2018-08-13T02:53:29.715Z","item":null},{"position":2,"timestamp":"2018-08-13T02:53:30.715Z","item":null},{"position":2,"timestamp":"2018-08-13T02:53:30.715Z","item":null},{"position":2,"timestamp":"2018-08-13T02:53:31.775Z","item":null},{"position":2,"timestamp":"2018-08-13T02:53:31.775Z","item":null},{"position":2,"timestamp":"2018-08-13T02:53:32.725Z","item":null},{"position":2,"timestamp":"2018-08-13T02:53:32.735Z","item":null},{"position":2,"timestamp":"2018-08-13T02:53:33.795Z","item":null},{"position":2,"timestamp":"2018-08-13T02:53:33.795Z","item":null},{"position":2,"timestamp":"2018-08-13T02:53:34.705Z","item":null},{"position":2,"timestamp":"2018-08-13T02:53:34.705Z","item":null},{"position":2,"timestamp":"2018-08-13T02:53:35.715Z","item":null},{"position":2,"timestamp":"2018-08-13T02:53:35.715Z","item":null},{"position":2,"timestamp":"2018-08-13T02:53:36.765Z","item":null},{"position":2,"timestamp":"2018-08-13T02:53:36.775Z","item":null},{"position":2,"timestamp":"2018-08-13T02:53:37.765Z","item":null},{"position":2,"timestamp":"2018-08-13T02:53:37.765Z","item":null},{"position":2,"timestamp":"2018-08-13T02:53:38.715Z","item":"banana"},{"position":2,"timestamp":"2018-08-13T02:53:38.725Z","item":null},{"position":3,"timestamp":"2018-08-13T02:53:39.715Z","item":null},{"position":3,"timestamp":"2018-08-13T02:53:39.715Z","item":null},{"position":3,"timestamp":"2018-08-13T02:53:40.705Z","item":null},{"position":3,"timestamp":"2018-08-13T02:53:40.705Z","item":null},{"position":2,"timestamp":"2018-08-13T02:53:41.715Z","item":null},{"position":2,"timestamp":"2018-08-13T02:53:41.725Z","item":null},{"position":2,"timestamp":"2018-08-13T02:53:42.715Z","item":null},{"position":2,"timestamp":"2018-08-13T02:53:42.715Z","item":null},{"position":2,"timestamp":"2018-08-13T02:53:43.705Z","item":null},{"position":2,"timestamp":"2018-08-13T02:53:43.715Z","item":null},{"position":2,"timestamp":"2018-08-13T02:53:44.705Z","item":null},{"position":2,"timestamp":"2018-08-13T02:53:44.705Z","item":null},{"position":3,"timestamp":"2018-08-13T02:53:46.705Z","item":null},{"position":3,"timestamp":"2018-08-13T02:53:46.715Z","item":null},{"position":3,"timestamp":"2018-08-13T02:53:47.715Z","item":null},{"position":3,"timestamp":"2018-08-13T02:53:47.715Z","item":null},{"position":3,"timestamp":"2018-08-13T02:53:48.715Z","item":null},{"position":3,"timestamp":"2018-08-13T02:53:48.715Z","item":null},{"position":3,"timestamp":"2018-08-13T02:53:49.705Z","item":null},{"position":3,"timestamp":"2018-08-13T02:53:49.715Z","item":null},{"position":3,"timestamp":"2018-08-13T02:53:50.715Z","item":null},{"position":3,"timestamp":"2018-08-13T02:53:50.715Z","item":null},{"position":3,"timestamp":"2018-08-13T02:53:51.705Z","item":null},{"position":3,"timestamp":"2018-08-13T02:53:51.715Z","item":null},{"position":3,"timestamp":"2018-08-13T02:53:52.765Z","item":null},{"position":3,"timestamp":"2018-08-13T02:53:52.775Z","item":null},{"position":2,"timestamp":"2018-08-13T02:53:53.725Z","item":null},{"position":2,"timestamp":"2018-08-13T02:53:53.725Z","item":null},{"position":2,"timestamp":"2018-08-13T02:53:54.735Z","item":null},{"position":2,"timestamp":"2018-08-13T02:53:54.735Z","item":null},{"position":2,"timestamp":"2018-08-13T02:53:55.775Z","item":null},{"position":2,"timestamp":"2018-08-13T02:53:55.775Z","item":null},{"position":2,"timestamp":"2018-08-13T02:53:56.715Z","item":null},{"position":2,"timestamp":"2018-08-13T02:53:56.725Z","item":null},{"position":2,"timestamp":"2018-08-13T02:53:57.715Z","item":null},{"position":2,"timestamp":"2018-08-13T02:53:57.715Z","item":null},{"position":2,"timestamp":"2018-08-13T02:53:58.725Z","item":"mushroom-double"},{"position":2,"timestamp":"2018-08-13T02:53:58.735Z","item":null},{"position":2,"timestamp":"2018-08-13T02:53:59.735Z","item":null},{"position":2,"timestamp":"2018-08-13T02:53:59.735Z","item":null},{"position":2,"timestamp":"2018-08-13T02:54:00.735Z","item":null},{"position":2,"timestamp":"2018-08-13T02:54:00.735Z","item":null},{"position":2,"timestamp":"2018-08-13T02:54:01.725Z","item":null},{"position":2,"timestamp":"2018-08-13T02:54:01.735Z","item":null},{"position":2,"timestamp":"2018-08-13T02:54:02.765Z","item":null},{"position":2,"timestamp":"2018-08-13T02:54:02.775Z","item":null},{"position":2,"timestamp":"2018-08-13T02:54:03.765Z","item":null},{"position":2,"timestamp":"2018-08-13T02:54:03.765Z","item":null},{"position":2,"timestamp":"2018-08-13T02:54:04.705Z","item":null},{"position":2,"timestamp":"2018-08-13T02:54:04.715Z","item":null},{"position":2,"timestamp":"2018-08-13T02:54:05.705Z","item":"mushroom"},{"position":2,"timestamp":"2018-08-13T02:54:05.705Z","item":null},{"position":2,"timestamp":"2018-08-13T02:54:06.785Z","item":null},{"position":2,"timestamp":"2018-08-13T02:54:06.785Z","item":null},{"position":2,"timestamp":"2018-08-13T02:54:07.715Z","item":null},{"position":2,"timestamp":"2018-08-13T02:54:07.715Z","item":null},{"position":2,"timestamp":"2018-08-13T02:54:08.715Z","item":null},{"position":2,"timestamp":"2018-08-13T02:54:08.715Z","item":null},{"position":2,"timestamp":"2018-08-13T02:54:09.705Z","item":null},{"position":2,"timestamp":"2018-08-13T02:54:09.705Z","item":null},{"position":2,"timestamp":"2018-08-13T02:54:10.705Z","item":"red-shell"},{"position":2,"timestamp":"2018-08-13T02:54:10.715Z","item":null},{"position":2,"timestamp":"2018-08-13T02:54:11.705Z","item":null},{"position":2,"timestamp":"2018-08-13T02:54:11.705Z","item":null},{"position":2,"timestamp":"2018-08-13T02:54:12.725Z","item":null},{"position":2,"timestamp":"2018-08-13T02:54:12.725Z","item":null},{"position":2,"timestamp":"2018-08-13T02:54:13.765Z","item":null},{"position":2,"timestamp":"2018-08-13T02:54:13.765Z","item":null},{"position":2,"timestamp":"2018-08-13T02:54:14.725Z","item":null},{"position":2,"timestamp":"2018-08-13T02:54:14.745Z","item":null},{"position":2,"timestamp":"2018-08-13T02:54:15.705Z","item":null},{"position":2,"timestamp":"2018-08-13T02:54:15.705Z","item":null},{"position":2,"timestamp":"2018-08-13T02:54:16.755Z","item":null},{"position":2,"timestamp":"2018-08-13T02:54:16.765Z","item":null},{"position":2,"timestamp":"2018-08-13T02:54:17.735Z","item":null},{"position":2,"timestamp":"2018-08-13T02:54:17.735Z","item":null},{"position":2,"timestamp":"2018-08-13T02:54:18.735Z","item":null},{"position":2,"timestamp":"2018-08-13T02:54:18.745Z","item":null},{"position":2,"timestamp":"2018-08-13T02:54:19.715Z","item":null},{"position":2,"timestamp":"2018-08-13T02:54:19.735Z","item":null},{"position":2,"timestamp":"2018-08-13T02:54:20.795Z","item":null},{"position":2,"timestamp":"2018-08-13T02:54:20.805Z","item":null},{"position":2,"timestamp":"2018-08-13T02:54:21.705Z","item":"mushroom-triple"},{"position":2,"timestamp":"2018-08-13T02:54:21.705Z","item":null},{"position":2,"timestamp":"2018-08-13T02:54:22.705Z","item":null},{"position":2,"timestamp":"2018-08-13T02:54:22.705Z","item":null},{"position":2,"timestamp":"2018-08-13T02:54:23.775Z","item":null},{"position":2,"timestamp":"2018-08-13T02:54:23.775Z","item":null},{"position":2,"timestamp":"2018-08-13T02:54:24.785Z","item":null},{"position":2,"timestamp":"2018-08-13T02:54:24.795Z","item":null},{"position":2,"timestamp":"2018-08-13T02:54:25.705Z","item":null},{"position":2,"timestamp":"2018-08-13T02:54:25.715Z","item":null},{"position":2,"timestamp":"2018-08-13T02:54:26.705Z","item":null},{"position":2,"timestamp":"2018-08-13T02:54:26.715Z","item":null},{"position":2,"timestamp":"2018-08-13T02:54:27.695Z","item":null},{"position":2,"timestamp":"2018-08-13T02:54:27.705Z","item":null},{"position":2,"timestamp":"2018-08-13T02:54:28.715Z","item":"mushroom-double"},{"position":2,"timestamp":"2018-08-13T02:54:28.725Z","item":null},{"position":2,"timestamp":"2018-08-13T02:54:29.705Z","item":null},{"position":2,"timestamp":"2018-08-13T02:54:29.705Z","item":null},{"position":2,"timestamp":"2018-08-13T02:54:30.705Z","item":null},{"position":2,"timestamp":"2018-08-13T02:54:30.705Z","item":null},{"position":2,"timestamp":"2018-08-13T02:54:31.775Z","item":"mushroom"},{"position":2,"timestamp":"2018-08-13T02:54:31.775Z","item":null},{"position":2,"timestamp":"2018-08-13T02:54:32.735Z","item":null},{"position":2,"timestamp":"2018-08-13T02:54:32.745Z","item":null},{"position":2,"timestamp":"2018-08-13T02:54:33.695Z","item":null},{"position":2,"timestamp":"2018-08-13T02:54:33.705Z","item":null},{"position":2,"timestamp":"2018-08-13T02:54:35.705Z","item":null},{"position":2,"timestamp":"2018-08-13T02:54:35.705Z","item":null},{"position":2,"timestamp":"2018-08-13T02:54:37.715Z","item":null},{"position":2,"timestamp":"2018-08-13T02:54:37.725Z","item":null},{"position":2,"timestamp":"2018-08-13T02:54:38.735Z","item":null},{"position":2,"timestamp":"2018-08-13T02:54:38.745Z","item":null},{"position":2,"timestamp":"2018-08-13T02:54:39.695Z","item":null},{"position":2,"timestamp":"2018-08-13T02:54:39.705Z","item":null}]
      }
    ]
  }
}
  JSON
    end
  end
end
