@stacksjs/stx 0.2.346 → 0.2.348

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (77) hide show
  1. package/dist/binding-manifest.js +2 -0
  2. package/dist/{chunk-qp7sk0ex.js → chunk-05dbtcqr.js} +1 -1
  3. package/dist/chunk-08v51z39.js +2 -0
  4. package/dist/{chunk-t83m2pkm.js → chunk-1nhpc0hz.js} +1 -1
  5. package/dist/{chunk-zz2yxsf9.js → chunk-2dy1yerz.js} +1 -1
  6. package/dist/{chunk-akb6mgrb.js → chunk-39tzaza0.js} +1 -1
  7. package/dist/{chunk-21mmq3aj.js → chunk-42akykta.js} +1 -1
  8. package/dist/{chunk-fvvdq3ev.js → chunk-4956wxhq.js} +1 -1
  9. package/dist/{chunk-7hjjckat.js → chunk-5md1ycw2.js} +1 -1
  10. package/dist/{chunk-km92eab7.js → chunk-6nwrt02y.js} +1 -1
  11. package/dist/{chunk-dyy74sdv.js → chunk-72x80y39.js} +1 -1
  12. package/dist/{chunk-1xts7768.js → chunk-7j6vf641.js} +1 -1
  13. package/dist/{chunk-j8s9akdq.js → chunk-7pn9m07r.js} +1 -1
  14. package/dist/{chunk-wbp4vbm0.js → chunk-8fxbexvd.js} +1 -1
  15. package/dist/{chunk-9jbssgem.js → chunk-8m0g0h4x.js} +146 -10
  16. package/dist/{chunk-mph46gkj.js → chunk-9kmhwbwy.js} +12 -10
  17. package/dist/chunk-a8dyw9eg.js +32 -0
  18. package/dist/{chunk-3pggfwbf.js → chunk-bhjq5phg.js} +1 -1
  19. package/dist/{chunk-1bws4afs.js → chunk-c33jgh9n.js} +9 -9
  20. package/dist/chunk-cdt3dm8h.js +2 -0
  21. package/dist/{chunk-ddsgfmhv.js → chunk-cj5t2xsa.js} +1 -1
  22. package/dist/{chunk-rf2cejt3.js → chunk-d8gna0pj.js} +1 -1
  23. package/dist/{chunk-8tghv8cf.js → chunk-d9wq2e7a.js} +1 -1
  24. package/dist/{chunk-vw83y4we.js → chunk-djrrczet.js} +2 -2
  25. package/dist/{chunk-k5hv1qqy.js → chunk-e0qrfg4x.js} +1 -1
  26. package/dist/{chunk-vzbcdxd5.js → chunk-e1y8m2yp.js} +1 -1
  27. package/dist/{chunk-k80kr2t2.js → chunk-f32by983.js} +1 -1
  28. package/dist/{chunk-kfkf9v2d.js → chunk-f5veee11.js} +1 -1
  29. package/dist/{chunk-s3jyec9k.js → chunk-fb4gkrcw.js} +1 -1
  30. package/dist/{chunk-es275g3w.js → chunk-h0ntb2x4.js} +1 -1
  31. package/dist/{chunk-rwk5hwvk.js → chunk-hxta7f82.js} +1 -1
  32. package/dist/{chunk-1djdz98r.js → chunk-j6tdkr06.js} +1 -1
  33. package/dist/{chunk-1caep9rn.js → chunk-kzyd1gnx.js} +1 -1
  34. package/dist/{chunk-maq5jag2.js → chunk-mw33297e.js} +1 -1
  35. package/dist/chunk-mw3k7607.js +2 -0
  36. package/dist/{chunk-bxwanj4g.js → chunk-mz459926.js} +1 -1
  37. package/dist/{chunk-1xayahc6.js → chunk-na1wndvy.js} +1 -1
  38. package/dist/{chunk-v7aa7v85.js → chunk-p3p4d6g1.js} +1 -1
  39. package/dist/{chunk-xytgvfbf.js → chunk-pbt6f8gv.js} +2 -2
  40. package/dist/{chunk-5hhng72w.js → chunk-pg6esg0m.js} +1 -1
  41. package/dist/{chunk-tnm0nez5.js → chunk-pjg5v73e.js} +1 -1
  42. package/dist/{chunk-p04rck27.js → chunk-pw32a3x9.js} +1 -1
  43. package/dist/{chunk-1yh6pq6b.js → chunk-pwh8pbks.js} +1 -1
  44. package/dist/{chunk-s11e8aq9.js → chunk-r1x8wm83.js} +1 -1
  45. package/dist/{chunk-1vyz6kr8.js → chunk-rqfcafcy.js} +2 -2
  46. package/dist/{chunk-yg5r7bnm.js → chunk-swvm1wgn.js} +27 -3
  47. package/dist/{chunk-hfvknn03.js → chunk-t255mdy2.js} +2 -2
  48. package/dist/{chunk-7w66sc17.js → chunk-tbsvwy95.js} +1 -1
  49. package/dist/chunk-tg33an38.js +3745 -0
  50. package/dist/{chunk-jwe0cwff.js → chunk-vneewh3d.js} +6 -6
  51. package/dist/{chunk-q45fva8h.js → chunk-w1nnmcsr.js} +1 -1
  52. package/dist/{chunk-864m3xp2.js → chunk-xv6aydze.js} +1 -1
  53. package/dist/{chunk-b08taxsf.js → chunk-yj9kv14q.js} +1 -1
  54. package/dist/{chunk-byn0ptqt.js → chunk-zrjbge6f.js} +1 -1
  55. package/dist/{chunk-t2py7vc3.js → chunk-zwkkgham.js} +1 -1
  56. package/dist/cli.js +8 -8
  57. package/dist/config.js +16 -4
  58. package/dist/craft-entry.js +1 -1
  59. package/dist/craft.js +1 -1
  60. package/dist/dev-server/ts-css.js +16 -47
  61. package/dist/error-boundaries.d.ts +2 -13
  62. package/dist/error-boundaries.js +14 -6
  63. package/dist/process.js +13 -8
  64. package/dist/pwa.js +1 -1
  65. package/dist/signals.js +146 -10
  66. package/dist/ssg.js +2 -2
  67. package/dist/stx-virtual-ts.d.ts +16 -1
  68. package/dist/stx-virtual-ts.js +44 -3
  69. package/dist/typecheck.js +2 -0
  70. package/dist/types/config-types.d.ts +10 -0
  71. package/dist/utils.js +11 -2
  72. package/package.json +5 -5
  73. package/dist/chunk-fynb9e02.js +0 -2
  74. package/dist/chunk-pc8np1bb.js +0 -2
  75. package/dist/chunk-skd72bn4.js +0 -33
  76. package/dist/chunk-washyj03.js +0 -2
  77. package/dist/chunk-zdq7emrd.js +0 -3745
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{Jj as b,Kj as c,Lj as d,Mj as e,Nj as f,Oj as g,Pj as h,Qj as i,Rj as j,Sj as k,Tj as l,Uj as m,Vj as n,Wj as o}from"./chunk-t2py7vc3.js";import{tl as a}from"./chunk-fvsefztj.js";import"./chunk-zdq7emrd.js";import"./chunk-8y1ve8tc.js";import"./chunk-njx93b4z.js";import"./chunk-bqdfbwdf.js";import"./chunk-89mqnh67.js";import"./chunk-xvh1k1a4.js";import"./chunk-skd72bn4.js";import"./chunk-y2f41kaq.js";import"./chunk-xj6bcwqa.js";import"./chunk-21mmq3aj.js";import"./chunk-vhta1be7.js";import"./chunk-tc4pj651.js";import"./chunk-san1eq0r.js";import"./chunk-avwywzsj.js";import"./chunk-wj21f1e0.js";import"./chunk-d86q27j8.js";import"./chunk-72x62kch.js";import"./chunk-yg5r7bnm.js";import"./chunk-9nrgjtah.js";import"./chunk-ejqpq0wc.js";export{b as templateCache,j as registerServeModuleBundle,c as readFileCached,e as invalidateFileCacheByDir,d as invalidateFileCache,o as hashFilePath,k as getServeModuleBundle,i as getServeClientAsset,g as getCachedSignalsRuntime,h as getCachedRouterScript,l as clearDevCaches,m as checkCache,n as cacheTemplate,a as cacheEngineFingerprint,f as __setSignalsGeneratorsForTest};
2
+ import{Jj as b,Kj as c,Lj as d,Mj as e,Nj as f,Oj as g,Pj as h,Qj as i,Rj as j,Sj as k,Tj as l,Uj as m,Vj as n,Wj as o}from"./chunk-zwkkgham.js";import{tl as a}from"./chunk-fvsefztj.js";import"./chunk-tg33an38.js";import"./chunk-8y1ve8tc.js";import"./chunk-njx93b4z.js";import"./chunk-bqdfbwdf.js";import"./chunk-89mqnh67.js";import"./chunk-xvh1k1a4.js";import"./chunk-a8dyw9eg.js";import"./chunk-y2f41kaq.js";import"./chunk-xj6bcwqa.js";import"./chunk-42akykta.js";import"./chunk-vhta1be7.js";import"./chunk-tc4pj651.js";import"./chunk-san1eq0r.js";import"./chunk-avwywzsj.js";import"./chunk-wj21f1e0.js";import"./chunk-d86q27j8.js";import"./chunk-72x62kch.js";import"./chunk-swvm1wgn.js";import"./chunk-9nrgjtah.js";import"./chunk-ejqpq0wc.js";export{b as templateCache,j as registerServeModuleBundle,c as readFileCached,e as invalidateFileCacheByDir,d as invalidateFileCache,o as hashFilePath,k as getServeModuleBundle,i as getServeClientAsset,g as getCachedSignalsRuntime,h as getCachedRouterScript,l as clearDevCaches,m as checkCache,n as cacheTemplate,a as cacheEngineFingerprint,f as __setSignalsGeneratorsForTest};
@@ -1,4 +1,4 @@
1
1
  // @bun
