ensureInputContext = (c) => {
	if (!isWritable(c)) {
		console.error({ InputStoreValue: c });
		throw new Error('InputStore must be a writable store');
	}
	if (!getAllContexts().has(InputStoreKey)) {
		setContext(InputStoreKey, c);
		return c;
	} else {
		const existingValue = getContext(InputStoreKey);
		existingValue.set(get(c));
		return existingValue;
	}
}
@param {Writable<any>} c
@returns {Writable<any>}