@stacksjs/stx 0.2.405 → 0.2.406
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-yt9mq4m7.js → chunk-1nnskved.js} +1 -1
- package/dist/{chunk-c7n0gsxa.js → chunk-1yvx8s3v.js} +1 -1
- package/dist/{chunk-s68jqmva.js → chunk-2c23jad1.js} +1 -1
- package/dist/{chunk-et9knn3s.js → chunk-4g4yz97f.js} +1 -1
- package/dist/{chunk-65yty69p.js → chunk-4hqaxar9.js} +1 -1
- package/dist/{chunk-rrkjjyqb.js → chunk-53x9hrx3.js} +1 -1
- package/dist/{chunk-ad7q7zff.js → chunk-5e2d3grq.js} +1 -1
- package/dist/{chunk-rjkgqegg.js → chunk-5s44f83p.js} +1 -1
- package/dist/{chunk-anwxcm8j.js → chunk-62btdm51.js} +1 -1
- package/dist/{chunk-78rd6wxv.js → chunk-63dyh42m.js} +1 -1
- package/dist/{chunk-h8ej17sj.js → chunk-69c5rv6n.js} +8 -8
- package/dist/{chunk-cvtxk36x.js → chunk-6cbjhg0y.js} +1 -1
- package/dist/{chunk-241cvbas.js → chunk-8vg5tpts.js} +1 -1
- package/dist/{chunk-2xr974bj.js → chunk-9dap2hdv.js} +1 -1
- package/dist/{chunk-g6c4f67z.js → chunk-arjhs9bb.js} +1 -1
- package/dist/{chunk-fnabq4w1.js → chunk-ayhhvep9.js} +1 -1
- package/dist/{chunk-sw89c1b7.js → chunk-b26mjv83.js} +1 -1
- package/dist/{chunk-hs9g1dpr.js → chunk-bmfg13wx.js} +1 -1
- package/dist/{chunk-2ryg907a.js → chunk-ccct2hsa.js} +1 -1
- package/dist/{chunk-jrzw9782.js → chunk-d8yksesg.js} +1 -1
- package/dist/{chunk-ybm9ac7z.js → chunk-db6fm81v.js} +1 -1
- package/dist/{chunk-6efr4j9h.js → chunk-f02g2h4p.js} +1 -1
- package/dist/{chunk-1309n807.js → chunk-g81ymdat.js} +1 -1
- package/dist/{chunk-fwvbmmb3.js → chunk-gxc02n32.js} +1 -1
- package/dist/{chunk-a8ypw36d.js → chunk-gyccx2pr.js} +1 -1
- package/dist/{chunk-zcrb5hgk.js → chunk-h1yb87ep.js} +1 -1
- package/dist/{chunk-fg48tp2x.js → chunk-hch1t137.js} +1 -1
- package/dist/{chunk-gg3hm3kq.js → chunk-jc5kqj3t.js} +1 -1
- package/dist/{chunk-nqpd84vs.js → chunk-k3wcezqg.js} +2 -2
- package/dist/{chunk-0ek2mj5x.js → chunk-k6vz8455.js} +1 -1
- package/dist/{chunk-pmy5k4kn.js → chunk-m7b67r66.js} +1 -1
- package/dist/{chunk-5fwgczvh.js → chunk-me7ypzw9.js} +1 -1
- package/dist/{chunk-pvzbsjcw.js → chunk-mtata78t.js} +1 -1
- package/dist/{chunk-w9v7fstr.js → chunk-pqskmpz0.js} +1 -1
- package/dist/{chunk-k66qphdp.js → chunk-qa333652.js} +1 -1
- package/dist/{chunk-qdc3yj82.js → chunk-qcbn5mrw.js} +1 -1
- package/dist/{chunk-a389vxsn.js → chunk-rctgq5xp.js} +2 -2
- package/dist/{chunk-y8hp05y6.js → chunk-s1gwy2rp.js} +1 -1
- package/dist/{chunk-w9b94q64.js → chunk-sjc7x8y1.js} +17 -17
- package/dist/{chunk-4k471790.js → chunk-wszdgqe3.js} +1 -1
- package/dist/{chunk-rstz7e7c.js → chunk-xqz9dqef.js} +1 -1
- package/dist/{chunk-dgd8jyaz.js → chunk-xvsz1qy3.js} +1 -1
- package/dist/{chunk-vfjccz8p.js → chunk-xz870mf2.js} +1 -1
- package/dist/{chunk-n9cgqg0x.js → chunk-yn8qq8tn.js} +1 -1
- package/dist/{chunk-kdabbmbf.js → chunk-z80v5h5h.js} +1 -1
- package/dist/{chunk-jndc710n.js → chunk-zawdn9z8.js} +1 -1
- package/dist/{chunk-rwwt24e3.js → chunk-zgzzn9qk.js} +1 -1
- package/dist/{chunk-c8kfqw8x.js → chunk-znt6t1dz.js} +2 -2
- package/dist/cli.js +7 -7
- package/dist/craft-entry.js +1 -1
- package/dist/craft.js +1 -1
- package/dist/pwa.js +1 -1
- package/dist/signal-processing.js +5 -0
- package/dist/ssg.js +2 -2
- package/package.json +5 -5
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{$i as k,Ri as a,Si as b,Ti as c,Ui as d,Vi as e,Wi as f,Xi as g,Yi as h,Zi as i,_i as j,aj as l,bj as m,cj as n}from"./chunk-
|
|
2
|
+
import{$i as k,Ri as a,Si as b,Ti as c,Ui as d,Vi as e,Wi as f,Xi as g,Yi as h,Zi as i,_i as j,aj as l,bj as m,cj as n}from"./chunk-9dap2hdv.js";import"./chunk-sjc7x8y1.js";import"./chunk-ffdxdgep.js";import"./chunk-m8bdy2wt.js";import"./chunk-0n054h7w.js";import"./chunk-wpsx5avz.js";import"./chunk-tfy07tmv.js";import"./chunk-4g4yz97f.js";import"./chunk-pgeh4g3a.js";import"./chunk-z9a0ft6h.js";import"./chunk-h1yb87ep.js";import"./chunk-7q06md6v.js";import"./chunk-1phxzej9.js";import"./chunk-7ba7x6jt.js";import"./chunk-akzmq0jr.js";import"./chunk-c1f1vtjt.js";import"./chunk-0nhpymyy.js";import"./chunk-4md4tj27.js";import"./chunk-z8zmp74b.js";import"./chunk-qcpnfw0k.js";import"./chunk-59pakqdv.js";import"./chunk-x7qyx7vn.js";export{i as streamingSuspenseDirective,m as streamToResponse,g as streamTemplateSimple,a as streamTemplate,d as renderStreamingPage,k as registerStreamingDirectives,e as processStreamDirectives,l as processSectionDirectives,j as islandDirective,n as generateHydrationRuntime,f as extractStreamBoundaries,h as createStreamRenderer,b as buildSuspenseResolveScript,c as SUSPENSE_RESOLVER_RUNTIME};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{$ as om,$a as so,$b as Dp,$c as Dq,$d as Dr,A as _k,Aa as Dn,Ab as Xo,Ac as cq,Ad as cr,Ae as is,B as $k,Ba as En,Bb as Yo,Bc as dq,Bd as dr,Be as js,C as al,Ca as Fn,Cb as Zo,Cc as eq,Cd as er,Ce as ks,D as bl,Da as Gn,Db as _o,Dc as fq,Dd as fr,De as ls,E as cl,Ea as Hn,Eb as $o,Ec as gq,Ed as gr,Ee as ms,F as dl,Fa as Un,Fb as ap,Fc as hq,Fd as hr,Fe as ns,G as el,Ga as Vn,Gb as bp,Gc as iq,Gd as ir,Ge as os,H as Wl,Ha as Wn,Hb as cp,Hc as jq,Hd as jr,He as ps,I as Xl,Ia as Xn,Ib as dp,Ic as kq,Id as kr,Ie as qs,J as Yl,Ja as Yn,Jb as ep,Jc as lq,Jd as lr,Je as rs,K as Zl,Ka as Zn,Kb as fp,Kc as mq,Kd as mr,Ke as ss,L as _l,La as bo,Lb as gp,Lc as nq,Ld as nr,Le as ts,M as $l,Ma as co,Mb as hp,Mc as oq,Md as or,Me as us,N as am,Na as eo,Nb as ip,Nc as pq,Nd as pr,Ne as vs,O as bm,Oa as fo,Ob as jp,Oc as qq,Od as qr,P as cm,Pa as go,Pb as kp,Pc as rq,Pd as rr,Q as dm,Qa as ho,Qb as sp,Qc as sq,Qd as sr,R as em,Ra as io,Rb as tp,Rc as tq,Rd as tr,S as fm,Sa as jo,Sb as up,Sc as uq,Sd as ur,T as gm,Ta as ko,Tb as vp,Tc as vq,Td as vr,U as hm,Ua as lo,Ub as wp,Uc as wq,Ud as wr,V as im,Va as mo,Vb as xp,Vc as xq,Vd as xr,W as jm,Wa as no,Wb as yp,Wc as yq,Wd as yr,X as km,Xa as oo,Xb as zp,Xc as zq,Xd as zr,Y as lm,Ya as po,Yb as Ap,Yc as Aq,Yd as Ar,Z as mm,Za as qo,Zb as Bp,Zc as Bq,Zd as Br,_ as nm,_a as ro,_b as Cp,_c as Cq,_d as Cr,aa as pm,ab as to,ac as Ep,ad as Eq,ae as Er,ba as qm,bb as uo,bc as Fp,bd as Fq,be as Fr,ca as rm,cb as vo,cc as Gp,cd as Gq,ce as Gr,da as sm,db as wo,dc as Hp,dd as Hq,de as Hr,ea as tm,eb as xo,ec as Ip,ed as Iq,ee as Or,fa as um,fb as yo,fc as Jp,fd as Jq,fe as Pr,ga as vm,gb as zo,gc as Kp,gd as Kq,ge as Qr,ha as wm,hb as Ao,hc as Lp,hd as Lq,he as Rr,ia as xm,ib as Bo,ic as Mp,id as Mq,ie as Sr,ja as ym,jb as Co,jc as Np,jd as Nq,je as Tr,ka as zm,kb as Do,kc as Op,kd as Oq,ke as Ur,la as Am,lb as Eo,lc as Pp,ld as Pq,le as Vr,ma as Bm,mb as Fo,mc as Qp,md as Qq,me as Wr,na as Cm,nb as Go,nc as Rp,nd as Rq,ne as Xr,o as a,oa as Dm,ob as Ho,oc as Sp,od as Sq,oe as Yr,p as Lk,pa as Em,pb as Io,pc as Tp,pd as Tq,pe as Zr,q as Mk,qa as Fm,qb as Lo,qc as Up,qd as Uq,qe as _r,r as Nk,ra as Gm,rb as Mo,rc as Vp,rd as Vq,re as $r,s as Ok,sa as vn,sb as No,sc as Wp,sd as Wq,se as as,t as Pk,ta as wn,tb as Oo,tc as Xp,td as Xq,te as bs,u as Qk,ua as xn,ub as Qo,uc as Yp,ud as Yq,ue as cs,v as Rk,va as yn,vb as Ro,vc as Zp,vd as Zq,ve as ds,w as Sk,wa as zn,wb as So,wc as _p,wd as _q,we as es,x as Tk,xa as An,xb as To,xc as $p,xd as $q,xe as fs,y as Yk,ya as Bn,yb as Vo,yc as aq,yd as ar,ye as gs,z as Zk,za as Cn,zb as Wo,zc as bq,zd as br,ze as hs}from"./chunk-h8ej17sj.js";import{Oe as lp,Pe as mp,Qe as np,Re as op,Se as pp,Te as qp,Ue as rp}from"./chunk-g6c4f67z.js";import{Ve as Jo,We as Ko}from"./chunk-pkspqh0m.js";import{Xe as Po}from"./chunk-fnabq4w1.js";import{Ye as un}from"./chunk-n9cgqg0x.js";import{$e as ao,Ze as _n,_e as $n,af as Uo}from"./chunk-kdabbmbf.js";import{bf as fl,cf as gl,df as hl,ef as il,ff as jl,gf as kl,hf as ll,if as ml,jf as nl,kf as ol,lf as pl,mf as ql,nf as rl,of as sl,pf as tl}from"./chunk-ewxbx67c.js";import{Af as Ul,Bf as Vl,qf as Kl,rf as Ll,sf as Ml,tf as Nl,uf as Ol,vf as Pl,wf as Ql,xf as Rl,yf as Sl,zf as Tl}from"./chunk-0tnsyynz.js";import{Cf as Il,Df as Jl}from"./chunk-rx0cntdm.js";import{Ef as ul,Ff as vl,Gf as wl,Hf as xl,If as yl,Jf as zl,Kf as Al,Mf as Bl,Nf as Cl,Of as Dl,Pf as El,Qf as Fl,Rf as Gl,Uf as Hl}from"./chunk-vtmhh3dp.js";import{Vf as cn,Wf as dn,Xf as en,Yf as fn,Zf as gn,_f as tn}from"./chunk-5fwgczvh.js";import{$f as Hm,Ag as sn,ag as Im,bg as Jm,cg as Km,dg as Lm,eg as Mm,fg as Nm,gg as Om,hg as Pm,ig as Qm,jg as Rm,kg as Sm,lg as Tm,mg as Um,ng as Vm,og as Wm,pg as Xm,qg as hn,rg as jn,sg as kn,tg as ln,ug as mn,vg as nn,wg as on,xg as pn,yg as qn,zg as rn}from"./chunk-a389vxsn.js";import{Bg as Ym,Cg as Zm}from"./chunk-1n2ng8nx.js";import{Dg as In,Eg as Jn,Fg as Kn,Gg as Ln,Hg as Mn,Ig as Nn,Jg as On,Kg as Pn,Lg as Qn,Mg as Rn,Ng as Sn,Og as Tn}from"./chunk-vtjegbgy.js";import{Pg as ui,Qg as vi,Rg as wi,Sg as xi,Tg as yi,Ug as zi}from"./chunk-1309n807.js";import{$g as Sj,Vg as Pj,Wg as Qj,Xg as Rj,ah as Tj,bh as Uj}from"./chunk-aa4ss5pb.js";import{ch as _j,dh as $j,eh as ak,fh as bk,gh as ck,hh as dk,ih as ek,jh as fk,kh as gk,lh as hk,mh as ik}from"./chunk-ca57sg6v.js";import{nh as Fj,oh as Gj,ph as Hj,qh as Ij,rh as Jj,th as Kj,uh as Lj,vh as Mj,wh as Nj,xh as Oj}from"./chunk-mywrb5fy.js";import{Ah as Bk,yh as Ak}from"./chunk-4m4n1sfc.js";import{Gh as Ph,Hh as Qh,Ih as Rh,Jh as Sh,Kh as Th,Lh as Uh}from"./chunk-rkzfwgr8.js";import{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,Wh as ci,Xh as di,Yh as ei,Zh as fi,_h as gi}from"./chunk-n4197kjq.js";import{ai as hi,bi as ii,ci as ji,di as ki}from"./chunk-k4x5we49.js";import{ii as li}from"./chunk-6de3hczw.js";import{li as oh}from"./chunk-y8hp05y6.js";import{mi as ph}from"./chunk-8mm86z5w.js";import{ni as qh,oi as rh}from"./chunk-seqmzr8k.js";import{pi as sh,qi as th,ri as uh,si as vh,ti as wh,ui as xh}from"./chunk-55g4qm7m.js";import{vi as yh,wi as zh,xi as Ah,yi as Bh,zi as Ch}from"./chunk-twg0y6ga.js";import{Ai as Dh,Bi as Eh,Ci as Fh,Di as Gh,Ei as Hh}from"./chunk-015p3jq5.js";import{Fi as Ih,Gi as Jh,Hi as Kh,Ii as Lh,Ji as Mh,Ki as Nh,Li as Oh}from"./chunk-ypw4egcv.js";import{Mi as mh,Ni as nh}from"./chunk-a8ypw36d.js";import"./chunk-g0w8dyat.js";import{$i as Ze,Ri as Pe,Si as Qe,Ti as Re,Ui as Se,Vi as Te,Wi as Ue,Xi as Ve,Yi as We,Zi as Xe,_i as Ye,aj as _e,bj as $e,cj as af}from"./chunk-2xr974bj.js";import{dj as sf,ej as tf,fj as uf,gj as vf,hj as wf,ij as xf,jj as yf,kj as zf,lj as Af,mj as Bf,nj as Cf,oj as Df,pj as Ef,qj as Ff,rj as Gf,sj as Hf,tj as If}from"./chunk-1x6c4ys1.js";import{Aj as df,Bj as ef,Cj as ff,Dj as gf,Ej as hf,Fj as jf,Gj as kf,Hj as lf,Ij as mf,Jj as nf,Kj as of,Lj as pf,Mj as qf,Nj as rf}from"./chunk-245ft0zp.js";import{$j as Wf,Oj as Jf,Pj as Kf,Qj as Lf,Rj as Mf,Sj as Nf,Tj as Of,Uj as Pf,Vj as Qf,Wj as Rf,Xj as Sf,Yj as Tf,Zj as Uf,_j as Vf}from"./chunk-6efr4j9h.js";import{tk as Ir,uk as Jr,vk as Kr,wk as Lr,xk as Mr,yk as Nr}from"./chunk-nqpd84vs.js";import{Ak as Vk,Bk as Wk,Ck as Xk,Dk as _m,Ek as $m,Fk as an,Gk as bn,zk as Uk}from"./chunk-afwbqeb2.js";import"./chunk-rqr735w8.js";import"./chunk-78rd6wxv.js";import{rl as ec,sl as fc,wl as gc}from"./chunk-yt9mq4m7.js";import{yl as bc}from"./chunk-dxjtszaa.js";import{$l as Mb,$m as hd,$n as Be,$o as sg,$q as vj,Al as ya,Am as Ac,An as Md,Ap as Tg,Aq as Ni,Ar as vk,Bl as za,Bm as Bc,Bn as Nd,Bp as Ug,Bq as Oi,Br as wk,Cl as Aa,Cm as Cc,Cn as Od,Cp as Vg,Cq as Pi,Cr as xk,Dl as Ba,Dm as Dc,Dn as Pd,Dp as Wg,Dq as Qi,Dr as yk,El as Ca,Em as Ec,En as Qd,Ep as Xg,Eq as Ri,Er as zk,Fl as Da,Fm as Fc,Fn as Rd,Fp as Yg,Fq as $i,Fr as Ck,Gl as Ea,Gm as Gc,Gn as Sd,Gp as Zg,Gq as aj,Gr as Dk,Hl as Fa,Hm as Hc,Hn as Td,Ho as Yf,Hp as _g,Hq as bj,Hr as Ek,Il as Ga,Im as Ic,In as Ud,Ip as $g,Iq as cj,Ir as Fk,Jl as Ha,Jm as Jc,Jn as Vd,Jp as ah,Jq as dj,Jr as Gk,Kl as Ia,Km as Kc,Kn as Wd,Kp as bh,Kq as ej,Kr as Hk,Ll as Ja,Lm as Lc,Ln as Xd,Lp as ch,Lq as fj,Lr as Ik,Ml as Ka,Mm as Mc,Mn as Yd,Mp as dh,Mq as gj,Mr as Jk,Nl as La,Nm as Nc,Nn as Zd,Np as eh,Nq as hj,Nr as Kk,Ol as Ma,Om as Oc,On as _d,Op as fh,Oq as ij,Pl as Na,Pm as Pc,Pn as $d,Po as Zf,Pp as gh,Pq as jj,Ql as Oa,Qm as Qc,Qn as ae,Qp as hh,Qq as kj,Rl as ib,Rm as _c,Rn as re,Ro as _f,Rp as ih,Rq as lj,Sl as jb,Sm as $c,Sn as se,Sp as jh,Sq as mj,Tl as kb,Tm as ad,Tn as te,To as $f,Tp as kh,Tq as nj,Ul as lb,Um as bd,Un as ue,Uo as ag,Up as lh,Uq as oj,Vl as mb,Vm as cd,Vn as ve,Vo as bg,Vp as mi,Vq as pj,Wl as nb,Wm as dd,Wn as we,Wo as cg,Wp as ni,Wq as qj,Xm as ed,Xn as xe,Xo as dg,Xq as rj,Yn as ye,Yo as eg,Yq as sj,Zl as Kb,Zm as fd,Zn as ze,Zo as qg,Zp as oi,Zq as tj,_l as Lb,_m as gd,_n as Ae,_o as rg,_q as uj,am as Nb,an as id,ao as Ce,ap as tg,ar as wj,bm as Ob,bn as jd,bo as De,bp as ug,br as xj,cm as Pb,cn as kd,co as Ee,cp as vg,cr as yj,dm as Qb,dn as ld,dp as wg,dr as zj,em as Ub,en as md,eo as Ie,ep as xg,er as Aj,fm as Vb,fn as nd,fo as Je,fp as yg,fr as Bj,gm as Wb,gn as od,go as Ke,gp as zg,gr as Cj,hm as hc,hn as pd,ho as Le,hp as Ag,hr as Dj,im as ic,in as qd,io as Me,ip as Bg,iq as pi,ir as Ej,jm as jc,jn as vd,jo as Ne,jp as Cg,jq as qi,jr as Vj,km as kc,kn as wd,ko as Oe,kp as Dg,kq as ri,kr as Wj,lm as lc,ln as xd,lp as Eg,lq as si,lr as Xj,mm as mc,mn as yd,mp as Fg,mq as ti,mr as Yj,nm as nc,nn as zd,np as Gg,nq as Ai,nr as Zj,om as oc,on as Ad,oo as bf,op as Hg,oq as Bi,or as jk,pm as pc,pn as Bd,po as cf,pp as Ig,pq as Ci,pr as kk,qm as qc,qn as Cd,qp as Jg,qq as Di,qr as lk,rm as rc,rn as Dd,ro as Xf,rp as Kg,rq as Ei,rr as mk,sm as sc,sn as Ed,sp as Lg,sq as Fi,sr as nk,tm as tc,tn as Fd,tp as Mg,tq as Gi,tr as ok,um as uc,un as Gd,up as Ng,uq as Hi,ur as pk,vm as vc,vn as Hd,vp as Og,vq as Ii,vr as qk,wm as wc,wn as Id,wp as Pg,wq as Ji,wr as rk,xm as xc,xn as Jd,xp as Qg,xq as Ki,xr as sk,ym as yc,yn as Kd,yp as Rg,yq as Li,yr as tk,zl as xa,zm as zc,zn as Ld,zp as Sg,zq as Mi,zr as uk}from"./chunk-w9b94q64.js";import{$r as Z,Or as M,Pr as N,Qr as O,Rr as P,Sr as Q,Tr as R,Ur as S,Vr as T,Wr as U,Xr as V,Yr as W,Zr as X,_r as Y,as as _,bs as $,cs as aa,ds as ba,es as ca,fs as da,gs as ea,hs as fa,is as ia,js as ja,ks as ka,ls as la,ms as ma,ns as na,os as oa,ps as pa,qs as qa,rs as ra,ss as sa,ts as ta,us as ua,vs as va,ws as wa}from"./chunk-ffdxdgep.js";import{xs as ga,ys as ha}from"./chunk-m8bdy2wt.js";import{As as Sb,Bs as Tb,zs as Rb}from"./chunk-0n054h7w.js";import"./chunk-wpsx5avz.js";import{Is as Si,Js as Ti,Ks as Ui,Ls as Vi,Ms as Wi,Ns as Xi,Os as Yi,Ps as Zi,Qs as _i}from"./chunk-tfy07tmv.js";import{gt as Rc,ht as Sc,it as Tc,jt as Uc,kt as Vc,mt as Wc,vt as Xc,wt as Yc,xt as Zc}from"./chunk-et9knn3s.js";import{At as Zb,Bt as _b,Ct as $b,Dt as ac,yt as Xb,zt as Yb}from"./chunk-pgeh4g3a.js";import{Kt as Fe,Mt as Ge,Pt as He}from"./chunk-z9a0ft6h.js";import"./chunk-zcrb5hgk.js";import{Ut as cc,Vt as dc}from"./chunk-7q06md6v.js";import{$t as hg,Zt as fg,_t as gg,au as ig,bu as jg,cu as kg,du as lg,fu as mg,gu as ng,hu as og,iu as pg}from"./chunk-1phxzej9.js";import{Au as fe,Bu as ge,Cu as he,Du as ie,Eu as je,Fu as ke,Gu as le,Hu as me,Iu as ne,Ju as oe,Ku as pe,Lu as qe,ju as rd,ku as sd,lu as td,mu as ud,wu as be,xu as ce,yu as de,zu as ee}from"./chunk-7ba7x6jt.js";import{$u as t,Mu as b,Nu as c,Ou as d,Pu as e,Qu as f,Ru as g,Su as h,Tu as i,Uu as m,Vu as n,Wu as o,Xu as p,Yu as q,Zu as r,_u as s,av as u,bv as v,cv as w,dv as x,ev as y,fv as z,gv as A,hv as B,iv as C,jv as D,kv as E,lv as F,mv as G,nv as H,ov as I,pv as J,qv as K,rv as L}from"./chunk-akzmq0jr.js";import"./chunk-c1f1vtjt.js";import"./chunk-0nhpymyy.js";import{$v as Ib,Hv as ob,Iv as pb,Jv as qb,Kv as rb,Lv as sb,Mv as tb,Nv as ub,Ov as vb,Pv as wb,Qv as xb,Rv as yb,Sv as zb,Tv as Ab,Uv as Bb,Vv as Cb,Wv as Db,Xv as Eb,Yv as Fb,Zv as Gb,_v as Hb,aw as Jb}from"./chunk-4md4tj27.js";import{Aw as _a,Bw as $a,Cw as ab,Dw as bb,Ew as cb,Fw as db,Gw as eb,Hw as fb,Iw as gb,Kw as hb,ew as Pa,fw as Qa,iw as Ra,nw as Sa,ow as Ta,uw as Ua,vw as Va,ww as Wa,xw as Xa,yw as Ya,zw as Za}from"./chunk-z8zmp74b.js";import"./chunk-qcpnfw0k.js";import{Ww as j,Xw as k,Yw as l}from"./chunk-59pakqdv.js";import"./chunk-x7qyx7vn.js";export{pl as writeNetlifyConfig,jn as writeManifest,Ul as writeImageManifest,Bp as wrapComponentForHMR,is as withDefaults,zk as webComponentDirectiveHandler,qq as watermark,sr as watchViews,cm as watchMultiple,dm as watchEffect,bm as watch,Me as warmImagePlaceholders,qm as waitForStore,X as waitForLocale,mp as virtualPathFor,mk as videoDirective,G as validators,ms as validated,Ce as validateValueEnhanced,pi as validateTemplate,Ym as validateRouteRules,vq as validateParams,De as validateFormEnhanced,hr as validateFile,ye as validateFields,xe as validateField,ri as validateDirective,Xd as validateCspDirectives,Hk as validateConfig,wn as validateComponentScripts,Un as validateComponentProps,lh as validateClientScript,ki as v,Hc as usesSignalsInScript,ub as usesReactiveRuntime,Fi as userComponentFileExists,Sh as useVirtualList,je as useTitle,pm as useStoreOrThrow,Tp as useStore,Yk as useStorage,Af as useSlots,_k as useSessionStorage,cc as useServerRuntimeConfig,Yf as useServerData,ge as useSeoMeta,dc as useRuntimeConfig,rm as useRouteParams,tm as useRouteParamOrThrow,sm as useRouteParam,je as usePageTitle,rf as useOptimistic,Ff as useModel,vm as useMiddlewareValue,um as useMiddlewareState,Zk as useLocalStorage,up as useLoadingIndicator,ee as useHead,hi as useForm,Cf as useAttrs,jr as uploadFiles,ir as uploadFile,mm as updateInstance,pf as untrack,Vi as unregisterDirective,nm as unmountInstance,Qc as unescapeHtml,qp as typecheckStxFiles,Di as transpileTypeScript,Xr as translate,Ba as transitionDirective,lc as transformAutoImports,On as toUsers,Nn as toUser,$p as thumbnail,ar as thumbHashToRGBA,br as thumbHashToDataURL,wb as templateNeedsRuntime,vb as templateHasReactiveContext,Jf as templateCache,nd as syncRecordedResponse,yp as stxClientHelpers,kg as structuredDataDirective,_r as stripLocalePrefix,Um as stripDocumentWrapper,Sb as stripCommentsAndLiterals,zo as stringToStream,Ld as strictCspPreset,Xe as streamingSuspenseDirective,$e as streamToResponse,Ve as streamTemplateSimple,Pe as streamTemplate,Tk as stopHmrServer,Kn as stopBroadcasting,_b as stateDirName,$b as stateDir,df as state,fh as startsDocument,Uo as startProductionServer,Po as startInteractive,Jn as startBroadcasting,as as stampLocaleLayoutGroup,Ia as staggerDirective,tq as srcsetUrls,Ja as springDirective,ud as splitByPipe,Qm as spaNavVaryHeaders,np as sourcePathFor,Aq as smartBatchSign,Hi as slotContentHasExpressions,yq as signUrl,Bi as shouldTranspileTypeScript,Qk as shouldReloadOnChange,Dq as shouldRefreshSignature,Rk as shouldIgnoreFile,Kh as shouldCacheComponent,dq as sharpen,ps as shape,Zb as setStateDir,zm as setRouteParams,Am as setMiddlewareState,Le as setImagePlaceholder,uf as setGlobalProvide,b as setErrorLocale,Wl as setCurrentInstance,ak as setCachedVideoResult,Rj as setCachedImageResult,Lj as setCached,ss as serveStxFile,us as serveMultipleStxFiles,Lk as serveMarkdownFile,dp as serveFile,vs as serveApp,cp as serve,Ep as serializeState,ln as serializeSetCookie,fq as sepia,he as seoMetaToHeadConfig,Ca as scrollAnimateDirective,va as screenReaderDirective,Ei as scopeOnRootElement,qk as scopeHTML,pk as scopeCSS,ng as scanForSitemapEntries,pa as scanA11yTargets,qa as scanA11yIssues,jq as saturation,wq as sanitizeParams,I as sanitizeFilePath,J as sanitizeExpression,K as sanitizeDirectiveParams,H as sanitizeDirectiveParam,L as sanitizeComponentProps,B as safeExecuteAsync,A as safeExecute,Cb as runtimeHandledXAttrsLiteral,Gb as runtimeEventRegexLiteral,Eb as runtimeDirectiveNamesLiteral,yg as runPreProcessingMiddleware,zg as runPostProcessingMiddleware,on as runPageAction,kf as runMountCallbacks,gb as runMiddleware,km as runHooks,Qr as runDoctor,lf as runDestroyCallbacks,Cg as runComposers,kq as rotate,li as rewriteImagesWithSiblings,od as responseBindings,Li as resolveTemplatePath,ha as resolveStxTargets,Dk as resolveStxDirectories,Wr as resolveI18n,Zp as resize,qg as resetUnscopedSignalWarnings,Oc as resetRejectedExpressionWarnings,sc as resetPlaceholders,de as resetHead,Dp as resetHMRHandler,o as resetErrorConfig,ks as required,cg as reportDeferredLoopWarnings,wc as replacePlaceholders,Ec as replaceInterpolations,qr as renderView,jk as renderVideoComponent,ic as renderVendorStyleTags,zr as renderToString,Ar as renderToStream,Br as renderToDOM,$q as renderThumbhashToCanvas,Nr as renderTemplateString,Lr as renderTemplate,Mr as renderString,Se as renderStreamingPage,wi as renderSlot,Ah as renderSSRSuspense,Lq as renderProtectedVideo,Kq as renderProtectedImg,xq as renderMediaUpload,Kr as renderMarkdownView,an as renderLayoutTypes,Vj as renderImgComponent,Kl as renderImageComponent,le as renderHtmlAttrs,ke as renderHead,tr as renderEmail,Ji as renderComponentWithSlot,me as renderBodyAttrs,Op as render,Nd as relaxedCspPreset,we as registerValidationRule,Ze as registerStreamingDirectives,Vp as registerStoresClient,xm as registerStore,Rf as registerServeModuleBundle,lg as registerSeoDirectives,_a as registerMiddleware,Ac as registerFilters,zc as registerFilter,d as registerErrorMessages,Be as registerEnhancedValidationRule,Si as registerDirective,Wd as registerCspDirectives,Xn as registerComponentDirectives,Oa as registerAnimationDirectives,wa as registerA11yDirectives,mc as referencesName,_l as ref,Ho as redirect,jd as recordResponseStatus,kd as recordResponseHeader,ac as rebaseOntoStateDir,ld as readResponseStatus,md as readResponseHeaders,Jk as readMarkdownFile,Kf as readFileCached,$l as reactive,oq as quality,Iq as pruneSignatureCache,Oj as pruneCache,sf as provide,Jr as protectCodeBlocks,js as prop,Fg as processVueTemplate,Qh as processVirtualListDirectives,Uh as processVirtualGridDirectives,ik as processVideo,ze as processValidateDirective,ea as processTranslateDirective,uh as processTransitionDirectives,xh as processTransitionAttributes,pe as processTitleDirective,bd as processTemplateBindings,qh as processTeleportDirectives,yh as processSuspenseDirectives,gg as processStructuredData,Te as processStreamDirectives,pd as processStatusDirective,fi as processStaticDirectives,wg as processStackReplacements,vg as processStackPushDirectives,xi as processSlots,Sm as processShell,Oe as processServerBindings,hg as processSeoDirective,_e as processSectionDirectives,Vc as processScopedStyles,$c as processReactiveBindings,Mq as processProtectedMedia,_h as processPartialHydrationDirectives,kh as processOnceDirective,xg as processMiddleware,fg as processMetaDirectives,qe as processMetaDirective,Kk as processMarkdownFileDirectives,Qi as processMarkdownDirectives,dg as processLoops,Ih as processKeepAliveDirectives,jh as processJsonDirective,Th as processInfiniteListDirectives,ug as processIncludes,Xj as processImgComponents,Ml as processImageComponents,zl as processImage,oe as processHeadDirective,se as processForms,ue as processFormInputDirectives,Mc as processExpressions,Pb as processEventDirectives,ve as processErrorDirective,Gg as processDynamicComponents,mi as processDirectives,_i as processDirectiveAttributes,ph as processDeferDirectives,$d as processCustomDirectives,Td as processCspDirectives,qs as processComponentProps,rc as processClientScript,te as processBasicFormDirectives,Dh as processAsyncDirectives,ae as processAppearanceBootstrapDirective,Fa as processAnimationDirectives,ka as processA11yDirectives,He as prepareImageDelivery,T as preloadTranslationsBackground,S as preloadTranslations,tp as preloadIslandHandlers,Ne as preloadIconCollection,Fn as poolStrings,Bk as pluginManager,Je as placeholdersWarmed,th as performLeave,sh as performEnter,mf as pendingLifecycleCounts,qf as peek,rg as partialsCache,kk as parseVideoDirectiveOptions,Xp as parseUrl,cr as parseThumbhashString,Ad as parseSwitchBlock,ui as parseSlots,vi as parseSlotElement,Fd as parseScriptDeclarations,xk as parseSFCComponent,Nq as parseProtectedArgs,bg as parseLoopBinding,Wj as parseImgComponent,mj as parseImageUrl,Ll as parseImageComponent,mn as parseFormBody,Cd as parseExpressionWithFilters,Yn as parseDefaults,Eo as parseCookies,Jm as parseContainerSelector,xd as parseConditionalBlock,Dd as parseArguments,Ma as parseAnimationShorthand,ls as optional,Gn as optimizeTemplate,Rl as optimizeImage,Sl as optimizeDirectory,ns as oneOf,sg as onceStore,hm as onUpdated,_c as onUpdate,jm as onUnmounted,Em as onServer,fm as onMounted,hf as onMount,ei as onHydrated,yf as onErrorCaptured,jf as onDestroy,Oh as onDeactivated,Dm as onClient,gm as onBeforeUpdate,im as onBeforeUnmount,em as onBeforeMount,Nh as onActivated,Xq as observeElement,Io as notFound,Lg as normalizeCriticalHeadOrder,xf as nextTick,$n as negotiateEncoding,Ua as navigateTo,lm as mountInstance,Ea as motionDirective,Md as moderateCspPreset,En as minifyHtml,jg as metaDirective,Zg as metaDedupKey,Yp as mergeParams,$g as mergeHtmlAttrs,fe as mergeHeadConfigs,Sc as mergeCssConfig,Qd as mergeCspDirectives,Ra as matchRoute,Ri as markdownDirectiveHandler,Ik as markdownCache,ga as looksLikeGlob,Zr as localizePath,U as loadTranslationLazy,_ as loadTranslation,Ek as loadStxConfig,db as loadMiddlewareFromDirectory,kn as loadManifest,Tq as loadElement,Ln as loadChannels,Lb as listensPassively,es as lintStxStrict,Vq as lazyLoadAll,Uq as lazyLoad,Ha as keyframeDirective,dl as keptState,xr as jsxs,yr as jsxDEV,wr as jsx,Go as jsonResponse,Ye as islandDirective,l as isTest,Wm as isSpaNavigation,Om as isSpaNavRequest,Bq as isSignatureValid,nf as isSignal,xl as isSharpAvailable,so as isServerEnvironment,Bm as isServer,yb as isRuntimeOwnedColonAttr,Hb as isRuntimeEventName,da as isRtlLocale,j as isProduction,ia as isPresentationalRole,Qq as isNativeLazySupported,Ir as isMarkdownPath,Q as isLoading,R as isLoaded,Ai as isJavaScriptScript,Rq as isIntersectionObserverSupported,Fl as isImageFile,yl as isImageBackendAvailable,aa as isICUFormat,di as isHydrated,Gi as isHydrateTrigger,hd as isHttpStatus,ro as isEdgeEnvironment,fs as isDirectiveKind,k as isDevelopment,of as isDerived,Pk as isCssOnlyChange,_n as isCompressible,Cm as isClient,Vm as isChromeInstanceScript,Fh as isAsyncComponent,nn as isActionableMethod,gq as invert,Mf as invalidateFileCacheByDir,Lf as invalidateFileCache,Lc as interpolateScriptsInTemplate,Jc as interpolateScriptExpressions,Kc as interpolateScriptAttributes,x as inlineError,Vr as injectThemeBootstrap,ig as injectSeoTags,Sr as injectSeo,Xf as injectRouterScript,Ok as injectHotReload,kb as injectHeatmap,Zc as injectCss,Rd as injectCspMetaTag,hh as injectConfigHeadTags,Kg as injectColorModeBootScript,bh as injectCloakStyle,Rg as injectBuildId,kc as injectBrowserCoreAutoImports,dd as injectAnalytics,tf as inject,wm as initStoreRegistry,sl as initNetlify,vp as initLoadingIndicator,Sq as initLazyLoading,Oo as initFile,_q as initBlurUp,er as initAllBlurUp,Zj as imgDirective,Pl as imageDirective,rn as hydrateTemplateStream,qn as hydrateTemplate,sp as hydrateIslands,ai as hydrateIsland,sn as hydrateFragment,bi as hydrateByStrategy,ci as hydrateAll,Lp as hydrate,bp as htmlResponse,dh as hoistLeadingHeadTags,Mg as hoistColorModeBootScript,lb as heatmapDirective,Hj as hashString,Wf as hashFilePath,Fj as hashFile,Gj as hashBuffer,Eg as hasVueTemplateSyntax,ag as hasVariables,Qp as hasStore,xc as hasPlaceholders,ql as hasNetlifyConfig,ab as hasMiddleware,Qb as hasEventDirectives,gh as hasDocumentShell,si as hasDirectives,ma as hasDOMSupport,Il as handleImageRequest,zf as handleError,Fr as h,El as groupVariantsByFormat,eq as grayscale,Wo as gitHash,yn as getUnusedDirectives,V as getTranslationSync,O as getTranslationCacheStats,W as getTranslationAsync,ba as getTranslation,ll as getTotalSize,Cq as getTimeUntilExpiry,mh as getStoreScript,Rp as getStoreNames,Pp as getStore,bl as getStorageSize,al as getStorageKeys,Mi as getSourceLineInfo,Ci as getSharedTranspiler,Sf as getServeModuleBundle,Qf as getServeClientAsset,la as getScreenReaderOnlyStyle,rk as getScopeAttribute,cf as getRouteParams,Vb as getPublicEnvDefine,Wb as getPublicEnv,qi as getPositionInfo,uc as getPlaceholderRegistry,Ej as getPlaceholderCacheStats,ce as getPageMeta,Hd as getNonce,Gl as getMimeType,cb as getMiddlewareNames,$a as getMiddleware,ca as getLocaleDirection,P as getLoadingState,Y as getLoadingLocales,Ie as getImagePlaceholder,Al as getImageMetadata,Fe as getImageDelivery,Kp as getHydrationRuntime,ym as getHydratedStoreState,Sk as getHmrServer,be as getHead,Cp as getHMRHandler,qj as getFormatExtension,Jj as getFileMtime,Dl as getFallbackVariant,f as getErrorMessage,c as getErrorLocale,n as getErrorConfig,i as getErrorCodeName,Ui as getDirectives,Ti as getDirective,Xl as getCurrentInstance,Wc as getCssServeAsset,Pd as getCspPreset,Yd as getCspHeaderName,Pi as getComponentCacheStats,$j as getCachedVideoResult,Gq as getCachedSignature,Of as getCachedSignalsRuntime,Pf as getCachedRouterScript,Cj as getCachedPlaceholder,Qj as getCachedImageResult,Kj as getCached,Nj as getCacheStats,Pg as getBuildId,In as getBroadcastServer,pj as getBestVariant,Bc as getAllFilters,dj as generateWidthSrcset,Rh as generateVirtualListCSS,lr as generateVideoPreview,Ee as generateValidationScript,mr as generateUploadRuntime,zn as generateTreeShakenBundle,wh as generateTransitionRuntime,vh as generateTransitionCSS,dk as generateThumbnails,vj as generateThumbhashPlaceholder,jo as generateTemplatesDocs,Ch as generateSuspenseRuntime,Bh as generateSuspenseCSS,Fp as generateStateScript,nj as generateSrcsetData,Uj as generateSrcset,Bl as generateSrcSet,ek as generateSpriteSheet,ur as generateSpaShell,oj as generateSourceTags,jj as generateSizesFromBreakpoints,ij as generateSizesAttribute,Cl as generateSizes,mg as generateSitemapIndex,Tr as generateSitemap,Pq as generateSimpleMediaPicker,Jq as generateSignatureRuntime,If as generateSignalsRuntimeDev,Hf as generateSignalsRuntime,qc as generateServerDataBridge,ok as generateScopeId,yk as generateSFCWebComponent,Nb as generateRuntimeScript,Pa as generateRouteTypes,Qa as generateRouteManifest,og as generateRobotsTxt,Ur as generateRobots,Tj as generateResponsiveVariants,uk as generateReactiveWebComponentTS,tk as generateReactiveWebComponent,wk as generateReactiveRuntime,vk as generateReactiveMixin,ck as generatePoster,Bj as generatePlaceholderStyle,Aj as generatePlaceholderCSS,uj as generatePlaceholder,$h as generatePartialHydrationCSS,Vg as generateOfflineWorker,Gd as generateNonce,ml as generateNetlifyToml,or as generateMinifiedMediaRuntime,nr as generateMediaRuntime,Oq as generateMediaManagerEmbed,hn as generateManifest,xp as generateLoadingIndicatorHtml,Zq as generateLazyLoadRuntime,bn as generateLayoutTypes,xj as generateLQIP,Mh as generateKeepAliveRuntime,Lh as generateKeepAliveCSS,gi as generateIslandManifest,kr as generateImagePreview,Tl as generateImageManifest,Jp as generateHydrationScript,af as generateHydrationRuntime,Mp as generateHydrationCSS,Vh as generateHydrationBootstrap,Nk as generateHotReloadScript,jb as generateHeatmapScript,Ap as generateHMRClientScript,fk as generateHLSManifest,Gp as generateEventBindings,hj as generateDprSrcsetWithVariableQuality,gj as generateDprSrcset,eh as generateDocumentShell,oo as generateDocs,ko as generateDirectivesDocs,Zi as generateDirectiveRuntime,pg as generateDefaultRobotsTxt,gk as generateDASHManifest,Yc as generateCss,Kd as generateCspMetaTag,Jd as generateCspHeader,Ef as generateCompositionRuntime,io as generateComponentsDocs,Wh as generateComponentManifest,go as generateComponentDoc,zj as generateColorPlaceholder,Jg as generateColorModeBootScript,om as generateClientRuntime,Ij as generateCacheKey,oc as generateBrowserAutoImportDestructuring,fr as generateBlurUpRuntime,gr as generateBlurUpCSS,ad as generateBindingsRuntime,ej as generateAutoWidthSrcset,nc as generateAutoImportDestructuring,Hh as generateAsyncComponentRuntime,Gh as generateAsyncComponentCSS,fc as generateApiTypes,Na as generateAnimationRuntime,La as generateAnimationCSS,cd as generateAnalyticsScript,rp as formatTypecheckDiagnostics,kp as formatTypeErrors,Lo as formatStxContent,kl as formatSize,Ta as formatRoutes,Mo as formatMarkdownContent,g as formatLocalizedError,$ as formatICU,p as formatFilePath,w as formatError,Rr as formatDoctorReport,lo as formatDocsAsMarkdown,no as formatDocsAsJson,mo as formatDocsAsHtml,nq as format,el as forgetKeptState,Dn as foldConstants,mq as flipVertical,lq as flipHorizontal,cn as fingerprint,pp as findStxModuleDeclarations,op as findRuntimeTypeDeclarations,Pr as findPantryPackage,Dc as findMustacheEnd,wd as findMatchingEndTag,sd as findMatchingDelimiter,Rb as findInterpolationEnd,yd as findIfBlocks,Bd as findExpressions,Sa as findErrorPage,Tc as findDuplicateScopedStyleRanges,zd as findDirectiveBlocks,An as findDeadCode,An as findDeadBranches,Km as findContainerRegion,ho as findComponentFiles,ts as findCommonDir,jl as filterRequiredFiles,Ki as fileExists,Zf as extractVariables,oi as extractTemplateExpressions,Ue as extractStreamBoundaries,Hp as extractState,yi as extractSlotContent,$f as extractScriptFromTemplate,ni as extractScriptBlocks,vc as extractPlaceholders,vd as extractParenthesizedExpression,id as extractPageResponseStatus,hb as extractLayoutMetadata,yj as extractDominantColor,Ed as extractDirectiveParams,ti as extractDirectiveNames,Xm as extractContainerContent,eo as extractComponentProps,Xh as extractComponentName,fo as extractComponentDescription,Xc as extractClassNames,pc as extractBridgeData,Yh as extractBoundProps,td as extractBalancedExpression,hc as extractAndStripCssImports,sk as extractAndScopeStyles,Ob as extractAndProcessEvents,Wk as externalizeSharedAssets,Xk as externalizeRepeatedAssets,Vk as externalizeHtml,Pc as evaluateExpression,Cn as evaluateConstant,qd as evaluateAuthExpression,Gc as escapeHtmlValue,Fc as escapeHtml,C as errorRecovery,E as errorLogger,rh as ensureTeleportTargets,ih as ensureDocumentShell,Ae as enhancedValidationRules,bo as enableDevTools,Bn as eliminateDeadCode,ff as effect,uq as dprUrls,po as docsCommand,ec as discoverServerApi,$m as discoverLayoutNames,Yq as disconnectObserver,co as disableDevTools,F as devHelpers,Rm as detectShell,qo as detectRuntime,nl as detectProjectConfig,rj as detectFormat,vn as detectBuildMode,ef as derived,rl as deploy,Gk as defineStxConfig,Up as defineStore,Bf as defineSlots,ds as defineSiteConfig,hs as definePropsWithValidation,gs as defineProps,Ak as definePlugin,ie as definePageMeta,Wa as defineMiddleware,ii as defineForm,wf as defineExpose,vf as defineEmits,Wi as defineDirective,Hr as defineCustomElement,To as defineConfig,Xi as defineClientDirective,Eh as defineAsyncComponent,Vo as defineApiHandler,pr as defaultMediaConfig,Vl as defaultImageConfig,M as defaultI18nConfig,ib as defaultHeatmapConfig,re as defaultFormClasses,yc as defaultFilters,_d as defaultCspConfig,Ck as defaultConfig,rs as default,Rc as deepMergeThemes,Uc as dedupeScopedStyles,Nm as decodeTitleEntities,wj as decodeThumbhash,eg as declareBareLoopHead,Vd as cspNonceDirective,Ud as cspDirective,dr as crossfadeTransition,_p as crop,Ph as createVirtualList,lk as createVideoDirective,Co as createVercelHandler,hp as createTypeChecker,fa as createTranslateFilter,yo as createTextEncoderStream,Gr as createStxApp,xo as createStreamingResponse,We as createStreamRenderer,Sp as createStore,Za as createStorageManager,Xa as createServerCookieManager,gc as createServerApi,Zl as createScope,zh as createSSRSuspense,bf as createRouter,Zm as createRouteRuleResolver,eb as createRouteLocation,fp as createRoute,_l as createRef,$l as createReactive,Df as createProvideContext,Yo as createProject,So as createProductionBuild,tc as createPlaceholder,Hn as createOptimizedBuild,Do as createNetlifyHandler,fl as createNetlifyClient,fb as createMiddlewareContext,ep as createMiddleware,Wq as createLazyObserver,Jh as createKeepAliveCache,uo as createKVNamespace,Zh as createIslandRegistry,Yj as createImgDirective,Ql as createImagePlugin,Jl as createImageHandler,Ol as createImageDirective,nb as createHeatmapAggregator,il as createFileManifest,to as createEnvAccessor,z as createEnhancedError,wo as createEdgeHandler,vo as createEdgeCache,Ni as createDetailedErrorMessage,Bo as createDenoHandler,ol as createDefaultNetlifyConfig,Zd as createCspHeaders,Fo as createCookie,am as createComputed,Yl as createComponentInstance,Ao as createCloudflareHandler,Ya as createClientCookieManager,Yi as createBuiltinDirectives,Gr as createApp,Ka as createAnimationTimeline,bq as cover,_f as convertToCommonJS,iq as contrast,aq as contain,y as consoleError,m as configureErrorHandling,Fk as config,am as computed,ao as compressResponse,Bg as composerPattern,Ag as composer,Tm as composeShellWithPage,Wn as componentDirective,Ii as componentClientSignalNames,gn as compileTemplate,a as collectRepeatedFlag,hl as collectDeployFiles,ch as cloakStyleFragment,Ic as clientLoopScopes,bk as clearVideoCache,N as clearTranslationCache,nh as clearStoreCache,$k as clearStorage,Hq as clearSignatureCache,Gf as clearServerData,Dj as clearPlaceholderCache,tg as clearOnceStore,Id as clearNonce,bb as clearMiddleware,Ke as clearImagePlaceholders,Ge as clearImageDeliveryCatalog,Nl as clearImageCache,e as clearErrorMessages,Tf as clearDevCaches,Cc as clearCustomFilters,Dg as clearComposers,oh as clearComposableCache,Oi as clearComponentCache,Mj as clearCache,Ib as clearBlankCache,wp as cleanupLoadingIndicator,Hm as classifyScript,Im as classifyAllScripts,ip as checkTemplateFile,jp as checkTemplate,Uf as checkCache,Eq as checkAuthAccess,na as checkA11yWithRegex,oa as checkA11y,Rn as channel,Ko as captureScreenshots,Jo as captureScreenshot,Z as cancelPendingLoads,gl as calculateSha1,fj as calculateOptimalWidths,Vf as cacheTemplate,bc as cacheEngineFingerprint,nk as buildWebComponents,lp as buildVirtualSource,rr as buildViews,Wp as buildUrl,Qe as buildSuspenseResolveScript,cs as buildStaticSite,qb as buildRuntimeGlobalsDestructure,dn as buildRuntimeAsset,en as buildRouterAsset,bs as buildLangPickerScript,lj as buildImageUrl,Sg as buildIdFragment,_g as buildHtmlAttrs,tn as buildForProduction,Zn as buildComponentLibrary,Fq as buildAuthParams,un as buildApp,$r as buildAlternateLinks,Ro as build,Pn as broadcastPrivate,Qn as broadcastPresence,Mn as broadcast,hq as brightness,Tb as bracketDepths,cq as blur,Jb as blankInertHtmlRegions,zq as batchSignUrls,gf as batch,sa as autoFixA11yFile,ta as autoFixA11yDirectory,ra as autoFixA11y,pq as auto,ja as attributeValue,fn as assetTags,Mb as asInvocableStatement,os as arrayOf,Yr as applyTranslations,Sj as applyTransformations,zi as applySlots,Vn as applyPropDefaults,sq as applyPreset,ah as applyHtmlAttrs,ne as applyHead,Nc as applyFilters,Pm as appendVary,Od as apiCspPreset,Da as animationGroupDirective,hk as analyzeVideo,xn as analyzeUsage,Fm as analyzeTemplate,Gm as analyzeProject,xn as analyzeDirectiveUsage,ed as analyticsDirective,$o as addStore,_o as addPage,Sd as addNonceToInlineContent,ap as addLayout,Zo as addComponent,pn as actionRedirectResponse,Va as abortNavigation,ua as a11yDirective,Nf as __setSignalsGeneratorsForTest,Qg as __setBuildIdForTest,_j as VideoProcessorCache,ji as Validator,xa as TransitionType,za as TransitionEase,ya as TransitionDirection,rd as Tokenizer,gp as TemplateTypeChecker,No as TEMPLATE_PRESETS,v as StxValidationError,r as StxSyntaxError,t as StxSecurityError,s as StxRuntimeError,u as StxFileError,q as StxError,Cr as Show,Re as SUSPENSE_RESOLVER_RUNTIME,ob as STX_RUNTIME_GLOBALS,jc as STX_AUTO_IMPORTS,Yb as STATE_DIR_ENV_VAR,Ga as SPRING_PRESETS,Lm as SPA_NAV_HEADER,Kb as SCROLL_BLOCKING_EVENTS,xb as RUNTIME_OWNED_COLON_ATTRS,zb as RUNTIME_HANDLED_X_ATTRS,Fb as RUNTIME_EVENT_NAMES,Db as RUNTIME_DIRECTIVE_NAMES,fd as RESPONSE_STATUS_KEY,gd as RESPONSE_HEADERS_KEY,tb as REACTIVE_RUNTIME_GLOBALS,Qo as ProductionBuild,Er as Portal,Xo as PROJECT_TEMPLATES,rq as PRESETS,Tg as OFFLINE_WORKER_PATH,Ug as OFFLINE_REGISTER_SCRIPT,sb as NON_CLIENT_PRIMITIVES,Np as MemorySessionStore,cj as MIME_TYPES,$i as MEDIA_DEFAULT_WIDTHS,bj as MEDIA_DEFAULT_FORMATS,_m as LAYOUT_TYPES_FILE,cl as KEPT_STATE_PREFIX,Pj as ImageProcessorCache,Hl as ImageProcessingError,Ip as HydrationRuntime,Mk as HotReloadServer,mb as HeatmapAggregator,Yg as HTML_CLASS_MARKER,Xg as HTML_ATTRS_MARKER,vr as Fragment,Dr as For,Mm as FRAGMENT_CACHE_CONTROL,D as ErrorLogger,h as ErrorCodes,Uk as EXTERNALIZED_ASSET_DIR,tl as DeployError,ul as DEFAULT_WIDTHS,Aa as DEFAULT_TRANSITION_OPTIONS,Xb as DEFAULT_STATE_DIR,wl as DEFAULT_QUALITY,sj as DEFAULT_PLACEHOLDER_OPTIONS,vl as DEFAULT_FORMATS,aj as DEFAULT_DPR_VALUES,zp as ComponentHMRHandler,pb as COMPONENT_SCOPE_LOCAL_GLOBALS,Bb as COMPONENT_PASSTHROUGH_X_ATTRS,rb as COMPILE_TIME_ONLY_GLOBALS,kj as COMMON_SIZES,Hg as COLOR_MODE_BOOT_MARKER,Ig as COLOR_MODE_BOOT_GLOBAL,Wg as CLOAK_STYLE,Tn as BroadcastServer,Sn as Broadcast,Ng as BUILD_ID_META,Og as BUILD_ID_HEADER,Ub as BROWSER_CORE_IMPORTS,tj as BLUR_UP_CSS,Ab as ALPINE_BRIDGE_X_ATTRS,Or as $path};
|
|
2
|
+
import{$ as om,$a as so,$b as Dp,$c as Dq,$d as Dr,A as _k,Aa as Dn,Ab as Xo,Ac as cq,Ad as cr,Ae as is,B as $k,Ba as En,Bb as Yo,Bc as dq,Bd as dr,Be as js,C as al,Ca as Fn,Cb as Zo,Cc as eq,Cd as er,Ce as ks,D as bl,Da as Gn,Db as _o,Dc as fq,Dd as fr,De as ls,E as cl,Ea as Hn,Eb as $o,Ec as gq,Ed as gr,Ee as ms,F as dl,Fa as Un,Fb as ap,Fc as hq,Fd as hr,Fe as ns,G as el,Ga as Vn,Gb as bp,Gc as iq,Gd as ir,Ge as os,H as Wl,Ha as Wn,Hb as cp,Hc as jq,Hd as jr,He as ps,I as Xl,Ia as Xn,Ib as dp,Ic as kq,Id as kr,Ie as qs,J as Yl,Ja as Yn,Jb as ep,Jc as lq,Jd as lr,Je as rs,K as Zl,Ka as Zn,Kb as fp,Kc as mq,Kd as mr,Ke as ss,L as _l,La as bo,Lb as gp,Lc as nq,Ld as nr,Le as ts,M as $l,Ma as co,Mb as hp,Mc as oq,Md as or,Me as us,N as am,Na as eo,Nb as ip,Nc as pq,Nd as pr,Ne as vs,O as bm,Oa as fo,Ob as jp,Oc as qq,Od as qr,P as cm,Pa as go,Pb as kp,Pc as rq,Pd as rr,Q as dm,Qa as ho,Qb as sp,Qc as sq,Qd as sr,R as em,Ra as io,Rb as tp,Rc as tq,Rd as tr,S as fm,Sa as jo,Sb as up,Sc as uq,Sd as ur,T as gm,Ta as ko,Tb as vp,Tc as vq,Td as vr,U as hm,Ua as lo,Ub as wp,Uc as wq,Ud as wr,V as im,Va as mo,Vb as xp,Vc as xq,Vd as xr,W as jm,Wa as no,Wb as yp,Wc as yq,Wd as yr,X as km,Xa as oo,Xb as zp,Xc as zq,Xd as zr,Y as lm,Ya as po,Yb as Ap,Yc as Aq,Yd as Ar,Z as mm,Za as qo,Zb as Bp,Zc as Bq,Zd as Br,_ as nm,_a as ro,_b as Cp,_c as Cq,_d as Cr,aa as pm,ab as to,ac as Ep,ad as Eq,ae as Er,ba as qm,bb as uo,bc as Fp,bd as Fq,be as Fr,ca as rm,cb as vo,cc as Gp,cd as Gq,ce as Gr,da as sm,db as wo,dc as Hp,dd as Hq,de as Hr,ea as tm,eb as xo,ec as Ip,ed as Iq,ee as Or,fa as um,fb as yo,fc as Jp,fd as Jq,fe as Pr,ga as vm,gb as zo,gc as Kp,gd as Kq,ge as Qr,ha as wm,hb as Ao,hc as Lp,hd as Lq,he as Rr,ia as xm,ib as Bo,ic as Mp,id as Mq,ie as Sr,ja as ym,jb as Co,jc as Np,jd as Nq,je as Tr,ka as zm,kb as Do,kc as Op,kd as Oq,ke as Ur,la as Am,lb as Eo,lc as Pp,ld as Pq,le as Vr,ma as Bm,mb as Fo,mc as Qp,md as Qq,me as Wr,na as Cm,nb as Go,nc as Rp,nd as Rq,ne as Xr,o as a,oa as Dm,ob as Ho,oc as Sp,od as Sq,oe as Yr,p as Lk,pa as Em,pb as Io,pc as Tp,pd as Tq,pe as Zr,q as Mk,qa as Fm,qb as Lo,qc as Up,qd as Uq,qe as _r,r as Nk,ra as Gm,rb as Mo,rc as Vp,rd as Vq,re as $r,s as Ok,sa as vn,sb as No,sc as Wp,sd as Wq,se as as,t as Pk,ta as wn,tb as Oo,tc as Xp,td as Xq,te as bs,u as Qk,ua as xn,ub as Qo,uc as Yp,ud as Yq,ue as cs,v as Rk,va as yn,vb as Ro,vc as Zp,vd as Zq,ve as ds,w as Sk,wa as zn,wb as So,wc as _p,wd as _q,we as es,x as Tk,xa as An,xb as To,xc as $p,xd as $q,xe as fs,y as Yk,ya as Bn,yb as Vo,yc as aq,yd as ar,ye as gs,z as Zk,za as Cn,zb as Wo,zc as bq,zd as br,ze as hs}from"./chunk-69c5rv6n.js";import{Oe as lp,Pe as mp,Qe as np,Re as op,Se as pp,Te as qp,Ue as rp}from"./chunk-arjhs9bb.js";import{Ve as Jo,We as Ko}from"./chunk-pkspqh0m.js";import{Xe as Po}from"./chunk-ayhhvep9.js";import{Ye as un}from"./chunk-yn8qq8tn.js";import{$e as ao,Ze as _n,_e as $n,af as Uo}from"./chunk-z80v5h5h.js";import{bf as fl,cf as gl,df as hl,ef as il,ff as jl,gf as kl,hf as ll,if as ml,jf as nl,kf as ol,lf as pl,mf as ql,nf as rl,of as sl,pf as tl}from"./chunk-ewxbx67c.js";import{Af as Ul,Bf as Vl,qf as Kl,rf as Ll,sf as Ml,tf as Nl,uf as Ol,vf as Pl,wf as Ql,xf as Rl,yf as Sl,zf as Tl}from"./chunk-0tnsyynz.js";import{Cf as Il,Df as Jl}from"./chunk-rx0cntdm.js";import{Ef as ul,Ff as vl,Gf as wl,Hf as xl,If as yl,Jf as zl,Kf as Al,Mf as Bl,Nf as Cl,Of as Dl,Pf as El,Qf as Fl,Rf as Gl,Uf as Hl}from"./chunk-vtmhh3dp.js";import{Vf as cn,Wf as dn,Xf as en,Yf as fn,Zf as gn,_f as tn}from"./chunk-me7ypzw9.js";import{$f as Hm,Ag as sn,ag as Im,bg as Jm,cg as Km,dg as Lm,eg as Mm,fg as Nm,gg as Om,hg as Pm,ig as Qm,jg as Rm,kg as Sm,lg as Tm,mg as Um,ng as Vm,og as Wm,pg as Xm,qg as hn,rg as jn,sg as kn,tg as ln,ug as mn,vg as nn,wg as on,xg as pn,yg as qn,zg as rn}from"./chunk-rctgq5xp.js";import{Bg as Ym,Cg as Zm}from"./chunk-1n2ng8nx.js";import{Dg as In,Eg as Jn,Fg as Kn,Gg as Ln,Hg as Mn,Ig as Nn,Jg as On,Kg as Pn,Lg as Qn,Mg as Rn,Ng as Sn,Og as Tn}from"./chunk-vtjegbgy.js";import{Pg as ui,Qg as vi,Rg as wi,Sg as xi,Tg as yi,Ug as zi}from"./chunk-g81ymdat.js";import{$g as Sj,Vg as Pj,Wg as Qj,Xg as Rj,ah as Tj,bh as Uj}from"./chunk-aa4ss5pb.js";import{ch as _j,dh as $j,eh as ak,fh as bk,gh as ck,hh as dk,ih as ek,jh as fk,kh as gk,lh as hk,mh as ik}from"./chunk-ca57sg6v.js";import{nh as Fj,oh as Gj,ph as Hj,qh as Ij,rh as Jj,th as Kj,uh as Lj,vh as Mj,wh as Nj,xh as Oj}from"./chunk-mywrb5fy.js";import{Ah as Bk,yh as Ak}from"./chunk-4m4n1sfc.js";import{Gh as Ph,Hh as Qh,Ih as Rh,Jh as Sh,Kh as Th,Lh as Uh}from"./chunk-rkzfwgr8.js";import{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,Wh as ci,Xh as di,Yh as ei,Zh as fi,_h as gi}from"./chunk-n4197kjq.js";import{ai as hi,bi as ii,ci as ji,di as ki}from"./chunk-k4x5we49.js";import{ii as li}from"./chunk-6de3hczw.js";import{li as oh}from"./chunk-s1gwy2rp.js";import{mi as ph}from"./chunk-8mm86z5w.js";import{ni as qh,oi as rh}from"./chunk-seqmzr8k.js";import{pi as sh,qi as th,ri as uh,si as vh,ti as wh,ui as xh}from"./chunk-55g4qm7m.js";import{vi as yh,wi as zh,xi as Ah,yi as Bh,zi as Ch}from"./chunk-twg0y6ga.js";import{Ai as Dh,Bi as Eh,Ci as Fh,Di as Gh,Ei as Hh}from"./chunk-015p3jq5.js";import{Fi as Ih,Gi as Jh,Hi as Kh,Ii as Lh,Ji as Mh,Ki as Nh,Li as Oh}from"./chunk-ypw4egcv.js";import{Mi as mh,Ni as nh}from"./chunk-gyccx2pr.js";import"./chunk-g0w8dyat.js";import{$i as Ze,Ri as Pe,Si as Qe,Ti as Re,Ui as Se,Vi as Te,Wi as Ue,Xi as Ve,Yi as We,Zi as Xe,_i as Ye,aj as _e,bj as $e,cj as af}from"./chunk-9dap2hdv.js";import{dj as sf,ej as tf,fj as uf,gj as vf,hj as wf,ij as xf,jj as yf,kj as zf,lj as Af,mj as Bf,nj as Cf,oj as Df,pj as Ef,qj as Ff,rj as Gf,sj as Hf,tj as If}from"./chunk-1x6c4ys1.js";import{Aj as df,Bj as ef,Cj as ff,Dj as gf,Ej as hf,Fj as jf,Gj as kf,Hj as lf,Ij as mf,Jj as nf,Kj as of,Lj as pf,Mj as qf,Nj as rf}from"./chunk-245ft0zp.js";import{$j as Wf,Oj as Jf,Pj as Kf,Qj as Lf,Rj as Mf,Sj as Nf,Tj as Of,Uj as Pf,Vj as Qf,Wj as Rf,Xj as Sf,Yj as Tf,Zj as Uf,_j as Vf}from"./chunk-f02g2h4p.js";import{tk as Ir,uk as Jr,vk as Kr,wk as Lr,xk as Mr,yk as Nr}from"./chunk-k3wcezqg.js";import{Ak as Vk,Bk as Wk,Ck as Xk,Dk as _m,Ek as $m,Fk as an,Gk as bn,zk as Uk}from"./chunk-afwbqeb2.js";import"./chunk-rqr735w8.js";import"./chunk-63dyh42m.js";import{rl as ec,sl as fc,wl as gc}from"./chunk-1nnskved.js";import{yl as bc}from"./chunk-dxjtszaa.js";import{$l as Mb,$m as hd,$n as Be,$o as sg,$q as vj,Al as ya,Am as Ac,An as Md,Ap as Tg,Aq as Ni,Ar as vk,Bl as za,Bm as Bc,Bn as Nd,Bp as Ug,Bq as Oi,Br as wk,Cl as Aa,Cm as Cc,Cn as Od,Cp as Vg,Cq as Pi,Cr as xk,Dl as Ba,Dm as Dc,Dn as Pd,Dp as Wg,Dq as Qi,Dr as yk,El as Ca,Em as Ec,En as Qd,Ep as Xg,Eq as Ri,Er as zk,Fl as Da,Fm as Fc,Fn as Rd,Fp as Yg,Fq as $i,Fr as Ck,Gl as Ea,Gm as Gc,Gn as Sd,Gp as Zg,Gq as aj,Gr as Dk,Hl as Fa,Hm as Hc,Hn as Td,Ho as Yf,Hp as _g,Hq as bj,Hr as Ek,Il as Ga,Im as Ic,In as Ud,Ip as $g,Iq as cj,Ir as Fk,Jl as Ha,Jm as Jc,Jn as Vd,Jp as ah,Jq as dj,Jr as Gk,Kl as Ia,Km as Kc,Kn as Wd,Kp as bh,Kq as ej,Kr as Hk,Ll as Ja,Lm as Lc,Ln as Xd,Lp as ch,Lq as fj,Lr as Ik,Ml as Ka,Mm as Mc,Mn as Yd,Mp as dh,Mq as gj,Mr as Jk,Nl as La,Nm as Nc,Nn as Zd,Np as eh,Nq as hj,Nr as Kk,Ol as Ma,Om as Oc,On as _d,Op as fh,Oq as ij,Pl as Na,Pm as Pc,Pn as $d,Po as Zf,Pp as gh,Pq as jj,Ql as Oa,Qm as Qc,Qn as ae,Qp as hh,Qq as kj,Rl as ib,Rm as _c,Rn as re,Ro as _f,Rp as ih,Rq as lj,Sl as jb,Sm as $c,Sn as se,Sp as jh,Sq as mj,Tl as kb,Tm as ad,Tn as te,To as $f,Tp as kh,Tq as nj,Ul as lb,Um as bd,Un as ue,Uo as ag,Up as lh,Uq as oj,Vl as mb,Vm as cd,Vn as ve,Vo as bg,Vp as mi,Vq as pj,Wl as nb,Wm as dd,Wn as we,Wo as cg,Wp as ni,Wq as qj,Xm as ed,Xn as xe,Xo as dg,Xq as rj,Yn as ye,Yo as eg,Yq as sj,Zl as Kb,Zm as fd,Zn as ze,Zo as qg,Zp as oi,Zq as tj,_l as Lb,_m as gd,_n as Ae,_o as rg,_q as uj,am as Nb,an as id,ao as Ce,ap as tg,ar as wj,bm as Ob,bn as jd,bo as De,bp as ug,br as xj,cm as Pb,cn as kd,co as Ee,cp as vg,cr as yj,dm as Qb,dn as ld,dp as wg,dr as zj,em as Ub,en as md,eo as Ie,ep as xg,er as Aj,fm as Vb,fn as nd,fo as Je,fp as yg,fr as Bj,gm as Wb,gn as od,go as Ke,gp as zg,gr as Cj,hm as hc,hn as pd,ho as Le,hp as Ag,hr as Dj,im as ic,in as qd,io as Me,ip as Bg,iq as pi,ir as Ej,jm as jc,jn as vd,jo as Ne,jp as Cg,jq as qi,jr as Vj,km as kc,kn as wd,ko as Oe,kp as Dg,kq as ri,kr as Wj,lm as lc,ln as xd,lp as Eg,lq as si,lr as Xj,mm as mc,mn as yd,mp as Fg,mq as ti,mr as Yj,nm as nc,nn as zd,np as Gg,nq as Ai,nr as Zj,om as oc,on as Ad,oo as bf,op as Hg,oq as Bi,or as jk,pm as pc,pn as Bd,po as cf,pp as Ig,pq as Ci,pr as kk,qm as qc,qn as Cd,qp as Jg,qq as Di,qr as lk,rm as rc,rn as Dd,ro as Xf,rp as Kg,rq as Ei,rr as mk,sm as sc,sn as Ed,sp as Lg,sq as Fi,sr as nk,tm as tc,tn as Fd,tp as Mg,tq as Gi,tr as ok,um as uc,un as Gd,up as Ng,uq as Hi,ur as pk,vm as vc,vn as Hd,vp as Og,vq as Ii,vr as qk,wm as wc,wn as Id,wp as Pg,wq as Ji,wr as rk,xm as xc,xn as Jd,xp as Qg,xq as Ki,xr as sk,ym as yc,yn as Kd,yp as Rg,yq as Li,yr as tk,zl as xa,zm as zc,zn as Ld,zp as Sg,zq as Mi,zr as uk}from"./chunk-sjc7x8y1.js";import{$r as Z,Or as M,Pr as N,Qr as O,Rr as P,Sr as Q,Tr as R,Ur as S,Vr as T,Wr as U,Xr as V,Yr as W,Zr as X,_r as Y,as as _,bs as $,cs as aa,ds as ba,es as ca,fs as da,gs as ea,hs as fa,is as ia,js as ja,ks as ka,ls as la,ms as ma,ns as na,os as oa,ps as pa,qs as qa,rs as ra,ss as sa,ts as ta,us as ua,vs as va,ws as wa}from"./chunk-ffdxdgep.js";import{xs as ga,ys as ha}from"./chunk-m8bdy2wt.js";import{As as Sb,Bs as Tb,zs as Rb}from"./chunk-0n054h7w.js";import"./chunk-wpsx5avz.js";import{Is as Si,Js as Ti,Ks as Ui,Ls as Vi,Ms as Wi,Ns as Xi,Os as Yi,Ps as Zi,Qs as _i}from"./chunk-tfy07tmv.js";import{gt as Rc,ht as Sc,it as Tc,jt as Uc,kt as Vc,mt as Wc,vt as Xc,wt as Yc,xt as Zc}from"./chunk-4g4yz97f.js";import{At as Zb,Bt as _b,Ct as $b,Dt as ac,yt as Xb,zt as Yb}from"./chunk-pgeh4g3a.js";import{Kt as Fe,Mt as Ge,Pt as He}from"./chunk-z9a0ft6h.js";import"./chunk-h1yb87ep.js";import{Ut as cc,Vt as dc}from"./chunk-7q06md6v.js";import{$t as hg,Zt as fg,_t as gg,au as ig,bu as jg,cu as kg,du as lg,fu as mg,gu as ng,hu as og,iu as pg}from"./chunk-1phxzej9.js";import{Au as fe,Bu as ge,Cu as he,Du as ie,Eu as je,Fu as ke,Gu as le,Hu as me,Iu as ne,Ju as oe,Ku as pe,Lu as qe,ju as rd,ku as sd,lu as td,mu as ud,wu as be,xu as ce,yu as de,zu as ee}from"./chunk-7ba7x6jt.js";import{$u as t,Mu as b,Nu as c,Ou as d,Pu as e,Qu as f,Ru as g,Su as h,Tu as i,Uu as m,Vu as n,Wu as o,Xu as p,Yu as q,Zu as r,_u as s,av as u,bv as v,cv as w,dv as x,ev as y,fv as z,gv as A,hv as B,iv as C,jv as D,kv as E,lv as F,mv as G,nv as H,ov as I,pv as J,qv as K,rv as L}from"./chunk-akzmq0jr.js";import"./chunk-c1f1vtjt.js";import"./chunk-0nhpymyy.js";import{$v as Ib,Hv as ob,Iv as pb,Jv as qb,Kv as rb,Lv as sb,Mv as tb,Nv as ub,Ov as vb,Pv as wb,Qv as xb,Rv as yb,Sv as zb,Tv as Ab,Uv as Bb,Vv as Cb,Wv as Db,Xv as Eb,Yv as Fb,Zv as Gb,_v as Hb,aw as Jb}from"./chunk-4md4tj27.js";import{Aw as _a,Bw as $a,Cw as ab,Dw as bb,Ew as cb,Fw as db,Gw as eb,Hw as fb,Iw as gb,Kw as hb,ew as Pa,fw as Qa,iw as Ra,nw as Sa,ow as Ta,uw as Ua,vw as Va,ww as Wa,xw as Xa,yw as Ya,zw as Za}from"./chunk-z8zmp74b.js";import"./chunk-qcpnfw0k.js";import{Ww as j,Xw as k,Yw as l}from"./chunk-59pakqdv.js";import"./chunk-x7qyx7vn.js";export{pl as writeNetlifyConfig,jn as writeManifest,Ul as writeImageManifest,Bp as wrapComponentForHMR,is as withDefaults,zk as webComponentDirectiveHandler,qq as watermark,sr as watchViews,cm as watchMultiple,dm as watchEffect,bm as watch,Me as warmImagePlaceholders,qm as waitForStore,X as waitForLocale,mp as virtualPathFor,mk as videoDirective,G as validators,ms as validated,Ce as validateValueEnhanced,pi as validateTemplate,Ym as validateRouteRules,vq as validateParams,De as validateFormEnhanced,hr as validateFile,ye as validateFields,xe as validateField,ri as validateDirective,Xd as validateCspDirectives,Hk as validateConfig,wn as validateComponentScripts,Un as validateComponentProps,lh as validateClientScript,ki as v,Hc as usesSignalsInScript,ub as usesReactiveRuntime,Fi as userComponentFileExists,Sh as useVirtualList,je as useTitle,pm as useStoreOrThrow,Tp as useStore,Yk as useStorage,Af as useSlots,_k as useSessionStorage,cc as useServerRuntimeConfig,Yf as useServerData,ge as useSeoMeta,dc as useRuntimeConfig,rm as useRouteParams,tm as useRouteParamOrThrow,sm as useRouteParam,je as usePageTitle,rf as useOptimistic,Ff as useModel,vm as useMiddlewareValue,um as useMiddlewareState,Zk as useLocalStorage,up as useLoadingIndicator,ee as useHead,hi as useForm,Cf as useAttrs,jr as uploadFiles,ir as uploadFile,mm as updateInstance,pf as untrack,Vi as unregisterDirective,nm as unmountInstance,Qc as unescapeHtml,qp as typecheckStxFiles,Di as transpileTypeScript,Xr as translate,Ba as transitionDirective,lc as transformAutoImports,On as toUsers,Nn as toUser,$p as thumbnail,ar as thumbHashToRGBA,br as thumbHashToDataURL,wb as templateNeedsRuntime,vb as templateHasReactiveContext,Jf as templateCache,nd as syncRecordedResponse,yp as stxClientHelpers,kg as structuredDataDirective,_r as stripLocalePrefix,Um as stripDocumentWrapper,Sb as stripCommentsAndLiterals,zo as stringToStream,Ld as strictCspPreset,Xe as streamingSuspenseDirective,$e as streamToResponse,Ve as streamTemplateSimple,Pe as streamTemplate,Tk as stopHmrServer,Kn as stopBroadcasting,_b as stateDirName,$b as stateDir,df as state,fh as startsDocument,Uo as startProductionServer,Po as startInteractive,Jn as startBroadcasting,as as stampLocaleLayoutGroup,Ia as staggerDirective,tq as srcsetUrls,Ja as springDirective,ud as splitByPipe,Qm as spaNavVaryHeaders,np as sourcePathFor,Aq as smartBatchSign,Hi as slotContentHasExpressions,yq as signUrl,Bi as shouldTranspileTypeScript,Qk as shouldReloadOnChange,Dq as shouldRefreshSignature,Rk as shouldIgnoreFile,Kh as shouldCacheComponent,dq as sharpen,ps as shape,Zb as setStateDir,zm as setRouteParams,Am as setMiddlewareState,Le as setImagePlaceholder,uf as setGlobalProvide,b as setErrorLocale,Wl as setCurrentInstance,ak as setCachedVideoResult,Rj as setCachedImageResult,Lj as setCached,ss as serveStxFile,us as serveMultipleStxFiles,Lk as serveMarkdownFile,dp as serveFile,vs as serveApp,cp as serve,Ep as serializeState,ln as serializeSetCookie,fq as sepia,he as seoMetaToHeadConfig,Ca as scrollAnimateDirective,va as screenReaderDirective,Ei as scopeOnRootElement,qk as scopeHTML,pk as scopeCSS,ng as scanForSitemapEntries,pa as scanA11yTargets,qa as scanA11yIssues,jq as saturation,wq as sanitizeParams,I as sanitizeFilePath,J as sanitizeExpression,K as sanitizeDirectiveParams,H as sanitizeDirectiveParam,L as sanitizeComponentProps,B as safeExecuteAsync,A as safeExecute,Cb as runtimeHandledXAttrsLiteral,Gb as runtimeEventRegexLiteral,Eb as runtimeDirectiveNamesLiteral,yg as runPreProcessingMiddleware,zg as runPostProcessingMiddleware,on as runPageAction,kf as runMountCallbacks,gb as runMiddleware,km as runHooks,Qr as runDoctor,lf as runDestroyCallbacks,Cg as runComposers,kq as rotate,li as rewriteImagesWithSiblings,od as responseBindings,Li as resolveTemplatePath,ha as resolveStxTargets,Dk as resolveStxDirectories,Wr as resolveI18n,Zp as resize,qg as resetUnscopedSignalWarnings,Oc as resetRejectedExpressionWarnings,sc as resetPlaceholders,de as resetHead,Dp as resetHMRHandler,o as resetErrorConfig,ks as required,cg as reportDeferredLoopWarnings,wc as replacePlaceholders,Ec as replaceInterpolations,qr as renderView,jk as renderVideoComponent,ic as renderVendorStyleTags,zr as renderToString,Ar as renderToStream,Br as renderToDOM,$q as renderThumbhashToCanvas,Nr as renderTemplateString,Lr as renderTemplate,Mr as renderString,Se as renderStreamingPage,wi as renderSlot,Ah as renderSSRSuspense,Lq as renderProtectedVideo,Kq as renderProtectedImg,xq as renderMediaUpload,Kr as renderMarkdownView,an as renderLayoutTypes,Vj as renderImgComponent,Kl as renderImageComponent,le as renderHtmlAttrs,ke as renderHead,tr as renderEmail,Ji as renderComponentWithSlot,me as renderBodyAttrs,Op as render,Nd as relaxedCspPreset,we as registerValidationRule,Ze as registerStreamingDirectives,Vp as registerStoresClient,xm as registerStore,Rf as registerServeModuleBundle,lg as registerSeoDirectives,_a as registerMiddleware,Ac as registerFilters,zc as registerFilter,d as registerErrorMessages,Be as registerEnhancedValidationRule,Si as registerDirective,Wd as registerCspDirectives,Xn as registerComponentDirectives,Oa as registerAnimationDirectives,wa as registerA11yDirectives,mc as referencesName,_l as ref,Ho as redirect,jd as recordResponseStatus,kd as recordResponseHeader,ac as rebaseOntoStateDir,ld as readResponseStatus,md as readResponseHeaders,Jk as readMarkdownFile,Kf as readFileCached,$l as reactive,oq as quality,Iq as pruneSignatureCache,Oj as pruneCache,sf as provide,Jr as protectCodeBlocks,js as prop,Fg as processVueTemplate,Qh as processVirtualListDirectives,Uh as processVirtualGridDirectives,ik as processVideo,ze as processValidateDirective,ea as processTranslateDirective,uh as processTransitionDirectives,xh as processTransitionAttributes,pe as processTitleDirective,bd as processTemplateBindings,qh as processTeleportDirectives,yh as processSuspenseDirectives,gg as processStructuredData,Te as processStreamDirectives,pd as processStatusDirective,fi as processStaticDirectives,wg as processStackReplacements,vg as processStackPushDirectives,xi as processSlots,Sm as processShell,Oe as processServerBindings,hg as processSeoDirective,_e as processSectionDirectives,Vc as processScopedStyles,$c as processReactiveBindings,Mq as processProtectedMedia,_h as processPartialHydrationDirectives,kh as processOnceDirective,xg as processMiddleware,fg as processMetaDirectives,qe as processMetaDirective,Kk as processMarkdownFileDirectives,Qi as processMarkdownDirectives,dg as processLoops,Ih as processKeepAliveDirectives,jh as processJsonDirective,Th as processInfiniteListDirectives,ug as processIncludes,Xj as processImgComponents,Ml as processImageComponents,zl as processImage,oe as processHeadDirective,se as processForms,ue as processFormInputDirectives,Mc as processExpressions,Pb as processEventDirectives,ve as processErrorDirective,Gg as processDynamicComponents,mi as processDirectives,_i as processDirectiveAttributes,ph as processDeferDirectives,$d as processCustomDirectives,Td as processCspDirectives,qs as processComponentProps,rc as processClientScript,te as processBasicFormDirectives,Dh as processAsyncDirectives,ae as processAppearanceBootstrapDirective,Fa as processAnimationDirectives,ka as processA11yDirectives,He as prepareImageDelivery,T as preloadTranslationsBackground,S as preloadTranslations,tp as preloadIslandHandlers,Ne as preloadIconCollection,Fn as poolStrings,Bk as pluginManager,Je as placeholdersWarmed,th as performLeave,sh as performEnter,mf as pendingLifecycleCounts,qf as peek,rg as partialsCache,kk as parseVideoDirectiveOptions,Xp as parseUrl,cr as parseThumbhashString,Ad as parseSwitchBlock,ui as parseSlots,vi as parseSlotElement,Fd as parseScriptDeclarations,xk as parseSFCComponent,Nq as parseProtectedArgs,bg as parseLoopBinding,Wj as parseImgComponent,mj as parseImageUrl,Ll as parseImageComponent,mn as parseFormBody,Cd as parseExpressionWithFilters,Yn as parseDefaults,Eo as parseCookies,Jm as parseContainerSelector,xd as parseConditionalBlock,Dd as parseArguments,Ma as parseAnimationShorthand,ls as optional,Gn as optimizeTemplate,Rl as optimizeImage,Sl as optimizeDirectory,ns as oneOf,sg as onceStore,hm as onUpdated,_c as onUpdate,jm as onUnmounted,Em as onServer,fm as onMounted,hf as onMount,ei as onHydrated,yf as onErrorCaptured,jf as onDestroy,Oh as onDeactivated,Dm as onClient,gm as onBeforeUpdate,im as onBeforeUnmount,em as onBeforeMount,Nh as onActivated,Xq as observeElement,Io as notFound,Lg as normalizeCriticalHeadOrder,xf as nextTick,$n as negotiateEncoding,Ua as navigateTo,lm as mountInstance,Ea as motionDirective,Md as moderateCspPreset,En as minifyHtml,jg as metaDirective,Zg as metaDedupKey,Yp as mergeParams,$g as mergeHtmlAttrs,fe as mergeHeadConfigs,Sc as mergeCssConfig,Qd as mergeCspDirectives,Ra as matchRoute,Ri as markdownDirectiveHandler,Ik as markdownCache,ga as looksLikeGlob,Zr as localizePath,U as loadTranslationLazy,_ as loadTranslation,Ek as loadStxConfig,db as loadMiddlewareFromDirectory,kn as loadManifest,Tq as loadElement,Ln as loadChannels,Lb as listensPassively,es as lintStxStrict,Vq as lazyLoadAll,Uq as lazyLoad,Ha as keyframeDirective,dl as keptState,xr as jsxs,yr as jsxDEV,wr as jsx,Go as jsonResponse,Ye as islandDirective,l as isTest,Wm as isSpaNavigation,Om as isSpaNavRequest,Bq as isSignatureValid,nf as isSignal,xl as isSharpAvailable,so as isServerEnvironment,Bm as isServer,yb as isRuntimeOwnedColonAttr,Hb as isRuntimeEventName,da as isRtlLocale,j as isProduction,ia as isPresentationalRole,Qq as isNativeLazySupported,Ir as isMarkdownPath,Q as isLoading,R as isLoaded,Ai as isJavaScriptScript,Rq as isIntersectionObserverSupported,Fl as isImageFile,yl as isImageBackendAvailable,aa as isICUFormat,di as isHydrated,Gi as isHydrateTrigger,hd as isHttpStatus,ro as isEdgeEnvironment,fs as isDirectiveKind,k as isDevelopment,of as isDerived,Pk as isCssOnlyChange,_n as isCompressible,Cm as isClient,Vm as isChromeInstanceScript,Fh as isAsyncComponent,nn as isActionableMethod,gq as invert,Mf as invalidateFileCacheByDir,Lf as invalidateFileCache,Lc as interpolateScriptsInTemplate,Jc as interpolateScriptExpressions,Kc as interpolateScriptAttributes,x as inlineError,Vr as injectThemeBootstrap,ig as injectSeoTags,Sr as injectSeo,Xf as injectRouterScript,Ok as injectHotReload,kb as injectHeatmap,Zc as injectCss,Rd as injectCspMetaTag,hh as injectConfigHeadTags,Kg as injectColorModeBootScript,bh as injectCloakStyle,Rg as injectBuildId,kc as injectBrowserCoreAutoImports,dd as injectAnalytics,tf as inject,wm as initStoreRegistry,sl as initNetlify,vp as initLoadingIndicator,Sq as initLazyLoading,Oo as initFile,_q as initBlurUp,er as initAllBlurUp,Zj as imgDirective,Pl as imageDirective,rn as hydrateTemplateStream,qn as hydrateTemplate,sp as hydrateIslands,ai as hydrateIsland,sn as hydrateFragment,bi as hydrateByStrategy,ci as hydrateAll,Lp as hydrate,bp as htmlResponse,dh as hoistLeadingHeadTags,Mg as hoistColorModeBootScript,lb as heatmapDirective,Hj as hashString,Wf as hashFilePath,Fj as hashFile,Gj as hashBuffer,Eg as hasVueTemplateSyntax,ag as hasVariables,Qp as hasStore,xc as hasPlaceholders,ql as hasNetlifyConfig,ab as hasMiddleware,Qb as hasEventDirectives,gh as hasDocumentShell,si as hasDirectives,ma as hasDOMSupport,Il as handleImageRequest,zf as handleError,Fr as h,El as groupVariantsByFormat,eq as grayscale,Wo as gitHash,yn as getUnusedDirectives,V as getTranslationSync,O as getTranslationCacheStats,W as getTranslationAsync,ba as getTranslation,ll as getTotalSize,Cq as getTimeUntilExpiry,mh as getStoreScript,Rp as getStoreNames,Pp as getStore,bl as getStorageSize,al as getStorageKeys,Mi as getSourceLineInfo,Ci as getSharedTranspiler,Sf as getServeModuleBundle,Qf as getServeClientAsset,la as getScreenReaderOnlyStyle,rk as getScopeAttribute,cf as getRouteParams,Vb as getPublicEnvDefine,Wb as getPublicEnv,qi as getPositionInfo,uc as getPlaceholderRegistry,Ej as getPlaceholderCacheStats,ce as getPageMeta,Hd as getNonce,Gl as getMimeType,cb as getMiddlewareNames,$a as getMiddleware,ca as getLocaleDirection,P as getLoadingState,Y as getLoadingLocales,Ie as getImagePlaceholder,Al as getImageMetadata,Fe as getImageDelivery,Kp as getHydrationRuntime,ym as getHydratedStoreState,Sk as getHmrServer,be as getHead,Cp as getHMRHandler,qj as getFormatExtension,Jj as getFileMtime,Dl as getFallbackVariant,f as getErrorMessage,c as getErrorLocale,n as getErrorConfig,i as getErrorCodeName,Ui as getDirectives,Ti as getDirective,Xl as getCurrentInstance,Wc as getCssServeAsset,Pd as getCspPreset,Yd as getCspHeaderName,Pi as getComponentCacheStats,$j as getCachedVideoResult,Gq as getCachedSignature,Of as getCachedSignalsRuntime,Pf as getCachedRouterScript,Cj as getCachedPlaceholder,Qj as getCachedImageResult,Kj as getCached,Nj as getCacheStats,Pg as getBuildId,In as getBroadcastServer,pj as getBestVariant,Bc as getAllFilters,dj as generateWidthSrcset,Rh as generateVirtualListCSS,lr as generateVideoPreview,Ee as generateValidationScript,mr as generateUploadRuntime,zn as generateTreeShakenBundle,wh as generateTransitionRuntime,vh as generateTransitionCSS,dk as generateThumbnails,vj as generateThumbhashPlaceholder,jo as generateTemplatesDocs,Ch as generateSuspenseRuntime,Bh as generateSuspenseCSS,Fp as generateStateScript,nj as generateSrcsetData,Uj as generateSrcset,Bl as generateSrcSet,ek as generateSpriteSheet,ur as generateSpaShell,oj as generateSourceTags,jj as generateSizesFromBreakpoints,ij as generateSizesAttribute,Cl as generateSizes,mg as generateSitemapIndex,Tr as generateSitemap,Pq as generateSimpleMediaPicker,Jq as generateSignatureRuntime,If as generateSignalsRuntimeDev,Hf as generateSignalsRuntime,qc as generateServerDataBridge,ok as generateScopeId,yk as generateSFCWebComponent,Nb as generateRuntimeScript,Pa as generateRouteTypes,Qa as generateRouteManifest,og as generateRobotsTxt,Ur as generateRobots,Tj as generateResponsiveVariants,uk as generateReactiveWebComponentTS,tk as generateReactiveWebComponent,wk as generateReactiveRuntime,vk as generateReactiveMixin,ck as generatePoster,Bj as generatePlaceholderStyle,Aj as generatePlaceholderCSS,uj as generatePlaceholder,$h as generatePartialHydrationCSS,Vg as generateOfflineWorker,Gd as generateNonce,ml as generateNetlifyToml,or as generateMinifiedMediaRuntime,nr as generateMediaRuntime,Oq as generateMediaManagerEmbed,hn as generateManifest,xp as generateLoadingIndicatorHtml,Zq as generateLazyLoadRuntime,bn as generateLayoutTypes,xj as generateLQIP,Mh as generateKeepAliveRuntime,Lh as generateKeepAliveCSS,gi as generateIslandManifest,kr as generateImagePreview,Tl as generateImageManifest,Jp as generateHydrationScript,af as generateHydrationRuntime,Mp as generateHydrationCSS,Vh as generateHydrationBootstrap,Nk as generateHotReloadScript,jb as generateHeatmapScript,Ap as generateHMRClientScript,fk as generateHLSManifest,Gp as generateEventBindings,hj as generateDprSrcsetWithVariableQuality,gj as generateDprSrcset,eh as generateDocumentShell,oo as generateDocs,ko as generateDirectivesDocs,Zi as generateDirectiveRuntime,pg as generateDefaultRobotsTxt,gk as generateDASHManifest,Yc as generateCss,Kd as generateCspMetaTag,Jd as generateCspHeader,Ef as generateCompositionRuntime,io as generateComponentsDocs,Wh as generateComponentManifest,go as generateComponentDoc,zj as generateColorPlaceholder,Jg as generateColorModeBootScript,om as generateClientRuntime,Ij as generateCacheKey,oc as generateBrowserAutoImportDestructuring,fr as generateBlurUpRuntime,gr as generateBlurUpCSS,ad as generateBindingsRuntime,ej as generateAutoWidthSrcset,nc as generateAutoImportDestructuring,Hh as generateAsyncComponentRuntime,Gh as generateAsyncComponentCSS,fc as generateApiTypes,Na as generateAnimationRuntime,La as generateAnimationCSS,cd as generateAnalyticsScript,rp as formatTypecheckDiagnostics,kp as formatTypeErrors,Lo as formatStxContent,kl as formatSize,Ta as formatRoutes,Mo as formatMarkdownContent,g as formatLocalizedError,$ as formatICU,p as formatFilePath,w as formatError,Rr as formatDoctorReport,lo as formatDocsAsMarkdown,no as formatDocsAsJson,mo as formatDocsAsHtml,nq as format,el as forgetKeptState,Dn as foldConstants,mq as flipVertical,lq as flipHorizontal,cn as fingerprint,pp as findStxModuleDeclarations,op as findRuntimeTypeDeclarations,Pr as findPantryPackage,Dc as findMustacheEnd,wd as findMatchingEndTag,sd as findMatchingDelimiter,Rb as findInterpolationEnd,yd as findIfBlocks,Bd as findExpressions,Sa as findErrorPage,Tc as findDuplicateScopedStyleRanges,zd as findDirectiveBlocks,An as findDeadCode,An as findDeadBranches,Km as findContainerRegion,ho as findComponentFiles,ts as findCommonDir,jl as filterRequiredFiles,Ki as fileExists,Zf as extractVariables,oi as extractTemplateExpressions,Ue as extractStreamBoundaries,Hp as extractState,yi as extractSlotContent,$f as extractScriptFromTemplate,ni as extractScriptBlocks,vc as extractPlaceholders,vd as extractParenthesizedExpression,id as extractPageResponseStatus,hb as extractLayoutMetadata,yj as extractDominantColor,Ed as extractDirectiveParams,ti as extractDirectiveNames,Xm as extractContainerContent,eo as extractComponentProps,Xh as extractComponentName,fo as extractComponentDescription,Xc as extractClassNames,pc as extractBridgeData,Yh as extractBoundProps,td as extractBalancedExpression,hc as extractAndStripCssImports,sk as extractAndScopeStyles,Ob as extractAndProcessEvents,Wk as externalizeSharedAssets,Xk as externalizeRepeatedAssets,Vk as externalizeHtml,Pc as evaluateExpression,Cn as evaluateConstant,qd as evaluateAuthExpression,Gc as escapeHtmlValue,Fc as escapeHtml,C as errorRecovery,E as errorLogger,rh as ensureTeleportTargets,ih as ensureDocumentShell,Ae as enhancedValidationRules,bo as enableDevTools,Bn as eliminateDeadCode,ff as effect,uq as dprUrls,po as docsCommand,ec as discoverServerApi,$m as discoverLayoutNames,Yq as disconnectObserver,co as disableDevTools,F as devHelpers,Rm as detectShell,qo as detectRuntime,nl as detectProjectConfig,rj as detectFormat,vn as detectBuildMode,ef as derived,rl as deploy,Gk as defineStxConfig,Up as defineStore,Bf as defineSlots,ds as defineSiteConfig,hs as definePropsWithValidation,gs as defineProps,Ak as definePlugin,ie as definePageMeta,Wa as defineMiddleware,ii as defineForm,wf as defineExpose,vf as defineEmits,Wi as defineDirective,Hr as defineCustomElement,To as defineConfig,Xi as defineClientDirective,Eh as defineAsyncComponent,Vo as defineApiHandler,pr as defaultMediaConfig,Vl as defaultImageConfig,M as defaultI18nConfig,ib as defaultHeatmapConfig,re as defaultFormClasses,yc as defaultFilters,_d as defaultCspConfig,Ck as defaultConfig,rs as default,Rc as deepMergeThemes,Uc as dedupeScopedStyles,Nm as decodeTitleEntities,wj as decodeThumbhash,eg as declareBareLoopHead,Vd as cspNonceDirective,Ud as cspDirective,dr as crossfadeTransition,_p as crop,Ph as createVirtualList,lk as createVideoDirective,Co as createVercelHandler,hp as createTypeChecker,fa as createTranslateFilter,yo as createTextEncoderStream,Gr as createStxApp,xo as createStreamingResponse,We as createStreamRenderer,Sp as createStore,Za as createStorageManager,Xa as createServerCookieManager,gc as createServerApi,Zl as createScope,zh as createSSRSuspense,bf as createRouter,Zm as createRouteRuleResolver,eb as createRouteLocation,fp as createRoute,_l as createRef,$l as createReactive,Df as createProvideContext,Yo as createProject,So as createProductionBuild,tc as createPlaceholder,Hn as createOptimizedBuild,Do as createNetlifyHandler,fl as createNetlifyClient,fb as createMiddlewareContext,ep as createMiddleware,Wq as createLazyObserver,Jh as createKeepAliveCache,uo as createKVNamespace,Zh as createIslandRegistry,Yj as createImgDirective,Ql as createImagePlugin,Jl as createImageHandler,Ol as createImageDirective,nb as createHeatmapAggregator,il as createFileManifest,to as createEnvAccessor,z as createEnhancedError,wo as createEdgeHandler,vo as createEdgeCache,Ni as createDetailedErrorMessage,Bo as createDenoHandler,ol as createDefaultNetlifyConfig,Zd as createCspHeaders,Fo as createCookie,am as createComputed,Yl as createComponentInstance,Ao as createCloudflareHandler,Ya as createClientCookieManager,Yi as createBuiltinDirectives,Gr as createApp,Ka as createAnimationTimeline,bq as cover,_f as convertToCommonJS,iq as contrast,aq as contain,y as consoleError,m as configureErrorHandling,Fk as config,am as computed,ao as compressResponse,Bg as composerPattern,Ag as composer,Tm as composeShellWithPage,Wn as componentDirective,Ii as componentClientSignalNames,gn as compileTemplate,a as collectRepeatedFlag,hl as collectDeployFiles,ch as cloakStyleFragment,Ic as clientLoopScopes,bk as clearVideoCache,N as clearTranslationCache,nh as clearStoreCache,$k as clearStorage,Hq as clearSignatureCache,Gf as clearServerData,Dj as clearPlaceholderCache,tg as clearOnceStore,Id as clearNonce,bb as clearMiddleware,Ke as clearImagePlaceholders,Ge as clearImageDeliveryCatalog,Nl as clearImageCache,e as clearErrorMessages,Tf as clearDevCaches,Cc as clearCustomFilters,Dg as clearComposers,oh as clearComposableCache,Oi as clearComponentCache,Mj as clearCache,Ib as clearBlankCache,wp as cleanupLoadingIndicator,Hm as classifyScript,Im as classifyAllScripts,ip as checkTemplateFile,jp as checkTemplate,Uf as checkCache,Eq as checkAuthAccess,na as checkA11yWithRegex,oa as checkA11y,Rn as channel,Ko as captureScreenshots,Jo as captureScreenshot,Z as cancelPendingLoads,gl as calculateSha1,fj as calculateOptimalWidths,Vf as cacheTemplate,bc as cacheEngineFingerprint,nk as buildWebComponents,lp as buildVirtualSource,rr as buildViews,Wp as buildUrl,Qe as buildSuspenseResolveScript,cs as buildStaticSite,qb as buildRuntimeGlobalsDestructure,dn as buildRuntimeAsset,en as buildRouterAsset,bs as buildLangPickerScript,lj as buildImageUrl,Sg as buildIdFragment,_g as buildHtmlAttrs,tn as buildForProduction,Zn as buildComponentLibrary,Fq as buildAuthParams,un as buildApp,$r as buildAlternateLinks,Ro as build,Pn as broadcastPrivate,Qn as broadcastPresence,Mn as broadcast,hq as brightness,Tb as bracketDepths,cq as blur,Jb as blankInertHtmlRegions,zq as batchSignUrls,gf as batch,sa as autoFixA11yFile,ta as autoFixA11yDirectory,ra as autoFixA11y,pq as auto,ja as attributeValue,fn as assetTags,Mb as asInvocableStatement,os as arrayOf,Yr as applyTranslations,Sj as applyTransformations,zi as applySlots,Vn as applyPropDefaults,sq as applyPreset,ah as applyHtmlAttrs,ne as applyHead,Nc as applyFilters,Pm as appendVary,Od as apiCspPreset,Da as animationGroupDirective,hk as analyzeVideo,xn as analyzeUsage,Fm as analyzeTemplate,Gm as analyzeProject,xn as analyzeDirectiveUsage,ed as analyticsDirective,$o as addStore,_o as addPage,Sd as addNonceToInlineContent,ap as addLayout,Zo as addComponent,pn as actionRedirectResponse,Va as abortNavigation,ua as a11yDirective,Nf as __setSignalsGeneratorsForTest,Qg as __setBuildIdForTest,_j as VideoProcessorCache,ji as Validator,xa as TransitionType,za as TransitionEase,ya as TransitionDirection,rd as Tokenizer,gp as TemplateTypeChecker,No as TEMPLATE_PRESETS,v as StxValidationError,r as StxSyntaxError,t as StxSecurityError,s as StxRuntimeError,u as StxFileError,q as StxError,Cr as Show,Re as SUSPENSE_RESOLVER_RUNTIME,ob as STX_RUNTIME_GLOBALS,jc as STX_AUTO_IMPORTS,Yb as STATE_DIR_ENV_VAR,Ga as SPRING_PRESETS,Lm as SPA_NAV_HEADER,Kb as SCROLL_BLOCKING_EVENTS,xb as RUNTIME_OWNED_COLON_ATTRS,zb as RUNTIME_HANDLED_X_ATTRS,Fb as RUNTIME_EVENT_NAMES,Db as RUNTIME_DIRECTIVE_NAMES,fd as RESPONSE_STATUS_KEY,gd as RESPONSE_HEADERS_KEY,tb as REACTIVE_RUNTIME_GLOBALS,Qo as ProductionBuild,Er as Portal,Xo as PROJECT_TEMPLATES,rq as PRESETS,Tg as OFFLINE_WORKER_PATH,Ug as OFFLINE_REGISTER_SCRIPT,sb as NON_CLIENT_PRIMITIVES,Np as MemorySessionStore,cj as MIME_TYPES,$i as MEDIA_DEFAULT_WIDTHS,bj as MEDIA_DEFAULT_FORMATS,_m as LAYOUT_TYPES_FILE,cl as KEPT_STATE_PREFIX,Pj as ImageProcessorCache,Hl as ImageProcessingError,Ip as HydrationRuntime,Mk as HotReloadServer,mb as HeatmapAggregator,Yg as HTML_CLASS_MARKER,Xg as HTML_ATTRS_MARKER,vr as Fragment,Dr as For,Mm as FRAGMENT_CACHE_CONTROL,D as ErrorLogger,h as ErrorCodes,Uk as EXTERNALIZED_ASSET_DIR,tl as DeployError,ul as DEFAULT_WIDTHS,Aa as DEFAULT_TRANSITION_OPTIONS,Xb as DEFAULT_STATE_DIR,wl as DEFAULT_QUALITY,sj as DEFAULT_PLACEHOLDER_OPTIONS,vl as DEFAULT_FORMATS,aj as DEFAULT_DPR_VALUES,zp as ComponentHMRHandler,pb as COMPONENT_SCOPE_LOCAL_GLOBALS,Bb as COMPONENT_PASSTHROUGH_X_ATTRS,rb as COMPILE_TIME_ONLY_GLOBALS,kj as COMMON_SIZES,Hg as COLOR_MODE_BOOT_MARKER,Ig as COLOR_MODE_BOOT_GLOBAL,Wg as CLOAK_STYLE,Tn as BroadcastServer,Sn as Broadcast,Ng as BUILD_ID_META,Og as BUILD_ID_HEADER,Ub as BROWSER_CORE_IMPORTS,tj as BLUR_UP_CSS,Ab as ALPINE_BRIDGE_X_ATTRS,Or as $path};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{af as a}from"./chunk-
|
|
2
|
+
import{af as a}from"./chunk-z80v5h5h.js";import"./chunk-rctgq5xp.js";import"./chunk-1n2ng8nx.js";import"./chunk-1nnskved.js";import"./chunk-sjc7x8y1.js";import"./chunk-ffdxdgep.js";import"./chunk-m8bdy2wt.js";import"./chunk-0n054h7w.js";import"./chunk-wpsx5avz.js";import"./chunk-tfy07tmv.js";import"./chunk-4g4yz97f.js";import"./chunk-pgeh4g3a.js";import"./chunk-z9a0ft6h.js";import"./chunk-h1yb87ep.js";import"./chunk-7q06md6v.js";import"./chunk-1phxzej9.js";import"./chunk-7ba7x6jt.js";import"./chunk-akzmq0jr.js";import"./chunk-c1f1vtjt.js";import"./chunk-0nhpymyy.js";import"./chunk-4md4tj27.js";import"./chunk-z8zmp74b.js";import"./chunk-qcpnfw0k.js";import"./chunk-59pakqdv.js";import"./chunk-x7qyx7vn.js";export{a as startProductionServer};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Xe as a}from"./chunk-
|
|
2
|
+
import{Xe as a}from"./chunk-ayhhvep9.js";import"./chunk-sjc7x8y1.js";import"./chunk-ffdxdgep.js";import"./chunk-m8bdy2wt.js";import"./chunk-0n054h7w.js";import"./chunk-wpsx5avz.js";import"./chunk-tfy07tmv.js";import"./chunk-4g4yz97f.js";import"./chunk-pgeh4g3a.js";import"./chunk-z9a0ft6h.js";import"./chunk-h1yb87ep.js";import"./chunk-7q06md6v.js";import"./chunk-1phxzej9.js";import"./chunk-7ba7x6jt.js";import"./chunk-akzmq0jr.js";import"./chunk-c1f1vtjt.js";import"./chunk-0nhpymyy.js";import"./chunk-4md4tj27.js";import"./chunk-z8zmp74b.js";import"./chunk-qcpnfw0k.js";import"./chunk-59pakqdv.js";import"./chunk-x7qyx7vn.js";export{a as startInteractive};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Bg as I}from"./chunk-1n2ng8nx.js";import{Hr as H}from"./chunk-
|
|
2
|
+
import{Bg as I}from"./chunk-1n2ng8nx.js";import{Hr as H}from"./chunk-sjc7x8y1.js";import{bx as G}from"./chunk-x7qyx7vn.js";import L from"path";async function Q(k={}){let J=performance.now(),A=k.root||process.cwd(),j=await H(A),B=k.ssr?.routeRules??j.routeRules??{};if(I(B),!j.ssr&&Object.keys(B).length)throw Error("routeRules require ssr: true and the production server; flat SSG output cannot apply request/cache policies");if(!j.ssr&&(k.ssr?.serverApi??j.serverApi))throw Error("serverApi requires ssr: true; flat SSG output cannot execute API endpoints");let q=j.ssr?"ssr":"ssg";console.log(`[stx build] Mode: ${q.toUpperCase()}${j.ssr?" (ssr: true in stx.config.ts)":" (default \u2014 ssr is false)"}`);let D,E;if(q==="ssg"){let{generateStaticSite:z}=await import("./ssg.js");D=await z({pagesDir:L.join(j.root||".",j.pagesDir||j.build?.pagesDir||"pages"),publicDir:j.publicDir||j.build?.publicDir||"public",outputDir:j.build?.outputDir||"dist",generate404:j.build?.generate404??!0,minify:j.build?.minify??!0,cleanOutput:j.build?.cleanOutput??!0,router:j.router,...k.ssg})}else{let{buildForProduction:z}=await import("./chunk-pqskmpz0.js");E=await z({root:A,outputDir:".output",debug:k.debug,...k.ssr})}let K=Math.round(performance.now()-J);return{mode:q,ssg:D,ssr:E,duration:K}}
|
|
3
3
|
export{Q as Ye};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{eg as ZJ,gg as g,ig as A,pg as n,sg as GJ,vg as WJ,xg as YJ,zg as jJ}from"./chunk-
|
|
2
|
+
import{eg as ZJ,gg as g,ig as A,pg as n,sg as GJ,vg as WJ,xg as YJ,zg as jJ}from"./chunk-rctgq5xp.js";import{Cg as $J}from"./chunk-1n2ng8nx.js";import{vl as XJ}from"./chunk-1nnskved.js";import{qo as h}from"./chunk-sjc7x8y1.js";import{Rs as e}from"./chunk-4g4yz97f.js";import{St as QJ,Wt as i,Yt as p}from"./chunk-7q06md6v.js";import{Kw as l,Pw as VJ,hw as KJ}from"./chunk-z8zmp74b.js";import{bx as DJ}from"./chunk-x7qyx7vn.js";import JJ from"fs";import k from"path";var{serve:wJ}=globalThis.Bun;VJ();import y from"zlib";import{promisify as a}from"util";var IJ=a(y.brotliCompress),OJ=a(y.gzip),UJ=["text/","application/json","application/javascript","application/xml","application/xhtml+xml","application/rss+xml","application/atom+xml","application/manifest+json","image/svg+xml"],BJ=["text/event-stream","multipart/x-mixed-replace"],_J=1024;function zJ(K){if(!K)return!1;let J=K.toLowerCase();if(BJ.some((G)=>J.startsWith(G)))return!1;return UJ.some((G)=>J.startsWith(G))}function FJ(K){let J=new Map;for(let G of K.split(",")){let[Z,...W]=G.trim().split(";"),O=Z.trim().toLowerCase();if(!O)continue;let U=1;for(let B of W){let w=/^\s*q\s*=\s*([\d.]+)\s*$/i.exec(B);if(!w)continue;let F=Number.parseFloat(w[1]);if(Number.isFinite(F))U=F}J.set(O,U)}return J}function LJ(K){if(!K)return null;let J=FJ(K),G=J.get("*"),Z=(W)=>J.get(W)??G??0;if(Z("br")>0)return"br";if(Z("gzip")>0)return"gzip";return null}async function t(K,J,G={}){if(J.headers.get("content-encoding"))return J;if(J.status===204||J.status===304||!J.body)return J;if(!zJ(J.headers.get("content-type")))return J;let Z=LJ(K.headers.get("accept-encoding"));if(!Z)return J;let W;try{W=new Uint8Array(await J.arrayBuffer())}catch{return J}let O=()=>new Response(W,{status:J.status,statusText:J.statusText,headers:s(J.headers)});if(W.length<(G.threshold??_J))return O();try{let U=Z==="br"?await IJ(W,{params:{[y.constants.BROTLI_PARAM_QUALITY]:G.quality??5,[y.constants.BROTLI_PARAM_SIZE_HINT]:W.length}}):await OJ(W);if(U.length>=W.length)return O();let B=s(J.headers);return B.set("Content-Encoding",Z),B.set("Content-Length",String(U.length)),new Response(U,{status:J.status,statusText:J.statusText,headers:B})}catch{return O()}}function s(K){let J=new Headers(K),G=J.get("Vary");if(!G)return J.set("Vary","Accept-Encoding"),J;if(!G.split(",").some((W)=>W.trim().toLowerCase()==="accept-encoding"))J.set("Vary",`${G}, Accept-Encoding`);return J}class d{now;entries=new e(1000,{maxBytes:33554432,sizeOf:(K)=>K.body.byteLength+JSON.stringify(K.headers).length*2});pending=new Map;generation=0;constructor(K=Date.now){this.now=K}invalidate(K){this.generation++,this.pending.clear();for(let J of Array.from(this.entries.keys()))if(K===void 0||this.entries.get(J)?.path===K)this.entries.delete(J)}async respond(K,J,G){let Z,W=async()=>{let X=Z??await G();return X.headers.set("Cache-Control","private, no-store"),X.headers.set("Vary",A(X.headers.get("Vary")).Vary),X};if(!J||K.method!=="GET"||K.headers.has("Cookie")||K.headers.has("Authorization")||K.headers.has("Range"))return W();let O=new URL(K.url),U=`${O.origin}${O.pathname}${O.search}|${g(K)?"fragment":"document"}`,B=this.entries.get(U),w=(X)=>{let T=new Headers(X.headers);return T.set("Cache-Control","private, no-store"),T.set("Age",String(Math.max(0,Math.floor((this.now()-X.created)/1000)))),new Response(X.body.slice(0),{headers:T})},F=B?(this.now()-B.created)/1000:1/0;if(B&&F<J.maxAge)return w(B);let S=this.generation,q=async()=>{let X=await G();Z=X;let T=(X.headers.get("Vary")??"").toLowerCase().split(",").map((L)=>L.trim()).filter(Boolean);if(X.status!==200||X.headers.has("Set-Cookie")||/(?:private|no-store|no-cache)/i.test(X.headers.get("Cache-Control")??"")||T.some((L)=>L!=="x-stx-router"&&L!=="accept-encoding"))return null;let M=await X.clone().arrayBuffer();if(M.byteLength>1048576)return null;X.headers.set("Vary",A(X.headers.get("Vary")).Vary);let Q={body:M,headers:Array.from(X.headers.entries()),created:this.now(),path:O.pathname};if(this.generation===S)this.entries.set(U,Q);return Q},H=this.pending.get(U);if(!H){if(this.pending.size>=1000)return W();H=q().finally(()=>{if(this.pending.get(U)===H)this.pending.delete(U)}),this.pending.set(U,H)}if(B&&F<J.maxAge+(J.swr??0))return H.catch(()=>{}),w(B);let x=await H;return x?w(x):W()}}var HJ={".js":"application/javascript",".mjs":"application/javascript",".css":"text/css",".json":"application/json",".html":"text/html",".txt":"text/plain",".xml":"application/xml",".pdf":"application/pdf",".png":"image/png",".jpg":"image/jpeg",".jpeg":"image/jpeg",".gif":"image/gif",".webp":"image/webp",".avif":"image/avif",".svg":"image/svg+xml",".ico":"image/x-icon",".bmp":"image/bmp",".mp4":"video/mp4",".webm":"video/webm",".ogg":"audio/ogg",".mp3":"audio/mpeg",".wav":"audio/wav",".woff":"font/woff",".woff2":"font/woff2",".ttf":"font/ttf",".otf":"font/otf",".eot":"application/vnd.ms-fontobject"};async function uJ(K={}){let J=k.resolve(K.outputDir||".output"),G=K.port??3000,Z=GJ(J);if(!Z)console.error("[stx] No build manifest found. Run `stx build` first."),process.exit(1);console.log(`[stx] Production server loading ${Z.routes.length} routes...`);let W=$J(Z.routeRules),O=new d,U=XJ(J,Z.apiRoutes??[]),B=Bun.file(k.join(J,"server/runtime-config.json")),w=K.runtimeConfig??(await B.exists()?await B.json():void 0),F=w?i(w):void 0,S=new Map,q=new Map,H=new Map,x=new Map;for(let Q of Z.routes)try{let L=k.join(J,Q.compiledPath),Y=JSON.parse(await Bun.file(L).text());if(F)Y.html=p(Y.html,F);S.set(Q.pattern,Y),H.set(Q.pattern,l(Y.html)),x.set(Q.pattern,h(Y.html));let C=k.join(J,Q.fragmentPath);if(await Bun.file(C).exists()){let P=await Bun.file(C).text();q.set(Q.pattern,F?p(P,F):P)}}catch(L){console.warn(`[stx] Failed to load route ${Q.pattern}:`,L)}let X=new Map,T=[];for(let Q of Z.routes)if(Q.hasParams){let{regex:L,params:Y}=KJ(Q.pattern);T.push({regex:L,route:Q,paramNames:Y})}else X.set(Q.pattern,Q);let M=wJ({port:G,async fetch(Q){return t(Q,await QJ(F??i(),async()=>{let Y=new URL(Q.url).pathname;if(K.onRequest){let j=await K.onRequest(Q);if(j)return j}if(K.apiRouter){let j=await K.apiRouter.handleRequest(Q);if(j.status!==404)return j}if(K.apiRoutes?.[Y])return K.apiRoutes[Y](Q);let C=await U(Q);if(C)return C;if((Q.method==="GET"||Q.method==="HEAD")&&Y!=="/"){let j=k.resolve(J,"public"),_;try{_=decodeURIComponent(Y)}catch{_=Y}if(!_.includes("\x00")){let I=k.resolve(j,`.${_}`);if(I===j||I.startsWith(`${j}${k.sep}`))try{if(JJ.existsSync(I)&&JJ.statSync(I).isFile()){let z=k.extname(I).toLowerCase(),E=HJ[z]||"application/octet-stream",v=Y.startsWith("/__stx/")||/\.[0-9a-f]{8}\./.test(Y);return new Response(Bun.file(I),{headers:{"Content-Type":E,"Cache-Control":v?"public, max-age=31536000, immutable":"public, max-age=3600"}})}}catch{}}}let P=g(Q),D=null,o={};if(D=X.get(Y)||null,!D)for(let{regex:j,route:_,paramNames:I}of T){let $=Y.match(j);if($){D=_,I.forEach((z,E)=>{o[z]=$[E+1]});break}}if(!D){let j=X.get("/404")||null;if(j){let _=S.get(j.pattern);if(_)return new Response(_.html,{status:404,headers:{"Content-Type":"text/html"}})}return new Response("Not Found",{status:404})}let R=W(Y),r=Object.keys(R).length>0;return O.respond(Q,R.cache,async()=>{let j=S.get(D.pattern);if(P&&Q.method==="GET"&&j&&!j.hasServerScripts&&Object.keys(j.placeholders).length===0){let $=q.get(D.pattern);if($){let z=H.get(D.pattern);return new Response($,{status:j.status??200,headers:{"Content-Type":"text/html","X-STX-Fragment":"true",...x.has(D.pattern)?{"X-STX-Runtime":x.get(D.pattern)?"true":"false"}:{},...z?{"X-STX-Layout":z.layout,"X-STX-Layout-Group":z.group}:{},...A(),...R.cache?{}:{"Cache-Control":ZJ}}})}}let _=WJ(Q.method),I=S.get(D.pattern);if(!I){let $=X.get("/500")||null;if($){let z=S.get($.pattern);if(z)return new Response(z.html,{status:500,headers:{"Content-Type":"text/html"}})}return new Response("Internal Server Error",{status:500})}if(D.prerendered&&_)return new Response("Prerendered pages do not accept actions",{status:405,headers:{Allow:"GET, HEAD"}});if(!_&&!I.hasServerScripts&&Object.keys(I.placeholders).length===0)return new Response(I.html,{status:I.status??200,headers:{"Content-Type":"text/html",...A(),"Cache-Control":"public, max-age=60"}});try{let{html:$,boundaries:z,redirect:E,cookies:v,status:m,headers:c}=await jJ(I,{params:o,request:Q,method:Q.method,__stx_strict_hydration:r,__stx_runtime_config:F});if(E)return YJ(E,v,c);if(z&&z.length>0){let{renderStreamingPage:N,streamToResponse:u}=await import("./chunk-wszdgqe3.js"),b=new Headers({...A(),...c,"Cache-Control":"private, no-store"});for(let f of v??[])b.append("Set-Cookie",f);if(P&&!_){let f=l($);b.set("X-STX-Fragment","true"),b.set("X-STX-Runtime",h($)?"true":"false"),b.set("X-STX-Layout",f.layout),b.set("X-STX-Layout-Group",f.group)}return u(N(P&&!_?n($,Z.routerContainer||"main"):$,z,{timeoutMs:30000}),{status:m??I.status??200,headers:b})}let V=new Headers({"Content-Type":"text/html",...A(),...R.cache?{}:{"Cache-Control":"private, no-store"}});for(let N of v??[])V.append("Set-Cookie",N);for(let[N,u]of Object.entries(c??{}))V.set(N,u);if(V.set("Vary",A(V.get("Vary")).Vary),P&&!_){let N=l($);return V.set("X-STX-Fragment","true"),V.set("X-STX-Runtime",h($)?"true":"false"),V.set("X-STX-Layout",N.layout),V.set("X-STX-Layout-Group",N.group),new Response(n($,Z.routerContainer||"main"),{status:m??I.status??200,headers:V})}return new Response($,{status:m??I.status??200,headers:V})}catch($){if(console.error(`[stx] Hydration error for ${Y}:`,$),r)return new Response("Internal Server Error",{status:500});return new Response(I.html,{headers:{"Content-Type":"text/html"}})}})}))}});return console.log(`[stx] Production server running at http://localhost:${M.port}`),console.log(`[stx] Serving ${Z.routes.length} routes (${S.size} pre-loaded)`),{port:M.port,stop:()=>{O.invalidate(),M.stop()},invalidate:(Q)=>O.invalidate(Q)}}
|
|
3
3
|
export{zJ as Ze,LJ as _e,t as $e,uJ as af};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Am as c,Bm as d,Cm as e,Dm as f,Em as g,Fm as h,Gm as i,Hm as j,Im as k,Jm as l,Km as m,Lm as n,Mm as o,Nm as p,Om as q,Pm as r,Qm as s,ym as a,zm as b}from"./chunk-
|
|
2
|
+
import{Am as c,Bm as d,Cm as e,Dm as f,Em as g,Fm as h,Gm as i,Hm as j,Im as k,Jm as l,Km as m,Lm as n,Mm as o,Nm as p,Om as q,Pm as r,Qm as s,ym as a,zm as b}from"./chunk-sjc7x8y1.js";import"./chunk-ffdxdgep.js";import"./chunk-m8bdy2wt.js";import"./chunk-0n054h7w.js";import"./chunk-wpsx5avz.js";import"./chunk-tfy07tmv.js";import"./chunk-4g4yz97f.js";import"./chunk-pgeh4g3a.js";import"./chunk-z9a0ft6h.js";import"./chunk-h1yb87ep.js";import"./chunk-7q06md6v.js";import"./chunk-1phxzej9.js";import"./chunk-7ba7x6jt.js";import"./chunk-akzmq0jr.js";import"./chunk-c1f1vtjt.js";import"./chunk-0nhpymyy.js";import"./chunk-4md4tj27.js";import"./chunk-z8zmp74b.js";import"./chunk-qcpnfw0k.js";import"./chunk-59pakqdv.js";import"./chunk-x7qyx7vn.js";export{j as usesSignalsInScript,s as unescapeHtml,q as resetRejectedExpressionWarnings,g as replaceInterpolations,c as registerFilters,b as registerFilter,o as processExpressions,n as interpolateScriptsInTemplate,l as interpolateScriptExpressions,m as interpolateScriptAttributes,d as getAllFilters,f as findMustacheEnd,r as evaluateExpression,i as escapeHtmlValue,h as escapeHtml,a as defaultFilters,k as clientLoopScopes,e as clearCustomFilters,p as applyFilters};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{mt as a,nt as b,ot as c,pt as d,qt as e,rt as f,st as g,tt as h,ut as i,vt as j,wt as k,xt as l}from"./chunk-
|
|
2
|
+
import{mt as a,nt as b,ot as c,pt as d,qt as e,rt as f,st as g,tt as h,ut as i,vt as j,wt as k,xt as l}from"./chunk-4g4yz97f.js";import"./chunk-pgeh4g3a.js";import"./chunk-x7qyx7vn.js";export{e as resolveUserCssConfig,c as resetCssCache,h as rebuildCss,d as loadCssEngineConfig,b as loadCssEngine,l as injectCss,a as getCssServeAsset,i as getCachedCSS,k as generateCss,f as fingerprintConfig,j as extractClassNames,g as buildCss};
|
|
@@ -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{Po as V}from"./chunk-
|
|
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{Po as V}from"./chunk-sjc7x8y1.js";import"./chunk-ffdxdgep.js";import"./chunk-m8bdy2wt.js";import"./chunk-0n054h7w.js";import"./chunk-wpsx5avz.js";import"./chunk-tfy07tmv.js";import"./chunk-4g4yz97f.js";import"./chunk-pgeh4g3a.js";import"./chunk-z9a0ft6h.js";import"./chunk-h1yb87ep.js";import"./chunk-7q06md6v.js";import"./chunk-1phxzej9.js";import"./chunk-7ba7x6jt.js";import"./chunk-akzmq0jr.js";import"./chunk-c1f1vtjt.js";import"./chunk-0nhpymyy.js";import"./chunk-4md4tj27.js";import"./chunk-z8zmp74b.js";import"./chunk-qcpnfw0k.js";import"./chunk-59pakqdv.js";import{bx as F}from"./chunk-x7qyx7vn.js";import l from"fs";import R from"path";function m(z,J){let Z=[R.join(z.root,"stx.config.ts"),R.join(z.root,"stx.config.js"),R.join(z.root,"stx.config.mjs")],K=J.debounceMs??300,$=null,X=[];for(let B of Z)try{if(!l.existsSync(B))continue;let Y=l.watch(B,(W)=>{if(W==="change"){if($)clearTimeout($);$=setTimeout(async()=>{d("Config file changed, restarting...");try{await J.onChange()}catch(j){G(`Failed to restart: ${j}`)}},K)}});X.push(Y)}catch{}return{stop(){if($)clearTimeout($);for(let B of X)B.close()}}}import E from"fs";import i from"path";var Gz=".stx/story/analytics.json",Nz=1,c=1e4;class M{storage;storagePath;currentSession=null;dirty=!1;viewStartTimes=new Map;constructor(z){this.storagePath=i.join(z,Gz),this.storage=this.loadStorage(),this.startSession()}loadStorage(){try{let z=E.readFileSync(this.storagePath,"utf-8");return JSON.parse(z)}catch{return{version:Nz,events:[],sessions:[]}}}async save(){if(!this.dirty)return;let z=i.dirname(this.storagePath);if(await E.promises.mkdir(z,{recursive:!0}),this.storage.events.length>c)this.storage.events=this.storage.events.slice(-c);await E.promises.writeFile(this.storagePath,JSON.stringify(this.storage,null,2)),this.dirty=!1}startSession(){this.endSession(),this.currentSession={id:Hz(),startTime:Date.now(),componentViews:[]},this.storage.sessions.push(this.currentSession),this.dirty=!0}endSession(){if(this.currentSession)this.currentSession.endTime=Date.now(),this.currentSession=null}track(z){this.storage.events.push({...z,timestamp:Date.now()}),this.dirty=!0}trackView(z,J){if(this.endViewTiming(z),this.viewStartTimes.set(z,Date.now()),this.track({type:"view",componentId:z,variantId:J}),this.currentSession&&!this.currentSession.componentViews.includes(z))this.currentSession.componentViews.push(z)}endViewTiming(z){let J=this.viewStartTimes.get(z);if(J){let Z=Date.now()-J;this.track({type:"view",componentId:z,metadata:{duration:Z,endView:!0}}),this.viewStartTimes.delete(z)}}trackPropChange(z,J,Z){this.track({type:"prop_change",componentId:z,propName:J,metadata:{value:Z}})}trackVariantSwitch(z,J){this.track({type:"variant_switch",componentId:z,variantId:J})}trackSearch(z,J){this.track({type:"search",query:z,metadata:{resultCount:J}})}getComponentAnalytics(z,J){let Z=this.storage.events.filter((Q)=>Q.componentId===z),K=Z.filter((Q)=>Q.type==="view"&&!Q.metadata?.endView),$=Z.filter((Q)=>Q.type==="prop_change"),X=Z.filter((Q)=>Q.type==="variant_switch"),B={};for(let Q of $)if(Q.propName)B[Q.propName]=(B[Q.propName]||0)+1;let Y={};for(let Q of X)if(Q.variantId)Y[Q.variantId]=(Y[Q.variantId]||0)+1;let W=new Set(this.storage.sessions.filter((Q)=>Q.componentViews.includes(z)).map((Q)=>Q.id)),j=Z.filter((Q)=>Q.metadata?.duration).map((Q)=>Q.metadata.duration),U=j.length>0?j.reduce((Q,D)=>Q+D,0)/j.length:0,_=Object.entries(B).sort((Q,D)=>D[1]-Q[1]).slice(0,5).map(([Q])=>Q);return{componentId:z,componentName:J,viewCount:K.length,uniqueViews:W.size,lastViewed:K[K.length-1]?.timestamp,propChanges:B,topChangedProps:_,variantViews:Y,avgTimeSpent:U}}getMostViewedComponents(z=10){let J=new Map;for(let Z of this.storage.events)if(Z.type==="view"&&Z.componentId&&!Z.metadata?.endView)J.set(Z.componentId,(J.get(Z.componentId)||0)+1);return Array.from(J.entries()).map(([Z,K])=>({componentId:Z,viewCount:K})).sort((Z,K)=>K.viewCount-Z.viewCount).slice(0,z)}getMostChangedProps(z=10){let J=new Map;for(let Z of this.storage.events)if(Z.type==="prop_change"&&Z.propName)J.set(Z.propName,(J.get(Z.propName)||0)+1);return Array.from(J.entries()).map(([Z,K])=>({propName:Z,changeCount:K})).sort((Z,K)=>K.changeCount-Z.changeCount).slice(0,z)}getSearchAnalytics(){let z=this.storage.events.filter(($)=>$.type==="search"),J=new Map,Z=0;for(let $ of z){if($.query)J.set($.query,(J.get($.query)||0)+1);if($.metadata?.resultCount!==void 0)Z+=$.metadata.resultCount}let K=Array.from(J.entries()).map(([$,X])=>({query:$,count:X})).sort(($,X)=>X.count-$.count).slice(0,10);return{totalSearches:z.length,topQueries:K,avgResultCount:z.length>0?Z/z.length:0}}clear(){this.storage.events=[],this.storage.sessions=[],this.dirty=!0,this.startSession()}exportAnalytics(){return JSON.stringify({exportedAt:Date.now(),...this.storage},null,2)}}function Hz(){return`session-${Date.now()}-${Math.random().toString(36).slice(2,8)}`}import P from"fs";import p from"path";var Fz=".stx/story/bookmarks.json",Vz=1;class T{storage;storagePath;dirty=!1;constructor(z){this.storagePath=p.join(z,Fz),this.storage=this.loadStorage()}loadStorage(){try{let z=P.readFileSync(this.storagePath,"utf-8");return JSON.parse(z)}catch{return{version:Vz,bookmarks:[]}}}async save(){if(!this.dirty)return;let z=p.dirname(this.storagePath);await P.promises.mkdir(z,{recursive:!0}),await P.promises.writeFile(this.storagePath,JSON.stringify(this.storage,null,2)),this.dirty=!1}addBookmark(z,J,Z,K={}){let $={id:Rz(),name:K.name||`${z}/${J}`,storyId:z,variantId:J,props:Z,created:Date.now(),notes:K.notes,color:K.color};return this.storage.bookmarks.push($),this.dirty=!0,$}getAllBookmarks(){return[...this.storage.bookmarks]}getBookmarksForStory(z){return this.storage.bookmarks.filter((J)=>J.storyId===z)}getBookmark(z){return this.storage.bookmarks.find((J)=>J.id===z)}isBookmarked(z,J){return this.storage.bookmarks.some((Z)=>Z.storyId===z&&Z.variantId===J)}updateBookmark(z,J){let Z=this.getBookmark(z);if(!Z)return;return Object.assign(Z,J),this.dirty=!0,Z}deleteBookmark(z){let J=this.storage.bookmarks.findIndex((Z)=>Z.id===z);if(J===-1)return!1;return this.storage.bookmarks.splice(J,1),this.dirty=!0,!0}toggleBookmark(z,J,Z){let K=this.storage.bookmarks.find((X)=>X.storyId===z&&X.variantId===J);if(K)return this.deleteBookmark(K.id),{added:!1};return{added:!0,bookmark:this.addBookmark(z,J,Z)}}exportBookmarks(){return JSON.stringify(this.storage,null,2)}importBookmarks(z,J=!0){let Z=JSON.parse(z),K=0;for(let $ of Z.bookmarks){if(J){let X=this.storage.bookmarks.find((B)=>B.id===$.id);if(X)Object.assign(X,$);else this.storage.bookmarks.push($)}else this.storage.bookmarks.push($);K++}if(K>0)this.dirty=!0;return K}}function Rz(){return`bm-${Date.now()}-${Math.random().toString(36).slice(2,8)}`}var N=new Set;function s(){return{open(z){N.add(z),z.send(JSON.stringify({type:"connected",timestamp:Date.now()}))},close(z){N.delete(z)},message(z,J){}}}function q(z){let J=JSON.stringify({...z,timestamp:z.timestamp||Date.now()});for(let Z of N)try{Z.send(J)}catch{N.delete(Z)}}function n(z,J){q({type:"story-update",data:{storyId:z,...J}})}function a(z,J){q({type:"story-add",data:{storyId:z,...J}})}function o(z){q({type:"story-remove",data:{storyId:z}})}function r(z){return`
|
|
3
3
|
<script>
|
|
4
4
|
(function() {
|
|
5
5
|
const ws = new WebSocket('${z}');
|
|
@@ -556,7 +556,7 @@ window.__stxPerformance = {
|
|
|
556
556
|
|
|
557
557
|
window.clearPerformanceMetrics = () => window.__stxPerformance.clear();
|
|
558
558
|
</script>
|
|
559
|
-
`}import w from"fs";import Xz from"path";var Mz=".stx/story/presets.json",C=1,Pz=10;class k{storage;storagePath;dirty=!1;constructor(z){this.storagePath=Xz.join(z,Mz),this.storage=this.loadStorage()}loadStorage(){try{let z=w.readFileSync(this.storagePath,"utf-8"),J=JSON.parse(z);if(J.version!==C)return this.migrateStorage(J);return J}catch{return{version:C,presets:[],recentIds:[]}}}migrateStorage(z){return{version:C,presets:z.presets||[],recentIds:z.recentIds||[]}}async save(){if(!this.dirty)return;let z=Xz.dirname(this.storagePath);await w.promises.mkdir(z,{recursive:!0}),await w.promises.writeFile(this.storagePath,JSON.stringify(this.storage,null,2)),this.dirty=!1}createPreset(z,J,Z={}){let K={id:Tz(),name:z,description:Z.description,props:J,componentId:Z.componentId,created:Date.now(),usageCount:0,tags:Z.tags};return this.storage.presets.push(K),this.dirty=!0,K}getPreset(z){return this.storage.presets.find((J)=>J.id===z)}getAllPresets(){return[...this.storage.presets]}getPresetsForComponent(z){return this.storage.presets.filter((J)=>!J.componentId||J.componentId===z)}getRecentPresets(){return this.storage.recentIds.map((z)=>this.getPreset(z)).filter((z)=>z!==void 0)}usePreset(z){let J=this.getPreset(z);if(!J)return;return J.lastUsed=Date.now(),J.usageCount++,this.storage.recentIds=[z,...this.storage.recentIds.filter((Z)=>Z!==z)].slice(0,Pz),this.dirty=!0,J}updatePreset(z,J){let Z=this.getPreset(z);if(!Z)return;return Object.assign(Z,J),this.dirty=!0,Z}deletePreset(z){let J=this.storage.presets.findIndex((Z)=>Z.id===z);if(J===-1)return!1;return this.storage.presets.splice(J,1),this.storage.recentIds=this.storage.recentIds.filter((Z)=>Z!==z),this.dirty=!0,!0}searchPresets(z){let J=z.toLowerCase();return this.storage.presets.filter((Z)=>{if(Z.name.toLowerCase().includes(J))return!0;if(Z.description?.toLowerCase().includes(J))return!0;if(Z.tags?.some((K)=>K.toLowerCase().includes(J)))return!0;return!1})}getMostUsedPresets(z=5){return[...this.storage.presets].sort((J,Z)=>Z.usageCount-J.usageCount).slice(0,z)}exportPresets(z){let J=z?this.storage.presets.filter((Z)=>z.includes(Z.id)):this.storage.presets;return JSON.stringify({presets:J},null,2)}importPresets(z,J=!1){let Z=JSON.parse(z),K=0;for(let $ of Z.presets){let X=this.storage.presets.find((B)=>B.id===$.id);if(X&&!J)continue;if(X)Object.assign(X,$);else this.storage.presets.push($);K++}if(K>0)this.dirty=!0;return K}}function Tz(){return`preset-${Date.now()}-${Math.random().toString(36).slice(2,8)}`}import S from"fs";var Qz=new Map;async function H(z,J,Z={}){let K=performance.now(),$=[];try{let X=await S.promises.stat(J),B=Qz.get(J),Y;if(B&&B.mtime===X.mtimeMs)Y=B.content;else Y=await S.promises.readFile(J,"utf-8"),Qz.set(J,{content:Y,mtime:X.mtimeMs,analyzed:null});let{processDirectives:W}=await import("./chunk-
|
|
559
|
+
`}import w from"fs";import Xz from"path";var Mz=".stx/story/presets.json",C=1,Pz=10;class k{storage;storagePath;dirty=!1;constructor(z){this.storagePath=Xz.join(z,Mz),this.storage=this.loadStorage()}loadStorage(){try{let z=w.readFileSync(this.storagePath,"utf-8"),J=JSON.parse(z);if(J.version!==C)return this.migrateStorage(J);return J}catch{return{version:C,presets:[],recentIds:[]}}}migrateStorage(z){return{version:C,presets:z.presets||[],recentIds:z.recentIds||[]}}async save(){if(!this.dirty)return;let z=Xz.dirname(this.storagePath);await w.promises.mkdir(z,{recursive:!0}),await w.promises.writeFile(this.storagePath,JSON.stringify(this.storage,null,2)),this.dirty=!1}createPreset(z,J,Z={}){let K={id:Tz(),name:z,description:Z.description,props:J,componentId:Z.componentId,created:Date.now(),usageCount:0,tags:Z.tags};return this.storage.presets.push(K),this.dirty=!0,K}getPreset(z){return this.storage.presets.find((J)=>J.id===z)}getAllPresets(){return[...this.storage.presets]}getPresetsForComponent(z){return this.storage.presets.filter((J)=>!J.componentId||J.componentId===z)}getRecentPresets(){return this.storage.recentIds.map((z)=>this.getPreset(z)).filter((z)=>z!==void 0)}usePreset(z){let J=this.getPreset(z);if(!J)return;return J.lastUsed=Date.now(),J.usageCount++,this.storage.recentIds=[z,...this.storage.recentIds.filter((Z)=>Z!==z)].slice(0,Pz),this.dirty=!0,J}updatePreset(z,J){let Z=this.getPreset(z);if(!Z)return;return Object.assign(Z,J),this.dirty=!0,Z}deletePreset(z){let J=this.storage.presets.findIndex((Z)=>Z.id===z);if(J===-1)return!1;return this.storage.presets.splice(J,1),this.storage.recentIds=this.storage.recentIds.filter((Z)=>Z!==z),this.dirty=!0,!0}searchPresets(z){let J=z.toLowerCase();return this.storage.presets.filter((Z)=>{if(Z.name.toLowerCase().includes(J))return!0;if(Z.description?.toLowerCase().includes(J))return!0;if(Z.tags?.some((K)=>K.toLowerCase().includes(J)))return!0;return!1})}getMostUsedPresets(z=5){return[...this.storage.presets].sort((J,Z)=>Z.usageCount-J.usageCount).slice(0,z)}exportPresets(z){let J=z?this.storage.presets.filter((Z)=>z.includes(Z.id)):this.storage.presets;return JSON.stringify({presets:J},null,2)}importPresets(z,J=!1){let Z=JSON.parse(z),K=0;for(let $ of Z.presets){let X=this.storage.presets.find((B)=>B.id===$.id);if(X&&!J)continue;if(X)Object.assign(X,$);else this.storage.presets.push($);K++}if(K>0)this.dirty=!0;return K}}function Tz(){return`preset-${Date.now()}-${Math.random().toString(36).slice(2,8)}`}import S from"fs";var Qz=new Map;async function H(z,J,Z={}){let K=performance.now(),$=[];try{let X=await S.promises.stat(J),B=Qz.get(J),Y;if(B&&B.mtime===X.mtimeMs)Y=B.content;else Y=await S.promises.readFile(J,"utf-8"),Qz.set(J,{content:Y,mtime:X.mtimeMs,analyzed:null});let{processDirectives:W}=await import("./chunk-hch1t137.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-hch1t137.js"),B={...Z},Y=A(J);if(Y)try{await V(Y,B,"inline-template.stx")}catch{}let j=await X(J,B,"inline-template.stx",{},new Set);return j=jz(j),j=Dz(j,B),{html:j,css:Wz(J),js:A(J),errors:$,duration:performance.now()-K}}catch(X){return $.push(X instanceof Error?X.message:String(X)),{html:`<div class="stx-render-error">${Lz($[0])}</div>`,css:"",js:"",errors:$,duration:performance.now()-K}}}function Wz(z){let J=[],Z=/<style\b[^>]*>([\s\S]*?)<\/style>/gi,K=Z.exec(z);while(K!==null)J.push(K[1].trim()),K=Z.exec(z);return J.join(`
|
|
560
560
|
`)}function jz(z){return z.replace(/<!--[\s\S]*?-->/g,"").replace(/<style\b[^>]*>[\s\S]*?<\/style>/gi,"").replace(/<script\b[^>]*>[\s\S]*?<\/script>/gi,"").replace(/^\s*\n/gm,"").trim()}function A(z){let J=[],Z=/<script\b[^>]*>([\s\S]*?)<\/script>/gi,K=Z.exec(z);while(K!==null)J.push(K[1].trim()),K=Z.exec(z);return J.join(`
|
|
561
561
|
`)}function Dz(z,J){let Z=`<script>window.__stxProps = ${JSON.stringify(J)};</script>`;return z+Z}function Lz(z){return z.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")}async function Oz(z,J){let Z=await I(z);f(z,Z);let K=v(z.config,Z);g(z,K),console.log(` Found ${Z.length} story files`);let $=typeof J.host==="string"?J.host:J.host===!0?"0.0.0.0":"localhost",X=new k(z.root),B=new T(z.root),Y=new M(z.root),W=s(),j=Bun.serve({port:J.port,hostname:$,fetch:async(Q,D)=>{let O=new URL(Q.url).pathname;if(O==="/__hmr"){if(D.upgrade(Q,{data:{isHmr:!0}}))return;return new Response("WebSocket upgrade failed",{status:400})}if(O.startsWith("/api/"))return Cz(z,O,Q,{presetsManager:X,bookmarksManager:B,analyticsTracker:Y});return kz(z,O,J.port)},websocket:{open(Q){W.open(Q)},close(Q){W.close(Q)},message(Q,D){W.message(Q,D)}}}),U=`http://${$}:${J.port}`,_=Uz(z,async(Q,D)=>{console.log(` [${Q}] ${D.relativePath}`);let L=await I(z);f(z,L);let O=v(z.config,L);if(g(z,O),Q==="add")a(D.id,{fileName:D.fileName});else if(Q==="unlink")o(D.id);else n(D.id,{fileName:D.fileName})});if(J.open){let Q=U;try{let{exec:D}=await import("child_process"),L=process.platform;D(`${L==="darwin"?"open":L==="win32"?"start":"xdg-open"} ${Q}`)}catch{}}return{server:j,url:U,close:async()=>{_(),j.stop()}}}async function Cz(z,J,Z,K){let{presetsManager:$,bookmarksManager:X,analyticsTracker:B}=K;if(J==="/api/stories")return Response.json({files:z.storyFiles.map((Y)=>({id:Y.id,fileName:Y.fileName,relativePath:Y.relativePath,treePath:Y.treePath})),tree:z.tree});if(J.startsWith("/api/story/")){let Y=J.slice(11),W=z.storyFiles.find((j)=>j.id===Y);if(!W)return new Response("Story not found",{status:404});try{let j=await Bun.file(W.path).text();return Response.json({id:W.id,fileName:W.fileName,relativePath:W.relativePath,content:j})}catch{return new Response("Error reading story",{status:500})}}if(J==="/api/config")return Response.json({theme:z.config.theme,responsivePresets:z.config.responsivePresets,backgroundPresets:z.config.backgroundPresets});if(J.startsWith("/api/render/")){let Y=new URL(Z.url),W=J.slice(12).split("/"),j=W[0],U=W[1]||"default",_,Q=Y.searchParams.get("props");if(Q)try{_=JSON.parse(Q)}catch{}let D=z.storyFiles.find((L)=>L.id===j);if(!D)return new Response("Story not found",{status:404});try{let L=await Bz(z,D,U,_);return Response.json({html:L.html,css:L.css,js:L.js,errors:L.errors,duration:L.duration})}catch(L){return Response.json({html:"",css:"",js:"",errors:[L instanceof Error?L.message:String(L)],duration:0},{status:500})}}if(J==="/api/presets"&&Z.method==="GET")return Response.json({presets:$.getAllPresets()});if(J==="/api/presets"&&Z.method==="POST")try{let Y=await Z.json(),W=$.createPreset(Y.name,Y.props,{componentId:Y.componentId,description:Y.description});return await $.save(),Response.json(W)}catch(Y){return Response.json({error:String(Y)},{status:400})}if(J.startsWith("/api/presets/")&&!J.includes("/use")&&Z.method==="GET"){let Y=J.slice(13),W=$.getPreset(Y);if(!W)return new Response("Preset not found",{status:404});return Response.json(W)}if(J.endsWith("/use")&&Z.method==="POST"){let Y=J.slice(13,-4),W=$.usePreset(Y);if(!W)return new Response("Preset not found",{status:404});return await $.save(),Response.json(W)}if(J.startsWith("/api/presets/")&&Z.method==="DELETE"){let Y=J.slice(13);if(!$.deletePreset(Y))return new Response("Preset not found",{status:404});return await $.save(),Response.json({success:!0})}if(J==="/api/bookmarks"&&Z.method==="GET")return Response.json({bookmarks:X.getAllBookmarks()});if(J==="/api/bookmarks"&&Z.method==="POST")try{let Y=await Z.json(),W=X.addBookmark(Y.storyId,Y.variantId,Y.props,{name:Y.name,notes:Y.notes,color:Y.color});return await X.save(),Response.json(W)}catch(Y){return Response.json({error:String(Y)},{status:400})}if(J==="/api/bookmarks/toggle"&&Z.method==="POST")try{let Y=await Z.json(),W=X.toggleBookmark(Y.storyId,Y.variantId,Y.props);return await X.save(),Response.json(W)}catch(Y){return Response.json({error:String(Y)},{status:400})}if(J.startsWith("/api/bookmarks/")&&J!=="/api/bookmarks/toggle"&&Z.method==="GET"){let Y=J.slice(15),W=X.getBookmark(Y);if(!W)return new Response("Bookmark not found",{status:404});return Response.json(W)}if(J.startsWith("/api/bookmarks/")&&Z.method==="DELETE"){let Y=J.slice(15);if(!X.deleteBookmark(Y))return new Response("Bookmark not found",{status:404});return await X.save(),Response.json({success:!0})}if(J==="/api/analytics/track"&&Z.method==="POST")try{let Y=await Z.json();if(Y.type==="view"&&Y.componentId)B.trackView(Y.componentId,Y.variantId);else if(Y.type==="prop_change"&&Y.componentId&&Y.propName)B.trackPropChange(Y.componentId,Y.propName,null);else if(Y.type==="variant_switch"&&Y.componentId&&Y.variantId)B.trackVariantSwitch(Y.componentId,Y.variantId);else if(Y.type==="search"&&Y.query)B.trackSearch(Y.query,0);return await B.save(),Response.json({success:!0})}catch(Y){return Response.json({error:String(Y)},{status:400})}if(J==="/api/analytics/summary"&&Z.method==="GET")return Response.json({mostViewed:B.getMostViewedComponents(10),mostChangedProps:B.getMostChangedProps(10),searchAnalytics:B.getSearchAnalytics()});if(J.startsWith("/api/analytics/component/")&&Z.method==="GET"){let Y=J.slice(25),W=z.storyFiles.find((U)=>U.id===Y),j=B.getComponentAnalytics(Y,W?.fileName||Y);return Response.json(j)}return new Response("Not found",{status:404})}function kz(z,J,Z){let K=Sz(z,Z);return new Response(K,{headers:{"Content-Type":"text/html; charset=utf-8"}})}function Sz(z,J){let{theme:Z}=z.config,K=Z.title||"STX Story",$=`ws://localhost:${J}/__hmr`,X=r($);return`<!DOCTYPE html>
|
|
562
562
|
<html lang="en" class="${Z.darkClass||"dark"}">
|
package/dist/cli.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env bun
|
|
2
2
|
// @bun
|
|
3
|
-
import{Ka as a,Ke as F,Me as v,Ne as P,Ya as r,ge as s,he as t,o as m,qb as n,ra as l,rb as p,tb as i,zb as e}from"./chunk-
|
|
3
|
+
import{Ka as a,Ke as F,Me as v,Ne as P,Ya as r,ge as s,he as t,o as m,qb as n,ra as l,rb as p,tb as i,zb as e}from"./chunk-69c5rv6n.js";import"./chunk-arjhs9bb.js";import"./chunk-pkspqh0m.js";import"./chunk-ayhhvep9.js";import"./chunk-yn8qq8tn.js";import"./chunk-z80v5h5h.js";import"./chunk-ewxbx67c.js";import"./chunk-0tnsyynz.js";import"./chunk-rx0cntdm.js";import"./chunk-vtmhh3dp.js";import"./chunk-me7ypzw9.js";import"./chunk-rctgq5xp.js";import"./chunk-1n2ng8nx.js";import"./chunk-vtjegbgy.js";import"./chunk-g81ymdat.js";import"./chunk-aa4ss5pb.js";import"./chunk-ca57sg6v.js";import"./chunk-mywrb5fy.js";import"./chunk-4m4n1sfc.js";import"./chunk-rkzfwgr8.js";import"./chunk-n4197kjq.js";import"./chunk-k4x5we49.js";import"./chunk-6de3hczw.js";import"./chunk-s1gwy2rp.js";import"./chunk-8mm86z5w.js";import"./chunk-seqmzr8k.js";import"./chunk-55g4qm7m.js";import"./chunk-twg0y6ga.js";import"./chunk-015p3jq5.js";import"./chunk-ypw4egcv.js";import"./chunk-gyccx2pr.js";import"./chunk-g0w8dyat.js";import"./chunk-9dap2hdv.js";import"./chunk-1x6c4ys1.js";import"./chunk-245ft0zp.js";import"./chunk-f02g2h4p.js";import"./chunk-k3wcezqg.js";import"./chunk-afwbqeb2.js";import"./chunk-rqr735w8.js";import{fl as u,gl as c}from"./chunk-63dyh42m.js";import"./chunk-1nnskved.js";import"./chunk-dxjtszaa.js";import"./chunk-sjc7x8y1.js";import{ps as f}from"./chunk-ffdxdgep.js";import"./chunk-m8bdy2wt.js";import"./chunk-0n054h7w.js";import"./chunk-wpsx5avz.js";import"./chunk-tfy07tmv.js";import{Ts as A}from"./chunk-4g4yz97f.js";import"./chunk-pgeh4g3a.js";import"./chunk-z9a0ft6h.js";import"./chunk-h1yb87ep.js";import"./chunk-7q06md6v.js";import"./chunk-1phxzej9.js";import"./chunk-7ba7x6jt.js";import"./chunk-akzmq0jr.js";import"./chunk-c1f1vtjt.js";import"./chunk-0nhpymyy.js";import"./chunk-4md4tj27.js";import"./chunk-z8zmp74b.js";import"./chunk-qcpnfw0k.js";import"./chunk-59pakqdv.js";import{bx as B}from"./chunk-x7qyx7vn.js";import{spawn as o}from"child_process";import L from"fs";import zb from"os";import $ from"path";import w from"process";import{CLI as wb}from"@stacksjs/clapp";var N="0.2.406";var __dirname="/home/runner/work/stx/stx/packages/stx/bin",E=new wb("stx");function h(J){let Z=typeof J==="string"?Number.parseInt(J,10):J;if(Number.isNaN(Z))return{isValid:!1,error:"Port must be a valid number",suggestion:"Try using a number between 1024 and 65535"};if(Z<1024||Z>65535)return{isValid:!1,error:"Port must be between 1024 and 65535",suggestion:"Try using a port between 1024 and 65535"};return{isValid:!0}}function d(J){try{if(!L.existsSync(J)){let K=$.dirname(J),x=$.basename(J);if(L.existsSync(K)){let z=L.readdirSync(K).filter((j)=>j.toLowerCase().includes(x.toLowerCase().substring(0,3))||j.endsWith(".stx")||j.endsWith(".md")),k=z.length>0?`File not found. Similar files in ${K}: ${z.slice(0,3).join(", ")}`:`File not found. Directory ${K} exists but doesn't contain the specified file.`;return{isValid:!1,error:`File does not exist: ${J}`,suggestion:k}}return{isValid:!1,error:`File does not exist: ${J}`,suggestion:"Check the file path and try again"}}if(L.statSync(J).isDirectory())return{isValid:!1,error:`Expected file but got directory: ${J}`,suggestion:"Specify a .stx or .md file path"};return{isValid:!0}}catch(Z){return{isValid:!1,error:`Cannot access file: ${J}`,suggestion:"Check file permissions and path"}}}function y(J){let Z=typeof J==="string"?Number.parseInt(J,10):J;if(Number.isNaN(Z))return{isValid:!1,error:"Timeout must be a valid number",suggestion:"Specify timeout in milliseconds (e.g., 5000 for 5 seconds)"};if(Z<100)return{isValid:!1,error:"Timeout too short (minimum 100ms)",suggestion:"Use a timeout of at least 100ms"};if(Z>300000)return{isValid:!1,error:"Timeout too long (maximum 5 minutes)",suggestion:"Use a timeout of less than 300000ms (5 minutes)"};return{isValid:!0}}var V=(J)=>J.includes("*")||J.includes("?")||J.includes("{")||J.includes("["),jb=(J)=>J.endsWith(".stx")||J.endsWith(".md");function S(J,Z=1){if(console.error(`\u274C ${J.error}`),J.suggestion)console.error(`\uD83D\uDCA1 suggestion: ${J.suggestion}`);w.exit(Z)}function kb(J){if(!J)return;let Z;try{Z=JSON.parse(J)}catch(K){console.error(`\u274C --info-plist is not valid JSON: ${K.message}`),w.exit(1)}if(typeof Z!=="object"||Z===null||Array.isArray(Z))console.error(`\u274C --info-plist must be a JSON object, e.g. '{"NSFocusStatusUsageDescription":"\u2026"}'`),w.exit(1);for(let[K,x]of Object.entries(Z))if(typeof x!=="string"&&typeof x!=="number"&&typeof x!=="boolean")console.error(`\u274C --info-plist value for "${K}" must be a string, number or boolean`),w.exit(1);return Z}async function Hb(J,Z){try{let K=["test"],x=[];if(J&&J.length>0)for(let W of J)if(V(W))try{let H=await Array.fromAsync(new Bun.Glob(W).scan({onlyFiles:!0,absolute:!0}));if(H.length===0)console.warn(`Warning: No files found matching pattern: ${W}`);else if(x.push(...H),Z.verbose)console.log(`Found ${H.length} file(s) matching pattern: ${W}`)}catch(H){return console.error(`Error expanding glob pattern ${W}:`,H),!1}else x.push(W);if(x.length===0)return console.error("Error: No test files found matching the provided patterns."),!1;if(K.push(...x),Z.filter)K.push("--pattern",Z.filter);if(Z.timeout)K.push("--timeout",Z.timeout.toString());if(Z.reporter&&Z.reporter!=="default")if(Z.reporter==="junit"){let W=$.join(zb.tmpdir(),`stx-test-report-${Date.now()}.xml`);K.push("--reporter",Z.reporter),K.push("--reporter-outfile",W)}else console.warn(`Warning: Reporter '${Z.reporter}' is not supported. Using default reporter.`);if(Z.coverage)K.push("--coverage");if(Z.watch)K.push("--watch");K.push("--preload",$.join(__dirname,"../../../test-utils/happy-dom.ts"));let b={...w.env,STX_TEST_MODE:"true",STX_TEST_UI:Z.ui?"true":"false",STX_TEST_VERBOSE:Z.verbose?"true":"false"},z="bun";if(Z.verbose)console.log(`Running: ${z} ${K.join(" ")}`);let k=performance.now(),j=o(z,K,{stdio:"inherit",shell:!1,env:b});return new Promise((W)=>{j.on("close",(H)=>{let Y=((performance.now()-k)/1000).toFixed(2);if(H===0)W(!0);else W(!1)}),w.on("SIGINT",()=>{console.log(`
|
|
4
4
|
Test run interrupted`),j.kill("SIGINT"),w.exit(1)})})}catch(K){return console.error("Error running tests:",K instanceof Error?K.message:String(K)),!1}}var Qb=w.argv.length>=3&&(jb(w.argv[2])&&L.existsSync(w.argv[2])||V(w.argv[2]));if(Qb){let J=w.argv[2],Z={port:3000,watch:!0,cache:!0,markdown:{syntaxHighlighting:{enabled:!0,serverSide:!0,defaultTheme:"github-dark",highlightUnknownLanguages:!0}}};for(let K=3;K<w.argv.length;K++){let x=w.argv[K];if(x==="--port"&&K+1<w.argv.length){let b=h(w.argv[++K]);if(!b.isValid)S(b);Z.port=Number.parseInt(w.argv[K],10)}else if(x==="--no-watch")Z.watch=!1;else if(x==="--highlight-theme"&&K+1<w.argv.length){if(!Z.markdown)Z.markdown={};if(!Z.markdown.syntaxHighlighting)Z.markdown.syntaxHighlighting={};Z.markdown.syntaxHighlighting.defaultTheme=w.argv[++K]}else if(x==="--no-highlight"){if(!Z.markdown)Z.markdown={};if(!Z.markdown.syntaxHighlighting)Z.markdown.syntaxHighlighting={};Z.markdown.syntaxHighlighting.enabled=!1}else if(x==="--no-highlight-unknown"){if(!Z.markdown)Z.markdown={};if(!Z.markdown.syntaxHighlighting)Z.markdown.syntaxHighlighting={};Z.markdown.syntaxHighlighting.highlightUnknownLanguages=!1}else if(x==="--no-cache")Z.cache=!1;else if(x==="--native")Z.native=!0}if(V(J))try{let K=await Array.fromAsync(new Bun.Glob(J).scan({onlyFiles:!0,absolute:!0})),x=J.endsWith(".stx")?K.filter((j)=>j.endsWith(".stx")):J.endsWith(".md")?K.filter((j)=>j.endsWith(".md")):K.filter((j)=>j.endsWith(".stx")||j.endsWith(".md")),b=J.split("*")[0].replace(/\/$/,"")||".",z=$.resolve(b);try{let j=new Bun.Glob("**/*.stx"),H=(await Array.fromAsync(j.scan({cwd:z,onlyFiles:!0,absolute:!0}))).filter((U)=>/\[.+\]/.test($.basename(U)));for(let U of H)if(!x.includes(U))x.push(U)}catch{}if(x.length===0)console.error(`Error: No STX or Markdown files found matching pattern: ${J}`),w.exit(1);if(!await v(x,Z))w.exit(1)}catch(K){console.error("Failed to process files:",K),w.exit(1)}else F(J,Z).catch((K)=>{console.error("Failed to start dev server:",K),w.exit(1)})}else{let J=function(x,b){let z=[];for(let k=0;k<=b.length;k++)z[k]=[k];for(let k=0;k<=x.length;k++)z[0][k]=k;for(let k=1;k<=b.length;k++)for(let j=1;j<=x.length;j++)if(b.charAt(k-1)===x.charAt(j-1))z[k][j]=z[k-1][j-1];else z[k][j]=Math.min(z[k-1][j-1]+1,z[k][j-1]+1,z[k-1][j]+1);return z[b.length][x.length]};E.command("docs","Generate documentation for components, templates, and directives").option("--output <dir>","Output directory for documentation",{default:"docs"}).option("--format <format>","Documentation format (markdown, html, json)",{default:"markdown"}).option("--components-dir <dir>","Components directory",{default:"components"}).option("--templates-dir <dir>","Templates directory",{default:"."}).option("--no-components","Disable components documentation").option("--no-templates","Disable templates documentation").option("--no-directives","Disable directives documentation").option("--extra-content <content>","Extra content to include in documentation").example("stx docs --output docs --format html").action(async(x)=>{try{if(await r(x))console.log("Documentation generated successfully."),w.exit(0);else console.error("Documentation generation failed."),w.exit(1)}catch(b){console.error("Error generating documentation:",b),w.exit(1)}}),E.command("iconify <command>","Generate Iconify icon packages").option("--output <dir>","Output directory for generated packages",{default:"packages"}).option("--icons <icons>","Comma-separated list of specific icons to generate").example("stx iconify list").example("stx iconify generate mdi").example("stx iconify generate lucide --icons home,settings,user").action(async(x,b)=>{try{let{fetchCollections:z,generatePackage:k}=await import("./chunk-qem2tw9r.js");if(x==="list"){console.log(`
|
|
5
5
|
\uD83D\uDCDA Fetching available icon collections...
|
|
6
6
|
`);let j=await z(),W=Object.entries(j).sort((H,U)=>U[1].total-H[1].total);console.log(`Available collections:
|
|
7
7
|
`);for(let[H,U]of W){let Y=U;console.log(` ${H.padEnd(30)} ${Y.name} (${Y.total} icons)`)}console.log(`
|
|
8
8
|
Total: ${W.length} collections`)}else if(x.startsWith("generate")){let j=x==="generate"?"":x.replace("generate:","").replace("generate-","").replace("generate","").trim();if(!j)console.error("Error: Please specify a collection prefix"),console.error("Usage: stx iconify generate <prefix> [--icons icon1,icon2,...]"),w.exit(1);let W=b.output||$.join(w.cwd(),"packages/collections"),H=b.icons?b.icons.split(",").map((U)=>U.trim()):void 0;await k(j,W,H),console.log(`
|
|
9
9
|
\u2713 Package generated successfully!`),console.log(`
|
|
10
|
-
To use the package:`),console.log(` 1. cd packages/collections/iconify-${j}`),console.log(" 2. bun install"),console.log(" 3. bun run build")}else console.error(`Unknown iconify command: ${x}`),console.error("Available commands: list, generate"),w.exit(1)}catch(z){console.error("Error:",z instanceof Error?z.message:String(z)),w.exit(1)}}),E.command("pwa <command>","PWA tools - audit configuration and build output").option("--output <dir>","Build output directory to audit",{default:"dist"}).example("stx pwa audit").example("stx pwa audit --output build").action(async(x,b)=>{try{if(x==="audit"){let{runPwaAudit:z,formatAuditResult:k}=await import("./chunk-wqgyb4zb.js"),{loadConfig:j}=await import("./chunk-
|
|
10
|
+
To use the package:`),console.log(` 1. cd packages/collections/iconify-${j}`),console.log(" 2. bun install"),console.log(" 3. bun run build")}else console.error(`Unknown iconify command: ${x}`),console.error("Available commands: list, generate"),w.exit(1)}catch(z){console.error("Error:",z instanceof Error?z.message:String(z)),w.exit(1)}}),E.command("pwa <command>","PWA tools - audit configuration and build output").option("--output <dir>","Build output directory to audit",{default:"dist"}).example("stx pwa audit").example("stx pwa audit --output build").action(async(x,b)=>{try{if(x==="audit"){let{runPwaAudit:z,formatAuditResult:k}=await import("./chunk-wqgyb4zb.js"),{loadConfig:j}=await import("./chunk-6cbjhg0y.js");console.log(`
|
|
11
11
|
\uD83D\uDD0D Running PWA audit...
|
|
12
12
|
`);let W=await j(),H=b.output||"dist",U=z(W,H);if(console.log(k(U)),U.failed>0)w.exit(1)}else console.error(`Unknown pwa command: ${x}`),console.error("Available commands: audit"),w.exit(1)}catch(z){console.error("Error:",z instanceof Error?z.message:String(z)),w.exit(1)}}),E.command("dev [file]","Start a development server for an STX app or file").option("--port <port>","Port to use for the dev server",{default:3000}).option("--pages <dir>",'Directory containing page templates (default: pagesDir from stx.config.ts, else "pages")').option("--no-watch","Disable file watching and auto-reload").option("--native","Open in a native desktop window using Zyte").option("--titlebar-hidden","Hide the native titlebar but keep the traffic-light buttons (web content draws under a transparent full-size titlebar). Implies --native.").option("--highlight-theme <theme>","Syntax highlighting theme for Markdown code blocks",{default:"github-dark"}).option("--no-highlight","Disable syntax highlighting for Markdown code blocks").option("--no-highlight-unknown","Disable syntax highlighting for unknown languages in Markdown").option("--no-cache","Disable caching of parsed files").option("--no-hmr","Disable HMR / live-reload script injection (useful for clean network traces)").option("--profile","Print per-directive timing for every page render via performanceMonitor").option("--debug-directives","Log directive ordering and intermediate template state during rendering").example("stx dev").example("stx dev --port 8080").example("stx dev --pages src/pages").example("stx dev template.stx").example("stx dev components/hero.stx --port 8080").example("stx dev **/*.stx").example("stx dev docs/guide.md").example("stx dev template.stx --native").action(async(x,b)=>{try{if(b.port!==void 0){let k=h(b.port);if(!k.isValid)S(k);b.port=Number.parseInt(String(b.port),10)}if(b.timeout!==void 0){let k=y(b.timeout);if(!k.isValid)S(k)}let z={syntaxHighlighting:{enabled:b.highlight!==!1,serverSide:!0,defaultTheme:b.highlightTheme||"github-dark",highlightUnknownLanguages:b.highlightUnknown!==!1}};if(!x){if(!await P(".",{port:b.port,watch:b.watch!==!1,native:b.native||b.titlebarHidden||!1,titlebarHidden:b.titlebarHidden===!0,cache:b.cache!==!1,hotReload:b.hmr!==!1,profile:b.profile===!0,debugDirectives:b.debugDirectives===!0,...b.pages&&{pagesDir:b.pages}}))w.exit(1);return}if(!V(x))try{let k=await import("fs");if(k.existsSync(x)&&k.statSync(x).isDirectory()){if(!await P(x,{port:b.port,watch:b.watch!==!1,native:b.native||b.titlebarHidden||!1,titlebarHidden:b.titlebarHidden===!0,cache:b.cache!==!1,hotReload:b.hmr!==!1,profile:b.profile===!0,debugDirectives:b.debugDirectives===!0,...b.pages&&{pagesDir:b.pages}}))w.exit(1);return}}catch{}if(V(x)){console.log(`Expanding glob pattern: ${x}`);let k=await A.timeAsync("glob-expansion",async()=>{return Array.fromAsync(new Bun.Glob(x).scan({onlyFiles:!0,absolute:!0}))}),j=x.endsWith(".stx")?k.filter((Y)=>Y.endsWith(".stx")):x.endsWith(".md")?k.filter((Y)=>Y.endsWith(".md")):k.filter((Y)=>Y.endsWith(".stx")||Y.endsWith(".md"));if(j.length===0)console.error(`No STX or Markdown files found matching pattern: ${x}`),console.error("Try using patterns like '*.stx' or 'components/**/*.stx'"),w.exit(1);let W=x.split("*")[0].replace(/\/$/,"")||".",H=$.resolve(W);try{let Y=new Bun.Glob("**/*.stx"),X=(await Array.fromAsync(Y.scan({cwd:H,onlyFiles:!0,absolute:!0}))).filter((_)=>/\[.+\]/.test($.basename(_)));for(let _ of X)if(!j.includes(_))j.push(_)}catch{}if(console.log(`Found ${j.length} ${j.length===1?"file":"files"} matching ${x}`),!await v(j,{port:b.port,watch:b.watch!==!1,native:b.native||b.titlebarHidden||!1,titlebarHidden:b.titlebarHidden===!0,markdown:z,cache:b.cache!==!1}))w.exit(1)}else{if(!V(x)){let j=d(x);if(!j.isValid)S(j)}if(!await F(x,{port:b.port,watch:b.watch!==!1,native:b.native||b.titlebarHidden||!1,titlebarHidden:b.titlebarHidden===!0,markdown:z,cache:b.cache!==!1}))w.exit(1)}}catch(z){console.error("Error starting dev server:",z),w.exit(1)}}),E.command("a11y [target]","Scan .stx files for accessibility issues (directory, file, or glob)").option("--no-recursive","Disable recursive scanning of directories").option("--ignore <paths>","Comma-separated paths to ignore",{default:""}).option("--json","Output results as JSON").option("--output <file>","Write results to a file instead of stdout").option("--fix","Automatically fix common accessibility issues").example("stx a11y ./templates").example('stx a11y "resources/**/*.stx"').example("stx a11y resources/emails/welcome.stx").example("stx a11y --json --output a11y-report.json").action(async(x=".",b)=>{try{console.log(`Scanning ${x} for accessibility issues...`);let z=b.ignore?b.ignore.split(",").map((U)=>U.trim()):[],{results:k,scannedFiles:j}=await f(x,{recursive:b.recursive!==!1,ignorePaths:z});if(j.length===0)console.log(`
|
|
13
13
|
No .stx files matched ${x}
|
|
@@ -69,7 +69,7 @@ Total: ${H} issues in ${W} files`),b.output){let U=`
|
|
|
69
69
|
File not found: ${x}`),w.exit(1);if(!x.endsWith(".stx"))console.error(`
|
|
70
70
|
File must have .stx extension: ${x}`),w.exit(1)}let k=$.resolve(b.pages),j=$.resolve(b.out);if(!x&&!L.existsSync(k))console.error(`
|
|
71
71
|
Pages directory not found: ${k}`),console.log(`
|
|
72
|
-
Create a 'pages' directory with .stx files, or use --pages to specify a different directory.`),w.exit(1);let{buildApp:W}=await import("./chunk-
|
|
72
|
+
Create a 'pages' directory with .stx files, or use --pages to specify a different directory.`),w.exit(1);let{buildApp:W}=await import("./chunk-b26mjv83.js");c();let H=await W({root:x?$.dirname(x):void 0,debug:b.verbose,ssg:{pagesDir:b.pages,outputDir:b.out,domain:b.domain,baseUrl:b.base,sitemap:b.sitemap,rss:b.rss,minify:b.minify,cache:b.cache!==!1,cleanOutput:b.clean,concurrency:Number.parseInt(b.concurrency,10)||10,publicDir:b.public,trailingSlash:b.trailingSlash,generate404:!0,hooks:b.verbose?{onPageStart:(Y)=>console.log(` Generating: ${Y}`),onPageEnd:(Y,Q)=>console.log(` Generated: ${Y} (${Q.length} bytes)`),onError:(Y,Q)=>console.error(` Error in ${Q}: ${Y.message}`)}:void 0},ssr:{outputDir:b.out==="dist"?".output":b.out,debug:b.verbose}}),U=((performance.now()-z)/1000).toFixed(2);if(H.mode==="ssr"&&H.ssr)console.log(`
|
|
73
73
|
Build complete! (SSR)
|
|
74
74
|
`),console.log(` Pages compiled: ${H.ssr.pageCount}`),console.log(` Output: ${H.ssr.outputDir}`),console.log(` Duration: ${U}s
|
|
75
75
|
`);else if(H.ssg){if(console.log(`
|
|
@@ -84,7 +84,7 @@ Total: ${H} issues in ${W} files`),b.output){let U=`
|
|
|
84
84
|
Build completed with ${H.ssg.failedCount} error(s). Fix the issues above and try again.
|
|
85
85
|
`),w.exit(1);console.log(" To preview locally:"),console.log(` cd ${b.out||"dist"} && npx serve
|
|
86
86
|
`)}}catch(z){console.error(`
|
|
87
|
-
Build failed:`,z instanceof Error?z.message:String(z)),w.exit(1)}}),E.command("start","Start the production server (serves pre-built .output/)").option("--port <number>","Server port",{default:"3000"}).option("--output <dir>","Output directory from stx build",{default:".output"}).example("stx start").example("stx start --port 8080").action(async(x)=>{try{let b=$.resolve(x.output);if(!L.existsSync($.join(b,"manifest.json")))console.error("\n No production build found. Run `stx build --out .output` first.\n"),w.exit(1);let{startProductionServer:z}=await import("./chunk-
|
|
87
|
+
Build failed:`,z instanceof Error?z.message:String(z)),w.exit(1)}}),E.command("start","Start the production server (serves pre-built .output/)").option("--port <number>","Server port",{default:"3000"}).option("--output <dir>","Output directory from stx build",{default:".output"}).example("stx start").example("stx start --port 8080").action(async(x)=>{try{let b=$.resolve(x.output);if(!L.existsSync($.join(b,"manifest.json")))console.error("\n No production build found. Run `stx build --out .output` first.\n"),w.exit(1);let{startProductionServer:z}=await import("./chunk-xvsz1qy3.js");await z({outputDir:b,port:Number.parseInt(x.port,10)||3000})}catch(b){console.error(`
|
|
88
88
|
Failed to start production server:`,b instanceof Error?b.message:String(b)),w.exit(1)}}),E.command("deploy [directory]","Deploy built site to Netlify").option("--site-id <id>","Netlify site ID (or set NETLIFY_SITE_ID env var)").option("--token <token>","Auth token (or set NETLIFY_AUTH_TOKEN env var)").option("--production","Deploy to production (default: draft preview)").option("--message <msg>","Deploy message/title").option("--no-build","Skip build step before deploy").option("--open","Open deployed URL in browser").option("--dry-run","Preview deployment without uploading").option("--init","Initialize Netlify configuration for this project").example("stx deploy").example("stx deploy --production").example("stx deploy dist --site-id my-site-abc123").example("stx deploy --init").example("stx deploy --dry-run").action(async(x,b)=>{try{let{deploy:z,initNetlify:k,DeployError:j}=await import("./chunk-3sea73fx.js");if(console.log(`\x1B[1mstx deploy\x1B[0m \x1B[2mv${N}\x1B[0m`),b.init){console.log(`
|
|
89
89
|
\uD83D\uDCDD Initializing Netlify configuration...
|
|
90
90
|
`);let H=await k({directory:x||w.cwd(),siteId:b.siteId});if(console.log(`\u2713 Created ${H.configPath}`),H.siteId)console.log("\u2713 Saved site ID to .env.local");console.log(`
|
|
@@ -124,7 +124,7 @@ To view it in the development server:`),console.log(` stx dev ${x}
|
|
|
124
124
|
\uD83D\uDCDD ${$.relative(w.cwd(),Q)}:`),console.log("--- Original"),console.log("+++ Formatted"),console.log(`@@ Changes in ${$.basename(Q)} @@`),console.log("+ Formatted content would be applied");else await Bun.write(Q,q),console.log(`\u2705 Formatted ${$.relative(w.cwd(),Q)}`),U++}catch(X){console.error(`\u274C Error formatting ${$.relative(w.cwd(),Q)}:`,X),Y++}if(b.check&&Y>0)console.log(`
|
|
125
125
|
${Y} files need formatting. Run 'stx format' to fix.`),w.exit(1);else if(!b.check&&!b.diff)console.log(`\u2728 Formatted ${U} files successfully`)}catch(z){console.error("Error formatting files:",z),w.exit(1)}}),E.command("perf [command...]","Show performance statistics for STX operations").option("--clear","Clear performance statistics").option("--json","Output as JSON").example("stx perf").example("stx perf --clear").example("stx perf --json").action(async(x,b)=>{try{if(b.clear){A.clear(),console.log("\u2705 Performance statistics cleared");return}let z=A.getStats();if(Object.keys(z).length===0){if(b.json){console.log(JSON.stringify({},null,2));return}console.log("No performance data available. Run some STX commands first.");return}if(b.json)console.log(JSON.stringify(z,null,2));else{console.log(`
|
|
126
126
|
\uD83D\uDCCA STX Performance Statistics
|
|
127
|
-
`);for(let[k,j]of Object.entries(z))console.log(`\uD83D\uDD27 ${k}:`),console.log(` Count: ${j.count}`),console.log(` Average: ${j.avgTime.toFixed(2)}ms`),console.log(` Total: ${j.totalTime.toFixed(2)}ms`),console.log(` Min: ${j.minTime.toFixed(2)}ms`),console.log(` Max: ${j.maxTime.toFixed(2)}ms`),console.log("")}}catch(z){console.error("Error showing performance stats:",z),w.exit(1)}}),E.command("typecheck [patterns...]","Type-check the TypeScript inside .stx script blocks").option("--no-client","Skip <script client> and bare <script> blocks").option("--no-server","Skip <script server> blocks").option("--no-templates","Skip {{ }} and directive expressions in the markup").option("--lib <path>","Extra ambient declaration file (repeatable)").example("stx typecheck").example('stx typecheck "resources/views/**/*.stx"').action(async(x,b)=>{let{formatTypecheckDiagnostics:z,typecheckStxFiles:k}=await import("./chunk-
|
|
127
|
+
`);for(let[k,j]of Object.entries(z))console.log(`\uD83D\uDD27 ${k}:`),console.log(` Count: ${j.count}`),console.log(` Average: ${j.avgTime.toFixed(2)}ms`),console.log(` Total: ${j.totalTime.toFixed(2)}ms`),console.log(` Min: ${j.minTime.toFixed(2)}ms`),console.log(` Max: ${j.maxTime.toFixed(2)}ms`),console.log("")}}catch(z){console.error("Error showing performance stats:",z),w.exit(1)}}),E.command("typecheck [patterns...]","Type-check the TypeScript inside .stx script blocks").option("--no-client","Skip <script client> and bare <script> blocks").option("--no-server","Skip <script server> blocks").option("--no-templates","Skip {{ }} and directive expressions in the markup").option("--lib <path>","Extra ambient declaration file (repeatable)").example("stx typecheck").example('stx typecheck "resources/views/**/*.stx"').action(async(x,b)=>{let{formatTypecheckDiagnostics:z,typecheckStxFiles:k}=await import("./chunk-gxc02n32.js"),{resolveStxTargets:j}=await import("./chunk-yf0v44v8.js"),W=Array.isArray(x)?x:x?[x]:[],H=W.length?W:["**/*.stx"],U=await j(H);if(U.length===0){console.log(`
|
|
128
128
|
No .stx files matched ${H.join(", ")}
|
|
129
129
|
`);return}let Y=m(w.argv,"--lib"),Q=Y.length>0?Y:b.lib?Array.isArray(b.lib)?b.lib:[b.lib]:[],X=await k(U,{client:b.client!==!1,server:b.server!==!1,templates:b.templates!==!1,extraLibs:Q});if(X.failure)console.error(`
|
|
130
130
|
Type-check did not run.
|
|
@@ -160,11 +160,11 @@ Press Ctrl+C to stop watching...
|
|
|
160
160
|
\uD83D\uDCC4 Files with issues:`),Y.forEach((Q)=>{let X=Q.issues.filter((_)=>j[_.type]>=W).length;if(X>0)console.log(` ${$.relative(w.cwd(),Q.file)} (${X} issues)`)});if(b.saveReport){let Q={summary:U,results:Y,generatedAt:new Date().toISOString(),commandOptions:b};await Bun.write(b.saveReport,JSON.stringify(Q,null,2)),console.log(`
|
|
161
161
|
\uD83D\uDCCB Analysis report saved to: ${b.saveReport}`)}console.log(`
|
|
162
162
|
\u2728 Analysis complete! Use --detailed for more information.`)}catch(z){console.error("Error analyzing templates:",z),w.exit(1)}}),E.command("screenshot [input]","Capture PNG screenshot(s) of page(s) via Bun WebView \u2014 a file, URL, or dist directory").option("--out <dir>","Output directory",{default:"screenshots"}).option("--width <px>","Viewport width",{default:"1440"}).option("--height <px>","Viewport height",{default:"2200"}).option("--wait <ms>","Settle time after navigation before capture",{default:"800"}).option("--timeout <ms>","Hard cap on waiting for navigation",{default:"15000"}).option("--full-page","Capture the entire scrollable page, not just the viewport").option("--wait-selector <sel>","Wait until a CSS selector exists before capturing").option("--format <fmt>","Image format: png | jpeg | webp",{default:"png"}).option("--backend <name>","WebView backend: webkit (macOS, default) | chrome").action(async(x,b)=>{let{captureScreenshots:z}=await import("./chunk-jqm6tbtb.js"),k=x||"dist";try{let j=await z(k,b.out,{width:Number.parseInt(b.width,10),height:Number.parseInt(b.height,10),waitMs:Number.parseInt(b.wait,10),timeoutMs:Number.parseInt(b.timeout,10),fullPage:Boolean(b.fullPage),waitSelector:b.waitSelector,format:b.format,backend:b.backend});for(let W of j)console.log(`\uD83D\uDCF8 ${W.output} (${(W.bytes/1024).toFixed(0)} KB)`);console.log(`
|
|
163
|
-
\u2728 Captured ${j.length} screenshot(s) to ${b.out}/ via Bun WebView`)}catch(j){console.error(`Screenshot failed: ${j.message}`),w.exit(1)}}),E.command("version","Show the version of the CLI").action(()=>{console.log(N)}),E.command("interactive","Start interactive REPL mode for template development").alias("i").option("--context <file>","Load initial context from JSON file").option("--cwd <directory>","Set working directory").option("--verbose","Show verbose output").action(async(x)=>{let{startInteractive:b}=await import("./chunk-
|
|
163
|
+
\u2728 Captured ${j.length} screenshot(s) to ${b.out}/ via Bun WebView`)}catch(j){console.error(`Screenshot failed: ${j.message}`),w.exit(1)}}),E.command("version","Show the version of the CLI").action(()=>{console.log(N)}),E.command("interactive","Start interactive REPL mode for template development").alias("i").option("--context <file>","Load initial context from JSON file").option("--cwd <directory>","Set working directory").option("--verbose","Show verbose output").action(async(x)=>{let{startInteractive:b}=await import("./chunk-xz870mf2.js"),z={};if(x.context){let k=$.resolve(x.context);if(L.existsSync(k))try{let j=L.readFileSync(k,"utf-8");z=JSON.parse(j)}catch(j){console.error("Error loading context file:",j),w.exit(1)}else console.error(`Context file not found: ${k}`),w.exit(1)}await b({context:z,cwd:x.cwd?$.resolve(x.cwd):w.cwd(),verbose:x.verbose})}),E.command("build:native <input>","Build stx template into a native desktop/mobile app").option("--output <dir>","Output directory",{default:"dist/native"}).option("--target <platform>","Target platform: macos, windows, linux, ios, android").option("--format <format>","Output format: app, dmg, pkg, msi, zip, deb, rpm, appimage, ipa, apk").option("--name <name>","Application name (defaults to filename)").option("--version <version>","Application version",{default:"1.0.0"}).option("--description <desc>","Application description").option("--author <author>","Author/Maintainer name").option("--bundle-id <id>","Bundle identifier (macOS/iOS)").option("--icon <path>","Path to application icon").option("--width <width>","Window width",{default:"1200"}).option("--height <height>","Window height",{default:"800"}).option("--title <title>","Window title").option("--system-tray","Enable system tray/menubar mode").option("--menubar-only","Run without a dock icon (implied by --system-tray)").option("--category <type>","LSApplicationCategoryType (macOS)").option("--copyright <text>","NSHumanReadableCopyright (macOS)").option("--min-system-version <v>","LSMinimumSystemVersion (macOS)").option("--info-plist <json>","Extra Info.plist keys as a JSON object (macOS)").option("--dev-tools","Enable developer tools").option("--frameless","Create frameless window").option("--always-on-top","Keep window always on top").option("--craft-path <path>","Path to Craft binary").option("--verbose","Show verbose output").example("stx build:native app.stx --target macos").example("stx build:native app.stx --target macos --format dmg").example("stx build:native app.stx --target linux --format appimage").example('stx build:native app.stx --name "My App" --icon icon.png').action(async(x,b)=>{try{let{buildNative:z,getAvailableTargets:k,getAvailableFormats:j}=await import("./chunk-d8yksesg.js"),W=$.resolve(x);if(!L.existsSync(W))console.error(`\u274C Input file not found: ${x}`),w.exit(1);let H=k();if(b.target&&!["macos","windows","linux","ios","android"].includes(b.target))console.error(`\u274C Invalid target: ${b.target}`),console.error("\uD83D\uDCA1 Available targets: macos, windows, linux, ios, android"),console.error(`\uD83D\uDCA1 Targets available on this machine: ${H.join(", ")}`),w.exit(1);let U=b.target||H[0],Y=j(U);if(b.format&&!Y.includes(b.format))console.error(`\u274C Invalid format for ${U}: ${b.format}`),console.error(`\uD83D\uDCA1 Available formats: ${Y.join(", ")}`),w.exit(1);console.log(`
|
|
164
164
|
\uD83D\uDD28 Building native app...`),console.log(` Input: ${x}`),console.log(` Target: ${U}`),console.log(` Format: ${b.format||"default"}`),console.log(` Output: ${b.output}
|
|
165
165
|
`);let Q=await z({input:W,output:$.resolve(b.output),target:U,format:b.format,name:b.name,version:b.version,description:b.description,author:b.author,bundleId:b.bundleId,icon:b.icon?$.resolve(b.icon):void 0,window:{title:b.title,width:Number.parseInt(b.width,10),height:Number.parseInt(b.height,10),frameless:b.frameless,alwaysOnTop:b.alwaysOnTop},systemTray:b.systemTray,menubarOnly:b.menubarOnly,category:b.category,copyright:b.copyright,minimumSystemVersion:b.minSystemVersion,infoPlist:kb(b.infoPlist),devTools:b.devTools,craftPath:b.craftPath,verbose:b.verbose});if(Q.success){if(console.log("\u2705 Build successful!"),console.log(` Output: ${Q.outputPath}`),Q.duration)console.log(` Duration: ${(Q.duration/1000).toFixed(2)}s`);if(U==="macos"&&Q.format==="app")console.log(`
|
|
166
166
|
\uD83D\uDCA1 To run: open "${Q.outputPath}"`);else if(U==="linux"&&Q.format==="appimage")console.log(`
|
|
167
|
-
\uD83D\uDCA1 To run: chmod +x "${Q.outputPath}" && "${Q.outputPath}"`)}else console.error(`\u274C Build failed: ${Q.error}`),w.exit(1)}catch(z){console.error(`\u274C Build error: ${z.message}`),w.exit(1)}}),E.command("story","Start component showcase and testing server").option("-p, --port <port>","Server port",{default:"6006"}).option("-o, --open","Open browser automatically",{default:!1}).option("--host <host>","Host to bind to",{default:"localhost"}).example("stx story").example("stx story --port 3000 --open").action(async(x)=>{try{let{devCommand:b}=await import("./chunk-
|
|
167
|
+
\uD83D\uDCA1 To run: chmod +x "${Q.outputPath}" && "${Q.outputPath}"`)}else console.error(`\u274C Build failed: ${Q.error}`),w.exit(1)}catch(z){console.error(`\u274C Build error: ${z.message}`),w.exit(1)}}),E.command("story","Start component showcase and testing server").option("-p, --port <port>","Server port",{default:"6006"}).option("-o, --open","Open browser automatically",{default:!1}).option("--host <host>","Host to bind to",{default:"localhost"}).example("stx story").example("stx story --port 3000 --open").action(async(x)=>{try{let{devCommand:b}=await import("./chunk-znt6t1dz.js");await b({port:x.port?Number.parseInt(x.port,10):6006,open:x.open,host:x.host})}catch(b){console.error(`\u274C Story error: ${b.message}`),w.exit(1)}}),E.command("story:build","Build static story site").option("-o, --outDir <dir>","Output directory",{default:".stx/dist/story"}).example("stx story:build").example("stx story:build --outDir ./docs/components").action(async(x)=>{try{let{buildCommand:b}=await import("./chunk-1vrk5y92.js");await b({outDir:x.outDir})}catch(b){console.error(`\u274C Story build error: ${b.message}`),w.exit(1)}}),E.command("story:test","Run visual regression tests").option("-u, --update","Update snapshots",{default:!1}).option("-f, --filter <name>","Filter components by name").example("stx story:test").example("stx story:test --update").example("stx story:test --filter Button").action(async(x)=>{try{let{createContext:b}=await import("./chunk-83tefmh1.js"),{runVisualTests:z,updateSnapshots:k,formatTestResults:j}=await import("./chunk-vyq86x5c.js"),W=await b({mode:"build"});if(x.update){let H=await k(W,{filter:x.filter?[x.filter]:void 0});console.log(`Updated ${H} snapshots`)}else{let H=await z(W,{filter:x.filter?[x.filter]:void 0});if(console.log(j(H)),H.failed>0)w.exit(1)}}catch(b){console.error(`\u274C Story test error: ${b.message}`),w.exit(1)}}),E.command("compile <input>","Compile stx template to native Craft component code").option("--target <platform>","Target platform: macos, windows, linux, ios, android, universal",{default:"universal"}).option("--format <format>","Output format: zig, typescript, json",{default:"zig"}).option("--output <path>","Output directory for compiled files",{default:"./dist"}).option("--optimize","Enable optimizations",{default:!0}).option("--tree-shake","Enable tree shaking",{default:!0}).option("--hot-reload","Enable hot reload support",{default:!1}).option("--sourcemaps","Generate source maps",{default:!1}).option("--bundle","Bundle all dependencies",{default:!0}).option("--minify","Minify output",{default:!1}).option("--verbose","Show detailed output",{default:!1}).example("stx compile app.stx").example("stx compile app.stx --target macos --format zig").example("stx compile app.stx --format typescript --output ./native").example("stx compile app.stx --optimize --tree-shake --minify").action(async(x,b)=>{try{let{compileToNative:z}=await import("./chunk-68gspceh.js"),k=$.resolve(x);if(!L.existsSync(k))console.error(`\u274C Input file not found: ${x}`),w.exit(1);let j=["macos","windows","linux","ios","android","universal"];if(!j.includes(b.target))console.error(`\u274C Invalid target: ${b.target}`),console.error(`\uD83D\uDCA1 Available targets: ${j.join(", ")}`),w.exit(1);let W=["zig","typescript","json"];if(!W.includes(b.format))console.error(`\u274C Invalid format: ${b.format}`),console.error(`\uD83D\uDCA1 Available formats: ${W.join(", ")}`),w.exit(1);console.log(`
|
|
168
168
|
\uD83D\uDD27 Compiling stx template to native code...`),console.log(` Input: ${x}`),console.log(` Target: ${b.target}`),console.log(` Format: ${b.format}`),console.log(` Output: ${b.output}
|
|
169
169
|
`);let H=L.readFileSync(k,"utf-8"),U=await z(H,{target:b.target,format:b.format,optimize:b.optimize,treeShake:b.treeShake,hotReload:b.hotReload,debug:b.verbose,sourceMaps:b.sourcemaps,bundle:b.bundle,minify:b.minify}),Y=$.resolve(b.output);if(!L.existsSync(Y))L.mkdirSync(Y,{recursive:!0});let Q=$.basename(x,$.extname(x)),X=b.format==="typescript"?"ts":b.format==="json"?"json":"zig",_=$.join(Y,`${Q}.${X}`);L.writeFileSync(_,U.code);let q=$.join(Y,`${Q}.manifest.json`);if(L.writeFileSync(q,JSON.stringify(U.manifest,null,2)),b.sourcemaps&&U.sourceMaps){let O=$.join(Y,`${Q}.${X}.map`);L.writeFileSync(O,U.sourceMaps)}if(b.target==="universal"&&U.platformCode.size>0)for(let[O,M]of U.platformCode){let G=$.join(Y,`${Q}.${O}.${X}`);L.writeFileSync(G,M)}if(console.log("\u2705 Compilation successful!"),console.log(` Output: ${_}`),console.log(` Manifest: ${q}`),console.log(`
|
|
170
170
|
\uD83D\uDCCA Statistics:`),console.log(` Compilation time: ${U.stats.compilationTime.toFixed(2)}ms`),console.log(` Total components: ${U.stats.totalComponents}`),console.log(` Native components: ${U.stats.nativeComponents}`),console.log(` Web fallback components: ${U.stats.webComponents}`),console.log(` Bundle size: ${(U.stats.bundleSize/1024).toFixed(2)}KB`),U.stats.warnings.length>0){console.log(`
|
package/dist/craft-entry.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{ak as Nj,bk as wj,ck as Aj}from"./chunk-sptvg80e.js";import{ek as Uj,fk as Xj,gk as Yj,hk as Zj,ik as _j,jk as $j,kk as qj,lk as Fj,mk as Oj,nk as Vj,ok as Ij,pk as Qj,qk as Wj,rk as Kj}from"./chunk-
|
|
2
|
+
import{ak as Nj,bk as wj,ck as Aj}from"./chunk-sptvg80e.js";import{ek as Uj,fk as Xj,gk as Yj,hk as Zj,ik as _j,jk as $j,kk as qj,lk as Fj,mk as Oj,nk as Vj,ok as Ij,pk as Qj,qk as Wj,rk as Kj}from"./chunk-2c23jad1.js";import"./chunk-k3wcezqg.js";import"./chunk-sjc7x8y1.js";import"./chunk-ffdxdgep.js";import"./chunk-m8bdy2wt.js";import"./chunk-0n054h7w.js";import"./chunk-wpsx5avz.js";import"./chunk-tfy07tmv.js";import"./chunk-4g4yz97f.js";import"./chunk-pgeh4g3a.js";import"./chunk-z9a0ft6h.js";import"./chunk-h1yb87ep.js";import"./chunk-7q06md6v.js";import"./chunk-1phxzej9.js";import"./chunk-7ba7x6jt.js";import"./chunk-akzmq0jr.js";import"./chunk-c1f1vtjt.js";import"./chunk-0nhpymyy.js";import"./chunk-4md4tj27.js";import"./chunk-z8zmp74b.js";import"./chunk-qcpnfw0k.js";import"./chunk-59pakqdv.js";import"./chunk-x7qyx7vn.js";var I=new Map,Q=new Map;function L(j,B){let G=B?.id||g(j),J=h(j),U=I.get(G);if(U&&U.hash===J)return U;let X=S(j),Z=y(j),Y=T(j),_=v(X),{staticParts:q,dynamicParts:$}=C(X),F=u(j),O={id:G,hash:J,tree:X,scripts:Z,styles:Y,staticParts:q,dynamicParts:$,dependencies:F,metadata:_};return I.set(G,O),O}async function r(j,B={},G={}){let J=performance.now();if(G.cache){let Y=`${j.id}:${JSON.stringify(B)}`,_=Q.get(Y);if(_&&Date.now()-_.timestamp<(G.cacheTTL||60000))return{html:_.html,styles:j.styles.join(`
|
|
3
3
|
`),scripts:j.scripts.join(`
|
|
4
4
|
`),metadata:{renderTime:0,cacheHit:!0,totalSize:_.html.length,componentCount:j.metadata.componentCount}}}let U;if(G.streaming)U=await H(j.tree,B);else U=W(j.tree,B);let X;if(G.hydrate){let Y=k(U,j,B);U=Y.html,X=Y.data}if(G.minify)U=x(U);if(G.cache){let Y=`${j.id}:${JSON.stringify(B)}`;Q.set(Y,{html:U,timestamp:Date.now()})}let Z=performance.now()-J;return{html:U,styles:j.styles.join(`
|
|
5
5
|
`),scripts:j.scripts.join(`
|