{"size": 670, "ext": "js", "max_stars_repo_path": "index.js", "max_stars_repo_name": "ForsakenHarmony/gtfs-rt-inspector", "max_stars_repo_stars_event_min_datetime": "2021-01-03T00:37:47.000Z", "max_stars_repo_stars_event_max_datetime": "2021-12-31T12:00:33.000Z", "max_issues_repo_path": "index.js", "max_issues_repo_name": "ForsakenHarmony/gtfs-rt-inspector", "max_issues_repo_issues_event_min_datetime": "2021-01-11T20:11:42.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-29T12:07:46.000Z", "max_forks_repo_path": "index.js", "max_forks_repo_name": "ForsakenHarmony/gtfs-rt-inspector", "max_forks_repo_forks_event_min_datetime": "2021-05-06T10:56:17.000Z", "max_forks_repo_forks_event_max_datetime": "2021-05-13T17:53:10.000Z"}
{"max_stars_count": 10, "max_issues_count": 9, "max_forks_count": 2, "avg_line_length": 24.8148148148, "max_line_length": 58, "alphanum_fraction": 0.7343283582}
import 'core-js/stable'
import 'regenerator-runtime/runtime'

import * as EventEmitter from 'events'
import {render, h} from 'preact'
import viewStore from './stores/view'
import feedStore from './stores/feed'
import feedLogStore from './stores/feed-log'
import urlStore from './stores/url'
import Main from './views/main'

const state = {}
const bus = new EventEmitter()
bus.STATE_CHANGE = Symbol('state change')
const emit = bus.emit.bind(bus)

viewStore(state, bus)
feedStore(state, bus)
feedLogStore(state, bus)
urlStore(state, bus)

const rerender = () => {
	render(<Main state={state} emit={emit} />, document.body)
}
bus.on(bus.STATE_CHANGE, rerender)
rerender()