2
2
  import{Nw as H}from"./chunk-ejqpq0wc.js";import P from"path";var $=/__stxModules\["((?:[^"\\]|\\.)*)"\]/g;function G(...v){let w=new Set;for(let q of v){if(!q||!q.includes("__stxModules["))continue;for(let z of q.matchAll($))try{w.add(JSON.parse(`"${z[1]}"`))}catch{}}return[...w].sort()}async function T(v,w={}){if(v.length===0)return null;let q=process.cwd(),z=[],J=[];v.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-5hhng72w.js");B=await j(L,P.join(q,".stx-module-registry.ts"),{projectRoot:q,minify:w.minify,externalizeUserModules:!1})}catch(j){return console.warn("[stx] could not build the page module registry (#1957):",j),null}let{transformAutoImports:Q,generateAutoImportDestructuring:U}=await import("./chunk-k5hv1qqy.js"),F=Q(B),V=U(F.stxImports,F.browserImports),{transformStoreImports:W}=await import("./chunk-zkxnarrh.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(`
3
+ `),B;try{let{bundleClientScript:j}=await import("./chunk-pg6esg0m.js");B=await j(L,P.join(q,".stx-module-registry.ts"),{projectRoot:q,minify:w.minify,externalizeUserModules:!1})}catch(j){return console.warn("[stx] could not build the page module registry (#1957):",j),null}let{transformAutoImports:Q,generateAutoImportDestructuring:U}=await import("./chunk-e0qrfg4x.js"),F=Q(B),V=U(F.stxImports,F.browserImports),{transformStoreImports:W}=await import("./chunk-zkxnarrh.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{ei as a,fi as b,gi as c}from"./chunk-vzbcdxd5.js";import"./chunk-7we3xfde.js";import"./chunk-zdq7emrd.js";import"./chunk-8y1ve8tc.js";import"./chunk-njx93b4z.js";import"./chunk-bqdfbwdf.js";import"./chunk-89mqnh67.js";import"./chunk-xvh1k1a4.js";import"./chunk-skd72bn4.js";import"./chunk-y2f41kaq.js";import"./chunk-xj6bcwqa.js";import"./chunk-21mmq3aj.js";import"./chunk-vhta1be7.js";import"./chunk-tc4pj651.js";import"./chunk-san1eq0r.js";import"./chunk-avwywzsj.js";import"./chunk-wj21f1e0.js";import"./chunk-d86q27j8.js";import"./chunk-72x62kch.js";import"./chunk-yg5r7bnm.js";import"./chunk-9nrgjtah.js";import"./chunk-ejqpq0wc.js";export{a as listComposableModules,b as getComposableScript,c as clearComposableCache};
2
+ import{ei as a,fi as b,gi as c}from"./chunk-e1y8m2yp.js";import"./chunk-7we3xfde.js";import"./chunk-tg33an38.js";import"./chunk-8y1ve8tc.js";import"./chunk-njx93b4z.js";import"./chunk-bqdfbwdf.js";import"./chunk-89mqnh67.js";import"./chunk-xvh1k1a4.js";import"./chunk-a8dyw9eg.js";import"./chunk-y2f41kaq.js";import"./chunk-xj6bcwqa.js";import"./chunk-42akykta.js";import"./chunk-vhta1be7.js";import"./chunk-tc4pj651.js";import"./chunk-san1eq0r.js";import"./chunk-avwywzsj.js";import"./chunk-wj21f1e0.js";import"./chunk-d86q27j8.js";import"./chunk-72x62kch.js";import"./chunk-swvm1wgn.js";import"./chunk-9nrgjtah.js";import"./chunk-ejqpq0wc.js";export{a as listComposableModules,b as getComposableScript,c as clearComposableCache};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{Ue as a}from"./chunk-hxta7f82.js";import"./chunk-57atgbyq.js";import"./chunk-tg33an38.js";import"./chunk-8y1ve8tc.js";import"./chunk-njx93b4z.js";import"./chunk-bqdfbwdf.js";import"./chunk-89mqnh67.js";import"./chunk-xvh1k1a4.js";import"./chunk-a8dyw9eg.js";import"./chunk-y2f41kaq.js";import"./chunk-xj6bcwqa.js";import"./chunk-42akykta.js";import"./chunk-vhta1be7.js";import"./chunk-tc4pj651.js";import"./chunk-san1eq0r.js";import"./chunk-avwywzsj.js";import"./chunk-wj21f1e0.js";import"./chunk-d86q27j8.js";import"./chunk-72x62kch.js";import"./chunk-swvm1wgn.js";import"./chunk-9nrgjtah.js";import"./chunk-ejqpq0wc.js";export{a as buildApp};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{$ as jm,$a as mo,$b as wp,$c as wq,$d as wr,A as Vk,Aa as xn,Ab as Ro,Ac as Xp,Ad as Xq,Ae as bs,B as Wk,Ba as yn,Bb as So,Bc as Yp,Bd as Yq,Be as cs,C as Xk,Ca as Ln,Cb as To,Cc as Zp,Cd as Zq,Ce as ds,D as Yk,Da as Mn,Db as Uo,Dc as _p,Dd as _q,De as es,E as Ol,Ea as Nn,Eb as Vo,Ec as $p,Ed as $q,Ee as fs,F as Pl,Fa as On,Fb as Wo,Fc as aq,Fd as ar,Fe as gs,G as Ql,Ga as Pn,Gb as Xo,Gc as bq,Gd as br,Ge as hs,H as Rl,Ha as Qn,Hb as Yo,Hc as cq,Hd as cr,He as is,I as Sl,Ia as Un,Ib as Zo,Ic as dq,Id as dr,Ie as js,J as Tl,Ja as Vn,Jb as _o,Jc as eq,Jd as er,Je as ks,K as Ul,Ka as Wn,Kb as $o,Kc as fq,Kd as fr,Ke as ls,L as Vl,La as Xn,Lb as ap,Lc as gq,Ld as gr,M as Wl,Ma as Yn,Mb as bp,Mc as hq,Md as hr,N as Xl,Na as Zn,Nb as ip,Nc as iq,Nd as ir,O as Yl,Oa as _n,Ob as jp,Oc as jq,Od as jr,P as Zl,Pa as $n,Pb as kp,Pc as kq,Pd as kr,Q as _l,Qa as ao,Qb as lp,Qc as lq,Qd as lr,R as $l,Ra as bo,Rb as mp,Rc as mq,Rd as mr,S as am,Sa as co,Sb as np,Sc as nq,Sd as nr,T as bm,Ta as eo,Tb as op,Tc as oq,Td as or,U as cm,Ua as fo,Ub as pp,Uc as pq,Ud as pr,V as dm,Va as go,Vb as qp,Vc as qq,Vd as qr,W as em,Wa as ho,Wb as rp,Wc as rq,Wd as rr,X as fm,Xa as io,Xb as sp,Xc as sq,Xd as sr,Y as gm,Ya as jo,Yb as tp,Yc as tq,Yd as tr,Z as hm,Za as ko,Zb as up,Zc as uq,Zd as ur,_ as im,_a as lo,_b as vp,_c as vq,_d as vr,aa as km,ab as no,ac as xp,ad as xq,ae as xr,ba as lm,bb as oo,bc as yp,bd as yq,be as Er,ca as mm,cb as po,cc as zp,cd as zq,ce as Fr,da as nm,db as qo,dc as Ap,dd as Aq,de as Gr,ea as om,eb as ro,ec as Bp,ed as Bq,ee as Hr,fa as pm,fb as so,fc as Cp,fd as Cq,fe as Ir,ga as qm,gb as to,gc as Dp,gd as Dq,ge as Jr,ha as rm,hb as uo,hc as Ep,hd as Eq,he as Kr,ia as sm,ib as vo,ic as Fp,id as Fq,ie as Lr,ja as tm,jb as wo,jc as Gp,jd as Gq,je as Mr,ka as um,kb as xo,kc as Hp,kd as Hq,ke as Nr,la as vm,lb as yo,lc as Ip,ld as Iq,le as Or,ma as wm,mb as zo,mc as Jp,md as Jq,me as Pr,na as xm,nb as Co,nc as Kp,nd as Kq,ne as Qr,o as a,oa as ym,ob as Do,oc as Lp,od as Lq,oe as Rr,p as Gk,pa as mn,pb as Eo,pc as Mp,pd as Mq,pe as Sr,q as Hk,qa as nn,qb as Fo,qc as Np,qd as Nq,qe as Tr,r as Ik,ra as on,rb as Ho,rc as Op,rd as Oq,re as Ur,s as Jk,sa as pn,sb as Io,sc as Pp,sd as Pq,se as Vr,t as Kk,ta as qn,tb as Jo,tc as Qp,td as Qq,te as Wr,u as Lk,ua as rn,ub as Ko,uc as Rp,ud as Rq,ue as Xr,v as Mk,va as sn,vb as Mo,vc as Sp,vd as Sq,ve as Yr,w as Nk,wa as tn,wb as No,wc as Tp,wd as Tq,we as Zr,x as Ok,xa as un,xb as Oo,xc as Up,xd as Uq,xe as _r,y as Tk,ya as vn,yb as Po,yc as Vp,yd as Vq,ye as $r,z as Uk,za as wn,zb as Qo,zc as Wp,zd as Wq,ze as as}from"./chunk-1bws4afs.js";import{Le as cp,Me as dp,Ne as ep,Oe as fp,Pe as gp,Qe as hp}from"./chunk-jwe0cwff.js";import{Re as Ao,Se as Bo}from"./chunk-2ver2s2y.js";import{Te as Go}from"./chunk-dyy74sdv.js";import{Ue as ln}from"./chunk-rwk5hwvk.js";import{Ve as Rn,We as Sn,Xe as Tn,Ye as Lo}from"./chunk-s3jyec9k.js";import{$e as $k,Ze as Zk,_e as _k,af as al,bf as bl,cf as cl,df as dl,ef as el,ff as fl,gf as gl,hf as hl,if as il,jf as jl,kf as kl,lf as ll}from"./chunk-ym3r8ktq.js";import{mf as Cl,nf as Dl,of as El,pf as Fl,qf as Gl,rf as Hl,sf as Il,tf as Jl,uf as Kl,vf as Ll,wf as Ml,xf as Nl}from"./chunk-msywnv5n.js";import{yf as Al,zf as Bl}from"./chunk-b5hank5e.js";import{Af as ml,Bf as nl,Cf as ol,Df as pl,Ef as ql,Ff as rl,Gf as sl,If as tl,Jf as ul,Kf as vl,Lf as wl,Mf as xl,Nf as yl,Qf as zl}from"./chunk-7qp3zphs.js";import{Rf as Vm,Sf as Wm,Tf as Xm,Uf as Ym,Vf as Zm,Wf as kn}from"./chunk-ddsgfmhv.js";import{$f as Dm,Xf as zm,Yf as Am,Zf as Bm,_f as Cm,ag as Em,bg as Fm,cg as Gm,dg as Hm,eg as Im,fg as Jm,gg as Km,hg as Lm,ig as Mm,jg as Nm,kg as Om,lg as _m,mg as $m,ng as an,og as bn,pg as cn,qg as dn,rg as en,sg as fn,tg as gn,ug as hn,vg as jn}from"./chunk-xytgvfbf.js";import{wg as Pm,xg as Qm}from"./chunk-57atgbyq.js";import{Ag as Bn,Bg as Cn,Cg as Dn,Dg as En,Eg as Fn,Fg as Gn,Gg as Hn,Hg as In,Ig as Jn,Jg as Kn,yg as zn,zg as An}from"./chunk-8bxtvsgm.js";import{Kg as pi,Lg as qi,Mg as ri,Ng as si,Og as ti,Pg as ui}from"./chunk-p04rck27.js";import{Qg as Kj,Rg as Lj,Sg as Mj,Wg as Nj,Xg as Oj,Yg as Pj}from"./chunk-rwwfzkz4.js";import{$g as Xj,Zg as Vj,_g as Wj,ah as Yj,bh as Zj,ch as _j,dh as $j,eh as ak,fh as bk,gh as ck,hh as dk}from"./chunk-7h9fajgs.js";import{ih as Aj,jh as Bj,kh as Cj,lh as Dj,mh as Ej,oh as Fj,ph as Gj,qh as Hj,rh as Ij,sh as Jj}from"./chunk-18018jkn.js";import{th as vk,vh as wk}from"./chunk-sqvqwd0p.js";import{Bh as Kh,Ch as Lh,Dh as Mh,Eh as Nh,Fh as Oh,Gh as Ph}from"./chunk-7r9vgzg4.js";import{Ih as Qh,Jh as Rh,Kh as Sh,Lh as Th,Mh as Uh,Nh as Vh,Oh as Wh,Ph as Xh,Qh as Yh,Rh as Zh,Sh as _h,Th as $h,Uh as ai,Vh as bi}from"./chunk-a959m68j.js";import{Xh as ci,Yh as di,Zh as ei,_h as fi}from"./chunk-1vb2rj09.js";import{di as gi}from"./chunk-g6czgcg4.js";import{gi as jh}from"./chunk-vzbcdxd5.js";import{hi as kh}from"./chunk-1z1efvtw.js";import{ii as lh,ji as mh}from"./chunk-vgfd9582.js";import{ki as nh,li as oh,mi as ph,ni as qh,oi as rh,pi as sh}from"./chunk-qsbjtp60.js";import{qi as th,ri as uh,si as vh,ti as wh,ui as xh}from"./chunk-nf7k53ap.js";import{vi as yh,wi as zh,xi as Ah,yi as Bh,zi as Ch}from"./chunk-zk6ghjnj.js";import{Ai as Dh,Bi as Eh,Ci as Fh,Di as Gh,Ei as Hh,Fi as Ih,Gi as Jh}from"./chunk-bgrkxzr7.js";import{Hi as hh,Ii as ih}from"./chunk-byn0ptqt.js";import"./chunk-7we3xfde.js";import{Mi as Oe,Ni as Pe,Oi as Qe,Pi as Re,Qi as Se,Ri as Te,Si as Ue,Ti as Ve,Ui as We,Vi as Xe,Wi as Ye,Xi as Ze,Yi as _e,Zi as $e}from"./chunk-7hjjckat.js";import{$i as sf,_i as rf,aj as tf,bj as uf,cj as vf,dj as wf,ej as xf,fj as yf,gj as zf,hj as Af,ij as Bf,jj as Cf,kj as Df,lj as Ef,mj as Ff,nj as Gf,oj as Hf}from"./chunk-9jbssgem.js";import{Aj as hf,Bj as jf,Cj as kf,Dj as lf,Ej as mf,Fj as nf,Gj as of,Hj as pf,Ij as qf,vj as cf,wj as df,xj as ef,yj as ff,zj as gf}from"./chunk-e4g8wz6t.js";import{Jj as If,Kj as Jf,Lj as Kf,Mj as Lf,Nj as Mf,Oj as Nf,Pj as Of,Qj as Pf,Rj as Qf,Sj as Rf,Tj as Sf,Uj as Tf,Vj as Uf,Wj as Vf}from"./chunk-t2py7vc3.js";import{ok as yr,pk as zr,qk as Ar,rk as Br,sk as Cr,tk as Dr}from"./chunk-vw83y4we.js";import{Ak as Tm,Bk as Um,uk as Pk,vk as Qk,wk as Rk,xk as Sk,yk as Rm,zk as Sm}from"./chunk-v7aa7v85.js";import"./chunk-c0n802j1.js";import"./chunk-tnm0nez5.js";import{ml as ec,nl as fc,rl as gc}from"./chunk-hfvknn03.js";import{tl as bc}from"./chunk-fvsefztj.js";import{$l as Ub,$m as md,$n as Ie,$o as zg,$p as wi,$q as ek,Al as Da,Am as Fc,An as Rd,Ao as Xf,Ap as _g,Aq as ej,Bl as Ea,Bm as Gc,Bn as Sd,Bp as $g,Bq as fj,Cl as Fa,Cm as Hc,Cn as Td,Cp as ah,Cq as gj,Dl as Ga,Dm as Ic,Dn as Ud,Dp as bh,Dq as hj,El as Ha,Em as Jc,En as Vd,Ep as ch,Eq as ij,Fl as Ia,Fm as Kc,Fn as Wd,Fp as dh,Fq as jj,Gl as Ja,Gm as Lc,Gn as Xd,Gp as eh,Gq as kj,Hl as Ka,Hm as Mc,Hn as Yd,Ho as Yf,Hp as fh,Hq as lj,Il as La,Im as Nc,In as Zd,Ip as gh,Iq as mj,Jl as Ma,Jm as Oc,Jn as _d,Jo as Zf,Jp as hi,Jq as nj,Kl as Na,Km as Pc,Kn as $d,Kp as ii,Kq as oj,Ll as Oa,Lm as Zc,Ln as qe,Lo as _f,Lq as pj,Ml as ib,Mm as _c,Mn as re,Mo as $f,Mq as qj,Nl as jb,Nm as $c,Nn as se,No as ag,Np as ji,Nq as rj,Ol as kb,Om as ad,On as te,Oo as bg,Oq as sj,Pl as lb,Pm as bd,Pn as ue,Po as cg,Pq as tj,Ql as mb,Qm as cd,Qn as ve,Qo as og,Qq as uj,Rl as nb,Rm as dd,Rn as we,Ro as pg,Rq as vj,Sn as xe,So as qg,Sq as wj,Tm as ed,Tn as ye,To as rg,Tq as xj,Ul as Kb,Um as fd,Un as ze,Uo as sg,Uq as yj,Vl as Lb,Vm as gd,Vn as Ae,Vo as tg,Vp as ki,Vq as zj,Wl as Mb,Wm as hd,Wn as Be,Wo as ug,Wp as li,Wq as Qj,Xl as Nb,Xm as id,Xn as Ce,Xo as vg,Xp as mi,Xq as Rj,Yl as Ob,Ym as jd,Yn as De,Yo as wg,Yp as ni,Yq as Sj,Zl as Pb,Zm as kd,Zo as xg,Zp as oi,Zq as Tj,_l as Qb,_m as ld,_n as He,_o as yg,_p as vi,_q as Uj,am as Vb,an as nd,ao as Je,ap as Ag,aq as xi,ar as fk,bm as Wb,bn as od,bo as Ke,bp as Bg,bq as yi,br as gk,cm as hc,cn as pd,co as Le,cp as Cg,cq as zi,cr as hk,dm as ic,dn as ud,do as Me,dp as Dg,dq as Ai,dr as ik,em as jc,en as vd,eo as Ne,ep as Eg,eq as Bi,er as jk,fm as kc,fn as wd,fp as Fg,fq as Ci,fr as kk,gm as lc,gn as xd,gp as Gg,gq as Di,gr as lk,hm as mc,hn as yd,hp as Hg,hq as Ei,hr as mk,im as nc,in as zd,io as af,ip as Ig,iq as Fi,ir as nk,jm as oc,jn as Ad,jo as bf,jp as Jg,jq as Gi,jr as ok,km as pc,kn as Bd,kp as Kg,kq as Hi,kr as pk,lm as qc,ln as Cd,lo as Wf,lp as Lg,lq as Ii,lr as qk,mm as rc,mn as Dd,mp as Mg,mq as Ji,mr as rk,nm as sc,nn as Ed,np as Ng,nq as Ki,nr as sk,om as tc,on as Fd,op as Og,oq as Li,or as tk,pm as uc,pn as Gd,pp as Pg,pq as Mi,pr as uk,qm as vc,qn as Hd,qp as Qg,qq as Wi,qr as xk,rm as wc,rn as Id,rp as Rg,rq as Xi,rr as yk,sm as xc,sn as Jd,sp as Sg,sq as Yi,sr as zk,tm as yc,tn as Kd,tp as Tg,tq as Zi,tr as Ak,ul as xa,um as zc,un as Ld,up as Ug,uq as _i,ur as Bk,vl as ya,vm as Ac,vn as Md,vp as Vg,vq as $i,vr as Ck,wl as za,wm as Bc,wn as Nd,wp as Wg,wq as aj,wr as Dk,xl as Aa,xm as Cc,xn as Od,xp as Xg,xq as bj,xr as Ek,yl as Ba,ym as Dc,yn as Pd,yp as Yg,yq as cj,yr as Fk,zl as Ca,zm as Ec,zn as Qd,zp as Zg,zq as dj}from"./chunk-zdq7emrd.js";import{$r as oa,Ar as N,Br as O,Cr as P,Dr as Q,Er as R,Fr as S,Gr as T,Hr as U,Ir as V,Jr as W,Kr as X,Lr as Y,Mr as Z,Nr as _,Or as $,Pr as aa,Qr as ba,Rr as ca,Sr as da,Tr as ea,Ur as fa,Vr as ia,Wr as ja,Xr as ka,Yr as la,Zr as ma,_r as na,as as pa,bs as qa,cs as ra,ds as sa,es as ta,fs as ua,gs as va,hs as wa,zr as M}from"./chunk-8y1ve8tc.js";import{is as ga,js as ha}from"./chunk-njx93b4z.js";import{ks as Rb,ls as Sb,ms as Tb}from"./chunk-bqdfbwdf.js";import"./chunk-89mqnh67.js";import{As as Ui,Bs as Vi,ts as Ni,us as Oi,vs as Pi,ws as Qi,xs as Ri,ys as Si,zs as Ti}from"./chunk-xvh1k1a4.js";import{Ts as Qc,Us as Rc,Vs as Sc,Ws as Tc,Xs as Uc,Zs as Vc,gt as Wc,ht as Xc,it as Yc}from"./chunk-skd72bn4.js";import{jt as Xb,kt as Yb,lt as Zb,mt as _b,nt as $b,ot as ac}from"./chunk-y2f41kaq.js";import{At as Ge,vt as Ee,xt as Fe}from"./chunk-xj6bcwqa.js";import"./chunk-21mmq3aj.js";import{Ft as cc,Gt as dc}from"./chunk-vhta1be7.js";import{Kt as dg,Lt as eg,Mt as fg,Nt as gg,Ot as hg,Pt as ig,Qt as jg,St as kg,Tt as lg,Ut as mg,Vt as ng}from"./chunk-tc4pj651.js";import{Wt as qd,Xt as rd,Yt as sd,Zt as td,hu as ae,iu as be,ju as ce,ku as de,lu as ee,mu as fe,nu as ge,ou as he,pu as ie,qu as je,ru as ke,su as le,tu as me,uu as ne,vu as oe,wu as pe}from"./chunk-san1eq0r.js";import{$u as F,Au as e,Bu as f,Cu as g,Du as h,Eu as i,Fu as j,Gu as k,Hu as l,Iu as m,Ju as n,Ku as o,Lu as p,Mu as q,Nu as r,Ou as s,Pu as t,Qu as u,Ru as v,Su as w,Tu as x,Uu as y,Vu as z,Wu as A,Xu as B,Yu as C,Zu as D,_u as E,av as G,bv as H,cv as I,dv as J,ev as K,fv as L,xu as b,yu as c,zu as d}from"./chunk-avwywzsj.js";import"./chunk-wj21f1e0.js";import"./chunk-d86q27j8.js";import{Av as tb,Bv as ub,Cv as vb,Dv as wb,Ev as xb,Fv as yb,Gv as zb,Hv as Ab,Iv as Bb,Jv as Cb,Kv as Db,Lv as Eb,Mv as Fb,Nv as Gb,Ov as Hb,Pv as Ib,Qv as Jb,vv as ob,wv as pb,xv as qb,yv as rb,zv as sb}from"./chunk-72x62kch.js";import{Uv as Pa,Vv as Qa,Yv as Ra,bw as Sa,cw as Ta,iw as Ua,jw as Va,kw as Wa,lw as Xa,mw as Ya,nw as Za,ow as _a,pw as $a,qw as ab,rw as bb,sw as cb,tw as db,uw as eb,vw as fb,ww as gb,yw as hb}from"./chunk-yg5r7bnm.js";import"./chunk-9nrgjtah.js";import"./chunk-ejqpq0wc.js";export{hl as writeNetlifyConfig,$m as writeManifest,Ml as writeImageManifest,rp as wrapComponentForHMR,_r as withDefaults,uk as webComponentDirectiveHandler,gq as watermark,ir as watchViews,Wl as watchMultiple,Xl as watchEffect,Vl as watch,Le as warmImagePlaceholders,im as waitForStore,X as waitForLocale,dp as virtualPathFor,hk as videoDirective,G as validators,cs as validated,Be as validateValueEnhanced,ki as validateTemplate,Pm as validateRouteRules,lq as validateParams,Ce as validateFormEnhanced,Zq as validateFile,xe as validateFields,we as validateField,mi as validateDirective,Wd as validateCspDirectives,Ck as validateConfig,nn as validateComponentScripts,Ln as validateComponentProps,gh as validateClientScript,fi as v,Hc as usesSignalsInScript,ub as usesReactiveRuntime,Ai as userComponentFileExists,Nh as useVirtualList,ie as useTitle,hm as useStoreOrThrow,Jp as useStore,Tk as useStorage,zf as useSlots,Vk as useSessionStorage,cc as useServerRuntimeConfig,Xf as useServerData,fe as useSeoMeta,dc as useRuntimeConfig,jm as useRouteParams,lm as useRouteParamOrThrow,km as useRouteParam,ie as usePageTitle,qf as useOptimistic,Ef as useModel,nm as useMiddlewareValue,mm as useMiddlewareState,Uk as useLocalStorage,kp as useLoadingIndicator,de as useHead,ci as useForm,Bf as useAttrs,$q as uploadFiles,_q as uploadFile,em as updateInstance,of as untrack,Qi as unregisterDirective,fm as unmountInstance,Pc as unescapeHtml,gp as typecheckStxFiles,yi as transpileTypeScript,Nr as translate,Ba as transitionDirective,lc as transformAutoImports,Fn as toUsers,En as toUser,Rp as thumbnail,Sq as thumbHashToRGBA,Tq as thumbHashToDataURL,wb as templateNeedsRuntime,vb as templateHasReactiveContext,If as templateCache,md as syncRecordedResponse,op as stxClientHelpers,ig as structuredDataDirective,Qr as stripLocalePrefix,Mm as stripDocumentWrapper,Sb as stripCommentsAndLiterals,qo as stringToStream,Kd as strictCspPreset,We as streamingSuspenseDirective,_e as streamToResponse,Ue as streamTemplateSimple,Oe as streamTemplate,Ok as stopHmrServer,Bn as stopBroadcasting,_b as stateDirName,$b as stateDir,cf as state,ah as startsDocument,Lo as startProductionServer,Go as startInteractive,An as startBroadcasting,Sr as stampLocaleLayoutGroup,Ia as staggerDirective,jq as srcsetUrls,Ja as springDirective,td as splitByPipe,Im as spaNavVaryHeaders,ep as sourcePathFor,qq as smartBatchSign,Ci as slotContentHasExpressions,oq as signUrl,wi as shouldTranspileTypeScript,Lk as shouldReloadOnChange,tq as shouldRefreshSignature,Mk as shouldIgnoreFile,Fh as shouldCacheComponent,Vp as sharpen,fs as shape,Zb as setStateDir,rm as setRouteParams,sm as setMiddlewareState,Ke as setImagePlaceholder,tf as setGlobalProvide,b as setErrorLocale,Ol as setCurrentInstance,Xj as setCachedVideoResult,Mj as setCachedImageResult,Gj as setCached,is as serveStxFile,ks as serveMultipleStxFiles,Gk as serveMarkdownFile,Wo as serveFile,ls as serveApp,Vo as serve,up as serializeState,bn as serializeSetCookie,Xp as sepia,ge as seoMetaToHeadConfig,Ca as scrollAnimateDirective,va as screenReaderDirective,zi as scopeOnRootElement,lk as scopeHTML,kk as scopeCSS,lg as scanForSitemapEntries,pa as scanA11yTargets,qa as scanA11yIssues,$p as saturation,mq 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,wg as runPreProcessingMiddleware,xg as runPostProcessingMiddleware,en as runPageAction,jf as runMountCallbacks,gb as runMiddleware,cm as runHooks,Gr as runDoctor,kf as runDestroyCallbacks,Ag as runComposers,aq as rotate,gi as rewriteImagesWithSiblings,nd as responseBindings,Gi as resolveTemplatePath,ha as resolveStxTargets,yk as resolveStxDirectories,Mr as resolveI18n,Pp as resize,og as resetUnscopedSignalWarnings,Nc as resetRejectedExpressionWarnings,sc as resetPlaceholders,ce as resetHead,tp as resetHMRHandler,o as resetErrorConfig,as as required,bg as reportDeferredLoopWarnings,wc as replacePlaceholders,Ec as replaceInterpolations,gr as renderView,ek as renderVideoComponent,ic as renderVendorStyleTags,pr as renderToString,qr as renderToStream,rr as renderToDOM,Rq as renderThumbhashToCanvas,Dr as renderTemplateString,Br as renderTemplate,Cr as renderString,Re as renderStreamingPage,ri as renderSlot,vh as renderSSRSuspense,Bq as renderProtectedVideo,Aq as renderProtectedImg,nq as renderMediaUpload,Ar as renderMarkdownView,Tm as renderLayoutTypes,Qj as renderImgComponent,Cl as renderImageComponent,ke as renderHtmlAttrs,je as renderHead,jr as renderEmail,Ei as renderComponentWithSlot,le as renderBodyAttrs,Ep as render,Md as relaxedCspPreset,ve as registerValidationRule,Ye as registerStreamingDirectives,Lp as registerStoresClient,pm as registerStore,Qf as registerServeModuleBundle,jg as registerSeoDirectives,_a as registerMiddleware,Ac as registerFilters,zc as registerFilter,d as registerErrorMessages,Ae as registerEnhancedValidationRule,Ni as registerDirective,Vd as registerCspDirectives,On as registerComponentDirectives,Oa as registerAnimationDirectives,wa as registerA11yDirectives,mc as referencesName,Sl as ref,yo as redirect,id as recordResponseStatus,jd as recordResponseHeader,ac as rebaseOntoStateDir,kd as readResponseStatus,ld as readResponseHeaders,Ek as readMarkdownFile,Jf as readFileCached,Tl as reactive,eq as quality,yq as pruneSignatureCache,Jj as pruneCache,rf as provide,zr as protectCodeBlocks,$r as prop,Dg as processVueTemplate,Lh as processVirtualListDirectives,Ph as processVirtualGridDirectives,dk as processVideo,ye as processValidateDirective,ea as processTranslateDirective,ph as processTransitionDirectives,sh as processTransitionAttributes,oe as processTitleDirective,ad as processTemplateBindings,lh as processTeleportDirectives,th as processSuspenseDirectives,eg as processStructuredData,Se as processStreamDirectives,od as processStatusDirective,ai as processStaticDirectives,ug as processStackReplacements,tg as processStackPushDirectives,si as processSlots,Km as processShell,Ne as processServerBindings,fg as processSeoDirective,Ze as processSectionDirectives,Uc as processScopedStyles,_c as processReactiveBindings,Cq as processProtectedMedia,Vh as processPartialHydrationDirectives,fh as processOnceDirective,vg as processMiddleware,dg as processMetaDirectives,pe as processMetaDirective,Fk as processMarkdownFileDirectives,Li as processMarkdownDirectives,cg as processLoops,Dh as processKeepAliveDirectives,eh as processJsonDirective,Oh as processInfiniteListDirectives,sg as processIncludes,Sj as processImgComponents,El as processImageComponents,rl as processImage,ne as processHeadDirective,re as processForms,te as processFormInputDirectives,Lc as processExpressions,Pb as processEventDirectives,ue as processErrorDirective,Eg as processDynamicComponents,hi as processDirectives,Vi as processDirectiveAttributes,kh as processDeferDirectives,_d as processCustomDirectives,Sd as processCspDirectives,gs as processComponentProps,rc as processClientScript,se as processBasicFormDirectives,yh as processAsyncDirectives,$d as processAppearanceBootstrapDirective,Fa as processAnimationDirectives,ka as processA11yDirectives,Ge as prepareImageDelivery,T as preloadTranslationsBackground,S as preloadTranslations,jp as preloadIslandHandlers,Me as preloadIconCollection,wn as poolStrings,wk as pluginManager,Ie as placeholdersWarmed,oh as performLeave,nh as performEnter,lf as pendingLifecycleCounts,pf as peek,pg as partialsCache,fk as parseVideoDirectiveOptions,Np as parseUrl,Uq as parseThumbhashString,zd as parseSwitchBlock,pi as parseSlots,qi as parseSlotElement,Ed as parseScriptDeclarations,sk as parseSFCComponent,Dq as parseProtectedArgs,ag as parseLoopBinding,Rj as parseImgComponent,hj as parseImageUrl,Dl as parseImageComponent,cn as parseFormBody,Bd as parseExpressionWithFilters,Pn as parseDefaults,vo as parseCookies,Bm as parseContainerSelector,wd as parseConditionalBlock,Cd as parseArguments,Ma as parseAnimationShorthand,bs as optional,xn as optimizeTemplate,Jl as optimizeImage,Kl as optimizeDirectory,ds as oneOf,qg as onceStore,$l as onUpdated,Zc as onUpdate,bm as onUnmounted,wm as onServer,Zl as onMounted,gf as onMount,$h as onHydrated,xf as onErrorCaptured,hf as onDestroy,Jh as onDeactivated,vm as onClient,_l as onBeforeUpdate,am as onBeforeUnmount,Yl as onBeforeMount,Ih as onActivated,Nq as observeElement,zo as notFound,Jg as normalizeCriticalHeadOrder,wf as nextTick,Sn as negotiateEncoding,Ua as navigateTo,dm as mountInstance,Ea as motionDirective,Ld as moderateCspPreset,vn as minifyHtml,hg as metaDirective,Ug as metaDedupKey,Op as mergeParams,Wg as mergeHtmlAttrs,ee as mergeHeadConfigs,Rc as mergeCssConfig,Pd as mergeCspDirectives,Ra as matchRoute,Mi as markdownDirectiveHandler,Dk as markdownCache,ga as looksLikeGlob,Pr as localizePath,U as loadTranslationLazy,_ as loadTranslation,zk as loadStxConfig,db as loadMiddlewareFromDirectory,an as loadManifest,Jq as loadElement,Cn as loadChannels,Lb as listensPassively,Wr as lintStxStrict,Lq as lazyLoadAll,Kq as lazyLoad,Ha as keyframeDirective,nr as jsxs,or as jsxDEV,mr as jsx,xo as jsonResponse,Xe as islandDirective,l as isTest,Nm as isSpaNavigation,Gm as isSpaNavRequest,rq as isSignatureValid,mf as isSignal,pl as isSharpAvailable,jo as isServerEnvironment,tm as isServer,yb as isRuntimeOwnedColonAttr,Hb as isRuntimeEventName,da as isRtlLocale,j as isProduction,ia as isPresentationalRole,Gq as isNativeLazySupported,yr as isMarkdownPath,Q as isLoading,R as isLoaded,vi as isJavaScriptScript,Hq as isIntersectionObserverSupported,xl as isImageFile,ql as isImageBackendAvailable,aa as isICUFormat,_h as isHydrated,Bi as isHydrateTrigger,gd as isHttpStatus,io as isEdgeEnvironment,Xr as isDirectiveKind,k as isDevelopment,nf as isDerived,Kk as isCssOnlyChange,Rn as isCompressible,um as isClient,Ah as isAsyncComponent,dn as isActionableMethod,Yp as invert,Lf as invalidateFileCacheByDir,Kf as invalidateFileCache,Kc as interpolateScriptsInTemplate,Ic as interpolateScriptExpressions,Jc as interpolateScriptAttributes,x as inlineError,Lr as injectThemeBootstrap,gg as injectSeoTags,Ir as injectSeo,Wf as injectRouterScript,Jk as injectHotReload,kb as injectHeatmap,Yc as injectCss,Qd as injectCspMetaTag,ch as injectConfigHeadTags,Ig as injectColorModeBootScript,Yg as injectCloakStyle,Pg as injectBuildId,kc as injectBrowserCoreAutoImports,cd as injectAnalytics,sf as inject,om as initStoreRegistry,kl as initNetlify,lp as initLoadingIndicator,Iq as initLazyLoading,Fo as initFile,Qq as initBlurUp,Wq as initAllBlurUp,Uj as imgDirective,Hl as imageDirective,hn as hydrateTemplateStream,gn as hydrateTemplate,ip as hydrateIslands,Xh as hydrateIsland,jn as hydrateFragment,Yh as hydrateByStrategy,Zh as hydrateAll,Bp as hydrate,Uo as htmlResponse,_g as hoistLeadingHeadTags,Kg as hoistColorModeBootScript,lb as heatmapDirective,Cj as hashString,Vf as hashFilePath,Aj as hashFile,Bj as hashBuffer,Cg as hasVueTemplateSyntax,$f as hasVariables,Gp as hasStore,xc as hasPlaceholders,il as hasNetlifyConfig,ab as hasMiddleware,Qb as hasEventDirectives,bh as hasDocumentShell,ni as hasDirectives,ma as hasDOMSupport,Al as handleImageRequest,yf as handleError,vr as h,wl as groupVariantsByFormat,Wp as grayscale,No as gitHash,pn as getUnusedDirectives,V as getTranslationSync,O as getTranslationCacheStats,W as getTranslationAsync,ba as getTranslation,dl as getTotalSize,sq as getTimeUntilExpiry,hh as getStoreScript,Hp as getStoreNames,Fp as getStore,Yk as getStorageSize,Xk as getStorageKeys,Hi as getSourceLineInfo,xi as getSharedTranspiler,Rf as getServeModuleBundle,Pf as getServeClientAsset,la as getScreenReaderOnlyStyle,mk as getScopeAttribute,bf as getRouteParams,Vb as getPublicEnvDefine,Wb as getPublicEnv,li as getPositionInfo,uc as getPlaceholderRegistry,zj as getPlaceholderCacheStats,be as getPageMeta,Gd as getNonce,yl as getMimeType,cb as getMiddlewareNames,$a as getMiddleware,ca as getLocaleDirection,P as getLoadingState,Y as getLoadingLocales,He as getImagePlaceholder,sl as getImageMetadata,Ee as getImageDelivery,Ap as getHydrationRuntime,qm as getHydratedStoreState,Nk as getHmrServer,ae as getHead,sp as getHMRHandler,lj as getFormatExtension,Ej as getFileMtime,vl as getFallbackVariant,f as getErrorMessage,c as getErrorLocale,n as getErrorConfig,i as getErrorCodeName,Pi as getDirectives,Oi as getDirective,Pl as getCurrentInstance,Vc as getCssServeAsset,Od as getCspPreset,Xd as getCspHeaderName,Ki as getComponentCacheStats,Wj as getCachedVideoResult,wq as getCachedSignature,Nf as getCachedSignalsRuntime,Of as getCachedRouterScript,xj as getCachedPlaceholder,Lj as getCachedImageResult,Fj as getCached,Ij as getCacheStats,Ng as getBuildId,zn as getBroadcastServer,kj as getBestVariant,Bc as getAllFilters,_i as generateWidthSrcset,Mh as generateVirtualListCSS,br as generateVideoPreview,De as generateValidationScript,cr as generateUploadRuntime,qn as generateTreeShakenBundle,rh as generateTransitionRuntime,qh as generateTransitionCSS,_j as generateThumbnails,qj as generateThumbhashPlaceholder,$n as generateTemplatesDocs,xh as generateSuspenseRuntime,wh as generateSuspenseCSS,vp as generateStateScript,ij as generateSrcsetData,Pj as generateSrcset,tl as generateSrcSet,$j as generateSpriteSheet,kr as generateSpaShell,jj as generateSourceTags,ej as generateSizesFromBreakpoints,dj as generateSizesAttribute,ul as generateSizes,kg as generateSitemapIndex,Jr as generateSitemap,Fq as generateSimpleMediaPicker,zq as generateSignatureRuntime,Hf as generateSignalsRuntimeDev,Gf as generateSignalsRuntime,qc as generateServerDataBridge,jk as generateScopeId,tk as generateSFCWebComponent,Nb as generateRuntimeScript,Pa as generateRouteTypes,Qa as generateRouteManifest,mg as generateRobotsTxt,Kr as generateRobots,Oj as generateResponsiveVariants,pk as generateReactiveWebComponentTS,ok as generateReactiveWebComponent,rk as generateReactiveRuntime,qk as generateReactiveMixin,Zj as generatePoster,wj as generatePlaceholderStyle,vj as generatePlaceholderCSS,pj as generatePlaceholder,Wh as generatePartialHydrationCSS,Fd as generateNonce,el as generateNetlifyToml,er as generateMinifiedMediaRuntime,dr as generateMediaRuntime,Eq as generateMediaManagerEmbed,_m as generateManifest,np as generateLoadingIndicatorHtml,Pq as generateLazyLoadRuntime,Um as generateLayoutTypes,sj as generateLQIP,Hh as generateKeepAliveRuntime,Gh as generateKeepAliveCSS,bi as generateIslandManifest,ar as generateImagePreview,Ll as generateImageManifest,zp as generateHydrationScript,$e as generateHydrationRuntime,Cp as generateHydrationCSS,Qh as generateHydrationBootstrap,Ik as generateHotReloadScript,jb as generateHeatmapScript,qp as generateHMRClientScript,ak as generateHLSManifest,wp as generateEventBindings,cj as generateDprSrcsetWithVariableQuality,bj as generateDprSrcset,$g as generateDocumentShell,fo as generateDocs,ao as generateDirectivesDocs,Ui as generateDirectiveRuntime,ng as generateDefaultRobotsTxt,bk as generateDASHManifest,Xc as generateCss,Jd as generateCspMetaTag,Id as generateCspHeader,Df as generateCompositionRuntime,_n as generateComponentsDocs,Rh as generateComponentManifest,Yn as generateComponentDoc,uj as generateColorPlaceholder,Hg as generateColorModeBootScript,gm as generateClientRuntime,Dj as generateCacheKey,oc as generateBrowserAutoImportDestructuring,Xq as generateBlurUpRuntime,Yq as generateBlurUpCSS,$c as generateBindingsRuntime,$i as generateAutoWidthSrcset,nc as generateAutoImportDestructuring,Ch as generateAsyncComponentRuntime,Bh as generateAsyncComponentCSS,fc as generateApiTypes,Na as generateAnimationRuntime,La as generateAnimationCSS,bd as generateAnalyticsScript,hp as formatTypecheckDiagnostics,bp as formatTypeErrors,Co as formatStxContent,cl as formatSize,Ta as formatRoutes,Do as formatMarkdownContent,g as formatLocalizedError,$ as formatICU,p as formatFilePath,w as formatError,Hr as formatDoctorReport,bo as formatDocsAsMarkdown,eo as formatDocsAsJson,co as formatDocsAsHtml,dq as format,un as foldConstants,cq as flipVertical,bq as flipHorizontal,Vm as fingerprint,fp as findRuntimeTypeDeclarations,Fr as findPantryPackage,Dc as findMustacheEnd,vd as findMatchingEndTag,rd as findMatchingDelimiter,Rb as findInterpolationEnd,xd as findIfBlocks,Ad as findExpressions,Sa as findErrorPage,Sc as findDuplicateScopedStyleRanges,yd as findDirectiveBlocks,rn as findDeadCode,rn as findDeadBranches,Cm as findContainerRegion,Zn as findComponentFiles,js as findCommonDir,bl as filterRequiredFiles,Fi as fileExists,Yf as extractVariables,ji as extractTemplateExpressions,Te as extractStreamBoundaries,xp as extractState,ti as extractSlotContent,_f as extractScriptFromTemplate,ii as extractScriptBlocks,vc as extractPlaceholders,ud as extractParenthesizedExpression,hd as extractPageResponseStatus,hb as extractLayoutMetadata,tj as extractDominantColor,Dd as extractDirectiveParams,oi as extractDirectiveNames,Om as extractContainerContent,Wn as extractComponentProps,Sh as extractComponentName,Xn as extractComponentDescription,Wc as extractClassNames,pc as extractBridgeData,Th as extractBoundProps,sd as extractBalancedExpression,hc as extractAndStripCssImports,nk as extractAndScopeStyles,Ob as extractAndProcessEvents,Rk as externalizeSharedAssets,Sk as externalizeRepeatedAssets,Qk as externalizeHtml,Oc as evaluateExpression,tn as evaluateConstant,pd as evaluateAuthExpression,Gc as escapeHtmlValue,Fc as escapeHtml,C as errorRecovery,E as errorLogger,mh as ensureTeleportTargets,dh as ensureDocumentShell,ze as enhancedValidationRules,Un as enableDevTools,sn as eliminateDeadCode,ef as effect,kq as dprUrls,go as docsCommand,ec as discoverServerApi,Sm as discoverLayoutNames,Oq as disconnectObserver,Vn as disableDevTools,F as devHelpers,Jm as detectShell,ho as detectRuntime,fl as detectProjectConfig,mj as detectFormat,mn as detectBuildMode,df as derived,jl as deploy,Bk as defineStxConfig,Kp as defineStore,Af as defineSlots,Vr as defineSiteConfig,Zr as definePropsWithValidation,Yr as defineProps,vk as definePlugin,he as definePageMeta,Wa as defineMiddleware,di as defineForm,vf as defineExpose,uf as defineEmits,Ri as defineDirective,xr as defineCustomElement,Ko as defineConfig,Si as defineClientDirective,zh as defineAsyncComponent,Mo as defineApiHandler,fr as defaultMediaConfig,Nl as defaultImageConfig,M as defaultI18nConfig,ib as defaultHeatmapConfig,qe as defaultFormClasses,yc as defaultFilters,Zd as defaultCspConfig,xk as defaultConfig,hs as default,Qc as deepMergeThemes,Tc as dedupeScopedStyles,Fm as decodeTitleEntities,rj as decodeThumbhash,Ud as cspNonceDirective,Td as cspDirective,Vq as crossfadeTransition,Qp as crop,Kh as createVirtualList,gk as createVideoDirective,to as createVercelHandler,_o as createTypeChecker,fa as createTranslateFilter,po as createTextEncoderStream,wr as createStxApp,oo as createStreamingResponse,Ve as createStreamRenderer,Ip as createStore,Za as createStorageManager,Xa as createServerCookieManager,gc as createServerApi,Rl as createScope,uh as createSSRSuspense,af as createRouter,Qm as createRouteRuleResolver,eb as createRouteLocation,Yo as createRoute,Sl as createRef,Tl as createReactive,Cf as createProvideContext,Po as createProject,Jo as createProductionBuild,tc as createPlaceholder,yn as createOptimizedBuild,uo as createNetlifyHandler,Zk as createNetlifyClient,fb as createMiddlewareContext,Xo as createMiddleware,Mq as createLazyObserver,Eh as createKeepAliveCache,lo as createKVNamespace,Uh as createIslandRegistry,Tj as createImgDirective,Il as createImagePlugin,Bl as createImageHandler,Gl as createImageDirective,nb as createHeatmapAggregator,al as createFileManifest,ko as createEnvAccessor,z as createEnhancedError,no as createEdgeHandler,mo as createEdgeCache,Ii as createDetailedErrorMessage,so as createDenoHandler,gl as createDefaultNetlifyConfig,Yd as createCspHeaders,wo as createCookie,Ul as createComputed,Ql as createComponentInstance,ro as createCloudflareHandler,Ya as createClientCookieManager,Ti as createBuiltinDirectives,wr as createApp,Ka as createAnimationTimeline,Tp as cover,Zf as convertToCommonJS,_p as contrast,Sp as contain,y as consoleError,m as configureErrorHandling,Ak as config,Ul as computed,Tn as compressResponse,zg as composerPattern,yg as composer,Lm as composeShellWithPage,Nn as componentDirective,Di as componentClientSignalNames,Zm as compileTemplate,a as collectRepeatedFlag,$k as collectDeployFiles,Zg as cloakStyleFragment,Yj as clearVideoCache,N as clearTranslationCache,ih as clearStoreCache,Wk as clearStorage,xq as clearSignatureCache,Ff as clearServerData,yj as clearPlaceholderCache,rg as clearOnceStore,Hd as clearNonce,bb as clearMiddleware,Je as clearImagePlaceholders,Fe as clearImageDeliveryCatalog,Fl as clearImageCache,e as clearErrorMessages,Sf as clearDevCaches,Cc as clearCustomFilters,Bg as clearComposers,jh as clearComposableCache,Ji as clearComponentCache,Hj as clearCache,Ib as clearBlankCache,mp as cleanupLoadingIndicator,zm as classifyScript,Am as classifyAllScripts,$o as checkTemplateFile,ap as checkTemplate,Tf as checkCache,uq as checkAuthAccess,na as checkA11yWithRegex,oa as checkA11y,In as channel,Bo as captureScreenshots,Ao as captureScreenshot,Z as cancelPendingLoads,_k as calculateSha1,aj as calculateOptimalWidths,Uf as cacheTemplate,bc as cacheEngineFingerprint,ik as buildWebComponents,cp as buildVirtualSource,hr as buildViews,Mp as buildUrl,Pe as buildSuspenseResolveScript,Ur as buildStaticSite,qb as buildRuntimeGlobalsDestructure,Wm as buildRuntimeAsset,Xm as buildRouterAsset,Tr as buildLangPickerScript,gj as buildImageUrl,Qg as buildIdFragment,Vg as buildHtmlAttrs,kn as buildForProduction,Qn as buildComponentLibrary,vq as buildAuthParams,ln as buildApp,Rr as buildAlternateLinks,Io as build,Gn as broadcastPrivate,Hn as broadcastPresence,Dn as broadcast,Zp as brightness,Tb as bracketDepths,Up as blur,Jb as blankInertHtmlRegions,pq as batchSignUrls,ff as batch,sa as autoFixA11yFile,ta as autoFixA11yDirectory,ra as autoFixA11y,fq as auto,ja as attributeValue,Ym as assetTags,Mb as asInvocableStatement,es as arrayOf,Or as applyTranslations,Nj as applyTransformations,ui as applySlots,Mn as applyPropDefaults,iq as applyPreset,Xg as applyHtmlAttrs,me as applyHead,Mc as applyFilters,Hm as appendVary,Nd as apiCspPreset,Da as animationGroupDirective,ck as analyzeVideo,on as analyzeUsage,xm as analyzeTemplate,ym as analyzeProject,on as analyzeDirectiveUsage,dd as analyticsDirective,So as addStore,Ro as addPage,Rd as addNonceToInlineContent,To as addLayout,Qo as addComponent,fn as actionRedirectResponse,Va as abortNavigation,ua as a11yDirective,Mf as __setSignalsGeneratorsForTest,Og as __setBuildIdForTest,Vj as VideoProcessorCache,ei as Validator,xa as TransitionType,za as TransitionEase,ya as TransitionDirection,qd as Tokenizer,Zo as TemplateTypeChecker,Eo as TEMPLATE_PRESETS,v as StxValidationError,r as StxSyntaxError,t as StxSecurityError,s as StxRuntimeError,u as StxFileError,q as StxError,sr as Show,Qe as SUSPENSE_RESOLVER_RUNTIME,ob as STX_RUNTIME_GLOBALS,jc as STX_AUTO_IMPORTS,Yb as STATE_DIR_ENV_VAR,Ga as SPRING_PRESETS,Dm 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,ed as RESPONSE_STATUS_KEY,fd as RESPONSE_HEADERS_KEY,tb as REACTIVE_RUNTIME_GLOBALS,Ho as ProductionBuild,ur as Portal,Oo as PROJECT_TEMPLATES,hq as PRESETS,sb as NON_CLIENT_PRIMITIVES,Dp as MemorySessionStore,Zi as MIME_TYPES,Wi as MEDIA_DEFAULT_WIDTHS,Yi as MEDIA_DEFAULT_FORMATS,Rm as LAYOUT_TYPES_FILE,Kj as ImageProcessorCache,zl as ImageProcessingError,yp as HydrationRuntime,Hk as HotReloadServer,mb as HeatmapAggregator,Tg as HTML_CLASS_MARKER,Sg as HTML_ATTRS_MARKER,lr as Fragment,tr as For,Em as FRAGMENT_CACHE_CONTROL,D as ErrorLogger,h as ErrorCodes,Pk as EXTERNALIZED_ASSET_DIR,ll as DeployError,ml as DEFAULT_WIDTHS,Aa as DEFAULT_TRANSITION_OPTIONS,Xb as DEFAULT_STATE_DIR,ol as DEFAULT_QUALITY,nj as DEFAULT_PLACEHOLDER_OPTIONS,nl as DEFAULT_FORMATS,Xi as DEFAULT_DPR_VALUES,pp as ComponentHMRHandler,pb as COMPONENT_SCOPE_LOCAL_GLOBALS,Bb as COMPONENT_PASSTHROUGH_X_ATTRS,rb as COMPILE_TIME_ONLY_GLOBALS,fj as COMMON_SIZES,Fg as COLOR_MODE_BOOT_MARKER,Gg as COLOR_MODE_BOOT_GLOBAL,Rg as CLOAK_STYLE,Kn as BroadcastServer,Jn as Broadcast,Lg as BUILD_ID_META,Mg as BUILD_ID_HEADER,Ub as BROWSER_CORE_IMPORTS,oj as BLUR_UP_CSS,Ab as ALPINE_BRIDGE_X_ATTRS,Er as $path};
2
+ import{$ as jm,$a as mo,$b as wp,$c as wq,$d as wr,A as Vk,Aa as xn,Ab as Ro,Ac as Xp,Ad as Xq,Ae as bs,B as Wk,Ba as yn,Bb as So,Bc as Yp,Bd as Yq,Be as cs,C as Xk,Ca as Ln,Cb as To,Cc as Zp,Cd as Zq,Ce as ds,D as Yk,Da as Mn,Db as Uo,Dc as _p,Dd as _q,De as es,E as Ol,Ea as Nn,Eb as Vo,Ec as $p,Ed as $q,Ee as fs,F as Pl,Fa as On,Fb as Wo,Fc as aq,Fd as ar,Fe as gs,G as Ql,Ga as Pn,Gb as Xo,Gc as bq,Gd as br,Ge as hs,H as Rl,Ha as Qn,Hb as Yo,Hc as cq,Hd as cr,He as is,I as Sl,Ia as Un,Ib as Zo,Ic as dq,Id as dr,Ie as js,J as Tl,Ja as Vn,Jb as _o,Jc as eq,Jd as er,Je as ks,K as Ul,Ka as Wn,Kb as $o,Kc as fq,Kd as fr,Ke as ls,L as Vl,La as Xn,Lb as ap,Lc as gq,Ld as gr,M as Wl,Ma as Yn,Mb as bp,Mc as hq,Md as hr,N as Xl,Na as Zn,Nb as ip,Nc as iq,Nd as ir,O as Yl,Oa as _n,Ob as jp,Oc as jq,Od as jr,P as Zl,Pa as $n,Pb as kp,Pc as kq,Pd as kr,Q as _l,Qa as ao,Qb as lp,Qc as lq,Qd as lr,R as $l,Ra as bo,Rb as mp,Rc as mq,Rd as mr,S as am,Sa as co,Sb as np,Sc as nq,Sd as nr,T as bm,Ta as eo,Tb as op,Tc as oq,Td as or,U as cm,Ua as fo,Ub as pp,Uc as pq,Ud as pr,V as dm,Va as go,Vb as qp,Vc as qq,Vd as qr,W as em,Wa as ho,Wb as rp,Wc as rq,Wd as rr,X as fm,Xa as io,Xb as sp,Xc as sq,Xd as sr,Y as gm,Ya as jo,Yb as tp,Yc as tq,Yd as tr,Z as hm,Za as ko,Zb as up,Zc as uq,Zd as ur,_ as im,_a as lo,_b as vp,_c as vq,_d as vr,aa as km,ab as no,ac as xp,ad as xq,ae as xr,ba as lm,bb as oo,bc as yp,bd as yq,be as Er,ca as mm,cb as po,cc as zp,cd as zq,ce as Fr,da as nm,db as qo,dc as Ap,dd as Aq,de as Gr,ea as om,eb as ro,ec as Bp,ed as Bq,ee as Hr,fa as pm,fb as so,fc as Cp,fd as Cq,fe as Ir,ga as qm,gb as to,gc as Dp,gd as Dq,ge as Jr,ha as rm,hb as uo,hc as Ep,hd as Eq,he as Kr,ia as sm,ib as vo,ic as Fp,id as Fq,ie as Lr,ja as tm,jb as wo,jc as Gp,jd as Gq,je as Mr,ka as um,kb as xo,kc as Hp,kd as Hq,ke as Nr,la as vm,lb as yo,lc as Ip,ld as Iq,le as Or,ma as wm,mb as zo,mc as Jp,md as Jq,me as Pr,na as xm,nb as Co,nc as Kp,nd as Kq,ne as Qr,o as a,oa as ym,ob as Do,oc as Lp,od as Lq,oe as Rr,p as Gk,pa as mn,pb as Eo,pc as Mp,pd as Mq,pe as Sr,q as Hk,qa as nn,qb as Fo,qc as Np,qd as Nq,qe as Tr,r as Ik,ra as on,rb as Ho,rc as Op,rd as Oq,re as Ur,s as Jk,sa as pn,sb as Io,sc as Pp,sd as Pq,se as Vr,t as Kk,ta as qn,tb as Jo,tc as Qp,td as Qq,te as Wr,u as Lk,ua as rn,ub as Ko,uc as Rp,ud as Rq,ue as Xr,v as Mk,va as sn,vb as Mo,vc as Sp,vd as Sq,ve as Yr,w as Nk,wa as tn,wb as No,wc as Tp,wd as Tq,we as Zr,x as Ok,xa as un,xb as Oo,xc as Up,xd as Uq,xe as _r,y as Tk,ya as vn,yb as Po,yc as Vp,yd as Vq,ye as $r,z as Uk,za as wn,zb as Qo,zc as Wp,zd as Wq,ze as as}from"./chunk-c33jgh9n.js";import{Le as cp,Me as dp,Ne as ep,Oe as fp,Pe as gp,Qe as hp}from"./chunk-vneewh3d.js";import{Re as Ao,Se as Bo}from"./chunk-2ver2s2y.js";import{Te as Go}from"./chunk-72x80y39.js";import{Ue as ln}from"./chunk-hxta7f82.js";import{Ve as Rn,We as Sn,Xe as Tn,Ye as Lo}from"./chunk-fb4gkrcw.js";import{$e as $k,Ze as Zk,_e as _k,af as al,bf as bl,cf as cl,df as dl,ef as el,ff as fl,gf as gl,hf as hl,if as il,jf as jl,kf as kl,lf as ll}from"./chunk-ym3r8ktq.js";import{mf as Cl,nf as Dl,of as El,pf as Fl,qf as Gl,rf as Hl,sf as Il,tf as Jl,uf as Kl,vf as Ll,wf as Ml,xf as Nl}from"./chunk-msywnv5n.js";import{yf as Al,zf as Bl}from"./chunk-b5hank5e.js";import{Af as ml,Bf as nl,Cf as ol,Df as pl,Ef as ql,Ff as rl,Gf as sl,If as tl,Jf as ul,Kf as vl,Lf as wl,Mf as xl,Nf as yl,Qf as zl}from"./chunk-7qp3zphs.js";import{Rf as Vm,Sf as Wm,Tf as Xm,Uf as Ym,Vf as Zm,Wf as kn}from"./chunk-cj5t2xsa.js";import{$f as Dm,Xf as zm,Yf as Am,Zf as Bm,_f as Cm,ag as Em,bg as Fm,cg as Gm,dg as Hm,eg as Im,fg as Jm,gg as Km,hg as Lm,ig as Mm,jg as Nm,kg as Om,lg as _m,mg as $m,ng as an,og as bn,pg as cn,qg as dn,rg as en,sg as fn,tg as gn,ug as hn,vg as jn}from"./chunk-pbt6f8gv.js";import{wg as Pm,xg as Qm}from"./chunk-57atgbyq.js";import{Ag as Bn,Bg as Cn,Cg as Dn,Dg as En,Eg as Fn,Fg as Gn,Gg as Hn,Hg as In,Ig as Jn,Jg as Kn,yg as zn,zg as An}from"./chunk-8bxtvsgm.js";import{Kg as pi,Lg as qi,Mg as ri,Ng as si,Og as ti,Pg as ui}from"./chunk-pw32a3x9.js";import{Qg as Kj,Rg as Lj,Sg as Mj,Wg as Nj,Xg as Oj,Yg as Pj}from"./chunk-rwwfzkz4.js";import{$g as Xj,Zg as Vj,_g as Wj,ah as Yj,bh as Zj,ch as _j,dh as $j,eh as ak,fh as bk,gh as ck,hh as dk}from"./chunk-7h9fajgs.js";import{ih as Aj,jh as Bj,kh as Cj,lh as Dj,mh as Ej,oh as Fj,ph as Gj,qh as Hj,rh as Ij,sh as Jj}from"./chunk-18018jkn.js";import{th as vk,vh as wk}from"./chunk-sqvqwd0p.js";import{Bh as Kh,Ch as Lh,Dh as Mh,Eh as Nh,Fh as Oh,Gh as Ph}from"./chunk-7r9vgzg4.js";import{Ih as Qh,Jh as Rh,Kh as Sh,Lh as Th,Mh as Uh,Nh as Vh,Oh as Wh,Ph as Xh,Qh as Yh,Rh as Zh,Sh as _h,Th as $h,Uh as ai,Vh as bi}from"./chunk-a959m68j.js";import{Xh as ci,Yh as di,Zh as ei,_h as fi}from"./chunk-1vb2rj09.js";import{di as gi}from"./chunk-g6czgcg4.js";import{gi as jh}from"./chunk-e1y8m2yp.js";import{hi as kh}from"./chunk-1z1efvtw.js";import{ii as lh,ji as mh}from"./chunk-vgfd9582.js";import{ki as nh,li as oh,mi as ph,ni as qh,oi as rh,pi as sh}from"./chunk-qsbjtp60.js";import{qi as th,ri as uh,si as vh,ti as wh,ui as xh}from"./chunk-nf7k53ap.js";import{vi as yh,wi as zh,xi as Ah,yi as Bh,zi as Ch}from"./chunk-zk6ghjnj.js";import{Ai as Dh,Bi as Eh,Ci as Fh,Di as Gh,Ei as Hh,Fi as Ih,Gi as Jh}from"./chunk-bgrkxzr7.js";import{Hi as hh,Ii as ih}from"./chunk-zrjbge6f.js";import"./chunk-7we3xfde.js";import{Mi as Oe,Ni as Pe,Oi as Qe,Pi as Re,Qi as Se,Ri as Te,Si as Ue,Ti as Ve,Ui as We,Vi as Xe,Wi as Ye,Xi as Ze,Yi as _e,Zi as $e}from"./chunk-5md1ycw2.js";import{$i as sf,_i as rf,aj as tf,bj as uf,cj as vf,dj as wf,ej as xf,fj as yf,gj as zf,hj as Af,ij as Bf,jj as Cf,kj as Df,lj as Ef,mj as Ff,nj as Gf,oj as Hf}from"./chunk-8m0g0h4x.js";import{Aj as hf,Bj as jf,Cj as kf,Dj as lf,Ej as mf,Fj as nf,Gj as of,Hj as pf,Ij as qf,vj as cf,wj as df,xj as ef,yj as ff,zj as gf}from"./chunk-e4g8wz6t.js";import{Jj as If,Kj as Jf,Lj as Kf,Mj as Lf,Nj as Mf,Oj as Nf,Pj as Of,Qj as Pf,Rj as Qf,Sj as Rf,Tj as Sf,Uj as Tf,Vj as Uf,Wj as Vf}from"./chunk-zwkkgham.js";import{ok as yr,pk as zr,qk as Ar,rk as Br,sk as Cr,tk as Dr}from"./chunk-djrrczet.js";import{Ak as Tm,Bk as Um,uk as Pk,vk as Qk,wk as Rk,xk as Sk,yk as Rm,zk as Sm}from"./chunk-p3p4d6g1.js";import"./chunk-c0n802j1.js";import"./chunk-pjg5v73e.js";import{ml as ec,nl as fc,rl as gc}from"./chunk-t255mdy2.js";import{tl as bc}from"./chunk-fvsefztj.js";import{$l as Ub,$m as md,$n as Ie,$o as zg,$p as wi,$q as ek,Al as Da,Am as Fc,An as Rd,Ao as Xf,Ap as _g,Aq as ej,Bl as Ea,Bm as Gc,Bn as Sd,Bp as $g,Bq as fj,Cl as Fa,Cm as Hc,Cn as Td,Cp as ah,Cq as gj,Dl as Ga,Dm as Ic,Dn as Ud,Dp as bh,Dq as hj,El as Ha,Em as Jc,En as Vd,Ep as ch,Eq as ij,Fl as Ia,Fm as Kc,Fn as Wd,Fp as dh,Fq as jj,Gl as Ja,Gm as Lc,Gn as Xd,Gp as eh,Gq as kj,Hl as Ka,Hm as Mc,Hn as Yd,Ho as Yf,Hp as fh,Hq as lj,Il as La,Im as Nc,In as Zd,Ip as gh,Iq as mj,Jl as Ma,Jm as Oc,Jn as _d,Jo as Zf,Jp as hi,Jq as nj,Kl as Na,Km as Pc,Kn as $d,Kp as ii,Kq as oj,Ll as Oa,Lm as Zc,Ln as qe,Lo as _f,Lq as pj,Ml as ib,Mm as _c,Mn as re,Mo as $f,Mq as qj,Nl as jb,Nm as $c,Nn as se,No as ag,Np as ji,Nq as rj,Ol as kb,Om as ad,On as te,Oo as bg,Oq as sj,Pl as lb,Pm as bd,Pn as ue,Po as cg,Pq as tj,Ql as mb,Qm as cd,Qn as ve,Qo as og,Qq as uj,Rl as nb,Rm as dd,Rn as we,Ro as pg,Rq as vj,Sn as xe,So as qg,Sq as wj,Tm as ed,Tn as ye,To as rg,Tq as xj,Ul as Kb,Um as fd,Un as ze,Uo as sg,Uq as yj,Vl as Lb,Vm as gd,Vn as Ae,Vo as tg,Vp as ki,Vq as zj,Wl as Mb,Wm as hd,Wn as Be,Wo as ug,Wp as li,Wq as Qj,Xl as Nb,Xm as id,Xn as Ce,Xo as vg,Xp as mi,Xq as Rj,Yl as Ob,Ym as jd,Yn as De,Yo as wg,Yp as ni,Yq as Sj,Zl as Pb,Zm as kd,Zo as xg,Zp as oi,Zq as Tj,_l as Qb,_m as ld,_n as He,_o as yg,_p as vi,_q as Uj,am as Vb,an as nd,ao as Je,ap as Ag,aq as xi,ar as fk,bm as Wb,bn as od,bo as Ke,bp as Bg,bq as yi,br as gk,cm as hc,cn as pd,co as Le,cp as Cg,cq as zi,cr as hk,dm as ic,dn as ud,do as Me,dp as Dg,dq as Ai,dr as ik,em as jc,en as vd,eo as Ne,ep as Eg,eq as Bi,er as jk,fm as kc,fn as wd,fp as Fg,fq as Ci,fr as kk,gm as lc,gn as xd,gp as Gg,gq as Di,gr as lk,hm as mc,hn as yd,hp as Hg,hq as Ei,hr as mk,im as nc,in as zd,io as af,ip as Ig,iq as Fi,ir as nk,jm as oc,jn as Ad,jo as bf,jp as Jg,jq as Gi,jr as ok,km as pc,kn as Bd,kp as Kg,kq as Hi,kr as pk,lm as qc,ln as Cd,lo as Wf,lp as Lg,lq as Ii,lr as qk,mm as rc,mn as Dd,mp as Mg,mq as Ji,mr as rk,nm as sc,nn as Ed,np as Ng,nq as Ki,nr as sk,om as tc,on as Fd,op as Og,oq as Li,or as tk,pm as uc,pn as Gd,pp as Pg,pq as Mi,pr as uk,qm as vc,qn as Hd,qp as Qg,qq as Wi,qr as xk,rm as wc,rn as Id,rp as Rg,rq as Xi,rr as yk,sm as xc,sn as Jd,sp as Sg,sq as Yi,sr as zk,tm as yc,tn as Kd,tp as Tg,tq as Zi,tr as Ak,ul as xa,um as zc,un as Ld,up as Ug,uq as _i,ur as Bk,vl as ya,vm as Ac,vn as Md,vp as Vg,vq as $i,vr as Ck,wl as za,wm as Bc,wn as Nd,wp as Wg,wq as aj,wr as Dk,xl as Aa,xm as Cc,xn as Od,xp as Xg,xq as bj,xr as Ek,yl as Ba,ym as Dc,yn as Pd,yp as Yg,yq as cj,yr as Fk,zl as Ca,zm as Ec,zn as Qd,zp as Zg,zq as dj}from"./chunk-tg33an38.js";import{$r as oa,Ar as N,Br as O,Cr as P,Dr as Q,Er as R,Fr as S,Gr as T,Hr as U,Ir as V,Jr as W,Kr as X,Lr as Y,Mr as Z,Nr as _,Or as $,Pr as aa,Qr as ba,Rr as ca,Sr as da,Tr as ea,Ur as fa,Vr as ia,Wr as ja,Xr as ka,Yr as la,Zr as ma,_r as na,as as pa,bs as qa,cs as ra,ds as sa,es as ta,fs as ua,gs as va,hs as wa,zr as M}from"./chunk-8y1ve8tc.js";import{is as ga,js as ha}from"./chunk-njx93b4z.js";import{ks as Rb,ls as Sb,ms as Tb}from"./chunk-bqdfbwdf.js";import"./chunk-89mqnh67.js";import{As as Ui,Bs as Vi,ts as Ni,us as Oi,vs as Pi,ws as Qi,xs as Ri,ys as Si,zs as Ti}from"./chunk-xvh1k1a4.js";import{Ts as Qc,Us as Rc,Vs as Sc,Ws as Tc,Xs as Uc,Zs as Vc,gt as Wc,ht as Xc,it as Yc}from"./chunk-a8dyw9eg.js";import{jt as Xb,kt as Yb,lt as Zb,mt as _b,nt as $b,ot as ac}from"./chunk-y2f41kaq.js";import{At as Ge,vt as Ee,xt as Fe}from"./chunk-xj6bcwqa.js";import"./chunk-42akykta.js";import{Ft as cc,Gt as dc}from"./chunk-vhta1be7.js";import{Kt as dg,Lt as eg,Mt as fg,Nt as gg,Ot as hg,Pt as ig,Qt as jg,St as kg,Tt as lg,Ut as mg,Vt as ng}from"./chunk-tc4pj651.js";import{Wt as qd,Xt as rd,Yt as sd,Zt as td,hu as ae,iu as be,ju as ce,ku as de,lu as ee,mu as fe,nu as ge,ou as he,pu as ie,qu as je,ru as ke,su as le,tu as me,uu as ne,vu as oe,wu as pe}from"./chunk-san1eq0r.js";import{$u as F,Au as e,Bu as f,Cu as g,Du as h,Eu as i,Fu as j,Gu as k,Hu as l,Iu as m,Ju as n,Ku as o,Lu as p,Mu as q,Nu as r,Ou as s,Pu as t,Qu as u,Ru as v,Su as w,Tu as x,Uu as y,Vu as z,Wu as A,Xu as B,Yu as C,Zu as D,_u as E,av as G,bv as H,cv as I,dv as J,ev as K,fv as L,xu as b,yu as c,zu as d}from"./chunk-avwywzsj.js";import"./chunk-wj21f1e0.js";import"./chunk-d86q27j8.js";import{Av as tb,Bv as ub,Cv as vb,Dv as wb,Ev as xb,Fv as yb,Gv as zb,Hv as Ab,Iv as Bb,Jv as Cb,Kv as Db,Lv as Eb,Mv as Fb,Nv as Gb,Ov as Hb,Pv as Ib,Qv as Jb,vv as ob,wv as pb,xv as qb,yv as rb,zv as sb}from"./chunk-72x62kch.js";import{Uv as Pa,Vv as Qa,Yv as Ra,bw as Sa,cw as Ta,iw as Ua,jw as Va,kw as Wa,lw as Xa,mw as Ya,nw as Za,ow as _a,pw as $a,qw as ab,rw as bb,sw as cb,tw as db,uw as eb,vw as fb,ww as gb,yw as hb}from"./chunk-swvm1wgn.js";import"./chunk-9nrgjtah.js";import"./chunk-ejqpq0wc.js";export{hl as writeNetlifyConfig,$m as writeManifest,Ml as writeImageManifest,rp as wrapComponentForHMR,_r as withDefaults,uk as webComponentDirectiveHandler,gq as watermark,ir as watchViews,Wl as watchMultiple,Xl as watchEffect,Vl as watch,Le as warmImagePlaceholders,im as waitForStore,X as waitForLocale,dp as virtualPathFor,hk as videoDirective,G as validators,cs as validated,Be as validateValueEnhanced,ki as validateTemplate,Pm as validateRouteRules,lq as validateParams,Ce as validateFormEnhanced,Zq as validateFile,xe as validateFields,we as validateField,mi as validateDirective,Wd as validateCspDirectives,Ck as validateConfig,nn as validateComponentScripts,Ln as validateComponentProps,gh as validateClientScript,fi as v,Hc as usesSignalsInScript,ub as usesReactiveRuntime,Ai as userComponentFileExists,Nh as useVirtualList,ie as useTitle,hm as useStoreOrThrow,Jp as useStore,Tk as useStorage,zf as useSlots,Vk as useSessionStorage,cc as useServerRuntimeConfig,Xf as useServerData,fe as useSeoMeta,dc as useRuntimeConfig,jm as useRouteParams,lm as useRouteParamOrThrow,km as useRouteParam,ie as usePageTitle,qf as useOptimistic,Ef as useModel,nm as useMiddlewareValue,mm as useMiddlewareState,Uk as useLocalStorage,kp as useLoadingIndicator,de as useHead,ci as useForm,Bf as useAttrs,$q as uploadFiles,_q as uploadFile,em as updateInstance,of as untrack,Qi as unregisterDirective,fm as unmountInstance,Pc as unescapeHtml,gp as typecheckStxFiles,yi as transpileTypeScript,Nr as translate,Ba as transitionDirective,lc as transformAutoImports,Fn as toUsers,En as toUser,Rp as thumbnail,Sq as thumbHashToRGBA,Tq as thumbHashToDataURL,wb as templateNeedsRuntime,vb as templateHasReactiveContext,If as templateCache,md as syncRecordedResponse,op as stxClientHelpers,ig as structuredDataDirective,Qr as stripLocalePrefix,Mm as stripDocumentWrapper,Sb as stripCommentsAndLiterals,qo as stringToStream,Kd as strictCspPreset,We as streamingSuspenseDirective,_e as streamToResponse,Ue as streamTemplateSimple,Oe as streamTemplate,Ok as stopHmrServer,Bn as stopBroadcasting,_b as stateDirName,$b as stateDir,cf as state,ah as startsDocument,Lo as startProductionServer,Go as startInteractive,An as startBroadcasting,Sr as stampLocaleLayoutGroup,Ia as staggerDirective,jq as srcsetUrls,Ja as springDirective,td as splitByPipe,Im as spaNavVaryHeaders,ep as sourcePathFor,qq as smartBatchSign,Ci as slotContentHasExpressions,oq as signUrl,wi as shouldTranspileTypeScript,Lk as shouldReloadOnChange,tq as shouldRefreshSignature,Mk as shouldIgnoreFile,Fh as shouldCacheComponent,Vp as sharpen,fs as shape,Zb as setStateDir,rm as setRouteParams,sm as setMiddlewareState,Ke as setImagePlaceholder,tf as setGlobalProvide,b as setErrorLocale,Ol as setCurrentInstance,Xj as setCachedVideoResult,Mj as setCachedImageResult,Gj as setCached,is as serveStxFile,ks as serveMultipleStxFiles,Gk as serveMarkdownFile,Wo as serveFile,ls as serveApp,Vo as serve,up as serializeState,bn as serializeSetCookie,Xp as sepia,ge as seoMetaToHeadConfig,Ca as scrollAnimateDirective,va as screenReaderDirective,zi as scopeOnRootElement,lk as scopeHTML,kk as scopeCSS,lg as scanForSitemapEntries,pa as scanA11yTargets,qa as scanA11yIssues,$p as saturation,mq 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,wg as runPreProcessingMiddleware,xg as runPostProcessingMiddleware,en as runPageAction,jf as runMountCallbacks,gb as runMiddleware,cm as runHooks,Gr as runDoctor,kf as runDestroyCallbacks,Ag as runComposers,aq as rotate,gi as rewriteImagesWithSiblings,nd as responseBindings,Gi as resolveTemplatePath,ha as resolveStxTargets,yk as resolveStxDirectories,Mr as resolveI18n,Pp as resize,og as resetUnscopedSignalWarnings,Nc as resetRejectedExpressionWarnings,sc as resetPlaceholders,ce as resetHead,tp as resetHMRHandler,o as resetErrorConfig,as as required,bg as reportDeferredLoopWarnings,wc as replacePlaceholders,Ec as replaceInterpolations,gr as renderView,ek as renderVideoComponent,ic as renderVendorStyleTags,pr as renderToString,qr as renderToStream,rr as renderToDOM,Rq as renderThumbhashToCanvas,Dr as renderTemplateString,Br as renderTemplate,Cr as renderString,Re as renderStreamingPage,ri as renderSlot,vh as renderSSRSuspense,Bq as renderProtectedVideo,Aq as renderProtectedImg,nq as renderMediaUpload,Ar as renderMarkdownView,Tm as renderLayoutTypes,Qj as renderImgComponent,Cl as renderImageComponent,ke as renderHtmlAttrs,je as renderHead,jr as renderEmail,Ei as renderComponentWithSlot,le as renderBodyAttrs,Ep as render,Md as relaxedCspPreset,ve as registerValidationRule,Ye as registerStreamingDirectives,Lp as registerStoresClient,pm as registerStore,Qf as registerServeModuleBundle,jg as registerSeoDirectives,_a as registerMiddleware,Ac as registerFilters,zc as registerFilter,d as registerErrorMessages,Ae as registerEnhancedValidationRule,Ni as registerDirective,Vd as registerCspDirectives,On as registerComponentDirectives,Oa as registerAnimationDirectives,wa as registerA11yDirectives,mc as referencesName,Sl as ref,yo as redirect,id as recordResponseStatus,jd as recordResponseHeader,ac as rebaseOntoStateDir,kd as readResponseStatus,ld as readResponseHeaders,Ek as readMarkdownFile,Jf as readFileCached,Tl as reactive,eq as quality,yq as pruneSignatureCache,Jj as pruneCache,rf as provide,zr as protectCodeBlocks,$r as prop,Dg as processVueTemplate,Lh as processVirtualListDirectives,Ph as processVirtualGridDirectives,dk as processVideo,ye as processValidateDirective,ea as processTranslateDirective,ph as processTransitionDirectives,sh as processTransitionAttributes,oe as processTitleDirective,ad as processTemplateBindings,lh as processTeleportDirectives,th as processSuspenseDirectives,eg as processStructuredData,Se as processStreamDirectives,od as processStatusDirective,ai as processStaticDirectives,ug as processStackReplacements,tg as processStackPushDirectives,si as processSlots,Km as processShell,Ne as processServerBindings,fg as processSeoDirective,Ze as processSectionDirectives,Uc as processScopedStyles,_c as processReactiveBindings,Cq as processProtectedMedia,Vh as processPartialHydrationDirectives,fh as processOnceDirective,vg as processMiddleware,dg as processMetaDirectives,pe as processMetaDirective,Fk as processMarkdownFileDirectives,Li as processMarkdownDirectives,cg as processLoops,Dh as processKeepAliveDirectives,eh as processJsonDirective,Oh as processInfiniteListDirectives,sg as processIncludes,Sj as processImgComponents,El as processImageComponents,rl as processImage,ne as processHeadDirective,re as processForms,te as processFormInputDirectives,Lc as processExpressions,Pb as processEventDirectives,ue as processErrorDirective,Eg as processDynamicComponents,hi as processDirectives,Vi as processDirectiveAttributes,kh as processDeferDirectives,_d as processCustomDirectives,Sd as processCspDirectives,gs as processComponentProps,rc as processClientScript,se as processBasicFormDirectives,yh as processAsyncDirectives,$d as processAppearanceBootstrapDirective,Fa as processAnimationDirectives,ka as processA11yDirectives,Ge as prepareImageDelivery,T as preloadTranslationsBackground,S as preloadTranslations,jp as preloadIslandHandlers,Me as preloadIconCollection,wn as poolStrings,wk as pluginManager,Ie as placeholdersWarmed,oh as performLeave,nh as performEnter,lf as pendingLifecycleCounts,pf as peek,pg as partialsCache,fk as parseVideoDirectiveOptions,Np as parseUrl,Uq as parseThumbhashString,zd as parseSwitchBlock,pi as parseSlots,qi as parseSlotElement,Ed as parseScriptDeclarations,sk as parseSFCComponent,Dq as parseProtectedArgs,ag as parseLoopBinding,Rj as parseImgComponent,hj as parseImageUrl,Dl as parseImageComponent,cn as parseFormBody,Bd as parseExpressionWithFilters,Pn as parseDefaults,vo as parseCookies,Bm as parseContainerSelector,wd as parseConditionalBlock,Cd as parseArguments,Ma as parseAnimationShorthand,bs as optional,xn as optimizeTemplate,Jl as optimizeImage,Kl as optimizeDirectory,ds as oneOf,qg as onceStore,$l as onUpdated,Zc as onUpdate,bm as onUnmounted,wm as onServer,Zl as onMounted,gf as onMount,$h as onHydrated,xf as onErrorCaptured,hf as onDestroy,Jh as onDeactivated,vm as onClient,_l as onBeforeUpdate,am as onBeforeUnmount,Yl as onBeforeMount,Ih as onActivated,Nq as observeElement,zo as notFound,Jg as normalizeCriticalHeadOrder,wf as nextTick,Sn as negotiateEncoding,Ua as navigateTo,dm as mountInstance,Ea as motionDirective,Ld as moderateCspPreset,vn as minifyHtml,hg as metaDirective,Ug as metaDedupKey,Op as mergeParams,Wg as mergeHtmlAttrs,ee as mergeHeadConfigs,Rc as mergeCssConfig,Pd as mergeCspDirectives,Ra as matchRoute,Mi as markdownDirectiveHandler,Dk as markdownCache,ga as looksLikeGlob,Pr as localizePath,U as loadTranslationLazy,_ as loadTranslation,zk as loadStxConfig,db as loadMiddlewareFromDirectory,an as loadManifest,Jq as loadElement,Cn as loadChannels,Lb as listensPassively,Wr as lintStxStrict,Lq as lazyLoadAll,Kq as lazyLoad,Ha as keyframeDirective,nr as jsxs,or as jsxDEV,mr as jsx,xo as jsonResponse,Xe as islandDirective,l as isTest,Nm as isSpaNavigation,Gm as isSpaNavRequest,rq as isSignatureValid,mf as isSignal,pl as isSharpAvailable,jo as isServerEnvironment,tm as isServer,yb as isRuntimeOwnedColonAttr,Hb as isRuntimeEventName,da as isRtlLocale,j as isProduction,ia as isPresentationalRole,Gq as isNativeLazySupported,yr as isMarkdownPath,Q as isLoading,R as isLoaded,vi as isJavaScriptScript,Hq as isIntersectionObserverSupported,xl as isImageFile,ql as isImageBackendAvailable,aa as isICUFormat,_h as isHydrated,Bi as isHydrateTrigger,gd as isHttpStatus,io as isEdgeEnvironment,Xr as isDirectiveKind,k as isDevelopment,nf as isDerived,Kk as isCssOnlyChange,Rn as isCompressible,um as isClient,Ah as isAsyncComponent,dn as isActionableMethod,Yp as invert,Lf as invalidateFileCacheByDir,Kf as invalidateFileCache,Kc as interpolateScriptsInTemplate,Ic as interpolateScriptExpressions,Jc as interpolateScriptAttributes,x as inlineError,Lr as injectThemeBootstrap,gg as injectSeoTags,Ir as injectSeo,Wf as injectRouterScript,Jk as injectHotReload,kb as injectHeatmap,Yc as injectCss,Qd as injectCspMetaTag,ch as injectConfigHeadTags,Ig as injectColorModeBootScript,Yg as injectCloakStyle,Pg as injectBuildId,kc as injectBrowserCoreAutoImports,cd as injectAnalytics,sf as inject,om as initStoreRegistry,kl as initNetlify,lp as initLoadingIndicator,Iq as initLazyLoading,Fo as initFile,Qq as initBlurUp,Wq as initAllBlurUp,Uj as imgDirective,Hl as imageDirective,hn as hydrateTemplateStream,gn as hydrateTemplate,ip as hydrateIslands,Xh as hydrateIsland,jn as hydrateFragment,Yh as hydrateByStrategy,Zh as hydrateAll,Bp as hydrate,Uo as htmlResponse,_g as hoistLeadingHeadTags,Kg as hoistColorModeBootScript,lb as heatmapDirective,Cj as hashString,Vf as hashFilePath,Aj as hashFile,Bj as hashBuffer,Cg as hasVueTemplateSyntax,$f as hasVariables,Gp as hasStore,xc as hasPlaceholders,il as hasNetlifyConfig,ab as hasMiddleware,Qb as hasEventDirectives,bh as hasDocumentShell,ni as hasDirectives,ma as hasDOMSupport,Al as handleImageRequest,yf as handleError,vr as h,wl as groupVariantsByFormat,Wp as grayscale,No as gitHash,pn as getUnusedDirectives,V as getTranslationSync,O as getTranslationCacheStats,W as getTranslationAsync,ba as getTranslation,dl as getTotalSize,sq as getTimeUntilExpiry,hh as getStoreScript,Hp as getStoreNames,Fp as getStore,Yk as getStorageSize,Xk as getStorageKeys,Hi as getSourceLineInfo,xi as getSharedTranspiler,Rf as getServeModuleBundle,Pf as getServeClientAsset,la as getScreenReaderOnlyStyle,mk as getScopeAttribute,bf as getRouteParams,Vb as getPublicEnvDefine,Wb as getPublicEnv,li as getPositionInfo,uc as getPlaceholderRegistry,zj as getPlaceholderCacheStats,be as getPageMeta,Gd as getNonce,yl as getMimeType,cb as getMiddlewareNames,$a as getMiddleware,ca as getLocaleDirection,P as getLoadingState,Y as getLoadingLocales,He as getImagePlaceholder,sl as getImageMetadata,Ee as getImageDelivery,Ap as getHydrationRuntime,qm as getHydratedStoreState,Nk as getHmrServer,ae as getHead,sp as getHMRHandler,lj as getFormatExtension,Ej as getFileMtime,vl as getFallbackVariant,f as getErrorMessage,c as getErrorLocale,n as getErrorConfig,i as getErrorCodeName,Pi as getDirectives,Oi as getDirective,Pl as getCurrentInstance,Vc as getCssServeAsset,Od as getCspPreset,Xd as getCspHeaderName,Ki as getComponentCacheStats,Wj as getCachedVideoResult,wq as getCachedSignature,Nf as getCachedSignalsRuntime,Of as getCachedRouterScript,xj as getCachedPlaceholder,Lj as getCachedImageResult,Fj as getCached,Ij as getCacheStats,Ng as getBuildId,zn as getBroadcastServer,kj as getBestVariant,Bc as getAllFilters,_i as generateWidthSrcset,Mh as generateVirtualListCSS,br as generateVideoPreview,De as generateValidationScript,cr as generateUploadRuntime,qn as generateTreeShakenBundle,rh as generateTransitionRuntime,qh as generateTransitionCSS,_j as generateThumbnails,qj as generateThumbhashPlaceholder,$n as generateTemplatesDocs,xh as generateSuspenseRuntime,wh as generateSuspenseCSS,vp as generateStateScript,ij as generateSrcsetData,Pj as generateSrcset,tl as generateSrcSet,$j as generateSpriteSheet,kr as generateSpaShell,jj as generateSourceTags,ej as generateSizesFromBreakpoints,dj as generateSizesAttribute,ul as generateSizes,kg as generateSitemapIndex,Jr as generateSitemap,Fq as generateSimpleMediaPicker,zq as generateSignatureRuntime,Hf as generateSignalsRuntimeDev,Gf as generateSignalsRuntime,qc as generateServerDataBridge,jk as generateScopeId,tk as generateSFCWebComponent,Nb as generateRuntimeScript,Pa as generateRouteTypes,Qa as generateRouteManifest,mg as generateRobotsTxt,Kr as generateRobots,Oj as generateResponsiveVariants,pk as generateReactiveWebComponentTS,ok as generateReactiveWebComponent,rk as generateReactiveRuntime,qk as generateReactiveMixin,Zj as generatePoster,wj as generatePlaceholderStyle,vj as generatePlaceholderCSS,pj as generatePlaceholder,Wh as generatePartialHydrationCSS,Fd as generateNonce,el as generateNetlifyToml,er as generateMinifiedMediaRuntime,dr as generateMediaRuntime,Eq as generateMediaManagerEmbed,_m as generateManifest,np as generateLoadingIndicatorHtml,Pq as generateLazyLoadRuntime,Um as generateLayoutTypes,sj as generateLQIP,Hh as generateKeepAliveRuntime,Gh as generateKeepAliveCSS,bi as generateIslandManifest,ar as generateImagePreview,Ll as generateImageManifest,zp as generateHydrationScript,$e as generateHydrationRuntime,Cp as generateHydrationCSS,Qh as generateHydrationBootstrap,Ik as generateHotReloadScript,jb as generateHeatmapScript,qp as generateHMRClientScript,ak as generateHLSManifest,wp as generateEventBindings,cj as generateDprSrcsetWithVariableQuality,bj as generateDprSrcset,$g as generateDocumentShell,fo as generateDocs,ao as generateDirectivesDocs,Ui as generateDirectiveRuntime,ng as generateDefaultRobotsTxt,bk as generateDASHManifest,Xc as generateCss,Jd as generateCspMetaTag,Id as generateCspHeader,Df as generateCompositionRuntime,_n as generateComponentsDocs,Rh as generateComponentManifest,Yn as generateComponentDoc,uj as generateColorPlaceholder,Hg as generateColorModeBootScript,gm as generateClientRuntime,Dj as generateCacheKey,oc as generateBrowserAutoImportDestructuring,Xq as generateBlurUpRuntime,Yq as generateBlurUpCSS,$c as generateBindingsRuntime,$i as generateAutoWidthSrcset,nc as generateAutoImportDestructuring,Ch as generateAsyncComponentRuntime,Bh as generateAsyncComponentCSS,fc as generateApiTypes,Na as generateAnimationRuntime,La as generateAnimationCSS,bd as generateAnalyticsScript,hp as formatTypecheckDiagnostics,bp as formatTypeErrors,Co as formatStxContent,cl as formatSize,Ta as formatRoutes,Do as formatMarkdownContent,g as formatLocalizedError,$ as formatICU,p as formatFilePath,w as formatError,Hr as formatDoctorReport,bo as formatDocsAsMarkdown,eo as formatDocsAsJson,co as formatDocsAsHtml,dq as format,un as foldConstants,cq as flipVertical,bq as flipHorizontal,Vm as fingerprint,fp as findRuntimeTypeDeclarations,Fr as findPantryPackage,Dc as findMustacheEnd,vd as findMatchingEndTag,rd as findMatchingDelimiter,Rb as findInterpolationEnd,xd as findIfBlocks,Ad as findExpressions,Sa as findErrorPage,Sc as findDuplicateScopedStyleRanges,yd as findDirectiveBlocks,rn as findDeadCode,rn as findDeadBranches,Cm as findContainerRegion,Zn as findComponentFiles,js as findCommonDir,bl as filterRequiredFiles,Fi as fileExists,Yf as extractVariables,ji as extractTemplateExpressions,Te as extractStreamBoundaries,xp as extractState,ti as extractSlotContent,_f as extractScriptFromTemplate,ii as extractScriptBlocks,vc as extractPlaceholders,ud as extractParenthesizedExpression,hd as extractPageResponseStatus,hb as extractLayoutMetadata,tj as extractDominantColor,Dd as extractDirectiveParams,oi as extractDirectiveNames,Om as extractContainerContent,Wn as extractComponentProps,Sh as extractComponentName,Xn as extractComponentDescription,Wc as extractClassNames,pc as extractBridgeData,Th as extractBoundProps,sd as extractBalancedExpression,hc as extractAndStripCssImports,nk as extractAndScopeStyles,Ob as extractAndProcessEvents,Rk as externalizeSharedAssets,Sk as externalizeRepeatedAssets,Qk as externalizeHtml,Oc as evaluateExpression,tn as evaluateConstant,pd as evaluateAuthExpression,Gc as escapeHtmlValue,Fc as escapeHtml,C as errorRecovery,E as errorLogger,mh as ensureTeleportTargets,dh as ensureDocumentShell,ze as enhancedValidationRules,Un as enableDevTools,sn as eliminateDeadCode,ef as effect,kq as dprUrls,go as docsCommand,ec as discoverServerApi,Sm as discoverLayoutNames,Oq as disconnectObserver,Vn as disableDevTools,F as devHelpers,Jm as detectShell,ho as detectRuntime,fl as detectProjectConfig,mj as detectFormat,mn as detectBuildMode,df as derived,jl as deploy,Bk as defineStxConfig,Kp as defineStore,Af as defineSlots,Vr as defineSiteConfig,Zr as definePropsWithValidation,Yr as defineProps,vk as definePlugin,he as definePageMeta,Wa as defineMiddleware,di as defineForm,vf as defineExpose,uf as defineEmits,Ri as defineDirective,xr as defineCustomElement,Ko as defineConfig,Si as defineClientDirective,zh as defineAsyncComponent,Mo as defineApiHandler,fr as defaultMediaConfig,Nl as defaultImageConfig,M as defaultI18nConfig,ib as defaultHeatmapConfig,qe as defaultFormClasses,yc as defaultFilters,Zd as defaultCspConfig,xk as defaultConfig,hs as default,Qc as deepMergeThemes,Tc as dedupeScopedStyles,Fm as decodeTitleEntities,rj as decodeThumbhash,Ud as cspNonceDirective,Td as cspDirective,Vq as crossfadeTransition,Qp as crop,Kh as createVirtualList,gk as createVideoDirective,to as createVercelHandler,_o as createTypeChecker,fa as createTranslateFilter,po as createTextEncoderStream,wr as createStxApp,oo as createStreamingResponse,Ve as createStreamRenderer,Ip as createStore,Za as createStorageManager,Xa as createServerCookieManager,gc as createServerApi,Rl as createScope,uh as createSSRSuspense,af as createRouter,Qm as createRouteRuleResolver,eb as createRouteLocation,Yo as createRoute,Sl as createRef,Tl as createReactive,Cf as createProvideContext,Po as createProject,Jo as createProductionBuild,tc as createPlaceholder,yn as createOptimizedBuild,uo as createNetlifyHandler,Zk as createNetlifyClient,fb as createMiddlewareContext,Xo as createMiddleware,Mq as createLazyObserver,Eh as createKeepAliveCache,lo as createKVNamespace,Uh as createIslandRegistry,Tj as createImgDirective,Il as createImagePlugin,Bl as createImageHandler,Gl as createImageDirective,nb as createHeatmapAggregator,al as createFileManifest,ko as createEnvAccessor,z as createEnhancedError,no as createEdgeHandler,mo as createEdgeCache,Ii as createDetailedErrorMessage,so as createDenoHandler,gl as createDefaultNetlifyConfig,Yd as createCspHeaders,wo as createCookie,Ul as createComputed,Ql as createComponentInstance,ro as createCloudflareHandler,Ya as createClientCookieManager,Ti as createBuiltinDirectives,wr as createApp,Ka as createAnimationTimeline,Tp as cover,Zf as convertToCommonJS,_p as contrast,Sp as contain,y as consoleError,m as configureErrorHandling,Ak as config,Ul as computed,Tn as compressResponse,zg as composerPattern,yg as composer,Lm as composeShellWithPage,Nn as componentDirective,Di as componentClientSignalNames,Zm as compileTemplate,a as collectRepeatedFlag,$k as collectDeployFiles,Zg as cloakStyleFragment,Yj as clearVideoCache,N as clearTranslationCache,ih as clearStoreCache,Wk as clearStorage,xq as clearSignatureCache,Ff as clearServerData,yj as clearPlaceholderCache,rg as clearOnceStore,Hd as clearNonce,bb as clearMiddleware,Je as clearImagePlaceholders,Fe as clearImageDeliveryCatalog,Fl as clearImageCache,e as clearErrorMessages,Sf as clearDevCaches,Cc as clearCustomFilters,Bg as clearComposers,jh as clearComposableCache,Ji as clearComponentCache,Hj as clearCache,Ib as clearBlankCache,mp as cleanupLoadingIndicator,zm as classifyScript,Am as classifyAllScripts,$o as checkTemplateFile,ap as checkTemplate,Tf as checkCache,uq as checkAuthAccess,na as checkA11yWithRegex,oa as checkA11y,In as channel,Bo as captureScreenshots,Ao as captureScreenshot,Z as cancelPendingLoads,_k as calculateSha1,aj as calculateOptimalWidths,Uf as cacheTemplate,bc as cacheEngineFingerprint,ik as buildWebComponents,cp as buildVirtualSource,hr as buildViews,Mp as buildUrl,Pe as buildSuspenseResolveScript,Ur as buildStaticSite,qb as buildRuntimeGlobalsDestructure,Wm as buildRuntimeAsset,Xm as buildRouterAsset,Tr as buildLangPickerScript,gj as buildImageUrl,Qg as buildIdFragment,Vg as buildHtmlAttrs,kn as buildForProduction,Qn as buildComponentLibrary,vq as buildAuthParams,ln as buildApp,Rr as buildAlternateLinks,Io as build,Gn as broadcastPrivate,Hn as broadcastPresence,Dn as broadcast,Zp as brightness,Tb as bracketDepths,Up as blur,Jb as blankInertHtmlRegions,pq as batchSignUrls,ff as batch,sa as autoFixA11yFile,ta as autoFixA11yDirectory,ra as autoFixA11y,fq as auto,ja as attributeValue,Ym as assetTags,Mb as asInvocableStatement,es as arrayOf,Or as applyTranslations,Nj as applyTransformations,ui as applySlots,Mn as applyPropDefaults,iq as applyPreset,Xg as applyHtmlAttrs,me as applyHead,Mc as applyFilters,Hm as appendVary,Nd as apiCspPreset,Da as animationGroupDirective,ck as analyzeVideo,on as analyzeUsage,xm as analyzeTemplate,ym as analyzeProject,on as analyzeDirectiveUsage,dd as analyticsDirective,So as addStore,Ro as addPage,Rd as addNonceToInlineContent,To as addLayout,Qo as addComponent,fn as actionRedirectResponse,Va as abortNavigation,ua as a11yDirective,Mf as __setSignalsGeneratorsForTest,Og as __setBuildIdForTest,Vj as VideoProcessorCache,ei as Validator,xa as TransitionType,za as TransitionEase,ya as TransitionDirection,qd as Tokenizer,Zo as TemplateTypeChecker,Eo as TEMPLATE_PRESETS,v as StxValidationError,r as StxSyntaxError,t as StxSecurityError,s as StxRuntimeError,u as StxFileError,q as StxError,sr as Show,Qe as SUSPENSE_RESOLVER_RUNTIME,ob as STX_RUNTIME_GLOBALS,jc as STX_AUTO_IMPORTS,Yb as STATE_DIR_ENV_VAR,Ga as SPRING_PRESETS,Dm 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,ed as RESPONSE_STATUS_KEY,fd as RESPONSE_HEADERS_KEY,tb as REACTIVE_RUNTIME_GLOBALS,Ho as ProductionBuild,ur as Portal,Oo as PROJECT_TEMPLATES,hq as PRESETS,sb as NON_CLIENT_PRIMITIVES,Dp as MemorySessionStore,Zi as MIME_TYPES,Wi as MEDIA_DEFAULT_WIDTHS,Yi as MEDIA_DEFAULT_FORMATS,Rm as LAYOUT_TYPES_FILE,Kj as ImageProcessorCache,zl as ImageProcessingError,yp as HydrationRuntime,Hk as HotReloadServer,mb as HeatmapAggregator,Tg as HTML_CLASS_MARKER,Sg as HTML_ATTRS_MARKER,lr as Fragment,tr as For,Em as FRAGMENT_CACHE_CONTROL,D as ErrorLogger,h as ErrorCodes,Pk as EXTERNALIZED_ASSET_DIR,ll as DeployError,ml as DEFAULT_WIDTHS,Aa as DEFAULT_TRANSITION_OPTIONS,Xb as DEFAULT_STATE_DIR,ol as DEFAULT_QUALITY,nj as DEFAULT_PLACEHOLDER_OPTIONS,nl as DEFAULT_FORMATS,Xi as DEFAULT_DPR_VALUES,pp as ComponentHMRHandler,pb as COMPONENT_SCOPE_LOCAL_GLOBALS,Bb as COMPONENT_PASSTHROUGH_X_ATTRS,rb as COMPILE_TIME_ONLY_GLOBALS,fj as COMMON_SIZES,Fg as COLOR_MODE_BOOT_MARKER,Gg as COLOR_MODE_BOOT_GLOBAL,Rg as CLOAK_STYLE,Kn as BroadcastServer,Jn as Broadcast,Lg as BUILD_ID_META,Mg as BUILD_ID_HEADER,Ub as BROWSER_CORE_IMPORTS,oj as BLUR_UP_CSS,Ab as ALPINE_BRIDGE_X_ATTRS,Er as $path};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{Le as c,Me as d,Ne as e,Oe as f,Pe as g,Qe as h}from"./chunk-jwe0cwff.js";import"./chunk-vzbcdxd5.js";import"./chunk-7we3xfde.js";import{Kp as a,Np as b}from"./chunk-zdq7emrd.js";import"./chunk-8y1ve8tc.js";import"./chunk-njx93b4z.js";import"./chunk-bqdfbwdf.js";import"./chunk-89mqnh67.js";import"./chunk-xvh1k1a4.js";import"./chunk-skd72bn4.js";import"./chunk-y2f41kaq.js";import"./chunk-xj6bcwqa.js";import"./chunk-21mmq3aj.js";import"./chunk-vhta1be7.js";import"./chunk-tc4pj651.js";import"./chunk-san1eq0r.js";import"./chunk-avwywzsj.js";import"./chunk-wj21f1e0.js";import"./chunk-d86q27j8.js";import"./chunk-72x62kch.js";import"./chunk-yg5r7bnm.js";import"./chunk-9nrgjtah.js";import"./chunk-ejqpq0wc.js";export{d as virtualPathFor,g as typecheckStxFiles,e as sourcePathFor,h as formatTypecheckDiagnostics,f as findRuntimeTypeDeclarations,b as extractTemplateExpressions,a as extractScriptBlocks,c as buildVirtualSource};
2
+ import{Le as c,Me as d,Ne as e,Oe as f,Pe as g,Qe as h}from"./chunk-vneewh3d.js";import"./chunk-e1y8m2yp.js";import"./chunk-7we3xfde.js";import{Kp as a,Np as b}from"./chunk-tg33an38.js";import"./chunk-8y1ve8tc.js";import"./chunk-njx93b4z.js";import"./chunk-bqdfbwdf.js";import"./chunk-89mqnh67.js";import"./chunk-xvh1k1a4.js";import"./chunk-a8dyw9eg.js";import"./chunk-y2f41kaq.js";import"./chunk-xj6bcwqa.js";import"./chunk-42akykta.js";import"./chunk-vhta1be7.js";import"./chunk-tc4pj651.js";import"./chunk-san1eq0r.js";import"./chunk-avwywzsj.js";import"./chunk-wj21f1e0.js";import"./chunk-d86q27j8.js";import"./chunk-72x62kch.js";import"./chunk-swvm1wgn.js";import"./chunk-9nrgjtah.js";import"./chunk-ejqpq0wc.js";export{d as virtualPathFor,g as typecheckStxFiles,e as sourcePathFor,h as formatTypecheckDiagnostics,f as findRuntimeTypeDeclarations,b as extractTemplateExpressions,a as extractScriptBlocks,c as buildVirtualSource};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{Dw as y}from"./chunk-yg5r7bnm.js";import N from"fs";import B from"path";var Y="_stx";function L(M){return Bun.hash(M).toString(16).slice(0,8)}function T(M){let C=[],v=(q)=>{for(let g of N.readdirSync(q,{withFileTypes:!0})){let j=B.join(q,g.name);if(g.isDirectory())v(j);else if(g.isFile()&&j.endsWith(".html"))C.push(j)}};if(N.existsSync(M))v(M);return C}var S=[{pattern:/<script\b([^>]*\bdata-stx-runtime\b[^>]*)>([\s\S]*?)<\/script>/gi,prefix:"runtime",extension:"js",contentType:"text/javascript; charset=utf-8",replace:(M)=>`<script data-stx-runtime src="${M}"></script>`},{pattern:/<script\b([^>]*\bdata-stx-router\b[^>]*)>([\s\S]*?)<\/script>/gi,prefix:"router",extension:"js",contentType:"text/javascript; charset=utf-8",replace:(M)=>`<script data-stx-router src="${M}"></script>`},{pattern:/<style\b([^>]*\bdata-css=(?:"generated"|'generated')[^>]*)>([\s\S]*?)<\/style>/gi,prefix:"css",extension:"css",contentType:"text/css; charset=utf-8",replace:(M)=>`<link data-css="generated" rel="stylesheet" href="${M}">`}];function _(M,C=`/${Y}`){let v=[],q=new Set,g=0,j=M;for(let G of S)j=j.replace(G.pattern,(R,K,W)=>{if(/\b(?:src|href)\s*=/.test(K)||!W.trim())return R;let Q=`${G.prefix}.${L(W)}.${G.extension}`;if(!q.has(Q))q.add(Q),v.push({filename:Q,contents:W,contentType:G.contentType});return g+=W.length,G.replace(`${C}/${Q}`)});return{html:j,assets:v,bytesInlined:g}}function a(M){let C={pages:0,assets:0,bytesInlined:0},v=B.join(M,Y),q=new Set;for(let g of T(M)){let j=N.readFileSync(g,"utf8"),{html:G,assets:R,bytesInlined:K}=_(j);if(G===j)continue;for(let W of R){if(q.has(W.filename))continue;q.add(W.filename),N.mkdirSync(v,{recursive:!0}),N.writeFileSync(B.join(v,W.filename),W.contents),C.assets++}N.writeFileSync(g,G),C.bytesInlined+=K,C.pages++}return C}import z from"fs";import P from"path";var I=1024,E=/<(script|style)\b([^>]*)>([\s\S]*?)<\/\1>/gi,d=new Set(["","module","text/javascript","application/javascript","module/javascript"]);function b(M){return Bun.hash(M).toString(16).slice(0,8)}function p(M){let C=[],v=(q)=>{for(let g of z.readdirSync(q,{withFileTypes:!0})){let j=P.join(q,g.name);if(g.isDirectory())v(j);else if(g.isFile()&&j.endsWith(".html"))C.push(j)}};if(z.existsSync(M))v(M);return C}function D(M,C){let v=M.match(new RegExp(`\\b${C}\\s*=\\s*("([^"]*)"|'([^']*)'|([^\\s>]+))`,"i"));if(!v)return;return v[2]??v[3]??v[4]??""}function m(M,C,v){if(v.length<I)return!1;if(/\b(?:src|href)\s*=/i.test(C))return!1;if(M.toLowerCase()==="script"){if(!d.has((D(C,"type")??"").trim().toLowerCase()))return!1;return!0}return!0}function o(M){let C=[];for(let v of M.matchAll(/<template\b[^>]*>[\s\S]*?<\/template>/gi))C.push([v.index,v.index+v[0].length]);return C}function s(M){let C={pages:0,assets:0,bytesInlined:0},v=p(M);if(v.length<2)return C;let q=new Map,g=new Map;for(let Q of v){let O=z.readFileSync(Q,"utf8");q.set(Q,O);let x=o(O);for(let U of O.matchAll(E)){let[w,V,J,$]=U;if(!m(V,J,$))continue;if(x.some(([A,k])=>U.index>=A&&U.index<k))continue;let H=`${V.toLowerCase()}\x00${$}`,X=g.get(H);if(X)X.push({file:Q,whole:w,tag:V,attrs:J,body:$});else g.set(H,[{file:Q,whole:w,tag:V,attrs:J,body:$}])}}let j=[...g.values()].filter((Q)=>new Set(Q.map((O)=>O.file)).size>1);if(j.length===0)return C;let G=P.join(M,Y),R=new Map(q),K=new Map,W=[];for(let Q of j){let{tag:O,body:x}=Q[0],U=O.toLowerCase()==="script",w=`${U?"chunk":"style"}.${b(x)}.${U?"js":"css"}`;W.push({filename:w,contents:x,contentType:U?"text/javascript; charset=utf-8":"text/css; charset=utf-8"});let V=`/${Y}/${w}`;for(let J of Q){let $=U?`<script${J.attrs} src="${V}"></script>`:`<link${J.attrs} rel="stylesheet" href="${V}">`,H=R.get(J.file),X=H.replace(J.whole,()=>$);if(X===H)continue;R.set(J.file,X),K.set(J.file,(K.get(J.file)??0)+J.body.length)}}z.mkdirSync(G,{recursive:!0});for(let Q of W)z.writeFileSync(P.join(G,Q.filename),Q.contents),C.assets++;for(let[Q,O]of R){if(O===q.get(Q))continue;z.writeFileSync(Q,O),C.pages++,C.bytesInlined+=K.get(Q)??0}return C}y();import Z from"fs";import F from"path";var h="layout-types.d.ts";function f(M){let C=[],v=(q,g)=>{let j;try{j=Z.readdirSync(q,{withFileTypes:!0})}catch{return}for(let G of j){if(G.name.startsWith("."))continue;let R=F.join(q,G.name);if(G.isDirectory())v(R,g?`${g}/${G.name}`:G.name);else if(G.isFile()&&G.name.endsWith(".stx")&&G.name!=="_layout.stx"){let K=G.name.slice(0,-4);C.push(g?`${g}/${K}`:K)}}};return v(M,""),C.sort()}function c(M){let C=["// Auto-generated by stx \u2014 do not edit.","//","// Makes `definePageMeta({ layout })` reject a name with no layout behind it.","// Include this file in your tsconfig (it lives in the stx state directory,","// `.stx/` by default) for the check to apply.",""];if(M.length===0)return C.push("// No layouts found \u2014 `layout` stays typed as `string`.","export {}",""),C.join(`
2
+ import{Dw as y}from"./chunk-swvm1wgn.js";import N from"fs";import B from"path";var Y="_stx";function L(M){return Bun.hash(M).toString(16).slice(0,8)}function T(M){let C=[],v=(q)=>{for(let g of N.readdirSync(q,{withFileTypes:!0})){let j=B.join(q,g.name);if(g.isDirectory())v(j);else if(g.isFile()&&j.endsWith(".html"))C.push(j)}};if(N.existsSync(M))v(M);return C}var S=[{pattern:/<script\b([^>]*\bdata-stx-runtime\b[^>]*)>([\s\S]*?)<\/script>/gi,prefix:"runtime",extension:"js",contentType:"text/javascript; charset=utf-8",replace:(M)=>`<script data-stx-runtime src="${M}"></script>`},{pattern:/<script\b([^>]*\bdata-stx-router\b[^>]*)>([\s\S]*?)<\/script>/gi,prefix:"router",extension:"js",contentType:"text/javascript; charset=utf-8",replace:(M)=>`<script data-stx-router src="${M}"></script>`},{pattern:/<style\b([^>]*\bdata-css=(?:"generated"|'generated')[^>]*)>([\s\S]*?)<\/style>/gi,prefix:"css",extension:"css",contentType:"text/css; charset=utf-8",replace:(M)=>`<link data-css="generated" rel="stylesheet" href="${M}">`}];function _(M,C=`/${Y}`){let v=[],q=new Set,g=0,j=M;for(let G of S)j=j.replace(G.pattern,(R,K,W)=>{if(/\b(?:src|href)\s*=/.test(K)||!W.trim())return R;let Q=`${G.prefix}.${L(W)}.${G.extension}`;if(!q.has(Q))q.add(Q),v.push({filename:Q,contents:W,contentType:G.contentType});return g+=W.length,G.replace(`${C}/${Q}`)});return{html:j,assets:v,bytesInlined:g}}function a(M){let C={pages:0,assets:0,bytesInlined:0},v=B.join(M,Y),q=new Set;for(let g of T(M)){let j=N.readFileSync(g,"utf8"),{html:G,assets:R,bytesInlined:K}=_(j);if(G===j)continue;for(let W of R){if(q.has(W.filename))continue;q.add(W.filename),N.mkdirSync(v,{recursive:!0}),N.writeFileSync(B.join(v,W.filename),W.contents),C.assets++}N.writeFileSync(g,G),C.bytesInlined+=K,C.pages++}return C}import z from"fs";import P from"path";var I=1024,E=/<(script|style)\b([^>]*)>([\s\S]*?)<\/\1>/gi,d=new Set(["","module","text/javascript","application/javascript","module/javascript"]);function b(M){return Bun.hash(M).toString(16).slice(0,8)}function p(M){let C=[],v=(q)=>{for(let g of z.readdirSync(q,{withFileTypes:!0})){let j=P.join(q,g.name);if(g.isDirectory())v(j);else if(g.isFile()&&j.endsWith(".html"))C.push(j)}};if(z.existsSync(M))v(M);return C}function D(M,C){let v=M.match(new RegExp(`\\b${C}\\s*=\\s*("([^"]*)"|'([^']*)'|([^\\s>]+))`,"i"));if(!v)return;return v[2]??v[3]??v[4]??""}function m(M,C,v){if(v.length<I)return!1;if(/\b(?:src|href)\s*=/i.test(C))return!1;if(M.toLowerCase()==="script"){if(!d.has((D(C,"type")??"").trim().toLowerCase()))return!1;return!0}return!0}function o(M){let C=[];for(let v of M.matchAll(/<template\b[^>]*>[\s\S]*?<\/template>/gi))C.push([v.index,v.index+v[0].length]);return C}function s(M){let C={pages:0,assets:0,bytesInlined:0},v=p(M);if(v.length<2)return C;let q=new Map,g=new Map;for(let Q of v){let O=z.readFileSync(Q,"utf8");q.set(Q,O);let x=o(O);for(let U of O.matchAll(E)){let[w,V,J,$]=U;if(!m(V,J,$))continue;if(x.some(([A,k])=>U.index>=A&&U.index<k))continue;let H=`${V.toLowerCase()}\x00${$}`,X=g.get(H);if(X)X.push({file:Q,whole:w,tag:V,attrs:J,body:$});else g.set(H,[{file:Q,whole:w,tag:V,attrs:J,body:$}])}}let j=[...g.values()].filter((Q)=>new Set(Q.map((O)=>O.file)).size>1);if(j.length===0)return C;let G=P.join(M,Y),R=new Map(q),K=new Map,W=[];for(let Q of j){let{tag:O,body:x}=Q[0],U=O.toLowerCase()==="script",w=`${U?"chunk":"style"}.${b(x)}.${U?"js":"css"}`;W.push({filename:w,contents:x,contentType:U?"text/javascript; charset=utf-8":"text/css; charset=utf-8"});let V=`/${Y}/${w}`;for(let J of Q){let $=U?`<script${J.attrs} src="${V}"></script>`:`<link${J.attrs} rel="stylesheet" href="${V}">`,H=R.get(J.file),X=H.replace(J.whole,()=>$);if(X===H)continue;R.set(J.file,X),K.set(J.file,(K.get(J.file)??0)+J.body.length)}}z.mkdirSync(G,{recursive:!0});for(let Q of W)z.writeFileSync(P.join(G,Q.filename),Q.contents),C.assets++;for(let[Q,O]of R){if(O===q.get(Q))continue;z.writeFileSync(Q,O),C.pages++,C.bytesInlined+=K.get(Q)??0}return C}y();import Z from"fs";import F from"path";var h="layout-types.d.ts";function f(M){let C=[],v=(q,g)=>{let j;try{j=Z.readdirSync(q,{withFileTypes:!0})}catch{return}for(let G of j){if(G.name.startsWith("."))continue;let R=F.join(q,G.name);if(G.isDirectory())v(R,g?`${g}/${G.name}`:G.name);else if(G.isFile()&&G.name.endsWith(".stx")&&G.name!=="_layout.stx"){let K=G.name.slice(0,-4);C.push(g?`${g}/${K}`:K)}}};return v(M,""),C.sort()}function c(M){let C=["// Auto-generated by stx \u2014 do not edit.","//","// Makes `definePageMeta({ layout })` reject a name with no layout behind it.","// Include this file in your tsconfig (it lives in the stx state directory,","// `.stx/` by default) for the check to apply.",""];if(M.length===0)return C.push("// No layouts found \u2014 `layout` stays typed as `string`.","export {}",""),C.join(`
3
3
  `);return C.push("declare module '@stacksjs/stx' {"," interface KnownLayouts {",...M.map((v)=>` '${v}': true`)," }","}","","export {}",""),C.join(`
4
4
  `)}function HM(M,C){if(!M)return[];let v=F.isAbsolute(M)?M:F.resolve(process.cwd(),M),q=f(v),g=c(q),j=F.join(C,h);try{if(Z.existsSync(j)&&Z.readFileSync(j,"utf8")===g)return q;Z.mkdirSync(C,{recursive:!0}),Z.writeFileSync(j,g)}catch{}return q}
