//#region src/routes/brain/patterns/+page.server.ts
var load = async ({ fetch }) => {
	try {
		const res = await fetch("/api/memory/patterns?limit=50&offset=0&sort=created_desc");
		if (!res.ok) return { initial: null };
		return { initial: await res.json() };
	} catch {
		return { initial: null };
	}
};

var _page_server_ts = /*#__PURE__*/Object.freeze({
	__proto__: null,
	load: load
});

const index = 11;
let component_cache;
const component = async () => component_cache ??= (await import('./_page.svelte-CophUar3.js')).default;
const server_id = "src/routes/brain/patterns/+page.server.ts";
const imports = ["_app/immutable/nodes/11.DuKPA7JD.js","_app/immutable/chunks/DyGQ_VXC.js","_app/immutable/chunks/DrKWWDpL.js","_app/immutable/chunks/CQCxd1p9.js","_app/immutable/chunks/BRgWBQlV.js","_app/immutable/chunks/CEqOYim7.js","_app/immutable/chunks/CqF5Lomf.js"];
const stylesheets = ["_app/immutable/assets/Tabs.CU9_rsWl.css","_app/immutable/assets/ui.CH-9N9-0.css","_app/immutable/assets/memory.BscouZPQ.css","_app/immutable/assets/11.kOP0rMCQ.css"];
const fonts = [];

export { component, fonts, imports, index, _page_server_ts as server, server_id, stylesheets };
//# sourceMappingURL=11-DMnBZ02H.js.map
