@stacksjs/stx 0.2.220 → 0.2.222
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-08031d2g.js → chunk-24271vkv.js} +1 -1
- package/dist/chunk-2gwfcgct.js +2 -0
- package/dist/{chunk-x0f34a44.js → chunk-409jrxj6.js} +1 -1
- package/dist/chunk-4a01b3qp.js +2 -0
- package/dist/{chunk-mcz70xms.js → chunk-4thj960e.js} +1 -1
- package/dist/{chunk-5a5efazd.js → chunk-53d24qhh.js} +1 -1
- package/dist/{chunk-20wgmax7.js → chunk-749d2abw.js} +1 -1
- package/dist/{chunk-e890s5em.js → chunk-7cqda8w2.js} +1 -1
- package/dist/{chunk-bj25jvsn.js → chunk-7ggk2vmy.js} +1 -1
- package/dist/{chunk-7x3nd6r4.js → chunk-7tzyw85k.js} +1 -1
- package/dist/{chunk-3zhhytkd.js → chunk-85yfwhdx.js} +1 -1
- package/dist/{chunk-qfsktf7s.js → chunk-8j2v2hnc.js} +1 -1
- package/dist/{chunk-q5w0fqd5.js → chunk-8rgd1mn9.js} +1 -1
- package/dist/{chunk-g3rg8afc.js → chunk-98a8ma06.js} +1 -1
- package/dist/{chunk-6sm1vr9h.js → chunk-ansvb340.js} +1 -1
- package/dist/{chunk-4svjne4w.js → chunk-bg595da5.js} +1 -1
- package/dist/{chunk-ejspksxd.js → chunk-bhz0py78.js} +1 -1
- package/dist/{chunk-tgaddq21.js → chunk-cc6b6cvn.js} +1 -1
- package/dist/{chunk-xqnwy1t6.js → chunk-ceqzwfcq.js} +1 -1
- package/dist/{chunk-6qjzx44j.js → chunk-dbvvgvwk.js} +2 -2
- package/dist/{chunk-fw5d1aev.js → chunk-egpmwqas.js} +2 -2
- package/dist/{chunk-38zpyb7q.js → chunk-epep418h.js} +1 -1
- package/dist/{chunk-2y8ss8b3.js → chunk-etnqfdcj.js} +1 -1
- package/dist/{chunk-5y731xe9.js → chunk-fm03jwb1.js} +1 -1
- package/dist/chunk-fqrfhf6n.js +2 -0
- package/dist/{chunk-zpskp2xb.js → chunk-ftdysk1n.js} +1 -1
- package/dist/{chunk-zh75hc6a.js → chunk-gyf7n2as.js} +1 -1
- package/dist/chunk-hzj77qay.js +2 -0
- package/dist/{chunk-4wdbmjmg.js → chunk-j51tsstz.js} +1 -1
- package/dist/{chunk-rmrnnv87.js → chunk-j8dg655g.js} +1 -1
- package/dist/{chunk-cw0352e8.js → chunk-jvxc59g1.js} +1 -1
- package/dist/{chunk-kdpy5rgk.js → chunk-kwpvv59c.js} +24 -5
- package/dist/{chunk-bgb5a3q6.js → chunk-m86nzprx.js} +1 -1
- package/dist/{chunk-5fz9n4wq.js → chunk-m8kn995q.js} +1 -1
- package/dist/{chunk-pzcf36xm.js → chunk-pbyxj0zr.js} +16 -16
- package/dist/{chunk-pscdy0gn.js → chunk-pd8cce9a.js} +9 -9
- package/dist/{chunk-1y3kc7mb.js → chunk-qpm1px64.js} +1 -1
- package/dist/{chunk-7cq5b6zp.js → chunk-rmyrzcac.js} +1 -1
- package/dist/chunk-s0perkbz.js +2 -0
- package/dist/{chunk-rq20qvkk.js → chunk-s8x2n1p6.js} +1 -1
- package/dist/{chunk-anenwsj3.js → chunk-szw6at2m.js} +1 -1
- package/dist/{chunk-7s3wrtpb.js → chunk-td2et1ek.js} +1 -1
- package/dist/{chunk-a4329ma8.js → chunk-yf4p02wy.js} +1 -1
- package/dist/{chunk-n1b7b20f.js → chunk-zztd93sa.js} +1 -1
- package/dist/cli.js +7 -7
- package/dist/craft-entry.js +1 -1
- package/dist/craft.js +1 -1
- package/dist/pwa.js +1 -1
- package/dist/ssg.js +2 -2
- package/package.json +5 -5
- package/dist/chunk-25jkkv9d.js +0 -2
- package/dist/chunk-9ktvkzcc.js +0 -2
- package/dist/chunk-tc2d9en8.js +0 -2
- package/dist/chunk-th7snpq2.js +0 -2
- package/dist/chunk-yk45219d.js +0 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Jq as x,Ol as Y}from"./chunk-
|
|
2
|
+
import{Jq as x,Ol as Y}from"./chunk-pbyxj0zr.js";import"./chunk-kvz7rg2x.js";import"./chunk-arnse15r.js";import"./chunk-6b0xz02h.js";import"./chunk-135mme4g.js";import"./chunk-8j2v2hnc.js";import"./chunk-80qre9zp.js";import"./chunk-z794cdmn.js";import"./chunk-dykhpgyx.js";import"./chunk-ry86fd41.js";import"./chunk-kwpvv59c.js";import"./chunk-x0bcc9sj.js";import"./chunk-8rn5e39c.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(){
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{$i as b,_i as a,aj as c}from"./chunk-j51tsstz.js";import"./chunk-efr3ejqt.js";import"./chunk-pbyxj0zr.js";import"./chunk-kvz7rg2x.js";import"./chunk-arnse15r.js";import"./chunk-6b0xz02h.js";import"./chunk-135mme4g.js";import"./chunk-8j2v2hnc.js";import"./chunk-80qre9zp.js";import"./chunk-z794cdmn.js";import"./chunk-dykhpgyx.js";import"./chunk-ry86fd41.js";import"./chunk-kwpvv59c.js";import"./chunk-x0bcc9sj.js";import"./chunk-8rn5e39c.js";export{a as listComposableModules,b as getComposableScript,c as clearComposableCache};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Ql as c,Rl as d,Sl as e,Tl as f,Ul as g,Vl as h,Wl as i,Xl as j,Yl as k}from"./chunk-
|
|
2
|
+
import{Ql as c,Rl as d,Sl as e,Tl as f,Ul as g,Vl as h,Wl as i,Xl as j,Yl as k}from"./chunk-pbyxj0zr.js";import"./chunk-kvz7rg2x.js";import"./chunk-arnse15r.js";import{ws as a,xs as b}from"./chunk-6b0xz02h.js";import"./chunk-135mme4g.js";import"./chunk-8j2v2hnc.js";import"./chunk-80qre9zp.js";import"./chunk-z794cdmn.js";import"./chunk-dykhpgyx.js";import"./chunk-ry86fd41.js";import"./chunk-kwpvv59c.js";import"./chunk-x0bcc9sj.js";import"./chunk-8rn5e39c.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};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{wg as a}from"./chunk-m86nzprx.js";import"./chunk-ydk1n77q.js";import"./chunk-yf4p02wy.js";import"./chunk-ad84gwgv.js";import"./chunk-k6b7gpk2.js";import"./chunk-c0n802j1.js";import"./chunk-pbyxj0zr.js";import"./chunk-kvz7rg2x.js";import"./chunk-arnse15r.js";import"./chunk-6b0xz02h.js";import"./chunk-135mme4g.js";import"./chunk-8j2v2hnc.js";import"./chunk-80qre9zp.js";import"./chunk-z794cdmn.js";import"./chunk-dykhpgyx.js";import"./chunk-ry86fd41.js";import"./chunk-kwpvv59c.js";import"./chunk-x0bcc9sj.js";import"./chunk-8rn5e39c.js";export{a as buildForProduction};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Qq as q,Uq as y}from"./chunk-
|
|
2
|
+
import{Qq as q,Uq as y}from"./chunk-pbyxj0zr.js";import{xu as L}from"./chunk-8rn5e39c.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-xrnqz76v.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-ceqzwfcq.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 Ni,A as Oi,H as Pi,v as Qi,E as Ri,F as Si,R as Ti,S as Ui,_ as Vi,g as Wi,D as Xi};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Bq as X,um as W}from"./chunk-
|
|
2
|
+
import{Bq as X,um as W}from"./chunk-pbyxj0zr.js";import V from"fs";import M from"path";import*as Y from"readline";var j={reset:"\x1B[0m",bold:"\x1B[1m",dim:"\x1B[2m",red:"\x1B[31m",green:"\x1B[32m",yellow:"\x1B[33m",blue:"\x1B[34m",magenta:"\x1B[35m",cyan:"\x1B[36m"},Q={help:{description:"Show available commands",usage:"help [command]",handler:async(q,z)=>{if(q[0]&&Q[q[0]]){let A=Q[q[0]];console.log(`
|
|
3
3
|
${j.bold}${q[0]}${j.reset} - ${A.description}`),console.log(` Usage: ${j.cyan}${A.usage}${j.reset}
|
|
4
4
|
`)}else{console.log(`
|
|
5
5
|
${j.bold}Available Commands:${j.reset}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{$k as d,Yk as a,Zk as b,_k as c,al as e,bl as f,cl as g,dl as h,el as i}from"./chunk-
|
|
2
|
+
import{$k as d,Yk as a,Zk as b,_k as c,al as e,bl as f,cl as g,dl as h,el as i}from"./chunk-8rgd1mn9.js";import"./chunk-ncvd7673.js";import"./chunk-pbyxj0zr.js";import"./chunk-kvz7rg2x.js";import"./chunk-arnse15r.js";import"./chunk-6b0xz02h.js";import"./chunk-135mme4g.js";import"./chunk-8j2v2hnc.js";import"./chunk-80qre9zp.js";import"./chunk-z794cdmn.js";import"./chunk-dykhpgyx.js";import"./chunk-ry86fd41.js";import"./chunk-kwpvv59c.js";import"./chunk-x0bcc9sj.js";import"./chunk-8rn5e39c.js";export{a as shouldLogBundlerDiagnostics,e as setBundlerFallbackMode,f as resolveBundlerFallback,b as recordBundleFailure,h as queueClientBundleBuild,g as hasUserImports,c as getBundleFailures,d as clearBundleFailures,i as bundleClientScript};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{rk as m}from"./chunk-
|
|
2
|
+
import{rk as m}from"./chunk-egpmwqas.js";import{xu as z}from"./chunk-8rn5e39c.js";import{existsSync as s,mkdirSync as T,copyFileSync as F,chmodSync as A}from"fs";import{join as Z,basename as Yq}from"path";import{spawn as j,execSync as Zq}from"child_process";import{tmpdir as c,homedir as P,platform as Lq}from"os";var Iq=`
|
|
3
3
|
<script>
|
|
4
4
|
(function() {
|
|
5
5
|
'use strict';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{$o as d,Yo as a,Zo as b,_o as c,ap as e,bp as f,cp as g,dp as h,ep as i,fp as j}from"./chunk-
|
|
2
|
+
import{$o as d,Yo as a,Zo as b,_o as c,ap as e,bp as f,cp as g,dp as h,ep as i,fp as j}from"./chunk-pbyxj0zr.js";import"./chunk-kvz7rg2x.js";import"./chunk-arnse15r.js";import"./chunk-6b0xz02h.js";import"./chunk-135mme4g.js";import"./chunk-8j2v2hnc.js";import"./chunk-80qre9zp.js";import"./chunk-z794cdmn.js";import"./chunk-dykhpgyx.js";import"./chunk-ry86fd41.js";import"./chunk-kwpvv59c.js";import"./chunk-x0bcc9sj.js";import"./chunk-8rn5e39c.js";export{b as stripTypeScript,h as splitDeclaration,c as isModuleResolutionFailure,d as isMissingBindingFailure,f as isCompleteImport,j as hasVariables,e as extractVariables,i as extractScriptFromTemplate,g as convertToCommonJS,a as STX_ENGINE_BINDING_NAMES};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{$ as Rk,$a as Im,$b as _n,$c as $o,$d as $p,A as Bj,Aa as Tl,Ab as tn,Ac as Ao,Ad as Ap,Ae as Gq,B as Cj,Ba as Ul,Bb as un,Bc as Bo,Bd as Bp,Be as Hq,C as Dj,Ca as fm,Cb as vn,Cc as Co,Cd as Cp,Ce as Iq,D as Ej,Da as gm,Db as wn,Dc as Do,Dd as Dp,De as Jq,E as uk,Ea as hm,Eb as xn,Ec as Eo,Ed as Ep,Ee as Kq,F as vk,Fa as im,Fb as yn,Fc as Fo,Fd as Fp,Fe as Lq,G as wk,Ga as jm,Gb as zn,Gc as Go,Gd as Gp,Ge as Mq,H as xk,Ha as nm,Hb as An,Hc as Ho,Hd as Hp,He as Nq,I as yk,Ia as om,Ib as Bn,Ic as Io,Id as Ip,Ie as Oq,J as zk,Ja as pm,Jb as Cn,Jc as Jo,Jd as Jp,Je as Pq,K as Ak,Ka as qm,Kb as Dn,Kc as Ko,Kd as Kp,Ke as Qq,L as Bk,La as rm,Lb as En,Lc as Lo,Ld as Lp,Le as Rq,M as Ck,Ma as sm,Mb as Fn,Mc as Mo,Md as Mp,Me as Sq,N as Dk,Na as tm,Nb as Mn,Nc as No,Nd as Np,Ne as Tq,O as Ek,Oa as um,Ob as Nn,Oc as Oo,Od as Op,Oe as Uq,P as Fk,Pa as vm,Pb as On,Pc as Po,Pd as Pp,Pe as Vq,Q as Gk,Qa as wm,Qb as Pn,Qc as Qo,Qd as Qp,Qe as Wq,R as Hk,Ra as xm,Rb as Qn,Rc as Ro,Rd as Rp,Re as Xq,S as Ik,Sa as ym,Sb as Rn,Sc as So,Sd as Sp,Se as Yq,T as Jk,Ta as zm,Tb as Sn,Tc as To,Td as Tp,Te as Zq,U as Kk,Ua as Am,Ub as Tn,Uc as Uo,Ud as Up,Ue as _q,V as Lk,Va as Bm,Vb as Un,Vc as Vo,Vd as Vp,Ve as $q,W as Mk,Wa as Cm,Wb as Vn,Wc as Wo,Wd as Wp,We as ar,X as Nk,Xa as Em,Xb as Wn,Xc as Xo,Xd as Xp,Y as Ok,Ya as Fm,Yb as Xn,Yc as Yo,Yd as Yp,Z as Pk,Za as Gm,Zb as Yn,Zc as Zo,Zd as Zp,_ as Qk,_a as Hm,_b as Zn,_c as _o,_d as _p,aa as Sk,ab as Jm,ac as $n,ad as ap,ae as aq,ba as Tk,bb as Km,bc as ao,bd as bp,be as bq,ca as Uk,cb as Lm,cc as bo,cd as cp,ce as cq,da as Vk,db as Mm,dc as co,dd as dp,de as dq,ea as Wk,eb as Nm,ec as eo,ed as ep,ee as eq,fa as Xk,fb as Om,fc as fo,fd as fp,fe as fq,ga as Yk,gb as Pm,gc as go,gd as gp,ge as gq,ha as Zk,hb as Qm,hc as ho,hd as hp,he as hq,ia as _k,ib as Rm,ic as io,id as ip,ie as iq,ja as $k,jb as Sm,jc as jo,jd as jp,je as jq,ka as al,kb as Tm,kc as ko,kd as kp,ke as kq,la as bl,lb as Um,lc as lo,ld as lp,le as lq,ma as cl,mb as Vm,mc as mo,md as mp,me as mq,na as dl,nb as Wm,nc as no,nd as np,ne as nq,o as a,oa as el,ob as Zm,oc as oo,od as op,oe as uq,p as mj,pa as Il,pb as _m,pc as po,pd as pp,pe as vq,q as nj,qa as Jl,qb as $m,qc as qo,qd as qp,qe as wq,r as oj,ra as Kl,rb as an,rc as ro,rd as rp,re as xq,s as pj,sa as Ll,sb as gn,sc as so,sd as sp,se as yq,t as qj,ta as Ml,tb as hn,tc as to,td as tp,te as zq,u as rj,ua as Nl,ub as jn,uc as uo,ud as up,ue as Aq,v as sj,va as Ol,vb as kn,vc as vo,vd as vp,ve as Bq,w as tj,wa as Pl,wb as pn,wc as wo,wd as wp,we as Cq,x as uj,xa as Ql,xb as qn,xc as xo,xd as xp,xe as Dq,y as zj,ya as Rl,yb as rn,yc as yo,yd as yp,ye as Eq,z as Aj,za as Sl,zb as sn,zc as zo,zd as zp,ze as Fq}from"./chunk-pscdy0gn.js";import{$e as Kn,Xe as Gn,Ye as Hn,Ze as In,_e as Jn,af as Ln}from"./chunk-anenwsj3.js";import{bf as Xm,cf as Ym}from"./chunk-s6yn1mbm.js";import{df as bn}from"./chunk-5a5efazd.js";import{ef as Hl}from"./chunk-tgaddq21.js";import{ff as km,gf as lm,hf as mm,if as Dm,jf as cn,kf as dn,lf as en,mf as fn,nf as ln,of as mn,pf as nn,qf as on}from"./chunk-5fz9n4wq.js";import{Af as Oj,Bf as Pj,Cf as Qj,Df as Rj,Ef as Sj,Ff as Tj,rf as Fj,sf as Gj,tf as Hj,uf as Ij,vf as Jj,wf as Kj,xf as Lj,yf as Mj,zf as Nj}from"./chunk-bx766t25.js";import{Gf as ik,Hf as jk,If as kk,Jf as lk,Kf as mk,Lf as nk,Mf as ok,Nf as pk,Of as qk,Pf as rk,Qf as sk,Rf as tk}from"./chunk-vaa8tk98.js";import{Sf as gk,Tf as hk}from"./chunk-yppz6dgg.js";import{Uf as bj,Wf as cj}from"./chunk-gnmft4dz.js";import{ag as Uj,bg as Vj,cg as Wj,dg as Xj,eg as Yj,fg as Zj,gg as _j,ig as $j,jg as ak,kg as bk,lg as ck,mg as dk,ng as ek,qg as fk}from"./chunk-qr90ng3a.js";import{rg as wl,sg as xl,tg as yl,ug as zl,vg as Cl,wg as Gl}from"./chunk-bgb5a3q6.js";import{Ag as Bl,xg as Al}from"./chunk-ydk1n77q.js";import{Ig as fl,Jg as gl,Kg as hl,Lg as il,Mg as jl,Ng as kl,Og as ll,Pg as ml,Qg as nl,Rg as ol,Sg as pl,Tg as ql,Ug as rl,Vg as Dl,Wg as El,Xg as Fl}from"./chunk-a4329ma8.js";import{$g as Yl,Yg as Vl,Zg as Wl,_g as Xl,ah as Zl,bh as _l,ch as $l,dh as am,eh as bm,fh as cm,gh as dm,hh as em}from"./chunk-8ha8h3s1.js";import{ih as Rg}from"./chunk-4tmw4kjm.js";import{jh as Yg,kh as Zg,lh as _g,mh as $g,nh as ah,oh as bh}from"./chunk-4svjne4w.js";import{ph as qi,qh as ri,rh as si,vh as ti,wh as ui,xh as vi}from"./chunk-bz9z4pfr.js";import{Ah as Di,Bh as Ei,Ch as Fi,Dh as Gi,Eh as Hi,Fh as Ii,Gh as Ji,Hh as Ki,Ih as Li,yh as Bi,zh as Ci}from"./chunk-mt4cdgz3.js";import{Jh as gi,Kh as hi,Lh as ii,Mh as ji,Nh as ki,Ph as li,Qh as mi,Rh as ni,Sh as oi,Th as pi}from"./chunk-jw1besrt.js";import{Uh as cg,Vh as dg,Wh as eg,Xh as fg,Yh as gg}from"./chunk-z6ev72qj.js";import{$h as jg,Zh as hg,_h as ig,ai as kg,bi as lg}from"./chunk-72w4hhbq.js";import{ci as mg,di as ng,ei as og,fi as pg,gi as qg,hi as rg,ii as sg}from"./chunk-snktca7b.js";import{ji as tg,ki as ug,li as vg,mi as wg,ni as xg,oi as yg}from"./chunk-s88yt309.js";import{Ai as Jg,Bi as Kg,Ci as Lg,Di as Mg,qi as zg,ri as Ag,si as Bg,ti as Cg,ui as Dg,vi as Eg,wi as Fg,xi as Gg,yi as Hg,zi as Ig}from"./chunk-74pjj8d0.js";import{Fi as Ng,Gi as Og,Hi as Pg,Ii as Qg}from"./chunk-a6nnbnmb.js";import{Ni as Df,Oi as Ef,Pi as Ff,Qi as Gf,Ri as Hf,Si as If,Ti as Jf,Ui as Kf,Vi as Lf,Wi as Mf,Xi as Nf}from"./chunk-mcz70xms.js";import{Yi as Sf,Zi as Tf}from"./chunk-6sm1vr9h.js";import{aj as Uf}from"./chunk-4wdbmjmg.js";import"./chunk-efr3ejqt.js";import{ej as Vf}from"./chunk-swy03mg9.js";import{fj as Wf,gj as Xf}from"./chunk-cq6fsp6j.js";import{hj as Yf,ij as Zf,jj as _f,kj as $f,lj as ag,mj as bg}from"./chunk-572ttrsj.js";import{Aj as be,nj as Qd,oj as Rd,pj as Sd,qj as Td,rj as Ud,sj as Vd,tj as Wd,uj as Xd,vj as Yd,wj as Zd,xj as _d,yj as $d,zj as ae}from"./chunk-ejspksxd.js";import{Bj as Bf,Cj as Cf}from"./chunk-ad84gwgv.js";import{Jj as nf,Kj as of,Lj as pf,Mj as qf,Nj as rf,Oj as sf,Pj as tf,Qj as uf,Rj as vf,Sj as wf,Tj as xf,Uj as yf,Vj as zf,Wj as Af}from"./chunk-k6b7gpk2.js";import{ok as oq,pk as pq,qk as qq,rk as rq,sk as sq,tk as tq}from"./chunk-fw5d1aev.js";import{Ak as ul,Bk as vl,uk as vj,vk as wj,wk as xj,xk as yj,yk as sl,zk as tl}from"./chunk-7s3wrtpb.js";import"./chunk-c0n802j1.js";import"./chunk-ncvd7673.js";import{$m as Hb,$n as Hc,$p as af,$q as Fh,$r as gj,Al as ea,Am as hb,An as gc,Ao as wd,Ap as Be,Aq as Rf,Ar as ei,Bl as fa,Bm as ib,Bn as hc,Bo as xd,Bp as Ce,Bq as Sg,Br as fi,Cl as ga,Cm as jb,Cn as ic,Co as yd,Cp as De,Cq as Tg,Cr as wi,Dl as ha,Dm as kb,Dn as jc,Do as zd,Dp as Ee,Dq as Ug,Dr as xi,El as ia,Em as lb,En as kc,Eo as Ad,Ep as Fe,Eq as Vg,Er as yi,Fm as mb,Fn as lc,Fo as Bd,Fp as Ge,Fq as Wg,Fr as zi,Gn as mc,Go as Cd,Gp as He,Gq as Xg,Gr as Ai,Hl as ja,Hm as nb,Hn as nc,Ho as Dd,Hp as Ie,Hq as ch,Hr as Mi,Il as ka,Im as ob,In as oc,Io as Ed,Ip as Je,Iq as dh,Ir as Ni,Jl as la,Jm as pb,Jn as pc,Jo as Fd,Jp as Ke,Jq as eh,Jr as Oi,Kl as ma,Km as qb,Kn as qc,Ko as Gd,Kp as Le,Kq as fh,Kr as Pi,Ll as na,Lm as rb,Ln as rc,Lo as Hd,Lp as Me,Lq as gh,Lr as Qi,Mm as sb,Mn as sc,Mo as Id,Mp as Ne,Mq as hh,Mr as Ri,Nm as tb,Nn as tc,No as Jd,Np as Oe,Nq as ih,Nr as Si,Ol as qa,Om as ub,On as uc,Oo as Kd,Op as Pe,Oq as jh,Or as Ti,Pl as ra,Pm as vb,Pn as vc,Po as Ld,Pp as Qe,Pq as kh,Pr as Ui,Ql as ya,Qm as wb,Qn as wc,Qo as Md,Qp as Re,Qq as lh,Qr as Vi,Rl as za,Rm as xb,Rn as xc,Ro as Nd,Rp as Se,Rq as mh,Rr as Wi,Sl as Aa,Sm as yb,Sn as yc,So as Od,Sp as Te,Sq as nh,Sr as Xi,Tl as Ba,Tm as zb,Tn as zc,To as Pd,Tp as Ue,Tq as oh,Tr as Yi,Ul as Ca,Um as Ab,Un as Ac,Up as Ve,Uq as ph,Ur as Zi,Vl as Da,Vm as Bb,Vn as Bc,Vo as ce,Vp as We,Vq as qh,Vr as _i,Wl as Ea,Wm as Cb,Wn as Cc,Wp as Xe,Wq as rh,Wr as $i,Xl as Fa,Xm as Db,Xn as Dc,Xp as Ye,Xq as sh,Xr as aj,Yl as Ga,Ym as Eb,Yn as Ec,Yp as Ze,Yq as Ch,Yr as dj,Zm as Fb,Zn as Fc,Zp as _e,Zq as Dh,Zr as ej,_m as Gb,_n as Gc,_p as $e,_q as Eh,_r as fj,an as Ib,ao as Ic,ap as de,aq as bf,ar as Gh,as as hj,bm as Ha,bn as Jb,bo as Jc,bq as cf,br as Hh,bs as ij,cm as Ia,cn as Kb,co as Kc,cp as ee,cq as df,cr as Ih,cs as jj,dm as Ja,dn as Lb,do as Lc,dq as ef,dr as Jh,ds as kj,em as Ka,en as Mb,eo as Mc,ep as fe,eq as ff,er as Kh,es as lj,fm as La,fn as Nb,fo as Nc,fp as ge,fq as gf,fr as Lh,gm as Ma,gn as Ob,go as Oc,gp as he,gq as hf,gr as Mh,hl as s,hn as Pb,ho as Pc,hp as ie,hq as jf,hr as Nh,il as t,in as Qb,io as Qc,ip as je,iq as kf,ir as Oh,jl as u,jm as Na,jn as Rb,jo as Rc,jp as ke,jq as lf,jr as Ph,kl as v,km as Oa,kn as Sb,ko as Sc,kp as le,kq as mf,kr as Qh,ll as w,lm as Pa,ln as Tb,lo as Tc,lp as me,lr as Rh,ml as x,mm as Qa,mn as Ub,mo as id,mp as ne,mq as Of,mr as Sh,nl as y,nm as Ra,nn as Vb,no as jd,np as oe,nr as Th,ol as z,om as Sa,on as Wb,oo as kd,op as pe,or as Uh,pl as A,pm as Ta,pn as Xb,po as ld,pp as qe,pr as Vh,ql as B,qm as Ua,qn as Yb,qo as md,qp as re,qr as Wh,rl as C,rm as Va,rn as Zb,ro as nd,rp as se,rr as Xh,sl as D,sm as Wa,sn as _b,so as od,sp as te,sr as Yh,tl as E,tm as Xa,tn as $b,to as pd,tp as ue,tr as Zh,ul as F,um as Ya,un as ac,uo as qd,up as ve,ur as _h,vl as G,vm as Za,vn as bc,vo as rd,vp as we,vr as $h,wl as H,wm as _a,wn as cc,wo as sd,wp as xe,wr as ai,xl as I,xm as $a,xn as dc,xo as td,xp as ye,xr as bi,yl as J,yn as ec,yo as ud,yp as ze,yq as Pf,yr as ci,zl as da,zm as gb,zn as fc,zo as vd,zp as Ae,zq as Qf,zr as di}from"./chunk-pzcf36xm.js";import{fs as d,gs as e,hs as f,is as g,js as h,ks as i,ls as j,ms as k,ns as l,os as m,ps as n,qs as o,rs as p,ss as q,ts as r}from"./chunk-kvz7rg2x.js";import{us as b,vs as c}from"./chunk-arnse15r.js";import{ws as oa,xs as pa}from"./chunk-6b0xz02h.js";import{As as vh,Bs as wh,Cs as xh,Ds as yh,Es as zh,Fs as Ah,Gs as Bh,ys as th,zs as uh}from"./chunk-135mme4g.js";import{Hs as ab,Is as bb,Ks as cb,Us as db,Vs as eb,Ws as fb}from"./chunk-qfsktf7s.js";import{$s as wa,Xs as sa,Ys as ta,Zs as ua,_s as va,at as xa}from"./chunk-80qre9zp.js";import{bt as Uc,ct as Vc,dt as Wc,et as Xc,ft as Yc,gt as Zc,ht as _c,it as $c,jt as ad,kt as bd,lt as cd,mt as dd,nt as ed,ot as fd,pt as gd,qt as hd}from"./chunk-z794cdmn.js";import"./chunk-dykhpgyx.js";import"./chunk-ry86fd41.js";import{$t as V,Ft as K,Gt as L,Jt as M,Ot as N,Pt as O,Vt as P,Wt as Q,Xt as R,Yt as S,Zt as T,_t as U,au as W,bu as X,cu as Y,du as Z,eu as _,fu as $,gu as aa,hu as ba,ju as ca}from"./chunk-kdpy5rgk.js";import"./chunk-x0bcc9sj.js";import"./chunk-8rn5e39c.js";export{Pj as writeNetlifyConfig,El as writeManifest,sk as writeImageManifest,Vn as wrapComponentForHMR,Pq as withDefaults,aj as webComponentDirectiveHandler,Lo as watermark,Np as watchViews,Ck as watchMultiple,Dk as watchEffect,Bk as watch,Qk as waitForStore,Hd as waitForLocale,Hn as virtualPathFor,Pi as videoDirective,cc as validators,Tq as validated,td as validateValueEnhanced,Tg as validateTemplate,Qo as validateParams,ud as validateFormEnhanced,Cp as validateFile,pd as validateFields,od as validateField,Vg as validateDirective,Oc as validateCspDirectives,ij as validateConfig,Jl as validateComponentScripts,fm as validateComponentProps,Rf as validateClientScript,Qg as v,Ua as usesSignalsInScript,gh as userComponentFileExists,wg as useVirtualList,ad as useTitle,Pk as useStoreOrThrow,mo as useStore,zj as useStorage,Yp as useSlots,Bj as useSessionStorage,Zc as useSeoMeta,Rk as useRouteParams,Tk as useRouteParamOrThrow,Sk as useRouteParam,ad as usePageTitle,Af as useOptimistic,Vk as useMiddlewareValue,Uk as useMiddlewareState,Aj as useLocalStorage,On as useLoadingIndicator,Xc as useHead,Ng as useForm,_p as useAttrs,Ep as uploadFiles,Dp as uploadFile,Mk as updateInstance,yf as untrack,wh as unregisterDirective,Nk as unmountInstance,$a as unescapeHtml,Kn as typecheckStxFiles,fh as transpileTypeScript,Dq as translate,w as transitionDirective,$l as toUsers,_l as toUser,uo as thumbnail,vp as thumbHashToRGBA,wp as thumbHashToDataURL,Df as templateCache,vb as syncRecordedResponse,Sn as stxClientHelpers,xe as structuredDataDirective,Gq as stripLocalePrefix,pl as stripDocumentWrapper,pa as stripCommentsAndLiterals,Nm as stringToStream,Cc as strictCspPreset,Yd as streamingSuspenseDirective,ae as streamToResponse,Wd as streamTemplateSimple,Qd as streamTemplate,uj as stopHmrServer,Xl as stopBroadcasting,va as stateDirName,wa as stateDir,nf as state,gf as startsDocument,on as startProductionServer,bn as startInteractive,Wl as startBroadcasting,D as staggerDirective,Oo as srcsetUrls,E as springDirective,lc as splitByPipe,ll as spaNavVaryHeaders,In as sourcePathFor,Vo as smartBatchSign,ih as slotContentHasExpressions,To as signUrl,dh as shouldTranspileTypeScript,rj as shouldReloadOnChange,Yo as shouldRefreshSignature,sj as shouldIgnoreFile,og as shouldCacheComponent,yo as sharpen,Wq as shape,ua as setStateDir,Zk as setRouteParams,_k as setMiddlewareState,Sp as setGlobalProvide,zb as setErrorLocale,uk as setCurrentInstance,Di as setCachedVideoResult,si as setCachedImageResult,mi as setCached,Zq as serveStxFile,$q as serveMultipleStxFiles,mj as serveMarkdownFile,yn as serveFile,ar as serveApp,xn as serve,Yn as serializeState,Dm as serializeSetCookie,Ao as sepia,_c as seoMetaToHeadConfig,x as scrollAnimateDirective,q as screenReaderDirective,Ti as scopeHTML,Si as scopeCSS,Ae as scanForSitemapEntries,k as scanA11yTargets,l as scanA11yIssues,Eo as saturation,Ro as sanitizeParams,ec as sanitizeFilePath,fc as sanitizeExpression,gc as sanitizeDirectiveParams,dc as sanitizeDirectiveParam,hc as sanitizeComponentProps,Zb as safeExecuteAsync,Yb as safeExecute,qe as runPreProcessingMiddleware,re as runPostProcessingMiddleware,en as runPageAction,tf as runMountCallbacks,ba as runMiddleware,Kk as runHooks,wq as runDoctor,uf as runDestroyCallbacks,Fe as runComposers,Fo as rotate,Rg as rewriteImagesWithSiblings,wb as responseBindings,mh as resolveTemplatePath,c as resolveStxTargets,ej as resolveStxDirectories,Cq as resolveI18n,so as resize,Ha as resetPlaceholders,Wc as resetHead,Xn as resetHMRHandler,Mb as resetErrorConfig,Rq as required,La as replacePlaceholders,Lp as renderView,Mi as renderVideoComponent,za as renderVendorStyleTags,fq as renderToString,gq as renderToStream,hq as renderToDOM,up as renderThumbhashToCanvas,tq as renderTemplateString,rq as renderTemplate,sq as renderString,Td as renderStreamingPage,_g as renderSlot,eg as renderSSRSuspense,ep as renderProtectedVideo,dp as renderProtectedImg,So as renderMediaUpload,qq as renderMarkdownView,ul as renderLayoutTypes,wi as renderImgComponent,ik as renderImageComponent,cd as renderHtmlAttrs,bd as renderHead,Op as renderEmail,kh as renderComponentWithSlot,dd as renderBodyAttrs,ho as render,Ec as relaxedCspPreset,nd as registerValidationRule,_d as registerStreamingDirectives,oo as registerStoresClient,Xk as registerStore,ye as registerSeoDirectives,V as registerMiddleware,Pa as registerFilters,Oa as registerFilter,Bb as registerErrorMessages,sd as registerEnhancedValidationRule,th as registerDirective,Nc as registerCspDirectives,im as registerComponentDirectives,J as registerAnimationDirectives,r as registerA11yDirectives,yk as ref,Vm as redirect,rb as recordResponseStatus,sb as recordResponseHeader,xa as rebaseOntoStateDir,tb as readResponseStatus,ub as readResponseHeaders,kj as readMarkdownFile,Ef as readFileCached,zk as reactive,Jo as quality,bp as pruneSignatureCache,pi as pruneCache,Qp as provide,pq as protectCodeBlocks,Qq as prop,Je as processVueTemplate,ug as processVirtualListDirectives,yg as processVirtualGridDirectives,Li as processVideo,qd as processValidateDirective,Od as processTranslateDirective,_f as processTransitionDirectives,bg as processTransitionAttributes,gd as processTitleDirective,jb as processTemplateBindings,Wf as processTeleportDirectives,cg as processSuspenseDirectives,te as processStructuredData,Ud as processStreamDirectives,xb as processStatusDirective,Lg as processStaticDirectives,oe as processStackReplacements,ne as processStackPushDirectives,$g as processSlots,nl as processShell,He as processServerBindings,ue as processSeoDirective,$d as processSectionDirectives,Me as processScopedStyles,hb as processReactiveBindings,fp as processProtectedMedia,Eg as processPartialHydrationDirectives,Qf as processOnceDirective,pe as processMiddleware,se as processMetaDirectives,hd as processMetaDirective,lj as processMarkdownFileDirectives,rh as processMarkdownDirectives,ie as processLoops,mg as processKeepAliveDirectives,Pf as processJsonDirective,xg as processInfiniteListDirectives,me as processIncludes,yi as processImgComponents,kk as processImageComponents,Zj as processImage,fd as processHeadDirective,jd as processForms,ld as processFormInputDirectives,Ya as processExpressions,ma as processEventDirectives,md as processErrorDirective,Ke as processDynamicComponents,Sg as processDirectives,Bh as processDirectiveAttributes,Vf as processDeferDirectives,Sc as processCustomDirectives,Kc as processCspDirectives,Xq as processComponentProps,Ga as processClientScript,kd as processBasicFormDirectives,hg as processAsyncDirectives,Tc as processAppearanceBootstrapDirective,A as processAnimationDirectives,f as processA11yDirectives,Dd as preloadTranslationsBackground,Cd as preloadTranslations,Nn as preloadIslandHandlers,ce as preloadIconCollection,Sl as poolStrings,cj as pluginManager,Zf as performLeave,Yf as performEnter,vf as pendingLifecycleCounts,zf as peek,je as partialsCache,Ni as parseVideoDirectiveOptions,qo as parseUrl,xp as parseThumbhashString,rc as parseSwitchBlock,Yg as parseSlots,Zg as parseSlotElement,wc as parseScriptDeclarations,_i as parseSFCComponent,gp as parseProtectedArgs,he as parseLoopBinding,xi as parseImgComponent,Ph as parseImageUrl,jk as parseImageComponent,cn as parseFormBody,tc as parseExpressionWithFilters,Sm as parseCookies,nm as parseContainerSelector,oc as parseConditionalBlock,uc as parseArguments,H as parseAnimationShorthand,Sq as optional,Tl as optimizeTemplate,pk as optimizeImage,qk as optimizeDirectory,Uq as oneOf,ke as onceStore,Hk as onUpdated,gb as onUpdate,Jk as onUnmounted,cl as onServer,Fk as onMounted,rf as onMount,Kg as onHydrated,Wp as onErrorCaptured,sf as onDestroy,sg as onDeactivated,bl as onClient,Gk as onBeforeUpdate,Ik as onBeforeUnmount,Ek as onBeforeMount,rg as onActivated,qp as observeElement,Wm as notFound,Re as normalizeCriticalHeadOrder,Vp as nextTick,lm as negotiateEncoding,P as navigateTo,Lk as mountInstance,z as motionDirective,Dc as moderateCspPreset,Rl as minifyHtml,we as metaDirective,$e as metaDedupKey,ro as mergeParams,bf as mergeHtmlAttrs,Yc as mergeHeadConfigs,Hc as mergeCspDirectives,bb as mergeCrosswindConfig,M as matchRoute,sh as markdownDirectiveHandler,jj as markdownCache,b as looksLikeGlob,Fq as localizePath,Ed as loadTranslationLazy,Kd as loadTranslation,fj as loadStxConfig,_ as loadMiddlewareFromDirectory,Fl as loadManifest,mp as loadElement,Yl as loadChannels,Lq as lintStxStrict,op as lazyLoadAll,np as lazyLoad,C as keyframeDirective,dq as jsxs,eq as jsxDEV,cq as jsx,Um as jsonResponse,Zd as islandDirective,Jb as isTest,ql as isSpaNavigation,jl as isSpaNavRequest,Wo as isSignatureValid,wf as isSignal,Xj as isSharpAvailable,Gm as isServerEnvironment,$k as isServer,Hb as isProduction,d as isPresentationalRole,jp as isNativeLazySupported,oq as isMarkdownPath,Ad as isLoading,Bd as isLoaded,ch as isJavaScriptScript,kp as isIntersectionObserverSupported,dk as isImageFile,Yj as isImageBackendAvailable,Md as isICUFormat,Jg as isHydrated,hh as isHydrateTrigger,pb as isHttpStatus,Fm as isEdgeEnvironment,Mq as isDirectiveKind,Ib as isDevelopment,xf as isDerived,qj as isCssOnlyChange,km as isCompressible,al as isClient,jg as isAsyncComponent,dn as isActionableMethod,Bo as invert,Gf as invalidateFileCacheByDir,Ff as invalidateFileCache,Xa as interpolateScriptsInTemplate,Va as interpolateScriptExpressions,Wa as interpolateScriptAttributes,Vb as inlineError,Bq as injectThemeBootstrap,ve as injectSeoTags,yq as injectSeo,Of as injectRouterScript,pj as injectHotReload,fa as injectHeatmap,Ic as injectCspMetaTag,fb as injectCrosswindCSS,jf as injectConfigHeadTags,Qe as injectColorModeBootScript,df as injectCloakStyle,Xe as injectBuildId,Ba as injectBrowserCoreAutoImports,lb as injectAnalytics,Rp as inject,Wk as initStoreRegistry,Sj as initNetlify,Pn as initLoadingIndicator,lp as initLazyLoading,an as initFile,tp as initBlurUp,zp as initAllBlurUp,Ai as imgDirective,nk as imageDirective,mn as hydrateTemplateStream,ln as hydrateTemplate,Mn as hydrateIslands,Gg as hydrateIsland,nn as hydrateFragment,Hg as hydrateByStrategy,Ig as hydrateAll,eo as hydrate,wn as htmlResponse,ef as hoistLeadingHeadTags,Se as hoistColorModeBootScript,ga as heatmapDirective,ii as hashString,Nf as hashFilePath,gi as hashFile,hi as hashBuffer,Ie as hasVueTemplateSyntax,ge as hasVariables,jo as hasStore,Ma as hasPlaceholders,Qj as hasNetlifyConfig,X as hasMiddleware,na as hasEventDirectives,hf as hasDocumentShell,Wg as hasDirectives,h as hasDOMSupport,gk as handleImageRequest,Xp as handleError,lq as h,ck as groupVariantsByFormat,zo as grayscale,pn as gitHash,Ll as getUnusedDirectives,Fd as getTranslationSync,yd as getTranslationCacheStats,Gd as getTranslationAsync,Nd as getTranslation,Lj as getTotalSize,Xo as getTimeUntilExpiry,Sf as getStoreScript,ko as getStoreNames,io as getStore,Ej as getStorageSize,Dj as getStorageKeys,nh as getSourceLineInfo,eh as getSharedTranspiler,g as getScreenReaderOnlyStyle,Ui as getScopeAttribute,mf as getRouteParams,qa as getPublicEnvDefine,ra as getPublicEnv,Ug as getPositionInfo,Ja as getPlaceholderRegistry,fi as getPlaceholderCacheStats,Vc as getPageMeta,yc as getNonce,ek as getMimeType,Z as getMiddlewareNames,W as getMiddleware,zd as getLoadingState,Id as getLoadingLocales,_j as getImageMetadata,co as getHydrationRuntime,Yk as getHydratedStoreState,tj as getHmrServer,Uc as getHead,Wn as getHMRHandler,Th as getFormatExtension,ki as getFileMtime,bk as getFallbackVariant,Db as getErrorMessage,Ab as getErrorLocale,Lb as getErrorConfig,Gb as getErrorCodeName,vh as getDirectives,uh as getDirective,vk as getCurrentInstance,Gc as getCspPreset,Pc as getCspHeaderName,cb as getCrosswindServeAsset,qh as getComponentCacheStats,Ci as getCachedVideoResult,$o as getCachedSignature,If as getCachedSignalsRuntime,Jf as getCachedRouterScript,di as getCachedPlaceholder,ri as getCachedImageResult,li as getCached,oi as getCacheStats,Ve as getBuildId,Vl as getBroadcastServer,Sh as getBestVariant,Qa as getAllFilters,Gh as generateWidthSrcset,vg as generateVirtualListCSS,Gp as generateVideoPreview,vd as generateValidationScript,Hp as generateUploadRuntime,Ml as generateTreeShakenBundle,ag as generateTransitionRuntime,$f as generateTransitionCSS,Gi as generateThumbnails,Yh as generateThumbhashPlaceholder,wm as generateTemplatesDocs,gg as generateSuspenseRuntime,fg as generateSuspenseCSS,Zn as generateStateScript,Qh as generateSrcsetData,vi as generateSrcset,$j as generateSrcSet,Hi as generateSpriteSheet,Pp as generateSpaShell,Rh as generateSourceTags,Mh as generateSizesFromBreakpoints,Lh as generateSizesAttribute,ak as generateSizes,ze as generateSitemapIndex,zq as generateSitemap,ip as generateSimpleMediaPicker,cp as generateSignatureRuntime,Cf as generateSignalsRuntimeDev,Bf as generateSignalsRuntime,Fa as generateServerDataBridge,Ri as generateScopeId,$i as generateSFCWebComponent,ka as generateRuntimeScript,K as generateRouteTypes,L as generateRouteManifest,Be as generateRobotsTxt,Aq as generateRobots,ui as generateResponsiveVariants,Xi as generateReactiveWebComponentTS,Wi as generateReactiveWebComponent,Zi as generateReactiveRuntime,Yi as generateReactiveMixin,Fi as generatePoster,ci as generatePlaceholderStyle,bi as generatePlaceholderCSS,Xh as generatePlaceholder,Fg as generatePartialHydrationCSS,xc as generateNonce,Mj as generateNetlifyToml,Jp as generateMinifiedMediaRuntime,Ip as generateMediaRuntime,hp as generateMediaManagerEmbed,Dl as generateManifest,Rn as generateLoadingIndicatorHtml,sp as generateLazyLoadRuntime,vl as generateLayoutTypes,_h as generateLQIP,qg as generateKeepAliveRuntime,pg as generateKeepAliveCSS,Mg as generateIslandManifest,Fp as generateImagePreview,rk as generateImageManifest,bo as generateHydrationScript,be as generateHydrationRuntime,fo as generateHydrationCSS,zg as generateHydrationBootstrap,oj as generateHotReloadScript,ea as generateHeatmapScript,Un as generateHMRClientScript,Ii as generateHLSManifest,_n as generateEventBindings,Kh as generateDprSrcsetWithVariableQuality,Jh as generateDprSrcset,ff as generateDocumentShell,Bm as generateDocs,xm as generateDirectivesDocs,Ah as generateDirectiveRuntime,Ce as generateDefaultRobotsTxt,Ji as generateDASHManifest,Bc as generateCspMetaTag,Ac as generateCspHeader,eb as generateCrosswindCSS,aq as generateCompositionRuntime,vm as generateComponentsDocs,Ag as generateComponentManifest,tm as generateComponentDoc,ai as generateColorPlaceholder,Pe as generateColorModeBootScript,Ok as generateClientRuntime,ji as generateCacheKey,Da as generateBrowserAutoImportDestructuring,Ap as generateBlurUpRuntime,Bp as generateBlurUpCSS,ib as generateBindingsRuntime,Hh as generateAutoWidthSrcset,Ca as generateAutoImportDestructuring,lg as generateAsyncComponentRuntime,kg as generateAsyncComponentCSS,I as generateAnimationRuntime,G as generateAnimationCSS,kb as generateAnalyticsScript,Ln as formatTypecheckDiagnostics,Fn as formatTypeErrors,Zm as formatStxContent,Kj as formatSize,O as formatRoutes,_m as formatMarkdownContent,Eb as formatLocalizedError,Ld as formatICU,Nb as formatFilePath,Ub as formatError,xq as formatDoctorReport,ym as formatDocsAsMarkdown,Am as formatDocsAsJson,zm as formatDocsAsHtml,Io as format,Ql as foldConstants,Ho as flipVertical,Go as flipHorizontal,wl as fingerprint,Jn as findRuntimeTypeDeclarations,vq as findPantryPackage,nc as findMatchingEndTag,jc as findMatchingDelimiter,oa as findInterpolationEnd,pc as findIfBlocks,sc as findExpressions,N as findErrorPage,qc as findDirectiveBlocks,Nl as findDeadCode,Nl as findDeadBranches,om as findContainerRegion,um as findComponentFiles,_q as findCommonDir,Jj as filterRequiredFiles,lh as fileExists,de as extractVariables,Bl as extractTemplateExpressions,Vd as extractStreamBoundaries,$n as extractState,ah as extractSlotContent,fe as extractScriptFromTemplate,Al as extractScriptBlocks,Ka as extractPlaceholders,mc as extractParenthesizedExpression,qb as extractPageResponseStatus,ca as extractLayoutMetadata,$h as extractDominantColor,vc as extractDirectiveParams,Xg as extractDirectiveNames,rl as extractContainerContent,rm as extractComponentProps,Bg as extractComponentName,sm as extractComponentDescription,db as extractClassNames,Ea as extractBridgeData,Cg as extractBoundProps,kc as extractBalancedExpression,ya as extractAndStripCssImports,Vi as extractAndScopeStyles,la as extractAndProcessEvents,xj as externalizeSharedAssets,yj as externalizeRepeatedAssets,wj as externalizeHtml,_a as evaluateExpression,Pl as evaluateConstant,yb as evaluateAuthExpression,Ta as escapeHtmlValue,Sa as escapeHtml,_b as errorRecovery,ac as errorLogger,Xf as ensureTeleportTargets,kf as ensureDocumentShell,rd as enhancedValidationRules,pm as enableDevTools,Ol as eliminateDeadCode,pf as effect,Po as dprUrls,Cm as docsCommand,tl as discoverLayoutNames,rp as disconnectObserver,qm as disableDevTools,bc as devHelpers,ml as detectShell,Em as detectRuntime,Nj as detectProjectConfig,Uh as detectFormat,Il as detectBuildMode,of as derived,Rj as deploy,hj as defineStxConfig,no as defineStore,Zp as defineSlots,Kq as defineSiteConfig,Oq as definePropsWithValidation,Nq as defineProps,bj as definePlugin,$c as definePageMeta,R as defineMiddleware,Og as defineForm,Up as defineExpose,Tp as defineEmits,xh as defineDirective,nq as defineCustomElement,kn as defineConfig,yh as defineClientDirective,ig as defineAsyncComponent,Kp as defaultMediaConfig,tk as defaultImageConfig,wd as defaultI18nConfig,da as defaultHeatmapConfig,id as defaultFormClasses,Na as defaultFilters,Rc as defaultCspConfig,dj as defaultConfig,Yq as default,ab as deepMergeThemes,Le as dedupeScopedStyles,Zh as decodeThumbhash,Mc as cspNonceDirective,Lc as cspDirective,yp as crossfadeTransition,to as crop,tg as createVirtualList,Oi as createVideoDirective,Qm as createVercelHandler,Cn as createTypeChecker,Pd as createTranslateFilter,Mm as createTextEncoderStream,mq as createStxApp,Lm as createStreamingResponse,Xd as createStreamRenderer,lo as createStore,U as createStorageManager,S as createServerCookieManager,xk as createScope,dg as createSSRSuspense,lf as createRouter,$ as createRouteLocation,An as createRoute,yk as createRef,zk as createReactive,$p as createProvideContext,rn as createProject,jn as createProductionBuild,Ia as createPlaceholder,Ul as createOptimizedBuild,Rm as createNetlifyHandler,Fj as createNetlifyClient,aa as createMiddlewareContext,zn as createMiddleware,pp as createLazyObserver,ng as createKeepAliveCache,Im as createKVNamespace,Dg as createIslandRegistry,zi as createImgDirective,ok as createImagePlugin,hk as createImageHandler,mk as createImageDirective,ia as createHeatmapAggregator,Ij as createFileManifest,Hm as createEnvAccessor,Xb as createEnhancedError,Km as createEdgeHandler,Jm as createEdgeCache,oh as createDetailedErrorMessage,Pm as createDenoHandler,Oj as createDefaultNetlifyConfig,Qc as createCspHeaders,Tm as createCookie,Ak as createComputed,wk as createComponentInstance,Om as createCloudflareHandler,T as createClientCookieManager,zh as createBuiltinDirectives,mq as createApp,F as createAnimationTimeline,wo as cover,ee as convertToCommonJS,Do as contrast,vo as contain,Wb as consoleError,Kb as configureErrorHandling,gj as config,Ak as computed,mm as compressResponse,Ee as composerPattern,De as composer,ol as composeShellWithPage,hm as componentDirective,jh as componentClientSignalNames,Cl as compileTemplate,a as collectRepeatedFlag,Hj as collectDeployFiles,Ei as clearVideoCache,xd as clearTranslationCache,Tf as clearStoreCache,Cj as clearStorage,ap as clearSignatureCache,ei as clearPlaceholderCache,le as clearOnceStore,zc as clearNonce,Y as clearMiddleware,lk as clearImageCache,Cb as clearErrorMessages,Kf as clearDevCaches,Ra as clearCustomFilters,Ge as clearComposers,Uf as clearComposableCache,ph as clearComponentCache,ni as clearCache,Qn as cleanupLoadingIndicator,fl as classifyScript,gl as classifyAllScripts,Dn as checkTemplateFile,En as checkTemplate,Lf as checkCache,Zo as checkAuthAccess,i as checkA11yWithRegex,j as checkA11y,cm as channel,Ym as captureScreenshots,Xm as captureScreenshot,Jd as cancelPendingLoads,Gj as calculateSha1,Ih as calculateOptimalWidths,Mf as cacheTemplate,Qi as buildWebComponents,Gn as buildVirtualSource,Mp as buildViews,po as buildUrl,Rd as buildSuspenseResolveScript,Jq as buildStaticSite,xl as buildRuntimeAsset,yl as buildRouterAsset,Iq as buildLangPickerScript,Oh as buildImageUrl,af as buildHtmlAttrs,Gl as buildForProduction,jm as buildComponentLibrary,_o as buildAuthParams,Hl as buildApp,Hq as buildAlternateLinks,hn as build,am as broadcastPrivate,bm as broadcastPresence,Zl as broadcast,Co as brightness,xo as blur,Uo as batchSignUrls,qf as batch,n as autoFixA11yFile,o as autoFixA11yDirectory,m as autoFixA11y,Ko as auto,e as attributeValue,zl as assetTags,ja as asInvocableStatement,Vq as arrayOf,Eq as applyTranslations,ti as applyTransformations,bh as applySlots,gm as applyPropDefaults,No as applyPreset,cf as applyHtmlAttrs,ed as applyHead,Za as applyFilters,kl as appendVary,Fc as apiCspPreset,y as animationGroupDirective,Ki as analyzeVideo,Kl as analyzeUsage,dl as analyzeTemplate,el as analyzeProject,Kl as analyzeDirectiveUsage,mb as analyticsDirective,un as addStore,tn as addPage,Jc as addNonceToInlineContent,vn as addLayout,sn as addComponent,fn as actionRedirectResponse,Q as abortNavigation,p as a11yDirective,Hf as __setSignalsGeneratorsForTest,We as __setBuildIdForTest,Bi as VideoProcessorCache,Pg as Validator,s as TransitionType,u as TransitionEase,t as TransitionDirection,ic as Tokenizer,Bn as TemplateTypeChecker,$m as TEMPLATE_PRESETS,Tb as StxValidationError,Pb as StxSyntaxError,Rb as StxSecurityError,Qb as StxRuntimeError,Sb as StxFileError,Ob as StxError,iq as Show,Sd as SUSPENSE_RESOLVER_RUNTIME,Aa as STX_AUTO_IMPORTS,ta as STATE_DIR_ENV_VAR,B as SPRING_PRESETS,hl as SPA_NAV_HEADER,nb as RESPONSE_STATUS_KEY,ob as RESPONSE_HEADERS_KEY,gn as ProductionBuild,kq as Portal,qn as PROJECT_TEMPLATES,Mo as PRESETS,go as MemorySessionStore,Fh as MIME_TYPES,Ch as MEDIA_DEFAULT_WIDTHS,Eh as MEDIA_DEFAULT_FORMATS,sl as LAYOUT_TYPES_FILE,qi as ImageProcessorCache,fk as ImageProcessingError,ao as HydrationRuntime,nj as HotReloadServer,ha as HeatmapAggregator,_e as HTML_CLASS_MARKER,Ze as HTML_ATTRS_MARKER,bq as Fragment,jq as For,il as FRAGMENT_CACHE_CONTROL,$b as ErrorLogger,Fb as ErrorCodes,vj as EXTERNALIZED_ASSET_DIR,Tj as DeployError,Uj as DEFAULT_WIDTHS,v as DEFAULT_TRANSITION_OPTIONS,sa as DEFAULT_STATE_DIR,Wj as DEFAULT_QUALITY,Vh as DEFAULT_PLACEHOLDER_OPTIONS,Vj as DEFAULT_FORMATS,Dh as DEFAULT_DPR_VALUES,Tn as ComponentHMRHandler,Nh as COMMON_SIZES,Ne as COLOR_MODE_BOOT_MARKER,Oe as COLOR_MODE_BOOT_GLOBAL,Ye as CLOAK_STYLE,em as BroadcastServer,dm as Broadcast,Te as BUILD_ID_META,Ue as BUILD_ID_HEADER,Wh as BLUR_UP_CSS,uq as $path};
|
|
2
|
+
import{$ as Rk,$a as Im,$b as _n,$c as $o,$d as $p,A as Bj,Aa as Tl,Ab as tn,Ac as Ao,Ad as Ap,Ae as Gq,B as Cj,Ba as Ul,Bb as un,Bc as Bo,Bd as Bp,Be as Hq,C as Dj,Ca as fm,Cb as vn,Cc as Co,Cd as Cp,Ce as Iq,D as Ej,Da as gm,Db as wn,Dc as Do,Dd as Dp,De as Jq,E as uk,Ea as hm,Eb as xn,Ec as Eo,Ed as Ep,Ee as Kq,F as vk,Fa as im,Fb as yn,Fc as Fo,Fd as Fp,Fe as Lq,G as wk,Ga as jm,Gb as zn,Gc as Go,Gd as Gp,Ge as Mq,H as xk,Ha as nm,Hb as An,Hc as Ho,Hd as Hp,He as Nq,I as yk,Ia as om,Ib as Bn,Ic as Io,Id as Ip,Ie as Oq,J as zk,Ja as pm,Jb as Cn,Jc as Jo,Jd as Jp,Je as Pq,K as Ak,Ka as qm,Kb as Dn,Kc as Ko,Kd as Kp,Ke as Qq,L as Bk,La as rm,Lb as En,Lc as Lo,Ld as Lp,Le as Rq,M as Ck,Ma as sm,Mb as Fn,Mc as Mo,Md as Mp,Me as Sq,N as Dk,Na as tm,Nb as Mn,Nc as No,Nd as Np,Ne as Tq,O as Ek,Oa as um,Ob as Nn,Oc as Oo,Od as Op,Oe as Uq,P as Fk,Pa as vm,Pb as On,Pc as Po,Pd as Pp,Pe as Vq,Q as Gk,Qa as wm,Qb as Pn,Qc as Qo,Qd as Qp,Qe as Wq,R as Hk,Ra as xm,Rb as Qn,Rc as Ro,Rd as Rp,Re as Xq,S as Ik,Sa as ym,Sb as Rn,Sc as So,Sd as Sp,Se as Yq,T as Jk,Ta as zm,Tb as Sn,Tc as To,Td as Tp,Te as Zq,U as Kk,Ua as Am,Ub as Tn,Uc as Uo,Ud as Up,Ue as _q,V as Lk,Va as Bm,Vb as Un,Vc as Vo,Vd as Vp,Ve as $q,W as Mk,Wa as Cm,Wb as Vn,Wc as Wo,Wd as Wp,We as ar,X as Nk,Xa as Em,Xb as Wn,Xc as Xo,Xd as Xp,Y as Ok,Ya as Fm,Yb as Xn,Yc as Yo,Yd as Yp,Z as Pk,Za as Gm,Zb as Yn,Zc as Zo,Zd as Zp,_ as Qk,_a as Hm,_b as Zn,_c as _o,_d as _p,aa as Sk,ab as Jm,ac as $n,ad as ap,ae as aq,ba as Tk,bb as Km,bc as ao,bd as bp,be as bq,ca as Uk,cb as Lm,cc as bo,cd as cp,ce as cq,da as Vk,db as Mm,dc as co,dd as dp,de as dq,ea as Wk,eb as Nm,ec as eo,ed as ep,ee as eq,fa as Xk,fb as Om,fc as fo,fd as fp,fe as fq,ga as Yk,gb as Pm,gc as go,gd as gp,ge as gq,ha as Zk,hb as Qm,hc as ho,hd as hp,he as hq,ia as _k,ib as Rm,ic as io,id as ip,ie as iq,ja as $k,jb as Sm,jc as jo,jd as jp,je as jq,ka as al,kb as Tm,kc as ko,kd as kp,ke as kq,la as bl,lb as Um,lc as lo,ld as lp,le as lq,ma as cl,mb as Vm,mc as mo,md as mp,me as mq,na as dl,nb as Wm,nc as no,nd as np,ne as nq,o as a,oa as el,ob as Zm,oc as oo,od as op,oe as uq,p as mj,pa as Il,pb as _m,pc as po,pd as pp,pe as vq,q as nj,qa as Jl,qb as $m,qc as qo,qd as qp,qe as wq,r as oj,ra as Kl,rb as an,rc as ro,rd as rp,re as xq,s as pj,sa as Ll,sb as gn,sc as so,sd as sp,se as yq,t as qj,ta as Ml,tb as hn,tc as to,td as tp,te as zq,u as rj,ua as Nl,ub as jn,uc as uo,ud as up,ue as Aq,v as sj,va as Ol,vb as kn,vc as vo,vd as vp,ve as Bq,w as tj,wa as Pl,wb as pn,wc as wo,wd as wp,we as Cq,x as uj,xa as Ql,xb as qn,xc as xo,xd as xp,xe as Dq,y as zj,ya as Rl,yb as rn,yc as yo,yd as yp,ye as Eq,z as Aj,za as Sl,zb as sn,zc as zo,zd as zp,ze as Fq}from"./chunk-pd8cce9a.js";import{$e as Kn,Xe as Gn,Ye as Hn,Ze as In,_e as Jn,af as Ln}from"./chunk-szw6at2m.js";import{bf as Xm,cf as Ym}from"./chunk-s6yn1mbm.js";import{df as bn}from"./chunk-53d24qhh.js";import{ef as Hl}from"./chunk-cc6b6cvn.js";import{ff as km,gf as lm,hf as mm,if as Dm,jf as cn,kf as dn,lf as en,mf as fn,nf as ln,of as mn,pf as nn,qf as on}from"./chunk-m8kn995q.js";import{Af as Oj,Bf as Pj,Cf as Qj,Df as Rj,Ef as Sj,Ff as Tj,rf as Fj,sf as Gj,tf as Hj,uf as Ij,vf as Jj,wf as Kj,xf as Lj,yf as Mj,zf as Nj}from"./chunk-bx766t25.js";import{Gf as ik,Hf as jk,If as kk,Jf as lk,Kf as mk,Lf as nk,Mf as ok,Nf as pk,Of as qk,Pf as rk,Qf as sk,Rf as tk}from"./chunk-vaa8tk98.js";import{Sf as gk,Tf as hk}from"./chunk-yppz6dgg.js";import{Uf as bj,Wf as cj}from"./chunk-gnmft4dz.js";import{ag as Uj,bg as Vj,cg as Wj,dg as Xj,eg as Yj,fg as Zj,gg as _j,ig as $j,jg as ak,kg as bk,lg as ck,mg as dk,ng as ek,qg as fk}from"./chunk-qr90ng3a.js";import{rg as wl,sg as xl,tg as yl,ug as zl,vg as Cl,wg as Gl}from"./chunk-m86nzprx.js";import{Ag as Bl,xg as Al}from"./chunk-ydk1n77q.js";import{Ig as fl,Jg as gl,Kg as hl,Lg as il,Mg as jl,Ng as kl,Og as ll,Pg as ml,Qg as nl,Rg as ol,Sg as pl,Tg as ql,Ug as rl,Vg as Dl,Wg as El,Xg as Fl}from"./chunk-yf4p02wy.js";import{$g as Yl,Yg as Vl,Zg as Wl,_g as Xl,ah as Zl,bh as _l,ch as $l,dh as am,eh as bm,fh as cm,gh as dm,hh as em}from"./chunk-8ha8h3s1.js";import{ih as Rg}from"./chunk-4tmw4kjm.js";import{jh as Yg,kh as Zg,lh as _g,mh as $g,nh as ah,oh as bh}from"./chunk-bg595da5.js";import{ph as qi,qh as ri,rh as si,vh as ti,wh as ui,xh as vi}from"./chunk-bz9z4pfr.js";import{Ah as Di,Bh as Ei,Ch as Fi,Dh as Gi,Eh as Hi,Fh as Ii,Gh as Ji,Hh as Ki,Ih as Li,yh as Bi,zh as Ci}from"./chunk-mt4cdgz3.js";import{Jh as gi,Kh as hi,Lh as ii,Mh as ji,Nh as ki,Ph as li,Qh as mi,Rh as ni,Sh as oi,Th as pi}from"./chunk-jw1besrt.js";import{Uh as cg,Vh as dg,Wh as eg,Xh as fg,Yh as gg}from"./chunk-z6ev72qj.js";import{$h as jg,Zh as hg,_h as ig,ai as kg,bi as lg}from"./chunk-72w4hhbq.js";import{ci as mg,di as ng,ei as og,fi as pg,gi as qg,hi as rg,ii as sg}from"./chunk-snktca7b.js";import{ji as tg,ki as ug,li as vg,mi as wg,ni as xg,oi as yg}from"./chunk-s88yt309.js";import{Ai as Jg,Bi as Kg,Ci as Lg,Di as Mg,qi as zg,ri as Ag,si as Bg,ti as Cg,ui as Dg,vi as Eg,wi as Fg,xi as Gg,yi as Hg,zi as Ig}from"./chunk-74pjj8d0.js";import{Fi as Ng,Gi as Og,Hi as Pg,Ii as Qg}from"./chunk-a6nnbnmb.js";import{Ni as Df,Oi as Ef,Pi as Ff,Qi as Gf,Ri as Hf,Si as If,Ti as Jf,Ui as Kf,Vi as Lf,Wi as Mf,Xi as Nf}from"./chunk-4thj960e.js";import{Yi as Sf,Zi as Tf}from"./chunk-ansvb340.js";import{aj as Uf}from"./chunk-j51tsstz.js";import"./chunk-efr3ejqt.js";import{ej as Vf}from"./chunk-swy03mg9.js";import{fj as Wf,gj as Xf}from"./chunk-cq6fsp6j.js";import{hj as Yf,ij as Zf,jj as _f,kj as $f,lj as ag,mj as bg}from"./chunk-572ttrsj.js";import{Aj as be,nj as Qd,oj as Rd,pj as Sd,qj as Td,rj as Ud,sj as Vd,tj as Wd,uj as Xd,vj as Yd,wj as Zd,xj as _d,yj as $d,zj as ae}from"./chunk-bhz0py78.js";import{Bj as Bf,Cj as Cf}from"./chunk-ad84gwgv.js";import{Jj as nf,Kj as of,Lj as pf,Mj as qf,Nj as rf,Oj as sf,Pj as tf,Qj as uf,Rj as vf,Sj as wf,Tj as xf,Uj as yf,Vj as zf,Wj as Af}from"./chunk-k6b7gpk2.js";import{ok as oq,pk as pq,qk as qq,rk as rq,sk as sq,tk as tq}from"./chunk-egpmwqas.js";import{Ak as ul,Bk as vl,uk as vj,vk as wj,wk as xj,xk as yj,yk as sl,zk as tl}from"./chunk-td2et1ek.js";import"./chunk-c0n802j1.js";import"./chunk-ncvd7673.js";import{$m as Hb,$n as Hc,$p as af,$q as Fh,$r as gj,Al as ea,Am as hb,An as gc,Ao as wd,Ap as Be,Aq as Rf,Ar as ei,Bl as fa,Bm as ib,Bn as hc,Bo as xd,Bp as Ce,Bq as Sg,Br as fi,Cl as ga,Cm as jb,Cn as ic,Co as yd,Cp as De,Cq as Tg,Cr as wi,Dl as ha,Dm as kb,Dn as jc,Do as zd,Dp as Ee,Dq as Ug,Dr as xi,El as ia,Em as lb,En as kc,Eo as Ad,Ep as Fe,Eq as Vg,Er as yi,Fm as mb,Fn as lc,Fo as Bd,Fp as Ge,Fq as Wg,Fr as zi,Gn as mc,Go as Cd,Gp as He,Gq as Xg,Gr as Ai,Hl as ja,Hm as nb,Hn as nc,Ho as Dd,Hp as Ie,Hq as ch,Hr as Mi,Il as ka,Im as ob,In as oc,Io as Ed,Ip as Je,Iq as dh,Ir as Ni,Jl as la,Jm as pb,Jn as pc,Jo as Fd,Jp as Ke,Jq as eh,Jr as Oi,Kl as ma,Km as qb,Kn as qc,Ko as Gd,Kp as Le,Kq as fh,Kr as Pi,Ll as na,Lm as rb,Ln as rc,Lo as Hd,Lp as Me,Lq as gh,Lr as Qi,Mm as sb,Mn as sc,Mo as Id,Mp as Ne,Mq as hh,Mr as Ri,Nm as tb,Nn as tc,No as Jd,Np as Oe,Nq as ih,Nr as Si,Ol as qa,Om as ub,On as uc,Oo as Kd,Op as Pe,Oq as jh,Or as Ti,Pl as ra,Pm as vb,Pn as vc,Po as Ld,Pp as Qe,Pq as kh,Pr as Ui,Ql as ya,Qm as wb,Qn as wc,Qo as Md,Qp as Re,Qq as lh,Qr as Vi,Rl as za,Rm as xb,Rn as xc,Ro as Nd,Rp as Se,Rq as mh,Rr as Wi,Sl as Aa,Sm as yb,Sn as yc,So as Od,Sp as Te,Sq as nh,Sr as Xi,Tl as Ba,Tm as zb,Tn as zc,To as Pd,Tp as Ue,Tq as oh,Tr as Yi,Ul as Ca,Um as Ab,Un as Ac,Up as Ve,Uq as ph,Ur as Zi,Vl as Da,Vm as Bb,Vn as Bc,Vo as ce,Vp as We,Vq as qh,Vr as _i,Wl as Ea,Wm as Cb,Wn as Cc,Wp as Xe,Wq as rh,Wr as $i,Xl as Fa,Xm as Db,Xn as Dc,Xp as Ye,Xq as sh,Xr as aj,Yl as Ga,Ym as Eb,Yn as Ec,Yp as Ze,Yq as Ch,Yr as dj,Zm as Fb,Zn as Fc,Zp as _e,Zq as Dh,Zr as ej,_m as Gb,_n as Gc,_p as $e,_q as Eh,_r as fj,an as Ib,ao as Ic,ap as de,aq as bf,ar as Gh,as as hj,bm as Ha,bn as Jb,bo as Jc,bq as cf,br as Hh,bs as ij,cm as Ia,cn as Kb,co as Kc,cp as ee,cq as df,cr as Ih,cs as jj,dm as Ja,dn as Lb,do as Lc,dq as ef,dr as Jh,ds as kj,em as Ka,en as Mb,eo as Mc,ep as fe,eq as ff,er as Kh,es as lj,fm as La,fn as Nb,fo as Nc,fp as ge,fq as gf,fr as Lh,gm as Ma,gn as Ob,go as Oc,gp as he,gq as hf,gr as Mh,hl as s,hn as Pb,ho as Pc,hp as ie,hq as jf,hr as Nh,il as t,in as Qb,io as Qc,ip as je,iq as kf,ir as Oh,jl as u,jm as Na,jn as Rb,jo as Rc,jp as ke,jq as lf,jr as Ph,kl as v,km as Oa,kn as Sb,ko as Sc,kp as le,kq as mf,kr as Qh,ll as w,lm as Pa,ln as Tb,lo as Tc,lp as me,lr as Rh,ml as x,mm as Qa,mn as Ub,mo as id,mp as ne,mq as Of,mr as Sh,nl as y,nm as Ra,nn as Vb,no as jd,np as oe,nr as Th,ol as z,om as Sa,on as Wb,oo as kd,op as pe,or as Uh,pl as A,pm as Ta,pn as Xb,po as ld,pp as qe,pr as Vh,ql as B,qm as Ua,qn as Yb,qo as md,qp as re,qr as Wh,rl as C,rm as Va,rn as Zb,ro as nd,rp as se,rr as Xh,sl as D,sm as Wa,sn as _b,so as od,sp as te,sr as Yh,tl as E,tm as Xa,tn as $b,to as pd,tp as ue,tr as Zh,ul as F,um as Ya,un as ac,uo as qd,up as ve,ur as _h,vl as G,vm as Za,vn as bc,vo as rd,vp as we,vr as $h,wl as H,wm as _a,wn as cc,wo as sd,wp as xe,wr as ai,xl as I,xm as $a,xn as dc,xo as td,xp as ye,xr as bi,yl as J,yn as ec,yo as ud,yp as ze,yq as Pf,yr as ci,zl as da,zm as gb,zn as fc,zo as vd,zp as Ae,zq as Qf,zr as di}from"./chunk-pbyxj0zr.js";import{fs as d,gs as e,hs as f,is as g,js as h,ks as i,ls as j,ms as k,ns as l,os as m,ps as n,qs as o,rs as p,ss as q,ts as r}from"./chunk-kvz7rg2x.js";import{us as b,vs as c}from"./chunk-arnse15r.js";import{ws as oa,xs as pa}from"./chunk-6b0xz02h.js";import{As as vh,Bs as wh,Cs as xh,Ds as yh,Es as zh,Fs as Ah,Gs as Bh,ys as th,zs as uh}from"./chunk-135mme4g.js";import{Hs as ab,Is as bb,Ks as cb,Us as db,Vs as eb,Ws as fb}from"./chunk-8j2v2hnc.js";import{$s as wa,Xs as sa,Ys as ta,Zs as ua,_s as va,at as xa}from"./chunk-80qre9zp.js";import{bt as Uc,ct as Vc,dt as Wc,et as Xc,ft as Yc,gt as Zc,ht as _c,it as $c,jt as ad,kt as bd,lt as cd,mt as dd,nt as ed,ot as fd,pt as gd,qt as hd}from"./chunk-z794cdmn.js";import"./chunk-dykhpgyx.js";import"./chunk-ry86fd41.js";import{$t as V,Ft as K,Gt as L,Jt as M,Ot as N,Pt as O,Vt as P,Wt as Q,Xt as R,Yt as S,Zt as T,_t as U,au as W,bu as X,cu as Y,du as Z,eu as _,fu as $,gu as aa,hu as ba,ju as ca}from"./chunk-kwpvv59c.js";import"./chunk-x0bcc9sj.js";import"./chunk-8rn5e39c.js";export{Pj as writeNetlifyConfig,El as writeManifest,sk as writeImageManifest,Vn as wrapComponentForHMR,Pq as withDefaults,aj as webComponentDirectiveHandler,Lo as watermark,Np as watchViews,Ck as watchMultiple,Dk as watchEffect,Bk as watch,Qk as waitForStore,Hd as waitForLocale,Hn as virtualPathFor,Pi as videoDirective,cc as validators,Tq as validated,td as validateValueEnhanced,Tg as validateTemplate,Qo as validateParams,ud as validateFormEnhanced,Cp as validateFile,pd as validateFields,od as validateField,Vg as validateDirective,Oc as validateCspDirectives,ij as validateConfig,Jl as validateComponentScripts,fm as validateComponentProps,Rf as validateClientScript,Qg as v,Ua as usesSignalsInScript,gh as userComponentFileExists,wg as useVirtualList,ad as useTitle,Pk as useStoreOrThrow,mo as useStore,zj as useStorage,Yp as useSlots,Bj as useSessionStorage,Zc as useSeoMeta,Rk as useRouteParams,Tk as useRouteParamOrThrow,Sk as useRouteParam,ad as usePageTitle,Af as useOptimistic,Vk as useMiddlewareValue,Uk as useMiddlewareState,Aj as useLocalStorage,On as useLoadingIndicator,Xc as useHead,Ng as useForm,_p as useAttrs,Ep as uploadFiles,Dp as uploadFile,Mk as updateInstance,yf as untrack,wh as unregisterDirective,Nk as unmountInstance,$a as unescapeHtml,Kn as typecheckStxFiles,fh as transpileTypeScript,Dq as translate,w as transitionDirective,$l as toUsers,_l as toUser,uo as thumbnail,vp as thumbHashToRGBA,wp as thumbHashToDataURL,Df as templateCache,vb as syncRecordedResponse,Sn as stxClientHelpers,xe as structuredDataDirective,Gq as stripLocalePrefix,pl as stripDocumentWrapper,pa as stripCommentsAndLiterals,Nm as stringToStream,Cc as strictCspPreset,Yd as streamingSuspenseDirective,ae as streamToResponse,Wd as streamTemplateSimple,Qd as streamTemplate,uj as stopHmrServer,Xl as stopBroadcasting,va as stateDirName,wa as stateDir,nf as state,gf as startsDocument,on as startProductionServer,bn as startInteractive,Wl as startBroadcasting,D as staggerDirective,Oo as srcsetUrls,E as springDirective,lc as splitByPipe,ll as spaNavVaryHeaders,In as sourcePathFor,Vo as smartBatchSign,ih as slotContentHasExpressions,To as signUrl,dh as shouldTranspileTypeScript,rj as shouldReloadOnChange,Yo as shouldRefreshSignature,sj as shouldIgnoreFile,og as shouldCacheComponent,yo as sharpen,Wq as shape,ua as setStateDir,Zk as setRouteParams,_k as setMiddlewareState,Sp as setGlobalProvide,zb as setErrorLocale,uk as setCurrentInstance,Di as setCachedVideoResult,si as setCachedImageResult,mi as setCached,Zq as serveStxFile,$q as serveMultipleStxFiles,mj as serveMarkdownFile,yn as serveFile,ar as serveApp,xn as serve,Yn as serializeState,Dm as serializeSetCookie,Ao as sepia,_c as seoMetaToHeadConfig,x as scrollAnimateDirective,q as screenReaderDirective,Ti as scopeHTML,Si as scopeCSS,Ae as scanForSitemapEntries,k as scanA11yTargets,l as scanA11yIssues,Eo as saturation,Ro as sanitizeParams,ec as sanitizeFilePath,fc as sanitizeExpression,gc as sanitizeDirectiveParams,dc as sanitizeDirectiveParam,hc as sanitizeComponentProps,Zb as safeExecuteAsync,Yb as safeExecute,qe as runPreProcessingMiddleware,re as runPostProcessingMiddleware,en as runPageAction,tf as runMountCallbacks,ba as runMiddleware,Kk as runHooks,wq as runDoctor,uf as runDestroyCallbacks,Fe as runComposers,Fo as rotate,Rg as rewriteImagesWithSiblings,wb as responseBindings,mh as resolveTemplatePath,c as resolveStxTargets,ej as resolveStxDirectories,Cq as resolveI18n,so as resize,Ha as resetPlaceholders,Wc as resetHead,Xn as resetHMRHandler,Mb as resetErrorConfig,Rq as required,La as replacePlaceholders,Lp as renderView,Mi as renderVideoComponent,za as renderVendorStyleTags,fq as renderToString,gq as renderToStream,hq as renderToDOM,up as renderThumbhashToCanvas,tq as renderTemplateString,rq as renderTemplate,sq as renderString,Td as renderStreamingPage,_g as renderSlot,eg as renderSSRSuspense,ep as renderProtectedVideo,dp as renderProtectedImg,So as renderMediaUpload,qq as renderMarkdownView,ul as renderLayoutTypes,wi as renderImgComponent,ik as renderImageComponent,cd as renderHtmlAttrs,bd as renderHead,Op as renderEmail,kh as renderComponentWithSlot,dd as renderBodyAttrs,ho as render,Ec as relaxedCspPreset,nd as registerValidationRule,_d as registerStreamingDirectives,oo as registerStoresClient,Xk as registerStore,ye as registerSeoDirectives,V as registerMiddleware,Pa as registerFilters,Oa as registerFilter,Bb as registerErrorMessages,sd as registerEnhancedValidationRule,th as registerDirective,Nc as registerCspDirectives,im as registerComponentDirectives,J as registerAnimationDirectives,r as registerA11yDirectives,yk as ref,Vm as redirect,rb as recordResponseStatus,sb as recordResponseHeader,xa as rebaseOntoStateDir,tb as readResponseStatus,ub as readResponseHeaders,kj as readMarkdownFile,Ef as readFileCached,zk as reactive,Jo as quality,bp as pruneSignatureCache,pi as pruneCache,Qp as provide,pq as protectCodeBlocks,Qq as prop,Je as processVueTemplate,ug as processVirtualListDirectives,yg as processVirtualGridDirectives,Li as processVideo,qd as processValidateDirective,Od as processTranslateDirective,_f as processTransitionDirectives,bg as processTransitionAttributes,gd as processTitleDirective,jb as processTemplateBindings,Wf as processTeleportDirectives,cg as processSuspenseDirectives,te as processStructuredData,Ud as processStreamDirectives,xb as processStatusDirective,Lg as processStaticDirectives,oe as processStackReplacements,ne as processStackPushDirectives,$g as processSlots,nl as processShell,He as processServerBindings,ue as processSeoDirective,$d as processSectionDirectives,Me as processScopedStyles,hb as processReactiveBindings,fp as processProtectedMedia,Eg as processPartialHydrationDirectives,Qf as processOnceDirective,pe as processMiddleware,se as processMetaDirectives,hd as processMetaDirective,lj as processMarkdownFileDirectives,rh as processMarkdownDirectives,ie as processLoops,mg as processKeepAliveDirectives,Pf as processJsonDirective,xg as processInfiniteListDirectives,me as processIncludes,yi as processImgComponents,kk as processImageComponents,Zj as processImage,fd as processHeadDirective,jd as processForms,ld as processFormInputDirectives,Ya as processExpressions,ma as processEventDirectives,md as processErrorDirective,Ke as processDynamicComponents,Sg as processDirectives,Bh as processDirectiveAttributes,Vf as processDeferDirectives,Sc as processCustomDirectives,Kc as processCspDirectives,Xq as processComponentProps,Ga as processClientScript,kd as processBasicFormDirectives,hg as processAsyncDirectives,Tc as processAppearanceBootstrapDirective,A as processAnimationDirectives,f as processA11yDirectives,Dd as preloadTranslationsBackground,Cd as preloadTranslations,Nn as preloadIslandHandlers,ce as preloadIconCollection,Sl as poolStrings,cj as pluginManager,Zf as performLeave,Yf as performEnter,vf as pendingLifecycleCounts,zf as peek,je as partialsCache,Ni as parseVideoDirectiveOptions,qo as parseUrl,xp as parseThumbhashString,rc as parseSwitchBlock,Yg as parseSlots,Zg as parseSlotElement,wc as parseScriptDeclarations,_i as parseSFCComponent,gp as parseProtectedArgs,he as parseLoopBinding,xi as parseImgComponent,Ph as parseImageUrl,jk as parseImageComponent,cn as parseFormBody,tc as parseExpressionWithFilters,Sm as parseCookies,nm as parseContainerSelector,oc as parseConditionalBlock,uc as parseArguments,H as parseAnimationShorthand,Sq as optional,Tl as optimizeTemplate,pk as optimizeImage,qk as optimizeDirectory,Uq as oneOf,ke as onceStore,Hk as onUpdated,gb as onUpdate,Jk as onUnmounted,cl as onServer,Fk as onMounted,rf as onMount,Kg as onHydrated,Wp as onErrorCaptured,sf as onDestroy,sg as onDeactivated,bl as onClient,Gk as onBeforeUpdate,Ik as onBeforeUnmount,Ek as onBeforeMount,rg as onActivated,qp as observeElement,Wm as notFound,Re as normalizeCriticalHeadOrder,Vp as nextTick,lm as negotiateEncoding,P as navigateTo,Lk as mountInstance,z as motionDirective,Dc as moderateCspPreset,Rl as minifyHtml,we as metaDirective,$e as metaDedupKey,ro as mergeParams,bf as mergeHtmlAttrs,Yc as mergeHeadConfigs,Hc as mergeCspDirectives,bb as mergeCrosswindConfig,M as matchRoute,sh as markdownDirectiveHandler,jj as markdownCache,b as looksLikeGlob,Fq as localizePath,Ed as loadTranslationLazy,Kd as loadTranslation,fj as loadStxConfig,_ as loadMiddlewareFromDirectory,Fl as loadManifest,mp as loadElement,Yl as loadChannels,Lq as lintStxStrict,op as lazyLoadAll,np as lazyLoad,C as keyframeDirective,dq as jsxs,eq as jsxDEV,cq as jsx,Um as jsonResponse,Zd as islandDirective,Jb as isTest,ql as isSpaNavigation,jl as isSpaNavRequest,Wo as isSignatureValid,wf as isSignal,Xj as isSharpAvailable,Gm as isServerEnvironment,$k as isServer,Hb as isProduction,d as isPresentationalRole,jp as isNativeLazySupported,oq as isMarkdownPath,Ad as isLoading,Bd as isLoaded,ch as isJavaScriptScript,kp as isIntersectionObserverSupported,dk as isImageFile,Yj as isImageBackendAvailable,Md as isICUFormat,Jg as isHydrated,hh as isHydrateTrigger,pb as isHttpStatus,Fm as isEdgeEnvironment,Mq as isDirectiveKind,Ib as isDevelopment,xf as isDerived,qj as isCssOnlyChange,km as isCompressible,al as isClient,jg as isAsyncComponent,dn as isActionableMethod,Bo as invert,Gf as invalidateFileCacheByDir,Ff as invalidateFileCache,Xa as interpolateScriptsInTemplate,Va as interpolateScriptExpressions,Wa as interpolateScriptAttributes,Vb as inlineError,Bq as injectThemeBootstrap,ve as injectSeoTags,yq as injectSeo,Of as injectRouterScript,pj as injectHotReload,fa as injectHeatmap,Ic as injectCspMetaTag,fb as injectCrosswindCSS,jf as injectConfigHeadTags,Qe as injectColorModeBootScript,df as injectCloakStyle,Xe as injectBuildId,Ba as injectBrowserCoreAutoImports,lb as injectAnalytics,Rp as inject,Wk as initStoreRegistry,Sj as initNetlify,Pn as initLoadingIndicator,lp as initLazyLoading,an as initFile,tp as initBlurUp,zp as initAllBlurUp,Ai as imgDirective,nk as imageDirective,mn as hydrateTemplateStream,ln as hydrateTemplate,Mn as hydrateIslands,Gg as hydrateIsland,nn as hydrateFragment,Hg as hydrateByStrategy,Ig as hydrateAll,eo as hydrate,wn as htmlResponse,ef as hoistLeadingHeadTags,Se as hoistColorModeBootScript,ga as heatmapDirective,ii as hashString,Nf as hashFilePath,gi as hashFile,hi as hashBuffer,Ie as hasVueTemplateSyntax,ge as hasVariables,jo as hasStore,Ma as hasPlaceholders,Qj as hasNetlifyConfig,X as hasMiddleware,na as hasEventDirectives,hf as hasDocumentShell,Wg as hasDirectives,h as hasDOMSupport,gk as handleImageRequest,Xp as handleError,lq as h,ck as groupVariantsByFormat,zo as grayscale,pn as gitHash,Ll as getUnusedDirectives,Fd as getTranslationSync,yd as getTranslationCacheStats,Gd as getTranslationAsync,Nd as getTranslation,Lj as getTotalSize,Xo as getTimeUntilExpiry,Sf as getStoreScript,ko as getStoreNames,io as getStore,Ej as getStorageSize,Dj as getStorageKeys,nh as getSourceLineInfo,eh as getSharedTranspiler,g as getScreenReaderOnlyStyle,Ui as getScopeAttribute,mf as getRouteParams,qa as getPublicEnvDefine,ra as getPublicEnv,Ug as getPositionInfo,Ja as getPlaceholderRegistry,fi as getPlaceholderCacheStats,Vc as getPageMeta,yc as getNonce,ek as getMimeType,Z as getMiddlewareNames,W as getMiddleware,zd as getLoadingState,Id as getLoadingLocales,_j as getImageMetadata,co as getHydrationRuntime,Yk as getHydratedStoreState,tj as getHmrServer,Uc as getHead,Wn as getHMRHandler,Th as getFormatExtension,ki as getFileMtime,bk as getFallbackVariant,Db as getErrorMessage,Ab as getErrorLocale,Lb as getErrorConfig,Gb as getErrorCodeName,vh as getDirectives,uh as getDirective,vk as getCurrentInstance,Gc as getCspPreset,Pc as getCspHeaderName,cb as getCrosswindServeAsset,qh as getComponentCacheStats,Ci as getCachedVideoResult,$o as getCachedSignature,If as getCachedSignalsRuntime,Jf as getCachedRouterScript,di as getCachedPlaceholder,ri as getCachedImageResult,li as getCached,oi as getCacheStats,Ve as getBuildId,Vl as getBroadcastServer,Sh as getBestVariant,Qa as getAllFilters,Gh as generateWidthSrcset,vg as generateVirtualListCSS,Gp as generateVideoPreview,vd as generateValidationScript,Hp as generateUploadRuntime,Ml as generateTreeShakenBundle,ag as generateTransitionRuntime,$f as generateTransitionCSS,Gi as generateThumbnails,Yh as generateThumbhashPlaceholder,wm as generateTemplatesDocs,gg as generateSuspenseRuntime,fg as generateSuspenseCSS,Zn as generateStateScript,Qh as generateSrcsetData,vi as generateSrcset,$j as generateSrcSet,Hi as generateSpriteSheet,Pp as generateSpaShell,Rh as generateSourceTags,Mh as generateSizesFromBreakpoints,Lh as generateSizesAttribute,ak as generateSizes,ze as generateSitemapIndex,zq as generateSitemap,ip as generateSimpleMediaPicker,cp as generateSignatureRuntime,Cf as generateSignalsRuntimeDev,Bf as generateSignalsRuntime,Fa as generateServerDataBridge,Ri as generateScopeId,$i as generateSFCWebComponent,ka as generateRuntimeScript,K as generateRouteTypes,L as generateRouteManifest,Be as generateRobotsTxt,Aq as generateRobots,ui as generateResponsiveVariants,Xi as generateReactiveWebComponentTS,Wi as generateReactiveWebComponent,Zi as generateReactiveRuntime,Yi as generateReactiveMixin,Fi as generatePoster,ci as generatePlaceholderStyle,bi as generatePlaceholderCSS,Xh as generatePlaceholder,Fg as generatePartialHydrationCSS,xc as generateNonce,Mj as generateNetlifyToml,Jp as generateMinifiedMediaRuntime,Ip as generateMediaRuntime,hp as generateMediaManagerEmbed,Dl as generateManifest,Rn as generateLoadingIndicatorHtml,sp as generateLazyLoadRuntime,vl as generateLayoutTypes,_h as generateLQIP,qg as generateKeepAliveRuntime,pg as generateKeepAliveCSS,Mg as generateIslandManifest,Fp as generateImagePreview,rk as generateImageManifest,bo as generateHydrationScript,be as generateHydrationRuntime,fo as generateHydrationCSS,zg as generateHydrationBootstrap,oj as generateHotReloadScript,ea as generateHeatmapScript,Un as generateHMRClientScript,Ii as generateHLSManifest,_n as generateEventBindings,Kh as generateDprSrcsetWithVariableQuality,Jh as generateDprSrcset,ff as generateDocumentShell,Bm as generateDocs,xm as generateDirectivesDocs,Ah as generateDirectiveRuntime,Ce as generateDefaultRobotsTxt,Ji as generateDASHManifest,Bc as generateCspMetaTag,Ac as generateCspHeader,eb as generateCrosswindCSS,aq as generateCompositionRuntime,vm as generateComponentsDocs,Ag as generateComponentManifest,tm as generateComponentDoc,ai as generateColorPlaceholder,Pe as generateColorModeBootScript,Ok as generateClientRuntime,ji as generateCacheKey,Da as generateBrowserAutoImportDestructuring,Ap as generateBlurUpRuntime,Bp as generateBlurUpCSS,ib as generateBindingsRuntime,Hh as generateAutoWidthSrcset,Ca as generateAutoImportDestructuring,lg as generateAsyncComponentRuntime,kg as generateAsyncComponentCSS,I as generateAnimationRuntime,G as generateAnimationCSS,kb as generateAnalyticsScript,Ln as formatTypecheckDiagnostics,Fn as formatTypeErrors,Zm as formatStxContent,Kj as formatSize,O as formatRoutes,_m as formatMarkdownContent,Eb as formatLocalizedError,Ld as formatICU,Nb as formatFilePath,Ub as formatError,xq as formatDoctorReport,ym as formatDocsAsMarkdown,Am as formatDocsAsJson,zm as formatDocsAsHtml,Io as format,Ql as foldConstants,Ho as flipVertical,Go as flipHorizontal,wl as fingerprint,Jn as findRuntimeTypeDeclarations,vq as findPantryPackage,nc as findMatchingEndTag,jc as findMatchingDelimiter,oa as findInterpolationEnd,pc as findIfBlocks,sc as findExpressions,N as findErrorPage,qc as findDirectiveBlocks,Nl as findDeadCode,Nl as findDeadBranches,om as findContainerRegion,um as findComponentFiles,_q as findCommonDir,Jj as filterRequiredFiles,lh as fileExists,de as extractVariables,Bl as extractTemplateExpressions,Vd as extractStreamBoundaries,$n as extractState,ah as extractSlotContent,fe as extractScriptFromTemplate,Al as extractScriptBlocks,Ka as extractPlaceholders,mc as extractParenthesizedExpression,qb as extractPageResponseStatus,ca as extractLayoutMetadata,$h as extractDominantColor,vc as extractDirectiveParams,Xg as extractDirectiveNames,rl as extractContainerContent,rm as extractComponentProps,Bg as extractComponentName,sm as extractComponentDescription,db as extractClassNames,Ea as extractBridgeData,Cg as extractBoundProps,kc as extractBalancedExpression,ya as extractAndStripCssImports,Vi as extractAndScopeStyles,la as extractAndProcessEvents,xj as externalizeSharedAssets,yj as externalizeRepeatedAssets,wj as externalizeHtml,_a as evaluateExpression,Pl as evaluateConstant,yb as evaluateAuthExpression,Ta as escapeHtmlValue,Sa as escapeHtml,_b as errorRecovery,ac as errorLogger,Xf as ensureTeleportTargets,kf as ensureDocumentShell,rd as enhancedValidationRules,pm as enableDevTools,Ol as eliminateDeadCode,pf as effect,Po as dprUrls,Cm as docsCommand,tl as discoverLayoutNames,rp as disconnectObserver,qm as disableDevTools,bc as devHelpers,ml as detectShell,Em as detectRuntime,Nj as detectProjectConfig,Uh as detectFormat,Il as detectBuildMode,of as derived,Rj as deploy,hj as defineStxConfig,no as defineStore,Zp as defineSlots,Kq as defineSiteConfig,Oq as definePropsWithValidation,Nq as defineProps,bj as definePlugin,$c as definePageMeta,R as defineMiddleware,Og as defineForm,Up as defineExpose,Tp as defineEmits,xh as defineDirective,nq as defineCustomElement,kn as defineConfig,yh as defineClientDirective,ig as defineAsyncComponent,Kp as defaultMediaConfig,tk as defaultImageConfig,wd as defaultI18nConfig,da as defaultHeatmapConfig,id as defaultFormClasses,Na as defaultFilters,Rc as defaultCspConfig,dj as defaultConfig,Yq as default,ab as deepMergeThemes,Le as dedupeScopedStyles,Zh as decodeThumbhash,Mc as cspNonceDirective,Lc as cspDirective,yp as crossfadeTransition,to as crop,tg as createVirtualList,Oi as createVideoDirective,Qm as createVercelHandler,Cn as createTypeChecker,Pd as createTranslateFilter,Mm as createTextEncoderStream,mq as createStxApp,Lm as createStreamingResponse,Xd as createStreamRenderer,lo as createStore,U as createStorageManager,S as createServerCookieManager,xk as createScope,dg as createSSRSuspense,lf as createRouter,$ as createRouteLocation,An as createRoute,yk as createRef,zk as createReactive,$p as createProvideContext,rn as createProject,jn as createProductionBuild,Ia as createPlaceholder,Ul as createOptimizedBuild,Rm as createNetlifyHandler,Fj as createNetlifyClient,aa as createMiddlewareContext,zn as createMiddleware,pp as createLazyObserver,ng as createKeepAliveCache,Im as createKVNamespace,Dg as createIslandRegistry,zi as createImgDirective,ok as createImagePlugin,hk as createImageHandler,mk as createImageDirective,ia as createHeatmapAggregator,Ij as createFileManifest,Hm as createEnvAccessor,Xb as createEnhancedError,Km as createEdgeHandler,Jm as createEdgeCache,oh as createDetailedErrorMessage,Pm as createDenoHandler,Oj as createDefaultNetlifyConfig,Qc as createCspHeaders,Tm as createCookie,Ak as createComputed,wk as createComponentInstance,Om as createCloudflareHandler,T as createClientCookieManager,zh as createBuiltinDirectives,mq as createApp,F as createAnimationTimeline,wo as cover,ee as convertToCommonJS,Do as contrast,vo as contain,Wb as consoleError,Kb as configureErrorHandling,gj as config,Ak as computed,mm as compressResponse,Ee as composerPattern,De as composer,ol as composeShellWithPage,hm as componentDirective,jh as componentClientSignalNames,Cl as compileTemplate,a as collectRepeatedFlag,Hj as collectDeployFiles,Ei as clearVideoCache,xd as clearTranslationCache,Tf as clearStoreCache,Cj as clearStorage,ap as clearSignatureCache,ei as clearPlaceholderCache,le as clearOnceStore,zc as clearNonce,Y as clearMiddleware,lk as clearImageCache,Cb as clearErrorMessages,Kf as clearDevCaches,Ra as clearCustomFilters,Ge as clearComposers,Uf as clearComposableCache,ph as clearComponentCache,ni as clearCache,Qn as cleanupLoadingIndicator,fl as classifyScript,gl as classifyAllScripts,Dn as checkTemplateFile,En as checkTemplate,Lf as checkCache,Zo as checkAuthAccess,i as checkA11yWithRegex,j as checkA11y,cm as channel,Ym as captureScreenshots,Xm as captureScreenshot,Jd as cancelPendingLoads,Gj as calculateSha1,Ih as calculateOptimalWidths,Mf as cacheTemplate,Qi as buildWebComponents,Gn as buildVirtualSource,Mp as buildViews,po as buildUrl,Rd as buildSuspenseResolveScript,Jq as buildStaticSite,xl as buildRuntimeAsset,yl as buildRouterAsset,Iq as buildLangPickerScript,Oh as buildImageUrl,af as buildHtmlAttrs,Gl as buildForProduction,jm as buildComponentLibrary,_o as buildAuthParams,Hl as buildApp,Hq as buildAlternateLinks,hn as build,am as broadcastPrivate,bm as broadcastPresence,Zl as broadcast,Co as brightness,xo as blur,Uo as batchSignUrls,qf as batch,n as autoFixA11yFile,o as autoFixA11yDirectory,m as autoFixA11y,Ko as auto,e as attributeValue,zl as assetTags,ja as asInvocableStatement,Vq as arrayOf,Eq as applyTranslations,ti as applyTransformations,bh as applySlots,gm as applyPropDefaults,No as applyPreset,cf as applyHtmlAttrs,ed as applyHead,Za as applyFilters,kl as appendVary,Fc as apiCspPreset,y as animationGroupDirective,Ki as analyzeVideo,Kl as analyzeUsage,dl as analyzeTemplate,el as analyzeProject,Kl as analyzeDirectiveUsage,mb as analyticsDirective,un as addStore,tn as addPage,Jc as addNonceToInlineContent,vn as addLayout,sn as addComponent,fn as actionRedirectResponse,Q as abortNavigation,p as a11yDirective,Hf as __setSignalsGeneratorsForTest,We as __setBuildIdForTest,Bi as VideoProcessorCache,Pg as Validator,s as TransitionType,u as TransitionEase,t as TransitionDirection,ic as Tokenizer,Bn as TemplateTypeChecker,$m as TEMPLATE_PRESETS,Tb as StxValidationError,Pb as StxSyntaxError,Rb as StxSecurityError,Qb as StxRuntimeError,Sb as StxFileError,Ob as StxError,iq as Show,Sd as SUSPENSE_RESOLVER_RUNTIME,Aa as STX_AUTO_IMPORTS,ta as STATE_DIR_ENV_VAR,B as SPRING_PRESETS,hl as SPA_NAV_HEADER,nb as RESPONSE_STATUS_KEY,ob as RESPONSE_HEADERS_KEY,gn as ProductionBuild,kq as Portal,qn as PROJECT_TEMPLATES,Mo as PRESETS,go as MemorySessionStore,Fh as MIME_TYPES,Ch as MEDIA_DEFAULT_WIDTHS,Eh as MEDIA_DEFAULT_FORMATS,sl as LAYOUT_TYPES_FILE,qi as ImageProcessorCache,fk as ImageProcessingError,ao as HydrationRuntime,nj as HotReloadServer,ha as HeatmapAggregator,_e as HTML_CLASS_MARKER,Ze as HTML_ATTRS_MARKER,bq as Fragment,jq as For,il as FRAGMENT_CACHE_CONTROL,$b as ErrorLogger,Fb as ErrorCodes,vj as EXTERNALIZED_ASSET_DIR,Tj as DeployError,Uj as DEFAULT_WIDTHS,v as DEFAULT_TRANSITION_OPTIONS,sa as DEFAULT_STATE_DIR,Wj as DEFAULT_QUALITY,Vh as DEFAULT_PLACEHOLDER_OPTIONS,Vj as DEFAULT_FORMATS,Dh as DEFAULT_DPR_VALUES,Tn as ComponentHMRHandler,Nh as COMMON_SIZES,Ne as COLOR_MODE_BOOT_MARKER,Oe as COLOR_MODE_BOOT_GLOBAL,Ye as CLOAK_STYLE,em as BroadcastServer,dm as Broadcast,Te as BUILD_ID_META,Ue as BUILD_ID_HEADER,Wh as BLUR_UP_CSS,uq as $path};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Aq as d,Bq as e,mq as a,yq as b,zq as c}from"./chunk-
|
|
2
|
+
import{Aq as d,Bq as e,mq as a,yq as b,zq as c}from"./chunk-pbyxj0zr.js";import"./chunk-kvz7rg2x.js";import"./chunk-arnse15r.js";import"./chunk-6b0xz02h.js";import"./chunk-135mme4g.js";import"./chunk-8j2v2hnc.js";import"./chunk-80qre9zp.js";import"./chunk-z794cdmn.js";import"./chunk-dykhpgyx.js";import"./chunk-ry86fd41.js";import"./chunk-kwpvv59c.js";import"./chunk-x0bcc9sj.js";import"./chunk-8rn5e39c.js";export{d as validateClientScript,c as processOnceDirective,b as processJsonDirective,e as processDirectives,a as injectRouterScript};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import{$s as Jq}from"./chunk-80qre9zp.js";import{xu as Gq}from"./chunk-8rn5e39c.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-ftdysk1n.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,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{fl as _,gl as h}from"./chunk-ncvd7673.js";import{$r as p,Ol as g}from"./chunk-
|
|
2
|
+
import{fl as _,gl as h}from"./chunk-ncvd7673.js";import{$r as p,Ol as g}from"./chunk-pbyxj0zr.js";import{$s as N}from"./chunk-80qre9zp.js";import W from"path";import q from"fs";var l=5,u=1;function t(J=process.env){return J.STX_DEBUG==="true"||J.STX_DEBUG==="1"}function L(...J){if(t())console.log("[stx:bundler]",...J)}var D=[];function v(J,K,$){D.push({filePath:J||"<inline>",message:K,details:$})}function Yz(){return D.slice()}function Zz(){D.length=0}var F;function $z(J){F=J}function b(){if(F)return F;try{let J=p.strict;return typeof J==="object"&&J!==null?J.bundlerFallback??"warn":"warn"}catch{return"warn"}}var f=[/^stx$/,/^@stacksjs\/stx$/,/^@stores$/,/^stx\/stores$/,/^@composables$/];function wz(J){let K=/^[ \t]*import[ \t]+(?!type(?:[ \t]|{))[\s\S]*?\s+from\s+['"]([^'"]+)['"][ \t]*;?/gm,$;while(($=K.exec(J))!==null){let M=$[1];if(!f.some((z)=>z.test(M)))return L("detected user import:",M),!0}let Q=/^[ \t]*import[ \t]+['"]([^'"]+)['"]/gm;while(($=Q.exec(J))!==null){let M=$[1];if(/\.css(?:\?.*)?$/.test(M))continue;if(!f.some((z)=>z.test(M)))return L("detected side-effect import:",M),!0}return!1}function i(J,K,$,Q){let M=(Z,z)=>{let G=Z===$?K:W.dirname(Z),Y=W.resolve(G,z),H=[Y,`${Y}.ts`,`${Y}.tsx`,`${Y}.js`,`${Y}.mjs`,`${Y}.jsx`,W.join(Y,"index.ts"),W.join(Y,"index.tsx"),W.join(Y,"index.js"),W.join(Y,"index.mjs")];for(let j of H)try{if(q.existsSync(j)&&q.statSync(j,{throwIfNoEntry:!1})?.isFile())return j}catch{}return Y};return{name:"stx-client-bundle",setup(Z){Z.onResolve({filter:/^(stx|@stacksjs\/stx)$/},(z)=>({path:z.path,external:!0})),Z.onResolve({filter:/^(@stores|@composables|stx\/stores)$/},(z)=>({path:z.path,external:!0})),Z.onResolve({filter:/^\//},(z)=>{if(q.existsSync(z.path))return{path:z.path};return{path:z.path,external:!0}}),Z.onResolve({filter:/^\.\.?\//},(z)=>{let G=M(z.importer,z.path);return Q.add(G),{path:G}}),Z.onResolve({filter:/^[@~]\//},(z)=>{let G=W.resolve(J,z.path.slice(2)),Y=[G,`${G}.ts`,`${G}.tsx`,`${G}.js`,`${G}.mjs`,`${G}.jsx`,W.join(G,"index.ts"),W.join(G,"index.tsx"),W.join(G,"index.js"),W.join(G,"index.mjs")];for(let H of Y)if(q.existsSync(H)&&q.statSync(H,{throwIfNoEntry:!1})?.isFile())return L(`resolved ${z.path[0]}/ import:`,z.path,"\u2192",H),Q.add(H),{path:H};return console.warn(`[stx:bundler] could not resolve ${z.path[0]}/ import:`,z.path),{path:G}}),Z.onLoad({filter:/\.(?:[cm]?[jt]sx?|json)$/},(z)=>{let G=W.extname(z.path).toLowerCase(),Y=G===".json"?"json":G===".tsx"?"tsx":G===".jsx"?"jsx":G===".ts"||G===".mts"||G===".cts"?"ts":"js";if(z.path!==$)Q.add(z.path);return{contents:q.readFileSync(z.path,"utf8"),loader:Y}})}}}var R=new Map,m=Symbol.for("stx.client-bundle-build-queue");function s(J){let K=globalThis,Q=(K[m]??Promise.resolve()).then(J,J);return K[m]=Q.then(()=>{return},()=>{return}),Q}async function Qz(J,K,$={}){let Q=$.projectRoot||process.cwd(),M=$.minify??!1,Z=$.cacheDir||N(Q,"bundle-cache"),z=new Bun.CryptoHasher("md5");z.update(`${l}\x00${J}\x00${K}`);let G=z.digest("hex").slice(0,12),Y=W.join(Z,`${G}.js`),H=W.join(Z,`${G}.deps.json`),j=Bun.file(Y);if(await j.exists()){let V=Bun.file(H),k=!0;if(await V.exists())try{let T=JSON.parse(await V.text());if(T.metadataVersion!==u||!Array.isArray(T.files))k=!1;for(let S of Array.isArray(T.files)?T.files:[])try{if(q.statSync(S.path).mtimeMs!==S.mtimeMs){k=!1;break}}catch{k=!1;break}}catch{k=!1}if(k)return L("cache hit:",G),await j.text();L("cache invalidated by dep change:",G)}let y=R.get(G);if(y)return await y;let x=s(()=>a(J,K,{projectRoot:Q,minify:M,cacheDir:Z,hash:G,cachePath:Y,depsPath:H}));R.set(G,x);try{return await x}finally{R.delete(G)}}async function a(J,K,$){let{projectRoot:Q,minify:M,cacheDir:Z,hash:z,cachePath:G,depsPath:Y}=$,H=N(Q,"bundle-tmp"),j=W.join(H,`${z}.ts`),y=W.join(H,"out",z);q.mkdirSync(H,{recursive:!0}),q.mkdirSync(y,{recursive:!0});let x=W.dirname(K),V=[],k=/^(export\s+)?(?:const|let|var)\s+(?:\{([^}]+)\}|(\w+))/gm,T=/^(export\s+)?(?:async\s+)?function\s+(\w+)/gm,S;while((S=k.exec(J))!==null){if(S[1])continue;if(S[2])S[2].split(",").forEach((I)=>{let X=I.split(":")[0].trim();if(X)V.push(X)});else if(S[3])V.push(S[3])}while((S=T.exec(J))!==null){if(S[1])continue;V.push(S[2])}let B=V.length>0?`
|
|
3
3
|
export { ${V.join(", ")} }`:"";await Bun.write(j,J+B),L("bundling:",z,"from:",W.basename(K));let P=new Set;try{let I=await Bun.build({entrypoints:[j],outdir:y,target:"browser",format:"esm",minify:M,plugins:[i(Q,x,j,P)],define:{"process.env.NODE_ENV":M?'"production"':'"development"',...g()},root:Q});if(!I.success){let U=I.logs.filter((C)=>C.level==="error").map((C)=>C.message).join(", ")||`Unable to bundle ${W.basename(K)}`,A=_(I.logs,K||void 0);if(console.warn("[stx:bundler] build failed:",U),v(K||"",U,A),b()==="error")throw Error(U);return J}let X="";for(let w of I.outputs){X=await w.text();break}let O=[];for(let w of X.matchAll(/^\s*export\s*\{([^}]*)\}\s*;?\s*$/gm))for(let U of w[1].split(",")){let A=U.trim().match(/^([A-Za-z_$][\w$]*)\s+as\s+([A-Za-z_$][\w$]*)$/);if(A){O.push([A[2],A[1]]);continue}let C=U.trim();if(/^[A-Za-z_$][\w$]*$/.test(C))O.push([C,C])}let c=X.match(/^\s*import\s+[^;]+;?\s*$/gm)||[];X=X.replace(/^\s*import\s+[^;]+;?\s*$/gm,"").replace(/^\s*export\s*\{[^}]*\}\s*;?\s*$/gm,"").replace(/^\s*export\s+default\s+.*$/gm,"").trim();let E=`__stxBundle_${z}`,n=O.map(([w,U])=>`${JSON.stringify(w)}: ${U}`).join(", "),o=O.map(([w])=>`var ${w} = undefined;`).join(`
|
|
4
4
|
`),r=O.map(([w])=>`${w} = ${E}[${JSON.stringify(w)}];`).join(`
|
|
5
5
|
`);if(X=`${c.join(`
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Aj as n,nj as a,oj as b,pj as c,qj as d,rj as e,sj as f,tj as g,uj as h,vj as i,wj as j,xj as k,yj as l,zj as m}from"./chunk-
|
|
2
|
+
import{Aj as n,nj as a,oj as b,pj as c,qj as d,rj as e,sj as f,tj as g,uj as h,vj as i,wj as j,xj as k,yj as l,zj as m}from"./chunk-bhz0py78.js";import"./chunk-pbyxj0zr.js";import"./chunk-kvz7rg2x.js";import"./chunk-arnse15r.js";import"./chunk-6b0xz02h.js";import"./chunk-135mme4g.js";import"./chunk-8j2v2hnc.js";import"./chunk-80qre9zp.js";import"./chunk-z794cdmn.js";import"./chunk-dykhpgyx.js";import"./chunk-ry86fd41.js";import"./chunk-kwpvv59c.js";import"./chunk-x0bcc9sj.js";import"./chunk-8rn5e39c.js";export{i as streamingSuspenseDirective,m as streamToResponse,g as streamTemplateSimple,a as streamTemplate,d as renderStreamingPage,k as registerStreamingDirectives,e as processStreamDirectives,l as processSectionDirectives,j as islandDirective,n as generateHydrationRuntime,f as extractStreamBoundaries,h as createStreamRenderer,b as buildSuspenseResolveScript,c as SUSPENSE_RESOLVER_RUNTIME};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{bj as j,cj as E,dj as Z}from"./chunk-efr3ejqt.js";import{Jq as L,Ml as R,Nl as U,Ol as X,_r as M}from"./chunk-
|
|
2
|
+
import{bj as j,cj as E,dj as Z}from"./chunk-efr3ejqt.js";import{Jq as L,Ml as R,Nl as U,Ol as X,_r as M}from"./chunk-pbyxj0zr.js";import{tt as P}from"./chunk-ry86fd41.js";import $ from"path";var V=new Map;function w(Q,z){for(let J of Q.matchAll(/\b(?:const|let|var|function|class)\s+([A-Z_a-z$][\w$]*)/g))if(J[1])z.add(J[1]);for(let J of Q.matchAll(/\b(?:const|let|var)\s*\{([^{}]*)\}\s*=/g))for(let H of(J[1]??"").split(",")){let Y=((H.includes(":")?H.split(":").pop():H)??"").replace(/=.*$/s,"").replace(/^\s*\.\.\./,"").trim();if(/^[A-Z_a-z$][\w$]*$/.test(Y))z.add(Y)}for(let J of Q.matchAll(/\b(?:const|let|var)\s*\[([^\]]*)\]\s*=/g))for(let H of(J[1]??"").split(",")){let K=H.replace(/=.*$/s,"").replace(/^\s*\.\.\./,"").trim();if(/^[A-Z_a-z$][\w$]*$/.test(K))z.add(K)}}async function u(Q){let z;if(Q)z=$.resolve(Q);else{let q=await M();z=$.resolve(q.root||process.cwd(),q.storesDir||"stores")}let J=new Bun.Glob("*.ts"),H=[];try{for await(let q of J.scan({cwd:z,absolute:!0})){let y=$.basename(q,".ts");if(["index","types"].includes(y))continue;if(q.includes(".d.ts"))continue;H.push(q)}}catch{return Z(V,z,"",""),null}let K=j(H),Y=E(V,z,K);if(Y!==void 0)return Y||null;if(H.length===0)return Z(V,z,K,""),null;let x=[];for(let q of H){let y=await Bun.file(q).text();x.push({file:q,hasUseStore:/useStore\s*\(/.test(y)})}x.sort((q,y)=>{if(q.hasUseStore===y.hasUseStore)return 0;return q.hasUseStore?1:-1});let I=x.map((q)=>q.file),A=[],B=new Set,T=L({loader:"ts",target:"browser",define:X()});for(let q of I)try{let y=await Bun.file(q).text(),W=$.basename(q,".ts");w(y,B),y=R(y),y=U(y),y=y.replace(/^export\s+(default\s+)?/gm,""),y=T.transformSync(y),A.push(`// Store: ${W}
|
|
3
3
|
${y.trim()}`)}catch(y){console.warn(`[stx] Failed to load store ${q}:`,y)}if(A.length===0)return Z(V,z,K,""),null;let G=A.join(`
|
|
4
4
|
|
|
5
5
|
`),O=`;(function(){
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Zl as F,am as V,om as I}from"./chunk-
|
|
2
|
+
import{Zl as F,am as V,om as I}from"./chunk-pbyxj0zr.js";function R(j,W){let U=1,z=W,G="<template",X="</template";while(z<j.length&&U>0){let J=j.indexOf("<",z);if(J===-1)break;if(z=J,j.startsWith(G,z)&&(z+G.length>=j.length||/[\s>\/]/.test(j[z+G.length]))){U++,z+=G.length;continue}if(j.startsWith(X,z)){let Y=j.indexOf(">",z+X.length);if(Y!==-1){if(U--,U===0)return Y+1;z=Y+1;continue}}z++}return U===0?z:-1}var P=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]);function D(j,W){let U=null;for(let z=W;z<j.length;z++){let G=j[z];if(U){if(G==="\\"){z++;continue}if(G===U)U=null;continue}if(G==='"'||G==="'"){U=G;continue}if(G===">")return z+1}return-1}function b(j){let W=[],U=[],z=/^<template\s+(?:#([a-zA-Z][\w-]*)|v-slot:([a-zA-Z][\w-]*)|slot="([a-zA-Z][\w-]*)")(?:\s*=\s*"([^"]*)")?[^>]*>$/i,G=0;while(G<j.length){let X=j.indexOf("<",G);if(X===-1)break;if(j.startsWith("<!--",X)){let $=j.indexOf("-->",X+4);G=$===-1?j.length:$+3;continue}let J=D(j,X+1);if(J===-1)break;let Y=j.slice(X,J),Q=Y.match(/^<\s*(\/?)\s*([a-zA-Z][\w-]*)/);if(!Q){G=J;continue}let Z=Q[1]==="/",H=Q[2].toLowerCase();if(Z){let $=U.lastIndexOf(H);if($!==-1)U.splice($);G=J;continue}if(H==="template"&&U.length===0){let $=Y.match(z);if($){let K=R(j,J);if(K!==-1){let O=$[1]||$[2]||$[3];W.push({start:X,end:K,slotName:O,content:j.slice(J,K-11).trim(),propsBinding:$[4]||void 0}),G=K;continue}}}if(!/\/\s*>$/.test(Y)&&!P.has(H)){if(U.push(H),H==="script"||H==="style"){let $=j.toLowerCase().indexOf(`</${H}>`,J);if($!==-1){G=$;continue}}}G=J}return W}function w(j){let W={default:"",named:new Map},U=j,z=b(j);for(let Q of z)W.named.set(Q.slotName,{name:Q.slotName,content:Q.content,propsBinding:Q.propsBinding});z.sort((Q,Z)=>Z.start-Q.start);for(let Q of z)U=U.slice(0,Q.start)+U.slice(Q.end);let G=[],X=/<([a-zA-Z][a-zA-Z0-9-]*)\b([^>]*?)\bslot="([^"]+)"([^>]*)>([\s\S]*?)<\/\1>/gi,J;while((J=X.exec(U))!==null){let[Q,Z,H,_,$,K]=J,O=H.replace(/\s*slot="[^"]*"\s*/," ").trimEnd(),B=$.replace(/\s*slot="[^"]*"\s*/," ").trimEnd(),L=(O+B).trim(),q=`<${Z}${L?" "+L:""}>${K}</${Z}>`;G.push({start:J.index,end:J.index+Q.length,slotName:_,element:q})}let Y=/<([a-zA-Z][a-zA-Z0-9-]*)\b([^>]*?)\bslot="([^"]+)"([^>]*?)\/>/gi;while((J=Y.exec(U))!==null){let[Q,Z,H,_,$]=J,K=H.replace(/\s*slot="[^"]*"\s*/," ").trimEnd(),O=$.replace(/\s*slot="[^"]*"\s*/," ").trimEnd(),B=(K+O).trim(),L=`<${Z}${B?" "+B:""} />`;G.push({start:J.index,end:J.index+Q.length,slotName:_,element:L})}G.sort((Q,Z)=>Z.start-Q.start);for(let Q of G){let Z=W.named.get(Q.slotName);if(Z)Z.content+=Q.element;else W.named.set(Q.slotName,{name:Q.slotName,content:Q.element});U=U.slice(0,Q.start)+U.slice(Q.end)}return W.default=U.trim(),W}function C(j){let W=j.match(/name\s*=\s*["']([^"']+)["']/),U=W?W[1]:"",z={},G=/:([a-zA-Z][\w-]*)\s*=\s*["']([^"']+)["']/g,X;while((X=G.exec(j))!==null)z[X[1]]=X[2];let J=j.match(/<slot[^>]*>([\s\S]*?)<\/slot>/i),Y=J?J[1].trim():"";return{name:U,props:z,defaultContent:Y}}async function N(j,W,U,z){if(!j)return U;let G=j.content;if(j.propsBinding&&Object.keys(W).length>0){let X=j.propsBinding.trim(),J={...z};if(X.startsWith("{")&&X.endsWith("}")){let Y=X.slice(1,-1).split(",").map((Q)=>Q.trim()).filter(Boolean);for(let Q of Y){let[Z,H]=Q.split(":").map(($)=>$.trim()),_=H||Z;if(W[Z]!==void 0)J[_]=W[Z]}}else J[X]=W;G=k(G,J)}return G}function k(j,W){return j.replace(/\{\{\s*([^}]+)\s*\}\}/g,(U,z)=>{try{let G=z.trim(),X=y(G,W);return I(String(X??""))}catch{return`{{ ${z} }}`}})}function y(j,W){if(/^[a-zA-Z_$][\w$]*(\.[a-zA-Z_$][\w$]*)*$/.test(j)){let z=j.split("."),G=W;for(let X of z)if(G&&typeof G==="object"&&X in G)G=G[X];else return;return G}let U=j.match(/^([a-zA-Z_$][\w$]*)\s*([+\-*/])\s*(\d+)$/);if(U){let[,z,G,X]=U,J=W[z],Y=parseInt(X,10);if(typeof J==="number")switch(G){case"+":return J+Y;case"-":return J-Y;case"*":return J*Y;case"/":return J/Y}}try{if(!F(j))return;return V(j,Object.keys(W))(...Object.values(W))}catch{return}}async function A(j,W,U){let z=j;z=await v(z,/<slot\s+name\s*=\s*["']([^"']+)["']([^>]*?)(?:\/>|>([\s\S]*?)<\/slot>)/gi,async(J,Y,Q,Z)=>{let H=W.named.get(Y),_=Z?.trim()||"",$=Q||"",K={},O=/:([a-zA-Z_$][\w$-]*)\s*=\s*["']([^"']+)["']/g,B;while((B=O.exec($))!==null){let L=B[1],q=B[2];K[L]=y(q,U)}return await N(H,K,_,U)});let X=/<slot\s*(?:\/>|>([\s\S]*?)<\/slot>)/gi;return z=z.replace(X,(J,Y)=>{if(J.includes("name="))return J;let Q=Y?.trim()||"";return W.default||Q}),z}async function v(j,W,U){let z=[],G=[];j.replace(W,(Y,...Q)=>{let Z=Q[Q.length-2];return G.push({match:Y,index:Z}),z.push(U(Y,...Q.slice(0,-2))),Y});let X=await Promise.all(z),J=j;for(let Y=G.length-1;Y>=0;Y--){let{match:Q,index:Z}=G[Y];J=J.slice(0,Z)+X[Y]+J.slice(Z+Q.length)}return J}function E(j){let W=w(j);return{defaultSlot:W.default,namedSlots:W.named}}async function M(j,W,U,z){return await A(j,{default:W,named:U},z)}
|
|
3
3
|
export{w as jh,C as kh,N as lh,A as mh,E as nh,M as oh};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Bq as H,Tq as x,Yr as g,ap as R,om as O}from"./chunk-
|
|
2
|
+
import{Bq as H,Tq as x,Yr as g,ap as R,om as O}from"./chunk-pbyxj0zr.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,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{_r as E}from"./chunk-
|
|
2
|
+
import{_r as E}from"./chunk-pbyxj0zr.js";import{xu as D}from"./chunk-8rn5e39c.js";import I from"path";async function M(q={}){let G=performance.now(),J=q.root||process.cwd(),j=await E(),y=j.ssr?"ssr":"ssg";console.log(`[stx build] Mode: ${y.toUpperCase()}${j.ssr?" (ssr: true in stx.config.ts)":" (default \u2014 ssr is false)"}`);let A,B;if(y==="ssg"){let{generateStaticSite:z}=await import("./ssg.js");A=await z({pagesDir:I.join(j.root||".",j.pagesDir||j.build?.pagesDir||"pages"),publicDir:j.publicDir||j.build?.publicDir||"public",outputDir:j.build?.outputDir||"dist",generate404:j.build?.generate404??!0,minify:j.build?.minify??!0,cleanOutput:j.build?.cleanOutput??!0,...q.ssg})}else{let{buildForProduction:z}=await import("./chunk-4a01b3qp.js");B=await z({outputDir:".output",debug:q.debug,...q.ssr})}let H=Math.round(performance.now()-G);return{mode:y,ssg:A,ssr:B,duration:H}}
|
|
3
3
|
export{M as ef};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{$t as z,Ct as a,Dt as b,Et as c,Ft as d,Gt as e,Ht as f,It as g,Jt as h,Kt as i,Lt as j,Mt as k,Nt as l,Ot as m,Pt as n,Qt as o,Rt as p,St as q,Tt as r,Ut as s,Vt as t,Wt as u,Xt as v,Yt as w,Zt as x,_t as y,au as A,bu as B,cu as C,du as D,eu as E,fu as F,gu as G,hu as H,iu as I,ju as J,lu as K,nu as L}from"./chunk-
|
|
2
|
+
import{$t as z,Ct as a,Dt as b,Et as c,Ft as d,Gt as e,Ht as f,It as g,Jt as h,Kt as i,Lt as j,Mt as k,Nt as l,Ot as m,Pt as n,Qt as o,Rt as p,St as q,Tt as r,Ut as s,Vt as t,Wt as u,Xt as v,Yt as w,Zt as x,_t as y,au as A,bu as B,cu as C,du as D,eu as E,fu as F,gu as G,hu as H,iu as I,ju as J,lu as K,nu as L}from"./chunk-kwpvv59c.js";import"./chunk-8rn5e39c.js";L();export{o as setAppUrl,H as runMiddleware,r as route,j as resolveLayoutChain,s as resetRoutes,z as registerMiddleware,g as patternToRegex,t as navigateTo,h as matchRoute,E as loadMiddlewareFromDirectory,c as isNonPageRoutePattern,b as isNonPageRoutePath,B as hasMiddleware,K as getRouterScript,D as getMiddlewareNames,A as getMiddleware,d as generateRouteTypes,e as generateRouteManifest,n as formatRoutes,m as findErrorPage,f as filePathToPattern,J as extractLayoutMetadata,I as deriveLayoutGroup,q as defineRoutes,p as defineRoute,v as defineMiddleware,y as createStorageManager,w as createServerCookieManager,l as createRouter,F as createRouteLocation,G as createMiddlewareContext,x as createClientCookieManager,C as clearMiddleware,i as bracketPathToRegex,u as abortNavigation,k as Router,a as NON_PAGE_DIRS};
|
|
@@ -1,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{ap 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{ap as V}from"./chunk-pbyxj0zr.js";import"./chunk-kvz7rg2x.js";import"./chunk-arnse15r.js";import"./chunk-6b0xz02h.js";import"./chunk-135mme4g.js";import"./chunk-8j2v2hnc.js";import"./chunk-80qre9zp.js";import"./chunk-z794cdmn.js";import"./chunk-dykhpgyx.js";import"./chunk-ry86fd41.js";import"./chunk-kwpvv59c.js";import"./chunk-x0bcc9sj.js";import{xu as F}from"./chunk-8rn5e39c.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-85yfwhdx.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-85yfwhdx.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"}">
|