5
5
  export{Y as uk,_ as vk,a as wk,s as xk,h as yk,f as zk,c as Ak,HM as Bk};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{Bm as P,Bo as i,Cp as h,Ho as T,Jm as k,Zm as c,_m as l,rm as R,sm as O}from"./chunk-zdq7emrd.js";import{Ks as S,Ms as y}from"./chunk-skd72bn4.js";import{Gu as m}from"./chunk-avwywzsj.js";import{Cw as ZJ,Dw as $J,zw as YJ}from"./chunk-yg5r7bnm.js";import{Kw as XJ,Nw as q}from"./chunk-ejqpq0wc.js";var r=/\b(?:state|derived|effect|batch|ref|reactive|computed|watch|watchEffect)\s*(?:<[^>]*>)?\s*\(/;function s(J,Y,Q){let X={fullTag:Q,content:Y,attrs:J};if(/\bserver\b/.test(J))return{...X,type:"server"};if(/\bdata-stx-scoped\b/.test(J))return{...X,type:"client"};if(r.test(Y))return{...X,type:"signals"};if(/\bclient\b/.test(J)||/\btype\s*=\s*["']module["']/.test(J)||/\bsrc\s*=/.test(J))return{...X,type:"client"};return{...X,type:"server"}}var o=/^<script\b([^>]*)>([\s\S]*)<\/script\s*>$/i;function C(J){let Y=[],Q=[],X=[],$=0;while($<J.length){let Z=J.indexOf("<",$);if(Z===-1)break;let U=y(J,Z);if(U>Z){$=U;continue}let W=S(J,Z);if(W>Z){let j=J.slice(Z,W),F=o.exec(j);if(F){let K=s(F[1],F[2],j);switch(K.type){case"signals":Y.push(K);break;case"client":Q.push(K);break;case"server":X.push(K);break}}$=W;continue}$=Z+(J.startsWith("<!--",Z)?4:1)}return{signals:Y,client:Q,server:X}}var a=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]);function t(J){let Y=[],Q=/<!--[\s\S]*?(?:-->|$)|<(script|style|textarea|title|template)\b[^>]*>[\s\S]*?<\/\1\s*>/gi,X;while((X=Q.exec(J))!==null)Y.push({start:X.index,end:X.index+X[0].length});return Y}function v(J,Y){return Y.some((Q)=>J>=Q.start&&J<Q.end)}function e(J){let Y=(J||"").trim();if(!Y)return null;if(/[\s>+~,:]/.test(Y))return null;let Q={},X=Y,$=X.match(/^[a-z][\w-]*/i);if($)Q.tag=$[0].toLowerCase(),X=X.slice($[0].length);while(X.length>0){let Z=X.match(/^\[([\w-]+)(?:=(["']?)([^\]"']*)\2)?\]/);if(Z){if(Q.attr=Z[1],Z[3]!==void 0&&Z[3]!=="")Q.attrValue=Z[3];X=X.slice(Z[0].length);continue}let U=X.match(/^#([\w-]+)/);if(U){Q.id=U[1],X=X.slice(U[0].length);continue}let W=X.match(/^\.([\w-]+)/);if(W){Q.className=W[1],X=X.slice(W[0].length);continue}return null}if(!Q.tag&&!Q.attr&&!Q.id&&!Q.className)return null;return Q}function JJ(J,Y){if(Y.attr){if(!(Y.attrValue===void 0?new RegExp(`\\b${Y.attr}(?=[\\s=>/]|$)`,"i"):new RegExp(`\\b${Y.attr}\\s*=\\s*(["'])\\s*${Y.attrValue}\\s*\\1`,"i")).test(J))return!1}if(Y.id){if(!new RegExp(`\\bid\\s*=\\s*(["'])\\s*${Y.id}\\s*\\1`,"i").test(J))return!1}if(Y.className){let Q=J.match(/\bclass\s*=\s*(["'])([\s\S]*?)\1/i);if(!Q)return!1;if(!Q[2].split(/\s+/).includes(Y.className))return!1}return!0}function x(J,Y="main"){let Q=e(Y);if(!Q)return null;let X=/<([a-z][\w-]*)\b([^>]*)>/gi,$=t(J),Z;while((Z=X.exec(J))!==null){if(v(Z.index,$))continue;let U=Z[1].toLowerCase(),W=Z[2]||"";if(W.trimEnd().endsWith("/")||a.has(U))continue;if(Q.tag&&Q.tag!==U)continue;if(!JJ(W,Q))continue;let j=Z[0],F=Z.index+j.length,K=new RegExp(`<(/?)${U}\\b([^>]*)>`,"gi");K.lastIndex=F;let G=1,B;while((B=K.exec(J))!==null){if(v(B.index,$))continue;let w=B[1]==="/";if(!w&&(B[2]||"").trimEnd().endsWith("/"))continue;if(G+=w?-1:1,G===0)return{openTag:j,openIndex:Z.index,start:F,end:B.index,tagName:U}}return null}return null}var NJ="X-STX-Router",_J="private, no-store";function AJ(J){return J.replace(/&#(\d+);/g,(Y,Q)=>f(Number(Q),Y)).replace(/&#x([0-9a-f]+);/gi,(Y,Q)=>f(Number.parseInt(Q,16),Y)).replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,'"').replace(/&apos;/g,"'").replace(/&amp;/g,"&")}function f(J,Y){if(!Number.isInteger(J)||J<0||J>1114111)return Y;try{return String.fromCodePoint(J)}catch{return Y}}function g(J){return J.headers.get("X-STX-Router")==="true"}function QJ(J,Y){if(!J)return Y;return J.split(",").some((X)=>X.trim().toLowerCase()===Y.toLowerCase())?J:`${J}, ${Y}`}function IJ(J){return{Vary:QJ(J,"X-STX-Router")}}import E from"path";YJ();var UJ="stx-page-head:",WJ=/<!--stx-page-head:([A-Za-z0-9+/=]+)-->\n?/,D={dev:null,prod:null};function jJ(){let J=m()?"dev":"prod",Y=D[J];if(Y!==null)return Y;try{let Q=($J(),XJ(ZJ)),X=J==="dev"&&typeof Q.getRouterScriptDev==="function"?Q.getRouterScriptDev:Q.getRouterScript;D[J]=`<script>${X()}</script>`}catch{D[J]=""}return D[J]}async function RJ(J,Y){if(Y===!1)return null;if(Y&&typeof Y==="string"){let X=E.resolve(J,Y);if(await Bun.file(X).exists())return X;return null}let Q=E.join(J,"app.stx");if(await Bun.file(Q).exists())return Q;return null}async function PJ(J,Y){try{let Q=await Bun.file(J).text(),X=Q,$=Q.match(/<template\b[^>]*>([\s\S]*?)<\/template>/i);if($)X=$[1].trim();let Z=C(Q),U=[...Z.client.map((V)=>V.fullTag),...Z.signals.map((V)=>V.fullTag)],W=[],j=/<style\b[^>]*>([\s\S]*?)<\/style>/gi,F;while((F=j.exec(Q))!==null)W.push(F[0]);let K=X;for(let V of Z.server)K=K.replace(V.fullTag,"");for(let V of Z.client)K=K.replace(V.fullTag,"");K=K.replace(/<style\b[^>]*>[\s\S]*?<\/style>/gi,"");let G="<!--__STX_PAGE_SLOT__-->";if(K=K.replace(/<slot\s*\/>/gi,G).replace(/<slot\s*>\s*<\/slot>/gi,G),!K.includes(G))return console.warn(`[stx] Shell ${J} has no <slot /> \u2014 pages won't be injected`),null;let{processDirectives:B,extractVariables:w,defaultConfig:N,loadStxConfig:A}=await import("./chunk-bxwanj4g.js"),I=await A(),z={__filename:J,__dirname:E.dirname(J)};for(let V of U){let L=V.match(/<script\b[^>]*>([\s\S]*?)<\/script>/i);if(L&&!V.includes("client")&&!V.includes('type="module"'))await w(L[1],z,J)}let _=await B(K,z,J,{...N,...I,...Y},new Set),H=_.indexOf(G);if(H===-1)return console.warn("[stx] Shell slot placeholder lost during processing"),null;return{beforeSlot:_.substring(0,H),afterSlot:_.substring(H+G.length),filePath:J,shellScripts:U,shellStyles:W}}catch(Q){return console.error(`[stx] Error processing shell ${J}:`,Q),null}}function kJ(J,Y,Q){let X,$="",Z=Y.match(WJ);if(Z){Y=Y.replace(Z[0],"");try{let K=Buffer.from(Z[1],"base64").toString("utf8"),G=K.match(/<title[^>]*>([\s\S]*?)<\/title>/i);if(G)X=G[1].trim();$=K.replace(/<title[^>]*>[\s\S]*?<\/title>/i,"").trim()}catch{}}let U=Q||X||"stx App",W=jJ(),j="<script>window.__stxRouterConfig={container:'[data-stx-content]'};</script>";return`<!DOCTYPE html>
2
+ import{Bm as P,Bo as i,Cp as h,Ho as T,Jm as k,Zm as c,_m as l,rm as R,sm as O}from"./chunk-tg33an38.js";import{Ks as S,Ms as y}from"./chunk-a8dyw9eg.js";import{Gu as m}from"./chunk-avwywzsj.js";import{Cw as ZJ,Dw as $J,zw as YJ}from"./chunk-swvm1wgn.js";import{Kw as XJ,Nw as q}from"./chunk-ejqpq0wc.js";var r=/\b(?:state|derived|effect|batch|ref|reactive|computed|watch|watchEffect)\s*(?:<[^>]*>)?\s*\(/;function s(J,Y,Q){let X={fullTag:Q,content:Y,attrs:J};if(/\bserver\b/.test(J))return{...X,type:"server"};if(/\bdata-stx-scoped\b/.test(J))return{...X,type:"client"};if(r.test(Y))return{...X,type:"signals"};if(/\bclient\b/.test(J)||/\btype\s*=\s*["']module["']/.test(J)||/\bsrc\s*=/.test(J))return{...X,type:"client"};return{...X,type:"server"}}var o=/^<script\b([^>]*)>([\s\S]*)<\/script\s*>$/i;function C(J){let Y=[],Q=[],X=[],$=0;while($<J.length){let Z=J.indexOf("<",$);if(Z===-1)break;let U=y(J,Z);if(U>Z){$=U;continue}let W=S(J,Z);if(W>Z){let j=J.slice(Z,W),F=o.exec(j);if(F){let K=s(F[1],F[2],j);switch(K.type){case"signals":Y.push(K);break;case"client":Q.push(K);break;case"server":X.push(K);break}}$=W;continue}$=Z+(J.startsWith("<!--",Z)?4:1)}return{signals:Y,client:Q,server:X}}var a=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]);function t(J){let Y=[],Q=/<!--[\s\S]*?(?:-->|$)|<(script|style|textarea|title|template)\b[^>]*>[\s\S]*?<\/\1\s*>/gi,X;while((X=Q.exec(J))!==null)Y.push({start:X.index,end:X.index+X[0].length});return Y}function v(J,Y){return Y.some((Q)=>J>=Q.start&&J<Q.end)}function e(J){let Y=(J||"").trim();if(!Y)return null;if(/[\s>+~,:]/.test(Y))return null;let Q={},X=Y,$=X.match(/^[a-z][\w-]*/i);if($)Q.tag=$[0].toLowerCase(),X=X.slice($[0].length);while(X.length>0){let Z=X.match(/^\[([\w-]+)(?:=(["']?)([^\]"']*)\2)?\]/);if(Z){if(Q.attr=Z[1],Z[3]!==void 0&&Z[3]!=="")Q.attrValue=Z[3];X=X.slice(Z[0].length);continue}let U=X.match(/^#([\w-]+)/);if(U){Q.id=U[1],X=X.slice(U[0].length);continue}let W=X.match(/^\.([\w-]+)/);if(W){Q.className=W[1],X=X.slice(W[0].length);continue}return null}if(!Q.tag&&!Q.attr&&!Q.id&&!Q.className)return null;return Q}function JJ(J,Y){if(Y.attr){if(!(Y.attrValue===void 0?new RegExp(`\\b${Y.attr}(?=[\\s=>/]|$)`,"i"):new RegExp(`\\b${Y.attr}\\s*=\\s*(["'])\\s*${Y.attrValue}\\s*\\1`,"i")).test(J))return!1}if(Y.id){if(!new RegExp(`\\bid\\s*=\\s*(["'])\\s*${Y.id}\\s*\\1`,"i").test(J))return!1}if(Y.className){let Q=J.match(/\bclass\s*=\s*(["'])([\s\S]*?)\1/i);if(!Q)return!1;if(!Q[2].split(/\s+/).includes(Y.className))return!1}return!0}function x(J,Y="main"){let Q=e(Y);if(!Q)return null;let X=/<([a-z][\w-]*)\b([^>]*)>/gi,$=t(J),Z;while((Z=X.exec(J))!==null){if(v(Z.index,$))continue;let U=Z[1].toLowerCase(),W=Z[2]||"";if(W.trimEnd().endsWith("/")||a.has(U))continue;if(Q.tag&&Q.tag!==U)continue;if(!JJ(W,Q))continue;let j=Z[0],F=Z.index+j.length,K=new RegExp(`<(/?)${U}\\b([^>]*)>`,"gi");K.lastIndex=F;let G=1,B;while((B=K.exec(J))!==null){if(v(B.index,$))continue;let w=B[1]==="/";if(!w&&(B[2]||"").trimEnd().endsWith("/"))continue;if(G+=w?-1:1,G===0)return{openTag:j,openIndex:Z.index,start:F,end:B.index,tagName:U}}return null}return null}var NJ="X-STX-Router",_J="private, no-store";function AJ(J){return J.replace(/&#(\d+);/g,(Y,Q)=>f(Number(Q),Y)).replace(/&#x([0-9a-f]+);/gi,(Y,Q)=>f(Number.parseInt(Q,16),Y)).replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,'"').replace(/&apos;/g,"'").replace(/&amp;/g,"&")}function f(J,Y){if(!Number.isInteger(J)||J<0||J>1114111)return Y;try{return String.fromCodePoint(J)}catch{return Y}}function g(J){return J.headers.get("X-STX-Router")==="true"}function QJ(J,Y){if(!J)return Y;return J.split(",").some((X)=>X.trim().toLowerCase()===Y.toLowerCase())?J:`${J}, ${Y}`}function IJ(J){return{Vary:QJ(J,"X-STX-Router")}}import E from"path";YJ();var UJ="stx-page-head:",WJ=/<!--stx-page-head:([A-Za-z0-9+/=]+)-->\n?/,D={dev:null,prod:null};function jJ(){let J=m()?"dev":"prod",Y=D[J];if(Y!==null)return Y;try{let Q=($J(),XJ(ZJ)),X=J==="dev"&&typeof Q.getRouterScriptDev==="function"?Q.getRouterScriptDev:Q.getRouterScript;D[J]=`<script>${X()}</script>`}catch{D[J]=""}return D[J]}async function RJ(J,Y){if(Y===!1)return null;if(Y&&typeof Y==="string"){let X=E.resolve(J,Y);if(await Bun.file(X).exists())return X;return null}let Q=E.join(J,"app.stx");if(await Bun.file(Q).exists())return Q;return null}async function PJ(J,Y){try{let Q=await Bun.file(J).text(),X=Q,$=Q.match(/<template\b[^>]*>([\s\S]*?)<\/template>/i);if($)X=$[1].trim();let Z=C(Q),U=[...Z.client.map((V)=>V.fullTag),...Z.signals.map((V)=>V.fullTag)],W=[],j=/<style\b[^>]*>([\s\S]*?)<\/style>/gi,F;while((F=j.exec(Q))!==null)W.push(F[0]);let K=X;for(let V of Z.server)K=K.replace(V.fullTag,"");for(let V of Z.client)K=K.replace(V.fullTag,"");K=K.replace(/<style\b[^>]*>[\s\S]*?<\/style>/gi,"");let G="<!--__STX_PAGE_SLOT__-->";if(K=K.replace(/<slot\s*\/>/gi,G).replace(/<slot\s*>\s*<\/slot>/gi,G),!K.includes(G))return console.warn(`[stx] Shell ${J} has no <slot /> \u2014 pages won't be injected`),null;let{processDirectives:B,extractVariables:w,defaultConfig:N,loadStxConfig:A}=await import("./chunk-mz459926.js"),I=await A(),z={__filename:J,__dirname:E.dirname(J)};for(let V of U){let L=V.match(/<script\b[^>]*>([\s\S]*?)<\/script>/i);if(L&&!V.includes("client")&&!V.includes('type="module"'))await w(L[1],z,J)}let _=await B(K,z,J,{...N,...I,...Y},new Set),H=_.indexOf(G);if(H===-1)return console.warn("[stx] Shell slot placeholder lost during processing"),null;return{beforeSlot:_.substring(0,H),afterSlot:_.substring(H+G.length),filePath:J,shellScripts:U,shellStyles:W}}catch(Q){return console.error(`[stx] Error processing shell ${J}:`,Q),null}}function kJ(J,Y,Q){let X,$="",Z=Y.match(WJ);if(Z){Y=Y.replace(Z[0],"");try{let K=Buffer.from(Z[1],"base64").toString("utf8"),G=K.match(/<title[^>]*>([\s\S]*?)<\/title>/i);if(G)X=G[1].trim();$=K.replace(/<title[^>]*>[\s\S]*?<\/title>/i,"").trim()}catch{}}let U=Q||X||"stx App",W=jJ(),j="<script>window.__stxRouterConfig={container:'[data-stx-content]'};</script>";return`<!DOCTYPE html>
3
3
  <html lang="en">
4
4
  <head>
5
5
  <meta charset="UTF-8">
@@ -26,5 +26,5 @@ ${W}
26
26
  `));if($.length>0)N.push($.join(`
27
27
  `));if(G.length>0)N.push(G.join(`
28
28
  `));return N.push(K),N.join(`
29
- `)}import M from"fs";import p from"path";function fJ(J,Y,Q){return{version:1,buildTime:new Date().toISOString(),routes:J,assets:Y,outputDir:Q}}function gJ(J,Y){let Q=p.join(Y,"manifest.json");M.writeFileSync(Q,JSON.stringify(J,null,2))}function uJ(J){let Y=p.join(J,"manifest.json");if(!M.existsSync(Y))return null;try{let Q=M.readFileSync(Y,"utf-8"),X=JSON.parse(Q);if(X.version!==1)return console.warn(`[stx] Manifest version mismatch: expected 1, got ${X.version}`),null;return X}catch(Q){return console.warn("[stx] Failed to load manifest:",Q),null}}function b(J,Y,Q={}){let X=`${encodeURIComponent(J)}=${encodeURIComponent(Y)}`;if(Q.maxAge!==void 0)X+=`; Max-Age=${Q.maxAge}`;if(Q.expires)X+=`; Expires=${Q.expires.toUTCString()}`;if(Q.path)X+=`; Path=${Q.path}`;if(Q.domain)X+=`; Domain=${Q.domain}`;if(Q.secure)X+="; Secure";if(Q.httpOnly)X+="; HttpOnly";if(Q.sameSite)X+=`; SameSite=${Q.sameSite}`;return X}async function FJ(J){let Y=J.headers.get("content-type")||"",Q={},X=($,Z)=>{let U=Q[$];if(U===void 0)Q[$]=Z;else if(Array.isArray(U))U.push(Z);else Q[$]=[U,Z]};if(Y.includes("multipart/form-data")){let $=await J.formData();for(let[Z,U]of $.entries())if(typeof U==="string")X(Z,U);return Q}if(Y.includes("application/x-www-form-urlencoded")){for(let[$,Z]of new URLSearchParams(await J.text()).entries())X($,Z);return Q}return Q}function GJ(J){if(!J)return!1;let Y=J.toUpperCase();return Y!=="GET"&&Y!=="HEAD"}async function d(J,Y={}){let Q=Y.request,X=Y.method??Q?.method;if(!Q||!GJ(X))return{ran:!1};if(typeof J.action!=="function")return{ran:!1};let $={};try{$=await FJ(Q)}catch{}let Z=await J.action({request:Q,form:$,params:Y.params??{},query:J.query??{},cookies:Y.cookies??{}});if(Z&&typeof Z==="object"){let U=Z,W=zJ(U.cookies),j=U.redirect;if(typeof j==="string"&&j)return{redirect:j,ran:!0,...W.length>0?{cookies:W}:{}};let{cookies:F,redirect:K,...G}=U;if(Object.assign(J,G),W.length>0)return{ran:!0,cookies:W}}return{ran:!0}}function zJ(J){if(!J||typeof J!=="object"||Array.isArray(J))return[];let Y=[];for(let[Q,X]of Object.entries(J)){if(!Q)continue;if(typeof X==="string"){Y.push(b(Q,X));continue}if(X&&typeof X==="object"){let $=X;if(typeof $.value!=="string")continue;Y.push(b(Q,$.value,$))}}return Y}function dJ(J,Y=[],Q){let X=new Headers({Location:J,"Cache-Control":"no-store"});for(let $ of Y)X.append("Set-Cookie",$);for(let[$,Z]of Object.entries(Q??{}))if($.toLowerCase()!=="location")X.set($,Z);return new Response(null,{status:303,headers:X})}async function aJ(J,Y={}){return(await n(J,Y)).html}async function tJ(J,Y={}){let{html:Q,context:X,redirect:$,cookies:Z}=await n(J,Y),U=c(X),W=l(X);if($)return{html:Q,redirect:$,cookies:Z,status:U,headers:W};let{extractStreamBoundaries:j}=await import("./chunk-es275g3w.js"),F=j(X),K=J.streamTemplates;if(K&&Object.keys(K).length>0){let{processDirectives:G}=await import("./chunk-t83m2pkm.js"),{defaultConfig:B}=await import("./chunk-3pggfwbf.js"),w=X.streamBoundaries||{},N={...B,autoShell:!1},A=Object.keys(K).map((z)=>({id:z,render:async()=>{let _=typeof w[z]==="function"?await w[z]():void 0;return G(K[z],{...X,$boundary:_},J.sourceFile,N,new Set)}})),I=new Set(A.map((z)=>z.id));F=[...(F||[]).filter((z)=>!I.has(z.id)),...A]}return{html:Q,boundaries:F&&F.length>0?F:void 0,cookies:Z,status:U,headers:W}}async function n(J,Y){let Q={__filename:J.sourceFile,__dirname:J.sourceFile.replace(/[/\\][^/\\]+$/,""),...Y};if(!J.hasServerScripts&&!O(J.html))return{html:J.html,context:Q};for(let U of J.serverScriptContent)try{await T(U,Q,J.sourceFile)}catch(W){if(Y.__stx_strict_hydration)throw W;console.warn(`[stx] Server script error in ${J.sourceFile}:`,W)}let X=await d(Q,{request:Y.request,method:Y.method,params:Y.params??{},cookies:Y.cookies??{}}),$=(U)=>{let W=U.replace(/<script\b[^>]*\bdata-stx-server-data\b[^>]*>[\s\S]*?<\/script>/gi,""),j=i(Q);if(!j)return W;let F=W.indexOf("</head>");return F<0?j+W:W.slice(0,F)+j+W.slice(F)};if(X.redirect)return{html:J.html,context:Q,redirect:X.redirect,cookies:X.cookies};if(!O(J.html))return{html:$(J.html),context:Q,cookies:X.cookies};let Z=new Map;for(let[U,W]of Object.entries(J.placeholders))if(W.expression)try{let j=k(W.expression,Q);if(W.type==="raw")Z.set(U,j!==void 0&&j!==null?String(j):"");else Z.set(U,j!==void 0&&j!==null?P(String(j)):"")}catch(j){if(Y.__stx_strict_hydration)throw j;Z.set(U,"")}return{html:$(R(J.html,Z)),context:Q,cookies:X.cookies}}async function eJ(J,Y={}){if(!J.hasServerScripts&&!O(J.fragment))return J.fragment;let Q={__filename:J.sourceFile,__dirname:J.sourceFile.replace(/[/\\][^/\\]+$/,""),...Y};for(let $ of J.serverScriptContent)try{await T($,Q,J.sourceFile)}catch(Z){console.warn(`[stx] Server script error in ${J.sourceFile}:`,Z)}if(!O(J.fragment))return J.fragment;let X=new Map;for(let[$,Z]of Object.entries(J.placeholders))if(Z.expression)try{let U=k(Z.expression,Q);if(Z.type==="raw")X.set($,U!==void 0&&U!==null?String(U):"");else X.set($,U!==void 0&&U!==null?P(String(U)):"")}catch{X.set($,"")}return R(J.fragment,X)}
29
+ `)}import M from"fs";import p from"path";function fJ(J,Y,Q){return{version:1,buildTime:new Date().toISOString(),routes:J,assets:Y,outputDir:Q}}function gJ(J,Y){let Q=p.join(Y,"manifest.json");M.writeFileSync(Q,JSON.stringify(J,null,2))}function uJ(J){let Y=p.join(J,"manifest.json");if(!M.existsSync(Y))return null;try{let Q=M.readFileSync(Y,"utf-8"),X=JSON.parse(Q);if(X.version!==1)return console.warn(`[stx] Manifest version mismatch: expected 1, got ${X.version}`),null;return X}catch(Q){return console.warn("[stx] Failed to load manifest:",Q),null}}function b(J,Y,Q={}){let X=`${encodeURIComponent(J)}=${encodeURIComponent(Y)}`;if(Q.maxAge!==void 0)X+=`; Max-Age=${Q.maxAge}`;if(Q.expires)X+=`; Expires=${Q.expires.toUTCString()}`;if(Q.path)X+=`; Path=${Q.path}`;if(Q.domain)X+=`; Domain=${Q.domain}`;if(Q.secure)X+="; Secure";if(Q.httpOnly)X+="; HttpOnly";if(Q.sameSite)X+=`; SameSite=${Q.sameSite}`;return X}async function FJ(J){let Y=J.headers.get("content-type")||"",Q={},X=($,Z)=>{let U=Q[$];if(U===void 0)Q[$]=Z;else if(Array.isArray(U))U.push(Z);else Q[$]=[U,Z]};if(Y.includes("multipart/form-data")){let $=await J.formData();for(let[Z,U]of $.entries())if(typeof U==="string")X(Z,U);return Q}if(Y.includes("application/x-www-form-urlencoded")){for(let[$,Z]of new URLSearchParams(await J.text()).entries())X($,Z);return Q}return Q}function GJ(J){if(!J)return!1;let Y=J.toUpperCase();return Y!=="GET"&&Y!=="HEAD"}async function d(J,Y={}){let Q=Y.request,X=Y.method??Q?.method;if(!Q||!GJ(X))return{ran:!1};if(typeof J.action!=="function")return{ran:!1};let $={};try{$=await FJ(Q)}catch{}let Z=await J.action({request:Q,form:$,params:Y.params??{},query:J.query??{},cookies:Y.cookies??{}});if(Z&&typeof Z==="object"){let U=Z,W=zJ(U.cookies),j=U.redirect;if(typeof j==="string"&&j)return{redirect:j,ran:!0,...W.length>0?{cookies:W}:{}};let{cookies:F,redirect:K,...G}=U;if(Object.assign(J,G),W.length>0)return{ran:!0,cookies:W}}return{ran:!0}}function zJ(J){if(!J||typeof J!=="object"||Array.isArray(J))return[];let Y=[];for(let[Q,X]of Object.entries(J)){if(!Q)continue;if(typeof X==="string"){Y.push(b(Q,X));continue}if(X&&typeof X==="object"){let $=X;if(typeof $.value!=="string")continue;Y.push(b(Q,$.value,$))}}return Y}function dJ(J,Y=[],Q){let X=new Headers({Location:J,"Cache-Control":"no-store"});for(let $ of Y)X.append("Set-Cookie",$);for(let[$,Z]of Object.entries(Q??{}))if($.toLowerCase()!=="location")X.set($,Z);return new Response(null,{status:303,headers:X})}async function aJ(J,Y={}){return(await n(J,Y)).html}async function tJ(J,Y={}){let{html:Q,context:X,redirect:$,cookies:Z}=await n(J,Y),U=c(X),W=l(X);if($)return{html:Q,redirect:$,cookies:Z,status:U,headers:W};let{extractStreamBoundaries:j}=await import("./chunk-h0ntb2x4.js"),F=j(X),K=J.streamTemplates;if(K&&Object.keys(K).length>0){let{processDirectives:G}=await import("./chunk-1nhpc0hz.js"),{defaultConfig:B}=await import("./chunk-bhjq5phg.js"),w=X.streamBoundaries||{},N={...B,autoShell:!1},A=Object.keys(K).map((z)=>({id:z,render:async()=>{let _=typeof w[z]==="function"?await w[z]():void 0;return G(K[z],{...X,$boundary:_},J.sourceFile,N,new Set)}})),I=new Set(A.map((z)=>z.id));F=[...(F||[]).filter((z)=>!I.has(z.id)),...A]}return{html:Q,boundaries:F&&F.length>0?F:void 0,cookies:Z,status:U,headers:W}}async function n(J,Y){let Q={__filename:J.sourceFile,__dirname:J.sourceFile.replace(/[/\\][^/\\]+$/,""),...Y};if(!J.hasServerScripts&&!O(J.html))return{html:J.html,context:Q};for(let U of J.serverScriptContent)try{await T(U,Q,J.sourceFile)}catch(W){if(Y.__stx_strict_hydration)throw W;console.warn(`[stx] Server script error in ${J.sourceFile}:`,W)}let X=await d(Q,{request:Y.request,method:Y.method,params:Y.params??{},cookies:Y.cookies??{}}),$=(U)=>{let W=U.replace(/<script\b[^>]*\bdata-stx-server-data\b[^>]*>[\s\S]*?<\/script>/gi,""),j=i(Q);if(!j)return W;let F=W.indexOf("</head>");return F<0?j+W:W.slice(0,F)+j+W.slice(F)};if(X.redirect)return{html:J.html,context:Q,redirect:X.redirect,cookies:X.cookies};if(!O(J.html))return{html:$(J.html),context:Q,cookies:X.cookies};let Z=new Map;for(let[U,W]of Object.entries(J.placeholders))if(W.expression)try{let j=k(W.expression,Q);if(W.type==="raw")Z.set(U,j!==void 0&&j!==null?String(j):"");else Z.set(U,j!==void 0&&j!==null?P(String(j)):"")}catch(j){if(Y.__stx_strict_hydration)throw j;Z.set(U,"")}return{html:$(R(J.html,Z)),context:Q,cookies:X.cookies}}async function eJ(J,Y={}){if(!J.hasServerScripts&&!O(J.fragment))return J.fragment;let Q={__filename:J.sourceFile,__dirname:J.sourceFile.replace(/[/\\][^/\\]+$/,""),...Y};for(let $ of J.serverScriptContent)try{await T($,Q,J.sourceFile)}catch(Z){console.warn(`[stx] Server script error in ${J.sourceFile}:`,Z)}if(!O(J.fragment))return J.fragment;let X=new Map;for(let[$,Z]of Object.entries(J.placeholders))if(Z.expression)try{let U=k(Z.expression,Q);if(Z.type==="raw")X.set($,U!==void 0&&U!==null?String(U):"");else X.set($,U!==void 0&&U!==null?P(String(U)):"")}catch{X.set($,"")}return R(J.fragment,X)}
30
30
  export{s as Xf,C as Yf,e as Zf,x as _f,NJ as $f,_J as ag,AJ as bg,g as cg,QJ as dg,IJ as eg,RJ as fg,PJ as gg,kJ as hg,KJ as ig,TJ as jg,SJ as kg,fJ as lg,gJ as mg,uJ as ng,b as og,FJ as pg,GJ as qg,d as rg,dJ as sg,aJ as tg,tJ as ug,eJ as vg};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{$k as c,Zk as a,_k as b,al as d,bl as e,cl as f,dl as g,el as h,fl as i,gl as j,hl as k,il as l,jl as m,kl as n,ll as o}from"./chunk-tnm0nez5.js";import"./chunk-hfvknn03.js";import"./chunk-fvsefztj.js";import"./chunk-zdq7emrd.js";import"./chunk-8y1ve8tc.js";import"./chunk-njx93b4z.js";import"./chunk-bqdfbwdf.js";import"./chunk-89mqnh67.js";import"./chunk-xvh1k1a4.js";import"./chunk-skd72bn4.js";import"./chunk-y2f41kaq.js";import"./chunk-xj6bcwqa.js";import"./chunk-21mmq3aj.js";import"./chunk-vhta1be7.js";import"./chunk-tc4pj651.js";import"./chunk-san1eq0r.js";import"./chunk-avwywzsj.js";import"./chunk-wj21f1e0.js";import"./chunk-d86q27j8.js";import"./chunk-72x62kch.js";import"./chunk-yg5r7bnm.js";import"./chunk-9nrgjtah.js";import"./chunk-ejqpq0wc.js";export{o as tempBuildName,b as shouldLogBundlerDiagnostics,f as setBundlerFallbackMode,l as rewriteRegistryImports,g as resolveBundlerFallback,j as registryIdForPath,c as recordBundleFailure,m as queueClientBundleBuild,k as normalizeRegistrySpecifiers,h as hasUserImports,d as getBundleFailures,a as clientBundleDependencies,e as clearBundleFailures,n as bundleClientScript,i as MODULE_SPECIFIER_PREFIX};
