@stacksjs/stx 0.2.283 → 0.2.285

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.
Files changed (55) hide show
  1. package/dist/{chunk-7etzqabz.js → chunk-0hdkedwq.js} +1 -1
  2. package/dist/{chunk-w4eykv3z.js → chunk-1k957wj9.js} +1 -1
  3. package/dist/{chunk-jt4gqtag.js → chunk-1xfqy79h.js} +1 -1
  4. package/dist/{chunk-cvhyxt55.js → chunk-3y623mek.js} +1 -1
  5. package/dist/{chunk-mx8k7bwh.js → chunk-43r6p08p.js} +1 -1
  6. package/dist/{chunk-s5y267vs.js → chunk-492g6g4g.js} +1 -1
  7. package/dist/{chunk-5v6atbsr.js → chunk-60c5bvke.js} +1 -1
  8. package/dist/{chunk-mrbw9vts.js → chunk-71nr1avx.js} +1 -1
  9. package/dist/{chunk-abydddye.js → chunk-7g88q9ft.js} +2 -2
  10. package/dist/{chunk-r5fp0bse.js → chunk-7gbwa2ph.js} +1 -1
  11. package/dist/{chunk-gzxbnyde.js → chunk-8ns2r0we.js} +1 -1
  12. package/dist/chunk-9aw94jhm.js +15 -0
  13. package/dist/{chunk-qccdz9t1.js → chunk-9rkntp0z.js} +170 -170
  14. package/dist/{chunk-gn9q45yp.js → chunk-9v5s9ax8.js} +1 -1
  15. package/dist/{chunk-e9nmf863.js → chunk-a1g1zsbh.js} +1 -1
  16. package/dist/{chunk-f16kkw9v.js → chunk-ada449cq.js} +1 -1
  17. package/dist/{chunk-se360fvh.js → chunk-bxskmetn.js} +1 -1
  18. package/dist/{chunk-sb7k89hq.js → chunk-cb74rvec.js} +1 -1
  19. package/dist/{chunk-x0zv8dt4.js → chunk-d10btecr.js} +1 -1
  20. package/dist/{chunk-822x6vhb.js → chunk-d34fnbpc.js} +1 -1
  21. package/dist/{chunk-1a8e5xpf.js → chunk-dy2y790t.js} +1 -1
  22. package/dist/{chunk-9236skjs.js → chunk-egez576q.js} +2 -2
  23. package/dist/{chunk-50mpsfpx.js → chunk-f2s94353.js} +1 -1
  24. package/dist/{chunk-zkzmxy32.js → chunk-f6x9bh8n.js} +1 -1
  25. package/dist/{chunk-sw16pkqg.js → chunk-f8b83xbw.js} +1 -1
  26. package/dist/{chunk-0h7ty10c.js → chunk-fk6ssg32.js} +1 -1
  27. package/dist/{chunk-k4qx7jbk.js → chunk-ggrzaenz.js} +1 -1
  28. package/dist/{chunk-fxyrvwqw.js → chunk-gkmtkzdm.js} +1 -1
  29. package/dist/{chunk-crmgatrx.js → chunk-hzw1ekq3.js} +1 -1
  30. package/dist/{chunk-s5ttqj6h.js → chunk-jxjt1szw.js} +1 -1
  31. package/dist/{chunk-pmw28376.js → chunk-kpy77ys3.js} +1 -1
  32. package/dist/{chunk-ef5663vk.js → chunk-m2harpd3.js} +1 -1
  33. package/dist/{chunk-vhsrgtcg.js → chunk-n32gnc22.js} +1 -1
  34. package/dist/{chunk-x11dh3a3.js → chunk-n3qyd366.js} +1 -1
  35. package/dist/{chunk-ffqddern.js → chunk-stw3ej3d.js} +1 -1
  36. package/dist/{chunk-9x4jejq0.js → chunk-t0ghjghe.js} +1 -1
  37. package/dist/{chunk-3828z7q8.js → chunk-v4f08c2r.js} +1 -1
  38. package/dist/{chunk-vckr41zn.js → chunk-xqxg3fck.js} +8 -8
  39. package/dist/{chunk-7n45tcyf.js → chunk-y1segp76.js} +1 -1
  40. package/dist/{chunk-gp3s8020.js → chunk-y3qng57q.js} +1 -1
  41. package/dist/{chunk-1rcn9yfj.js → chunk-yqaky7fa.js} +1 -1
  42. package/dist/{chunk-a95mf15m.js → chunk-z7cwrmgt.js} +1 -1
  43. package/dist/{chunk-5k3qb1am.js → chunk-zcmtqan3.js} +3 -3
  44. package/dist/cli.js +7 -7
  45. package/dist/client-script-bundler.js +28 -20
  46. package/dist/craft-entry.js +1 -1
  47. package/dist/craft.js +1 -1
  48. package/dist/dev-server/ts-css.js +4 -2
  49. package/dist/import-rebase.d.ts +16 -0
  50. package/dist/import-rebase.js +16 -0
  51. package/dist/process.js +5 -2
  52. package/dist/pwa.js +1 -1
  53. package/dist/ssg.js +2 -2
  54. package/package.json +6 -6
  55. package/dist/chunk-4ds1cmgq.js +0 -15
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{Ql as C}from"./chunk-qccdz9t1.js";import{Ws as Y}from"./chunk-52mh63sp.js";import{Ut as D}from"./chunk-c6fw33zh.js";import u from"path";var S=/<script(\s[^>]*)?>([\s\S]*?)<\/script>/gi;function h(K){let J=(Q)=>Q.replace(/[^\n]/g," ");return K.replace(/<!--[\s\S]*?-->/g,J).replace(/\{\{--[\s\S]*?--\}\}/g,J)}function m(K){let J=[],Q=h(K);S.lastIndex=0;let $;while(($=S.exec(Q))!==null){let j=($[1]||"").trim(),F=($[0].match(/^<script(?:\s[^>]*)?>/i)?.[0]??"<script>").length,z=($[0].match(/<\/script\s*>$/i)?.[0]??"</script>").length,W=$.index+F,Z=$.index+$[0].length-z,G=K.slice(W,Z);if(/\bsrc\s*=/.test(j))continue;let q=j.match(/\btype\s*=\s*["']([^"']+)["']/i);if(q&&!/^(?:module|text\/(?:javascript|typescript))$/i.test(q[1]))continue;let X=/\bserver\b/.test(j)?"server":/\bclient\b/.test(j)?"client":"plain",U=B(K,W);J.push({kind:X,code:G,startLine:U,attrs:j})}return J}function B(K,J){let Q=1;for(let $=0;$<J&&$<K.length;$++)if(K.charCodeAt($)===10)Q++;return Q}function N(K,J){let Q=K.lastIndexOf(`
2
+ import{Ql as C}from"./chunk-9rkntp0z.js";import{Ws as Y}from"./chunk-52mh63sp.js";import{Ut as D}from"./chunk-c6fw33zh.js";import u from"path";var S=/<script(\s[^>]*)?>([\s\S]*?)<\/script>/gi;function h(K){let J=(Q)=>Q.replace(/[^\n]/g," ");return K.replace(/<!--[\s\S]*?-->/g,J).replace(/\{\{--[\s\S]*?--\}\}/g,J)}function m(K){let J=[],Q=h(K);S.lastIndex=0;let $;while(($=S.exec(Q))!==null){let j=($[1]||"").trim(),F=($[0].match(/^<script(?:\s[^>]*)?>/i)?.[0]??"<script>").length,z=($[0].match(/<\/script\s*>$/i)?.[0]??"</script>").length,W=$.index+F,Z=$.index+$[0].length-z,G=K.slice(W,Z);if(/\bsrc\s*=/.test(j))continue;let q=j.match(/\btype\s*=\s*["']([^"']+)["']/i);if(q&&!/^(?:module|text\/(?:javascript|typescript))$/i.test(q[1]))continue;let X=/\bserver\b/.test(j)?"server":/\bclient\b/.test(j)?"client":"plain",U=B(K,W);J.push({kind:X,code:G,startLine:U,attrs:j})}return J}function B(K,J){let Q=1;for(let $=0;$<J&&$<K.length;$++)if(K.charCodeAt($)===10)Q++;return Q}function N(K,J){let Q=K.lastIndexOf(`
3
3
  `,J-1)+1;return J-Q+1}function g(K){let J=K.split(""),Q=(j,F)=>{for(let z=j;z<F&&z<J.length;z++)if(J[z]!==`
4
4
  `)J[z]=" "},$=[/<script(?:\s[^>]*)?>[\s\S]*?<\/script>/gi,/<style(?:\s[^>]*)?>[\s\S]*?<\/style>/gi,/<!--[\s\S]*?-->/g,/\{\{--[\s\S]*?--\}\}/g,/@verbatim\b[\s\S]*?@endverbatim\b/g];for(let j of $){j.lastIndex=0;let F;while((F=j.exec(K))!==null)Q(F.index,F.index+F[0].length)}return J.join("")}function p(K){let J=0,Q="";for(let $=0;$<K.length;$++){let j=K[$];if(Q){if(j==="\\"){$++;continue}if(j===Q)Q="";continue}if(j==='"'||j==="'"||j==="`"){Q=j;continue}if(j==="("||j==="["||j==="{"){J++;continue}if(j===")"||j==="]"||j==="}"){J--;continue}if(j==="|"&&J===0){if(K[$+1]==="|"){$++;continue}if(K[$-1]==="|")continue;return K.slice(0,$)}}return K}var R=new Set([":for","x-for","v-for"]),w=/(?:^|\s)((?::|x-|v-|@)[\w.:-]+)\s*=\s*(["'])([\s\S]*?)\2/g,O="__stx_interpolated",y="__StxElement",f="__StxTemplateValue",l=`type ${f}<T> = T extends { readonly _isSignal: true } | { readonly _isDerived: true } ? (T extends () => infer V ? T & V : T) : T`;function L(K){return K.replace(/\{\{[\s\S]*?\}\}/g,O).replace(/\{!![\s\S]*?!!\}/g,O)}function Vj(K){return K.replace(/\{\{[\s\S]*?\}\}|\{!![\s\S]*?!!\}/g,(J)=>{let Q=J.split(`
5
5
  `).length-1,$=J.length-Q;return`0${" ".repeat(Math.max(0,$-1))}${`
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{Ef as a}from"./chunk-cvhyxt55.js";import"./chunk-qccdz9t1.js";import"./chunk-q68xmak4.js";import"./chunk-c0an64km.js";import"./chunk-t1k5dpbr.js";import"./chunk-52mh63sp.js";import"./chunk-5k3qb1am.js";import"./chunk-39f40yc4.js";import"./chunk-ysnk7x79.js";import"./chunk-0f1kz0x2.js";import"./chunk-ayrjwkyw.js";import"./chunk-c6fw33zh.js";import"./chunk-bf8wf3r2.js";import"./chunk-jn6m8zf7.js";import"./chunk-sskbegsz.js";export{a as buildApp};
2
+ import{Ef as a}from"./chunk-3y623mek.js";import"./chunk-9rkntp0z.js";import"./chunk-q68xmak4.js";import"./chunk-c0an64km.js";import"./chunk-t1k5dpbr.js";import"./chunk-52mh63sp.js";import"./chunk-zcmtqan3.js";import"./chunk-39f40yc4.js";import"./chunk-ysnk7x79.js";import"./chunk-0f1kz0x2.js";import"./chunk-ayrjwkyw.js";import"./chunk-c6fw33zh.js";import"./chunk-bf8wf3r2.js";import"./chunk-jn6m8zf7.js";import"./chunk-sskbegsz.js";export{a as buildApp};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{$i as w,_i as O,aj as Z}from"./chunk-9n0gvfrg.js";import{$k as R,gl as U,il as T}from"./chunk-4ds1cmgq.js";import{Np as k,Ol as E,Pl as L,Rl as M,cr as C,no as W}from"./chunk-qccdz9t1.js";import{Ut as B}from"./chunk-c6fw33zh.js";import $ from"path";var Y=new Map;function b(Q,z){for(let J of Q.matchAll(/\b(?:const|let|var|function|class)\s+([A-Z_a-z$][\w$]*)/g))if(J[1])z.add(J[1]);for(let J of Q.matchAll(/\b(?:const|let|var)\s*\{([^{}]*)\}\s*=/g))for(let H of(J[1]??"").split(",")){let K=((H.includes(":")?H.split(":").pop():H)??"").replace(/=.*$/s,"").replace(/^\s*\.\.\./,"").trim();if(/^[A-Z_a-z$][\w$]*$/.test(K))z.add(K)}for(let J of Q.matchAll(/\b(?:const|let|var)\s*\[([^\]]*)\]\s*=/g))for(let H of(J[1]??"").split(",")){let V=H.replace(/=.*$/s,"").replace(/^\s*\.\.\./,"").trim();if(/^[A-Z_a-z$][\w$]*$/.test(V))z.add(V)}}async function l(Q){let z;if(Q)z=$.resolve(Q);else{let q=await C();z=$.resolve(q.root||process.cwd(),q.storesDir||"stores")}let J=new Bun.Glob("*.ts"),H=[];try{for await(let q of J.scan({cwd:z,absolute:!0})){let y=$.basename(q,".ts");if(["index","types"].includes(y))continue;if(q.includes(".d.ts"))continue;H.push(q)}}catch{return Z(Y,z,"",""),null}let V=()=>[...new Set([...H,...H.flatMap((q)=>R(q))])],K=O(V()),P=w(Y,z,K);if(P!==void 0)return P||null;if(H.length===0)return Z(Y,z,K,""),null;let A=[];for(let q of H){let y=await Bun.file(q).text();A.push({file:q,hasUseStore:/useStore\s*\(/.test(y)})}A.sort((q,y)=>{if(q.hasUseStore===y.hasUseStore)return 0;return q.hasUseStore?1:-1});let N=A.map((q)=>q.file),G=[],X=new Set,F=k({loader:"ts",target:"browser",define:M()});for(let q of N)try{let y=await Bun.file(q).text(),I=$.basename(q,".ts");if(b(y,X),U(y))y=await T(y,q,{projectRoot:process.cwd()});y=W(y),y=E(y),y=L(y),y=y.replace(/^export\s+(default\s+)?/gm,""),y=F.transformSync(y),G.push(`// Store: ${I}
2
+ import{$i as w,_i as O,aj as Z}from"./chunk-9n0gvfrg.js";import{$k as R,gl as U,il as T}from"./chunk-9aw94jhm.js";import{Np as k,Ol as E,Pl as L,Rl as M,cr as C,no as W}from"./chunk-9rkntp0z.js";import{Ut as B}from"./chunk-c6fw33zh.js";import $ from"path";var Y=new Map;function b(Q,z){for(let J of Q.matchAll(/\b(?:const|let|var|function|class)\s+([A-Z_a-z$][\w$]*)/g))if(J[1])z.add(J[1]);for(let J of Q.matchAll(/\b(?:const|let|var)\s*\{([^{}]*)\}\s*=/g))for(let H of(J[1]??"").split(",")){let K=((H.includes(":")?H.split(":").pop():H)??"").replace(/=.*$/s,"").replace(/^\s*\.\.\./,"").trim();if(/^[A-Z_a-z$][\w$]*$/.test(K))z.add(K)}for(let J of Q.matchAll(/\b(?:const|let|var)\s*\[([^\]]*)\]\s*=/g))for(let H of(J[1]??"").split(",")){let V=H.replace(/=.*$/s,"").replace(/^\s*\.\.\./,"").trim();if(/^[A-Z_a-z$][\w$]*$/.test(V))z.add(V)}}async function l(Q){let z;if(Q)z=$.resolve(Q);else{let q=await C();z=$.resolve(q.root||process.cwd(),q.storesDir||"stores")}let J=new Bun.Glob("*.ts"),H=[];try{for await(let q of J.scan({cwd:z,absolute:!0})){let y=$.basename(q,".ts");if(["index","types"].includes(y))continue;if(q.includes(".d.ts"))continue;H.push(q)}}catch{return Z(Y,z,"",""),null}let V=()=>[...new Set([...H,...H.flatMap((q)=>R(q))])],K=O(V()),P=w(Y,z,K);if(P!==void 0)return P||null;if(H.length===0)return Z(Y,z,K,""),null;let A=[];for(let q of H){let y=await Bun.file(q).text();A.push({file:q,hasUseStore:/useStore\s*\(/.test(y)})}A.sort((q,y)=>{if(q.hasUseStore===y.hasUseStore)return 0;return q.hasUseStore?1:-1});let N=A.map((q)=>q.file),G=[],X=new Set,F=k({loader:"ts",target:"browser",define:M()});for(let q of N)try{let y=await Bun.file(q).text(),I=$.basename(q,".ts");if(b(y,X),U(y))y=await T(y,q,{projectRoot:process.cwd()});y=W(y),y=E(y),y=L(y),y=y.replace(/^export\s+(default\s+)?/gm,""),y=F.transformSync(y),G.push(`// Store: ${I}
3
3
  ${y.trim()}`)}catch(y){console.warn(`[stx] Failed to load store ${q}:`,y)}if(G.length===0)return Z(Y,z,K,""),null;let j=G.join(`
4
4
 
5
5
  `),x=`;(function(){
@@ -1,3 +1,3 @@
1
1
  // @bun
2
- import{cr as E}from"./chunk-qccdz9t1.js";import{dv as D}from"./chunk-sskbegsz.js";import I from"path";async function M(k={}){let G=performance.now(),J=k.root||process.cwd(),j=await E(),q=j.ssr?"ssr":"ssg";console.log(`[stx build] Mode: ${q.toUpperCase()}${j.ssr?" (ssr: true in stx.config.ts)":" (default \u2014 ssr is false)"}`);let A,B;if(q==="ssg"){let{generateStaticSite:z}=await import("./ssg.js");A=await z({pagesDir:I.join(j.root||".",j.pagesDir||j.build?.pagesDir||"pages"),publicDir:j.publicDir||j.build?.publicDir||"public",outputDir:j.build?.outputDir||"dist",generate404:j.build?.generate404??!0,minify:j.build?.minify??!0,cleanOutput:j.build?.cleanOutput??!0,router:j.router,...k.ssg})}else{let{buildForProduction:z}=await import("./chunk-s5ttqj6h.js");B=await z({outputDir:".output",debug:k.debug,...k.ssr})}let H=Math.round(performance.now()-G);return{mode:q,ssg:A,ssr:B,duration:H}}
2
+ import{cr as E}from"./chunk-9rkntp0z.js";import{dv as D}from"./chunk-sskbegsz.js";import I from"path";async function M(k={}){let G=performance.now(),J=k.root||process.cwd(),j=await E(),q=j.ssr?"ssr":"ssg";console.log(`[stx build] Mode: ${q.toUpperCase()}${j.ssr?" (ssr: true in stx.config.ts)":" (default \u2014 ssr is false)"}`);let A,B;if(q==="ssg"){let{generateStaticSite:z}=await import("./ssg.js");A=await z({pagesDir:I.join(j.root||".",j.pagesDir||j.build?.pagesDir||"pages"),publicDir:j.publicDir||j.build?.publicDir||"public",outputDir:j.build?.outputDir||"dist",generate404:j.build?.generate404??!0,minify:j.build?.minify??!0,cleanOutput:j.build?.cleanOutput??!0,router:j.router,...k.ssg})}else{let{buildForProduction:z}=await import("./chunk-jxjt1szw.js");B=await z({outputDir:".output",debug:k.debug,...k.ssr})}let H=Math.round(performance.now()-G);return{mode:q,ssg:A,ssr:B,duration:H}}
3
3
  export{M as Ef};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{$k as a,al as b,bl as c,cl as d,dl as e,el as f,fl as g,gl as h,hl as i,il as j}from"./chunk-4ds1cmgq.js";import"./chunk-qccdz9t1.js";import"./chunk-q68xmak4.js";import"./chunk-c0an64km.js";import"./chunk-t1k5dpbr.js";import"./chunk-52mh63sp.js";import"./chunk-5k3qb1am.js";import"./chunk-39f40yc4.js";import"./chunk-ysnk7x79.js";import"./chunk-0f1kz0x2.js";import"./chunk-ayrjwkyw.js";import"./chunk-c6fw33zh.js";import"./chunk-bf8wf3r2.js";import"./chunk-jn6m8zf7.js";import"./chunk-sskbegsz.js";export{b as shouldLogBundlerDiagnostics,f as setBundlerFallbackMode,g as resolveBundlerFallback,c as recordBundleFailure,i as queueClientBundleBuild,h as hasUserImports,d as getBundleFailures,a as clientBundleDependencies,e as clearBundleFailures,j as bundleClientScript};
2
+ import{$k as a,al as b,bl as c,cl as d,dl as e,el as f,fl as g,gl as h,hl as i,il as j}from"./chunk-9aw94jhm.js";import"./chunk-9rkntp0z.js";import"./chunk-q68xmak4.js";import"./chunk-c0an64km.js";import"./chunk-t1k5dpbr.js";import"./chunk-52mh63sp.js";import"./chunk-zcmtqan3.js";import"./chunk-39f40yc4.js";import"./chunk-ysnk7x79.js";import"./chunk-0f1kz0x2.js";import"./chunk-ayrjwkyw.js";import"./chunk-c6fw33zh.js";import"./chunk-bf8wf3r2.js";import"./chunk-jn6m8zf7.js";import"./chunk-sskbegsz.js";export{b as shouldLogBundlerDiagnostics,f as setBundlerFallbackMode,g as resolveBundlerFallback,c as recordBundleFailure,i as queueClientBundleBuild,h as hasUserImports,d as getBundleFailures,a as clientBundleDependencies,e as clearBundleFailures,j as bundleClientScript};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{Xi as a,Yi as b,Zi as c}from"./chunk-sb7k89hq.js";import"./chunk-9n0gvfrg.js";import"./chunk-qccdz9t1.js";import"./chunk-q68xmak4.js";import"./chunk-c0an64km.js";import"./chunk-t1k5dpbr.js";import"./chunk-52mh63sp.js";import"./chunk-5k3qb1am.js";import"./chunk-39f40yc4.js";import"./chunk-ysnk7x79.js";import"./chunk-0f1kz0x2.js";import"./chunk-ayrjwkyw.js";import"./chunk-c6fw33zh.js";import"./chunk-bf8wf3r2.js";import"./chunk-jn6m8zf7.js";import"./chunk-sskbegsz.js";export{a as listComposableModules,b as getComposableScript,c as clearComposableCache};
2
+ import{Xi as a,Yi as b,Zi as c}from"./chunk-cb74rvec.js";import"./chunk-9n0gvfrg.js";import"./chunk-9rkntp0z.js";import"./chunk-q68xmak4.js";import"./chunk-c0an64km.js";import"./chunk-t1k5dpbr.js";import"./chunk-52mh63sp.js";import"./chunk-zcmtqan3.js";import"./chunk-39f40yc4.js";import"./chunk-ysnk7x79.js";import"./chunk-0f1kz0x2.js";import"./chunk-ayrjwkyw.js";import"./chunk-c6fw33zh.js";import"./chunk-bf8wf3r2.js";import"./chunk-jn6m8zf7.js";import"./chunk-sskbegsz.js";export{a as listComposableModules,b as getComposableScript,c as clearComposableCache};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{$ as tl,$a as nn,$b as Fo,$c as Fp,$d as Fq,A as dk,Aa as xm,Ab as Zn,Ac as ep,Ad as eq,Ae as kr,B as ek,Ba as ym,Bb as _n,Bc as fp,Bd as fq,Be as lr,C as fk,Ca as Lm,Cb as $n,Cc as gp,Cd as gq,Ce as mr,D as gk,Da as Mm,Db as ao,Dc as hp,Dd as hq,De as nr,E as Yk,Ea as Nm,Eb as bo,Ec as ip,Ed as iq,Ee as or,F as Zk,Fa as Om,Fb as co,Fc as jp,Fd as jq,Fe as pr,G as _k,Ga as Pm,Gb as eo,Gc as kp,Gd as kq,Ge as qr,H as $k,Ha as Qm,Hb as fo,Hc as lp,Hd as lq,He as rr,I as al,Ia as Um,Ib as go,Ic as mp,Id as mq,Ie as sr,J as bl,Ja as Vm,Jb as ho,Jc as np,Jd as nq,Je as tr,K as cl,Ka as Wm,Kb as io,Kc as op,Kd as oq,Ke as ur,L as dl,La as Xm,Lb as jo,Lc as pp,Ld as pq,Le as vr,M as el,Ma as Ym,Mb as qo,Mc as qp,Md as qq,Me as wr,N as fl,Na as Zm,Nb as ro,Nc as rp,Nd as rq,Ne as xr,O as gl,Oa as _m,Ob as so,Oc as sp,Od as sq,Oe as yr,P as hl,Pa as $m,Pb as to,Pc as tp,Pd as tq,Pe as zr,Q as il,Qa as an,Qb as uo,Qc as up,Qd as uq,Qe as Ar,R as jl,Ra as bn,Rb as vo,Rc as vp,Rd as vq,Re as Br,S as kl,Sa as cn,Sb as wo,Sc as wp,Sd as wq,Se as Cr,T as ll,Ta as dn,Tb as xo,Tc as xp,Td as xq,Te as Dr,U as ml,Ua as en,Ub as yo,Uc as yp,Ud as yq,Ue as Er,V as nl,Va as fn,Vb as zo,Vc as zp,Vd as zq,Ve as Fr,W as ol,Wa as hn,Wb as Ao,Wc as Ap,Wd as Aq,We as Gr,X as pl,Xa as jn,Xb as Bo,Xc as Bp,Xd as Bq,Y as ql,Ya as kn,Yb as Co,Yc as Cp,Yd as Cq,Z as rl,Za as ln,Zb as Do,Zc as Dp,Zd as Dq,_ as sl,_a as mn,_b as Eo,_c as Ep,_d as Eq,aa as ul,ab as on,ac as Go,ad as Gp,ae as Gq,ba as vl,bb as pn,bc as Ho,bd as Hp,be as Hq,ca as wl,cb as qn,cc as Io,cd as Ip,ce as Iq,da as xl,db as rn,dc as Jo,dd as Jp,de as Jq,ea as yl,eb as sn,ec as Ko,ed as Kp,ee as Kq,fa as zl,fb as tn,fc as Lo,fd as Lp,fe as Lq,ga as Al,gb as un,gc as Mo,gd as Mp,ge as Mq,ha as Bl,hb as vn,hc as No,hd as Np,he as Nq,ia as Cl,ib as wn,ic as Oo,id as Op,ie as Oq,ja as Dl,jb as xn,jc as Po,jd as Pp,je as Pq,ka as El,kb as yn,kc as Qo,kd as Qp,ke as Qq,la as Fl,lb as zn,lc as Ro,ld as Rp,le as Rq,ma as Gl,mb as An,mc as So,md as Sp,me as Sq,na as Hl,nb as Dn,nc as To,nd as Tp,ne as Zq,o as a,oa as Il,ob as En,oc as Uo,od as Up,oe as _q,p as Qj,pa as mm,pb as Fn,pc as Vo,pd as Vp,pe as $q,q as Rj,qa as nm,qb as Gn,qc as Wo,qd as Wp,qe as ar,r as Sj,ra as om,rb as Mn,rc as Xo,rd as Xp,re as br,s as Tj,sa as pm,sb as Nn,sc as Yo,sd as Yp,se as cr,t as Uj,ta as qm,tb as On,tc as Zo,td as Zp,te as dr,u as Vj,ua as rm,ub as Pn,uc as _o,ud as _p,ue as er,v as Wj,va as sm,vb as Un,vc as $o,vd as $p,ve as fr,w as Xj,wa as tm,wb as Vn,wc as ap,wd as aq,we as gr,x as Yj,xa as um,xb as Wn,xc as bp,xd as bq,xe as hr,y as bk,ya as vm,yb as Xn,yc as cp,yd as cq,ye as ir,z as ck,za as wm,zb as Yn,zc as dp,zd as dq,ze as jr}from"./chunk-vckr41zn.js";import{$e as Qk,Xe as Mk,Ye as Nk,Ze as Ok,_e as Pk,af as Rk,bf as Sk,cf as Tk,df as Uk,ef as Vk,ff as Wk,gf as Xk}from"./chunk-0fgcnv6y.js";import{hf as ko,if as lo,jf as mo,kf as no,lf as oo,mf as po}from"./chunk-se360fvh.js";import{nf as Bn,of as Cn}from"./chunk-n3ggrhb3.js";import{pf as Hn}from"./chunk-k4qx7jbk.js";import{Af as Jm,Bf as Km,qf as zm,rf as Am,sf as Bm,tf as Cm,uf as Dm,vf as Em,wf as Fm,xf as Gm,yf as Hm,zf as Im}from"./chunk-vqxmxgaj.js";import{Cf as Kk,Df as Lk}from"./chunk-5aq35j2e.js";import{Ef as lm}from"./chunk-cvhyxt55.js";import{Ff as Rm,Gf as Sm,Hf as Tm,If as gn,Jf as In,Kf as Jn,Lf as Kn,Mf as Ln,Nf as Qn,Of as Rn,Pf as Sn,Qf as Tn}from"./chunk-9x4jejq0.js";import{$f as rk,Rf as hk,Sf as ik,Tf as jk,Uf as kk,Vf as lk,Wf as mk,Xf as nk,Yf as ok,Zf as pk,_f as qk,ag as sk,bg as tk,cg as uk,dg as vk}from"./chunk-nx5qkm8k.js";import{eg as dj,fg as ej,gg as fj,hg as gj,ig as hj,jg as ij,kg as jj,lg as kj,mg as lj,ng as mj,og as nj}from"./chunk-e4hhz9j3.js";import{pg as Fj,rg as Gj}from"./chunk-bz820epz.js";import{Ag as zk,Bg as Ak,Cg as Bk,Dg as Ck,Fg as Dk,Gg as Ek,Hg as Fk,Ig as Gk,Jg as Hk,Kg as Ik,Ng as Jk,xg as wk,yg as xk,zg as yk}from"./chunk-9zndrzb3.js";import{Og as am,Pg as bm,Qg as cm,Rg as dm,Sg as gm,Tg as km}from"./chunk-gn9q45yp.js";import{Ug as em,Xg as fm}from"./chunk-7etzqabz.js";import{dh as Jl,eh as Kl,fh as Ll,gh as Ml,hh as Nl,ih as Ol,jh as Pl,kh as Ql,lh as Rl,mh as Sl,nh as Tl,oh as Ul,ph as Vl,qh as Wl,rh as Xl,sh as hm,th as im,uh as jm}from"./chunk-pmw28376.js";import{vh as ph,wh as qh,xh as rh,yh as sh}from"./chunk-49kk0s96.js";import{Dh as th}from"./chunk-w3ycm4na.js";import{Eh as Ah,Fh as Bh,Gh as Ch,Hh as Dh,Ih as Eh,Jh as Fh}from"./chunk-50mpsfpx.js";import{Kh as Ui,Lh as Vi,Mh as Wi,Qh as Xi,Rh as Yi,Sh as Zi}from"./chunk-mb518a4n.js";import{$h as Ri,Th as Ki,Uh as Li,Vh as Mi,Wh as Ni,Xh as Oi,Zh as Pi,_h as Qi,ai as Si,bi as Ti}from"./chunk-74cv4ta1.js";import{ci as Ag,di as Bg,ei as Cg,fi as Dg,gi as Eg,hi as Fg}from"./chunk-wcm80anz.js";import{ii as Gg,ji as Hg,ki as Ig,li as Jg,mi as Kg}from"./chunk-y7m2dpd3.js";import{ni as Lg,oi as Mg,pi as Ng,qi as Og,ri as Pg}from"./chunk-9y0g8kzt.js";import{si as Qg,ti as Rg,ui as Sg,vi as Tg,wi as Ug,xi as Vg,yi as Wg}from"./chunk-t6nseeb9.js";import{Ai as Yg,Bi as Zg,Ci as _g,Di as $g,Ei as ah,zi as Xg}from"./chunk-xttsqmkm.js";import{Gi as bh,Hi as ch,Ii as dh,Ji as eh,Ki as fh,Li as gh,Mi as hh,Ni as ih,Oi as jh,Pi as kh,Qi as lh,Ri as mh,Si as nh,Ti as oh}from"./chunk-54st8g2j.js";import{Vi as ug,Wi as vg}from"./chunk-jt4gqtag.js";import{Zi as wg}from"./chunk-sb7k89hq.js";import"./chunk-9n0gvfrg.js";import{bj as xg}from"./chunk-7q9mwh4v.js";import{cj as yg,dj as zg}from"./chunk-refwkt87.js";import{ej as ie,fj as je,gj as ke,hj as le,ij as me,jj as ne,kj as oe,lj as pe,mj as qe,nj as re,oj as se,pj as te,qj as ue,rj as ve}from"./chunk-f16kkw9v.js";import{sj as We,tj as Xe}from"./chunk-g3fy0tw8.js";import{Aj as Ie,Bj as Je,Cj as Ke,Dj as Le,Ej as Me,Fj as Ne,Gj as Oe,Hj as Pe,Ij as Qe,Jj as Re,Kj as Se,Lj as Te,Mj as Ue,Nj as Ve}from"./chunk-w95sp0k9.js";import{Oj as Ye,Pj as Ze,Qj as _e,Rj as $e,Sj as af,Tj as bf,Uj as cf,Vj as df,Wj as ef,Xj as ff,Yj as gf}from"./chunk-1a8e5xpf.js";import{qk as Tq,rk as Uq,sk as Vq,tk as Wq,uk as Xq,vk as Yq}from"./chunk-9236skjs.js";import{Ak as Yl,Bk as Zl,Ck as _l,Dk as $l,wk as Zj,xk as _j,yk as $j,zk as ak}from"./chunk-zn5jgmqw.js";import"./chunk-58f0mthg.js";import"./chunk-4ds1cmgq.js";import{$l as ac,$m as dd,$n as He,$o as Qf,$p as Wh,$q as Ej,Al as Oa,Am as Fc,An as Ed,Ao as pf,Ap as pg,Aq as Ei,Bl as ib,Bm as Gc,Bn as Fd,Bo as qf,Bp as qg,Bq as Fi,Cl as jb,Cm as Hc,Cn as Wd,Co as rf,Cp as rg,Cq as Gi,Dl as kb,Dm as Ic,Dn as Xd,Do as sf,Dp as sg,Dq as Hi,El as lb,Em as Jc,En as Yd,Eo as tf,Ep as tg,Eq as Ii,Fl as mb,Fn as Zd,Fo as uf,Fp as uh,Fq as Ji,Gl as nb,Gm as Kc,Gn as _d,Go as vf,Gp as vh,Gq as _i,Hm as Lc,Hn as $d,Ho as wf,Hp as wh,Hq as $i,Im as Mc,In as ae,Io as xf,Ip as xh,Iq as aj,Jl as Eb,Jm as Nc,Jn as be,Jo as yf,Jp as yh,Jq as bj,Kl as Fb,Km as Oc,Kn as ce,Ko as zf,Kp as zh,Kq as cj,Ll as Gb,Lm as Pc,Ln as de,Lo as Af,Lp as Gh,Lq as oj,Ml as Hb,Mm as Qc,Mn as ee,Mo as Bf,Mp as Hh,Mq as pj,Nl as Ib,Nm as Rc,Nn as fe,No as Cf,Np as Ih,Nq as qj,Om as Sc,On as ge,Oo as Df,Op as Jh,Oq as rj,Pm as Tc,Pn as he,Po as Ef,Pp as Kh,Pq as sj,Ql as Lb,Qm as Uc,Qo as Ff,Qp as Lh,Qq as tj,Rl as Mb,Rm as Vc,Rn as ze,Ro as Gf,Rp as Mh,Rq as uj,Sl as Nb,Sm as Wc,Sn as Ae,So as Hf,Sp as Nh,Sq as vj,Tl as Ub,Tm as Xc,Tn as Be,To as If,Tp as Oh,Tq as wj,Ul as Vb,Um as Yc,Un as Ce,Uo as Jf,Up as Ph,Uq as xj,Vl as Wb,Vm as Zc,Vn as De,Vo as Kf,Vp as Qh,Vq as yj,Wl as Xb,Wm as _c,Wn as Ee,Wo as Lf,Wp as Rh,Wq as zj,Xl as Yb,Xm as $c,Xn as Fe,Xo as Mf,Xp as Sh,Xq as Aj,Yl as Zb,Ym as ad,Yo as Nf,Yp as Th,Yq as Bj,Zl as _b,Zm as bd,Zo as Of,Zp as Uh,Zq as Cj,_l as $b,_m as cd,_n as Ge,_o as Pf,_p as Vh,_q as Dj,am as bc,an as ed,ap as Rf,aq as ei,ar as Hj,bm as cc,bn as fd,bo as hf,bp as Sf,bq as fi,br as Ij,cm as dc,cn as gd,cp as Tf,cq as gi,cr as Jj,dm as ec,dn as hd,dp as Uf,dq as hi,dr as Kj,em as fc,en as id,ep as Vf,eq as ii,er as Lj,fm as gc,fn as jd,fp as Wf,fq as ji,fr as Mj,gm as hc,gn as kd,gp as Xf,gq as ki,gr as Nj,hn as ld,hp as Yf,hq as li,hr as Oj,in as md,ip as Zf,iq as mi,ir as Pj,jl as xa,jm as ic,jn as nd,jp as _f,jq as ni,kl as ya,km as jc,kn as od,kp as $f,kq as oi,ll as za,lm as kc,ln as pd,lp as ag,lq as pi,ml as Aa,mm as lc,mn as qd,mp as bg,mq as qi,nl as Ba,nm as mc,nn as rd,np as cg,nq as ri,ol as Ca,om as nc,on as sd,op as dg,oq as si,pl as Da,pm as oc,pn as td,pp as eg,pq as ti,ql as Ea,qm as pc,qn as ud,qp as fg,qq as ui,rl as Fa,rm as qc,rn as vd,rp as gg,rq as vi,sl as Ga,sm as rc,sn as wd,so as jf,sp as hg,sq as wi,tl as Ha,tm as sc,tn as xd,tp as ig,tq as xi,ul as Ia,um as tc,un as yd,uo as kf,up as jg,uq as yi,vl as Ja,vm as uc,vn as zd,vp as kg,vq as zi,wl as Ka,wm as vc,wn as Ad,wo as lf,wp as lg,wq as Ai,xl as La,xm as wc,xn as Bd,xo as mf,xp as mg,xq as Bi,yl as Ma,ym as Dc,yn as Cd,yo as nf,yp as ng,yq as Ci,zl as Na,zm as Ec,zn as Dd,zo as of,zp as og,zq as Di}from"./chunk-qccdz9t1.js";import{$r as M,Ar as s,As as na,Br as t,Bs as oa,Cr as u,Cs as pa,Dr as v,Ds as qa,Er as w,Es as ra,Fr as x,Fs as sa,Gr as y,Gs as ta,Hr as z,Hs as ua,Ir as A,Is as va,Jr as B,Js as wa,Kr as C,Lr as D,Mr as E,Nr as F,Or as G,Pr as H,Qr as I,Rr as J,Sr as K,Tr as L,as as N,bs as O,cs as P,ds as Q,es as R,fs as S,gs as T,hs as U,is as V,jr as b,js as W,kr as c,ks as X,lr as d,ls as Y,mr as e,ms as Z,nr as f,ns as _,or as g,os as $,pr as h,ps as aa,qr as i,qs as ba,rr as j,rs as ca,sr as k,ss as da,tr as l,ts as ea,ur as m,us as fa,vr as n,vs as ia,wr as o,ws as ja,xr as p,xs as ka,yr as q,ys as la,zr as r,zs as ma}from"./chunk-q68xmak4.js";import{Ks as Xh,Ls as Yh,Ms as Zh,Ns as _h,Os as $h,Ps as ai,Qs as bi,Rs as ci,Ss as di}from"./chunk-c0an64km.js";import{Ts as ga,Us as ha}from"./chunk-t1k5dpbr.js";import{Vs as Jb,Ws as Kb}from"./chunk-52mh63sp.js";import{dt as xc,et as yc,gt as zc,pt as Ac,qt as Bc,rt as Cc}from"./chunk-5k3qb1am.js";import{st as Ob,tt as Pb,ut as Qb,vt as Rb,wt as Sb,xt as Tb}from"./chunk-39f40yc4.js";import{At as ye,yt as we,zt as xe}from"./chunk-ysnk7x79.js";import{Bt as Gd,Ct as Hd,Dt as Id,Et as Jd,Ft as Kd,Gt as Ld,Ht as Md,It as Nd,Jt as Od,Kt as Pd,Lt as Qd,Mt as Rd,Nt as Sd,Ot as Td,Pt as Ud,Qt as Vd}from"./chunk-0f1kz0x2.js";import"./chunk-ayrjwkyw.js";import{$t as vb,Ut as ob,Vt as pb,Wt as qb,Xt as rb,Yt as sb,Zt as tb,_t as ub,au as wb,bu as xb,cu as yb,du as zb,eu as Ab,fu as Bb,gu as Cb,hu as Db}from"./chunk-c6fw33zh.js";import{Bu as Ua,Cu as Va,Du as Wa,Eu as Xa,Fu as Ya,Gu as Za,Hu as _a,Iu as $a,Ju as ab,Ku as bb,Lu as cb,Mu as db,Nu as eb,Ou as fb,Pu as gb,Ru as hb,lu as Pa,mu as Qa,pu as Ra,uu as Sa,vu as Ta}from"./chunk-bf8wf3r2.js";import"./chunk-jn6m8zf7.js";import"./chunk-sskbegsz.js";export{rk as writeNetlifyConfig,im as writeManifest,Wk as writeImageManifest,zo as wrapComponentForHMR,tr as withDefaults,Ej as webComponentDirectiveHandler,op as watermark,qq as watchViews,el as watchMultiple,fl as watchEffect,dl as watch,De as warmImagePlaceholders,sl as waitForStore,X as waitForLocale,lo as virtualPathFor,rj as videoDirective,G as validators,xr as validated,fe as validateValueEnhanced,vh as validateTemplate,tp as validateParams,ge as validateFormEnhanced,fq as validateFile,be as validateFields,ae as validateField,xh as validateDirective,Ad as validateCspDirectives,Mj as validateConfig,nm as validateComponentScripts,Lm as validateComponentProps,tg as validateClientScript,sh as v,pc as usesSignalsInScript,ub as usesReactiveRuntime,Kh as userComponentFileExists,_g as useVirtualList,Od as useTitle,rl as useStoreOrThrow,Ro as useStore,bk as useStorage,Bq as useSlots,dk as useSessionStorage,Ld as useSeoMeta,tl as useRouteParams,vl as useRouteParamOrThrow,ul as useRouteParam,Od as usePageTitle,Ve as useOptimistic,xl as useMiddlewareValue,wl as useMiddlewareState,ck as useLocalStorage,so as useLoadingIndicator,Jd as useHead,ph as useForm,Dq as useAttrs,hq as uploadFiles,gq as uploadFile,ol as updateInstance,Te as untrack,_h as unregisterDirective,pl as unmountInstance,wc as unescapeHtml,oo as typecheckStxFiles,Jh as transpileTypeScript,gr as translate,Ba as transitionDirective,Yb as transformAutoImports,Fm as toUsers,Em as toUser,Zo as thumbnail,_p as thumbHashToRGBA,$p as thumbHashToDataURL,wb as templateNeedsRuntime,vb as templateHasReactiveContext,Ye as templateCache,Sc as syncRecordedResponse,wo as stxClientHelpers,Df as structuredDataDirective,jr as stripLocalePrefix,Vl as stripDocumentWrapper,Kb as stripCommentsAndLiterals,rn as stringToStream,od as strictCspPreset,qe as streamingSuspenseDirective,ue as streamToResponse,oe as streamTemplateSimple,ie as streamTemplate,Yj as stopHmrServer,Bm as stopBroadcasting,Rb as stateDirName,Sb as stateDir,Ie as state,ng as startsDocument,Tn as startProductionServer,Hn as startInteractive,Am as startBroadcasting,lr as stampLocaleLayoutGroup,Ia as staggerDirective,rp as srcsetUrls,Ja as springDirective,Zc as splitByPipe,Rl as spaNavVaryHeaders,mo as sourcePathFor,yp as smartBatchSign,Mh as slotContentHasExpressions,wp as signUrl,Hh as shouldTranspileTypeScript,Vj as shouldReloadOnChange,Bp as shouldRefreshSignature,Wj as shouldIgnoreFile,Sg as shouldCacheComponent,bp as sharpen,Ar as shape,Qb as setStateDir,Bl as setRouteParams,Cl as setMiddlewareState,Ce as setImagePlaceholder,vq as setGlobalProvide,b as setErrorLocale,Yk as setCurrentInstance,fj as setCachedVideoResult,Wi as setCachedImageResult,Qi as setCached,Dr as serveStxFile,Fr as serveMultipleStxFiles,Qj as serveMarkdownFile,bo as serveFile,Gr as serveApp,ao as serve,Co as serializeState,gn as serializeSetCookie,dp as sepia,Md as seoMetaToHeadConfig,Ca as scrollAnimateDirective,va as screenReaderDirective,vj as scopeHTML,uj as scopeCSS,Gf as scanForSitemapEntries,pa as scanA11yTargets,qa as scanA11yIssues,hp as saturation,up as sanitizeParams,I as sanitizeFilePath,J as sanitizeExpression,K as sanitizeDirectiveParams,H as sanitizeDirectiveParam,L as sanitizeComponentProps,B as safeExecuteAsync,A as safeExecute,Cb as runtimeHandledXAttrsLiteral,wf as runPreProcessingMiddleware,xf as runPostProcessingMiddleware,Kn as runPageAction,Oe as runMountCallbacks,gb as runMiddleware,ml as runHooks,$q as runDoctor,Pe as runDestroyCallbacks,Lf as runComposers,ip as rotate,th as rewriteImagesWithSiblings,Tc as responseBindings,Qh as resolveTemplatePath,ha as resolveStxTargets,Ij as resolveStxDirectories,fr as resolveI18n,Xo as resize,cc as resetPlaceholders,Id as resetHead,Bo as resetHMRHandler,o as resetErrorConfig,vr as required,gc as replacePlaceholders,oq as renderView,oj as renderVideoComponent,Vb as renderVendorStyleTags,Kq as renderToString,Lq as renderToStream,Mq as renderToDOM,Zp as renderThumbhashToCanvas,Yq as renderTemplateString,Wq as renderTemplate,Xq as renderString,le as renderStreamingPage,Ch as renderSlot,Ig as renderSSRSuspense,Jp as renderProtectedVideo,Ip as renderProtectedImg,vp as renderMediaUpload,Vq as renderMarkdownView,_l as renderLayoutTypes,_i as renderImgComponent,Mk as renderImageComponent,Qd as renderHtmlAttrs,Pd as renderHead,rq as renderEmail,Oh as renderComponentWithSlot,Rd as renderBodyAttrs,Mo as render,qd as relaxedCspPreset,$d as registerValidationRule,se as registerStreamingDirectives,To as registerStoresClient,zl as registerStore,Ef as registerSeoDirectives,_a as registerMiddleware,kc as registerFilters,jc as registerFilter,d as registerErrorMessages,ee as registerEnhancedValidationRule,Xh as registerDirective,zd as registerCspDirectives,Om as registerComponentDirectives,Oa as registerAnimationDirectives,wa as registerA11yDirectives,al as ref,zn as redirect,Oc as recordResponseStatus,Pc as recordResponseHeader,Tb as rebaseOntoStateDir,Qc as readResponseStatus,Rc as readResponseHeaders,Oj as readMarkdownFile,Ze as readFileCached,bl as reactive,mp as quality,Gp as pruneSignatureCache,Ti as pruneCache,tq as provide,Uq as protectCodeBlocks,ur as prop,Of as processVueTemplate,Yg as processVirtualListDirectives,ah as processVirtualGridDirectives,nj as processVideo,ce as processValidateDirective,ea as processTranslateDirective,Cg as processTransitionDirectives,Fg as processTransitionAttributes,Ud as processTitleDirective,Gc as processTemplateBindings,yg as processTeleportDirectives,Gg as processSuspenseDirectives,zf as processStructuredData,me as processStreamDirectives,Uc as processStatusDirective,nh as processStaticDirectives,uf as processStackReplacements,tf as processStackPushDirectives,Dh as processSlots,Tl as processShell,Fe as processServerBindings,Af as processSeoDirective,te as processSectionDirectives,Rf as processScopedStyles,Ec as processReactiveBindings,Kp as processProtectedMedia,gh as processPartialHydrationDirectives,sg as processOnceDirective,vf as processMiddleware,yf as processMetaDirectives,Vd as processMetaDirective,Pj as processMarkdownFileDirectives,Vh as processMarkdownDirectives,of as processLoops,Qg as processKeepAliveDirectives,rg as processJsonDirective,$g as processInfiniteListDirectives,sf as processIncludes,aj as processImgComponents,Ok as processImageComponents,Bk as processImage,Td as processHeadDirective,Xd as processForms,Zd as processFormInputDirectives,tc as processExpressions,Hb as processEventDirectives,_d as processErrorDirective,Pf as processDynamicComponents,uh as processDirectives,di as processDirectiveAttributes,xg as processDeferDirectives,Ed as processCustomDirectives,wd as processCspDirectives,Br as processComponentProps,bc as processClientScript,Yd as processBasicFormDirectives,Lg as processAsyncDirectives,Fd as processAppearanceBootstrapDirective,Fa as processAnimationDirectives,ka as processA11yDirectives,ye as prepareImageDelivery,T as preloadTranslationsBackground,S as preloadTranslations,ro as preloadIslandHandlers,Ee as preloadIconCollection,wm as poolStrings,Gj as pluginManager,Ae as placeholdersWarmed,Bg as performLeave,Ag as performEnter,Qe as pendingLifecycleCounts,Ue as peek,pf as partialsCache,pj as parseVideoDirectiveOptions,Vo as parseUrl,aq as parseThumbhashString,dd as parseSwitchBlock,Ah as parseSlots,Bh as parseSlotElement,id as parseScriptDeclarations,Cj as parseSFCComponent,Lp as parseProtectedArgs,nf as parseLoopBinding,$i as parseImgComponent,ri as parseImageUrl,Nk as parseImageComponent,In as parseFormBody,fd as parseExpressionWithFilters,Pm as parseDefaults,wn as parseCookies,Ll as parseContainerSelector,ad as parseConditionalBlock,gd as parseArguments,Ma as parseAnimationShorthand,wr as optional,xm as optimizeTemplate,Tk as optimizeImage,Uk as optimizeDirectory,yr as oneOf,qf as onceStore,jl as onUpdated,Dc as onUpdate,ll as onUnmounted,Gl as onServer,hl as onMounted,Me as onMount,mh as onHydrated,zq as onErrorCaptured,Ne as onDestroy,Wg as onDeactivated,Fl as onClient,il as onBeforeUpdate,kl as onBeforeUnmount,gl as onBeforeMount,Vg as onActivated,Vp as observeElement,An as notFound,Wf as normalizeCriticalHeadOrder,yq as nextTick,Sm as negotiateEncoding,Ua as navigateTo,nl as mountInstance,Ea as motionDirective,pd as moderateCspPreset,vm as minifyHtml,Cf as metaDirective,fg as metaDedupKey,Wo as mergeParams,hg as mergeHtmlAttrs,Kd as mergeHeadConfigs,yc as mergeCssConfig,td as mergeCspDirectives,Ra as matchRoute,Wh as markdownDirectiveHandler,Nj as markdownCache,ga as looksLikeGlob,ir as localizePath,U as loadTranslationLazy,_ as loadTranslation,Jj as loadStxConfig,db as loadMiddlewareFromDirectory,jm as loadManifest,Rp as loadElement,Cm as loadChannels,pr as lintStxStrict,Tp as lazyLoadAll,Sp as lazyLoad,Ha as keyframeDirective,Iq as jsxs,Jq as jsxDEV,Hq as jsx,yn as jsonResponse,re as islandDirective,l as isTest,Wl as isSpaNavigation,Pl as isSpaNavRequest,zp as isSignatureValid,Re as isSignal,zk as isSharpAvailable,kn as isServerEnvironment,Dl as isServer,yb as isRuntimeOwnedColonAttr,da as isRtlLocale,j as isProduction,ia as isPresentationalRole,Op as isNativeLazySupported,Tq as isMarkdownPath,Q as isLoading,R as isLoaded,Gh as isJavaScriptScript,Pp as isIntersectionObserverSupported,Hk as isImageFile,Ak as isImageBackendAvailable,aa as isICUFormat,lh as isHydrated,Lh as isHydrateTrigger,Mc as isHttpStatus,jn as isEdgeEnvironment,qr as isDirectiveKind,k as isDevelopment,Se as isDerived,Uj as isCssOnlyChange,Rm as isCompressible,El as isClient,Ng as isAsyncComponent,Jn as isActionableMethod,ep as invert,$e as invalidateFileCacheByDir,_e as invalidateFileCache,sc as interpolateScriptsInTemplate,qc as interpolateScriptExpressions,rc as interpolateScriptAttributes,x as inlineError,er as injectThemeBootstrap,Bf as injectSeoTags,br as injectSeo,hf as injectRouterScript,Tj as injectHotReload,kb as injectHeatmap,Cc as injectCss,ud as injectCspMetaTag,pg as injectConfigHeadTags,Vf as injectColorModeBootScript,jg as injectCloakStyle,ag as injectBuildId,Xb as injectBrowserCoreAutoImports,Ic as injectAnalytics,uq as inject,yl as initStoreRegistry,uk as initNetlify,to as initLoadingIndicator,Qp as initLazyLoading,Gn as initFile,Yp as initBlurUp,cq as initAllBlurUp,cj as imgDirective,Rk as imageDirective,Rn as hydrateTemplateStream,Qn as hydrateTemplate,qo as hydrateIslands,ih as hydrateIsland,Sn as hydrateFragment,jh as hydrateByStrategy,kh as hydrateAll,Jo as hydrate,$n as htmlResponse,lg as hoistLeadingHeadTags,Xf as hoistColorModeBootScript,lb as heatmapDirective,Mi as hashString,gf as hashFilePath,Ki as hashFile,Li as hashBuffer,Nf as hasVueTemplateSyntax,mf as hasVariables,Oo as hasStore,hc as hasPlaceholders,sk as hasNetlifyConfig,ab as hasMiddleware,Ib as hasEventDirectives,og as hasDocumentShell,yh as hasDirectives,ma as hasDOMSupport,Kk as handleImageRequest,Aq as handleError,Qq as h,Gk as groupVariantsByFormat,cp as grayscale,Un as gitHash,pm as getUnusedDirectives,V as getTranslationSync,O as getTranslationCacheStats,W as getTranslationAsync,ba as getTranslation,nk as getTotalSize,Ap as getTimeUntilExpiry,ug as getStoreScript,Po as getStoreNames,No as getStore,gk as getStorageSize,fk as getStorageKeys,Rh as getSourceLineInfo,Ih as getSharedTranspiler,la as getScreenReaderOnlyStyle,wj as getScopeAttribute,He as getRouteParams,Mb as getPublicEnvDefine,Nb as getPublicEnv,wh as getPositionInfo,ec as getPlaceholderRegistry,Ji as getPlaceholderCacheStats,Hd as getPageMeta,kd as getNonce,Ik as getMimeType,cb as getMiddlewareNames,$a as getMiddleware,ca as getLocaleDirection,P as getLoadingState,Y as getLoadingLocales,ze as getImagePlaceholder,Ck as getImageMetadata,we as getImageDelivery,Io as getHydrationRuntime,Al as getHydratedStoreState,Xj as getHmrServer,Gd as getHead,Ao as getHMRHandler,vi as getFormatExtension,Oi as getFileMtime,Fk as getFallbackVariant,f as getErrorMessage,c as getErrorLocale,n as getErrorConfig,i as getErrorCodeName,Zh as getDirectives,Yh as getDirective,Zk as getCurrentInstance,zc as getCssServeAsset,sd as getCspPreset,Bd as getCspHeaderName,Uh as getComponentCacheStats,ej as getCachedVideoResult,Ep as getCachedSignature,bf as getCachedSignalsRuntime,cf as getCachedRouterScript,Hi as getCachedPlaceholder,Vi as getCachedImageResult,Pi as getCached,Si as getCacheStats,_f as getBuildId,zm as getBroadcastServer,ui as getBestVariant,lc as getAllFilters,ii as generateWidthSrcset,Zg as generateVirtualListCSS,jq as generateVideoPreview,he as generateValidationScript,kq as generateUploadRuntime,qm as generateTreeShakenBundle,Eg as generateTransitionRuntime,Dg as generateTransitionCSS,ij as generateThumbnails,Ai as generateThumbhashPlaceholder,$m as generateTemplatesDocs,Kg as generateSuspenseRuntime,Jg as generateSuspenseCSS,Do as generateStateScript,si as generateSrcsetData,Zi as generateSrcset,Dk as generateSrcSet,jj as generateSpriteSheet,sq as generateSpaShell,ti as generateSourceTags,oi as generateSizesFromBreakpoints,ni as generateSizesAttribute,Ek as generateSizes,Ff as generateSitemapIndex,cr as generateSitemap,Np as generateSimpleMediaPicker,Hp as generateSignatureRuntime,Xe as generateSignalsRuntimeDev,We as generateSignalsRuntime,ac as generateServerDataBridge,tj as generateScopeId,Dj as generateSFCWebComponent,Fb as generateRuntimeScript,Pa as generateRouteTypes,Qa as generateRouteManifest,Hf as generateRobotsTxt,dr as generateRobots,Yi as generateResponsiveVariants,zj as generateReactiveWebComponentTS,yj as generateReactiveWebComponent,Bj as generateReactiveRuntime,Aj as generateReactiveMixin,hj as generatePoster,Gi as generatePlaceholderStyle,Fi as generatePlaceholderCSS,zi as generatePlaceholder,hh as generatePartialHydrationCSS,jd as generateNonce,ok as generateNetlifyToml,mq as generateMinifiedMediaRuntime,lq as generateMediaRuntime,Mp as generateMediaManagerEmbed,hm as generateManifest,vo as generateLoadingIndicatorHtml,Xp as generateLazyLoadRuntime,$l as generateLayoutTypes,Ci as generateLQIP,Ug as generateKeepAliveRuntime,Tg as generateKeepAliveCSS,oh as generateIslandManifest,iq as generateImagePreview,Vk as generateImageManifest,Ho as generateHydrationScript,ve as generateHydrationRuntime,Ko as generateHydrationCSS,bh as generateHydrationBootstrap,Sj as generateHotReloadScript,jb as generateHeatmapScript,yo as generateHMRClientScript,kj as generateHLSManifest,Eo as generateEventBindings,mi as generateDprSrcsetWithVariableQuality,li as generateDprSrcset,mg as generateDocumentShell,en as generateDocs,an as generateDirectivesDocs,ci as generateDirectiveRuntime,If as generateDefaultRobotsTxt,lj as generateDASHManifest,Bc as generateCss,nd as generateCspMetaTag,md as generateCspHeader,Fq as generateCompositionRuntime,_m as generateComponentsDocs,ch as generateComponentManifest,Ym as generateComponentDoc,Ei as generateColorPlaceholder,Uf as generateColorModeBootScript,ql as generateClientRuntime,Ni as generateCacheKey,_b as generateBrowserAutoImportDestructuring,dq as generateBlurUpRuntime,eq as generateBlurUpCSS,Fc as generateBindingsRuntime,ji as generateAutoWidthSrcset,Zb as generateAutoImportDestructuring,Pg as generateAsyncComponentRuntime,Og as generateAsyncComponentCSS,Na as generateAnimationRuntime,La as generateAnimationCSS,Hc as generateAnalyticsScript,po as formatTypecheckDiagnostics,jo as formatTypeErrors,Dn as formatStxContent,mk as formatSize,Ta as formatRoutes,En as formatMarkdownContent,g as formatLocalizedError,$ as formatICU,p as formatFilePath,w as formatError,ar as formatDoctorReport,bn as formatDocsAsMarkdown,dn as formatDocsAsJson,cn as formatDocsAsHtml,lp as format,um as foldConstants,kp as flipVertical,jp as flipHorizontal,am as fingerprint,no as findRuntimeTypeDeclarations,_q as findPantryPackage,$c as findMatchingEndTag,Xc as findMatchingDelimiter,Jb as findInterpolationEnd,bd as findIfBlocks,ed as findExpressions,Sa as findErrorPage,cd as findDirectiveBlocks,rm as findDeadCode,rm as findDeadBranches,Ml as findContainerRegion,Zm as findComponentFiles,Er as findCommonDir,lk as filterRequiredFiles,Ph as fileExists,jf as extractVariables,fm as extractTemplateExpressions,ne as extractStreamBoundaries,Fo as extractState,Eh as extractSlotContent,lf as extractScriptFromTemplate,em as extractScriptBlocks,fc as extractPlaceholders,_c as extractParenthesizedExpression,Nc as extractPageResponseStatus,hb as extractLayoutMetadata,Di as extractDominantColor,hd as extractDirectiveParams,zh as extractDirectiveNames,Xl as extractContainerContent,Wm as extractComponentProps,dh as extractComponentName,Xm as extractComponentDescription,Ac as extractClassNames,$b as extractBridgeData,eh as extractBoundProps,Yc as extractBalancedExpression,Ub as extractAndStripCssImports,xj as extractAndScopeStyles,Gb as extractAndProcessEvents,$j as externalizeSharedAssets,ak as externalizeRepeatedAssets,_j as externalizeHtml,vc as evaluateExpression,tm as evaluateConstant,Vc as evaluateAuthExpression,oc as escapeHtmlValue,nc as escapeHtml,C as errorRecovery,E as errorLogger,zg as ensureTeleportTargets,qg as ensureDocumentShell,de as enhancedValidationRules,Um as enableDevTools,sm as eliminateDeadCode,Ke as effect,sp as dprUrls,fn as docsCommand,Zl as discoverLayoutNames,Wp as disconnectObserver,Vm as disableDevTools,F as devHelpers,Sl as detectShell,hn as detectRuntime,pk as detectProjectConfig,wi as detectFormat,mm as detectBuildMode,Je as derived,tk as deploy,Lj as defineStxConfig,So as defineStore,Cq as defineSlots,or as defineSiteConfig,sr as definePropsWithValidation,rr as defineProps,Fj as definePlugin,Nd as definePageMeta,Wa as defineMiddleware,qh as defineForm,xq as defineExpose,wq as defineEmits,$h as defineDirective,Sq as defineCustomElement,Pn as defineConfig,ai as defineClientDirective,Mg as defineAsyncComponent,nq as defaultMediaConfig,Xk as defaultImageConfig,M as defaultI18nConfig,ib as defaultHeatmapConfig,Wd as defaultFormClasses,ic as defaultFilters,Dd as defaultCspConfig,Hj as defaultConfig,Cr as default,xc as deepMergeThemes,Qf as dedupeScopedStyles,Bi as decodeThumbhash,yd as cspNonceDirective,xd as cspDirective,bq as crossfadeTransition,Yo as crop,Xg as createVirtualList,qj as createVideoDirective,un as createVercelHandler,go as createTypeChecker,fa as createTranslateFilter,qn as createTextEncoderStream,Rq as createStxApp,pn as createStreamingResponse,pe as createStreamRenderer,Qo as createStore,Za as createStorageManager,Xa as createServerCookieManager,$k as createScope,Hg as createSSRSuspense,Ge as createRouter,eb as createRouteLocation,eo as createRoute,al as createRef,bl as createReactive,Eq as createProvideContext,Wn as createProject,On as createProductionBuild,dc as createPlaceholder,ym as createOptimizedBuild,vn as createNetlifyHandler,hk as createNetlifyClient,fb as createMiddlewareContext,co as createMiddleware,Up as createLazyObserver,Rg as createKeepAliveCache,mn as createKVNamespace,fh as createIslandRegistry,bj as createImgDirective,Sk as createImagePlugin,Lk as createImageHandler,Qk as createImageDirective,nb as createHeatmapAggregator,kk as createFileManifest,ln as createEnvAccessor,z as createEnhancedError,on as createEdgeHandler,nn as createEdgeCache,Sh as createDetailedErrorMessage,tn as createDenoHandler,qk as createDefaultNetlifyConfig,Cd as createCspHeaders,xn as createCookie,cl as createComputed,_k as createComponentInstance,sn as createCloudflareHandler,Ya as createClientCookieManager,bi as createBuiltinDirectives,Rq as createApp,Ka as createAnimationTimeline,$o as cover,kf as convertToCommonJS,gp as contrast,_o as contain,y as consoleError,m as configureErrorHandling,Kj as config,cl as computed,Tm as compressResponse,Kf as composerPattern,Jf as composer,Ul as composeShellWithPage,Nm as componentDirective,Nh as componentClientSignalNames,gm as compileTemplate,a as collectRepeatedFlag,jk as collectDeployFiles,kg as cloakStyleFragment,gj as clearVideoCache,N as clearTranslationCache,vg as clearStoreCache,ek as clearStorage,Fp as clearSignatureCache,Ii as clearPlaceholderCache,rf as clearOnceStore,ld as clearNonce,bb as clearMiddleware,Be as clearImagePlaceholders,xe as clearImageDeliveryCatalog,Pk as clearImageCache,e as clearErrorMessages,df as clearDevCaches,mc as clearCustomFilters,Mf as clearComposers,wg as clearComposableCache,Th as clearComponentCache,Ri as clearCache,uo as cleanupLoadingIndicator,Jl as classifyScript,Kl as classifyAllScripts,ho as checkTemplateFile,io as checkTemplate,ef as checkCache,Cp as checkAuthAccess,na as checkA11yWithRegex,oa as checkA11y,Im as channel,Cn as captureScreenshots,Bn as captureScreenshot,Z as cancelPendingLoads,ik as calculateSha1,ki as calculateOptimalWidths,ff as cacheTemplate,sj as buildWebComponents,ko as buildVirtualSource,pq as buildViews,Uo as buildUrl,je as buildSuspenseResolveScript,nr as buildStaticSite,qb as buildRuntimeGlobalsDestructure,bm as buildRuntimeAsset,cm as buildRouterAsset,mr as buildLangPickerScript,qi as buildImageUrl,bg as buildIdFragment,gg as buildHtmlAttrs,km as buildForProduction,Qm as buildComponentLibrary,Dp as buildAuthParams,lm as buildApp,kr as buildAlternateLinks,Nn as build,Gm as broadcastPrivate,Hm as broadcastPresence,Dm as broadcast,fp as brightness,ap as blur,Db as blankInertHtmlRegions,xp as batchSignUrls,Le as batch,sa as autoFixA11yFile,ta as autoFixA11yDirectory,ra as autoFixA11y,np as auto,ja as attributeValue,dm as assetTags,Eb as asInvocableStatement,zr as arrayOf,hr as applyTranslations,Xi as applyTransformations,Fh as applySlots,Mm as applyPropDefaults,qp as applyPreset,ig as applyHtmlAttrs,Sd as applyHead,uc as applyFilters,Ql as appendVary,rd as apiCspPreset,Da as animationGroupDirective,mj as analyzeVideo,om as analyzeUsage,Hl as analyzeTemplate,Il as analyzeProject,om as analyzeDirectiveUsage,Jc as analyticsDirective,Zn as addStore,Yn as addPage,vd as addNonceToInlineContent,_n as addLayout,Xn as addComponent,Ln as actionRedirectResponse,Va as abortNavigation,ua as a11yDirective,af as __setSignalsGeneratorsForTest,$f as __setBuildIdForTest,dj as VideoProcessorCache,rh as Validator,xa as TransitionType,za as TransitionEase,ya as TransitionDirection,Wc as Tokenizer,fo as TemplateTypeChecker,Fn as TEMPLATE_PRESETS,v as StxValidationError,r as StxSyntaxError,t as StxSecurityError,s as StxRuntimeError,u as StxFileError,q as StxError,Nq as Show,ke as SUSPENSE_RESOLVER_RUNTIME,ob as STX_RUNTIME_GLOBALS,Wb as STX_AUTO_IMPORTS,Pb as STATE_DIR_ENV_VAR,Ga as SPRING_PRESETS,Nl as SPA_NAV_HEADER,xb as RUNTIME_OWNED_COLON_ATTRS,zb as RUNTIME_HANDLED_X_ATTRS,Kc as RESPONSE_STATUS_KEY,Lc as RESPONSE_HEADERS_KEY,tb as REACTIVE_RUNTIME_GLOBALS,Mn as ProductionBuild,Pq as Portal,Vn as PROJECT_TEMPLATES,pp as PRESETS,sb as NON_CLIENT_PRIMITIVES,Lo as MemorySessionStore,hi as MIME_TYPES,ei as MEDIA_DEFAULT_WIDTHS,gi as MEDIA_DEFAULT_FORMATS,Yl as LAYOUT_TYPES_FILE,Ui as ImageProcessorCache,Jk as ImageProcessingError,Go as HydrationRuntime,Rj as HotReloadServer,mb as HeatmapAggregator,eg as HTML_CLASS_MARKER,dg as HTML_ATTRS_MARKER,Gq as Fragment,Oq as For,Ol as FRAGMENT_CACHE_CONTROL,D as ErrorLogger,h as ErrorCodes,Zj as EXTERNALIZED_ASSET_DIR,vk as DeployError,wk as DEFAULT_WIDTHS,Aa as DEFAULT_TRANSITION_OPTIONS,Ob as DEFAULT_STATE_DIR,yk as DEFAULT_QUALITY,xi as DEFAULT_PLACEHOLDER_OPTIONS,xk as DEFAULT_FORMATS,fi as DEFAULT_DPR_VALUES,xo as ComponentHMRHandler,pb as COMPONENT_SCOPE_LOCAL_GLOBALS,Bb as COMPONENT_PASSTHROUGH_X_ATTRS,rb as COMPILE_TIME_ONLY_GLOBALS,pi as COMMON_SIZES,Sf as COLOR_MODE_BOOT_MARKER,Tf as COLOR_MODE_BOOT_GLOBAL,cg as CLOAK_STYLE,Km as BroadcastServer,Jm as Broadcast,Yf as BUILD_ID_META,Zf as BUILD_ID_HEADER,Lb as BROWSER_CORE_IMPORTS,yi as BLUR_UP_CSS,Ab as ALPINE_BRIDGE_X_ATTRS,Zq as $path};
2
+ import{$ as tl,$a as nn,$b as Fo,$c as Fp,$d as Fq,A as dk,Aa as xm,Ab as Zn,Ac as ep,Ad as eq,Ae as kr,B as ek,Ba as ym,Bb as _n,Bc as fp,Bd as fq,Be as lr,C as fk,Ca as Lm,Cb as $n,Cc as gp,Cd as gq,Ce as mr,D as gk,Da as Mm,Db as ao,Dc as hp,Dd as hq,De as nr,E as Yk,Ea as Nm,Eb as bo,Ec as ip,Ed as iq,Ee as or,F as Zk,Fa as Om,Fb as co,Fc as jp,Fd as jq,Fe as pr,G as _k,Ga as Pm,Gb as eo,Gc as kp,Gd as kq,Ge as qr,H as $k,Ha as Qm,Hb as fo,Hc as lp,Hd as lq,He as rr,I as al,Ia as Um,Ib as go,Ic as mp,Id as mq,Ie as sr,J as bl,Ja as Vm,Jb as ho,Jc as np,Jd as nq,Je as tr,K as cl,Ka as Wm,Kb as io,Kc as op,Kd as oq,Ke as ur,L as dl,La as Xm,Lb as jo,Lc as pp,Ld as pq,Le as vr,M as el,Ma as Ym,Mb as qo,Mc as qp,Md as qq,Me as wr,N as fl,Na as Zm,Nb as ro,Nc as rp,Nd as rq,Ne as xr,O as gl,Oa as _m,Ob as so,Oc as sp,Od as sq,Oe as yr,P as hl,Pa as $m,Pb as to,Pc as tp,Pd as tq,Pe as zr,Q as il,Qa as an,Qb as uo,Qc as up,Qd as uq,Qe as Ar,R as jl,Ra as bn,Rb as vo,Rc as vp,Rd as vq,Re as Br,S as kl,Sa as cn,Sb as wo,Sc as wp,Sd as wq,Se as Cr,T as ll,Ta as dn,Tb as xo,Tc as xp,Td as xq,Te as Dr,U as ml,Ua as en,Ub as yo,Uc as yp,Ud as yq,Ue as Er,V as nl,Va as fn,Vb as zo,Vc as zp,Vd as zq,Ve as Fr,W as ol,Wa as hn,Wb as Ao,Wc as Ap,Wd as Aq,We as Gr,X as pl,Xa as jn,Xb as Bo,Xc as Bp,Xd as Bq,Y as ql,Ya as kn,Yb as Co,Yc as Cp,Yd as Cq,Z as rl,Za as ln,Zb as Do,Zc as Dp,Zd as Dq,_ as sl,_a as mn,_b as Eo,_c as Ep,_d as Eq,aa as ul,ab as on,ac as Go,ad as Gp,ae as Gq,ba as vl,bb as pn,bc as Ho,bd as Hp,be as Hq,ca as wl,cb as qn,cc as Io,cd as Ip,ce as Iq,da as xl,db as rn,dc as Jo,dd as Jp,de as Jq,ea as yl,eb as sn,ec as Ko,ed as Kp,ee as Kq,fa as zl,fb as tn,fc as Lo,fd as Lp,fe as Lq,ga as Al,gb as un,gc as Mo,gd as Mp,ge as Mq,ha as Bl,hb as vn,hc as No,hd as Np,he as Nq,ia as Cl,ib as wn,ic as Oo,id as Op,ie as Oq,ja as Dl,jb as xn,jc as Po,jd as Pp,je as Pq,ka as El,kb as yn,kc as Qo,kd as Qp,ke as Qq,la as Fl,lb as zn,lc as Ro,ld as Rp,le as Rq,ma as Gl,mb as An,mc as So,md as Sp,me as Sq,na as Hl,nb as Dn,nc as To,nd as Tp,ne as Zq,o as a,oa as Il,ob as En,oc as Uo,od as Up,oe as _q,p as Qj,pa as mm,pb as Fn,pc as Vo,pd as Vp,pe as $q,q as Rj,qa as nm,qb as Gn,qc as Wo,qd as Wp,qe as ar,r as Sj,ra as om,rb as Mn,rc as Xo,rd as Xp,re as br,s as Tj,sa as pm,sb as Nn,sc as Yo,sd as Yp,se as cr,t as Uj,ta as qm,tb as On,tc as Zo,td as Zp,te as dr,u as Vj,ua as rm,ub as Pn,uc as _o,ud as _p,ue as er,v as Wj,va as sm,vb as Un,vc as $o,vd as $p,ve as fr,w as Xj,wa as tm,wb as Vn,wc as ap,wd as aq,we as gr,x as Yj,xa as um,xb as Wn,xc as bp,xd as bq,xe as hr,y as bk,ya as vm,yb as Xn,yc as cp,yd as cq,ye as ir,z as ck,za as wm,zb as Yn,zc as dp,zd as dq,ze as jr}from"./chunk-xqxg3fck.js";import{$e as Qk,Xe as Mk,Ye as Nk,Ze as Ok,_e as Pk,af as Rk,bf as Sk,cf as Tk,df as Uk,ef as Vk,ff as Wk,gf as Xk}from"./chunk-0fgcnv6y.js";import{hf as ko,if as lo,jf as mo,kf as no,lf as oo,mf as po}from"./chunk-bxskmetn.js";import{nf as Bn,of as Cn}from"./chunk-n3ggrhb3.js";import{pf as Hn}from"./chunk-ggrzaenz.js";import{Af as Jm,Bf as Km,qf as zm,rf as Am,sf as Bm,tf as Cm,uf as Dm,vf as Em,wf as Fm,xf as Gm,yf as Hm,zf as Im}from"./chunk-vqxmxgaj.js";import{Cf as Kk,Df as Lk}from"./chunk-5aq35j2e.js";import{Ef as lm}from"./chunk-3y623mek.js";import{Ff as Rm,Gf as Sm,Hf as Tm,If as gn,Jf as In,Kf as Jn,Lf as Kn,Mf as Ln,Nf as Qn,Of as Rn,Pf as Sn,Qf as Tn}from"./chunk-t0ghjghe.js";import{$f as rk,Rf as hk,Sf as ik,Tf as jk,Uf as kk,Vf as lk,Wf as mk,Xf as nk,Yf as ok,Zf as pk,_f as qk,ag as sk,bg as tk,cg as uk,dg as vk}from"./chunk-nx5qkm8k.js";import{eg as dj,fg as ej,gg as fj,hg as gj,ig as hj,jg as ij,kg as jj,lg as kj,mg as lj,ng as mj,og as nj}from"./chunk-e4hhz9j3.js";import{pg as Fj,rg as Gj}from"./chunk-bz820epz.js";import{Ag as zk,Bg as Ak,Cg as Bk,Dg as Ck,Fg as Dk,Gg as Ek,Hg as Fk,Ig as Gk,Jg as Hk,Kg as Ik,Ng as Jk,xg as wk,yg as xk,zg as yk}from"./chunk-9zndrzb3.js";import{Og as am,Pg as bm,Qg as cm,Rg as dm,Sg as gm,Tg as km}from"./chunk-9v5s9ax8.js";import{Ug as em,Xg as fm}from"./chunk-0hdkedwq.js";import{dh as Jl,eh as Kl,fh as Ll,gh as Ml,hh as Nl,ih as Ol,jh as Pl,kh as Ql,lh as Rl,mh as Sl,nh as Tl,oh as Ul,ph as Vl,qh as Wl,rh as Xl,sh as hm,th as im,uh as jm}from"./chunk-kpy77ys3.js";import{vh as ph,wh as qh,xh as rh,yh as sh}from"./chunk-49kk0s96.js";import{Dh as th}from"./chunk-w3ycm4na.js";import{Eh as Ah,Fh as Bh,Gh as Ch,Hh as Dh,Ih as Eh,Jh as Fh}from"./chunk-f2s94353.js";import{Kh as Ui,Lh as Vi,Mh as Wi,Qh as Xi,Rh as Yi,Sh as Zi}from"./chunk-mb518a4n.js";import{$h as Ri,Th as Ki,Uh as Li,Vh as Mi,Wh as Ni,Xh as Oi,Zh as Pi,_h as Qi,ai as Si,bi as Ti}from"./chunk-74cv4ta1.js";import{ci as Ag,di as Bg,ei as Cg,fi as Dg,gi as Eg,hi as Fg}from"./chunk-wcm80anz.js";import{ii as Gg,ji as Hg,ki as Ig,li as Jg,mi as Kg}from"./chunk-y7m2dpd3.js";import{ni as Lg,oi as Mg,pi as Ng,qi as Og,ri as Pg}from"./chunk-9y0g8kzt.js";import{si as Qg,ti as Rg,ui as Sg,vi as Tg,wi as Ug,xi as Vg,yi as Wg}from"./chunk-t6nseeb9.js";import{Ai as Yg,Bi as Zg,Ci as _g,Di as $g,Ei as ah,zi as Xg}from"./chunk-xttsqmkm.js";import{Gi as bh,Hi as ch,Ii as dh,Ji as eh,Ki as fh,Li as gh,Mi as hh,Ni as ih,Oi as jh,Pi as kh,Qi as lh,Ri as mh,Si as nh,Ti as oh}from"./chunk-54st8g2j.js";import{Vi as ug,Wi as vg}from"./chunk-1xfqy79h.js";import{Zi as wg}from"./chunk-cb74rvec.js";import"./chunk-9n0gvfrg.js";import{bj as xg}from"./chunk-7q9mwh4v.js";import{cj as yg,dj as zg}from"./chunk-refwkt87.js";import{ej as ie,fj as je,gj as ke,hj as le,ij as me,jj as ne,kj as oe,lj as pe,mj as qe,nj as re,oj as se,pj as te,qj as ue,rj as ve}from"./chunk-ada449cq.js";import{sj as We,tj as Xe}from"./chunk-g3fy0tw8.js";import{Aj as Ie,Bj as Je,Cj as Ke,Dj as Le,Ej as Me,Fj as Ne,Gj as Oe,Hj as Pe,Ij as Qe,Jj as Re,Kj as Se,Lj as Te,Mj as Ue,Nj as Ve}from"./chunk-w95sp0k9.js";import{Oj as Ye,Pj as Ze,Qj as _e,Rj as $e,Sj as af,Tj as bf,Uj as cf,Vj as df,Wj as ef,Xj as ff,Yj as gf}from"./chunk-dy2y790t.js";import{qk as Tq,rk as Uq,sk as Vq,tk as Wq,uk as Xq,vk as Yq}from"./chunk-egez576q.js";import{Ak as Yl,Bk as Zl,Ck as _l,Dk as $l,wk as Zj,xk as _j,yk as $j,zk as ak}from"./chunk-zn5jgmqw.js";import"./chunk-58f0mthg.js";import"./chunk-9aw94jhm.js";import{$l as ac,$m as dd,$n as He,$o as Qf,$p as Wh,$q as Ej,Al as Oa,Am as Fc,An as Ed,Ao as pf,Ap as pg,Aq as Ei,Bl as ib,Bm as Gc,Bn as Fd,Bo as qf,Bp as qg,Bq as Fi,Cl as jb,Cm as Hc,Cn as Wd,Co as rf,Cp as rg,Cq as Gi,Dl as kb,Dm as Ic,Dn as Xd,Do as sf,Dp as sg,Dq as Hi,El as lb,Em as Jc,En as Yd,Eo as tf,Ep as tg,Eq as Ii,Fl as mb,Fn as Zd,Fo as uf,Fp as uh,Fq as Ji,Gl as nb,Gm as Kc,Gn as _d,Go as vf,Gp as vh,Gq as _i,Hm as Lc,Hn as $d,Ho as wf,Hp as wh,Hq as $i,Im as Mc,In as ae,Io as xf,Ip as xh,Iq as aj,Jl as Eb,Jm as Nc,Jn as be,Jo as yf,Jp as yh,Jq as bj,Kl as Fb,Km as Oc,Kn as ce,Ko as zf,Kp as zh,Kq as cj,Ll as Gb,Lm as Pc,Ln as de,Lo as Af,Lp as Gh,Lq as oj,Ml as Hb,Mm as Qc,Mn as ee,Mo as Bf,Mp as Hh,Mq as pj,Nl as Ib,Nm as Rc,Nn as fe,No as Cf,Np as Ih,Nq as qj,Om as Sc,On as ge,Oo as Df,Op as Jh,Oq as rj,Pm as Tc,Pn as he,Po as Ef,Pp as Kh,Pq as sj,Ql as Lb,Qm as Uc,Qo as Ff,Qp as Lh,Qq as tj,Rl as Mb,Rm as Vc,Rn as ze,Ro as Gf,Rp as Mh,Rq as uj,Sl as Nb,Sm as Wc,Sn as Ae,So as Hf,Sp as Nh,Sq as vj,Tl as Ub,Tm as Xc,Tn as Be,To as If,Tp as Oh,Tq as wj,Ul as Vb,Um as Yc,Un as Ce,Uo as Jf,Up as Ph,Uq as xj,Vl as Wb,Vm as Zc,Vn as De,Vo as Kf,Vp as Qh,Vq as yj,Wl as Xb,Wm as _c,Wn as Ee,Wo as Lf,Wp as Rh,Wq as zj,Xl as Yb,Xm as $c,Xn as Fe,Xo as Mf,Xp as Sh,Xq as Aj,Yl as Zb,Ym as ad,Yo as Nf,Yp as Th,Yq as Bj,Zl as _b,Zm as bd,Zo as Of,Zp as Uh,Zq as Cj,_l as $b,_m as cd,_n as Ge,_o as Pf,_p as Vh,_q as Dj,am as bc,an as ed,ap as Rf,aq as ei,ar as Hj,bm as cc,bn as fd,bo as hf,bp as Sf,bq as fi,br as Ij,cm as dc,cn as gd,cp as Tf,cq as gi,cr as Jj,dm as ec,dn as hd,dp as Uf,dq as hi,dr as Kj,em as fc,en as id,ep as Vf,eq as ii,er as Lj,fm as gc,fn as jd,fp as Wf,fq as ji,fr as Mj,gm as hc,gn as kd,gp as Xf,gq as ki,gr as Nj,hn as ld,hp as Yf,hq as li,hr as Oj,in as md,ip as Zf,iq as mi,ir as Pj,jl as xa,jm as ic,jn as nd,jp as _f,jq as ni,kl as ya,km as jc,kn as od,kp as $f,kq as oi,ll as za,lm as kc,ln as pd,lp as ag,lq as pi,ml as Aa,mm as lc,mn as qd,mp as bg,mq as qi,nl as Ba,nm as mc,nn as rd,np as cg,nq as ri,ol as Ca,om as nc,on as sd,op as dg,oq as si,pl as Da,pm as oc,pn as td,pp as eg,pq as ti,ql as Ea,qm as pc,qn as ud,qp as fg,qq as ui,rl as Fa,rm as qc,rn as vd,rp as gg,rq as vi,sl as Ga,sm as rc,sn as wd,so as jf,sp as hg,sq as wi,tl as Ha,tm as sc,tn as xd,tp as ig,tq as xi,ul as Ia,um as tc,un as yd,uo as kf,up as jg,uq as yi,vl as Ja,vm as uc,vn as zd,vp as kg,vq as zi,wl as Ka,wm as vc,wn as Ad,wo as lf,wp as lg,wq as Ai,xl as La,xm as wc,xn as Bd,xo as mf,xp as mg,xq as Bi,yl as Ma,ym as Dc,yn as Cd,yo as nf,yp as ng,yq as Ci,zl as Na,zm as Ec,zn as Dd,zo as of,zp as og,zq as Di}from"./chunk-9rkntp0z.js";import{$r as M,Ar as s,As as na,Br as t,Bs as oa,Cr as u,Cs as pa,Dr as v,Ds as qa,Er as w,Es as ra,Fr as x,Fs as sa,Gr as y,Gs as ta,Hr as z,Hs as ua,Ir as A,Is as va,Jr as B,Js as wa,Kr as C,Lr as D,Mr as E,Nr as F,Or as G,Pr as H,Qr as I,Rr as J,Sr as K,Tr as L,as as N,bs as O,cs as P,ds as Q,es as R,fs as S,gs as T,hs as U,is as V,jr as b,js as W,kr as c,ks as X,lr as d,ls as Y,mr as e,ms as Z,nr as f,ns as _,or as g,os as $,pr as h,ps as aa,qr as i,qs as ba,rr as j,rs as ca,sr as k,ss as da,tr as l,ts as ea,ur as m,us as fa,vr as n,vs as ia,wr as o,ws as ja,xr as p,xs as ka,yr as q,ys as la,zr as r,zs as ma}from"./chunk-q68xmak4.js";import{Ks as Xh,Ls as Yh,Ms as Zh,Ns as _h,Os as $h,Ps as ai,Qs as bi,Rs as ci,Ss as di}from"./chunk-c0an64km.js";import{Ts as ga,Us as ha}from"./chunk-t1k5dpbr.js";import{Vs as Jb,Ws as Kb}from"./chunk-52mh63sp.js";import{dt as xc,et as yc,gt as zc,pt as Ac,qt as Bc,rt as Cc}from"./chunk-zcmtqan3.js";import{st as Ob,tt as Pb,ut as Qb,vt as Rb,wt as Sb,xt as Tb}from"./chunk-39f40yc4.js";import{At as ye,yt as we,zt as xe}from"./chunk-ysnk7x79.js";import{Bt as Gd,Ct as Hd,Dt as Id,Et as Jd,Ft as Kd,Gt as Ld,Ht as Md,It as Nd,Jt as Od,Kt as Pd,Lt as Qd,Mt as Rd,Nt as Sd,Ot as Td,Pt as Ud,Qt as Vd}from"./chunk-0f1kz0x2.js";import"./chunk-ayrjwkyw.js";import{$t as vb,Ut as ob,Vt as pb,Wt as qb,Xt as rb,Yt as sb,Zt as tb,_t as ub,au as wb,bu as xb,cu as yb,du as zb,eu as Ab,fu as Bb,gu as Cb,hu as Db}from"./chunk-c6fw33zh.js";import{Bu as Ua,Cu as Va,Du as Wa,Eu as Xa,Fu as Ya,Gu as Za,Hu as _a,Iu as $a,Ju as ab,Ku as bb,Lu as cb,Mu as db,Nu as eb,Ou as fb,Pu as gb,Ru as hb,lu as Pa,mu as Qa,pu as Ra,uu as Sa,vu as Ta}from"./chunk-bf8wf3r2.js";import"./chunk-jn6m8zf7.js";import"./chunk-sskbegsz.js";export{rk as writeNetlifyConfig,im as writeManifest,Wk as writeImageManifest,zo as wrapComponentForHMR,tr as withDefaults,Ej as webComponentDirectiveHandler,op as watermark,qq as watchViews,el as watchMultiple,fl as watchEffect,dl as watch,De as warmImagePlaceholders,sl as waitForStore,X as waitForLocale,lo as virtualPathFor,rj as videoDirective,G as validators,xr as validated,fe as validateValueEnhanced,vh as validateTemplate,tp as validateParams,ge as validateFormEnhanced,fq as validateFile,be as validateFields,ae as validateField,xh as validateDirective,Ad as validateCspDirectives,Mj as validateConfig,nm as validateComponentScripts,Lm as validateComponentProps,tg as validateClientScript,sh as v,pc as usesSignalsInScript,ub as usesReactiveRuntime,Kh as userComponentFileExists,_g as useVirtualList,Od as useTitle,rl as useStoreOrThrow,Ro as useStore,bk as useStorage,Bq as useSlots,dk as useSessionStorage,Ld as useSeoMeta,tl as useRouteParams,vl as useRouteParamOrThrow,ul as useRouteParam,Od as usePageTitle,Ve as useOptimistic,xl as useMiddlewareValue,wl as useMiddlewareState,ck as useLocalStorage,so as useLoadingIndicator,Jd as useHead,ph as useForm,Dq as useAttrs,hq as uploadFiles,gq as uploadFile,ol as updateInstance,Te as untrack,_h as unregisterDirective,pl as unmountInstance,wc as unescapeHtml,oo as typecheckStxFiles,Jh as transpileTypeScript,gr as translate,Ba as transitionDirective,Yb as transformAutoImports,Fm as toUsers,Em as toUser,Zo as thumbnail,_p as thumbHashToRGBA,$p as thumbHashToDataURL,wb as templateNeedsRuntime,vb as templateHasReactiveContext,Ye as templateCache,Sc as syncRecordedResponse,wo as stxClientHelpers,Df as structuredDataDirective,jr as stripLocalePrefix,Vl as stripDocumentWrapper,Kb as stripCommentsAndLiterals,rn as stringToStream,od as strictCspPreset,qe as streamingSuspenseDirective,ue as streamToResponse,oe as streamTemplateSimple,ie as streamTemplate,Yj as stopHmrServer,Bm as stopBroadcasting,Rb as stateDirName,Sb as stateDir,Ie as state,ng as startsDocument,Tn as startProductionServer,Hn as startInteractive,Am as startBroadcasting,lr as stampLocaleLayoutGroup,Ia as staggerDirective,rp as srcsetUrls,Ja as springDirective,Zc as splitByPipe,Rl as spaNavVaryHeaders,mo as sourcePathFor,yp as smartBatchSign,Mh as slotContentHasExpressions,wp as signUrl,Hh as shouldTranspileTypeScript,Vj as shouldReloadOnChange,Bp as shouldRefreshSignature,Wj as shouldIgnoreFile,Sg as shouldCacheComponent,bp as sharpen,Ar as shape,Qb as setStateDir,Bl as setRouteParams,Cl as setMiddlewareState,Ce as setImagePlaceholder,vq as setGlobalProvide,b as setErrorLocale,Yk as setCurrentInstance,fj as setCachedVideoResult,Wi as setCachedImageResult,Qi as setCached,Dr as serveStxFile,Fr as serveMultipleStxFiles,Qj as serveMarkdownFile,bo as serveFile,Gr as serveApp,ao as serve,Co as serializeState,gn as serializeSetCookie,dp as sepia,Md as seoMetaToHeadConfig,Ca as scrollAnimateDirective,va as screenReaderDirective,vj as scopeHTML,uj as scopeCSS,Gf as scanForSitemapEntries,pa as scanA11yTargets,qa as scanA11yIssues,hp as saturation,up as sanitizeParams,I as sanitizeFilePath,J as sanitizeExpression,K as sanitizeDirectiveParams,H as sanitizeDirectiveParam,L as sanitizeComponentProps,B as safeExecuteAsync,A as safeExecute,Cb as runtimeHandledXAttrsLiteral,wf as runPreProcessingMiddleware,xf as runPostProcessingMiddleware,Kn as runPageAction,Oe as runMountCallbacks,gb as runMiddleware,ml as runHooks,$q as runDoctor,Pe as runDestroyCallbacks,Lf as runComposers,ip as rotate,th as rewriteImagesWithSiblings,Tc as responseBindings,Qh as resolveTemplatePath,ha as resolveStxTargets,Ij as resolveStxDirectories,fr as resolveI18n,Xo as resize,cc as resetPlaceholders,Id as resetHead,Bo as resetHMRHandler,o as resetErrorConfig,vr as required,gc as replacePlaceholders,oq as renderView,oj as renderVideoComponent,Vb as renderVendorStyleTags,Kq as renderToString,Lq as renderToStream,Mq as renderToDOM,Zp as renderThumbhashToCanvas,Yq as renderTemplateString,Wq as renderTemplate,Xq as renderString,le as renderStreamingPage,Ch as renderSlot,Ig as renderSSRSuspense,Jp as renderProtectedVideo,Ip as renderProtectedImg,vp as renderMediaUpload,Vq as renderMarkdownView,_l as renderLayoutTypes,_i as renderImgComponent,Mk as renderImageComponent,Qd as renderHtmlAttrs,Pd as renderHead,rq as renderEmail,Oh as renderComponentWithSlot,Rd as renderBodyAttrs,Mo as render,qd as relaxedCspPreset,$d as registerValidationRule,se as registerStreamingDirectives,To as registerStoresClient,zl as registerStore,Ef as registerSeoDirectives,_a as registerMiddleware,kc as registerFilters,jc as registerFilter,d as registerErrorMessages,ee as registerEnhancedValidationRule,Xh as registerDirective,zd as registerCspDirectives,Om as registerComponentDirectives,Oa as registerAnimationDirectives,wa as registerA11yDirectives,al as ref,zn as redirect,Oc as recordResponseStatus,Pc as recordResponseHeader,Tb as rebaseOntoStateDir,Qc as readResponseStatus,Rc as readResponseHeaders,Oj as readMarkdownFile,Ze as readFileCached,bl as reactive,mp as quality,Gp as pruneSignatureCache,Ti as pruneCache,tq as provide,Uq as protectCodeBlocks,ur as prop,Of as processVueTemplate,Yg as processVirtualListDirectives,ah as processVirtualGridDirectives,nj as processVideo,ce as processValidateDirective,ea as processTranslateDirective,Cg as processTransitionDirectives,Fg as processTransitionAttributes,Ud as processTitleDirective,Gc as processTemplateBindings,yg as processTeleportDirectives,Gg as processSuspenseDirectives,zf as processStructuredData,me as processStreamDirectives,Uc as processStatusDirective,nh as processStaticDirectives,uf as processStackReplacements,tf as processStackPushDirectives,Dh as processSlots,Tl as processShell,Fe as processServerBindings,Af as processSeoDirective,te as processSectionDirectives,Rf as processScopedStyles,Ec as processReactiveBindings,Kp as processProtectedMedia,gh as processPartialHydrationDirectives,sg as processOnceDirective,vf as processMiddleware,yf as processMetaDirectives,Vd as processMetaDirective,Pj as processMarkdownFileDirectives,Vh as processMarkdownDirectives,of as processLoops,Qg as processKeepAliveDirectives,rg as processJsonDirective,$g as processInfiniteListDirectives,sf as processIncludes,aj as processImgComponents,Ok as processImageComponents,Bk as processImage,Td as processHeadDirective,Xd as processForms,Zd as processFormInputDirectives,tc as processExpressions,Hb as processEventDirectives,_d as processErrorDirective,Pf as processDynamicComponents,uh as processDirectives,di as processDirectiveAttributes,xg as processDeferDirectives,Ed as processCustomDirectives,wd as processCspDirectives,Br as processComponentProps,bc as processClientScript,Yd as processBasicFormDirectives,Lg as processAsyncDirectives,Fd as processAppearanceBootstrapDirective,Fa as processAnimationDirectives,ka as processA11yDirectives,ye as prepareImageDelivery,T as preloadTranslationsBackground,S as preloadTranslations,ro as preloadIslandHandlers,Ee as preloadIconCollection,wm as poolStrings,Gj as pluginManager,Ae as placeholdersWarmed,Bg as performLeave,Ag as performEnter,Qe as pendingLifecycleCounts,Ue as peek,pf as partialsCache,pj as parseVideoDirectiveOptions,Vo as parseUrl,aq as parseThumbhashString,dd as parseSwitchBlock,Ah as parseSlots,Bh as parseSlotElement,id as parseScriptDeclarations,Cj as parseSFCComponent,Lp as parseProtectedArgs,nf as parseLoopBinding,$i as parseImgComponent,ri as parseImageUrl,Nk as parseImageComponent,In as parseFormBody,fd as parseExpressionWithFilters,Pm as parseDefaults,wn as parseCookies,Ll as parseContainerSelector,ad as parseConditionalBlock,gd as parseArguments,Ma as parseAnimationShorthand,wr as optional,xm as optimizeTemplate,Tk as optimizeImage,Uk as optimizeDirectory,yr as oneOf,qf as onceStore,jl as onUpdated,Dc as onUpdate,ll as onUnmounted,Gl as onServer,hl as onMounted,Me as onMount,mh as onHydrated,zq as onErrorCaptured,Ne as onDestroy,Wg as onDeactivated,Fl as onClient,il as onBeforeUpdate,kl as onBeforeUnmount,gl as onBeforeMount,Vg as onActivated,Vp as observeElement,An as notFound,Wf as normalizeCriticalHeadOrder,yq as nextTick,Sm as negotiateEncoding,Ua as navigateTo,nl as mountInstance,Ea as motionDirective,pd as moderateCspPreset,vm as minifyHtml,Cf as metaDirective,fg as metaDedupKey,Wo as mergeParams,hg as mergeHtmlAttrs,Kd as mergeHeadConfigs,yc as mergeCssConfig,td as mergeCspDirectives,Ra as matchRoute,Wh as markdownDirectiveHandler,Nj as markdownCache,ga as looksLikeGlob,ir as localizePath,U as loadTranslationLazy,_ as loadTranslation,Jj as loadStxConfig,db as loadMiddlewareFromDirectory,jm as loadManifest,Rp as loadElement,Cm as loadChannels,pr as lintStxStrict,Tp as lazyLoadAll,Sp as lazyLoad,Ha as keyframeDirective,Iq as jsxs,Jq as jsxDEV,Hq as jsx,yn as jsonResponse,re as islandDirective,l as isTest,Wl as isSpaNavigation,Pl as isSpaNavRequest,zp as isSignatureValid,Re as isSignal,zk as isSharpAvailable,kn as isServerEnvironment,Dl as isServer,yb as isRuntimeOwnedColonAttr,da as isRtlLocale,j as isProduction,ia as isPresentationalRole,Op as isNativeLazySupported,Tq as isMarkdownPath,Q as isLoading,R as isLoaded,Gh as isJavaScriptScript,Pp as isIntersectionObserverSupported,Hk as isImageFile,Ak as isImageBackendAvailable,aa as isICUFormat,lh as isHydrated,Lh as isHydrateTrigger,Mc as isHttpStatus,jn as isEdgeEnvironment,qr as isDirectiveKind,k as isDevelopment,Se as isDerived,Uj as isCssOnlyChange,Rm as isCompressible,El as isClient,Ng as isAsyncComponent,Jn as isActionableMethod,ep as invert,$e as invalidateFileCacheByDir,_e as invalidateFileCache,sc as interpolateScriptsInTemplate,qc as interpolateScriptExpressions,rc as interpolateScriptAttributes,x as inlineError,er as injectThemeBootstrap,Bf as injectSeoTags,br as injectSeo,hf as injectRouterScript,Tj as injectHotReload,kb as injectHeatmap,Cc as injectCss,ud as injectCspMetaTag,pg as injectConfigHeadTags,Vf as injectColorModeBootScript,jg as injectCloakStyle,ag as injectBuildId,Xb as injectBrowserCoreAutoImports,Ic as injectAnalytics,uq as inject,yl as initStoreRegistry,uk as initNetlify,to as initLoadingIndicator,Qp as initLazyLoading,Gn as initFile,Yp as initBlurUp,cq as initAllBlurUp,cj as imgDirective,Rk as imageDirective,Rn as hydrateTemplateStream,Qn as hydrateTemplate,qo as hydrateIslands,ih as hydrateIsland,Sn as hydrateFragment,jh as hydrateByStrategy,kh as hydrateAll,Jo as hydrate,$n as htmlResponse,lg as hoistLeadingHeadTags,Xf as hoistColorModeBootScript,lb as heatmapDirective,Mi as hashString,gf as hashFilePath,Ki as hashFile,Li as hashBuffer,Nf as hasVueTemplateSyntax,mf as hasVariables,Oo as hasStore,hc as hasPlaceholders,sk as hasNetlifyConfig,ab as hasMiddleware,Ib as hasEventDirectives,og as hasDocumentShell,yh as hasDirectives,ma as hasDOMSupport,Kk as handleImageRequest,Aq as handleError,Qq as h,Gk as groupVariantsByFormat,cp as grayscale,Un as gitHash,pm as getUnusedDirectives,V as getTranslationSync,O as getTranslationCacheStats,W as getTranslationAsync,ba as getTranslation,nk as getTotalSize,Ap as getTimeUntilExpiry,ug as getStoreScript,Po as getStoreNames,No as getStore,gk as getStorageSize,fk as getStorageKeys,Rh as getSourceLineInfo,Ih as getSharedTranspiler,la as getScreenReaderOnlyStyle,wj as getScopeAttribute,He as getRouteParams,Mb as getPublicEnvDefine,Nb as getPublicEnv,wh as getPositionInfo,ec as getPlaceholderRegistry,Ji as getPlaceholderCacheStats,Hd as getPageMeta,kd as getNonce,Ik as getMimeType,cb as getMiddlewareNames,$a as getMiddleware,ca as getLocaleDirection,P as getLoadingState,Y as getLoadingLocales,ze as getImagePlaceholder,Ck as getImageMetadata,we as getImageDelivery,Io as getHydrationRuntime,Al as getHydratedStoreState,Xj as getHmrServer,Gd as getHead,Ao as getHMRHandler,vi as getFormatExtension,Oi as getFileMtime,Fk as getFallbackVariant,f as getErrorMessage,c as getErrorLocale,n as getErrorConfig,i as getErrorCodeName,Zh as getDirectives,Yh as getDirective,Zk as getCurrentInstance,zc as getCssServeAsset,sd as getCspPreset,Bd as getCspHeaderName,Uh as getComponentCacheStats,ej as getCachedVideoResult,Ep as getCachedSignature,bf as getCachedSignalsRuntime,cf as getCachedRouterScript,Hi as getCachedPlaceholder,Vi as getCachedImageResult,Pi as getCached,Si as getCacheStats,_f as getBuildId,zm as getBroadcastServer,ui as getBestVariant,lc as getAllFilters,ii as generateWidthSrcset,Zg as generateVirtualListCSS,jq as generateVideoPreview,he as generateValidationScript,kq as generateUploadRuntime,qm as generateTreeShakenBundle,Eg as generateTransitionRuntime,Dg as generateTransitionCSS,ij as generateThumbnails,Ai as generateThumbhashPlaceholder,$m as generateTemplatesDocs,Kg as generateSuspenseRuntime,Jg as generateSuspenseCSS,Do as generateStateScript,si as generateSrcsetData,Zi as generateSrcset,Dk as generateSrcSet,jj as generateSpriteSheet,sq as generateSpaShell,ti as generateSourceTags,oi as generateSizesFromBreakpoints,ni as generateSizesAttribute,Ek as generateSizes,Ff as generateSitemapIndex,cr as generateSitemap,Np as generateSimpleMediaPicker,Hp as generateSignatureRuntime,Xe as generateSignalsRuntimeDev,We as generateSignalsRuntime,ac as generateServerDataBridge,tj as generateScopeId,Dj as generateSFCWebComponent,Fb as generateRuntimeScript,Pa as generateRouteTypes,Qa as generateRouteManifest,Hf as generateRobotsTxt,dr as generateRobots,Yi as generateResponsiveVariants,zj as generateReactiveWebComponentTS,yj as generateReactiveWebComponent,Bj as generateReactiveRuntime,Aj as generateReactiveMixin,hj as generatePoster,Gi as generatePlaceholderStyle,Fi as generatePlaceholderCSS,zi as generatePlaceholder,hh as generatePartialHydrationCSS,jd as generateNonce,ok as generateNetlifyToml,mq as generateMinifiedMediaRuntime,lq as generateMediaRuntime,Mp as generateMediaManagerEmbed,hm as generateManifest,vo as generateLoadingIndicatorHtml,Xp as generateLazyLoadRuntime,$l as generateLayoutTypes,Ci as generateLQIP,Ug as generateKeepAliveRuntime,Tg as generateKeepAliveCSS,oh as generateIslandManifest,iq as generateImagePreview,Vk as generateImageManifest,Ho as generateHydrationScript,ve as generateHydrationRuntime,Ko as generateHydrationCSS,bh as generateHydrationBootstrap,Sj as generateHotReloadScript,jb as generateHeatmapScript,yo as generateHMRClientScript,kj as generateHLSManifest,Eo as generateEventBindings,mi as generateDprSrcsetWithVariableQuality,li as generateDprSrcset,mg as generateDocumentShell,en as generateDocs,an as generateDirectivesDocs,ci as generateDirectiveRuntime,If as generateDefaultRobotsTxt,lj as generateDASHManifest,Bc as generateCss,nd as generateCspMetaTag,md as generateCspHeader,Fq as generateCompositionRuntime,_m as generateComponentsDocs,ch as generateComponentManifest,Ym as generateComponentDoc,Ei as generateColorPlaceholder,Uf as generateColorModeBootScript,ql as generateClientRuntime,Ni as generateCacheKey,_b as generateBrowserAutoImportDestructuring,dq as generateBlurUpRuntime,eq as generateBlurUpCSS,Fc as generateBindingsRuntime,ji as generateAutoWidthSrcset,Zb as generateAutoImportDestructuring,Pg as generateAsyncComponentRuntime,Og as generateAsyncComponentCSS,Na as generateAnimationRuntime,La as generateAnimationCSS,Hc as generateAnalyticsScript,po as formatTypecheckDiagnostics,jo as formatTypeErrors,Dn as formatStxContent,mk as formatSize,Ta as formatRoutes,En as formatMarkdownContent,g as formatLocalizedError,$ as formatICU,p as formatFilePath,w as formatError,ar as formatDoctorReport,bn as formatDocsAsMarkdown,dn as formatDocsAsJson,cn as formatDocsAsHtml,lp as format,um as foldConstants,kp as flipVertical,jp as flipHorizontal,am as fingerprint,no as findRuntimeTypeDeclarations,_q as findPantryPackage,$c as findMatchingEndTag,Xc as findMatchingDelimiter,Jb as findInterpolationEnd,bd as findIfBlocks,ed as findExpressions,Sa as findErrorPage,cd as findDirectiveBlocks,rm as findDeadCode,rm as findDeadBranches,Ml as findContainerRegion,Zm as findComponentFiles,Er as findCommonDir,lk as filterRequiredFiles,Ph as fileExists,jf as extractVariables,fm as extractTemplateExpressions,ne as extractStreamBoundaries,Fo as extractState,Eh as extractSlotContent,lf as extractScriptFromTemplate,em as extractScriptBlocks,fc as extractPlaceholders,_c as extractParenthesizedExpression,Nc as extractPageResponseStatus,hb as extractLayoutMetadata,Di as extractDominantColor,hd as extractDirectiveParams,zh as extractDirectiveNames,Xl as extractContainerContent,Wm as extractComponentProps,dh as extractComponentName,Xm as extractComponentDescription,Ac as extractClassNames,$b as extractBridgeData,eh as extractBoundProps,Yc as extractBalancedExpression,Ub as extractAndStripCssImports,xj as extractAndScopeStyles,Gb as extractAndProcessEvents,$j as externalizeSharedAssets,ak as externalizeRepeatedAssets,_j as externalizeHtml,vc as evaluateExpression,tm as evaluateConstant,Vc as evaluateAuthExpression,oc as escapeHtmlValue,nc as escapeHtml,C as errorRecovery,E as errorLogger,zg as ensureTeleportTargets,qg as ensureDocumentShell,de as enhancedValidationRules,Um as enableDevTools,sm as eliminateDeadCode,Ke as effect,sp as dprUrls,fn as docsCommand,Zl as discoverLayoutNames,Wp as disconnectObserver,Vm as disableDevTools,F as devHelpers,Sl as detectShell,hn as detectRuntime,pk as detectProjectConfig,wi as detectFormat,mm as detectBuildMode,Je as derived,tk as deploy,Lj as defineStxConfig,So as defineStore,Cq as defineSlots,or as defineSiteConfig,sr as definePropsWithValidation,rr as defineProps,Fj as definePlugin,Nd as definePageMeta,Wa as defineMiddleware,qh as defineForm,xq as defineExpose,wq as defineEmits,$h as defineDirective,Sq as defineCustomElement,Pn as defineConfig,ai as defineClientDirective,Mg as defineAsyncComponent,nq as defaultMediaConfig,Xk as defaultImageConfig,M as defaultI18nConfig,ib as defaultHeatmapConfig,Wd as defaultFormClasses,ic as defaultFilters,Dd as defaultCspConfig,Hj as defaultConfig,Cr as default,xc as deepMergeThemes,Qf as dedupeScopedStyles,Bi as decodeThumbhash,yd as cspNonceDirective,xd as cspDirective,bq as crossfadeTransition,Yo as crop,Xg as createVirtualList,qj as createVideoDirective,un as createVercelHandler,go as createTypeChecker,fa as createTranslateFilter,qn as createTextEncoderStream,Rq as createStxApp,pn as createStreamingResponse,pe as createStreamRenderer,Qo as createStore,Za as createStorageManager,Xa as createServerCookieManager,$k as createScope,Hg as createSSRSuspense,Ge as createRouter,eb as createRouteLocation,eo as createRoute,al as createRef,bl as createReactive,Eq as createProvideContext,Wn as createProject,On as createProductionBuild,dc as createPlaceholder,ym as createOptimizedBuild,vn as createNetlifyHandler,hk as createNetlifyClient,fb as createMiddlewareContext,co as createMiddleware,Up as createLazyObserver,Rg as createKeepAliveCache,mn as createKVNamespace,fh as createIslandRegistry,bj as createImgDirective,Sk as createImagePlugin,Lk as createImageHandler,Qk as createImageDirective,nb as createHeatmapAggregator,kk as createFileManifest,ln as createEnvAccessor,z as createEnhancedError,on as createEdgeHandler,nn as createEdgeCache,Sh as createDetailedErrorMessage,tn as createDenoHandler,qk as createDefaultNetlifyConfig,Cd as createCspHeaders,xn as createCookie,cl as createComputed,_k as createComponentInstance,sn as createCloudflareHandler,Ya as createClientCookieManager,bi as createBuiltinDirectives,Rq as createApp,Ka as createAnimationTimeline,$o as cover,kf as convertToCommonJS,gp as contrast,_o as contain,y as consoleError,m as configureErrorHandling,Kj as config,cl as computed,Tm as compressResponse,Kf as composerPattern,Jf as composer,Ul as composeShellWithPage,Nm as componentDirective,Nh as componentClientSignalNames,gm as compileTemplate,a as collectRepeatedFlag,jk as collectDeployFiles,kg as cloakStyleFragment,gj as clearVideoCache,N as clearTranslationCache,vg as clearStoreCache,ek as clearStorage,Fp as clearSignatureCache,Ii as clearPlaceholderCache,rf as clearOnceStore,ld as clearNonce,bb as clearMiddleware,Be as clearImagePlaceholders,xe as clearImageDeliveryCatalog,Pk as clearImageCache,e as clearErrorMessages,df as clearDevCaches,mc as clearCustomFilters,Mf as clearComposers,wg as clearComposableCache,Th as clearComponentCache,Ri as clearCache,uo as cleanupLoadingIndicator,Jl as classifyScript,Kl as classifyAllScripts,ho as checkTemplateFile,io as checkTemplate,ef as checkCache,Cp as checkAuthAccess,na as checkA11yWithRegex,oa as checkA11y,Im as channel,Cn as captureScreenshots,Bn as captureScreenshot,Z as cancelPendingLoads,ik as calculateSha1,ki as calculateOptimalWidths,ff as cacheTemplate,sj as buildWebComponents,ko as buildVirtualSource,pq as buildViews,Uo as buildUrl,je as buildSuspenseResolveScript,nr as buildStaticSite,qb as buildRuntimeGlobalsDestructure,bm as buildRuntimeAsset,cm as buildRouterAsset,mr as buildLangPickerScript,qi as buildImageUrl,bg as buildIdFragment,gg as buildHtmlAttrs,km as buildForProduction,Qm as buildComponentLibrary,Dp as buildAuthParams,lm as buildApp,kr as buildAlternateLinks,Nn as build,Gm as broadcastPrivate,Hm as broadcastPresence,Dm as broadcast,fp as brightness,ap as blur,Db as blankInertHtmlRegions,xp as batchSignUrls,Le as batch,sa as autoFixA11yFile,ta as autoFixA11yDirectory,ra as autoFixA11y,np as auto,ja as attributeValue,dm as assetTags,Eb as asInvocableStatement,zr as arrayOf,hr as applyTranslations,Xi as applyTransformations,Fh as applySlots,Mm as applyPropDefaults,qp as applyPreset,ig as applyHtmlAttrs,Sd as applyHead,uc as applyFilters,Ql as appendVary,rd as apiCspPreset,Da as animationGroupDirective,mj as analyzeVideo,om as analyzeUsage,Hl as analyzeTemplate,Il as analyzeProject,om as analyzeDirectiveUsage,Jc as analyticsDirective,Zn as addStore,Yn as addPage,vd as addNonceToInlineContent,_n as addLayout,Xn as addComponent,Ln as actionRedirectResponse,Va as abortNavigation,ua as a11yDirective,af as __setSignalsGeneratorsForTest,$f as __setBuildIdForTest,dj as VideoProcessorCache,rh as Validator,xa as TransitionType,za as TransitionEase,ya as TransitionDirection,Wc as Tokenizer,fo as TemplateTypeChecker,Fn as TEMPLATE_PRESETS,v as StxValidationError,r as StxSyntaxError,t as StxSecurityError,s as StxRuntimeError,u as StxFileError,q as StxError,Nq as Show,ke as SUSPENSE_RESOLVER_RUNTIME,ob as STX_RUNTIME_GLOBALS,Wb as STX_AUTO_IMPORTS,Pb as STATE_DIR_ENV_VAR,Ga as SPRING_PRESETS,Nl as SPA_NAV_HEADER,xb as RUNTIME_OWNED_COLON_ATTRS,zb as RUNTIME_HANDLED_X_ATTRS,Kc as RESPONSE_STATUS_KEY,Lc as RESPONSE_HEADERS_KEY,tb as REACTIVE_RUNTIME_GLOBALS,Mn as ProductionBuild,Pq as Portal,Vn as PROJECT_TEMPLATES,pp as PRESETS,sb as NON_CLIENT_PRIMITIVES,Lo as MemorySessionStore,hi as MIME_TYPES,ei as MEDIA_DEFAULT_WIDTHS,gi as MEDIA_DEFAULT_FORMATS,Yl as LAYOUT_TYPES_FILE,Ui as ImageProcessorCache,Jk as ImageProcessingError,Go as HydrationRuntime,Rj as HotReloadServer,mb as HeatmapAggregator,eg as HTML_CLASS_MARKER,dg as HTML_ATTRS_MARKER,Gq as Fragment,Oq as For,Ol as FRAGMENT_CACHE_CONTROL,D as ErrorLogger,h as ErrorCodes,Zj as EXTERNALIZED_ASSET_DIR,vk as DeployError,wk as DEFAULT_WIDTHS,Aa as DEFAULT_TRANSITION_OPTIONS,Ob as DEFAULT_STATE_DIR,yk as DEFAULT_QUALITY,xi as DEFAULT_PLACEHOLDER_OPTIONS,xk as DEFAULT_FORMATS,fi as DEFAULT_DPR_VALUES,xo as ComponentHMRHandler,pb as COMPONENT_SCOPE_LOCAL_GLOBALS,Bb as COMPONENT_PASSTHROUGH_X_ATTRS,rb as COMPILE_TIME_ONLY_GLOBALS,pi as COMMON_SIZES,Sf as COLOR_MODE_BOOT_MARKER,Tf as COLOR_MODE_BOOT_GLOBAL,cg as CLOAK_STYLE,Km as BroadcastServer,Jm as Broadcast,Yf as BUILD_ID_META,Zf as BUILD_ID_HEADER,Lb as BROWSER_CORE_IMPORTS,yi as BLUR_UP_CSS,Ab as ALPINE_BRIDGE_X_ATTRS,Zq as $path};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{Ao as a,Bo as b,Co as c,Do as d,Eo as e,Fo as f}from"./chunk-qccdz9t1.js";import"./chunk-q68xmak4.js";import"./chunk-c0an64km.js";import"./chunk-t1k5dpbr.js";import"./chunk-52mh63sp.js";import"./chunk-5k3qb1am.js";import"./chunk-39f40yc4.js";import"./chunk-ysnk7x79.js";import"./chunk-0f1kz0x2.js";import"./chunk-ayrjwkyw.js";import"./chunk-c6fw33zh.js";import"./chunk-bf8wf3r2.js";import"./chunk-jn6m8zf7.js";import"./chunk-sskbegsz.js";export{f as processStackReplacements,e as processStackPushDirectives,d as processIncludes,a as partialsCache,b as onceStore,c as clearOnceStore};
2
+ import{Ao as a,Bo as b,Co as c,Do as d,Eo as e,Fo as f}from"./chunk-9rkntp0z.js";import"./chunk-q68xmak4.js";import"./chunk-c0an64km.js";import"./chunk-t1k5dpbr.js";import"./chunk-52mh63sp.js";import"./chunk-zcmtqan3.js";import"./chunk-39f40yc4.js";import"./chunk-ysnk7x79.js";import"./chunk-0f1kz0x2.js";import"./chunk-ayrjwkyw.js";import"./chunk-c6fw33zh.js";import"./chunk-bf8wf3r2.js";import"./chunk-jn6m8zf7.js";import"./chunk-sskbegsz.js";export{f as processStackReplacements,e as processStackPushDirectives,d as processIncludes,a as partialsCache,b as onceStore,c as clearOnceStore};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{a as x,b as u,c as b,d as Az,e as G,f as d,h as y,i as I,j as Uz,k as v}from"./chunk-0y46fbkx.js";import{l as h,m as f,n as g}from"./chunk-q9n5swx7.js";import{so as V}from"./chunk-qccdz9t1.js";import"./chunk-q68xmak4.js";import"./chunk-c0an64km.js";import"./chunk-t1k5dpbr.js";import"./chunk-52mh63sp.js";import"./chunk-5k3qb1am.js";import"./chunk-39f40yc4.js";import"./chunk-ysnk7x79.js";import"./chunk-0f1kz0x2.js";import"./chunk-ayrjwkyw.js";import"./chunk-c6fw33zh.js";import"./chunk-bf8wf3r2.js";import"./chunk-jn6m8zf7.js";import{dv as F}from"./chunk-sskbegsz.js";import l from"fs";import R from"path";function m(z,J){let Z=[R.join(z.root,"stx.config.ts"),R.join(z.root,"stx.config.js"),R.join(z.root,"stx.config.mjs")],K=J.debounceMs??300,$=null,X=[];for(let B of Z)try{if(!l.existsSync(B))continue;let Y=l.watch(B,(W)=>{if(W==="change"){if($)clearTimeout($);$=setTimeout(async()=>{d("Config file changed, restarting...");try{await J.onChange()}catch(j){G(`Failed to restart: ${j}`)}},K)}});X.push(Y)}catch{}return{stop(){if($)clearTimeout($);for(let B of X)B.close()}}}import E from"fs";import i from"path";var Gz=".stx/story/analytics.json",Nz=1,c=1e4;class M{storage;storagePath;currentSession=null;dirty=!1;viewStartTimes=new Map;constructor(z){this.storagePath=i.join(z,Gz),this.storage=this.loadStorage(),this.startSession()}loadStorage(){try{let z=E.readFileSync(this.storagePath,"utf-8");return JSON.parse(z)}catch{return{version:Nz,events:[],sessions:[]}}}async save(){if(!this.dirty)return;let z=i.dirname(this.storagePath);if(await E.promises.mkdir(z,{recursive:!0}),this.storage.events.length>c)this.storage.events=this.storage.events.slice(-c);await E.promises.writeFile(this.storagePath,JSON.stringify(this.storage,null,2)),this.dirty=!1}startSession(){this.endSession(),this.currentSession={id:Hz(),startTime:Date.now(),componentViews:[]},this.storage.sessions.push(this.currentSession),this.dirty=!0}endSession(){if(this.currentSession)this.currentSession.endTime=Date.now(),this.currentSession=null}track(z){this.storage.events.push({...z,timestamp:Date.now()}),this.dirty=!0}trackView(z,J){if(this.endViewTiming(z),this.viewStartTimes.set(z,Date.now()),this.track({type:"view",componentId:z,variantId:J}),this.currentSession&&!this.currentSession.componentViews.includes(z))this.currentSession.componentViews.push(z)}endViewTiming(z){let J=this.viewStartTimes.get(z);if(J){let Z=Date.now()-J;this.track({type:"view",componentId:z,metadata:{duration:Z,endView:!0}}),this.viewStartTimes.delete(z)}}trackPropChange(z,J,Z){this.track({type:"prop_change",componentId:z,propName:J,metadata:{value:Z}})}trackVariantSwitch(z,J){this.track({type:"variant_switch",componentId:z,variantId:J})}trackSearch(z,J){this.track({type:"search",query:z,metadata:{resultCount:J}})}getComponentAnalytics(z,J){let Z=this.storage.events.filter((Q)=>Q.componentId===z),K=Z.filter((Q)=>Q.type==="view"&&!Q.metadata?.endView),$=Z.filter((Q)=>Q.type==="prop_change"),X=Z.filter((Q)=>Q.type==="variant_switch"),B={};for(let Q of $)if(Q.propName)B[Q.propName]=(B[Q.propName]||0)+1;let Y={};for(let Q of X)if(Q.variantId)Y[Q.variantId]=(Y[Q.variantId]||0)+1;let W=new Set(this.storage.sessions.filter((Q)=>Q.componentViews.includes(z)).map((Q)=>Q.id)),j=Z.filter((Q)=>Q.metadata?.duration).map((Q)=>Q.metadata.duration),U=j.length>0?j.reduce((Q,D)=>Q+D,0)/j.length:0,_=Object.entries(B).sort((Q,D)=>D[1]-Q[1]).slice(0,5).map(([Q])=>Q);return{componentId:z,componentName:J,viewCount:K.length,uniqueViews:W.size,lastViewed:K[K.length-1]?.timestamp,propChanges:B,topChangedProps:_,variantViews:Y,avgTimeSpent:U}}getMostViewedComponents(z=10){let J=new Map;for(let Z of this.storage.events)if(Z.type==="view"&&Z.componentId&&!Z.metadata?.endView)J.set(Z.componentId,(J.get(Z.componentId)||0)+1);return Array.from(J.entries()).map(([Z,K])=>({componentId:Z,viewCount:K})).sort((Z,K)=>K.viewCount-Z.viewCount).slice(0,z)}getMostChangedProps(z=10){let J=new Map;for(let Z of this.storage.events)if(Z.type==="prop_change"&&Z.propName)J.set(Z.propName,(J.get(Z.propName)||0)+1);return Array.from(J.entries()).map(([Z,K])=>({propName:Z,changeCount:K})).sort((Z,K)=>K.changeCount-Z.changeCount).slice(0,z)}getSearchAnalytics(){let z=this.storage.events.filter(($)=>$.type==="search"),J=new Map,Z=0;for(let $ of z){if($.query)J.set($.query,(J.get($.query)||0)+1);if($.metadata?.resultCount!==void 0)Z+=$.metadata.resultCount}let K=Array.from(J.entries()).map(([$,X])=>({query:$,count:X})).sort(($,X)=>X.count-$.count).slice(0,10);return{totalSearches:z.length,topQueries:K,avgResultCount:z.length>0?Z/z.length:0}}clear(){this.storage.events=[],this.storage.sessions=[],this.dirty=!0,this.startSession()}exportAnalytics(){return JSON.stringify({exportedAt:Date.now(),...this.storage},null,2)}}function Hz(){return`session-${Date.now()}-${Math.random().toString(36).slice(2,8)}`}import P from"fs";import p from"path";var Fz=".stx/story/bookmarks.json",Vz=1;class T{storage;storagePath;dirty=!1;constructor(z){this.storagePath=p.join(z,Fz),this.storage=this.loadStorage()}loadStorage(){try{let z=P.readFileSync(this.storagePath,"utf-8");return JSON.parse(z)}catch{return{version:Vz,bookmarks:[]}}}async save(){if(!this.dirty)return;let z=p.dirname(this.storagePath);await P.promises.mkdir(z,{recursive:!0}),await P.promises.writeFile(this.storagePath,JSON.stringify(this.storage,null,2)),this.dirty=!1}addBookmark(z,J,Z,K={}){let $={id:Rz(),name:K.name||`${z}/${J}`,storyId:z,variantId:J,props:Z,created:Date.now(),notes:K.notes,color:K.color};return this.storage.bookmarks.push($),this.dirty=!0,$}getAllBookmarks(){return[...this.storage.bookmarks]}getBookmarksForStory(z){return this.storage.bookmarks.filter((J)=>J.storyId===z)}getBookmark(z){return this.storage.bookmarks.find((J)=>J.id===z)}isBookmarked(z,J){return this.storage.bookmarks.some((Z)=>Z.storyId===z&&Z.variantId===J)}updateBookmark(z,J){let Z=this.getBookmark(z);if(!Z)return;return Object.assign(Z,J),this.dirty=!0,Z}deleteBookmark(z){let J=this.storage.bookmarks.findIndex((Z)=>Z.id===z);if(J===-1)return!1;return this.storage.bookmarks.splice(J,1),this.dirty=!0,!0}toggleBookmark(z,J,Z){let K=this.storage.bookmarks.find((X)=>X.storyId===z&&X.variantId===J);if(K)return this.deleteBookmark(K.id),{added:!1};return{added:!0,bookmark:this.addBookmark(z,J,Z)}}exportBookmarks(){return JSON.stringify(this.storage,null,2)}importBookmarks(z,J=!0){let Z=JSON.parse(z),K=0;for(let $ of Z.bookmarks){if(J){let X=this.storage.bookmarks.find((B)=>B.id===$.id);if(X)Object.assign(X,$);else this.storage.bookmarks.push($)}else this.storage.bookmarks.push($);K++}if(K>0)this.dirty=!0;return K}}function Rz(){return`bm-${Date.now()}-${Math.random().toString(36).slice(2,8)}`}var N=new Set;function s(){return{open(z){N.add(z),z.send(JSON.stringify({type:"connected",timestamp:Date.now()}))},close(z){N.delete(z)},message(z,J){}}}function q(z){let J=JSON.stringify({...z,timestamp:z.timestamp||Date.now()});for(let Z of N)try{Z.send(J)}catch{N.delete(Z)}}function n(z,J){q({type:"story-update",data:{storyId:z,...J}})}function a(z,J){q({type:"story-add",data:{storyId:z,...J}})}function o(z){q({type:"story-remove",data:{storyId:z}})}function r(z){return`
2
+ import{a as x,b as u,c as b,d as Az,e as G,f as d,h as y,i as I,j as Uz,k as v}from"./chunk-0y46fbkx.js";import{l as h,m as f,n as g}from"./chunk-q9n5swx7.js";import{so as V}from"./chunk-9rkntp0z.js";import"./chunk-q68xmak4.js";import"./chunk-c0an64km.js";import"./chunk-t1k5dpbr.js";import"./chunk-52mh63sp.js";import"./chunk-zcmtqan3.js";import"./chunk-39f40yc4.js";import"./chunk-ysnk7x79.js";import"./chunk-0f1kz0x2.js";import"./chunk-ayrjwkyw.js";import"./chunk-c6fw33zh.js";import"./chunk-bf8wf3r2.js";import"./chunk-jn6m8zf7.js";import{dv as F}from"./chunk-sskbegsz.js";import l from"fs";import R from"path";function m(z,J){let Z=[R.join(z.root,"stx.config.ts"),R.join(z.root,"stx.config.js"),R.join(z.root,"stx.config.mjs")],K=J.debounceMs??300,$=null,X=[];for(let B of Z)try{if(!l.existsSync(B))continue;let Y=l.watch(B,(W)=>{if(W==="change"){if($)clearTimeout($);$=setTimeout(async()=>{d("Config file changed, restarting...");try{await J.onChange()}catch(j){G(`Failed to restart: ${j}`)}},K)}});X.push(Y)}catch{}return{stop(){if($)clearTimeout($);for(let B of X)B.close()}}}import E from"fs";import i from"path";var Gz=".stx/story/analytics.json",Nz=1,c=1e4;class M{storage;storagePath;currentSession=null;dirty=!1;viewStartTimes=new Map;constructor(z){this.storagePath=i.join(z,Gz),this.storage=this.loadStorage(),this.startSession()}loadStorage(){try{let z=E.readFileSync(this.storagePath,"utf-8");return JSON.parse(z)}catch{return{version:Nz,events:[],sessions:[]}}}async save(){if(!this.dirty)return;let z=i.dirname(this.storagePath);if(await E.promises.mkdir(z,{recursive:!0}),this.storage.events.length>c)this.storage.events=this.storage.events.slice(-c);await E.promises.writeFile(this.storagePath,JSON.stringify(this.storage,null,2)),this.dirty=!1}startSession(){this.endSession(),this.currentSession={id:Hz(),startTime:Date.now(),componentViews:[]},this.storage.sessions.push(this.currentSession),this.dirty=!0}endSession(){if(this.currentSession)this.currentSession.endTime=Date.now(),this.currentSession=null}track(z){this.storage.events.push({...z,timestamp:Date.now()}),this.dirty=!0}trackView(z,J){if(this.endViewTiming(z),this.viewStartTimes.set(z,Date.now()),this.track({type:"view",componentId:z,variantId:J}),this.currentSession&&!this.currentSession.componentViews.includes(z))this.currentSession.componentViews.push(z)}endViewTiming(z){let J=this.viewStartTimes.get(z);if(J){let Z=Date.now()-J;this.track({type:"view",componentId:z,metadata:{duration:Z,endView:!0}}),this.viewStartTimes.delete(z)}}trackPropChange(z,J,Z){this.track({type:"prop_change",componentId:z,propName:J,metadata:{value:Z}})}trackVariantSwitch(z,J){this.track({type:"variant_switch",componentId:z,variantId:J})}trackSearch(z,J){this.track({type:"search",query:z,metadata:{resultCount:J}})}getComponentAnalytics(z,J){let Z=this.storage.events.filter((Q)=>Q.componentId===z),K=Z.filter((Q)=>Q.type==="view"&&!Q.metadata?.endView),$=Z.filter((Q)=>Q.type==="prop_change"),X=Z.filter((Q)=>Q.type==="variant_switch"),B={};for(let Q of $)if(Q.propName)B[Q.propName]=(B[Q.propName]||0)+1;let Y={};for(let Q of X)if(Q.variantId)Y[Q.variantId]=(Y[Q.variantId]||0)+1;let W=new Set(this.storage.sessions.filter((Q)=>Q.componentViews.includes(z)).map((Q)=>Q.id)),j=Z.filter((Q)=>Q.metadata?.duration).map((Q)=>Q.metadata.duration),U=j.length>0?j.reduce((Q,D)=>Q+D,0)/j.length:0,_=Object.entries(B).sort((Q,D)=>D[1]-Q[1]).slice(0,5).map(([Q])=>Q);return{componentId:z,componentName:J,viewCount:K.length,uniqueViews:W.size,lastViewed:K[K.length-1]?.timestamp,propChanges:B,topChangedProps:_,variantViews:Y,avgTimeSpent:U}}getMostViewedComponents(z=10){let J=new Map;for(let Z of this.storage.events)if(Z.type==="view"&&Z.componentId&&!Z.metadata?.endView)J.set(Z.componentId,(J.get(Z.componentId)||0)+1);return Array.from(J.entries()).map(([Z,K])=>({componentId:Z,viewCount:K})).sort((Z,K)=>K.viewCount-Z.viewCount).slice(0,z)}getMostChangedProps(z=10){let J=new Map;for(let Z of this.storage.events)if(Z.type==="prop_change"&&Z.propName)J.set(Z.propName,(J.get(Z.propName)||0)+1);return Array.from(J.entries()).map(([Z,K])=>({propName:Z,changeCount:K})).sort((Z,K)=>K.changeCount-Z.changeCount).slice(0,z)}getSearchAnalytics(){let z=this.storage.events.filter(($)=>$.type==="search"),J=new Map,Z=0;for(let $ of z){if($.query)J.set($.query,(J.get($.query)||0)+1);if($.metadata?.resultCount!==void 0)Z+=$.metadata.resultCount}let K=Array.from(J.entries()).map(([$,X])=>({query:$,count:X})).sort(($,X)=>X.count-$.count).slice(0,10);return{totalSearches:z.length,topQueries:K,avgResultCount:z.length>0?Z/z.length:0}}clear(){this.storage.events=[],this.storage.sessions=[],this.dirty=!0,this.startSession()}exportAnalytics(){return JSON.stringify({exportedAt:Date.now(),...this.storage},null,2)}}function Hz(){return`session-${Date.now()}-${Math.random().toString(36).slice(2,8)}`}import P from"fs";import p from"path";var Fz=".stx/story/bookmarks.json",Vz=1;class T{storage;storagePath;dirty=!1;constructor(z){this.storagePath=p.join(z,Fz),this.storage=this.loadStorage()}loadStorage(){try{let z=P.readFileSync(this.storagePath,"utf-8");return JSON.parse(z)}catch{return{version:Vz,bookmarks:[]}}}async save(){if(!this.dirty)return;let z=p.dirname(this.storagePath);await P.promises.mkdir(z,{recursive:!0}),await P.promises.writeFile(this.storagePath,JSON.stringify(this.storage,null,2)),this.dirty=!1}addBookmark(z,J,Z,K={}){let $={id:Rz(),name:K.name||`${z}/${J}`,storyId:z,variantId:J,props:Z,created:Date.now(),notes:K.notes,color:K.color};return this.storage.bookmarks.push($),this.dirty=!0,$}getAllBookmarks(){return[...this.storage.bookmarks]}getBookmarksForStory(z){return this.storage.bookmarks.filter((J)=>J.storyId===z)}getBookmark(z){return this.storage.bookmarks.find((J)=>J.id===z)}isBookmarked(z,J){return this.storage.bookmarks.some((Z)=>Z.storyId===z&&Z.variantId===J)}updateBookmark(z,J){let Z=this.getBookmark(z);if(!Z)return;return Object.assign(Z,J),this.dirty=!0,Z}deleteBookmark(z){let J=this.storage.bookmarks.findIndex((Z)=>Z.id===z);if(J===-1)return!1;return this.storage.bookmarks.splice(J,1),this.dirty=!0,!0}toggleBookmark(z,J,Z){let K=this.storage.bookmarks.find((X)=>X.storyId===z&&X.variantId===J);if(K)return this.deleteBookmark(K.id),{added:!1};return{added:!0,bookmark:this.addBookmark(z,J,Z)}}exportBookmarks(){return JSON.stringify(this.storage,null,2)}importBookmarks(z,J=!0){let Z=JSON.parse(z),K=0;for(let $ of Z.bookmarks){if(J){let X=this.storage.bookmarks.find((B)=>B.id===$.id);if(X)Object.assign(X,$);else this.storage.bookmarks.push($)}else this.storage.bookmarks.push($);K++}if(K>0)this.dirty=!0;return K}}function Rz(){return`bm-${Date.now()}-${Math.random().toString(36).slice(2,8)}`}var N=new Set;function s(){return{open(z){N.add(z),z.send(JSON.stringify({type:"connected",timestamp:Date.now()}))},close(z){N.delete(z)},message(z,J){}}}function q(z){let J=JSON.stringify({...z,timestamp:z.timestamp||Date.now()});for(let Z of N)try{Z.send(J)}catch{N.delete(Z)}}function n(z,J){q({type:"story-update",data:{storyId:z,...J}})}function a(z,J){q({type:"story-add",data:{storyId:z,...J}})}function o(z){q({type:"story-remove",data:{storyId:z}})}function r(z){return`
3
3
  <script>
4
4
  (function() {
5
5
  const ws = new WebSocket('${z}');
@@ -556,7 +556,7 @@ window.__stxPerformance = {
556
556
 
557
557
  window.clearPerformanceMetrics = () => window.__stxPerformance.clear();
558
558
  </script>
559
- `}import w from"fs";import Xz from"path";var Mz=".stx/story/presets.json",C=1,Pz=10;class k{storage;storagePath;dirty=!1;constructor(z){this.storagePath=Xz.join(z,Mz),this.storage=this.loadStorage()}loadStorage(){try{let z=w.readFileSync(this.storagePath,"utf-8"),J=JSON.parse(z);if(J.version!==C)return this.migrateStorage(J);return J}catch{return{version:C,presets:[],recentIds:[]}}}migrateStorage(z){return{version:C,presets:z.presets||[],recentIds:z.recentIds||[]}}async save(){if(!this.dirty)return;let z=Xz.dirname(this.storagePath);await w.promises.mkdir(z,{recursive:!0}),await w.promises.writeFile(this.storagePath,JSON.stringify(this.storage,null,2)),this.dirty=!1}createPreset(z,J,Z={}){let K={id:Tz(),name:z,description:Z.description,props:J,componentId:Z.componentId,created:Date.now(),usageCount:0,tags:Z.tags};return this.storage.presets.push(K),this.dirty=!0,K}getPreset(z){return this.storage.presets.find((J)=>J.id===z)}getAllPresets(){return[...this.storage.presets]}getPresetsForComponent(z){return this.storage.presets.filter((J)=>!J.componentId||J.componentId===z)}getRecentPresets(){return this.storage.recentIds.map((z)=>this.getPreset(z)).filter((z)=>z!==void 0)}usePreset(z){let J=this.getPreset(z);if(!J)return;return J.lastUsed=Date.now(),J.usageCount++,this.storage.recentIds=[z,...this.storage.recentIds.filter((Z)=>Z!==z)].slice(0,Pz),this.dirty=!0,J}updatePreset(z,J){let Z=this.getPreset(z);if(!Z)return;return Object.assign(Z,J),this.dirty=!0,Z}deletePreset(z){let J=this.storage.presets.findIndex((Z)=>Z.id===z);if(J===-1)return!1;return this.storage.presets.splice(J,1),this.storage.recentIds=this.storage.recentIds.filter((Z)=>Z!==z),this.dirty=!0,!0}searchPresets(z){let J=z.toLowerCase();return this.storage.presets.filter((Z)=>{if(Z.name.toLowerCase().includes(J))return!0;if(Z.description?.toLowerCase().includes(J))return!0;if(Z.tags?.some((K)=>K.toLowerCase().includes(J)))return!0;return!1})}getMostUsedPresets(z=5){return[...this.storage.presets].sort((J,Z)=>Z.usageCount-J.usageCount).slice(0,z)}exportPresets(z){let J=z?this.storage.presets.filter((Z)=>z.includes(Z.id)):this.storage.presets;return JSON.stringify({presets:J},null,2)}importPresets(z,J=!1){let Z=JSON.parse(z),K=0;for(let $ of Z.presets){let X=this.storage.presets.find((B)=>B.id===$.id);if(X&&!J)continue;if(X)Object.assign(X,$);else this.storage.presets.push($);K++}if(K>0)this.dirty=!0;return K}}function Tz(){return`preset-${Date.now()}-${Math.random().toString(36).slice(2,8)}`}import S from"fs";var Qz=new Map;async function H(z,J,Z={}){let K=performance.now(),$=[];try{let X=await S.promises.stat(J),B=Qz.get(J),Y;if(B&&B.mtime===X.mtimeMs)Y=B.content;else Y=await S.promises.readFile(J,"utf-8"),Qz.set(J,{content:Y,mtime:X.mtimeMs,analyzed:null});let{processDirectives:W}=await import("./chunk-gp3s8020.js"),j={},U=A(Y);if(U)try{await V(U,j,J)}catch(O){$.push(`Warning: Could not extract script variables: ${O instanceof Error?O.message:String(O)}`)}if(Z.props)Object.assign(j,Z.props);let Q=await W(Y,j,J,{},new Set),D=Wz(Y),L=A(Y);return Q=jz(Q),Q=Dz(Q,j),{html:Q,css:D,js:L,errors:$,duration:performance.now()-K}}catch(X){return $.push(X instanceof Error?X.message:String(X)),{html:`<div class="stx-render-error">${Lz($[0])}</div>`,css:"",js:"",errors:$,duration:performance.now()-K}}}async function qz(z){try{let J=await S.promises.readFile(z,"utf-8"),Z=A(J);if(!Z)return null;let K={};if(await V(Z,K,z),Array.isArray(K.variants))return K.variants;return null}catch{return null}}async function Bz(z,J,Z,K){let $=J.story?.variants;if(!$){let Y=await qz(J.path);if(Y)$=Y}if(!$&&Z==="default")return H(z,J.path,{props:K||{}});if(!$)return H(z,J.path,{props:K||{}});let X=$.find((Y)=>Y.id===Z);if(!X&&Z==="default")return H(z,J.path,{props:K||{}});if(!X)return{html:'<div class="stx-render-error">Variant not found</div>',css:"",js:"",errors:[`Variant '${Z}' not found`],duration:0};let B={...X.state,...K};if(X.source)return wz(z,X.source,B);return H(z,J.path,{props:B})}async function wz(z,J,Z={}){let K=performance.now(),$=[];try{let{processDirectives:X}=await import("./chunk-gp3s8020.js"),B={...Z},Y=A(J);if(Y)try{await V(Y,B,"inline-template.stx")}catch{}let j=await X(J,B,"inline-template.stx",{},new Set);return j=jz(j),j=Dz(j,B),{html:j,css:Wz(J),js:A(J),errors:$,duration:performance.now()-K}}catch(X){return $.push(X instanceof Error?X.message:String(X)),{html:`<div class="stx-render-error">${Lz($[0])}</div>`,css:"",js:"",errors:$,duration:performance.now()-K}}}function Wz(z){let J=[],Z=/<style\b[^>]*>([\s\S]*?)<\/style>/gi,K=Z.exec(z);while(K!==null)J.push(K[1].trim()),K=Z.exec(z);return J.join(`
559
+ `}import w from"fs";import Xz from"path";var Mz=".stx/story/presets.json",C=1,Pz=10;class k{storage;storagePath;dirty=!1;constructor(z){this.storagePath=Xz.join(z,Mz),this.storage=this.loadStorage()}loadStorage(){try{let z=w.readFileSync(this.storagePath,"utf-8"),J=JSON.parse(z);if(J.version!==C)return this.migrateStorage(J);return J}catch{return{version:C,presets:[],recentIds:[]}}}migrateStorage(z){return{version:C,presets:z.presets||[],recentIds:z.recentIds||[]}}async save(){if(!this.dirty)return;let z=Xz.dirname(this.storagePath);await w.promises.mkdir(z,{recursive:!0}),await w.promises.writeFile(this.storagePath,JSON.stringify(this.storage,null,2)),this.dirty=!1}createPreset(z,J,Z={}){let K={id:Tz(),name:z,description:Z.description,props:J,componentId:Z.componentId,created:Date.now(),usageCount:0,tags:Z.tags};return this.storage.presets.push(K),this.dirty=!0,K}getPreset(z){return this.storage.presets.find((J)=>J.id===z)}getAllPresets(){return[...this.storage.presets]}getPresetsForComponent(z){return this.storage.presets.filter((J)=>!J.componentId||J.componentId===z)}getRecentPresets(){return this.storage.recentIds.map((z)=>this.getPreset(z)).filter((z)=>z!==void 0)}usePreset(z){let J=this.getPreset(z);if(!J)return;return J.lastUsed=Date.now(),J.usageCount++,this.storage.recentIds=[z,...this.storage.recentIds.filter((Z)=>Z!==z)].slice(0,Pz),this.dirty=!0,J}updatePreset(z,J){let Z=this.getPreset(z);if(!Z)return;return Object.assign(Z,J),this.dirty=!0,Z}deletePreset(z){let J=this.storage.presets.findIndex((Z)=>Z.id===z);if(J===-1)return!1;return this.storage.presets.splice(J,1),this.storage.recentIds=this.storage.recentIds.filter((Z)=>Z!==z),this.dirty=!0,!0}searchPresets(z){let J=z.toLowerCase();return this.storage.presets.filter((Z)=>{if(Z.name.toLowerCase().includes(J))return!0;if(Z.description?.toLowerCase().includes(J))return!0;if(Z.tags?.some((K)=>K.toLowerCase().includes(J)))return!0;return!1})}getMostUsedPresets(z=5){return[...this.storage.presets].sort((J,Z)=>Z.usageCount-J.usageCount).slice(0,z)}exportPresets(z){let J=z?this.storage.presets.filter((Z)=>z.includes(Z.id)):this.storage.presets;return JSON.stringify({presets:J},null,2)}importPresets(z,J=!1){let Z=JSON.parse(z),K=0;for(let $ of Z.presets){let X=this.storage.presets.find((B)=>B.id===$.id);if(X&&!J)continue;if(X)Object.assign(X,$);else this.storage.presets.push($);K++}if(K>0)this.dirty=!0;return K}}function Tz(){return`preset-${Date.now()}-${Math.random().toString(36).slice(2,8)}`}import S from"fs";var Qz=new Map;async function H(z,J,Z={}){let K=performance.now(),$=[];try{let X=await S.promises.stat(J),B=Qz.get(J),Y;if(B&&B.mtime===X.mtimeMs)Y=B.content;else Y=await S.promises.readFile(J,"utf-8"),Qz.set(J,{content:Y,mtime:X.mtimeMs,analyzed:null});let{processDirectives:W}=await import("./chunk-y3qng57q.js"),j={},U=A(Y);if(U)try{await V(U,j,J)}catch(O){$.push(`Warning: Could not extract script variables: ${O instanceof Error?O.message:String(O)}`)}if(Z.props)Object.assign(j,Z.props);let Q=await W(Y,j,J,{},new Set),D=Wz(Y),L=A(Y);return Q=jz(Q),Q=Dz(Q,j),{html:Q,css:D,js:L,errors:$,duration:performance.now()-K}}catch(X){return $.push(X instanceof Error?X.message:String(X)),{html:`<div class="stx-render-error">${Lz($[0])}</div>`,css:"",js:"",errors:$,duration:performance.now()-K}}}async function qz(z){try{let J=await S.promises.readFile(z,"utf-8"),Z=A(J);if(!Z)return null;let K={};if(await V(Z,K,z),Array.isArray(K.variants))return K.variants;return null}catch{return null}}async function Bz(z,J,Z,K){let $=J.story?.variants;if(!$){let Y=await qz(J.path);if(Y)$=Y}if(!$&&Z==="default")return H(z,J.path,{props:K||{}});if(!$)return H(z,J.path,{props:K||{}});let X=$.find((Y)=>Y.id===Z);if(!X&&Z==="default")return H(z,J.path,{props:K||{}});if(!X)return{html:'<div class="stx-render-error">Variant not found</div>',css:"",js:"",errors:[`Variant '${Z}' not found`],duration:0};let B={...X.state,...K};if(X.source)return wz(z,X.source,B);return H(z,J.path,{props:B})}async function wz(z,J,Z={}){let K=performance.now(),$=[];try{let{processDirectives:X}=await import("./chunk-y3qng57q.js"),B={...Z},Y=A(J);if(Y)try{await V(Y,B,"inline-template.stx")}catch{}let j=await X(J,B,"inline-template.stx",{},new Set);return j=jz(j),j=Dz(j,B),{html:j,css:Wz(J),js:A(J),errors:$,duration:performance.now()-K}}catch(X){return $.push(X instanceof Error?X.message:String(X)),{html:`<div class="stx-render-error">${Lz($[0])}</div>`,css:"",js:"",errors:$,duration:performance.now()-K}}}function Wz(z){let J=[],Z=/<style\b[^>]*>([\s\S]*?)<\/style>/gi,K=Z.exec(z);while(K!==null)J.push(K[1].trim()),K=Z.exec(z);return J.join(`
560
560
  `)}function jz(z){return z.replace(/<!--[\s\S]*?-->/g,"").replace(/<style\b[^>]*>[\s\S]*?<\/style>/gi,"").replace(/<script\b[^>]*>[\s\S]*?<\/script>/gi,"").replace(/^\s*\n/gm,"").trim()}function A(z){let J=[],Z=/<script\b[^>]*>([\s\S]*?)<\/script>/gi,K=Z.exec(z);while(K!==null)J.push(K[1].trim()),K=Z.exec(z);return J.join(`
561
561
  `)}function Dz(z,J){let Z=`<script>window.__stxProps = ${JSON.stringify(J)};</script>`;return z+Z}function Lz(z){return z.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}async function Oz(z,J){let Z=await I(z);f(z,Z);let K=v(z.config,Z);g(z,K),console.log(` Found ${Z.length} story files`);let $=typeof J.host==="string"?J.host:J.host===!0?"0.0.0.0":"localhost",X=new k(z.root),B=new T(z.root),Y=new M(z.root),W=s(),j=Bun.serve({port:J.port,hostname:$,fetch:async(Q,D)=>{let O=new URL(Q.url).pathname;if(O==="/__hmr"){if(D.upgrade(Q,{data:{isHmr:!0}}))return;return new Response("WebSocket upgrade failed",{status:400})}if(O.startsWith("/api/"))return Cz(z,O,Q,{presetsManager:X,bookmarksManager:B,analyticsTracker:Y});return kz(z,O,J.port)},websocket:{open(Q){W.open(Q)},close(Q){W.close(Q)},message(Q,D){W.message(Q,D)}}}),U=`http://${$}:${J.port}`,_=Uz(z,async(Q,D)=>{console.log(` [${Q}] ${D.relativePath}`);let L=await I(z);f(z,L);let O=v(z.config,L);if(g(z,O),Q==="add")a(D.id,{fileName:D.fileName});else if(Q==="unlink")o(D.id);else n(D.id,{fileName:D.fileName})});if(J.open){let Q=U;try{let{exec:D}=await import("child_process"),L=process.platform;D(`${L==="darwin"?"open":L==="win32"?"start":"xdg-open"} ${Q}`)}catch{}}return{server:j,url:U,close:async()=>{_(),j.stop()}}}async function Cz(z,J,Z,K){let{presetsManager:$,bookmarksManager:X,analyticsTracker:B}=K;if(J==="/api/stories")return Response.json({files:z.storyFiles.map((Y)=>({id:Y.id,fileName:Y.fileName,relativePath:Y.relativePath,treePath:Y.treePath})),tree:z.tree});if(J.startsWith("/api/story/")){let Y=J.slice(11),W=z.storyFiles.find((j)=>j.id===Y);if(!W)return new Response("Story not found",{status:404});try{let j=await Bun.file(W.path).text();return Response.json({id:W.id,fileName:W.fileName,relativePath:W.relativePath,content:j})}catch{return new Response("Error reading story",{status:500})}}if(J==="/api/config")return Response.json({theme:z.config.theme,responsivePresets:z.config.responsivePresets,backgroundPresets:z.config.backgroundPresets});if(J.startsWith("/api/render/")){let Y=new URL(Z.url),W=J.slice(12).split("/"),j=W[0],U=W[1]||"default",_,Q=Y.searchParams.get("props");if(Q)try{_=JSON.parse(Q)}catch{}let D=z.storyFiles.find((L)=>L.id===j);if(!D)return new Response("Story not found",{status:404});try{let L=await Bz(z,D,U,_);return Response.json({html:L.html,css:L.css,js:L.js,errors:L.errors,duration:L.duration})}catch(L){return Response.json({html:"",css:"",js:"",errors:[L instanceof Error?L.message:String(L)],duration:0},{status:500})}}if(J==="/api/presets"&&Z.method==="GET")return Response.json({presets:$.getAllPresets()});if(J==="/api/presets"&&Z.method==="POST")try{let Y=await Z.json(),W=$.createPreset(Y.name,Y.props,{componentId:Y.componentId,description:Y.description});return await $.save(),Response.json(W)}catch(Y){return Response.json({error:String(Y)},{status:400})}if(J.startsWith("/api/presets/")&&!J.includes("/use")&&Z.method==="GET"){let Y=J.slice(13),W=$.getPreset(Y);if(!W)return new Response("Preset not found",{status:404});return Response.json(W)}if(J.endsWith("/use")&&Z.method==="POST"){let Y=J.slice(13,-4),W=$.usePreset(Y);if(!W)return new Response("Preset not found",{status:404});return await $.save(),Response.json(W)}if(J.startsWith("/api/presets/")&&Z.method==="DELETE"){let Y=J.slice(13);if(!$.deletePreset(Y))return new Response("Preset not found",{status:404});return await $.save(),Response.json({success:!0})}if(J==="/api/bookmarks"&&Z.method==="GET")return Response.json({bookmarks:X.getAllBookmarks()});if(J==="/api/bookmarks"&&Z.method==="POST")try{let Y=await Z.json(),W=X.addBookmark(Y.storyId,Y.variantId,Y.props,{name:Y.name,notes:Y.notes,color:Y.color});return await X.save(),Response.json(W)}catch(Y){return Response.json({error:String(Y)},{status:400})}if(J==="/api/bookmarks/toggle"&&Z.method==="POST")try{let Y=await Z.json(),W=X.toggleBookmark(Y.storyId,Y.variantId,Y.props);return await X.save(),Response.json(W)}catch(Y){return Response.json({error:String(Y)},{status:400})}if(J.startsWith("/api/bookmarks/")&&J!=="/api/bookmarks/toggle"&&Z.method==="GET"){let Y=J.slice(15),W=X.getBookmark(Y);if(!W)return new Response("Bookmark not found",{status:404});return Response.json(W)}if(J.startsWith("/api/bookmarks/")&&Z.method==="DELETE"){let Y=J.slice(15);if(!X.deleteBookmark(Y))return new Response("Bookmark not found",{status:404});return await X.save(),Response.json({success:!0})}if(J==="/api/analytics/track"&&Z.method==="POST")try{let Y=await Z.json();if(Y.type==="view"&&Y.componentId)B.trackView(Y.componentId,Y.variantId);else if(Y.type==="prop_change"&&Y.componentId&&Y.propName)B.trackPropChange(Y.componentId,Y.propName,null);else if(Y.type==="variant_switch"&&Y.componentId&&Y.variantId)B.trackVariantSwitch(Y.componentId,Y.variantId);else if(Y.type==="search"&&Y.query)B.trackSearch(Y.query,0);return await B.save(),Response.json({success:!0})}catch(Y){return Response.json({error:String(Y)},{status:400})}if(J==="/api/analytics/summary"&&Z.method==="GET")return Response.json({mostViewed:B.getMostViewedComponents(10),mostChangedProps:B.getMostChangedProps(10),searchAnalytics:B.getSearchAnalytics()});if(J.startsWith("/api/analytics/component/")&&Z.method==="GET"){let Y=J.slice(25),W=z.storyFiles.find((U)=>U.id===Y),j=B.getComponentAnalytics(Y,W?.fileName||Y);return Response.json(j)}return new Response("Not found",{status:404})}function kz(z,J,Z){let K=Sz(z,Z);return new Response(K,{headers:{"Content-Type":"text/html; charset=utf-8"}})}function Sz(z,J){let{theme:Z}=z.config,K=Z.title||"STX Story",$=`ws://localhost:${J}/__hmr`,X=r($);return`<!DOCTYPE html>
562
562
  <html lang="en" class="${Z.darkClass||"dark"}">
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{Vi as a,Wi as b}from"./chunk-jt4gqtag.js";import"./chunk-9n0gvfrg.js";import"./chunk-4ds1cmgq.js";import"./chunk-qccdz9t1.js";import"./chunk-q68xmak4.js";import"./chunk-c0an64km.js";import"./chunk-t1k5dpbr.js";import"./chunk-52mh63sp.js";import"./chunk-5k3qb1am.js";import"./chunk-39f40yc4.js";import"./chunk-ysnk7x79.js";import"./chunk-0f1kz0x2.js";import"./chunk-ayrjwkyw.js";import"./chunk-c6fw33zh.js";import"./chunk-bf8wf3r2.js";import"./chunk-jn6m8zf7.js";import"./chunk-sskbegsz.js";export{a as getStoreScript,b as clearStoreCache};
2
+ import{Vi as a,Wi as b}from"./chunk-1xfqy79h.js";import"./chunk-9n0gvfrg.js";import"./chunk-9aw94jhm.js";import"./chunk-9rkntp0z.js";import"./chunk-q68xmak4.js";import"./chunk-c0an64km.js";import"./chunk-t1k5dpbr.js";import"./chunk-52mh63sp.js";import"./chunk-zcmtqan3.js";import"./chunk-39f40yc4.js";import"./chunk-ysnk7x79.js";import"./chunk-0f1kz0x2.js";import"./chunk-ayrjwkyw.js";import"./chunk-c6fw33zh.js";import"./chunk-bf8wf3r2.js";import"./chunk-jn6m8zf7.js";import"./chunk-sskbegsz.js";export{a as getStoreScript,b as clearStoreCache};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{Qf as a}from"./chunk-9x4jejq0.js";import"./chunk-pmw28376.js";import"./chunk-qccdz9t1.js";import"./chunk-q68xmak4.js";import"./chunk-c0an64km.js";import"./chunk-t1k5dpbr.js";import"./chunk-52mh63sp.js";import"./chunk-5k3qb1am.js";import"./chunk-39f40yc4.js";import"./chunk-ysnk7x79.js";import"./chunk-0f1kz0x2.js";import"./chunk-ayrjwkyw.js";import"./chunk-c6fw33zh.js";import"./chunk-bf8wf3r2.js";import"./chunk-jn6m8zf7.js";import"./chunk-sskbegsz.js";export{a as startProductionServer};
2
+ import{Qf as a}from"./chunk-t0ghjghe.js";import"./chunk-kpy77ys3.js";import"./chunk-9rkntp0z.js";import"./chunk-q68xmak4.js";import"./chunk-c0an64km.js";import"./chunk-t1k5dpbr.js";import"./chunk-52mh63sp.js";import"./chunk-zcmtqan3.js";import"./chunk-39f40yc4.js";import"./chunk-ysnk7x79.js";import"./chunk-0f1kz0x2.js";import"./chunk-ayrjwkyw.js";import"./chunk-c6fw33zh.js";import"./chunk-bf8wf3r2.js";import"./chunk-jn6m8zf7.js";import"./chunk-sskbegsz.js";export{a as startProductionServer};
@@ -0,0 +1,15 @@
1
+ // @bun
2
+ import{Rl as l,dr as t}from"./chunk-9rkntp0z.js";import{_s as r,ct as P}from"./chunk-zcmtqan3.js";import{wt as b}from"./chunk-39f40yc4.js";import X from"path";import V from"fs";function Jz(z){if(!z||typeof z!=="object")return!1;let G=z;return typeof G.message==="string"&&(G.name==="BuildMessage"||G.name==="ResolveMessage"||("position"in G))}function Kz(z){if(z&&typeof z==="object"&&Array.isArray(z.errors))return z.errors;return[z]}function v(z,G){let J=[];for(let $ of Kz(z)){if(Jz($)){let Q=$.position||void 0;J.push({file:G||Q?.file,line:Q?.line,column:Q?.column,message:$.message??"",lineText:Q?.lineText});continue}J.push({file:G,message:$ instanceof Error?$.message:String($)})}return J}function p(z,G){return v(z,G).map((J)=>{let $=J.file?`${J.file}${J.line?`:${J.line}${J.column?`:${J.column}`:""}`:""}`:"",Q=J.lineText?`
3
+ ${J.lineText.trim()}`:"";return $?`${$}: ${J.message}${Q}`:`${J.message}${Q}`}).join(`
4
+ `)}var Zz=5,s=1,i=new Map,B=600,$z=100,E=new Map;async function Wz(z){let G=E.get(z)??0;if(G>0&&G<$z){E.set(z,G+1);return}E.set(z,1);try{let J=(await V.promises.readdir(z)).filter((W)=>W.endsWith(".js"));if(J.length<=B)return;let Q=(await Promise.all(J.map(async(W)=>{try{return{name:W,at:(await V.promises.stat(X.join(z,W))).mtimeMs}}catch{return null}}))).filter((W)=>W!==null);Q.sort((W,Z)=>Z.at-W.at);for(let W of Q.slice(B)){let Z=W.name.slice(0,-3);await V.promises.rm(X.join(z,`${Z}.js`),{force:!0}),await V.promises.rm(X.join(z,`${Z}.deps.json`),{force:!0})}w("pruned bundle cache to",B,"entries")}catch{}}function Cz(z){return i.get(z)??[]}function g(z,G){if(z)i.set(z,G)}function Qz(z=process.env){return z.STX_DEBUG==="true"||z.STX_DEBUG==="1"}function w(...z){if(Qz())console.log("[stx:bundler]",...z)}var m=[];function h(z,G,J){m.push({filePath:z||"<inline>",message:G,details:J})}function Mz(){return m.slice()}function Az(){m.length=0}var f;function Iz(z){f=z}function c(){if(f)return f;try{let z=t.strict;return typeof z==="object"&&z!==null?z.bundlerFallback??"warn":"warn"}catch{return"warn"}}var o=[/^stx$/,/^@stacksjs\/stx$/,/^@stores$/,/^stx\/stores$/,/^@composables$/];function yz(z){let G=/^[ \t]*import[ \t]+(?!type(?:[ \t]|{))[\s\S]*?\s+from\s+['"]([^'"]+)['"][ \t]*;?/gm,J;while((J=G.exec(z))!==null){let Q=J[1];if(!o.some((Z)=>Z.test(Q)))return w("detected user import:",Q),!0}let $=/^[ \t]*import[ \t]+['"]([^'"]+)['"]/gm;while((J=$.exec(z))!==null){let Q=J[1];if(/\.css(?:\?.*)?$/.test(Q))continue;if(!o.some((Z)=>Z.test(Q)))return w("detected side-effect import:",Q),!0}return!1}function d(z){let G=[z,`${z}.ts`,`${z}.tsx`,`${z}.js`,`${z}.mjs`,`${z}.jsx`,X.join(z,"index.ts"),X.join(z,"index.tsx"),X.join(z,"index.js"),X.join(z,"index.mjs")];for(let J of G)try{if(V.existsSync(J)&&V.statSync(J,{throwIfNoEntry:!1})?.isFile())return J}catch{}return}function Xz(z,G,J,$){let Q=(W,Z)=>{let K=W===J?G:X.dirname(W),j=X.resolve(K,Z);return d(j)??j};return{name:"stx-client-bundle",setup(W){W.onResolve({filter:/^(stx|@stacksjs\/stx)$/},(Z)=>({path:Z.path,external:!0})),W.onResolve({filter:/^(@stores|@composables|stx\/stores)$/},(Z)=>({path:Z.path,external:!0})),W.onResolve({filter:/^\//},(Z)=>{let K=d(Z.path);if(K){if(K!==J)$.add(K);return{path:K}}return{path:Z.path,external:!0}}),W.onResolve({filter:/^\.\.?\//},(Z)=>{let K=Q(Z.importer,Z.path);return $.add(K),{path:K}}),W.onResolve({filter:/^[@~]\//},(Z)=>{let K=X.resolve(z,Z.path.slice(2)),j=[K,`${K}.ts`,`${K}.tsx`,`${K}.js`,`${K}.mjs`,`${K}.jsx`,X.join(K,"index.ts"),X.join(K,"index.tsx"),X.join(K,"index.js"),X.join(K,"index.mjs")];for(let O of j)if(V.existsSync(O)&&V.statSync(O,{throwIfNoEntry:!1})?.isFile())return w(`resolved ${Z.path[0]}/ import:`,Z.path,"\u2192",O),$.add(O),{path:O};return console.warn(`[stx:bundler] could not resolve ${Z.path[0]}/ import:`,Z.path),{path:K}}),W.onLoad({filter:/\.(?:[cm]?[jt]sx?|json)$/},(Z)=>{let K=X.extname(Z.path).toLowerCase(),j=K===".json"?"json":K===".tsx"?"tsx":K===".jsx"?"jsx":K===".ts"||K===".mts"||K===".cts"?"ts":"js";if(Z.path!==J)$.add(Z.path);return{contents:V.readFileSync(Z.path,"utf8"),loader:j}})}}}var D=new Map,_=r(64),n=Symbol.for("stx.client-bundle-build-queue");function Yz(z){let G=globalThis,$=(G[n]??Promise.resolve()).then(z,z);return G[n]=$.then(()=>{return},()=>{return}),$}async function Tz(z,G,J={}){let $=J.projectRoot||process.cwd(),Q=J.minify??!1,W=J.cacheDir||b($,"bundle-cache"),Z=new Bun.CryptoHasher("md5");Z.update(`${Zz}\x00${z}\x00${G}`);let K=Z.digest("hex").slice(0,12),j=X.join(W,`${K}.js`),O=_.get(j);if(O){if(P(O.files)){w("memo hit:",K);let S=O.files.map((k)=>k.path);return g(G,S),J.collectInputs?.push(...S),O.code}_.delete(j),w("memo invalidated by dep change:",K)}let I=X.join(W,`${K}.deps.json`),T=Bun.file(j);if(await T.exists()){let S=Bun.file(I),k=!0,q=null;if(await S.exists())try{let M=JSON.parse(await S.text());if(M.metadataVersion!==s||!Array.isArray(M.files))k=!1;else q=M.files;if(q&&!P(q))k=!1}catch{k=!1}if(k){if(w("cache hit:",K),q)g(G,q.map((R)=>R.path)),J.collectInputs?.push(...q.map((R)=>R.path));let M=await T.text();if(q)_.set(j,{code:M,files:q});return M}w("cache invalidated by dep change:",K)}let N=D.get(K);if(N){let S=await N;if(J.collectInputs)J.collectInputs.push(...(_.get(j)?.files??[]).map((k)=>k.path));return S}let L=Yz(()=>qz(z,G,{projectRoot:$,minify:Q,cacheDir:W,hash:K,cachePath:j,depsPath:I,collectInputs:J.collectInputs}));D.set(K,L);try{return await L}finally{D.delete(K)}}async function qz(z,G,J){let{projectRoot:$,minify:Q,cacheDir:W,hash:Z,cachePath:K,depsPath:j}=J,O=b($,"bundle-tmp"),I=X.join(O,`${Z}.ts`),T=X.join(O,"out",Z);V.mkdirSync(O,{recursive:!0}),V.mkdirSync(T,{recursive:!0});let N=X.dirname(G),L=[],S=/^[ \t]*(export\s+)?(?:const|let|var)\s+(?:\{([^}]+)\}|(\w+))/gm,k=/^[ \t]*(export\s+)?(?:async\s+)?function\s+(\w+)/gm,q;while((q=S.exec(z))!==null){if(q[1])continue;if(q[2])q[2].split(",").forEach((U)=>{let H=Hz(U);if(H)L.push(H)});else if(q[3])L.push(q[3])}while((q=k.exec(z))!==null){if(q[1])continue;L.push(q[2])}let M=L.length>0?`
5
+ export { ${L.join(", ")} }`:"";await Bun.write(I,z+M),w("bundling:",Z,"from:",X.basename(G));let R=new Set;try{let U=await Bun.build({entrypoints:[I],outdir:T,target:"browser",format:"esm",minify:Q,plugins:[Xz($,N,I,R)],define:{"process.env.NODE_ENV":Q?'"production"':'"development"',...l()},root:$});if(!U.success){let A=U.logs.filter((y)=>y.level==="error").map((y)=>y.message).join(", ")||`Unable to bundle ${X.basename(G)}`,x=v(U.logs,G||void 0);if(console.warn("[stx:bundler] build failed:",A),h(G||"",A,x),c()==="error")throw Error(A);return z}let H="";for(let Y of U.outputs){H=await Y.text();break}let C=[];for(let Y of H.matchAll(/^\s*export\s*\{([^}]*)\}\s*;?\s*$/gm))for(let A of Y[1].split(",")){let x=A.trim().match(/^([A-Za-z_$][\w$]*)\s+as\s+([A-Za-z_$][\w$]*)$/);if(x){C.push([x[2],x[1]]);continue}let y=A.trim();if(/^[A-Za-z_$][\w$]*$/.test(y))C.push([y,y])}let a=H.match(/^\s*import\s+[^;]+;?\s*$/gm)||[];H=H.replace(/^\s*import\s+[^;]+;?\s*$/gm,"").replace(/^\s*export\s*\{[^}]*\}\s*;?\s*$/gm,"").replace(/^\s*export\s+default\s+.*$/gm,"").trim();let u=`__stxBundle_${Z}`,e=C.map(([Y,A])=>`${JSON.stringify(Y)}: ${A}`).join(", "),zz=C.map(([Y])=>`var ${Y} = undefined;`).join(`
6
+ `),Gz=C.map(([Y])=>`${Y} = ${u}[${JSON.stringify(Y)}];`).join(`
7
+ `);if(H=`${a.join(`
8
+ `)}
9
+ ${zz}
10
+ var ${u} = (function() {
11
+ ${H}
12
+ return { ${e} };
13
+ })();
14
+ ${Gz}`.trim(),w("bundled:",Z,"output:",H.length,"bytes"),L.length>0&&C.length===0)return console.warn(`[stx:bundler] dropped every binding for ${X.basename(G)} (${Z}); serving the unbundled source and not caching this result`),z;V.mkdirSync(W,{recursive:!0}),await Bun.write(K,H);let F=Array.from(R).map((Y)=>{try{return{path:Y,mtimeMs:V.statSync(Y).mtimeMs}}catch{return null}}).filter((Y)=>Y!==null);return await Bun.write(j,JSON.stringify({metadataVersion:s,files:F})),g(G,F.map((Y)=>Y.path)),J.collectInputs?.push(...F.map((Y)=>Y.path)),_.set(K,{code:H,files:F}),await Wz(W),H}catch(U){let H=v(U,G||void 0),C=p(U,G||void 0);if(console.warn(`[stx:bundler] error: ${C}`),h(G||"",C,H),c()==="error")throw U;return z}finally{try{V.rmSync(I,{force:!0}),V.rmSync(T,{recursive:!0,force:!0})}catch{}}}function Hz(z){let G=z.trim();if(!G)return null;let J=G.indexOf("=");if(J!==-1)G=G.slice(0,J).trim();let $=G.indexOf(":");if($!==-1)G=G.slice($+1).trim();if(G.startsWith("..."))G=G.slice(3).trim();return/^[A-Za-z_$][\w$]*$/.test(G)?G:null}
15
+ export{p as _k,Cz as $k,Qz as al,h as bl,Mz as cl,Az as dl,Iz as el,c as fl,yz as gl,Yz as hl,Tz as il};