@stacksjs/stx 0.2.202 → 0.2.204
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-n4v5733m.js → chunk-00a028s3.js} +1 -1
- package/dist/{chunk-hx338p3h.js → chunk-02n7khen.js} +1 -1
- package/dist/{chunk-ebrcakdt.js → chunk-0kdc3x7v.js} +1 -1
- package/dist/{chunk-jn49sc7r.js → chunk-12n9mz15.js} +1 -1
- package/dist/{chunk-cd8qdf35.js → chunk-1bq2xyax.js} +1 -1
- package/dist/{chunk-8gf8p3hq.js → chunk-2z6br22w.js} +1 -1
- package/dist/{chunk-1ms6ey5t.js → chunk-3acgbcv6.js} +1 -1
- package/dist/{chunk-q7tx4b74.js → chunk-44423f7c.js} +1 -1
- package/dist/{chunk-haawrsc8.js → chunk-4fe1ypxz.js} +1 -1
- package/dist/{chunk-wzytd8fh.js → chunk-5dxctm6h.js} +1 -1
- package/dist/{chunk-njvb5hn8.js → chunk-5gb0zjx0.js} +1 -1
- package/dist/{chunk-gfgpf7h8.js → chunk-5xpp3z95.js} +1 -1
- package/dist/{chunk-8a1524ge.js → chunk-66081bkn.js} +1 -1
- package/dist/{chunk-fk5a0t90.js → chunk-8sx4vf6p.js} +1 -1
- package/dist/{chunk-237jkeca.js → chunk-910sy8sk.js} +1 -1
- package/dist/{chunk-xgejppzh.js → chunk-9kf4q3ec.js} +1 -1
- package/dist/{chunk-4v5fsrdd.js → chunk-abzhv6v3.js} +1 -1
- package/dist/{chunk-h5rx09a5.js → chunk-bmpkpgx2.js} +8 -8
- package/dist/{chunk-241d3ex6.js → chunk-bpvp21dd.js} +1 -1
- package/dist/{chunk-seac724e.js → chunk-btgrvrxy.js} +1 -1
- package/dist/{chunk-a4mcc2dm.js → chunk-cm0ykjs1.js} +1 -1
- package/dist/{chunk-hdtca0hs.js → chunk-e0bk1mqp.js} +1 -1
- package/dist/{chunk-m1awve2j.js → chunk-evxg9pe7.js} +1 -1
- package/dist/{chunk-qw5gmsv7.js → chunk-g9kvpgha.js} +1 -1
- package/dist/{chunk-xdxhz4h3.js → chunk-gcns5vw5.js} +1 -1
- package/dist/{chunk-mvb60bhh.js → chunk-jsndbe2q.js} +1 -1
- package/dist/{chunk-31xczh3c.js → chunk-jvqjh17y.js} +1 -1
- package/dist/{chunk-5d664wp1.js → chunk-k03erdj7.js} +1 -1
- package/dist/{chunk-79m0qkj6.js → chunk-k25mqtht.js} +1 -1
- package/dist/{chunk-0kp3c02b.js → chunk-m0sd10cs.js} +1 -1
- package/dist/{chunk-as6mtt14.js → chunk-me5h5mkq.js} +1 -1
- package/dist/{chunk-r65jaef6.js → chunk-mz5hjxjv.js} +1 -1
- package/dist/{chunk-tke3ff0z.js → chunk-n35c984x.js} +2 -2
- package/dist/{chunk-6wx32fa5.js → chunk-n9eahkjg.js} +290 -290
- package/dist/{chunk-ncgvbje8.js → chunk-nd9d80gb.js} +1 -1
- package/dist/{chunk-te0r2g0x.js → chunk-syy7d9w2.js} +1 -1
- package/dist/{chunk-ajr4qgbe.js → chunk-t98920tc.js} +1 -1
- package/dist/{chunk-a438xffx.js → chunk-vpwjr05r.js} +1 -1
- package/dist/{chunk-m3qtqheb.js → chunk-vydqh4xr.js} +1 -1
- package/dist/{chunk-3jfg5kdy.js → chunk-xm6kwq2r.js} +2 -2
- package/dist/{chunk-6v4ddvfk.js → chunk-z21qzyh1.js} +1 -1
- package/dist/cli.js +7 -7
- package/dist/config.d.ts +15 -3
- package/dist/config.js +32 -7
- package/dist/craft-entry.js +1 -1
- package/dist/craft.js +1 -1
- package/dist/pwa.js +1 -1
- package/dist/ssg.js +2 -2
- package/dist/web-components.js +4 -1
- package/package.json +5 -5
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Dq as x,Ir as g,Mo as R,jm as O,lq as H}from"./chunk-
|
|
2
|
+
import{Dq as x,Ir as g,Mo as R,jm as O,lq as H}from"./chunk-n9eahkjg.js";import b from"path";var v={enabled:!0,bufferSize:16384,strategy:"auto",timeout:30000},M=/<!-- @section:([\w-]+) -->([\s\S]*?)<!-- @endsection:\1 -->/g;var T=/<!-- @suspense:([\w-]+) -->([\s\S]*?)<!-- @endsuspense:\1 -->/g;function f(q){let B=[],Q=0,G;T.lastIndex=0;while((G=T.exec(q))!==null){if(G.index>Q){let X=q.slice(Q,G.index);if(X.trim())B.push({type:B.length===0?"shell":"content",content:X})}let J=G[1],K=G[2];B.push({type:"suspense",name:J,content:K}),Q=G.index+G[0].length}if(Q<q.length){let J=q.slice(Q);if(J.trim())B.push({type:B.length===0?"shell":"content",content:J})}if(B.length===0)B.push({type:"shell",content:q});return B}async function r(q,B={},Q={}){let G={...g,...Q,streaming:{...v,...Q.streaming}},J=G.streaming?.bufferSize||16384;return new ReadableStream({async start(K){try{let X=await Bun.file(q).text(),z=X.match(/<script\b[^>]*\bserver\b[^>]*>([\s\S]*?)<\/script>/i),L=z?z[1]:"",Y=X.replace(/<script\b[^>]*>[\s\S]*?<\/script>/gi,""),j={...B,__filename:q,__dirname:b.dirname(q)};if(L.trim())await R(L,j,q);let D=f(Y),$=new Set;if(!D.some((w)=>w.type==="suspense")){let w=G.streaming?.strategy||"auto",U=new RegExp(M.source,"g");if(!(w!=="manual"&&U.test(Y))){let F=await H(Y,j,q,G,$);for(let V=0;V<F.length;V+=J)K.enqueue(F.slice(V,V+J)),await new Promise((W)=>setTimeout(W,0))}else{let F=[],V=new RegExp(M.source,"g"),W;while((W=V.exec(Y))!==null)F.push({name:W[1],content:W[2],start:W.index,end:W.index+W[0].length});let y=0;for(let A of F){if(A.start>y){let k=Y.slice(y,A.start);if(k.trim()){let E=await H(k,j,q,G,$);K.enqueue(E),await new Promise((S)=>setTimeout(S,0))}}let I=await H(A.content,j,q,G,$);K.enqueue(I),await new Promise((k)=>setTimeout(k,0)),y=A.end}if(y<Y.length){let A=Y.slice(y);if(A.trim()){let I=await H(A,j,q,G,$);K.enqueue(I)}}}}else{let w=new Map;for(let Z of D)if(Z.type==="shell"||Z.type==="content"){let F=await H(Z.content,j,q,G,$);K.enqueue(F)}else if(Z.type==="suspense"&&Z.name){let F=`stx-suspense-${Z.name}`;K.enqueue(`<div id="${F}" data-suspense="${Z.name}" style="display:contents;">
|
|
3
3
|
<template data-suspense-fallback>Loading...</template>
|
|
4
4
|
</div>`),w.set(Z.name,H(Z.content,j,q,G,$))}K.enqueue(`
|
|
5
5
|
<script>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Kl as Y,tq as x}from"./chunk-
|
|
2
|
+
import{Kl as Y,tq as x}from"./chunk-n9eahkjg.js";import"./chunk-8src5smc.js";import"./chunk-gcnrdgrq.js";import"./chunk-xp3fp266.js";import"./chunk-nye9brje.js";import"./chunk-jvqjh17y.js";import"./chunk-cbc56wpd.js";import"./chunk-x0zh76yv.js";import"./chunk-0ae6chzd.js";import"./chunk-kjr22neh.js";import"./chunk-3952ykhb.js";import"./chunk-dtmwr674.js";import"./chunk-pw0rzgpv.js";import A from"path";var C=["broadcast","calculateDistance","canNotify","clearCookies","clearFetchCache","clearStorage","copyToClipboard","createShareableFile","defineForm","getBatteryLevel","getCookie","getCurrentPosition","getStorageKeys","getStorageSize","getVoices","hasBattery","hasCameraPermission","hasGeolocationPermission","hasMicrophonePermission","hasNotificationPermission","hasResizeObserver","hexToHsl","hexToRgb","isBroadcastChannelSupported","isCharging","isDeviceMotionSupported","isDeviceOrientationSupported","isEventSourceSupported","isEyeDropperSupported","isInFullscreen","isMutationObserverSupported","isPermissionGranted","isSpeechRecognitionSupported","isSpeechSynthesisSupported","isWakeLockSupported","isWebSocketSupported","notify","parseCookies","pickColor","prefetch","removeCookie","requestMediaPermissions","requestMotionPermission","requestNotificationPermission","requestOrientationPermission","setCookie","share","shareCurrentPage","shareFiles","shareText","shareURL","shareWithFallback","speak","stopSpeaking","toggleFullscreen","useAsyncData","useAttributeObserver","useAutoLogout","useAutoWakeLock","useBattery","useBreakpoint","useBroadcastChannel","useChannel","useChildListObserver","useClipboard","useColorHistory","useConditionalWakeLock","useCookies","useCopySelection","useDeviceMotion","useDeviceOrientation","useElementSize","useElementTextSelection","useElementVisibility","useEventSource","useEyeDropper","useFavicon","useForm","useFullscreen","useGeolocation","useGeolocationWatch","useHotkey","useIdle","useIdleState","useInfiniteScroll","useIntersectionObserver","useIntersectionObserverMultiple","useIsDesktop","useIsMobile","useIsTablet","useKeyPressed","useKeySequence","useKeyboard","useLastActive","useLazyLoad","useMeta","useMouse","useMouseInElement","useMutationObserver","useNetwork","useNotification","useOnline","useParallax","usePermission","usePermissions","usePointer","usePost","useResizeObserver","useResizeObserverMultiple","useSSE","useScroll","useSelectionPopup","useShare","useSpeechRecognition","useSpeechSynthesis","useStorage","useTextObserver","useTextSelection","useTitle","useVisibility","useWakeLock","useWindowSize"],y=new Set(C);var Z=new Map,I=new Set,P=new Set(C);function R(){Z.clear()}function D(G){let H=new Map;for(let z of G){let K=A.basename(z);if(K.endsWith(".d.ts"))continue;let J=K.replace(/\.[jt]s$/,"");if(J==="index")continue;if(J===K)continue;let X=H.get(J);if(X&&!X.endsWith(".js"))continue;H.set(J,z)}return[...H.values()].sort()}function L(G,H){let z=H.replace(/[$()*+.?[\\\]^{|}-]/g,"\\$&");return new RegExp(`(?:^|[^\\w$.])(?:const|let|var|function|class)\\s+${z}\\b`).test(G)}function k(G){if(!G)return[];let H=G.replace(/<script\b[^>]*\bdata-stx-runtime\b[^>]*>[\s\S]*?<\/script>/gi,"").replace(/<script\b[^>]*\bdata-stx-framework-composables\b[^>]*>[\s\S]*?<\/script>/gi,"").replace(/<script\b[^>]*\bdata-stx-stores\b[^>]*>[\s\S]*?<\/script>/gi,"").replace(/<script\b[^>]*\bdata-stx-composables\b[^>]*>[\s\S]*?<\/script>/gi,""),z=[];for(let K of P){if(I.has(K))continue;let J=K.replace(/[$()*+.?[\\\]^{|}-]/g,"\\$&");if(new RegExp(`(^|[^\\w$.])${J}\\s*\\(`).test(H))z.push(K)}return z.sort()}async function _(G,H){let z=k(G);if(z.length===0)return null;let K=H??A.join(import.meta.dir,"composables"),J=`${K}\x00${z.join(",")}`,X=Z.get(J);if(X!==void 0)return X||null;let T=x({loader:"ts",target:"browser",define:Y()}),B=new Set(z),F=[],w=new Set,$=[];try{let q=new Bun.Glob("*.{ts,js}");for await(let j of q.scan({cwd:K,absolute:!0}))$.push(j)}catch{return Z.set(J,""),null}$=D($);for(let q of $){let j;try{j=await Bun.file(q).text()}catch{continue}let W=[];try{W=T.scan(j).exports.filter((Q)=>Q!=="default")}catch{continue}if(!W.some((Q)=>B.has(Q)))continue;try{j=j.replace(/^import\s+.*from\s+['"][^'"]+['"]\s*;?\s*$/gm,""),j=j.replace(/^import\s+type\s+.*$/gm,""),j=j.replace(/^export\s+\*\s+(?:as\s+\w+\s+)?from\s*['"][^'"]+['"]\s*;?\s*$/gm,""),j=j.replace(/^export\s+(?:type\s+)?\{[\s\S]*?\}\s*(?:from\s*['"][^'"]+['"]\s*)?;?\s*$/gm,""),j=j.replace(/^export\s+default\s+/gm,""),j=j.replace(/^export\s+(?=(?:declare\s+)?(?:abstract\s+)?(?:async\s+)?(?:function|class|const|let|var|type|interface|enum)\b)/gm,""),F.push(`// ${A.basename(q).replace(/\.[jt]s$/,"")}
|
|
3
3
|
${T.transformSync(j).trim()}`);for(let Q of W)w.add(Q)}catch(Q){console.warn(`[stx] framework composable ${A.basename(q)} could not be bundled:`,Q)}}let U=z.filter((q)=>!w.has(q)&&!L(G,q));if(U.length>0)console.warn(`[stx] could not bundle ${U.join(", ")} from @stacksjs/stx/composables \u2014 `+"calls to them will throw ReferenceError in the browser. Import them explicitly so the bundler inlines them, or use a runtime equivalent from window.stx.");if(F.length===0)return Z.set(J,""),null;let M=[...w].map((q)=>` try { if (!(${JSON.stringify(q)} in __s)) { __s[${JSON.stringify(q)}] = ${q}; if (!(${JSON.stringify(q)} in window)) window[${JSON.stringify(q)}] = ${q}; } } catch (e) {}`).join(`
|
|
4
4
|
`),V=`<script data-stx-framework-composables>
|
|
5
5
|
;(function(){
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Aq as q,Eq as y}from"./chunk-
|
|
2
|
+
import{Aq as q,Eq as y}from"./chunk-n9eahkjg.js";import{hu as L}from"./chunk-pw0rzgpv.js";import M from"fs";import X from"path";var T=new Map,Q=new Map;async function A(j){let z;for(let K=0;K<3;K++)try{let V=(await M.promises.stat(j)).mtime.getTime(),J=Q.get(j);if(J&&J.mtime===V)return J.content;let W=await Bun.file(j).text(),U=(await M.promises.stat(j)).mtime.getTime();if(U!==V)continue;return Q.set(j,{content:W,mtime:U}),W}catch(I){z=I;break}throw Q.delete(j),Error(`File not found: ${j}${z?` (${z.message})`:""}`)}function H(j){Q.delete(j)}function v(j){for(let B of Q.keys())if(B.startsWith(j))Q.delete(B)}var Z=null,b=null,N=null;function E(j){N=j}async function F(j=!1){let B=N??await import("./chunk-hb83d0qc.js");if(j)return B.generateSignalsRuntimeDev();if(Z===null)Z=B.generateSignalsRuntime();return Z}var $=null;async function R(){if($===null){let{getRouterScript:j}=await import("./chunk-3nmpfsw5.js");$=j()}return $}function S(){Q.clear(),y(),Z=null,b=null,$=null}function k(j){let B={debug:j.debug===!0,middleware:(j.middleware??[]).map((z)=>({name:z.name,timing:z.timing,handler:String(z.handler)})),customDirectives:(j.customDirectives??[]).map((z)=>({name:z.name,hasEndTag:z.hasEndTag===!0,handler:String(z.handler)}))};return new Bun.CryptoHasher("sha1").update(JSON.stringify(B)).digest("hex")}async function _(j,B){try{if(!B.cachePath)return null;let z=X.resolve(B.cachePath),K=X.join(z,`${D(j)}.html`),I=X.join(z,`${D(j)}.meta.json`);if(!await q(K)||!await q(I))return null;let V=await Bun.file(I).text(),J=JSON.parse(V);if(J.cacheVersion!==B.cacheVersion)return null;if(J.optionsSignature!==k(B))return null;if((await M.promises.stat(j)).mtime.getTime()>J.mtime)return null;for(let Y of J.dependencies)if(await q(Y)){if((await M.promises.stat(Y)).mtime.getTime()>J.mtime)return null}else return null;return await Bun.file(K).text()}catch(z){return console.warn(`Cache error for ${j}:`,z),null}}async function g(j,B,z,K){try{if(!K.cachePath)return;let I=X.resolve(K.cachePath);await M.promises.mkdir(I,{recursive:!0});let V=X.join(I,`${D(j)}.html`),J=X.join(I,`${D(j)}.meta.json`),W=await M.promises.stat(j);await Bun.write(V,B);let Y={sourcePath:j,mtime:W.mtime.getTime(),dependencies:Array.from(z),cacheVersion:K.cacheVersion,optionsSignature:k(K),generatedAt:Date.now()};await Bun.write(J,JSON.stringify(Y,null,2)),T.set(j,{output:B,mtime:W.mtime.getTime(),dependencies:z})}catch(I){console.warn(`Failed to cache template ${j}:`,I)}}var G=16;function D(j){return new Bun.CryptoHasher("sha1").update(j).digest("hex").substring(0,G)}
|
|
3
3
|
export{T as Ji,A as Ki,H as Li,v as Mi,E as Ni,F as Oi,R as Pi,S as Qi,_ as Ri,g as Si,D as Ti};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Ml as c,Nl as d,Ol as e,Pl as f,Ql as g,Rl as h,Sl as i,Tl as j,Ul as k}from"./chunk-
|
|
2
|
+
import{Ml as c,Nl as d,Ol as e,Pl as f,Ql as g,Rl as h,Sl as i,Tl as j,Ul as k}from"./chunk-n9eahkjg.js";import"./chunk-8src5smc.js";import"./chunk-gcnrdgrq.js";import{gs as a,hs as b}from"./chunk-xp3fp266.js";import"./chunk-nye9brje.js";import"./chunk-jvqjh17y.js";import"./chunk-cbc56wpd.js";import"./chunk-x0zh76yv.js";import"./chunk-0ae6chzd.js";import"./chunk-kjr22neh.js";import"./chunk-3952ykhb.js";import"./chunk-dtmwr674.js";import"./chunk-pw0rzgpv.js";export{b as stripCommentsAndLiterals,d as renderVendorStyleTags,k as processClientScript,f as injectBrowserCoreAutoImports,j as generateServerDataBridge,h as generateBrowserAutoImportDestructuring,g as generateAutoImportDestructuring,a as findInterpolationEnd,i as extractBridgeData,c as extractAndStripCssImports,e as STX_AUTO_IMPORTS};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{$ as Gk,$a as sm,$b as Kn,$c as Lo,$d as Lp,A as qj,Aa as Dl,Ab as cn,Ac as ko,Ad as kp,Ae as qq,B as rj,Ba as El,Bb as dn,Bc as lo,Bd as lp,Be as rq,C as sj,Ca as Fl,Cb as en,Cc as mo,Cd as mp,Ce as sq,D as tj,Da as Sl,Db as fn,Dc as no,Dd as np,De as tq,E as jk,Ea as Tl,Eb as gn,Ec as oo,Ed as op,Ee as uq,F as kk,Fa as Ul,Fb as hn,Fc as po,Fd as pp,Fe as vq,G as lk,Ga as Vl,Gb as jn,Gc as qo,Gd as qp,Ge as wq,H as mk,Ha as Wl,Hb as kn,Hc as ro,Hd as rp,He as xq,I as nk,Ia as _l,Ib as ln,Ic as so,Id as sp,Ie as yq,J as ok,Ja as $l,Jb as mn,Jc as to,Jd as tp,Je as zq,K as pk,Ka as am,Kb as nn,Kc as uo,Kd as up,Ke as Aq,L as qk,La as bm,Lb as on,Lc as vo,Ld as vp,Le as Bq,M as rk,Ma as cm,Mb as pn,Mc as wo,Md as wp,Me as Cq,N as sk,Na as dm,Nb as qn,Nc as xo,Nd as xp,Ne as Dq,O as tk,Oa as em,Ob as xn,Oc as yo,Od as yp,Oe as Eq,P as uk,Pa as fm,Pb as yn,Pc as zo,Pd as zp,Pe as Fq,Q as vk,Qa as gm,Qb as zn,Qc as Ao,Qd as Ap,Qe as Gq,R as wk,Ra as hm,Rb as An,Rc as Bo,Rd as Bp,Re as Hq,S as xk,Sa as im,Sb as Bn,Sc as Co,Sd as Cp,Se as Iq,T as yk,Ta as jm,Tb as Cn,Tc as Do,Td as Dp,Te as Jq,U as zk,Ua as km,Ub as Dn,Uc as Eo,Ud as Ep,Ue as Kq,V as Ak,Va as lm,Vb as En,Vc as Fo,Vd as Fp,Ve as Lq,W as Bk,Wa as mm,Wb as Fn,Wc as Go,Wd as Gp,We as Mq,X as Ck,Xa as nm,Xb as Gn,Xc as Ho,Xd as Hp,Xe as Nq,Y as Dk,Ya as pm,Yb as Hn,Yc as Io,Yd as Ip,Z as Ek,Za as qm,Zb as In,Zc as Jo,Zd as Jp,_ as Fk,_a as rm,_b as Jn,_c as Ko,_d as Kp,aa as Hk,ab as tm,ac as Ln,ad as Mo,ae as Mp,ba as Ik,bb as um,bc as Mn,bd as No,be as Np,ca as Jk,cb as vm,cc as Nn,cd as Oo,ce as Op,da as Kk,db as wm,dc as On,dd as Po,de as Pp,ea as Lk,eb as xm,ec as Pn,ed as Qo,ee as Qp,fa as Mk,fb as ym,fc as Qn,fd as Ro,fe as Rp,ga as Nk,gb as zm,gc as Rn,gd as So,ge as Sp,ha as Ok,hb as Am,hc as Sn,hd as To,he as Tp,ia as Pk,ib as Bm,ic as Tn,id as Uo,ie as Up,ja as Qk,jb as Cm,jc as Un,jd as Vo,je as Vp,ka as Rk,kb as Dm,kc as Vn,kd as Wo,ke as Wp,la as Sk,lb as Em,lc as Wn,ld as Xo,le as Xp,ma as Tk,mb as Fm,mc as Xn,md as Yo,me as Yp,na as Uk,nb as Gm,nc as Yn,nd as Zo,ne as Zp,o as a,oa as Vk,ob as Hm,oc as Zn,od as _o,oe as _p,p as bj,pa as Wk,pb as Km,pc as _n,pd as $o,pe as fq,q as cj,qa as tl,qb as Lm,qc as $n,qd as ap,qe as gq,r as dj,ra as ul,rb as Mm,rc as ao,rd as bp,re as hq,s as ej,sa as vl,sb as Nm,sc as bo,sd as cp,se as iq,t as fj,ta as wl,tb as Tm,tc as co,td as dp,te as jq,u as gj,ua as xl,ub as Um,uc as eo,ud as ep,ue as kq,v as hj,va as yl,vb as Vm,vc as fo,vd as fp,ve as lq,w as ij,wa as zl,wb as Wm,wc as go,wd as gp,we as mq,x as jj,xa as Al,xb as $m,xc as ho,xd as hp,xe as nq,y as oj,ya as Bl,yb as an,yc as io,yd as ip,ye as oq,z as pj,za as Cl,zb as bn,zc as jo,zd as jp,ze as pq}from"./chunk-h5rx09a5.js";import{$e as un,Ye as rn,Ze as sn,_e as tn,af as vn,bf as wn}from"./chunk-mvb60bhh.js";import{cf as Im,df as Jm}from"./chunk-9xh78snm.js";import{ef as Om}from"./chunk-xgejppzh.js";import{ff as sl}from"./chunk-m3qtqheb.js";import{gf as Xl,hf as Yl,if as Zl,jf as om,kf as Pm,lf as Qm,mf as Rm,nf as Sm,of as Xm,pf as Ym,qf as Zm,rf as _m}from"./chunk-te0r2g0x.js";import{Af as Cj,Bf as Dj,Cf as Ej,Df as Fj,Ef as Gj,Ff as Hj,Gf as Ij,sf as uj,tf as vj,uf as wj,vf as xj,wf as yj,xf as zj,yf as Aj,zf as Bj}from"./chunk-fnkxbnka.js";import{Hf as Zj,If as _j,Jf as $j,Kf as ak,Lf as bk,Mf as ck,Nf as dk,Of as ek,Pf as fk,Qf as gk,Rf as hk,Sf as ik}from"./chunk-1mhc4g86.js";import{Tf as Xj,Uf as Yj}from"./chunk-1e25ksp6.js";import{Vf as Si,Xf as Ti}from"./chunk-9b82d4g5.js";import{bg as Jj,cg as Kj,dg as Lj,eg as Mj,fg as Nj,gg as Oj,hg as Pj,jg as Qj,kg as Rj,lg as Sj,mg as Tj,ng as Uj,og as Vj,rg as Wj}from"./chunk-ygr11tgz.js";import{sg as hl,tg as il,ug as jl,vg as kl,wg as nl,xg as rl}from"./chunk-q7tx4b74.js";import{Bg as ml,yg as ll}from"./chunk-ndnc7k2n.js";import{Jg as Xk,Kg as Yk,Lg as Zk,Mg as _k,Ng as $k,Og as al,Pg as bl,Qg as cl,Rg as ol,Sg as pl,Tg as ql}from"./chunk-njvb5hn8.js";import{$g as Nl,Ug as Gl,Vg as Hl,Wg as Il,Xg as Jl,Yg as Kl,Zg as Ll,_g as Ml,ah as Ol,bh as Pl,ch as Ql,dh as Rl}from"./chunk-st5qggks.js";import{eh as Gg}from"./chunk-z2sp0k8d.js";import{fh as Ng,gh as Og,hh as Pg,ih as Qg,jh as Rg,kh as Sg}from"./chunk-237jkeca.js";import{lh as fi,mh as gi,nh as hi,rh as ii,sh as ji,th as ki}from"./chunk-mkm91b6w.js";import{Ah as wi,Bh as xi,Ch as yi,Dh as zi,Eh as Ai,uh as qi,vh as ri,wh as si,xh as ti,yh as ui,zh as vi}from"./chunk-e0460y7f.js";import{Fh as Xh,Gh as Yh,Hh as Zh,Ih as _h,Jh as $h,Lh as ai,Mh as bi,Nh as ci,Oh as di,Ph as ei}from"./chunk-q8szpd6w.js";import{Qh as Tf,Rh as Uf,Sh as Vf,Th as Wf,Uh as Xf}from"./chunk-w0ng9e1m.js";import{Vh as Yf,Wh as Zf,Xh as _f,Yh as $f,Zh as ag}from"./chunk-x13f5bbe.js";import{$h as cg,_h as bg,ai as dg,bi as eg,ci as fg,di as gg,ei as hg}from"./chunk-ymccpdg6.js";import{fi as ig,gi as jg,hi as kg,ii as lg,ji as mg,ki as ng}from"./chunk-vgk5v31k.js";import{mi as og,ni as pg,oi as qg,pi as rg,qi as sg,ri as tg,si as ug,ti as vg,ui as wg,vi as xg,wi as yg,xi as zg,yi as Ag,zi as Bg}from"./chunk-n8zpm7xb.js";import{Bi as Cg,Ci as Dg,Di as Eg,Ei as Fg}from"./chunk-y4hkqsgw.js";import{Ji as sf,Ki as tf,Li as uf,Mi as vf,Ni as wf,Oi as xf,Pi as yf,Qi as zf,Ri as Af,Si as Bf,Ti as Cf}from"./chunk-m1awve2j.js";import{Ui as Hf,Vi as If}from"./chunk-jn49sc7r.js";import{Yi as Jf}from"./chunk-4v5fsrdd.js";import"./chunk-ht51fz7w.js";import{aj as Kf}from"./chunk-fvjh7rx0.js";import{bj as Lf,cj as Mf}from"./chunk-b6jhznkh.js";import{dj as Nf,ej as Of,fj as Pf,gj as Qf,hj as Rf,ij as Sf}from"./chunk-hyrjade7.js";import{jj as Fd,kj as Gd,lj as Hd,mj as Id,nj as Jd,oj as Kd,pj as Ld,qj as Md,rj as Nd,sj as Od,tj as Pd,uj as Qd,vj as Rd,wj as Sd}from"./chunk-a4mcc2dm.js";import{xj as qf,yj as rf}from"./chunk-whq99ytc.js";import{Fj as bf,Gj as cf,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}from"./chunk-3es366z4.js";import{kk as $p,lk as aq,mk as bq,nk as cq,ok as dq,pk as eq}from"./chunk-3jfg5kdy.js";import{qk as kj,rk as lj,sk as mj,tk as nj,uk as dl,vk as el,wk as fl,xk as gl}from"./chunk-ycn1vnv2.js";import"./chunk-yckd6ks5.js";import"./chunk-zgvga8rc.js";import{$l as Ka,$m as Mb,$n as ad,$o as fe,$q as Kh,Al as ia,Am as mb,An as lc,Ao as Bd,Ap as Ge,Aq as ah,Ar as Ki,Bn as mc,Bo as Cd,Bp as He,Bq as bh,Br as Li,Cm as nb,Cn as nc,Co as Dd,Cp as Ie,Cq as ch,Cr as Mi,Dl as ja,Dm as ob,Dn as oc,Do as Ed,Dp as Je,Dq as dh,Dr as Ni,El as ka,Em as pb,En as pc,Ep as Ke,Eq as eh,Er as Oi,Fl as la,Fm as qb,Fn as qc,Fo as Td,Fp as Le,Fq as fh,Fr as Pi,Gl as ma,Gm as rb,Gn as rc,Gp as Me,Gq as gh,Gr as Qi,Hl as na,Hm as sb,Hn as sc,Hp as Ne,Hq as hh,Hr as Ri,Im as tb,In as tc,Ip as Oe,Iq as rh,Ir as Ui,Jm as ub,Jn as uc,Jp as Pe,Jq as sh,Jr as Vi,Kl as qa,Km as vb,Kn as vc,Kp as Qe,Kq as th,Kr as Wi,Ll as ra,Lm as wb,Ln as wc,Lp as Re,Lq as uh,Lr as Xi,Ml as ya,Mm as xb,Mn as xc,Mo as Ud,Mp as Se,Mq as vh,Mr as Yi,Nl as za,Nm as yb,Nn as yc,Np as Te,Nq as wh,Nr as Zi,Ol as Aa,Om as zb,On as zc,Oo as Vd,Op as Ue,Oq as xh,Or as _i,Pl as Ba,Pm as Ab,Pn as Ac,Pp as Ve,Pq as yh,Pr as $i,Ql as Ca,Qm as Bb,Qn as Bc,Qo as Wd,Qp as We,Qq as zh,Qr as aj,Rl as Da,Rm as Cb,Rn as Cc,Ro as Xd,Rp as Xe,Rq as Ah,Sl as Ea,Sm as Db,Sn as Dc,So as Yd,Sp as Ye,Sq as Bh,Tl as Fa,Tm as Eb,Tn as Ec,To as Zd,Tp as Ze,Tq as Ch,Ul as Ga,Um as Fb,Un as Fc,Uo as _d,Up as _e,Uq as Dh,Vm as Gb,Vn as Gc,Vo as $d,Vp as $e,Vq as Eh,Wm as Hb,Wn as Hc,Wo as ae,Wp as af,Wq as Fh,Xm as Ib,Xn as Ic,Xo as be,Xq as Gh,Yl as Ha,Ym as Jb,Yn as Zc,Yo as ce,Yp as Df,Yq as Hh,Zl as Ia,Zm as Kb,Zn as _c,Zo as de,Zq as Ih,_l as Ja,_m as Lb,_n as $c,_o as ee,_q as Jh,am as La,an as Nb,ao as bd,ap as ge,ar as Lh,bm as Ma,bn as Ob,bo as cd,bp as he,br as Mh,cn as Pb,co as dd,cp as ie,cr as Nh,dl as s,dn as Qb,do as ed,dp as je,dr as Oh,el as t,em as Na,en as Rb,eo as fd,ep as ke,er as Ph,fl as u,fm as Oa,fn as Sb,fo as gd,fp as le,fr as Qh,gl as v,gm as Pa,gn as Tb,go as hd,gp as me,gr as Rh,hl as w,hm as Qa,hn as Ub,ho as id,hp as ne,hr as Sh,il as x,im as Ra,in as Vb,io as jd,ip as oe,iq as Ef,ir as Th,jl as y,jm as Sa,jn as Wb,jo as kd,jp as pe,jq as Ff,jr as Uh,kl as z,km as Ta,kn as Xb,ko as ld,kp as qe,kq as Gf,kr as Vh,ll as A,lm as Ua,ln as Yb,lo as md,lp as re,lq as Hg,lr as Wh,ml as B,mm as Va,mn as Zb,mo as nd,mp as se,mq as Ig,mr as li,nl as C,nm as Wa,nn as _b,no as od,np as te,nq as Jg,nr as mi,ol as D,om as Xa,on as $b,oo as pd,op as ue,oq as Kg,or as ni,pl as E,pm as Ya,pn as ac,po as qd,pp as ve,pq as Lg,pr as oi,ql as F,qm as Za,qn as bc,qo as rd,qp as we,qq as Mg,qr as pi,rl as G,rm as _a,rn as cc,ro as sd,rp as xe,rq as Tg,rr as Bi,sl as H,sm as $a,sn as dc,so as td,sp as ye,sq as Ug,sr as Ci,tl as I,tn as ec,to as ud,tp as ze,tq as Vg,tr as Di,ul as J,um as gb,un as fc,uo as vd,up as Ae,uq as Wg,ur as Ei,vl as da,vm as hb,vn as gc,vo as wd,vp as Be,vq as Xg,vr as Fi,wl as ea,wm as ib,wn as hc,wo as xd,wp as Ce,wq as Yg,wr as Gi,xl as fa,xm as jb,xn as ic,xo as yd,xp as De,xq as Zg,xr as Hi,yl as ga,ym as kb,yn as jc,yo as zd,yp as Ee,yq as _g,yr as Ii,zl as ha,zm as lb,zn as kc,zo as Ad,zp as Fe,zq as $g,zr as Ji}from"./chunk-6wx32fa5.js";import{$r as n,Rr as d,Sr as e,Tr as f,Ur as g,Vr as h,Wr as i,Xr as j,Yr as k,Zr as l,_r as m,as as o,bs as p,cs as q,ds as r}from"./chunk-8src5smc.js";import{es as b,fs as c}from"./chunk-gcnrdgrq.js";import{gs as oa,hs as pa}from"./chunk-xp3fp266.js";import{is as ih,js as jh,ks as kh,ls as lh,ms as mh,ns as nh,os as oh,ps as ph,qs as qh}from"./chunk-nye9brje.js";import{Es as db,Fs as eb,Gs as fb,rs as ab,ss as bb,us as cb}from"./chunk-31xczh3c.js";import{Hs as sa,Is as ta,Js as ua,Ks as va,Ls as wa,Ms as xa}from"./chunk-cbc56wpd.js";import{$s as Xc,Ns as Jc,Os as Kc,Ps as Lc,Qs as Mc,Rs as Nc,Ss as Oc,Ts as Pc,Us as Qc,Vs as Rc,Ws as Sc,Xs as Tc,Ys as Uc,Zs as Vc,_s as Wc,at as Yc}from"./chunk-x0zh76yv.js";import"./chunk-0ae6chzd.js";import"./chunk-kjr22neh.js";import{Ft as P,Gt as Q,Ht as R,It as S,Jt as T,Kt as U,Lt as V,Mt as W,Nt as X,Ot as Y,Pt as Z,Qt as _,Rt as $,St as aa,Tt as ba,Vt as ca,pt as K,qt as L,tt as M,yt as N,zt as O}from"./chunk-3952ykhb.js";import"./chunk-dtmwr674.js";import"./chunk-pw0rzgpv.js";export{Ej as writeNetlifyConfig,pl as writeManifest,hk as writeImageManifest,Gn as wrapComponentForHMR,Aq as withDefaults,Ri as webComponentDirectiveHandler,wo as watermark,yp as watchViews,rk as watchMultiple,sk as watchEffect,qk as watch,Gk as waitForStore,wd as waitForLocale,sn as virtualPathFor,Ei as videoDirective,Tb as validators,Eq as validated,id as validateValueEnhanced,Ig as validateTemplate,Bo as validateParams,jd as validateFormEnhanced,np as validateFile,ed as validateFields,dd as validateField,Kg as validateDirective,Dc as validateCspDirectives,Zi as validateConfig,ul as validateComponentScripts,Sl as validateComponentProps,Gf as validateClientScript,Fg as v,Ua as usesSignalsInScript,Xg as userComponentFileExists,lg as useVirtualList,Rc as useTitle,Fk as useStoreOrThrow,Yn as useStore,oj as useStorage,Jp as useSlots,qj as useSessionStorage,Oc as useSeoMeta,Hk as useRouteParams,Jk as useRouteParamOrThrow,Ik as useRouteParam,Rc as usePageTitle,pf as useOptimistic,Lk as useMiddlewareValue,Kk as useMiddlewareState,pj as useLocalStorage,zn as useLoadingIndicator,Mc as useHead,Cg as useForm,Lp as useAttrs,pp as uploadFiles,op as uploadFile,Bk as updateInstance,nf as untrack,lh as unregisterDirective,Ck as unmountInstance,$a as unescapeHtml,vn as typecheckStxFiles,Wg as transpileTypeScript,oq as translate,w as transitionDirective,Ml as toUsers,Ll as toUser,fo as thumbnail,gp as thumbHashToRGBA,hp as thumbHashToDataURL,sf as templateCache,Dn as stxClientHelpers,me as structuredDataDirective,rq as stripLocalePrefix,al as stripDocumentWrapper,pa as stripCommentsAndLiterals,ym as stringToStream,rc as strictCspPreset,Nd as streamingSuspenseDirective,Rd as streamToResponse,Ld as streamTemplateSimple,Fd as streamTemplate,jj as stopHmrServer,Il as stopBroadcasting,va as stateDirName,wa as stateDir,bf as state,Xe as startsDocument,_m as startProductionServer,Om as startInteractive,Hl as startBroadcasting,D as staggerDirective,zo as srcsetUrls,E as springDirective,ac as splitByPipe,tn as sourcePathFor,Go as smartBatchSign,Zg as slotContentHasExpressions,Eo as signUrl,Ug as shouldTranspileTypeScript,gj as shouldReloadOnChange,Jo as shouldRefreshSignature,hj as shouldIgnoreFile,dg as shouldCacheComponent,jo as sharpen,Hq as shape,ua as setStateDir,Pk as setRouteParams,Qk as setMiddlewareState,Dp as setGlobalProvide,ob as setErrorLocale,jk as setCurrentInstance,si as setCachedVideoResult,hi as setCachedImageResult,bi as setCached,Kq as serveStxFile,Mq as serveMultipleStxFiles,bj as serveMarkdownFile,jn as serveFile,Nq as serveApp,hn as serve,Jn as serializeState,om as serializeSetCookie,lo as sepia,Pc as seoMetaToHeadConfig,x as scrollAnimateDirective,q as screenReaderDirective,Ii as scopeHTML,Hi as scopeCSS,pe as scanForSitemapEntries,k as scanA11yTargets,l as scanA11yIssues,po as saturation,Co as sanitizeParams,Vb as sanitizeFilePath,Wb as sanitizeExpression,Xb as sanitizeDirectiveParams,Ub as sanitizeDirectiveParam,Yb as sanitizeComponentProps,Ob as safeExecuteAsync,Nb as safeExecute,fe as runPreProcessingMiddleware,ge as runPostProcessingMiddleware,Rm as runPageAction,hf as runMountCallbacks,ba as runMiddleware,zk as runHooks,hq as runDoctor,jf as runDestroyCallbacks,ue as runComposers,qo as rotate,Gg as rewriteImagesWithSiblings,bh as resolveTemplatePath,c as resolveStxTargets,Vi as resolveStxDirectories,nq as resolveI18n,co as resize,Ha as resetPlaceholders,Lc as resetHead,In as resetHMRHandler,Bb as resetErrorConfig,Cq as required,La as replacePlaceholders,wp as renderView,Bi as renderVideoComponent,za as renderVendorStyleTags,Sp as renderToString,Tp as renderToStream,Up as renderToDOM,fp as renderThumbhashToCanvas,eq as renderTemplateString,cq as renderTemplate,dq as renderString,Id as renderStreamingPage,Pg as renderSlot,Vf as renderSSRSuspense,Ro as renderProtectedVideo,Qo as renderProtectedImg,Do as renderMediaUpload,bq as renderMarkdownView,fl as renderLayoutTypes,li as renderImgComponent,Zj as renderImageComponent,Tc as renderHtmlAttrs,Sc as renderHead,zp as renderEmail,$g as renderComponentWithSlot,Uc as renderBodyAttrs,Tn as render,tc as relaxedCspPreset,cd as registerValidationRule,Pd as registerStreamingDirectives,_n as registerStoresClient,Nk as registerStore,ne as registerSeoDirectives,V as registerMiddleware,Pa as registerFilters,Oa as registerFilter,qb as registerErrorMessages,hd as registerEnhancedValidationRule,ih as registerDirective,Cc as registerCspDirectives,Vl as registerComponentDirectives,J as registerAnimationDirectives,r as registerA11yDirectives,nk as ref,Gm as redirect,xa as rebaseOntoStateDir,$i as readMarkdownFile,tf as readFileCached,ok as reactive,uo as quality,Oo as pruneSignatureCache,ei as pruneCache,Bp as provide,aq as protectCodeBlocks,Bq as prop,ye as processVueTemplate,jg as processVirtualListDirectives,ng as processVirtualGridDirectives,Ai as processVideo,fd as processValidateDirective,Dd as processTranslateDirective,Pf as processTransitionDirectives,Sf as processTransitionAttributes,Xc as processTitleDirective,jb as processTemplateBindings,Lf as processTeleportDirectives,Tf as processSuspenseDirectives,ie as processStructuredData,Jd as processStreamDirectives,Ag as processStaticDirectives,de as processStackReplacements,ce as processStackPushDirectives,Qg as processSlots,_k as processShell,we as processServerBindings,je as processSeoDirective,Qd as processSectionDirectives,Be as processScopedStyles,hb as processReactiveBindings,So as processProtectedMedia,tg as processPartialHydrationDirectives,Ff as processOnceDirective,ee as processMiddleware,he as processMetaDirectives,Yc as processMetaDirective,aj as processMarkdownFileDirectives,gh as processMarkdownDirectives,Zd as processLoops,bg as processKeepAliveDirectives,Ef as processJsonDirective,mg as processInfiniteListDirectives,be as processIncludes,ni as processImgComponents,$j as processImageComponents,Oj as processImage,Wc as processHeadDirective,_c as processForms,ad as processFormInputDirectives,Ya as processExpressions,ma as processEventDirectives,bd as processErrorDirective,ze as processDynamicComponents,Hg as processDirectives,qh as processDirectiveAttributes,Kf as processDeferDirectives,Hc as processCustomDirectives,zc as processCspDirectives,Iq as processComponentProps,Ga as processClientScript,$c as processBasicFormDirectives,Yf as processAsyncDirectives,Ic as processAppearanceBootstrapDirective,A as processAnimationDirectives,f as processA11yDirectives,sd as preloadTranslationsBackground,rd as preloadTranslations,yn as preloadIslandHandlers,Td as preloadIconCollection,Dl as poolStrings,Ti as pluginManager,Of as performLeave,Nf as performEnter,kf as pendingLifecycleCounts,of as peek,_d as partialsCache,Ci as parseVideoDirectiveOptions,ao as parseUrl,ip as parseThumbhashString,gc as parseSwitchBlock,Ng as parseSlots,Og as parseSlotElement,lc as parseScriptDeclarations,Pi as parseSFCComponent,To as parseProtectedArgs,Yd as parseLoopBinding,mi as parseImgComponent,Eh as parseImageUrl,_j as parseImageComponent,Pm as parseFormBody,ic as parseExpressionWithFilters,Dm as parseCookies,_l as parseContainerSelector,dc as parseConditionalBlock,jc as parseArguments,H as parseAnimationShorthand,Dq as optional,El as optimizeTemplate,ek as optimizeImage,fk as optimizeDirectory,Fq as oneOf,$d as onceStore,wk as onUpdated,gb as onUpdate,yk as onUnmounted,Uk as onServer,uk as onMounted,ff as onMount,zg as onHydrated,Hp as onErrorCaptured,gf as onDestroy,hg as onDeactivated,Tk as onClient,vk as onBeforeUpdate,xk as onBeforeUnmount,tk as onBeforeMount,gg as onActivated,bp as observeElement,Hm as notFound,Ge as normalizeCriticalHeadOrder,Gp as nextTick,Yl as negotiateEncoding,P as navigateTo,Ak as mountInstance,z as motionDirective,sc as moderateCspPreset,Cl as minifyHtml,le as metaDirective,Qe as metaDedupKey,bo as mergeParams,Se as mergeHtmlAttrs,Nc as mergeHeadConfigs,wc as mergeCspDirectives,bb as mergeCrosswindConfig,M as matchRoute,hh as markdownDirectiveHandler,_i as markdownCache,b as looksLikeGlob,qq as localizePath,td as loadTranslationLazy,zd as loadTranslation,Wi as loadStxConfig,_ as loadMiddlewareFromDirectory,ql as loadManifest,Zo as loadElement,Jl as loadChannels,wq as lintStxStrict,$o as lazyLoadAll,_o as lazyLoad,C as keyframeDirective,Qp as jsxs,Rp as jsxDEV,Pp as jsx,Fm as jsonResponse,Od as islandDirective,yb as isTest,bl as isSpaNavigation,Ho as isSignatureValid,lf as isSignal,Mj as isSharpAvailable,rm as isServerEnvironment,Rk as isServer,wb as isProduction,d as isPresentationalRole,Wo as isNativeLazySupported,$p as isMarkdownPath,pd as isLoading,qd as isLoaded,Tg as isJavaScriptScript,Xo as isIntersectionObserverSupported,Uj as isImageFile,Nj as isImageBackendAvailable,Bd as isICUFormat,yg as isHydrated,Yg as isHydrateTrigger,qm as isEdgeEnvironment,xq as isDirectiveKind,xb as isDevelopment,mf as isDerived,fj as isCssOnlyChange,Xl as isCompressible,Sk as isClient,_f as isAsyncComponent,Qm as isActionableMethod,mo as invert,vf as invalidateFileCacheByDir,uf as invalidateFileCache,Xa as interpolateScriptsInTemplate,Va as interpolateScriptExpressions,Wa as interpolateScriptAttributes,Kb as inlineError,mq as injectThemeBootstrap,ke as injectSeoTags,jq as injectSeo,Df as injectRouterScript,ej as injectHotReload,fa as injectHeatmap,xc as injectCspMetaTag,fb as injectCrosswindCSS,Ze as injectConfigHeadTags,Fe as injectColorModeBootScript,Ue as injectCloakStyle,Me as injectBuildId,Ba as injectBrowserCoreAutoImports,lb as injectAnalytics,Cp as inject,Mk as initStoreRegistry,Hj as initNetlify,An as initLoadingIndicator,Yo as initLazyLoading,Nm as initFile,ep as initBlurUp,kp as initAllBlurUp,pi as imgDirective,ck as imageDirective,Ym as hydrateTemplateStream,Xm as hydrateTemplate,xn as hydrateIslands,vg as hydrateIsland,Zm as hydrateFragment,wg as hydrateByStrategy,xg as hydrateAll,Qn as hydrate,gn as htmlResponse,Ve as hoistLeadingHeadTags,He as hoistColorModeBootScript,ga as heatmapDirective,Zh as hashString,Cf as hashFilePath,Xh as hashFile,Yh as hashBuffer,xe as hasVueTemplateSyntax,Xd as hasVariables,Vn as hasStore,Ma as hasPlaceholders,Fj as hasNetlifyConfig,X as hasMiddleware,na as hasEventDirectives,Ye as hasDocumentShell,Lg as hasDirectives,h as hasDOMSupport,Xj as handleImageRequest,Ip as handleError,Yp as h,Tj as groupVariantsByFormat,ko as grayscale,$m as gitHash,wl as getUnusedDirectives,ud as getTranslationSync,nd as getTranslationCacheStats,vd as getTranslationAsync,Cd as getTranslation,Aj as getTotalSize,Io as getTimeUntilExpiry,Hf as getStoreScript,Wn as getStoreNames,Un as getStore,tj as getStorageSize,sj as getStorageKeys,ch as getSourceLineInfo,Vg as getSharedTranspiler,g as getScreenReaderOnlyStyle,Ji as getScopeAttribute,af as getRouteParams,qa as getPublicEnvDefine,ra as getPublicEnv,Jg as getPositionInfo,Ja as getPlaceholderRegistry,Wh as getPlaceholderCacheStats,Kc as getPageMeta,nc as getNonce,Vj as getMimeType,Z as getMiddlewareNames,W as getMiddleware,od as getLoadingState,xd as getLoadingLocales,Pj as getImageMetadata,Pn as getHydrationRuntime,Ok as getHydratedStoreState,ij as getHmrServer,Jc as getHead,Hn as getHMRHandler,Ih as getFormatExtension,$h as getFileMtime,Sj as getFallbackVariant,sb as getErrorMessage,pb as getErrorLocale,Ab as getErrorConfig,vb as getErrorCodeName,kh as getDirectives,jh as getDirective,kk as getCurrentInstance,vc as getCspPreset,Ec as getCspHeaderName,cb as getCrosswindServeAsset,fh as getComponentCacheStats,ri as getCachedVideoResult,Mo as getCachedSignature,xf as getCachedSignalsRuntime,yf as getCachedRouterScript,Uh as getCachedPlaceholder,gi as getCachedImageResult,ai as getCached,di as getCacheStats,Ke as getBuildId,Gl as getBroadcastServer,Hh as getBestVariant,Qa as getAllFilters,vh as generateWidthSrcset,kg as generateVirtualListCSS,rp as generateVideoPreview,kd as generateValidationScript,sp as generateUploadRuntime,xl as generateTreeShakenBundle,Rf as generateTransitionRuntime,Qf as generateTransitionCSS,vi as generateThumbnails,Nh as generateThumbhashPlaceholder,hm as generateTemplatesDocs,Xf as generateSuspenseRuntime,Wf as generateSuspenseCSS,Kn as generateStateScript,Fh as generateSrcsetData,ki as generateSrcset,Qj as generateSrcSet,wi as generateSpriteSheet,Ap as generateSpaShell,Gh as generateSourceTags,Bh as generateSizesFromBreakpoints,Ah as generateSizesAttribute,Rj as generateSizes,oe as generateSitemapIndex,kq as generateSitemap,Vo as generateSimpleMediaPicker,Po as generateSignatureRuntime,rf as generateSignalsRuntimeDev,qf as generateSignalsRuntime,Fa as generateServerDataBridge,Gi as generateScopeId,Qi as generateSFCWebComponent,ka as generateRuntimeScript,K as generateRouteTypes,L as generateRouteManifest,qe as generateRobotsTxt,lq as generateRobots,ji as generateResponsiveVariants,Mi as generateReactiveWebComponentTS,Li as generateReactiveWebComponent,Oi as generateReactiveRuntime,Ni as generateReactiveMixin,ui as generatePoster,Th as generatePlaceholderStyle,Sh as generatePlaceholderCSS,Mh as generatePlaceholder,ug as generatePartialHydrationCSS,mc as generateNonce,Bj as generateNetlifyToml,up as generateMinifiedMediaRuntime,tp as generateMediaRuntime,Uo as generateMediaManagerEmbed,ol as generateManifest,Cn as generateLoadingIndicatorHtml,dp as generateLazyLoadRuntime,gl as generateLayoutTypes,Ph as generateLQIP,fg as generateKeepAliveRuntime,eg as generateKeepAliveCSS,Bg as generateIslandManifest,qp as generateImagePreview,gk as generateImageManifest,On as generateHydrationScript,Sd as generateHydrationRuntime,Rn as generateHydrationCSS,og as generateHydrationBootstrap,dj as generateHotReloadScript,ea as generateHeatmapScript,Fn as generateHMRClientScript,xi as generateHLSManifest,Ln as generateEventBindings,zh as generateDprSrcsetWithVariableQuality,yh as generateDprSrcset,We as generateDocumentShell,mm as generateDocs,im as generateDirectivesDocs,ph as generateDirectiveRuntime,re as generateDefaultRobotsTxt,yi as generateDASHManifest,qc as generateCspMetaTag,pc as generateCspHeader,eb as generateCrosswindCSS,Np as generateCompositionRuntime,gm as generateComponentsDocs,pg as generateComponentManifest,em as generateComponentDoc,Rh as generateColorPlaceholder,Ee as generateColorModeBootScript,Dk as generateClientRuntime,_h as generateCacheKey,Da as generateBrowserAutoImportDestructuring,lp as generateBlurUpRuntime,mp as generateBlurUpCSS,ib as generateBindingsRuntime,wh as generateAutoWidthSrcset,Ca as generateAutoImportDestructuring,ag as generateAsyncComponentRuntime,$f as generateAsyncComponentCSS,I as generateAnimationRuntime,G as generateAnimationCSS,kb as generateAnalyticsScript,wn as formatTypecheckDiagnostics,qn as formatTypeErrors,Km as formatStxContent,zj as formatSize,O as formatRoutes,Lm as formatMarkdownContent,tb as formatLocalizedError,Ad as formatICU,Cb as formatFilePath,Jb as formatError,iq as formatDoctorReport,jm as formatDocsAsMarkdown,lm as formatDocsAsJson,km as formatDocsAsHtml,to as format,Bl as foldConstants,so as flipVertical,ro as flipHorizontal,hl as fingerprint,un as findRuntimeTypeDeclarations,gq as findPantryPackage,cc as findMatchingEndTag,_b as findMatchingDelimiter,oa as findInterpolationEnd,ec as findIfBlocks,hc as findExpressions,N as findErrorPage,fc as findDirectiveBlocks,yl as findDeadCode,yl as findDeadBranches,$l as findContainerRegion,fm as findComponentFiles,Lq as findCommonDir,yj as filterRequiredFiles,ah as fileExists,Ud as extractVariables,ml as extractTemplateExpressions,Kd as extractStreamBoundaries,Mn as extractState,Rg as extractSlotContent,Wd as extractScriptFromTemplate,ll as extractScriptBlocks,Ka as extractPlaceholders,bc as extractParenthesizedExpression,Ek as extractPageResponseStatus,ca as extractLayoutMetadata,Qh as extractDominantColor,kc as extractDirectiveParams,Mg as extractDirectiveNames,cl as extractContainerContent,cm as extractComponentProps,qg as extractComponentName,dm as extractComponentDescription,db as extractClassNames,Ea as extractBridgeData,rg as extractBoundProps,$b as extractBalancedExpression,ya as extractAndStripCssImports,Ki as extractAndScopeStyles,la as extractAndProcessEvents,mj as externalizeSharedAssets,nj as externalizeRepeatedAssets,lj as externalizeHtml,_a as evaluateExpression,Al as evaluateConstant,nb as evaluateAuthExpression,Ta as escapeHtmlValue,Sa as escapeHtml,Pb as errorRecovery,Rb as errorLogger,Mf as ensureTeleportTargets,_e as ensureDocumentShell,gd as enhancedValidationRules,am as enableDevTools,zl as eliminateDeadCode,df as effect,Ao as dprUrls,nm as docsCommand,el as discoverLayoutNames,cp as disconnectObserver,bm as disableDevTools,Sb as devHelpers,Zk as detectShell,pm as detectRuntime,Cj as detectProjectConfig,Jh as detectFormat,tl as detectBuildMode,cf as derived,Gj as deploy,Yi as defineStxConfig,Zn as defineStore,Kp as defineSlots,vq as defineSiteConfig,zq as definePropsWithValidation,yq as defineProps,Si as definePlugin,Qc as definePageMeta,R as defineMiddleware,Dg as defineForm,Fp as defineExpose,Ep as defineEmits,mh as defineDirective,_p as defineCustomElement,Wm as defineConfig,nh as defineClientDirective,Zf as defineAsyncComponent,vp as defaultMediaConfig,ik as defaultImageConfig,ld as defaultI18nConfig,da as defaultHeatmapConfig,Zc as defaultFormClasses,Na as defaultFilters,Gc as defaultCspConfig,Ui as defaultConfig,Jq as default,ab as deepMergeThemes,Ae as dedupeScopedStyles,Oh as decodeThumbhash,Bc as cspNonceDirective,Ac as cspDirective,jp as crossfadeTransition,eo as crop,ig as createVirtualList,Di as createVideoDirective,Bm as createVercelHandler,nn as createTypeChecker,Ed as createTranslateFilter,xm as createTextEncoderStream,Zp as createStxApp,wm as createStreamingResponse,Md as createStreamRenderer,Xn as createStore,U as createStorageManager,S as createServerCookieManager,mk as createScope,Uf as createSSRSuspense,$e as createRouter,$ as createRouteLocation,ln as createRoute,nk as createRef,ok as createReactive,Mp as createProvideContext,bn as createProject,Vm as createProductionBuild,Ia as createPlaceholder,Fl as createOptimizedBuild,Cm as createNetlifyHandler,uj as createNetlifyClient,aa as createMiddlewareContext,kn as createMiddleware,ap as createLazyObserver,cg as createKeepAliveCache,tm as createKVNamespace,sg as createIslandRegistry,oi as createImgDirective,dk as createImagePlugin,Yj as createImageHandler,bk as createImageDirective,ia as createHeatmapAggregator,xj as createFileManifest,sm as createEnvAccessor,Mb as createEnhancedError,vm as createEdgeHandler,um as createEdgeCache,dh as createDetailedErrorMessage,Am as createDenoHandler,Dj as createDefaultNetlifyConfig,Fc as createCspHeaders,Em as createCookie,pk as createComputed,lk as createComponentInstance,zm as createCloudflareHandler,T as createClientCookieManager,oh as createBuiltinDirectives,Zp as createApp,F as createAnimationTimeline,ho as cover,Vd as convertToCommonJS,oo as contrast,go as contain,Lb as consoleError,zb as configureErrorHandling,Xi as config,pk as computed,Zl as compressResponse,te as composerPattern,se as composer,$k as composeShellWithPage,Ul as componentDirective,_g as componentClientSignalNames,nl as compileTemplate,a as collectRepeatedFlag,wj as collectDeployFiles,ti as clearVideoCache,md as clearTranslationCache,If as clearStoreCache,rj as clearStorage,No as clearSignatureCache,Vh as clearPlaceholderCache,ae as clearOnceStore,oc as clearNonce,Y as clearMiddleware,ak as clearImageCache,rb as clearErrorMessages,zf as clearDevCaches,Ra as clearCustomFilters,ve as clearComposers,Jf as clearComposableCache,eh as clearComponentCache,ci as clearCache,Bn as cleanupLoadingIndicator,Xk as classifyScript,Yk as classifyAllScripts,on as checkTemplateFile,pn as checkTemplate,Af as checkCache,Ko as checkAuthAccess,i as checkA11yWithRegex,j as checkA11y,Pl as channel,Jm as captureScreenshots,Im as captureScreenshot,yd as cancelPendingLoads,vj as calculateSha1,xh as calculateOptimalWidths,Bf as cacheTemplate,Fi as buildWebComponents,rn as buildVirtualSource,xp as buildViews,$n as buildUrl,Gd as buildSuspenseResolveScript,uq as buildStaticSite,il as buildRuntimeAsset,jl as buildRouterAsset,tq as buildLangPickerScript,Dh as buildImageUrl,Re as buildHtmlAttrs,rl as buildForProduction,Wl as buildComponentLibrary,Lo as buildAuthParams,sl as buildApp,sq as buildAlternateLinks,Um as build,Nl as broadcastPrivate,Ol as broadcastPresence,Kl as broadcast,no as brightness,io as blur,Fo as batchSignUrls,ef as batch,n as autoFixA11yFile,o as autoFixA11yDirectory,m as autoFixA11y,vo as auto,e as attributeValue,kl as assetTags,ja as asInvocableStatement,Gq as arrayOf,pq as applyTranslations,ii as applyTransformations,Sg as applySlots,Tl as applyPropDefaults,yo as applyPreset,Te as applyHtmlAttrs,Vc as applyHead,Za as applyFilters,uc as apiCspPreset,y as animationGroupDirective,zi as analyzeVideo,vl as analyzeUsage,Vk as analyzeTemplate,Wk as analyzeProject,vl as analyzeDirectiveUsage,mb as analyticsDirective,en as addStore,dn as addPage,yc as addNonceToInlineContent,fn as addLayout,cn as addComponent,Sm as actionRedirectResponse,Q as abortNavigation,p as a11yDirective,wf as __setSignalsGeneratorsForTest,Le as __setBuildIdForTest,qi as VideoProcessorCache,Eg as Validator,s as TransitionType,u as TransitionEase,t as TransitionDirection,Zb as Tokenizer,mn as TemplateTypeChecker,Mm as TEMPLATE_PRESETS,Ib as StxValidationError,Eb as StxSyntaxError,Gb as StxSecurityError,Fb as StxRuntimeError,Hb as StxFileError,Db as StxError,Vp as Show,Hd as SUSPENSE_RESOLVER_RUNTIME,Aa as STX_AUTO_IMPORTS,ta as STATE_DIR_ENV_VAR,B as SPRING_PRESETS,Tm as ProductionBuild,Xp as Portal,an as PROJECT_TEMPLATES,xo as PRESETS,Sn as MemorySessionStore,uh as MIME_TYPES,rh as MEDIA_DEFAULT_WIDTHS,th as MEDIA_DEFAULT_FORMATS,dl as LAYOUT_TYPES_FILE,fi as ImageProcessorCache,Wj as ImageProcessingError,Nn as HydrationRuntime,cj as HotReloadServer,ha as HeatmapAggregator,Pe as HTML_CLASS_MARKER,Oe as HTML_ATTRS_MARKER,Op as Fragment,Wp as For,Qb as ErrorLogger,ub as ErrorCodes,kj as EXTERNALIZED_ASSET_DIR,Ij as DeployError,Jj as DEFAULT_WIDTHS,v as DEFAULT_TRANSITION_OPTIONS,sa as DEFAULT_STATE_DIR,Lj as DEFAULT_QUALITY,Kh as DEFAULT_PLACEHOLDER_OPTIONS,Kj as DEFAULT_FORMATS,sh as DEFAULT_DPR_VALUES,En as ComponentHMRHandler,Ch as COMMON_SIZES,Ce as COLOR_MODE_BOOT_MARKER,De as COLOR_MODE_BOOT_GLOBAL,Ne as CLOAK_STYLE,Rl as BroadcastServer,Ql as Broadcast,Ie as BUILD_ID_META,Je as BUILD_ID_HEADER,Lh as BLUR_UP_CSS,fq as $path};
|
|
2
|
+
import{$ as Gk,$a as sm,$b as Kn,$c as Lo,$d as Lp,A as qj,Aa as Dl,Ab as cn,Ac as ko,Ad as kp,Ae as qq,B as rj,Ba as El,Bb as dn,Bc as lo,Bd as lp,Be as rq,C as sj,Ca as Fl,Cb as en,Cc as mo,Cd as mp,Ce as sq,D as tj,Da as Sl,Db as fn,Dc as no,Dd as np,De as tq,E as jk,Ea as Tl,Eb as gn,Ec as oo,Ed as op,Ee as uq,F as kk,Fa as Ul,Fb as hn,Fc as po,Fd as pp,Fe as vq,G as lk,Ga as Vl,Gb as jn,Gc as qo,Gd as qp,Ge as wq,H as mk,Ha as Wl,Hb as kn,Hc as ro,Hd as rp,He as xq,I as nk,Ia as _l,Ib as ln,Ic as so,Id as sp,Ie as yq,J as ok,Ja as $l,Jb as mn,Jc as to,Jd as tp,Je as zq,K as pk,Ka as am,Kb as nn,Kc as uo,Kd as up,Ke as Aq,L as qk,La as bm,Lb as on,Lc as vo,Ld as vp,Le as Bq,M as rk,Ma as cm,Mb as pn,Mc as wo,Md as wp,Me as Cq,N as sk,Na as dm,Nb as qn,Nc as xo,Nd as xp,Ne as Dq,O as tk,Oa as em,Ob as xn,Oc as yo,Od as yp,Oe as Eq,P as uk,Pa as fm,Pb as yn,Pc as zo,Pd as zp,Pe as Fq,Q as vk,Qa as gm,Qb as zn,Qc as Ao,Qd as Ap,Qe as Gq,R as wk,Ra as hm,Rb as An,Rc as Bo,Rd as Bp,Re as Hq,S as xk,Sa as im,Sb as Bn,Sc as Co,Sd as Cp,Se as Iq,T as yk,Ta as jm,Tb as Cn,Tc as Do,Td as Dp,Te as Jq,U as zk,Ua as km,Ub as Dn,Uc as Eo,Ud as Ep,Ue as Kq,V as Ak,Va as lm,Vb as En,Vc as Fo,Vd as Fp,Ve as Lq,W as Bk,Wa as mm,Wb as Fn,Wc as Go,Wd as Gp,We as Mq,X as Ck,Xa as nm,Xb as Gn,Xc as Ho,Xd as Hp,Xe as Nq,Y as Dk,Ya as pm,Yb as Hn,Yc as Io,Yd as Ip,Z as Ek,Za as qm,Zb as In,Zc as Jo,Zd as Jp,_ as Fk,_a as rm,_b as Jn,_c as Ko,_d as Kp,aa as Hk,ab as tm,ac as Ln,ad as Mo,ae as Mp,ba as Ik,bb as um,bc as Mn,bd as No,be as Np,ca as Jk,cb as vm,cc as Nn,cd as Oo,ce as Op,da as Kk,db as wm,dc as On,dd as Po,de as Pp,ea as Lk,eb as xm,ec as Pn,ed as Qo,ee as Qp,fa as Mk,fb as ym,fc as Qn,fd as Ro,fe as Rp,ga as Nk,gb as zm,gc as Rn,gd as So,ge as Sp,ha as Ok,hb as Am,hc as Sn,hd as To,he as Tp,ia as Pk,ib as Bm,ic as Tn,id as Uo,ie as Up,ja as Qk,jb as Cm,jc as Un,jd as Vo,je as Vp,ka as Rk,kb as Dm,kc as Vn,kd as Wo,ke as Wp,la as Sk,lb as Em,lc as Wn,ld as Xo,le as Xp,ma as Tk,mb as Fm,mc as Xn,md as Yo,me as Yp,na as Uk,nb as Gm,nc as Yn,nd as Zo,ne as Zp,o as a,oa as Vk,ob as Hm,oc as Zn,od as _o,oe as _p,p as bj,pa as Wk,pb as Km,pc as _n,pd as $o,pe as fq,q as cj,qa as tl,qb as Lm,qc as $n,qd as ap,qe as gq,r as dj,ra as ul,rb as Mm,rc as ao,rd as bp,re as hq,s as ej,sa as vl,sb as Nm,sc as bo,sd as cp,se as iq,t as fj,ta as wl,tb as Tm,tc as co,td as dp,te as jq,u as gj,ua as xl,ub as Um,uc as eo,ud as ep,ue as kq,v as hj,va as yl,vb as Vm,vc as fo,vd as fp,ve as lq,w as ij,wa as zl,wb as Wm,wc as go,wd as gp,we as mq,x as jj,xa as Al,xb as $m,xc as ho,xd as hp,xe as nq,y as oj,ya as Bl,yb as an,yc as io,yd as ip,ye as oq,z as pj,za as Cl,zb as bn,zc as jo,zd as jp,ze as pq}from"./chunk-bmpkpgx2.js";import{$e as un,Ye as rn,Ze as sn,_e as tn,af as vn,bf as wn}from"./chunk-jsndbe2q.js";import{cf as Im,df as Jm}from"./chunk-9xh78snm.js";import{ef as Om}from"./chunk-9kf4q3ec.js";import{ff as sl}from"./chunk-vydqh4xr.js";import{gf as Xl,hf as Yl,if as Zl,jf as om,kf as Pm,lf as Qm,mf as Rm,nf as Sm,of as Xm,pf as Ym,qf as Zm,rf as _m}from"./chunk-syy7d9w2.js";import{Af as Cj,Bf as Dj,Cf as Ej,Df as Fj,Ef as Gj,Ff as Hj,Gf as Ij,sf as uj,tf as vj,uf as wj,vf as xj,wf as yj,xf as zj,yf as Aj,zf as Bj}from"./chunk-fnkxbnka.js";import{Hf as Zj,If as _j,Jf as $j,Kf as ak,Lf as bk,Mf as ck,Nf as dk,Of as ek,Pf as fk,Qf as gk,Rf as hk,Sf as ik}from"./chunk-1mhc4g86.js";import{Tf as Xj,Uf as Yj}from"./chunk-1e25ksp6.js";import{Vf as Si,Xf as Ti}from"./chunk-9b82d4g5.js";import{bg as Jj,cg as Kj,dg as Lj,eg as Mj,fg as Nj,gg as Oj,hg as Pj,jg as Qj,kg as Rj,lg as Sj,mg as Tj,ng as Uj,og as Vj,rg as Wj}from"./chunk-ygr11tgz.js";import{sg as hl,tg as il,ug as jl,vg as kl,wg as nl,xg as rl}from"./chunk-44423f7c.js";import{Bg as ml,yg as ll}from"./chunk-ndnc7k2n.js";import{Jg as Xk,Kg as Yk,Lg as Zk,Mg as _k,Ng as $k,Og as al,Pg as bl,Qg as cl,Rg as ol,Sg as pl,Tg as ql}from"./chunk-5gb0zjx0.js";import{$g as Nl,Ug as Gl,Vg as Hl,Wg as Il,Xg as Jl,Yg as Kl,Zg as Ll,_g as Ml,ah as Ol,bh as Pl,ch as Ql,dh as Rl}from"./chunk-st5qggks.js";import{eh as Gg}from"./chunk-z2sp0k8d.js";import{fh as Ng,gh as Og,hh as Pg,ih as Qg,jh as Rg,kh as Sg}from"./chunk-910sy8sk.js";import{lh as fi,mh as gi,nh as hi,rh as ii,sh as ji,th as ki}from"./chunk-mkm91b6w.js";import{Ah as wi,Bh as xi,Ch as yi,Dh as zi,Eh as Ai,uh as qi,vh as ri,wh as si,xh as ti,yh as ui,zh as vi}from"./chunk-e0460y7f.js";import{Fh as Xh,Gh as Yh,Hh as Zh,Ih as _h,Jh as $h,Lh as ai,Mh as bi,Nh as ci,Oh as di,Ph as ei}from"./chunk-q8szpd6w.js";import{Qh as Tf,Rh as Uf,Sh as Vf,Th as Wf,Uh as Xf}from"./chunk-w0ng9e1m.js";import{Vh as Yf,Wh as Zf,Xh as _f,Yh as $f,Zh as ag}from"./chunk-x13f5bbe.js";import{$h as cg,_h as bg,ai as dg,bi as eg,ci as fg,di as gg,ei as hg}from"./chunk-ymccpdg6.js";import{fi as ig,gi as jg,hi as kg,ii as lg,ji as mg,ki as ng}from"./chunk-vgk5v31k.js";import{mi as og,ni as pg,oi as qg,pi as rg,qi as sg,ri as tg,si as ug,ti as vg,ui as wg,vi as xg,wi as yg,xi as zg,yi as Ag,zi as Bg}from"./chunk-n8zpm7xb.js";import{Bi as Cg,Ci as Dg,Di as Eg,Ei as Fg}from"./chunk-y4hkqsgw.js";import{Ji as sf,Ki as tf,Li as uf,Mi as vf,Ni as wf,Oi as xf,Pi as yf,Qi as zf,Ri as Af,Si as Bf,Ti as Cf}from"./chunk-evxg9pe7.js";import{Ui as Hf,Vi as If}from"./chunk-12n9mz15.js";import{Yi as Jf}from"./chunk-abzhv6v3.js";import"./chunk-ht51fz7w.js";import{aj as Kf}from"./chunk-fvjh7rx0.js";import{bj as Lf,cj as Mf}from"./chunk-b6jhznkh.js";import{dj as Nf,ej as Of,fj as Pf,gj as Qf,hj as Rf,ij as Sf}from"./chunk-hyrjade7.js";import{jj as Fd,kj as Gd,lj as Hd,mj as Id,nj as Jd,oj as Kd,pj as Ld,qj as Md,rj as Nd,sj as Od,tj as Pd,uj as Qd,vj as Rd,wj as Sd}from"./chunk-cm0ykjs1.js";import{xj as qf,yj as rf}from"./chunk-whq99ytc.js";import{Fj as bf,Gj as cf,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}from"./chunk-3es366z4.js";import{kk as $p,lk as aq,mk as bq,nk as cq,ok as dq,pk as eq}from"./chunk-xm6kwq2r.js";import{qk as kj,rk as lj,sk as mj,tk as nj,uk as dl,vk as el,wk as fl,xk as gl}from"./chunk-ycn1vnv2.js";import"./chunk-yckd6ks5.js";import"./chunk-zgvga8rc.js";import{$l as Ka,$m as Mb,$n as ad,$o as fe,$q as Kh,Al as ia,Am as mb,An as lc,Ao as Bd,Ap as Ge,Aq as ah,Ar as Ki,Bn as mc,Bo as Cd,Bp as He,Bq as bh,Br as Li,Cm as nb,Cn as nc,Co as Dd,Cp as Ie,Cq as ch,Cr as Mi,Dl as ja,Dm as ob,Dn as oc,Do as Ed,Dp as Je,Dq as dh,Dr as Ni,El as ka,Em as pb,En as pc,Ep as Ke,Eq as eh,Er as Oi,Fl as la,Fm as qb,Fn as qc,Fo as Td,Fp as Le,Fq as fh,Fr as Pi,Gl as ma,Gm as rb,Gn as rc,Gp as Me,Gq as gh,Gr as Qi,Hl as na,Hm as sb,Hn as sc,Hp as Ne,Hq as hh,Hr as Ri,Im as tb,In as tc,Ip as Oe,Iq as rh,Ir as Ui,Jm as ub,Jn as uc,Jp as Pe,Jq as sh,Jr as Vi,Kl as qa,Km as vb,Kn as vc,Kp as Qe,Kq as th,Kr as Wi,Ll as ra,Lm as wb,Ln as wc,Lp as Re,Lq as uh,Lr as Xi,Ml as ya,Mm as xb,Mn as xc,Mo as Ud,Mp as Se,Mq as vh,Mr as Yi,Nl as za,Nm as yb,Nn as yc,Np as Te,Nq as wh,Nr as Zi,Ol as Aa,Om as zb,On as zc,Oo as Vd,Op as Ue,Oq as xh,Or as _i,Pl as Ba,Pm as Ab,Pn as Ac,Pp as Ve,Pq as yh,Pr as $i,Ql as Ca,Qm as Bb,Qn as Bc,Qo as Wd,Qp as We,Qq as zh,Qr as aj,Rl as Da,Rm as Cb,Rn as Cc,Ro as Xd,Rp as Xe,Rq as Ah,Sl as Ea,Sm as Db,Sn as Dc,So as Yd,Sp as Ye,Sq as Bh,Tl as Fa,Tm as Eb,Tn as Ec,To as Zd,Tp as Ze,Tq as Ch,Ul as Ga,Um as Fb,Un as Fc,Uo as _d,Up as _e,Uq as Dh,Vm as Gb,Vn as Gc,Vo as $d,Vp as $e,Vq as Eh,Wm as Hb,Wn as Hc,Wo as ae,Wp as af,Wq as Fh,Xm as Ib,Xn as Ic,Xo as be,Xq as Gh,Yl as Ha,Ym as Jb,Yn as Zc,Yo as ce,Yp as Df,Yq as Hh,Zl as Ia,Zm as Kb,Zn as _c,Zo as de,Zq as Ih,_l as Ja,_m as Lb,_n as $c,_o as ee,_q as Jh,am as La,an as Nb,ao as bd,ap as ge,ar as Lh,bm as Ma,bn as Ob,bo as cd,bp as he,br as Mh,cn as Pb,co as dd,cp as ie,cr as Nh,dl as s,dn as Qb,do as ed,dp as je,dr as Oh,el as t,em as Na,en as Rb,eo as fd,ep as ke,er as Ph,fl as u,fm as Oa,fn as Sb,fo as gd,fp as le,fr as Qh,gl as v,gm as Pa,gn as Tb,go as hd,gp as me,gr as Rh,hl as w,hm as Qa,hn as Ub,ho as id,hp as ne,hr as Sh,il as x,im as Ra,in as Vb,io as jd,ip as oe,iq as Ef,ir as Th,jl as y,jm as Sa,jn as Wb,jo as kd,jp as pe,jq as Ff,jr as Uh,kl as z,km as Ta,kn as Xb,ko as ld,kp as qe,kq as Gf,kr as Vh,ll as A,lm as Ua,ln as Yb,lo as md,lp as re,lq as Hg,lr as Wh,ml as B,mm as Va,mn as Zb,mo as nd,mp as se,mq as Ig,mr as li,nl as C,nm as Wa,nn as _b,no as od,np as te,nq as Jg,nr as mi,ol as D,om as Xa,on as $b,oo as pd,op as ue,oq as Kg,or as ni,pl as E,pm as Ya,pn as ac,po as qd,pp as ve,pq as Lg,pr as oi,ql as F,qm as Za,qn as bc,qo as rd,qp as we,qq as Mg,qr as pi,rl as G,rm as _a,rn as cc,ro as sd,rp as xe,rq as Tg,rr as Bi,sl as H,sm as $a,sn as dc,so as td,sp as ye,sq as Ug,sr as Ci,tl as I,tn as ec,to as ud,tp as ze,tq as Vg,tr as Di,ul as J,um as gb,un as fc,uo as vd,up as Ae,uq as Wg,ur as Ei,vl as da,vm as hb,vn as gc,vo as wd,vp as Be,vq as Xg,vr as Fi,wl as ea,wm as ib,wn as hc,wo as xd,wp as Ce,wq as Yg,wr as Gi,xl as fa,xm as jb,xn as ic,xo as yd,xp as De,xq as Zg,xr as Hi,yl as ga,ym as kb,yn as jc,yo as zd,yp as Ee,yq as _g,yr as Ii,zl as ha,zm as lb,zn as kc,zo as Ad,zp as Fe,zq as $g,zr as Ji}from"./chunk-n9eahkjg.js";import{$r as n,Rr as d,Sr as e,Tr as f,Ur as g,Vr as h,Wr as i,Xr as j,Yr as k,Zr as l,_r as m,as as o,bs as p,cs as q,ds as r}from"./chunk-8src5smc.js";import{es as b,fs as c}from"./chunk-gcnrdgrq.js";import{gs as oa,hs as pa}from"./chunk-xp3fp266.js";import{is as ih,js as jh,ks as kh,ls as lh,ms as mh,ns as nh,os as oh,ps as ph,qs as qh}from"./chunk-nye9brje.js";import{Es as db,Fs as eb,Gs as fb,rs as ab,ss as bb,us as cb}from"./chunk-jvqjh17y.js";import{Hs as sa,Is as ta,Js as ua,Ks as va,Ls as wa,Ms as xa}from"./chunk-cbc56wpd.js";import{$s as Xc,Ns as Jc,Os as Kc,Ps as Lc,Qs as Mc,Rs as Nc,Ss as Oc,Ts as Pc,Us as Qc,Vs as Rc,Ws as Sc,Xs as Tc,Ys as Uc,Zs as Vc,_s as Wc,at as Yc}from"./chunk-x0zh76yv.js";import"./chunk-0ae6chzd.js";import"./chunk-kjr22neh.js";import{Ft as P,Gt as Q,Ht as R,It as S,Jt as T,Kt as U,Lt as V,Mt as W,Nt as X,Ot as Y,Pt as Z,Qt as _,Rt as $,St as aa,Tt as ba,Vt as ca,pt as K,qt as L,tt as M,yt as N,zt as O}from"./chunk-3952ykhb.js";import"./chunk-dtmwr674.js";import"./chunk-pw0rzgpv.js";export{Ej as writeNetlifyConfig,pl as writeManifest,hk as writeImageManifest,Gn as wrapComponentForHMR,Aq as withDefaults,Ri as webComponentDirectiveHandler,wo as watermark,yp as watchViews,rk as watchMultiple,sk as watchEffect,qk as watch,Gk as waitForStore,wd as waitForLocale,sn as virtualPathFor,Ei as videoDirective,Tb as validators,Eq as validated,id as validateValueEnhanced,Ig as validateTemplate,Bo as validateParams,jd as validateFormEnhanced,np as validateFile,ed as validateFields,dd as validateField,Kg as validateDirective,Dc as validateCspDirectives,Zi as validateConfig,ul as validateComponentScripts,Sl as validateComponentProps,Gf as validateClientScript,Fg as v,Ua as usesSignalsInScript,Xg as userComponentFileExists,lg as useVirtualList,Rc as useTitle,Fk as useStoreOrThrow,Yn as useStore,oj as useStorage,Jp as useSlots,qj as useSessionStorage,Oc as useSeoMeta,Hk as useRouteParams,Jk as useRouteParamOrThrow,Ik as useRouteParam,Rc as usePageTitle,pf as useOptimistic,Lk as useMiddlewareValue,Kk as useMiddlewareState,pj as useLocalStorage,zn as useLoadingIndicator,Mc as useHead,Cg as useForm,Lp as useAttrs,pp as uploadFiles,op as uploadFile,Bk as updateInstance,nf as untrack,lh as unregisterDirective,Ck as unmountInstance,$a as unescapeHtml,vn as typecheckStxFiles,Wg as transpileTypeScript,oq as translate,w as transitionDirective,Ml as toUsers,Ll as toUser,fo as thumbnail,gp as thumbHashToRGBA,hp as thumbHashToDataURL,sf as templateCache,Dn as stxClientHelpers,me as structuredDataDirective,rq as stripLocalePrefix,al as stripDocumentWrapper,pa as stripCommentsAndLiterals,ym as stringToStream,rc as strictCspPreset,Nd as streamingSuspenseDirective,Rd as streamToResponse,Ld as streamTemplateSimple,Fd as streamTemplate,jj as stopHmrServer,Il as stopBroadcasting,va as stateDirName,wa as stateDir,bf as state,Xe as startsDocument,_m as startProductionServer,Om as startInteractive,Hl as startBroadcasting,D as staggerDirective,zo as srcsetUrls,E as springDirective,ac as splitByPipe,tn as sourcePathFor,Go as smartBatchSign,Zg as slotContentHasExpressions,Eo as signUrl,Ug as shouldTranspileTypeScript,gj as shouldReloadOnChange,Jo as shouldRefreshSignature,hj as shouldIgnoreFile,dg as shouldCacheComponent,jo as sharpen,Hq as shape,ua as setStateDir,Pk as setRouteParams,Qk as setMiddlewareState,Dp as setGlobalProvide,ob as setErrorLocale,jk as setCurrentInstance,si as setCachedVideoResult,hi as setCachedImageResult,bi as setCached,Kq as serveStxFile,Mq as serveMultipleStxFiles,bj as serveMarkdownFile,jn as serveFile,Nq as serveApp,hn as serve,Jn as serializeState,om as serializeSetCookie,lo as sepia,Pc as seoMetaToHeadConfig,x as scrollAnimateDirective,q as screenReaderDirective,Ii as scopeHTML,Hi as scopeCSS,pe as scanForSitemapEntries,k as scanA11yTargets,l as scanA11yIssues,po as saturation,Co as sanitizeParams,Vb as sanitizeFilePath,Wb as sanitizeExpression,Xb as sanitizeDirectiveParams,Ub as sanitizeDirectiveParam,Yb as sanitizeComponentProps,Ob as safeExecuteAsync,Nb as safeExecute,fe as runPreProcessingMiddleware,ge as runPostProcessingMiddleware,Rm as runPageAction,hf as runMountCallbacks,ba as runMiddleware,zk as runHooks,hq as runDoctor,jf as runDestroyCallbacks,ue as runComposers,qo as rotate,Gg as rewriteImagesWithSiblings,bh as resolveTemplatePath,c as resolveStxTargets,Vi as resolveStxDirectories,nq as resolveI18n,co as resize,Ha as resetPlaceholders,Lc as resetHead,In as resetHMRHandler,Bb as resetErrorConfig,Cq as required,La as replacePlaceholders,wp as renderView,Bi as renderVideoComponent,za as renderVendorStyleTags,Sp as renderToString,Tp as renderToStream,Up as renderToDOM,fp as renderThumbhashToCanvas,eq as renderTemplateString,cq as renderTemplate,dq as renderString,Id as renderStreamingPage,Pg as renderSlot,Vf as renderSSRSuspense,Ro as renderProtectedVideo,Qo as renderProtectedImg,Do as renderMediaUpload,bq as renderMarkdownView,fl as renderLayoutTypes,li as renderImgComponent,Zj as renderImageComponent,Tc as renderHtmlAttrs,Sc as renderHead,zp as renderEmail,$g as renderComponentWithSlot,Uc as renderBodyAttrs,Tn as render,tc as relaxedCspPreset,cd as registerValidationRule,Pd as registerStreamingDirectives,_n as registerStoresClient,Nk as registerStore,ne as registerSeoDirectives,V as registerMiddleware,Pa as registerFilters,Oa as registerFilter,qb as registerErrorMessages,hd as registerEnhancedValidationRule,ih as registerDirective,Cc as registerCspDirectives,Vl as registerComponentDirectives,J as registerAnimationDirectives,r as registerA11yDirectives,nk as ref,Gm as redirect,xa as rebaseOntoStateDir,$i as readMarkdownFile,tf as readFileCached,ok as reactive,uo as quality,Oo as pruneSignatureCache,ei as pruneCache,Bp as provide,aq as protectCodeBlocks,Bq as prop,ye as processVueTemplate,jg as processVirtualListDirectives,ng as processVirtualGridDirectives,Ai as processVideo,fd as processValidateDirective,Dd as processTranslateDirective,Pf as processTransitionDirectives,Sf as processTransitionAttributes,Xc as processTitleDirective,jb as processTemplateBindings,Lf as processTeleportDirectives,Tf as processSuspenseDirectives,ie as processStructuredData,Jd as processStreamDirectives,Ag as processStaticDirectives,de as processStackReplacements,ce as processStackPushDirectives,Qg as processSlots,_k as processShell,we as processServerBindings,je as processSeoDirective,Qd as processSectionDirectives,Be as processScopedStyles,hb as processReactiveBindings,So as processProtectedMedia,tg as processPartialHydrationDirectives,Ff as processOnceDirective,ee as processMiddleware,he as processMetaDirectives,Yc as processMetaDirective,aj as processMarkdownFileDirectives,gh as processMarkdownDirectives,Zd as processLoops,bg as processKeepAliveDirectives,Ef as processJsonDirective,mg as processInfiniteListDirectives,be as processIncludes,ni as processImgComponents,$j as processImageComponents,Oj as processImage,Wc as processHeadDirective,_c as processForms,ad as processFormInputDirectives,Ya as processExpressions,ma as processEventDirectives,bd as processErrorDirective,ze as processDynamicComponents,Hg as processDirectives,qh as processDirectiveAttributes,Kf as processDeferDirectives,Hc as processCustomDirectives,zc as processCspDirectives,Iq as processComponentProps,Ga as processClientScript,$c as processBasicFormDirectives,Yf as processAsyncDirectives,Ic as processAppearanceBootstrapDirective,A as processAnimationDirectives,f as processA11yDirectives,sd as preloadTranslationsBackground,rd as preloadTranslations,yn as preloadIslandHandlers,Td as preloadIconCollection,Dl as poolStrings,Ti as pluginManager,Of as performLeave,Nf as performEnter,kf as pendingLifecycleCounts,of as peek,_d as partialsCache,Ci as parseVideoDirectiveOptions,ao as parseUrl,ip as parseThumbhashString,gc as parseSwitchBlock,Ng as parseSlots,Og as parseSlotElement,lc as parseScriptDeclarations,Pi as parseSFCComponent,To as parseProtectedArgs,Yd as parseLoopBinding,mi as parseImgComponent,Eh as parseImageUrl,_j as parseImageComponent,Pm as parseFormBody,ic as parseExpressionWithFilters,Dm as parseCookies,_l as parseContainerSelector,dc as parseConditionalBlock,jc as parseArguments,H as parseAnimationShorthand,Dq as optional,El as optimizeTemplate,ek as optimizeImage,fk as optimizeDirectory,Fq as oneOf,$d as onceStore,wk as onUpdated,gb as onUpdate,yk as onUnmounted,Uk as onServer,uk as onMounted,ff as onMount,zg as onHydrated,Hp as onErrorCaptured,gf as onDestroy,hg as onDeactivated,Tk as onClient,vk as onBeforeUpdate,xk as onBeforeUnmount,tk as onBeforeMount,gg as onActivated,bp as observeElement,Hm as notFound,Ge as normalizeCriticalHeadOrder,Gp as nextTick,Yl as negotiateEncoding,P as navigateTo,Ak as mountInstance,z as motionDirective,sc as moderateCspPreset,Cl as minifyHtml,le as metaDirective,Qe as metaDedupKey,bo as mergeParams,Se as mergeHtmlAttrs,Nc as mergeHeadConfigs,wc as mergeCspDirectives,bb as mergeCrosswindConfig,M as matchRoute,hh as markdownDirectiveHandler,_i as markdownCache,b as looksLikeGlob,qq as localizePath,td as loadTranslationLazy,zd as loadTranslation,Wi as loadStxConfig,_ as loadMiddlewareFromDirectory,ql as loadManifest,Zo as loadElement,Jl as loadChannels,wq as lintStxStrict,$o as lazyLoadAll,_o as lazyLoad,C as keyframeDirective,Qp as jsxs,Rp as jsxDEV,Pp as jsx,Fm as jsonResponse,Od as islandDirective,yb as isTest,bl as isSpaNavigation,Ho as isSignatureValid,lf as isSignal,Mj as isSharpAvailable,rm as isServerEnvironment,Rk as isServer,wb as isProduction,d as isPresentationalRole,Wo as isNativeLazySupported,$p as isMarkdownPath,pd as isLoading,qd as isLoaded,Tg as isJavaScriptScript,Xo as isIntersectionObserverSupported,Uj as isImageFile,Nj as isImageBackendAvailable,Bd as isICUFormat,yg as isHydrated,Yg as isHydrateTrigger,qm as isEdgeEnvironment,xq as isDirectiveKind,xb as isDevelopment,mf as isDerived,fj as isCssOnlyChange,Xl as isCompressible,Sk as isClient,_f as isAsyncComponent,Qm as isActionableMethod,mo as invert,vf as invalidateFileCacheByDir,uf as invalidateFileCache,Xa as interpolateScriptsInTemplate,Va as interpolateScriptExpressions,Wa as interpolateScriptAttributes,Kb as inlineError,mq as injectThemeBootstrap,ke as injectSeoTags,jq as injectSeo,Df as injectRouterScript,ej as injectHotReload,fa as injectHeatmap,xc as injectCspMetaTag,fb as injectCrosswindCSS,Ze as injectConfigHeadTags,Fe as injectColorModeBootScript,Ue as injectCloakStyle,Me as injectBuildId,Ba as injectBrowserCoreAutoImports,lb as injectAnalytics,Cp as inject,Mk as initStoreRegistry,Hj as initNetlify,An as initLoadingIndicator,Yo as initLazyLoading,Nm as initFile,ep as initBlurUp,kp as initAllBlurUp,pi as imgDirective,ck as imageDirective,Ym as hydrateTemplateStream,Xm as hydrateTemplate,xn as hydrateIslands,vg as hydrateIsland,Zm as hydrateFragment,wg as hydrateByStrategy,xg as hydrateAll,Qn as hydrate,gn as htmlResponse,Ve as hoistLeadingHeadTags,He as hoistColorModeBootScript,ga as heatmapDirective,Zh as hashString,Cf as hashFilePath,Xh as hashFile,Yh as hashBuffer,xe as hasVueTemplateSyntax,Xd as hasVariables,Vn as hasStore,Ma as hasPlaceholders,Fj as hasNetlifyConfig,X as hasMiddleware,na as hasEventDirectives,Ye as hasDocumentShell,Lg as hasDirectives,h as hasDOMSupport,Xj as handleImageRequest,Ip as handleError,Yp as h,Tj as groupVariantsByFormat,ko as grayscale,$m as gitHash,wl as getUnusedDirectives,ud as getTranslationSync,nd as getTranslationCacheStats,vd as getTranslationAsync,Cd as getTranslation,Aj as getTotalSize,Io as getTimeUntilExpiry,Hf as getStoreScript,Wn as getStoreNames,Un as getStore,tj as getStorageSize,sj as getStorageKeys,ch as getSourceLineInfo,Vg as getSharedTranspiler,g as getScreenReaderOnlyStyle,Ji as getScopeAttribute,af as getRouteParams,qa as getPublicEnvDefine,ra as getPublicEnv,Jg as getPositionInfo,Ja as getPlaceholderRegistry,Wh as getPlaceholderCacheStats,Kc as getPageMeta,nc as getNonce,Vj as getMimeType,Z as getMiddlewareNames,W as getMiddleware,od as getLoadingState,xd as getLoadingLocales,Pj as getImageMetadata,Pn as getHydrationRuntime,Ok as getHydratedStoreState,ij as getHmrServer,Jc as getHead,Hn as getHMRHandler,Ih as getFormatExtension,$h as getFileMtime,Sj as getFallbackVariant,sb as getErrorMessage,pb as getErrorLocale,Ab as getErrorConfig,vb as getErrorCodeName,kh as getDirectives,jh as getDirective,kk as getCurrentInstance,vc as getCspPreset,Ec as getCspHeaderName,cb as getCrosswindServeAsset,fh as getComponentCacheStats,ri as getCachedVideoResult,Mo as getCachedSignature,xf as getCachedSignalsRuntime,yf as getCachedRouterScript,Uh as getCachedPlaceholder,gi as getCachedImageResult,ai as getCached,di as getCacheStats,Ke as getBuildId,Gl as getBroadcastServer,Hh as getBestVariant,Qa as getAllFilters,vh as generateWidthSrcset,kg as generateVirtualListCSS,rp as generateVideoPreview,kd as generateValidationScript,sp as generateUploadRuntime,xl as generateTreeShakenBundle,Rf as generateTransitionRuntime,Qf as generateTransitionCSS,vi as generateThumbnails,Nh as generateThumbhashPlaceholder,hm as generateTemplatesDocs,Xf as generateSuspenseRuntime,Wf as generateSuspenseCSS,Kn as generateStateScript,Fh as generateSrcsetData,ki as generateSrcset,Qj as generateSrcSet,wi as generateSpriteSheet,Ap as generateSpaShell,Gh as generateSourceTags,Bh as generateSizesFromBreakpoints,Ah as generateSizesAttribute,Rj as generateSizes,oe as generateSitemapIndex,kq as generateSitemap,Vo as generateSimpleMediaPicker,Po as generateSignatureRuntime,rf as generateSignalsRuntimeDev,qf as generateSignalsRuntime,Fa as generateServerDataBridge,Gi as generateScopeId,Qi as generateSFCWebComponent,ka as generateRuntimeScript,K as generateRouteTypes,L as generateRouteManifest,qe as generateRobotsTxt,lq as generateRobots,ji as generateResponsiveVariants,Mi as generateReactiveWebComponentTS,Li as generateReactiveWebComponent,Oi as generateReactiveRuntime,Ni as generateReactiveMixin,ui as generatePoster,Th as generatePlaceholderStyle,Sh as generatePlaceholderCSS,Mh as generatePlaceholder,ug as generatePartialHydrationCSS,mc as generateNonce,Bj as generateNetlifyToml,up as generateMinifiedMediaRuntime,tp as generateMediaRuntime,Uo as generateMediaManagerEmbed,ol as generateManifest,Cn as generateLoadingIndicatorHtml,dp as generateLazyLoadRuntime,gl as generateLayoutTypes,Ph as generateLQIP,fg as generateKeepAliveRuntime,eg as generateKeepAliveCSS,Bg as generateIslandManifest,qp as generateImagePreview,gk as generateImageManifest,On as generateHydrationScript,Sd as generateHydrationRuntime,Rn as generateHydrationCSS,og as generateHydrationBootstrap,dj as generateHotReloadScript,ea as generateHeatmapScript,Fn as generateHMRClientScript,xi as generateHLSManifest,Ln as generateEventBindings,zh as generateDprSrcsetWithVariableQuality,yh as generateDprSrcset,We as generateDocumentShell,mm as generateDocs,im as generateDirectivesDocs,ph as generateDirectiveRuntime,re as generateDefaultRobotsTxt,yi as generateDASHManifest,qc as generateCspMetaTag,pc as generateCspHeader,eb as generateCrosswindCSS,Np as generateCompositionRuntime,gm as generateComponentsDocs,pg as generateComponentManifest,em as generateComponentDoc,Rh as generateColorPlaceholder,Ee as generateColorModeBootScript,Dk as generateClientRuntime,_h as generateCacheKey,Da as generateBrowserAutoImportDestructuring,lp as generateBlurUpRuntime,mp as generateBlurUpCSS,ib as generateBindingsRuntime,wh as generateAutoWidthSrcset,Ca as generateAutoImportDestructuring,ag as generateAsyncComponentRuntime,$f as generateAsyncComponentCSS,I as generateAnimationRuntime,G as generateAnimationCSS,kb as generateAnalyticsScript,wn as formatTypecheckDiagnostics,qn as formatTypeErrors,Km as formatStxContent,zj as formatSize,O as formatRoutes,Lm as formatMarkdownContent,tb as formatLocalizedError,Ad as formatICU,Cb as formatFilePath,Jb as formatError,iq as formatDoctorReport,jm as formatDocsAsMarkdown,lm as formatDocsAsJson,km as formatDocsAsHtml,to as format,Bl as foldConstants,so as flipVertical,ro as flipHorizontal,hl as fingerprint,un as findRuntimeTypeDeclarations,gq as findPantryPackage,cc as findMatchingEndTag,_b as findMatchingDelimiter,oa as findInterpolationEnd,ec as findIfBlocks,hc as findExpressions,N as findErrorPage,fc as findDirectiveBlocks,yl as findDeadCode,yl as findDeadBranches,$l as findContainerRegion,fm as findComponentFiles,Lq as findCommonDir,yj as filterRequiredFiles,ah as fileExists,Ud as extractVariables,ml as extractTemplateExpressions,Kd as extractStreamBoundaries,Mn as extractState,Rg as extractSlotContent,Wd as extractScriptFromTemplate,ll as extractScriptBlocks,Ka as extractPlaceholders,bc as extractParenthesizedExpression,Ek as extractPageResponseStatus,ca as extractLayoutMetadata,Qh as extractDominantColor,kc as extractDirectiveParams,Mg as extractDirectiveNames,cl as extractContainerContent,cm as extractComponentProps,qg as extractComponentName,dm as extractComponentDescription,db as extractClassNames,Ea as extractBridgeData,rg as extractBoundProps,$b as extractBalancedExpression,ya as extractAndStripCssImports,Ki as extractAndScopeStyles,la as extractAndProcessEvents,mj as externalizeSharedAssets,nj as externalizeRepeatedAssets,lj as externalizeHtml,_a as evaluateExpression,Al as evaluateConstant,nb as evaluateAuthExpression,Ta as escapeHtmlValue,Sa as escapeHtml,Pb as errorRecovery,Rb as errorLogger,Mf as ensureTeleportTargets,_e as ensureDocumentShell,gd as enhancedValidationRules,am as enableDevTools,zl as eliminateDeadCode,df as effect,Ao as dprUrls,nm as docsCommand,el as discoverLayoutNames,cp as disconnectObserver,bm as disableDevTools,Sb as devHelpers,Zk as detectShell,pm as detectRuntime,Cj as detectProjectConfig,Jh as detectFormat,tl as detectBuildMode,cf as derived,Gj as deploy,Yi as defineStxConfig,Zn as defineStore,Kp as defineSlots,vq as defineSiteConfig,zq as definePropsWithValidation,yq as defineProps,Si as definePlugin,Qc as definePageMeta,R as defineMiddleware,Dg as defineForm,Fp as defineExpose,Ep as defineEmits,mh as defineDirective,_p as defineCustomElement,Wm as defineConfig,nh as defineClientDirective,Zf as defineAsyncComponent,vp as defaultMediaConfig,ik as defaultImageConfig,ld as defaultI18nConfig,da as defaultHeatmapConfig,Zc as defaultFormClasses,Na as defaultFilters,Gc as defaultCspConfig,Ui as defaultConfig,Jq as default,ab as deepMergeThemes,Ae as dedupeScopedStyles,Oh as decodeThumbhash,Bc as cspNonceDirective,Ac as cspDirective,jp as crossfadeTransition,eo as crop,ig as createVirtualList,Di as createVideoDirective,Bm as createVercelHandler,nn as createTypeChecker,Ed as createTranslateFilter,xm as createTextEncoderStream,Zp as createStxApp,wm as createStreamingResponse,Md as createStreamRenderer,Xn as createStore,U as createStorageManager,S as createServerCookieManager,mk as createScope,Uf as createSSRSuspense,$e as createRouter,$ as createRouteLocation,ln as createRoute,nk as createRef,ok as createReactive,Mp as createProvideContext,bn as createProject,Vm as createProductionBuild,Ia as createPlaceholder,Fl as createOptimizedBuild,Cm as createNetlifyHandler,uj as createNetlifyClient,aa as createMiddlewareContext,kn as createMiddleware,ap as createLazyObserver,cg as createKeepAliveCache,tm as createKVNamespace,sg as createIslandRegistry,oi as createImgDirective,dk as createImagePlugin,Yj as createImageHandler,bk as createImageDirective,ia as createHeatmapAggregator,xj as createFileManifest,sm as createEnvAccessor,Mb as createEnhancedError,vm as createEdgeHandler,um as createEdgeCache,dh as createDetailedErrorMessage,Am as createDenoHandler,Dj as createDefaultNetlifyConfig,Fc as createCspHeaders,Em as createCookie,pk as createComputed,lk as createComponentInstance,zm as createCloudflareHandler,T as createClientCookieManager,oh as createBuiltinDirectives,Zp as createApp,F as createAnimationTimeline,ho as cover,Vd as convertToCommonJS,oo as contrast,go as contain,Lb as consoleError,zb as configureErrorHandling,Xi as config,pk as computed,Zl as compressResponse,te as composerPattern,se as composer,$k as composeShellWithPage,Ul as componentDirective,_g as componentClientSignalNames,nl as compileTemplate,a as collectRepeatedFlag,wj as collectDeployFiles,ti as clearVideoCache,md as clearTranslationCache,If as clearStoreCache,rj as clearStorage,No as clearSignatureCache,Vh as clearPlaceholderCache,ae as clearOnceStore,oc as clearNonce,Y as clearMiddleware,ak as clearImageCache,rb as clearErrorMessages,zf as clearDevCaches,Ra as clearCustomFilters,ve as clearComposers,Jf as clearComposableCache,eh as clearComponentCache,ci as clearCache,Bn as cleanupLoadingIndicator,Xk as classifyScript,Yk as classifyAllScripts,on as checkTemplateFile,pn as checkTemplate,Af as checkCache,Ko as checkAuthAccess,i as checkA11yWithRegex,j as checkA11y,Pl as channel,Jm as captureScreenshots,Im as captureScreenshot,yd as cancelPendingLoads,vj as calculateSha1,xh as calculateOptimalWidths,Bf as cacheTemplate,Fi as buildWebComponents,rn as buildVirtualSource,xp as buildViews,$n as buildUrl,Gd as buildSuspenseResolveScript,uq as buildStaticSite,il as buildRuntimeAsset,jl as buildRouterAsset,tq as buildLangPickerScript,Dh as buildImageUrl,Re as buildHtmlAttrs,rl as buildForProduction,Wl as buildComponentLibrary,Lo as buildAuthParams,sl as buildApp,sq as buildAlternateLinks,Um as build,Nl as broadcastPrivate,Ol as broadcastPresence,Kl as broadcast,no as brightness,io as blur,Fo as batchSignUrls,ef as batch,n as autoFixA11yFile,o as autoFixA11yDirectory,m as autoFixA11y,vo as auto,e as attributeValue,kl as assetTags,ja as asInvocableStatement,Gq as arrayOf,pq as applyTranslations,ii as applyTransformations,Sg as applySlots,Tl as applyPropDefaults,yo as applyPreset,Te as applyHtmlAttrs,Vc as applyHead,Za as applyFilters,uc as apiCspPreset,y as animationGroupDirective,zi as analyzeVideo,vl as analyzeUsage,Vk as analyzeTemplate,Wk as analyzeProject,vl as analyzeDirectiveUsage,mb as analyticsDirective,en as addStore,dn as addPage,yc as addNonceToInlineContent,fn as addLayout,cn as addComponent,Sm as actionRedirectResponse,Q as abortNavigation,p as a11yDirective,wf as __setSignalsGeneratorsForTest,Le as __setBuildIdForTest,qi as VideoProcessorCache,Eg as Validator,s as TransitionType,u as TransitionEase,t as TransitionDirection,Zb as Tokenizer,mn as TemplateTypeChecker,Mm as TEMPLATE_PRESETS,Ib as StxValidationError,Eb as StxSyntaxError,Gb as StxSecurityError,Fb as StxRuntimeError,Hb as StxFileError,Db as StxError,Vp as Show,Hd as SUSPENSE_RESOLVER_RUNTIME,Aa as STX_AUTO_IMPORTS,ta as STATE_DIR_ENV_VAR,B as SPRING_PRESETS,Tm as ProductionBuild,Xp as Portal,an as PROJECT_TEMPLATES,xo as PRESETS,Sn as MemorySessionStore,uh as MIME_TYPES,rh as MEDIA_DEFAULT_WIDTHS,th as MEDIA_DEFAULT_FORMATS,dl as LAYOUT_TYPES_FILE,fi as ImageProcessorCache,Wj as ImageProcessingError,Nn as HydrationRuntime,cj as HotReloadServer,ha as HeatmapAggregator,Pe as HTML_CLASS_MARKER,Oe as HTML_ATTRS_MARKER,Op as Fragment,Wp as For,Qb as ErrorLogger,ub as ErrorCodes,kj as EXTERNALIZED_ASSET_DIR,Ij as DeployError,Jj as DEFAULT_WIDTHS,v as DEFAULT_TRANSITION_OPTIONS,sa as DEFAULT_STATE_DIR,Lj as DEFAULT_QUALITY,Kh as DEFAULT_PLACEHOLDER_OPTIONS,Kj as DEFAULT_FORMATS,sh as DEFAULT_DPR_VALUES,En as ComponentHMRHandler,Ch as COMMON_SIZES,Ce as COLOR_MODE_BOOT_MARKER,De as COLOR_MODE_BOOT_GLOBAL,Ne as CLOAK_STYLE,Rl as BroadcastServer,Ql as Broadcast,Ie as BUILD_ID_META,Je as BUILD_ID_HEADER,Lh as BLUR_UP_CSS,fq as $path};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Ag as i,Dg as t,Eg as e,Fg as HH,Gg as KH,Hg as QH,Ig as YH,yg as S,zg as s}from"./chunk-ndnc7k2n.js";import{Wi as a}from"./chunk-
|
|
2
|
+
import{Ag as i,Dg as t,Eg as e,Fg as HH,Gg as KH,Hg as QH,Ig as YH,yg as S,zg as s}from"./chunk-ndnc7k2n.js";import{Wi as a}from"./chunk-abzhv6v3.js";import{Ls as h}from"./chunk-cbc56wpd.js";import{dt as f}from"./chunk-kjr22neh.js";import{existsSync as ZH,readFileSync as XH}from"fs";import J from"path";function qH(K,Q="",V=""){let U=K.startLine>1?`
|
|
3
3
|
`.repeat(K.startLine-1):"",E=i(s(K.code)),X=K.kind==="client"||K.kind==="plain"?e(Q,K.code):"";return KH(`${U+E}
|
|
4
4
|
${X}
|
|
5
5
|
export {}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import{Ls as Jq}from"./chunk-cbc56wpd.js";import{hu as Gq}from"./chunk-pw0rzgpv.js";import $ from"path";import{hasLocalConfig as Uq}from"bunfig";var a={fg:{light:"gray-900",dark:"gray-100",description:"Primary text"},"fg-strong":{light:"gray-700",dark:"gray-300",description:"Labels, secondary headings"},"fg-muted":{light:"gray-600",dark:"gray-400",description:"Supporting text"},"fg-soft":{light:"gray-500",dark:"gray-400",description:"De-emphasised text"},"fg-subtle":{light:"gray-400",dark:"gray-500",description:"Placeholders, disabled text"},surface:{light:"gray-50",dark:"gray-800",description:"Page and panel background"},"surface-raised":{light:"gray-100",dark:"gray-700",description:"Cards, popovers"},"surface-sunken":{light:"gray-200",dark:"gray-700",description:"Wells, track backgrounds"},line:{light:"gray-200",dark:"gray-700",description:"Default border, divider"},"line-strong":{light:"gray-300",dark:"gray-600",description:"Input border, focus ring track"},accent:{light:"indigo-600",dark:"indigo-400",description:"Primary action, selected state"},info:{light:"blue-600",dark:"blue-400",description:"Informational emphasis, links"},danger:{light:"red-600",dark:"red-400",description:"Errors, destructive actions"},success:{light:"green-600",dark:"green-400",description:"Confirmation"},warning:{light:"yellow-500",dark:"yellow-400",description:"Caution"},"accent-solid":{light:"indigo-600",dark:"indigo-500",description:"Primary button fill"},"info-solid":{light:"blue-600",dark:"blue-500",description:"Informational fill"},"danger-solid":{light:"red-600",dark:"red-500",description:"Destructive button fill"},"success-solid":{light:"green-600",dark:"green-500",description:"Confirmation fill"}};function m(G){return`--stx-${G}`}function p(G,q){let Q=q.lastIndexOf("-");if(Q===-1)return typeof G[q]==="string"?G[q]:void 0;let J=G[q.slice(0,Q)];if(!J||typeof J!=="object")return;let Y=J[q.slice(Q+1)];return typeof Y==="string"?Y:void 0}function o(G){let q={};for(let[Q,J]of Object.entries(a)){let Y=p(G,J.light);if(Y===void 0)continue;q[Q]=`var(${m(Q)}, ${Y})`}return q}function t(G){let q=[],Q=[];for(let[J,Y]of Object.entries(a)){let Z=p(G,Y.light),U=p(G,Y.dark);if(Z===void 0)continue;if(q.push(` ${m(J)}: ${Z};`),U!==void 0)Q.push(` ${m(J)}: ${U};`)}if(q.length===0)return"";return["/* stx role tokens \u2014 override any of these to re-theme by meaning. */",":root {",...q,"}",".dark {",...Q,"}",""].join(`
|
|
3
|
-
`)}function s(G){return typeof G==="object"&&G!==null&&!Array.isArray(G)}function g(G,q){let Q={...G};for(let[J,Y]of Object.entries(q))Q[J]=s(Y)&&s(Q[J])?g(Q[J],Y):Y;return Q}function e(G={},q={}){let Q=G.theme||{},J=q.theme||{},{extend:Y,...Z}=J,{extend:U,...z}=Q,X=z.colors||{};z.colors={...X,...o(X)};let A=g(z,Z),L=g(U||{},Y||{});if(Object.keys(L).length>0)A.extend=L;let H=[...G.safelist||[],...q.safelist||[]],E={...G.shortcuts||{},...q.shortcuts||{}},P=[...G.preflights||[],...q.preflights||[]];return{config:{...G,...q,theme:A,safelist:H,shortcuts:E,...P.length>0?{preflights:P}:{},content:[],output:""},safelist:H,shortcuts:E,includePreflight:q.preflight!==!1,minify:q.minify===!0,tokenCSS:t(X)}}var W={reset:"\x1B[0m",bright:"\x1B[1m",dim:"\x1B[2m",underscore:"\x1B[4m",blink:"\x1B[5m",reverse:"\x1B[7m",hidden:"\x1B[8m",black:"\x1B[30m",red:"\x1B[31m",green:"\x1B[32m",yellow:"\x1B[33m",blue:"\x1B[34m",magenta:"\x1B[35m",cyan:"\x1B[36m",white:"\x1B[37m",gray:"\x1B[90m",bgBlack:"\x1B[40m",bgRed:"\x1B[41m",bgGreen:"\x1B[42m",bgYellow:"\x1B[43m",bgBlue:"\x1B[44m",bgMagenta:"\x1B[45m",bgCyan:"\x1B[46m",bgWhite:"\x1B[47m",bgGray:"\x1B[100m"};var F=null,C=!1,_=null,b="",K=!1,Qq=256,V=new Map,O=new Map,j=null,d=null;function S(G){return Bun.hash(G).toString(16).padStart(16,"0").slice(0,16)}function u(G,q){if(V.has(G))V.delete(G);else if(V.size>=Qq)V.delete(V.keys().next().value);V.set(G,q)}function Wq(G){let q=S(G);if(O.has(q))O.delete(q);else if(O.size>=Qq)O.delete(O.keys().next().value);return O.set(q,G),q}function Dq(G){let q=O.get(G);if(q===void 0)return;return O.delete(G),O.set(G,q),q}async function Xq(G){if(!j)return null;try{let q=Bun.file($.join(j,`cw-${S(G)}.css`));if(!await q.exists())return null;return await q.text()}catch{return null}}async function zq(G,q){if(!j)return;try{if(!fs.existsSync(j))fs.mkdirSync(j,{recursive:!0});await Bun.write($.join(j,`cw-${S(G)}.css`),q)}catch{}}async function qq(G){try{let q=await import(G);if(q&&q.CSSGenerator)return{CSSGenerator:q.CSSGenerator,config:q.config,build:q.build,defaultConfig:q.defaultConfig,extractClasses:q.extractClasses}}catch{}return null}function Iq(){let G=[],q=process.cwd();while(q!==$.dirname(q))G.push($.join(q,"node_modules","@cwcss","crosswind","dist","index.js")),G.push($.join(q,"node_modules","@cwcss","crosswind","src","index.ts")),G.push($.join(q,"pantry","@cwcss","crosswind","dist","index.js")),G.push($.join(q,"pantry","@cwcss","crosswind","src","index.ts")),G.push($.join(q,"node_modules","@stacksjs","crosswind","dist","index.js")),G.push($.join(q,"pantry","@stacksjs","crosswind","dist","index.js")),q=$.dirname(q);return G}function Oq(){let G=[],q=process.env.HOME||process.env.USERPROFILE||"";if(q){let Q=[$.join(q,"Code","Tools","crosswind","packages","crosswind","dist","index.js"),$.join(q,"Code","Tools","crosswind","packages","crosswind","src","index.ts"),$.join(q,"repos","stacks-org","crosswind","packages","crosswind","dist","index.js"),$.join(q,"repos","stacks-org","crosswind","packages","crosswind","src","index.ts"),$.join(q,"Code","Tools","stx","packages","stx","node_modules","@cwcss","crosswind","dist","index.js"),$.join(q,"Code","Tools","stx","packages","stx","node_modules","@stacksjs","crosswind","dist","index.js")];G.push(...Q)}return G.push($.join(process.cwd(),"..","crosswind","packages","crosswind","dist","index.js")),G.push($.join(process.cwd(),"..","crosswind","packages","crosswind","src","index.ts")),G}async function Yq(){if(C)return F;C=!0;try{let G=async(Y)=>{for(let Z of Y){if(!await Bun.file(Z).exists())continue;let U=await qq(Z);if(U){if(!process.env.STACKS_DEV_QUIET)console.log(`${W.green}[Crosswind]${W.reset} CSS engine loaded from ${$.dirname($.dirname(Z))}`);return U}}return null};if(process.env.CROSSWIND_SRC){let Y=$.resolve(process.env.CROSSWIND_SRC),Z=await G([Y]);if(!Z)throw Error(`CROSSWIND_SRC did not resolve to a Crosswind module: ${Y}`);return F=Z,F}let q=await G(Iq());if(q)return F=q,F;let Q=["@cwcss/crosswind","@cwcss/crosswind/dist/index.js","@stacksjs/crosswind","@stacksjs/crosswind/dist/index.js"];for(let Y of Q){let Z=await qq(Y);if(Z){if(F=Z,!process.env.STACKS_DEV_QUIET)console.log(`${W.green}[Crosswind]${W.reset} CSS engine loaded`);return F}}let J=await G(Oq());if(J)return F=J,F;throw Error("Crosswind CSSGenerator not found in any location")}catch{return console.warn(`${W.yellow}[Crosswind] CSS engine not available, Tailwind styles will not be generated${W.reset}`),console.warn(`${W.yellow}Run 'bun add @stacksjs/crosswind' to enable CSS generation${W.reset}`),null}}function Sq(){V.clear(),O.clear()}function xq(){F=null,C=!1,_=null,b="",V.clear(),O.clear(),d=null}async function Zq(G){try{if(!Uq({name:"crosswind",cwd:G}))return null;let{loadConfigWithResult:q}=await import("bunfig"),Q=await q({name:"crosswind",cwd:G,defaultConfig:{},checkEnv:!1,verbose:!1});if(!Q?.path||!Q.config||Object.keys(Q.config).length===0)return null;let J=$.relative(G,Q.path);if(!process.env.STACKS_DEV_QUIET)console.log(`${W.green}[Crosswind]${W.reset} Loaded config from ${J||Q.path}`);return Q.config}catch(q){if(q instanceof Error&&q.name==="ConfigNotFoundError")return null;return console.warn(`${W.yellow}[Crosswind]${W.reset} Failed to load crosswind config:`,q instanceof Error?q.message:q),null}}async function _q(G){let q=null;try{let{loadStxConfig:Q}=await import("./chunk-
|
|
3
|
+
`)}function s(G){return typeof G==="object"&&G!==null&&!Array.isArray(G)}function g(G,q){let Q={...G};for(let[J,Y]of Object.entries(q))Q[J]=s(Y)&&s(Q[J])?g(Q[J],Y):Y;return Q}function e(G={},q={}){let Q=G.theme||{},J=q.theme||{},{extend:Y,...Z}=J,{extend:U,...z}=Q,X=z.colors||{};z.colors={...X,...o(X)};let A=g(z,Z),L=g(U||{},Y||{});if(Object.keys(L).length>0)A.extend=L;let H=[...G.safelist||[],...q.safelist||[]],E={...G.shortcuts||{},...q.shortcuts||{}},P=[...G.preflights||[],...q.preflights||[]];return{config:{...G,...q,theme:A,safelist:H,shortcuts:E,...P.length>0?{preflights:P}:{},content:[],output:""},safelist:H,shortcuts:E,includePreflight:q.preflight!==!1,minify:q.minify===!0,tokenCSS:t(X)}}var W={reset:"\x1B[0m",bright:"\x1B[1m",dim:"\x1B[2m",underscore:"\x1B[4m",blink:"\x1B[5m",reverse:"\x1B[7m",hidden:"\x1B[8m",black:"\x1B[30m",red:"\x1B[31m",green:"\x1B[32m",yellow:"\x1B[33m",blue:"\x1B[34m",magenta:"\x1B[35m",cyan:"\x1B[36m",white:"\x1B[37m",gray:"\x1B[90m",bgBlack:"\x1B[40m",bgRed:"\x1B[41m",bgGreen:"\x1B[42m",bgYellow:"\x1B[43m",bgBlue:"\x1B[44m",bgMagenta:"\x1B[45m",bgCyan:"\x1B[46m",bgWhite:"\x1B[47m",bgGray:"\x1B[100m"};var F=null,C=!1,_=null,b="",K=!1,Qq=256,V=new Map,O=new Map,j=null,d=null;function S(G){return Bun.hash(G).toString(16).padStart(16,"0").slice(0,16)}function u(G,q){if(V.has(G))V.delete(G);else if(V.size>=Qq)V.delete(V.keys().next().value);V.set(G,q)}function Wq(G){let q=S(G);if(O.has(q))O.delete(q);else if(O.size>=Qq)O.delete(O.keys().next().value);return O.set(q,G),q}function Dq(G){let q=O.get(G);if(q===void 0)return;return O.delete(G),O.set(G,q),q}async function Xq(G){if(!j)return null;try{let q=Bun.file($.join(j,`cw-${S(G)}.css`));if(!await q.exists())return null;return await q.text()}catch{return null}}async function zq(G,q){if(!j)return;try{if(!fs.existsSync(j))fs.mkdirSync(j,{recursive:!0});await Bun.write($.join(j,`cw-${S(G)}.css`),q)}catch{}}async function qq(G){try{let q=await import(G);if(q&&q.CSSGenerator)return{CSSGenerator:q.CSSGenerator,config:q.config,build:q.build,defaultConfig:q.defaultConfig,extractClasses:q.extractClasses}}catch{}return null}function Iq(){let G=[],q=process.cwd();while(q!==$.dirname(q))G.push($.join(q,"node_modules","@cwcss","crosswind","dist","index.js")),G.push($.join(q,"node_modules","@cwcss","crosswind","src","index.ts")),G.push($.join(q,"pantry","@cwcss","crosswind","dist","index.js")),G.push($.join(q,"pantry","@cwcss","crosswind","src","index.ts")),G.push($.join(q,"node_modules","@stacksjs","crosswind","dist","index.js")),G.push($.join(q,"pantry","@stacksjs","crosswind","dist","index.js")),q=$.dirname(q);return G}function Oq(){let G=[],q=process.env.HOME||process.env.USERPROFILE||"";if(q){let Q=[$.join(q,"Code","Tools","crosswind","packages","crosswind","dist","index.js"),$.join(q,"Code","Tools","crosswind","packages","crosswind","src","index.ts"),$.join(q,"repos","stacks-org","crosswind","packages","crosswind","dist","index.js"),$.join(q,"repos","stacks-org","crosswind","packages","crosswind","src","index.ts"),$.join(q,"Code","Tools","stx","packages","stx","node_modules","@cwcss","crosswind","dist","index.js"),$.join(q,"Code","Tools","stx","packages","stx","node_modules","@stacksjs","crosswind","dist","index.js")];G.push(...Q)}return G.push($.join(process.cwd(),"..","crosswind","packages","crosswind","dist","index.js")),G.push($.join(process.cwd(),"..","crosswind","packages","crosswind","src","index.ts")),G}async function Yq(){if(C)return F;C=!0;try{let G=async(Y)=>{for(let Z of Y){if(!await Bun.file(Z).exists())continue;let U=await qq(Z);if(U){if(!process.env.STACKS_DEV_QUIET)console.log(`${W.green}[Crosswind]${W.reset} CSS engine loaded from ${$.dirname($.dirname(Z))}`);return U}}return null};if(process.env.CROSSWIND_SRC){let Y=$.resolve(process.env.CROSSWIND_SRC),Z=await G([Y]);if(!Z)throw Error(`CROSSWIND_SRC did not resolve to a Crosswind module: ${Y}`);return F=Z,F}let q=await G(Iq());if(q)return F=q,F;let Q=["@cwcss/crosswind","@cwcss/crosswind/dist/index.js","@stacksjs/crosswind","@stacksjs/crosswind/dist/index.js"];for(let Y of Q){let Z=await qq(Y);if(Z){if(F=Z,!process.env.STACKS_DEV_QUIET)console.log(`${W.green}[Crosswind]${W.reset} CSS engine loaded`);return F}}let J=await G(Oq());if(J)return F=J,F;throw Error("Crosswind CSSGenerator not found in any location")}catch{return console.warn(`${W.yellow}[Crosswind] CSS engine not available, Tailwind styles will not be generated${W.reset}`),console.warn(`${W.yellow}Run 'bun add @stacksjs/crosswind' to enable CSS generation${W.reset}`),null}}function Sq(){V.clear(),O.clear()}function xq(){F=null,C=!1,_=null,b="",V.clear(),O.clear(),d=null}async function Zq(G){try{if(!Uq({name:"crosswind",cwd:G}))return null;let{loadConfigWithResult:q}=await import("bunfig"),Q=await q({name:"crosswind",cwd:G,defaultConfig:{},checkEnv:!1,verbose:!1});if(!Q?.path||!Q.config||Object.keys(Q.config).length===0)return null;let J=$.relative(G,Q.path);if(!process.env.STACKS_DEV_QUIET)console.log(`${W.green}[Crosswind]${W.reset} Loaded config from ${J||Q.path}`);return Q.config}catch(q){if(q instanceof Error&&q.name==="ConfigNotFoundError")return null;return console.warn(`${W.yellow}[Crosswind]${W.reset} Failed to load crosswind config:`,q instanceof Error?q.message:q),null}}async function _q(G){let q=null;try{let{loadStxConfig:Q}=await import("./chunk-z21qzyh1.js"),J=await Q(G);if(J.css)if(typeof J.css==="string"){let Y=$.isAbsolute(J.css)?J.css:$.resolve(G,J.css);if(await Bun.file(Y).exists()){let Z=await import(Y);q=Z.default||Z,console.log(`${W.green}[Crosswind]${W.reset} Loaded config from stx.config.ts \u2192 ${J.css}`)}}else{if(q={...J.css,content:J.css.content||[],preflight:J.css.preflight??!0,minify:J.css.minify??!1},J.css.config){let Y=$.isAbsolute(J.css.config)?J.css.config:$.resolve(G,J.css.config);if(await Bun.file(Y).exists()){let Z=await import(Y);q={...Z.default||Z,...q}}}console.log(`${W.green}[Crosswind]${W.reset} Using inline CSS config from stx.config.ts`)}}catch{}return q||await Zq(G)}function Fq(G){try{let q=new WeakSet;return S(JSON.stringify(G??{},(Q,J)=>{if(typeof J==="function")return`[fn]${String(J)}`;if(typeof J==="object"&&J!==null){if(q.has(J))return"[circular]";q.add(J)}return J})??"")}catch{return"unhashable"}}async function Nq(G){if(K)return b;K=!0;try{let q=await Yq();if(!q||!q.build)return K=!1,"";if(!_)_=await Zq(G);if(!_)return K=!1,"";let Q=q.defaultConfig?.theme||{},J=_.theme||{},Y={...q.defaultConfig,..._,theme:{...Q,...J,extend:{...Q.extend||{},...J.extend||{}}}},Z=performance.now(),U=await q.build(Y),z=performance.now()-Z;if(b=U.css,console.log(`${W.cyan}[Crosswind]${W.reset} Built ${U.classes.size} classes in ${z.toFixed(1)}ms`),Y.output){let X=$.isAbsolute(Y.output)?Y.output:$.join(G,Y.output),A=$.dirname(X);if(!fs.existsSync(A))fs.mkdirSync(A,{recursive:!0});await Bun.write(X,U.css)}return K=!1,U.css}catch(q){return console.error(`${W.red}[Crosswind]${W.reset} Build error:`,q),K=!1,b}}async function kq(G){_=null,await Nq(G)}function wq(){return b}function Vq(G){let q=new Set,Q=/class\s*=\s*["']([^"']+)["']/gi,J=Q.exec(G);while(J!==null){for(let U of J[1].split(/\s+/))if(U.trim())q.add(U.trim());J=Q.exec(G)}let Y=/(?:x-class|:class)\s*=\s*"([^"]+)"/gi,Z=Y.exec(G);while(Z!==null){let U=Z[1].match(/'([^']+)'/g);if(U){for(let z of U)for(let X of z.slice(1,-1).split(/\s+/))if(X.trim())q.add(X.trim())}Z=Y.exec(G)}return q}async function jq(G,q){try{let Q=await Yq();if(!Q)return"";let J=typeof Q.extractClasses==="function"?Q.extractClasses(G):Vq(G);if(J.size===0)return"";let Y=q?$.resolve(q):process.cwd();if(!j)j=Jq(Y,"cache");let Z=[...J].sort().join(" "),U=`${d||"default"}::${Z}`,z=V.get(U);if(z!==void 0)return u(U,z),z;let X=await Xq(U);if(X!==null)return u(U,X),X;if(!_)_=await _q(Y),d=Fq(_);let A=Q.defaultConfig||Q.config,L=_||{},H=e(A,L),{safelist:E,includePreflight:P,minify:x,tokenCSS:$q}=H,h=H.config,R=new Q.CSSGenerator(h);for(let I of E)R.generate(I);for(let I of J)R.generate(I);let N=R.toCSS(P,x),i=h.shortcuts||L.shortcuts||{};for(let[I,k]of Object.entries(i)){if(!J.has(I)&&!E.includes(I))continue;let w=k.split(/\s+/).filter(Boolean);for(let T of w)R.generate(T)}N=R.toCSS(P,x);let B=N.split(`
|
|
4
4
|
`);for(let[I,k]of Object.entries(i)){if(!J.has(I)&&!E.includes(I))continue;let w=k.split(/\s+/).filter(Boolean),T=[],y=[];for(let v of w){let c=v.startsWith("dark:"),n=`.${(c?v.slice(5):v).replace(/\//g,"\\/").replace(/:/g,"\\:").replace(/\./g,"\\.").replace(/\[/g,"\\[").replace(/\]/g,"\\]").replace(/%/g,"\\%")}`;for(let M=0;M<B.length;M++){let l=B[M].trim();if(l===`${n} {`||l.startsWith(`${n} {`)){let D=M,r="";while(D<B.length){if(r+=B[D],B[D].includes("}"))break;D++}let f=r.match(/\{([^}]+)\}/);if(f)if(c)y.push(f[1].trim());else T.push(f[1].trim());break}}}if(T.length)N+=`
|
|
5
5
|
.${I} { ${T.join(" ")} }`;if(y.length)N+=`
|
|
6
6
|
@media (prefers-color-scheme: dark) { .dark .${I} { ${y.join(" ")} } }`}return N=$q+N,u(U,N),zq(U,N),N}catch(Q){return console.warn("Failed to generate Crosswind CSS:",Q),""}}async function yq(G,q,Q=!1){let J=await jq(G,q);if(!J)return G;let Y=Q?`<link data-crosswind="generated" rel="stylesheet" href="/_stx/crosswind.${Wq(J)}.css">`:`<style data-crosswind="generated">
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{rf as a}from"./chunk-
|
|
2
|
+
import{rf as a}from"./chunk-syy7d9w2.js";import"./chunk-5gb0zjx0.js";import"./chunk-n9eahkjg.js";import"./chunk-8src5smc.js";import"./chunk-gcnrdgrq.js";import"./chunk-xp3fp266.js";import"./chunk-nye9brje.js";import"./chunk-jvqjh17y.js";import"./chunk-cbc56wpd.js";import"./chunk-x0zh76yv.js";import"./chunk-0ae6chzd.js";import"./chunk-kjr22neh.js";import"./chunk-3952ykhb.js";import"./chunk-dtmwr674.js";import"./chunk-pw0rzgpv.js";export{a as startProductionServer};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{So as a,To as b}from"./chunk-
|
|
2
|
+
import{So as a,To as b}from"./chunk-n9eahkjg.js";import"./chunk-8src5smc.js";import"./chunk-gcnrdgrq.js";import"./chunk-xp3fp266.js";import"./chunk-nye9brje.js";import"./chunk-jvqjh17y.js";import"./chunk-cbc56wpd.js";import"./chunk-x0zh76yv.js";import"./chunk-0ae6chzd.js";import"./chunk-kjr22neh.js";import"./chunk-3952ykhb.js";import"./chunk-dtmwr674.js";import"./chunk-pw0rzgpv.js";export{b as processLoops,a as parseLoopBinding};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{As as g,Bs as h,Cs as i,Ds as j,Es as k,Fs as l,Gs as m,us as a,vs as b,ws as c,xs as d,ys as e,zs as f}from"./chunk-
|
|
2
|
+
import{As as g,Bs as h,Cs as i,Ds as j,Es as k,Fs as l,Gs as m,us as a,vs as b,ws as c,xs as d,ys as e,zs as f}from"./chunk-jvqjh17y.js";import"./chunk-cbc56wpd.js";import"./chunk-pw0rzgpv.js";export{f as resolveUserCrosswindConfig,c as resetCssCache,d as resetCrosswindCache,i as rebuildCrosswindCSS,e as loadCrosswindConfig,b as loadCrosswind,m as injectCrosswindCSS,a as getCrosswindServeAsset,j as getCachedCSS,l as generateCrosswindCSS,g as fingerprintConfig,k as extractClassNames,h as buildCrosswindCSS};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{xg as a}from"./chunk-
|
|
2
|
+
import{xg as a}from"./chunk-44423f7c.js";import"./chunk-ndnc7k2n.js";import"./chunk-5gb0zjx0.js";import"./chunk-whq99ytc.js";import"./chunk-3es366z4.js";import"./chunk-yckd6ks5.js";import"./chunk-n9eahkjg.js";import"./chunk-8src5smc.js";import"./chunk-gcnrdgrq.js";import"./chunk-xp3fp266.js";import"./chunk-nye9brje.js";import"./chunk-jvqjh17y.js";import"./chunk-cbc56wpd.js";import"./chunk-x0zh76yv.js";import"./chunk-0ae6chzd.js";import"./chunk-kjr22neh.js";import"./chunk-3952ykhb.js";import"./chunk-dtmwr674.js";import"./chunk-pw0rzgpv.js";export{a as buildForProduction};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{ff as a}from"./chunk-
|
|
2
|
+
import{ff as a}from"./chunk-vydqh4xr.js";import"./chunk-n9eahkjg.js";import"./chunk-8src5smc.js";import"./chunk-gcnrdgrq.js";import"./chunk-xp3fp266.js";import"./chunk-nye9brje.js";import"./chunk-jvqjh17y.js";import"./chunk-cbc56wpd.js";import"./chunk-x0zh76yv.js";import"./chunk-0ae6chzd.js";import"./chunk-kjr22neh.js";import"./chunk-3952ykhb.js";import"./chunk-dtmwr674.js";import"./chunk-pw0rzgpv.js";export{a as buildApp};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{a as x,b as u,c as b,d as Az,e as G,f as d,h as y,i as I,j as Uz,k as v}from"./chunk-0y46fbkx.js";import{l as h,m as f,n as g}from"./chunk-q9n5swx7.js";import{Mo as V}from"./chunk-
|
|
2
|
+
import{a as x,b as u,c as b,d as Az,e as G,f as d,h as y,i as I,j as Uz,k as v}from"./chunk-0y46fbkx.js";import{l as h,m as f,n as g}from"./chunk-q9n5swx7.js";import{Mo as V}from"./chunk-n9eahkjg.js";import"./chunk-8src5smc.js";import"./chunk-gcnrdgrq.js";import"./chunk-xp3fp266.js";import"./chunk-nye9brje.js";import"./chunk-jvqjh17y.js";import"./chunk-cbc56wpd.js";import"./chunk-x0zh76yv.js";import"./chunk-0ae6chzd.js";import"./chunk-kjr22neh.js";import"./chunk-3952ykhb.js";import"./chunk-dtmwr674.js";import{hu as F}from"./chunk-pw0rzgpv.js";import l from"fs";import R from"path";function m(z,J){let Z=[R.join(z.root,"stx.config.ts"),R.join(z.root,"stx.config.js"),R.join(z.root,"stx.config.mjs")],K=J.debounceMs??300,$=null,X=[];for(let B of Z)try{if(!l.existsSync(B))continue;let Y=l.watch(B,(W)=>{if(W==="change"){if($)clearTimeout($);$=setTimeout(async()=>{d("Config file changed, restarting...");try{await J.onChange()}catch(j){G(`Failed to restart: ${j}`)}},K)}});X.push(Y)}catch{}return{stop(){if($)clearTimeout($);for(let B of X)B.close()}}}import E from"fs";import i from"path";var Gz=".stx/story/analytics.json",Nz=1,c=1e4;class M{storage;storagePath;currentSession=null;dirty=!1;viewStartTimes=new Map;constructor(z){this.storagePath=i.join(z,Gz),this.storage=this.loadStorage(),this.startSession()}loadStorage(){try{let z=E.readFileSync(this.storagePath,"utf-8");return JSON.parse(z)}catch{return{version:Nz,events:[],sessions:[]}}}async save(){if(!this.dirty)return;let z=i.dirname(this.storagePath);if(await E.promises.mkdir(z,{recursive:!0}),this.storage.events.length>c)this.storage.events=this.storage.events.slice(-c);await E.promises.writeFile(this.storagePath,JSON.stringify(this.storage,null,2)),this.dirty=!1}startSession(){this.endSession(),this.currentSession={id:Hz(),startTime:Date.now(),componentViews:[]},this.storage.sessions.push(this.currentSession),this.dirty=!0}endSession(){if(this.currentSession)this.currentSession.endTime=Date.now(),this.currentSession=null}track(z){this.storage.events.push({...z,timestamp:Date.now()}),this.dirty=!0}trackView(z,J){if(this.endViewTiming(z),this.viewStartTimes.set(z,Date.now()),this.track({type:"view",componentId:z,variantId:J}),this.currentSession&&!this.currentSession.componentViews.includes(z))this.currentSession.componentViews.push(z)}endViewTiming(z){let J=this.viewStartTimes.get(z);if(J){let Z=Date.now()-J;this.track({type:"view",componentId:z,metadata:{duration:Z,endView:!0}}),this.viewStartTimes.delete(z)}}trackPropChange(z,J,Z){this.track({type:"prop_change",componentId:z,propName:J,metadata:{value:Z}})}trackVariantSwitch(z,J){this.track({type:"variant_switch",componentId:z,variantId:J})}trackSearch(z,J){this.track({type:"search",query:z,metadata:{resultCount:J}})}getComponentAnalytics(z,J){let Z=this.storage.events.filter((Q)=>Q.componentId===z),K=Z.filter((Q)=>Q.type==="view"&&!Q.metadata?.endView),$=Z.filter((Q)=>Q.type==="prop_change"),X=Z.filter((Q)=>Q.type==="variant_switch"),B={};for(let Q of $)if(Q.propName)B[Q.propName]=(B[Q.propName]||0)+1;let Y={};for(let Q of X)if(Q.variantId)Y[Q.variantId]=(Y[Q.variantId]||0)+1;let W=new Set(this.storage.sessions.filter((Q)=>Q.componentViews.includes(z)).map((Q)=>Q.id)),j=Z.filter((Q)=>Q.metadata?.duration).map((Q)=>Q.metadata.duration),U=j.length>0?j.reduce((Q,D)=>Q+D,0)/j.length:0,_=Object.entries(B).sort((Q,D)=>D[1]-Q[1]).slice(0,5).map(([Q])=>Q);return{componentId:z,componentName:J,viewCount:K.length,uniqueViews:W.size,lastViewed:K[K.length-1]?.timestamp,propChanges:B,topChangedProps:_,variantViews:Y,avgTimeSpent:U}}getMostViewedComponents(z=10){let J=new Map;for(let Z of this.storage.events)if(Z.type==="view"&&Z.componentId&&!Z.metadata?.endView)J.set(Z.componentId,(J.get(Z.componentId)||0)+1);return Array.from(J.entries()).map(([Z,K])=>({componentId:Z,viewCount:K})).sort((Z,K)=>K.viewCount-Z.viewCount).slice(0,z)}getMostChangedProps(z=10){let J=new Map;for(let Z of this.storage.events)if(Z.type==="prop_change"&&Z.propName)J.set(Z.propName,(J.get(Z.propName)||0)+1);return Array.from(J.entries()).map(([Z,K])=>({propName:Z,changeCount:K})).sort((Z,K)=>K.changeCount-Z.changeCount).slice(0,z)}getSearchAnalytics(){let z=this.storage.events.filter(($)=>$.type==="search"),J=new Map,Z=0;for(let $ of z){if($.query)J.set($.query,(J.get($.query)||0)+1);if($.metadata?.resultCount!==void 0)Z+=$.metadata.resultCount}let K=Array.from(J.entries()).map(([$,X])=>({query:$,count:X})).sort(($,X)=>X.count-$.count).slice(0,10);return{totalSearches:z.length,topQueries:K,avgResultCount:z.length>0?Z/z.length:0}}clear(){this.storage.events=[],this.storage.sessions=[],this.dirty=!0,this.startSession()}exportAnalytics(){return JSON.stringify({exportedAt:Date.now(),...this.storage},null,2)}}function Hz(){return`session-${Date.now()}-${Math.random().toString(36).slice(2,8)}`}import P from"fs";import p from"path";var Fz=".stx/story/bookmarks.json",Vz=1;class T{storage;storagePath;dirty=!1;constructor(z){this.storagePath=p.join(z,Fz),this.storage=this.loadStorage()}loadStorage(){try{let z=P.readFileSync(this.storagePath,"utf-8");return JSON.parse(z)}catch{return{version:Vz,bookmarks:[]}}}async save(){if(!this.dirty)return;let z=p.dirname(this.storagePath);await P.promises.mkdir(z,{recursive:!0}),await P.promises.writeFile(this.storagePath,JSON.stringify(this.storage,null,2)),this.dirty=!1}addBookmark(z,J,Z,K={}){let $={id:Rz(),name:K.name||`${z}/${J}`,storyId:z,variantId:J,props:Z,created:Date.now(),notes:K.notes,color:K.color};return this.storage.bookmarks.push($),this.dirty=!0,$}getAllBookmarks(){return[...this.storage.bookmarks]}getBookmarksForStory(z){return this.storage.bookmarks.filter((J)=>J.storyId===z)}getBookmark(z){return this.storage.bookmarks.find((J)=>J.id===z)}isBookmarked(z,J){return this.storage.bookmarks.some((Z)=>Z.storyId===z&&Z.variantId===J)}updateBookmark(z,J){let Z=this.getBookmark(z);if(!Z)return;return Object.assign(Z,J),this.dirty=!0,Z}deleteBookmark(z){let J=this.storage.bookmarks.findIndex((Z)=>Z.id===z);if(J===-1)return!1;return this.storage.bookmarks.splice(J,1),this.dirty=!0,!0}toggleBookmark(z,J,Z){let K=this.storage.bookmarks.find((X)=>X.storyId===z&&X.variantId===J);if(K)return this.deleteBookmark(K.id),{added:!1};return{added:!0,bookmark:this.addBookmark(z,J,Z)}}exportBookmarks(){return JSON.stringify(this.storage,null,2)}importBookmarks(z,J=!0){let Z=JSON.parse(z),K=0;for(let $ of Z.bookmarks){if(J){let X=this.storage.bookmarks.find((B)=>B.id===$.id);if(X)Object.assign(X,$);else this.storage.bookmarks.push($)}else this.storage.bookmarks.push($);K++}if(K>0)this.dirty=!0;return K}}function Rz(){return`bm-${Date.now()}-${Math.random().toString(36).slice(2,8)}`}var N=new Set;function s(){return{open(z){N.add(z),z.send(JSON.stringify({type:"connected",timestamp:Date.now()}))},close(z){N.delete(z)},message(z,J){}}}function q(z){let J=JSON.stringify({...z,timestamp:z.timestamp||Date.now()});for(let Z of N)try{Z.send(J)}catch{N.delete(Z)}}function n(z,J){q({type:"story-update",data:{storyId:z,...J}})}function a(z,J){q({type:"story-add",data:{storyId:z,...J}})}function o(z){q({type:"story-remove",data:{storyId:z}})}function r(z){return`
|
|
3
3
|
<script>
|
|
4
4
|
(function() {
|
|
5
5
|
const ws = new WebSocket('${z}');
|
|
@@ -556,7 +556,7 @@ window.__stxPerformance = {
|
|
|
556
556
|
|
|
557
557
|
window.clearPerformanceMetrics = () => window.__stxPerformance.clear();
|
|
558
558
|
</script>
|
|
559
|
-
`}import w from"fs";import Xz from"path";var Mz=".stx/story/presets.json",C=1,Pz=10;class k{storage;storagePath;dirty=!1;constructor(z){this.storagePath=Xz.join(z,Mz),this.storage=this.loadStorage()}loadStorage(){try{let z=w.readFileSync(this.storagePath,"utf-8"),J=JSON.parse(z);if(J.version!==C)return this.migrateStorage(J);return J}catch{return{version:C,presets:[],recentIds:[]}}}migrateStorage(z){return{version:C,presets:z.presets||[],recentIds:z.recentIds||[]}}async save(){if(!this.dirty)return;let z=Xz.dirname(this.storagePath);await w.promises.mkdir(z,{recursive:!0}),await w.promises.writeFile(this.storagePath,JSON.stringify(this.storage,null,2)),this.dirty=!1}createPreset(z,J,Z={}){let K={id:Tz(),name:z,description:Z.description,props:J,componentId:Z.componentId,created:Date.now(),usageCount:0,tags:Z.tags};return this.storage.presets.push(K),this.dirty=!0,K}getPreset(z){return this.storage.presets.find((J)=>J.id===z)}getAllPresets(){return[...this.storage.presets]}getPresetsForComponent(z){return this.storage.presets.filter((J)=>!J.componentId||J.componentId===z)}getRecentPresets(){return this.storage.recentIds.map((z)=>this.getPreset(z)).filter((z)=>z!==void 0)}usePreset(z){let J=this.getPreset(z);if(!J)return;return J.lastUsed=Date.now(),J.usageCount++,this.storage.recentIds=[z,...this.storage.recentIds.filter((Z)=>Z!==z)].slice(0,Pz),this.dirty=!0,J}updatePreset(z,J){let Z=this.getPreset(z);if(!Z)return;return Object.assign(Z,J),this.dirty=!0,Z}deletePreset(z){let J=this.storage.presets.findIndex((Z)=>Z.id===z);if(J===-1)return!1;return this.storage.presets.splice(J,1),this.storage.recentIds=this.storage.recentIds.filter((Z)=>Z!==z),this.dirty=!0,!0}searchPresets(z){let J=z.toLowerCase();return this.storage.presets.filter((Z)=>{if(Z.name.toLowerCase().includes(J))return!0;if(Z.description?.toLowerCase().includes(J))return!0;if(Z.tags?.some((K)=>K.toLowerCase().includes(J)))return!0;return!1})}getMostUsedPresets(z=5){return[...this.storage.presets].sort((J,Z)=>Z.usageCount-J.usageCount).slice(0,z)}exportPresets(z){let J=z?this.storage.presets.filter((Z)=>z.includes(Z.id)):this.storage.presets;return JSON.stringify({presets:J},null,2)}importPresets(z,J=!1){let Z=JSON.parse(z),K=0;for(let $ of Z.presets){let X=this.storage.presets.find((B)=>B.id===$.id);if(X&&!J)continue;if(X)Object.assign(X,$);else this.storage.presets.push($);K++}if(K>0)this.dirty=!0;return K}}function Tz(){return`preset-${Date.now()}-${Math.random().toString(36).slice(2,8)}`}import S from"fs";var Qz=new Map;async function H(z,J,Z={}){let K=performance.now(),$=[];try{let X=await S.promises.stat(J),B=Qz.get(J),Y;if(B&&B.mtime===X.mtimeMs)Y=B.content;else Y=await S.promises.readFile(J,"utf-8"),Qz.set(J,{content:Y,mtime:X.mtimeMs,analyzed:null});let{processDirectives:W}=await import("./chunk-
|
|
559
|
+
`}import w from"fs";import Xz from"path";var Mz=".stx/story/presets.json",C=1,Pz=10;class k{storage;storagePath;dirty=!1;constructor(z){this.storagePath=Xz.join(z,Mz),this.storage=this.loadStorage()}loadStorage(){try{let z=w.readFileSync(this.storagePath,"utf-8"),J=JSON.parse(z);if(J.version!==C)return this.migrateStorage(J);return J}catch{return{version:C,presets:[],recentIds:[]}}}migrateStorage(z){return{version:C,presets:z.presets||[],recentIds:z.recentIds||[]}}async save(){if(!this.dirty)return;let z=Xz.dirname(this.storagePath);await w.promises.mkdir(z,{recursive:!0}),await w.promises.writeFile(this.storagePath,JSON.stringify(this.storage,null,2)),this.dirty=!1}createPreset(z,J,Z={}){let K={id:Tz(),name:z,description:Z.description,props:J,componentId:Z.componentId,created:Date.now(),usageCount:0,tags:Z.tags};return this.storage.presets.push(K),this.dirty=!0,K}getPreset(z){return this.storage.presets.find((J)=>J.id===z)}getAllPresets(){return[...this.storage.presets]}getPresetsForComponent(z){return this.storage.presets.filter((J)=>!J.componentId||J.componentId===z)}getRecentPresets(){return this.storage.recentIds.map((z)=>this.getPreset(z)).filter((z)=>z!==void 0)}usePreset(z){let J=this.getPreset(z);if(!J)return;return J.lastUsed=Date.now(),J.usageCount++,this.storage.recentIds=[z,...this.storage.recentIds.filter((Z)=>Z!==z)].slice(0,Pz),this.dirty=!0,J}updatePreset(z,J){let Z=this.getPreset(z);if(!Z)return;return Object.assign(Z,J),this.dirty=!0,Z}deletePreset(z){let J=this.storage.presets.findIndex((Z)=>Z.id===z);if(J===-1)return!1;return this.storage.presets.splice(J,1),this.storage.recentIds=this.storage.recentIds.filter((Z)=>Z!==z),this.dirty=!0,!0}searchPresets(z){let J=z.toLowerCase();return this.storage.presets.filter((Z)=>{if(Z.name.toLowerCase().includes(J))return!0;if(Z.description?.toLowerCase().includes(J))return!0;if(Z.tags?.some((K)=>K.toLowerCase().includes(J)))return!0;return!1})}getMostUsedPresets(z=5){return[...this.storage.presets].sort((J,Z)=>Z.usageCount-J.usageCount).slice(0,z)}exportPresets(z){let J=z?this.storage.presets.filter((Z)=>z.includes(Z.id)):this.storage.presets;return JSON.stringify({presets:J},null,2)}importPresets(z,J=!1){let Z=JSON.parse(z),K=0;for(let $ of Z.presets){let X=this.storage.presets.find((B)=>B.id===$.id);if(X&&!J)continue;if(X)Object.assign(X,$);else this.storage.presets.push($);K++}if(K>0)this.dirty=!0;return K}}function Tz(){return`preset-${Date.now()}-${Math.random().toString(36).slice(2,8)}`}import S from"fs";var Qz=new Map;async function H(z,J,Z={}){let K=performance.now(),$=[];try{let X=await S.promises.stat(J),B=Qz.get(J),Y;if(B&&B.mtime===X.mtimeMs)Y=B.content;else Y=await S.promises.readFile(J,"utf-8"),Qz.set(J,{content:Y,mtime:X.mtimeMs,analyzed:null});let{processDirectives:W}=await import("./chunk-3acgbcv6.js"),j={},U=A(Y);if(U)try{await V(U,j,J)}catch(O){$.push(`Warning: Could not extract script variables: ${O instanceof Error?O.message:String(O)}`)}if(Z.props)Object.assign(j,Z.props);let Q=await W(Y,j,J,{},new Set),D=Wz(Y),L=A(Y);return Q=jz(Q),Q=Dz(Q,j),{html:Q,css:D,js:L,errors:$,duration:performance.now()-K}}catch(X){return $.push(X instanceof Error?X.message:String(X)),{html:`<div class="stx-render-error">${Lz($[0])}</div>`,css:"",js:"",errors:$,duration:performance.now()-K}}}async function qz(z){try{let J=await S.promises.readFile(z,"utf-8"),Z=A(J);if(!Z)return null;let K={};if(await V(Z,K,z),Array.isArray(K.variants))return K.variants;return null}catch{return null}}async function Bz(z,J,Z,K){let $=J.story?.variants;if(!$){let Y=await qz(J.path);if(Y)$=Y}if(!$&&Z==="default")return H(z,J.path,{props:K||{}});if(!$)return H(z,J.path,{props:K||{}});let X=$.find((Y)=>Y.id===Z);if(!X&&Z==="default")return H(z,J.path,{props:K||{}});if(!X)return{html:'<div class="stx-render-error">Variant not found</div>',css:"",js:"",errors:[`Variant '${Z}' not found`],duration:0};let B={...X.state,...K};if(X.source)return wz(z,X.source,B);return H(z,J.path,{props:B})}async function wz(z,J,Z={}){let K=performance.now(),$=[];try{let{processDirectives:X}=await import("./chunk-3acgbcv6.js"),B={...Z},Y=A(J);if(Y)try{await V(Y,B,"inline-template.stx")}catch{}let j=await X(J,B,"inline-template.stx",{},new Set);return j=jz(j),j=Dz(j,B),{html:j,css:Wz(J),js:A(J),errors:$,duration:performance.now()-K}}catch(X){return $.push(X instanceof Error?X.message:String(X)),{html:`<div class="stx-render-error">${Lz($[0])}</div>`,css:"",js:"",errors:$,duration:performance.now()-K}}}function Wz(z){let J=[],Z=/<style\b[^>]*>([\s\S]*?)<\/style>/gi,K=Z.exec(z);while(K!==null)J.push(K[1].trim()),K=Z.exec(z);return J.join(`
|
|
560
560
|
`)}function jz(z){return z.replace(/<!--[\s\S]*?-->/g,"").replace(/<style\b[^>]*>[\s\S]*?<\/style>/gi,"").replace(/<script\b[^>]*>[\s\S]*?<\/script>/gi,"").replace(/^\s*\n/gm,"").trim()}function A(z){let J=[],Z=/<script\b[^>]*>([\s\S]*?)<\/script>/gi,K=Z.exec(z);while(K!==null)J.push(K[1].trim()),K=Z.exec(z);return J.join(`
|
|
561
561
|
`)}function Dz(z,J){let Z=`<script>window.__stxProps = ${JSON.stringify(J)};</script>`;return z+Z}function Lz(z){return z.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")}async function Oz(z,J){let Z=await I(z);f(z,Z);let K=v(z.config,Z);g(z,K),console.log(` Found ${Z.length} story files`);let $=typeof J.host==="string"?J.host:J.host===!0?"0.0.0.0":"localhost",X=new k(z.root),B=new T(z.root),Y=new M(z.root),W=s(),j=Bun.serve({port:J.port,hostname:$,fetch:async(Q,D)=>{let O=new URL(Q.url).pathname;if(O==="/__hmr"){if(D.upgrade(Q,{data:{isHmr:!0}}))return;return new Response("WebSocket upgrade failed",{status:400})}if(O.startsWith("/api/"))return Cz(z,O,Q,{presetsManager:X,bookmarksManager:B,analyticsTracker:Y});return kz(z,O,J.port)},websocket:{open(Q){W.open(Q)},close(Q){W.close(Q)},message(Q,D){W.message(Q,D)}}}),U=`http://${$}:${J.port}`,_=Uz(z,async(Q,D)=>{console.log(` [${Q}] ${D.relativePath}`);let L=await I(z);f(z,L);let O=v(z.config,L);if(g(z,O),Q==="add")a(D.id,{fileName:D.fileName});else if(Q==="unlink")o(D.id);else n(D.id,{fileName:D.fileName})});if(J.open){let Q=U;try{let{exec:D}=await import("child_process"),L=process.platform;D(`${L==="darwin"?"open":L==="win32"?"start":"xdg-open"} ${Q}`)}catch{}}return{server:j,url:U,close:async()=>{_(),j.stop()}}}async function Cz(z,J,Z,K){let{presetsManager:$,bookmarksManager:X,analyticsTracker:B}=K;if(J==="/api/stories")return Response.json({files:z.storyFiles.map((Y)=>({id:Y.id,fileName:Y.fileName,relativePath:Y.relativePath,treePath:Y.treePath})),tree:z.tree});if(J.startsWith("/api/story/")){let Y=J.slice(11),W=z.storyFiles.find((j)=>j.id===Y);if(!W)return new Response("Story not found",{status:404});try{let j=await Bun.file(W.path).text();return Response.json({id:W.id,fileName:W.fileName,relativePath:W.relativePath,content:j})}catch{return new Response("Error reading story",{status:500})}}if(J==="/api/config")return Response.json({theme:z.config.theme,responsivePresets:z.config.responsivePresets,backgroundPresets:z.config.backgroundPresets});if(J.startsWith("/api/render/")){let Y=new URL(Z.url),W=J.slice(12).split("/"),j=W[0],U=W[1]||"default",_,Q=Y.searchParams.get("props");if(Q)try{_=JSON.parse(Q)}catch{}let D=z.storyFiles.find((L)=>L.id===j);if(!D)return new Response("Story not found",{status:404});try{let L=await Bz(z,D,U,_);return Response.json({html:L.html,css:L.css,js:L.js,errors:L.errors,duration:L.duration})}catch(L){return Response.json({html:"",css:"",js:"",errors:[L instanceof Error?L.message:String(L)],duration:0},{status:500})}}if(J==="/api/presets"&&Z.method==="GET")return Response.json({presets:$.getAllPresets()});if(J==="/api/presets"&&Z.method==="POST")try{let Y=await Z.json(),W=$.createPreset(Y.name,Y.props,{componentId:Y.componentId,description:Y.description});return await $.save(),Response.json(W)}catch(Y){return Response.json({error:String(Y)},{status:400})}if(J.startsWith("/api/presets/")&&!J.includes("/use")&&Z.method==="GET"){let Y=J.slice(13),W=$.getPreset(Y);if(!W)return new Response("Preset not found",{status:404});return Response.json(W)}if(J.endsWith("/use")&&Z.method==="POST"){let Y=J.slice(13,-4),W=$.usePreset(Y);if(!W)return new Response("Preset not found",{status:404});return await $.save(),Response.json(W)}if(J.startsWith("/api/presets/")&&Z.method==="DELETE"){let Y=J.slice(13);if(!$.deletePreset(Y))return new Response("Preset not found",{status:404});return await $.save(),Response.json({success:!0})}if(J==="/api/bookmarks"&&Z.method==="GET")return Response.json({bookmarks:X.getAllBookmarks()});if(J==="/api/bookmarks"&&Z.method==="POST")try{let Y=await Z.json(),W=X.addBookmark(Y.storyId,Y.variantId,Y.props,{name:Y.name,notes:Y.notes,color:Y.color});return await X.save(),Response.json(W)}catch(Y){return Response.json({error:String(Y)},{status:400})}if(J==="/api/bookmarks/toggle"&&Z.method==="POST")try{let Y=await Z.json(),W=X.toggleBookmark(Y.storyId,Y.variantId,Y.props);return await X.save(),Response.json(W)}catch(Y){return Response.json({error:String(Y)},{status:400})}if(J.startsWith("/api/bookmarks/")&&J!=="/api/bookmarks/toggle"&&Z.method==="GET"){let Y=J.slice(15),W=X.getBookmark(Y);if(!W)return new Response("Bookmark not found",{status:404});return Response.json(W)}if(J.startsWith("/api/bookmarks/")&&Z.method==="DELETE"){let Y=J.slice(15);if(!X.deleteBookmark(Y))return new Response("Bookmark not found",{status:404});return await X.save(),Response.json({success:!0})}if(J==="/api/analytics/track"&&Z.method==="POST")try{let Y=await Z.json();if(Y.type==="view"&&Y.componentId)B.trackView(Y.componentId,Y.variantId);else if(Y.type==="prop_change"&&Y.componentId&&Y.propName)B.trackPropChange(Y.componentId,Y.propName,null);else if(Y.type==="variant_switch"&&Y.componentId&&Y.variantId)B.trackVariantSwitch(Y.componentId,Y.variantId);else if(Y.type==="search"&&Y.query)B.trackSearch(Y.query,0);return await B.save(),Response.json({success:!0})}catch(Y){return Response.json({error:String(Y)},{status:400})}if(J==="/api/analytics/summary"&&Z.method==="GET")return Response.json({mostViewed:B.getMostViewedComponents(10),mostChangedProps:B.getMostChangedProps(10),searchAnalytics:B.getSearchAnalytics()});if(J.startsWith("/api/analytics/component/")&&Z.method==="GET"){let Y=J.slice(25),W=z.storyFiles.find((U)=>U.id===Y),j=B.getComponentAnalytics(Y,W?.fileName||Y);return Response.json(j)}return new Response("Not found",{status:404})}function kz(z,J,Z){let K=Sz(z,Z);return new Response(K,{headers:{"Content-Type":"text/html; charset=utf-8"}})}function Sz(z,J){let{theme:Z}=z.config,K=Z.title||"STX Story",$=`ws://localhost:${J}/__hmr`,X=r($);return`<!DOCTYPE html>
|
|
562
562
|
<html lang="en" class="${Z.darkClass||"dark"}">
|