<?php

declare(strict_types=1);

spl_autoload_register(static function (string $class): void {
    $prefix = 'Activetwist\\Jsonm\\';
    if (!str_starts_with($class, $prefix)) {
        return;
    }

    $relative = substr($class, strlen($prefix));
    $path = __DIR__ . '/Jsonm/' . str_replace('\\', '/', $relative) . '.php';
    if (is_file($path)) {
        require_once $path;
    }
});

require_once dirname(__DIR__) . '/lib/StyleDefinitionRuntime.php';
require_once dirname(__DIR__) . '/lib/DesignSystemRegistry.php';
