@velastack/patterns 0.1.1 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{write-result-BhULcFGo.js → write-result-DvELaUJg.js} +19 -15
- package/dist/chunks/write-result-DvELaUJg.js.map +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +40 -40
- package/dist/index.js.map +1 -1
- package/package.json +6 -6
- package/dist/chunks/write-result-BhULcFGo.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -26,7 +26,7 @@ var le = Object.create, ue = Object.defineProperty, de = Object.getOwnPropertyDe
|
|
|
26
26
|
throw Error("Calling `require` for \"" + e + "\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.");
|
|
27
27
|
}), ye = {
|
|
28
28
|
name: "@velastack/patterns",
|
|
29
|
-
version: "0.1.
|
|
29
|
+
version: "0.1.3",
|
|
30
30
|
description: "Registry of VelaStack patterns: generators and modifications applied to SvelteKit projects by the VelaStack CLI.",
|
|
31
31
|
type: "module",
|
|
32
32
|
private: !1,
|
|
@@ -68,7 +68,7 @@ var le = Object.create, ue = Object.defineProperty, de = Object.getOwnPropertyDe
|
|
|
68
68
|
"prettier-plugin-svelte": "^4.1.1"
|
|
69
69
|
},
|
|
70
70
|
peerDependencies: {
|
|
71
|
-
"@velastack/kit": "
|
|
71
|
+
"@velastack/kit": ">=0.1.0 <1.0.0",
|
|
72
72
|
"@velastack/pocketbase": "^0.2.0",
|
|
73
73
|
"@velastack/pocketbase-codegen": "^0.1.0",
|
|
74
74
|
"cross-spawn": "^7.0.6",
|
|
@@ -95,7 +95,7 @@ var le = Object.create, ue = Object.defineProperty, de = Object.getOwnPropertyDe
|
|
|
95
95
|
"@types/cross-spawn": "^6.0.6",
|
|
96
96
|
"@types/node": "^22.0.0",
|
|
97
97
|
"@types/pluralize": "^0.0.33",
|
|
98
|
-
"@velastack/kit": "^0.
|
|
98
|
+
"@velastack/kit": "^0.3.0",
|
|
99
99
|
"@velastack/pocketbase": "^0.2.0",
|
|
100
100
|
"@velastack/pocketbase-codegen": "^0.1.0",
|
|
101
101
|
"change-case": "^5.4.4",
|
|
@@ -106,13 +106,13 @@ var le = Object.create, ue = Object.defineProperty, de = Object.getOwnPropertyDe
|
|
|
106
106
|
pluralize: "^8.0.0",
|
|
107
107
|
pocketbase: "^0.28.0",
|
|
108
108
|
stripe: "^19.3.0",
|
|
109
|
-
svelte: "^5.
|
|
109
|
+
svelte: "^5.56.10",
|
|
110
110
|
"ts-morph": "^28.0.0",
|
|
111
111
|
typescript: "^5.0.0",
|
|
112
|
-
vite: "^8.
|
|
112
|
+
vite: "^8.2.2",
|
|
113
113
|
"vite-node": "^6.0.0",
|
|
114
114
|
"vite-plugin-dts": "^4.5.4",
|
|
115
|
-
vitest: "^4.1.
|
|
115
|
+
vitest: "^4.1.11"
|
|
116
116
|
}
|
|
117
117
|
};
|
|
118
118
|
//#endregion
|
|
@@ -2338,7 +2338,7 @@ var bn = "generate-form", xn = "1.0.7", Sn = "src/patterns/generate/form", Cn =
|
|
|
2338
2338
|
async function wn(e) {
|
|
2339
2339
|
let t = await yn(e);
|
|
2340
2340
|
if (e.env !== "runtime") return y(t);
|
|
2341
|
-
let { writeResult: n } = await import("./chunks/write-result-
|
|
2341
|
+
let { writeResult: n } = await import("./chunks/write-result-DvELaUJg.js");
|
|
2342
2342
|
return n(await y(t), e);
|
|
2343
2343
|
}
|
|
2344
2344
|
var Tn = {
|
|
@@ -2672,7 +2672,7 @@ async function nr(e) {
|
|
|
2672
2672
|
let a = i(e.root), o = r(a.filePath, a.outcome), s = {
|
|
2673
2673
|
...t,
|
|
2674
2674
|
modifies: [...t.modifies, ...o ? [o] : []]
|
|
2675
|
-
}, { writeResult: c } = await import("./chunks/write-result-
|
|
2675
|
+
}, { writeResult: c } = await import("./chunks/write-result-DvELaUJg.js");
|
|
2676
2676
|
return c(await y(s), e);
|
|
2677
2677
|
}
|
|
2678
2678
|
var rr = {
|
|
@@ -2819,7 +2819,7 @@ async function pr(e) {
|
|
|
2819
2819
|
let o = {
|
|
2820
2820
|
...t,
|
|
2821
2821
|
creates: [...t.creates, ...a]
|
|
2822
|
-
}, { writeResult: s } = await import("./chunks/write-result-
|
|
2822
|
+
}, { writeResult: s } = await import("./chunks/write-result-DvELaUJg.js");
|
|
2823
2823
|
return s(await y(o), e);
|
|
2824
2824
|
}
|
|
2825
2825
|
var mr = {
|
|
@@ -2926,7 +2926,7 @@ async function Sr(e) {
|
|
|
2926
2926
|
let { createCollections: n } = await import("./chunks/collections-DgZjDXef.js"), r = await n(t.collections, e), i = {
|
|
2927
2927
|
...t,
|
|
2928
2928
|
creates: [...t.creates, ...r]
|
|
2929
|
-
}, { writeResult: a } = await import("./chunks/write-result-
|
|
2929
|
+
}, { writeResult: a } = await import("./chunks/write-result-DvELaUJg.js");
|
|
2930
2930
|
return a(await y(i), e);
|
|
2931
2931
|
}
|
|
2932
2932
|
var Cr = {
|
|
@@ -3332,7 +3332,7 @@ async function ti(e) {
|
|
|
3332
3332
|
let { createCollections: n } = await import("./chunks/collections-DgZjDXef.js"), r = await n(t.collections, e), i = {
|
|
3333
3333
|
...t,
|
|
3334
3334
|
creates: [...t.creates, ...r]
|
|
3335
|
-
}, { writeResult: a } = await import("./chunks/write-result-
|
|
3335
|
+
}, { writeResult: a } = await import("./chunks/write-result-DvELaUJg.js");
|
|
3336
3336
|
return a(await y(i), e);
|
|
3337
3337
|
}
|
|
3338
3338
|
var ni = {
|
|
@@ -3712,7 +3712,7 @@ async function Li(e) {
|
|
|
3712
3712
|
...t,
|
|
3713
3713
|
creates: [...t.creates, ...i],
|
|
3714
3714
|
modifies: [...t.modifies, ...c ? [c] : []]
|
|
3715
|
-
}, { writeResult: d } = await import("./chunks/write-result-
|
|
3715
|
+
}, { writeResult: d } = await import("./chunks/write-result-DvELaUJg.js");
|
|
3716
3716
|
return d(await y(l), e);
|
|
3717
3717
|
}
|
|
3718
3718
|
var Ri = {
|
|
@@ -3813,7 +3813,7 @@ var Hi = "generate-schema", Ui = "1.0.8", Wi = "src/patterns/generate/schema", G
|
|
|
3813
3813
|
async function Ki(e) {
|
|
3814
3814
|
let t = await Vi(e);
|
|
3815
3815
|
if (e.env !== "runtime") return y(t);
|
|
3816
|
-
let { writeResult: n } = await import("./chunks/write-result-
|
|
3816
|
+
let { writeResult: n } = await import("./chunks/write-result-DvELaUJg.js");
|
|
3817
3817
|
return n(await y(t), e);
|
|
3818
3818
|
}
|
|
3819
3819
|
var qi = {
|
|
@@ -4044,7 +4044,7 @@ async function to(e) {
|
|
|
4044
4044
|
let r = await Xa(e);
|
|
4045
4045
|
return y(n([t, r]));
|
|
4046
4046
|
}
|
|
4047
|
-
let { writeResult: r } = await import("./chunks/write-result-
|
|
4047
|
+
let { writeResult: r } = await import("./chunks/write-result-DvELaUJg.js"), i = await r(await y(t), e), { generate: a } = await import("./chunks/generate.runtime-Dad9oAKS.js"), o = await r(await y(await a(e)), e);
|
|
4048
4048
|
return n([i, o]);
|
|
4049
4049
|
}
|
|
4050
4050
|
var no = {
|
|
@@ -4272,7 +4272,7 @@ async function hs(e) {
|
|
|
4272
4272
|
let r = await us(e);
|
|
4273
4273
|
return y(n([t, r]));
|
|
4274
4274
|
}
|
|
4275
|
-
let { generate: r } = await import("./chunks/generate.runtime-Coi_Y6nm.js"), i = await r(e), { writeResult: a } = await import("./chunks/write-result-
|
|
4275
|
+
let { generate: r } = await import("./chunks/generate.runtime-Coi_Y6nm.js"), i = await r(e), { writeResult: a } = await import("./chunks/write-result-DvELaUJg.js");
|
|
4276
4276
|
return a(await y(n([t, i])), e);
|
|
4277
4277
|
}
|
|
4278
4278
|
var gs = {
|
|
@@ -4366,7 +4366,7 @@ async function Os(e) {
|
|
|
4366
4366
|
let r = await Cs(e);
|
|
4367
4367
|
return y(n([t, r]));
|
|
4368
4368
|
}
|
|
4369
|
-
let { generate: r } = await import("./chunks/generate.runtime-CfclK4xT.js"), i = await r(e), { writeResult: a } = await import("./chunks/write-result-
|
|
4369
|
+
let { generate: r } = await import("./chunks/generate.runtime-CfclK4xT.js"), i = await r(e), { writeResult: a } = await import("./chunks/write-result-DvELaUJg.js");
|
|
4370
4370
|
return a(await y(n([t, i])), e);
|
|
4371
4371
|
}
|
|
4372
4372
|
var ks = {
|
|
@@ -4520,7 +4520,7 @@ async function Qs(e) {
|
|
|
4520
4520
|
let r = await qs(e);
|
|
4521
4521
|
return y(n([t, r]));
|
|
4522
4522
|
}
|
|
4523
|
-
let { createCollections: r } = await import("./chunks/collections-DgZjDXef.js"), i = await r(t.collections, e), { generate: a } = await import("./chunks/generate.runtime-Dbhctzy1.js"), o = await a(e), { writeResult: s } = await import("./chunks/write-result-
|
|
4523
|
+
let { createCollections: r } = await import("./chunks/collections-DgZjDXef.js"), i = await r(t.collections, e), { generate: a } = await import("./chunks/generate.runtime-Dbhctzy1.js"), o = await a(e), { writeResult: s } = await import("./chunks/write-result-DvELaUJg.js");
|
|
4524
4524
|
return s(await y(n([{
|
|
4525
4525
|
...t,
|
|
4526
4526
|
creates: [...t.creates, ...i]
|
|
@@ -4628,7 +4628,7 @@ async function mc(e) {
|
|
|
4628
4628
|
let r = await lc(e);
|
|
4629
4629
|
return y(n([t, r]));
|
|
4630
4630
|
}
|
|
4631
|
-
let { generate: r } = await import("./chunks/generate.runtime-BgW9zLGZ.js"), i = await r(e), { writeResult: a } = await import("./chunks/write-result-
|
|
4631
|
+
let { generate: r } = await import("./chunks/generate.runtime-BgW9zLGZ.js"), i = await r(e), { writeResult: a } = await import("./chunks/write-result-DvELaUJg.js");
|
|
4632
4632
|
return a(await y(n([t, i])), e);
|
|
4633
4633
|
}
|
|
4634
4634
|
var hc = {
|
|
@@ -4666,7 +4666,7 @@ var hc = {
|
|
|
4666
4666
|
tests: 0,
|
|
4667
4667
|
baseline: "velastack",
|
|
4668
4668
|
generate: mc
|
|
4669
|
-
}, gc = "pre[class*='language-'],\ncode[class*='language-'] {\n color: #d4d4d4;\n font-size: 13px;\n text-shadow: none;\n font-family: Menlo, Monaco, Consolas, 'Andale Mono', 'Ubuntu Mono', 'Courier New', monospace;\n direction: ltr;\n text-align: left;\n white-space: pre;\n word-spacing: normal;\n word-break: normal;\n line-height: 1.5;\n -moz-tab-size: 4;\n -o-tab-size: 4;\n tab-size: 4;\n -webkit-hyphens: none;\n -moz-hyphens: none;\n -ms-hyphens: none;\n hyphens: none;\n}\n\npre[class*='language-']::selection,\ncode[class*='language-']::selection,\npre[class*='language-'] *::selection,\ncode[class*='language-'] *::selection {\n text-shadow: none;\n background: #264f78;\n}\n\n@media print {\n pre[class*='language-'],\n code[class*='language-'] {\n text-shadow: none;\n }\n}\n\npre[class*='language-'] {\n padding: 1em;\n margin: 0.5em 0;\n overflow: auto;\n background: oklch(0.21 0.034 264.665);\n}\n\n:not(pre) > code[class*='language-'] {\n padding: 0.1em 0.3em;\n border-radius: 0.3em;\n color: #db4c69;\n background: oklch(0.21 0.034 264.665);\n}\n/*********************************************************\n* Tokens\n*/\n.namespace {\n opacity: 0.7;\n}\n\n.token.doctype .token.doctype-tag {\n color: #569cd6;\n}\n\n.token.doctype .token.name {\n color: #9cdcfe;\n}\n\n.token.comment,\n.token.prolog {\n color: #6a9955;\n}\n\n.token.punctuation,\n.language-html .language-css .token.punctuation,\n.language-html .language-javascript .token.punctuation {\n color: #d4d4d4;\n}\n\n.token.property,\n.token.tag,\n.token.boolean,\n.token.number,\n.token.constant,\n.token.symbol,\n.token.inserted,\n.token.unit {\n color: #b5cea8;\n}\n\n.token.selector,\n.token.attr-name,\n.token.string,\n.token.char,\n.token.builtin,\n.token.deleted {\n color: #ce9178;\n}\n\n.language-css .token.string.url {\n text-decoration: underline;\n}\n\n.token.operator,\n.token.entity {\n color: #d4d4d4;\n}\n\n.token.operator.arrow {\n color: #569cd6;\n}\n\n.token.atrule {\n color: #ce9178;\n}\n\n.token.atrule .token.rule {\n color: #c586c0;\n}\n\n.token.atrule .token.url {\n color: #9cdcfe;\n}\n\n.token.atrule .token.url .token.function {\n color: #dcdcaa;\n}\n\n.token.atrule .token.url .token.punctuation {\n color: #d4d4d4;\n}\n\n.token.keyword {\n color: #569cd6;\n}\n\n.token.keyword.module,\n.token.keyword.control-flow {\n color: #c586c0;\n}\n\n.token.function,\n.token.function .token.maybe-class-name {\n color: #dcdcaa;\n}\n\n.token.regex {\n color: #d16969;\n}\n\n.token.important {\n color: #569cd6;\n}\n\n.token.italic {\n font-style: italic;\n}\n\n.token.constant {\n color: #9cdcfe;\n}\n\n.token.class-name,\n.token.maybe-class-name {\n color: #4ec9b0;\n}\n\n.token.console {\n color: #9cdcfe;\n}\n\n.token.parameter {\n color: #9cdcfe;\n}\n\n.token.interpolation {\n color: #9cdcfe;\n}\n\n.token.punctuation.interpolation-punctuation {\n color: #569cd6;\n}\n\n.token.boolean {\n color: #569cd6;\n}\n\n.token.property,\n.token.variable,\n.token.imports .token.maybe-class-name,\n.token.exports .token.maybe-class-name {\n color: #9cdcfe;\n}\n\n.token.selector {\n color: #d7ba7d;\n}\n\n.token.escape {\n color: #d7ba7d;\n}\n\n.token.tag {\n color: #569cd6;\n}\n\n.token.tag .token.punctuation {\n color: #808080;\n}\n\n.token.cdata {\n color: #808080;\n}\n\n.token.attr-name {\n color: #9cdcfe;\n}\n\n.token.attr-value,\n.token.attr-value .token.punctuation {\n color: #ce9178;\n}\n\n.token.attr-value .token.punctuation.attr-equals {\n color: #d4d4d4;\n}\n\n.token.entity {\n color: #569cd6;\n}\n\n.token.namespace {\n color: #4ec9b0;\n}\n/*********************************************************\n* Language Specific\n*/\n\npre[class*='language-javascript'],\ncode[class*='language-javascript'],\npre[class*='language-jsx'],\ncode[class*='language-jsx'],\npre[class*='language-typescript'],\ncode[class*='language-typescript'],\npre[class*='language-tsx'],\ncode[class*='language-tsx'] {\n color: #9cdcfe;\n}\n\npre[class*='language-css'],\ncode[class*='language-css'] {\n color: #ce9178;\n}\n\npre[class*='language-html'],\ncode[class*='language-html'] {\n color: #d4d4d4;\n}\n\n.language-regex .token.anchor {\n color: #dcdcaa;\n}\n\n.language-html .token.punctuation {\n color: #808080;\n}\n/*********************************************************\n* Line highlighting\n*/\npre[class*='language-'] > code[class*='language-'] {\n position: relative;\n z-index: 1;\n}\n\n.line-highlight.line-highlight {\n background: #f7ebc6;\n box-shadow: inset 5px 0 0 #f7d87c;\n z-index: 0;\n}\n", _c = "<script lang=\"ts\">\n import * as Avatar from '$lib/components/ui/avatar';\n import type { BlogAuthor } from '$lib/content';\n\n let {\n author,\n size = 'sm'\n }: { author: BlogAuthor; size?: 'sm' | 'default' | 'lg' } = $props();\n\n const initials = $derived(\n author.name\n .split(/\\s+/)\n .map((part) => part[0])\n .filter(Boolean)\n .slice(0, 2)\n .join('')\n .toUpperCase()\n );\n<\/script>\n\n<span class=\"inline-flex items-center gap-2\">\n <Avatar.Root {size}>\n {#if author.avatar}\n <Avatar.Image src={author.avatar} alt={author.name} />\n {/if}\n <Avatar.Fallback class=\"text-xs\">{initials}</Avatar.Fallback>\n </Avatar.Root>\n <span class=\"text-foreground text-sm font-medium\">{author.name}</span>\n</span>\n", vc = "<script lang=\"ts\">\n import * as Card from \"$lib/components/ui/card\";\n import { Badge } from \"$lib/components/ui/badge\";\n import AuthorChip from \"./AuthorChip.svelte\";\n import { formatDate } from \"$lib/utils/date\";\n import type { BlogPost, BlogPostSummary } from \"$lib/content\";\n\n let { post }: { post: BlogPost | BlogPostSummary } = $props();\n<\/script>\n\n<Card.Root class=\"hover:ring-foreground/20 h-full transition-shadow w-full\">\n <Card.Header>\n <Card.Title class=\"text-lg leading-snug\">\n <a href={`/blog/${post.slug}`} class=\"hover:underline\">\n {post.title}\n </a>\n </Card.Title>\n <Card.Description class=\"line-clamp-2\">\n {post.description}\n </Card.Description>\n </Card.Header>\n <Card.Content class=\"flex flex-1 flex-col justify-end gap-3\">\n {#if post.tags?.length}\n <div class=\"flex flex-wrap gap-1.5\">\n {#each post.tags as tag (tag)}\n <Badge href={`/blog/tags/${tag}`} variant=\"secondary\">{tag}</Badge>\n {/each}\n </div>\n {/if}\n <div\n class=\"text-muted-foreground flex items-center justify-between gap-3 text-xs\"\n >\n {#if post.author}\n <AuthorChip author={post.author} />\n {:else}\n <span></span>\n {/if}\n <span class=\"whitespace-nowrap\">\n <time datetime={post.createdDate.toISOString()}\n >{formatDate(post.createdDate)}</time\n >\n <span aria-hidden=\"true\">•</span>\n <span>{post.readingTime} min read</span>\n </span>\n </div>\n </Card.Content>\n</Card.Root>\n", yc = "---\ntitle: Design System Notes\ndescription: Small choices that make a design system feel coherent — spacing, radius, and the case for fewer variants.\ncreatedDate: 2025-12-15\ntags:\n - design\n - shadcn\nauthor:\n name: Ada Chen\n---\n\nWe've been cleaning up the design system recently. A few notes from the\npass, mostly for ourselves, partially in case they're useful to anyone\nelse building on top of shadcn.\n\n## The variants we actually use\n\nEvery primitive ships with a dozen variants. In practice our product\nleans on two or three per component:\n\n- **Buttons** — `default`, `ghost`, and `outline`. Destructive shows up\n rarely enough to be worth the extra click.\n- **Badges** — `default` and `secondary`. Tags and counts, nothing else.\n- **Cards** — one shape, with optional footer. Multiple card styles\n became indistinguishable from \"padded div,\" so we stopped.\n\nIf a variant hasn't appeared in a design in six months, it gets deleted.\nThe point isn't minimalism; it's that every extra variant is a decision\na future designer has to relitigate.\n\n## Spacing\n\nTailwind's default scale is good. We only locked in one rule: never use\nodd gaps. `gap-3` and `gap-5` stay; `gap-2.5` goes. It's a small thing\nthat quietly keeps vertical rhythm predictable across pages.\n\n## Radius\n\nOne radius token, applied everywhere. If a surface needs to feel\ndifferent, that's a structural decision — a card, a sheet, a popover —\nnot a one-off `rounded-md`. We ended up at `0.625rem` as our default\nand haven't wanted to change it.\n\n## Dark mode\n\nWe treat dark mode as a different palette, not a filter. Every token\nhas an explicit OKLCH value in both themes. When a component looks\noff in dark mode, the fix is almost always a token, not a tweak.\n", bc = "---\ntitle: Getting Started with SvelteKit\ndescription: The smallest useful SvelteKit project, explained end to end — routing, loading data, and the dev loop.\ncreatedDate: 2026-03-12\ntags:\n - sveltekit\n - tutorial\nauthor:\n name: Marco Alvarez\n---\n\nSvelteKit is the piece that turns Svelte — a component library — into\nsomething you can ship. Routing, server endpoints, data loading, builds,\nand deployment adapters all live in one place.\n\n## Creating a project\n\nThe fastest path is the CLI. It scaffolds a minimal project, installs\ndependencies, and leaves you with a working dev server.\n\n```bash\nnpx sv create my-app\ncd my-app\nnpm install\nnpm run dev\n```\n\n## Routes are files\n\nA route is a folder under `src/routes` with a `+page.svelte` inside.\nNested folders produce nested URLs. Dynamic segments use `[brackets]`.\n\n```\nsrc/routes/\n +page.svelte # /\n about/\n +page.svelte # /about\n blog/\n [slug]/\n +page.svelte # /blog/:slug\n```\n\n## Loading data\n\nA route's `+page.ts` (or `+page.server.ts` for server-only data) exports\na `load` function. Whatever it returns becomes `data` on the page.\n\n```ts\n// src/routes/blog/[slug]/+page.ts\nimport { error } from '@sveltejs/kit';\n\nexport const load = async ({ params }) => {\n const post = await fetchPost(params.slug);\n if (!post) throw error(404, 'Not found');\n return { post };\n};\n```\n\nThat's most of SvelteKit. The rest — form actions, hooks, adapters — are\nopt-in once you need them.\n", xc = "---\ntitle: A Pragmatic Performance Checklist\ndescription: The small set of things that have given us the biggest performance wins — in rough order of impact.\ncreatedDate: 2025-11-03\ntags:\n - performance\n - tutorial\nauthor:\n name: Marco Alvarez\n---\n\nWe don't have a performance budget so much as a performance allergy.\nWhen something feels slow, we profile, fix the obvious thing, and move\non. The list below is what \"the obvious thing\" usually is.\n\n> Premature optimization is the root of all evil, but ignoring a 3s\n> cold-start isn't optimization — it's negligence.\n\n## The checklist\n\n1. **Measure with real numbers.** Lighthouse and the Network tab answer\n most questions. If you're not measuring, you're guessing.\n2. **Serve fewer bytes.** Compress images (AVIF or WebP), remove unused\n fonts, and audit any dependency over 50KB gzipped.\n3. **Defer the non-critical.** Scripts that aren't needed above the\n fold can wait. `loading=\"lazy\"` on images, `defer` on scripts, and\n dynamic `import()` for interactive widgets.\n4. **Cache at the edge.** If the same HTML could serve a thousand users,\n it should. Use your adapter's cache headers; don't hand-roll it.\n5. **Avoid waterfalls.** If page load depends on three sequential fetches,\n collapse them into one endpoint or preload the critical ones.\n6. **Trust the framework.** SvelteKit's `load` functions run in parallel\n by default and the compiler already strips unused code. Most hand-rolled\n cleverness just gets in the way.\n\n## What we stopped worrying about\n\n- Micro-optimizations inside component code — the bundle is small, the\n diff is fast. The savings are real but rarely matter.\n- Third-party tooling that promises \"speed.\" If it adds a build step,\n the benefit needs to be measurable, not theoretical.\n\n## When to go deeper\n\nIf the checklist doesn't move the needle, the next step is almost\nalways a deeper look at the data layer — query plans, N+1 fetches, cold\ncache behavior. But you should have exhausted the list above before\ngetting there. Most slowness is boring, and most fixes are too.\n", Sc = "---\ntitle: Welcome to the Blog\ndescription: A quick note on what this space is for and what to expect from us.\ncreatedDate: 2026-04-20\ntags:\n - announcements\nauthor:\n name: Ada Chen\n---\n\nWelcome in. This blog is where we write about the things we build, the\ndecisions behind them, and what we learn when they go sideways.\n\nYou can expect a mix of short notes and longer walkthroughs. No schedule,\nno filler. If a post exists it's because something was worth writing down.\n\nA few threads you'll see pop up often:\n\n- Product notes on what we're shipping and why\n- Practical tutorials for the tools we use every day\n- Design and engineering decisions that took more than five minutes\n\nIf you'd rather not check back manually, the [RSS feed](/blog/rss.xml)\nhas every post. Thanks for reading.\n", Cc = "---\ntitle: Why We Chose Tailwind v4\ndescription: Notes on moving from a traditional CSS pipeline to Tailwind v4's zero-config, CSS-first setup.\ncreatedDate: 2026-02-18\ntags:\n - tailwind\n - design\nauthor:\n name: Ada Chen\n---\n\nTailwind v4 is a meaningful rewrite. The surface API still looks the same\n— utility classes on elements — but the compiler, configuration model,\nand theming story all changed in ways that made us want to adopt it.\n\n> The point of a design system isn't to ship fewer classes. It's to make\n> the next decision easier than the last.\n\n## What changed for us\n\nThree things mattered:\n\n1. **CSS-first config.** `tailwind.config.js` is gone. Tokens live in\n `app.css` as real CSS custom properties, which means they also work\n outside of Tailwind — SVG fills, inline styles, wherever.\n2. **OKLCH colors.** Designers can reason about lightness and chroma\n independently. Contrast checks become much easier to eyeball.\n3. **Speed.** The new engine compiles fast enough that we stopped\n thinking about purge lists. Dev feedback is effectively instant.\n\n## The config we kept\n\nWe pinned two things in `app.css`:\n\n```css\n@import 'tailwindcss';\n@plugin '@tailwindcss/typography';\n\n:root {\n --radius: 0.625rem;\n --background: oklch(1 0 0);\n --foreground: oklch(0.129 0.042 264.695);\n}\n```\n\nEverything else — spacing, typography, breakpoints — falls back to\ndefaults until we have a reason to override it.\n\n## What we'd tell a team evaluating it\n\nIf you're already using Tailwind v3, the migration is mostly a config\nmove. If you're starting from scratch, v4 removes a pile of decisions\nyou'd otherwise be making on day one. That alone made it worth it.\n", wc = "---\ntitle: Writing Posts with MDsveX\ndescription: How this blog turns markdown files into real Svelte components — frontmatter, code, and embedded UI.\ncreatedDate: 2026-01-28\nupdatedDate: 2026-02-02\ntags:\n - mdsvex\n - tutorial\nauthor:\n name: Priya Shah\n---\n\nPosts on this blog are `.svx` files. Each one is a real Svelte component\nat build time, so Markdown and Svelte sit side by side with no glue\ncode.\n\n## Frontmatter\n\nYAML at the top of a post becomes the `metadata` export. The loader\nreads it to build the list view, tag pages, and RSS feed.\n\n```yaml\n---\ntitle: Writing Posts with MDsveX\ndescription: A short description shown in previews.\ncreatedDate: 2026-01-28\ntags:\n - mdsvex\n - tutorial\nauthor:\n name: Priya Shah\n---\n```\n\n## Markdown works the way you'd expect\n\nHeadings, lists, links, blockquotes, and inline `code` all render.\nFenced code blocks pick up language hints for syntax highlighting when a\nplugin is enabled.\n\n```ts\nfunction greet(name: string) {\n return `hello, ${name}`;\n}\n```\n\n## Images\n\nPut images in `static/` and reference them with a root-relative path:\n\n```md\n\n```\n\n## Svelte in your posts\n\nThe superpower is that you can drop components straight into a post —\na chart, an interactive demo, a call-to-action card. The rules are the\nsame as any other Svelte file:\n\n```svelte\n<script>\n import Callout from '$lib/components/Callout.svelte';\n<\/script>\n\n<Callout>This is a real component inside a markdown post.</Callout>\n```\n\nThat's the whole pipeline. Write markdown, sprinkle in components when\nplain text stops being enough, and the rest is just Svelte.\n", Tc = "import type { Component } from \"svelte\";\n\nexport type BlogAuthor = {\n name: string;\n avatar?: string;\n};\n\nexport type BlogMetadata = {\n title: string;\n description: string;\n createdDate: string;\n updatedDate?: string;\n tags?: string[];\n author?: BlogAuthor;\n};\n\nexport type BlogModules = Record<\n string,\n { default: Component; metadata: BlogMetadata }\n>;\n\nexport type BlogRawModules = Record<string, string>;\n\nexport type BlogPost = {\n slug: string;\n title: string;\n description: string;\n createdDate: Date;\n updatedDate?: Date;\n tags?: string[];\n author?: BlogAuthor;\n readingTime: number;\n component: Component;\n};\n\nexport type BlogPostSummary = Omit<BlogPost, \"component\">;\n\nconst WORDS_PER_MINUTE = 220;\n\nfunction getBlogModules() {\n return import.meta.glob(\"$lib/content/blog/*.svx\", {\n eager: true,\n }) as BlogModules;\n}\n\nfunction getBlogRawModules() {\n return import.meta.glob(\"$lib/content/blog/*.svx\", {\n eager: true,\n query: \"?raw\",\n import: \"default\",\n }) as BlogRawModules;\n}\n\nfunction stripFrontmatter(raw: string) {\n if (!raw.startsWith(\"---\")) return raw;\n const end = raw.indexOf(\"\\n---\", 3);\n if (end === -1) return raw;\n return raw.slice(end + 4);\n}\n\nfunction computeReadingTime(raw: string) {\n const body = stripFrontmatter(raw);\n const words = body.split(/\\s+/).filter(Boolean).length;\n return Math.max(1, Math.ceil(words / WORDS_PER_MINUTE));\n}\n\nexport function getBlogPosts(): BlogPost[] {\n const modules = getBlogModules();\n const rawModules = getBlogRawModules();\n\n const posts = Object.entries(modules).map(([path, module]) => {\n const filename = path.split(\"/\").pop() ?? \"\";\n const slug = filename.replace(\".svx\", \"\");\n const raw = rawModules[path] ?? \"\";\n\n return {\n slug,\n title: module.metadata.title,\n description: module.metadata.description,\n createdDate: new Date(module.metadata.createdDate),\n updatedDate: module.metadata.updatedDate\n ? new Date(module.metadata.updatedDate)\n : undefined,\n tags: module.metadata.tags,\n author: module.metadata.author,\n readingTime: computeReadingTime(raw),\n component: module.default,\n };\n });\n\n posts.sort((a, b) => b.createdDate.getTime() - a.createdDate.getTime());\n return posts;\n}\n\nexport function getBlogPost(slug: string) {\n const posts = getBlogPosts();\n return posts.find((post) => post.slug === slug) ?? null;\n}\n\nexport function getBlogPostRaw(slug: string): string | null {\n const rawModules = getBlogRawModules();\n for (const [path, raw] of Object.entries(rawModules)) {\n const filename = path.split(\"/\").pop() ?? \"\";\n if (filename.replace(\".svx\", \"\") === slug) return raw;\n }\n return null;\n}\n\nexport function getBlogPostsByTag(tag: string) {\n return getBlogPosts().filter((post) => post.tags?.includes(tag));\n}\n\nexport function getAllTags(): { tag: string; count: number }[] {\n const counts = new Map<string, number>();\n for (const post of getBlogPosts()) {\n for (const tag of post.tags ?? []) {\n counts.set(tag, (counts.get(tag) ?? 0) + 1);\n }\n }\n return [...counts.entries()]\n .map(([tag, count]) => ({ tag, count }))\n .sort((a, b) => b.count - a.count || a.tag.localeCompare(b.tag));\n}\n\nexport function getAdjacentPosts(slug: string): {\n prev: BlogPost | null;\n next: BlogPost | null;\n} {\n const posts = getBlogPosts();\n const index = posts.findIndex((post) => post.slug === slug);\n if (index === -1) return { prev: null, next: null };\n return {\n next: index > 0 ? posts[index - 1] : null,\n prev: index < posts.length - 1 ? posts[index + 1] : null,\n };\n}\n\nexport function getRelatedPosts(slug: string, limit = 3): BlogPost[] {\n const posts = getBlogPosts();\n const current = posts.find((post) => post.slug === slug);\n if (!current?.tags?.length) return [];\n\n const currentTags = new Set(current.tags);\n\n return posts\n .filter((post) => post.slug !== slug && post.tags?.length)\n .map((post) => ({\n post,\n overlap: post.tags!.filter((tag) => currentTags.has(tag)).length,\n }))\n .filter(({ overlap }) => overlap > 0)\n .sort(\n (a, b) =>\n b.overlap - a.overlap ||\n b.post.createdDate.getTime() - a.post.createdDate.getTime(),\n )\n .slice(0, limit)\n .map(({ post }) => post);\n}\n", Ec = "const formatter = new Intl.DateTimeFormat(\"en-US\", {\n year: \"numeric\",\n month: \"long\",\n day: \"numeric\",\n});\n\nexport function formatDate(date: Date) {\n return formatter.format(date);\n}\n", Dc = "<script lang=\"ts\">\n import * as Breadcrumb from \"$lib/components/ui/breadcrumb\";\n import { page } from \"$app/state\";\n\n let { children } = $props();\n\n let breadcrumbs = $derived(page.data.breadcrumbs || []) as {\n title: string;\n url: string;\n }[];\n<\/script>\n\n<section data-role=\"content\">\n <Breadcrumb.Root class=\"mb-6\">\n <Breadcrumb.List>\n {#if breadcrumbs.length > 1}\n {#each breadcrumbs.slice(0, -1) as breadcrumb}\n <Breadcrumb.Item>\n <Breadcrumb.Link href={breadcrumb.url}\n >{breadcrumb.title}</Breadcrumb.Link\n >\n </Breadcrumb.Item>\n <Breadcrumb.Separator />\n {/each}\n {/if}\n <Breadcrumb.Page>\n {breadcrumbs[breadcrumbs.length - 1].title}\n </Breadcrumb.Page>\n </Breadcrumb.List>\n </Breadcrumb.Root>\n\n {@render children?.()}\n</section>\n", Oc = "<script lang=\"ts\">\n import { Badge } from \"$lib/components/ui/badge\";\n import { Button } from \"$lib/components/ui/button\";\n import PostCard from \"$lib/components/blog/PostCard.svelte\";\n import Rss from \"@lucide/svelte/icons/rss\";\n\n let { data } = $props();\n<\/script>\n\n<div class=\"flex flex-col gap-10\">\n <header\n class=\"flex flex-col gap-4 md:flex-row md:items-end md:justify-between\"\n >\n <div class=\"max-w-2xl\">\n <h1 class=\"text-3xl font-semibold tracking-tight sm:text-4xl\">Blog</h1>\n <p class=\"text-muted-foreground mt-2 text-base\">\n Product notes, tutorials, and engineering posts from the team.\n </p>\n </div>\n <Button href=\"/blog/rss.xml\" variant=\"outline\" size=\"sm\" class=\"w-fit\">\n <Rss class=\"size-4\" />\n RSS\n </Button>\n </header>\n\n <ul class=\"grid gap-4 sm:grid-cols-2 lg:grid-cols-3\">\n {#each data.blogPosts as post (post.slug)}\n <li class=\"flex w-full\">\n <PostCard {post} />\n </li>\n {/each}\n </ul>\n</div>\n", kc = "import { definePageMetaTags } from \"svelte-meta-tags\";\nimport { getAllTags, getBlogPosts } from \"$lib/content\";\n\nexport const load = async ({ parent }) => {\n await parent();\n\n const blogPosts = getBlogPosts();\n const allTags = getAllTags();\n\n const pageMetaTags = definePageMetaTags({\n title: \"Blog\",\n description: \"Product notes, tutorials, and engineering posts.\",\n });\n\n const breadcrumbs = [\n { title: \"Home\", url: \"/\" },\n { title: \"Blog\", url: \"/blog\" },\n ];\n\n return { blogPosts, allTags, breadcrumbs, ...pageMetaTags };\n};\n", Ac = "<script lang=\"ts\">\n import { Badge } from \"$lib/components/ui/badge\";\n import { Separator } from \"$lib/components/ui/separator\";\n import AuthorChip from \"$lib/components/blog/AuthorChip.svelte\";\n import PostCard from \"$lib/components/blog/PostCard.svelte\";\n import { formatDate } from \"$lib/utils/date\";\n import * as Breadcrumb from \"$lib/components/ui/breadcrumb\";\n import ArrowLeft from \"@lucide/svelte/icons/arrow-left\";\n import ArrowRight from \"@lucide/svelte/icons/arrow-right\";\n import { page } from \"$app/state\";\n\n let { data } = $props();\n let breadcrumbs = $derived(page.data.breadcrumbs || []) as {\n title: string;\n url: string;\n }[];\n<\/script>\n\n<div class=\"flex flex-col gap-6\">\n <header class=\"flex flex-col gap-5 border-b border-border pb-8\">\n <div class=\"flex flex-col gap-3\">\n <h1 class=\"text-3xl font-semibold tracking-tight sm:text-4xl\">\n {data.blogPost.title}\n </h1>\n <p class=\"text-muted-foreground text-lg\">\n {data.blogPost.description}\n </p>\n </div>\n\n <div\n class=\"text-muted-foreground flex flex-wrap items-center gap-x-1 gap-y-2 text-sm\"\n >\n {#if data.blogPost.author}\n <AuthorChip author={data.blogPost.author} />\n <span aria-hidden=\"true\" class=\"text-muted-foreground/50\">•</span>\n {/if}\n <time datetime={data.blogPost.createdDate.toISOString()}>\n {formatDate(data.blogPost.createdDate)}\n </time>\n {#if data.blogPost.updatedDate}\n <span aria-hidden=\"true\" class=\"text-muted-foreground/50\">•</span>\n <span>Updated {formatDate(data.blogPost.updatedDate)}</span>\n {/if}\n <span aria-hidden=\"true\" class=\"text-muted-foreground/50\">•</span>\n <span>{data.blogPost.readingTime} min read</span>\n </div>\n\n {#if data.blogPost.tags?.length}\n <div class=\"flex flex-wrap gap-1.5\">\n {#each data.blogPost.tags as tag (tag)}\n <Badge href={`/blog/tags/${tag}`} variant=\"secondary\">{tag}</Badge>\n {/each}\n </div>\n {/if}\n </header>\n\n <article\n class=\"prose dark:prose-invert max-w-prose prose-headings:mb-0 prose-headings:mt-4\"\n >\n <data.blogPost.component />\n </article>\n\n <Separator />\n\n <nav class=\"grid gap-3 sm:grid-cols-2\" aria-label=\"Post navigation\">\n {#if data.adjacent.prev}\n <a\n href={`/blog/${data.adjacent.prev.slug}`}\n class=\"ring-foreground/10 hover:ring-foreground/20 bg-card text-card-foreground group flex flex-col gap-1 rounded-xl p-4 ring-1 transition-shadow\"\n >\n <span\n class=\"text-muted-foreground inline-flex items-center gap-1 text-xs font-medium uppercase tracking-wide\"\n >\n <ArrowLeft class=\"size-3.5\" />\n Previous\n </span>\n <span class=\"font-medium group-hover:underline\"\n >{data.adjacent.prev.title}</span\n >\n </a>\n {:else}\n <div></div>\n {/if}\n\n {#if data.adjacent.next}\n <a\n href={`/blog/${data.adjacent.next.slug}`}\n class=\"ring-foreground/10 hover:ring-foreground/20 bg-card text-card-foreground group flex flex-col gap-1 rounded-xl p-4 text-right ring-1 transition-shadow sm:col-start-2\"\n >\n <span\n class=\"text-muted-foreground inline-flex items-center justify-end gap-1 text-xs font-medium uppercase tracking-wide\"\n >\n Next\n <ArrowRight class=\"size-3.5\" />\n </span>\n <span class=\"font-medium group-hover:underline\"\n >{data.adjacent.next.title}</span\n >\n </a>\n {/if}\n </nav>\n\n {#if data.related.length}\n <section class=\"flex flex-col gap-4\">\n <Separator />\n <h2 class=\"text-xl font-semibold tracking-tight\">Related posts</h2>\n <ul class=\"grid gap-4 sm:grid-cols-2 lg:grid-cols-3\">\n {#each data.related as post (post.slug)}\n <li class=\"flex\">\n <PostCard {post} />\n </li>\n {/each}\n </ul>\n </section>\n {/if}\n</div>\n", jc = "import { error } from \"@sveltejs/kit\";\nimport { definePageMetaTags } from \"svelte-meta-tags\";\nimport {\n getAdjacentPosts,\n getBlogPost,\n getBlogPosts,\n getRelatedPosts,\n} from \"$lib/content\";\n\nexport const load = async ({ params, parent }) => {\n await parent();\n\n const blogPost = getBlogPost(params.slug);\n\n if (blogPost === null) {\n throw error(404, \"Page not found\");\n }\n\n const adjacent = getAdjacentPosts(params.slug);\n const related = getRelatedPosts(params.slug);\n\n const pageMetaTags = definePageMetaTags({\n title: blogPost.title,\n description: blogPost.description,\n });\n\n const breadcrumbs = [\n { title: \"Home\", url: \"/\" },\n { title: \"Blog\", url: \"/blog\" },\n { title: blogPost.title, url: `/blog/${blogPost.slug}` },\n ];\n\n return { blogPost, adjacent, related, breadcrumbs, ...pageMetaTags };\n};\n\nexport const entries = async () => {\n return getBlogPosts().map((post) => ({ slug: post.slug }));\n};\n", Mc = "import { getBlogPosts } from \"$lib/content\";\n\nexport const prerender = true;\n\nfunction escapeXml(value: string) {\n return value\n .replace(/&/g, \"&\")\n .replace(/</g, \"<\")\n .replace(/>/g, \">\")\n .replace(/\"/g, \""\")\n .replace(/'/g, \"'\");\n}\n\nexport const GET = async ({ locals }) => {\n const { appName, appURL } = locals.meta;\n const posts = getBlogPosts();\n const siteURL = appURL.replace(/\\/$/, \"\");\n const feedURL = `${siteURL}/blog/rss.xml`;\n const lastBuild = (\n posts[0]?.updatedDate ??\n posts[0]?.createdDate ??\n new Date()\n ).toUTCString();\n\n const items = posts\n .map((post) => {\n const link = `${siteURL}/blog/${post.slug}`;\n const pubDate = post.createdDate.toUTCString();\n const categories = (post.tags ?? [])\n .map((tag) => ` <category>${escapeXml(tag)}</category>`)\n .join(\"\\n\");\n const creator = post.author\n ? ` <dc:creator>${escapeXml(post.author.name)}</dc:creator>`\n : \"\";\n\n return [\n \" <item>\",\n ` <title>${escapeXml(post.title)}</title>`,\n ` <link>${escapeXml(link)}</link>`,\n ` <guid isPermaLink=\"true\">${escapeXml(link)}</guid>`,\n ` <description>${escapeXml(post.description)}</description>`,\n ` <pubDate>${pubDate}</pubDate>`,\n creator,\n categories,\n \" </item>\",\n ]\n .filter(Boolean)\n .join(\"\\n\");\n })\n .join(\"\\n\");\n\n const xml = `<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<rss version=\"2.0\" xmlns:atom=\"http://www.w3.org/2005/Atom\" xmlns:dc=\"http://purl.org/dc/elements/1.1/\">\n<channel>\n <title>${escapeXml(appName)}</title>\n <link>${escapeXml(`${siteURL}/blog`)}</link>\n <atom:link href=\"${escapeXml(feedURL)}\" rel=\"self\" type=\"application/rss+xml\" />\n <description>${escapeXml(`Latest posts from ${appName}.`)}</description>\n <language>en</language>\n <lastBuildDate>${lastBuild}</lastBuildDate>\n${items}\n</channel>\n</rss>\n`;\n\n return new Response(xml, {\n headers: {\n \"Content-Type\": \"application/xml; charset=utf-8\",\n \"Cache-Control\": \"max-age=0, s-maxage=3600\",\n },\n });\n};\n", Nc = "<script lang=\"ts\">\n import { Badge } from \"$lib/components/ui/badge\";\n\n let { data } = $props();\n<\/script>\n\n<div class=\"flex flex-col gap-8\">\n <header class=\"flex flex-col gap-2\">\n <h1 class=\"text-3xl font-semibold tracking-tight sm:text-4xl\">Tags</h1>\n <p class=\"text-muted-foreground text-base\">\n {data.allTags.length}\n {data.allTags.length === 1 ? \"tag\" : \"tags\"} used across the blog.\n </p>\n </header>\n\n {#if data.allTags.length}\n <ul class=\"flex flex-wrap gap-2\">\n {#each data.allTags as { tag, count } (tag)}\n <li>\n <Badge href={`/blog/tags/${tag}`} variant=\"secondary\">\n {tag}\n <span class=\"text-muted-foreground ml-0.5\">{count}</span>\n </Badge>\n </li>\n {/each}\n </ul>\n {:else}\n <p class=\"text-muted-foreground\">No tags yet.</p>\n {/if}\n</div>\n", Pc = "import { definePageMetaTags } from \"svelte-meta-tags\";\nimport { getAllTags } from \"$lib/content\";\n\nexport const load = async ({ parent }) => {\n await parent();\n\n const allTags = getAllTags();\n\n const pageMetaTags = definePageMetaTags({\n title: \"Tags\",\n description: \"All tags used on the blog.\",\n });\n\n const breadcrumbs = [\n { title: \"Home\", url: \"/\" },\n { title: \"Blog\", url: \"/blog\" },\n { title: \"Tags\", url: \"/blog/tags\" },\n ];\n\n return { allTags, breadcrumbs, ...pageMetaTags };\n};\n", Fc = "<script lang=\"ts\">\n import PostCard from \"$lib/components/blog/PostCard.svelte\";\n\n let { data } = $props();\n<\/script>\n\n<div class=\"flex flex-col gap-8\">\n <header class=\"flex flex-col gap-2\">\n <h1 class=\"text-3xl font-semibold tracking-tight sm:text-4xl\">\n {data.tag}\n </h1>\n <p class=\"text-muted-foreground text-base\">\n {data.blogPosts.length}\n {data.blogPosts.length === 1 ? \"post\" : \"posts\"} tagged \"{data.tag}\".\n </p>\n </header>\n\n <ul class=\"grid gap-4 sm:grid-cols-2 lg:grid-cols-3\">\n {#each data.blogPosts as post (post.slug)}\n <li class=\"flex\">\n <PostCard {post} />\n </li>\n {/each}\n </ul>\n</div>\n", Ic = "import { error } from \"@sveltejs/kit\";\nimport { definePageMetaTags } from \"svelte-meta-tags\";\nimport { getAllTags, getBlogPostsByTag } from \"$lib/content\";\n\nexport const load = async ({ params, parent }) => {\n await parent();\n\n const blogPosts = getBlogPostsByTag(params.tag);\n\n if (blogPosts.length === 0) {\n throw error(404, \"Tag not found\");\n }\n\n const pageMetaTags = definePageMetaTags({\n title: `Posts tagged \"${params.tag}\"`,\n description: `Blog posts tagged \"${params.tag}\".`,\n });\n\n const breadcrumbs = [\n { title: \"Home\", url: \"/\" },\n { title: \"Blog\", url: \"/blog\" },\n { title: \"Tags\", url: \"/blog/tags\" },\n { title: params.tag, url: `/blog/tags/${params.tag}` },\n ];\n\n return { blogPosts, tag: params.tag, breadcrumbs, ...pageMetaTags };\n};\n\nexport const entries = async () => {\n return getAllTags().map(({ tag }) => ({ tag }));\n};\n", Lc = "import { negotiate } from \"$lib/negotiate\";\nimport { getBlogPostRaw } from \"$lib/content\";\n\nexport const load = async ({ params, locals }) => {\n return {\n ...negotiate(locals, {\n \"text/markdown\": () => getBlogPostRaw(params.slug) ?? \"\",\n }),\n };\n};\n", Rc = /* #__PURE__ */ Object.assign({
|
|
4669
|
+
}, gc = "pre[class*='language-'],\ncode[class*='language-'] {\n color: #d4d4d4;\n font-size: 13px;\n text-shadow: none;\n font-family: Menlo, Monaco, Consolas, 'Andale Mono', 'Ubuntu Mono', 'Courier New', monospace;\n direction: ltr;\n text-align: left;\n white-space: pre;\n word-spacing: normal;\n word-break: normal;\n line-height: 1.5;\n -moz-tab-size: 4;\n -o-tab-size: 4;\n tab-size: 4;\n -webkit-hyphens: none;\n -moz-hyphens: none;\n -ms-hyphens: none;\n hyphens: none;\n}\n\npre[class*='language-']::selection,\ncode[class*='language-']::selection,\npre[class*='language-'] *::selection,\ncode[class*='language-'] *::selection {\n text-shadow: none;\n background: #264f78;\n}\n\n@media print {\n pre[class*='language-'],\n code[class*='language-'] {\n text-shadow: none;\n }\n}\n\npre[class*='language-'] {\n padding: 1em;\n margin: 0.5em 0;\n overflow: auto;\n background: oklch(0.21 0.034 264.665);\n}\n\n:not(pre) > code[class*='language-'] {\n padding: 0.1em 0.3em;\n border-radius: 0.3em;\n color: #db4c69;\n background: oklch(0.21 0.034 264.665);\n}\n/*********************************************************\n* Tokens\n*/\n.namespace {\n opacity: 0.7;\n}\n\n.token.doctype .token.doctype-tag {\n color: #569cd6;\n}\n\n.token.doctype .token.name {\n color: #9cdcfe;\n}\n\n.token.comment,\n.token.prolog {\n color: #6a9955;\n}\n\n.token.punctuation,\n.language-html .language-css .token.punctuation,\n.language-html .language-javascript .token.punctuation {\n color: #d4d4d4;\n}\n\n.token.property,\n.token.tag,\n.token.boolean,\n.token.number,\n.token.constant,\n.token.symbol,\n.token.inserted,\n.token.unit {\n color: #b5cea8;\n}\n\n.token.selector,\n.token.attr-name,\n.token.string,\n.token.char,\n.token.builtin,\n.token.deleted {\n color: #ce9178;\n}\n\n.language-css .token.string.url {\n text-decoration: underline;\n}\n\n.token.operator,\n.token.entity {\n color: #d4d4d4;\n}\n\n.token.operator.arrow {\n color: #569cd6;\n}\n\n.token.atrule {\n color: #ce9178;\n}\n\n.token.atrule .token.rule {\n color: #c586c0;\n}\n\n.token.atrule .token.url {\n color: #9cdcfe;\n}\n\n.token.atrule .token.url .token.function {\n color: #dcdcaa;\n}\n\n.token.atrule .token.url .token.punctuation {\n color: #d4d4d4;\n}\n\n.token.keyword {\n color: #569cd6;\n}\n\n.token.keyword.module,\n.token.keyword.control-flow {\n color: #c586c0;\n}\n\n.token.function,\n.token.function .token.maybe-class-name {\n color: #dcdcaa;\n}\n\n.token.regex {\n color: #d16969;\n}\n\n.token.important {\n color: #569cd6;\n}\n\n.token.italic {\n font-style: italic;\n}\n\n.token.constant {\n color: #9cdcfe;\n}\n\n.token.class-name,\n.token.maybe-class-name {\n color: #4ec9b0;\n}\n\n.token.console {\n color: #9cdcfe;\n}\n\n.token.parameter {\n color: #9cdcfe;\n}\n\n.token.interpolation {\n color: #9cdcfe;\n}\n\n.token.punctuation.interpolation-punctuation {\n color: #569cd6;\n}\n\n.token.boolean {\n color: #569cd6;\n}\n\n.token.property,\n.token.variable,\n.token.imports .token.maybe-class-name,\n.token.exports .token.maybe-class-name {\n color: #9cdcfe;\n}\n\n.token.selector {\n color: #d7ba7d;\n}\n\n.token.escape {\n color: #d7ba7d;\n}\n\n.token.tag {\n color: #569cd6;\n}\n\n.token.tag .token.punctuation {\n color: #808080;\n}\n\n.token.cdata {\n color: #808080;\n}\n\n.token.attr-name {\n color: #9cdcfe;\n}\n\n.token.attr-value,\n.token.attr-value .token.punctuation {\n color: #ce9178;\n}\n\n.token.attr-value .token.punctuation.attr-equals {\n color: #d4d4d4;\n}\n\n.token.entity {\n color: #569cd6;\n}\n\n.token.namespace {\n color: #4ec9b0;\n}\n/*********************************************************\n* Language Specific\n*/\n\npre[class*='language-javascript'],\ncode[class*='language-javascript'],\npre[class*='language-jsx'],\ncode[class*='language-jsx'],\npre[class*='language-typescript'],\ncode[class*='language-typescript'],\npre[class*='language-tsx'],\ncode[class*='language-tsx'] {\n color: #9cdcfe;\n}\n\npre[class*='language-css'],\ncode[class*='language-css'] {\n color: #ce9178;\n}\n\npre[class*='language-html'],\ncode[class*='language-html'] {\n color: #d4d4d4;\n}\n\n.language-regex .token.anchor {\n color: #dcdcaa;\n}\n\n.language-html .token.punctuation {\n color: #808080;\n}\n/*********************************************************\n* Line highlighting\n*/\npre[class*='language-'] > code[class*='language-'] {\n position: relative;\n z-index: 1;\n}\n\n.line-highlight.line-highlight {\n background: #f7ebc6;\n box-shadow: inset 5px 0 0 #f7d87c;\n z-index: 0;\n}\n", _c = "<script lang=\"ts\">\n import * as Avatar from '$lib/components/ui/avatar';\n import type { BlogAuthor } from '$lib/content';\n\n let {\n author,\n size = 'sm'\n }: { author: BlogAuthor; size?: 'sm' | 'default' | 'lg' } = $props();\n\n const initials = $derived(\n author.name\n .split(/\\s+/)\n .map((part) => part[0])\n .filter(Boolean)\n .slice(0, 2)\n .join('')\n .toUpperCase()\n );\n<\/script>\n\n<span class=\"inline-flex items-center gap-2\">\n <Avatar.Root {size}>\n {#if author.avatar}\n <Avatar.Image src={author.avatar} alt={author.name} />\n {/if}\n <Avatar.Fallback class=\"text-xs\">{initials}</Avatar.Fallback>\n </Avatar.Root>\n <span class=\"text-foreground text-sm font-medium\">{author.name}</span>\n</span>\n", vc = "<script lang=\"ts\">\n import * as Card from \"$lib/components/ui/card\";\n import { Badge } from \"$lib/components/ui/badge\";\n import AuthorChip from \"./AuthorChip.svelte\";\n import { formatDate } from \"$lib/utils/date\";\n import type { BlogPost, BlogPostSummary } from \"$lib/content\";\n\n let { post }: { post: BlogPost | BlogPostSummary } = $props();\n<\/script>\n\n<Card.Root class=\"hover:ring-foreground/20 h-full transition-shadow w-full\">\n <Card.Header>\n <Card.Title class=\"text-lg leading-snug\">\n <a href={`/blog/${post.slug}`} class=\"hover:underline\">\n {post.title}\n </a>\n </Card.Title>\n <Card.Description class=\"line-clamp-2\">\n {post.description}\n </Card.Description>\n </Card.Header>\n <Card.Content class=\"flex flex-1 flex-col justify-end gap-3\">\n {#if post.tags?.length}\n <div class=\"flex flex-wrap gap-1.5\">\n {#each post.tags as tag (tag)}\n <Badge href={`/blog/tags/${tag}`} variant=\"secondary\">{tag}</Badge>\n {/each}\n </div>\n {/if}\n <div\n class=\"text-muted-foreground flex items-center justify-between gap-3 text-xs\"\n >\n {#if post.author}\n <AuthorChip author={post.author} />\n {:else}\n <span></span>\n {/if}\n <span class=\"whitespace-nowrap\">\n <time datetime={post.createdDate.toISOString()}\n >{formatDate(post.createdDate)}</time\n >\n <span aria-hidden=\"true\">•</span>\n <span>{post.readingTime} min read</span>\n </span>\n </div>\n </Card.Content>\n</Card.Root>\n", yc = "---\ntitle: Design System Notes\ndescription: Small choices that make a design system feel coherent — spacing, radius, and the case for fewer variants.\ncreatedDate: 2025-12-15\ntags:\n - design\n - shadcn\nauthor:\n name: Ada Chen\n---\n\nWe've been cleaning up the design system recently. A few notes from the\npass, mostly for ourselves, partially in case they're useful to anyone\nelse building on top of shadcn.\n\n## The variants we actually use\n\nEvery primitive ships with a dozen variants. In practice our product\nleans on two or three per component:\n\n- **Buttons** — `default`, `ghost`, and `outline`. Destructive shows up\n rarely enough to be worth the extra click.\n- **Badges** — `default` and `secondary`. Tags and counts, nothing else.\n- **Cards** — one shape, with optional footer. Multiple card styles\n became indistinguishable from \"padded div,\" so we stopped.\n\nIf a variant hasn't appeared in a design in six months, it gets deleted.\nThe point isn't minimalism; it's that every extra variant is a decision\na future designer has to relitigate.\n\n## Spacing\n\nTailwind's default scale is good. We only locked in one rule: never use\nodd gaps. `gap-3` and `gap-5` stay; `gap-2.5` goes. It's a small thing\nthat quietly keeps vertical rhythm predictable across pages.\n\n## Radius\n\nOne radius token, applied everywhere. If a surface needs to feel\ndifferent, that's a structural decision — a card, a sheet, a popover —\nnot a one-off `rounded-md`. We ended up at `0.625rem` as our default\nand haven't wanted to change it.\n\n## Dark mode\n\nWe treat dark mode as a different palette, not a filter. Every token\nhas an explicit OKLCH value in both themes. When a component looks\noff in dark mode, the fix is almost always a token, not a tweak.\n", bc = "---\ntitle: Getting Started with SvelteKit\ndescription: The smallest useful SvelteKit project, explained end to end — routing, loading data, and the dev loop.\ncreatedDate: 2026-03-12\ntags:\n - sveltekit\n - tutorial\nauthor:\n name: Marco Alvarez\n---\n\nSvelteKit is the piece that turns Svelte — a component library — into\nsomething you can ship. Routing, server endpoints, data loading, builds,\nand deployment adapters all live in one place.\n\n## Creating a project\n\nThe fastest path is the CLI. It scaffolds a minimal project, installs\ndependencies, and leaves you with a working dev server.\n\n```bash\nnpx sv create my-app\ncd my-app\nnpm install\nnpm run dev\n```\n\n## Routes are files\n\nA route is a folder under `src/routes` with a `+page.svelte` inside.\nNested folders produce nested URLs. Dynamic segments use `[brackets]`.\n\n```\nsrc/routes/\n +page.svelte # /\n about/\n +page.svelte # /about\n blog/\n [slug]/\n +page.svelte # /blog/:slug\n```\n\n## Loading data\n\nA route's `+page.ts` (or `+page.server.ts` for server-only data) exports\na `load` function. Whatever it returns becomes `data` on the page.\n\n```ts\n// src/routes/blog/[slug]/+page.ts\nimport { error } from '@sveltejs/kit';\n\nexport const load = async ({ params }) => {\n const post = await fetchPost(params.slug);\n if (!post) throw error(404, 'Not found');\n return { post };\n};\n```\n\nThat's most of SvelteKit. The rest — form actions, hooks, adapters — are\nopt-in once you need them.\n", xc = "---\ntitle: A Pragmatic Performance Checklist\ndescription: The small set of things that have given us the biggest performance wins — in rough order of impact.\ncreatedDate: 2025-11-03\ntags:\n - performance\n - tutorial\nauthor:\n name: Marco Alvarez\n---\n\nWe don't have a performance budget so much as a performance allergy.\nWhen something feels slow, we profile, fix the obvious thing, and move\non. The list below is what \"the obvious thing\" usually is.\n\n> Premature optimization is the root of all evil, but ignoring a 3s\n> cold-start isn't optimization — it's negligence.\n\n## The checklist\n\n1. **Measure with real numbers.** Lighthouse and the Network tab answer\n most questions. If you're not measuring, you're guessing.\n2. **Serve fewer bytes.** Compress images (AVIF or WebP), remove unused\n fonts, and audit any dependency over 50KB gzipped.\n3. **Defer the non-critical.** Scripts that aren't needed above the\n fold can wait. `loading=\"lazy\"` on images, `defer` on scripts, and\n dynamic `import()` for interactive widgets.\n4. **Cache at the edge.** If the same HTML could serve a thousand users,\n it should. Use your adapter's cache headers; don't hand-roll it.\n5. **Avoid waterfalls.** If page load depends on three sequential fetches,\n collapse them into one endpoint or preload the critical ones.\n6. **Trust the framework.** SvelteKit's `load` functions run in parallel\n by default and the compiler already strips unused code. Most hand-rolled\n cleverness just gets in the way.\n\n## What we stopped worrying about\n\n- Micro-optimizations inside component code — the bundle is small, the\n diff is fast. The savings are real but rarely matter.\n- Third-party tooling that promises \"speed.\" If it adds a build step,\n the benefit needs to be measurable, not theoretical.\n\n## When to go deeper\n\nIf the checklist doesn't move the needle, the next step is almost\nalways a deeper look at the data layer — query plans, N+1 fetches, cold\ncache behavior. But you should have exhausted the list above before\ngetting there. Most slowness is boring, and most fixes are too.\n", Sc = "---\ntitle: Welcome to the Blog\ndescription: A quick note on what this space is for and what to expect from us.\ncreatedDate: 2026-04-20\ntags:\n - announcements\nauthor:\n name: Ada Chen\n---\n\nWelcome in. This blog is where we write about the things we build, the\ndecisions behind them, and what we learn when they go sideways.\n\nYou can expect a mix of short notes and longer walkthroughs. No schedule,\nno filler. If a post exists it's because something was worth writing down.\n\nA few threads you'll see pop up often:\n\n- Product notes on what we're shipping and why\n- Practical tutorials for the tools we use every day\n- Design and engineering decisions that took more than five minutes\n\nIf you'd rather not check back manually, the [RSS feed](/blog/rss.xml)\nhas every post. Thanks for reading.\n", Cc = "---\ntitle: Why We Chose Tailwind v4\ndescription: Notes on moving from a traditional CSS pipeline to Tailwind v4's zero-config, CSS-first setup.\ncreatedDate: 2026-02-18\ntags:\n - tailwind\n - design\nauthor:\n name: Ada Chen\n---\n\nTailwind v4 is a meaningful rewrite. The surface API still looks the same\n— utility classes on elements — but the compiler, configuration model,\nand theming story all changed in ways that made us want to adopt it.\n\n> The point of a design system isn't to ship fewer classes. It's to make\n> the next decision easier than the last.\n\n## What changed for us\n\nThree things mattered:\n\n1. **CSS-first config.** `tailwind.config.js` is gone. Tokens live in\n `app.css` as real CSS custom properties, which means they also work\n outside of Tailwind — SVG fills, inline styles, wherever.\n2. **OKLCH colors.** Designers can reason about lightness and chroma\n independently. Contrast checks become much easier to eyeball.\n3. **Speed.** The new engine compiles fast enough that we stopped\n thinking about purge lists. Dev feedback is effectively instant.\n\n## The config we kept\n\nWe pinned two things in `app.css`:\n\n```css\n@import 'tailwindcss';\n@plugin '@tailwindcss/typography';\n\n:root {\n --radius: 0.625rem;\n --background: oklch(1 0 0);\n --foreground: oklch(0.129 0.042 264.695);\n}\n```\n\nEverything else — spacing, typography, breakpoints — falls back to\ndefaults until we have a reason to override it.\n\n## What we'd tell a team evaluating it\n\nIf you're already using Tailwind v3, the migration is mostly a config\nmove. If you're starting from scratch, v4 removes a pile of decisions\nyou'd otherwise be making on day one. That alone made it worth it.\n", wc = "---\ntitle: Writing Posts with MDsveX\ndescription: How this blog turns markdown files into real Svelte components — frontmatter, code, and embedded UI.\ncreatedDate: 2026-01-28\nupdatedDate: 2026-02-02\ntags:\n - mdsvex\n - tutorial\nauthor:\n name: Priya Shah\n---\n\nPosts on this blog are `.svx` files. Each one is a real Svelte component\nat build time, so Markdown and Svelte sit side by side with no glue\ncode.\n\n## Frontmatter\n\nYAML at the top of a post becomes the `metadata` export. The loader\nreads it to build the list view, tag pages, and RSS feed.\n\n```yaml\n---\ntitle: Writing Posts with MDsveX\ndescription: A short description shown in previews.\ncreatedDate: 2026-01-28\ntags:\n - mdsvex\n - tutorial\nauthor:\n name: Priya Shah\n---\n```\n\n## Markdown works the way you'd expect\n\nHeadings, lists, links, blockquotes, and inline `code` all render.\nFenced code blocks pick up language hints for syntax highlighting when a\nplugin is enabled.\n\n```ts\nfunction greet(name: string) {\n return `hello, ${name}`;\n}\n```\n\n## Images\n\nPut images in `static/` and reference them with a root-relative path:\n\n```md\n\n```\n\n## Svelte in your posts\n\nThe superpower is that you can drop components straight into a post —\na chart, an interactive demo, a call-to-action card. The rules are the\nsame as any other Svelte file:\n\n```svelte\n<script>\n import Callout from '$lib/components/Callout.svelte';\n<\/script>\n\n<Callout>This is a real component inside a markdown post.</Callout>\n```\n\nThat's the whole pipeline. Write markdown, sprinkle in components when\nplain text stops being enough, and the rest is just Svelte.\n", Tc = "import type { Component } from \"svelte\";\n\nexport type BlogAuthor = {\n name: string;\n avatar?: string;\n};\n\nexport type BlogMetadata = {\n title: string;\n description: string;\n createdDate: string;\n updatedDate?: string;\n tags?: string[];\n author?: BlogAuthor;\n};\n\nexport type BlogModules = Record<\n string,\n { default: Component; metadata: BlogMetadata }\n>;\n\nexport type BlogRawModules = Record<string, string>;\n\nexport type BlogPost = {\n slug: string;\n title: string;\n description: string;\n createdDate: Date;\n updatedDate?: Date;\n tags?: string[];\n author?: BlogAuthor;\n readingTime: number;\n component: Component;\n};\n\nexport type BlogPostSummary = Omit<BlogPost, \"component\">;\n\nconst WORDS_PER_MINUTE = 220;\n\nfunction getBlogModules() {\n return import.meta.glob(\"$lib/content/blog/*.svx\", {\n eager: true,\n }) as BlogModules;\n}\n\nfunction getBlogRawModules() {\n return import.meta.glob(\"$lib/content/blog/*.svx\", {\n eager: true,\n query: \"?raw\",\n import: \"default\",\n }) as BlogRawModules;\n}\n\nfunction stripFrontmatter(raw: string) {\n if (!raw.startsWith(\"---\")) return raw;\n const end = raw.indexOf(\"\\n---\", 3);\n if (end === -1) return raw;\n return raw.slice(end + 4);\n}\n\nfunction computeReadingTime(raw: string) {\n const body = stripFrontmatter(raw);\n const words = body.split(/\\s+/).filter(Boolean).length;\n return Math.max(1, Math.ceil(words / WORDS_PER_MINUTE));\n}\n\nexport function getBlogPosts(): BlogPost[] {\n const modules = getBlogModules();\n const rawModules = getBlogRawModules();\n\n const posts = Object.entries(modules).map(([path, module]) => {\n const filename = path.split(\"/\").pop() ?? \"\";\n const slug = filename.replace(\".svx\", \"\");\n const raw = rawModules[path] ?? \"\";\n\n return {\n slug,\n title: module.metadata.title,\n description: module.metadata.description,\n createdDate: new Date(module.metadata.createdDate),\n updatedDate: module.metadata.updatedDate\n ? new Date(module.metadata.updatedDate)\n : undefined,\n tags: module.metadata.tags,\n author: module.metadata.author,\n readingTime: computeReadingTime(raw),\n component: module.default,\n };\n });\n\n posts.sort((a, b) => b.createdDate.getTime() - a.createdDate.getTime());\n return posts;\n}\n\nexport function getBlogPost(slug: string) {\n const posts = getBlogPosts();\n return posts.find((post) => post.slug === slug) ?? null;\n}\n\nexport function getBlogPostRaw(slug: string): string | null {\n const rawModules = getBlogRawModules();\n for (const [path, raw] of Object.entries(rawModules)) {\n const filename = path.split(\"/\").pop() ?? \"\";\n if (filename.replace(\".svx\", \"\") === slug) return raw;\n }\n return null;\n}\n\nexport function getBlogPostsByTag(tag: string) {\n return getBlogPosts().filter((post) => post.tags?.includes(tag));\n}\n\nexport function getAllTags(): { tag: string; count: number }[] {\n const counts = new Map<string, number>();\n for (const post of getBlogPosts()) {\n for (const tag of post.tags ?? []) {\n counts.set(tag, (counts.get(tag) ?? 0) + 1);\n }\n }\n return [...counts.entries()]\n .map(([tag, count]) => ({ tag, count }))\n .sort((a, b) => b.count - a.count || a.tag.localeCompare(b.tag));\n}\n\nexport function getAdjacentPosts(slug: string): {\n prev: BlogPost | null;\n next: BlogPost | null;\n} {\n const posts = getBlogPosts();\n const index = posts.findIndex((post) => post.slug === slug);\n if (index === -1) return { prev: null, next: null };\n return {\n next: index > 0 ? posts[index - 1] : null,\n prev: index < posts.length - 1 ? posts[index + 1] : null,\n };\n}\n\nexport function getRelatedPosts(slug: string, limit = 3): BlogPost[] {\n const posts = getBlogPosts();\n const current = posts.find((post) => post.slug === slug);\n if (!current?.tags?.length) return [];\n\n const currentTags = new Set(current.tags);\n\n return posts\n .filter((post) => post.slug !== slug && post.tags?.length)\n .map((post) => ({\n post,\n overlap: post.tags!.filter((tag) => currentTags.has(tag)).length,\n }))\n .filter(({ overlap }) => overlap > 0)\n .sort(\n (a, b) =>\n b.overlap - a.overlap ||\n b.post.createdDate.getTime() - a.post.createdDate.getTime(),\n )\n .slice(0, limit)\n .map(({ post }) => post);\n}\n", Ec = "const formatter = new Intl.DateTimeFormat(\"en-US\", {\n year: \"numeric\",\n month: \"long\",\n day: \"numeric\",\n});\n\nexport function formatDate(date: Date) {\n return formatter.format(date);\n}\n", Dc = "<script lang=\"ts\">\n import * as Breadcrumb from \"$lib/components/ui/breadcrumb\";\n import { page } from \"$app/state\";\n\n let { children } = $props();\n\n let breadcrumbs = $derived(page.data.breadcrumbs || []) as {\n title: string;\n url: string;\n }[];\n<\/script>\n\n<section data-role=\"content\">\n <Breadcrumb.Root class=\"mb-6\">\n <Breadcrumb.List>\n {#if breadcrumbs.length > 1}\n {#each breadcrumbs.slice(0, -1) as breadcrumb}\n <Breadcrumb.Item>\n <Breadcrumb.Link href={breadcrumb.url}\n >{breadcrumb.title}</Breadcrumb.Link\n >\n </Breadcrumb.Item>\n <Breadcrumb.Separator />\n {/each}\n {/if}\n <Breadcrumb.Page>\n {breadcrumbs[breadcrumbs.length - 1].title}\n </Breadcrumb.Page>\n </Breadcrumb.List>\n </Breadcrumb.Root>\n\n {@render children?.()}\n</section>\n", Oc = "<script lang=\"ts\">\n import { Badge } from \"$lib/components/ui/badge\";\n import { Button } from \"$lib/components/ui/button\";\n import PostCard from \"$lib/components/blog/PostCard.svelte\";\n import Rss from \"@lucide/svelte/icons/rss\";\n\n let { data } = $props();\n<\/script>\n\n<div class=\"flex flex-col gap-10\">\n <header\n class=\"flex flex-col gap-4 md:flex-row md:items-end md:justify-between\"\n >\n <div class=\"max-w-2xl\">\n <h1 class=\"text-3xl font-semibold tracking-tight sm:text-4xl\">Blog</h1>\n <p class=\"text-muted-foreground mt-2 text-base\">\n Product notes, tutorials, and engineering posts from the team.\n </p>\n </div>\n <Button href=\"/blog/rss.xml\" variant=\"outline\" size=\"sm\" class=\"w-fit\">\n <Rss class=\"size-4\" />\n RSS\n </Button>\n </header>\n\n <ul class=\"grid gap-4 sm:grid-cols-2 lg:grid-cols-3\">\n {#each data.blogPosts as post (post.slug)}\n <li class=\"flex w-full\">\n <PostCard {post} />\n </li>\n {/each}\n </ul>\n</div>\n", kc = "import { definePageMetaTags } from \"svelte-meta-tags\";\nimport { getAllTags, getBlogPosts } from \"$lib/content\";\n\nexport const load = async ({ parent }) => {\n await parent();\n\n const blogPosts = getBlogPosts();\n const allTags = getAllTags();\n\n const pageMetaTags = definePageMetaTags({\n title: \"Blog\",\n description: \"Product notes, tutorials, and engineering posts.\",\n });\n\n const breadcrumbs = [\n { title: \"Home\", url: \"/\" },\n { title: \"Blog\", url: \"/blog\" },\n ];\n\n return { blogPosts, allTags, breadcrumbs, ...pageMetaTags };\n};\n", Ac = "<script lang=\"ts\">\n import { Badge } from \"$lib/components/ui/badge\";\n import { Separator } from \"$lib/components/ui/separator\";\n import AuthorChip from \"$lib/components/blog/AuthorChip.svelte\";\n import PostCard from \"$lib/components/blog/PostCard.svelte\";\n import { formatDate } from \"$lib/utils/date\";\n import * as Breadcrumb from \"$lib/components/ui/breadcrumb\";\n import ArrowLeft from \"@lucide/svelte/icons/arrow-left\";\n import ArrowRight from \"@lucide/svelte/icons/arrow-right\";\n import { page } from \"$app/state\";\n\n let { data } = $props();\n let breadcrumbs = $derived(page.data.breadcrumbs || []) as {\n title: string;\n url: string;\n }[];\n<\/script>\n\n<div class=\"flex flex-col gap-6\">\n <header class=\"flex flex-col gap-5 border-b border-border pb-8\">\n <div class=\"flex flex-col gap-3\">\n <h1 class=\"text-3xl font-semibold tracking-tight sm:text-4xl\">\n {data.blogPost.title}\n </h1>\n <p class=\"text-muted-foreground text-lg\">\n {data.blogPost.description}\n </p>\n </div>\n\n <div\n class=\"text-muted-foreground flex flex-wrap items-center gap-x-1 gap-y-2 text-sm\"\n >\n {#if data.blogPost.author}\n <AuthorChip author={data.blogPost.author} />\n <span aria-hidden=\"true\" class=\"text-muted-foreground/50\">•</span>\n {/if}\n <time datetime={data.blogPost.createdDate.toISOString()}>\n {formatDate(data.blogPost.createdDate)}\n </time>\n {#if data.blogPost.updatedDate}\n <span aria-hidden=\"true\" class=\"text-muted-foreground/50\">•</span>\n <span>Updated {formatDate(data.blogPost.updatedDate)}</span>\n {/if}\n <span aria-hidden=\"true\" class=\"text-muted-foreground/50\">•</span>\n <span>{data.blogPost.readingTime} min read</span>\n </div>\n\n {#if data.blogPost.tags?.length}\n <div class=\"flex flex-wrap gap-1.5\">\n {#each data.blogPost.tags as tag (tag)}\n <Badge href={`/blog/tags/${tag}`} variant=\"secondary\">{tag}</Badge>\n {/each}\n </div>\n {/if}\n </header>\n\n <article\n class=\"prose dark:prose-invert max-w-prose prose-headings:mb-0 prose-headings:mt-4\"\n >\n <data.blogPost.component />\n </article>\n\n <Separator />\n\n <nav class=\"grid gap-3 sm:grid-cols-2\" aria-label=\"Post navigation\">\n {#if data.adjacent.prev}\n <a\n href={`/blog/${data.adjacent.prev.slug}`}\n class=\"ring-foreground/10 hover:ring-foreground/20 bg-card text-card-foreground group flex flex-col gap-1 rounded-xl p-4 ring-1 transition-shadow\"\n >\n <span\n class=\"text-muted-foreground inline-flex items-center gap-1 text-xs font-medium uppercase tracking-wide\"\n >\n <ArrowLeft class=\"size-3.5\" />\n Previous\n </span>\n <span class=\"font-medium group-hover:underline\"\n >{data.adjacent.prev.title}</span\n >\n </a>\n {:else}\n <div></div>\n {/if}\n\n {#if data.adjacent.next}\n <a\n href={`/blog/${data.adjacent.next.slug}`}\n class=\"ring-foreground/10 hover:ring-foreground/20 bg-card text-card-foreground group flex flex-col gap-1 rounded-xl p-4 text-right ring-1 transition-shadow sm:col-start-2\"\n >\n <span\n class=\"text-muted-foreground inline-flex items-center justify-end gap-1 text-xs font-medium uppercase tracking-wide\"\n >\n Next\n <ArrowRight class=\"size-3.5\" />\n </span>\n <span class=\"font-medium group-hover:underline\"\n >{data.adjacent.next.title}</span\n >\n </a>\n {/if}\n </nav>\n\n {#if data.related.length}\n <section class=\"flex flex-col gap-4\">\n <Separator />\n <h2 class=\"text-xl font-semibold tracking-tight\">Related posts</h2>\n <ul class=\"grid gap-4 sm:grid-cols-2 lg:grid-cols-3\">\n {#each data.related as post (post.slug)}\n <li class=\"flex\">\n <PostCard {post} />\n </li>\n {/each}\n </ul>\n </section>\n {/if}\n</div>\n", jc = "import { error } from \"@sveltejs/kit\";\nimport { definePageMetaTags } from \"svelte-meta-tags\";\nimport {\n getAdjacentPosts,\n getBlogPost,\n getBlogPosts,\n getRelatedPosts,\n} from \"$lib/content\";\n\nexport const load = async ({ params, parent }) => {\n await parent();\n\n const blogPost = getBlogPost(params.slug);\n\n if (blogPost === null) {\n throw error(404, \"Page not found\");\n }\n\n const adjacent = getAdjacentPosts(params.slug);\n const related = getRelatedPosts(params.slug);\n\n const pageMetaTags = definePageMetaTags({\n title: blogPost.title,\n description: blogPost.description,\n });\n\n const breadcrumbs = [\n { title: \"Home\", url: \"/\" },\n { title: \"Blog\", url: \"/blog\" },\n { title: blogPost.title, url: `/blog/${blogPost.slug}` },\n ];\n\n return { blogPost, adjacent, related, breadcrumbs, ...pageMetaTags };\n};\n\nexport const entries = async () => {\n return getBlogPosts().map((post) => ({ slug: post.slug }));\n};\n", Mc = "import { getBlogPosts } from \"$lib/content\";\n\nexport const prerender = true;\n\nfunction escapeXml(value: string) {\n return value\n .replace(/&/g, \"&\")\n .replace(/</g, \"<\")\n .replace(/>/g, \">\")\n .replace(/\"/g, \""\")\n .replace(/'/g, \"'\");\n}\n\nexport const GET = async ({ locals, url }) => {\n const { appName } = locals.meta;\n const posts = getBlogPosts();\n // `url.origin`, not `locals.meta.appURL`: this feed is prerendered, and the\n // origin comes from the build's own configuration rather than from whichever\n // database the build could reach. Every `<link>` and `<guid>` below is\n // permanent once published, so pointing them at a developer's localhost is\n // not something a later deploy can take back.\n const siteURL = url.origin.replace(/\\/$/, \"\");\n const feedURL = `${siteURL}/blog/rss.xml`;\n const lastBuild = (\n posts[0]?.updatedDate ??\n posts[0]?.createdDate ??\n new Date()\n ).toUTCString();\n\n const items = posts\n .map((post) => {\n const link = `${siteURL}/blog/${post.slug}`;\n const pubDate = post.createdDate.toUTCString();\n const categories = (post.tags ?? [])\n .map((tag) => ` <category>${escapeXml(tag)}</category>`)\n .join(\"\\n\");\n const creator = post.author\n ? ` <dc:creator>${escapeXml(post.author.name)}</dc:creator>`\n : \"\";\n\n return [\n \" <item>\",\n ` <title>${escapeXml(post.title)}</title>`,\n ` <link>${escapeXml(link)}</link>`,\n ` <guid isPermaLink=\"true\">${escapeXml(link)}</guid>`,\n ` <description>${escapeXml(post.description)}</description>`,\n ` <pubDate>${pubDate}</pubDate>`,\n creator,\n categories,\n \" </item>\",\n ]\n .filter(Boolean)\n .join(\"\\n\");\n })\n .join(\"\\n\");\n\n const xml = `<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<rss version=\"2.0\" xmlns:atom=\"http://www.w3.org/2005/Atom\" xmlns:dc=\"http://purl.org/dc/elements/1.1/\">\n<channel>\n <title>${escapeXml(appName)}</title>\n <link>${escapeXml(`${siteURL}/blog`)}</link>\n <atom:link href=\"${escapeXml(feedURL)}\" rel=\"self\" type=\"application/rss+xml\" />\n <description>${escapeXml(`Latest posts from ${appName}.`)}</description>\n <language>en</language>\n <lastBuildDate>${lastBuild}</lastBuildDate>\n${items}\n</channel>\n</rss>\n`;\n\n return new Response(xml, {\n headers: {\n \"Content-Type\": \"application/xml; charset=utf-8\",\n \"Cache-Control\": \"max-age=0, s-maxage=3600\",\n },\n });\n};\n", Nc = "<script lang=\"ts\">\n import { Badge } from \"$lib/components/ui/badge\";\n\n let { data } = $props();\n<\/script>\n\n<div class=\"flex flex-col gap-8\">\n <header class=\"flex flex-col gap-2\">\n <h1 class=\"text-3xl font-semibold tracking-tight sm:text-4xl\">Tags</h1>\n <p class=\"text-muted-foreground text-base\">\n {data.allTags.length}\n {data.allTags.length === 1 ? \"tag\" : \"tags\"} used across the blog.\n </p>\n </header>\n\n {#if data.allTags.length}\n <ul class=\"flex flex-wrap gap-2\">\n {#each data.allTags as { tag, count } (tag)}\n <li>\n <Badge href={`/blog/tags/${tag}`} variant=\"secondary\">\n {tag}\n <span class=\"text-muted-foreground ml-0.5\">{count}</span>\n </Badge>\n </li>\n {/each}\n </ul>\n {:else}\n <p class=\"text-muted-foreground\">No tags yet.</p>\n {/if}\n</div>\n", Pc = "import { definePageMetaTags } from \"svelte-meta-tags\";\nimport { getAllTags } from \"$lib/content\";\n\nexport const load = async ({ parent }) => {\n await parent();\n\n const allTags = getAllTags();\n\n const pageMetaTags = definePageMetaTags({\n title: \"Tags\",\n description: \"All tags used on the blog.\",\n });\n\n const breadcrumbs = [\n { title: \"Home\", url: \"/\" },\n { title: \"Blog\", url: \"/blog\" },\n { title: \"Tags\", url: \"/blog/tags\" },\n ];\n\n return { allTags, breadcrumbs, ...pageMetaTags };\n};\n", Fc = "<script lang=\"ts\">\n import PostCard from \"$lib/components/blog/PostCard.svelte\";\n\n let { data } = $props();\n<\/script>\n\n<div class=\"flex flex-col gap-8\">\n <header class=\"flex flex-col gap-2\">\n <h1 class=\"text-3xl font-semibold tracking-tight sm:text-4xl\">\n {data.tag}\n </h1>\n <p class=\"text-muted-foreground text-base\">\n {data.blogPosts.length}\n {data.blogPosts.length === 1 ? \"post\" : \"posts\"} tagged \"{data.tag}\".\n </p>\n </header>\n\n <ul class=\"grid gap-4 sm:grid-cols-2 lg:grid-cols-3\">\n {#each data.blogPosts as post (post.slug)}\n <li class=\"flex\">\n <PostCard {post} />\n </li>\n {/each}\n </ul>\n</div>\n", Ic = "import { error } from \"@sveltejs/kit\";\nimport { definePageMetaTags } from \"svelte-meta-tags\";\nimport { getAllTags, getBlogPostsByTag } from \"$lib/content\";\n\nexport const load = async ({ params, parent }) => {\n await parent();\n\n const blogPosts = getBlogPostsByTag(params.tag);\n\n if (blogPosts.length === 0) {\n throw error(404, \"Tag not found\");\n }\n\n const pageMetaTags = definePageMetaTags({\n title: `Posts tagged \"${params.tag}\"`,\n description: `Blog posts tagged \"${params.tag}\".`,\n });\n\n const breadcrumbs = [\n { title: \"Home\", url: \"/\" },\n { title: \"Blog\", url: \"/blog\" },\n { title: \"Tags\", url: \"/blog/tags\" },\n { title: params.tag, url: `/blog/tags/${params.tag}` },\n ];\n\n return { blogPosts, tag: params.tag, breadcrumbs, ...pageMetaTags };\n};\n\nexport const entries = async () => {\n return getAllTags().map(({ tag }) => ({ tag }));\n};\n", Lc = "import { negotiate } from \"$lib/negotiate\";\nimport { getBlogPostRaw } from \"$lib/content\";\n\nexport const load = async ({ params, locals }) => {\n return {\n ...negotiate(locals, {\n \"text/markdown\": () => getBlogPostRaw(params.slug) ?? \"\",\n }),\n };\n};\n", Rc = /* #__PURE__ */ Object.assign({
|
|
4670
4670
|
"./creates/src/css/prism-vsc-dark-plus.css": gc,
|
|
4671
4671
|
"./creates/src/lib/components/blog/AuthorChip.svelte": _c,
|
|
4672
4672
|
"./creates/src/lib/components/blog/PostCard.svelte": vc,
|
|
@@ -4761,7 +4761,7 @@ async function Zc(e) {
|
|
|
4761
4761
|
let r = await Kc(e);
|
|
4762
4762
|
return y(n([t, r]));
|
|
4763
4763
|
}
|
|
4764
|
-
let { generate: r } = await import("./chunks/generate.runtime-CFKrhkAA.js"), i = await r(e), { writeResult: a } = await import("./chunks/write-result-
|
|
4764
|
+
let { generate: r } = await import("./chunks/generate.runtime-CFKrhkAA.js"), i = await r(e), { writeResult: a } = await import("./chunks/write-result-DvELaUJg.js");
|
|
4765
4765
|
return a(await y(n([t, i])), e);
|
|
4766
4766
|
}
|
|
4767
4767
|
var Qc = {
|
|
@@ -4872,7 +4872,7 @@ async function _l(e) {
|
|
|
4872
4872
|
let r = await fl(e);
|
|
4873
4873
|
return y(n([t, r]));
|
|
4874
4874
|
}
|
|
4875
|
-
let { generate: r } = await import("./chunks/generate.runtime-CFwzS666.js"), i = await r(e), { writeResult: a } = await import("./chunks/write-result-
|
|
4875
|
+
let { generate: r } = await import("./chunks/generate.runtime-CFwzS666.js"), i = await r(e), { writeResult: a } = await import("./chunks/write-result-DvELaUJg.js");
|
|
4876
4876
|
return a(await y(n([t, i])), e);
|
|
4877
4877
|
}
|
|
4878
4878
|
var vl = {
|
|
@@ -4931,7 +4931,7 @@ async function Tl(e) {
|
|
|
4931
4931
|
modifies: [],
|
|
4932
4932
|
deletes: [],
|
|
4933
4933
|
components: ["select"],
|
|
4934
|
-
packages: ["wuchale", "@wuchale/svelte"],
|
|
4934
|
+
packages: ["wuchale@^0.26.3", "@wuchale/svelte@^0.21.1"],
|
|
4935
4935
|
collections: [],
|
|
4936
4936
|
collectionPatches: [],
|
|
4937
4937
|
collectionDrops: []
|
|
@@ -4976,7 +4976,7 @@ async function Nl(e) {
|
|
|
4976
4976
|
let r = await Ol(e);
|
|
4977
4977
|
return y(n([t, r]));
|
|
4978
4978
|
}
|
|
4979
|
-
let { generate: r } = await import("./chunks/generate.runtime-CNwy0UB2.js"), i = await r(e), { writeResult: a } = await import("./chunks/write-result-
|
|
4979
|
+
let { generate: r } = await import("./chunks/generate.runtime-CNwy0UB2.js"), i = await r(e), { writeResult: a } = await import("./chunks/write-result-DvELaUJg.js");
|
|
4980
4980
|
return a(await y(n([t, i])), e);
|
|
4981
4981
|
}
|
|
4982
4982
|
var Pl = {
|
|
@@ -5136,7 +5136,7 @@ async function Yl(e) {
|
|
|
5136
5136
|
let r = await Wl(e);
|
|
5137
5137
|
return y(n([t, r]));
|
|
5138
5138
|
}
|
|
5139
|
-
let { generate: r } = await import("./chunks/generate.runtime-CG0gMypH.js"), i = await r(e), { writeResult: a } = await import("./chunks/write-result-
|
|
5139
|
+
let { generate: r } = await import("./chunks/generate.runtime-CG0gMypH.js"), i = await r(e), { writeResult: a } = await import("./chunks/write-result-DvELaUJg.js");
|
|
5140
5140
|
return a(await y(n([t, i])), e);
|
|
5141
5141
|
}
|
|
5142
5142
|
var Xl = {
|
|
@@ -5544,7 +5544,7 @@ async function rd(e) {
|
|
|
5544
5544
|
let r = await Qu(e);
|
|
5545
5545
|
return y(n([t, r]));
|
|
5546
5546
|
}
|
|
5547
|
-
let { generate: r } = await import("./chunks/generate.runtime-DpV_oOT7.js"), i = await r(e), { writeResult: a } = await import("./chunks/write-result-
|
|
5547
|
+
let { generate: r } = await import("./chunks/generate.runtime-DpV_oOT7.js"), i = await r(e), { writeResult: a } = await import("./chunks/write-result-DvELaUJg.js");
|
|
5548
5548
|
return a(await y(n([t, i])), e);
|
|
5549
5549
|
}
|
|
5550
5550
|
var id = {
|
|
@@ -5726,7 +5726,7 @@ async function xd(e) {
|
|
|
5726
5726
|
let r = await gd(e);
|
|
5727
5727
|
return y(n([t, r]));
|
|
5728
5728
|
}
|
|
5729
|
-
let { createCollections: r } = await import("./chunks/collections-DgZjDXef.js"), i = await r(t.collections, e), { generate: a } = await import("./chunks/generate.runtime-BOLZHcGN.js"), o = await a(e), { writeResult: s } = await import("./chunks/write-result-
|
|
5729
|
+
let { createCollections: r } = await import("./chunks/collections-DgZjDXef.js"), i = await r(t.collections, e), { generate: a } = await import("./chunks/generate.runtime-BOLZHcGN.js"), o = await a(e), { writeResult: s } = await import("./chunks/write-result-DvELaUJg.js");
|
|
5730
5730
|
return s(await y(n([{
|
|
5731
5731
|
...t,
|
|
5732
5732
|
creates: [...t.creates, ...i]
|
|
@@ -6133,7 +6133,7 @@ async function Tf(e) {
|
|
|
6133
6133
|
let r = await bf(e);
|
|
6134
6134
|
return y(n([t, r]));
|
|
6135
6135
|
}
|
|
6136
|
-
let { generate: r } = await import("./chunks/generate.runtime-DrDZe6gu.js"), i = await r(e), { writeResult: a } = await import("./chunks/write-result-
|
|
6136
|
+
let { generate: r } = await import("./chunks/generate.runtime-DrDZe6gu.js"), i = await r(e), { writeResult: a } = await import("./chunks/write-result-DvELaUJg.js");
|
|
6137
6137
|
return a(await y(n([t, i])), e);
|
|
6138
6138
|
}
|
|
6139
6139
|
var Ef = {
|
|
@@ -6202,7 +6202,7 @@ var Of = "destroy-schema", kf = "1.0.0", Af = "src/patterns/destroy/schema", jf
|
|
|
6202
6202
|
async function Mf(e) {
|
|
6203
6203
|
let t = await y(await Df(e));
|
|
6204
6204
|
if (e.env !== "runtime" || e.input.destructive !== !0) return t;
|
|
6205
|
-
let { writeResult: n } = await import("./chunks/write-result-
|
|
6205
|
+
let { writeResult: n } = await import("./chunks/write-result-DvELaUJg.js");
|
|
6206
6206
|
return n(t, e);
|
|
6207
6207
|
}
|
|
6208
6208
|
var Nf = {
|
|
@@ -6257,7 +6257,7 @@ async function Rf(t) {
|
|
|
6257
6257
|
collectionDrops: []
|
|
6258
6258
|
});
|
|
6259
6259
|
if (t.env !== "runtime" || t.input.destructive !== !0) return o;
|
|
6260
|
-
let { writeResult: s } = await import("./chunks/write-result-
|
|
6260
|
+
let { writeResult: s } = await import("./chunks/write-result-DvELaUJg.js");
|
|
6261
6261
|
return s(o, t);
|
|
6262
6262
|
}
|
|
6263
6263
|
var zf = {
|
|
@@ -6315,7 +6315,7 @@ async function Wf(t) {
|
|
|
6315
6315
|
collectionDrops: a
|
|
6316
6316
|
});
|
|
6317
6317
|
if (t.env !== "runtime" || t.input.destructive !== !0) return o;
|
|
6318
|
-
let { writeResult: s } = await import("./chunks/write-result-
|
|
6318
|
+
let { writeResult: s } = await import("./chunks/write-result-DvELaUJg.js");
|
|
6319
6319
|
return s(o, t);
|
|
6320
6320
|
}
|
|
6321
6321
|
var Gf = {
|
|
@@ -6370,7 +6370,7 @@ async function Xf(t) {
|
|
|
6370
6370
|
collectionDrops: o
|
|
6371
6371
|
});
|
|
6372
6372
|
if (t.env !== "runtime" || t.input.destructive !== !0) return s;
|
|
6373
|
-
let { writeResult: c } = await import("./chunks/write-result-
|
|
6373
|
+
let { writeResult: c } = await import("./chunks/write-result-DvELaUJg.js");
|
|
6374
6374
|
return c(s, t);
|
|
6375
6375
|
}
|
|
6376
6376
|
var Zf = {
|
|
@@ -6443,7 +6443,7 @@ async function ap(e) {
|
|
|
6443
6443
|
if (e.env !== "runtime") return y(t);
|
|
6444
6444
|
let { generate: r } = await import("./chunks/generate.runtime-CDSkTWtx.js"), i = await r(e), a = await y(n([t, i]));
|
|
6445
6445
|
if (e.input.destructive !== !0) return a;
|
|
6446
|
-
let { writeResult: o } = await import("./chunks/write-result-
|
|
6446
|
+
let { writeResult: o } = await import("./chunks/write-result-DvELaUJg.js");
|
|
6447
6447
|
return o(a, e);
|
|
6448
6448
|
}
|
|
6449
6449
|
var op = {
|
|
@@ -6525,7 +6525,7 @@ async function mp(e) {
|
|
|
6525
6525
|
if (e.env !== "runtime") return y(t);
|
|
6526
6526
|
let { generate: r } = await import("./chunks/generate.runtime-Cc1SG-nN.js"), i = await r(e), a = await y(n([t, i]));
|
|
6527
6527
|
if (e.input.destructive !== !0) return a;
|
|
6528
|
-
let { writeResult: o } = await import("./chunks/write-result-
|
|
6528
|
+
let { writeResult: o } = await import("./chunks/write-result-DvELaUJg.js");
|
|
6529
6529
|
return o(a, e);
|
|
6530
6530
|
}
|
|
6531
6531
|
var hp = {
|
|
@@ -6701,7 +6701,7 @@ async function Tp(e) {
|
|
|
6701
6701
|
if (e.env !== "runtime") return y(t);
|
|
6702
6702
|
let { generate: r } = await import("./chunks/generate.runtime-WaqVbEPP.js"), i = await r(e), a = await y(n([t, i]));
|
|
6703
6703
|
if (e.input.destructive !== !0) return a;
|
|
6704
|
-
let { writeResult: o } = await import("./chunks/write-result-
|
|
6704
|
+
let { writeResult: o } = await import("./chunks/write-result-DvELaUJg.js");
|
|
6705
6705
|
return o(a, e);
|
|
6706
6706
|
}
|
|
6707
6707
|
var Ep = {
|
|
@@ -6778,7 +6778,7 @@ async function Pp(e) {
|
|
|
6778
6778
|
if (e.env !== "runtime") return y(t);
|
|
6779
6779
|
let { generate: r } = await import("./chunks/generate.runtime-qsPylve5.js"), i = await r(e), a = await y(n([t, i]));
|
|
6780
6780
|
if (e.input.destructive !== !0) return a;
|
|
6781
|
-
let { writeResult: o } = await import("./chunks/write-result-
|
|
6781
|
+
let { writeResult: o } = await import("./chunks/write-result-DvELaUJg.js");
|
|
6782
6782
|
return o(a, e);
|
|
6783
6783
|
}
|
|
6784
6784
|
var Fp = {
|
|
@@ -6850,7 +6850,7 @@ async function Up(e) {
|
|
|
6850
6850
|
if (e.env !== "runtime") return y(t);
|
|
6851
6851
|
let { generate: r } = await import("./chunks/generate.runtime--0bYEUP_.js"), i = await r(e), a = await y(n([t, i]));
|
|
6852
6852
|
if (e.input.destructive !== !0) return a;
|
|
6853
|
-
let { writeResult: o } = await import("./chunks/write-result-
|
|
6853
|
+
let { writeResult: o } = await import("./chunks/write-result-DvELaUJg.js");
|
|
6854
6854
|
return o(a, e);
|
|
6855
6855
|
}
|
|
6856
6856
|
var Wp = {
|
|
@@ -6923,7 +6923,7 @@ async function Qp(e) {
|
|
|
6923
6923
|
if (e.env !== "runtime") return y(t);
|
|
6924
6924
|
let { generate: r } = await import("./chunks/generate.runtime-C52G7ZnV.js"), i = await r(e), a = await y(n([t, i]));
|
|
6925
6925
|
if (e.input.destructive !== !0) return a;
|
|
6926
|
-
let { writeResult: o } = await import("./chunks/write-result-
|
|
6926
|
+
let { writeResult: o } = await import("./chunks/write-result-DvELaUJg.js");
|
|
6927
6927
|
return o(a, e);
|
|
6928
6928
|
}
|
|
6929
6929
|
var $p = {
|
|
@@ -7031,7 +7031,7 @@ async function sm(e) {
|
|
|
7031
7031
|
if (e.env !== "runtime") return y(t);
|
|
7032
7032
|
let { generate: r } = await import("./chunks/generate.runtime-PtDQdWNY.js"), i = await r(e), a = await y(n([t, i]));
|
|
7033
7033
|
if (e.input.destructive !== !0) return a;
|
|
7034
|
-
let { writeResult: o } = await import("./chunks/write-result-
|
|
7034
|
+
let { writeResult: o } = await import("./chunks/write-result-DvELaUJg.js");
|
|
7035
7035
|
return o(a, e);
|
|
7036
7036
|
}
|
|
7037
7037
|
var cm = {
|
|
@@ -7149,7 +7149,7 @@ async function ym(e) {
|
|
|
7149
7149
|
let o = await bm(e), s = {
|
|
7150
7150
|
...a,
|
|
7151
7151
|
creates: [...a.creates, ...o]
|
|
7152
|
-
}, { writeResult: c } = await import("./chunks/write-result-
|
|
7152
|
+
}, { writeResult: c } = await import("./chunks/write-result-DvELaUJg.js");
|
|
7153
7153
|
return c(s, e);
|
|
7154
7154
|
}
|
|
7155
7155
|
async function bm(e) {
|
|
@@ -7243,7 +7243,7 @@ async function km(e) {
|
|
|
7243
7243
|
if (e.env !== "runtime") return y(t);
|
|
7244
7244
|
let { generate: r } = await import("./chunks/generate.runtime-lvraqNgB.js"), i = await r(e), a = await y(n([t, i]));
|
|
7245
7245
|
if (e.input.destructive !== !0) return a;
|
|
7246
|
-
let { writeResult: o } = await import("./chunks/write-result-
|
|
7246
|
+
let { writeResult: o } = await import("./chunks/write-result-DvELaUJg.js");
|
|
7247
7247
|
return o(a, e);
|
|
7248
7248
|
}
|
|
7249
7249
|
var Am = {
|