@stacksjs/stx 0.2.397 → 0.2.398
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunk-07syq64h.js +2 -0
- package/dist/{chunk-y4nzmkea.js → chunk-092qw0ps.js} +1 -1
- package/dist/{chunk-es9jp0c7.js → chunk-0rdhrgff.js} +1 -1
- package/dist/{chunk-ascvrar9.js → chunk-0trm18n0.js} +2 -2
- package/dist/{chunk-9w9ew6e1.js → chunk-0w6ghfqw.js} +2 -2
- package/dist/{chunk-3rg4ykrh.js → chunk-197z74b9.js} +1 -1
- package/dist/{chunk-r0xbjc86.js → chunk-1bdbrkt3.js} +1 -1
- package/dist/{chunk-ea5j5gh1.js → chunk-1bdvnmxd.js} +3 -3
- package/dist/{chunk-q01hqekk.js → chunk-1ktxk84n.js} +1 -1
- package/dist/{chunk-fqq5k9ve.js → chunk-1t5vwavd.js} +1 -1
- package/dist/{chunk-qjvny3wf.js → chunk-2andsajh.js} +1 -1
- package/dist/{chunk-afcm0kzg.js → chunk-2d0xzf2c.js} +2 -2
- package/dist/chunk-2vjkzrhy.js +2 -0
- package/dist/{chunk-7dr81hwg.js → chunk-2weyb03p.js} +2 -2
- package/dist/{chunk-q9zsjgpf.js → chunk-3769e62c.js} +1 -1
- package/dist/{chunk-34ap0jgd.js → chunk-3wmdjemm.js} +2 -2
- package/dist/{chunk-ra1s4s6b.js → chunk-452k8psm.js} +1 -1
- package/dist/{chunk-c79nfdyj.js → chunk-4bb28mz5.js} +1 -1
- package/dist/{chunk-fc8471kb.js → chunk-4cv7bw5e.js} +2 -2
- package/dist/{chunk-9aj6v538.js → chunk-4eyzkbzj.js} +1 -1
- package/dist/chunk-4qm9rj1p.js +2 -0
- package/dist/chunk-4x73bm95.js +2 -0
- package/dist/{chunk-4dj5b57q.js → chunk-57yhrery.js} +1 -1
- package/dist/chunk-5h8q6dqb.js +2 -0
- package/dist/chunk-5zapxgys.js +2 -0
- package/dist/{chunk-mrnk4hbx.js → chunk-5zmppe0c.js} +1 -1
- package/dist/chunk-65y5abx7.js +2 -0
- package/dist/{chunk-y4zddt5r.js → chunk-683tfkz4.js} +1 -1
- package/dist/{chunk-e2pxp1qy.js → chunk-6b8j6812.js} +2 -2
- package/dist/chunk-6n0jamtd.js +2 -0
- package/dist/{chunk-bcpjhcpn.js → chunk-6rzwef28.js} +1 -1
- package/dist/{chunk-98gap2qd.js → chunk-6s204hr5.js} +3 -3
- package/dist/{chunk-1c5w4nq4.js → chunk-76q768gt.js} +1 -1
- package/dist/{chunk-frp9fc7j.js → chunk-7eea1cse.js} +1 -1
- package/dist/{chunk-3wa1ybzj.js → chunk-7tgjn256.js} +1 -1
- package/dist/chunk-7vnkqnyh.js +2 -0
- package/dist/{chunk-v5m45kn6.js → chunk-81n38ak1.js} +1 -1
- package/dist/{chunk-qsq1eha8.js → chunk-88tt0qg0.js} +2 -2
- package/dist/{chunk-x45kj2fa.js → chunk-8ded3tn8.js} +2 -2
- package/dist/{chunk-pzhk6186.js → chunk-8qzc5n61.js} +1 -1
- package/dist/{chunk-ej8mv2k6.js → chunk-90zfg77v.js} +1 -1
- package/dist/{chunk-k33778kc.js → chunk-9368t9jm.js} +1 -1
- package/dist/{chunk-efsr5fbm.js → chunk-980w4zcq.js} +2 -2
- package/dist/chunk-9h3xq9j3.js +2 -0
- package/dist/chunk-9hh5eg8y.js +2 -0
- package/dist/{chunk-g7bpkpd4.js → chunk-9r2xgf5k.js} +1 -1
- package/dist/{chunk-634gaa9d.js → chunk-9vwpf0bk.js} +1 -1
- package/dist/chunk-a9702a2m.js +2 -0
- package/dist/{chunk-s7t37c7w.js → chunk-aeaf5nsy.js} +1 -1
- package/dist/{chunk-9wbys24b.js → chunk-aewsgyzc.js} +1 -1
- package/dist/chunk-ar5stjnb.js +2 -0
- package/dist/chunk-awrsqtve.js +2 -0
- package/dist/{chunk-5b8by1w4.js → chunk-azkk2n57.js} +1 -1
- package/dist/{chunk-ayp62r1q.js → chunk-batgkbft.js} +145 -145
- package/dist/chunk-bd5gvhsw.js +2 -0
- package/dist/{chunk-3ha78evt.js → chunk-bdz7nznw.js} +2 -2
- package/dist/chunk-bj2aaf9j.js +2 -0
- package/dist/{chunk-zn70s4gs.js → chunk-c9kj8p6j.js} +1 -1
- package/dist/{chunk-tr02vys6.js → chunk-caj47vtj.js} +1 -1
- package/dist/chunk-cd6pe75s.js +2 -0
- package/dist/{chunk-ya5m5vbn.js → chunk-cks5rbzt.js} +1 -1
- package/dist/{chunk-5019ed46.js → chunk-cq6e6de4.js} +3 -3
- package/dist/chunk-csgshaeh.js +3 -0
- package/dist/{chunk-y70wabha.js → chunk-cy8hgd86.js} +1 -1
- package/dist/{chunk-53p4bjzd.js → chunk-d0qy1ezf.js} +2 -2
- package/dist/{chunk-8np6m7vv.js → chunk-d4km7egg.js} +1 -1
- package/dist/{chunk-mqmhbhbc.js → chunk-dbfj1skz.js} +2 -2
- package/dist/chunk-dn6ayf7s.js +2 -0
- package/dist/{chunk-54323c6n.js → chunk-dvpk2rer.js} +1 -1
- package/dist/{chunk-j8jteztt.js → chunk-dz29q408.js} +1 -1
- package/dist/{chunk-3rf705aq.js → chunk-e1rv01pn.js} +2 -2
- package/dist/chunk-e8y26wfg.js +2 -0
- package/dist/{chunk-y33pm4g5.js → chunk-ekvejzvk.js} +1 -1
- package/dist/chunk-embs7re0.js +2 -0
- package/dist/{chunk-mvnjpwes.js → chunk-eqhsprr0.js} +1 -1
- package/dist/{chunk-n0d7nwhd.js → chunk-ewxbx67c.js} +1 -1
- package/dist/{chunk-w3avy2ba.js → chunk-ff6y270q.js} +2 -2
- package/dist/{chunk-cm5v3eep.js → chunk-fffbzsmv.js} +1 -1
- package/dist/{chunk-kaet6r9w.js → chunk-fj6fbqgb.js} +1 -1
- package/dist/{chunk-wf45k2yw.js → chunk-fsvkqeya.js} +2 -2
- package/dist/{chunk-0knxnyq6.js → chunk-g64qyhhb.js} +1 -1
- package/dist/{chunk-hestqebq.js → chunk-g7qmxjyc.js} +1 -1
- package/dist/chunk-gs4b132g.js +2 -0
- package/dist/{chunk-zngpmpcs.js → chunk-gtn2agxa.js} +2 -2
- package/dist/{chunk-y3vgzvwn.js → chunk-h01bbt3r.js} +1 -1
- package/dist/{chunk-apqq86bx.js → chunk-h55mae9h.js} +1 -1
- package/dist/{chunk-89tp5zsn.js → chunk-h8zp2fz9.js} +1 -1
- package/dist/chunk-h9eft9vj.js +2 -0
- package/dist/{chunk-b42myxwk.js → chunk-hf784dsc.js} +2 -2
- package/dist/chunk-hfwknxbe.js +2 -0
- package/dist/{chunk-tdn55vs4.js → chunk-hm66z7e8.js} +1 -1
- package/dist/{chunk-a68dbz3q.js → chunk-hwzbc2v3.js} +2 -2
- package/dist/{chunk-tegrvgyn.js → chunk-j9x1hxhg.js} +1 -1
- package/dist/{chunk-nptdshhw.js → chunk-k2nydt80.js} +1 -1
- package/dist/{chunk-3vytypjk.js → chunk-kbyf95hm.js} +2 -2
- package/dist/{chunk-dct8xw04.js → chunk-kdwbpcm4.js} +2 -2
- package/dist/chunk-kp4ja0w3.js +2 -0
- package/dist/{chunk-7kw3grq5.js → chunk-kpg48dhw.js} +1 -1
- package/dist/chunk-kpqypx1g.js +2 -0
- package/dist/{chunk-qzbtsawt.js → chunk-ky06aav6.js} +2 -2
- package/dist/{chunk-pv2trpk9.js → chunk-kyw2cbvn.js} +1 -1
- package/dist/{chunk-x21hdhjw.js → chunk-m3s6kzxv.js} +1 -1
- package/dist/{chunk-yv99yyz4.js → chunk-m6par27a.js} +2 -2
- package/dist/chunk-macgqjre.js +2 -0
- package/dist/chunk-mhbexqwa.js +2 -0
- package/dist/chunk-mkfxc8ak.js +2 -0
- package/dist/{chunk-y32dbdta.js → chunk-mnk5mdwp.js} +1 -1
- package/dist/{chunk-g1vxsvqv.js → chunk-mwh3ymwc.js} +1 -1
- package/dist/{chunk-h0594pn6.js → chunk-n46e3gkr.js} +2 -2
- package/dist/{chunk-a6ntnq11.js → chunk-p81zbym6.js} +1 -1
- package/dist/{chunk-n6fcg584.js → chunk-pdxbys31.js} +1 -1
- package/dist/{chunk-7hb89n3z.js → chunk-pkspqh0m.js} +1 -1
- package/dist/chunk-ppaqz92f.js +2 -0
- package/dist/{chunk-1xqb1bpq.js → chunk-pvme0rs1.js} +3 -3
- package/dist/chunk-py5jmk33.js +2 -0
- package/dist/{chunk-9q1b43vh.js → chunk-qp4x0mwv.js} +21 -21
- package/dist/{chunk-jqq0h9sd.js → chunk-r1d9x0dy.js} +1 -1
- package/dist/{chunk-y9f2csr0.js → chunk-rwtj7j0r.js} +1 -1
- package/dist/{chunk-n0hrb3ek.js → chunk-rxz43r6k.js} +1 -1
- package/dist/{chunk-ys4hpkrp.js → chunk-st9vrfw7.js} +2 -2
- package/dist/{chunk-ats1a74d.js → chunk-tf964vs3.js} +33 -2
- package/dist/{chunk-rzp3bagj.js → chunk-v7q2nf37.js} +1 -1
- package/dist/chunk-vkg6rz7w.js +2 -0
- package/dist/chunk-vs4dafbz.js +2 -0
- package/dist/chunk-w4nmvn5v.js +2 -0
- package/dist/chunk-wfp942rp.js +2 -0
- package/dist/{chunk-m8z5450r.js → chunk-wh8vwykh.js} +1 -1
- package/dist/{chunk-8ph7mee2.js → chunk-x2wmn8m7.js} +2 -2
- package/dist/{chunk-k7f7391g.js → chunk-x86qttwm.js} +2 -2
- package/dist/{chunk-5mnj5ttg.js → chunk-xfedcdb2.js} +1 -1
- package/dist/{chunk-n98anpe9.js → chunk-yj5gkn17.js} +1 -1
- package/dist/chunk-ypxywr4x.js +2 -0
- package/dist/chunk-zc878avg.js +2 -0
- package/dist/chunk-zfy796r4.js +2 -0
- package/dist/{chunk-ra9hbqx4.js → chunk-zh3q10wd.js} +1 -1
- package/dist/{chunk-qvjhzwm8.js → chunk-zrnppyqz.js} +1 -1
- package/dist/{chunk-hapz8df0.js → chunk-ztffbc6a.js} +2 -2
- package/dist/cli.js +14 -14
- package/dist/composables/index.d.ts +4 -0
- package/dist/composables/index.js +3 -0
- package/dist/composables/use-storage.d.ts +20 -0
- package/dist/composables/use-storage.js +25 -0
- package/dist/craft-entry.js +1 -1
- package/dist/craft.js +1 -1
- package/dist/database.js +1 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.js +3 -0
- package/dist/pwa.js +2 -2
- package/dist/runtime-globals.js +2 -0
- package/dist/signal-processing.js +1 -1
- package/dist/signals.js +31 -0
- package/dist/ssg.js +2 -2
- package/dist/stx-module.d.ts +2 -0
- package/dist/stx.d.ts +6 -0
- package/dist/utils.js +1 -1
- package/dist/visual-testing.js +1 -1
- package/package.json +5 -5
- package/stx-module.d.ts +2 -0
- package/stx.d.ts +6 -0
- package/dist/chunk-0daceza4.js +0 -2
- package/dist/chunk-15w7f813.js +0 -2
- package/dist/chunk-25vqpgq4.js +0 -2
- package/dist/chunk-2efz2s54.js +0 -2
- package/dist/chunk-2xj61qk5.js +0 -2
- package/dist/chunk-3tde530g.js +0 -2
- package/dist/chunk-44twsw8y.js +0 -2
- package/dist/chunk-6yzan3t7.js +0 -2
- package/dist/chunk-7j8xmyb9.js +0 -2
- package/dist/chunk-7mgq90cs.js +0 -2
- package/dist/chunk-7t47p8zz.js +0 -2
- package/dist/chunk-8hqayvjh.js +0 -3
- package/dist/chunk-94f39mh9.js +0 -2
- package/dist/chunk-a62080cs.js +0 -2
- package/dist/chunk-adbgcqd9.js +0 -2
- package/dist/chunk-b1kz2gxx.js +0 -2
- package/dist/chunk-b9tzp38b.js +0 -2
- package/dist/chunk-bkhxfr92.js +0 -2
- package/dist/chunk-bqajw5yd.js +0 -2
- package/dist/chunk-c41zj3zg.js +0 -2
- package/dist/chunk-de3ercps.js +0 -2
- package/dist/chunk-e3x86pmy.js +0 -2
- package/dist/chunk-h0mzm5xn.js +0 -2
- package/dist/chunk-jtmjhzy9.js +0 -2
- package/dist/chunk-k1g7era4.js +0 -2
- package/dist/chunk-kyjcahaf.js +0 -2
- package/dist/chunk-mayprgb9.js +0 -2
- package/dist/chunk-qjwztd0h.js +0 -2
- package/dist/chunk-rs5zgqcn.js +0 -2
- package/dist/chunk-sgxv9ct5.js +0 -2
- package/dist/chunk-shz63een.js +0 -2
- package/dist/chunk-t19pzc0c.js +0 -2
- package/dist/chunk-t4f8gat7.js +0 -2
- package/dist/chunk-tfq3gvh1.js +0 -2
- package/dist/chunk-vzt8h4vw.js +0 -2
- package/dist/chunk-xckw6749.js +0 -2
- package/dist/chunk-xhpjh1ja.js +0 -2
- package/dist/chunk-y38rtn5z.js +0 -2
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{ms as Q}from"./chunk-4cv7bw5e.js";import"./chunk-7tgjn256.js";import{At as R}from"./chunk-yj5gkn17.js";import"./chunk-bdz7nznw.js";import"./chunk-x2wmn8m7.js";import"./chunk-rxz43r6k.js";import O from"fs";import U from"path";async function W(j,b={}){let q=Date.now(),z={total:0,passed:0,failed:0,new:0,failures:[],duration:0},K=b.snapshotDir||R(j.root,"story","snapshots");await O.promises.mkdir(K,{recursive:!0});let B=j.storyFiles;if(b.filter&&b.filter.length>0)B=B.filter((J)=>b.filter.some((G)=>J.fileName.toLowerCase().includes(G.toLowerCase())));for(let J of B)await X(J,K,b,z);return z.duration=Date.now()-q,z}async function X(j,b,q,z){let K=j.story;if(!K)return;for(let B of K.variants){z.total++;let J=U.join(b,`${j.id}-${B.id}.snap`),G=Y(B.source||""),L=await _(J);if(q.update||!L){let M={storyId:j.id,variantId:B.id,component:j.fileName,timestamp:Date.now(),hash:G};if(await O.promises.writeFile(J,JSON.stringify(M,null,2)),!L)z.new++;z.passed++}else try{let M=await O.promises.readFile(J,"utf-8"),N=JSON.parse(M);if(N.hash===G)z.passed++;else z.failed++,z.failures.push({storyId:j.id,variantId:B.id,component:j.fileName,message:"Snapshot mismatch",difference:Z(N.hash,G)})}catch(M){z.failed++,z.failures.push({storyId:j.id,variantId:B.id,component:j.fileName,message:`Error reading snapshot: ${M}`})}}}async function A(j,b={}){return(await W(j,{...b,update:!0})).total}function Y(j){let b=0;for(let q=0;q<j.length;q++){let z=j.charCodeAt(q);b=(b<<5)-b+z,b=b&b}return b.toString(16)}function Z(j,b){if(j===b)return 0;let q=Math.abs(Number.parseInt(j,16)-Number.parseInt(b,16));return Math.min(q/1e6,1)}async function _(j){try{return await O.promises.access(j),!0}catch{return!1}}function I(j){let b=[];if(b.push(""),b.push("\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501"),b.push(" STX Story Visual Regression Tests"),b.push("\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501"),b.push(""),j.failures.length>0){b.push(" \u274C Failures:"),b.push("");for(let q of j.failures){if(b.push(` \u2022 ${q.component} / ${q.variantId}`),b.push(` ${q.message}`),q.difference!==void 0)b.push(` Difference: ${(q.difference*100).toFixed(2)}%`);b.push("")}}if(b.push(" Summary:"),b.push(` Total: ${j.total}`),b.push(` Passed: ${j.passed} \u2713`),b.push(` Failed: ${j.failed} \u2717`),j.new>0)b.push(` New: ${j.new} \u26A1`);return b.push(` Time: ${j.duration}ms`),b.push(""),b.push("\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501"),b.push(""),b.join(`
|
|
3
3
|
`)}async function S(j,b={}){let q=performance.now(),z=[],K=0,B=0;for(let G of j.storyFiles)try{let L=await Bun.file(G.path).text(),M=await Q(L,G.path);if(M.length>0){for(let N of M)z.push({storyId:G.id,variantId:"default",component:G.component,message:`A11y: ${N.message}`,expected:"No accessibility violations",actual:`${N.type}: ${N.message} (impact: ${N.impact})`});B++}else K++}catch(L){z.push({storyId:G.id,variantId:"default",component:G.component,message:`Failed to check a11y: ${L instanceof Error?L.message:String(L)}`,expected:"File readable for a11y check",actual:"File read error"}),B++}let J=performance.now()-q;return{total:j.storyFiles.length,passed:K,failed:B,new:0,failures:z,duration:J}}export{A as updateSnapshots,W as runVisualTests,S as runA11yTests,I as formatTestResults};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{$t as
|
|
2
|
+
import{$t as e,Xt as a,Yt as b,Zt as c,_t as d,au as f,bu as g,cu as h,du as i,eu as j,fu as k,gu as l}from"./chunk-88tt0qg0.js";import"./chunk-e1rv01pn.js";import"./chunk-bdz7nznw.js";import"./chunk-x2wmn8m7.js";import"./chunk-rxz43r6k.js";export{f as structuredDataDirective,j as scanForSitemapEntries,g as registerSeoDirectives,b as processStructuredData,c as processSeoDirective,a as processMetaDirectives,e as metaDirective,d as injectSeoTags,i as generateSitemapIndex,h as generateSitemap,k as generateRobotsTxt,l as generateDefaultRobotsTxt};
|
|
@@ -9,4 +9,4 @@ function G(H,M){let j=H[M],J=M+1;while(J<H.length){if(H[J]==="\\"){J+=2;continue
|
|
|
9
9
|
`:" ",j++}M+=" ",j++,J=z,U="";continue}if(V==="/"&&P(J,U)){let $=Q(H,j);if($!==-1){M+=`/${" ".repeat($-j-2)}/`,j=$,J=z,U="";continue}}if(V==="`"){M+=" ",j++;while(j<H.length&&H[j]!=="`"){if(H[j]==="\\"){M+=" ",j+=2;continue}if(H[j]==="$"&&H[j+1]==="{"){let $=j+2,B=F(H,$);if(M+=" ",M+=X(H.slice($,B)),B<H.length)M+=" ";j=B+1;continue}M+=H[j]===`
|
|
10
10
|
`?`
|
|
11
11
|
`:" ",j++}M+=" ",j++,J=z,U="";continue}if(M+=V,j++,/[\w$]/.test(V))U=/[\w$]/.test(J)?U+V:V,J=V;else if(!/\s/.test(V))J=V,U=""}return M}function Y(H){let M=new Uint16Array(H.length),j=0,J=!0;for(let U=0;U<H.length;U++){let Z=H[U];if(Z===")"||Z==="]"||Z==="}")if(j===0)J=!1;else j--;if(M[U]=j,Z==="("||Z==="["||Z==="{")j++}return{depths:M,balanced:J&&j===0}}
|
|
12
|
-
export{F as
|
|
12
|
+
export{F as xs,X as ys,Y as zs};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{dm as c,gm as d,hm as e,im as f,jm as g,km as h,lm as i,mm as j,nm as k,om as l,pm as m,qm as n}from"./chunk-qp4x0mwv.js";import"./chunk-4cv7bw5e.js";import"./chunk-7tgjn256.js";import{xs as a,ys as b}from"./chunk-h8zp2fz9.js";import"./chunk-ekvejzvk.js";import"./chunk-3769e62c.js";import"./chunk-1bdvnmxd.js";import"./chunk-yj5gkn17.js";import"./chunk-cy8hgd86.js";import"./chunk-3wmdjemm.js";import"./chunk-g7qmxjyc.js";import"./chunk-88tt0qg0.js";import"./chunk-e1rv01pn.js";import"./chunk-bdz7nznw.js";import"./chunk-rwtj7j0r.js";import"./chunk-eqhsprr0.js";import"./chunk-csgshaeh.js";import"./chunk-d0qy1ezf.js";import"./chunk-c9kj8p6j.js";import"./chunk-x2wmn8m7.js";import"./chunk-rxz43r6k.js";export{h as transformAutoImports,b as stripCommentsAndLiterals,e as renderVendorStyleTags,i as referencesName,n as processClientScript,g as injectBrowserCoreAutoImports,m as generateServerDataBridge,k as generateBrowserAutoImportDestructuring,j as generateAutoImportDestructuring,a as findInterpolationEnd,l as extractBridgeData,d as extractAndStripCssImports,f as STX_AUTO_IMPORTS,c as BROWSER_CORE_IMPORTS};
|
|
@@ -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{
|
|
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{No as V}from"./chunk-qp4x0mwv.js";import"./chunk-4cv7bw5e.js";import"./chunk-7tgjn256.js";import"./chunk-h8zp2fz9.js";import"./chunk-ekvejzvk.js";import"./chunk-3769e62c.js";import"./chunk-1bdvnmxd.js";import"./chunk-yj5gkn17.js";import"./chunk-cy8hgd86.js";import"./chunk-3wmdjemm.js";import"./chunk-g7qmxjyc.js";import"./chunk-88tt0qg0.js";import"./chunk-e1rv01pn.js";import"./chunk-bdz7nznw.js";import"./chunk-rwtj7j0r.js";import"./chunk-eqhsprr0.js";import"./chunk-csgshaeh.js";import"./chunk-d0qy1ezf.js";import"./chunk-c9kj8p6j.js";import"./chunk-x2wmn8m7.js";import{$w as F}from"./chunk-rxz43r6k.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-
|
|
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-bd5gvhsw.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-bd5gvhsw.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,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")}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"}">
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{Dr as a,Er as b,Fr as c,Gr as d,Hr as e,Ir as f}from"./chunk-qp4x0mwv.js";import"./chunk-4cv7bw5e.js";import"./chunk-7tgjn256.js";import"./chunk-h8zp2fz9.js";import"./chunk-ekvejzvk.js";import"./chunk-3769e62c.js";import"./chunk-1bdvnmxd.js";import"./chunk-yj5gkn17.js";import"./chunk-cy8hgd86.js";import"./chunk-3wmdjemm.js";import"./chunk-g7qmxjyc.js";import"./chunk-88tt0qg0.js";import"./chunk-e1rv01pn.js";import"./chunk-bdz7nznw.js";import"./chunk-rwtj7j0r.js";import"./chunk-eqhsprr0.js";import"./chunk-csgshaeh.js";import"./chunk-d0qy1ezf.js";import"./chunk-c9kj8p6j.js";import"./chunk-x2wmn8m7.js";import"./chunk-rxz43r6k.js";export{f as validateConfig,b as resolveStxDirectories,c as loadStxConfig,e as defineStxConfig,a as defaultConfig,d as config};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Au as
|
|
2
|
+
import{Au as g,Bu as h,Cu as i,Du as j,Eu as k,Fu as l,Gu as m,Hu as n,Iu as o,Ju as p,uu as a,vu as b,wu as c,xu as d,yu as e,zu as f}from"./chunk-e1rv01pn.js";import"./chunk-bdz7nznw.js";import"./chunk-x2wmn8m7.js";import"./chunk-rxz43r6k.js";export{i as useTitle,f as useSeoMeta,i as usePageTitle,d as useHead,g as seoMetaToHeadConfig,c as resetHead,k as renderHtmlAttrs,j as renderHead,l as renderBodyAttrs,o as processTitleDirective,p as processMetaDirective,n as processHeadDirective,e as mergeHeadConfigs,b as getPageMeta,a as getHead,h as definePageMeta,m as applyHead};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{Lm as W,Tp as X}from"./chunk-qp4x0mwv.js";import V from"fs";import M from"path";import*as Y from"readline";var j={reset:"\x1B[0m",bold:"\x1B[1m",dim:"\x1B[2m",red:"\x1B[31m",green:"\x1B[32m",yellow:"\x1B[33m",blue:"\x1B[34m",magenta:"\x1B[35m",cyan:"\x1B[36m"},Q={help:{description:"Show available commands",usage:"help [command]",handler:async(q,z)=>{if(q[0]&&Q[q[0]]){let A=Q[q[0]];console.log(`
|
|
3
3
|
${j.bold}${q[0]}${j.reset} - ${A.description}`),console.log(` Usage: ${j.cyan}${A.usage}${j.reset}
|
|
4
4
|
`)}else{console.log(`
|
|
5
5
|
${j.bold}Available Commands:${j.reset}
|
|
@@ -21,4 +21,4 @@ ${j.bold}${j.blue}stx Interactive Mode${j.reset}
|
|
|
21
21
|
${j.dim}Type 'help' for available commands, 'exit' to quit${j.reset}
|
|
22
22
|
`);let B=()=>{let G=z.cwd.replace(process.env.HOME||"","~");A.question(`${j.cyan}stx${j.reset} ${j.dim}${G}${j.reset} ${j.green}>${j.reset} `,async(I)=>{let K=I.trim();if(!K){if(z.running)B();return}z.history.push(K);let L=K.match(/(?:[^\s"]|"[^"]*")+/g)||[],J=L[0]?.toLowerCase(),O=L.slice(1).map((U)=>U.replace(/^"|"$/g,""));if(J&&Q[J])try{await Q[J].handler(O,z)}catch(U){console.log(`${j.red}Error:${j.reset}`,U)}else if(J)if(K.includes("{{")||K.includes("}}"))try{let U=await W(K,z.context,"eval");console.log(`${j.green}\u2192${j.reset} ${U}`)}catch{console.log(`${j.red}Unknown command: ${J}${j.reset}`),console.log(`${j.dim}Type 'help' for available commands${j.reset}`)}else console.log(`${j.red}Unknown command: ${J}${j.reset}`),console.log(`${j.dim}Type 'help' for available commands${j.reset}`);if(z.running)B();else A.close()})};A.on("SIGINT",()=>{console.log(`
|
|
23
23
|
${j.dim}(Use 'exit' to quit)${j.reset}`),B()}),B()}
|
|
24
|
-
export{R as
|
|
24
|
+
export{R as Xe};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{$g as h,Ug as a,Vg as b,Wg as c,Xg as d,Yg as e,Zg as f,_g as g,ah as i}from"./chunk-k2nydt80.js";import"./chunk-6rzwef28.js";import"./chunk-rxz43r6k.js";export{c as setCachedImageResult,e as processImage,f as optimizeImage,b as getCachedImageResult,i as generateSrcset,h as generateResponsiveVariants,d as clearImageCache,g as applyTransformations,a as ImageProcessorCache};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{mh as x,rh as M,sh as C,th as v,uh as P}from"./chunk-6rzwef28.js";import{$w as y}from"./chunk-rxz43r6k.js";import{resolve as h,basename as f,extname as u,join as m}from"path";import{mkdir as l}from"fs/promises";var I={enabled:!0,directory:".stx/media-cache",maxAge:30,maxSize:500,cacheVariants:!0,cachePlaceholders:!0};class z{config;constructor(J={}){this.config={...I,...J}}async get(J,Z){return C(J,Z,"image",this.config)}async set(J,Z,Y){return v(J,Z,Y,"image",this.config)}async clear(){return P("image",this.config)}updateConfig(J){this.config={...this.config,...J}}}var H=null;function S(J){if(!H)H=new z(J);else if(J)H.updateConfig(J);return H}async function w(J,Z,Y){let K=Y?{directory:`${Y.outputDir}/../.cache`}:{};return S(K).get(J,Z)}async function Q(J,Z,Y,K){let X=K?{directory:`${K.outputDir}/../.cache`}:{};return S(X).set(J,Z,Y)}async function d(){return S().clear()}async function R(){try{return await import("ts-images")}catch{return null}}function b(J){switch(J){case"quality":return{jpeg:{quality:90,mozjpeg:!0,progressive:!0},png:{compressionLevel:6,palette:!1},webp:{quality:90,effort:6,smartSubsample:!0},avif:{quality:85,effort:6}};case"performance":return{jpeg:{quality:70,mozjpeg:!0,progressive:!0},png:{compressionLevel:9,palette:!0},webp:{quality:70,effort:4,smartSubsample:!0},avif:{quality:60,effort:2}};case"web":default:return{jpeg:{quality:82,mozjpeg:!0,progressive:!0},png:{compressionLevel:8,palette:!1},webp:{quality:82,effort:5,smartSubsample:!0},avif:{quality:75,effort:4}}}}function p(J,Z){let Y=Z?b(Z):b("web"),K=J.formatQuality||{};return{jpeg:{...Y.jpeg,...K.jpeg},png:{...Y.png,...K.png},webp:{...Y.webp,...K.webp},avif:{...Y.avif,...K.avif}}}async function g(J,Z,Y){let K=await R();if(!K)return console.warn("[stx-media] ts-images not installed, skipping optimization"),{src:J,processed:!1};let X=await w(J,Z,Y);if(X)return X;try{let N=h(J);if(!await M(N))return{src:J,processed:!1,errors:[`Source file not found: ${J}`]};let L=p(Y,Z.preset),V=Y.outputDir||"dist/images",F=Y.baseUrl||"/images";await l(V,{recursive:!0});let q=await x(N),U=f(J,u(J)),E=Z.outputFormat?[Z.outputFormat]:Y.defaultFormats||["avif","webp","jpeg"],G={src:J,processed:!0,variants:[],hash:q},j=null;if(Z.transformations&&Z.transformations.length>0)j=await D(N,Z.transformations,K);for(let $ of E){let A=L[$]||{},W=`${U}-${q}.${$}`,_=m(V,W);try{let O=await K.optimizeImage({input:j||N,output:_,format:$,quality:A.quality,progressive:A.progressive});if(O){if(G.variants.push({path:_,url:`${F}/${W}`,width:O.width||0,height:O.height||0,format:$,size:O.outputSize||0}),!G.originalWidth&&O.width)G.originalWidth=O.width,G.originalHeight=O.height}}catch(O){G.errors=G.errors||[],G.errors.push(`Failed to optimize ${$}: ${O}`)}}if(Z.embedThumbhash||Z.placeholder==="thumbhash")try{let $=await K.generateThumbHash(N);G.placeholder=$.dataUrl}catch($){G.errors=G.errors||[],G.errors.push(`Failed to generate thumbhash: ${$}`)}if(Z.useDominantColor)try{let $=await K.generatePlaceholder(N,{strategy:"dominant-color"});G.dominantColor=$.dominantColor}catch($){G.errors=G.errors||[],G.errors.push(`Failed to extract dominant color: ${$}`)}return await Q(J,Z,G,Y),G}catch(N){return{src:J,processed:!1,errors:[`Processing failed: ${N}`]}}}async function n(J,Z,Y,K){let X=await R();if(!X)return{success:!1,error:"ts-images not installed"};try{return{success:!0,size:(await X.optimizeImage({input:J,output:K,format:Z,quality:Y}))?.outputSize}}catch(N){return{success:!1,error:String(N)}}}async function D(J,Z,Y){let K=Y||await R();if(!K)return console.warn("[stx-media] ts-images not installed, skipping transformations"),null;try{let X=await K.decode(J);for(let N of Z){let L=N.options||{};switch(N.type){case"resize":if(L.width||L.height)X=await K.resize(X,{width:L.width,height:L.height,fit:L.fit});break;case"blur":if(L.sigma!==void 0)X=await K.blur(X,L.sigma);break;case"sharpen":if(L.amount!==void 0)X=await K.sharpen(X,L.amount);break;case"grayscale":X=await K.grayscale(X);break;case"rotate":if(L.angle!==void 0)X=await K.rotate(X,L.angle);break;case"flip":X=await K.flip(X);break;case"flop":X=await K.flop(X);break;case"brightness":if(L.value!==void 0)X=await K.brightness(X,L.value);break;case"contrast":if(L.value!==void 0)X=await K.contrast(X,L.value);break;case"saturation":if(L.value!==void 0)X=await K.saturation(X,L.value);break}}return await K.encode(X,"png")}catch(X){return console.error(`[stx-media] Transformation failed: ${X}`),null}}import{resolve as c,basename as i,extname as r,join as o}from"path";import{mkdir as a}from"fs/promises";async function e(){try{return await import("ts-images")}catch{return null}}var s=[320,480,640,768,1024,1280,1536,1920];async function t(J,Z,Y){let K=await e();if(!K)return console.warn("[stx-media] ts-images not installed, skipping responsive generation"),null;let X=c(J);if(!await M(X))return console.warn(`[stx-media] Source file not found: ${J}`),null;try{let N=Z.responsiveWidths||Y.breakpoints||s,L=Z.formats||Y.defaultFormats||["avif","webp","jpeg"],V=Y.outputDir||"dist/images",F=Y.baseUrl||"/images";await a(V,{recursive:!0});let q=await x(X),U=i(J,r(J)),E=Y.formatQuality||{jpeg:{quality:82},png:{quality:80},webp:{quality:82},avif:{quality:75}},G={src:J,byFormat:{},srcsets:{}};for(let $ of L){G.byFormat[$]=[];let A=[];for(let W of N){let _=`${U}-${W}w-${q}.${$}`,O=o(V,_),B=`${F}/${_}`;try{let T=E[$]?.quality||80;if(await M(O)){G.byFormat[$].push({path:O,url:B,width:W,height:0,format:$,size:0}),A.push(`${B} ${W}w`);continue}let k=await K.processImage({input:X,output:O,format:$,quality:T,resize:{width:W}});if(k)G.byFormat[$].push({path:O,url:B,width:W,height:k.height||Math.round(W*(k.height||1)/(k.width||1)),format:$,size:k.outputSize||0}),A.push(`${B} ${W}w`)}catch(T){console.warn(`[stx-media] Failed to generate ${$} at ${W}w: ${T}`)}}G.srcsets[$]=A.join(", ")}let j=Z.placeholder||Y.placeholderStrategy||"thumbhash";if(j!=="none")try{if(j==="thumbhash"){let $=await K.generateThumbHash(X);G.placeholder={dataURL:$.dataUrl,width:$.width||32,height:$.height||32,strategy:"thumbhash"}}else{let $=await K.generatePlaceholder(X,{strategy:j,width:20});G.placeholder={dataURL:$.dataURL,width:$.width,height:$.height,strategy:j}}}catch($){console.warn(`[stx-media] Failed to generate placeholder: ${$}`)}return G.sizes=Z.sizes||JJ(N),G}catch(N){return console.error(`[stx-media] Responsive generation failed: ${N}`),null}}function JJ(J){let Z=[...J].sort((K,X)=>K-X),Y=[];for(let K=0;K<Z.length-1;K++){let X=Z[K];Y.push(`(max-width: ${X}px) ${X}px`)}return Y.push(`${Z[Z.length-1]}px`),Y.join(", ")}function KJ(J,Z="width"){if(!J||J.length===0)return"";if(Z==="dpr")return J.filter((Y)=>Y.dpr).map((Y)=>`${Y.url} ${Y.dpr}x`).join(", ");return J.map((Y)=>`${Y.url} ${Y.width}w`).join(", ")}export{z as Ug,w as Vg,Q as Wg,d as Xg,g as Yg,n as Zg,D as _g,t as $g,KJ as ah};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{mg as e,og as kF,pg as UF,qg as wF,yg as EF}from"./chunk-pvme0rs1.js";import{Bg as BF}from"./chunk-g64qyhhb.js";import{rj as l,sj as d}from"./chunk-tf964vs3.js";import{Gk as HF,Hk as IF,Ik as KF}from"./chunk-7eea1cse.js";import{ql as YF,sl as ZF}from"./chunk-6s204hr5.js";import{$m as s,Dr as t,Fr as M,Hp as GF,Pp as VF,Tp as r,Yp as o,no as zF,pp as $F,rm as p,tm as i}from"./chunk-qp4x0mwv.js";import{Fs as XF}from"./chunk-ekvejzvk.js";import{vt as qF}from"./chunk-1bdvnmxd.js";import{Pt as WF}from"./chunk-3wmdjemm.js";import{Ut as QF}from"./chunk-g7qmxjyc.js";import{Kw as h,Nw as _F}from"./chunk-d0qy1ezf.js";import G from"fs";import q from"path";import{createHash as NF}from"crypto";_F();function u(Q){return NF("sha256").update(Q).digest("hex").slice(0,8)}function c(Q=!1){let z=Q?d():l(),Z=u(z);return{content:z,filename:`runtime.${Z}.js`,hash:Z}}function a(){let Q=h(),z=u(Q);return{content:Q,filename:`router.${z}.js`,hash:z}}function bF(Q){return{runtimeTag:Q.runtime?`<script src="/__stx/${Q.runtime.filename}"></script>`:"",routerTag:Q.router?`<script src="/__stx/${Q.router.filename}"></script>`:"",cssTag:Q.css?`<link rel="stylesheet" href="/__stx/${Q.css.filename}">`:""}}import n from"path";import{createHash as OF}from"crypto";function TF(Q={}){let z=new Set;return{context:new Proxy(Q,{get(X,F){if(F in X)return X[F];if(typeof F==="string"&&!F.startsWith("__"))z.add(F);return},has(X,F){if(F in X)return!0;if(typeof F==="string"&&!F.startsWith("__"))z.add(F);return!1}}),accessedKeys:z}}async function FF(Q,z,Z={}){let X=n.resolve(Q),F=await Bun.file(X).text(),U=OF("sha256").update(F).digest("hex").slice(0,16);p();let w={};try{w=await M(Z.configDir)}catch{}let H=[],V=/<script\b([^>]*)>([\s\S]*?)<\/script>/gi,k;while((k=V.exec(F))!==null){let E=k[1];if(/\bserver\b/.test(E))H.push(k[2])}let W=new Set(H.flatMap((E)=>o(E))),{context:_}=TF({__filename:X,__dirname:n.dirname(X),__stx_serverDeclared:W}),N=new Set,x={...t,...w,...Z,buildMode:"compile",strict:!1},I=await r(F,_,X,x,N),O=e(I),j=i();return{route:z,sourceFile:Q,html:I,fragment:O,placeholders:j,hasServerScripts:H.length>0,serverScriptContent:H,dependencies:Array.from(N),contentHash:U,status:s(F),streamTemplates:_.__streamTemplates}}var MF=new Set([".DS_Store","Thumbs.db","desktop.ini",".gitkeep",".gitignore"]);function JF(Q,z){let Z=0,X=0;if(!G.existsSync(Q))return{copied:Z,bytes:X};G.mkdirSync(z,{recursive:!0});function F(U,w){let H=G.readdirSync(U,{withFileTypes:!0});for(let V of H){if(MF.has(V.name))continue;let k=q.join(U,V.name),W=q.join(w,V.name);if(V.isDirectory())G.mkdirSync(W,{recursive:!0}),F(k,W);else if(V.isFile()){if(G.existsSync(W))continue;G.copyFileSync(k,W),Z++,X+=G.statSync(W).size}}}return F(Q,z),{copied:Z,bytes:X}}async function qJ(Q={}){let z=Date.now(),Z=q.resolve(Q.root||process.cwd()),X=q.resolve(Z,Q.outputDir||".output");console.log("[stx build] Starting production build...");let F=await M(Z),U=q.resolve(Z,Q.componentsDir??F.componentsDir??"components"),w=q.resolve(Z,Q.partialsDir??F.partialsDir??"partials"),H=q.resolve(Z,Q.layoutsDir??F.layoutsDir??"layouts"),V=Q.publicDir??F.publicDir??"public",k=F.app?.head||{},W=F.app?.colorMode,_=F.router?.container||"main",N=Q.routeRules??F.routeRules??{},x=BF(N),I=Q.serverApi??F.serverApi,O=typeof I==="object"?I:{};if(I)YF(Z,O);if(F.runtimeConfig)QF(F.runtimeConfig,{});if(G.existsSync(X))G.rmSync(X,{recursive:!0});let j=[q.join(X,"public","__stx"),q.join(X,"public","assets"),q.join(X,"server","pages"),q.join(X,"server","fragments")];for(let Y of j)G.mkdirSync(Y,{recursive:!0});console.log("[stx build] Discovering routes...");let E=zF(Z,{pagesDirs:F._layerPageDirs}),LF=["components","layouts","partials"],y=E.filter((Y)=>{return!LF.some((B)=>Y.pattern.startsWith(`/${B}/`)||Y.pattern===`/${B}`)});console.log(`[stx build] Found ${y.length} page routes (${E.length-y.length} non-page files excluded)`),console.log("[stx build] Generating shared assets...");let L=c(Q.debug),K=a();await Bun.write(q.join(X,"public","__stx",L.filename),L.content),await Bun.write(q.join(X,"public","__stx",K.filename),K.content),console.log(`[stx build] Runtime: ${L.filename} (${(L.content.length/1024).toFixed(1)}KB)`),console.log(`[stx build] Router: ${K.filename} (${(K.content.length/1024).toFixed(1)}KB)`),console.log("[stx build] Compiling templates...");let R=[],v=[];for(let Y of y){let B=x(Y.pattern),b=B.rendering==="prerender";if(b&&(Y.pattern.includes(":")||Y.pattern.includes("[")))throw Error(`Cannot prerender parameter route ${Y.pattern}; use dynamic rendering (explicit path enumeration is not supported here)`);try{let J=await FF(Y.filePath,Y.pattern,{configDir:Z,componentsDir:U,partialsDir:w,layoutsDir:H,debug:Q.debug});if(R.push(J),J.html=J.html.replace(/runtime\.__STX_HASH__\.js/g,L.filename).replace(/router\.__STX_HASH__\.js/g,K.filename),J.html=VF(J.html,k,{bodyScripts:[`<script src="/__stx/${K.filename}"></script>`],...W&&{colorMode:W}}),W)J.html=$F(J.html,W);if(k.htmlAttrs)J.html=GF(J.html,k.htmlAttrs);if(!/<body[^>]*\bdata-stx=/.test(J.html)){let $=J.html.match(/<(?!body\b)[a-zA-Z][a-zA-Z0-9-]*\b[^>]*?\s(data-stx="[^"]+")[^>]*>/);if($&&$[1]){let m=$[1];J.html=J.html.replace(" "+m,""),J.html=J.html.replace(/<body([^>]*)>/,`<body$1 ${m}>`)}}if(J.html=J.html.replace(/<style data-css="generated">[\s\S]*?<\/style>\s*/g,""),J.html=await qF(J.html),b){let $=await EF(J,{params:{},request:new Request(`http://stx.build${Y.pattern}`),method:"GET",__stx_strict_hydration:!0});if($.redirect||$.cookies?.length||$.boundaries?.length||$.headers&&Object.keys($.headers).length)throw Error(`Prerendered route ${Y.pattern} cannot set response headers/cookies, redirect or stream`);J.html=$.html,J.status=$.status??J.status,J.hasServerScripts=!1,J.serverScriptContent=[],J.placeholders={}}J.fragment=kF(J.html,_);let C=Y.pattern==="/"?"index":Y.pattern.slice(1).replace(/\//g,"-").replace(/[[\]]/g,"_"),g=q.join("server","pages",`${C}.compiled.json`),f=q.join("server","fragments",`${C}.html`);await Bun.write(q.join(X,g),JSON.stringify(J,null,2)),await Bun.write(q.join(X,f),J.fragment),v.push({pattern:Y.pattern,compiledPath:g,fragmentPath:f,isDynamic:J.hasServerScripts,hasParams:Y.pattern.includes(":")||Y.pattern.includes("["),prerendered:b}),console.log(`[stx build] \u2713 ${Y.pattern}`)}catch(J){if(Object.keys(B).length)throw J;console.error(`[stx build] \u2717 ${Y.pattern}:`,J instanceof Error?J.message:J)}}let P=q.resolve(Z,V);if(G.existsSync(P)){let{copied:Y,bytes:B}=JF(P,q.join(X,"public"));if(Y>0)console.log(`[stx build] Copied ${Y} public asset${Y===1?"":"s"} (${(B/1024).toFixed(1)}KB) from ${V}/`)}let A=KF(Z);if(A){let{copied:Y,bytes:B}=JF(A,q.join(X,"public",IF));if(Y>0)console.log(`[stx build] Copied ${Y} asset${Y===1?"":"s"} (${(B/1024).toFixed(1)}KB) from ${HF}/`)}let S={runtime:L.filename,router:K.filename},T=UF(v,S,X);if(T.routeRules=N,T.routerContainer=_,I)T.apiRoutes=await ZF(Z,X,O);if(F.runtimeConfig)await Bun.write(q.join(X,"server/runtime-config.json"),JSON.stringify(F.runtimeConfig)),await WF(Z,F.runtimeConfig);if(F._layerGraph)await Bun.write(q.join(X,"server/layers.json"),JSON.stringify(XF(F._layerGraph),null,2));wF(T,X);let D=Date.now()-z;return console.log(`
|
|
3
3
|
[stx build] Done in ${D}ms \u2014 ${R.length} pages compiled`),{pageCount:R.length,assets:S,outputDir:X,duration:D}}
|
|
4
|
-
export{u as
|
|
4
|
+
export{u as Vf,c as Wf,a as Xf,bF as Yf,FF as Zf,qJ as _f};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{Ef as L,Ff as w,Gf as x,Hf as p,If as F,Jf as T,Mf as I,Nf as f,Of as l,Pf as n,Qf as i,Rf as P,Sf as o,Tf as a}from"./chunk-980w4zcq.js";import{Ks as ZG}from"./chunk-3769e62c.js";function HG(X,Z={}){let{src:G,alt:J,width:q,height:$,sizes:K="100vw",loading:Q="lazy",priority:Y=!1,quality:M=x,placeholder:N="none",formats:j=w,widths:C=L,decoding:B="async",fetchpriority:V,objectFit:O,objectPosition:W}=X,H=X.class,z=X.style,{processedImage:R,variants:_,optimize:E=!0,isDev:S=!1}=Z;if(_&&_.length>0)return OG(X,_,R);if(S||!E)return MG(X);return VG(X)}function OG(X,Z,G){let{src:J,alt:q,width:$,height:K,sizes:Q="100vw",loading:Y="lazy",priority:M=!1,decoding:N="async",fetchpriority:j,objectFit:C,objectPosition:B,placeholder:V="none"}=X,O=X.class,W=X.style,H=n(Z),z=l(Z),R=typeof Q==="object"?f(Q):Q,_=G?G.aspectRatio:$&&K?Number($)/Number(K):void 0,E=[];if(_)E.push(`aspect-ratio: ${_}`);if(C)E.push(`object-fit: ${C}`);if(B)E.push(`object-position: ${B}`);if(W)E.push(W);let S=E.length>0?` style="${E.join("; ")}"`:"",b=O?` class="${O}"`:"",u=M?"":` loading="${Y}"`,d=` decoding="${N}"`,h=j?` fetchpriority="${j}"`:M?' fetchpriority="high"':"",r=["avif","webp","jpeg","png"],s=[];for(let U of r){let D=H.get(U);if(D&&D.length>0){let m=I(D),QG=P(U);s.push(` <source type="${QG}" srcset="${m}" sizes="${R}" />`)}}let e="",t="",g;if(V!=="none"&&G?.placeholder){let U=`img-${Math.random().toString(36).slice(2,8)}`;if(e=`<div class="stx-image-wrapper" id="${U}">`,t="</div>",V==="blur")g=`
|
|
3
3
|
#${U} {
|
|
4
4
|
position: relative;
|
|
5
5
|
background-image: url('${G.placeholder}');
|
|
@@ -40,4 +40,4 @@ ${O}
|
|
|
40
40
|
${O}
|
|
41
41
|
</div>`}}if(G.priority&&C){let W=P(C.format);O=`<link rel="preload" as="image" href="${k(C.url)}" type="${W}" />
|
|
42
42
|
`+O}return O}function k(X){return X.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}var UG=$G();import v from"fs";import A from"path";function LG(X={}){let{inputDirs:Z=["public","src/assets","assets"],outputDir:G="dist/images",baseUrl:J="/images",formats:q=w,widths:$=L,quality:K=x,placeholder:Q="none",concurrency:Y=4,cache:M=!0,cacheDir:N=".stx/image-cache",referencedOnly:j=!1,verbose:C=!1}=X,B={imageReferences:new Set,processedImages:new Map,stats:{totalImages:0,optimizedImages:0,savedBytes:0,variants:0}};return{name:"stx-image-optimization",async setup(V){if(!await F()){console.warn("[stx-images] no image backend available, optimization disabled");return}if(M)await v.promises.mkdir(N,{recursive:!0});if(C){let W=await p();console.log("[stx-images] Plugin initialized"),console.log(` Backend: ${W?"sharp (native fast path) + ts-images":"ts-images (pure TS)"}`),console.log(` Input dirs: ${Z.join(", ")}`),console.log(` Output dir: ${G}`),console.log(` Formats: ${q.join(", ")}`),console.log(` Widths: ${$.join(", ")}`)}},async buildStart(){B.imageReferences.clear(),B.processedImages.clear(),B.stats={totalImages:0,optimizedImages:0,savedBytes:0,variants:0}},async transform(V,O){if(O.endsWith(".html")||O.endsWith(".stx")){let W=wG(V);for(let H of W)B.imageReferences.add(H)}if(V.includes("<Image")||V.includes("@image"))return await kG(V,{formats:q,widths:$,quality:K,placeholder:Q,outputDir:G,baseUrl:J,processedImages:B.processedImages});return V},async buildEnd(V){if(!await F())return;await v.promises.mkdir(G,{recursive:!0});let W=[];for(let R of Z){if(!v.existsSync(R))continue;let _=await KG(R);W.push(..._)}let H=j?W.filter((R)=>xG(R,B.imageReferences)):W;if(B.stats.totalImages=H.length,C)console.log(`[stx-images] Processing ${H.length} images...`);let z=qG(H,Y);for(let R of z)await Promise.all(R.map(async(_)=>{try{let E=await T(_,{formats:q,widths:$,quality:K,placeholder:Q,outputDir:G,baseUrl:J});B.processedImages.set(_,E),B.stats.optimizedImages++,B.stats.variants+=E.variants.length;let S=v.statSync(_).size,b=o(E.variants);if(B.stats.savedBytes+=Math.max(0,S-b/E.variants.length),C)console.log(` \u2713 ${A.basename(_)} \u2192 ${E.variants.length} variants`)}catch(E){console.error(`[stx-images] Error processing ${_}:`,E)}}));if(console.log("[stx-images] Optimization complete:"),console.log(` Images: ${B.stats.optimizedImages}/${B.stats.totalImages}`),console.log(` Variants: ${B.stats.variants}`),B.stats.savedBytes>0)console.log(` Saved: ~${a(B.stats.savedBytes)}`)}}}function wG(X){let Z=[],G=/src=["']([^"']+\.(jpg|jpeg|png|webp|avif|gif))["']/gi,J;while((J=G.exec(X))!==null)Z.push(J[1]);let q=/<Image[^>]+src=["']([^"']+)["']/gi;while((J=q.exec(X))!==null)Z.push(J[1]);let $=/@image\s*\(\s*['"]([^'"]+)['"]/gi;while((J=$.exec(X))!==null)Z.push(J[1]);let K=/background(?:-image)?:\s*url\(["']?([^"')]+\.(jpg|jpeg|png|webp|avif|gif))["']?\)/gi;while((J=K.exec(X))!==null)Z.push(J[1]);return Z}function xG(X,Z){let G=A.basename(X);for(let J of Z)if(J.endsWith(G)||J.includes(G))return!0;return!1}async function kG(X,Z){return X}async function KG(X){let Z=[];async function G(J){let q=await v.promises.readdir(J,{withFileTypes:!0});for(let $ of q){let K=A.join(J,$.name);if($.isDirectory())await G(K);else if($.isFile()&&i(K))Z.push(K)}}return await G(X),Z}function qG(X,Z){let G=[];for(let J=0;J<X.length;J+=Z)G.push(X.slice(J,J+Z));return G}async function FG(X,Z,G={}){if(!await F())throw Error("No image backend available \u2014 install sharp or ensure ts-images is bundled");return T(X,{...G,outputDir:Z})}async function SG(X,Z,G={}){let{formats:J=w,widths:q=L,quality:$=x,placeholder:K="none",concurrency:Q=4,verbose:Y=!1}=G;if(!await F())throw Error("No image backend available \u2014 install sharp or ensure ts-images is bundled");await v.promises.mkdir(Z,{recursive:!0});let N=await KG(X),j=[],C={totalImages:N.length,optimizedImages:0,savedBytes:0,variants:0},B=qG(N,Q);for(let V of B){let O=await Promise.all(V.map(async(W)=>{try{let H=await T(W,{formats:J,widths:q,quality:$,placeholder:K,outputDir:Z,baseUrl:"/"});if(C.optimizedImages++,C.variants+=H.variants.length,Y)console.log(` \u2713 ${A.basename(W)}`);return H}catch(H){return console.error(`Error processing ${W}:`,H),null}}));j.push(...O.filter((W)=>W!==null))}return{processed:j,stats:C}}function YG(X){let Z={};for(let G of X)Z[G.src]={variants:G.variants,placeholder:G.placeholder};return Z}async function PG(X,Z){let G=YG(X);await Bun.write(Z,JSON.stringify(G,null,2))}var cG={enabled:!0,widths:[320,640,768,1024,1280,1536,1920],formats:["webp","jpeg"],quality:80,devOptimize:!1,cacheDir:".stx/image-cache",placeholder:"none",inputDirs:["public","src/assets","assets"],outputDir:"dist/images",baseUrl:"/images"};
|
|
43
|
-
export{HG as
|
|
43
|
+
export{HG as qf,JG as rf,jG as sf,CG as tf,$G as uf,UG as vf,LG as wf,FG as xf,SG as yf,YG as zf,PG as Af,cG as Bf};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{ql as a,rl as b,sl as c,tl as d,ul as e,vl as f,wl as g}from"./chunk-6s204hr5.js";import"./chunk-ekvejzvk.js";import"./chunk-yj5gkn17.js";import"./chunk-g7qmxjyc.js";import"./chunk-d0qy1ezf.js";import"./chunk-rxz43r6k.js";export{e as productionApiDispatcher,g as isServerApiSource,b as generateApiTypes,a as discoverServerApi,f as createServerApi,d as createApiDispatcher,c as buildServerApi};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
3
|
-
`),B;try{let{bundleClientScript:j}=await import("./chunk-
|
|
2
|
+
import{$w as H}from"./chunk-rxz43r6k.js";import P from"path";var $=/__stxModules\["((?:[^"\\]|\\.)*)"\]/g;function G(...w){let v=new Set;for(let q of w){if(!q||!q.includes("__stxModules["))continue;for(let z of q.matchAll($))try{v.add(JSON.parse(`"${z[1]}"`))}catch{}}return[...v].sort()}async function T(w,v={}){if(w.length===0)return null;let q=process.cwd(),z=[],J=[];w.forEach((j,X)=>{let Z=j.startsWith("npm:")?j.slice(4):P.resolve(q,j),N=`__stxRegistered${X}`,O=JSON.stringify(j);z.push(`import * as ${N} from ${JSON.stringify(Z)};`),J.push(`if (!globalThis.__stxModules[${O}]) globalThis.__stxModules[${O}] = ${N};`)});let L=[...z,"globalThis.__stxModules = globalThis.__stxModules || {};",...J].join(`
|
|
3
|
+
`),B;try{let{bundleClientScript:j}=await import("./chunk-4qm9rj1p.js");B=await j(L,P.join(q,".stx-module-registry.ts"),{projectRoot:q,minify:v.minify,externalizeUserModules:!1,collectInputs:v.collectInputs})}catch(j){return console.warn("[stx] could not build the page module registry (#1957):",j),null}let{transformAutoImports:Q,generateAutoImportDestructuring:U}=await import("./chunk-h9eft9vj.js"),F=Q(B),V=U(F.stxImports,F.browserImports),{transformStoreImports:W}=await import("./chunk-07syq64h.js");B=W(F.code);let M=JSON.stringify(new Bun.CryptoHasher("md5").update(L).digest("hex").slice(0,12));return[";(function() {"," var __stxBundles = globalThis.__stxModuleBundles || (globalThis.__stxModuleBundles = {});",` if (__stxBundles[${M}]) return;`,` __stxBundles[${M}] = true;`,V,B,"})();"].join(`
|
|
4
4
|
`)}export{G as registeredModuleIdsIn,T as buildModuleRegistryScript};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{Qt as a,Rt as b,St as c,Tt as d,Ut as e,Vt as f,Wt as g}from"./chunk-g7qmxjyc.js";import"./chunk-rxz43r6k.js";export{a as withRuntimeConfig,c as useServerRuntimeConfig,d as useRuntimeConfig,f as runtimeConfigTag,e as resolveRuntimeConfig,g as injectRuntimeConfig,b as currentRuntimeConfig};
|
|
@@ -5,4 +5,4 @@ var P=new Map([["craft-button",{name:"Button",zigType:"craft.Button",props:[{nam
|
|
|
5
5
|
${F} [${U.join(`,
|
|
6
6
|
${F} `)}]`:"";return`Craft.create("${j.zigType}", ${Q}${W})`}function s(j,q,F){if(q.target==="universal"){let G=[];G.push("// Universal entry point"),G.push("");for(let[Q,U]of F)G.push(`// --- ${Q.toUpperCase()} ---`),G.push(`#if ${Q.toUpperCase()}`),G.push(U),G.push("#endif"),G.push("");return G.join(`
|
|
7
7
|
`)}return F.get(q.target)||J(j,q)}function r(j,q,F){let G=[];function Q(U){G.push({name:U.zigType,hash:D(JSON.stringify(U.props)),props:Object.keys(U.props),events:Array.from(U.events.keys()),slots:[],isNative:U.zigType.startsWith("craft.")});for(let W of U.children)Q(W)}return Q(q),{version:"1.0.0",components:G,entry:j.id,assets:[],styles:j.styles}}function p(j,q){return JSON.stringify({version:3,file:"output.zig",sources:["input.stx"],mappings:""})}var d=0;function E(){return`id_${++d}`}function D(j){let q=0;for(let F=0;F<j.length;F++){let G=j.charCodeAt(F);q=(q<<5)-q+G,q=q&q}return Math.abs(q).toString(36)}function l(j){return j.charAt(0).toUpperCase()+j.slice(1)}function i(j){let q=[],F=/<script[^>]*>([\s\S]*?)<\/script>/gi,G;while((G=F.exec(j))!==null)q.push(G[1]);return q}function a(j){let q=[],F=/<style[^>]*>([\s\S]*?)<\/style>/gi,G;while((G=F.exec(j))!==null)q.push(G[1]);return q}function B(j){let q=j.type==="component"?1:0;if(j.children)for(let F of j.children)q+=B(F);return q}function b(j){let q=j.zigType.startsWith("craft.")?1:0;for(let F of j.children)q+=b(F);return q}function o(j){return{start:async()=>{console.log("[craft-compiler] Hot reload server started")},stop:async()=>{console.log("[craft-compiler] Hot reload server stopped")},notifyChange:(q)=>{console.log(`[craft-compiler] File changed: ${q}`)}}}var t={compileToNative:k,createHotReloadServer:o,NATIVE_COMPONENTS:P},e=t;
|
|
8
|
-
export{P as
|
|
8
|
+
export{P as $j,k as ak,o as bk,e as ck};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{ii as jH}from"./chunk-n46e3gkr.js";import{$p as VH,Fr as BH,Ho as e,Up as S,Vp as zH,Wp as qH,Zp as JH,_p as WH,aq as AH,bq as GH,cq as UH,dm as $H,dq as FH,eq as MH,fq as XH}from"./chunk-qp4x0mwv.js";import{At as f}from"./chunk-yj5gkn17.js";import{Fv as D}from"./chunk-csgshaeh.js";import{existsSync as x,readFileSync as m}from"fs";import U from"path";var EH=new Set(["module","exports","require","$bool","$num","window","document","console","confirm","alert","fetch"]),HH=e.filter((H)=>!EH.has(H)).sort(),KH=[...D].sort(),DH=[...new Set([...HH,...KH])].sort(),PH=new Set(HH),TH=new Set(KH),SH=new Set(DH),t=/\bimport\s+(?!type[\s{])\{([^}]*)\}\s*from\s*(['"])stx\2/g;function xH(H,K){if(K==="server")return`'${H}' is not provided by 'stx' in a <script server> block. The engine binds only its own names there (defineProps, state, useHead, ...); any other name becomes \`await import('stx')\`, which does not resolve, so the whole script fails when the page renders. Import it from '@stacksjs/stx' instead.`;return`'${H}' is not provided by 'stx' in a client <script> block. The import is replaced by the window.stx runtime, which has no '${H}', so it is undefined in the browser.`}function QH(H,K){let Z=[];for(let q of K){if(q.offset===void 0)continue;let Y=q.kind==="server"?PH:TH;t.lastIndex=0;for(let z of q.code.matchAll(t)){let A=z.index+z[0].indexOf("{")+1;for(let G of z[1].matchAll(/[^,]+/g)){let X=G[0];if(/^\s*type\s/.test(X))continue;let M=/^\s*([A-Za-z_$][\w$]*)/.exec(X);if(!M)continue;let $=M[1];if(!SH.has($)||Y.has($))continue;let V=q.offset+A+G.index+M[0].length-$.length,J=H.slice(0,V),I=J.split(`
|
|
3
3
|
`).length;Z.push({line:I,column:V-(J.lastIndexOf(`
|
|
4
4
|
`)+1)+1,offset:V,length:$.length,name:$,kind:q.kind,message:xH($,q.kind)})}}}return Z}import w from"path";var hH="@stacksjs/stx-typescript-plugin";function kH(H,K){let Z=w.resolve(H);for(;;){let q=w.join(Z,"tsconfig.json");if(K(q))return q;let Y=w.dirname(Z);if(Y===Z)return;Z=Y}}function YH(H,K,Z){let q=kH(H,Z);if(!q)return;let Y=new Set,z=(A)=>{if(Y.has(A))return;Y.add(A);let G=K(A);if(!G)return;let X=G.compilerOptions?.plugins;if(Array.isArray(X)){let $=X.find((J)=>J?.name===hH),V=Array.isArray($?.libs)?$.libs.filter((J)=>typeof J==="string"):[];return $?{configPath:A,libs:V.map((J)=>w.resolve(w.dirname(A),J))}:null}let M=typeof G.extends==="string"?[G.extends]:Array.isArray(G.extends)?G.extends:[];for(let $ of[...M].reverse()){if(typeof $!=="string"||!$.startsWith("."))continue;let V=w.resolve(w.dirname(A),$.endsWith(".json")?$:`${$}.json`),J=z(V);if(J!==void 0)return J}return};return z(q)??void 0}function gH(H,K="",Z=""){let q=H.startLine>1?`
|
|
5
5
|
`.repeat(H.startLine-1):"",Y=UH(H)+qH(zH(H.code)),z=H.kind==="client"||H.kind==="plain"?VH(K,H.code):"";return GH(`${q+Y}
|
|
@@ -17,4 +17,4 @@ ${l.trim().split(`
|
|
|
17
17
|
`).slice(0,12).join(`
|
|
18
18
|
`)||"(no output)"}`:void 0;return{diagnostics:h,checkedFiles:M,blockCount:$,expressionCount:V,failure:yH}}function VK(H){return H.map((K)=>{let Z=K.blockKind==="template"?`[template: ${K.expression??""}]`:`[${K.blockKind==="plain"?"<script>":`<script ${K.blockKind}>`}]`;return`${K.file}:${K.line}:${K.column} ${K.category} TS${K.code} ${K.message} ${Z}`}).join(`
|
|
19
19
|
`)}
|
|
20
|
-
export{gH as
|
|
20
|
+
export{gH as Oe,ZH as Pe,JK as Qe,uH as Re,bH as Se,WK as Te,VK as Ue};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{Ye as a}from"./chunk-2d0xzf2c.js";import"./chunk-g64qyhhb.js";import"./chunk-qp4x0mwv.js";import"./chunk-4cv7bw5e.js";import"./chunk-7tgjn256.js";import"./chunk-h8zp2fz9.js";import"./chunk-ekvejzvk.js";import"./chunk-3769e62c.js";import"./chunk-1bdvnmxd.js";import"./chunk-yj5gkn17.js";import"./chunk-cy8hgd86.js";import"./chunk-3wmdjemm.js";import"./chunk-g7qmxjyc.js";import"./chunk-88tt0qg0.js";import"./chunk-e1rv01pn.js";import"./chunk-bdz7nznw.js";import"./chunk-rwtj7j0r.js";import"./chunk-eqhsprr0.js";import"./chunk-csgshaeh.js";import"./chunk-d0qy1ezf.js";import"./chunk-c9kj8p6j.js";import"./chunk-x2wmn8m7.js";import"./chunk-rxz43r6k.js";export{a as buildApp};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{Ho as a,Io as b,Jo as c,Ko as d,Lo as e,Mo as f,No as g,Oo as h,Po as i,Qo as j,Ro as k,So as l}from"./chunk-qp4x0mwv.js";import"./chunk-4cv7bw5e.js";import"./chunk-7tgjn256.js";import"./chunk-h8zp2fz9.js";import"./chunk-ekvejzvk.js";import"./chunk-3769e62c.js";import"./chunk-1bdvnmxd.js";import"./chunk-yj5gkn17.js";import"./chunk-cy8hgd86.js";import"./chunk-3wmdjemm.js";import"./chunk-g7qmxjyc.js";import"./chunk-88tt0qg0.js";import"./chunk-e1rv01pn.js";import"./chunk-bdz7nznw.js";import"./chunk-rwtj7j0r.js";import"./chunk-eqhsprr0.js";import"./chunk-csgshaeh.js";import"./chunk-d0qy1ezf.js";import"./chunk-c9kj8p6j.js";import"./chunk-x2wmn8m7.js";import"./chunk-rxz43r6k.js";export{c as withoutStxReferrer,b as stripTypeScript,j as splitDeclaration,e as isSyntaxFailure,d as isModuleResolutionFailure,f as isMissingBindingFailure,h as isCompleteImport,l as hasVariables,g as extractVariables,k as extractScriptFromTemplate,i as convertToCommonJS,a as STX_ENGINE_BINDING_NAMES};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{$ as om,$a as ro,$b as Cp,$c as Cq,$d as Cr,A as _k,Aa as Cn,Ab as Wo,Ac as bq,Ad as br,Ae as hs,B as $k,Ba as Dn,Bb as Xo,Bc as cq,Bd as cr,Be as is,C as al,Ca as En,Cb as Yo,Cc as dq,Cd as dr,Ce as js,D as bl,Da as Fn,Db as Zo,Dc as eq,Dd as er,De as ks,E as cl,Ea as Gn,Eb as _o,Ec as fq,Ed as fr,Ee as ls,F as dl,Fa as Tn,Fb as $o,Fc as gq,Fd as gr,Fe as ms,G as el,Ga as Un,Gb as ap,Gc as hq,Gd as hr,Ge as ns,H as Wl,Ha as Vn,Hb as bp,Hc as iq,Hd as ir,He as os,I as Xl,Ia as Wn,Ib as cp,Ic as jq,Id as jr,Ie as ps,J as Yl,Ja as Xn,Jb as dp,Jc as kq,Jd as kr,Je as qs,K as Zl,Ka as Yn,Kb as ep,Kc as lq,Kd as lr,Ke as rs,L as _l,La as ao,Lb as fp,Lc as mq,Ld as mr,Le as ss,M as $l,Ma as bo,Mb as gp,Mc as nq,Md as nr,Me as ts,N as am,Na as co,Nb as hp,Nc as oq,Nd as or,Ne as us,O as bm,Oa as eo,Ob as ip,Oc as pq,Od as pr,P as cm,Pa as fo,Pb as jp,Pc as qq,Pd as qr,Q as dm,Qa as go,Qb as rp,Qc as rq,Qd as rr,R as em,Ra as ho,Rb as sp,Rc as sq,Rd as sr,S as fm,Sa as io,Sb as tp,Sc as tq,Sd as tr,T as gm,Ta as jo,Tb as up,Tc as uq,Td as ur,U as hm,Ua as ko,Ub as vp,Uc as vq,Ud as vr,V as im,Va as lo,Vb as wp,Vc as wq,Vd as wr,W as jm,Wa as mo,Wb as xp,Wc as xq,Wd as xr,X as km,Xa as no,Xb as yp,Xc as yq,Xd as yr,Y as lm,Ya as oo,Yb as zp,Yc as zq,Yd as zr,Z as mm,Za as po,Zb as Ap,Zc as Aq,Zd as Ar,_ as nm,_a as qo,_b as Bp,_c as Bq,_d as Br,aa as pm,ab as so,ac as Dp,ad as Dq,ae as Dr,ba as qm,bb as to,bc as Ep,bd as Eq,be as Er,ca as rm,cb as uo,cc as Fp,cd as Fq,ce as Fr,da as sm,db as vo,dc as Gp,dd as Gq,de as Gr,ea as tm,eb as wo,ec as Hp,ed as Hq,ee as Nr,fa as um,fb as xo,fc as Ip,fd as Iq,fe as Or,ga as vm,gb as yo,gc as Jp,gd as Jq,ge as Pr,ha as wm,hb as zo,hc as Kp,hd as Kq,he as Qr,ia as xm,ib as Ao,ic as Lp,id as Lq,ie as Rr,ja as ym,jb as Bo,jc as Mp,jd as Mq,je as Sr,ka as zm,kb as Co,kc as Np,kd as Nq,ke as Tr,la as Am,lb as Do,lc as Op,ld as Oq,le as Ur,ma as Bm,mb as Eo,mc as Pp,md as Pq,me as Vr,na as Cm,nb as Fo,nc as Qp,nd as Qq,ne as Wr,o as a,oa as Dm,ob as Go,oc as Rp,od as Rq,oe as Xr,p as Lk,pa as Em,pb as Ho,pc as Sp,pd as Sq,pe as Yr,q as Mk,qa as Fm,qb as Ko,qc as Tp,qd as Tq,qe as Zr,r as Nk,ra as Gm,rb as Lo,rc as Up,rd as Uq,re as _r,s as Ok,sa as un,sb as Mo,sc as Vp,sd as Vq,se as $r,t as Pk,ta as vn,tb as No,tc as Wp,td as Wq,te as as,u as Qk,ua as wn,ub as Po,uc as Xp,ud as Xq,ue as bs,v as Rk,va as xn,vb as Qo,vc as Yp,vd as Yq,ve as cs,w as Sk,wa as yn,wb as Ro,wc as Zp,wd as Zq,we as ds,x as Tk,xa as zn,xb as So,xc as _p,xd as _q,xe as es,y as Yk,ya as An,yb as Uo,yc as $p,yd as $q,ye as fs,z as Zk,za as Bn,zb as Vo,zc as aq,zd as ar,ze as gs}from"./chunk-batgkbft.js";import{Oe as kp,Pe as lp,Qe as mp,Re as np,Se as op,Te as pp,Ue as qp}from"./chunk-m6par27a.js";import{Ve as Io,We as Jo}from"./chunk-pkspqh0m.js";import{Xe as Oo}from"./chunk-hwzbc2v3.js";import{Ye as tn}from"./chunk-2d0xzf2c.js";import{$e as $n,Ze as Zn,_e as _n,af as To}from"./chunk-2weyb03p.js";import{bf as fl,cf as gl,df as hl,ef as il,ff as jl,gf as kl,hf as ll,if as ml,jf as nl,kf as ol,lf as pl,mf as ql,nf as rl,of as sl,pf as tl}from"./chunk-ewxbx67c.js";import{Af as Ul,Bf as Vl,qf as Kl,rf as Ll,sf as Ml,tf as Nl,uf as Ol,vf as Pl,wf as Ql,xf as Rl,yf as Sl,zf as Tl}from"./chunk-kdwbpcm4.js";import{Cf as Il,Df as Jl}from"./chunk-fsvkqeya.js";import{Ef as ul,Ff as vl,Gf as wl,Hf as xl,If as yl,Jf as zl,Kf as Al,Mf as Bl,Nf as Cl,Of as Dl,Pf as El,Qf as Fl,Rf as Gl,Uf as Hl}from"./chunk-980w4zcq.js";import{Vf as bn,Wf as cn,Xf as dn,Yf as en,Zf as fn,_f as sn}from"./chunk-kbyf95hm.js";import{$f as Hm,ag as Im,bg as Jm,cg as Km,dg as Lm,eg as Mm,fg as Nm,gg as Om,hg as Pm,ig as Qm,jg as Rm,kg as Sm,lg as Tm,mg as Um,ng as Vm,og as Wm,pg as gn,qg as hn,rg as jn,sg as kn,tg as ln,ug as mn,vg as nn,wg as on,xg as pn,yg as qn,zg as rn}from"./chunk-pvme0rs1.js";import{Ag as Xm,Bg as Ym}from"./chunk-g64qyhhb.js";import{Cg as Hn,Dg as In,Eg as Jn,Fg as Kn,Gg as Ln,Hg as Mn,Ig as Nn,Jg as On,Kg as Pn,Lg as Qn,Mg as Rn,Ng as Sn}from"./chunk-9vwpf0bk.js";import{Og as ui,Pg as vi,Qg as wi,Rg as xi,Sg as yi,Tg as zi}from"./chunk-ztffbc6a.js";import{$g as Tj,Ug as Pj,Vg as Qj,Wg as Rj,_g as Sj,ah as Uj}from"./chunk-k2nydt80.js";import{bh as _j,ch as $j,dh as ak,eh as bk,fh as ck,gh as dk,hh as ek,ih as fk,jh as gk,kh as hk,lh as ik}from"./chunk-x86qttwm.js";import{mh as Fj,nh as Gj,oh as Hj,ph as Ij,qh as Jj,sh as Kj,th as Lj,uh as Mj,vh as Nj,wh as Oj}from"./chunk-6rzwef28.js";import{xh as Ak,zh as Bk}from"./chunk-683tfkz4.js";import{Fh as Ph,Gh as Qh,Hh as Rh,Ih as Sh,Jh as Th,Kh as Uh}from"./chunk-9r2xgf5k.js";import{Mh as Vh,Nh as Wh,Oh as Xh,Ph as Yh,Qh as Zh,Rh as _h,Sh as $h,Th as ai,Uh as bi,Vh as ci,Wh as di,Xh as ei,Yh as fi,Zh as gi}from"./chunk-9368t9jm.js";import{$h as hi,ai as ii,bi as ji,ci as ki}from"./chunk-st9vrfw7.js";import{hi as li}from"./chunk-mwh3ymwc.js";import{ki as oh}from"./chunk-n46e3gkr.js";import{li as ph}from"./chunk-1t5vwavd.js";import{mi as qh,ni as rh}from"./chunk-cks5rbzt.js";import{oi as sh,pi as th,qi as uh,ri as vh,si as wh,ti as xh}from"./chunk-092qw0ps.js";import{ui as yh,vi as zh,wi as Ah,xi as Bh,yi as Ch}from"./chunk-kpg48dhw.js";import{Ai as Eh,Bi as Fh,Ci as Gh,Di as Hh,zi as Dh}from"./chunk-4bb28mz5.js";import{Ei as Ih,Fi as Jh,Gi as Kh,Hi as Lh,Ii as Mh,Ji as Nh,Ki as Oh}from"./chunk-90zfg77v.js";import{Li as mh,Mi as nh}from"./chunk-0w6ghfqw.js";import"./chunk-452k8psm.js";import{$i as _e,Qi as Pe,Ri as Qe,Si as Re,Ti as Se,Ui as Te,Vi as Ue,Wi as Ve,Xi as We,Yi as Xe,Zi as Ye,_i as Ze,aj as $e,bj as af}from"./chunk-dbfj1skz.js";import{cj as sf,dj as tf,ej as uf,fj as vf,gj as wf,hj as xf,ij as yf,jj as zf,kj as Af,lj as Bf,mj as Cf,nj as Df,oj as Ef,pj as Ff,qj as Gf,rj as Hf,sj as If}from"./chunk-tf964vs3.js";import{Aj as ef,Bj as ff,Cj as gf,Dj as hf,Ej as jf,Fj as kf,Gj as lf,Hj as mf,Ij as nf,Jj as of,Kj as pf,Lj as qf,Mj as rf,zj as df}from"./chunk-mnk5mdwp.js";import{Nj as Jf,Oj as Kf,Pj as Lf,Qj as Mf,Rj as Nf,Sj as Of,Tj as Pf,Uj as Qf,Vj as Rf,Wj as Sf,Xj as Tf,Yj as Uf,Zj as Vf,_j as Wf}from"./chunk-ff6y270q.js";import{sk as Hr,tk as Ir,uk as Jr,vk as Kr,wk as Lr,xk as Mr}from"./chunk-cq6e6de4.js";import{Ak as Wk,Bk as Xk,Ck as Zm,Dk as _m,Ek as $m,Fk as an,yk as Uk,zk as Vk}from"./chunk-gtn2agxa.js";import"./chunk-7eea1cse.js";import"./chunk-6b8j6812.js";import{ql as ec,rl as fc,vl as gc}from"./chunk-6s204hr5.js";import{xl as bc}from"./chunk-2andsajh.js";import{$l as Nb,$m as id,$n as Ce,$o as ug,$q as xj,Al as za,Am as Bc,An as Nd,Ap as Vg,Aq as Pi,Ar as xk,Bl as Aa,Bm as Cc,Bn as Od,Bp as Wg,Bq as Qi,Br as yk,Cl as Ba,Cm as Dc,Cn as Pd,Cp as Xg,Cq as Ri,Cr as zk,Dl as Ca,Dm as Ec,Dn as Qd,Dp as Yg,Dq as $i,Dr as Ck,El as Da,Em as Fc,En as Rd,Ep as Zg,Eq as aj,Er as Dk,Fl as Ea,Fm as Gc,Fn as Sd,Fo as Yf,Fp as _g,Fq as bj,Fr as Ek,Gl as Fa,Gm as Hc,Gn as Td,Gp as $g,Gq as cj,Gr as Fk,Hl as Ga,Hm as Ic,Hn as Ud,Hp as ah,Hq as dj,Hr as Gk,Il as Ha,Im as Jc,In as Vd,Ip as bh,Iq as ej,Ir as Hk,Jl as Ia,Jm as Kc,Jn as Wd,Jp as ch,Jq as fj,Jr as Ik,Kl as Ja,Km as Lc,Kn as Xd,Kp as dh,Kq as gj,Kr as Jk,Ll as Ka,Lm as Mc,Ln as Yd,Lp as eh,Lq as hj,Lr as Kk,Ml as La,Mm as Nc,Mn as Zd,Mp as fh,Mq as ij,Nl as Ma,Nm as Oc,Nn as _d,No as Zf,Np as gh,Nq as jj,Ol as Na,Om as Pc,On as $d,Op as hh,Oq as kj,Pl as Oa,Pm as Qc,Pn as ae,Po as _f,Pp as ih,Pq as lj,Ql as ib,Qm as _c,Qn as re,Qp as jh,Qq as mj,Rl as jb,Rm as $c,Rn as se,Ro as $f,Rp as kh,Rq as nj,Sl as kb,Sm as ad,Sn as te,So as ag,Sp as lh,Sq as oj,Tl as lb,Tm as bd,Tn as ue,To as bg,Tp as mi,Tq as pj,Ul as mb,Um as cd,Un as ve,Uo as cg,Up as ni,Uq as qj,Vl as nb,Vm as dd,Vn as we,Vo as dg,Vq as rj,Wm as ed,Wn as xe,Wo as eg,Wq as sj,Xn as ye,Xo as qg,Xp as oi,Xq as tj,Yl as Kb,Ym as fd,Yn as ze,Yo as rg,Yq as uj,Zl as Lb,Zm as gd,Zn as Ae,Zo as sg,Zq as vj,_l as Mb,_m as hd,_n as Be,_o as tg,_q as wj,am as Ob,an as jd,ao as De,ap as vg,ar as yj,bm as Pb,bn as kd,bo as Ee,bp as wg,br as zj,cm as Qb,cn as ld,cp as xg,cr as Aj,dm as Ub,dn as md,do as Ie,dp as yg,dr as Bj,em as Vb,en as nd,eo as Je,ep as zg,er as Cj,fm as Wb,fn as od,fo as Ke,fp as Ag,fr as Dj,gm as hc,gn as pd,go as Le,gp as Bg,gq as pi,gr as Ej,hm as ic,hn as qd,ho as Me,hp as Cg,hq as qi,hr as Vj,im as jc,in as vd,io as Ne,ip as Dg,iq as ri,ir as Wj,jm as kc,jn as wd,jo as Oe,jp as Eg,jq as si,jr as Xj,km as lc,kn as xd,kp as Fg,kq as ti,kr as Yj,lm as mc,ln as yd,lp as Gg,lq as Ai,lr as Zj,mm as nc,mn as zd,mp as Hg,mq as Bi,mr as jk,nm as oc,nn as Ad,no as bf,np as Ig,nq as Ci,nr as kk,om as pc,on as Bd,oo as cf,op as Jg,oq as Di,or as lk,pm as qc,pn as Cd,pp as Kg,pq as Ei,pr as mk,qm as rc,qn as Dd,qo as Xf,qp as Lg,qq as Fi,qr as nk,rm as sc,rn as Ed,rp as Mg,rq as Gi,rr as ok,sm as tc,sn as Fd,sp as Ng,sq as Hi,sr as pk,tm as uc,tn as Gd,tp as Og,tq as Ii,tr as qk,um as vc,un as Hd,up as Pg,uq as Ji,ur as rk,vm as wc,vn as Id,vp as Qg,vq as Ki,vr as sk,wm as xc,wn as Jd,wp as Rg,wq as Li,wr as tk,xm as yc,xn as Kd,xp as Sg,xq as Mi,xr as uk,yl as xa,ym as zc,yn as Ld,yp as Tg,yq as Ni,yr as vk,zl as ya,zm as Ac,zn as Md,zp as Ug,zq as Oi,zr as wk}from"./chunk-qp4x0mwv.js";import{$r as $,Mr as M,Nr as N,Or as O,Pr as P,Qr as Q,Rr as R,Sr as S,Tr as T,Ur as U,Vr as V,Wr as W,Xr as X,Yr as Y,Zr as Z,_r as _,as as aa,bs as ba,cs as ca,ds as da,es as ea,fs as fa,gs as ia,hs as ja,is as ka,js as la,ks as ma,ls as na,ms as oa,ns as pa,os as qa,ps as ra,qs as sa,rs as ta,ss as ua,ts as va,us as wa}from"./chunk-4cv7bw5e.js";import{vs as ga,ws as ha}from"./chunk-7tgjn256.js";import{xs as Rb,ys as Sb,zs as Tb}from"./chunk-h8zp2fz9.js";import"./chunk-ekvejzvk.js";import{Gs as Si,Hs as Ti,Is as Ui,Js as Vi,Ks as Wi,Ls as Xi,Ms as Yi,Ns as Zi,Os as _i}from"./chunk-3769e62c.js";import{et as Rc,ft as Sc,gt as Tc,ht as Uc,it as Vc,kt as Wc,tt as Xc,ut as Yc,vt as Zc}from"./chunk-1bdvnmxd.js";import{At as $b,Bt as ac,wt as Xb,xt as Yb,yt as Zb,zt as _b}from"./chunk-yj5gkn17.js";import{It as Fe,Kt as Ge,Nt as He}from"./chunk-cy8hgd86.js";import"./chunk-3wmdjemm.js";import{St as cc,Tt as dc}from"./chunk-g7qmxjyc.js";import{$t as jg,Xt as fg,Yt as gg,Zt as hg,_t as ig,au as kg,bu as lg,du as mg,eu as ng,fu as og,gu as pg}from"./chunk-88tt0qg0.js";import{Au as he,Bu as ie,Cu as je,Du as ke,Eu as le,Fu as me,Gu as ne,Hu as oe,Iu as pe,Ju as qe,hu as rd,iu as sd,ju as td,ku as ud,uu as be,vu as ce,wu as de,xu as ee,yu as fe,zu as ge}from"./chunk-e1rv01pn.js";import{$u as v,Ku as b,Lu as c,Mu as d,Nu as e,Ou as f,Pu as g,Qu as h,Ru as i,Su as m,Tu as n,Uu as o,Vu as p,Wu as q,Xu as r,Yu as s,Zu as t,_u as u,av as w,bv as x,cv as y,dv as z,ev as A,fv as B,gv as C,hv as D,iv as E,jv as F,kv as G,lv as H,mv as I,nv as J,ov as K,pv as L}from"./chunk-bdz7nznw.js";import"./chunk-rwtj7j0r.js";import"./chunk-eqhsprr0.js";import{Fv as ob,Gv as pb,Hv as qb,Iv as rb,Jv as sb,Kv as tb,Lv as ub,Mv as vb,Nv as wb,Ov as xb,Pv as yb,Qv as zb,Rv as Ab,Sv as Bb,Tv as Cb,Uv as Db,Vv as Eb,Wv as Fb,Xv as Gb,Yv as Hb,Zv as Ib,_v as Jb}from"./chunk-csgshaeh.js";import{Aw as ab,Bw as bb,Cw as cb,Dw as db,Ew as eb,Fw as fb,Gw as gb,Iw as hb,cw as Pa,dw as Qa,gw as Ra,lw as Sa,mw as Ta,sw as Ua,tw as Va,uw as Wa,vw as Xa,ww as Ya,xw as Za,yw as _a,zw as $a}from"./chunk-d0qy1ezf.js";import"./chunk-c9kj8p6j.js";import{Uw as j,Vw as k,Ww as l}from"./chunk-x2wmn8m7.js";import"./chunk-rxz43r6k.js";export{pl as writeNetlifyConfig,hn as writeManifest,Ul as writeImageManifest,Ap as wrapComponentForHMR,hs as withDefaults,zk as webComponentDirectiveHandler,pq as watermark,rr as watchViews,cm as watchMultiple,dm as watchEffect,bm as watch,Me as warmImagePlaceholders,qm as waitForStore,X as waitForLocale,lp as virtualPathFor,mk as videoDirective,G as validators,ls as validated,Ce as validateValueEnhanced,pi as validateTemplate,Xm as validateRouteRules,uq as validateParams,De as validateFormEnhanced,gr as validateFile,ye as validateFields,xe as validateField,ri as validateDirective,Xd as validateCspDirectives,Hk as validateConfig,vn as validateComponentScripts,Tn as validateComponentProps,lh as validateClientScript,ki as v,Hc as usesSignalsInScript,ub as usesReactiveRuntime,Fi as userComponentFileExists,Sh as useVirtualList,je as useTitle,pm as useStoreOrThrow,Sp as useStore,Yk as useStorage,Af as useSlots,_k as useSessionStorage,cc as useServerRuntimeConfig,Yf as useServerData,ge as useSeoMeta,dc as useRuntimeConfig,rm as useRouteParams,tm as useRouteParamOrThrow,sm as useRouteParam,je as usePageTitle,rf as useOptimistic,Ff as useModel,vm as useMiddlewareValue,um as useMiddlewareState,Zk as useLocalStorage,tp as useLoadingIndicator,ee as useHead,hi as useForm,Cf as useAttrs,ir as uploadFiles,hr as uploadFile,mm as updateInstance,pf as untrack,Vi as unregisterDirective,nm as unmountInstance,Qc as unescapeHtml,pp as typecheckStxFiles,Di as transpileTypeScript,Wr as translate,Ba as transitionDirective,lc as transformAutoImports,Nn as toUsers,Mn as toUser,_p as thumbnail,$q as thumbHashToRGBA,ar as thumbHashToDataURL,wb as templateNeedsRuntime,vb as templateHasReactiveContext,Jf as templateCache,nd as syncRecordedResponse,xp as stxClientHelpers,kg as structuredDataDirective,Zr as stripLocalePrefix,Um as stripDocumentWrapper,Sb as stripCommentsAndLiterals,yo as stringToStream,Ld as strictCspPreset,Xe as streamingSuspenseDirective,$e as streamToResponse,Ve as streamTemplateSimple,Pe as streamTemplate,Tk as stopHmrServer,Jn as stopBroadcasting,_b as stateDirName,$b as stateDir,df as state,fh as startsDocument,To as startProductionServer,Oo as startInteractive,In as startBroadcasting,$r as stampLocaleLayoutGroup,Ia as staggerDirective,sq as srcsetUrls,Ja as springDirective,ud as splitByPipe,Qm as spaNavVaryHeaders,mp as sourcePathFor,zq as smartBatchSign,Hi as slotContentHasExpressions,xq as signUrl,Bi as shouldTranspileTypeScript,Qk as shouldReloadOnChange,Cq as shouldRefreshSignature,Rk as shouldIgnoreFile,Kh as shouldCacheComponent,cq as sharpen,os as shape,Zb as setStateDir,zm as setRouteParams,Am as setMiddlewareState,Le as setImagePlaceholder,uf as setGlobalProvide,b as setErrorLocale,Wl as setCurrentInstance,ak as setCachedVideoResult,Rj as setCachedImageResult,Lj as setCached,rs as serveStxFile,ts as serveMultipleStxFiles,Lk as serveMarkdownFile,cp as serveFile,us as serveApp,bp as serve,Dp as serializeState,kn as serializeSetCookie,eq as sepia,he as seoMetaToHeadConfig,Ca as scrollAnimateDirective,va as screenReaderDirective,Ei as scopeOnRootElement,qk as scopeHTML,pk as scopeCSS,ng as scanForSitemapEntries,pa as scanA11yTargets,qa as scanA11yIssues,iq as saturation,vq 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,Gb as runtimeEventRegexLiteral,Eb as runtimeDirectiveNamesLiteral,yg as runPreProcessingMiddleware,zg as runPostProcessingMiddleware,nn as runPageAction,kf as runMountCallbacks,gb as runMiddleware,km as runHooks,Pr as runDoctor,lf as runDestroyCallbacks,Cg as runComposers,jq as rotate,li as rewriteImagesWithSiblings,od as responseBindings,Li as resolveTemplatePath,ha as resolveStxTargets,Dk as resolveStxDirectories,Vr as resolveI18n,Yp as resize,qg as resetUnscopedSignalWarnings,Oc as resetRejectedExpressionWarnings,sc as resetPlaceholders,de as resetHead,Cp as resetHMRHandler,o as resetErrorConfig,js as required,cg as reportDeferredLoopWarnings,wc as replacePlaceholders,Ec as replaceInterpolations,pr as renderView,jk as renderVideoComponent,ic as renderVendorStyleTags,yr as renderToString,zr as renderToStream,Ar as renderToDOM,_q as renderThumbhashToCanvas,Mr as renderTemplateString,Kr as renderTemplate,Lr as renderString,Se as renderStreamingPage,wi as renderSlot,Ah as renderSSRSuspense,Kq as renderProtectedVideo,Jq as renderProtectedImg,wq as renderMediaUpload,Jr as renderMarkdownView,$m as renderLayoutTypes,Vj as renderImgComponent,Kl as renderImageComponent,le as renderHtmlAttrs,ke as renderHead,sr as renderEmail,Ji as renderComponentWithSlot,me as renderBodyAttrs,Np as render,Nd as relaxedCspPreset,we as registerValidationRule,Ze as registerStreamingDirectives,Up as registerStoresClient,xm as registerStore,Rf as registerServeModuleBundle,lg as registerSeoDirectives,_a as registerMiddleware,Ac as registerFilters,zc as registerFilter,d as registerErrorMessages,Be as registerEnhancedValidationRule,Si as registerDirective,Wd as registerCspDirectives,Wn as registerComponentDirectives,Oa as registerAnimationDirectives,wa as registerA11yDirectives,mc as referencesName,_l as ref,Go as redirect,jd as recordResponseStatus,kd as recordResponseHeader,ac as rebaseOntoStateDir,ld as readResponseStatus,md as readResponseHeaders,Jk as readMarkdownFile,Kf as readFileCached,$l as reactive,nq as quality,Hq as pruneSignatureCache,Oj as pruneCache,sf as provide,Ir as protectCodeBlocks,is as prop,Fg as processVueTemplate,Qh as processVirtualListDirectives,Uh as processVirtualGridDirectives,ik as processVideo,ze as processValidateDirective,ea as processTranslateDirective,uh as processTransitionDirectives,xh as processTransitionAttributes,pe as processTitleDirective,bd as processTemplateBindings,qh as processTeleportDirectives,yh as processSuspenseDirectives,gg as processStructuredData,Te as processStreamDirectives,pd as processStatusDirective,fi as processStaticDirectives,wg as processStackReplacements,vg as processStackPushDirectives,xi as processSlots,Sm as processShell,Oe as processServerBindings,hg as processSeoDirective,_e as processSectionDirectives,Vc as processScopedStyles,$c as processReactiveBindings,Lq as processProtectedMedia,_h as processPartialHydrationDirectives,kh as processOnceDirective,xg as processMiddleware,fg as processMetaDirectives,qe as processMetaDirective,Kk as processMarkdownFileDirectives,Qi as processMarkdownDirectives,dg as processLoops,Ih as processKeepAliveDirectives,jh as processJsonDirective,Th as processInfiniteListDirectives,ug as processIncludes,Xj as processImgComponents,Ml as processImageComponents,zl as processImage,oe as processHeadDirective,se as processForms,ue as processFormInputDirectives,Mc as processExpressions,Pb as processEventDirectives,ve as processErrorDirective,Gg as processDynamicComponents,mi as processDirectives,_i as processDirectiveAttributes,ph as processDeferDirectives,$d as processCustomDirectives,Td as processCspDirectives,ps as processComponentProps,rc as processClientScript,te as processBasicFormDirectives,Dh as processAsyncDirectives,ae as processAppearanceBootstrapDirective,Fa as processAnimationDirectives,ka as processA11yDirectives,He as prepareImageDelivery,T as preloadTranslationsBackground,S as preloadTranslations,sp as preloadIslandHandlers,Ne as preloadIconCollection,En as poolStrings,Bk as pluginManager,Je as placeholdersWarmed,th as performLeave,sh as performEnter,mf as pendingLifecycleCounts,qf as peek,rg as partialsCache,kk as parseVideoDirectiveOptions,Wp as parseUrl,br as parseThumbhashString,Ad as parseSwitchBlock,ui as parseSlots,vi as parseSlotElement,Fd as parseScriptDeclarations,xk as parseSFCComponent,Mq as parseProtectedArgs,bg as parseLoopBinding,Wj as parseImgComponent,mj as parseImageUrl,Ll as parseImageComponent,ln as parseFormBody,Cd as parseExpressionWithFilters,Xn as parseDefaults,Do as parseCookies,Jm as parseContainerSelector,xd as parseConditionalBlock,Dd as parseArguments,Ma as parseAnimationShorthand,ks as optional,Fn as optimizeTemplate,Rl as optimizeImage,Sl as optimizeDirectory,ms as oneOf,sg as onceStore,hm as onUpdated,_c as onUpdate,jm as onUnmounted,Em as onServer,fm as onMounted,hf as onMount,ei as onHydrated,yf as onErrorCaptured,jf as onDestroy,Oh as onDeactivated,Dm as onClient,gm as onBeforeUpdate,im as onBeforeUnmount,em as onBeforeMount,Nh as onActivated,Wq as observeElement,Ho as notFound,Lg as normalizeCriticalHeadOrder,xf as nextTick,_n as negotiateEncoding,Ua as navigateTo,lm as mountInstance,Ea as motionDirective,Md as moderateCspPreset,Dn as minifyHtml,jg as metaDirective,Zg as metaDedupKey,Xp as mergeParams,$g as mergeHtmlAttrs,fe as mergeHeadConfigs,Sc as mergeCssConfig,Qd as mergeCspDirectives,Ra as matchRoute,Ri as markdownDirectiveHandler,Ik as markdownCache,ga as looksLikeGlob,Yr as localizePath,U as loadTranslationLazy,_ as loadTranslation,Ek as loadStxConfig,db as loadMiddlewareFromDirectory,jn as loadManifest,Sq as loadElement,Kn as loadChannels,Lb as listensPassively,ds as lintStxStrict,Uq as lazyLoadAll,Tq as lazyLoad,Ha as keyframeDirective,dl as keptState,wr as jsxs,xr as jsxDEV,vr as jsx,Fo as jsonResponse,Ye as islandDirective,l as isTest,Vm as isSpaNavigation,Om as isSpaNavRequest,Aq as isSignatureValid,nf as isSignal,xl as isSharpAvailable,ro as isServerEnvironment,Bm as isServer,yb as isRuntimeOwnedColonAttr,Hb as isRuntimeEventName,da as isRtlLocale,j as isProduction,ia as isPresentationalRole,Pq as isNativeLazySupported,Hr as isMarkdownPath,Q as isLoading,R as isLoaded,Ai as isJavaScriptScript,Qq as isIntersectionObserverSupported,Fl as isImageFile,yl as isImageBackendAvailable,aa as isICUFormat,di as isHydrated,Gi as isHydrateTrigger,hd as isHttpStatus,qo as isEdgeEnvironment,es as isDirectiveKind,k as isDevelopment,of as isDerived,Pk as isCssOnlyChange,Zn as isCompressible,Cm as isClient,Fh as isAsyncComponent,mn as isActionableMethod,fq as invert,Mf as invalidateFileCacheByDir,Lf as invalidateFileCache,Lc as interpolateScriptsInTemplate,Jc as interpolateScriptExpressions,Kc as interpolateScriptAttributes,x as inlineError,Ur as injectThemeBootstrap,ig as injectSeoTags,Rr as injectSeo,Xf as injectRouterScript,Ok as injectHotReload,kb as injectHeatmap,Zc as injectCss,Rd as injectCspMetaTag,hh as injectConfigHeadTags,Kg as injectColorModeBootScript,bh as injectCloakStyle,Rg as injectBuildId,kc as injectBrowserCoreAutoImports,dd as injectAnalytics,tf as inject,wm as initStoreRegistry,sl as initNetlify,up as initLoadingIndicator,Rq as initLazyLoading,No as initFile,Zq as initBlurUp,dr as initAllBlurUp,Zj as imgDirective,Pl as imageDirective,qn as hydrateTemplateStream,pn as hydrateTemplate,rp as hydrateIslands,ai as hydrateIsland,rn as hydrateFragment,bi as hydrateByStrategy,ci as hydrateAll,Kp as hydrate,ap as htmlResponse,dh as hoistLeadingHeadTags,Mg as hoistColorModeBootScript,lb as heatmapDirective,Hj as hashString,Wf as hashFilePath,Fj as hashFile,Gj as hashBuffer,Eg as hasVueTemplateSyntax,ag as hasVariables,Pp as hasStore,xc as hasPlaceholders,ql as hasNetlifyConfig,ab as hasMiddleware,Qb as hasEventDirectives,gh as hasDocumentShell,si as hasDirectives,ma as hasDOMSupport,Il as handleImageRequest,zf as handleError,Er as h,El as groupVariantsByFormat,dq as grayscale,Vo as gitHash,xn as getUnusedDirectives,V as getTranslationSync,O as getTranslationCacheStats,W as getTranslationAsync,ba as getTranslation,ll as getTotalSize,Bq as getTimeUntilExpiry,mh as getStoreScript,Qp as getStoreNames,Op as getStore,bl as getStorageSize,al as getStorageKeys,Mi as getSourceLineInfo,Ci as getSharedTranspiler,Sf as getServeModuleBundle,Qf as getServeClientAsset,la as getScreenReaderOnlyStyle,rk as getScopeAttribute,cf as getRouteParams,Vb as getPublicEnvDefine,Wb as getPublicEnv,qi as getPositionInfo,uc as getPlaceholderRegistry,Ej as getPlaceholderCacheStats,ce as getPageMeta,Hd as getNonce,Gl as getMimeType,cb as getMiddlewareNames,$a as getMiddleware,ca as getLocaleDirection,P as getLoadingState,Y as getLoadingLocales,Ie as getImagePlaceholder,Al as getImageMetadata,Fe as getImageDelivery,Jp as getHydrationRuntime,ym as getHydratedStoreState,Sk as getHmrServer,be as getHead,Bp as getHMRHandler,qj as getFormatExtension,Jj as getFileMtime,Dl as getFallbackVariant,f as getErrorMessage,c as getErrorLocale,n as getErrorConfig,i as getErrorCodeName,Ui as getDirectives,Ti as getDirective,Xl as getCurrentInstance,Wc as getCssServeAsset,Pd as getCspPreset,Yd as getCspHeaderName,Pi as getComponentCacheStats,$j as getCachedVideoResult,Fq as getCachedSignature,Of as getCachedSignalsRuntime,Pf as getCachedRouterScript,Cj as getCachedPlaceholder,Qj as getCachedImageResult,Kj as getCached,Nj as getCacheStats,Pg as getBuildId,Hn as getBroadcastServer,pj as getBestVariant,Bc as getAllFilters,dj as generateWidthSrcset,Rh as generateVirtualListCSS,kr as generateVideoPreview,Ee as generateValidationScript,lr as generateUploadRuntime,yn as generateTreeShakenBundle,wh as generateTransitionRuntime,vh as generateTransitionCSS,dk as generateThumbnails,vj as generateThumbhashPlaceholder,io as generateTemplatesDocs,Ch as generateSuspenseRuntime,Bh as generateSuspenseCSS,Ep as generateStateScript,nj as generateSrcsetData,Uj as generateSrcset,Bl as generateSrcSet,ek as generateSpriteSheet,tr as generateSpaShell,oj as generateSourceTags,jj as generateSizesFromBreakpoints,ij as generateSizesAttribute,Cl as generateSizes,mg as generateSitemapIndex,Sr as generateSitemap,Oq as generateSimpleMediaPicker,Iq as generateSignatureRuntime,If as generateSignalsRuntimeDev,Hf as generateSignalsRuntime,qc as generateServerDataBridge,ok as generateScopeId,yk as generateSFCWebComponent,Nb as generateRuntimeScript,Pa as generateRouteTypes,Qa as generateRouteManifest,og as generateRobotsTxt,Tr as generateRobots,Tj as generateResponsiveVariants,uk as generateReactiveWebComponentTS,tk as generateReactiveWebComponent,wk as generateReactiveRuntime,vk as generateReactiveMixin,ck as generatePoster,Bj as generatePlaceholderStyle,Aj as generatePlaceholderCSS,uj as generatePlaceholder,$h as generatePartialHydrationCSS,Vg as generateOfflineWorker,Gd as generateNonce,ml as generateNetlifyToml,nr as generateMinifiedMediaRuntime,mr as generateMediaRuntime,Nq as generateMediaManagerEmbed,gn as generateManifest,wp as generateLoadingIndicatorHtml,Yq as generateLazyLoadRuntime,an as generateLayoutTypes,xj as generateLQIP,Mh as generateKeepAliveRuntime,Lh as generateKeepAliveCSS,gi as generateIslandManifest,jr as generateImagePreview,Tl as generateImageManifest,Ip as generateHydrationScript,af as generateHydrationRuntime,Lp as generateHydrationCSS,Vh as generateHydrationBootstrap,Nk as generateHotReloadScript,jb as generateHeatmapScript,zp as generateHMRClientScript,fk as generateHLSManifest,Fp as generateEventBindings,hj as generateDprSrcsetWithVariableQuality,gj as generateDprSrcset,eh as generateDocumentShell,no as generateDocs,jo as generateDirectivesDocs,Zi as generateDirectiveRuntime,pg as generateDefaultRobotsTxt,gk as generateDASHManifest,Yc as generateCss,Kd as generateCspMetaTag,Jd as generateCspHeader,Ef as generateCompositionRuntime,ho as generateComponentsDocs,Wh as generateComponentManifest,fo as generateComponentDoc,zj as generateColorPlaceholder,Jg as generateColorModeBootScript,om as generateClientRuntime,Ij as generateCacheKey,oc as generateBrowserAutoImportDestructuring,er as generateBlurUpRuntime,fr as generateBlurUpCSS,ad as generateBindingsRuntime,ej as generateAutoWidthSrcset,nc as generateAutoImportDestructuring,Hh as generateAsyncComponentRuntime,Gh as generateAsyncComponentCSS,fc as generateApiTypes,Na as generateAnimationRuntime,La as generateAnimationCSS,cd as generateAnalyticsScript,qp as formatTypecheckDiagnostics,jp as formatTypeErrors,Ko as formatStxContent,kl as formatSize,Ta as formatRoutes,Lo as formatMarkdownContent,g as formatLocalizedError,$ as formatICU,p as formatFilePath,w as formatError,Qr as formatDoctorReport,ko as formatDocsAsMarkdown,mo as formatDocsAsJson,lo as formatDocsAsHtml,mq as format,el as forgetKeptState,Cn as foldConstants,lq as flipVertical,kq as flipHorizontal,bn as fingerprint,op as findStxModuleDeclarations,np as findRuntimeTypeDeclarations,Or as findPantryPackage,Dc as findMustacheEnd,wd as findMatchingEndTag,sd as findMatchingDelimiter,Rb as findInterpolationEnd,yd as findIfBlocks,Bd as findExpressions,Sa as findErrorPage,Tc as findDuplicateScopedStyleRanges,zd as findDirectiveBlocks,zn as findDeadCode,zn as findDeadBranches,Km as findContainerRegion,go as findComponentFiles,ss as findCommonDir,jl as filterRequiredFiles,Ki as fileExists,Zf as extractVariables,oi as extractTemplateExpressions,Ue as extractStreamBoundaries,Gp as extractState,yi as extractSlotContent,$f as extractScriptFromTemplate,ni as extractScriptBlocks,vc as extractPlaceholders,vd as extractParenthesizedExpression,id as extractPageResponseStatus,hb as extractLayoutMetadata,yj as extractDominantColor,Ed as extractDirectiveParams,ti as extractDirectiveNames,Wm as extractContainerContent,co as extractComponentProps,Xh as extractComponentName,eo as extractComponentDescription,Xc as extractClassNames,pc as extractBridgeData,Yh as extractBoundProps,td as extractBalancedExpression,hc as extractAndStripCssImports,sk as extractAndScopeStyles,Ob as extractAndProcessEvents,Wk as externalizeSharedAssets,Xk as externalizeRepeatedAssets,Vk as externalizeHtml,Pc as evaluateExpression,Bn as evaluateConstant,qd as evaluateAuthExpression,Gc as escapeHtmlValue,Fc as escapeHtml,C as errorRecovery,E as errorLogger,rh as ensureTeleportTargets,ih as ensureDocumentShell,Ae as enhancedValidationRules,ao as enableDevTools,An as eliminateDeadCode,ff as effect,tq as dprUrls,oo as docsCommand,ec as discoverServerApi,_m as discoverLayoutNames,Xq as disconnectObserver,bo as disableDevTools,F as devHelpers,Rm as detectShell,po as detectRuntime,nl as detectProjectConfig,rj as detectFormat,un as detectBuildMode,ef as derived,rl as deploy,Gk as defineStxConfig,Tp as defineStore,Bf as defineSlots,cs as defineSiteConfig,gs as definePropsWithValidation,fs as defineProps,Ak as definePlugin,ie as definePageMeta,Wa as defineMiddleware,ii as defineForm,wf as defineExpose,vf as defineEmits,Wi as defineDirective,Gr as defineCustomElement,So as defineConfig,Xi as defineClientDirective,Eh as defineAsyncComponent,Uo as defineApiHandler,or as defaultMediaConfig,Vl as defaultImageConfig,M as defaultI18nConfig,ib as defaultHeatmapConfig,re as defaultFormClasses,yc as defaultFilters,_d as defaultCspConfig,Ck as defaultConfig,qs as default,Rc as deepMergeThemes,Uc as dedupeScopedStyles,Nm as decodeTitleEntities,wj as decodeThumbhash,eg as declareBareLoopHead,Vd as cspNonceDirective,Ud as cspDirective,cr as crossfadeTransition,Zp as crop,Ph as createVirtualList,lk as createVideoDirective,Bo as createVercelHandler,gp as createTypeChecker,fa as createTranslateFilter,xo as createTextEncoderStream,Fr as createStxApp,wo as createStreamingResponse,We as createStreamRenderer,Rp as createStore,Za as createStorageManager,Xa as createServerCookieManager,gc as createServerApi,Zl as createScope,zh as createSSRSuspense,bf as createRouter,Ym as createRouteRuleResolver,eb as createRouteLocation,ep as createRoute,_l as createRef,$l as createReactive,Df as createProvideContext,Xo as createProject,Ro as createProductionBuild,tc as createPlaceholder,Gn as createOptimizedBuild,Co as createNetlifyHandler,fl as createNetlifyClient,fb as createMiddlewareContext,dp as createMiddleware,Vq as createLazyObserver,Jh as createKeepAliveCache,to as createKVNamespace,Zh as createIslandRegistry,Yj as createImgDirective,Ql as createImagePlugin,Jl as createImageHandler,Ol as createImageDirective,nb as createHeatmapAggregator,il as createFileManifest,so as createEnvAccessor,z as createEnhancedError,vo as createEdgeHandler,uo as createEdgeCache,Ni as createDetailedErrorMessage,Ao as createDenoHandler,ol as createDefaultNetlifyConfig,Zd as createCspHeaders,Eo as createCookie,am as createComputed,Yl as createComponentInstance,zo as createCloudflareHandler,Ya as createClientCookieManager,Yi as createBuiltinDirectives,Fr as createApp,Ka as createAnimationTimeline,aq as cover,_f as convertToCommonJS,hq as contrast,$p as contain,y as consoleError,m as configureErrorHandling,Fk as config,am as computed,$n as compressResponse,Bg as composerPattern,Ag as composer,Tm as composeShellWithPage,Vn as componentDirective,Ii as componentClientSignalNames,fn as compileTemplate,a as collectRepeatedFlag,hl as collectDeployFiles,ch as cloakStyleFragment,Ic as clientLoopScopes,bk as clearVideoCache,N as clearTranslationCache,nh as clearStoreCache,$k as clearStorage,Gq as clearSignatureCache,Gf as clearServerData,Dj as clearPlaceholderCache,tg as clearOnceStore,Id as clearNonce,bb as clearMiddleware,Ke as clearImagePlaceholders,Ge as clearImageDeliveryCatalog,Nl as clearImageCache,e as clearErrorMessages,Tf as clearDevCaches,Cc as clearCustomFilters,Dg as clearComposers,oh as clearComposableCache,Oi as clearComponentCache,Mj as clearCache,Ib as clearBlankCache,vp as cleanupLoadingIndicator,Hm as classifyScript,Im as classifyAllScripts,hp as checkTemplateFile,ip as checkTemplate,Uf as checkCache,Dq as checkAuthAccess,na as checkA11yWithRegex,oa as checkA11y,Qn as channel,Jo as captureScreenshots,Io as captureScreenshot,Z as cancelPendingLoads,gl as calculateSha1,fj as calculateOptimalWidths,Vf as cacheTemplate,bc as cacheEngineFingerprint,nk as buildWebComponents,kp as buildVirtualSource,qr as buildViews,Vp as buildUrl,Qe as buildSuspenseResolveScript,bs as buildStaticSite,qb as buildRuntimeGlobalsDestructure,cn as buildRuntimeAsset,dn as buildRouterAsset,as as buildLangPickerScript,lj as buildImageUrl,Sg as buildIdFragment,_g as buildHtmlAttrs,sn as buildForProduction,Yn as buildComponentLibrary,Eq as buildAuthParams,tn as buildApp,_r as buildAlternateLinks,Qo as build,On as broadcastPrivate,Pn as broadcastPresence,Ln as broadcast,gq as brightness,Tb as bracketDepths,bq as blur,Jb as blankInertHtmlRegions,yq as batchSignUrls,gf as batch,sa as autoFixA11yFile,ta as autoFixA11yDirectory,ra as autoFixA11y,oq as auto,ja as attributeValue,en as assetTags,Mb as asInvocableStatement,ns as arrayOf,Xr as applyTranslations,Sj as applyTransformations,zi as applySlots,Un as applyPropDefaults,rq as applyPreset,ah as applyHtmlAttrs,ne as applyHead,Nc as applyFilters,Pm as appendVary,Od as apiCspPreset,Da as animationGroupDirective,hk as analyzeVideo,wn as analyzeUsage,Fm as analyzeTemplate,Gm as analyzeProject,wn as analyzeDirectiveUsage,ed as analyticsDirective,_o as addStore,Zo as addPage,Sd as addNonceToInlineContent,$o as addLayout,Yo as addComponent,on as actionRedirectResponse,Va as abortNavigation,ua as a11yDirective,Nf as __setSignalsGeneratorsForTest,Qg as __setBuildIdForTest,_j as VideoProcessorCache,ji as Validator,xa as TransitionType,za as TransitionEase,ya as TransitionDirection,rd as Tokenizer,fp as TemplateTypeChecker,Mo as TEMPLATE_PRESETS,v as StxValidationError,r as StxSyntaxError,t as StxSecurityError,s as StxRuntimeError,u as StxFileError,q as StxError,Br as Show,Re as SUSPENSE_RESOLVER_RUNTIME,ob as STX_RUNTIME_GLOBALS,jc as STX_AUTO_IMPORTS,Yb as STATE_DIR_ENV_VAR,Ga as SPRING_PRESETS,Lm as SPA_NAV_HEADER,Kb as SCROLL_BLOCKING_EVENTS,xb as RUNTIME_OWNED_COLON_ATTRS,zb as RUNTIME_HANDLED_X_ATTRS,Fb as RUNTIME_EVENT_NAMES,Db as RUNTIME_DIRECTIVE_NAMES,fd as RESPONSE_STATUS_KEY,gd as RESPONSE_HEADERS_KEY,tb as REACTIVE_RUNTIME_GLOBALS,Po as ProductionBuild,Dr as Portal,Wo as PROJECT_TEMPLATES,qq as PRESETS,Tg as OFFLINE_WORKER_PATH,Ug as OFFLINE_REGISTER_SCRIPT,sb as NON_CLIENT_PRIMITIVES,Mp as MemorySessionStore,cj as MIME_TYPES,$i as MEDIA_DEFAULT_WIDTHS,bj as MEDIA_DEFAULT_FORMATS,Zm as LAYOUT_TYPES_FILE,cl as KEPT_STATE_PREFIX,Pj as ImageProcessorCache,Hl as ImageProcessingError,Hp as HydrationRuntime,Mk as HotReloadServer,mb as HeatmapAggregator,Yg as HTML_CLASS_MARKER,Xg as HTML_ATTRS_MARKER,ur as Fragment,Cr as For,Mm as FRAGMENT_CACHE_CONTROL,D as ErrorLogger,h as ErrorCodes,Uk as EXTERNALIZED_ASSET_DIR,tl as DeployError,ul as DEFAULT_WIDTHS,Aa as DEFAULT_TRANSITION_OPTIONS,Xb as DEFAULT_STATE_DIR,wl as DEFAULT_QUALITY,sj as DEFAULT_PLACEHOLDER_OPTIONS,vl as DEFAULT_FORMATS,aj as DEFAULT_DPR_VALUES,yp as ComponentHMRHandler,pb as COMPONENT_SCOPE_LOCAL_GLOBALS,Bb as COMPONENT_PASSTHROUGH_X_ATTRS,rb as COMPILE_TIME_ONLY_GLOBALS,kj as COMMON_SIZES,Hg as COLOR_MODE_BOOT_MARKER,Ig as COLOR_MODE_BOOT_GLOBAL,Wg as CLOAK_STYLE,Sn as BroadcastServer,Rn as Broadcast,Ng as BUILD_ID_META,Og as BUILD_ID_HEADER,Ub as BROWSER_CORE_IMPORTS,tj as BLUR_UP_CSS,Ab as ALPINE_BRIDGE_X_ATTRS,Nr as $path};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
var M=null,R=[],N=0,U=new Set;function X(){return M}function Y(j){let H=M;return R.push(j),M=j,H}function Z(j){R.pop(),M=j}function _(){return N>0}function $(j){U.add(j)}function B(j){N++;try{j()}finally{if(N--,N===0){let H=[...U];U.clear();for(let F of H)F()}}}function A(j){let H=M;M=null;try{return j()}finally{M=H}}var O=[],P=[];function q(j){let H=j,F=new Set,G=new Set,I=()=>{let z=X();if(z)G.add(z);return H};return I.set=(z)=>{if(!Object.is(z,H)){let J=H;if(H=z,F.forEach((K)=>{try{K(H,J)}catch(L){console.error("[stx] subscriber error:",L)}}),_())G.forEach((K)=>$(K));else G.forEach((K)=>K())}},I.update=(z)=>{I.set(z(H))},I.subscribe=(z)=>{return F.add(z),()=>F.delete(z)},Object.defineProperty(I,"_isSignal",{value:!0,writable:!1}),Object.defineProperty(I,"value",{get:()=>I(),set:(z)=>I.set(z),configurable:!0}),I}function E(j){let H,F=!0,G=new Set,I=()=>{if(!F)if(F=!0,_())G.forEach((J)=>$(J));else G.forEach((J)=>J())},z=()=>{let J=X();if(J)G.add(J);if(F){let K=Y(I);try{H=j()}finally{Z(K)}F=!1}return H};return Object.defineProperty(z,"_isDerived",{value:!0,writable:!1}),Object.defineProperty(z,"value",{get:()=>z(),configurable:!0}),z}function V(j,H={}){let F,G=!1,I=()=>{if(G)return;if(F){let J=F;F=void 0;try{J()}catch(K){console.error("[stx] effect cleanup error:",K)}}let z=Y(I);try{let J=j();F=typeof J==="function"?J:void 0}catch(J){G=!0,console.error("[stx] effect error (the effect is disposed):",J)}finally{Z(z)}};if(H.immediate!==!1)I();return()=>{if(G=!0,F){let z=F;F=void 0,z()}}}function h(j){B(j)}function k(j){O.push(j)}function g(j){P.push(j)}function o(){W(O,"onMount",P)}function v(){W(P,"onDestroy")}function W(j,H,F){let G=j.splice(0,j.length);for(let I of G)try{let z=I();if(F&&typeof z==="function")F.push(z)}catch(z){console.error(`[stx] ${H} callback threw:`,z)}}function d(){return{mount:O.length,destroy:P.length}}function m(j){return typeof j==="function"&&j._isSignal===!0}function w(j){return typeof j==="function"&&j._isDerived===!0}function p(j){if(m(j)||w(j))return j();return j}function D(j){return A(j)}function f(j,H){let F=typeof j==="function"?j:()=>j,G=q([]),I=E(()=>G().reduce((K,L)=>H(K,L.action),F())),z=!1;return V(()=>{if(F(),!z){z=!0;return}if(D(()=>G().length))G.set([])}),[I,(K,L)=>{let T={action:K};G.set([...G(),T]);let Q=()=>{let x=G().filter((C)=>C!==T);if(x.length!==G().length)G.set(x)};if(L&&typeof L.then==="function")Promise.resolve(L).then(Q,Q);return Q}]}
|
|
3
|
-
export{X as
|
|
3
|
+
export{X as uj,Y as vj,Z as wj,_ as xj,$ as yj,q as zj,E as Aj,V as Bj,h as Cj,k as Dj,g as Ej,o as Fj,v as Gj,d as Hj,m as Ij,w as Jj,p as Kj,D as Lj,f as Mj};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import G from"path";var L=new Set([".jpg",".jpeg",".png",".gif"]),O=[{ext:".avif",mime:"image/avif"},{ext:".webp",mime:"image/webp"}];async function M(j,z){let H=z.formats??O;if(!z.publicDir)return j;let C=N(j),J=[],Y=/<img\b[^>]*?>/gi,K=[],Q;while((Q=Y.exec(j))!==null){let q=Q[0],y=q.match(/\bsrc=["']([^"']+)["']/i);if(!y)continue;if(_(Q.index,C))continue;K.push({idx:Q.index,length:q.length,src:y[1],raw:q})}if(K.length===0)return j;let Z=await Promise.all(K.map(async(q)=>{let y=await X(q.src,z.publicDir,H);return{match:q,sources:y}}));for(let{match:q,sources:y}of Z){if(y.length===0)continue;let I=`<picture>${y.map(($)=>`<source type="${$.mime}" srcset="${w($.url)}">`).join("")}${q.raw}</picture>`;J.push({start:q.idx,end:q.idx+q.length,replacement:I})}if(J.length===0)return j;let V="",W=0;for(let q of J)V+=j.slice(W,q.start),V+=q.replacement,W=q.end;return V+=j.slice(W),V}async function X(j,z,H){if(!F(j))return[];let C=G.extname(j).toLowerCase();if(!L.has(C))return[];if(!j.startsWith("/"))return[];let J=G.join(z,j.slice(1)),Y=G.dirname(J),K=G.basename(J,C),Q=G.resolve(Y),Z=G.resolve(z);if(!Q.startsWith(Z))return[];let V=G.posix.dirname(j),W=H.map(async(y)=>{let k=G.join(Y,`${K}${y.ext}`);if(!await Bun.file(k).exists())return null;return{url:G.posix.join(V,`${K}${y.ext}`),mime:y.mime}});return(await Promise.all(W)).filter((y)=>y!==null)}function F(j){if(!j)return!1;if(j.startsWith("http://")||j.startsWith("https://"))return!1;if(j.startsWith("//"))return!1;if(j.startsWith("data:"))return!1;return!0}function N(j){let z=[],H=/<picture\b[^>]*>[\s\S]*?<\/picture>/gi,C;while((C=H.exec(j))!==null)z.push([C.index,C.index+C[0].length]);return z}function _(j,z){for(let[H,C]of z)if(j>=H&&j<C)return!0;return!1}function w(j){return j.replace(/&/g,"&").replace(/"/g,""")}
|
|
3
|
-
export{M as
|
|
3
|
+
export{M as hi};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{Ni as T,Oi as u,Pi as A}from"./chunk-452k8psm.js";import{bl as g,il as h,ol as b}from"./chunk-6b8j6812.js";import{Do as f,Fr as I,em as k,nq as B}from"./chunk-qp4x0mwv.js";import{Av as D,Bv as S}from"./chunk-rwtj7j0r.js";import{Fv as F}from"./chunk-csgshaeh.js";import P from"path";var j=new Map,K=new Map,n=["composables","functions"];function p(z){let H=P.basename(z,".ts");return H==="index"||H==="types"||z.endsWith(".d.ts")}async function r(z){if(z)return P.resolve(z);let H=`<default>:${process.cwd()}`,Y=K.get(H);if(Y!==void 0)return Y;let J=await l();if(J!==null)K.set(H,J);return J}async function l(){let z=await I(),H=z.root||process.cwd(),Y=z.composablesDir;if(Y)return P.resolve(H,Y);for(let J of n){let V=P.resolve(H,J);try{let Z=new Bun.Glob("**/*.ts");for await(let W of Z.scan({cwd:V,absolute:!0}))if(!p(W))return V}catch{}}return null}async function m(z){let H=Array.isArray(z)?z:z?[P.resolve(z)]:(await I())._layerComposableDirs??[await r()].filter((J)=>!!J),Y=new Map;for(let J of H){let V=new Bun.Glob("**/*.ts");try{for await(let Z of V.scan({cwd:J,absolute:!0})){let W=P.relative(J,Z);if(!p(Z)&&!Y.has(W))Y.set(W,Z)}}catch{}}return{key:H.join("\x00"),files:[...Y.values()].sort()}}async function Wq(z){let{files:H}=await m(z),Y=B({loader:"ts",target:"browser",define:k()}),J=[];for(let V of H)try{let Z=await Bun.file(V).text(),W=Y.scan(Z).exports.filter((G)=>G!=="default");if(W.length>0)J.push({file:V,names:W})}catch{}return J}function c(z,H){return new RegExp(`\\b${H.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}\\b`).test(z)}function a(z,H,Y){let J=new Map;for(let{file:G,names:$}of z)for(let O of $)if(!J.has(O))J.set(O,G);let V=(G)=>{let $=[];for(let[O,w]of J)if(c(G,O))$.push(w);return $},Z=new Set,W=Y.flatMap(V);while(W.length>0){let G=[];for(let $ of W){if(Z.has($))continue;Z.add($);for(let O of V(H.get($)??""))if(!Z.has(O))G.push(O)}W=G}return Z}async function Yq(z,H,Y){let{key:J,files:V}=await m(z);if(!J)return null;let Z=()=>[...new Set([...V,...V.flatMap((q)=>g(q))])],W=T(Z());if(V.length===0)return A(j,J,W,""),null;V.sort();let G=B({loader:"ts",target:"browser",define:k()}),$=new Map,O=[];for(let q of V)try{let Q=await Bun.file(q).text();$.set(q,Q);let U=G.scan(Q).exports.filter((X)=>X!=="default");if(U.length>0)O.push({file:q,names:U})}catch{$.set(q,"")}let w=H===void 0?new Set(V):a(O,$,Y?[H,...Y]:[H]);if(w.size===0)return null;let _=V.filter((q)=>w.has(q)),M=`${J}\x00${_.join("\x00")}`,v=u(j,M,W);if(v!==void 0)return v||null;let R=[],L=new Set,C=new Set;for(let q of _)try{let Q=$.get(q)??await Bun.file(q).text(),U=P.basename(q,".ts");for(let X of Q.matchAll(/\b(?:const|let|var|function|class)\s+([A-Z_a-z$][\w$]*)/g))if(X[1])C.add(X[1]);try{for(let X of G.scan(Q).exports)if(X!=="default")L.add(X)}catch{}if(Q=D(Q),h(Q))Q=await b(Q,q,{projectRoot:process.cwd(),externalizeUserModules:!1}),Q=f(Q);Q=S(Q),Q=Q.replace(/^export\s+(default\s+)?/gm,""),Q=G.transformSync(Q),R.push(`// Composable: ${U}
|
|
3
3
|
${Q.trim()}`)}catch(Q){console.warn(`[stx] Failed to load composable ${q}:`,Q)}if(R.length===0||L.size===0)return A(j,M,W,""),null;let t=[...L].map((q)=>` try { if (!(${JSON.stringify(q)} in __c)) __c[${JSON.stringify(q)}] = ${q}; } catch (e) {}`).join(`
|
|
4
4
|
`),N=JSON.stringify([...L]),E=R.join(`
|
|
5
5
|
|
|
@@ -30,4 +30,4 @@ ${t}
|
|
|
30
30
|
__published[__n] = true;
|
|
31
31
|
}
|
|
32
32
|
})();`;return W=T(Z()),A(j,M,W,x),x}function Zq(){j.clear(),K.clear()}
|
|
33
|
-
export{Wq as
|
|
33
|
+
export{Wq as ii,Yq as ji,Zq as ki};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{$v as
|
|
2
|
+
import{$v as a,Aw as B,Bw as C,Cw as D,Dw as E,Ew as F,Fw as G,Gw as H,Hw as I,Iw as J,Kw as K,Lw as L,Nw as M,aw as b,bw as c,cw as d,dw as e,ew as f,fw as g,gw as h,hw as i,iw as j,jw as k,kw as l,lw as m,mw as n,nw as o,ow as p,pw as q,qw as r,rw as s,sw as t,tw as u,uw as v,vw as w,ww as x,xw as y,yw as z,zw as A}from"./chunk-d0qy1ezf.js";import"./chunk-rxz43r6k.js";M();export{o as setAppUrl,H as runMiddleware,r as route,j as resolveLayoutChain,s as resetRoutes,z as registerMiddleware,g as patternToRegex,t as navigateTo,h as matchRoute,E as loadMiddlewareFromDirectory,c as isNonPageRoutePattern,b as isNonPageRoutePath,B as hasMiddleware,L as getRouterScriptDev,K as getRouterScript,D as getMiddlewareNames,A as getMiddleware,d as generateRouteTypes,e as generateRouteManifest,n as formatRoutes,m as findErrorPage,f as filePathToPattern,J as extractLayoutMetadata,I as deriveLayoutGroup,q as defineRoutes,p as defineRoute,v as defineMiddleware,y as createStorageManager,w as createServerCookieManager,l as createRouter,F as createRouteLocation,G as createMiddlewareContext,x as createClientCookieManager,C as clearMiddleware,i as bracketPathToRegex,u as abortNavigation,k as Router,a as NON_PAGE_DIRS};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{Fh as a,Gh as b,Hh as c,Ih as d,Jh as e,Kh as f,Lh as g}from"./chunk-9r2xgf5k.js";import"./chunk-rxz43r6k.js";export{d as useVirtualList,b as processVirtualListDirectives,f as processVirtualGridDirectives,e as processInfiniteListDirectives,c as generateVirtualListCSS,g as default,a as createVirtualList};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
var{WebView:F}=globalThis.Bun;import{existsSync as V,mkdirSync as k,readdirSync as O,statSync as E}from"fs";import $ from"path";var C=16384;function X(j){if(/^https?:\/\//.test(j)||j.startsWith("file://"))return j;return`file://${$.resolve(j)}`}function K(j,B,z,L){return new Promise((Q)=>{let J=!1,G,Y,R=()=>{if(!J){if(J=!0,clearTimeout(Y),G)clearTimeout(G);j.onNavigated=void 0,Q()}};Y=setTimeout(R,L),j.onNavigated=()=>{if(!J)G=setTimeout(R,z)};try{let Z=j.navigate(B);if(Z&&typeof Z.catch==="function")Z.catch(R)}catch{R()}})}async function U(j,B,z){let L=`!!document.querySelector(${JSON.stringify(B)})`,Q=Date.now()+z;while(Date.now()<Q){try{if(await j.evaluate(L))return}catch{}await new Promise((J)=>setTimeout(J,100))}}async function _(j){try{let B=await j.evaluate("Math.ceil(Math.max(document.documentElement.scrollHeight, document.documentElement.offsetHeight, document.body ? document.body.scrollHeight : 0, document.body ? document.body.offsetHeight : 0))");return typeof B==="number"&&Number.isFinite(B)&&B>0?Math.min(B,C):0}catch{return 0}}async function x(j,B,z={}){let L=Math.min(z.width??1440,C),Q=Math.min(z.height??2200,C),J=z.waitMs??800,G=z.timeoutMs??15000,Y=z.format??"png",R=X(j),Z=(q)=>new F({width:L,height:q,headless:!0,...z.backend?{backend:z.backend}:{}}),P=Z(Q);try{if(await K(P,R,J,G),z.waitSelector)await U(P,z.waitSelector,G);if(z.fullPage){let H=await _(P);if(H>Q){if(P.close(),P=Z(H),await K(P,R,J,G),z.waitSelector)await U(P,z.waitSelector,G)}}let q=await P.screenshot({encoding:"buffer",format:Y});k($.dirname($.resolve(B)),{recursive:!0}),await Bun.write(B,q)}finally{P.close()}if(!V(B))throw Error(`Screenshot was not produced for ${j}`);return{input:j,output:B,bytes:E(B).size}}async function W(j,B,z={}){k(B,{recursive:!0});let L;if(!/^https?:\/\//.test(j)&&V(j)&&E(j).isDirectory())L=O(j).filter((G)=>G.endsWith(".html")).map((G)=>$.join(j,G));else L=[j];let Q=z.format??"png",J=[];for(let G of L){let Y=/^https?:\/\//.test(G)?new URL(G).pathname.replace(/\W+/g,"-").replace(/^-|-$/g,"")||"index":$.basename(G).replace(/\.html?$/,"");J.push(await x(G,$.join(B,`${Y}.${Q}`),z))}return J}
|
|
3
|
-
export{x as
|
|
3
|
+
export{x as Ve,W as We};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{Aq as y,No as a,Po as b,Ro as c,So as d,gq as e,hq as f,iq as g,jq as h,kq as i,lq as j,mq as k,nq as l,oq as m,pq as n,qq as o,rq as p,sq as q,tq as r,uq as s,vq as t,wq as u,xq as v,yq as w,zq as x}from"./chunk-qp4x0mwv.js";import"./chunk-4cv7bw5e.js";import"./chunk-7tgjn256.js";import"./chunk-h8zp2fz9.js";import"./chunk-ekvejzvk.js";import"./chunk-3769e62c.js";import"./chunk-1bdvnmxd.js";import"./chunk-yj5gkn17.js";import"./chunk-cy8hgd86.js";import"./chunk-3wmdjemm.js";import"./chunk-g7qmxjyc.js";import"./chunk-88tt0qg0.js";import"./chunk-e1rv01pn.js";import"./chunk-bdz7nznw.js";import"./chunk-rwtj7j0r.js";import"./chunk-eqhsprr0.js";import"./chunk-csgshaeh.js";import"./chunk-d0qy1ezf.js";import"./chunk-c9kj8p6j.js";import"./chunk-x2wmn8m7.js";import"./chunk-rxz43r6k.js";export{e as validateTemplate,g as validateDirective,o as userComponentFileExists,m as transpileTypeScript,q as slotContentHasExpressions,k as shouldTranspileTypeScript,n as scopeOnRootElement,u as resolveTemplatePath,s as renderComponentWithSlot,j as isJavaScriptScript,p as isHydrateTrigger,d as hasVariables,h as hasDirectives,v as getSourceLineInfo,l as getSharedTranspiler,f as getPositionInfo,y as getComponentCacheStats,t as fileExists,a as extractVariables,c as extractScriptFromTemplate,i as extractDirectiveNames,w as createDetailedErrorMessage,b as convertToCommonJS,r as componentClientSignalNames,x as clearComponentCache};
|