function slot(payload, $$props, name, slot_props, fallback_fn) {
	var slot_fn = $$props.$$slots?.[name];
	// Interop: Can use snippets to fill slots
	if (slot_fn === true) {
		slot_fn = $$props[name === 'default' ? 'children' : name];
	}

	if (slot_fn !== undefined) {
		slot_fn(payload, slot_props);
	} else {
		fallback_fn?.();
	}
}
@param {Payload} payload
@param {Record<string, any>} $$props
@param {string} name
@param {Record<string, unknown>} slot_props
@param {null | (() => void)} fallback_fn
@returns {void}