@stacksjs/stx 0.2.410 → 0.2.411
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-2357t6qv.js → chunk-0s34z9kx.js} +1 -1
- package/dist/{chunk-pb8dhe8e.js → chunk-1y6ejjrk.js} +1 -1
- package/dist/{chunk-zs392wam.js → chunk-21wkhpvg.js} +1 -1
- package/dist/{chunk-td7sh1kt.js → chunk-2a3vwvqv.js} +1 -1
- package/dist/{chunk-8wbj7kjw.js → chunk-32mjs2sw.js} +1 -1
- package/dist/{chunk-1n0cag12.js → chunk-5f0nwne4.js} +2 -2
- package/dist/{chunk-56r3sa20.js → chunk-5f6r72kw.js} +1 -1
- package/dist/{chunk-qwtbgdat.js → chunk-5jy3f138.js} +1 -1
- package/dist/{chunk-5jzz1y4f.js → chunk-5zyeg43k.js} +1 -1
- package/dist/{chunk-dem0na3d.js → chunk-60q6jwym.js} +2 -2
- package/dist/{chunk-t7q9w5c1.js → chunk-73z5fzkn.js} +1 -1
- package/dist/{chunk-25w2gr0b.js → chunk-7kpr3fcp.js} +1 -1
- package/dist/{chunk-zf86vkqd.js → chunk-85sasgtc.js} +1 -1
- package/dist/{chunk-00a1g97b.js → chunk-87egs73t.js} +1 -1
- package/dist/{chunk-xehv7rpd.js → chunk-8yfy9ch7.js} +1 -1
- package/dist/{chunk-shvcmyqk.js → chunk-92ysystz.js} +62 -16
- package/dist/{chunk-abk8sryn.js → chunk-9mm4e8hy.js} +1 -1
- package/dist/{chunk-wtbg4c4s.js → chunk-9sxfybkc.js} +1 -1
- package/dist/{chunk-sa1ffyn5.js → chunk-a4vf72a0.js} +1 -1
- package/dist/{chunk-jttzcz3w.js → chunk-bcyw6frx.js} +1 -1
- package/dist/{chunk-34faq6k1.js → chunk-cqn117hn.js} +1 -1
- package/dist/{chunk-1nhfw0xg.js → chunk-ctpyb5qn.js} +1 -1
- package/dist/{chunk-9sny21qa.js → chunk-dzk2n4tv.js} +2 -2
- package/dist/{chunk-84h0ppnz.js → chunk-esr0mfyc.js} +1 -1
- package/dist/{chunk-99k8v55n.js → chunk-esypgzzm.js} +1 -1
- package/dist/{chunk-yx3zec6d.js → chunk-g50agfg7.js} +1 -1
- package/dist/{chunk-s81yxzd8.js → chunk-hyhba18z.js} +1 -1
- package/dist/{chunk-7qcwb5rh.js → chunk-j9760xb0.js} +1 -1
- package/dist/{chunk-w0gyytzg.js → chunk-jecj1xg9.js} +1 -1
- package/dist/{chunk-e1a3vvn9.js → chunk-jr52y0j1.js} +1 -1
- package/dist/{chunk-v8ewhs33.js → chunk-khmgbnsa.js} +1 -1
- package/dist/{chunk-xjj2h6bh.js → chunk-kj8wnz6f.js} +1 -1
- package/dist/{chunk-awwhpvm3.js → chunk-mm9v8t7p.js} +1 -1
- package/dist/{chunk-fagrxvzy.js → chunk-ndq5gnzs.js} +1 -1
- package/dist/{chunk-twnqkp5m.js → chunk-nvex8g39.js} +1 -1
- package/dist/{chunk-jnj6z6v7.js → chunk-pan7wmdg.js} +1 -1
- package/dist/{chunk-tg71svxt.js → chunk-pbnz7259.js} +1 -1
- package/dist/{chunk-aszprcmz.js → chunk-ph5wmtr9.js} +1 -1
- package/dist/{chunk-5bt6sxw2.js → chunk-q2ssypg6.js} +1 -1
- package/dist/{chunk-976eyrjy.js → chunk-smfnkpny.js} +1 -1
- package/dist/{chunk-q5bvmzs2.js → chunk-w02zw7et.js} +1 -1
- package/dist/{chunk-8bj1eajz.js → chunk-w4nspy4b.js} +1 -1
- package/dist/{chunk-qsjfs890.js → chunk-x4wjtspw.js} +1 -1
- package/dist/{chunk-405910gt.js → chunk-x99xve3y.js} +1 -1
- package/dist/{chunk-q63817d2.js → chunk-xv1t91fk.js} +1 -1
- package/dist/{chunk-r0p8a9zm.js → chunk-y61n68ca.js} +1 -1
- package/dist/{chunk-6c936hsk.js → chunk-zm4jetjz.js} +1 -1
- package/dist/{chunk-vdvtymy0.js → chunk-zyy4rakd.js} +8 -8
- 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/reactive.js +46 -0
- package/dist/ssg.js +2 -2
- package/package.json +5 -5
|
@@ -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 Wo,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 In,Fb as ap,Fc as hq,Fd as hr,Fe as ns,G as el,Ga as Jn,Gb as bp,Gc as iq,Gd as ir,Ge as os,H as fl,Ha as Kn,Hb as cp,Hc as jq,Hd as jr,He as ps,I as gl,Ia as Xn,Ib as dp,Ic as kq,Id as kr,Ie as qs,J as hl,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 _n,Lb as gp,Lc as nq,Ld as nr,Le as ts,M as $l,Ma as $n,Mb as hp,Mc as oq,Md as or,Me as us,N as am,Na as ao,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,Oe as ws,P as cm,Pa as go,Pb as kp,Pc as rq,Pd as rr,Pe as xs,Q as dm,Qa as ho,Qb as lp,Qc as sq,Qd as sr,Qe as ys,R as em,Ra as io,Rb as mp,Rc as tq,Rd as tr,S as fm,Sa as jo,Sb as np,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 Ir,fa as um,fb as yo,fc as Jp,fd as Jq,fe as Jr,ga as vm,gb as zo,gc as Kp,gd as Kq,ge as Kr,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 Jo,qc as Up,qd as Uq,qe as _r,r as Nk,ra as Gm,rb as Ko,rc as Vp,rd as Vq,re as $r,s as Ok,sa as Hm,sb as Lo,sc as Wp,sd as Wq,se as as,t as Pk,ta as Im,tb as Oo,tc as Xp,td as Xq,te as bs,u as Qk,ua as Jm,ub as Po,uc as Yp,ud as Yq,ue as cs,v as Rk,va as yn,vb as Qo,vc as Zp,vd as Zq,ve as ds,w as Sk,wa as zn,wb as Ro,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 Uo,yc as aq,yd as ar,ye as gs,z as Zk,za as Cn,zb as Vo,zc as bq,zd as br,ze as hs}from"./chunk-vdvtymy0.js";import{Re as op,Se as pp,Te as qp,Ue as rp,Ve as sp,We as tp,Xe as up}from"./chunk-s81yxzd8.js";import{Ye as Mo,Ze as No}from"./chunk-72rwcbp6.js";import{_e as So}from"./chunk-e1a3vvn9.js";import{$e as xn}from"./chunk-tg71svxt.js";import{af as bo,bf as co,cf as eo,df as Xo}from"./chunk-84h0ppnz.js";import{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,qf as ul,rf as vl,sf as wl}from"./chunk-6kdrncsx.js";import{Af as Ul,Bf as Vl,Cf as Wl,Df as Xl,Ef as Yl,tf as Nl,uf as Ol,vf as Pl,wf as Ql,xf as Rl,yf as Sl,zf as Tl}from"./chunk-p5wp0ce6.js";import{Ff as Ll,Gf as Ml}from"./chunk-td08rnk3.js";import{Hf as xl,If as yl,Jf as zl,Kf as Al,Lf as Bl,Mf as Cl,Nf as Dl,Pf as El,Qf as Fl,Rf as Gl,Sf as Hl,Tf as Il,Uf as Jl,Xf as Kl}from"./chunk-z5rwnnk1.js";import{$f as jn,Yf as fn,Zf as gn,_f as hn,ag as kn,bg as wn}from"./chunk-abk8sryn.js";import{Ag as sn,Bg as tn,Cg as un,Dg as vn,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 Ym,rg as Zm,sg as _m,tg as ln,ug as mn,vg as nn,wg as on,xg as pn,yg as qn,zg as rn}from"./chunk-9sny21qa.js";import{Eg as $m,Fg as an}from"./chunk-ny67c03k.js";import{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,Pg as Un,Qg as Vn,Rg as Wn}from"./chunk-xsng1mtq.js";import{Sg as ui,Tg as vi,Ug as wi,Vg as xi,Wg as yi,Xg as zi}from"./chunk-t7q9w5c1.js";import{Yg as Pj,Zg as Qj,_g as Rj,ch as Sj,dh as Tj,eh as Uj}from"./chunk-0pkk226n.js";import{fh as _j,gh as $j,hh as ak,ih as bk,jh as ck,kh as dk,lh as ek,mh as fk,nh as gk,oh as hk,ph as ik}from"./chunk-akwd34xt.js";import{Ah as Oj,qh as Fj,rh as Gj,sh as Hj,th as Ij,uh as Jj,wh as Kj,xh as Lj,yh as Mj,zh as Nj}from"./chunk-pcxp4r9n.js";import{Bh as Ak,Dh as Bk}from"./chunk-76w34xne.js";import{Jh as Ph,Kh as Qh,Lh as Rh,Mh as Sh,Nh as Th,Oh as Uh}from"./chunk-t1tdjjht.js";import{$h as ei,Qh as Vh,Rh as Wh,Sh as Xh,Th as Yh,Uh as Zh,Vh as _h,Wh as $h,Xh as ai,Yh as bi,Zh as ci,_h as di,ai as fi,bi as gi}from"./chunk-bjar18jd.js";import{di as hi,ei as ii,fi as ji,gi as ki}from"./chunk-27fgag95.js";import{li}from"./chunk-0we9nw1d.js";import{oi as oh}from"./chunk-zf86vkqd.js";import{pi as ph}from"./chunk-bwsxym3d.js";import{qi as qh,ri as rh}from"./chunk-xq1acw1r.js";import{si as sh,ti as th,ui as uh,vi as vh,wi as wh,xi as xh}from"./chunk-hx998w7n.js";import{Ai as Ah,Bi as Bh,Ci as Ch,yi as yh,zi as zh}from"./chunk-bjcsc6wx.js";import{Di as Dh,Ei as Eh,Fi as Fh,Gi as Gh,Hi as Hh}from"./chunk-qn5srnj3.js";import{Ii as Ih,Ji as Jh,Ki as Kh,Li as Lh,Mi as Mh,Ni as Nh,Oi as Oh}from"./chunk-4m7ajama.js";import{Pi as mh,Qi as nh}from"./chunk-wtbg4c4s.js";import"./chunk-0c2h69k2.js";import{$i as We,Ui as Pe,Vi as Qe,Wi as Re,Xi as Se,Yi as Te,Zi as Ue,_i as Ve,aj as Xe,bj as Ye,cj as Ze,dj as _e,ej as $e,fj as af}from"./chunk-aszprcmz.js";import{Aj as If,gj as sf,hj as tf,ij as uf,jj as vf,kj as wf,lj as xf,mj as yf,nj as zf,oj as Af,pj as Bf,qj as Cf,rj as Df,sj as Ef,tj as Ff,uj as Gf,zj as Hf}from"./chunk-t5ja7qkn.js";import{Hj as df,Ij as ef,Jj as ff,Kj as gf,Lj as hf,Mj as jf,Nj as kf,Oj as lf,Pj as mf,Qj as nf,Rj as of,Sj as pf,Tj as qf,Uj as rf}from"./chunk-9e8t0twa.js";import{$j as Pf,Vj as Jf,Wj as Kf,Xj as Lf,Yj as Mf,Zj as Nf,_j as Of,ak as Qf,bk as Rf,ck as Sf,dk as Tf,ek as Uf,fk as Vf,gk as Wf}from"./chunk-25w2gr0b.js";import{Ak as Lr,Bk as Mr,Ck as Nr,Dk as Or,Ek as Pr,Fk as Qr}from"./chunk-dem0na3d.js";import{Gk as Uk,Hk as Vk,Ik as Wk,Jk as Xk,Kk as bn,Lk as cn,Mk as dn,Nk as en}from"./chunk-m0ee1f3f.js";import"./chunk-anydpa34.js";import"./chunk-99k8v55n.js";import{Dl as gc,yl as ec,zl as fc}from"./chunk-awwhpvm3.js";import{Fl as bc}from"./chunk-s8jd13nb.js";import{$l as lb,$m as bd,$n as ue,$o as ag,$p as lh,$q as oj,Am as tc,An as Fd,Ap as Mg,Aq as Gi,Ar as ok,Bm as uc,Bn as Gd,Bp as Ng,Bq as Hi,Br as pk,Cm as vc,Cn as Hd,Cp as Og,Cq as Ii,Cr as qk,Dm as wc,Dn as Id,Dp as Pg,Dq as Ji,Dr as rk,Em as xc,En as Jd,Ep as Qg,Eq as Ki,Er as sk,Fm as yc,Fn as Kd,Fp as Rg,Fq as Li,Fr as tk,Gl as xa,Gm as zc,Gn as Ld,Gp as Sg,Gq as Mi,Gr as uk,Hl as ya,Hm as Ac,Hn as Md,Hp as Tg,Hq as Ni,Hr as vk,Il as za,Im as Bc,In as Nd,Ip as Ug,Iq as Oi,Ir as wk,Jl as Aa,Jm as Cc,Jn as Od,Jp as Vg,Jq as Pi,Jr as xk,Kl as Ba,Km as Dc,Kn as Pd,Kp as Wg,Kq as Qi,Kr as yk,Ll as Ca,Lm as Ec,Ln as Qd,Lp as Xg,Lq as Ri,Lr as zk,Ml as Da,Mm as Fc,Mn as Rd,Mp as Yg,Mq as $i,Mr as Ck,Nl as Ea,Nm as Gc,Nn as Sd,Np as Zg,Nq as aj,Nr as Dk,Ol as Fa,Om as Hc,On as Td,Oo as Yf,Op as _g,Oq as bj,Or as Ek,Pl as Ga,Pm as Ic,Pn as Ud,Pp as $g,Pq as cj,Pr as Fk,Ql as Ha,Qm as Jc,Qn as Vd,Qp as ah,Qq as dj,Qr as Gk,Rl as Ia,Rm as Kc,Rn as Wd,Rp as bh,Rq as ej,Rr as Hk,Sl as Ja,Sm as Lc,Sn as Xd,Sp as ch,Sq as fj,Sr as Ik,Tl as Ka,Tm as Mc,Tn as Yd,Tp as dh,Tq as gj,Tr as Jk,Ul as La,Um as Nc,Un as Zd,Up as eh,Uq as hj,Ur as Kk,Vl as Ma,Vm as Oc,Vn as _d,Vp as fh,Vq as ij,Wl as Na,Wm as Pc,Wn as $d,Wo as Zf,Wp as gh,Wq as jj,Xl as Oa,Xm as Qc,Xn as ae,Xp as hh,Xq as kj,Yl as ib,Ym as _c,Yn as re,Yo as _f,Yp as ih,Yq as lj,Zl as jb,Zm as $c,Zn as se,Zp as jh,Zq as mj,_l as kb,_m as ad,_n as te,_o as $f,_p as kh,_q as nj,am as mb,an as cd,ao as ve,ap as bg,aq as mi,ar as pj,bm as nb,bn as dd,bo as we,bp as cg,bq as ni,br as qj,cn as ed,co as xe,cp as dg,cr as rj,do as ye,dp as eg,dr as sj,em as Kb,en as fd,eo as ze,ep as qg,eq as oi,er as tj,fm as Lb,fn as gd,fo as Ae,fp as rg,fr as uj,gm as Mb,gn as hd,go as Be,gp as sg,gr as vj,hm as Nb,hn as id,ho as Ce,hp as tg,hr as wj,im as Ob,in as jd,io as De,ip as ug,ir as xj,jm as Pb,jn as kd,jo as Ee,jp as vg,jr as yj,km as Qb,kn as ld,kp as wg,kr as zj,lm as Ub,ln as md,lo as Ie,lp as xg,lr as Aj,mm as Vb,mn as nd,mo as Je,mp as yg,mr as Bj,nm as Wb,nn as od,no as Ke,np as zg,nr as Cj,om as hc,on as pd,oo as Le,op as Ag,or as Dj,pm as ic,pn as qd,po as Me,pp as Bg,pq as pi,pr as Ej,qm as jc,qn as vd,qo as Ne,qp as Cg,qq as qi,qr as Vj,rm as kc,rn as wd,ro as Oe,rp as Dg,rq as ri,rr as Wj,sm as lc,sn as xd,sp as Eg,sq as si,sr as Xj,tm as mc,tn as yd,tp as Fg,tq as ti,tr as Yj,um as nc,un as zd,up as Gg,uq as Ai,ur as Zj,vm as oc,vn as Ad,vo as bf,vp as Hg,vq as Bi,vr as jk,wm as pc,wn as Bd,wo as cf,wp as Ig,wq as Ci,wr as kk,xm as qc,xn as Cd,xp as Jg,xq as Di,xr as lk,ym as rc,yn as Dd,yo as Xf,yp as Kg,yq as Ei,yr as mk,zm as sc,zn as Ed,zp as Lg,zq as Fi,zr as nk}from"./chunk-shvcmyqk.js";import{$r as S,As as ta,Bs as ua,Cs as va,Ds as wa,Vr as M,Wr as N,Xr as O,Yr as P,Zr as Q,_r as R,as as T,bs as U,cs as V,ds as W,es as X,fs as Y,gs as Z,hs as _,is as $,js as aa,ks as ba,ls as ca,ms as da,ns as ea,os as fa,ps as ia,qs as ja,rs as ka,ss as la,ts as ma,us as na,vs as oa,ws as pa,xs as qa,ys as ra,zs as sa}from"./chunk-aq1xq0r4.js";import{Es as ga,Fs as ha}from"./chunk-zcz9rs6p.js";import{Gs as Rb,Hs as Sb,Is as Tb}from"./chunk-v3nwkveg.js";import"./chunk-9fqp72ze.js";import{Ps as Si,Qs as Ti,Rs as Ui,Ss as Vi,Ts as Wi,Us as Xi,Vs as Yi,Ws as Zi,Xs as _i}from"./chunk-0btmm4m2.js";import{Ct as Xc,Dt as Yc,Et as Zc,nt as Rc,ot as Sc,pt as Tc,qt as Uc,rt as Vc,tt as Wc}from"./chunk-405910gt.js";import{Ft as Xb,Gt as Yb,Ht as Zb,It as _b,Jt as $b,Kt as ac}from"./chunk-tkyrk66a.js";import{Rt as Fe,Tt as Ge,Wt as He}from"./chunk-213jwgpx.js";import"./chunk-jnj6z6v7.js";import{$t as cc,au as dc}from"./chunk-1te8k8gp.js";import{eu as fg,fu as gg,gu as hg,hu as ig,iu as jg,ju as kg,ku as lg,mu as mg,nu as ng,ou as og,pu as pg}from"./chunk-zpcnbdhn.js";import{Du as be,Eu as ce,Fu as de,Gu as ee,Hu as fe,Iu as ge,Ju as he,Ku as ie,Lu as je,Mu as ke,Nu as le,Ou as me,Pu as ne,Qu as oe,Ru as pe,Su as qe,qu as rd,ru as sd,su as td,tu as ud}from"./chunk-rz9f3zqz.js";import{$u as m,Tu as b,Uu as c,Vu as d,Wu as e,Xu as f,Yu as g,Zu as h,_u as i,av as n,bv as o,cv as p,dv as q,ev as r,fv as s,gv as t,hv as u,iv as v,jv as w,kv as x,lv as y,mv as z,nv as A,ov as B,pv as C,qv as D,rv as E,sv as F,tv as G,uv as H,vv as I,wv as J,xv as K,yv as L}from"./chunk-bn1edb1y.js";import"./chunk-cj3adc77.js";import"./chunk-t1htzg9e.js";import{$v as Bb,Ov as ob,Pv as pb,Qv as qb,Rv as rb,Sv as sb,Tv as tb,Uv as ub,Vv as vb,Wv as wb,Xv as xb,Yv as yb,Zv as zb,_v as Ab,aw as Cb,bw as Db,cw as Eb,dw as Fb,ew as Gb,fw as Hb,gw as Ib,hw as Jb}from"./chunk-gbmeh7jg.js";import{Bw as Ua,Cw as Va,Dw as Wa,Ew as Xa,Fw as Ya,Gw as Za,Hw as _a,Iw as $a,Jw as ab,Kw as bb,Lw as cb,Mw as db,Nw as eb,Ow as fb,Pw as gb,Rw as hb,lw as Pa,mw as Qa,pw as Ra,uw as Sa,vw as Ta}from"./chunk-36xaycje.js";import"./chunk-vx86cf4r.js";import{bx as j,cx as k,dx as l}from"./chunk-563shnkz.js";import"./chunk-2fw05hs2.js";export{sl as writeNetlifyConfig,mn as writeManifest,Xl as writeImageManifest,Ep as wrapComponentForHMR,ls as withDefaults,zk as webComponentDirectiveHandler,tq as watermark,vr as watchViews,fm as watchMultiple,gm as watchEffect,em as watch,Me as warmImagePlaceholders,tm as waitForStore,X as waitForLocale,pp as virtualPathFor,mk as videoDirective,G as validators,ps as validated,Ce as validateValueEnhanced,pi as validateTemplate,$m as validateRouteRules,yq as validateParams,De as validateFormEnhanced,kr as validateFile,ye as validateFields,xe as validateField,ri as validateDirective,Xd as validateCspDirectives,Hk as validateConfig,zn as validateComponentScripts,Xn as validateComponentProps,lh as validateClientScript,ki as v,Hc as usesSignalsInScript,ub as usesReactiveRuntime,Fi as userComponentFileExists,Sh as useVirtualList,je as useTitle,sm as useStoreOrThrow,Wp as useStore,$k as useStorage,Af as useSlots,bl as useSessionStorage,cc as useServerRuntimeConfig,Yf as useServerData,ge as useSeoMeta,dc as useRuntimeConfig,um as useRouteParams,wm as useRouteParamOrThrow,vm as useRouteParam,je as usePageTitle,rf as useOptimistic,Ff as useModel,ym as useMiddlewareValue,xm as useMiddlewareState,al as useLocalStorage,xp as useLoadingIndicator,ee as useHead,hi as useForm,Cf as useAttrs,mr as uploadFiles,lr as uploadFile,pm as updateInstance,pf as untrack,Vi as unregisterDirective,qm as unmountInstance,Qc as unescapeHtml,tp as typecheckStxFiles,Di as transpileTypeScript,_r as translate,Ba as transitionDirective,lc as transformAutoImports,Rn as toUsers,Qn as toUser,cq as thumbnail,dr as thumbHashToRGBA,er as thumbHashToDataURL,wb as templateNeedsRuntime,vb as templateHasReactiveContext,Jf as templateCache,nd as syncRecordedResponse,Bp as stxClientHelpers,kg as structuredDataDirective,bs as stripLocalePrefix,Xm as stripDocumentWrapper,Sb as stripCommentsAndLiterals,Co as stringToStream,Ld as strictCspPreset,Xe as streamingSuspenseDirective,$e as streamToResponse,Ve as streamTemplateSimple,Pe as streamTemplate,Tk as stopHmrServer,Nn as stopBroadcasting,_b as stateDirName,$b as stateDir,df as state,fh as startsDocument,Xo as startProductionServer,So as startInteractive,Mn as startBroadcasting,ds as stampLocaleLayoutGroup,Ia as staggerDirective,wq as srcsetUrls,Ja as springDirective,ud as splitByPipe,Tm as spaNavVaryHeaders,qp as sourcePathFor,Dq as smartBatchSign,Hi as slotContentHasExpressions,Bq as signUrl,Bi as shouldTranspileTypeScript,Qk as shouldReloadOnChange,Gq as shouldRefreshSignature,Rk as shouldIgnoreFile,Kh as shouldCacheComponent,gq as sharpen,ss as shape,Zb as setStateDir,Cm as setRouteParams,Dm as setMiddlewareState,Zk as setKeptScope,Le as setImagePlaceholder,uf as setGlobalProvide,b as setErrorLocale,Zl as setCurrentInstance,ak as setCachedVideoResult,Rj as setCachedImageResult,Lj as setCached,vs as serveStxFile,xs as serveMultipleStxFiles,Lk as serveMarkdownFile,gp as serveFile,ys as serveApp,fp as serve,Hp as serializeState,on as serializeSetCookie,iq 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,mq as saturation,zq 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,rn as runPageAction,kf as runMountCallbacks,gb as runMiddleware,nm as runHooks,Tr as runDoctor,lf as runDestroyCallbacks,Cg as runComposers,nq as rotate,li as rewriteImagesWithSiblings,od as responseBindings,Li as resolveTemplatePath,ha as resolveStxTargets,Dk as resolveStxDirectories,Zr as resolveI18n,aq as resize,qg as resetUnscopedSignalWarnings,Oc as resetRejectedExpressionWarnings,sc as resetPlaceholders,de as resetHead,Gp as resetHMRHandler,o as resetErrorConfig,ns as required,cg as reportDeferredLoopWarnings,wc as replacePlaceholders,Ec as replaceInterpolations,tr as renderView,jk as renderVideoComponent,ic as renderVendorStyleTags,Cr as renderToString,Dr as renderToStream,Er as renderToDOM,cr as renderThumbhashToCanvas,Qr as renderTemplateString,Or as renderTemplate,Pr as renderString,Se as renderStreamingPage,wi as renderSlot,Ah as renderSSRSuspense,Oq as renderProtectedVideo,Nq as renderProtectedImg,Aq as renderMediaUpload,Nr as renderMarkdownView,dn as renderLayoutTypes,Vj as renderImgComponent,Nl as renderImageComponent,le as renderHtmlAttrs,ke as renderHead,wr as renderEmail,Ji as renderComponentWithSlot,me as renderBodyAttrs,Rp as render,Nd as relaxedCspPreset,we as registerValidationRule,Ze as registerStreamingDirectives,Yp as registerStoresClient,Am 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,_n as registerComponentDirectives,Oa as registerAnimationDirectives,wa as registerA11yDirectives,mc as referencesName,bm as ref,Ko as redirect,jd as recordResponseStatus,kd as recordResponseHeader,ac as rebaseOntoStateDir,ld as readResponseStatus,md as readResponseHeaders,Jk as readMarkdownFile,Kf as readFileCached,cm as reactive,rq as quality,Lq as pruneSignatureCache,Oj as pruneCache,sf as provide,Mr as protectCodeBlocks,ms 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,Vm as processShell,Oe as processServerBindings,hg as processSeoDirective,_e as processSectionDirectives,Vc as processScopedStyles,$c as processReactiveBindings,Pq 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,Pl as processImageComponents,Cl 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,ts 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,wp as preloadIslandHandlers,Ne as preloadIconCollection,In 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,_p as parseUrl,fr as parseThumbhashString,Ad as parseSwitchBlock,ui as parseSlots,vi as parseSlotElement,Fd as parseScriptDeclarations,xk as parseSFCComponent,Qq as parseProtectedArgs,bg as parseLoopBinding,Wj as parseImgComponent,mj as parseImageUrl,Ol as parseImageComponent,pn as parseFormBody,Cd as parseExpressionWithFilters,$n as parseDefaults,Ho as parseCookies,Mm as parseContainerSelector,xd as parseConditionalBlock,Dd as parseArguments,Ma as parseAnimationShorthand,os as optional,Jn as optimizeTemplate,Ul as optimizeImage,Vl as optimizeDirectory,qs as oneOf,sg as onceStore,km as onUpdated,_c as onUpdate,mm as onUnmounted,Hm as onServer,im as onMounted,hf as onMount,ei as onHydrated,yf as onErrorCaptured,jf as onDestroy,Oh as onDeactivated,Gm as onClient,jm as onBeforeUpdate,lm as onBeforeUnmount,hm as onBeforeMount,Nh as onActivated,_q as observeElement,Lo as notFound,Lg as normalizeCriticalHeadOrder,xf as nextTick,co as negotiateEncoding,Ua as navigateTo,om as mountInstance,Ea as motionDirective,Md as moderateCspPreset,Hn as minifyHtml,jg as metaDirective,Zg as metaDedupKey,$p 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,as as localizePath,U as loadTranslationLazy,_ as loadTranslation,Ek as loadStxConfig,db as loadMiddlewareFromDirectory,nn as loadManifest,Wq as loadElement,On as loadChannels,Lb as listensPassively,hs as lintStxStrict,Yq as lazyLoadAll,Xq as lazyLoad,Ha as keyframeDirective,gl as keptState,Ar as jsxs,Br as jsxDEV,zr as jsx,Jo as jsonResponse,Ye as islandDirective,l as isTest,Zm as isSpaNavigation,Rm as isSpaNavRequest,Eq as isSignatureValid,nf as isSignal,Al as isSharpAvailable,vo as isServerEnvironment,Em as isServer,yb as isRuntimeOwnedColonAttr,Hb as isRuntimeEventName,da as isRtlLocale,j as isProduction,ia as isPresentationalRole,Tq as isNativeLazySupported,Lr as isMarkdownPath,Q as isLoading,R as isLoaded,Ai as isJavaScriptScript,Uq as isIntersectionObserverSupported,Il as isImageFile,Bl as isImageBackendAvailable,aa as isICUFormat,di as isHydrated,Gi as isHydrateTrigger,hd as isHttpStatus,uo as isEdgeEnvironment,is as isDirectiveKind,k as isDevelopment,of as isDerived,Pk as isCssOnlyChange,bo as isCompressible,Fm as isClient,Ym as isChromeInstanceScript,Fh as isAsyncComponent,qn as isActionableMethod,jq as invert,Mf as invalidateFileCacheByDir,Lf as invalidateFileCache,Lc as interpolateScriptsInTemplate,Jc as interpolateScriptExpressions,Kc as interpolateScriptAttributes,x as inlineError,Yr as injectThemeBootstrap,ig as injectSeoTags,Vr 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,zm as initStoreRegistry,vl as initNetlify,yp as initLoadingIndicator,Vq as initLazyLoading,Ro as initFile,br as initBlurUp,hr as initAllBlurUp,Zj as imgDirective,Sl as imageDirective,un as hydrateTemplateStream,tn as hydrateTemplate,vp as hydrateIslands,ai as hydrateIsland,vn as hydrateFragment,bi as hydrateByStrategy,ci as hydrateAll,Op as hydrate,ep 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,Tp as hasStore,xc as hasPlaceholders,tl as hasNetlifyConfig,ab as hasMiddleware,Qb as hasEventDirectives,gh as hasDocumentShell,si as hasDirectives,ma as hasDOMSupport,Ll as handleImageRequest,zf as handleError,Ir as h,Hl as groupVariantsByFormat,hq as grayscale,Zo as gitHash,Bn as getUnusedDirectives,V as getTranslationSync,O as getTranslationCacheStats,W as getTranslationAsync,ba as getTranslation,ol as getTotalSize,Fq as getTimeUntilExpiry,mh as getStoreScript,Up as getStoreNames,Sp as getStore,el as getStorageSize,dl 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,Jl as getMimeType,cb as getMiddlewareNames,$a as getMiddleware,ca as getLocaleDirection,P as getLoadingState,Y as getLoadingLocales,Ie as getImagePlaceholder,Dl as getImageMetadata,Fe as getImageDelivery,Np as getHydrationRuntime,Bm as getHydratedStoreState,Sk as getHmrServer,be as getHead,Fp as getHMRHandler,qj as getFormatExtension,Jj as getFileMtime,Gl as getFallbackVariant,f as getErrorMessage,c as getErrorLocale,n as getErrorConfig,i as getErrorCodeName,Ui as getDirectives,Ti as getDirective,_l as getCurrentInstance,Wc as getCssServeAsset,Pd as getCspPreset,Yd as getCspHeaderName,Pi as getComponentCacheStats,$j as getCachedVideoResult,Jq as getCachedSignature,Of as getCachedSignalsRuntime,Pf as getCachedRouterScript,Cj as getCachedPlaceholder,Qj as getCachedImageResult,Kj as getCached,Nj as getCacheStats,Pg as getBuildId,Ln as getBroadcastServer,pj as getBestVariant,Bc as getAllFilters,dj as generateWidthSrcset,Rh as generateVirtualListCSS,or as generateVideoPreview,Ee as generateValidationScript,pr as generateUploadRuntime,Cn as generateTreeShakenBundle,wh as generateTransitionRuntime,vh as generateTransitionCSS,dk as generateThumbnails,vj as generateThumbhashPlaceholder,mo as generateTemplatesDocs,Ch as generateSuspenseRuntime,Bh as generateSuspenseCSS,Ip as generateStateScript,nj as generateSrcsetData,Uj as generateSrcset,El as generateSrcSet,ek as generateSpriteSheet,xr as generateSpaShell,oj as generateSourceTags,jj as generateSizesFromBreakpoints,ij as generateSizesAttribute,Fl as generateSizes,mg as generateSitemapIndex,Wr as generateSitemap,Sq as generateSimpleMediaPicker,Mq 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,Xr 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,pl as generateNetlifyToml,rr as generateMinifiedMediaRuntime,qr as generateMediaRuntime,Rq as generateMediaManagerEmbed,ln as generateManifest,Ap as generateLoadingIndicatorHtml,ar as generateLazyLoadRuntime,en as generateLayoutTypes,xj as generateLQIP,Mh as generateKeepAliveRuntime,Lh as generateKeepAliveCSS,gi as generateIslandManifest,nr as generateImagePreview,Wl as generateImageManifest,Mp as generateHydrationScript,af as generateHydrationRuntime,Pp as generateHydrationCSS,Vh as generateHydrationBootstrap,Nk as generateHotReloadScript,jb as generateHeatmapScript,Dp as generateHMRClientScript,fk as generateHLSManifest,Jp as generateEventBindings,hj as generateDprSrcsetWithVariableQuality,gj as generateDprSrcset,eh as generateDocumentShell,ro as generateDocs,no as generateDirectivesDocs,Zi as generateDirectiveRuntime,pg as generateDefaultRobotsTxt,gk as generateDASHManifest,Yc as generateCss,Kd as generateCspMetaTag,Jd as generateCspHeader,Ef as generateCompositionRuntime,lo as generateComponentsDocs,Wh as generateComponentManifest,jo as generateComponentDoc,zj as generateColorPlaceholder,Jg as generateColorModeBootScript,rm as generateClientRuntime,Ij as generateCacheKey,oc as generateBrowserAutoImportDestructuring,ir as generateBlurUpRuntime,jr 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,up as formatTypecheckDiagnostics,np as formatTypeErrors,Oo as formatStxContent,nl as formatSize,Ta as formatRoutes,Po as formatMarkdownContent,g as formatLocalizedError,$ as formatICU,p as formatFilePath,w as formatError,Ur as formatDoctorReport,oo as formatDocsAsMarkdown,qo as formatDocsAsJson,po as formatDocsAsHtml,qq as format,hl as forgetKeptState,Gn as foldConstants,_k as flushKeptState,pq as flipVertical,oq as flipHorizontal,fn as fingerprint,sp as findStxModuleDeclarations,rp as findRuntimeTypeDeclarations,Sr 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,Dn as findDeadCode,Dn as findDeadBranches,Nm as findContainerRegion,ko as findComponentFiles,ws as findCommonDir,ml as filterRequiredFiles,Ki as fileExists,Zf as extractVariables,oi as extractTemplateExpressions,Ue as extractStreamBoundaries,Kp 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,_m as extractContainerContent,ho as extractComponentProps,Xh as extractComponentName,io 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,Fn 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,fo as enableDevTools,En as eliminateDeadCode,ff as effect,xq as dprUrls,so as docsCommand,ec as discoverServerApi,cn as discoverLayoutNames,$q as disconnectObserver,go as disableDevTools,F as devHelpers,Um as detectShell,to as detectRuntime,ql as detectProjectConfig,rj as detectFormat,yn as detectBuildMode,ef as derived,ul as deploy,Gk as defineStxConfig,Xp as defineStore,Bf as defineSlots,gs as defineSiteConfig,ks as definePropsWithValidation,js as defineProps,Ak as definePlugin,ie as definePageMeta,Wa as defineMiddleware,ii as defineForm,wf as defineExpose,vf as defineEmits,Wi as defineDirective,Kr as defineCustomElement,Wo as defineConfig,Xi as defineClientDirective,Eh as defineAsyncComponent,Yo as defineApiHandler,sr as defaultMediaConfig,Yl as defaultImageConfig,M as defaultI18nConfig,ib as defaultHeatmapConfig,re as defaultFormClasses,yc as defaultFilters,_d as defaultCspConfig,Ck as defaultConfig,us as default,Rc as deepMergeThemes,Uc as dedupeScopedStyles,Qm as decodeTitleEntities,wj as decodeThumbhash,eg as declareBareLoopHead,Vd as cspNonceDirective,Ud as cspDirective,gr as crossfadeTransition,bq as crop,Ph as createVirtualList,lk as createVideoDirective,Fo as createVercelHandler,kp as createTypeChecker,fa as createTranslateFilter,Bo as createTextEncoderStream,Jr as createStxApp,Ao as createStreamingResponse,We as createStreamRenderer,Vp as createStore,Za as createStorageManager,Xa as createServerCookieManager,gc as createServerApi,am as createScope,zh as createSSRSuspense,bf as createRouter,an as createRouteRuleResolver,eb as createRouteLocation,ip as createRoute,bm as createRef,cm as createReactive,Df as createProvideContext,$o as createProject,Vo as createProductionBuild,tc as createPlaceholder,Kn as createOptimizedBuild,Go as createNetlifyHandler,il as createNetlifyClient,fb as createMiddlewareContext,hp as createMiddleware,Zq as createLazyObserver,Jh as createKeepAliveCache,xo as createKVNamespace,Zh as createIslandRegistry,Yj as createImgDirective,Tl as createImagePlugin,Ml as createImageHandler,Rl as createImageDirective,nb as createHeatmapAggregator,ll as createFileManifest,wo as createEnvAccessor,z as createEnhancedError,zo as createEdgeHandler,yo as createEdgeCache,Ni as createDetailedErrorMessage,Eo as createDenoHandler,rl as createDefaultNetlifyConfig,Zd as createCspHeaders,Io as createCookie,dm as createComputed,$l as createComponentInstance,Do as createCloudflareHandler,Ya as createClientCookieManager,Yi as createBuiltinDirectives,Jr as createApp,Ka as createAnimationTimeline,eq as cover,_f as convertToCommonJS,lq as contrast,dq as contain,y as consoleError,m as configureErrorHandling,Fk as config,dm as computed,eo as compressResponse,Bg as composerPattern,Ag as composer,Wm as composeShellWithPage,Zn as componentDirective,Ii as componentClientSignalNames,kn as compileTemplate,a as collectRepeatedFlag,kl as collectDeployFiles,ch as cloakStyleFragment,Ic as clientLoopScopes,bk as clearVideoCache,N as clearTranslationCache,nh as clearStoreCache,cl as clearStorage,Kq as clearSignatureCache,Gf as clearServerData,Dj as clearPlaceholderCache,tg as clearOnceStore,Id as clearNonce,bb as clearMiddleware,Ke as clearImagePlaceholders,Ge as clearImageDeliveryCatalog,Ql 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,zp as cleanupLoadingIndicator,Km as classifyScript,Lm as classifyAllScripts,lp as checkTemplateFile,mp as checkTemplate,Uf as checkCache,Hq as checkAuthAccess,na as checkA11yWithRegex,oa as checkA11y,Un as channel,No as captureScreenshots,Mo as captureScreenshot,Z as cancelPendingLoads,jl as calculateSha1,fj as calculateOptimalWidths,Yk as cachedQuery,Vf as cacheTemplate,bc as cacheEngineFingerprint,nk as buildWebComponents,op as buildVirtualSource,ur as buildViews,Zp as buildUrl,Qe as buildSuspenseResolveScript,fs as buildStaticSite,qb as buildRuntimeGlobalsDestructure,gn as buildRuntimeAsset,hn as buildRouterAsset,es as buildLangPickerScript,lj as buildImageUrl,Sg as buildIdFragment,_g as buildHtmlAttrs,wn as buildForProduction,ao as buildComponentLibrary,Iq as buildAuthParams,xn as buildApp,cs as buildAlternateLinks,Uo as build,Sn as broadcastPrivate,Tn as broadcastPresence,Pn as broadcast,kq as brightness,Tb as bracketDepths,fq as blur,Jb as blankInertHtmlRegions,Cq as batchSignUrls,gf as batch,sa as autoFixA11yFile,ta as autoFixA11yDirectory,ra as autoFixA11y,sq as auto,ja as attributeValue,jn as assetTags,Mb as asInvocableStatement,rs as arrayOf,$r as applyTranslations,Sj as applyTransformations,zi as applySlots,Yn as applyPropDefaults,vq as applyPreset,ah as applyHtmlAttrs,ne as applyHead,Nc as applyFilters,Sm as appendVary,Od as apiCspPreset,Da as animationGroupDirective,hk as analyzeVideo,An as analyzeUsage,Im as analyzeTemplate,Jm as analyzeProject,An as analyzeDirectiveUsage,ed as analyticsDirective,cp as addStore,bp as addPage,Sd as addNonceToInlineContent,dp as addLayout,ap as addComponent,sn 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,jp as TemplateTypeChecker,Qo as TEMPLATE_PRESETS,v as StxValidationError,r as StxSyntaxError,t as StxSecurityError,s as StxRuntimeError,u as StxFileError,q as StxError,Fr 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,Om 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,To as ProductionBuild,Hr as Portal,_o as PROJECT_TEMPLATES,uq as PRESETS,Tg as OFFLINE_WORKER_PATH,Ug as OFFLINE_REGISTER_SCRIPT,sb as NON_CLIENT_PRIMITIVES,Qp as MemorySessionStore,cj as MIME_TYPES,$i as MEDIA_DEFAULT_WIDTHS,bj as MEDIA_DEFAULT_FORMATS,bn as LAYOUT_TYPES_FILE,fl as KEPT_STATE_PREFIX,Pj as ImageProcessorCache,Kl as ImageProcessingError,Lp as HydrationRuntime,Mk as HotReloadServer,mb as HeatmapAggregator,Yg as HTML_CLASS_MARKER,Xg as HTML_ATTRS_MARKER,yr as Fragment,Gr as For,Pm as FRAGMENT_CACHE_CONTROL,D as ErrorLogger,h as ErrorCodes,Uk as EXTERNALIZED_ASSET_DIR,wl as DeployError,xl as DEFAULT_WIDTHS,Aa as DEFAULT_TRANSITION_OPTIONS,Xb as DEFAULT_STATE_DIR,zl as DEFAULT_QUALITY,sj as DEFAULT_PLACEHOLDER_OPTIONS,yl as DEFAULT_FORMATS,aj as DEFAULT_DPR_VALUES,Cp 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,Wn as BroadcastServer,Vn 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,Rr 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 Wo,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 In,Fb as ap,Fc as hq,Fd as hr,Fe as ns,G as el,Ga as Jn,Gb as bp,Gc as iq,Gd as ir,Ge as os,H as fl,Ha as Kn,Hb as cp,Hc as jq,Hd as jr,He as ps,I as gl,Ia as Xn,Ib as dp,Ic as kq,Id as kr,Ie as qs,J as hl,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 _n,Lb as gp,Lc as nq,Ld as nr,Le as ts,M as $l,Ma as $n,Mb as hp,Mc as oq,Md as or,Me as us,N as am,Na as ao,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,Oe as ws,P as cm,Pa as go,Pb as kp,Pc as rq,Pd as rr,Pe as xs,Q as dm,Qa as ho,Qb as lp,Qc as sq,Qd as sr,Qe as ys,R as em,Ra as io,Rb as mp,Rc as tq,Rd as tr,S as fm,Sa as jo,Sb as np,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 Ir,fa as um,fb as yo,fc as Jp,fd as Jq,fe as Jr,ga as vm,gb as zo,gc as Kp,gd as Kq,ge as Kr,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 Jo,qc as Up,qd as Uq,qe as _r,r as Nk,ra as Gm,rb as Ko,rc as Vp,rd as Vq,re as $r,s as Ok,sa as Hm,sb as Lo,sc as Wp,sd as Wq,se as as,t as Pk,ta as Im,tb as Oo,tc as Xp,td as Xq,te as bs,u as Qk,ua as Jm,ub as Po,uc as Yp,ud as Yq,ue as cs,v as Rk,va as yn,vb as Qo,vc as Zp,vd as Zq,ve as ds,w as Sk,wa as zn,wb as Ro,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 Uo,yc as aq,yd as ar,ye as gs,z as Zk,za as Cn,zb as Vo,zc as bq,zd as br,ze as hs}from"./chunk-zyy4rakd.js";import{Re as op,Se as pp,Te as qp,Ue as rp,Ve as sp,We as tp,Xe as up}from"./chunk-hyhba18z.js";import{Ye as Mo,Ze as No}from"./chunk-72rwcbp6.js";import{_e as So}from"./chunk-jr52y0j1.js";import{$e as xn}from"./chunk-pbnz7259.js";import{af as bo,bf as co,cf as eo,df as Xo}from"./chunk-esr0mfyc.js";import{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,qf as ul,rf as vl,sf as wl}from"./chunk-6kdrncsx.js";import{Af as Ul,Bf as Vl,Cf as Wl,Df as Xl,Ef as Yl,tf as Nl,uf as Ol,vf as Pl,wf as Ql,xf as Rl,yf as Sl,zf as Tl}from"./chunk-p5wp0ce6.js";import{Ff as Ll,Gf as Ml}from"./chunk-td08rnk3.js";import{Hf as xl,If as yl,Jf as zl,Kf as Al,Lf as Bl,Mf as Cl,Nf as Dl,Pf as El,Qf as Fl,Rf as Gl,Sf as Hl,Tf as Il,Uf as Jl,Xf as Kl}from"./chunk-z5rwnnk1.js";import{$f as jn,Yf as fn,Zf as gn,_f as hn,ag as kn,bg as wn}from"./chunk-9mm4e8hy.js";import{Ag as sn,Bg as tn,Cg as un,Dg as vn,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 Ym,rg as Zm,sg as _m,tg as ln,ug as mn,vg as nn,wg as on,xg as pn,yg as qn,zg as rn}from"./chunk-dzk2n4tv.js";import{Eg as $m,Fg as an}from"./chunk-ny67c03k.js";import{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,Pg as Un,Qg as Vn,Rg as Wn}from"./chunk-xsng1mtq.js";import{Sg as ui,Tg as vi,Ug as wi,Vg as xi,Wg as yi,Xg as zi}from"./chunk-73z5fzkn.js";import{Yg as Pj,Zg as Qj,_g as Rj,ch as Sj,dh as Tj,eh as Uj}from"./chunk-0pkk226n.js";import{fh as _j,gh as $j,hh as ak,ih as bk,jh as ck,kh as dk,lh as ek,mh as fk,nh as gk,oh as hk,ph as ik}from"./chunk-akwd34xt.js";import{Ah as Oj,qh as Fj,rh as Gj,sh as Hj,th as Ij,uh as Jj,wh as Kj,xh as Lj,yh as Mj,zh as Nj}from"./chunk-pcxp4r9n.js";import{Bh as Ak,Dh as Bk}from"./chunk-76w34xne.js";import{Jh as Ph,Kh as Qh,Lh as Rh,Mh as Sh,Nh as Th,Oh as Uh}from"./chunk-t1tdjjht.js";import{$h as ei,Qh as Vh,Rh as Wh,Sh as Xh,Th as Yh,Uh as Zh,Vh as _h,Wh as $h,Xh as ai,Yh as bi,Zh as ci,_h as di,ai as fi,bi as gi}from"./chunk-bjar18jd.js";import{di as hi,ei as ii,fi as ji,gi as ki}from"./chunk-27fgag95.js";import{li}from"./chunk-0we9nw1d.js";import{oi as oh}from"./chunk-85sasgtc.js";import{pi as ph}from"./chunk-bwsxym3d.js";import{qi as qh,ri as rh}from"./chunk-xq1acw1r.js";import{si as sh,ti as th,ui as uh,vi as vh,wi as wh,xi as xh}from"./chunk-hx998w7n.js";import{Ai as Ah,Bi as Bh,Ci as Ch,yi as yh,zi as zh}from"./chunk-bjcsc6wx.js";import{Di as Dh,Ei as Eh,Fi as Fh,Gi as Gh,Hi as Hh}from"./chunk-qn5srnj3.js";import{Ii as Ih,Ji as Jh,Ki as Kh,Li as Lh,Mi as Mh,Ni as Nh,Oi as Oh}from"./chunk-4m7ajama.js";import{Pi as mh,Qi as nh}from"./chunk-9sxfybkc.js";import"./chunk-0c2h69k2.js";import{$i as We,Ui as Pe,Vi as Qe,Wi as Re,Xi as Se,Yi as Te,Zi as Ue,_i as Ve,aj as Xe,bj as Ye,cj as Ze,dj as _e,ej as $e,fj as af}from"./chunk-ph5wmtr9.js";import{Aj as If,gj as sf,hj as tf,ij as uf,jj as vf,kj as wf,lj as xf,mj as yf,nj as zf,oj as Af,pj as Bf,qj as Cf,rj as Df,sj as Ef,tj as Ff,uj as Gf,zj as Hf}from"./chunk-t5ja7qkn.js";import{Hj as df,Ij as ef,Jj as ff,Kj as gf,Lj as hf,Mj as jf,Nj as kf,Oj as lf,Pj as mf,Qj as nf,Rj as of,Sj as pf,Tj as qf,Uj as rf}from"./chunk-9e8t0twa.js";import{$j as Pf,Vj as Jf,Wj as Kf,Xj as Lf,Yj as Mf,Zj as Nf,_j as Of,ak as Qf,bk as Rf,ck as Sf,dk as Tf,ek as Uf,fk as Vf,gk as Wf}from"./chunk-7kpr3fcp.js";import{Ak as Lr,Bk as Mr,Ck as Nr,Dk as Or,Ek as Pr,Fk as Qr}from"./chunk-60q6jwym.js";import{Gk as Uk,Hk as Vk,Ik as Wk,Jk as Xk,Kk as bn,Lk as cn,Mk as dn,Nk as en}from"./chunk-m0ee1f3f.js";import"./chunk-anydpa34.js";import"./chunk-esypgzzm.js";import{Dl as gc,yl as ec,zl as fc}from"./chunk-mm9v8t7p.js";import{Fl as bc}from"./chunk-s8jd13nb.js";import{$l as lb,$m as bd,$n as ue,$o as ag,$p as lh,$q as oj,Am as tc,An as Fd,Ap as Mg,Aq as Gi,Ar as ok,Bm as uc,Bn as Gd,Bp as Ng,Bq as Hi,Br as pk,Cm as vc,Cn as Hd,Cp as Og,Cq as Ii,Cr as qk,Dm as wc,Dn as Id,Dp as Pg,Dq as Ji,Dr as rk,Em as xc,En as Jd,Ep as Qg,Eq as Ki,Er as sk,Fm as yc,Fn as Kd,Fp as Rg,Fq as Li,Fr as tk,Gl as xa,Gm as zc,Gn as Ld,Gp as Sg,Gq as Mi,Gr as uk,Hl as ya,Hm as Ac,Hn as Md,Hp as Tg,Hq as Ni,Hr as vk,Il as za,Im as Bc,In as Nd,Ip as Ug,Iq as Oi,Ir as wk,Jl as Aa,Jm as Cc,Jn as Od,Jp as Vg,Jq as Pi,Jr as xk,Kl as Ba,Km as Dc,Kn as Pd,Kp as Wg,Kq as Qi,Kr as yk,Ll as Ca,Lm as Ec,Ln as Qd,Lp as Xg,Lq as Ri,Lr as zk,Ml as Da,Mm as Fc,Mn as Rd,Mp as Yg,Mq as $i,Mr as Ck,Nl as Ea,Nm as Gc,Nn as Sd,Np as Zg,Nq as aj,Nr as Dk,Ol as Fa,Om as Hc,On as Td,Oo as Yf,Op as _g,Oq as bj,Or as Ek,Pl as Ga,Pm as Ic,Pn as Ud,Pp as $g,Pq as cj,Pr as Fk,Ql as Ha,Qm as Jc,Qn as Vd,Qp as ah,Qq as dj,Qr as Gk,Rl as Ia,Rm as Kc,Rn as Wd,Rp as bh,Rq as ej,Rr as Hk,Sl as Ja,Sm as Lc,Sn as Xd,Sp as ch,Sq as fj,Sr as Ik,Tl as Ka,Tm as Mc,Tn as Yd,Tp as dh,Tq as gj,Tr as Jk,Ul as La,Um as Nc,Un as Zd,Up as eh,Uq as hj,Ur as Kk,Vl as Ma,Vm as Oc,Vn as _d,Vp as fh,Vq as ij,Wl as Na,Wm as Pc,Wn as $d,Wo as Zf,Wp as gh,Wq as jj,Xl as Oa,Xm as Qc,Xn as ae,Xp as hh,Xq as kj,Yl as ib,Ym as _c,Yn as re,Yo as _f,Yp as ih,Yq as lj,Zl as jb,Zm as $c,Zn as se,Zp as jh,Zq as mj,_l as kb,_m as ad,_n as te,_o as $f,_p as kh,_q as nj,am as mb,an as cd,ao as ve,ap as bg,aq as mi,ar as pj,bm as nb,bn as dd,bo as we,bp as cg,bq as ni,br as qj,cn as ed,co as xe,cp as dg,cr as rj,do as ye,dp as eg,dr as sj,em as Kb,en as fd,eo as ze,ep as qg,eq as oi,er as tj,fm as Lb,fn as gd,fo as Ae,fp as rg,fr as uj,gm as Mb,gn as hd,go as Be,gp as sg,gr as vj,hm as Nb,hn as id,ho as Ce,hp as tg,hr as wj,im as Ob,in as jd,io as De,ip as ug,ir as xj,jm as Pb,jn as kd,jo as Ee,jp as vg,jr as yj,km as Qb,kn as ld,kp as wg,kr as zj,lm as Ub,ln as md,lo as Ie,lp as xg,lr as Aj,mm as Vb,mn as nd,mo as Je,mp as yg,mr as Bj,nm as Wb,nn as od,no as Ke,np as zg,nr as Cj,om as hc,on as pd,oo as Le,op as Ag,or as Dj,pm as ic,pn as qd,po as Me,pp as Bg,pq as pi,pr as Ej,qm as jc,qn as vd,qo as Ne,qp as Cg,qq as qi,qr as Vj,rm as kc,rn as wd,ro as Oe,rp as Dg,rq as ri,rr as Wj,sm as lc,sn as xd,sp as Eg,sq as si,sr as Xj,tm as mc,tn as yd,tp as Fg,tq as ti,tr as Yj,um as nc,un as zd,up as Gg,uq as Ai,ur as Zj,vm as oc,vn as Ad,vo as bf,vp as Hg,vq as Bi,vr as jk,wm as pc,wn as Bd,wo as cf,wp as Ig,wq as Ci,wr as kk,xm as qc,xn as Cd,xp as Jg,xq as Di,xr as lk,ym as rc,yn as Dd,yo as Xf,yp as Kg,yq as Ei,yr as mk,zm as sc,zn as Ed,zp as Lg,zq as Fi,zr as nk}from"./chunk-92ysystz.js";import{$r as S,As as ta,Bs as ua,Cs as va,Ds as wa,Vr as M,Wr as N,Xr as O,Yr as P,Zr as Q,_r as R,as as T,bs as U,cs as V,ds as W,es as X,fs as Y,gs as Z,hs as _,is as $,js as aa,ks as ba,ls as ca,ms as da,ns as ea,os as fa,ps as ia,qs as ja,rs as ka,ss as la,ts as ma,us as na,vs as oa,ws as pa,xs as qa,ys as ra,zs as sa}from"./chunk-aq1xq0r4.js";import{Es as ga,Fs as ha}from"./chunk-zcz9rs6p.js";import{Gs as Rb,Hs as Sb,Is as Tb}from"./chunk-v3nwkveg.js";import"./chunk-9fqp72ze.js";import{Ps as Si,Qs as Ti,Rs as Ui,Ss as Vi,Ts as Wi,Us as Xi,Vs as Yi,Ws as Zi,Xs as _i}from"./chunk-0btmm4m2.js";import{Ct as Xc,Dt as Yc,Et as Zc,nt as Rc,ot as Sc,pt as Tc,qt as Uc,rt as Vc,tt as Wc}from"./chunk-x99xve3y.js";import{Ft as Xb,Gt as Yb,Ht as Zb,It as _b,Jt as $b,Kt as ac}from"./chunk-tkyrk66a.js";import{Rt as Fe,Tt as Ge,Wt as He}from"./chunk-213jwgpx.js";import"./chunk-pan7wmdg.js";import{$t as cc,au as dc}from"./chunk-1te8k8gp.js";import{eu as fg,fu as gg,gu as hg,hu as ig,iu as jg,ju as kg,ku as lg,mu as mg,nu as ng,ou as og,pu as pg}from"./chunk-zpcnbdhn.js";import{Du as be,Eu as ce,Fu as de,Gu as ee,Hu as fe,Iu as ge,Ju as he,Ku as ie,Lu as je,Mu as ke,Nu as le,Ou as me,Pu as ne,Qu as oe,Ru as pe,Su as qe,qu as rd,ru as sd,su as td,tu as ud}from"./chunk-rz9f3zqz.js";import{$u as m,Tu as b,Uu as c,Vu as d,Wu as e,Xu as f,Yu as g,Zu as h,_u as i,av as n,bv as o,cv as p,dv as q,ev as r,fv as s,gv as t,hv as u,iv as v,jv as w,kv as x,lv as y,mv as z,nv as A,ov as B,pv as C,qv as D,rv as E,sv as F,tv as G,uv as H,vv as I,wv as J,xv as K,yv as L}from"./chunk-bn1edb1y.js";import"./chunk-cj3adc77.js";import"./chunk-t1htzg9e.js";import{$v as Bb,Ov as ob,Pv as pb,Qv as qb,Rv as rb,Sv as sb,Tv as tb,Uv as ub,Vv as vb,Wv as wb,Xv as xb,Yv as yb,Zv as zb,_v as Ab,aw as Cb,bw as Db,cw as Eb,dw as Fb,ew as Gb,fw as Hb,gw as Ib,hw as Jb}from"./chunk-gbmeh7jg.js";import{Bw as Ua,Cw as Va,Dw as Wa,Ew as Xa,Fw as Ya,Gw as Za,Hw as _a,Iw as $a,Jw as ab,Kw as bb,Lw as cb,Mw as db,Nw as eb,Ow as fb,Pw as gb,Rw as hb,lw as Pa,mw as Qa,pw as Ra,uw as Sa,vw as Ta}from"./chunk-36xaycje.js";import"./chunk-vx86cf4r.js";import{bx as j,cx as k,dx as l}from"./chunk-563shnkz.js";import"./chunk-2fw05hs2.js";export{sl as writeNetlifyConfig,mn as writeManifest,Xl as writeImageManifest,Ep as wrapComponentForHMR,ls as withDefaults,zk as webComponentDirectiveHandler,tq as watermark,vr as watchViews,fm as watchMultiple,gm as watchEffect,em as watch,Me as warmImagePlaceholders,tm as waitForStore,X as waitForLocale,pp as virtualPathFor,mk as videoDirective,G as validators,ps as validated,Ce as validateValueEnhanced,pi as validateTemplate,$m as validateRouteRules,yq as validateParams,De as validateFormEnhanced,kr as validateFile,ye as validateFields,xe as validateField,ri as validateDirective,Xd as validateCspDirectives,Hk as validateConfig,zn as validateComponentScripts,Xn as validateComponentProps,lh as validateClientScript,ki as v,Hc as usesSignalsInScript,ub as usesReactiveRuntime,Fi as userComponentFileExists,Sh as useVirtualList,je as useTitle,sm as useStoreOrThrow,Wp as useStore,$k as useStorage,Af as useSlots,bl as useSessionStorage,cc as useServerRuntimeConfig,Yf as useServerData,ge as useSeoMeta,dc as useRuntimeConfig,um as useRouteParams,wm as useRouteParamOrThrow,vm as useRouteParam,je as usePageTitle,rf as useOptimistic,Ff as useModel,ym as useMiddlewareValue,xm as useMiddlewareState,al as useLocalStorage,xp as useLoadingIndicator,ee as useHead,hi as useForm,Cf as useAttrs,mr as uploadFiles,lr as uploadFile,pm as updateInstance,pf as untrack,Vi as unregisterDirective,qm as unmountInstance,Qc as unescapeHtml,tp as typecheckStxFiles,Di as transpileTypeScript,_r as translate,Ba as transitionDirective,lc as transformAutoImports,Rn as toUsers,Qn as toUser,cq as thumbnail,dr as thumbHashToRGBA,er as thumbHashToDataURL,wb as templateNeedsRuntime,vb as templateHasReactiveContext,Jf as templateCache,nd as syncRecordedResponse,Bp as stxClientHelpers,kg as structuredDataDirective,bs as stripLocalePrefix,Xm as stripDocumentWrapper,Sb as stripCommentsAndLiterals,Co as stringToStream,Ld as strictCspPreset,Xe as streamingSuspenseDirective,$e as streamToResponse,Ve as streamTemplateSimple,Pe as streamTemplate,Tk as stopHmrServer,Nn as stopBroadcasting,_b as stateDirName,$b as stateDir,df as state,fh as startsDocument,Xo as startProductionServer,So as startInteractive,Mn as startBroadcasting,ds as stampLocaleLayoutGroup,Ia as staggerDirective,wq as srcsetUrls,Ja as springDirective,ud as splitByPipe,Tm as spaNavVaryHeaders,qp as sourcePathFor,Dq as smartBatchSign,Hi as slotContentHasExpressions,Bq as signUrl,Bi as shouldTranspileTypeScript,Qk as shouldReloadOnChange,Gq as shouldRefreshSignature,Rk as shouldIgnoreFile,Kh as shouldCacheComponent,gq as sharpen,ss as shape,Zb as setStateDir,Cm as setRouteParams,Dm as setMiddlewareState,Zk as setKeptScope,Le as setImagePlaceholder,uf as setGlobalProvide,b as setErrorLocale,Zl as setCurrentInstance,ak as setCachedVideoResult,Rj as setCachedImageResult,Lj as setCached,vs as serveStxFile,xs as serveMultipleStxFiles,Lk as serveMarkdownFile,gp as serveFile,ys as serveApp,fp as serve,Hp as serializeState,on as serializeSetCookie,iq 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,mq as saturation,zq 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,rn as runPageAction,kf as runMountCallbacks,gb as runMiddleware,nm as runHooks,Tr as runDoctor,lf as runDestroyCallbacks,Cg as runComposers,nq as rotate,li as rewriteImagesWithSiblings,od as responseBindings,Li as resolveTemplatePath,ha as resolveStxTargets,Dk as resolveStxDirectories,Zr as resolveI18n,aq as resize,qg as resetUnscopedSignalWarnings,Oc as resetRejectedExpressionWarnings,sc as resetPlaceholders,de as resetHead,Gp as resetHMRHandler,o as resetErrorConfig,ns as required,cg as reportDeferredLoopWarnings,wc as replacePlaceholders,Ec as replaceInterpolations,tr as renderView,jk as renderVideoComponent,ic as renderVendorStyleTags,Cr as renderToString,Dr as renderToStream,Er as renderToDOM,cr as renderThumbhashToCanvas,Qr as renderTemplateString,Or as renderTemplate,Pr as renderString,Se as renderStreamingPage,wi as renderSlot,Ah as renderSSRSuspense,Oq as renderProtectedVideo,Nq as renderProtectedImg,Aq as renderMediaUpload,Nr as renderMarkdownView,dn as renderLayoutTypes,Vj as renderImgComponent,Nl as renderImageComponent,le as renderHtmlAttrs,ke as renderHead,wr as renderEmail,Ji as renderComponentWithSlot,me as renderBodyAttrs,Rp as render,Nd as relaxedCspPreset,we as registerValidationRule,Ze as registerStreamingDirectives,Yp as registerStoresClient,Am 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,_n as registerComponentDirectives,Oa as registerAnimationDirectives,wa as registerA11yDirectives,mc as referencesName,bm as ref,Ko as redirect,jd as recordResponseStatus,kd as recordResponseHeader,ac as rebaseOntoStateDir,ld as readResponseStatus,md as readResponseHeaders,Jk as readMarkdownFile,Kf as readFileCached,cm as reactive,rq as quality,Lq as pruneSignatureCache,Oj as pruneCache,sf as provide,Mr as protectCodeBlocks,ms 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,Vm as processShell,Oe as processServerBindings,hg as processSeoDirective,_e as processSectionDirectives,Vc as processScopedStyles,$c as processReactiveBindings,Pq 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,Pl as processImageComponents,Cl 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,ts 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,wp as preloadIslandHandlers,Ne as preloadIconCollection,In 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,_p as parseUrl,fr as parseThumbhashString,Ad as parseSwitchBlock,ui as parseSlots,vi as parseSlotElement,Fd as parseScriptDeclarations,xk as parseSFCComponent,Qq as parseProtectedArgs,bg as parseLoopBinding,Wj as parseImgComponent,mj as parseImageUrl,Ol as parseImageComponent,pn as parseFormBody,Cd as parseExpressionWithFilters,$n as parseDefaults,Ho as parseCookies,Mm as parseContainerSelector,xd as parseConditionalBlock,Dd as parseArguments,Ma as parseAnimationShorthand,os as optional,Jn as optimizeTemplate,Ul as optimizeImage,Vl as optimizeDirectory,qs as oneOf,sg as onceStore,km as onUpdated,_c as onUpdate,mm as onUnmounted,Hm as onServer,im as onMounted,hf as onMount,ei as onHydrated,yf as onErrorCaptured,jf as onDestroy,Oh as onDeactivated,Gm as onClient,jm as onBeforeUpdate,lm as onBeforeUnmount,hm as onBeforeMount,Nh as onActivated,_q as observeElement,Lo as notFound,Lg as normalizeCriticalHeadOrder,xf as nextTick,co as negotiateEncoding,Ua as navigateTo,om as mountInstance,Ea as motionDirective,Md as moderateCspPreset,Hn as minifyHtml,jg as metaDirective,Zg as metaDedupKey,$p 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,as as localizePath,U as loadTranslationLazy,_ as loadTranslation,Ek as loadStxConfig,db as loadMiddlewareFromDirectory,nn as loadManifest,Wq as loadElement,On as loadChannels,Lb as listensPassively,hs as lintStxStrict,Yq as lazyLoadAll,Xq as lazyLoad,Ha as keyframeDirective,gl as keptState,Ar as jsxs,Br as jsxDEV,zr as jsx,Jo as jsonResponse,Ye as islandDirective,l as isTest,Zm as isSpaNavigation,Rm as isSpaNavRequest,Eq as isSignatureValid,nf as isSignal,Al as isSharpAvailable,vo as isServerEnvironment,Em as isServer,yb as isRuntimeOwnedColonAttr,Hb as isRuntimeEventName,da as isRtlLocale,j as isProduction,ia as isPresentationalRole,Tq as isNativeLazySupported,Lr as isMarkdownPath,Q as isLoading,R as isLoaded,Ai as isJavaScriptScript,Uq as isIntersectionObserverSupported,Il as isImageFile,Bl as isImageBackendAvailable,aa as isICUFormat,di as isHydrated,Gi as isHydrateTrigger,hd as isHttpStatus,uo as isEdgeEnvironment,is as isDirectiveKind,k as isDevelopment,of as isDerived,Pk as isCssOnlyChange,bo as isCompressible,Fm as isClient,Ym as isChromeInstanceScript,Fh as isAsyncComponent,qn as isActionableMethod,jq as invert,Mf as invalidateFileCacheByDir,Lf as invalidateFileCache,Lc as interpolateScriptsInTemplate,Jc as interpolateScriptExpressions,Kc as interpolateScriptAttributes,x as inlineError,Yr as injectThemeBootstrap,ig as injectSeoTags,Vr 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,zm as initStoreRegistry,vl as initNetlify,yp as initLoadingIndicator,Vq as initLazyLoading,Ro as initFile,br as initBlurUp,hr as initAllBlurUp,Zj as imgDirective,Sl as imageDirective,un as hydrateTemplateStream,tn as hydrateTemplate,vp as hydrateIslands,ai as hydrateIsland,vn as hydrateFragment,bi as hydrateByStrategy,ci as hydrateAll,Op as hydrate,ep 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,Tp as hasStore,xc as hasPlaceholders,tl as hasNetlifyConfig,ab as hasMiddleware,Qb as hasEventDirectives,gh as hasDocumentShell,si as hasDirectives,ma as hasDOMSupport,Ll as handleImageRequest,zf as handleError,Ir as h,Hl as groupVariantsByFormat,hq as grayscale,Zo as gitHash,Bn as getUnusedDirectives,V as getTranslationSync,O as getTranslationCacheStats,W as getTranslationAsync,ba as getTranslation,ol as getTotalSize,Fq as getTimeUntilExpiry,mh as getStoreScript,Up as getStoreNames,Sp as getStore,el as getStorageSize,dl 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,Jl as getMimeType,cb as getMiddlewareNames,$a as getMiddleware,ca as getLocaleDirection,P as getLoadingState,Y as getLoadingLocales,Ie as getImagePlaceholder,Dl as getImageMetadata,Fe as getImageDelivery,Np as getHydrationRuntime,Bm as getHydratedStoreState,Sk as getHmrServer,be as getHead,Fp as getHMRHandler,qj as getFormatExtension,Jj as getFileMtime,Gl as getFallbackVariant,f as getErrorMessage,c as getErrorLocale,n as getErrorConfig,i as getErrorCodeName,Ui as getDirectives,Ti as getDirective,_l as getCurrentInstance,Wc as getCssServeAsset,Pd as getCspPreset,Yd as getCspHeaderName,Pi as getComponentCacheStats,$j as getCachedVideoResult,Jq as getCachedSignature,Of as getCachedSignalsRuntime,Pf as getCachedRouterScript,Cj as getCachedPlaceholder,Qj as getCachedImageResult,Kj as getCached,Nj as getCacheStats,Pg as getBuildId,Ln as getBroadcastServer,pj as getBestVariant,Bc as getAllFilters,dj as generateWidthSrcset,Rh as generateVirtualListCSS,or as generateVideoPreview,Ee as generateValidationScript,pr as generateUploadRuntime,Cn as generateTreeShakenBundle,wh as generateTransitionRuntime,vh as generateTransitionCSS,dk as generateThumbnails,vj as generateThumbhashPlaceholder,mo as generateTemplatesDocs,Ch as generateSuspenseRuntime,Bh as generateSuspenseCSS,Ip as generateStateScript,nj as generateSrcsetData,Uj as generateSrcset,El as generateSrcSet,ek as generateSpriteSheet,xr as generateSpaShell,oj as generateSourceTags,jj as generateSizesFromBreakpoints,ij as generateSizesAttribute,Fl as generateSizes,mg as generateSitemapIndex,Wr as generateSitemap,Sq as generateSimpleMediaPicker,Mq 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,Xr 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,pl as generateNetlifyToml,rr as generateMinifiedMediaRuntime,qr as generateMediaRuntime,Rq as generateMediaManagerEmbed,ln as generateManifest,Ap as generateLoadingIndicatorHtml,ar as generateLazyLoadRuntime,en as generateLayoutTypes,xj as generateLQIP,Mh as generateKeepAliveRuntime,Lh as generateKeepAliveCSS,gi as generateIslandManifest,nr as generateImagePreview,Wl as generateImageManifest,Mp as generateHydrationScript,af as generateHydrationRuntime,Pp as generateHydrationCSS,Vh as generateHydrationBootstrap,Nk as generateHotReloadScript,jb as generateHeatmapScript,Dp as generateHMRClientScript,fk as generateHLSManifest,Jp as generateEventBindings,hj as generateDprSrcsetWithVariableQuality,gj as generateDprSrcset,eh as generateDocumentShell,ro as generateDocs,no as generateDirectivesDocs,Zi as generateDirectiveRuntime,pg as generateDefaultRobotsTxt,gk as generateDASHManifest,Yc as generateCss,Kd as generateCspMetaTag,Jd as generateCspHeader,Ef as generateCompositionRuntime,lo as generateComponentsDocs,Wh as generateComponentManifest,jo as generateComponentDoc,zj as generateColorPlaceholder,Jg as generateColorModeBootScript,rm as generateClientRuntime,Ij as generateCacheKey,oc as generateBrowserAutoImportDestructuring,ir as generateBlurUpRuntime,jr 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,up as formatTypecheckDiagnostics,np as formatTypeErrors,Oo as formatStxContent,nl as formatSize,Ta as formatRoutes,Po as formatMarkdownContent,g as formatLocalizedError,$ as formatICU,p as formatFilePath,w as formatError,Ur as formatDoctorReport,oo as formatDocsAsMarkdown,qo as formatDocsAsJson,po as formatDocsAsHtml,qq as format,hl as forgetKeptState,Gn as foldConstants,_k as flushKeptState,pq as flipVertical,oq as flipHorizontal,fn as fingerprint,sp as findStxModuleDeclarations,rp as findRuntimeTypeDeclarations,Sr 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,Dn as findDeadCode,Dn as findDeadBranches,Nm as findContainerRegion,ko as findComponentFiles,ws as findCommonDir,ml as filterRequiredFiles,Ki as fileExists,Zf as extractVariables,oi as extractTemplateExpressions,Ue as extractStreamBoundaries,Kp 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,_m as extractContainerContent,ho as extractComponentProps,Xh as extractComponentName,io 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,Fn 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,fo as enableDevTools,En as eliminateDeadCode,ff as effect,xq as dprUrls,so as docsCommand,ec as discoverServerApi,cn as discoverLayoutNames,$q as disconnectObserver,go as disableDevTools,F as devHelpers,Um as detectShell,to as detectRuntime,ql as detectProjectConfig,rj as detectFormat,yn as detectBuildMode,ef as derived,ul as deploy,Gk as defineStxConfig,Xp as defineStore,Bf as defineSlots,gs as defineSiteConfig,ks as definePropsWithValidation,js as defineProps,Ak as definePlugin,ie as definePageMeta,Wa as defineMiddleware,ii as defineForm,wf as defineExpose,vf as defineEmits,Wi as defineDirective,Kr as defineCustomElement,Wo as defineConfig,Xi as defineClientDirective,Eh as defineAsyncComponent,Yo as defineApiHandler,sr as defaultMediaConfig,Yl as defaultImageConfig,M as defaultI18nConfig,ib as defaultHeatmapConfig,re as defaultFormClasses,yc as defaultFilters,_d as defaultCspConfig,Ck as defaultConfig,us as default,Rc as deepMergeThemes,Uc as dedupeScopedStyles,Qm as decodeTitleEntities,wj as decodeThumbhash,eg as declareBareLoopHead,Vd as cspNonceDirective,Ud as cspDirective,gr as crossfadeTransition,bq as crop,Ph as createVirtualList,lk as createVideoDirective,Fo as createVercelHandler,kp as createTypeChecker,fa as createTranslateFilter,Bo as createTextEncoderStream,Jr as createStxApp,Ao as createStreamingResponse,We as createStreamRenderer,Vp as createStore,Za as createStorageManager,Xa as createServerCookieManager,gc as createServerApi,am as createScope,zh as createSSRSuspense,bf as createRouter,an as createRouteRuleResolver,eb as createRouteLocation,ip as createRoute,bm as createRef,cm as createReactive,Df as createProvideContext,$o as createProject,Vo as createProductionBuild,tc as createPlaceholder,Kn as createOptimizedBuild,Go as createNetlifyHandler,il as createNetlifyClient,fb as createMiddlewareContext,hp as createMiddleware,Zq as createLazyObserver,Jh as createKeepAliveCache,xo as createKVNamespace,Zh as createIslandRegistry,Yj as createImgDirective,Tl as createImagePlugin,Ml as createImageHandler,Rl as createImageDirective,nb as createHeatmapAggregator,ll as createFileManifest,wo as createEnvAccessor,z as createEnhancedError,zo as createEdgeHandler,yo as createEdgeCache,Ni as createDetailedErrorMessage,Eo as createDenoHandler,rl as createDefaultNetlifyConfig,Zd as createCspHeaders,Io as createCookie,dm as createComputed,$l as createComponentInstance,Do as createCloudflareHandler,Ya as createClientCookieManager,Yi as createBuiltinDirectives,Jr as createApp,Ka as createAnimationTimeline,eq as cover,_f as convertToCommonJS,lq as contrast,dq as contain,y as consoleError,m as configureErrorHandling,Fk as config,dm as computed,eo as compressResponse,Bg as composerPattern,Ag as composer,Wm as composeShellWithPage,Zn as componentDirective,Ii as componentClientSignalNames,kn as compileTemplate,a as collectRepeatedFlag,kl as collectDeployFiles,ch as cloakStyleFragment,Ic as clientLoopScopes,bk as clearVideoCache,N as clearTranslationCache,nh as clearStoreCache,cl as clearStorage,Kq as clearSignatureCache,Gf as clearServerData,Dj as clearPlaceholderCache,tg as clearOnceStore,Id as clearNonce,bb as clearMiddleware,Ke as clearImagePlaceholders,Ge as clearImageDeliveryCatalog,Ql 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,zp as cleanupLoadingIndicator,Km as classifyScript,Lm as classifyAllScripts,lp as checkTemplateFile,mp as checkTemplate,Uf as checkCache,Hq as checkAuthAccess,na as checkA11yWithRegex,oa as checkA11y,Un as channel,No as captureScreenshots,Mo as captureScreenshot,Z as cancelPendingLoads,jl as calculateSha1,fj as calculateOptimalWidths,Yk as cachedQuery,Vf as cacheTemplate,bc as cacheEngineFingerprint,nk as buildWebComponents,op as buildVirtualSource,ur as buildViews,Zp as buildUrl,Qe as buildSuspenseResolveScript,fs as buildStaticSite,qb as buildRuntimeGlobalsDestructure,gn as buildRuntimeAsset,hn as buildRouterAsset,es as buildLangPickerScript,lj as buildImageUrl,Sg as buildIdFragment,_g as buildHtmlAttrs,wn as buildForProduction,ao as buildComponentLibrary,Iq as buildAuthParams,xn as buildApp,cs as buildAlternateLinks,Uo as build,Sn as broadcastPrivate,Tn as broadcastPresence,Pn as broadcast,kq as brightness,Tb as bracketDepths,fq as blur,Jb as blankInertHtmlRegions,Cq as batchSignUrls,gf as batch,sa as autoFixA11yFile,ta as autoFixA11yDirectory,ra as autoFixA11y,sq as auto,ja as attributeValue,jn as assetTags,Mb as asInvocableStatement,rs as arrayOf,$r as applyTranslations,Sj as applyTransformations,zi as applySlots,Yn as applyPropDefaults,vq as applyPreset,ah as applyHtmlAttrs,ne as applyHead,Nc as applyFilters,Sm as appendVary,Od as apiCspPreset,Da as animationGroupDirective,hk as analyzeVideo,An as analyzeUsage,Im as analyzeTemplate,Jm as analyzeProject,An as analyzeDirectiveUsage,ed as analyticsDirective,cp as addStore,bp as addPage,Sd as addNonceToInlineContent,dp as addLayout,ap as addComponent,sn 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,jp as TemplateTypeChecker,Qo as TEMPLATE_PRESETS,v as StxValidationError,r as StxSyntaxError,t as StxSecurityError,s as StxRuntimeError,u as StxFileError,q as StxError,Fr 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,Om 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,To as ProductionBuild,Hr as Portal,_o as PROJECT_TEMPLATES,uq as PRESETS,Tg as OFFLINE_WORKER_PATH,Ug as OFFLINE_REGISTER_SCRIPT,sb as NON_CLIENT_PRIMITIVES,Qp as MemorySessionStore,cj as MIME_TYPES,$i as MEDIA_DEFAULT_WIDTHS,bj as MEDIA_DEFAULT_FORMATS,bn as LAYOUT_TYPES_FILE,fl as KEPT_STATE_PREFIX,Pj as ImageProcessorCache,Kl as ImageProcessingError,Lp as HydrationRuntime,Mk as HotReloadServer,mb as HeatmapAggregator,Yg as HTML_CLASS_MARKER,Xg as HTML_ATTRS_MARKER,yr as Fragment,Gr as For,Pm as FRAGMENT_CACHE_CONTROL,D as ErrorLogger,h as ErrorCodes,Uk as EXTERNALIZED_ASSET_DIR,wl as DeployError,xl as DEFAULT_WIDTHS,Aa as DEFAULT_TRANSITION_OPTIONS,Xb as DEFAULT_STATE_DIR,zl as DEFAULT_QUALITY,sj as DEFAULT_PLACEHOLDER_OPTIONS,yl as DEFAULT_FORMATS,aj as DEFAULT_DPR_VALUES,Cp 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,Wn as BroadcastServer,Vn 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,Rr as $path};
|
|
@@ -18,7 +18,7 @@ catch (e) {
|
|
|
18
18
|
}
|
|
19
19
|
throw e;
|
|
20
20
|
}
|
|
21
|
-
`),U.set(X,q)}return q(...V)}catch{return}}};if(this.pool.length<this.maxPoolSize)this.pool.push({func:j,context:Q.slice()});return j}clear(){this.pool.length=0,this.fnCache.clear()}}var xQ=new AJ;class _J{metrics=new Map;budgets=new Map;violations=[];maxViolations=100;violationHandlers=[];enabled=!0;setEnabled(J){this.enabled=J}isEnabled(){return this.enabled}setBudget(J,Q){this.budgets.set(J,{warnThreshold:0.8,action:"warn",...Q})}setBudgets(J){for(let[Q,Z]of Object.entries(J))this.setBudget(Q,Z)}removeBudget(J){this.budgets.delete(J)}getBudgets(){let J={};for(let[Q,Z]of this.budgets.entries())J[Q]=Z;return J}onViolation(J){this.violationHandlers.push(J)}offViolation(J){let Q=this.violationHandlers.indexOf(J);if(Q!==-1)this.violationHandlers.splice(Q,1)}time(J,Q){if(!this.enabled)return Q();let Z=performance.now(),$=Q(),U=performance.now()-Z;return this.recordTime(J,U),this.checkBudget(J,U),$}async timeAsync(J,Q){if(!this.enabled)return Q();let Z=performance.now(),$=await Q(),U=performance.now()-Z;return this.recordTime(J,U),this.checkBudget(J,U),$}checkBudget(J,Q){let Z=this.budgets.get(J);if(!Z)return;let $=Q/Z.maxTime*100,U=Z.warnThreshold!==void 0?Q>=Z.maxTime*Z.warnThreshold&&Q<Z.maxTime:!1,F=Q>=Z.maxTime;if(!U&&!F)return;let j={label:J,actualTime:Q,budgetTime:Z.maxTime,exceedancePercent:$,timestamp:new Date,isWarning:U};this.violations.push(j);while(this.violations.length>this.maxViolations)this.violations.shift();for(let W of this.violationHandlers)try{W(j)}catch{}let V=U?`[Performance Warning] "${J}" took ${Q.toFixed(2)}ms (${$.toFixed(1)}% of ${Z.maxTime}ms budget)`:`[Performance Budget Exceeded] "${J}" took ${Q.toFixed(2)}ms (exceeded ${Z.maxTime}ms budget by ${($-100).toFixed(1)}%)`;switch(Z.action){case"log":console.log(V);break;case"warn":console.warn(V);break;case"error":console.error(V);break;case"throw":if(F)throw Error(V);else console.warn(V);break}}recordTime(J,Q){let Z=this.metrics.get(J);if(Z)Z.count++,Z.totalTime+=Q,Z.maxTime=Math.max(Z.maxTime,Q),Z.minTime=Math.min(Z.minTime,Q);else this.metrics.set(J,{count:1,totalTime:Q,maxTime:Q,minTime:Q})}getStats(J){if(J){let Z=this.metrics.get(J);if(!Z)return{};let $=this.budgets.get(J);return{count:Z.count,avgTime:Z.totalTime/Z.count,totalTime:Z.totalTime,maxTime:Z.maxTime,minTime:Z.minTime,budget:$?.maxTime,budgetUtilization:$?Z.totalTime/Z.count/$.maxTime*100:void 0}}let Q={};for(let[Z,$]of this.metrics.entries()){let U=this.budgets.get(Z);Q[Z]={count:$.count,avgTime:$.totalTime/$.count,totalTime:$.totalTime,maxTime:$.maxTime,minTime:$.minTime,budget:U?.maxTime,budgetUtilization:U?$.totalTime/$.count/U.maxTime*100:void 0}}return Q}getViolations(J){if(J)return this.violations.filter((Q)=>Q.label===J);return[...this.violations]}getViolationStats(){let J={},Q=0,Z=0;for(let $ of this.violations)if(J[$.label]=(J[$.label]||0)+1,$.isWarning)Q++;else Z++;return{total:this.violations.length,byLabel:J,warnings:Q,errors:Z}}clear(){this.metrics.clear()}clearViolations(){this.violations.length=0}clearBudgets(){this.budgets.clear()}reset(){this.clear(),this.clearViolations(),this.clearBudgets(),this.violationHandlers.length=0}}var a=null;function ZQ(){if(!a)a=new _J;return a}var EQ=new Proxy({},{get(J,Q){return ZQ()[Q]}});var RJ=[];function TJ(J){let Q=new s(J);return RJ.push(Q),Q}function CQ(){for(let J of RJ)J.clear()}function t(J,...Q){return`${Q.map((Z)=>String(Z??"")).join("\x00")}\x00${J.length}\x00${Bun.hash(J)}`}function gQ(J){let Q=[];for(let Z of new Set(J))try{Q.push({path:Z,mtimeMs:vJ.statSync(Z).mtimeMs})}catch{}return Q}function uQ(J){for(let Q of J)try{if(vJ.statSync(Q.path).mtimeMs!==Q.mtimeMs)return!1}catch{return!1}return!0}var B=null,JJ=!1,D=null,_="",M=!1,yJ=256,I=new Map,H=new Map,T=null,fJ=null,b=new Map;function k(J){return Bun.hash(J).toString(16).padStart(16,"0").slice(0,16)}function e(J,Q){if(I.has(J))I.delete(J);else if(I.size>=yJ)I.delete(I.keys().next().value);I.set(J,Q)}function UQ(J){let Q=k(J);if(H.has(Q))H.delete(Q);else if(H.size>=yJ)H.delete(H.keys().next().value);return H.set(Q,J),Q}function lQ(J){let Q=H.get(J);if(Q===void 0)return;return H.delete(J),H.set(J,Q),Q}async function FQ(J,Q=T){if(!Q)return null;try{let Z=Bun.file(G.join(Q,`cw-${k(J)}.css`));if(!await Z.exists())return null;return await Z.text()}catch{return null}}async function jQ(J,Q,Z=T){if(!Z)return;try{if(!fs.existsSync(Z))fs.mkdirSync(Z,{recursive:!0});await Bun.write(G.join(Z,`cw-${k(J)}.css`),Q)}catch{}}async function kJ(J){try{let Q=await import(J);if(Q&&Q.CSSGenerator)return{CSSGenerator:Q.CSSGenerator,config:Q.config,build:Q.build,defaultConfig:Q.defaultConfig,extractClasses:Q.extractClasses}}catch{}return null}var WQ=[["@stacksjs","ts-css","dist","engine","index.js"],["@stacksjs","ts-css","src","engine","index.ts"]],XQ=["@stacksjs/ts-css/engine","@stacksjs/ts-css/dist/engine/index.js"];function VQ(){let J=[],Q=process.cwd();while(Q!==G.dirname(Q)){for(let Z of["node_modules","pantry"])for(let $ of WQ)J.push(G.join(Q,Z,...$));Q=G.dirname(Q)}return J}function qQ(){let J=[],Q=process.env.HOME||process.env.USERPROFILE||"",Z=[Q&&G.join(Q,"Code","Tools","ts-css"),Q&&G.join(Q,"Code","Tools","crosswind"),Q&&G.join(Q,"repos","stacks-org","ts-css"),Q&&G.join(Q,"repos","stacks-org","crosswind"),G.join(process.cwd(),"..","ts-css"),G.join(process.cwd(),"..","crosswind")].filter(Boolean);for(let $ of Z)J.push(G.join($,"packages","toolkit","dist","engine","index.js")),J.push(G.join($,"packages","toolkit","src","engine","index.ts"));if(Q)J.push(G.join(Q,"Code","Tools","stx","node_modules","@stacksjs","ts-css","dist","engine","index.js"));return J}async function CJ(){if(JJ)return B;JJ=!0;try{let J=async(U)=>{for(let F of U){if(!await Bun.file(F).exists())continue;let j=await kJ(F);if(j){if(!process.env.STACKS_DEV_QUIET)console.log(`${Y.green}[ts-css]${Y.reset} CSS engine loaded from ${G.dirname(G.dirname(F))}`);return j}}return null};if(process.env.CROSSWIND_SRC){let U=G.resolve(process.env.CROSSWIND_SRC),F=await J([U]);if(!F)throw Error(`CROSSWIND_SRC did not resolve to a Css module: ${U}`);return B=F,B}let Q=await J(VQ());if(Q)return B=Q,B;let Z=XQ;for(let U of Z){let F=await kJ(U);if(F){if(B=F,!process.env.STACKS_DEV_QUIET)console.log(`${Y.green}[ts-css]${Y.reset} CSS engine loaded`);return B}}let $=await J(qQ());if($)return B=$,B;throw Error("Css CSSGenerator not found in any location")}catch{return console.warn(`${Y.yellow}[ts-css] CSS engine not available, Tailwind styles will not be generated${Y.reset}`),console.warn(`${Y.yellow}Run 'bun add @stacksjs/ts-css' to enable CSS generation${Y.reset}`),null}}function oQ(){QJ.clear(),B=null,JJ=!1,D=null,_="",I.clear(),H.clear(),fJ=null,b.clear()}var xJ=!1;async function gJ(J){try{let Q=bJ({name:"css",cwd:J})?"css":bJ({name:"crosswind",cwd:J})?"crosswind":null;if(!Q)return null;if(Q==="crosswind"&&!process.env.STACKS_DEV_QUIET&&!xJ)xJ=!0,console.warn(`${Y.yellow}[ts-css]${Y.reset} Reading the CSS config from a \`crosswind\` file. Rename it to \`css\` (e.g. config/css.ts) \u2014 the old name is deprecated.`);let{loadConfigWithResult:Z}=await import("bunfig"),$=await Z({name:Q,cwd:J,defaultConfig:{},checkEnv:!1,verbose:!1});if(!$?.path||!$.config||Object.keys($.config).length===0)return null;let U=G.relative(J,$.path);if(!process.env.STACKS_DEV_QUIET)console.log(`${Y.green}[ts-css]${Y.reset} Loaded config from ${U||$.path}`);return $.config}catch(Q){if(Q instanceof Error&&Q.name==="ConfigNotFoundError")return null;return console.warn(`${Y.yellow}[ts-css]${Y.reset} Failed to load css config:`,Q instanceof Error?Q.message:Q),null}}async function zQ(J){let Q=null;try{let{loadStxConfig:Z}=await import("./chunk-34faq6k1.js"),$=await Z(J);if($.css)if(typeof $.css==="string"){let U=G.isAbsolute($.css)?$.css:G.resolve(J,$.css);if(await Bun.file(U).exists()){let F=await import(U);Q=F.default||F,console.log(`${Y.green}[ts-css]${Y.reset} Loaded config from stx.config.ts \u2192 ${$.css}`)}}else{if(Q={...$.css,content:$.css.content||[],preflight:$.css.preflight??!0,minify:$.css.minify??!1},$.css.config){let U=G.isAbsolute($.css.config)?$.css.config:G.resolve(J,$.css.config);if(await Bun.file(U).exists()){let F=await import(U);Q={...F.default||F,...Q}}}console.log(`${Y.green}[ts-css]${Y.reset} Using inline CSS config from stx.config.ts`)}}catch{}return Q||await gJ(J)}function GQ(J){try{let Q=new WeakSet;return k(JSON.stringify(J??{},(Z,$)=>{if(typeof $==="function")return`[fn]${String($)}`;if(typeof $==="object"&&$!==null){if(Q.has($))return"[circular]";Q.add($)}return $})??"")}catch{return"unhashable"}}async function YQ(J){if(M)return _;M=!0;try{let Q=await CJ();if(!Q||!Q.build)return M=!1,"";if(!D)D=await gJ(J);if(!D)return M=!1,"";let Z=Q.defaultConfig?.theme||{},$=D.theme||{},U={...Q.defaultConfig,...D,theme:{...Z,...$,extend:{...Z.extend||{},...$.extend||{}}}},F=performance.now(),j=await Q.build(U),V=performance.now()-F;if(_=j.css,console.log(`${Y.cyan}[ts-css]${Y.reset} Built ${j.classes.size} classes in ${V.toFixed(1)}ms`),U.output){let W=G.isAbsolute(U.output)?U.output:G.join(J,U.output),X=G.dirname(W);if(!fs.existsSync(X))fs.mkdirSync(X,{recursive:!0});await Bun.write(W,j.css)}return M=!1,j.css}catch(Q){return console.error(`${Y.red}[ts-css]${Y.reset} Build error:`,Q),M=!1,_}}async function aQ(J){D=null,await YQ(J)}function sQ(){return _}function wQ(J){let Q=new Set,Z=/class\s*=\s*["']([^"']+)["']/gi,$=Z.exec(J);while($!==null){for(let j of $[1].split(/\s+/))if(j.trim())Q.add(j.trim());$=Z.exec(J)}let U=/(?:x-class|:class)\s*=\s*"([^"]+)"/gi,F=U.exec(J);while(F!==null){let j=F[1].match(/'([^']+)'/g);if(j){for(let V of j)for(let W of V.slice(1,-1).split(/\s+/))if(W.trim())Q.add(W.trim())}F=U.exec(J)}return Q}var QJ=TJ(64);async function LQ(J,Q){let Z=()=>b.get(Q?G.resolve(Q):process.cwd())?.fingerprint??null,$=QJ.get(t(J,Q,Z()));if($!==void 0)return $;let U=await BQ(J,Q);if(U)QJ.set(t(J,Q,Z()),U);return U}async function BQ(J,Q){try{let Z=await CJ();if(!Z)return"";let $=typeof Z.extractClasses==="function"?Z.extractClasses(J):wQ(J);if($.size===0)return"";let U=Q?G.resolve(Q):process.cwd(),F=SJ(U,"cache");if(!T)T=F;let j=b.get(U);if(!j){let L=await zQ(U);j={config:L,fingerprint:GQ(L)},b.set(U,j),fJ=j.fingerprint}let V=[...$].sort().join(" "),W=`${j.fingerprint||"default"}::${V}`,X=I.get(W);if(X!==void 0)return e(W,X),X;let q=await FQ(W,F);if(q!==null)return e(W,q),q;let z=Z.defaultConfig||Z.config,w=j.config||{},O=YJ(z,w),{safelist:K,includePreflight:$J,minify:ZJ,tokenCSS:uJ}=O,x=O.config,E=new Z.CSSGenerator(x),S=x.shortcuts||w.shortcuts||{},UJ=Object.keys(S).filter((L)=>$.has(L)||K.includes(L));for(let L of K)if(!S[L])E.generate(L);for(let L of $)if(!S[L])E.generate(L);let P="";if(UJ.length>0){let L=new Z.CSSGenerator(x);for(let dJ of UJ)L.generate(dJ);if(P=L.toCSS(!1,ZJ),P&&!P.endsWith(`
|
|
21
|
+
`),U.set(X,q)}return q(...V)}catch{return}}};if(this.pool.length<this.maxPoolSize)this.pool.push({func:j,context:Q.slice()});return j}clear(){this.pool.length=0,this.fnCache.clear()}}var xQ=new AJ;class _J{metrics=new Map;budgets=new Map;violations=[];maxViolations=100;violationHandlers=[];enabled=!0;setEnabled(J){this.enabled=J}isEnabled(){return this.enabled}setBudget(J,Q){this.budgets.set(J,{warnThreshold:0.8,action:"warn",...Q})}setBudgets(J){for(let[Q,Z]of Object.entries(J))this.setBudget(Q,Z)}removeBudget(J){this.budgets.delete(J)}getBudgets(){let J={};for(let[Q,Z]of this.budgets.entries())J[Q]=Z;return J}onViolation(J){this.violationHandlers.push(J)}offViolation(J){let Q=this.violationHandlers.indexOf(J);if(Q!==-1)this.violationHandlers.splice(Q,1)}time(J,Q){if(!this.enabled)return Q();let Z=performance.now(),$=Q(),U=performance.now()-Z;return this.recordTime(J,U),this.checkBudget(J,U),$}async timeAsync(J,Q){if(!this.enabled)return Q();let Z=performance.now(),$=await Q(),U=performance.now()-Z;return this.recordTime(J,U),this.checkBudget(J,U),$}checkBudget(J,Q){let Z=this.budgets.get(J);if(!Z)return;let $=Q/Z.maxTime*100,U=Z.warnThreshold!==void 0?Q>=Z.maxTime*Z.warnThreshold&&Q<Z.maxTime:!1,F=Q>=Z.maxTime;if(!U&&!F)return;let j={label:J,actualTime:Q,budgetTime:Z.maxTime,exceedancePercent:$,timestamp:new Date,isWarning:U};this.violations.push(j);while(this.violations.length>this.maxViolations)this.violations.shift();for(let W of this.violationHandlers)try{W(j)}catch{}let V=U?`[Performance Warning] "${J}" took ${Q.toFixed(2)}ms (${$.toFixed(1)}% of ${Z.maxTime}ms budget)`:`[Performance Budget Exceeded] "${J}" took ${Q.toFixed(2)}ms (exceeded ${Z.maxTime}ms budget by ${($-100).toFixed(1)}%)`;switch(Z.action){case"log":console.log(V);break;case"warn":console.warn(V);break;case"error":console.error(V);break;case"throw":if(F)throw Error(V);else console.warn(V);break}}recordTime(J,Q){let Z=this.metrics.get(J);if(Z)Z.count++,Z.totalTime+=Q,Z.maxTime=Math.max(Z.maxTime,Q),Z.minTime=Math.min(Z.minTime,Q);else this.metrics.set(J,{count:1,totalTime:Q,maxTime:Q,minTime:Q})}getStats(J){if(J){let Z=this.metrics.get(J);if(!Z)return{};let $=this.budgets.get(J);return{count:Z.count,avgTime:Z.totalTime/Z.count,totalTime:Z.totalTime,maxTime:Z.maxTime,minTime:Z.minTime,budget:$?.maxTime,budgetUtilization:$?Z.totalTime/Z.count/$.maxTime*100:void 0}}let Q={};for(let[Z,$]of this.metrics.entries()){let U=this.budgets.get(Z);Q[Z]={count:$.count,avgTime:$.totalTime/$.count,totalTime:$.totalTime,maxTime:$.maxTime,minTime:$.minTime,budget:U?.maxTime,budgetUtilization:U?$.totalTime/$.count/U.maxTime*100:void 0}}return Q}getViolations(J){if(J)return this.violations.filter((Q)=>Q.label===J);return[...this.violations]}getViolationStats(){let J={},Q=0,Z=0;for(let $ of this.violations)if(J[$.label]=(J[$.label]||0)+1,$.isWarning)Q++;else Z++;return{total:this.violations.length,byLabel:J,warnings:Q,errors:Z}}clear(){this.metrics.clear()}clearViolations(){this.violations.length=0}clearBudgets(){this.budgets.clear()}reset(){this.clear(),this.clearViolations(),this.clearBudgets(),this.violationHandlers.length=0}}var a=null;function ZQ(){if(!a)a=new _J;return a}var EQ=new Proxy({},{get(J,Q){return ZQ()[Q]}});var RJ=[];function TJ(J){let Q=new s(J);return RJ.push(Q),Q}function CQ(){for(let J of RJ)J.clear()}function t(J,...Q){return`${Q.map((Z)=>String(Z??"")).join("\x00")}\x00${J.length}\x00${Bun.hash(J)}`}function gQ(J){let Q=[];for(let Z of new Set(J))try{Q.push({path:Z,mtimeMs:vJ.statSync(Z).mtimeMs})}catch{}return Q}function uQ(J){for(let Q of J)try{if(vJ.statSync(Q.path).mtimeMs!==Q.mtimeMs)return!1}catch{return!1}return!0}var B=null,JJ=!1,D=null,_="",M=!1,yJ=256,I=new Map,H=new Map,T=null,fJ=null,b=new Map;function k(J){return Bun.hash(J).toString(16).padStart(16,"0").slice(0,16)}function e(J,Q){if(I.has(J))I.delete(J);else if(I.size>=yJ)I.delete(I.keys().next().value);I.set(J,Q)}function UQ(J){let Q=k(J);if(H.has(Q))H.delete(Q);else if(H.size>=yJ)H.delete(H.keys().next().value);return H.set(Q,J),Q}function lQ(J){let Q=H.get(J);if(Q===void 0)return;return H.delete(J),H.set(J,Q),Q}async function FQ(J,Q=T){if(!Q)return null;try{let Z=Bun.file(G.join(Q,`cw-${k(J)}.css`));if(!await Z.exists())return null;return await Z.text()}catch{return null}}async function jQ(J,Q,Z=T){if(!Z)return;try{if(!fs.existsSync(Z))fs.mkdirSync(Z,{recursive:!0});await Bun.write(G.join(Z,`cw-${k(J)}.css`),Q)}catch{}}async function kJ(J){try{let Q=await import(J);if(Q&&Q.CSSGenerator)return{CSSGenerator:Q.CSSGenerator,config:Q.config,build:Q.build,defaultConfig:Q.defaultConfig,extractClasses:Q.extractClasses}}catch{}return null}var WQ=[["@stacksjs","ts-css","dist","engine","index.js"],["@stacksjs","ts-css","src","engine","index.ts"]],XQ=["@stacksjs/ts-css/engine","@stacksjs/ts-css/dist/engine/index.js"];function VQ(){let J=[],Q=process.cwd();while(Q!==G.dirname(Q)){for(let Z of["node_modules","pantry"])for(let $ of WQ)J.push(G.join(Q,Z,...$));Q=G.dirname(Q)}return J}function qQ(){let J=[],Q=process.env.HOME||process.env.USERPROFILE||"",Z=[Q&&G.join(Q,"Code","Tools","ts-css"),Q&&G.join(Q,"Code","Tools","crosswind"),Q&&G.join(Q,"repos","stacks-org","ts-css"),Q&&G.join(Q,"repos","stacks-org","crosswind"),G.join(process.cwd(),"..","ts-css"),G.join(process.cwd(),"..","crosswind")].filter(Boolean);for(let $ of Z)J.push(G.join($,"packages","toolkit","dist","engine","index.js")),J.push(G.join($,"packages","toolkit","src","engine","index.ts"));if(Q)J.push(G.join(Q,"Code","Tools","stx","node_modules","@stacksjs","ts-css","dist","engine","index.js"));return J}async function CJ(){if(JJ)return B;JJ=!0;try{let J=async(U)=>{for(let F of U){if(!await Bun.file(F).exists())continue;let j=await kJ(F);if(j){if(!process.env.STACKS_DEV_QUIET)console.log(`${Y.green}[ts-css]${Y.reset} CSS engine loaded from ${G.dirname(G.dirname(F))}`);return j}}return null};if(process.env.CROSSWIND_SRC){let U=G.resolve(process.env.CROSSWIND_SRC),F=await J([U]);if(!F)throw Error(`CROSSWIND_SRC did not resolve to a Css module: ${U}`);return B=F,B}let Q=await J(VQ());if(Q)return B=Q,B;let Z=XQ;for(let U of Z){let F=await kJ(U);if(F){if(B=F,!process.env.STACKS_DEV_QUIET)console.log(`${Y.green}[ts-css]${Y.reset} CSS engine loaded`);return B}}let $=await J(qQ());if($)return B=$,B;throw Error("Css CSSGenerator not found in any location")}catch{return console.warn(`${Y.yellow}[ts-css] CSS engine not available, Tailwind styles will not be generated${Y.reset}`),console.warn(`${Y.yellow}Run 'bun add @stacksjs/ts-css' to enable CSS generation${Y.reset}`),null}}function oQ(){QJ.clear(),B=null,JJ=!1,D=null,_="",I.clear(),H.clear(),fJ=null,b.clear()}var xJ=!1;async function gJ(J){try{let Q=bJ({name:"css",cwd:J})?"css":bJ({name:"crosswind",cwd:J})?"crosswind":null;if(!Q)return null;if(Q==="crosswind"&&!process.env.STACKS_DEV_QUIET&&!xJ)xJ=!0,console.warn(`${Y.yellow}[ts-css]${Y.reset} Reading the CSS config from a \`crosswind\` file. Rename it to \`css\` (e.g. config/css.ts) \u2014 the old name is deprecated.`);let{loadConfigWithResult:Z}=await import("bunfig"),$=await Z({name:Q,cwd:J,defaultConfig:{},checkEnv:!1,verbose:!1});if(!$?.path||!$.config||Object.keys($.config).length===0)return null;let U=G.relative(J,$.path);if(!process.env.STACKS_DEV_QUIET)console.log(`${Y.green}[ts-css]${Y.reset} Loaded config from ${U||$.path}`);return $.config}catch(Q){if(Q instanceof Error&&Q.name==="ConfigNotFoundError")return null;return console.warn(`${Y.yellow}[ts-css]${Y.reset} Failed to load css config:`,Q instanceof Error?Q.message:Q),null}}async function zQ(J){let Q=null;try{let{loadStxConfig:Z}=await import("./chunk-cqn117hn.js"),$=await Z(J);if($.css)if(typeof $.css==="string"){let U=G.isAbsolute($.css)?$.css:G.resolve(J,$.css);if(await Bun.file(U).exists()){let F=await import(U);Q=F.default||F,console.log(`${Y.green}[ts-css]${Y.reset} Loaded config from stx.config.ts \u2192 ${$.css}`)}}else{if(Q={...$.css,content:$.css.content||[],preflight:$.css.preflight??!0,minify:$.css.minify??!1},$.css.config){let U=G.isAbsolute($.css.config)?$.css.config:G.resolve(J,$.css.config);if(await Bun.file(U).exists()){let F=await import(U);Q={...F.default||F,...Q}}}console.log(`${Y.green}[ts-css]${Y.reset} Using inline CSS config from stx.config.ts`)}}catch{}return Q||await gJ(J)}function GQ(J){try{let Q=new WeakSet;return k(JSON.stringify(J??{},(Z,$)=>{if(typeof $==="function")return`[fn]${String($)}`;if(typeof $==="object"&&$!==null){if(Q.has($))return"[circular]";Q.add($)}return $})??"")}catch{return"unhashable"}}async function YQ(J){if(M)return _;M=!0;try{let Q=await CJ();if(!Q||!Q.build)return M=!1,"";if(!D)D=await gJ(J);if(!D)return M=!1,"";let Z=Q.defaultConfig?.theme||{},$=D.theme||{},U={...Q.defaultConfig,...D,theme:{...Z,...$,extend:{...Z.extend||{},...$.extend||{}}}},F=performance.now(),j=await Q.build(U),V=performance.now()-F;if(_=j.css,console.log(`${Y.cyan}[ts-css]${Y.reset} Built ${j.classes.size} classes in ${V.toFixed(1)}ms`),U.output){let W=G.isAbsolute(U.output)?U.output:G.join(J,U.output),X=G.dirname(W);if(!fs.existsSync(X))fs.mkdirSync(X,{recursive:!0});await Bun.write(W,j.css)}return M=!1,j.css}catch(Q){return console.error(`${Y.red}[ts-css]${Y.reset} Build error:`,Q),M=!1,_}}async function aQ(J){D=null,await YQ(J)}function sQ(){return _}function wQ(J){let Q=new Set,Z=/class\s*=\s*["']([^"']+)["']/gi,$=Z.exec(J);while($!==null){for(let j of $[1].split(/\s+/))if(j.trim())Q.add(j.trim());$=Z.exec(J)}let U=/(?:x-class|:class)\s*=\s*"([^"]+)"/gi,F=U.exec(J);while(F!==null){let j=F[1].match(/'([^']+)'/g);if(j){for(let V of j)for(let W of V.slice(1,-1).split(/\s+/))if(W.trim())Q.add(W.trim())}F=U.exec(J)}return Q}var QJ=TJ(64);async function LQ(J,Q){let Z=()=>b.get(Q?G.resolve(Q):process.cwd())?.fingerprint??null,$=QJ.get(t(J,Q,Z()));if($!==void 0)return $;let U=await BQ(J,Q);if(U)QJ.set(t(J,Q,Z()),U);return U}async function BQ(J,Q){try{let Z=await CJ();if(!Z)return"";let $=typeof Z.extractClasses==="function"?Z.extractClasses(J):wQ(J);if($.size===0)return"";let U=Q?G.resolve(Q):process.cwd(),F=SJ(U,"cache");if(!T)T=F;let j=b.get(U);if(!j){let L=await zQ(U);j={config:L,fingerprint:GQ(L)},b.set(U,j),fJ=j.fingerprint}let V=[...$].sort().join(" "),W=`${j.fingerprint||"default"}::${V}`,X=I.get(W);if(X!==void 0)return e(W,X),X;let q=await FQ(W,F);if(q!==null)return e(W,q),q;let z=Z.defaultConfig||Z.config,w=j.config||{},O=YJ(z,w),{safelist:K,includePreflight:$J,minify:ZJ,tokenCSS:uJ}=O,x=O.config,E=new Z.CSSGenerator(x),S=x.shortcuts||w.shortcuts||{},UJ=Object.keys(S).filter((L)=>$.has(L)||K.includes(L));for(let L of K)if(!S[L])E.generate(L);for(let L of $)if(!S[L])E.generate(L);let P="";if(UJ.length>0){let L=new Z.CSSGenerator(x);for(let dJ of UJ)L.generate(dJ);if(P=L.toCSS(!1,ZJ),P&&!P.endsWith(`
|
|
22
22
|
`))P+=`
|
|
23
23
|
`}let A=P+E.toCSS($J,ZJ);return A=uJ+A,e(W,A),jQ(W,A,F),A}catch(Z){return console.warn("Failed to generate Css CSS:",Z),""}}async function tQ(J,Q,Z=!1,$=!1){let U=await LQ(J,Q);if(!U)return $?o(J):J;let F=Z?`<link data-css="generated" rel="stylesheet" href="/_stx/css.${UQ(U)}.css">`:`<style data-css="generated">
|
|
24
24
|
${U}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{$i as h,Ui as a,Vi as b,Wi as c,Xi as d,Yi as e,Zi as f,_i as g,aj as i,bj as j,cj as k,dj as l,ej as m,fj as n}from"./chunk-
|
|
2
|
+
import{$i as h,Ui as a,Vi as b,Wi as c,Xi as d,Yi as e,Zi as f,_i as g,aj as i,bj as j,cj as k,dj as l,ej as m,fj as n}from"./chunk-ph5wmtr9.js";import"./chunk-92ysystz.js";import"./chunk-aq1xq0r4.js";import"./chunk-zcz9rs6p.js";import"./chunk-v3nwkveg.js";import"./chunk-9fqp72ze.js";import"./chunk-0btmm4m2.js";import"./chunk-x99xve3y.js";import"./chunk-tkyrk66a.js";import"./chunk-213jwgpx.js";import"./chunk-pan7wmdg.js";import"./chunk-1te8k8gp.js";import"./chunk-zpcnbdhn.js";import"./chunk-rz9f3zqz.js";import"./chunk-bn1edb1y.js";import"./chunk-cj3adc77.js";import"./chunk-t1htzg9e.js";import"./chunk-gbmeh7jg.js";import"./chunk-36xaycje.js";import"./chunk-vx86cf4r.js";import"./chunk-563shnkz.js";import"./chunk-2fw05hs2.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{At as h,Bt as i,Ct as j,Dt as k,Et as l,tt as a,ut as b,vt as c,wt as d,xt as e,yt as f,zt as g}from"./chunk-
|
|
2
|
+
import{At as h,Bt as i,Ct as j,Dt as k,Et as l,tt as a,ut as b,vt as c,wt as d,xt as e,yt as f,zt as g}from"./chunk-x99xve3y.js";import"./chunk-tkyrk66a.js";import"./chunk-2fw05hs2.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,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Al as c,Bl as d,Cl as e,Dl as f,El as g,yl as a,zl as b}from"./chunk-
|
|
2
|
+
import{Al as c,Bl as d,Cl as e,Dl as f,El as g,yl as a,zl as b}from"./chunk-mm9v8t7p.js";import"./chunk-9fqp72ze.js";import"./chunk-tkyrk66a.js";import"./chunk-1te8k8gp.js";import"./chunk-36xaycje.js";import"./chunk-2fw05hs2.js";export{e as productionApiDispatcher,g as isServerApiSource,b as generateApiTypes,a as discoverServerApi,f as createServerApi,d as createApiDispatcher,c as buildServerApi};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{cf as O$}from"./chunk-
|
|
2
|
+
import{cf as O$}from"./chunk-esr0mfyc.js";import{dg as Y3,hg as N$,ig as X7,jg as h6,lg as F1,mg as Z7,ng as z5,og as q$,pg as V$,rg as Q7,sg as Y7,wg as q5}from"./chunk-dzk2n4tv.js";import{ij as a5,vj as Z6,wj as Q6,xj as Y6,yj as J6}from"./chunk-t5ja7qkn.js";import{Cj as s1,Dj as D1,Ej as w1,Fj as t$,Gj as e$,Hj as J1,Jj as G6}from"./chunk-9e8t0twa.js";import{ek as L$,fk as F$}from"./chunk-7kpr3fcp.js";import{Ik as o5,Jk as t5}from"./chunk-m0ee1f3f.js";import{Pk as z3,Qk as j3}from"./chunk-anydpa34.js";import{il as L1}from"./chunk-esypgzzm.js";import{Dl as w5,El as D7}from"./chunk-mm9v8t7p.js";import{Cp as e6,Dp as $7,Dq as q6,Eq as P1,Iq as e0,Mm as o0,Mr as S$,Or as n0,Pr as C0,Tr as k0,Wo as E0,aq as I0,dn as o6,fm as P7,fp as t0,hn as j5,kn as k1,ko as B$,ln as x1,vo as A$,vp as G3,xo as t6,ym as Q3,yo as b6,zr as z$}from"./chunk-92ysystz.js";import{At as H$,Et as J0,_s as U5,st as B,zt as j$}from"./chunk-x99xve3y.js";import{Jt as p0}from"./chunk-tkyrk66a.js";import{Ev as A6,Zu as o1,fv as W5,hv as K5,kv as t1,ov as _5,rv as U$,sv as P6}from"./chunk-bn1edb1y.js";import{Kw as c6,Lw as l6,Mw as i6,Nw as a6,Ow as s6,Pw as r6,Rw as n6,Ww as f6,pw as F5,qw as g6,uw as m6,vw as p6}from"./chunk-36xaycje.js";import{bx as q3,cx as S6,ex as B5}from"./chunk-563shnkz.js";import{ix as s}from"./chunk-2fw05hs2.js";var n$=null,o$=null;function R1(){if(!n$)n$=Q6(void 0,Z6);return n$}function i1(){if(!o$)o$=J6({state:J1,kept:R1(),matches:Y6});return o$}function E3($,X){return i1().cachedQuery($,X)}function I3($){i1().setScope($)}function R3(){return R1().flush()}var W6={read:($)=>{try{return JSON.parse($)}catch{return $}},write:($)=>{return JSON.stringify($)}};function D3($,X,Z={}){let{storage:Q="local",serializer:Y=W6,mergeDefaults:J=!1,listenToStorageChanges:G=!0}=Z,W=new Set,K=typeof window<"u",_=()=>{if(!K)return null;return Q==="session"?sessionStorage:localStorage},U=()=>{let L=_();if(!L)return X;try{let O=L.getItem($);if(O===null)return X;let N=Y.read(O);if(J&&typeof X==="object"&&X!==null)return{...X,...N};return N}catch{return X}},F=(L)=>{let O=_();if(!O)return;try{if(L===null||L===void 0)O.removeItem($);else O.setItem($,Y.write(L))}catch(N){console.warn(`[useStorage] Failed to write key "${$}":`,N)}},z=U(),j=(L,O)=>{for(let N of W)try{N(L,O)}catch(V){console.error("[useStorage] Subscriber error:",V)}};if(K&&G){let L=(N)=>{if(N.key===$&&N.storageArea===_()){let V=z;try{z=N.newValue?Y.read(N.newValue):X}catch(M){console.warn(`[useStorage] Failed to read key "${$}" from a cross-tab update:`,M);return}j(z,V)}};window.addEventListener("storage",L);let O=globalThis.onDestroy;if(typeof O==="function")O(()=>window.removeEventListener("storage",L))}let H={get value(){return z},set value(L){let O=z;z=L,F(L),j(L,O)},get:()=>z,set:(L)=>{H.value=L},remove:()=>{let L=_();if(L){L.removeItem($);let O=z;z=X,j(X,O)}},subscribe:(L)=>{return W.add(L),L(z,void 0),()=>W.delete(L)}};return H}function K6($,X,Z,Q,Y={}){let{serializer:J=W6,mergeDefaults:G=!1,listenToStorageChanges:W=!0}=Y,K=typeof window<"u",_=()=>{if(!K)return null;return $==="session"?sessionStorage:localStorage},U=(j)=>{if(j===null||j===void 0)return Q;try{let H=J.read(j);if(G&&typeof Q==="object"&&Q!==null)return{...Q,...H};return H}catch(H){return console.warn(`[${X}] Failed to read key "${Z}":`,H),Q}},z=J1((()=>{let j=_();if(!j)return Q;try{return U(j.getItem(Z))}catch(H){return console.warn(`[${X}] Cannot read "${Z}":`,H),Q}})());if(G6(()=>{let j=z(),H=_();if(!H)return;try{if(j===null||j===void 0)H.removeItem(Z);else H.setItem(Z,J.write(j))}catch(L){console.warn(`[${X}] Cannot persist "${Z}":`,L)}}),K&&W){let j=(L)=>{if(L.key!==Z)return;if(L.storageArea&&L.storageArea!==_())return;z.set(U(L.newValue))};window.addEventListener("storage",j);let H=globalThis.onDestroy;if(typeof H==="function")H(()=>window.removeEventListener("storage",j))}return z}function w3($,X,Z){return K6("local","useLocalStorage",$,X,Z)}function T3($,X,Z){return K6("session","useSessionStorage",$,X,Z)}function C3($="local"){if(typeof window>"u")return;($==="session"?sessionStorage:localStorage).clear()}function k3($="local"){if(typeof window>"u")return[];let X=$==="session"?sessionStorage:localStorage;return Object.keys(X)}function x3($="local"){if(typeof window>"u")return 0;let X=$==="session"?sessionStorage:localStorage,Z=0;for(let Q in X)if(Object.prototype.hasOwnProperty.call(X,Q))Z+=(Q.length+(X.getItem(Q)?.length||0))*2;return Z}var _6="stx:kept:";function U6($){return`${_6}${$===void 0||$===null||$===""||$===!1?"":`${$}:`}`}function S3($,X){return`${U6(X)}${$}`}function P3($,X,Z={}){let Q=Z.scope===void 0?i1().scope():Z.scope;if(Q===!1||Q===null||Q===""||typeof window>"u")return J1(X);let Y=S3($,Q),J=R1(),G=J.peek(Y),W=J1(G?G.value:X),K={},_=!1;if(W.subscribe((U)=>{if(U===K)return;_=!0,J.set(Y,U)}),!G)J.load(Y).then((U)=>{if(!U||_)return;K=U.value,W.set(U.value)});return W}function b3($){if(typeof window>"u")return Promise.resolve();return R1().forget(U6($))}var t=null;function a1($,X,Z=new WeakSet){if(Object.is($,X))return!0;if(typeof $!=="object"||typeof X!=="object"||$===null||X===null)return!1;if(Z.has($))return!0;if(Z.add($),$ instanceof Date&&X instanceof Date)return $.getTime()===X.getTime();if($ instanceof RegExp&&X instanceof RegExp)return $.source===X.source&&$.flags===X.flags;if(Array.isArray($)){if(!Array.isArray(X)||$.length!==X.length)return!1;for(let J=0;J<$.length;J++)if(!a1($[J],X[J],Z))return!1;return!0}if(Array.isArray(X))return!1;if($ instanceof Map){if(!(X instanceof Map)||$.size!==X.size)return!1;for(let[J,G]of $)if(!X.has(J)||!a1(G,X.get(J),Z))return!1;return!0}if(X instanceof Map)return!1;if($ instanceof Set){if(!(X instanceof Set)||$.size!==X.size)return!1;for(let J of $)if(!X.has(J))return!1;return!0}if(X instanceof Set)return!1;let Q=Object.keys($),Y=Object.keys(X);if(Q.length!==Y.length)return!1;for(let J of Q){if(!Object.prototype.hasOwnProperty.call(X,J))return!1;if(!a1($[J],X[J],Z))return!1}return!0}function gJ($){t=$}function fJ(){return t}function hJ(){return{isMounted:!1,isUnmounted:!1,hooks:{beforeMount:[],mounted:[],beforeUpdate:[],updated:[],beforeUnmount:[],unmounted:[]},effects:[],scope:y3()}}function y3(){return{refs:new Map,effects:new Set,cleanups:[]}}function dJ($){let X=new Set,Z=new Set,Q=$,Y=Symbol("ref"),J={get value(){let G=s1();if(G)Z.add(G);return Q},set value(G){if(!Object.is(G,Q)){let W=Q;Q=G;for(let K of X)K(G,W);for(let K of Z)if(t$())e$(K);else K()}},subscribe(G){return X.add(G),()=>{X.delete(G)}}};if(t)t.scope.refs.set(Y,J);return J}var B6=new WeakMap;function v3($){let X=B6.get($);if(X)return X;let Z=new Map,Q=(G)=>{let W=Z.get(G);if(!W)return;for(let K of[...W])if(t$())e$(K);else K()},Y=(G,W)=>{if(!Z.has(G))Z.set(G,new Set);return Z.get(G).add(W),()=>{Z.get(G)?.delete(W)}},J=new Proxy($,{get(G,W,K){let _=Reflect.get(G,W,K),U=s1();if(U)Y(W,U);if(_!==null&&typeof _==="object"&&!Array.isArray(_)){let F=Object.getPrototypeOf(_);if(F===Object.prototype||F===null)return v3(_)}return _},set(G,W,K,_){let U=Reflect.get(G,W,_),F=Reflect.set(G,W,K,_);if(!Object.is(K,U))Q(W);return F},deleteProperty(G,W){let K=Reflect.deleteProperty(G,W);return Q(W),K}});return B6.set($,J),J}function uJ($){let X,Z=!0,Q=new Set,Y=new Set,J=()=>{Z=!0,G()},G=()=>{if(Z){let K=X,_=D1(J);if(X=$(),w1(_),Z=!1,!Object.is(X,K)){for(let U of Q)U(X,K);for(let U of Y)U()}}},W=D1(J);return X=$(),Z=!1,w1(W),{get value(){let K=s1();if(K)Y.add(K);return G(),X},set value(K){console.warn("[stx] Computed properties are readonly")},subscribe(K){return Q.add(K),()=>{Q.delete(K)}}}}function g3($){if(typeof requestAnimationFrame==="function"){requestAnimationFrame(()=>{requestAnimationFrame($)});return}setTimeout($,0)}function mJ($,X,Z={}){let{immediate:Q=!1,deep:Y=!1,flush:J="post"}=Z,G,W,K=!1,_=()=>{if(K)return;let H=j();if((Y?!a1(H,G):!Object.is(H,G))||Q)if(X(H,G),Y&&H!==null&&typeof H==="object")try{G=structuredClone(H)}catch{G=H}else G=H},U=(H)=>{if(J==="sync")H();else if(J==="pre")Promise.resolve().then(H);else g3(H)},F=!1,z=()=>{if(K||F)return;F=!0,U(()=>{F=!1,_()})},j=()=>{if(typeof $==="function"){let H=D1(z);try{return $()}finally{w1(H)}}return $.value};if(typeof $!=="function"){let H=$.subscribe(()=>{U(_)});W=()=>{K=!0,H()}}else W=()=>{K=!0};if(G=j(),Q)U(_);if(t)t.scope.cleanups.push(()=>W?.());return()=>W?.()}function pJ($,X,Z={}){let Q=[],Y=$.map((J)=>J.value);for(let J of $){let G=J.subscribe(()=>{let W=$.map((K)=>K.value);X(W,Y),Y=[...W]});Q.push(G)}if(Z.immediate){let J=$.map((G)=>G.value);X(J,Y)}return()=>{for(let J of Q)J()}}function cJ($){let X,Z=!1,Q=()=>{if(Z)return;if(X)X();let Y=D1(Q);X=$(),w1(Y)};if(Q(),t)t.scope.cleanups.push(()=>{if(Z=!0,X)X()});return()=>{if(Z=!0,X)X()}}function lJ($){if(t)t.hooks.beforeMount.push($);else console.warn("[stx] onBeforeMount called outside of component setup")}function iJ($){if(t)t.hooks.mounted.push($);else console.warn("[stx] onMounted called outside of component setup")}function aJ($){if(t)t.hooks.beforeUpdate.push($);else console.warn("[stx] onBeforeUpdate called outside of component setup")}function sJ($){if(t)t.hooks.updated.push($);else console.warn("[stx] onUpdated called outside of component setup")}function rJ($){if(t)t.hooks.beforeUnmount.push($);else console.warn("[stx] onBeforeUnmount called outside of component setup")}function nJ($){if(t)t.hooks.unmounted.push($);else console.warn("[stx] onUnmounted called outside of component setup")}async function G1($,X){let Z=$.hooks[X];for(let Q of Z)await Q()}async function oJ($){await G1($,"beforeMount"),$.isMounted=!0,await G1($,"mounted")}async function tJ($){if(!$.isMounted||$.isUnmounted)return;await G1($,"beforeUpdate"),await G1($,"updated")}async function eJ($){if($.isUnmounted)return;await G1($,"beforeUnmount");for(let X of $.scope.cleanups)X();$.isUnmounted=!0,await G1($,"unmounted")}function $G(){return`
|
|
3
3
|
<script data-stx-client-runtime>
|
|
4
4
|
(function() {
|
|
5
5
|
'use strict';
|
|
@@ -1069,7 +1069,7 @@ else {
|
|
|
1069
1069
|
};
|
|
1070
1070
|
})();
|
|
1071
1071
|
</script>
|
|
1072
|
-
`}function y0($,X,Z={}){let Q=i4(X,Z),Y=$.lastIndexOf("</body>");if(Y!==-1)return $.slice(0,Y)+Q+$.slice(Y);if($.includes("</html>"))return $.replace("</html>",`${Q}</html>`);return $+Q}function G$($){let X=$.toLowerCase();return X.endsWith(".css")||X.endsWith(".scss")||X.endsWith(".sass")||X.endsWith(".less")}function W$($){let X=$.toLowerCase();return[".stx",".html",".htm",".md",".js",".ts",".jsx",".tsx",".json"].some((Q)=>X.endsWith(Q))}function K$($){return[/^\./,/node_modules/,/\.stx\/output/,/\.stx\/cache/,/~$/,/\.swp$/,/\.swo$/].some((Z)=>Z.test($))}var U1=null;function _$($){if(!U1)U1=new x6($);return U1}function T1(){if(U1)U1.stop(),U1=null}import C1 from"path";B5();var B1={name:"bun-plugin-stx",async setup($){let Z={...await n0(),...$.config?.stx},Q=new Set,Y=Z.webComponents?.enabled?`./${C1.relative(C1.dirname($.config?.outdir||"dist"),Z.webComponents.outputDir||"dist/web-components")}`:"/web-components",J=[];if(Z.webComponents?.enabled)try{let G=await z$(Z,Q);if(J.push(...G),Z.debug&&G.length>0)console.log(`Successfully built ${G.length} web components`)}catch(G){console.error("Failed to build web components:",G)}$.onLoad({filter:/\.stx$/},async({path:G})=>{try{let W=new Set;if(Z.cache&&Z.cachePath){let L=await L$(G,Z);if(L){if(Z.debug)console.log(`Using cached version of ${G}`);return{contents:L,loader:"html"}}}let K=await _5(()=>Bun.file(G).text(),"",(L)=>{throw new K5(`Failed to read stx file: ${G}`,G,void 0,void 0,`File read error: ${L.message}`)});if(!K)throw new K5(`stx file is empty: ${G}`,G);let{scriptContent:_,templateContent:U,allScripts:F}=U5.time("script-extraction",()=>{let L=K,O=B$(K);if(O)L=O.content.trim();let N=K.match(/<script\b[^>]*>[\s\S]*?<\/script>/gi)||[],V="",M=[];for(let q of N){let I=q.match(/<script\b[^>]*>([\s\S]*?)<\/script>/i)?.[1]||"",E=q.match(/<script\b([^>]*)>/i),w=E?E[1]:"";if(/\bserver\b/i.test(w))V=I;else M.push(q)}let A=L.replace(/<script\b[^>]*>[\s\S]*?<\/script>/gi,"");return{scriptContent:V,templateContent:A,allScripts:M}}),z={__filename:G,__dirname:C1.dirname(G),__stx:{webComponentsPath:Y,builtComponents:J}};await _5(()=>E0(_,z,G),void 0,(L)=>{let O=new W5(`Script execution failed in ${G}: ${L.message}`,G,void 0,void 0,_.substring(0,100));if(U$.log(O,{filePath:G,scriptContent:_}),Z.debug)throw O});let H=await U5.timeAsync("directive-processing",async()=>{return await I0(U,z,G,Z,W)});if(F.length>0){let{interpolateScriptsInTemplate:L}=await import("./chunk-
|
|
1072
|
+
`}function y0($,X,Z={}){let Q=i4(X,Z),Y=$.lastIndexOf("</body>");if(Y!==-1)return $.slice(0,Y)+Q+$.slice(Y);if($.includes("</html>"))return $.replace("</html>",`${Q}</html>`);return $+Q}function G$($){let X=$.toLowerCase();return X.endsWith(".css")||X.endsWith(".scss")||X.endsWith(".sass")||X.endsWith(".less")}function W$($){let X=$.toLowerCase();return[".stx",".html",".htm",".md",".js",".ts",".jsx",".tsx",".json"].some((Q)=>X.endsWith(Q))}function K$($){return[/^\./,/node_modules/,/\.stx\/output/,/\.stx\/cache/,/~$/,/\.swp$/,/\.swo$/].some((Z)=>Z.test($))}var U1=null;function _$($){if(!U1)U1=new x6($);return U1}function T1(){if(U1)U1.stop(),U1=null}import C1 from"path";B5();var B1={name:"bun-plugin-stx",async setup($){let Z={...await n0(),...$.config?.stx},Q=new Set,Y=Z.webComponents?.enabled?`./${C1.relative(C1.dirname($.config?.outdir||"dist"),Z.webComponents.outputDir||"dist/web-components")}`:"/web-components",J=[];if(Z.webComponents?.enabled)try{let G=await z$(Z,Q);if(J.push(...G),Z.debug&&G.length>0)console.log(`Successfully built ${G.length} web components`)}catch(G){console.error("Failed to build web components:",G)}$.onLoad({filter:/\.stx$/},async({path:G})=>{try{let W=new Set;if(Z.cache&&Z.cachePath){let L=await L$(G,Z);if(L){if(Z.debug)console.log(`Using cached version of ${G}`);return{contents:L,loader:"html"}}}let K=await _5(()=>Bun.file(G).text(),"",(L)=>{throw new K5(`Failed to read stx file: ${G}`,G,void 0,void 0,`File read error: ${L.message}`)});if(!K)throw new K5(`stx file is empty: ${G}`,G);let{scriptContent:_,templateContent:U,allScripts:F}=U5.time("script-extraction",()=>{let L=K,O=B$(K);if(O)L=O.content.trim();let N=K.match(/<script\b[^>]*>[\s\S]*?<\/script>/gi)||[],V="",M=[];for(let q of N){let I=q.match(/<script\b[^>]*>([\s\S]*?)<\/script>/i)?.[1]||"",E=q.match(/<script\b([^>]*)>/i),w=E?E[1]:"";if(/\bserver\b/i.test(w))V=I;else M.push(q)}let A=L.replace(/<script\b[^>]*>[\s\S]*?<\/script>/gi,"");return{scriptContent:V,templateContent:A,allScripts:M}}),z={__filename:G,__dirname:C1.dirname(G),__stx:{webComponentsPath:Y,builtComponents:J}};await _5(()=>E0(_,z,G),void 0,(L)=>{let O=new W5(`Script execution failed in ${G}: ${L.message}`,G,void 0,void 0,_.substring(0,100));if(U$.log(O,{filePath:G,scriptContent:_}),Z.debug)throw O});let H=await U5.timeAsync("directive-processing",async()=>{return await I0(U,z,G,Z,W)});if(F.length>0){let{interpolateScriptsInTemplate:L}=await import("./chunk-w4nspy4b.js"),O=L(F.join(`
|
|
1073
1073
|
`),z),N=H.search(/<\/body>/i);if(N!==-1)H=H.slice(0,N)+O+`
|
|
1074
1074
|
`+H.slice(N);else H+=`
|
|
1075
1075
|
${O}`}if(H=await b6(H),W.forEach((L)=>Q.add(L)),Z.cache&&Z.cachePath){if(await F$(G,H,W,Z),Z.debug)console.log(`Cached template ${G} with ${W.size} dependencies`)}return{contents:H,loader:"html"}}catch(W){let K=W instanceof Error?W:new W5(`Plugin processing failed: ${String(W)}`,G);if(U$.log(K,{filePath:G,buildConfig:$.config}),P6.logDetailedError(K,{filePath:G,plugin:"bun-plugin-stx"}),Z.debug)console.error("stx Plugin Error:",K);let _=K,U=_.line||null,F=_.context||null;return{contents:Z.debug||S6()?`<!DOCTYPE html>
|
|
@@ -1132,7 +1132,7 @@ ${O}`}if(H=await b6(H),W.forEach((L)=>Q.add(L)),Z.cache&&Z.cachePath){if(await F
|
|
|
1132
1132
|
<h1>Something went wrong</h1>
|
|
1133
1133
|
<p>An internal error occurred. Please try again later.</p>
|
|
1134
1134
|
</body>
|
|
1135
|
-
</html>`,loader:"html"}}})}};async function s4($,X={}){let Z=X.port||3000,Q=X.watch!==!1,Y=X.hotReload!==!1&&Q,J=null,G=X.hmrPort||Z+1,W=Q0.resolve($);if(!R0.existsSync(W))return console.error(`${B.red}Error: File not found: ${B.bright}${W}${B.reset}`),!1;if(W.endsWith(".md"))return G5(W,X);else if(!W.endsWith(".stx"))return console.error(`${B.red}Error: Unsupported file type: ${B.bright}${W}${B.reset}. Only .stx and .md files are supported.`),!1;let K=p0(process.cwd(),"output");R0.mkdirSync(K,{recursive:!0}),console.log(`${B.blue}Building ${B.bright}${$}${B.reset}...`);let _=null,U=async()=>{try{let I={name:"public-assets",setup(T){T.onResolve({filter:/^\/(images|fonts|assets|public)\//},(f)=>{return{path:f.path,external:!0}})}},E=await Bun.build({entrypoints:[W],outdir:K,plugins:[I,B1],publicPath:"/",define:{"process.env.NODE_ENV":'"development"'},...X.stxOptions});if(!E.success)return console.error(`${B.red}Build failed:${B.reset}`,E.logs),!1;let w=E.outputs.find((T)=>T.path.endsWith(".html"));if(!w)return console.error(`${B.red}No HTML output found${B.reset}`),!1;return _=await Bun.file(w.path).text(),!0}catch(I){return console.error(`${B.red}Error building stx file:${B.reset}`,I),!1}};if(!await U())return!1;let z=Q0.dirname(W);await j$(z);let j=Z;try{if(j=await u0(Z),j!==Z)console.log(`${B.yellow}Port ${Z} is busy, using port ${j} instead${B.reset}`)}catch{return console.error(`${B.red}Could not find an available port${B.reset}`),!1}if(Y){let I=X.hmrPort||j+1;J=_$({wsPort:I,verbose:!1}),G=J.start(I)}let H={},L=null,O;try{let{loadStxConfig:I}=await import("./chunk-
|
|
1135
|
+
</html>`,loader:"html"}}})}};async function s4($,X={}){let Z=X.port||3000,Q=X.watch!==!1,Y=X.hotReload!==!1&&Q,J=null,G=X.hmrPort||Z+1,W=Q0.resolve($);if(!R0.existsSync(W))return console.error(`${B.red}Error: File not found: ${B.bright}${W}${B.reset}`),!1;if(W.endsWith(".md"))return G5(W,X);else if(!W.endsWith(".stx"))return console.error(`${B.red}Error: Unsupported file type: ${B.bright}${W}${B.reset}. Only .stx and .md files are supported.`),!1;let K=p0(process.cwd(),"output");R0.mkdirSync(K,{recursive:!0}),console.log(`${B.blue}Building ${B.bright}${$}${B.reset}...`);let _=null,U=async()=>{try{let I={name:"public-assets",setup(T){T.onResolve({filter:/^\/(images|fonts|assets|public)\//},(f)=>{return{path:f.path,external:!0}})}},E=await Bun.build({entrypoints:[W],outdir:K,plugins:[I,B1],publicPath:"/",define:{"process.env.NODE_ENV":'"development"'},...X.stxOptions});if(!E.success)return console.error(`${B.red}Build failed:${B.reset}`,E.logs),!1;let w=E.outputs.find((T)=>T.path.endsWith(".html"));if(!w)return console.error(`${B.red}No HTML output found${B.reset}`),!1;return _=await Bun.file(w.path).text(),!0}catch(I){return console.error(`${B.red}Error building stx file:${B.reset}`,I),!1}};if(!await U())return!1;let z=Q0.dirname(W);await j$(z);let j=Z;try{if(j=await u0(Z),j!==Z)console.log(`${B.yellow}Port ${Z} is busy, using port ${j} instead${B.reset}`)}catch{return console.error(`${B.red}Could not find an available port${B.reset}`),!1}if(Y){let I=X.hmrPort||j+1;J=_$({wsPort:I,verbose:!1}),G=J.start(I)}let H={},L=null,O;try{let{loadStxConfig:I}=await import("./chunk-x4wjtspw.js"),E=await I();if(O=X.stxOptions?.serverApi??E.serverApi,E?.apiRouter)L=E?.apiRouter,console.log(`${B.blue}Using custom router for API handling${B.reset}`);if(E?.apiRoutes){H=E.apiRoutes;let w=Object.keys(H).length;if(w>0)console.log(`${B.blue}Loaded ${B.bright}${w} API route${w>1?"s":""}${B.reset}`)}if(E?.broadcasting?.enabled)try{let{startBroadcasting:w,loadChannels:D}=await import("./chunk-qmmp5kb5.js"),T=E.broadcasting;await w(T);let f=T.port??6001;console.log(`${B.magenta}Broadcasting on ${B.cyan}ws://localhost:${f}/ws${B.reset}`);let c=Q0.join(process.cwd(),"channels.ts");if(R0.existsSync(c))try{let v=await D(c);console.log(`${B.blue}Loaded ${B.bright}${v} broadcast channel${v!==1?"s":""}${B.blue} from channels.ts${B.reset}`)}catch(v){console.warn(`${B.yellow}Failed to load channels.ts: ${v.message}${B.reset}`)}}catch(w){console.warn(`${B.yellow}Broadcasting failed to start: ${w.message}${B.reset}`)}}catch{}let{createServerApi:N,isServerApiSource:V}=await import("./chunk-zm4jetjz.js"),M=await N(process.cwd(),O);if(console.log(`${B.blue}Starting server on ${B.cyan}http://localhost:${j}/${B.reset}...`),Y)console.log(`${B.magenta}Hot reload enabled on ws://localhost:${G}${B.reset}`);let A=a4({port:j,async fetch(I){return O$(I,await(async()=>{let E=new URL(I.url);if([K,Q0.dirname(W),Q0.join(process.cwd(),"public")].some((v)=>V(Q0.join(v,E.pathname),process.cwd(),O)))return new Response("Not Found",{status:404});if(L)try{let v=await L.handleRequest(I);if(v.status!==404)return v}catch{}if(H[E.pathname])try{return await H[E.pathname](I)}catch(v){return new Response(JSON.stringify({error:v.message}),{status:500,headers:{"Content-Type":"application/json"}})}let w=await M(I);if(w)return w;if(E.pathname==="/")return(async()=>{let S=await J0(_||"");if(Y)S=y0(S,G);if(X.native)if(S.includes("<head>"))S=S.replace("<head>","<head><style>[data-stx-sidebar],.stx-sidebar{display:none!important}</style><script>window.__craftNativeSidebar=true;document.documentElement.classList.add('has-native-sidebar')</script>");else if(S.includes("<html"))S=S.replace(/(<html[^>]*>)/,"$1<head><style>[data-stx-sidebar],.stx-sidebar{display:none!important}</style><script>window.__craftNativeSidebar=true;document.documentElement.classList.add('has-native-sidebar')</script></head>");else S="<head><style>[data-stx-sidebar],.stx-sidebar{display:none!important}</style><script>window.__craftNativeSidebar=true;document.documentElement.classList.add('has-native-sidebar')</script></head>"+S;if(X.titlebarHidden)if(S.includes("<head>"))S=S.replace("<head>","<head><style>html.stx-titlebar-hidden .stx-traffic-lights-dot{visibility:hidden}</style><script>document.documentElement.classList.add('stx-titlebar-hidden')</script>");else if(S.includes("<html"))S=S.replace(/(<html[^>]*>)/,"$1<head><style>html.stx-titlebar-hidden .stx-traffic-lights-dot{visibility:hidden}</style><script>document.documentElement.classList.add('stx-titlebar-hidden')</script></head>");else S=`<head><style>html.stx-titlebar-hidden .stx-traffic-lights-dot{visibility:hidden}</style><script>document.documentElement.classList.add('stx-titlebar-hidden')</script></head>${S}`;return S})().then((S)=>new Response(S,{headers:{"Content-Type":"text/html","Cache-Control":"no-store, no-cache, must-revalidate",Pragma:"no-cache",Expires:"0"}}));let D=Q0.join(K,E.pathname);if(R0.existsSync(D)&&R0.statSync(D).isFile()){let v=Bun.file(D),S=Q0.extname(D).toLowerCase(),k="text/plain";if(S===".ts"||S===".tsx"){let N0=new Bun.Transpiler({loader:S===".tsx"?"tsx":"ts"}),W0=await v.text(),r0=N0.transformSync(W0);return new Response(r0,{headers:{"Content-Type":"application/javascript","Cache-Control":"no-store, no-cache, must-revalidate",Pragma:"no-cache",Expires:"0"}})}switch(S){case".html":k="text/html";break;case".css":k="text/css";break;case".js":k="text/javascript";break;case".json":k="application/json";break;case".png":k="image/png";break;case".jpg":case".jpeg":k="image/jpeg";break;case".gif":k="image/gif";break;case".woff":k="font/woff";break;case".woff2":k="font/woff2";break;case".ttf":k="font/ttf";break;case".otf":k="font/otf";break;case".eot":k="application/vnd.ms-fontobject";break}return new Response(v,{headers:{"Content-Type":k}})}let T=Q0.dirname(W),f=Q0.join(T,E.pathname);if(R0.existsSync(f)&&R0.statSync(f).isFile()){let v=Bun.file(f),S=Q0.extname(f).toLowerCase(),k="text/plain";if(S===".ts"||S===".tsx"){let N0=new Bun.Transpiler({loader:S===".tsx"?"tsx":"ts"}),W0=await v.text(),r0=N0.transformSync(W0);return new Response(r0,{headers:{"Content-Type":"application/javascript","Cache-Control":"no-store, no-cache, must-revalidate",Pragma:"no-cache",Expires:"0"}})}switch(S){case".html":k="text/html";break;case".css":k="text/css";break;case".js":k="text/javascript";break;case".json":k="application/json";break;case".png":k="image/png";break;case".jpg":case".jpeg":k="image/jpeg";break;case".gif":k="image/gif";break;case".svg":k="image/svg+xml";break;case".ico":k="image/x-icon";break;case".woff":k="font/woff";break;case".woff2":k="font/woff2";break;case".ttf":k="font/ttf";break;case".otf":k="font/otf";break;case".eot":k="application/vnd.ms-fontobject";break}return new Response(v,{headers:{"Content-Type":k}})}let c=Q0.join(process.cwd(),"public",E.pathname);if(R0.existsSync(c)&&R0.statSync(c).isFile()){let v=Bun.file(c),S=Q0.extname(c).toLowerCase(),k="application/octet-stream";if(S===".ts"||S===".tsx"){let N0=new Bun.Transpiler({loader:S===".tsx"?"tsx":"ts"}),W0=await v.text(),r0=N0.transformSync(W0);return new Response(r0,{headers:{"Content-Type":"application/javascript","Cache-Control":"no-store, no-cache, must-revalidate",Pragma:"no-cache",Expires:"0"}})}switch(S){case".html":k="text/html";break;case".css":k="text/css";break;case".js":k="text/javascript";break;case".json":k="application/json";break;case".png":k="image/png";break;case".jpg":case".jpeg":k="image/jpeg";break;case".gif":k="image/gif";break;case".svg":k="image/svg+xml";break;case".ico":k="image/x-icon";break;case".woff":k="font/woff";break;case".woff2":k="font/woff2";break;case".ttf":k="font/ttf";break;case".otf":k="font/otf";break;case".eot":k="application/vnd.ms-fontobject";break}return new Response(v,{headers:{"Content-Type":k}})}return new Response("Not Found",{status:404})})())},error(I){return new Response(`<pre>${I}
|
|
1136
1136
|
${I.stack}</pre>`,{headers:{"Content-Type":"text/html"}})}});console.clear(),console.log(`
|
|
1137
1137
|
${B.blue}stx${B.reset} ${B.green}${process.env.stx_VERSION||"v0.0.10"}${B.reset} ${B.dim}ready in ${Math.random()*10+5|0}.${Math.random()*90+10|0} ms${B.reset}`),console.log(`
|
|
1138
1138
|
${B.bright}\u2192 ${B.cyan}http://localhost:${j}/${B.reset}`),console.log(`
|
|
@@ -1619,12 +1619,12 @@ ${H.stack}</pre>`,{headers:{"Content-Type":"text/html"}})}});console.clear(),con
|
|
|
1619
1619
|
${B.blue}stx${B.reset} ${B.green}${process.env.stx_VERSION||"v0.0.10"}${B.reset} ${B.dim}ready in ${Math.random()*10+5|0}.${Math.random()*90+10|0} ms${B.reset}`),console.log(`
|
|
1620
1620
|
${B.bright}\u2192 ${B.cyan}http://localhost:${U}/${B.reset}`),console.log(`
|
|
1621
1621
|
${B.yellow}Routes:${B.reset}`);let z=new Set(W.map((H)=>H.routeTemplate)),j=Object.entries(G).filter(([H])=>!z.has(H)).sort(([H],[L])=>H.localeCompare(L)).map(([H,L])=>({route:H==="/"?"/":H,filePath:L0.relative(process.cwd(),L.filePath),fileType:L.fileType}));for(let H of W){let L=H.routeTemplate.replace(/\[([^\]]+)\]/g,":$1");j.push({route:L,filePath:L0.relative(process.cwd(),H.filePath),fileType:"stx"})}if(j.sort((H,L)=>H.route.localeCompare(L.route)),j.forEach((H,L)=>{let N=L===j.length-1?"\u2514\u2500 ":"\u251C\u2500 ",V=H.fileType==="md"?`${B.magenta}(markdown)${B.reset}`:"";console.log(` ${B.green}${N}${H.route}${B.reset} \u2192 ${B.bright}${H.filePath}${B.reset} ${V}`)}),console.log(`
|
|
1622
|
-
Press ${B.cyan}h${B.reset} + ${B.cyan}Enter${B.reset} to show shortcuts`),m0(F.url.toString(),()=>{if(Q)c0.watch(J,{recursive:!0}).close();F.stop()}),Q){console.log(`${B.blue}Watching for changes...${B.reset}`);let H=c0.watch(J,{recursive:!0},async(L,O)=>{if(!O)return;if(O.endsWith(".stx")||O.endsWith(".js")||O.endsWith(".ts")||O.endsWith(".md"))console.log(`${B.yellow}File ${B.bright}${O}${B.yellow} changed, rebuilding...${B.reset}`),t0.clear(),e0(),await K()});process.on("SIGINT",()=>{H.close(),F.stop(),process.exit(0)})}return!0}function v6($){return String($??"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}var{serve:o4}=globalThis.Bun;import e from"fs";import m from"path";async function u6($){try{return j5(await Bun.file($).text())}catch{return}}function L5($){let X=Bun.file($),Z=m.extname($).toLowerCase(),Q={".html":"text/html",".css":"text/css",".js":"text/javascript",".json":"application/json",".png":"image/png",".jpg":"image/jpeg",".jpeg":"image/jpeg",".gif":"image/gif",".svg":"image/svg+xml",".ico":"image/x-icon",".woff":"font/woff",".woff2":"font/woff2",".ttf":"font/ttf",".otf":"font/otf",".eot":"application/vnd.ms-fontobject"},J=[".js",".css",".json"].includes(Z)?{"Cache-Control":"no-store, no-cache, must-revalidate",Pragma:"no-cache",Expires:"0"}:{};return new Response(X,{headers:{"Content-Type":Q[Z]||"application/octet-stream",...J}})}async function t4($=".",X={}){let Z=X.port||3000,Q=X.watch!==!1,Y=X.hotReload!==!1&&Q,J=null,G=X.hmrPort||Z+1,W=m.resolve($),{loadStxConfig:K}=await import("./chunk-qsjfs890.js"),_=await K(W),{createServerApi:U,isServerApiSource:F}=await import("./chunk-6c936hsk.js"),z=X.stxOptions?.serverApi??_.serverApi,j=await U(W,z),H=_.root&&_.root!=="."?m.join(W,_.root):W,L=X.pagesDir||_.pagesDir||"pages",O=m.join(H,L);if(!e.existsSync(O)&&!_._layerPageDirs?.some((R)=>e.existsSync(R)))return console.error(`${B.red}Error: No '${L}' directory found${B.reset}`),console.log(`${B.dim}Looked in: ${B.bright}${O}${B.reset}`),console.log(`${B.dim}Run stx dev from the app directory, pass it as an argument (stx dev <dir>),${B.reset}`),console.log(`${B.dim}point at another directory with --pages <dir>, or set pagesDir in stx.config.ts.${B.reset}`),console.log(`${B.dim}Starting fresh? Create ${L}/index.stx for the homepage.${B.reset}`),!1;let N=A$(H,{pagesDir:L,pagesDirs:_._layerPageDirs?[O,..._._layerPageDirs.slice(1)]:void 0});if(N.length===0)return console.error(`${B.red}Error: No page files found in ${B.bright}${O}${B.reset}`),!1;console.log(`${B.blue}Found ${B.bright}${N.length}${B.blue} routes${B.reset}`);let V=_?._pluginPageDirs||[],M=[];for(let{dir:R,prefix:x}of V)if(e.existsSync(R)){let P=A$(m.dirname(R),{pagesDir:m.basename(R)});for(let y of P){let Z0=x==="/"?y.pattern:`${x}${y.pattern==="/"?"":y.pattern}`;M.push({route:{...y,pattern:Z0},prefix:x})}if(P.length>0)console.log(`${B.blue}Plugin pages: ${B.bright}${P.length}${B.blue} routes at ${B.cyan}${x}${B.reset}`)}let A=new Map,q=null,I=null;if(X.stxOptions?.shell!==!1){if(I=await Z7(W,X.stxOptions?.shell),I){if(q=await z5(I,X.stxOptions||{}),q)console.log(`${B.blue}Using app shell: ${B.bright}${m.relative(W,I)}${B.reset} ${B.dim}(deprecated: use layouts/default.stx instead)${B.reset}`)}}c6(),await i6(W);let E=l6();if(E.length>0)console.log(`${B.blue}Loaded ${B.bright}${E.length}${B.blue} middleware: ${B.dim}${E.join(", ")}${B.reset}`);let w={},D=null;try{let{loadStxConfig:R}=await import("./chunk-qsjfs890.js"),x=await R(W);if(x?.apiRouter)D=x?.apiRouter,console.log(`${B.blue}Using custom router for API handling${B.reset}`);if(x?.apiRoutes){w=x.apiRoutes;let P=Object.keys(w).length;if(P>0)console.log(`${B.blue}Loaded ${B.bright}${P} API route${P>1?"s":""}${B.reset}`)}if(x?.broadcasting?.enabled)try{let{startBroadcasting:P,loadChannels:y}=await import("./chunk-qmmp5kb5.js"),Z0=x.broadcasting;await P(Z0);let w0=Z0.port??6001;console.log(`${B.magenta}Broadcasting on ${B.cyan}ws://localhost:${w0}/ws${B.reset}`);let h0=m.join(process.cwd(),"channels.ts");if(e.existsSync(h0))try{let p=await y(h0);console.log(`${B.blue}Loaded ${B.bright}${p} broadcast channel${p!==1?"s":""}${B.blue} from channels.ts${B.reset}`)}catch(p){console.warn(`${B.yellow}Failed to load channels.ts: ${p.message}${B.reset}`)}}catch(P){console.warn(`${B.yellow}Broadcasting failed to start: ${P.message}${B.reset}`)}}catch{}let T=p0(W,"output");e.mkdirSync(T,{recursive:!0});let f=new Map,c=new Set,v=async(R)=>{let x=m6(O,R);if(!x)return null;try{let P=await Bun.build({entrypoints:[x],outdir:T,plugins:[B1],publicPath:"/",define:{"process.env.NODE_ENV":'"development"'},...X.stxOptions});if(!P.success)return null;let y=P.outputs.find((Z0)=>Z0.path.endsWith(".html"));if(!y)return null;return await Bun.file(y.path).text()}catch{return null}},S=new Map,k=async(R,x)=>{try{let{processDirectives:P,extractVariables:y,defaultConfig:Z0,loadStxConfig:w0,injectRouterScript:h0}=await import("./chunk-qsjfs890.js"),{checkCache:p,cacheTemplate:u,readFileCached:g,templateCache:h}=await import("./chunk-8wbj7kjw.js"),Y0=await w0(W),d0=(i)=>{if(!i)return i;if(m.isAbsolute(i))return i;return m.resolve(W,i)},C={...Z0,...Y0,...X.stxOptions,autoShell:!0};if(X.debugDirectives)C.debug=!0;C.partialsDir=d0(C.partialsDir),C.componentsDir=d0(C.componentsDir),C.layoutsDir=d0(C.layoutsDir),C.storesDir=d0(C.storesDir||"stores"),C.cachePath=d0(C.cachePath)??p0(W,"cache");let X0=!x&&!X.profile,a=C.cache!==!1;if(a&&X0){let i=h.get(R.filePath);if(i)try{if((await e.promises.stat(R.filePath)).mtime.getTime()<=i.mtime){let M0=!0;for(let U0 of i.dependencies){if(!e.existsSync(U0)){M0=!1;break}if((await e.promises.stat(U0)).mtime.getTime()>i.mtime){M0=!1;break}}if(M0){let U0=i.output;if(q)U0=V$(U0,{preserveHead:!0});let I1=S.get(R.filePath);return{route:R,content:U0,status:I1?.status??await u6(R.filePath),headers:I1?.headers}}}}catch{}let q0=await p(R.filePath,C);if(q0){let V0=q0;if(q)V0=V$(V0,{preserveHead:!0});let M0=S.get(R.filePath);return{route:R,content:V0,status:M0?.status??await u6(R.filePath),headers:M0?.headers}}}let o=a?await g(R.filePath):await Bun.file(R.filePath).text(),_0=j5(o),{classifyAllScripts:d}=await import("./chunk-qsjfs890.js"),A0=d(o),T0=A0.server.map((i)=>i.content),r=o;for(let i of A0.server)r=r.replace(i.fullTag,"");let n={__filename:R.filePath,__dirname:m.dirname(R.filePath),__stx_options:C,params:x??{},__stx_runtime_head:{}};for(let i of T0)try{await y(i,n,R.filePath)}catch(q0){if(X.stxOptions?.debug)console.error("[stx] variable extraction error",R.filePath,q0?.message||q0)}let b0=new Set,H0;if(X.profile){let i=performance.now();H0=await P(r,n,R.filePath,C,b0);let q0=performance.now()-i,V0=m.relative(W,R.filePath)||R.filePath;console.log(`[stx:profile] ${V0} \u2192 ${q0.toFixed(2)}ms`)}else H0=await P(r,n,R.filePath,C,b0);if(!q)H0=await h0(H0,{router:C.router});{let{interpolateScriptExpressions:i}=await import("./chunk-8bj1eajz.js");H0=H0.replace(/<script\b([^>]*)>([\s\S]*?)<\/script>/g,(q0,V0,M0)=>{if(!/function\s+__stx_setup_/.test(M0))return q0;return`<script${V0}>${i(M0,n)}</script>`})}if(q)H0=V$(H0,{preserveHead:!0});if(a&&X0)await u(R.filePath,H0,b0,C);let{extractStreamBoundaries:M3}=await import("./chunk-q63817d2.js"),Y1=M3(n),E1=n.__streamTemplates;if(E1&&typeof E1==="object"&&Object.keys(E1).length>0){let i=n.streamBoundaries||{},q0={...C,autoShell:!1},V0=Object.keys(E1).map((U0)=>({id:U0,render:async()=>{let I1=typeof i[U0]==="function"?await i[U0]():void 0;return P(E1[U0],{...n,$boundary:I1},R.filePath,q0,new Set)}})),M0=new Set(V0.map((U0)=>U0.id));Y1=[...(Y1||[]).filter((U0)=>!M0.has(U0.id)),...V0]}if(Y1&&Y1.length>0)c.add(R.pattern);else Y1=void 0;let $6=k1(n),X6=x1(n);if(X0)S.set(R.filePath,{status:$6,headers:X6});return{route:R,content:H0,status:$6??_0,headers:X6,boundaries:Y1}}catch(P){return console.error(`${B.red}Error building ${B.bright}${R.pattern}${B.reset}:`,P),null}},N0=8,W0=async()=>{f.clear(),A.clear();for(let R=0;R<N.length;R+=N0){let x=N.slice(R,R+N0),P=await Promise.all(x.map((y)=>k(y)));for(let y of P)if(y)f.set(y.route.pattern,y)}for(let R=0;R<M.length;R+=N0){let x=M.slice(R,R+N0),P=await Promise.all(x.map(({route:y})=>k(y)));for(let y of P)if(y)A.set(y.route.pattern,y)}return f.size>0};if(console.log(`${B.blue}Building pages...${B.reset}`),!await W0())return console.error(`${B.red}No pages were successfully built${B.reset}`),!1;await j$(W);let f0=Z;try{if(f0=await u0(Z),f0!==Z)console.log(`${B.yellow}Port ${Z} is busy, using port ${f0} instead${B.reset}`)}catch{return console.error(`${B.red}Could not find an available port${B.reset}`),!1}if(Y){let R=X.hmrPort||f0+1;J=_$({wsPort:R,verbose:!1}),G=J.start(R)}let j0=(R,x)=>{let y=`<script data-stx-route-params>(function(){var p=${JSON.stringify(x).replace(/</g,"\\u003C").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")};window.__stx_rp=p;if(window.stx){window.stx._rp=p;if(window.stx.setRouteParams)window.stx.setRouteParams(p)}})()</script>`;if(R.includes("</head>"))return R.replace("</head>",`${y}</head>`);if(R.includes("<body"))return R.replace(/<body([^>]*)>/,`<body$1>${y}`);return y+R};console.log(`${B.blue}Starting server...${B.reset}`);let Q1=o4({port:f0,async fetch(R){let x=new URL(R.url),P=_?.publicDir||"public",y=m.join(W,P,x.pathname),Z0=m.join(W,x.pathname),w0=m.join(T,x.pathname);if([y,Z0,w0].some((C)=>F(C,W,z)))return new Response("Not Found",{status:404});let[h0,p,u]=await Promise.all([e.promises.stat(y).catch(()=>null),e.promises.stat(Z0).catch(()=>null),e.promises.stat(w0).catch(()=>null)]);if(h0?.isFile()&&!F(y,W,z))return L5(y);if(p?.isFile()&&!F(Z0,W,z))return L5(Z0);if(u?.isFile()&&!F(w0,W,z))return L5(w0);if(x.pathname.startsWith("/_stx/component/")){let C=decodeURIComponent(x.pathname.slice(16));if(C)try{let X0=`<${C} />`,a={...buildConfig,autoShell:!1},o=await processDirectives(X0,{},m.join(W,"components",`${C}.stx`),a,new Set);return new Response(o,{headers:{"Content-Type":"text/html"}})}catch(X0){return new Response(`<div class="stx-async-error">${X0.message}</div>`,{status:500,headers:{"Content-Type":"text/html"}})}}if(x.pathname==="/_stx/img"){let{handleImageRequest:C}=await import("./chunk-3w6z6tw9.js"),X0=await C(R,{publicDir:m.join(W,P),cacheDir:p0(W,"cache","img")});if(X0)return X0}if(D)try{let C=await D.handleRequest(R);if(C.status!==404)return C}catch{}if(w[x.pathname])try{return await w[x.pathname](R)}catch(C){return new Response(JSON.stringify({error:C.message}),{status:500,headers:{"Content-Type":"application/json"}})}let g=await j(R);if(g)return g;let h=F5(x.pathname,N);if(h){let C=f.get(h.route.pattern),X0=c.has(h.route.pattern);if(h.route.isDynamic&&Object.keys(h.params).length>0||X0){let a=await k(h.route,h.params);if(a)C=a}if(C){let a=C.status??200,o=C.headers??{},_0=(h.route.filePath?o6(await Bun.file(h.route.filePath).text().catch(()=>"")):null)??{};if(_0.validate){if(!await _0.validate({params:h.params})){let T0=await v(404);if(T0){let r=T0;if(r=await J0(r,W),Y)r=y0(r,G);return new Response(r,{status:404,headers:{"Content-Type":"text/html"}})}return new Response("Not Found",{status:404})}}if(_0.middleware){let A0=a6(x.pathname,h.params,_0,x.search),T0=s6(A0,null,R,{isServer:!0}),r=await r6(_0.middleware,T0);if(r.redirect){let n=r.redirect.path,b0=r.redirect.options.redirectCode||302,H0=new Headers(r.responseHeaders);return H0.set("Location",n),new Response(null,{status:b0,headers:H0})}if(r.abort){let{statusCode:n,message:b0}=r.abort.error;return new Response(`<!DOCTYPE html><html><head><title>Error ${n}</title></head><body><h1>Error ${n}</h1><p>${b0}</p></body></html>`,{status:n,headers:{"Content-Type":"text/html"}})}if(Object.keys(r.state).length>0){let n=`<script>(function(){var s=typeof stx!=='undefined'?stx:{};s._ms=${JSON.stringify(r.state)};if(s.setMiddlewareState)s.setMiddlewareState(s._ms);})()</script>`;C.content=C.content.replace("</head>",`${n}</head>`)}}let d=C.content;if(q&&Q7(R)){let A0=n6(d),T0=t6(d),r=d.match(/<title[^>]*>([\s\S]*?)<\/title>/i),n=r?X7(r[1].trim()):"";if(Object.keys(h.params).length>0)d=j0(d,h.params);d=await J0(d,W);let b0=_?.router?.container||"main";return d=Y7(d,b0),new Response(d,{status:a,headers:{"Content-Type":"text/html","X-STX-Fragment":"true","X-STX-Layout":A0.layout,"X-STX-Layout-Group":A0.group,"X-STX-Runtime":T0?"true":"false",...n&&{"X-STX-Title":encodeURIComponent(n)},[e6]:$7(),...F1(),"Cache-Control":N$}})}if(q)d=q$(q,d);if(Object.keys(h.params).length>0)d=j0(d,h.params);if(d=await J0(d,W),Y)d=y0(d,G);if(X.native)if(d.includes("<head>"))d=d.replace("<head>","<head><style>[data-stx-sidebar],.stx-sidebar{display:none!important}</style><script>window.__craftNativeSidebar=true;document.documentElement.classList.add('has-native-sidebar')</script>");else d="<head><style>[data-stx-sidebar],.stx-sidebar{display:none!important}</style><script>window.__craftNativeSidebar=true;document.documentElement.classList.add('has-native-sidebar')</script></head>"+d;if(X.titlebarHidden)if(d.includes("<head>"))d=d.replace("<head>","<head><style>html.stx-titlebar-hidden .stx-traffic-lights-dot{visibility:hidden}</style><script>document.documentElement.classList.add('stx-titlebar-hidden')</script>");else d=`<head><style>html.stx-titlebar-hidden .stx-traffic-lights-dot{visibility:hidden}</style><script>document.documentElement.classList.add('stx-titlebar-hidden')</script></head>${d}`;if(C.boundaries&&C.boundaries.length>0){let{renderStreamingPage:A0,streamToResponse:T0}=await import("./chunk-q63817d2.js");return T0(A0(d,C.boundaries,{timeoutMs:30000}),{status:a,headers:{"Cache-Control":"no-store, no-cache, must-revalidate",Pragma:"no-cache",Expires:"0"}})}return new Response(d,{status:a,headers:{"Content-Type":"text/html",...F1(),"Cache-Control":"no-store, no-cache, must-revalidate",Pragma:"no-cache",Expires:"0",...o}})}}if(M.length>0){let C=M.map((a)=>a.route),X0=F5(x.pathname,C);if(X0){let a=A.get(X0.route.pattern);if(a){let o=a.content;if(q)o=q$(q,o);if(Object.keys(X0.params).length>0)o=j0(o,X0.params);if(o=await J0(o,W),Y)o=y0(o,G);return new Response(o,{status:a.status??200,headers:{"Content-Type":"text/html","Cache-Control":"no-store, no-cache, must-revalidate",Pragma:"no-cache",Expires:"0"}})}}for(let{prefix:a}of V)if(a!=="/"&&x.pathname.startsWith(a)){let o=A.get(a)||A.get(a+"/");if(o){let _0=o.content;if(q)_0=q$(q,_0);if(_0=await J0(_0,W),Y)_0=y0(_0,G);return new Response(_0,{headers:{"Content-Type":"text/html","Cache-Control":"no-store, no-cache, must-revalidate",Pragma:"no-cache",Expires:"0"}})}}}let Y0=f.get("/");if(Y0){let C=Y0.content;if(C=await J0(C,W),Y)C=y0(C,G);if(X.native)if(C.includes("<head>"))C=C.replace("<head>","<head><style>[data-stx-sidebar],.stx-sidebar{display:none!important}</style><script>window.__craftNativeSidebar=true;document.documentElement.classList.add('has-native-sidebar')</script>");else C="<head><style>[data-stx-sidebar],.stx-sidebar{display:none!important}</style><script>window.__craftNativeSidebar=true;document.documentElement.classList.add('has-native-sidebar')</script></head>"+C;return new Response(C,{headers:{"Content-Type":"text/html","Cache-Control":"no-store, no-cache, must-revalidate",Pragma:"no-cache",Expires:"0"}})}let d0=await v(404);if(d0){let C=d0;if(C=await J0(C,W),Y)C=y0(C,G);return new Response(C,{status:404,headers:{"Content-Type":"text/html"}})}return new Response("Not Found",{status:404})},async error(R){let x=await v(500);if(x)return new Response(x,{status:500,headers:{"Content-Type":"text/html"}});return new Response(`<pre>${R}
|
|
1622
|
+
Press ${B.cyan}h${B.reset} + ${B.cyan}Enter${B.reset} to show shortcuts`),m0(F.url.toString(),()=>{if(Q)c0.watch(J,{recursive:!0}).close();F.stop()}),Q){console.log(`${B.blue}Watching for changes...${B.reset}`);let H=c0.watch(J,{recursive:!0},async(L,O)=>{if(!O)return;if(O.endsWith(".stx")||O.endsWith(".js")||O.endsWith(".ts")||O.endsWith(".md"))console.log(`${B.yellow}File ${B.bright}${O}${B.yellow} changed, rebuilding...${B.reset}`),t0.clear(),e0(),await K()});process.on("SIGINT",()=>{H.close(),F.stop(),process.exit(0)})}return!0}function v6($){return String($??"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}var{serve:o4}=globalThis.Bun;import e from"fs";import m from"path";async function u6($){try{return j5(await Bun.file($).text())}catch{return}}function L5($){let X=Bun.file($),Z=m.extname($).toLowerCase(),Q={".html":"text/html",".css":"text/css",".js":"text/javascript",".json":"application/json",".png":"image/png",".jpg":"image/jpeg",".jpeg":"image/jpeg",".gif":"image/gif",".svg":"image/svg+xml",".ico":"image/x-icon",".woff":"font/woff",".woff2":"font/woff2",".ttf":"font/ttf",".otf":"font/otf",".eot":"application/vnd.ms-fontobject"},J=[".js",".css",".json"].includes(Z)?{"Cache-Control":"no-store, no-cache, must-revalidate",Pragma:"no-cache",Expires:"0"}:{};return new Response(X,{headers:{"Content-Type":Q[Z]||"application/octet-stream",...J}})}async function t4($=".",X={}){let Z=X.port||3000,Q=X.watch!==!1,Y=X.hotReload!==!1&&Q,J=null,G=X.hmrPort||Z+1,W=m.resolve($),{loadStxConfig:K}=await import("./chunk-x4wjtspw.js"),_=await K(W),{createServerApi:U,isServerApiSource:F}=await import("./chunk-zm4jetjz.js"),z=X.stxOptions?.serverApi??_.serverApi,j=await U(W,z),H=_.root&&_.root!=="."?m.join(W,_.root):W,L=X.pagesDir||_.pagesDir||"pages",O=m.join(H,L);if(!e.existsSync(O)&&!_._layerPageDirs?.some((R)=>e.existsSync(R)))return console.error(`${B.red}Error: No '${L}' directory found${B.reset}`),console.log(`${B.dim}Looked in: ${B.bright}${O}${B.reset}`),console.log(`${B.dim}Run stx dev from the app directory, pass it as an argument (stx dev <dir>),${B.reset}`),console.log(`${B.dim}point at another directory with --pages <dir>, or set pagesDir in stx.config.ts.${B.reset}`),console.log(`${B.dim}Starting fresh? Create ${L}/index.stx for the homepage.${B.reset}`),!1;let N=A$(H,{pagesDir:L,pagesDirs:_._layerPageDirs?[O,..._._layerPageDirs.slice(1)]:void 0});if(N.length===0)return console.error(`${B.red}Error: No page files found in ${B.bright}${O}${B.reset}`),!1;console.log(`${B.blue}Found ${B.bright}${N.length}${B.blue} routes${B.reset}`);let V=_?._pluginPageDirs||[],M=[];for(let{dir:R,prefix:x}of V)if(e.existsSync(R)){let P=A$(m.dirname(R),{pagesDir:m.basename(R)});for(let y of P){let Z0=x==="/"?y.pattern:`${x}${y.pattern==="/"?"":y.pattern}`;M.push({route:{...y,pattern:Z0},prefix:x})}if(P.length>0)console.log(`${B.blue}Plugin pages: ${B.bright}${P.length}${B.blue} routes at ${B.cyan}${x}${B.reset}`)}let A=new Map,q=null,I=null;if(X.stxOptions?.shell!==!1){if(I=await Z7(W,X.stxOptions?.shell),I){if(q=await z5(I,X.stxOptions||{}),q)console.log(`${B.blue}Using app shell: ${B.bright}${m.relative(W,I)}${B.reset} ${B.dim}(deprecated: use layouts/default.stx instead)${B.reset}`)}}c6(),await i6(W);let E=l6();if(E.length>0)console.log(`${B.blue}Loaded ${B.bright}${E.length}${B.blue} middleware: ${B.dim}${E.join(", ")}${B.reset}`);let w={},D=null;try{let{loadStxConfig:R}=await import("./chunk-x4wjtspw.js"),x=await R(W);if(x?.apiRouter)D=x?.apiRouter,console.log(`${B.blue}Using custom router for API handling${B.reset}`);if(x?.apiRoutes){w=x.apiRoutes;let P=Object.keys(w).length;if(P>0)console.log(`${B.blue}Loaded ${B.bright}${P} API route${P>1?"s":""}${B.reset}`)}if(x?.broadcasting?.enabled)try{let{startBroadcasting:P,loadChannels:y}=await import("./chunk-qmmp5kb5.js"),Z0=x.broadcasting;await P(Z0);let w0=Z0.port??6001;console.log(`${B.magenta}Broadcasting on ${B.cyan}ws://localhost:${w0}/ws${B.reset}`);let h0=m.join(process.cwd(),"channels.ts");if(e.existsSync(h0))try{let p=await y(h0);console.log(`${B.blue}Loaded ${B.bright}${p} broadcast channel${p!==1?"s":""}${B.blue} from channels.ts${B.reset}`)}catch(p){console.warn(`${B.yellow}Failed to load channels.ts: ${p.message}${B.reset}`)}}catch(P){console.warn(`${B.yellow}Broadcasting failed to start: ${P.message}${B.reset}`)}}catch{}let T=p0(W,"output");e.mkdirSync(T,{recursive:!0});let f=new Map,c=new Set,v=async(R)=>{let x=m6(O,R);if(!x)return null;try{let P=await Bun.build({entrypoints:[x],outdir:T,plugins:[B1],publicPath:"/",define:{"process.env.NODE_ENV":'"development"'},...X.stxOptions});if(!P.success)return null;let y=P.outputs.find((Z0)=>Z0.path.endsWith(".html"));if(!y)return null;return await Bun.file(y.path).text()}catch{return null}},S=new Map,k=async(R,x)=>{try{let{processDirectives:P,extractVariables:y,defaultConfig:Z0,loadStxConfig:w0,injectRouterScript:h0}=await import("./chunk-x4wjtspw.js"),{checkCache:p,cacheTemplate:u,readFileCached:g,templateCache:h}=await import("./chunk-32mjs2sw.js"),Y0=await w0(W),d0=(i)=>{if(!i)return i;if(m.isAbsolute(i))return i;return m.resolve(W,i)},C={...Z0,...Y0,...X.stxOptions,autoShell:!0};if(X.debugDirectives)C.debug=!0;C.partialsDir=d0(C.partialsDir),C.componentsDir=d0(C.componentsDir),C.layoutsDir=d0(C.layoutsDir),C.storesDir=d0(C.storesDir||"stores"),C.cachePath=d0(C.cachePath)??p0(W,"cache");let X0=!x&&!X.profile,a=C.cache!==!1;if(a&&X0){let i=h.get(R.filePath);if(i)try{if((await e.promises.stat(R.filePath)).mtime.getTime()<=i.mtime){let M0=!0;for(let U0 of i.dependencies){if(!e.existsSync(U0)){M0=!1;break}if((await e.promises.stat(U0)).mtime.getTime()>i.mtime){M0=!1;break}}if(M0){let U0=i.output;if(q)U0=V$(U0,{preserveHead:!0});let I1=S.get(R.filePath);return{route:R,content:U0,status:I1?.status??await u6(R.filePath),headers:I1?.headers}}}}catch{}let q0=await p(R.filePath,C);if(q0){let V0=q0;if(q)V0=V$(V0,{preserveHead:!0});let M0=S.get(R.filePath);return{route:R,content:V0,status:M0?.status??await u6(R.filePath),headers:M0?.headers}}}let o=a?await g(R.filePath):await Bun.file(R.filePath).text(),_0=j5(o),{classifyAllScripts:d}=await import("./chunk-x4wjtspw.js"),A0=d(o),T0=A0.server.map((i)=>i.content),r=o;for(let i of A0.server)r=r.replace(i.fullTag,"");let n={__filename:R.filePath,__dirname:m.dirname(R.filePath),__stx_options:C,params:x??{},__stx_runtime_head:{}};for(let i of T0)try{await y(i,n,R.filePath)}catch(q0){if(X.stxOptions?.debug)console.error("[stx] variable extraction error",R.filePath,q0?.message||q0)}let b0=new Set,H0;if(X.profile){let i=performance.now();H0=await P(r,n,R.filePath,C,b0);let q0=performance.now()-i,V0=m.relative(W,R.filePath)||R.filePath;console.log(`[stx:profile] ${V0} \u2192 ${q0.toFixed(2)}ms`)}else H0=await P(r,n,R.filePath,C,b0);if(!q)H0=await h0(H0,{router:C.router});{let{interpolateScriptExpressions:i}=await import("./chunk-w4nspy4b.js");H0=H0.replace(/<script\b([^>]*)>([\s\S]*?)<\/script>/g,(q0,V0,M0)=>{if(!/function\s+__stx_setup_/.test(M0))return q0;return`<script${V0}>${i(M0,n)}</script>`})}if(q)H0=V$(H0,{preserveHead:!0});if(a&&X0)await u(R.filePath,H0,b0,C);let{extractStreamBoundaries:M3}=await import("./chunk-xv1t91fk.js"),Y1=M3(n),E1=n.__streamTemplates;if(E1&&typeof E1==="object"&&Object.keys(E1).length>0){let i=n.streamBoundaries||{},q0={...C,autoShell:!1},V0=Object.keys(E1).map((U0)=>({id:U0,render:async()=>{let I1=typeof i[U0]==="function"?await i[U0]():void 0;return P(E1[U0],{...n,$boundary:I1},R.filePath,q0,new Set)}})),M0=new Set(V0.map((U0)=>U0.id));Y1=[...(Y1||[]).filter((U0)=>!M0.has(U0.id)),...V0]}if(Y1&&Y1.length>0)c.add(R.pattern);else Y1=void 0;let $6=k1(n),X6=x1(n);if(X0)S.set(R.filePath,{status:$6,headers:X6});return{route:R,content:H0,status:$6??_0,headers:X6,boundaries:Y1}}catch(P){return console.error(`${B.red}Error building ${B.bright}${R.pattern}${B.reset}:`,P),null}},N0=8,W0=async()=>{f.clear(),A.clear();for(let R=0;R<N.length;R+=N0){let x=N.slice(R,R+N0),P=await Promise.all(x.map((y)=>k(y)));for(let y of P)if(y)f.set(y.route.pattern,y)}for(let R=0;R<M.length;R+=N0){let x=M.slice(R,R+N0),P=await Promise.all(x.map(({route:y})=>k(y)));for(let y of P)if(y)A.set(y.route.pattern,y)}return f.size>0};if(console.log(`${B.blue}Building pages...${B.reset}`),!await W0())return console.error(`${B.red}No pages were successfully built${B.reset}`),!1;await j$(W);let f0=Z;try{if(f0=await u0(Z),f0!==Z)console.log(`${B.yellow}Port ${Z} is busy, using port ${f0} instead${B.reset}`)}catch{return console.error(`${B.red}Could not find an available port${B.reset}`),!1}if(Y){let R=X.hmrPort||f0+1;J=_$({wsPort:R,verbose:!1}),G=J.start(R)}let j0=(R,x)=>{let y=`<script data-stx-route-params>(function(){var p=${JSON.stringify(x).replace(/</g,"\\u003C").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")};window.__stx_rp=p;if(window.stx){window.stx._rp=p;if(window.stx.setRouteParams)window.stx.setRouteParams(p)}})()</script>`;if(R.includes("</head>"))return R.replace("</head>",`${y}</head>`);if(R.includes("<body"))return R.replace(/<body([^>]*)>/,`<body$1>${y}`);return y+R};console.log(`${B.blue}Starting server...${B.reset}`);let Q1=o4({port:f0,async fetch(R){let x=new URL(R.url),P=_?.publicDir||"public",y=m.join(W,P,x.pathname),Z0=m.join(W,x.pathname),w0=m.join(T,x.pathname);if([y,Z0,w0].some((C)=>F(C,W,z)))return new Response("Not Found",{status:404});let[h0,p,u]=await Promise.all([e.promises.stat(y).catch(()=>null),e.promises.stat(Z0).catch(()=>null),e.promises.stat(w0).catch(()=>null)]);if(h0?.isFile()&&!F(y,W,z))return L5(y);if(p?.isFile()&&!F(Z0,W,z))return L5(Z0);if(u?.isFile()&&!F(w0,W,z))return L5(w0);if(x.pathname.startsWith("/_stx/component/")){let C=decodeURIComponent(x.pathname.slice(16));if(C)try{let X0=`<${C} />`,a={...buildConfig,autoShell:!1},o=await processDirectives(X0,{},m.join(W,"components",`${C}.stx`),a,new Set);return new Response(o,{headers:{"Content-Type":"text/html"}})}catch(X0){return new Response(`<div class="stx-async-error">${X0.message}</div>`,{status:500,headers:{"Content-Type":"text/html"}})}}if(x.pathname==="/_stx/img"){let{handleImageRequest:C}=await import("./chunk-3w6z6tw9.js"),X0=await C(R,{publicDir:m.join(W,P),cacheDir:p0(W,"cache","img")});if(X0)return X0}if(D)try{let C=await D.handleRequest(R);if(C.status!==404)return C}catch{}if(w[x.pathname])try{return await w[x.pathname](R)}catch(C){return new Response(JSON.stringify({error:C.message}),{status:500,headers:{"Content-Type":"application/json"}})}let g=await j(R);if(g)return g;let h=F5(x.pathname,N);if(h){let C=f.get(h.route.pattern),X0=c.has(h.route.pattern);if(h.route.isDynamic&&Object.keys(h.params).length>0||X0){let a=await k(h.route,h.params);if(a)C=a}if(C){let a=C.status??200,o=C.headers??{},_0=(h.route.filePath?o6(await Bun.file(h.route.filePath).text().catch(()=>"")):null)??{};if(_0.validate){if(!await _0.validate({params:h.params})){let T0=await v(404);if(T0){let r=T0;if(r=await J0(r,W),Y)r=y0(r,G);return new Response(r,{status:404,headers:{"Content-Type":"text/html"}})}return new Response("Not Found",{status:404})}}if(_0.middleware){let A0=a6(x.pathname,h.params,_0,x.search),T0=s6(A0,null,R,{isServer:!0}),r=await r6(_0.middleware,T0);if(r.redirect){let n=r.redirect.path,b0=r.redirect.options.redirectCode||302,H0=new Headers(r.responseHeaders);return H0.set("Location",n),new Response(null,{status:b0,headers:H0})}if(r.abort){let{statusCode:n,message:b0}=r.abort.error;return new Response(`<!DOCTYPE html><html><head><title>Error ${n}</title></head><body><h1>Error ${n}</h1><p>${b0}</p></body></html>`,{status:n,headers:{"Content-Type":"text/html"}})}if(Object.keys(r.state).length>0){let n=`<script>(function(){var s=typeof stx!=='undefined'?stx:{};s._ms=${JSON.stringify(r.state)};if(s.setMiddlewareState)s.setMiddlewareState(s._ms);})()</script>`;C.content=C.content.replace("</head>",`${n}</head>`)}}let d=C.content;if(q&&Q7(R)){let A0=n6(d),T0=t6(d),r=d.match(/<title[^>]*>([\s\S]*?)<\/title>/i),n=r?X7(r[1].trim()):"";if(Object.keys(h.params).length>0)d=j0(d,h.params);d=await J0(d,W);let b0=_?.router?.container||"main";return d=Y7(d,b0),new Response(d,{status:a,headers:{"Content-Type":"text/html","X-STX-Fragment":"true","X-STX-Layout":A0.layout,"X-STX-Layout-Group":A0.group,"X-STX-Runtime":T0?"true":"false",...n&&{"X-STX-Title":encodeURIComponent(n)},[e6]:$7(),...F1(),"Cache-Control":N$}})}if(q)d=q$(q,d);if(Object.keys(h.params).length>0)d=j0(d,h.params);if(d=await J0(d,W),Y)d=y0(d,G);if(X.native)if(d.includes("<head>"))d=d.replace("<head>","<head><style>[data-stx-sidebar],.stx-sidebar{display:none!important}</style><script>window.__craftNativeSidebar=true;document.documentElement.classList.add('has-native-sidebar')</script>");else d="<head><style>[data-stx-sidebar],.stx-sidebar{display:none!important}</style><script>window.__craftNativeSidebar=true;document.documentElement.classList.add('has-native-sidebar')</script></head>"+d;if(X.titlebarHidden)if(d.includes("<head>"))d=d.replace("<head>","<head><style>html.stx-titlebar-hidden .stx-traffic-lights-dot{visibility:hidden}</style><script>document.documentElement.classList.add('stx-titlebar-hidden')</script>");else d=`<head><style>html.stx-titlebar-hidden .stx-traffic-lights-dot{visibility:hidden}</style><script>document.documentElement.classList.add('stx-titlebar-hidden')</script></head>${d}`;if(C.boundaries&&C.boundaries.length>0){let{renderStreamingPage:A0,streamToResponse:T0}=await import("./chunk-xv1t91fk.js");return T0(A0(d,C.boundaries,{timeoutMs:30000}),{status:a,headers:{"Cache-Control":"no-store, no-cache, must-revalidate",Pragma:"no-cache",Expires:"0"}})}return new Response(d,{status:a,headers:{"Content-Type":"text/html",...F1(),"Cache-Control":"no-store, no-cache, must-revalidate",Pragma:"no-cache",Expires:"0",...o}})}}if(M.length>0){let C=M.map((a)=>a.route),X0=F5(x.pathname,C);if(X0){let a=A.get(X0.route.pattern);if(a){let o=a.content;if(q)o=q$(q,o);if(Object.keys(X0.params).length>0)o=j0(o,X0.params);if(o=await J0(o,W),Y)o=y0(o,G);return new Response(o,{status:a.status??200,headers:{"Content-Type":"text/html","Cache-Control":"no-store, no-cache, must-revalidate",Pragma:"no-cache",Expires:"0"}})}}for(let{prefix:a}of V)if(a!=="/"&&x.pathname.startsWith(a)){let o=A.get(a)||A.get(a+"/");if(o){let _0=o.content;if(q)_0=q$(q,_0);if(_0=await J0(_0,W),Y)_0=y0(_0,G);return new Response(_0,{headers:{"Content-Type":"text/html","Cache-Control":"no-store, no-cache, must-revalidate",Pragma:"no-cache",Expires:"0"}})}}}let Y0=f.get("/");if(Y0){let C=Y0.content;if(C=await J0(C,W),Y)C=y0(C,G);if(X.native)if(C.includes("<head>"))C=C.replace("<head>","<head><style>[data-stx-sidebar],.stx-sidebar{display:none!important}</style><script>window.__craftNativeSidebar=true;document.documentElement.classList.add('has-native-sidebar')</script>");else C="<head><style>[data-stx-sidebar],.stx-sidebar{display:none!important}</style><script>window.__craftNativeSidebar=true;document.documentElement.classList.add('has-native-sidebar')</script></head>"+C;return new Response(C,{headers:{"Content-Type":"text/html","Cache-Control":"no-store, no-cache, must-revalidate",Pragma:"no-cache",Expires:"0"}})}let d0=await v(404);if(d0){let C=d0;if(C=await J0(C,W),Y)C=y0(C,G);return new Response(C,{status:404,headers:{"Content-Type":"text/html"}})}return new Response("Not Found",{status:404})},async error(R){let x=await v(500);if(x)return new Response(x,{status:500,headers:{"Content-Type":"text/html"}});return new Response(`<pre>${R}
|
|
1623
1623
|
${R.stack}</pre>`,{headers:{"Content-Type":"text/html"}})}});if(console.clear(),console.log(`
|
|
1624
1624
|
${B.blue}stx${B.reset} ${B.green}${process.env.stx_VERSION||"v0.0.10"}${B.reset} ${B.dim}ready in ${Math.random()*10+5|0}.${Math.random()*90+10|0} ms${B.reset}`),console.log(`
|
|
1625
1625
|
${B.bright}\u2192 ${B.cyan}http://localhost:${f0}/${B.reset}`),Y)console.log(`${B.dim} HMR: ws://localhost:${G}${B.reset}`);console.log(`
|
|
1626
1626
|
${B.yellow}Routes:${B.reset}`);let K0=[...p6(N,W)];for(let{route:R}of M)K0.push(`${R.pattern}`);if(K0.forEach((R,x)=>{let y=x===K0.length-1?"\u2514\u2500 ":"\u251C\u2500 ";console.log(` ${B.green}${y}${B.reset}${R}`)}),console.log(`
|
|
1627
|
-
Press ${B.cyan}h${B.reset} + ${B.cyan}Enter${B.reset} to show shortcuts`),m0(Q1.url.toString(),()=>{if(J)T1();Q1.stop()}),X.native){let R,x=m.join(O,"index.stx");if(e.existsSync(x)){let y=await Bun.file(x).text();R=J$(y)}let P=_?.app?.window??{};await K1(f0,{title:_?.app?.head?.title||m.basename(W)||"stx App",width:P.width,height:P.height,darkMode:P.darkMode,hotReload:P.hotReload,titlebarHidden:P.titlebarHidden??X.titlebarHidden===!0,nativeSidebar:!!R,sidebarConfig:R})}if(Q){console.log(`${B.blue}Watching for changes...${B.reset}`);let R=(p)=>{return p.startsWith("public/")||p.startsWith("public\\")},x=(p)=>{let u=p.toLowerCase();return u.endsWith(".stx")||u.endsWith(".html")||u.endsWith(".md")},P=new Map,y=()=>{let p=new Set([W,..._._layerGraph?.layers.map((u)=>u.root)??[],..._._layerGraph?.configDependencies.map((u)=>m.dirname(u))??[]].filter((u)=>e.existsSync(u)).map((u)=>e.realpathSync(u)));for(let u of _._layerGraph?.layers??[])for(let g of Object.values(u.resources)){if(!e.existsSync(g))continue;let h=e.realpathSync(g);if(![...p].some((Y0)=>h===Y0||h.startsWith(`${Y0}${m.sep}`)))p.add(h)}for(let[u,g]of P)if(!p.has(u))g.close(),P.delete(u);for(let u of p)if(!P.has(u)&&e.existsSync(u))P.set(u,e.watch(u,{recursive:!0},(g,h)=>{w0(u,g,h).catch((Y0)=>console.error("[stx] Layer rebuild failed:",Y0))}))},Z0=Promise.resolve(),w0=(p,u,g)=>{return Z0=Z0.catch(()=>{}).then(()=>h0(p,u,g)),Z0},h0=async(p,u,g)=>{if(!g||K$(g))return;if(W$(g)){if(_._layerGraph){let h=await K(W);Object.assign(_,h),N.splice(0,N.length,...A$(H,{pagesDir:L,pagesDirs:h._layerPageDirs?[O,...h._layerPageDirs.slice(1)]:void 0})),y()}if(R(g)){if(console.log(`${B.cyan}${g} changed${B.reset}`),Y&&J)J.reload(g)}else if(x(g)){console.log(`${B.yellow}${g} changed, rebuilding...${B.reset}`),t0.clear(),e0();try{let{invalidateFileCache:h,templateCache:Y0}=await import("./chunk-
|
|
1627
|
+
Press ${B.cyan}h${B.reset} + ${B.cyan}Enter${B.reset} to show shortcuts`),m0(Q1.url.toString(),()=>{if(J)T1();Q1.stop()}),X.native){let R,x=m.join(O,"index.stx");if(e.existsSync(x)){let y=await Bun.file(x).text();R=J$(y)}let P=_?.app?.window??{};await K1(f0,{title:_?.app?.head?.title||m.basename(W)||"stx App",width:P.width,height:P.height,darkMode:P.darkMode,hotReload:P.hotReload,titlebarHidden:P.titlebarHidden??X.titlebarHidden===!0,nativeSidebar:!!R,sidebarConfig:R})}if(Q){console.log(`${B.blue}Watching for changes...${B.reset}`);let R=(p)=>{return p.startsWith("public/")||p.startsWith("public\\")},x=(p)=>{let u=p.toLowerCase();return u.endsWith(".stx")||u.endsWith(".html")||u.endsWith(".md")},P=new Map,y=()=>{let p=new Set([W,..._._layerGraph?.layers.map((u)=>u.root)??[],..._._layerGraph?.configDependencies.map((u)=>m.dirname(u))??[]].filter((u)=>e.existsSync(u)).map((u)=>e.realpathSync(u)));for(let u of _._layerGraph?.layers??[])for(let g of Object.values(u.resources)){if(!e.existsSync(g))continue;let h=e.realpathSync(g);if(![...p].some((Y0)=>h===Y0||h.startsWith(`${Y0}${m.sep}`)))p.add(h)}for(let[u,g]of P)if(!p.has(u))g.close(),P.delete(u);for(let u of p)if(!P.has(u)&&e.existsSync(u))P.set(u,e.watch(u,{recursive:!0},(g,h)=>{w0(u,g,h).catch((Y0)=>console.error("[stx] Layer rebuild failed:",Y0))}))},Z0=Promise.resolve(),w0=(p,u,g)=>{return Z0=Z0.catch(()=>{}).then(()=>h0(p,u,g)),Z0},h0=async(p,u,g)=>{if(!g||K$(g))return;if(W$(g)){if(_._layerGraph){let h=await K(W);Object.assign(_,h),N.splice(0,N.length,...A$(H,{pagesDir:L,pagesDirs:h._layerPageDirs?[O,...h._layerPageDirs.slice(1)]:void 0})),y()}if(R(g)){if(console.log(`${B.cyan}${g} changed${B.reset}`),Y&&J)J.reload(g)}else if(x(g)){console.log(`${B.yellow}${g} changed, rebuilding...${B.reset}`),t0.clear(),e0();try{let{invalidateFileCache:h,templateCache:Y0}=await import("./chunk-32mjs2sw.js");h(m.resolve(p,g)),Y0.delete(m.resolve(p,g))}catch{}if(I&&g){if(m.resolve(p,g)===I||m.basename(I)===g){let Y0=await z5(I,X.stxOptions||{});if(Y0)q=Y0}}if(await W0(),await H$(W),Y&&J)J.reload(g)}else{console.log(`${B.yellow}${g} changed, rebuilding...${B.reset}`),t0.clear(),e0();try{let{invalidateFileCache:h,templateCache:Y0}=await import("./chunk-32mjs2sw.js");h(m.resolve(p,g)),Y0.delete(m.resolve(p,g))}catch{}if(await W0(),Y&&J)J.reload(g)}}else if(G$(g)){if(console.log(`${B.cyan}CSS ${g} changed${B.reset}`),Y&&J)J.updateCss(g)}};y(),process.on("SIGINT",()=>{for(let p of P.values())p.close();if(J)T1();Q1.stop(),process.exit(0)})}return!0}var b={enabled:!1,components:new Map,stores:new Map,events:[],performance:[],selectedComponent:null,selectedStore:null,maxEvents:1000,maxPerformance:500};function e4($={}){if(typeof window>"u")return;b.enabled=!0,b.maxEvents=$.maxEvents||1000,b.maxPerformance=$.maxPerformance||500,window.__STX_DEVTOOLS__={getState:()=>b,getComponents:()=>Array.from(b.components.values()),getComponent:(X)=>b.components.get(X),getStores:()=>Array.from(b.stores.values()),getStore:(X)=>b.stores.get(X),getEvents:()=>b.events,getPerformance:()=>b.performance,selectComponent:(X)=>O5(X),selectStore:(X)=>XX(X),inspectElement:(X)=>ZX(X),highlightComponent:(X)=>_7(X),clearHighlight:()=>U7(),logComponentTree:()=>QX(),logStoreState:(X)=>YX(X),timeTravel:(X,Z)=>JX(X,Z)},WX(),GX(),console.log("%c[STX DevTools] Enabled","color: #10b981; font-weight: bold;")}function $X(){b.enabled=!1,delete window.__STX_DEVTOOLS__;let $=document.getElementById("stx-devtools-panel");if($)$.remove();console.log("%c[STX DevTools] Disabled","color: #ef4444;")}function J7($){if(!b.enabled)return;let X=b.components.get($);if(X){if(X.parentId){let Z=b.components.get(X.parentId);if(Z)Z.children=Z.children.filter((Q)=>Q!==$)}b.components.delete($),H5({timestamp:Date.now(),type:"component:unmounted",componentId:$,payload:{name:X.name}})}}function W7($,X,Z={},Q=[]){if(!b.enabled)return;let Y={id:$,state:X,getters:Z,actions:Q,history:[{timestamp:Date.now(),type:"state",name:"__init__",newValue:X}]};b.stores.set($,Y),H5({timestamp:Date.now(),type:"store:registered",payload:{id:$,state:X}})}function K7($,X,Z,Q,Y="state"){if(!b.enabled)return;let J=b.stores.get($);if(J){let G={timestamp:Date.now(),type:Y,name:X,oldValue:Z,newValue:Q,stack:Error().stack};if(J.history.push(G),J.history.length>100)J.history=J.history.slice(-100);if(Y==="state")J.state={...J.state,[X]:Q};H5({timestamp:Date.now(),type:`store:${Y}`,payload:{storeId:$,name:X,oldValue:Z,newValue:Q}})}}function H5($){if(!b.enabled)return;if(b.events.push($),b.events.length>b.maxEvents)b.events=b.events.slice(-b.maxEvents);if(typeof window<"u")window.dispatchEvent(new CustomEvent("stx:devtools:event",{detail:$}))}function O5($){b.selectedComponent=$;let X=b.components.get($);if(X)_7($),console.log("%c[STX DevTools] Selected component:","color: #3b82f6;",X);return X}function XX($){b.selectedStore=$;let X=b.stores.get($);if(X)console.log("%c[STX DevTools] Selected store:","color: #8b5cf6;",X);return X}function ZX($){let X=$;while(X){let Z=X.getAttribute("data-stx-component-id");if(Z)return O5(Z);X=X.parentElement}console.log("%c[STX DevTools] No component found for element","color: #f59e0b;");return}function _7($){U7();let X=b.components.get($);if(X?.element){let Z=document.createElement("div");Z.id="stx-devtools-highlight",Z.style.cssText=`
|
|
1628
1628
|
position: absolute;
|
|
1629
1629
|
background: rgba(59, 130, 246, 0.2);
|
|
1630
1630
|
border: 2px solid #3b82f6;
|
|
@@ -2893,9 +2893,9 @@ describe('Example', () => {
|
|
|
2893
2893
|
</footer>
|
|
2894
2894
|
@yield('scripts')
|
|
2895
2895
|
</body>
|
|
2896
|
-
</html>`}function IZ(){return"<!-- Hero section -->"}function RZ(){return"<!-- Features -->"}function DZ(){return"<!-- Pricing -->"}function wZ(){return"<!-- Button -->"}function h1($){if(!f1($))I5($,{recursive:!0})}function TZ(){if(f1("bun.lockb"))return"bun";if(f1("pnpm-lock.yaml"))return"pnpm";if(f1("yarn.lock"))return"yarn";return"bun"}function R5($){return $.replace(/[-_\s]+(.)?/g,(X,Z)=>Z?Z.toUpperCase():"").replace(/^./,(X)=>X.toUpperCase())}function CZ($){return $.replace(/[-_\s]+(.)?/g,(X,Z)=>Z?Z.toUpperCase():"").replace(/^./,(X)=>X.toLowerCase())}function $1($){return $.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase()}var{serve:kZ}=globalThis.Bun;import d1 from"fs";import D0 from"path";function qK($,X=200,Z={}){return new Response($,{status:X,headers:{"Content-Type":"text/html; charset=utf-8",...Z}})}async function D5($){let{loadStxConfig:X}=await import("./chunk-
|
|
2896
|
+
</html>`}function IZ(){return"<!-- Hero section -->"}function RZ(){return"<!-- Features -->"}function DZ(){return"<!-- Pricing -->"}function wZ(){return"<!-- Button -->"}function h1($){if(!f1($))I5($,{recursive:!0})}function TZ(){if(f1("bun.lockb"))return"bun";if(f1("pnpm-lock.yaml"))return"pnpm";if(f1("yarn.lock"))return"yarn";return"bun"}function R5($){return $.replace(/[-_\s]+(.)?/g,(X,Z)=>Z?Z.toUpperCase():"").replace(/^./,(X)=>X.toUpperCase())}function CZ($){return $.replace(/[-_\s]+(.)?/g,(X,Z)=>Z?Z.toUpperCase():"").replace(/^./,(X)=>X.toLowerCase())}function $1($){return $.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase()}var{serve:kZ}=globalThis.Bun;import d1 from"fs";import D0 from"path";function qK($,X=200,Z={}){return new Response($,{status:X,headers:{"Content-Type":"text/html; charset=utf-8",...Z}})}async function D5($){let{loadStxConfig:X}=await import("./chunk-cqn117hn.js");return{...await X($.configDir??process.cwd()),...$.stxOptions??{}}}async function xZ($={}){let{port:X=3000,root:Z=".",watch:Q=!0,onRequest:Y,routes:J={},middleware:G=[],on404:W,onError:K}=$,_=D0.resolve(Z),U=await D5($),F=D0.resolve($.configDir??process.cwd()),z=await w5(F,U.serverApi),j=new Map;async function H(A){let q=d1.statSync(A),I=`${A}:${q.mtimeMs}`,E=j.get(I);if(E)return{content:E.content,status:E.status,headers:E.headers};for(let K0 of j.keys())if(K0.startsWith(`${A}:`)&&K0!==I)j.delete(K0);let w=await Bun.file(A).text(),D=w,T=B$(w);if(T)D=T.content.trim();let f=/<script\b([^>]*)>([\s\S]*?)<\/script>/gi,c=[],v=[],S;while((S=f.exec(w))!==null){let K0=S[1],R=S[2],x=S[0];if(K0.includes("server"))v.push(R);else c.push(x)}let k=w.match(/<style\b[^>]*>[\s\S]*?<\/style>/gi)||[],N0=D.replace(/<script\b[^>]*>[\s\S]*?<\/script>/gi,"").replace(/<style\b[^>]*>[\s\S]*?<\/style>/gi,""),W0={__filename:A,__dirname:D0.dirname(A),__stx_options:U};for(let K0 of v)await E0(K0,W0,A);let j0=await I0(N0,W0,A,U,new Set);if(k.length>0){let K0=k.join(`
|
|
2897
2897
|
`);if(j0.match(/(<\/head>)/i))j0=j0.replace(/(<\/head>)/i,`${K0}
|
|
2898
|
-
$1`)}if(c.length>0){let{interpolateScriptsInTemplate:K0}=await import("./chunk-
|
|
2898
|
+
$1`)}if(c.length>0){let{interpolateScriptsInTemplate:K0}=await import("./chunk-w4nspy4b.js"),R=K0(c.join(`
|
|
2899
2899
|
`),W0);if(j0.match(/(<\/body>)/i))j0=j0.replace(/(<\/body>)/i,`${R}
|
|
2900
2900
|
$1`);else j0+=`
|
|
2901
2901
|
${R}`}let Q1=k1(W0),r$=x1(W0);return j.set(I,{content:j0,mtime:q.mtimeMs,status:Q1,headers:r$}),{content:j0,status:Q1,headers:r$}}async function L(A){let q=d1.statSync(A),I=`${A}:${q.mtimeMs}`,E=j.get(I);if(E)return E.content;let{content:w}=await k0(A,U);return j.set(I,{content:w,mtime:q.mtimeMs}),w}function O(A){let q=A.startsWith("/")?A.slice(1):A,I=[q,`${q}.stx`,`${q}.md`,`${q}.html`,D0.join(q,"index.stx"),D0.join(q,"index.md"),D0.join(q,"index.html")];for(let E of[_,...U._layerPageDirs??[]])for(let w of I){let D=D0.resolve(E,w);if(!D.startsWith(`${D0.resolve(E)}${D0.sep}`))continue;if(d1.existsSync(D)&&d1.statSync(D).isFile())return D}return null}async function N(A){if(U._layerGraph){let E=await D5($);if(E._layerGraph!==U._layerGraph)Object.assign(U,E),j.clear()}let q=new URL(A.url),I=async()=>{if(J[q.pathname])return await J[q.pathname](A);if(Y){let D=await Y(A);if(D)return D}if(U.apiRouter){let D=await U.apiRouter.handleRequest(A);if(D.status!==404)return D}if(U.apiRoutes?.[q.pathname])return U.apiRoutes[q.pathname](A);let E=await z(A);if(E)return E;let w=O(q.pathname);if(!w||D7(w,F,U.serverApi)){if(W)return await W(A);return new Response("Not Found",{status:404})}try{let D,T="text/html",f,c;if(w.endsWith(".stx")){let v=await H(w);D=v.content,f=v.status,c=v.headers}else if(w.endsWith(".md"))D=await L(w);else if(w.endsWith(".html"))D=await Bun.file(w).text();else if(w.endsWith(".css"))D=await Bun.file(w).text(),T="text/css";else if(w.endsWith(".js"))D=await Bun.file(w).text(),T="text/javascript";else if(w.endsWith(".json"))D=await Bun.file(w).text(),T="application/json";else return new Response(Bun.file(w));return new Response(D,{status:f??200,headers:{"Content-Type":T,...c}})}catch(D){if(K)return await K(D,A);let T=D instanceof Error?D.message:String(D),c=U?.debug===!0?`<h1>Error</h1><pre>${T}
|
|
@@ -4329,7 +4329,7 @@ else {
|
|
|
4329
4329
|
\u26A0\uFE0F Built ${Z.views.length} views with ${Z.errors.length} errors`);return Z}function y_($,X){let Z=x$.watch($.viewsDir,{recursive:!0},async(Q,Y)=>{if(!Y)return;if(Y.endsWith(".stx")||Y.endsWith(".ts")||Y.endsWith(".js")){if($.debug)console.log(`
|
|
4330
4330
|
File changed: ${Y}, rebuilding...`);let J=await $Y($);X?.(J)}});return{close:()=>Z.close()}}async function v_($,X={},Z={}){let Q={...Z,skipDefaultSeoTags:!0,skipSignalsRuntime:!0},Y=await c8($,X,Q);Y=await XY(Y),Y=Y.replace(/<script\b[^>]*>[\s\S]*?<\/script>/gi,""),Y=Y.replace(/<style\b([^>]*)>[\s\S]*?<\/style>/gi,(G,W)=>/\bdata-(?:css=["']generated["']|stx-)/i.test(W)?"":G),Y=Y.replace(/<!--\s*stx SEO Tags\s*-->/gi,""),Y=Y.replace(/\n\s*\n\s*\n/g,`
|
|
4331
4331
|
|
|
4332
|
-
`).trim();let J=YY(Y);return{html:Y,text:J}}async function XY($){try{let{generateCss:X,extractClassNames:Z}=await import("./chunk-
|
|
4332
|
+
`).trim();let J=YY(Y);return{html:Y,text:J}}async function XY($){try{let{generateCss:X,extractClassNames:Z}=await import("./chunk-y61n68ca.js");if(Z($).size===0)return $;let Y=await X($);if(!Y)return $;let J=ZY(Y);if(J.size===0)return $;return $.replace(/(<[a-z][a-z0-9]*)((?:\s+[a-z][a-z0-9-]*(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s>]*))?)*\s+)class\s*=\s*"([^"]*)"((?:\s+[a-z][a-z0-9-]*(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s>]*))?)*\s*)(\/?>)/gi,(G,W,K,_,U,F)=>{let z=_.split(/\s+/).filter(Boolean),j=[];for(let N of z){let V=J.get(N);if(V)j.push(V)}if(j.length===0)return`${W}${K}class="${_}"${U}${F}`;let H=j.join("; "),O=`${K}${U}`.match(/style\s*=\s*"([^"]*)"/);if(O){let N=`${H}; ${O[1]}`,V=K.replace(/style\s*=\s*"[^"]*"/,`style="${N}"`),M=U.replace(/style\s*=\s*"[^"]*"/,`style="${N}"`);return`${W}${V}class="${_}"${M}${F}`}return`${W}${K}class="${_}" style="${H}"${U}${F}`})}catch{return $}}function ZY($){let X=new Map,Z=/\.([a-zA-Z0-9_-]+(?:\\:[a-zA-Z0-9_-]+)*)\s*\{([^}]+)\}/g,Q=Z.exec($);while(Q!==null){let Y=Q[1].replace(/\\/g,""),J=Q[2].split(";").map((G)=>G.trim()).filter(Boolean).join("; ");if(J)X.set(Y,J);Q=Z.exec($)}return X}function QY($,X){let Z=X.replace(/<[^>]*>/g,"").replace(/\s+/g," ").trim(),Q=$.replace(/&/g,"&").trim();if(!Q||Q.startsWith("#")||/^javascript:/i.test(Q))return Z;let Y=Q.replace(/^mailto:/i,"").replace(/^https?:\/\//i,"").replace(/\/$/,"");if(!Z)return Q.replace(/^mailto:/i,"");if(Z.replace(/^https?:\/\//i,"").replace(/\/$/,"")===Y)return Z;return`${Z} (${Q.replace(/^mailto:/i,"")})`}function YY($){return $.replace(/<head\b[\s\S]*?<\/head>/gi,"").replace(/<(style|script)\b[\s\S]*?<\/\1>/gi,"").replace(/<(div|span|p)\b[^>]*\bstyle="[^"]*display:\s*none[^"]*"[^>]*>[\s\S]*?<\/\1>/gi,"").replace(/<a\b[^>]*?\bhref\s*=\s*(?:"([^"]*)"|'([^']*)')[^>]*>([\s\S]*?)<\/a>/gi,(X,Z,Q,Y)=>QY(Z??Q??"",Y)).replace(/<br\s*\/?>/gi,`
|
|
4333
4333
|
`).replace(/<\/(p|div|h[1-6]|li|tr)>/gi,`
|
|
4334
4334
|
`).replace(/<\/td>/gi,"\t").replace(/<[^>]*>/g,"").replace(/ /g," ").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"').replace(/'/g,"'").replace(/©/g,"(c)").replace(/·/g,"-").replace(/\n\s*\n\s*\n/g,`
|
|
4335
4335
|
|