// This script only applies to this instance of the Atlas.
// Please also check code indicated with "@instanceonly" outside this file.
// TODO: Avoid having instance-only code inside the main scripts to make updating easier.

const prodDomain = "2025.canvas-atlas.fediverse.events";
window.prodDomain = prodDomain;

const instanceId = "canvas2025";
window.instanceId = instanceId;

const instanceSubreddit = null;
window.instanceSubreddit = instanceSubreddit;

const instanceRepo = null;
window.instanceRepo = instanceRepo;

const pageTitle = "2025 Fediverse Canvas Atlas";
window.pageTitle = pageTitle;

const canvasSize = {
	x: 500,
	y: 500,
};
window.canvasSize = canvasSize;

const canvasOffset = {
	x: 0,
	y: 0,
};
window.canvasOffset = canvasOffset;

const canvasCenter = {
	x: canvasSize.x / 2 + canvasOffset.x,
	y: canvasSize.y / 2 + canvasOffset.y,
};
window.canvasCenter = canvasCenter;

const variationsConfig = {
	default: {
		name: "canvas",
		code: "",
		default: 48,
		drawablePeriods: [1, 48],
		drawableRegions: [
			[
				[0, 0],
				[0, 0, 499, 499],
			],
		],
		versions: [
			{
				timestamp: "blank",
				url: "./_img/fedicanvas2025/canvas-1752285642.png",
			},
			{
				timestamp: 1752289199,
				url: "./_img/fedicanvas2025/canvas-1752289199.png",
			},
			{
				timestamp: 1752292797,
				url: "./_img/fedicanvas2025/canvas-1752292797.png",
			},
			{
				timestamp: 1752296399,
				url: "./_img/fedicanvas2025/canvas-1752296399.png",
			},
			{
				timestamp: 1752299999,
				url: "./_img/fedicanvas2025/canvas-1752299999.png",
			},
			{
				timestamp: 1752303597,
				url: "./_img/fedicanvas2025/canvas-1752303597.png",
			},
			{
				timestamp: 1752307199,
				url: "./_img/fedicanvas2025/canvas-1752307199.png",
			},
			{
				timestamp: 1752310797,
				url: "./_img/fedicanvas2025/canvas-1752310797.png",
			},
			{
				timestamp: 1752314399,
				url: "./_img/fedicanvas2025/canvas-1752314399.png",
			},
			{
				timestamp: 1752317999,
				url: "./_img/fedicanvas2025/canvas-1752317999.png",
			},
			{
				timestamp: 1752321599,
				url: "./_img/fedicanvas2025/canvas-1752321599.png",
			},
			{
				timestamp: 1752325199,
				url: "./_img/fedicanvas2025/canvas-1752325199.png",
			},
			{
				timestamp: 1752328799,
				url: "./_img/fedicanvas2025/canvas-1752328799.png",
			},
			{
				timestamp: 1752332399,
				url: "./_img/fedicanvas2025/canvas-1752332399.png",
			},
			{
				timestamp: 1752335999,
				url: "./_img/fedicanvas2025/canvas-1752335999.png",
			},
			{
				timestamp: 1752339599,
				url: "./_img/fedicanvas2025/canvas-1752339599.png",
			},
			{
				timestamp: 1752343199,
				url: "./_img/fedicanvas2025/canvas-1752343199.png",
			},
			{
				timestamp: 1752346799,
				url: "./_img/fedicanvas2025/canvas-1752346799.png",
			},
			{
				timestamp: 1752350399,
				url: "./_img/fedicanvas2025/canvas-1752350399.png",
			},
			{
				timestamp: 1752353999,
				url: "./_img/fedicanvas2025/canvas-1752353999.png",
			},
			{
				timestamp: 1752357598,
				url: "./_img/fedicanvas2025/canvas-1752357598.png",
			},
			{
				timestamp: 1752361199,
				url: "./_img/fedicanvas2025/canvas-1752361199.png",
			},
			{
				timestamp: 1752364799,
				url: "./_img/fedicanvas2025/canvas-1752364799.png",
			},
			{
				timestamp: 1752368399,
				url: "./_img/fedicanvas2025/canvas-1752368399.png",
			},
			{
				timestamp: 1752371999,
				url: "./_img/fedicanvas2025/canvas-1752371999.png",
			},
			{
				timestamp: 1752375597,
				url: "./_img/fedicanvas2025/canvas-1752375597.png",
			},
			{
				timestamp: 1752379199,
				url: "./_img/fedicanvas2025/canvas-1752379199.png",
			},
			{
				timestamp: 1752382799,
				url: "./_img/fedicanvas2025/canvas-1752382799.png",
			},
			{
				timestamp: 1752386399,
				url: "./_img/fedicanvas2025/canvas-1752386399.png",
			},
			{
				timestamp: 1752389999,
				url: "./_img/fedicanvas2025/canvas-1752389999.png",
			},
			{
				timestamp: 1752393599,
				url: "./_img/fedicanvas2025/canvas-1752393599.png",
			},
			{
				timestamp: 1752397199,
				url: "./_img/fedicanvas2025/canvas-1752397199.png",
			},
			{
				timestamp: 1752400799,
				url: "./_img/fedicanvas2025/canvas-1752400799.png",
			},
			{
				timestamp: 1752404399,
				url: "./_img/fedicanvas2025/canvas-1752404399.png",
			},
			{
				timestamp: 1752407998,
				url: "./_img/fedicanvas2025/canvas-1752407998.png",
			},
			{
				timestamp: 1752411599,
				url: "./_img/fedicanvas2025/canvas-1752411599.png",
			},
			{
				timestamp: 1752415199,
				url: "./_img/fedicanvas2025/canvas-1752415199.png",
			},
			{
				timestamp: 1752418799,
				url: "./_img/fedicanvas2025/canvas-1752418799.png",
			},
			{
				timestamp: 1752422399,
				url: "./_img/fedicanvas2025/canvas-1752422399.png",
			},
			{
				timestamp: 1752425999,
				url: "./_img/fedicanvas2025/canvas-1752425999.png",
			},
			{
				timestamp: 1752429594,
				url: "./_img/fedicanvas2025/canvas-1752429594.png",
			},
			{
				timestamp: 1752433199,
				url: "./_img/fedicanvas2025/canvas-1752433199.png",
			},
			{
				timestamp: 1752436799,
				url: "./_img/fedicanvas2025/canvas-1752436799.png",
			},
			{
				timestamp: 1752440399,
				url: "./_img/fedicanvas2025/canvas-1752440399.png",
			},
			{
				timestamp: 1752443999,
				url: "./_img/fedicanvas2025/canvas-1752443999.png",
			},
			{
				timestamp: 1752447596,
				url: "./_img/fedicanvas2025/canvas-1752447596.png",
			},
			{
				timestamp: 1752451198,
				url: "./_img/fedicanvas2025/canvas-1752451198.png",
			},
			{
				timestamp: 1752454799,
				url: "./_img/fedicanvas2025/canvas-1752454799.png",
			},
			{
				timestamp: "final",
				url: "./_img/fedicanvas2025/final.png",
			},
		],
		icon: '<svg width="14" height="14" version="1.1" viewBox="0 0 14 14" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><g><rect y="8" width="6" height="6"/><rect x="6" width="8" height="8"/></g></svg>',
	},
};
window.variationsConfig = variationsConfig;

let defaultVariation = "default";
window.defaultVariation = defaultVariation;

let defaultPeriod = variationsConfig[defaultVariation].default;
window.defaultPeriod = defaultPeriod;

const useNumericalId = true;
window.useNumericalId = useNumericalId;

window.defaultAtlasURL = "./atlas/2025.json";