2
+ import{$k as c,Zk as a,_k as b,al as d,bl as e,cl as f,dl as g,el as h,fl as i,gl as j,hl as k,il as l,jl as m,kl as n,ll as o}from"./chunk-pjg5v73e.js";import"./chunk-t255mdy2.js";import"./chunk-fvsefztj.js";import"./chunk-tg33an38.js";import"./chunk-8y1ve8tc.js";import"./chunk-njx93b4z.js";import"./chunk-bqdfbwdf.js";import"./chunk-89mqnh67.js";import"./chunk-xvh1k1a4.js";import"./chunk-a8dyw9eg.js";import"./chunk-y2f41kaq.js";import"./chunk-xj6bcwqa.js";import"./chunk-42akykta.js";import"./chunk-vhta1be7.js";import"./chunk-tc4pj651.js";import"./chunk-san1eq0r.js";import"./chunk-avwywzsj.js";import"./chunk-wj21f1e0.js";import"./chunk-d86q27j8.js";import"./chunk-72x62kch.js";import"./chunk-swvm1wgn.js";import"./chunk-9nrgjtah.js";import"./chunk-ejqpq0wc.js";export{o as tempBuildName,b as shouldLogBundlerDiagnostics,f as setBundlerFallbackMode,l as rewriteRegistryImports,g as resolveBundlerFallback,j as registryIdForPath,c as recordBundleFailure,m as queueClientBundleBuild,k as normalizeRegistrySpecifiers,h as hasUserImports,d as getBundleFailures,a as clientBundleDependencies,e as clearBundleFailures,n as bundleClientScript,i as MODULE_SPECIFIER_PREFIX};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{sl as QJ}from"./chunk-hfvknn03.js";import{tl as WJ}from"./chunk-fvsefztj.js";import{am as GJ,sr as XJ,tr as qJ}from"./chunk-zdq7emrd.js";import{ls as ZJ,ms as $J}from"./chunk-bqdfbwdf.js";import{Fs as YJ,Js as u}from"./chunk-skd72bn4.js";import{nt as c}from"./chunk-y2f41kaq.js";import X from"path";import O from"fs";function UJ(J){if(!J||typeof J!=="object")return!1;let K=J;return typeof K.message==="string"&&(K.name==="BuildMessage"||K.name==="ResolveMessage"||("position"in K))}function LJ(J){if(J&&typeof J==="object"&&Array.isArray(J.errors))return J.errors;return[J]}function b(J,K){let $=[];for(let W of LJ(J)){if(UJ(W)){let Y=W.position||void 0;$.push({file:K||Y?.file,line:Y?.line,column:Y?.column,message:W.message??"",lineText:Y?.lineText});continue}$.push({file:K,message:W instanceof Error?W.message:String(W)})}return $}function t(J,K){return b(J,K).map(($)=>{let W=$.file?`${$.file}${$.line?`:${$.line}${$.column?`:${$.column}`:""}`:""}`:"",Y=$.lineText?`
2
+ import{sl as QJ}from"./chunk-t255mdy2.js";import{tl as WJ}from"./chunk-fvsefztj.js";import{am as GJ,sr as XJ,tr as qJ}from"./chunk-tg33an38.js";import{ls as ZJ,ms as $J}from"./chunk-bqdfbwdf.js";import{Fs as YJ,Js as u}from"./chunk-a8dyw9eg.js";import{nt as c}from"./chunk-y2f41kaq.js";import X from"path";import O from"fs";function UJ(J){if(!J||typeof J!=="object")return!1;let K=J;return typeof K.message==="string"&&(K.name==="BuildMessage"||K.name==="ResolveMessage"||("position"in K))}function LJ(J){if(J&&typeof J==="object"&&Array.isArray(J.errors))return J.errors;return[J]}function b(J,K){let $=[];for(let W of LJ(J)){if(UJ(W)){let Y=W.position||void 0;$.push({file:K||Y?.file,line:Y?.line,column:Y?.column,message:W.message??"",lineText:Y?.lineText});continue}$.push({file:K,message:W instanceof Error?W.message:String(W)})}return $}function t(J,K){return b(J,K).map(($)=>{let W=$.file?`${$.file}${$.line?`:${$.line}${$.column?`:${$.column}`:""}`:""}`:"",Y=$.lineText?`
3
3
  ${$.lineText.trim()}`:"";return W?`${W}: ${$.message}${Y}`:`${$.message}${Y}`}).join(`
4
4
  `)}var TJ=9;function P(J,K,$){return/^(?:(?:stx|ui)\.config\.[cm]?[jt]s|runtime-config-(?:server|loader)\.[cm]?[jt]s)$/.test(X.basename(J))||QJ(J,K,$)}var HJ=1,zJ=new Map,f=600,AJ=100,g=new Map;async function MJ(J){let K=g.get(J)??0;if(K>0&&K<AJ){g.set(J,K+1);return}g.set(J,1);try{let $=(await O.promises.readdir(J)).filter((z)=>z.endsWith(".js"));if($.length<=f)return;let Y=(await Promise.all($.map(async(z)=>{try{return{name:z,at:(await O.promises.stat(X.join(J,z))).mtimeMs}}catch{return null}}))).filter((z)=>z!==null);Y.sort((z,H)=>H.at-z.at);for(let z of Y.slice(f)){let H=z.name.slice(0,-3);await O.promises.rm(X.join(J,`${H}.js`),{force:!0}),await O.promises.rm(X.join(J,`${H}.deps.json`),{force:!0})}x("pruned bundle cache to",f,"entries")}catch{}}function nJ(J){return zJ.get(J)??[]}function h(J,K){if(J)zJ.set(J,K)}function CJ(J=process.env){return J.STX_DEBUG==="true"||J.STX_DEBUG==="1"}function x(...J){if(CJ())console.log("[stx:bundler]",...J)}var n=[];function r(J,K,$){n.push({filePath:J||"<inline>",message:K,details:$})}function oJ(){return n.slice()}function lJ(){n.length=0}var p;function dJ(J){p=J}function a(){if(p)return p;try{let J=qJ.strict;return typeof J==="object"&&J!==null?J.bundlerFallback??"warn":"warn"}catch{return"warn"}}var e=[/^stx$/,/^@stacksjs\/stx$/,/^@stores$/,/^stx\/stores$/,/^@composables$/];function sJ(J){let K=/^[ \t]*import[ \t]+(?!type(?:[ \t]|{))[\s\S]*?\s+from\s+['"]([^'"]+)['"][ \t]*;?/gm,$;while(($=K.exec(J))!==null){let Y=$[1];if(!e.some((H)=>H.test(Y)))return x("detected user import:",Y),!0}let W=/^[ \t]*import[ \t]+['"]([^'"]+)['"]/gm;while(($=W.exec(J))!==null){let Y=$[1];if(/\.css(?:\?.*)?$/.test(Y))continue;if(!e.some((H)=>H.test(Y)))return x("detected side-effect import:",Y),!0}return!1}var v="stx-module:",xJ=/\.(?:[cm]?[jt]sx?|json)$/i;function IJ(J,K){return X.relative(J,K).split(X.sep).join("/")}function _J(J,K){if(K.size===0)return J;return J.replace(/^([ \t]*import\s+(?:[^;"']*?\s+from\s+)?)(["'])([^"']+)\2/gm,($,W,Y,z)=>{let H=K.get(z);return H&&!z.startsWith(v)?`${W}${Y}${H}${Y}`:$})}function NJ(J,K){let $=0,W=(z)=>{let H=`__stxMod${$++}`,j=JSON.stringify(z);return K.push(`var ${H} = globalThis.__stxModules && globalThis.__stxModules[${j}];`,`if (${H} === undefined) throw new Error("[stx] module " + ${JSON.stringify(j)} + " is not registered on this page (#1957)");`),H},Y=(z,H)=>{for(let j of z.split(",")){let T=j.trim();if(!T)continue;let Q=T.match(/^("(?:[^"\\]|\\.)*"|[\w$]+)(?:\s+as\s+([\w$]+))?$/);if(!Q)continue;let Z=Q[1].startsWith('"')?JSON.parse(Q[1]):Q[1],G=Q[2]??Z;K.push(`var ${G} = ${H}[${JSON.stringify(Z)}];`)}};return J=J.replace(/^[ \t]*import\s+([^;"']*?)\s+from\s+["'](stx-module:[^"']+)["'];?[ \t]*$/gm,(z,H,j)=>{let T=j.slice(v.length),Q=W(T),Z=H.trim(),G=Z.match(/^([\w$]+)\s*(?:,\s*|$)/);if(G&&!Z.startsWith("{")&&!Z.startsWith("*"))K.push(`var ${G[1]} = ${Q}.default;`),Z=Z.slice(G[0].length).trim();let q=Z.match(/^\*\s*as\s+([\w$]+)$/);if(q)K.push(`var ${q[1]} = ${Q};`);else if(Z.startsWith("{"))Y(Z.replace(/^\{|\}$/g,""),Q);return""}),J=J.replace(/^[ \t]*import\s+["'](stx-module:[^"']+)["'];?[ \t]*$/gm,(z,H)=>{return W(H.slice(v.length)),""}),J}function JJ(J){let K=[J,`${J}.ts`,`${J}.tsx`,`${J}.js`,`${J}.mjs`,`${J}.jsx`,X.join(J,"index.ts"),X.join(J,"index.tsx"),X.join(J,"index.js"),X.join(J,"index.mjs")];for(let $ of K)try{if(O.existsSync($)&&O.statSync($,{throwIfNoEntry:!1})?.isFile())return $}catch{}return}function SJ(J,K,$,W,Y,z=new Map,H){let j=(Q,Z,G)=>{if(P(Z,J,H))return null;if(!Y||Q!==$||!xJ.test(Z))return null;try{if(!O.statSync(Z,{throwIfNoEntry:!1})?.isFile())return null}catch{return null}W.add(Z);let q=`${v}${IJ(process.cwd(),Z)}`;return z.set(G,q),{path:q,external:!0}},T=(Q,Z)=>{let G=Q===$?K:X.dirname(Q),q=X.resolve(G,Z);return JJ(q)??q};return{name:"stx-client-bundle",setup(Q){if(Q.onResolve({filter:/^(stx|@stacksjs\/stx)$/},(Z)=>({path:Z.path,external:!0})),Q.onResolve({filter:/^(@stores|@composables|stx\/stores)$/},(Z)=>({path:Z.path,external:!0})),Q.onResolve({filter:/^\//},(Z)=>{let G=JJ(Z.path);if(G){let q=j(Z.importer,G,Z.path);if(q)return q;if(G!==$)W.add(G);return{path:G}}return{path:Z.path,external:!0}}),Q.onResolve({filter:/^\.\.?\//},(Z)=>{let G=T(Z.importer,Z.path),q=j(Z.importer,G,Z.path);if(q)return q;return W.add(G),{path:G}}),Q.onResolve({filter:/^[@~]\//},(Z)=>{let G=X.resolve(J,Z.path.slice(2)),q=[G,`${G}.ts`,`${G}.tsx`,`${G}.js`,`${G}.mjs`,`${G}.jsx`,X.join(G,"index.ts"),X.join(G,"index.tsx"),X.join(G,"index.js"),X.join(G,"index.mjs")];for(let w of q)if(O.existsSync(w)&&O.statSync(w,{throwIfNoEntry:!1})?.isFile()){let y=j(Z.importer,w,Z.path);if(y)return y;return x(`resolved ${Z.path[0]}/ import:`,Z.path,"\u2192",w),W.add(w),{path:w}}return console.warn(`[stx:bundler] could not resolve ${Z.path[0]}/ import:`,Z.path),{path:G}}),Y)Q.onResolve({filter:/^(?!node:|bun:)(?:@[\w.-]+\/)?[\w.-]/},(Z)=>{if(Z.importer!==$)return;let G=`${v}npm:${Z.path}`;return z.set(Z.path,G),{path:G,external:!0}});Q.onLoad({filter:/\.(?:[cm]?[jt]sx?|json)$/},(Z)=>{if(P(Z.path,J,H))throw Error(`Server-only API source cannot be imported by a client script: ${Z.path}`);let G=X.extname(Z.path).toLowerCase(),q=G===".json"?"json":G===".tsx"?"tsx":G===".jsx"?"jsx":G===".ts"||G===".mts"||G===".cts"?"ts":"js";if(Z.path!==$)W.add(Z.path);return{contents:O.readFileSync(Z.path,"utf8"),loader:q}})}}}var m=new Map,D=YJ(64),KJ=Symbol.for("stx.client-bundle-build-queue");function yJ(J){let K=globalThis,W=(K[KJ]??Promise.resolve()).then(J,J);return K[KJ]=W.then(()=>{return},()=>{return}),W}async function iJ(J,K,$={}){let W=$.projectRoot||process.cwd(),Y=(await XJ(W)).serverApi,z=$.minify??!1,H=$.externalizeUserModules??!0,j=$.cacheDir||c(W,"bundle-cache"),T=new Bun.CryptoHasher("md5");T.update(`${TJ}\x00${WJ()}\x00${JSON.stringify(Y??!1)}\x00${H?"registry":"inline"}\x00${J}\x00${K}`);let Q=T.digest("hex").slice(0,12),Z=X.join(j,`${Q}.js`),G=D.get(Z);if(G){if(u(G.files)&&G.files.every((A)=>!P(A.path,W,Y))){x("memo hit:",Q);let A=G.files.map((M)=>M.path);return h(K,A),$.collectInputs?.push(...A),G.code}D.delete(Z),x("memo invalidated by dep change:",Q)}let q=X.join(j,`${Q}.deps.json`),w=Bun.file(Z);if(await w.exists()){let A=Bun.file(q),M=!1,U=null;if(await A.exists())try{let N=JSON.parse(await A.text());if(N.metadataVersion!==HJ||!Array.isArray(N.files))M=!1;else U=N.files,M=!0;if(U&&(!u(U)||U.some((B)=>P(B.path,W,Y))))M=!1}catch{M=!1}if(M){if(x("cache hit:",Q),U)h(K,U.map((B)=>B.path)),$.collectInputs?.push(...U.map((B)=>B.path));let N=await w.text();if(U)D.set(Z,{code:N,files:U});return N}x("cache invalidated by dep change:",Q)}let y=m.get(Q);if(y){let A=await y;if($.collectInputs)$.collectInputs.push(...(D.get(Z)?.files??[]).map((M)=>M.path));return A}let I=yJ(()=>FJ(J,K,{projectRoot:W,minify:z,cacheDir:j,hash:Q,cachePath:Z,depsPath:q,collectInputs:$.collectInputs,externalizeUserModules:H,serverApi:Y}));m.set(Q,I);try{return await I}finally{m.delete(Q)}}var BJ=0;function RJ(J){return`${J}-${process.pid}-${++BJ}`}async function FJ(J,K,$){let{projectRoot:W,minify:Y,cacheDir:z,hash:H,cachePath:j,depsPath:T,externalizeUserModules:Q}=$,Z=c(W,"bundle-tmp"),G=RJ(H),q=X.join(Z,`${G}.ts`),w=X.join(Z,"out",G);O.mkdirSync(Z,{recursive:!0}),O.mkdirSync(w,{recursive:!0});let y=X.dirname(K),I=new Set,A=/^[ \t]*(export\s+)?(?:const|let|var)\s+(?:\{([^}]+)\}|(\w+))/gm,M=/^[ \t]*(export\s+)?(?:async\s+)?function\s+(\w+)/gm,U=ZJ(J),{depths:N,balanced:B}=$J(U),o=(L)=>!B||N[L]===0,C;while((C=A.exec(U))!==null){if(C[1])continue;if(!o(C.index))continue;if(C[2])C[2].split(",").forEach((L)=>{let k=DJ(L);if(k)I.add(k)});else if(C[3])I.add(C[3])}while((C=M.exec(U))!==null){if(C[1])continue;if(!o(C.index))continue;I.add(C[2])}let VJ=I.size>0?`
5
5
  export { ${[...I].join(", ")} }`:"";await Bun.write(q,J+VJ),x("bundling:",H,"from:",X.basename(K));let l=new Set,d=new Map;try{let L=await Bun.build({entrypoints:[q],outdir:w,target:"browser",format:"esm",minify:Y,plugins:[SJ(W,y,q,l,Q,d,$.serverApi)],define:{"process.env.NODE_ENV":Y?'"production"':'"development"',...GJ()},root:W});if(!L.success){let S=L.logs.filter((R)=>R.level==="error").map((R)=>R.message).join(", ")||`Unable to bundle ${X.basename(K)}`,F=b(L.logs,K||void 0);if(console.warn("[stx:bundler] build failed:",S),r(K||"",S,F),a()==="error")throw Error(S);return J}let k="";for(let V of L.outputs){k=await V.text();break}let _=[];for(let V of k.matchAll(/^\s*export\s*\{([^}]*)\}\s*;?\s*$/gm))for(let S of V[1].split(",")){let F=S.trim().match(/^([A-Za-z_$][\w$]*)\s+as\s+([A-Za-z_$][\w$]*)$/);if(F){_.push([F[2],F[1]]);continue}let R=S.trim();if(/^[A-Za-z_$][\w$]*$/.test(R))_.push([R,R])}let s=[];k=NJ(_J(k,d),s);let kJ=k.match(/^\s*import\s+[^;]+;?\s*$/gm)||[];k=k.replace(/^\s*import\s+[^;]+;?\s*$/gm,"").replace(/^\s*export\s*\{[^}]*\}\s*;?\s*$/gm,"").replace(/^\s*export\s+default\s+.*$/gm,"").trim();let i=`__stxBundle_${H}`,jJ=_.map(([V,S])=>`${JSON.stringify(V)}: ${S}`).join(", "),OJ=_.map(([V])=>`var ${V} = undefined;`).join(`
@@ -1,3 +1,3 @@
1
1
  // @bun
2
- import{Am as b}from"./chunk-zdq7emrd.js";import{kv as L,ov as R}from"./chunk-avwywzsj.js";function P(j,U){let Q=1,J=U,B="<template",z="</template";while(J<j.length&&Q>0){let G=j.indexOf("<",J);if(G===-1)break;if(J=G,j.startsWith(B,J)&&(J+B.length>=j.length||/[\s>\/]/.test(j[J+B.length]))){Q++,J+=B.length;continue}if(j.startsWith(z,J)){let W=j.indexOf(">",J+z.length);if(W!==-1){if(Q--,Q===0)return W+1;J=W+1;continue}}J++}return Q===0?J:-1}var F=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]);function O(j,U){let Q=null;for(let J=U;J<j.length;J++){let B=j[J];if(Q){if(B==="\\"){J++;continue}if(B===Q)Q=null;continue}if(B==='"'||B==="'"){Q=B;continue}if(B===">")return J+1}return-1}function I(j,U,Q){let J=U.toLowerCase(),B=1,z=Q;while(z<j.length){let G=j.indexOf("<",z);if(G===-1)return-1;if(j.startsWith("<!--",G)){let $=j.indexOf("-->",G+4);z=$===-1?j.length:$+3;continue}let W=O(j,G+1);if(W===-1)return-1;let Z=j.slice(G,W),Y=Z.match(/^<\s*(\/?)\s*([a-zA-Z][\w-]*)/);if(Y&&Y[2].toLowerCase()===J){if(Y[1]==="/"){if(B--,B===0)return W}else if(!/\/\s*>$/.test(Z))B++}z=W}return-1}function w(j){let U=[],Q=[],J=/\bslot\s*=\s*(?:"([^"]+)"|'([^']+)')/i,B=0;while(B<j.length){let z=j.indexOf("<",B);if(z===-1)break;if(j.startsWith("<!--",z)){let X=j.indexOf("-->",z+4);B=X===-1?j.length:X+3;continue}let G=O(j,z+1);if(G===-1)break;let W=j.slice(z,G),Z=W.match(/^<\s*(\/?)\s*([a-zA-Z][\w-]*)/);if(!Z){B=G;continue}let Y=Z[2].toLowerCase();if(Z[1]==="/"){let X=Q.lastIndexOf(Y);if(X!==-1)Q.splice(X);B=G;continue}let $=/\/\s*>$/.test(W),K=Q.length===0?W.match(J):null;if(K){let X=K[1]||K[2],H=W.replace(J,"").replace(/\s+(?=\/?>$)/,"").replace(/\s{2,}/g," "),_=$||F.has(Y)?-1:I(j,Y,G);if(_===-1)U.push({start:z,end:G,slotName:X,element:H}),B=G;else U.push({start:z,end:_,slotName:X,element:H+j.slice(G,_)}),B=_;continue}if(!$&&!F.has(Y)){if(Q.push(Y),Y==="script"||Y==="style"){let X=j.toLowerCase().indexOf(`</${Y}>`,G);if(X!==-1){B=X;continue}}}B=G}return U}function D(j){let U=[],Q=[],J=/^<template\s+(?:#([a-zA-Z][\w-]*)|v-slot:([a-zA-Z][\w-]*)|slot="([a-zA-Z][\w-]*)")(?:\s*=\s*"([^"]*)")?[^>]*>$/i,B=0;while(B<j.length){let z=j.indexOf("<",B);if(z===-1)break;if(j.startsWith("<!--",z)){let X=j.indexOf("-->",z+4);B=X===-1?j.length:X+3;continue}let G=O(j,z+1);if(G===-1)break;let W=j.slice(z,G),Z=W.match(/^<\s*(\/?)\s*([a-zA-Z][\w-]*)/);if(!Z){B=G;continue}let Y=Z[1]==="/",$=Z[2].toLowerCase();if(Y){let X=Q.lastIndexOf($);if(X!==-1)Q.splice(X);B=G;continue}if($==="template"&&Q.length===0){let X=W.match(J);if(X){let H=P(j,G);if(H!==-1){let _=X[1]||X[2]||X[3];U.push({start:z,end:H,slotName:_,content:j.slice(G,H-11).trim(),propsBinding:X[4]||void 0}),B=H;continue}}}if(!/\/\s*>$/.test(W)&&!F.has($)){if(Q.push($),$==="script"||$==="style"){let X=j.toLowerCase().indexOf(`</${$}>`,G);if(X!==-1){B=X;continue}}}B=G}return U}function v(j){let U={default:"",named:new Map},Q=j,J=D(j);for(let z of J)U.named.set(z.slotName,{name:z.slotName,content:z.content,propsBinding:z.propsBinding});J.sort((z,G)=>G.start-z.start);for(let z of J)Q=Q.slice(0,z.start)+Q.slice(z.end);let B=w(Q);for(let z of B){let G=U.named.get(z.slotName);if(G)G.content+=z.element;else U.named.set(z.slotName,{name:z.slotName,content:z.element})}for(let z=B.length-1;z>=0;z--){let G=B[z];Q=Q.slice(0,G.start)+Q.slice(G.end)}return U.default=Q.trim(),U}function S(j){let U=j.match(/name\s*=\s*["']([^"']+)["']/),Q=U?U[1]:"",J={},B=/:([a-zA-Z][\w-]*)\s*=\s*["']([^"']+)["']/g,z;while((z=B.exec(j))!==null)J[z[1]]=z[2];let G=j.match(/<slot[^>]*>([\s\S]*?)<\/slot>/i),W=G?G[1].trim():"";return{name:Q,props:J,defaultContent:W}}async function k(j,U,Q,J){if(!j)return Q;let B=j.content;if(j.propsBinding&&Object.keys(U).length>0){let z=j.propsBinding.trim(),G={...J};if(z.startsWith("{")&&z.endsWith("}")){let W=z.slice(1,-1).split(",").map((Z)=>Z.trim()).filter(Boolean);for(let Z of W){let[Y,$]=Z.split(":").map((X)=>X.trim()),K=$||Y;if(U[Y]!==void 0)G[K]=U[Y]}}else G[z]=U;B=N(B,G)}return B}function N(j,U){return j.replace(/\{\{\s*([^}]+)\s*\}\}/g,(Q,J)=>{try{let B=J.trim(),z=y(B,U);return b(String(z??""))}catch{return`{{ ${J} }}`}})}function y(j,U){if(/^[a-zA-Z_$][\w$]*(\.[a-zA-Z_$][\w$]*)*$/.test(j)){let J=j.split("."),B=U;for(let z of J)if(B&&typeof B==="object"&&z in B)B=B[z];else return;return B}let Q=j.match(/^([a-zA-Z_$][\w$]*)\s*([+\-*/])\s*(\d+)$/);if(Q){let[,J,B,z]=Q,G=U[J],W=parseInt(z,10);if(typeof G==="number")switch(B){case"+":return G+W;case"-":return G-W;case"*":return G*W;case"/":return G/W}}try{if(!L(j))return;return R(j,Object.keys(U))(...Object.values(U))}catch{return}}async function T(j,U,Q){let J=j;J=await C(J,/<slot\s+name\s*=\s*["']([^"']+)["']([^>]*?)(?:\/>|>([\s\S]*?)<\/slot>)/gi,async(G,W,Z,Y)=>{let $=U.named.get(W),K=Y?.trim()||"",X=Z||"",H={},_=/:([a-zA-Z_$][\w$-]*)\s*=\s*["']([^"']+)["']/g,q;while((q=_.exec(X))!==null){let A=q[1],V=q[2];H[A]=y(V,Q)}return await k($,H,K,Q)});let z=/<slot\b((?:"[^"]*"|'[^']*'|[^>"'])*?)\s*(?:\/>|>([\s\S]*?)<\/slot>)/gi;return J=J.replace(z,(G,W,Z)=>{if(/\bname\s*=/.test(W||""))return G;let Y=Z?.trim()||"";return U.default||Y}),J}async function C(j,U,Q){let J=[],B=[];j.replace(U,(W,...Z)=>{let Y=Z[Z.length-2];return B.push({match:W,index:Y}),J.push(Q(W,...Z.slice(0,-2))),W});let z=await Promise.all(J),G=j;for(let W=B.length-1;W>=0;W--){let{match:Z,index:Y}=B[W];G=G.slice(0,Y)+z[W]+G.slice(Y+Z.length)}return G}function E(j){let U=v(j);return{defaultSlot:U.default,namedSlots:U.named}}async function x(j,U,Q,J){return await T(j,{default:U,named:Q},J)}
2
+ import{Am as b}from"./chunk-tg33an38.js";import{kv as L,ov as R}from"./chunk-avwywzsj.js";function P(j,U){let Q=1,J=U,B="<template",z="</template";while(J<j.length&&Q>0){let G=j.indexOf("<",J);if(G===-1)break;if(J=G,j.startsWith(B,J)&&(J+B.length>=j.length||/[\s>\/]/.test(j[J+B.length]))){Q++,J+=B.length;continue}if(j.startsWith(z,J)){let W=j.indexOf(">",J+z.length);if(W!==-1){if(Q--,Q===0)return W+1;J=W+1;continue}}J++}return Q===0?J:-1}var F=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]);function O(j,U){let Q=null;for(let J=U;J<j.length;J++){let B=j[J];if(Q){if(B==="\\"){J++;continue}if(B===Q)Q=null;continue}if(B==='"'||B==="'"){Q=B;continue}if(B===">")return J+1}return-1}function I(j,U,Q){let J=U.toLowerCase(),B=1,z=Q;while(z<j.length){let G=j.indexOf("<",z);if(G===-1)return-1;if(j.startsWith("<!--",G)){let $=j.indexOf("-->",G+4);z=$===-1?j.length:$+3;continue}let W=O(j,G+1);if(W===-1)return-1;let Z=j.slice(G,W),Y=Z.match(/^<\s*(\/?)\s*([a-zA-Z][\w-]*)/);if(Y&&Y[2].toLowerCase()===J){if(Y[1]==="/"){if(B--,B===0)return W}else if(!/\/\s*>$/.test(Z))B++}z=W}return-1}function w(j){let U=[],Q=[],J=/\bslot\s*=\s*(?:"([^"]+)"|'([^']+)')/i,B=0;while(B<j.length){let z=j.indexOf("<",B);if(z===-1)break;if(j.startsWith("<!--",z)){let X=j.indexOf("-->",z+4);B=X===-1?j.length:X+3;continue}let G=O(j,z+1);if(G===-1)break;let W=j.slice(z,G),Z=W.match(/^<\s*(\/?)\s*([a-zA-Z][\w-]*)/);if(!Z){B=G;continue}let Y=Z[2].toLowerCase();if(Z[1]==="/"){let X=Q.lastIndexOf(Y);if(X!==-1)Q.splice(X);B=G;continue}let $=/\/\s*>$/.test(W),K=Q.length===0?W.match(J):null;if(K){let X=K[1]||K[2],H=W.replace(J,"").replace(/\s+(?=\/?>$)/,"").replace(/\s{2,}/g," "),_=$||F.has(Y)?-1:I(j,Y,G);if(_===-1)U.push({start:z,end:G,slotName:X,element:H}),B=G;else U.push({start:z,end:_,slotName:X,element:H+j.slice(G,_)}),B=_;continue}if(!$&&!F.has(Y)){if(Q.push(Y),Y==="script"||Y==="style"){let X=j.toLowerCase().indexOf(`</${Y}>`,G);if(X!==-1){B=X;continue}}}B=G}return U}function D(j){let U=[],Q=[],J=/^<template\s+(?:#([a-zA-Z][\w-]*)|v-slot:([a-zA-Z][\w-]*)|slot="([a-zA-Z][\w-]*)")(?:\s*=\s*"([^"]*)")?[^>]*>$/i,B=0;while(B<j.length){let z=j.indexOf("<",B);if(z===-1)break;if(j.startsWith("<!--",z)){let X=j.indexOf("-->",z+4);B=X===-1?j.length:X+3;continue}let G=O(j,z+1);if(G===-1)break;let W=j.slice(z,G),Z=W.match(/^<\s*(\/?)\s*([a-zA-Z][\w-]*)/);if(!Z){B=G;continue}let Y=Z[1]==="/",$=Z[2].toLowerCase();if(Y){let X=Q.lastIndexOf($);if(X!==-1)Q.splice(X);B=G;continue}if($==="template"&&Q.length===0){let X=W.match(J);if(X){let H=P(j,G);if(H!==-1){let _=X[1]||X[2]||X[3];U.push({start:z,end:H,slotName:_,content:j.slice(G,H-11).trim(),propsBinding:X[4]||void 0}),B=H;continue}}}if(!/\/\s*>$/.test(W)&&!F.has($)){if(Q.push($),$==="script"||$==="style"){let X=j.toLowerCase().indexOf(`</${$}>`,G);if(X!==-1){B=X;continue}}}B=G}return U}function v(j){let U={default:"",named:new Map},Q=j,J=D(j);for(let z of J)U.named.set(z.slotName,{name:z.slotName,content:z.content,propsBinding:z.propsBinding});J.sort((z,G)=>G.start-z.start);for(let z of J)Q=Q.slice(0,z.start)+Q.slice(z.end);let B=w(Q);for(let z of B){let G=U.named.get(z.slotName);if(G)G.content+=z.element;else U.named.set(z.slotName,{name:z.slotName,content:z.element})}for(let z=B.length-1;z>=0;z--){let G=B[z];Q=Q.slice(0,G.start)+Q.slice(G.end)}return U.default=Q.trim(),U}function S(j){let U=j.match(/name\s*=\s*["']([^"']+)["']/),Q=U?U[1]:"",J={},B=/:([a-zA-Z][\w-]*)\s*=\s*["']([^"']+)["']/g,z;while((z=B.exec(j))!==null)J[z[1]]=z[2];let G=j.match(/<slot[^>]*>([\s\S]*?)<\/slot>/i),W=G?G[1].trim():"";return{name:Q,props:J,defaultContent:W}}async function k(j,U,Q,J){if(!j)return Q;let B=j.content;if(j.propsBinding&&Object.keys(U).length>0){let z=j.propsBinding.trim(),G={...J};if(z.startsWith("{")&&z.endsWith("}")){let W=z.slice(1,-1).split(",").map((Z)=>Z.trim()).filter(Boolean);for(let Z of W){let[Y,$]=Z.split(":").map((X)=>X.trim()),K=$||Y;if(U[Y]!==void 0)G[K]=U[Y]}}else G[z]=U;B=N(B,G)}return B}function N(j,U){return j.replace(/\{\{\s*([^}]+)\s*\}\}/g,(Q,J)=>{try{let B=J.trim(),z=y(B,U);return b(String(z??""))}catch{return`{{ ${J} }}`}})}function y(j,U){if(/^[a-zA-Z_$][\w$]*(\.[a-zA-Z_$][\w$]*)*$/.test(j)){let J=j.split("."),B=U;for(let z of J)if(B&&typeof B==="object"&&z in B)B=B[z];else return;return B}let Q=j.match(/^([a-zA-Z_$][\w$]*)\s*([+\-*/])\s*(\d+)$/);if(Q){let[,J,B,z]=Q,G=U[J],W=parseInt(z,10);if(typeof G==="number")switch(B){case"+":return G+W;case"-":return G-W;case"*":return G*W;case"/":return G/W}}try{if(!L(j))return;return R(j,Object.keys(U))(...Object.values(U))}catch{return}}async function T(j,U,Q){let J=j;J=await C(J,/<slot\s+name\s*=\s*["']([^"']+)["']([^>]*?)(?:\/>|>([\s\S]*?)<\/slot>)/gi,async(G,W,Z,Y)=>{let $=U.named.get(W),K=Y?.trim()||"",X=Z||"",H={},_=/:([a-zA-Z_$][\w$-]*)\s*=\s*["']([^"']+)["']/g,q;while((q=_.exec(X))!==null){let A=q[1],V=q[2];H[A]=y(V,Q)}return await k($,H,K,Q)});let z=/<slot\b((?:"[^"]*"|'[^']*'|[^>"'])*?)\s*(?:\/>|>([\s\S]*?)<\/slot>)/gi;return J=J.replace(z,(G,W,Z)=>{if(/\bname\s*=/.test(W||""))return G;let Y=Z?.trim()||"";return U.default||Y}),J}async function C(j,U,Q){let J=[],B=[];j.replace(U,(W,...Z)=>{let Y=Z[Z.length-2];return B.push({match:W,index:Y}),J.push(Q(W,...Z.slice(0,-2))),W});let z=await Promise.all(J),G=j;for(let W=B.length-1;W>=0;W--){let{match:Z,index:Y}=B[W];G=G.slice(0,Y)+z[W]+G.slice(Y+Z.length)}return G}function E(j){let U=v(j);return{defaultSlot:U.default,namedSlots:U.named}}async function x(j,U,Q,J){return await T(j,{default:U,named:Q},J)}
3
3
  export{v as Kg,S as Lg,k as Mg,T as Ng,E as Og,x as Pg};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{$v as k,Aw as K,Bw as L,Dw as M,Rv as a,Sv as b,Tv as c,Uv as d,Vv as e,Wv as f,Xv as g,Yv as h,Zv as i,_v as j,aw as l,bw as m,cw as n,dw as o,ew as p,fw as q,gw as r,hw as s,iw as t,jw as u,kw as v,lw as w,mw as x,nw as y,ow as z,pw as A,qw as B,rw as C,sw as D,tw as E,uw as F,vw as G,ww as H,xw as I,yw as J}from"./chunk-yg5r7bnm.js";import"./chunk-ejqpq0wc.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};
2
+ import{$v as k,Aw as K,Bw as L,Dw as M,Rv as a,Sv as b,Tv as c,Uv as d,Vv as e,Wv as f,Xv as g,Yv as h,Zv as i,_v as j,aw as l,bw as m,cw as n,dw as o,ew as p,fw as q,gw as r,hw as s,iw as t,jw as u,kw as v,lw as w,mw as x,nw as y,ow as z,pw as A,qw as B,rw as C,sw as D,tw as E,uw as F,vw as G,ww as H,xw as I,yw as J}from"./chunk-swvm1wgn.js";import"./chunk-ejqpq0wc.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{kk as a,lk as b,mk as c,nk as d}from"./chunk-k80kr2t2.js";import"./chunk-vw83y4we.js";import"./chunk-zdq7emrd.js";import"./chunk-8y1ve8tc.js";import"./chunk-njx93b4z.js";import"./chunk-bqdfbwdf.js";import"./chunk-89mqnh67.js";import"./chunk-xvh1k1a4.js";import"./chunk-skd72bn4.js";import"./chunk-y2f41kaq.js";import"./chunk-xj6bcwqa.js";import"./chunk-21mmq3aj.js";import"./chunk-vhta1be7.js";import"./chunk-tc4pj651.js";import"./chunk-san1eq0r.js";import"./chunk-avwywzsj.js";import"./chunk-wj21f1e0.js";import"./chunk-d86q27j8.js";import"./chunk-72x62kch.js";import"./chunk-yg5r7bnm.js";import"./chunk-9nrgjtah.js";import"./chunk-ejqpq0wc.js";export{b as getAvailableTargets,c as getAvailableFormats,d as default,a as buildNative};
2
+ import{kk as a,lk as b,mk as c,nk as d}from"./chunk-f32by983.js";import"./chunk-djrrczet.js";import"./chunk-tg33an38.js";import"./chunk-8y1ve8tc.js";import"./chunk-njx93b4z.js";import"./chunk-bqdfbwdf.js";import"./chunk-89mqnh67.js";import"./chunk-xvh1k1a4.js";import"./chunk-a8dyw9eg.js";import"./chunk-y2f41kaq.js";import"./chunk-xj6bcwqa.js";import"./chunk-42akykta.js";import"./chunk-vhta1be7.js";import"./chunk-tc4pj651.js";import"./chunk-san1eq0r.js";import"./chunk-avwywzsj.js";import"./chunk-wj21f1e0.js";import"./chunk-d86q27j8.js";import"./chunk-72x62kch.js";import"./chunk-swvm1wgn.js";import"./chunk-9nrgjtah.js";import"./chunk-ejqpq0wc.js";export{b as getAvailableTargets,c as getAvailableFormats,d as default,a as buildNative};
@@ -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{Ho as V}from"./chunk-zdq7emrd.js";import"./chunk-8y1ve8tc.js";import"./chunk-njx93b4z.js";import"./chunk-bqdfbwdf.js";import"./chunk-89mqnh67.js";import"./chunk-xvh1k1a4.js";import"./chunk-skd72bn4.js";import"./chunk-y2f41kaq.js";import"./chunk-xj6bcwqa.js";import"./chunk-21mmq3aj.js";import"./chunk-vhta1be7.js";import"./chunk-tc4pj651.js";import"./chunk-san1eq0r.js";import"./chunk-avwywzsj.js";import"./chunk-wj21f1e0.js";import"./chunk-d86q27j8.js";import"./chunk-72x62kch.js";import"./chunk-yg5r7bnm.js";import"./chunk-9nrgjtah.js";import{Nw as F}from"./chunk-ejqpq0wc.js";import l from"fs";import R from"path";function m(z,J){let Z=[R.join(z.root,"stx.config.ts"),R.join(z.root,"stx.config.js"),R.join(z.root,"stx.config.mjs")],K=J.debounceMs??300,$=null,X=[];for(let B of Z)try{if(!l.existsSync(B))continue;let Y=l.watch(B,(W)=>{if(W==="change"){if($)clearTimeout($);$=setTimeout(async()=>{d("Config file changed, restarting...");try{await J.onChange()}catch(j){G(`Failed to restart: ${j}`)}},K)}});X.push(Y)}catch{}return{stop(){if($)clearTimeout($);for(let B of X)B.close()}}}import E from"fs";import i from"path";var Gz=".stx/story/analytics.json",Nz=1,c=1e4;class M{storage;storagePath;currentSession=null;dirty=!1;viewStartTimes=new Map;constructor(z){this.storagePath=i.join(z,Gz),this.storage=this.loadStorage(),this.startSession()}loadStorage(){try{let z=E.readFileSync(this.storagePath,"utf-8");return JSON.parse(z)}catch{return{version:Nz,events:[],sessions:[]}}}async save(){if(!this.dirty)return;let z=i.dirname(this.storagePath);if(await E.promises.mkdir(z,{recursive:!0}),this.storage.events.length>c)this.storage.events=this.storage.events.slice(-c);await E.promises.writeFile(this.storagePath,JSON.stringify(this.storage,null,2)),this.dirty=!1}startSession(){this.endSession(),this.currentSession={id:Hz(),startTime:Date.now(),componentViews:[]},this.storage.sessions.push(this.currentSession),this.dirty=!0}endSession(){if(this.currentSession)this.currentSession.endTime=Date.now(),this.currentSession=null}track(z){this.storage.events.push({...z,timestamp:Date.now()}),this.dirty=!0}trackView(z,J){if(this.endViewTiming(z),this.viewStartTimes.set(z,Date.now()),this.track({type:"view",componentId:z,variantId:J}),this.currentSession&&!this.currentSession.componentViews.includes(z))this.currentSession.componentViews.push(z)}endViewTiming(z){let J=this.viewStartTimes.get(z);if(J){let Z=Date.now()-J;this.track({type:"view",componentId:z,metadata:{duration:Z,endView:!0}}),this.viewStartTimes.delete(z)}}trackPropChange(z,J,Z){this.track({type:"prop_change",componentId:z,propName:J,metadata:{value:Z}})}trackVariantSwitch(z,J){this.track({type:"variant_switch",componentId:z,variantId:J})}trackSearch(z,J){this.track({type:"search",query:z,metadata:{resultCount:J}})}getComponentAnalytics(z,J){let Z=this.storage.events.filter((Q)=>Q.componentId===z),K=Z.filter((Q)=>Q.type==="view"&&!Q.metadata?.endView),$=Z.filter((Q)=>Q.type==="prop_change"),X=Z.filter((Q)=>Q.type==="variant_switch"),B={};for(let Q of $)if(Q.propName)B[Q.propName]=(B[Q.propName]||0)+1;let Y={};for(let Q of X)if(Q.variantId)Y[Q.variantId]=(Y[Q.variantId]||0)+1;let W=new Set(this.storage.sessions.filter((Q)=>Q.componentViews.includes(z)).map((Q)=>Q.id)),j=Z.filter((Q)=>Q.metadata?.duration).map((Q)=>Q.metadata.duration),U=j.length>0?j.reduce((Q,D)=>Q+D,0)/j.length:0,_=Object.entries(B).sort((Q,D)=>D[1]-Q[1]).slice(0,5).map(([Q])=>Q);return{componentId:z,componentName:J,viewCount:K.length,uniqueViews:W.size,lastViewed:K[K.length-1]?.timestamp,propChanges:B,topChangedProps:_,variantViews:Y,avgTimeSpent:U}}getMostViewedComponents(z=10){let J=new Map;for(let Z of this.storage.events)if(Z.type==="view"&&Z.componentId&&!Z.metadata?.endView)J.set(Z.componentId,(J.get(Z.componentId)||0)+1);return Array.from(J.entries()).map(([Z,K])=>({componentId:Z,viewCount:K})).sort((Z,K)=>K.viewCount-Z.viewCount).slice(0,z)}getMostChangedProps(z=10){let J=new Map;for(let Z of this.storage.events)if(Z.type==="prop_change"&&Z.propName)J.set(Z.propName,(J.get(Z.propName)||0)+1);return Array.from(J.entries()).map(([Z,K])=>({propName:Z,changeCount:K})).sort((Z,K)=>K.changeCount-Z.changeCount).slice(0,z)}getSearchAnalytics(){let z=this.storage.events.filter(($)=>$.type==="search"),J=new Map,Z=0;for(let $ of z){if($.query)J.set($.query,(J.get($.query)||0)+1);if($.metadata?.resultCount!==void 0)Z+=$.metadata.resultCount}let K=Array.from(J.entries()).map(([$,X])=>({query:$,count:X})).sort(($,X)=>X.count-$.count).slice(0,10);return{totalSearches:z.length,topQueries:K,avgResultCount:z.length>0?Z/z.length:0}}clear(){this.storage.events=[],this.storage.sessions=[],this.dirty=!0,this.startSession()}exportAnalytics(){return JSON.stringify({exportedAt:Date.now(),...this.storage},null,2)}}function Hz(){return`session-${Date.now()}-${Math.random().toString(36).slice(2,8)}`}import P from"fs";import p from"path";var Fz=".stx/story/bookmarks.json",Vz=1;class T{storage;storagePath;dirty=!1;constructor(z){this.storagePath=p.join(z,Fz),this.storage=this.loadStorage()}loadStorage(){try{let z=P.readFileSync(this.storagePath,"utf-8");return JSON.parse(z)}catch{return{version:Vz,bookmarks:[]}}}async save(){if(!this.dirty)return;let z=p.dirname(this.storagePath);await P.promises.mkdir(z,{recursive:!0}),await P.promises.writeFile(this.storagePath,JSON.stringify(this.storage,null,2)),this.dirty=!1}addBookmark(z,J,Z,K={}){let $={id:Rz(),name:K.name||`${z}/${J}`,storyId:z,variantId:J,props:Z,created:Date.now(),notes:K.notes,color:K.color};return this.storage.bookmarks.push($),this.dirty=!0,$}getAllBookmarks(){return[...this.storage.bookmarks]}getBookmarksForStory(z){return this.storage.bookmarks.filter((J)=>J.storyId===z)}getBookmark(z){return this.storage.bookmarks.find((J)=>J.id===z)}isBookmarked(z,J){return this.storage.bookmarks.some((Z)=>Z.storyId===z&&Z.variantId===J)}updateBookmark(z,J){let Z=this.getBookmark(z);if(!Z)return;return Object.assign(Z,J),this.dirty=!0,Z}deleteBookmark(z){let J=this.storage.bookmarks.findIndex((Z)=>Z.id===z);if(J===-1)return!1;return this.storage.bookmarks.splice(J,1),this.dirty=!0,!0}toggleBookmark(z,J,Z){let K=this.storage.bookmarks.find((X)=>X.storyId===z&&X.variantId===J);if(K)return this.deleteBookmark(K.id),{added:!1};return{added:!0,bookmark:this.addBookmark(z,J,Z)}}exportBookmarks(){return JSON.stringify(this.storage,null,2)}importBookmarks(z,J=!0){let Z=JSON.parse(z),K=0;for(let $ of Z.bookmarks){if(J){let X=this.storage.bookmarks.find((B)=>B.id===$.id);if(X)Object.assign(X,$);else this.storage.bookmarks.push($)}else this.storage.bookmarks.push($);K++}if(K>0)this.dirty=!0;return K}}function Rz(){return`bm-${Date.now()}-${Math.random().toString(36).slice(2,8)}`}var N=new Set;function s(){return{open(z){N.add(z),z.send(JSON.stringify({type:"connected",timestamp:Date.now()}))},close(z){N.delete(z)},message(z,J){}}}function q(z){let J=JSON.stringify({...z,timestamp:z.timestamp||Date.now()});for(let Z of N)try{Z.send(J)}catch{N.delete(Z)}}function n(z,J){q({type:"story-update",data:{storyId:z,...J}})}function a(z,J){q({type:"story-add",data:{storyId:z,...J}})}function o(z){q({type:"story-remove",data:{storyId:z}})}function r(z){return`
2
+ import{a as x,b as u,c as b,d as Az,e as G,f as d,h as y,i as I,j as Uz,k as v}from"./chunk-0y46fbkx.js";import{l as h,m as f,n as g}from"./chunk-q9n5swx7.js";import{Ho as V}from"./chunk-tg33an38.js";import"./chunk-8y1ve8tc.js";import"./chunk-njx93b4z.js";import"./chunk-bqdfbwdf.js";import"./chunk-89mqnh67.js";import"./chunk-xvh1k1a4.js";import"./chunk-a8dyw9eg.js";import"./chunk-y2f41kaq.js";import"./chunk-xj6bcwqa.js";import"./chunk-42akykta.js";import"./chunk-vhta1be7.js";import"./chunk-tc4pj651.js";import"./chunk-san1eq0r.js";import"./chunk-avwywzsj.js";import"./chunk-wj21f1e0.js";import"./chunk-d86q27j8.js";import"./chunk-72x62kch.js";import"./chunk-swvm1wgn.js";import"./chunk-9nrgjtah.js";import{Nw as F}from"./chunk-ejqpq0wc.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-t83m2pkm.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-t83m2pkm.js"),B={...Z},Y=A(J);if(Y)try{await V(Y,B,"inline-template.stx")}catch{}let j=await X(J,B,"inline-template.stx",{},new Set);return j=jz(j),j=Dz(j,B),{html:j,css:Wz(J),js:A(J),errors:$,duration:performance.now()-K}}catch(X){return $.push(X instanceof Error?X.message:String(X)),{html:`<div class="stx-render-error">${Lz($[0])}</div>`,css:"",js:"",errors:$,duration:performance.now()-K}}}function Wz(z){let J=[],Z=/<style\b[^>]*>([\s\S]*?)<\/style>/gi,K=Z.exec(z);while(K!==null)J.push(K[1].trim()),K=Z.exec(z);return J.join(`
559
+ `}import w from"fs";import Xz from"path";var Mz=".stx/story/presets.json",C=1,Pz=10;class k{storage;storagePath;dirty=!1;constructor(z){this.storagePath=Xz.join(z,Mz),this.storage=this.loadStorage()}loadStorage(){try{let z=w.readFileSync(this.storagePath,"utf-8"),J=JSON.parse(z);if(J.version!==C)return this.migrateStorage(J);return J}catch{return{version:C,presets:[],recentIds:[]}}}migrateStorage(z){return{version:C,presets:z.presets||[],recentIds:z.recentIds||[]}}async save(){if(!this.dirty)return;let z=Xz.dirname(this.storagePath);await w.promises.mkdir(z,{recursive:!0}),await w.promises.writeFile(this.storagePath,JSON.stringify(this.storage,null,2)),this.dirty=!1}createPreset(z,J,Z={}){let K={id:Tz(),name:z,description:Z.description,props:J,componentId:Z.componentId,created:Date.now(),usageCount:0,tags:Z.tags};return this.storage.presets.push(K),this.dirty=!0,K}getPreset(z){return this.storage.presets.find((J)=>J.id===z)}getAllPresets(){return[...this.storage.presets]}getPresetsForComponent(z){return this.storage.presets.filter((J)=>!J.componentId||J.componentId===z)}getRecentPresets(){return this.storage.recentIds.map((z)=>this.getPreset(z)).filter((z)=>z!==void 0)}usePreset(z){let J=this.getPreset(z);if(!J)return;return J.lastUsed=Date.now(),J.usageCount++,this.storage.recentIds=[z,...this.storage.recentIds.filter((Z)=>Z!==z)].slice(0,Pz),this.dirty=!0,J}updatePreset(z,J){let Z=this.getPreset(z);if(!Z)return;return Object.assign(Z,J),this.dirty=!0,Z}deletePreset(z){let J=this.storage.presets.findIndex((Z)=>Z.id===z);if(J===-1)return!1;return this.storage.presets.splice(J,1),this.storage.recentIds=this.storage.recentIds.filter((Z)=>Z!==z),this.dirty=!0,!0}searchPresets(z){let J=z.toLowerCase();return this.storage.presets.filter((Z)=>{if(Z.name.toLowerCase().includes(J))return!0;if(Z.description?.toLowerCase().includes(J))return!0;if(Z.tags?.some((K)=>K.toLowerCase().includes(J)))return!0;return!1})}getMostUsedPresets(z=5){return[...this.storage.presets].sort((J,Z)=>Z.usageCount-J.usageCount).slice(0,z)}exportPresets(z){let J=z?this.storage.presets.filter((Z)=>z.includes(Z.id)):this.storage.presets;return JSON.stringify({presets:J},null,2)}importPresets(z,J=!1){let Z=JSON.parse(z),K=0;for(let $ of Z.presets){let X=this.storage.presets.find((B)=>B.id===$.id);if(X&&!J)continue;if(X)Object.assign(X,$);else this.storage.presets.push($);K++}if(K>0)this.dirty=!0;return K}}function Tz(){return`preset-${Date.now()}-${Math.random().toString(36).slice(2,8)}`}import S from"fs";var Qz=new Map;async function H(z,J,Z={}){let K=performance.now(),$=[];try{let X=await S.promises.stat(J),B=Qz.get(J),Y;if(B&&B.mtime===X.mtimeMs)Y=B.content;else Y=await S.promises.readFile(J,"utf-8"),Qz.set(J,{content:Y,mtime:X.mtimeMs,analyzed:null});let{processDirectives:W}=await import("./chunk-1nhpc0hz.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-1nhpc0hz.js"),B={...Z},Y=A(J);if(Y)try{await V(Y,B,"inline-template.stx")}catch{}let j=await X(J,B,"inline-template.stx",{},new Set);return j=jz(j),j=Dz(j,B),{html:j,css:Wz(J),js:A(J),errors:$,duration:performance.now()-K}}catch(X){return $.push(X instanceof Error?X.message:String(X)),{html:`<div class="stx-render-error">${Lz($[0])}</div>`,css:"",js:"",errors:$,duration:performance.now()-K}}}function Wz(z){let J=[],Z=/<style\b[^>]*>([\s\S]*?)<\/style>/gi,K=Z.exec(z);while(K!==null)J.push(K[1].trim()),K=Z.exec(z);return J.join(`
560
560
  `)}function jz(z){return z.replace(/<!--[\s\S]*?-->/g,"").replace(/<style\b[^>]*>[\s\S]*?<\/style>/gi,"").replace(/<script\b[^>]*>[\s\S]*?<\/script>/gi,"").replace(/^\s*\n/gm,"").trim()}function A(z){let J=[],Z=/<script\b[^>]*>([\s\S]*?)<\/script>/gi,K=Z.exec(z);while(K!==null)J.push(K[1].trim()),K=Z.exec(z);return J.join(`
561
561
  `)}function Dz(z,J){let Z=`<script>window.__stxProps = ${JSON.stringify(J)};</script>`;return z+Z}function Lz(z){return z.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}async function Oz(z,J){let Z=await I(z);f(z,Z);let K=v(z.config,Z);g(z,K),console.log(` Found ${Z.length} story files`);let $=typeof J.host==="string"?J.host:J.host===!0?"0.0.0.0":"localhost",X=new k(z.root),B=new T(z.root),Y=new M(z.root),W=s(),j=Bun.serve({port:J.port,hostname:$,fetch:async(Q,D)=>{let O=new URL(Q.url).pathname;if(O==="/__hmr"){if(D.upgrade(Q,{data:{isHmr:!0}}))return;return new Response("WebSocket upgrade failed",{status:400})}if(O.startsWith("/api/"))return Cz(z,O,Q,{presetsManager:X,bookmarksManager:B,analyticsTracker:Y});return kz(z,O,J.port)},websocket:{open(Q){W.open(Q)},close(Q){W.close(Q)},message(Q,D){W.message(Q,D)}}}),U=`http://${$}:${J.port}`,_=Uz(z,async(Q,D)=>{console.log(` [${Q}] ${D.relativePath}`);let L=await I(z);f(z,L);let O=v(z.config,L);if(g(z,O),Q==="add")a(D.id,{fileName:D.fileName});else if(Q==="unlink")o(D.id);else n(D.id,{fileName:D.fileName})});if(J.open){let Q=U;try{let{exec:D}=await import("child_process"),L=process.platform;D(`${L==="darwin"?"open":L==="win32"?"start":"xdg-open"} ${Q}`)}catch{}}return{server:j,url:U,close:async()=>{_(),j.stop()}}}async function Cz(z,J,Z,K){let{presetsManager:$,bookmarksManager:X,analyticsTracker:B}=K;if(J==="/api/stories")return Response.json({files:z.storyFiles.map((Y)=>({id:Y.id,fileName:Y.fileName,relativePath:Y.relativePath,treePath:Y.treePath})),tree:z.tree});if(J.startsWith("/api/story/")){let Y=J.slice(11),W=z.storyFiles.find((j)=>j.id===Y);if(!W)return new Response("Story not found",{status:404});try{let j=await Bun.file(W.path).text();return Response.json({id:W.id,fileName:W.fileName,relativePath:W.relativePath,content:j})}catch{return new Response("Error reading story",{status:500})}}if(J==="/api/config")return Response.json({theme:z.config.theme,responsivePresets:z.config.responsivePresets,backgroundPresets:z.config.backgroundPresets});if(J.startsWith("/api/render/")){let Y=new URL(Z.url),W=J.slice(12).split("/"),j=W[0],U=W[1]||"default",_,Q=Y.searchParams.get("props");if(Q)try{_=JSON.parse(Q)}catch{}let D=z.storyFiles.find((L)=>L.id===j);if(!D)return new Response("Story not found",{status:404});try{let L=await Bz(z,D,U,_);return Response.json({html:L.html,css:L.css,js:L.js,errors:L.errors,duration:L.duration})}catch(L){return Response.json({html:"",css:"",js:"",errors:[L instanceof Error?L.message:String(L)],duration:0},{status:500})}}if(J==="/api/presets"&&Z.method==="GET")return Response.json({presets:$.getAllPresets()});if(J==="/api/presets"&&Z.method==="POST")try{let Y=await Z.json(),W=$.createPreset(Y.name,Y.props,{componentId:Y.componentId,description:Y.description});return await $.save(),Response.json(W)}catch(Y){return Response.json({error:String(Y)},{status:400})}if(J.startsWith("/api/presets/")&&!J.includes("/use")&&Z.method==="GET"){let Y=J.slice(13),W=$.getPreset(Y);if(!W)return new Response("Preset not found",{status:404});return Response.json(W)}if(J.endsWith("/use")&&Z.method==="POST"){let Y=J.slice(13,-4),W=$.usePreset(Y);if(!W)return new Response("Preset not found",{status:404});return await $.save(),Response.json(W)}if(J.startsWith("/api/presets/")&&Z.method==="DELETE"){let Y=J.slice(13);if(!$.deletePreset(Y))return new Response("Preset not found",{status:404});return await $.save(),Response.json({success:!0})}if(J==="/api/bookmarks"&&Z.method==="GET")return Response.json({bookmarks:X.getAllBookmarks()});if(J==="/api/bookmarks"&&Z.method==="POST")try{let Y=await Z.json(),W=X.addBookmark(Y.storyId,Y.variantId,Y.props,{name:Y.name,notes:Y.notes,color:Y.color});return await X.save(),Response.json(W)}catch(Y){return Response.json({error:String(Y)},{status:400})}if(J==="/api/bookmarks/toggle"&&Z.method==="POST")try{let Y=await Z.json(),W=X.toggleBookmark(Y.storyId,Y.variantId,Y.props);return await X.save(),Response.json(W)}catch(Y){return Response.json({error:String(Y)},{status:400})}if(J.startsWith("/api/bookmarks/")&&J!=="/api/bookmarks/toggle"&&Z.method==="GET"){let Y=J.slice(15),W=X.getBookmark(Y);if(!W)return new Response("Bookmark not found",{status:404});return Response.json(W)}if(J.startsWith("/api/bookmarks/")&&Z.method==="DELETE"){let Y=J.slice(15);if(!X.deleteBookmark(Y))return new Response("Bookmark not found",{status:404});return await X.save(),Response.json({success:!0})}if(J==="/api/analytics/track"&&Z.method==="POST")try{let Y=await Z.json();if(Y.type==="view"&&Y.componentId)B.trackView(Y.componentId,Y.variantId);else if(Y.type==="prop_change"&&Y.componentId&&Y.propName)B.trackPropChange(Y.componentId,Y.propName,null);else if(Y.type==="variant_switch"&&Y.componentId&&Y.variantId)B.trackVariantSwitch(Y.componentId,Y.variantId);else if(Y.type==="search"&&Y.query)B.trackSearch(Y.query,0);return await B.save(),Response.json({success:!0})}catch(Y){return Response.json({error:String(Y)},{status:400})}if(J==="/api/analytics/summary"&&Z.method==="GET")return Response.json({mostViewed:B.getMostViewedComponents(10),mostChangedProps:B.getMostChangedProps(10),searchAnalytics:B.getSearchAnalytics()});if(J.startsWith("/api/analytics/component/")&&Z.method==="GET"){let Y=J.slice(25),W=z.storyFiles.find((U)=>U.id===Y),j=B.getComponentAnalytics(Y,W?.fileName||Y);return Response.json(j)}return new Response("Not found",{status:404})}function kz(z,J,Z){let K=Sz(z,Z);return new Response(K,{headers:{"Content-Type":"text/html; charset=utf-8"}})}function Sz(z,J){let{theme:Z}=z.config,K=Z.title||"STX Story",$=`ws://localhost:${J}/__hmr`,X=r($);return`<!DOCTYPE html>
562
562
  <html lang="en" class="${Z.darkClass||"dark"}">
@@ -2078,9 +2078,24 @@ else {
2078
2078
  // point at this path, exactly one is.
2079
2079
  var have=new URLSearchParams(location.search),q=true;
2080
2080
  u.searchParams.forEach(function(v,k){if(have.getAll(k).indexOf(v)===-1)q=false});
2081
+ // EXACT is the stricter half (stacksjs/stx#2017). A link with NO query
2082
+ // satisfied the loop above trivially, so a bare /list reported itself exact
2083
+ // on /list?status=up - taking exact-active-class and aria-current from the
2084
+ // chip the user was actually on, and telling a screen reader the unfiltered
2085
+ // link was the current page.
2086
+ //
2087
+ // Only a link with no query at all is held to the stricter test, which is
2088
+ // what keeps #1777 working: a range picker's /dashboard?site=1&range=7d is
2089
+ // still exact on /dashboard?site=1&range=7d&country=US, because a page
2090
+ // filter the link does not name should not unmark the range it IS on. The
2091
+ // two requests look opposed and are not - one is about a link naming MORE
2092
+ // than the page, the other about a link naming NOTHING.
2093
+ var linkHasQuery=false;
2094
+ u.searchParams.forEach(function(){linkHasQuery=true});
2095
+ var sameQuery=q&&(linkHasQuery||!location.search);
2081
2096
  var matched=matchesAny(also,cur);
2082
2097
  return {
2083
- exact:q&&path===cur,
2098
+ exact:sameQuery&&path===cur,
2084
2099
  active:q&&(path==='/'?cur==='/':(cur===path||cur.indexOf(path+'/')===0))||matched,
2085
2100
  matched:matched
2086
2101
  };
@@ -2132,12 +2147,21 @@ else {
2132
2147
  // Only ever touched on links that already carry the attribute or are the
2133
2148
  // current one, so a page using aria-current for something else \u2014 a step in a
2134
2149
  // wizard, a sort direction \u2014 is not rewritten out from under itself.
2150
+ //
2151
+ // Cleared for 'true' as well as 'page' (#2017). Both say "this is the current
2152
+ // one" with no further meaning, and a consumer working around a missing
2153
+ // aria-current by stamping aria-current="true" server-side kept it forever:
2154
+ // the router neither updated nor removed it, so after one navigation it named
2155
+ // the wrong link and the workaround was worse than the bug. The role-specific
2156
+ // values - step, location, date, time - are still left alone, because those
2157
+ // ARE the page using the attribute for something else.
2135
2158
  function markCurrent(link,isExact){
2159
+ var now=link.getAttribute('aria-current');
2136
2160
  if(isExact){
2137
- if(link.getAttribute('aria-current')!=='page')link.setAttribute('aria-current','page');
2161
+ if(now!=='page')link.setAttribute('aria-current','page');
2138
2162
  return;
2139
2163
  }
2140
- if(link.getAttribute('aria-current')==='page')link.removeAttribute('aria-current');
2164
+ if(now==='page'||now==='true')link.removeAttribute('aria-current');
2141
2165
  }
2142
2166
 
2143
2167
  // \u2500\u2500 Progress bar DOM + style \u2500\u2500