function rest_props(props, exclude, name) {
	return new Proxy(
		DEV ? { props, exclude, name, other: {}, to_proxy: [] } : { props, exclude },
		rest_props_handler
	);
}
@param {Record<string, unknown>} props
@param {string[]} exclude
@param {string} [name]
@returns {Record<string, unknown>}