constructor(name, params, absolute = true, config) {
        super();

        this._config = config ?? (typeof Ziggy !== 'undefined' ? Ziggy : globalThis?.Ziggy);
        this._config = { ...this._config, absolute };

        if (name) {
            if (!this._config.routes[name]) {
                throw new Error(`Ziggy error: route '${name}' is not in the route list.`);
            }

            this._route = new Route(name, this._config.routes[name], this._config);
            this._params = this._parse(params);
        }
    }
@param {String} [name] - Route name.
@param {(String|Number|Array|Object)} [params] - Route parameters.
@param {Boolean} [absolute] - Whether to include the URL origin.
@param {Object} [config] - Ziggy configuration.