@stacksjs/stx 0.2.398 → 0.2.400
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-batgkbft.js → chunk-06h5zrm2.js} +8 -8
- package/dist/{chunk-m6par27a.js → chunk-0tak2f33.js} +1 -1
- package/dist/{chunk-mhbexqwa.js → chunk-126tkba9.js} +1 -1
- package/dist/{chunk-e8y26wfg.js → chunk-18qyx80g.js} +1 -1
- package/dist/{chunk-azkk2n57.js → chunk-1bvm3byf.js} +1 -1
- package/dist/{chunk-5h8q6dqb.js → chunk-1f8kqg6a.js} +1 -1
- package/dist/{chunk-vkg6rz7w.js → chunk-1h9rc1jm.js} +1 -1
- package/dist/{chunk-9h3xq9j3.js → chunk-1qbj1kz4.js} +1 -1
- package/dist/{chunk-0w6ghfqw.js → chunk-27wgfqs0.js} +1 -1
- package/dist/{chunk-py5jmk33.js → chunk-2t41acdt.js} +1 -1
- package/dist/{chunk-pvme0rs1.js → chunk-3818kp2d.js} +2 -2
- package/dist/{chunk-embs7re0.js → chunk-38an983e.js} +1 -1
- package/dist/{chunk-n46e3gkr.js → chunk-3ey6ha6w.js} +1 -1
- package/dist/{chunk-zfy796r4.js → chunk-3xpws4kd.js} +1 -1
- package/dist/{chunk-1bdbrkt3.js → chunk-4bnv6c6t.js} +1 -1
- package/dist/{chunk-2vjkzrhy.js → chunk-4tpsw999.js} +1 -1
- package/dist/{chunk-qp4x0mwv.js → chunk-6am7e1be.js} +16 -16
- package/dist/{chunk-gs4b132g.js → chunk-6wcfe0s5.js} +1 -1
- package/dist/{chunk-3wmdjemm.js → chunk-74ebps1a.js} +1 -1
- package/dist/{chunk-hwzbc2v3.js → chunk-83ewzshg.js} +1 -1
- package/dist/{chunk-tf964vs3.js → chunk-8gwby0r0.js} +30 -0
- package/dist/{chunk-ff6y270q.js → chunk-awz5cx5w.js} +1 -1
- package/dist/{chunk-81n38ak1.js → chunk-b3b3s1kr.js} +1 -1
- package/dist/{chunk-dn6ayf7s.js → chunk-b4d5pbhs.js} +1 -1
- package/dist/{chunk-wfp942rp.js → chunk-d6q7cv8w.js} +1 -1
- package/dist/{chunk-kbyf95hm.js → chunk-dazf77tr.js} +1 -1
- package/dist/{chunk-2weyb03p.js → chunk-dzaf7qx8.js} +1 -1
- package/dist/{chunk-h9eft9vj.js → chunk-ej2mb0t3.js} +1 -1
- package/dist/{chunk-6s204hr5.js → chunk-eqtc6w4a.js} +1 -1
- package/dist/{chunk-hfwknxbe.js → chunk-es5qfybg.js} +1 -1
- package/dist/{chunk-ztffbc6a.js → chunk-gjpq3pmz.js} +1 -1
- package/dist/{chunk-ypxywr4x.js → chunk-h1qtbdfs.js} +1 -1
- package/dist/{chunk-hf784dsc.js → chunk-h4nydbnx.js} +2 -2
- package/dist/{chunk-macgqjre.js → chunk-m4q3nsch.js} +1 -1
- package/dist/{chunk-ky06aav6.js → chunk-mt0j29hr.js} +1 -1
- package/dist/{chunk-2d0xzf2c.js → chunk-nrgcfg8h.js} +1 -1
- package/dist/{chunk-kpqypx1g.js → chunk-nvpjt609.js} +1 -1
- package/dist/{chunk-6b8j6812.js → chunk-q25qsg28.js} +1 -1
- package/dist/{chunk-cq6e6de4.js → chunk-rem5ne21.js} +2 -2
- package/dist/{chunk-0trm18n0.js → chunk-rswsrggp.js} +1 -1
- package/dist/{chunk-awrsqtve.js → chunk-vd7thynz.js} +1 -1
- package/dist/{chunk-bd5gvhsw.js → chunk-vs3zfaxp.js} +1 -1
- package/dist/{chunk-1bdvnmxd.js → chunk-wjzcggh6.js} +1 -1
- package/dist/{chunk-mkfxc8ak.js → chunk-wva3ggqj.js} +1 -1
- package/dist/{chunk-zc878avg.js → chunk-x04ktd35.js} +1 -1
- package/dist/{chunk-4qm9rj1p.js → chunk-x5z3r1d9.js} +1 -1
- package/dist/{chunk-ppaqz92f.js → chunk-xs7f8h2r.js} +1 -1
- package/dist/{chunk-bj2aaf9j.js → chunk-yc3x3rmf.js} +1 -1
- package/dist/{chunk-dbfj1skz.js → chunk-ymkv623c.js} +1 -1
- package/dist/{chunk-a9702a2m.js → chunk-zm92mg10.js} +1 -1
- package/dist/cli.js +8 -8
- package/dist/craft-entry.js +1 -1
- package/dist/craft.js +1 -1
- package/dist/pwa.js +1 -1
- package/dist/signals.js +30 -0
- package/dist/ssg.js +2 -2
- package/dist/utils.js +4 -0
- package/package.json +5 -5
|
@@ -18,7 +18,7 @@ catch (e) {
|
|
|
18
18
|
}
|
|
19
19
|
throw e;
|
|
20
20
|
}
|
|
21
|
-
`),U.set(X,q)}return q(...V)}catch{return}}};if(this.pool.length<this.maxPoolSize)this.pool.push({func:j,context:Q.slice()});return j}clear(){this.pool.length=0,this.fnCache.clear()}}var xQ=new AJ;class _J{metrics=new Map;budgets=new Map;violations=[];maxViolations=100;violationHandlers=[];enabled=!0;setEnabled(J){this.enabled=J}isEnabled(){return this.enabled}setBudget(J,Q){this.budgets.set(J,{warnThreshold:0.8,action:"warn",...Q})}setBudgets(J){for(let[Q,Z]of Object.entries(J))this.setBudget(Q,Z)}removeBudget(J){this.budgets.delete(J)}getBudgets(){let J={};for(let[Q,Z]of this.budgets.entries())J[Q]=Z;return J}onViolation(J){this.violationHandlers.push(J)}offViolation(J){let Q=this.violationHandlers.indexOf(J);if(Q!==-1)this.violationHandlers.splice(Q,1)}time(J,Q){if(!this.enabled)return Q();let Z=performance.now(),$=Q(),U=performance.now()-Z;return this.recordTime(J,U),this.checkBudget(J,U),$}async timeAsync(J,Q){if(!this.enabled)return Q();let Z=performance.now(),$=await Q(),U=performance.now()-Z;return this.recordTime(J,U),this.checkBudget(J,U),$}checkBudget(J,Q){let Z=this.budgets.get(J);if(!Z)return;let $=Q/Z.maxTime*100,U=Z.warnThreshold!==void 0?Q>=Z.maxTime*Z.warnThreshold&&Q<Z.maxTime:!1,F=Q>=Z.maxTime;if(!U&&!F)return;let j={label:J,actualTime:Q,budgetTime:Z.maxTime,exceedancePercent:$,timestamp:new Date,isWarning:U};this.violations.push(j);while(this.violations.length>this.maxViolations)this.violations.shift();for(let W of this.violationHandlers)try{W(j)}catch{}let V=U?`[Performance Warning] "${J}" took ${Q.toFixed(2)}ms (${$.toFixed(1)}% of ${Z.maxTime}ms budget)`:`[Performance Budget Exceeded] "${J}" took ${Q.toFixed(2)}ms (exceeded ${Z.maxTime}ms budget by ${($-100).toFixed(1)}%)`;switch(Z.action){case"log":console.log(V);break;case"warn":console.warn(V);break;case"error":console.error(V);break;case"throw":if(F)throw Error(V);else console.warn(V);break}}recordTime(J,Q){let Z=this.metrics.get(J);if(Z)Z.count++,Z.totalTime+=Q,Z.maxTime=Math.max(Z.maxTime,Q),Z.minTime=Math.min(Z.minTime,Q);else this.metrics.set(J,{count:1,totalTime:Q,maxTime:Q,minTime:Q})}getStats(J){if(J){let Z=this.metrics.get(J);if(!Z)return{};let $=this.budgets.get(J);return{count:Z.count,avgTime:Z.totalTime/Z.count,totalTime:Z.totalTime,maxTime:Z.maxTime,minTime:Z.minTime,budget:$?.maxTime,budgetUtilization:$?Z.totalTime/Z.count/$.maxTime*100:void 0}}let Q={};for(let[Z,$]of this.metrics.entries()){let U=this.budgets.get(Z);Q[Z]={count:$.count,avgTime:$.totalTime/$.count,totalTime:$.totalTime,maxTime:$.maxTime,minTime:$.minTime,budget:U?.maxTime,budgetUtilization:U?$.totalTime/$.count/U.maxTime*100:void 0}}return Q}getViolations(J){if(J)return this.violations.filter((Q)=>Q.label===J);return[...this.violations]}getViolationStats(){let J={},Q=0,Z=0;for(let $ of this.violations)if(J[$.label]=(J[$.label]||0)+1,$.isWarning)Q++;else Z++;return{total:this.violations.length,byLabel:J,warnings:Q,errors:Z}}clear(){this.metrics.clear()}clearViolations(){this.violations.length=0}clearBudgets(){this.budgets.clear()}reset(){this.clear(),this.clearViolations(),this.clearBudgets(),this.violationHandlers.length=0}}var a=null;function ZQ(){if(!a)a=new _J;return a}var EQ=new Proxy({},{get(J,Q){return ZQ()[Q]}});var RJ=[];function TJ(J){let Q=new s(J);return RJ.push(Q),Q}function CQ(){for(let J of RJ)J.clear()}function t(J,...Q){return`${Q.map((Z)=>String(Z??"")).join("\x00")}\x00${J.length}\x00${Bun.hash(J)}`}function gQ(J){let Q=[];for(let Z of new Set(J))try{Q.push({path:Z,mtimeMs:vJ.statSync(Z).mtimeMs})}catch{}return Q}function uQ(J){for(let Q of J)try{if(vJ.statSync(Q.path).mtimeMs!==Q.mtimeMs)return!1}catch{return!1}return!0}var B=null,JJ=!1,D=null,_="",M=!1,yJ=256,I=new Map,H=new Map,T=null,fJ=null,b=new Map;function k(J){return Bun.hash(J).toString(16).padStart(16,"0").slice(0,16)}function e(J,Q){if(I.has(J))I.delete(J);else if(I.size>=yJ)I.delete(I.keys().next().value);I.set(J,Q)}function UQ(J){let Q=k(J);if(H.has(Q))H.delete(Q);else if(H.size>=yJ)H.delete(H.keys().next().value);return H.set(Q,J),Q}function lQ(J){let Q=H.get(J);if(Q===void 0)return;return H.delete(J),H.set(J,Q),Q}async function FQ(J,Q=T){if(!Q)return null;try{let Z=Bun.file(G.join(Q,`cw-${k(J)}.css`));if(!await Z.exists())return null;return await Z.text()}catch{return null}}async function jQ(J,Q,Z=T){if(!Z)return;try{if(!fs.existsSync(Z))fs.mkdirSync(Z,{recursive:!0});await Bun.write(G.join(Z,`cw-${k(J)}.css`),Q)}catch{}}async function kJ(J){try{let Q=await import(J);if(Q&&Q.CSSGenerator)return{CSSGenerator:Q.CSSGenerator,config:Q.config,build:Q.build,defaultConfig:Q.defaultConfig,extractClasses:Q.extractClasses}}catch{}return null}var WQ=[["@stacksjs","ts-css","dist","engine","index.js"],["@stacksjs","ts-css","src","engine","index.ts"]],XQ=["@stacksjs/ts-css/engine","@stacksjs/ts-css/dist/engine/index.js"];function VQ(){let J=[],Q=process.cwd();while(Q!==G.dirname(Q)){for(let Z of["node_modules","pantry"])for(let $ of WQ)J.push(G.join(Q,Z,...$));Q=G.dirname(Q)}return J}function qQ(){let J=[],Q=process.env.HOME||process.env.USERPROFILE||"",Z=[Q&&G.join(Q,"Code","Tools","ts-css"),Q&&G.join(Q,"Code","Tools","crosswind"),Q&&G.join(Q,"repos","stacks-org","ts-css"),Q&&G.join(Q,"repos","stacks-org","crosswind"),G.join(process.cwd(),"..","ts-css"),G.join(process.cwd(),"..","crosswind")].filter(Boolean);for(let $ of Z)J.push(G.join($,"packages","toolkit","dist","engine","index.js")),J.push(G.join($,"packages","toolkit","src","engine","index.ts"));if(Q)J.push(G.join(Q,"Code","Tools","stx","node_modules","@stacksjs","ts-css","dist","engine","index.js"));return J}async function CJ(){if(JJ)return B;JJ=!0;try{let J=async(U)=>{for(let F of U){if(!await Bun.file(F).exists())continue;let j=await kJ(F);if(j){if(!process.env.STACKS_DEV_QUIET)console.log(`${Y.green}[ts-css]${Y.reset} CSS engine loaded from ${G.dirname(G.dirname(F))}`);return j}}return null};if(process.env.CROSSWIND_SRC){let U=G.resolve(process.env.CROSSWIND_SRC),F=await J([U]);if(!F)throw Error(`CROSSWIND_SRC did not resolve to a Css module: ${U}`);return B=F,B}let Q=await J(VQ());if(Q)return B=Q,B;let Z=XQ;for(let U of Z){let F=await kJ(U);if(F){if(B=F,!process.env.STACKS_DEV_QUIET)console.log(`${Y.green}[ts-css]${Y.reset} CSS engine loaded`);return B}}let $=await J(qQ());if($)return B=$,B;throw Error("Css CSSGenerator not found in any location")}catch{return console.warn(`${Y.yellow}[ts-css] CSS engine not available, Tailwind styles will not be generated${Y.reset}`),console.warn(`${Y.yellow}Run 'bun add @stacksjs/ts-css' to enable CSS generation${Y.reset}`),null}}function oQ(){QJ.clear(),B=null,JJ=!1,D=null,_="",I.clear(),H.clear(),fJ=null,b.clear()}var xJ=!1;async function gJ(J){try{let Q=bJ({name:"css",cwd:J})?"css":bJ({name:"crosswind",cwd:J})?"crosswind":null;if(!Q)return null;if(Q==="crosswind"&&!process.env.STACKS_DEV_QUIET&&!xJ)xJ=!0,console.warn(`${Y.yellow}[ts-css]${Y.reset} Reading the CSS config from a \`crosswind\` file. Rename it to \`css\` (e.g. config/css.ts) \u2014 the old name is deprecated.`);let{loadConfigWithResult:Z}=await import("bunfig"),$=await Z({name:Q,cwd:J,defaultConfig:{},checkEnv:!1,verbose:!1});if(!$?.path||!$.config||Object.keys($.config).length===0)return null;let U=G.relative(J,$.path);if(!process.env.STACKS_DEV_QUIET)console.log(`${Y.green}[ts-css]${Y.reset} Loaded config from ${U||$.path}`);return $.config}catch(Q){if(Q instanceof Error&&Q.name==="ConfigNotFoundError")return null;return console.warn(`${Y.yellow}[ts-css]${Y.reset} Failed to load css config:`,Q instanceof Error?Q.message:Q),null}}async function zQ(J){let Q=null;try{let{loadStxConfig:Z}=await import("./chunk-hfwknxbe.js"),$=await Z(J);if($.css)if(typeof $.css==="string"){let U=G.isAbsolute($.css)?$.css:G.resolve(J,$.css);if(await Bun.file(U).exists()){let F=await import(U);Q=F.default||F,console.log(`${Y.green}[ts-css]${Y.reset} Loaded config from stx.config.ts \u2192 ${$.css}`)}}else{if(Q={...$.css,content:$.css.content||[],preflight:$.css.preflight??!0,minify:$.css.minify??!1},$.css.config){let U=G.isAbsolute($.css.config)?$.css.config:G.resolve(J,$.css.config);if(await Bun.file(U).exists()){let F=await import(U);Q={...F.default||F,...Q}}}console.log(`${Y.green}[ts-css]${Y.reset} Using inline CSS config from stx.config.ts`)}}catch{}return Q||await gJ(J)}function GQ(J){try{let Q=new WeakSet;return k(JSON.stringify(J??{},(Z,$)=>{if(typeof $==="function")return`[fn]${String($)}`;if(typeof $==="object"&&$!==null){if(Q.has($))return"[circular]";Q.add($)}return $})??"")}catch{return"unhashable"}}async function YQ(J){if(M)return _;M=!0;try{let Q=await CJ();if(!Q||!Q.build)return M=!1,"";if(!D)D=await gJ(J);if(!D)return M=!1,"";let Z=Q.defaultConfig?.theme||{},$=D.theme||{},U={...Q.defaultConfig,...D,theme:{...Z,...$,extend:{...Z.extend||{},...$.extend||{}}}},F=performance.now(),j=await Q.build(U),V=performance.now()-F;if(_=j.css,console.log(`${Y.cyan}[ts-css]${Y.reset} Built ${j.classes.size} classes in ${V.toFixed(1)}ms`),U.output){let W=G.isAbsolute(U.output)?U.output:G.join(J,U.output),X=G.dirname(W);if(!fs.existsSync(X))fs.mkdirSync(X,{recursive:!0});await Bun.write(W,j.css)}return M=!1,j.css}catch(Q){return console.error(`${Y.red}[ts-css]${Y.reset} Build error:`,Q),M=!1,_}}async function aQ(J){D=null,await YQ(J)}function sQ(){return _}function wQ(J){let Q=new Set,Z=/class\s*=\s*["']([^"']+)["']/gi,$=Z.exec(J);while($!==null){for(let j of $[1].split(/\s+/))if(j.trim())Q.add(j.trim());$=Z.exec(J)}let U=/(?:x-class|:class)\s*=\s*"([^"]+)"/gi,F=U.exec(J);while(F!==null){let j=F[1].match(/'([^']+)'/g);if(j){for(let V of j)for(let W of V.slice(1,-1).split(/\s+/))if(W.trim())Q.add(W.trim())}F=U.exec(J)}return Q}var QJ=TJ(64);async function LQ(J,Q){let Z=()=>b.get(Q?G.resolve(Q):process.cwd())?.fingerprint??null,$=QJ.get(t(J,Q,Z()));if($!==void 0)return $;let U=await BQ(J,Q);if(U)QJ.set(t(J,Q,Z()),U);return U}async function BQ(J,Q){try{let Z=await CJ();if(!Z)return"";let $=typeof Z.extractClasses==="function"?Z.extractClasses(J):wQ(J);if($.size===0)return"";let U=Q?G.resolve(Q):process.cwd(),F=SJ(U,"cache");if(!T)T=F;let j=b.get(U);if(!j){let L=await zQ(U);j={config:L,fingerprint:GQ(L)},b.set(U,j),fJ=j.fingerprint}let V=[...$].sort().join(" "),W=`${j.fingerprint||"default"}::${V}`,X=I.get(W);if(X!==void 0)return e(W,X),X;let q=await FQ(W,F);if(q!==null)return e(W,q),q;let z=Z.defaultConfig||Z.config,w=j.config||{},O=YJ(z,w),{safelist:K,includePreflight:$J,minify:ZJ,tokenCSS:uJ}=O,x=O.config,E=new Z.CSSGenerator(x),S=x.shortcuts||w.shortcuts||{},UJ=Object.keys(S).filter((L)=>$.has(L)||K.includes(L));for(let L of K)if(!S[L])E.generate(L);for(let L of $)if(!S[L])E.generate(L);let P="";if(UJ.length>0){let L=new Z.CSSGenerator(x);for(let dJ of UJ)L.generate(dJ);if(P=L.toCSS(!1,ZJ),P&&!P.endsWith(`
|
|
21
|
+
`),U.set(X,q)}return q(...V)}catch{return}}};if(this.pool.length<this.maxPoolSize)this.pool.push({func:j,context:Q.slice()});return j}clear(){this.pool.length=0,this.fnCache.clear()}}var xQ=new AJ;class _J{metrics=new Map;budgets=new Map;violations=[];maxViolations=100;violationHandlers=[];enabled=!0;setEnabled(J){this.enabled=J}isEnabled(){return this.enabled}setBudget(J,Q){this.budgets.set(J,{warnThreshold:0.8,action:"warn",...Q})}setBudgets(J){for(let[Q,Z]of Object.entries(J))this.setBudget(Q,Z)}removeBudget(J){this.budgets.delete(J)}getBudgets(){let J={};for(let[Q,Z]of this.budgets.entries())J[Q]=Z;return J}onViolation(J){this.violationHandlers.push(J)}offViolation(J){let Q=this.violationHandlers.indexOf(J);if(Q!==-1)this.violationHandlers.splice(Q,1)}time(J,Q){if(!this.enabled)return Q();let Z=performance.now(),$=Q(),U=performance.now()-Z;return this.recordTime(J,U),this.checkBudget(J,U),$}async timeAsync(J,Q){if(!this.enabled)return Q();let Z=performance.now(),$=await Q(),U=performance.now()-Z;return this.recordTime(J,U),this.checkBudget(J,U),$}checkBudget(J,Q){let Z=this.budgets.get(J);if(!Z)return;let $=Q/Z.maxTime*100,U=Z.warnThreshold!==void 0?Q>=Z.maxTime*Z.warnThreshold&&Q<Z.maxTime:!1,F=Q>=Z.maxTime;if(!U&&!F)return;let j={label:J,actualTime:Q,budgetTime:Z.maxTime,exceedancePercent:$,timestamp:new Date,isWarning:U};this.violations.push(j);while(this.violations.length>this.maxViolations)this.violations.shift();for(let W of this.violationHandlers)try{W(j)}catch{}let V=U?`[Performance Warning] "${J}" took ${Q.toFixed(2)}ms (${$.toFixed(1)}% of ${Z.maxTime}ms budget)`:`[Performance Budget Exceeded] "${J}" took ${Q.toFixed(2)}ms (exceeded ${Z.maxTime}ms budget by ${($-100).toFixed(1)}%)`;switch(Z.action){case"log":console.log(V);break;case"warn":console.warn(V);break;case"error":console.error(V);break;case"throw":if(F)throw Error(V);else console.warn(V);break}}recordTime(J,Q){let Z=this.metrics.get(J);if(Z)Z.count++,Z.totalTime+=Q,Z.maxTime=Math.max(Z.maxTime,Q),Z.minTime=Math.min(Z.minTime,Q);else this.metrics.set(J,{count:1,totalTime:Q,maxTime:Q,minTime:Q})}getStats(J){if(J){let Z=this.metrics.get(J);if(!Z)return{};let $=this.budgets.get(J);return{count:Z.count,avgTime:Z.totalTime/Z.count,totalTime:Z.totalTime,maxTime:Z.maxTime,minTime:Z.minTime,budget:$?.maxTime,budgetUtilization:$?Z.totalTime/Z.count/$.maxTime*100:void 0}}let Q={};for(let[Z,$]of this.metrics.entries()){let U=this.budgets.get(Z);Q[Z]={count:$.count,avgTime:$.totalTime/$.count,totalTime:$.totalTime,maxTime:$.maxTime,minTime:$.minTime,budget:U?.maxTime,budgetUtilization:U?$.totalTime/$.count/U.maxTime*100:void 0}}return Q}getViolations(J){if(J)return this.violations.filter((Q)=>Q.label===J);return[...this.violations]}getViolationStats(){let J={},Q=0,Z=0;for(let $ of this.violations)if(J[$.label]=(J[$.label]||0)+1,$.isWarning)Q++;else Z++;return{total:this.violations.length,byLabel:J,warnings:Q,errors:Z}}clear(){this.metrics.clear()}clearViolations(){this.violations.length=0}clearBudgets(){this.budgets.clear()}reset(){this.clear(),this.clearViolations(),this.clearBudgets(),this.violationHandlers.length=0}}var a=null;function ZQ(){if(!a)a=new _J;return a}var EQ=new Proxy({},{get(J,Q){return ZQ()[Q]}});var RJ=[];function TJ(J){let Q=new s(J);return RJ.push(Q),Q}function CQ(){for(let J of RJ)J.clear()}function t(J,...Q){return`${Q.map((Z)=>String(Z??"")).join("\x00")}\x00${J.length}\x00${Bun.hash(J)}`}function gQ(J){let Q=[];for(let Z of new Set(J))try{Q.push({path:Z,mtimeMs:vJ.statSync(Z).mtimeMs})}catch{}return Q}function uQ(J){for(let Q of J)try{if(vJ.statSync(Q.path).mtimeMs!==Q.mtimeMs)return!1}catch{return!1}return!0}var B=null,JJ=!1,D=null,_="",M=!1,yJ=256,I=new Map,H=new Map,T=null,fJ=null,b=new Map;function k(J){return Bun.hash(J).toString(16).padStart(16,"0").slice(0,16)}function e(J,Q){if(I.has(J))I.delete(J);else if(I.size>=yJ)I.delete(I.keys().next().value);I.set(J,Q)}function UQ(J){let Q=k(J);if(H.has(Q))H.delete(Q);else if(H.size>=yJ)H.delete(H.keys().next().value);return H.set(Q,J),Q}function lQ(J){let Q=H.get(J);if(Q===void 0)return;return H.delete(J),H.set(J,Q),Q}async function FQ(J,Q=T){if(!Q)return null;try{let Z=Bun.file(G.join(Q,`cw-${k(J)}.css`));if(!await Z.exists())return null;return await Z.text()}catch{return null}}async function jQ(J,Q,Z=T){if(!Z)return;try{if(!fs.existsSync(Z))fs.mkdirSync(Z,{recursive:!0});await Bun.write(G.join(Z,`cw-${k(J)}.css`),Q)}catch{}}async function kJ(J){try{let Q=await import(J);if(Q&&Q.CSSGenerator)return{CSSGenerator:Q.CSSGenerator,config:Q.config,build:Q.build,defaultConfig:Q.defaultConfig,extractClasses:Q.extractClasses}}catch{}return null}var WQ=[["@stacksjs","ts-css","dist","engine","index.js"],["@stacksjs","ts-css","src","engine","index.ts"]],XQ=["@stacksjs/ts-css/engine","@stacksjs/ts-css/dist/engine/index.js"];function VQ(){let J=[],Q=process.cwd();while(Q!==G.dirname(Q)){for(let Z of["node_modules","pantry"])for(let $ of WQ)J.push(G.join(Q,Z,...$));Q=G.dirname(Q)}return J}function qQ(){let J=[],Q=process.env.HOME||process.env.USERPROFILE||"",Z=[Q&&G.join(Q,"Code","Tools","ts-css"),Q&&G.join(Q,"Code","Tools","crosswind"),Q&&G.join(Q,"repos","stacks-org","ts-css"),Q&&G.join(Q,"repos","stacks-org","crosswind"),G.join(process.cwd(),"..","ts-css"),G.join(process.cwd(),"..","crosswind")].filter(Boolean);for(let $ of Z)J.push(G.join($,"packages","toolkit","dist","engine","index.js")),J.push(G.join($,"packages","toolkit","src","engine","index.ts"));if(Q)J.push(G.join(Q,"Code","Tools","stx","node_modules","@stacksjs","ts-css","dist","engine","index.js"));return J}async function CJ(){if(JJ)return B;JJ=!0;try{let J=async(U)=>{for(let F of U){if(!await Bun.file(F).exists())continue;let j=await kJ(F);if(j){if(!process.env.STACKS_DEV_QUIET)console.log(`${Y.green}[ts-css]${Y.reset} CSS engine loaded from ${G.dirname(G.dirname(F))}`);return j}}return null};if(process.env.CROSSWIND_SRC){let U=G.resolve(process.env.CROSSWIND_SRC),F=await J([U]);if(!F)throw Error(`CROSSWIND_SRC did not resolve to a Css module: ${U}`);return B=F,B}let Q=await J(VQ());if(Q)return B=Q,B;let Z=XQ;for(let U of Z){let F=await kJ(U);if(F){if(B=F,!process.env.STACKS_DEV_QUIET)console.log(`${Y.green}[ts-css]${Y.reset} CSS engine loaded`);return B}}let $=await J(qQ());if($)return B=$,B;throw Error("Css CSSGenerator not found in any location")}catch{return console.warn(`${Y.yellow}[ts-css] CSS engine not available, Tailwind styles will not be generated${Y.reset}`),console.warn(`${Y.yellow}Run 'bun add @stacksjs/ts-css' to enable CSS generation${Y.reset}`),null}}function oQ(){QJ.clear(),B=null,JJ=!1,D=null,_="",I.clear(),H.clear(),fJ=null,b.clear()}var xJ=!1;async function gJ(J){try{let Q=bJ({name:"css",cwd:J})?"css":bJ({name:"crosswind",cwd:J})?"crosswind":null;if(!Q)return null;if(Q==="crosswind"&&!process.env.STACKS_DEV_QUIET&&!xJ)xJ=!0,console.warn(`${Y.yellow}[ts-css]${Y.reset} Reading the CSS config from a \`crosswind\` file. Rename it to \`css\` (e.g. config/css.ts) \u2014 the old name is deprecated.`);let{loadConfigWithResult:Z}=await import("bunfig"),$=await Z({name:Q,cwd:J,defaultConfig:{},checkEnv:!1,verbose:!1});if(!$?.path||!$.config||Object.keys($.config).length===0)return null;let U=G.relative(J,$.path);if(!process.env.STACKS_DEV_QUIET)console.log(`${Y.green}[ts-css]${Y.reset} Loaded config from ${U||$.path}`);return $.config}catch(Q){if(Q instanceof Error&&Q.name==="ConfigNotFoundError")return null;return console.warn(`${Y.yellow}[ts-css]${Y.reset} Failed to load css config:`,Q instanceof Error?Q.message:Q),null}}async function zQ(J){let Q=null;try{let{loadStxConfig:Z}=await import("./chunk-es5qfybg.js"),$=await Z(J);if($.css)if(typeof $.css==="string"){let U=G.isAbsolute($.css)?$.css:G.resolve(J,$.css);if(await Bun.file(U).exists()){let F=await import(U);Q=F.default||F,console.log(`${Y.green}[ts-css]${Y.reset} Loaded config from stx.config.ts \u2192 ${$.css}`)}}else{if(Q={...$.css,content:$.css.content||[],preflight:$.css.preflight??!0,minify:$.css.minify??!1},$.css.config){let U=G.isAbsolute($.css.config)?$.css.config:G.resolve(J,$.css.config);if(await Bun.file(U).exists()){let F=await import(U);Q={...F.default||F,...Q}}}console.log(`${Y.green}[ts-css]${Y.reset} Using inline CSS config from stx.config.ts`)}}catch{}return Q||await gJ(J)}function GQ(J){try{let Q=new WeakSet;return k(JSON.stringify(J??{},(Z,$)=>{if(typeof $==="function")return`[fn]${String($)}`;if(typeof $==="object"&&$!==null){if(Q.has($))return"[circular]";Q.add($)}return $})??"")}catch{return"unhashable"}}async function YQ(J){if(M)return _;M=!0;try{let Q=await CJ();if(!Q||!Q.build)return M=!1,"";if(!D)D=await gJ(J);if(!D)return M=!1,"";let Z=Q.defaultConfig?.theme||{},$=D.theme||{},U={...Q.defaultConfig,...D,theme:{...Z,...$,extend:{...Z.extend||{},...$.extend||{}}}},F=performance.now(),j=await Q.build(U),V=performance.now()-F;if(_=j.css,console.log(`${Y.cyan}[ts-css]${Y.reset} Built ${j.classes.size} classes in ${V.toFixed(1)}ms`),U.output){let W=G.isAbsolute(U.output)?U.output:G.join(J,U.output),X=G.dirname(W);if(!fs.existsSync(X))fs.mkdirSync(X,{recursive:!0});await Bun.write(W,j.css)}return M=!1,j.css}catch(Q){return console.error(`${Y.red}[ts-css]${Y.reset} Build error:`,Q),M=!1,_}}async function aQ(J){D=null,await YQ(J)}function sQ(){return _}function wQ(J){let Q=new Set,Z=/class\s*=\s*["']([^"']+)["']/gi,$=Z.exec(J);while($!==null){for(let j of $[1].split(/\s+/))if(j.trim())Q.add(j.trim());$=Z.exec(J)}let U=/(?:x-class|:class)\s*=\s*"([^"]+)"/gi,F=U.exec(J);while(F!==null){let j=F[1].match(/'([^']+)'/g);if(j){for(let V of j)for(let W of V.slice(1,-1).split(/\s+/))if(W.trim())Q.add(W.trim())}F=U.exec(J)}return Q}var QJ=TJ(64);async function LQ(J,Q){let Z=()=>b.get(Q?G.resolve(Q):process.cwd())?.fingerprint??null,$=QJ.get(t(J,Q,Z()));if($!==void 0)return $;let U=await BQ(J,Q);if(U)QJ.set(t(J,Q,Z()),U);return U}async function BQ(J,Q){try{let Z=await CJ();if(!Z)return"";let $=typeof Z.extractClasses==="function"?Z.extractClasses(J):wQ(J);if($.size===0)return"";let U=Q?G.resolve(Q):process.cwd(),F=SJ(U,"cache");if(!T)T=F;let j=b.get(U);if(!j){let L=await zQ(U);j={config:L,fingerprint:GQ(L)},b.set(U,j),fJ=j.fingerprint}let V=[...$].sort().join(" "),W=`${j.fingerprint||"default"}::${V}`,X=I.get(W);if(X!==void 0)return e(W,X),X;let q=await FQ(W,F);if(q!==null)return e(W,q),q;let z=Z.defaultConfig||Z.config,w=j.config||{},O=YJ(z,w),{safelist:K,includePreflight:$J,minify:ZJ,tokenCSS:uJ}=O,x=O.config,E=new Z.CSSGenerator(x),S=x.shortcuts||w.shortcuts||{},UJ=Object.keys(S).filter((L)=>$.has(L)||K.includes(L));for(let L of K)if(!S[L])E.generate(L);for(let L of $)if(!S[L])E.generate(L);let P="";if(UJ.length>0){let L=new Z.CSSGenerator(x);for(let dJ of UJ)L.generate(dJ);if(P=L.toCSS(!1,ZJ),P&&!P.endsWith(`
|
|
22
22
|
`))P+=`
|
|
23
23
|
`}let A=P+E.toCSS($J,ZJ);return A=uJ+A,e(W,A),jQ(W,A,F),A}catch(Z){return console.warn("Failed to generate Css CSS:",Z),""}}async function tQ(J,Q,Z=!1,$=!1){let U=await LQ(J,Q);if(!U)return $?o(J):J;let F=Z?`<link data-css="generated" rel="stylesheet" href="/_stx/css.${UQ(U)}.css">`:`<style data-css="generated">
|
|
24
24
|
${U}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{$ as om,$a as ro,$b as Cp,$c as Cq,$d as Cr,A as _k,Aa as Cn,Ab as Wo,Ac as bq,Ad as br,Ae as hs,B as $k,Ba as Dn,Bb as Xo,Bc as cq,Bd as cr,Be as is,C as al,Ca as En,Cb as Yo,Cc as dq,Cd as dr,Ce as js,D as bl,Da as Fn,Db as Zo,Dc as eq,Dd as er,De as ks,E as cl,Ea as Gn,Eb as _o,Ec as fq,Ed as fr,Ee as ls,F as dl,Fa as Tn,Fb as $o,Fc as gq,Fd as gr,Fe as ms,G as el,Ga as Un,Gb as ap,Gc as hq,Gd as hr,Ge as ns,H as Wl,Ha as Vn,Hb as bp,Hc as iq,Hd as ir,He as os,I as Xl,Ia as Wn,Ib as cp,Ic as jq,Id as jr,Ie as ps,J as Yl,Ja as Xn,Jb as dp,Jc as kq,Jd as kr,Je as qs,K as Zl,Ka as Yn,Kb as ep,Kc as lq,Kd as lr,Ke as rs,L as _l,La as ao,Lb as fp,Lc as mq,Ld as mr,Le as ss,M as $l,Ma as bo,Mb as gp,Mc as nq,Md as nr,Me as ts,N as am,Na as co,Nb as hp,Nc as oq,Nd as or,Ne as us,O as bm,Oa as eo,Ob as ip,Oc as pq,Od as pr,P as cm,Pa as fo,Pb as jp,Pc as qq,Pd as qr,Q as dm,Qa as go,Qb as rp,Qc as rq,Qd as rr,R as em,Ra as ho,Rb as sp,Rc as sq,Rd as sr,S as fm,Sa as io,Sb as tp,Sc as tq,Sd as tr,T as gm,Ta as jo,Tb as up,Tc as uq,Td as ur,U as hm,Ua as ko,Ub as vp,Uc as vq,Ud as vr,V as im,Va as lo,Vb as wp,Vc as wq,Vd as wr,W as jm,Wa as mo,Wb as xp,Wc as xq,Wd as xr,X as km,Xa as no,Xb as yp,Xc as yq,Xd as yr,Y as lm,Ya as oo,Yb as zp,Yc as zq,Yd as zr,Z as mm,Za as po,Zb as Ap,Zc as Aq,Zd as Ar,_ as nm,_a as qo,_b as Bp,_c as Bq,_d as Br,aa as pm,ab as so,ac as Dp,ad as Dq,ae as Dr,ba as qm,bb as to,bc as Ep,bd as Eq,be as Er,ca as rm,cb as uo,cc as Fp,cd as Fq,ce as Fr,da as sm,db as vo,dc as Gp,dd as Gq,de as Gr,ea as tm,eb as wo,ec as Hp,ed as Hq,ee as Nr,fa as um,fb as xo,fc as Ip,fd as Iq,fe as Or,ga as vm,gb as yo,gc as Jp,gd as Jq,ge as Pr,ha as wm,hb as zo,hc as Kp,hd as Kq,he as Qr,ia as xm,ib as Ao,ic as Lp,id as Lq,ie as Rr,ja as ym,jb as Bo,jc as Mp,jd as Mq,je as Sr,ka as zm,kb as Co,kc as Np,kd as Nq,ke as Tr,la as Am,lb as Do,lc as Op,ld as Oq,le as Ur,ma as Bm,mb as Eo,mc as Pp,md as Pq,me as Vr,na as Cm,nb as Fo,nc as Qp,nd as Qq,ne as Wr,o as a,oa as Dm,ob as Go,oc as Rp,od as Rq,oe as Xr,p as Lk,pa as Em,pb as Ho,pc as Sp,pd as Sq,pe as Yr,q as Mk,qa as Fm,qb as Ko,qc as Tp,qd as Tq,qe as Zr,r as Nk,ra as Gm,rb as Lo,rc as Up,rd as Uq,re as _r,s as Ok,sa as un,sb as Mo,sc as Vp,sd as Vq,se as $r,t as Pk,ta as vn,tb as No,tc as Wp,td as Wq,te as as,u as Qk,ua as wn,ub as Po,uc as Xp,ud as Xq,ue as bs,v as Rk,va as xn,vb as Qo,vc as Yp,vd as Yq,ve as cs,w as Sk,wa as yn,wb as Ro,wc as Zp,wd as Zq,we as ds,x as Tk,xa as zn,xb as So,xc as _p,xd as _q,xe as es,y as Yk,ya as An,yb as Uo,yc as $p,yd as $q,ye as fs,z as Zk,za as Bn,zb as Vo,zc as aq,zd as ar,ze as gs}from"./chunk-batgkbft.js";import{Oe as kp,Pe as lp,Qe as mp,Re as np,Se as op,Te as pp,Ue as qp}from"./chunk-m6par27a.js";import{Ve as Io,We as Jo}from"./chunk-pkspqh0m.js";import{Xe as Oo}from"./chunk-hwzbc2v3.js";import{Ye as tn}from"./chunk-2d0xzf2c.js";import{$e as $n,Ze as Zn,_e as _n,af as To}from"./chunk-2weyb03p.js";import{bf as fl,cf as gl,df as hl,ef as il,ff as jl,gf as kl,hf as ll,if as ml,jf as nl,kf as ol,lf as pl,mf as ql,nf as rl,of as sl,pf as tl}from"./chunk-ewxbx67c.js";import{Af as Ul,Bf as Vl,qf as Kl,rf as Ll,sf as Ml,tf as Nl,uf as Ol,vf as Pl,wf as Ql,xf as Rl,yf as Sl,zf as Tl}from"./chunk-kdwbpcm4.js";import{Cf as Il,Df as Jl}from"./chunk-fsvkqeya.js";import{Ef as ul,Ff as vl,Gf as wl,Hf as xl,If as yl,Jf as zl,Kf as Al,Mf as Bl,Nf as Cl,Of as Dl,Pf as El,Qf as Fl,Rf as Gl,Uf as Hl}from"./chunk-980w4zcq.js";import{Vf as bn,Wf as cn,Xf as dn,Yf as en,Zf as fn,_f as sn}from"./chunk-kbyf95hm.js";import{$f as Hm,ag as Im,bg as Jm,cg as Km,dg as Lm,eg as Mm,fg as Nm,gg as Om,hg as Pm,ig as Qm,jg as Rm,kg as Sm,lg as Tm,mg as Um,ng as Vm,og as Wm,pg as gn,qg as hn,rg as jn,sg as kn,tg as ln,ug as mn,vg as nn,wg as on,xg as pn,yg as qn,zg as rn}from"./chunk-pvme0rs1.js";import{Ag as Xm,Bg as Ym}from"./chunk-g64qyhhb.js";import{Cg as Hn,Dg as In,Eg as Jn,Fg as Kn,Gg as Ln,Hg as Mn,Ig as Nn,Jg as On,Kg as Pn,Lg as Qn,Mg as Rn,Ng as Sn}from"./chunk-9vwpf0bk.js";import{Og as ui,Pg as vi,Qg as wi,Rg as xi,Sg as yi,Tg as zi}from"./chunk-ztffbc6a.js";import{$g as Tj,Ug as Pj,Vg as Qj,Wg as Rj,_g as Sj,ah as Uj}from"./chunk-k2nydt80.js";import{bh as _j,ch as $j,dh as ak,eh as bk,fh as ck,gh as dk,hh as ek,ih as fk,jh as gk,kh as hk,lh as ik}from"./chunk-x86qttwm.js";import{mh as Fj,nh as Gj,oh as Hj,ph as Ij,qh as Jj,sh as Kj,th as Lj,uh as Mj,vh as Nj,wh as Oj}from"./chunk-6rzwef28.js";import{xh as Ak,zh as Bk}from"./chunk-683tfkz4.js";import{Fh as Ph,Gh as Qh,Hh as Rh,Ih as Sh,Jh as Th,Kh as Uh}from"./chunk-9r2xgf5k.js";import{Mh as Vh,Nh as Wh,Oh as Xh,Ph as Yh,Qh as Zh,Rh as _h,Sh as $h,Th as ai,Uh as bi,Vh as ci,Wh as di,Xh as ei,Yh as fi,Zh as gi}from"./chunk-9368t9jm.js";import{$h as hi,ai as ii,bi as ji,ci as ki}from"./chunk-st9vrfw7.js";import{hi as li}from"./chunk-mwh3ymwc.js";import{ki as oh}from"./chunk-n46e3gkr.js";import{li as ph}from"./chunk-1t5vwavd.js";import{mi as qh,ni as rh}from"./chunk-cks5rbzt.js";import{oi as sh,pi as th,qi as uh,ri as vh,si as wh,ti as xh}from"./chunk-092qw0ps.js";import{ui as yh,vi as zh,wi as Ah,xi as Bh,yi as Ch}from"./chunk-kpg48dhw.js";import{Ai as Eh,Bi as Fh,Ci as Gh,Di as Hh,zi as Dh}from"./chunk-4bb28mz5.js";import{Ei as Ih,Fi as Jh,Gi as Kh,Hi as Lh,Ii as Mh,Ji as Nh,Ki as Oh}from"./chunk-90zfg77v.js";import{Li as mh,Mi as nh}from"./chunk-0w6ghfqw.js";import"./chunk-452k8psm.js";import{$i as _e,Qi as Pe,Ri as Qe,Si as Re,Ti as Se,Ui as Te,Vi as Ue,Wi as Ve,Xi as We,Yi as Xe,Zi as Ye,_i as Ze,aj as $e,bj as af}from"./chunk-dbfj1skz.js";import{cj as sf,dj as tf,ej as uf,fj as vf,gj as wf,hj as xf,ij as yf,jj as zf,kj as Af,lj as Bf,mj as Cf,nj as Df,oj as Ef,pj as Ff,qj as Gf,rj as Hf,sj as If}from"./chunk-tf964vs3.js";import{Aj as ef,Bj as ff,Cj as gf,Dj as hf,Ej as jf,Fj as kf,Gj as lf,Hj as mf,Ij as nf,Jj as of,Kj as pf,Lj as qf,Mj as rf,zj as df}from"./chunk-mnk5mdwp.js";import{Nj as Jf,Oj as Kf,Pj as Lf,Qj as Mf,Rj as Nf,Sj as Of,Tj as Pf,Uj as Qf,Vj as Rf,Wj as Sf,Xj as Tf,Yj as Uf,Zj as Vf,_j as Wf}from"./chunk-ff6y270q.js";import{sk as Hr,tk as Ir,uk as Jr,vk as Kr,wk as Lr,xk as Mr}from"./chunk-cq6e6de4.js";import{Ak as Wk,Bk as Xk,Ck as Zm,Dk as _m,Ek as $m,Fk as an,yk as Uk,zk as Vk}from"./chunk-gtn2agxa.js";import"./chunk-7eea1cse.js";import"./chunk-6b8j6812.js";import{ql as ec,rl as fc,vl as gc}from"./chunk-6s204hr5.js";import{xl as bc}from"./chunk-2andsajh.js";import{$l as Nb,$m as id,$n as Ce,$o as ug,$q as xj,Al as za,Am as Bc,An as Nd,Ap as Vg,Aq as Pi,Ar as xk,Bl as Aa,Bm as Cc,Bn as Od,Bp as Wg,Bq as Qi,Br as yk,Cl as Ba,Cm as Dc,Cn as Pd,Cp as Xg,Cq as Ri,Cr as zk,Dl as Ca,Dm as Ec,Dn as Qd,Dp as Yg,Dq as $i,Dr as Ck,El as Da,Em as Fc,En as Rd,Ep as Zg,Eq as aj,Er as Dk,Fl as Ea,Fm as Gc,Fn as Sd,Fo as Yf,Fp as _g,Fq as bj,Fr as Ek,Gl as Fa,Gm as Hc,Gn as Td,Gp as $g,Gq as cj,Gr as Fk,Hl as Ga,Hm as Ic,Hn as Ud,Hp as ah,Hq as dj,Hr as Gk,Il as Ha,Im as Jc,In as Vd,Ip as bh,Iq as ej,Ir as Hk,Jl as Ia,Jm as Kc,Jn as Wd,Jp as ch,Jq as fj,Jr as Ik,Kl as Ja,Km as Lc,Kn as Xd,Kp as dh,Kq as gj,Kr as Jk,Ll as Ka,Lm as Mc,Ln as Yd,Lp as eh,Lq as hj,Lr as Kk,Ml as La,Mm as Nc,Mn as Zd,Mp as fh,Mq as ij,Nl as Ma,Nm as Oc,Nn as _d,No as Zf,Np as gh,Nq as jj,Ol as Na,Om as Pc,On as $d,Op as hh,Oq as kj,Pl as Oa,Pm as Qc,Pn as ae,Po as _f,Pp as ih,Pq as lj,Ql as ib,Qm as _c,Qn as re,Qp as jh,Qq as mj,Rl as jb,Rm as $c,Rn as se,Ro as $f,Rp as kh,Rq as nj,Sl as kb,Sm as ad,Sn as te,So as ag,Sp as lh,Sq as oj,Tl as lb,Tm as bd,Tn as ue,To as bg,Tp as mi,Tq as pj,Ul as mb,Um as cd,Un as ve,Uo as cg,Up as ni,Uq as qj,Vl as nb,Vm as dd,Vn as we,Vo as dg,Vq as rj,Wm as ed,Wn as xe,Wo as eg,Wq as sj,Xn as ye,Xo as qg,Xp as oi,Xq as tj,Yl as Kb,Ym as fd,Yn as ze,Yo as rg,Yq as uj,Zl as Lb,Zm as gd,Zn as Ae,Zo as sg,Zq as vj,_l as Mb,_m as hd,_n as Be,_o as tg,_q as wj,am as Ob,an as jd,ao as De,ap as vg,ar as yj,bm as Pb,bn as kd,bo as Ee,bp as wg,br as zj,cm as Qb,cn as ld,cp as xg,cr as Aj,dm as Ub,dn as md,do as Ie,dp as yg,dr as Bj,em as Vb,en as nd,eo as Je,ep as zg,er as Cj,fm as Wb,fn as od,fo as Ke,fp as Ag,fr as Dj,gm as hc,gn as pd,go as Le,gp as Bg,gq as pi,gr as Ej,hm as ic,hn as qd,ho as Me,hp as Cg,hq as qi,hr as Vj,im as jc,in as vd,io as Ne,ip as Dg,iq as ri,ir as Wj,jm as kc,jn as wd,jo as Oe,jp as Eg,jq as si,jr as Xj,km as lc,kn as xd,kp as Fg,kq as ti,kr as Yj,lm as mc,ln as yd,lp as Gg,lq as Ai,lr as Zj,mm as nc,mn as zd,mp as Hg,mq as Bi,mr as jk,nm as oc,nn as Ad,no as bf,np as Ig,nq as Ci,nr as kk,om as pc,on as Bd,oo as cf,op as Jg,oq as Di,or as lk,pm as qc,pn as Cd,pp as Kg,pq as Ei,pr as mk,qm as rc,qn as Dd,qo as Xf,qp as Lg,qq as Fi,qr as nk,rm as sc,rn as Ed,rp as Mg,rq as Gi,rr as ok,sm as tc,sn as Fd,sp as Ng,sq as Hi,sr as pk,tm as uc,tn as Gd,tp as Og,tq as Ii,tr as qk,um as vc,un as Hd,up as Pg,uq as Ji,ur as rk,vm as wc,vn as Id,vp as Qg,vq as Ki,vr as sk,wm as xc,wn as Jd,wp as Rg,wq as Li,wr as tk,xm as yc,xn as Kd,xp as Sg,xq as Mi,xr as uk,yl as xa,ym as zc,yn as Ld,yp as Tg,yq as Ni,yr as vk,zl as ya,zm as Ac,zn as Md,zp as Ug,zq as Oi,zr as wk}from"./chunk-qp4x0mwv.js";import{$r as $,Mr as M,Nr as N,Or as O,Pr as P,Qr as Q,Rr as R,Sr as S,Tr as T,Ur as U,Vr as V,Wr as W,Xr as X,Yr as Y,Zr as Z,_r as _,as as aa,bs as ba,cs as ca,ds as da,es as ea,fs as fa,gs as ia,hs as ja,is as ka,js as la,ks as ma,ls as na,ms as oa,ns as pa,os as qa,ps as ra,qs as sa,rs as ta,ss as ua,ts as va,us as wa}from"./chunk-4cv7bw5e.js";import{vs as ga,ws as ha}from"./chunk-7tgjn256.js";import{xs as Rb,ys as Sb,zs as Tb}from"./chunk-h8zp2fz9.js";import"./chunk-ekvejzvk.js";import{Gs as Si,Hs as Ti,Is as Ui,Js as Vi,Ks as Wi,Ls as Xi,Ms as Yi,Ns as Zi,Os as _i}from"./chunk-3769e62c.js";import{et as Rc,ft as Sc,gt as Tc,ht as Uc,it as Vc,kt as Wc,tt as Xc,ut as Yc,vt as Zc}from"./chunk-1bdvnmxd.js";import{At as $b,Bt as ac,wt as Xb,xt as Yb,yt as Zb,zt as _b}from"./chunk-yj5gkn17.js";import{It as Fe,Kt as Ge,Nt as He}from"./chunk-cy8hgd86.js";import"./chunk-3wmdjemm.js";import{St as cc,Tt as dc}from"./chunk-g7qmxjyc.js";import{$t as jg,Xt as fg,Yt as gg,Zt as hg,_t as ig,au as kg,bu as lg,du as mg,eu as ng,fu as og,gu as pg}from"./chunk-88tt0qg0.js";import{Au as he,Bu as ie,Cu as je,Du as ke,Eu as le,Fu as me,Gu as ne,Hu as oe,Iu as pe,Ju as qe,hu as rd,iu as sd,ju as td,ku as ud,uu as be,vu as ce,wu as de,xu as ee,yu as fe,zu as ge}from"./chunk-e1rv01pn.js";import{$u as v,Ku as b,Lu as c,Mu as d,Nu as e,Ou as f,Pu as g,Qu as h,Ru as i,Su as m,Tu as n,Uu as o,Vu as p,Wu as q,Xu as r,Yu as s,Zu as t,_u as u,av as w,bv as x,cv as y,dv as z,ev as A,fv as B,gv as C,hv as D,iv as E,jv as F,kv as G,lv as H,mv as I,nv as J,ov as K,pv as L}from"./chunk-bdz7nznw.js";import"./chunk-rwtj7j0r.js";import"./chunk-eqhsprr0.js";import{Fv as ob,Gv as pb,Hv as qb,Iv as rb,Jv as sb,Kv as tb,Lv as ub,Mv as vb,Nv as wb,Ov as xb,Pv as yb,Qv as zb,Rv as Ab,Sv as Bb,Tv as Cb,Uv as Db,Vv as Eb,Wv as Fb,Xv as Gb,Yv as Hb,Zv as Ib,_v as Jb}from"./chunk-csgshaeh.js";import{Aw as ab,Bw as bb,Cw as cb,Dw as db,Ew as eb,Fw as fb,Gw as gb,Iw as hb,cw as Pa,dw as Qa,gw as Ra,lw as Sa,mw as Ta,sw as Ua,tw as Va,uw as Wa,vw as Xa,ww as Ya,xw as Za,yw as _a,zw as $a}from"./chunk-d0qy1ezf.js";import"./chunk-c9kj8p6j.js";import{Uw as j,Vw as k,Ww as l}from"./chunk-x2wmn8m7.js";import"./chunk-rxz43r6k.js";export{pl as writeNetlifyConfig,hn as writeManifest,Ul as writeImageManifest,Ap as wrapComponentForHMR,hs as withDefaults,zk as webComponentDirectiveHandler,pq as watermark,rr as watchViews,cm as watchMultiple,dm as watchEffect,bm as watch,Me as warmImagePlaceholders,qm as waitForStore,X as waitForLocale,lp as virtualPathFor,mk as videoDirective,G as validators,ls as validated,Ce as validateValueEnhanced,pi as validateTemplate,Xm as validateRouteRules,uq as validateParams,De as validateFormEnhanced,gr as validateFile,ye as validateFields,xe as validateField,ri as validateDirective,Xd as validateCspDirectives,Hk as validateConfig,vn as validateComponentScripts,Tn as validateComponentProps,lh as validateClientScript,ki as v,Hc as usesSignalsInScript,ub as usesReactiveRuntime,Fi as userComponentFileExists,Sh as useVirtualList,je as useTitle,pm as useStoreOrThrow,Sp as useStore,Yk as useStorage,Af as useSlots,_k as useSessionStorage,cc as useServerRuntimeConfig,Yf as useServerData,ge as useSeoMeta,dc as useRuntimeConfig,rm as useRouteParams,tm as useRouteParamOrThrow,sm as useRouteParam,je as usePageTitle,rf as useOptimistic,Ff as useModel,vm as useMiddlewareValue,um as useMiddlewareState,Zk as useLocalStorage,tp as useLoadingIndicator,ee as useHead,hi as useForm,Cf as useAttrs,ir as uploadFiles,hr as uploadFile,mm as updateInstance,pf as untrack,Vi as unregisterDirective,nm as unmountInstance,Qc as unescapeHtml,pp as typecheckStxFiles,Di as transpileTypeScript,Wr as translate,Ba as transitionDirective,lc as transformAutoImports,Nn as toUsers,Mn as toUser,_p as thumbnail,$q as thumbHashToRGBA,ar as thumbHashToDataURL,wb as templateNeedsRuntime,vb as templateHasReactiveContext,Jf as templateCache,nd as syncRecordedResponse,xp as stxClientHelpers,kg as structuredDataDirective,Zr as stripLocalePrefix,Um as stripDocumentWrapper,Sb as stripCommentsAndLiterals,yo as stringToStream,Ld as strictCspPreset,Xe as streamingSuspenseDirective,$e as streamToResponse,Ve as streamTemplateSimple,Pe as streamTemplate,Tk as stopHmrServer,Jn as stopBroadcasting,_b as stateDirName,$b as stateDir,df as state,fh as startsDocument,To as startProductionServer,Oo as startInteractive,In as startBroadcasting,$r as stampLocaleLayoutGroup,Ia as staggerDirective,sq as srcsetUrls,Ja as springDirective,ud as splitByPipe,Qm as spaNavVaryHeaders,mp as sourcePathFor,zq as smartBatchSign,Hi as slotContentHasExpressions,xq as signUrl,Bi as shouldTranspileTypeScript,Qk as shouldReloadOnChange,Cq as shouldRefreshSignature,Rk as shouldIgnoreFile,Kh as shouldCacheComponent,cq as sharpen,os as shape,Zb as setStateDir,zm as setRouteParams,Am as setMiddlewareState,Le as setImagePlaceholder,uf as setGlobalProvide,b as setErrorLocale,Wl as setCurrentInstance,ak as setCachedVideoResult,Rj as setCachedImageResult,Lj as setCached,rs as serveStxFile,ts as serveMultipleStxFiles,Lk as serveMarkdownFile,cp as serveFile,us as serveApp,bp as serve,Dp as serializeState,kn as serializeSetCookie,eq as sepia,he as seoMetaToHeadConfig,Ca as scrollAnimateDirective,va as screenReaderDirective,Ei as scopeOnRootElement,qk as scopeHTML,pk as scopeCSS,ng as scanForSitemapEntries,pa as scanA11yTargets,qa as scanA11yIssues,iq as saturation,vq as sanitizeParams,I as sanitizeFilePath,J as sanitizeExpression,K as sanitizeDirectiveParams,H as sanitizeDirectiveParam,L as sanitizeComponentProps,B as safeExecuteAsync,A as safeExecute,Cb as runtimeHandledXAttrsLiteral,Gb as runtimeEventRegexLiteral,Eb as runtimeDirectiveNamesLiteral,yg as runPreProcessingMiddleware,zg as runPostProcessingMiddleware,nn as runPageAction,kf as runMountCallbacks,gb as runMiddleware,km as runHooks,Pr as runDoctor,lf as runDestroyCallbacks,Cg as runComposers,jq as rotate,li as rewriteImagesWithSiblings,od as responseBindings,Li as resolveTemplatePath,ha as resolveStxTargets,Dk as resolveStxDirectories,Vr as resolveI18n,Yp as resize,qg as resetUnscopedSignalWarnings,Oc as resetRejectedExpressionWarnings,sc as resetPlaceholders,de as resetHead,Cp as resetHMRHandler,o as resetErrorConfig,js as required,cg as reportDeferredLoopWarnings,wc as replacePlaceholders,Ec as replaceInterpolations,pr as renderView,jk as renderVideoComponent,ic as renderVendorStyleTags,yr as renderToString,zr as renderToStream,Ar as renderToDOM,_q as renderThumbhashToCanvas,Mr as renderTemplateString,Kr as renderTemplate,Lr as renderString,Se as renderStreamingPage,wi as renderSlot,Ah as renderSSRSuspense,Kq as renderProtectedVideo,Jq as renderProtectedImg,wq as renderMediaUpload,Jr as renderMarkdownView,$m as renderLayoutTypes,Vj as renderImgComponent,Kl as renderImageComponent,le as renderHtmlAttrs,ke as renderHead,sr as renderEmail,Ji as renderComponentWithSlot,me as renderBodyAttrs,Np as render,Nd as relaxedCspPreset,we as registerValidationRule,Ze as registerStreamingDirectives,Up as registerStoresClient,xm as registerStore,Rf as registerServeModuleBundle,lg as registerSeoDirectives,_a as registerMiddleware,Ac as registerFilters,zc as registerFilter,d as registerErrorMessages,Be as registerEnhancedValidationRule,Si as registerDirective,Wd as registerCspDirectives,Wn as registerComponentDirectives,Oa as registerAnimationDirectives,wa as registerA11yDirectives,mc as referencesName,_l as ref,Go as redirect,jd as recordResponseStatus,kd as recordResponseHeader,ac as rebaseOntoStateDir,ld as readResponseStatus,md as readResponseHeaders,Jk as readMarkdownFile,Kf as readFileCached,$l as reactive,nq as quality,Hq as pruneSignatureCache,Oj as pruneCache,sf as provide,Ir as protectCodeBlocks,is as prop,Fg as processVueTemplate,Qh as processVirtualListDirectives,Uh as processVirtualGridDirectives,ik as processVideo,ze as processValidateDirective,ea as processTranslateDirective,uh as processTransitionDirectives,xh as processTransitionAttributes,pe as processTitleDirective,bd as processTemplateBindings,qh as processTeleportDirectives,yh as processSuspenseDirectives,gg as processStructuredData,Te as processStreamDirectives,pd as processStatusDirective,fi as processStaticDirectives,wg as processStackReplacements,vg as processStackPushDirectives,xi as processSlots,Sm as processShell,Oe as processServerBindings,hg as processSeoDirective,_e as processSectionDirectives,Vc as processScopedStyles,$c as processReactiveBindings,Lq as processProtectedMedia,_h as processPartialHydrationDirectives,kh as processOnceDirective,xg as processMiddleware,fg as processMetaDirectives,qe as processMetaDirective,Kk as processMarkdownFileDirectives,Qi as processMarkdownDirectives,dg as processLoops,Ih as processKeepAliveDirectives,jh as processJsonDirective,Th as processInfiniteListDirectives,ug as processIncludes,Xj as processImgComponents,Ml as processImageComponents,zl as processImage,oe as processHeadDirective,se as processForms,ue as processFormInputDirectives,Mc as processExpressions,Pb as processEventDirectives,ve as processErrorDirective,Gg as processDynamicComponents,mi as processDirectives,_i as processDirectiveAttributes,ph as processDeferDirectives,$d as processCustomDirectives,Td as processCspDirectives,ps as processComponentProps,rc as processClientScript,te as processBasicFormDirectives,Dh as processAsyncDirectives,ae as processAppearanceBootstrapDirective,Fa as processAnimationDirectives,ka as processA11yDirectives,He as prepareImageDelivery,T as preloadTranslationsBackground,S as preloadTranslations,sp as preloadIslandHandlers,Ne as preloadIconCollection,En as poolStrings,Bk as pluginManager,Je as placeholdersWarmed,th as performLeave,sh as performEnter,mf as pendingLifecycleCounts,qf as peek,rg as partialsCache,kk as parseVideoDirectiveOptions,Wp as parseUrl,br as parseThumbhashString,Ad as parseSwitchBlock,ui as parseSlots,vi as parseSlotElement,Fd as parseScriptDeclarations,xk as parseSFCComponent,Mq as parseProtectedArgs,bg as parseLoopBinding,Wj as parseImgComponent,mj as parseImageUrl,Ll as parseImageComponent,ln as parseFormBody,Cd as parseExpressionWithFilters,Xn as parseDefaults,Do as parseCookies,Jm as parseContainerSelector,xd as parseConditionalBlock,Dd as parseArguments,Ma as parseAnimationShorthand,ks as optional,Fn as optimizeTemplate,Rl as optimizeImage,Sl as optimizeDirectory,ms as oneOf,sg as onceStore,hm as onUpdated,_c as onUpdate,jm as onUnmounted,Em as onServer,fm as onMounted,hf as onMount,ei as onHydrated,yf as onErrorCaptured,jf as onDestroy,Oh as onDeactivated,Dm as onClient,gm as onBeforeUpdate,im as onBeforeUnmount,em as onBeforeMount,Nh as onActivated,Wq as observeElement,Ho as notFound,Lg as normalizeCriticalHeadOrder,xf as nextTick,_n as negotiateEncoding,Ua as navigateTo,lm as mountInstance,Ea as motionDirective,Md as moderateCspPreset,Dn as minifyHtml,jg as metaDirective,Zg as metaDedupKey,Xp as mergeParams,$g as mergeHtmlAttrs,fe as mergeHeadConfigs,Sc as mergeCssConfig,Qd as mergeCspDirectives,Ra as matchRoute,Ri as markdownDirectiveHandler,Ik as markdownCache,ga as looksLikeGlob,Yr as localizePath,U as loadTranslationLazy,_ as loadTranslation,Ek as loadStxConfig,db as loadMiddlewareFromDirectory,jn as loadManifest,Sq as loadElement,Kn as loadChannels,Lb as listensPassively,ds as lintStxStrict,Uq as lazyLoadAll,Tq as lazyLoad,Ha as keyframeDirective,dl as keptState,wr as jsxs,xr as jsxDEV,vr as jsx,Fo as jsonResponse,Ye as islandDirective,l as isTest,Vm as isSpaNavigation,Om as isSpaNavRequest,Aq as isSignatureValid,nf as isSignal,xl as isSharpAvailable,ro as isServerEnvironment,Bm as isServer,yb as isRuntimeOwnedColonAttr,Hb as isRuntimeEventName,da as isRtlLocale,j as isProduction,ia as isPresentationalRole,Pq as isNativeLazySupported,Hr as isMarkdownPath,Q as isLoading,R as isLoaded,Ai as isJavaScriptScript,Qq as isIntersectionObserverSupported,Fl as isImageFile,yl as isImageBackendAvailable,aa as isICUFormat,di as isHydrated,Gi as isHydrateTrigger,hd as isHttpStatus,qo as isEdgeEnvironment,es as isDirectiveKind,k as isDevelopment,of as isDerived,Pk as isCssOnlyChange,Zn as isCompressible,Cm as isClient,Fh as isAsyncComponent,mn as isActionableMethod,fq as invert,Mf as invalidateFileCacheByDir,Lf as invalidateFileCache,Lc as interpolateScriptsInTemplate,Jc as interpolateScriptExpressions,Kc as interpolateScriptAttributes,x as inlineError,Ur as injectThemeBootstrap,ig as injectSeoTags,Rr as injectSeo,Xf as injectRouterScript,Ok as injectHotReload,kb as injectHeatmap,Zc as injectCss,Rd as injectCspMetaTag,hh as injectConfigHeadTags,Kg as injectColorModeBootScript,bh as injectCloakStyle,Rg as injectBuildId,kc as injectBrowserCoreAutoImports,dd as injectAnalytics,tf as inject,wm as initStoreRegistry,sl as initNetlify,up as initLoadingIndicator,Rq as initLazyLoading,No as initFile,Zq as initBlurUp,dr as initAllBlurUp,Zj as imgDirective,Pl as imageDirective,qn as hydrateTemplateStream,pn as hydrateTemplate,rp as hydrateIslands,ai as hydrateIsland,rn as hydrateFragment,bi as hydrateByStrategy,ci as hydrateAll,Kp as hydrate,ap as htmlResponse,dh as hoistLeadingHeadTags,Mg as hoistColorModeBootScript,lb as heatmapDirective,Hj as hashString,Wf as hashFilePath,Fj as hashFile,Gj as hashBuffer,Eg as hasVueTemplateSyntax,ag as hasVariables,Pp as hasStore,xc as hasPlaceholders,ql as hasNetlifyConfig,ab as hasMiddleware,Qb as hasEventDirectives,gh as hasDocumentShell,si as hasDirectives,ma as hasDOMSupport,Il as handleImageRequest,zf as handleError,Er as h,El as groupVariantsByFormat,dq as grayscale,Vo as gitHash,xn as getUnusedDirectives,V as getTranslationSync,O as getTranslationCacheStats,W as getTranslationAsync,ba as getTranslation,ll as getTotalSize,Bq as getTimeUntilExpiry,mh as getStoreScript,Qp as getStoreNames,Op as getStore,bl as getStorageSize,al as getStorageKeys,Mi as getSourceLineInfo,Ci as getSharedTranspiler,Sf as getServeModuleBundle,Qf as getServeClientAsset,la as getScreenReaderOnlyStyle,rk as getScopeAttribute,cf as getRouteParams,Vb as getPublicEnvDefine,Wb as getPublicEnv,qi as getPositionInfo,uc as getPlaceholderRegistry,Ej as getPlaceholderCacheStats,ce as getPageMeta,Hd as getNonce,Gl as getMimeType,cb as getMiddlewareNames,$a as getMiddleware,ca as getLocaleDirection,P as getLoadingState,Y as getLoadingLocales,Ie as getImagePlaceholder,Al as getImageMetadata,Fe as getImageDelivery,Jp as getHydrationRuntime,ym as getHydratedStoreState,Sk as getHmrServer,be as getHead,Bp as getHMRHandler,qj as getFormatExtension,Jj as getFileMtime,Dl as getFallbackVariant,f as getErrorMessage,c as getErrorLocale,n as getErrorConfig,i as getErrorCodeName,Ui as getDirectives,Ti as getDirective,Xl as getCurrentInstance,Wc as getCssServeAsset,Pd as getCspPreset,Yd as getCspHeaderName,Pi as getComponentCacheStats,$j as getCachedVideoResult,Fq as getCachedSignature,Of as getCachedSignalsRuntime,Pf as getCachedRouterScript,Cj as getCachedPlaceholder,Qj as getCachedImageResult,Kj as getCached,Nj as getCacheStats,Pg as getBuildId,Hn as getBroadcastServer,pj as getBestVariant,Bc as getAllFilters,dj as generateWidthSrcset,Rh as generateVirtualListCSS,kr as generateVideoPreview,Ee as generateValidationScript,lr as generateUploadRuntime,yn as generateTreeShakenBundle,wh as generateTransitionRuntime,vh as generateTransitionCSS,dk as generateThumbnails,vj as generateThumbhashPlaceholder,io as generateTemplatesDocs,Ch as generateSuspenseRuntime,Bh as generateSuspenseCSS,Ep as generateStateScript,nj as generateSrcsetData,Uj as generateSrcset,Bl as generateSrcSet,ek as generateSpriteSheet,tr as generateSpaShell,oj as generateSourceTags,jj as generateSizesFromBreakpoints,ij as generateSizesAttribute,Cl as generateSizes,mg as generateSitemapIndex,Sr as generateSitemap,Oq as generateSimpleMediaPicker,Iq as generateSignatureRuntime,If as generateSignalsRuntimeDev,Hf as generateSignalsRuntime,qc as generateServerDataBridge,ok as generateScopeId,yk as generateSFCWebComponent,Nb as generateRuntimeScript,Pa as generateRouteTypes,Qa as generateRouteManifest,og as generateRobotsTxt,Tr as generateRobots,Tj as generateResponsiveVariants,uk as generateReactiveWebComponentTS,tk as generateReactiveWebComponent,wk as generateReactiveRuntime,vk as generateReactiveMixin,ck as generatePoster,Bj as generatePlaceholderStyle,Aj as generatePlaceholderCSS,uj as generatePlaceholder,$h as generatePartialHydrationCSS,Vg as generateOfflineWorker,Gd as generateNonce,ml as generateNetlifyToml,nr as generateMinifiedMediaRuntime,mr as generateMediaRuntime,Nq as generateMediaManagerEmbed,gn as generateManifest,wp as generateLoadingIndicatorHtml,Yq as generateLazyLoadRuntime,an as generateLayoutTypes,xj as generateLQIP,Mh as generateKeepAliveRuntime,Lh as generateKeepAliveCSS,gi as generateIslandManifest,jr as generateImagePreview,Tl as generateImageManifest,Ip as generateHydrationScript,af as generateHydrationRuntime,Lp as generateHydrationCSS,Vh as generateHydrationBootstrap,Nk as generateHotReloadScript,jb as generateHeatmapScript,zp as generateHMRClientScript,fk as generateHLSManifest,Fp as generateEventBindings,hj as generateDprSrcsetWithVariableQuality,gj as generateDprSrcset,eh as generateDocumentShell,no as generateDocs,jo as generateDirectivesDocs,Zi as generateDirectiveRuntime,pg as generateDefaultRobotsTxt,gk as generateDASHManifest,Yc as generateCss,Kd as generateCspMetaTag,Jd as generateCspHeader,Ef as generateCompositionRuntime,ho as generateComponentsDocs,Wh as generateComponentManifest,fo as generateComponentDoc,zj as generateColorPlaceholder,Jg as generateColorModeBootScript,om as generateClientRuntime,Ij as generateCacheKey,oc as generateBrowserAutoImportDestructuring,er as generateBlurUpRuntime,fr as generateBlurUpCSS,ad as generateBindingsRuntime,ej as generateAutoWidthSrcset,nc as generateAutoImportDestructuring,Hh as generateAsyncComponentRuntime,Gh as generateAsyncComponentCSS,fc as generateApiTypes,Na as generateAnimationRuntime,La as generateAnimationCSS,cd as generateAnalyticsScript,qp as formatTypecheckDiagnostics,jp as formatTypeErrors,Ko as formatStxContent,kl as formatSize,Ta as formatRoutes,Lo as formatMarkdownContent,g as formatLocalizedError,$ as formatICU,p as formatFilePath,w as formatError,Qr as formatDoctorReport,ko as formatDocsAsMarkdown,mo as formatDocsAsJson,lo as formatDocsAsHtml,mq as format,el as forgetKeptState,Cn as foldConstants,lq as flipVertical,kq as flipHorizontal,bn as fingerprint,op as findStxModuleDeclarations,np as findRuntimeTypeDeclarations,Or as findPantryPackage,Dc as findMustacheEnd,wd as findMatchingEndTag,sd as findMatchingDelimiter,Rb as findInterpolationEnd,yd as findIfBlocks,Bd as findExpressions,Sa as findErrorPage,Tc as findDuplicateScopedStyleRanges,zd as findDirectiveBlocks,zn as findDeadCode,zn as findDeadBranches,Km as findContainerRegion,go as findComponentFiles,ss as findCommonDir,jl as filterRequiredFiles,Ki as fileExists,Zf as extractVariables,oi as extractTemplateExpressions,Ue as extractStreamBoundaries,Gp as extractState,yi as extractSlotContent,$f as extractScriptFromTemplate,ni as extractScriptBlocks,vc as extractPlaceholders,vd as extractParenthesizedExpression,id as extractPageResponseStatus,hb as extractLayoutMetadata,yj as extractDominantColor,Ed as extractDirectiveParams,ti as extractDirectiveNames,Wm as extractContainerContent,co as extractComponentProps,Xh as extractComponentName,eo as extractComponentDescription,Xc as extractClassNames,pc as extractBridgeData,Yh as extractBoundProps,td as extractBalancedExpression,hc as extractAndStripCssImports,sk as extractAndScopeStyles,Ob as extractAndProcessEvents,Wk as externalizeSharedAssets,Xk as externalizeRepeatedAssets,Vk as externalizeHtml,Pc as evaluateExpression,Bn as evaluateConstant,qd as evaluateAuthExpression,Gc as escapeHtmlValue,Fc as escapeHtml,C as errorRecovery,E as errorLogger,rh as ensureTeleportTargets,ih as ensureDocumentShell,Ae as enhancedValidationRules,ao as enableDevTools,An as eliminateDeadCode,ff as effect,tq as dprUrls,oo as docsCommand,ec as discoverServerApi,_m as discoverLayoutNames,Xq as disconnectObserver,bo as disableDevTools,F as devHelpers,Rm as detectShell,po as detectRuntime,nl as detectProjectConfig,rj as detectFormat,un as detectBuildMode,ef as derived,rl as deploy,Gk as defineStxConfig,Tp as defineStore,Bf as defineSlots,cs as defineSiteConfig,gs as definePropsWithValidation,fs as defineProps,Ak as definePlugin,ie as definePageMeta,Wa as defineMiddleware,ii as defineForm,wf as defineExpose,vf as defineEmits,Wi as defineDirective,Gr as defineCustomElement,So as defineConfig,Xi as defineClientDirective,Eh as defineAsyncComponent,Uo as defineApiHandler,or as defaultMediaConfig,Vl as defaultImageConfig,M as defaultI18nConfig,ib as defaultHeatmapConfig,re as defaultFormClasses,yc as defaultFilters,_d as defaultCspConfig,Ck as defaultConfig,qs as default,Rc as deepMergeThemes,Uc as dedupeScopedStyles,Nm as decodeTitleEntities,wj as decodeThumbhash,eg as declareBareLoopHead,Vd as cspNonceDirective,Ud as cspDirective,cr as crossfadeTransition,Zp as crop,Ph as createVirtualList,lk as createVideoDirective,Bo as createVercelHandler,gp as createTypeChecker,fa as createTranslateFilter,xo as createTextEncoderStream,Fr as createStxApp,wo as createStreamingResponse,We as createStreamRenderer,Rp as createStore,Za as createStorageManager,Xa as createServerCookieManager,gc as createServerApi,Zl as createScope,zh as createSSRSuspense,bf as createRouter,Ym as createRouteRuleResolver,eb as createRouteLocation,ep as createRoute,_l as createRef,$l as createReactive,Df as createProvideContext,Xo as createProject,Ro as createProductionBuild,tc as createPlaceholder,Gn as createOptimizedBuild,Co as createNetlifyHandler,fl as createNetlifyClient,fb as createMiddlewareContext,dp as createMiddleware,Vq as createLazyObserver,Jh as createKeepAliveCache,to as createKVNamespace,Zh as createIslandRegistry,Yj as createImgDirective,Ql as createImagePlugin,Jl as createImageHandler,Ol as createImageDirective,nb as createHeatmapAggregator,il as createFileManifest,so as createEnvAccessor,z as createEnhancedError,vo as createEdgeHandler,uo as createEdgeCache,Ni as createDetailedErrorMessage,Ao as createDenoHandler,ol as createDefaultNetlifyConfig,Zd as createCspHeaders,Eo as createCookie,am as createComputed,Yl as createComponentInstance,zo as createCloudflareHandler,Ya as createClientCookieManager,Yi as createBuiltinDirectives,Fr as createApp,Ka as createAnimationTimeline,aq as cover,_f as convertToCommonJS,hq as contrast,$p as contain,y as consoleError,m as configureErrorHandling,Fk as config,am as computed,$n as compressResponse,Bg as composerPattern,Ag as composer,Tm as composeShellWithPage,Vn as componentDirective,Ii as componentClientSignalNames,fn as compileTemplate,a as collectRepeatedFlag,hl as collectDeployFiles,ch as cloakStyleFragment,Ic as clientLoopScopes,bk as clearVideoCache,N as clearTranslationCache,nh as clearStoreCache,$k as clearStorage,Gq as clearSignatureCache,Gf as clearServerData,Dj as clearPlaceholderCache,tg as clearOnceStore,Id as clearNonce,bb as clearMiddleware,Ke as clearImagePlaceholders,Ge as clearImageDeliveryCatalog,Nl as clearImageCache,e as clearErrorMessages,Tf as clearDevCaches,Cc as clearCustomFilters,Dg as clearComposers,oh as clearComposableCache,Oi as clearComponentCache,Mj as clearCache,Ib as clearBlankCache,vp as cleanupLoadingIndicator,Hm as classifyScript,Im as classifyAllScripts,hp as checkTemplateFile,ip as checkTemplate,Uf as checkCache,Dq as checkAuthAccess,na as checkA11yWithRegex,oa as checkA11y,Qn as channel,Jo as captureScreenshots,Io as captureScreenshot,Z as cancelPendingLoads,gl as calculateSha1,fj as calculateOptimalWidths,Vf as cacheTemplate,bc as cacheEngineFingerprint,nk as buildWebComponents,kp as buildVirtualSource,qr as buildViews,Vp as buildUrl,Qe as buildSuspenseResolveScript,bs as buildStaticSite,qb as buildRuntimeGlobalsDestructure,cn as buildRuntimeAsset,dn as buildRouterAsset,as as buildLangPickerScript,lj as buildImageUrl,Sg as buildIdFragment,_g as buildHtmlAttrs,sn as buildForProduction,Yn as buildComponentLibrary,Eq as buildAuthParams,tn as buildApp,_r as buildAlternateLinks,Qo as build,On as broadcastPrivate,Pn as broadcastPresence,Ln as broadcast,gq as brightness,Tb as bracketDepths,bq as blur,Jb as blankInertHtmlRegions,yq as batchSignUrls,gf as batch,sa as autoFixA11yFile,ta as autoFixA11yDirectory,ra as autoFixA11y,oq as auto,ja as attributeValue,en as assetTags,Mb as asInvocableStatement,ns as arrayOf,Xr as applyTranslations,Sj as applyTransformations,zi as applySlots,Un as applyPropDefaults,rq as applyPreset,ah as applyHtmlAttrs,ne as applyHead,Nc as applyFilters,Pm as appendVary,Od as apiCspPreset,Da as animationGroupDirective,hk as analyzeVideo,wn as analyzeUsage,Fm as analyzeTemplate,Gm as analyzeProject,wn as analyzeDirectiveUsage,ed as analyticsDirective,_o as addStore,Zo as addPage,Sd as addNonceToInlineContent,$o as addLayout,Yo as addComponent,on as actionRedirectResponse,Va as abortNavigation,ua as a11yDirective,Nf as __setSignalsGeneratorsForTest,Qg as __setBuildIdForTest,_j as VideoProcessorCache,ji as Validator,xa as TransitionType,za as TransitionEase,ya as TransitionDirection,rd as Tokenizer,fp as TemplateTypeChecker,Mo as TEMPLATE_PRESETS,v as StxValidationError,r as StxSyntaxError,t as StxSecurityError,s as StxRuntimeError,u as StxFileError,q as StxError,Br as Show,Re as SUSPENSE_RESOLVER_RUNTIME,ob as STX_RUNTIME_GLOBALS,jc as STX_AUTO_IMPORTS,Yb as STATE_DIR_ENV_VAR,Ga as SPRING_PRESETS,Lm as SPA_NAV_HEADER,Kb as SCROLL_BLOCKING_EVENTS,xb as RUNTIME_OWNED_COLON_ATTRS,zb as RUNTIME_HANDLED_X_ATTRS,Fb as RUNTIME_EVENT_NAMES,Db as RUNTIME_DIRECTIVE_NAMES,fd as RESPONSE_STATUS_KEY,gd as RESPONSE_HEADERS_KEY,tb as REACTIVE_RUNTIME_GLOBALS,Po as ProductionBuild,Dr as Portal,Wo as PROJECT_TEMPLATES,qq as PRESETS,Tg as OFFLINE_WORKER_PATH,Ug as OFFLINE_REGISTER_SCRIPT,sb as NON_CLIENT_PRIMITIVES,Mp as MemorySessionStore,cj as MIME_TYPES,$i as MEDIA_DEFAULT_WIDTHS,bj as MEDIA_DEFAULT_FORMATS,Zm as LAYOUT_TYPES_FILE,cl as KEPT_STATE_PREFIX,Pj as ImageProcessorCache,Hl as ImageProcessingError,Hp as HydrationRuntime,Mk as HotReloadServer,mb as HeatmapAggregator,Yg as HTML_CLASS_MARKER,Xg as HTML_ATTRS_MARKER,ur as Fragment,Cr as For,Mm as FRAGMENT_CACHE_CONTROL,D as ErrorLogger,h as ErrorCodes,Uk as EXTERNALIZED_ASSET_DIR,tl as DeployError,ul as DEFAULT_WIDTHS,Aa as DEFAULT_TRANSITION_OPTIONS,Xb as DEFAULT_STATE_DIR,wl as DEFAULT_QUALITY,sj as DEFAULT_PLACEHOLDER_OPTIONS,vl as DEFAULT_FORMATS,aj as DEFAULT_DPR_VALUES,yp as ComponentHMRHandler,pb as COMPONENT_SCOPE_LOCAL_GLOBALS,Bb as COMPONENT_PASSTHROUGH_X_ATTRS,rb as COMPILE_TIME_ONLY_GLOBALS,kj as COMMON_SIZES,Hg as COLOR_MODE_BOOT_MARKER,Ig as COLOR_MODE_BOOT_GLOBAL,Wg as CLOAK_STYLE,Sn as BroadcastServer,Rn as Broadcast,Ng as BUILD_ID_META,Og as BUILD_ID_HEADER,Ub as BROWSER_CORE_IMPORTS,tj as BLUR_UP_CSS,Ab as ALPINE_BRIDGE_X_ATTRS,Nr as $path};
|
|
2
|
+
import{$ as om,$a as ro,$b as Cp,$c as Cq,$d as Cr,A as _k,Aa as Cn,Ab as Wo,Ac as bq,Ad as br,Ae as hs,B as $k,Ba as Dn,Bb as Xo,Bc as cq,Bd as cr,Be as is,C as al,Ca as En,Cb as Yo,Cc as dq,Cd as dr,Ce as js,D as bl,Da as Fn,Db as Zo,Dc as eq,Dd as er,De as ks,E as cl,Ea as Gn,Eb as _o,Ec as fq,Ed as fr,Ee as ls,F as dl,Fa as Tn,Fb as $o,Fc as gq,Fd as gr,Fe as ms,G as el,Ga as Un,Gb as ap,Gc as hq,Gd as hr,Ge as ns,H as Wl,Ha as Vn,Hb as bp,Hc as iq,Hd as ir,He as os,I as Xl,Ia as Wn,Ib as cp,Ic as jq,Id as jr,Ie as ps,J as Yl,Ja as Xn,Jb as dp,Jc as kq,Jd as kr,Je as qs,K as Zl,Ka as Yn,Kb as ep,Kc as lq,Kd as lr,Ke as rs,L as _l,La as ao,Lb as fp,Lc as mq,Ld as mr,Le as ss,M as $l,Ma as bo,Mb as gp,Mc as nq,Md as nr,Me as ts,N as am,Na as co,Nb as hp,Nc as oq,Nd as or,Ne as us,O as bm,Oa as eo,Ob as ip,Oc as pq,Od as pr,P as cm,Pa as fo,Pb as jp,Pc as qq,Pd as qr,Q as dm,Qa as go,Qb as rp,Qc as rq,Qd as rr,R as em,Ra as ho,Rb as sp,Rc as sq,Rd as sr,S as fm,Sa as io,Sb as tp,Sc as tq,Sd as tr,T as gm,Ta as jo,Tb as up,Tc as uq,Td as ur,U as hm,Ua as ko,Ub as vp,Uc as vq,Ud as vr,V as im,Va as lo,Vb as wp,Vc as wq,Vd as wr,W as jm,Wa as mo,Wb as xp,Wc as xq,Wd as xr,X as km,Xa as no,Xb as yp,Xc as yq,Xd as yr,Y as lm,Ya as oo,Yb as zp,Yc as zq,Yd as zr,Z as mm,Za as po,Zb as Ap,Zc as Aq,Zd as Ar,_ as nm,_a as qo,_b as Bp,_c as Bq,_d as Br,aa as pm,ab as so,ac as Dp,ad as Dq,ae as Dr,ba as qm,bb as to,bc as Ep,bd as Eq,be as Er,ca as rm,cb as uo,cc as Fp,cd as Fq,ce as Fr,da as sm,db as vo,dc as Gp,dd as Gq,de as Gr,ea as tm,eb as wo,ec as Hp,ed as Hq,ee as Nr,fa as um,fb as xo,fc as Ip,fd as Iq,fe as Or,ga as vm,gb as yo,gc as Jp,gd as Jq,ge as Pr,ha as wm,hb as zo,hc as Kp,hd as Kq,he as Qr,ia as xm,ib as Ao,ic as Lp,id as Lq,ie as Rr,ja as ym,jb as Bo,jc as Mp,jd as Mq,je as Sr,ka as zm,kb as Co,kc as Np,kd as Nq,ke as Tr,la as Am,lb as Do,lc as Op,ld as Oq,le as Ur,ma as Bm,mb as Eo,mc as Pp,md as Pq,me as Vr,na as Cm,nb as Fo,nc as Qp,nd as Qq,ne as Wr,o as a,oa as Dm,ob as Go,oc as Rp,od as Rq,oe as Xr,p as Lk,pa as Em,pb as Ho,pc as Sp,pd as Sq,pe as Yr,q as Mk,qa as Fm,qb as Ko,qc as Tp,qd as Tq,qe as Zr,r as Nk,ra as Gm,rb as Lo,rc as Up,rd as Uq,re as _r,s as Ok,sa as un,sb as Mo,sc as Vp,sd as Vq,se as $r,t as Pk,ta as vn,tb as No,tc as Wp,td as Wq,te as as,u as Qk,ua as wn,ub as Po,uc as Xp,ud as Xq,ue as bs,v as Rk,va as xn,vb as Qo,vc as Yp,vd as Yq,ve as cs,w as Sk,wa as yn,wb as Ro,wc as Zp,wd as Zq,we as ds,x as Tk,xa as zn,xb as So,xc as _p,xd as _q,xe as es,y as Yk,ya as An,yb as Uo,yc as $p,yd as $q,ye as fs,z as Zk,za as Bn,zb as Vo,zc as aq,zd as ar,ze as gs}from"./chunk-06h5zrm2.js";import{Oe as kp,Pe as lp,Qe as mp,Re as np,Se as op,Te as pp,Ue as qp}from"./chunk-0tak2f33.js";import{Ve as Io,We as Jo}from"./chunk-pkspqh0m.js";import{Xe as Oo}from"./chunk-83ewzshg.js";import{Ye as tn}from"./chunk-nrgcfg8h.js";import{$e as $n,Ze as Zn,_e as _n,af as To}from"./chunk-dzaf7qx8.js";import{bf as fl,cf as gl,df as hl,ef as il,ff as jl,gf as kl,hf as ll,if as ml,jf as nl,kf as ol,lf as pl,mf as ql,nf as rl,of as sl,pf as tl}from"./chunk-ewxbx67c.js";import{Af as Ul,Bf as Vl,qf as Kl,rf as Ll,sf as Ml,tf as Nl,uf as Ol,vf as Pl,wf as Ql,xf as Rl,yf as Sl,zf as Tl}from"./chunk-kdwbpcm4.js";import{Cf as Il,Df as Jl}from"./chunk-fsvkqeya.js";import{Ef as ul,Ff as vl,Gf as wl,Hf as xl,If as yl,Jf as zl,Kf as Al,Mf as Bl,Nf as Cl,Of as Dl,Pf as El,Qf as Fl,Rf as Gl,Uf as Hl}from"./chunk-980w4zcq.js";import{Vf as bn,Wf as cn,Xf as dn,Yf as en,Zf as fn,_f as sn}from"./chunk-dazf77tr.js";import{$f as Hm,ag as Im,bg as Jm,cg as Km,dg as Lm,eg as Mm,fg as Nm,gg as Om,hg as Pm,ig as Qm,jg as Rm,kg as Sm,lg as Tm,mg as Um,ng as Vm,og as Wm,pg as gn,qg as hn,rg as jn,sg as kn,tg as ln,ug as mn,vg as nn,wg as on,xg as pn,yg as qn,zg as rn}from"./chunk-3818kp2d.js";import{Ag as Xm,Bg as Ym}from"./chunk-g64qyhhb.js";import{Cg as Hn,Dg as In,Eg as Jn,Fg as Kn,Gg as Ln,Hg as Mn,Ig as Nn,Jg as On,Kg as Pn,Lg as Qn,Mg as Rn,Ng as Sn}from"./chunk-9vwpf0bk.js";import{Og as ui,Pg as vi,Qg as wi,Rg as xi,Sg as yi,Tg as zi}from"./chunk-gjpq3pmz.js";import{$g as Tj,Ug as Pj,Vg as Qj,Wg as Rj,_g as Sj,ah as Uj}from"./chunk-k2nydt80.js";import{bh as _j,ch as $j,dh as ak,eh as bk,fh as ck,gh as dk,hh as ek,ih as fk,jh as gk,kh as hk,lh as ik}from"./chunk-x86qttwm.js";import{mh as Fj,nh as Gj,oh as Hj,ph as Ij,qh as Jj,sh as Kj,th as Lj,uh as Mj,vh as Nj,wh as Oj}from"./chunk-6rzwef28.js";import{xh as Ak,zh as Bk}from"./chunk-683tfkz4.js";import{Fh as Ph,Gh as Qh,Hh as Rh,Ih as Sh,Jh as Th,Kh as Uh}from"./chunk-9r2xgf5k.js";import{Mh as Vh,Nh as Wh,Oh as Xh,Ph as Yh,Qh as Zh,Rh as _h,Sh as $h,Th as ai,Uh as bi,Vh as ci,Wh as di,Xh as ei,Yh as fi,Zh as gi}from"./chunk-9368t9jm.js";import{$h as hi,ai as ii,bi as ji,ci as ki}from"./chunk-st9vrfw7.js";import{hi as li}from"./chunk-mwh3ymwc.js";import{ki as oh}from"./chunk-3ey6ha6w.js";import{li as ph}from"./chunk-1t5vwavd.js";import{mi as qh,ni as rh}from"./chunk-cks5rbzt.js";import{oi as sh,pi as th,qi as uh,ri as vh,si as wh,ti as xh}from"./chunk-092qw0ps.js";import{ui as yh,vi as zh,wi as Ah,xi as Bh,yi as Ch}from"./chunk-kpg48dhw.js";import{Ai as Eh,Bi as Fh,Ci as Gh,Di as Hh,zi as Dh}from"./chunk-4bb28mz5.js";import{Ei as Ih,Fi as Jh,Gi as Kh,Hi as Lh,Ii as Mh,Ji as Nh,Ki as Oh}from"./chunk-90zfg77v.js";import{Li as mh,Mi as nh}from"./chunk-27wgfqs0.js";import"./chunk-452k8psm.js";import{$i as _e,Qi as Pe,Ri as Qe,Si as Re,Ti as Se,Ui as Te,Vi as Ue,Wi as Ve,Xi as We,Yi as Xe,Zi as Ye,_i as Ze,aj as $e,bj as af}from"./chunk-ymkv623c.js";import{cj as sf,dj as tf,ej as uf,fj as vf,gj as wf,hj as xf,ij as yf,jj as zf,kj as Af,lj as Bf,mj as Cf,nj as Df,oj as Ef,pj as Ff,qj as Gf,rj as Hf,sj as If}from"./chunk-8gwby0r0.js";import{Aj as ef,Bj as ff,Cj as gf,Dj as hf,Ej as jf,Fj as kf,Gj as lf,Hj as mf,Ij as nf,Jj as of,Kj as pf,Lj as qf,Mj as rf,zj as df}from"./chunk-mnk5mdwp.js";import{Nj as Jf,Oj as Kf,Pj as Lf,Qj as Mf,Rj as Nf,Sj as Of,Tj as Pf,Uj as Qf,Vj as Rf,Wj as Sf,Xj as Tf,Yj as Uf,Zj as Vf,_j as Wf}from"./chunk-awz5cx5w.js";import{sk as Hr,tk as Ir,uk as Jr,vk as Kr,wk as Lr,xk as Mr}from"./chunk-rem5ne21.js";import{Ak as Wk,Bk as Xk,Ck as Zm,Dk as _m,Ek as $m,Fk as an,yk as Uk,zk as Vk}from"./chunk-gtn2agxa.js";import"./chunk-7eea1cse.js";import"./chunk-q25qsg28.js";import{ql as ec,rl as fc,vl as gc}from"./chunk-eqtc6w4a.js";import{xl as bc}from"./chunk-2andsajh.js";import{$l as Nb,$m as id,$n as Ce,$o as ug,$q as xj,Al as za,Am as Bc,An as Nd,Ap as Vg,Aq as Pi,Ar as xk,Bl as Aa,Bm as Cc,Bn as Od,Bp as Wg,Bq as Qi,Br as yk,Cl as Ba,Cm as Dc,Cn as Pd,Cp as Xg,Cq as Ri,Cr as zk,Dl as Ca,Dm as Ec,Dn as Qd,Dp as Yg,Dq as $i,Dr as Ck,El as Da,Em as Fc,En as Rd,Ep as Zg,Eq as aj,Er as Dk,Fl as Ea,Fm as Gc,Fn as Sd,Fo as Yf,Fp as _g,Fq as bj,Fr as Ek,Gl as Fa,Gm as Hc,Gn as Td,Gp as $g,Gq as cj,Gr as Fk,Hl as Ga,Hm as Ic,Hn as Ud,Hp as ah,Hq as dj,Hr as Gk,Il as Ha,Im as Jc,In as Vd,Ip as bh,Iq as ej,Ir as Hk,Jl as Ia,Jm as Kc,Jn as Wd,Jp as ch,Jq as fj,Jr as Ik,Kl as Ja,Km as Lc,Kn as Xd,Kp as dh,Kq as gj,Kr as Jk,Ll as Ka,Lm as Mc,Ln as Yd,Lp as eh,Lq as hj,Lr as Kk,Ml as La,Mm as Nc,Mn as Zd,Mp as fh,Mq as ij,Nl as Ma,Nm as Oc,Nn as _d,No as Zf,Np as gh,Nq as jj,Ol as Na,Om as Pc,On as $d,Op as hh,Oq as kj,Pl as Oa,Pm as Qc,Pn as ae,Po as _f,Pp as ih,Pq as lj,Ql as ib,Qm as _c,Qn as re,Qp as jh,Qq as mj,Rl as jb,Rm as $c,Rn as se,Ro as $f,Rp as kh,Rq as nj,Sl as kb,Sm as ad,Sn as te,So as ag,Sp as lh,Sq as oj,Tl as lb,Tm as bd,Tn as ue,To as bg,Tp as mi,Tq as pj,Ul as mb,Um as cd,Un as ve,Uo as cg,Up as ni,Uq as qj,Vl as nb,Vm as dd,Vn as we,Vo as dg,Vq as rj,Wm as ed,Wn as xe,Wo as eg,Wq as sj,Xn as ye,Xo as qg,Xp as oi,Xq as tj,Yl as Kb,Ym as fd,Yn as ze,Yo as rg,Yq as uj,Zl as Lb,Zm as gd,Zn as Ae,Zo as sg,Zq as vj,_l as Mb,_m as hd,_n as Be,_o as tg,_q as wj,am as Ob,an as jd,ao as De,ap as vg,ar as yj,bm as Pb,bn as kd,bo as Ee,bp as wg,br as zj,cm as Qb,cn as ld,cp as xg,cr as Aj,dm as Ub,dn as md,do as Ie,dp as yg,dr as Bj,em as Vb,en as nd,eo as Je,ep as zg,er as Cj,fm as Wb,fn as od,fo as Ke,fp as Ag,fr as Dj,gm as hc,gn as pd,go as Le,gp as Bg,gq as pi,gr as Ej,hm as ic,hn as qd,ho as Me,hp as Cg,hq as qi,hr as Vj,im as jc,in as vd,io as Ne,ip as Dg,iq as ri,ir as Wj,jm as kc,jn as wd,jo as Oe,jp as Eg,jq as si,jr as Xj,km as lc,kn as xd,kp as Fg,kq as ti,kr as Yj,lm as mc,ln as yd,lp as Gg,lq as Ai,lr as Zj,mm as nc,mn as zd,mp as Hg,mq as Bi,mr as jk,nm as oc,nn as Ad,no as bf,np as Ig,nq as Ci,nr as kk,om as pc,on as Bd,oo as cf,op as Jg,oq as Di,or as lk,pm as qc,pn as Cd,pp as Kg,pq as Ei,pr as mk,qm as rc,qn as Dd,qo as Xf,qp as Lg,qq as Fi,qr as nk,rm as sc,rn as Ed,rp as Mg,rq as Gi,rr as ok,sm as tc,sn as Fd,sp as Ng,sq as Hi,sr as pk,tm as uc,tn as Gd,tp as Og,tq as Ii,tr as qk,um as vc,un as Hd,up as Pg,uq as Ji,ur as rk,vm as wc,vn as Id,vp as Qg,vq as Ki,vr as sk,wm as xc,wn as Jd,wp as Rg,wq as Li,wr as tk,xm as yc,xn as Kd,xp as Sg,xq as Mi,xr as uk,yl as xa,ym as zc,yn as Ld,yp as Tg,yq as Ni,yr as vk,zl as ya,zm as Ac,zn as Md,zp as Ug,zq as Oi,zr as wk}from"./chunk-6am7e1be.js";import{$r as $,Mr as M,Nr as N,Or as O,Pr as P,Qr as Q,Rr as R,Sr as S,Tr as T,Ur as U,Vr as V,Wr as W,Xr as X,Yr as Y,Zr as Z,_r as _,as as aa,bs as ba,cs as ca,ds as da,es as ea,fs as fa,gs as ia,hs as ja,is as ka,js as la,ks as ma,ls as na,ms as oa,ns as pa,os as qa,ps as ra,qs as sa,rs as ta,ss as ua,ts as va,us as wa}from"./chunk-4cv7bw5e.js";import{vs as ga,ws as ha}from"./chunk-7tgjn256.js";import{xs as Rb,ys as Sb,zs as Tb}from"./chunk-h8zp2fz9.js";import"./chunk-ekvejzvk.js";import{Gs as Si,Hs as Ti,Is as Ui,Js as Vi,Ks as Wi,Ls as Xi,Ms as Yi,Ns as Zi,Os as _i}from"./chunk-3769e62c.js";import{et as Rc,ft as Sc,gt as Tc,ht as Uc,it as Vc,kt as Wc,tt as Xc,ut as Yc,vt as Zc}from"./chunk-wjzcggh6.js";import{At as $b,Bt as ac,wt as Xb,xt as Yb,yt as Zb,zt as _b}from"./chunk-yj5gkn17.js";import{It as Fe,Kt as Ge,Nt as He}from"./chunk-cy8hgd86.js";import"./chunk-74ebps1a.js";import{St as cc,Tt as dc}from"./chunk-g7qmxjyc.js";import{$t as jg,Xt as fg,Yt as gg,Zt as hg,_t as ig,au as kg,bu as lg,du as mg,eu as ng,fu as og,gu as pg}from"./chunk-88tt0qg0.js";import{Au as he,Bu as ie,Cu as je,Du as ke,Eu as le,Fu as me,Gu as ne,Hu as oe,Iu as pe,Ju as qe,hu as rd,iu as sd,ju as td,ku as ud,uu as be,vu as ce,wu as de,xu as ee,yu as fe,zu as ge}from"./chunk-e1rv01pn.js";import{$u as v,Ku as b,Lu as c,Mu as d,Nu as e,Ou as f,Pu as g,Qu as h,Ru as i,Su as m,Tu as n,Uu as o,Vu as p,Wu as q,Xu as r,Yu as s,Zu as t,_u as u,av as w,bv as x,cv as y,dv as z,ev as A,fv as B,gv as C,hv as D,iv as E,jv as F,kv as G,lv as H,mv as I,nv as J,ov as K,pv as L}from"./chunk-bdz7nznw.js";import"./chunk-rwtj7j0r.js";import"./chunk-eqhsprr0.js";import{Fv as ob,Gv as pb,Hv as qb,Iv as rb,Jv as sb,Kv as tb,Lv as ub,Mv as vb,Nv as wb,Ov as xb,Pv as yb,Qv as zb,Rv as Ab,Sv as Bb,Tv as Cb,Uv as Db,Vv as Eb,Wv as Fb,Xv as Gb,Yv as Hb,Zv as Ib,_v as Jb}from"./chunk-csgshaeh.js";import{Aw as ab,Bw as bb,Cw as cb,Dw as db,Ew as eb,Fw as fb,Gw as gb,Iw as hb,cw as Pa,dw as Qa,gw as Ra,lw as Sa,mw as Ta,sw as Ua,tw as Va,uw as Wa,vw as Xa,ww as Ya,xw as Za,yw as _a,zw as $a}from"./chunk-d0qy1ezf.js";import"./chunk-c9kj8p6j.js";import{Uw as j,Vw as k,Ww as l}from"./chunk-x2wmn8m7.js";import"./chunk-rxz43r6k.js";export{pl as writeNetlifyConfig,hn as writeManifest,Ul as writeImageManifest,Ap as wrapComponentForHMR,hs as withDefaults,zk as webComponentDirectiveHandler,pq as watermark,rr as watchViews,cm as watchMultiple,dm as watchEffect,bm as watch,Me as warmImagePlaceholders,qm as waitForStore,X as waitForLocale,lp as virtualPathFor,mk as videoDirective,G as validators,ls as validated,Ce as validateValueEnhanced,pi as validateTemplate,Xm as validateRouteRules,uq as validateParams,De as validateFormEnhanced,gr as validateFile,ye as validateFields,xe as validateField,ri as validateDirective,Xd as validateCspDirectives,Hk as validateConfig,vn as validateComponentScripts,Tn as validateComponentProps,lh as validateClientScript,ki as v,Hc as usesSignalsInScript,ub as usesReactiveRuntime,Fi as userComponentFileExists,Sh as useVirtualList,je as useTitle,pm as useStoreOrThrow,Sp as useStore,Yk as useStorage,Af as useSlots,_k as useSessionStorage,cc as useServerRuntimeConfig,Yf as useServerData,ge as useSeoMeta,dc as useRuntimeConfig,rm as useRouteParams,tm as useRouteParamOrThrow,sm as useRouteParam,je as usePageTitle,rf as useOptimistic,Ff as useModel,vm as useMiddlewareValue,um as useMiddlewareState,Zk as useLocalStorage,tp as useLoadingIndicator,ee as useHead,hi as useForm,Cf as useAttrs,ir as uploadFiles,hr as uploadFile,mm as updateInstance,pf as untrack,Vi as unregisterDirective,nm as unmountInstance,Qc as unescapeHtml,pp as typecheckStxFiles,Di as transpileTypeScript,Wr as translate,Ba as transitionDirective,lc as transformAutoImports,Nn as toUsers,Mn as toUser,_p as thumbnail,$q as thumbHashToRGBA,ar as thumbHashToDataURL,wb as templateNeedsRuntime,vb as templateHasReactiveContext,Jf as templateCache,nd as syncRecordedResponse,xp as stxClientHelpers,kg as structuredDataDirective,Zr as stripLocalePrefix,Um as stripDocumentWrapper,Sb as stripCommentsAndLiterals,yo as stringToStream,Ld as strictCspPreset,Xe as streamingSuspenseDirective,$e as streamToResponse,Ve as streamTemplateSimple,Pe as streamTemplate,Tk as stopHmrServer,Jn as stopBroadcasting,_b as stateDirName,$b as stateDir,df as state,fh as startsDocument,To as startProductionServer,Oo as startInteractive,In as startBroadcasting,$r as stampLocaleLayoutGroup,Ia as staggerDirective,sq as srcsetUrls,Ja as springDirective,ud as splitByPipe,Qm as spaNavVaryHeaders,mp as sourcePathFor,zq as smartBatchSign,Hi as slotContentHasExpressions,xq as signUrl,Bi as shouldTranspileTypeScript,Qk as shouldReloadOnChange,Cq as shouldRefreshSignature,Rk as shouldIgnoreFile,Kh as shouldCacheComponent,cq as sharpen,os as shape,Zb as setStateDir,zm as setRouteParams,Am as setMiddlewareState,Le as setImagePlaceholder,uf as setGlobalProvide,b as setErrorLocale,Wl as setCurrentInstance,ak as setCachedVideoResult,Rj as setCachedImageResult,Lj as setCached,rs as serveStxFile,ts as serveMultipleStxFiles,Lk as serveMarkdownFile,cp as serveFile,us as serveApp,bp as serve,Dp as serializeState,kn as serializeSetCookie,eq as sepia,he as seoMetaToHeadConfig,Ca as scrollAnimateDirective,va as screenReaderDirective,Ei as scopeOnRootElement,qk as scopeHTML,pk as scopeCSS,ng as scanForSitemapEntries,pa as scanA11yTargets,qa as scanA11yIssues,iq as saturation,vq as sanitizeParams,I as sanitizeFilePath,J as sanitizeExpression,K as sanitizeDirectiveParams,H as sanitizeDirectiveParam,L as sanitizeComponentProps,B as safeExecuteAsync,A as safeExecute,Cb as runtimeHandledXAttrsLiteral,Gb as runtimeEventRegexLiteral,Eb as runtimeDirectiveNamesLiteral,yg as runPreProcessingMiddleware,zg as runPostProcessingMiddleware,nn as runPageAction,kf as runMountCallbacks,gb as runMiddleware,km as runHooks,Pr as runDoctor,lf as runDestroyCallbacks,Cg as runComposers,jq as rotate,li as rewriteImagesWithSiblings,od as responseBindings,Li as resolveTemplatePath,ha as resolveStxTargets,Dk as resolveStxDirectories,Vr as resolveI18n,Yp as resize,qg as resetUnscopedSignalWarnings,Oc as resetRejectedExpressionWarnings,sc as resetPlaceholders,de as resetHead,Cp as resetHMRHandler,o as resetErrorConfig,js as required,cg as reportDeferredLoopWarnings,wc as replacePlaceholders,Ec as replaceInterpolations,pr as renderView,jk as renderVideoComponent,ic as renderVendorStyleTags,yr as renderToString,zr as renderToStream,Ar as renderToDOM,_q as renderThumbhashToCanvas,Mr as renderTemplateString,Kr as renderTemplate,Lr as renderString,Se as renderStreamingPage,wi as renderSlot,Ah as renderSSRSuspense,Kq as renderProtectedVideo,Jq as renderProtectedImg,wq as renderMediaUpload,Jr as renderMarkdownView,$m as renderLayoutTypes,Vj as renderImgComponent,Kl as renderImageComponent,le as renderHtmlAttrs,ke as renderHead,sr as renderEmail,Ji as renderComponentWithSlot,me as renderBodyAttrs,Np as render,Nd as relaxedCspPreset,we as registerValidationRule,Ze as registerStreamingDirectives,Up as registerStoresClient,xm as registerStore,Rf as registerServeModuleBundle,lg as registerSeoDirectives,_a as registerMiddleware,Ac as registerFilters,zc as registerFilter,d as registerErrorMessages,Be as registerEnhancedValidationRule,Si as registerDirective,Wd as registerCspDirectives,Wn as registerComponentDirectives,Oa as registerAnimationDirectives,wa as registerA11yDirectives,mc as referencesName,_l as ref,Go as redirect,jd as recordResponseStatus,kd as recordResponseHeader,ac as rebaseOntoStateDir,ld as readResponseStatus,md as readResponseHeaders,Jk as readMarkdownFile,Kf as readFileCached,$l as reactive,nq as quality,Hq as pruneSignatureCache,Oj as pruneCache,sf as provide,Ir as protectCodeBlocks,is as prop,Fg as processVueTemplate,Qh as processVirtualListDirectives,Uh as processVirtualGridDirectives,ik as processVideo,ze as processValidateDirective,ea as processTranslateDirective,uh as processTransitionDirectives,xh as processTransitionAttributes,pe as processTitleDirective,bd as processTemplateBindings,qh as processTeleportDirectives,yh as processSuspenseDirectives,gg as processStructuredData,Te as processStreamDirectives,pd as processStatusDirective,fi as processStaticDirectives,wg as processStackReplacements,vg as processStackPushDirectives,xi as processSlots,Sm as processShell,Oe as processServerBindings,hg as processSeoDirective,_e as processSectionDirectives,Vc as processScopedStyles,$c as processReactiveBindings,Lq as processProtectedMedia,_h as processPartialHydrationDirectives,kh as processOnceDirective,xg as processMiddleware,fg as processMetaDirectives,qe as processMetaDirective,Kk as processMarkdownFileDirectives,Qi as processMarkdownDirectives,dg as processLoops,Ih as processKeepAliveDirectives,jh as processJsonDirective,Th as processInfiniteListDirectives,ug as processIncludes,Xj as processImgComponents,Ml as processImageComponents,zl as processImage,oe as processHeadDirective,se as processForms,ue as processFormInputDirectives,Mc as processExpressions,Pb as processEventDirectives,ve as processErrorDirective,Gg as processDynamicComponents,mi as processDirectives,_i as processDirectiveAttributes,ph as processDeferDirectives,$d as processCustomDirectives,Td as processCspDirectives,ps as processComponentProps,rc as processClientScript,te as processBasicFormDirectives,Dh as processAsyncDirectives,ae as processAppearanceBootstrapDirective,Fa as processAnimationDirectives,ka as processA11yDirectives,He as prepareImageDelivery,T as preloadTranslationsBackground,S as preloadTranslations,sp as preloadIslandHandlers,Ne as preloadIconCollection,En as poolStrings,Bk as pluginManager,Je as placeholdersWarmed,th as performLeave,sh as performEnter,mf as pendingLifecycleCounts,qf as peek,rg as partialsCache,kk as parseVideoDirectiveOptions,Wp as parseUrl,br as parseThumbhashString,Ad as parseSwitchBlock,ui as parseSlots,vi as parseSlotElement,Fd as parseScriptDeclarations,xk as parseSFCComponent,Mq as parseProtectedArgs,bg as parseLoopBinding,Wj as parseImgComponent,mj as parseImageUrl,Ll as parseImageComponent,ln as parseFormBody,Cd as parseExpressionWithFilters,Xn as parseDefaults,Do as parseCookies,Jm as parseContainerSelector,xd as parseConditionalBlock,Dd as parseArguments,Ma as parseAnimationShorthand,ks as optional,Fn as optimizeTemplate,Rl as optimizeImage,Sl as optimizeDirectory,ms as oneOf,sg as onceStore,hm as onUpdated,_c as onUpdate,jm as onUnmounted,Em as onServer,fm as onMounted,hf as onMount,ei as onHydrated,yf as onErrorCaptured,jf as onDestroy,Oh as onDeactivated,Dm as onClient,gm as onBeforeUpdate,im as onBeforeUnmount,em as onBeforeMount,Nh as onActivated,Wq as observeElement,Ho as notFound,Lg as normalizeCriticalHeadOrder,xf as nextTick,_n as negotiateEncoding,Ua as navigateTo,lm as mountInstance,Ea as motionDirective,Md as moderateCspPreset,Dn as minifyHtml,jg as metaDirective,Zg as metaDedupKey,Xp as mergeParams,$g as mergeHtmlAttrs,fe as mergeHeadConfigs,Sc as mergeCssConfig,Qd as mergeCspDirectives,Ra as matchRoute,Ri as markdownDirectiveHandler,Ik as markdownCache,ga as looksLikeGlob,Yr as localizePath,U as loadTranslationLazy,_ as loadTranslation,Ek as loadStxConfig,db as loadMiddlewareFromDirectory,jn as loadManifest,Sq as loadElement,Kn as loadChannels,Lb as listensPassively,ds as lintStxStrict,Uq as lazyLoadAll,Tq as lazyLoad,Ha as keyframeDirective,dl as keptState,wr as jsxs,xr as jsxDEV,vr as jsx,Fo as jsonResponse,Ye as islandDirective,l as isTest,Vm as isSpaNavigation,Om as isSpaNavRequest,Aq as isSignatureValid,nf as isSignal,xl as isSharpAvailable,ro as isServerEnvironment,Bm as isServer,yb as isRuntimeOwnedColonAttr,Hb as isRuntimeEventName,da as isRtlLocale,j as isProduction,ia as isPresentationalRole,Pq as isNativeLazySupported,Hr as isMarkdownPath,Q as isLoading,R as isLoaded,Ai as isJavaScriptScript,Qq as isIntersectionObserverSupported,Fl as isImageFile,yl as isImageBackendAvailable,aa as isICUFormat,di as isHydrated,Gi as isHydrateTrigger,hd as isHttpStatus,qo as isEdgeEnvironment,es as isDirectiveKind,k as isDevelopment,of as isDerived,Pk as isCssOnlyChange,Zn as isCompressible,Cm as isClient,Fh as isAsyncComponent,mn as isActionableMethod,fq as invert,Mf as invalidateFileCacheByDir,Lf as invalidateFileCache,Lc as interpolateScriptsInTemplate,Jc as interpolateScriptExpressions,Kc as interpolateScriptAttributes,x as inlineError,Ur as injectThemeBootstrap,ig as injectSeoTags,Rr as injectSeo,Xf as injectRouterScript,Ok as injectHotReload,kb as injectHeatmap,Zc as injectCss,Rd as injectCspMetaTag,hh as injectConfigHeadTags,Kg as injectColorModeBootScript,bh as injectCloakStyle,Rg as injectBuildId,kc as injectBrowserCoreAutoImports,dd as injectAnalytics,tf as inject,wm as initStoreRegistry,sl as initNetlify,up as initLoadingIndicator,Rq as initLazyLoading,No as initFile,Zq as initBlurUp,dr as initAllBlurUp,Zj as imgDirective,Pl as imageDirective,qn as hydrateTemplateStream,pn as hydrateTemplate,rp as hydrateIslands,ai as hydrateIsland,rn as hydrateFragment,bi as hydrateByStrategy,ci as hydrateAll,Kp as hydrate,ap as htmlResponse,dh as hoistLeadingHeadTags,Mg as hoistColorModeBootScript,lb as heatmapDirective,Hj as hashString,Wf as hashFilePath,Fj as hashFile,Gj as hashBuffer,Eg as hasVueTemplateSyntax,ag as hasVariables,Pp as hasStore,xc as hasPlaceholders,ql as hasNetlifyConfig,ab as hasMiddleware,Qb as hasEventDirectives,gh as hasDocumentShell,si as hasDirectives,ma as hasDOMSupport,Il as handleImageRequest,zf as handleError,Er as h,El as groupVariantsByFormat,dq as grayscale,Vo as gitHash,xn as getUnusedDirectives,V as getTranslationSync,O as getTranslationCacheStats,W as getTranslationAsync,ba as getTranslation,ll as getTotalSize,Bq as getTimeUntilExpiry,mh as getStoreScript,Qp as getStoreNames,Op as getStore,bl as getStorageSize,al as getStorageKeys,Mi as getSourceLineInfo,Ci as getSharedTranspiler,Sf as getServeModuleBundle,Qf as getServeClientAsset,la as getScreenReaderOnlyStyle,rk as getScopeAttribute,cf as getRouteParams,Vb as getPublicEnvDefine,Wb as getPublicEnv,qi as getPositionInfo,uc as getPlaceholderRegistry,Ej as getPlaceholderCacheStats,ce as getPageMeta,Hd as getNonce,Gl as getMimeType,cb as getMiddlewareNames,$a as getMiddleware,ca as getLocaleDirection,P as getLoadingState,Y as getLoadingLocales,Ie as getImagePlaceholder,Al as getImageMetadata,Fe as getImageDelivery,Jp as getHydrationRuntime,ym as getHydratedStoreState,Sk as getHmrServer,be as getHead,Bp as getHMRHandler,qj as getFormatExtension,Jj as getFileMtime,Dl as getFallbackVariant,f as getErrorMessage,c as getErrorLocale,n as getErrorConfig,i as getErrorCodeName,Ui as getDirectives,Ti as getDirective,Xl as getCurrentInstance,Wc as getCssServeAsset,Pd as getCspPreset,Yd as getCspHeaderName,Pi as getComponentCacheStats,$j as getCachedVideoResult,Fq as getCachedSignature,Of as getCachedSignalsRuntime,Pf as getCachedRouterScript,Cj as getCachedPlaceholder,Qj as getCachedImageResult,Kj as getCached,Nj as getCacheStats,Pg as getBuildId,Hn as getBroadcastServer,pj as getBestVariant,Bc as getAllFilters,dj as generateWidthSrcset,Rh as generateVirtualListCSS,kr as generateVideoPreview,Ee as generateValidationScript,lr as generateUploadRuntime,yn as generateTreeShakenBundle,wh as generateTransitionRuntime,vh as generateTransitionCSS,dk as generateThumbnails,vj as generateThumbhashPlaceholder,io as generateTemplatesDocs,Ch as generateSuspenseRuntime,Bh as generateSuspenseCSS,Ep as generateStateScript,nj as generateSrcsetData,Uj as generateSrcset,Bl as generateSrcSet,ek as generateSpriteSheet,tr as generateSpaShell,oj as generateSourceTags,jj as generateSizesFromBreakpoints,ij as generateSizesAttribute,Cl as generateSizes,mg as generateSitemapIndex,Sr as generateSitemap,Oq as generateSimpleMediaPicker,Iq as generateSignatureRuntime,If as generateSignalsRuntimeDev,Hf as generateSignalsRuntime,qc as generateServerDataBridge,ok as generateScopeId,yk as generateSFCWebComponent,Nb as generateRuntimeScript,Pa as generateRouteTypes,Qa as generateRouteManifest,og as generateRobotsTxt,Tr as generateRobots,Tj as generateResponsiveVariants,uk as generateReactiveWebComponentTS,tk as generateReactiveWebComponent,wk as generateReactiveRuntime,vk as generateReactiveMixin,ck as generatePoster,Bj as generatePlaceholderStyle,Aj as generatePlaceholderCSS,uj as generatePlaceholder,$h as generatePartialHydrationCSS,Vg as generateOfflineWorker,Gd as generateNonce,ml as generateNetlifyToml,nr as generateMinifiedMediaRuntime,mr as generateMediaRuntime,Nq as generateMediaManagerEmbed,gn as generateManifest,wp as generateLoadingIndicatorHtml,Yq as generateLazyLoadRuntime,an as generateLayoutTypes,xj as generateLQIP,Mh as generateKeepAliveRuntime,Lh as generateKeepAliveCSS,gi as generateIslandManifest,jr as generateImagePreview,Tl as generateImageManifest,Ip as generateHydrationScript,af as generateHydrationRuntime,Lp as generateHydrationCSS,Vh as generateHydrationBootstrap,Nk as generateHotReloadScript,jb as generateHeatmapScript,zp as generateHMRClientScript,fk as generateHLSManifest,Fp as generateEventBindings,hj as generateDprSrcsetWithVariableQuality,gj as generateDprSrcset,eh as generateDocumentShell,no as generateDocs,jo as generateDirectivesDocs,Zi as generateDirectiveRuntime,pg as generateDefaultRobotsTxt,gk as generateDASHManifest,Yc as generateCss,Kd as generateCspMetaTag,Jd as generateCspHeader,Ef as generateCompositionRuntime,ho as generateComponentsDocs,Wh as generateComponentManifest,fo as generateComponentDoc,zj as generateColorPlaceholder,Jg as generateColorModeBootScript,om as generateClientRuntime,Ij as generateCacheKey,oc as generateBrowserAutoImportDestructuring,er as generateBlurUpRuntime,fr as generateBlurUpCSS,ad as generateBindingsRuntime,ej as generateAutoWidthSrcset,nc as generateAutoImportDestructuring,Hh as generateAsyncComponentRuntime,Gh as generateAsyncComponentCSS,fc as generateApiTypes,Na as generateAnimationRuntime,La as generateAnimationCSS,cd as generateAnalyticsScript,qp as formatTypecheckDiagnostics,jp as formatTypeErrors,Ko as formatStxContent,kl as formatSize,Ta as formatRoutes,Lo as formatMarkdownContent,g as formatLocalizedError,$ as formatICU,p as formatFilePath,w as formatError,Qr as formatDoctorReport,ko as formatDocsAsMarkdown,mo as formatDocsAsJson,lo as formatDocsAsHtml,mq as format,el as forgetKeptState,Cn as foldConstants,lq as flipVertical,kq as flipHorizontal,bn as fingerprint,op as findStxModuleDeclarations,np as findRuntimeTypeDeclarations,Or as findPantryPackage,Dc as findMustacheEnd,wd as findMatchingEndTag,sd as findMatchingDelimiter,Rb as findInterpolationEnd,yd as findIfBlocks,Bd as findExpressions,Sa as findErrorPage,Tc as findDuplicateScopedStyleRanges,zd as findDirectiveBlocks,zn as findDeadCode,zn as findDeadBranches,Km as findContainerRegion,go as findComponentFiles,ss as findCommonDir,jl as filterRequiredFiles,Ki as fileExists,Zf as extractVariables,oi as extractTemplateExpressions,Ue as extractStreamBoundaries,Gp as extractState,yi as extractSlotContent,$f as extractScriptFromTemplate,ni as extractScriptBlocks,vc as extractPlaceholders,vd as extractParenthesizedExpression,id as extractPageResponseStatus,hb as extractLayoutMetadata,yj as extractDominantColor,Ed as extractDirectiveParams,ti as extractDirectiveNames,Wm as extractContainerContent,co as extractComponentProps,Xh as extractComponentName,eo as extractComponentDescription,Xc as extractClassNames,pc as extractBridgeData,Yh as extractBoundProps,td as extractBalancedExpression,hc as extractAndStripCssImports,sk as extractAndScopeStyles,Ob as extractAndProcessEvents,Wk as externalizeSharedAssets,Xk as externalizeRepeatedAssets,Vk as externalizeHtml,Pc as evaluateExpression,Bn as evaluateConstant,qd as evaluateAuthExpression,Gc as escapeHtmlValue,Fc as escapeHtml,C as errorRecovery,E as errorLogger,rh as ensureTeleportTargets,ih as ensureDocumentShell,Ae as enhancedValidationRules,ao as enableDevTools,An as eliminateDeadCode,ff as effect,tq as dprUrls,oo as docsCommand,ec as discoverServerApi,_m as discoverLayoutNames,Xq as disconnectObserver,bo as disableDevTools,F as devHelpers,Rm as detectShell,po as detectRuntime,nl as detectProjectConfig,rj as detectFormat,un as detectBuildMode,ef as derived,rl as deploy,Gk as defineStxConfig,Tp as defineStore,Bf as defineSlots,cs as defineSiteConfig,gs as definePropsWithValidation,fs as defineProps,Ak as definePlugin,ie as definePageMeta,Wa as defineMiddleware,ii as defineForm,wf as defineExpose,vf as defineEmits,Wi as defineDirective,Gr as defineCustomElement,So as defineConfig,Xi as defineClientDirective,Eh as defineAsyncComponent,Uo as defineApiHandler,or as defaultMediaConfig,Vl as defaultImageConfig,M as defaultI18nConfig,ib as defaultHeatmapConfig,re as defaultFormClasses,yc as defaultFilters,_d as defaultCspConfig,Ck as defaultConfig,qs as default,Rc as deepMergeThemes,Uc as dedupeScopedStyles,Nm as decodeTitleEntities,wj as decodeThumbhash,eg as declareBareLoopHead,Vd as cspNonceDirective,Ud as cspDirective,cr as crossfadeTransition,Zp as crop,Ph as createVirtualList,lk as createVideoDirective,Bo as createVercelHandler,gp as createTypeChecker,fa as createTranslateFilter,xo as createTextEncoderStream,Fr as createStxApp,wo as createStreamingResponse,We as createStreamRenderer,Rp as createStore,Za as createStorageManager,Xa as createServerCookieManager,gc as createServerApi,Zl as createScope,zh as createSSRSuspense,bf as createRouter,Ym as createRouteRuleResolver,eb as createRouteLocation,ep as createRoute,_l as createRef,$l as createReactive,Df as createProvideContext,Xo as createProject,Ro as createProductionBuild,tc as createPlaceholder,Gn as createOptimizedBuild,Co as createNetlifyHandler,fl as createNetlifyClient,fb as createMiddlewareContext,dp as createMiddleware,Vq as createLazyObserver,Jh as createKeepAliveCache,to as createKVNamespace,Zh as createIslandRegistry,Yj as createImgDirective,Ql as createImagePlugin,Jl as createImageHandler,Ol as createImageDirective,nb as createHeatmapAggregator,il as createFileManifest,so as createEnvAccessor,z as createEnhancedError,vo as createEdgeHandler,uo as createEdgeCache,Ni as createDetailedErrorMessage,Ao as createDenoHandler,ol as createDefaultNetlifyConfig,Zd as createCspHeaders,Eo as createCookie,am as createComputed,Yl as createComponentInstance,zo as createCloudflareHandler,Ya as createClientCookieManager,Yi as createBuiltinDirectives,Fr as createApp,Ka as createAnimationTimeline,aq as cover,_f as convertToCommonJS,hq as contrast,$p as contain,y as consoleError,m as configureErrorHandling,Fk as config,am as computed,$n as compressResponse,Bg as composerPattern,Ag as composer,Tm as composeShellWithPage,Vn as componentDirective,Ii as componentClientSignalNames,fn as compileTemplate,a as collectRepeatedFlag,hl as collectDeployFiles,ch as cloakStyleFragment,Ic as clientLoopScopes,bk as clearVideoCache,N as clearTranslationCache,nh as clearStoreCache,$k as clearStorage,Gq as clearSignatureCache,Gf as clearServerData,Dj as clearPlaceholderCache,tg as clearOnceStore,Id as clearNonce,bb as clearMiddleware,Ke as clearImagePlaceholders,Ge as clearImageDeliveryCatalog,Nl as clearImageCache,e as clearErrorMessages,Tf as clearDevCaches,Cc as clearCustomFilters,Dg as clearComposers,oh as clearComposableCache,Oi as clearComponentCache,Mj as clearCache,Ib as clearBlankCache,vp as cleanupLoadingIndicator,Hm as classifyScript,Im as classifyAllScripts,hp as checkTemplateFile,ip as checkTemplate,Uf as checkCache,Dq as checkAuthAccess,na as checkA11yWithRegex,oa as checkA11y,Qn as channel,Jo as captureScreenshots,Io as captureScreenshot,Z as cancelPendingLoads,gl as calculateSha1,fj as calculateOptimalWidths,Vf as cacheTemplate,bc as cacheEngineFingerprint,nk as buildWebComponents,kp as buildVirtualSource,qr as buildViews,Vp as buildUrl,Qe as buildSuspenseResolveScript,bs as buildStaticSite,qb as buildRuntimeGlobalsDestructure,cn as buildRuntimeAsset,dn as buildRouterAsset,as as buildLangPickerScript,lj as buildImageUrl,Sg as buildIdFragment,_g as buildHtmlAttrs,sn as buildForProduction,Yn as buildComponentLibrary,Eq as buildAuthParams,tn as buildApp,_r as buildAlternateLinks,Qo as build,On as broadcastPrivate,Pn as broadcastPresence,Ln as broadcast,gq as brightness,Tb as bracketDepths,bq as blur,Jb as blankInertHtmlRegions,yq as batchSignUrls,gf as batch,sa as autoFixA11yFile,ta as autoFixA11yDirectory,ra as autoFixA11y,oq as auto,ja as attributeValue,en as assetTags,Mb as asInvocableStatement,ns as arrayOf,Xr as applyTranslations,Sj as applyTransformations,zi as applySlots,Un as applyPropDefaults,rq as applyPreset,ah as applyHtmlAttrs,ne as applyHead,Nc as applyFilters,Pm as appendVary,Od as apiCspPreset,Da as animationGroupDirective,hk as analyzeVideo,wn as analyzeUsage,Fm as analyzeTemplate,Gm as analyzeProject,wn as analyzeDirectiveUsage,ed as analyticsDirective,_o as addStore,Zo as addPage,Sd as addNonceToInlineContent,$o as addLayout,Yo as addComponent,on as actionRedirectResponse,Va as abortNavigation,ua as a11yDirective,Nf as __setSignalsGeneratorsForTest,Qg as __setBuildIdForTest,_j as VideoProcessorCache,ji as Validator,xa as TransitionType,za as TransitionEase,ya as TransitionDirection,rd as Tokenizer,fp as TemplateTypeChecker,Mo as TEMPLATE_PRESETS,v as StxValidationError,r as StxSyntaxError,t as StxSecurityError,s as StxRuntimeError,u as StxFileError,q as StxError,Br as Show,Re as SUSPENSE_RESOLVER_RUNTIME,ob as STX_RUNTIME_GLOBALS,jc as STX_AUTO_IMPORTS,Yb as STATE_DIR_ENV_VAR,Ga as SPRING_PRESETS,Lm as SPA_NAV_HEADER,Kb as SCROLL_BLOCKING_EVENTS,xb as RUNTIME_OWNED_COLON_ATTRS,zb as RUNTIME_HANDLED_X_ATTRS,Fb as RUNTIME_EVENT_NAMES,Db as RUNTIME_DIRECTIVE_NAMES,fd as RESPONSE_STATUS_KEY,gd as RESPONSE_HEADERS_KEY,tb as REACTIVE_RUNTIME_GLOBALS,Po as ProductionBuild,Dr as Portal,Wo as PROJECT_TEMPLATES,qq as PRESETS,Tg as OFFLINE_WORKER_PATH,Ug as OFFLINE_REGISTER_SCRIPT,sb as NON_CLIENT_PRIMITIVES,Mp as MemorySessionStore,cj as MIME_TYPES,$i as MEDIA_DEFAULT_WIDTHS,bj as MEDIA_DEFAULT_FORMATS,Zm as LAYOUT_TYPES_FILE,cl as KEPT_STATE_PREFIX,Pj as ImageProcessorCache,Hl as ImageProcessingError,Hp as HydrationRuntime,Mk as HotReloadServer,mb as HeatmapAggregator,Yg as HTML_CLASS_MARKER,Xg as HTML_ATTRS_MARKER,ur as Fragment,Cr as For,Mm as FRAGMENT_CACHE_CONTROL,D as ErrorLogger,h as ErrorCodes,Uk as EXTERNALIZED_ASSET_DIR,tl as DeployError,ul as DEFAULT_WIDTHS,Aa as DEFAULT_TRANSITION_OPTIONS,Xb as DEFAULT_STATE_DIR,wl as DEFAULT_QUALITY,sj as DEFAULT_PLACEHOLDER_OPTIONS,vl as DEFAULT_FORMATS,aj as DEFAULT_DPR_VALUES,yp as ComponentHMRHandler,pb as COMPONENT_SCOPE_LOCAL_GLOBALS,Bb as COMPONENT_PASSTHROUGH_X_ATTRS,rb as COMPILE_TIME_ONLY_GLOBALS,kj as COMMON_SIZES,Hg as COLOR_MODE_BOOT_MARKER,Ig as COLOR_MODE_BOOT_GLOBAL,Wg as CLOAK_STYLE,Sn as BroadcastServer,Rn as Broadcast,Ng as BUILD_ID_META,Og as BUILD_ID_HEADER,Ub as BROWSER_CORE_IMPORTS,tj as BLUR_UP_CSS,Ab as ALPINE_BRIDGE_X_ATTRS,Nr as $path};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{ko as b,lo as c,mo as d}from"./chunk-
|
|
2
|
+
import{ko as b,lo as c,mo as d}from"./chunk-6am7e1be.js";import"./chunk-4cv7bw5e.js";import"./chunk-7tgjn256.js";import"./chunk-h8zp2fz9.js";import"./chunk-ekvejzvk.js";import"./chunk-3769e62c.js";import"./chunk-wjzcggh6.js";import"./chunk-yj5gkn17.js";import"./chunk-cy8hgd86.js";import"./chunk-74ebps1a.js";import"./chunk-g7qmxjyc.js";import"./chunk-88tt0qg0.js";import"./chunk-e1rv01pn.js";import{wv as a}from"./chunk-bdz7nznw.js";import"./chunk-rwtj7j0r.js";import"./chunk-eqhsprr0.js";import"./chunk-csgshaeh.js";import"./chunk-d0qy1ezf.js";import"./chunk-c9kj8p6j.js";import"./chunk-x2wmn8m7.js";import"./chunk-rxz43r6k.js";export{b as rendersAsElement,c as processESImports,d as processComponents,a as freeIdentifiers};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{bl as a,cl as b,dl as c,el as d,fl as e,gl as f,hl as g,il as h,jl as i,kl as j,ll as k,ml as l,nl as m,ol as n,pl as o}from"./chunk-
|
|
2
|
+
import{bl as a,cl as b,dl as c,el as d,fl as e,gl as f,hl as g,il as h,jl as i,kl as j,ll as k,ml as l,nl as m,ol as n,pl as o}from"./chunk-q25qsg28.js";import"./chunk-eqtc6w4a.js";import"./chunk-2andsajh.js";import"./chunk-6am7e1be.js";import"./chunk-4cv7bw5e.js";import"./chunk-7tgjn256.js";import"./chunk-h8zp2fz9.js";import"./chunk-ekvejzvk.js";import"./chunk-3769e62c.js";import"./chunk-wjzcggh6.js";import"./chunk-yj5gkn17.js";import"./chunk-cy8hgd86.js";import"./chunk-74ebps1a.js";import"./chunk-g7qmxjyc.js";import"./chunk-88tt0qg0.js";import"./chunk-e1rv01pn.js";import"./chunk-bdz7nznw.js";import"./chunk-rwtj7j0r.js";import"./chunk-eqhsprr0.js";import"./chunk-csgshaeh.js";import"./chunk-d0qy1ezf.js";import"./chunk-c9kj8p6j.js";import"./chunk-x2wmn8m7.js";import"./chunk-rxz43r6k.js";export{o as tempBuildName,b as shouldLogBundlerDiagnostics,f as setBundlerFallbackMode,l as rewriteRegistryImports,g as resolveBundlerFallback,j as registryIdForPath,c as recordBundleFailure,m as queueClientBundleBuild,k as normalizeRegistrySpecifiers,h as hasUserImports,d as getBundleFailures,a as clientBundleDependencies,e as clearBundleFailures,n as bundleClientScript,i as MODULE_SPECIFIER_PREFIX};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Aq as y,No as a,Po as b,Ro as c,So as d,gq as e,hq as f,iq as g,jq as h,kq as i,lq as j,mq as k,nq as l,oq as m,pq as n,qq as o,rq as p,sq as q,tq as r,uq as s,vq as t,wq as u,xq as v,yq as w,zq as x}from"./chunk-
|
|
2
|
+
import{Aq as y,No as a,Po as b,Ro as c,So as d,gq as e,hq as f,iq as g,jq as h,kq as i,lq as j,mq as k,nq as l,oq as m,pq as n,qq as o,rq as p,sq as q,tq as r,uq as s,vq as t,wq as u,xq as v,yq as w,zq as x}from"./chunk-6am7e1be.js";import"./chunk-4cv7bw5e.js";import"./chunk-7tgjn256.js";import"./chunk-h8zp2fz9.js";import"./chunk-ekvejzvk.js";import"./chunk-3769e62c.js";import"./chunk-wjzcggh6.js";import"./chunk-yj5gkn17.js";import"./chunk-cy8hgd86.js";import"./chunk-74ebps1a.js";import"./chunk-g7qmxjyc.js";import"./chunk-88tt0qg0.js";import"./chunk-e1rv01pn.js";import"./chunk-bdz7nznw.js";import"./chunk-rwtj7j0r.js";import"./chunk-eqhsprr0.js";import"./chunk-csgshaeh.js";import"./chunk-d0qy1ezf.js";import"./chunk-c9kj8p6j.js";import"./chunk-x2wmn8m7.js";import"./chunk-rxz43r6k.js";export{e as validateTemplate,g as validateDirective,o as userComponentFileExists,m as transpileTypeScript,q as slotContentHasExpressions,k as shouldTranspileTypeScript,n as scopeOnRootElement,u as resolveTemplatePath,s as renderComponentWithSlot,j as isJavaScriptScript,p as isHydrateTrigger,d as hasVariables,h as hasDirectives,v as getSourceLineInfo,l as getSharedTranspiler,f as getPositionInfo,y as getComponentCacheStats,t as fileExists,a as extractVariables,c as extractScriptFromTemplate,i as extractDirectiveNames,w as createDetailedErrorMessage,b as convertToCommonJS,r as componentClientSignalNames,x as clearComponentCache};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{af as a}from"./chunk-
|
|
2
|
+
import{af as a}from"./chunk-dzaf7qx8.js";import"./chunk-3818kp2d.js";import"./chunk-g64qyhhb.js";import"./chunk-eqtc6w4a.js";import"./chunk-6am7e1be.js";import"./chunk-4cv7bw5e.js";import"./chunk-7tgjn256.js";import"./chunk-h8zp2fz9.js";import"./chunk-ekvejzvk.js";import"./chunk-3769e62c.js";import"./chunk-wjzcggh6.js";import"./chunk-yj5gkn17.js";import"./chunk-cy8hgd86.js";import"./chunk-74ebps1a.js";import"./chunk-g7qmxjyc.js";import"./chunk-88tt0qg0.js";import"./chunk-e1rv01pn.js";import"./chunk-bdz7nznw.js";import"./chunk-rwtj7j0r.js";import"./chunk-eqhsprr0.js";import"./chunk-csgshaeh.js";import"./chunk-d0qy1ezf.js";import"./chunk-c9kj8p6j.js";import"./chunk-x2wmn8m7.js";import"./chunk-rxz43r6k.js";export{a as startProductionServer};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Dr as g,Em as O,No as R,Tp as H,yq as x}from"./chunk-
|
|
2
|
+
import{Dr as g,Em as O,No as R,Tp as H,yq as x}from"./chunk-6am7e1be.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,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Oe as c,Pe as d,Qe as e,Re as f,Se as g,Te as h,Ue as i}from"./chunk-
|
|
2
|
+
import{Oe as c,Pe as d,Qe as e,Re as f,Se as g,Te as h,Ue as i}from"./chunk-0tak2f33.js";import"./chunk-3ey6ha6w.js";import"./chunk-452k8psm.js";import"./chunk-q25qsg28.js";import"./chunk-eqtc6w4a.js";import"./chunk-2andsajh.js";import{Up as a,Xp as b}from"./chunk-6am7e1be.js";import"./chunk-4cv7bw5e.js";import"./chunk-7tgjn256.js";import"./chunk-h8zp2fz9.js";import"./chunk-ekvejzvk.js";import"./chunk-3769e62c.js";import"./chunk-wjzcggh6.js";import"./chunk-yj5gkn17.js";import"./chunk-cy8hgd86.js";import"./chunk-74ebps1a.js";import"./chunk-g7qmxjyc.js";import"./chunk-88tt0qg0.js";import"./chunk-e1rv01pn.js";import"./chunk-bdz7nznw.js";import"./chunk-rwtj7j0r.js";import"./chunk-eqhsprr0.js";import"./chunk-csgshaeh.js";import"./chunk-d0qy1ezf.js";import"./chunk-c9kj8p6j.js";import"./chunk-x2wmn8m7.js";import"./chunk-rxz43r6k.js";export{d as virtualPathFor,h as typecheckStxFiles,e as sourcePathFor,i as formatTypecheckDiagnostics,g as findStxModuleDeclarations,f as findRuntimeTypeDeclarations,b as extractTemplateExpressions,a as extractScriptBlocks,c as buildVirtualSource};
|
package/dist/cli.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env bun
|
|
2
2
|
// @bun
|
|
3
|
-
import{Ka as a,Ke as F,Me as v,Ne as P,Ya as r,ge as s,he as t,o as m,qb as n,ra as l,rb as p,tb as i,zb as e}from"./chunk-
|
|
3
|
+
import{Ka as a,Ke as F,Me as v,Ne as P,Ya as r,ge as s,he as t,o as m,qb as n,ra as l,rb as p,tb as i,zb as e}from"./chunk-06h5zrm2.js";import"./chunk-0tak2f33.js";import"./chunk-pkspqh0m.js";import"./chunk-83ewzshg.js";import"./chunk-nrgcfg8h.js";import"./chunk-dzaf7qx8.js";import"./chunk-ewxbx67c.js";import"./chunk-kdwbpcm4.js";import"./chunk-fsvkqeya.js";import"./chunk-980w4zcq.js";import"./chunk-dazf77tr.js";import"./chunk-3818kp2d.js";import"./chunk-g64qyhhb.js";import"./chunk-9vwpf0bk.js";import"./chunk-gjpq3pmz.js";import"./chunk-k2nydt80.js";import"./chunk-x86qttwm.js";import"./chunk-6rzwef28.js";import"./chunk-683tfkz4.js";import"./chunk-9r2xgf5k.js";import"./chunk-9368t9jm.js";import"./chunk-st9vrfw7.js";import"./chunk-mwh3ymwc.js";import"./chunk-3ey6ha6w.js";import"./chunk-1t5vwavd.js";import"./chunk-cks5rbzt.js";import"./chunk-092qw0ps.js";import"./chunk-kpg48dhw.js";import"./chunk-4bb28mz5.js";import"./chunk-90zfg77v.js";import"./chunk-27wgfqs0.js";import"./chunk-452k8psm.js";import"./chunk-ymkv623c.js";import"./chunk-8gwby0r0.js";import"./chunk-mnk5mdwp.js";import"./chunk-awz5cx5w.js";import"./chunk-rem5ne21.js";import"./chunk-gtn2agxa.js";import"./chunk-7eea1cse.js";import{el as u,fl as c}from"./chunk-q25qsg28.js";import"./chunk-eqtc6w4a.js";import"./chunk-2andsajh.js";import"./chunk-6am7e1be.js";import{ns as f}from"./chunk-4cv7bw5e.js";import"./chunk-7tgjn256.js";import"./chunk-h8zp2fz9.js";import"./chunk-ekvejzvk.js";import"./chunk-3769e62c.js";import{Rs as A}from"./chunk-wjzcggh6.js";import"./chunk-yj5gkn17.js";import"./chunk-cy8hgd86.js";import"./chunk-74ebps1a.js";import"./chunk-g7qmxjyc.js";import"./chunk-88tt0qg0.js";import"./chunk-e1rv01pn.js";import"./chunk-bdz7nznw.js";import"./chunk-rwtj7j0r.js";import"./chunk-eqhsprr0.js";import"./chunk-csgshaeh.js";import"./chunk-d0qy1ezf.js";import"./chunk-c9kj8p6j.js";import"./chunk-x2wmn8m7.js";import{$w as B}from"./chunk-rxz43r6k.js";import{spawn as o}from"child_process";import L from"fs";import zb from"os";import $ from"path";import w from"process";import{CLI as wb}from"@stacksjs/clapp";var N="0.2.400";var __dirname="/home/runner/work/stx/stx/packages/stx/bin",E=new wb("stx");function h(J){let Z=typeof J==="string"?Number.parseInt(J,10):J;if(Number.isNaN(Z))return{isValid:!1,error:"Port must be a valid number",suggestion:"Try using a number between 1024 and 65535"};if(Z<1024||Z>65535)return{isValid:!1,error:"Port must be between 1024 and 65535",suggestion:"Try using a port between 1024 and 65535"};return{isValid:!0}}function d(J){try{if(!L.existsSync(J)){let K=$.dirname(J),x=$.basename(J);if(L.existsSync(K)){let z=L.readdirSync(K).filter((j)=>j.toLowerCase().includes(x.toLowerCase().substring(0,3))||j.endsWith(".stx")||j.endsWith(".md")),k=z.length>0?`File not found. Similar files in ${K}: ${z.slice(0,3).join(", ")}`:`File not found. Directory ${K} exists but doesn't contain the specified file.`;return{isValid:!1,error:`File does not exist: ${J}`,suggestion:k}}return{isValid:!1,error:`File does not exist: ${J}`,suggestion:"Check the file path and try again"}}if(L.statSync(J).isDirectory())return{isValid:!1,error:`Expected file but got directory: ${J}`,suggestion:"Specify a .stx or .md file path"};return{isValid:!0}}catch(Z){return{isValid:!1,error:`Cannot access file: ${J}`,suggestion:"Check file permissions and path"}}}function y(J){let Z=typeof J==="string"?Number.parseInt(J,10):J;if(Number.isNaN(Z))return{isValid:!1,error:"Timeout must be a valid number",suggestion:"Specify timeout in milliseconds (e.g., 5000 for 5 seconds)"};if(Z<100)return{isValid:!1,error:"Timeout too short (minimum 100ms)",suggestion:"Use a timeout of at least 100ms"};if(Z>300000)return{isValid:!1,error:"Timeout too long (maximum 5 minutes)",suggestion:"Use a timeout of less than 300000ms (5 minutes)"};return{isValid:!0}}var V=(J)=>J.includes("*")||J.includes("?")||J.includes("{")||J.includes("["),jb=(J)=>J.endsWith(".stx")||J.endsWith(".md");function S(J,Z=1){if(console.error(`\u274C ${J.error}`),J.suggestion)console.error(`\uD83D\uDCA1 suggestion: ${J.suggestion}`);w.exit(Z)}function kb(J){if(!J)return;let Z;try{Z=JSON.parse(J)}catch(K){console.error(`\u274C --info-plist is not valid JSON: ${K.message}`),w.exit(1)}if(typeof Z!=="object"||Z===null||Array.isArray(Z))console.error(`\u274C --info-plist must be a JSON object, e.g. '{"NSFocusStatusUsageDescription":"\u2026"}'`),w.exit(1);for(let[K,x]of Object.entries(Z))if(typeof x!=="string"&&typeof x!=="number"&&typeof x!=="boolean")console.error(`\u274C --info-plist value for "${K}" must be a string, number or boolean`),w.exit(1);return Z}async function Hb(J,Z){try{let K=["test"],x=[];if(J&&J.length>0)for(let W of J)if(V(W))try{let H=await Array.fromAsync(new Bun.Glob(W).scan({onlyFiles:!0,absolute:!0}));if(H.length===0)console.warn(`Warning: No files found matching pattern: ${W}`);else if(x.push(...H),Z.verbose)console.log(`Found ${H.length} file(s) matching pattern: ${W}`)}catch(H){return console.error(`Error expanding glob pattern ${W}:`,H),!1}else x.push(W);if(x.length===0)return console.error("Error: No test files found matching the provided patterns."),!1;if(K.push(...x),Z.filter)K.push("--pattern",Z.filter);if(Z.timeout)K.push("--timeout",Z.timeout.toString());if(Z.reporter&&Z.reporter!=="default")if(Z.reporter==="junit"){let W=$.join(zb.tmpdir(),`stx-test-report-${Date.now()}.xml`);K.push("--reporter",Z.reporter),K.push("--reporter-outfile",W)}else console.warn(`Warning: Reporter '${Z.reporter}' is not supported. Using default reporter.`);if(Z.coverage)K.push("--coverage");if(Z.watch)K.push("--watch");K.push("--preload",$.join(__dirname,"../../../test-utils/happy-dom.ts"));let b={...w.env,STX_TEST_MODE:"true",STX_TEST_UI:Z.ui?"true":"false",STX_TEST_VERBOSE:Z.verbose?"true":"false"},z="bun";if(Z.verbose)console.log(`Running: ${z} ${K.join(" ")}`);let k=performance.now(),j=o(z,K,{stdio:"inherit",shell:!1,env:b});return new Promise((W)=>{j.on("close",(H)=>{let Y=((performance.now()-k)/1000).toFixed(2);if(H===0)W(!0);else W(!1)}),w.on("SIGINT",()=>{console.log(`
|
|
4
4
|
Test run interrupted`),j.kill("SIGINT"),w.exit(1)})})}catch(K){return console.error("Error running tests:",K instanceof Error?K.message:String(K)),!1}}var Qb=w.argv.length>=3&&(jb(w.argv[2])&&L.existsSync(w.argv[2])||V(w.argv[2]));if(Qb){let J=w.argv[2],Z={port:3000,watch:!0,cache:!0,markdown:{syntaxHighlighting:{enabled:!0,serverSide:!0,defaultTheme:"github-dark",highlightUnknownLanguages:!0}}};for(let K=3;K<w.argv.length;K++){let x=w.argv[K];if(x==="--port"&&K+1<w.argv.length){let b=h(w.argv[++K]);if(!b.isValid)S(b);Z.port=Number.parseInt(w.argv[K],10)}else if(x==="--no-watch")Z.watch=!1;else if(x==="--highlight-theme"&&K+1<w.argv.length){if(!Z.markdown)Z.markdown={};if(!Z.markdown.syntaxHighlighting)Z.markdown.syntaxHighlighting={};Z.markdown.syntaxHighlighting.defaultTheme=w.argv[++K]}else if(x==="--no-highlight"){if(!Z.markdown)Z.markdown={};if(!Z.markdown.syntaxHighlighting)Z.markdown.syntaxHighlighting={};Z.markdown.syntaxHighlighting.enabled=!1}else if(x==="--no-highlight-unknown"){if(!Z.markdown)Z.markdown={};if(!Z.markdown.syntaxHighlighting)Z.markdown.syntaxHighlighting={};Z.markdown.syntaxHighlighting.highlightUnknownLanguages=!1}else if(x==="--no-cache")Z.cache=!1;else if(x==="--native")Z.native=!0}if(V(J))try{let K=await Array.fromAsync(new Bun.Glob(J).scan({onlyFiles:!0,absolute:!0})),x=J.endsWith(".stx")?K.filter((j)=>j.endsWith(".stx")):J.endsWith(".md")?K.filter((j)=>j.endsWith(".md")):K.filter((j)=>j.endsWith(".stx")||j.endsWith(".md")),b=J.split("*")[0].replace(/\/$/,"")||".",z=$.resolve(b);try{let j=new Bun.Glob("**/*.stx"),H=(await Array.fromAsync(j.scan({cwd:z,onlyFiles:!0,absolute:!0}))).filter((U)=>/\[.+\]/.test($.basename(U)));for(let U of H)if(!x.includes(U))x.push(U)}catch{}if(x.length===0)console.error(`Error: No STX or Markdown files found matching pattern: ${J}`),w.exit(1);if(!await v(x,Z))w.exit(1)}catch(K){console.error("Failed to process files:",K),w.exit(1)}else F(J,Z).catch((K)=>{console.error("Failed to start dev server:",K),w.exit(1)})}else{let J=function(x,b){let z=[];for(let k=0;k<=b.length;k++)z[k]=[k];for(let k=0;k<=x.length;k++)z[0][k]=k;for(let k=1;k<=b.length;k++)for(let j=1;j<=x.length;j++)if(b.charAt(k-1)===x.charAt(j-1))z[k][j]=z[k-1][j-1];else z[k][j]=Math.min(z[k-1][j-1]+1,z[k][j-1]+1,z[k-1][j]+1);return z[b.length][x.length]};E.command("docs","Generate documentation for components, templates, and directives").option("--output <dir>","Output directory for documentation",{default:"docs"}).option("--format <format>","Documentation format (markdown, html, json)",{default:"markdown"}).option("--components-dir <dir>","Components directory",{default:"components"}).option("--templates-dir <dir>","Templates directory",{default:"."}).option("--no-components","Disable components documentation").option("--no-templates","Disable templates documentation").option("--no-directives","Disable directives documentation").option("--extra-content <content>","Extra content to include in documentation").example("stx docs --output docs --format html").action(async(x)=>{try{if(await r(x))console.log("Documentation generated successfully."),w.exit(0);else console.error("Documentation generation failed."),w.exit(1)}catch(b){console.error("Error generating documentation:",b),w.exit(1)}}),E.command("iconify <command>","Generate Iconify icon packages").option("--output <dir>","Output directory for generated packages",{default:"packages"}).option("--icons <icons>","Comma-separated list of specific icons to generate").example("stx iconify list").example("stx iconify generate mdi").example("stx iconify generate lucide --icons home,settings,user").action(async(x,b)=>{try{let{fetchCollections:z,generatePackage:k}=await import("./chunk-5zmppe0c.js");if(x==="list"){console.log(`
|
|
5
5
|
\uD83D\uDCDA Fetching available icon collections...
|
|
6
6
|
`);let j=await z(),W=Object.entries(j).sort((H,U)=>U[1].total-H[1].total);console.log(`Available collections:
|
|
7
7
|
`);for(let[H,U]of W){let Y=U;console.log(` ${H.padEnd(30)} ${Y.name} (${Y.total} icons)`)}console.log(`
|
|
8
8
|
Total: ${W.length} collections`)}else if(x.startsWith("generate")){let j=x==="generate"?"":x.replace("generate:","").replace("generate-","").replace("generate","").trim();if(!j)console.error("Error: Please specify a collection prefix"),console.error("Usage: stx iconify generate <prefix> [--icons icon1,icon2,...]"),w.exit(1);let W=b.output||$.join(w.cwd(),"packages/collections"),H=b.icons?b.icons.split(",").map((U)=>U.trim()):void 0;await k(j,W,H),console.log(`
|
|
9
9
|
\u2713 Package generated successfully!`),console.log(`
|
|
10
|
-
To use the package:`),console.log(` 1. cd packages/collections/iconify-${j}`),console.log(" 2. bun install"),console.log(" 3. bun run build")}else console.error(`Unknown iconify command: ${x}`),console.error("Available commands: list, generate"),w.exit(1)}catch(z){console.error("Error:",z instanceof Error?z.message:String(z)),w.exit(1)}}),E.command("pwa <command>","PWA tools - audit configuration and build output").option("--output <dir>","Build output directory to audit",{default:"dist"}).example("stx pwa audit").example("stx pwa audit --output build").action(async(x,b)=>{try{if(x==="audit"){let{runPwaAudit:z,formatAuditResult:k}=await import("./chunk-cd6pe75s.js"),{loadConfig:j}=await import("./chunk-
|
|
10
|
+
To use the package:`),console.log(` 1. cd packages/collections/iconify-${j}`),console.log(" 2. bun install"),console.log(" 3. bun run build")}else console.error(`Unknown iconify command: ${x}`),console.error("Available commands: list, generate"),w.exit(1)}catch(z){console.error("Error:",z instanceof Error?z.message:String(z)),w.exit(1)}}),E.command("pwa <command>","PWA tools - audit configuration and build output").option("--output <dir>","Build output directory to audit",{default:"dist"}).example("stx pwa audit").example("stx pwa audit --output build").action(async(x,b)=>{try{if(x==="audit"){let{runPwaAudit:z,formatAuditResult:k}=await import("./chunk-cd6pe75s.js"),{loadConfig:j}=await import("./chunk-es5qfybg.js");console.log(`
|
|
11
11
|
\uD83D\uDD0D Running PWA audit...
|
|
12
12
|
`);let W=await j(),H=b.output||"dist",U=z(W,H);if(console.log(k(U)),U.failed>0)w.exit(1)}else console.error(`Unknown pwa command: ${x}`),console.error("Available commands: audit"),w.exit(1)}catch(z){console.error("Error:",z instanceof Error?z.message:String(z)),w.exit(1)}}),E.command("dev [file]","Start a development server for an STX app or file").option("--port <port>","Port to use for the dev server",{default:3000}).option("--pages <dir>",'Directory containing page templates (default: pagesDir from stx.config.ts, else "pages")').option("--no-watch","Disable file watching and auto-reload").option("--native","Open in a native desktop window using Zyte").option("--titlebar-hidden","Hide the native titlebar but keep the traffic-light buttons (web content draws under a transparent full-size titlebar). Implies --native.").option("--highlight-theme <theme>","Syntax highlighting theme for Markdown code blocks",{default:"github-dark"}).option("--no-highlight","Disable syntax highlighting for Markdown code blocks").option("--no-highlight-unknown","Disable syntax highlighting for unknown languages in Markdown").option("--no-cache","Disable caching of parsed files").option("--no-hmr","Disable HMR / live-reload script injection (useful for clean network traces)").option("--profile","Print per-directive timing for every page render via performanceMonitor").option("--debug-directives","Log directive ordering and intermediate template state during rendering").example("stx dev").example("stx dev --port 8080").example("stx dev --pages src/pages").example("stx dev template.stx").example("stx dev components/hero.stx --port 8080").example("stx dev **/*.stx").example("stx dev docs/guide.md").example("stx dev template.stx --native").action(async(x,b)=>{try{if(b.port!==void 0){let k=h(b.port);if(!k.isValid)S(k);b.port=Number.parseInt(String(b.port),10)}if(b.timeout!==void 0){let k=y(b.timeout);if(!k.isValid)S(k)}let z={syntaxHighlighting:{enabled:b.highlight!==!1,serverSide:!0,defaultTheme:b.highlightTheme||"github-dark",highlightUnknownLanguages:b.highlightUnknown!==!1}};if(!x){if(!await P(".",{port:b.port,watch:b.watch!==!1,native:b.native||b.titlebarHidden||!1,titlebarHidden:b.titlebarHidden===!0,cache:b.cache!==!1,hotReload:b.hmr!==!1,profile:b.profile===!0,debugDirectives:b.debugDirectives===!0,...b.pages&&{pagesDir:b.pages}}))w.exit(1);return}if(!V(x))try{let k=await import("fs");if(k.existsSync(x)&&k.statSync(x).isDirectory()){if(!await P(x,{port:b.port,watch:b.watch!==!1,native:b.native||b.titlebarHidden||!1,titlebarHidden:b.titlebarHidden===!0,cache:b.cache!==!1,hotReload:b.hmr!==!1,profile:b.profile===!0,debugDirectives:b.debugDirectives===!0,...b.pages&&{pagesDir:b.pages}}))w.exit(1);return}}catch{}if(V(x)){console.log(`Expanding glob pattern: ${x}`);let k=await A.timeAsync("glob-expansion",async()=>{return Array.fromAsync(new Bun.Glob(x).scan({onlyFiles:!0,absolute:!0}))}),j=x.endsWith(".stx")?k.filter((Y)=>Y.endsWith(".stx")):x.endsWith(".md")?k.filter((Y)=>Y.endsWith(".md")):k.filter((Y)=>Y.endsWith(".stx")||Y.endsWith(".md"));if(j.length===0)console.error(`No STX or Markdown files found matching pattern: ${x}`),console.error("Try using patterns like '*.stx' or 'components/**/*.stx'"),w.exit(1);let W=x.split("*")[0].replace(/\/$/,"")||".",H=$.resolve(W);try{let Y=new Bun.Glob("**/*.stx"),X=(await Array.fromAsync(Y.scan({cwd:H,onlyFiles:!0,absolute:!0}))).filter((_)=>/\[.+\]/.test($.basename(_)));for(let _ of X)if(!j.includes(_))j.push(_)}catch{}if(console.log(`Found ${j.length} ${j.length===1?"file":"files"} matching ${x}`),!await v(j,{port:b.port,watch:b.watch!==!1,native:b.native||b.titlebarHidden||!1,titlebarHidden:b.titlebarHidden===!0,markdown:z,cache:b.cache!==!1}))w.exit(1)}else{if(!V(x)){let j=d(x);if(!j.isValid)S(j)}if(!await F(x,{port:b.port,watch:b.watch!==!1,native:b.native||b.titlebarHidden||!1,titlebarHidden:b.titlebarHidden===!0,markdown:z,cache:b.cache!==!1}))w.exit(1)}}catch(z){console.error("Error starting dev server:",z),w.exit(1)}}),E.command("a11y [target]","Scan .stx files for accessibility issues (directory, file, or glob)").option("--no-recursive","Disable recursive scanning of directories").option("--ignore <paths>","Comma-separated paths to ignore",{default:""}).option("--json","Output results as JSON").option("--output <file>","Write results to a file instead of stdout").option("--fix","Automatically fix common accessibility issues").example("stx a11y ./templates").example('stx a11y "resources/**/*.stx"').example("stx a11y resources/emails/welcome.stx").example("stx a11y --json --output a11y-report.json").action(async(x=".",b)=>{try{console.log(`Scanning ${x} for accessibility issues...`);let z=b.ignore?b.ignore.split(",").map((U)=>U.trim()):[],{results:k,scannedFiles:j}=await f(x,{recursive:b.recursive!==!1,ignorePaths:z});if(j.length===0)console.log(`
|
|
13
13
|
No .stx files matched ${x}
|
|
@@ -69,7 +69,7 @@ Total: ${H} issues in ${W} files`),b.output){let U=`
|
|
|
69
69
|
File not found: ${x}`),w.exit(1);if(!x.endsWith(".stx"))console.error(`
|
|
70
70
|
File must have .stx extension: ${x}`),w.exit(1)}let k=$.resolve(b.pages),j=$.resolve(b.out);if(!x&&!L.existsSync(k))console.error(`
|
|
71
71
|
Pages directory not found: ${k}`),console.log(`
|
|
72
|
-
Create a 'pages' directory with .stx files, or use --pages to specify a different directory.`),w.exit(1);let{buildApp:W}=await import("./chunk-
|
|
72
|
+
Create a 'pages' directory with .stx files, or use --pages to specify a different directory.`),w.exit(1);let{buildApp:W}=await import("./chunk-m4q3nsch.js");c();let H=await W({root:x?$.dirname(x):void 0,debug:b.verbose,ssg:{pagesDir:b.pages,outputDir:b.out,domain:b.domain,baseUrl:b.base,sitemap:b.sitemap,rss:b.rss,minify:b.minify,cache:b.cache!==!1,cleanOutput:b.clean,concurrency:Number.parseInt(b.concurrency,10)||10,publicDir:b.public,trailingSlash:b.trailingSlash,generate404:!0,hooks:b.verbose?{onPageStart:(Y)=>console.log(` Generating: ${Y}`),onPageEnd:(Y,Q)=>console.log(` Generated: ${Y} (${Q.length} bytes)`),onError:(Y,Q)=>console.error(` Error in ${Q}: ${Y.message}`)}:void 0},ssr:{outputDir:b.out==="dist"?".output":b.out,debug:b.verbose}}),U=((performance.now()-z)/1000).toFixed(2);if(H.mode==="ssr"&&H.ssr)console.log(`
|
|
73
73
|
Build complete! (SSR)
|
|
74
74
|
`),console.log(` Pages compiled: ${H.ssr.pageCount}`),console.log(` Output: ${H.ssr.outputDir}`),console.log(` Duration: ${U}s
|
|
75
75
|
`);else if(H.ssg){if(console.log(`
|
|
@@ -84,7 +84,7 @@ Total: ${H} issues in ${W} files`),b.output){let U=`
|
|
|
84
84
|
Build completed with ${H.ssg.failedCount} error(s). Fix the issues above and try again.
|
|
85
85
|
`),w.exit(1);console.log(" To preview locally:"),console.log(` cd ${b.out||"dist"} && npx serve
|
|
86
86
|
`)}}catch(z){console.error(`
|
|
87
|
-
Build failed:`,z instanceof Error?z.message:String(z)),w.exit(1)}}),E.command("start","Start the production server (serves pre-built .output/)").option("--port <number>","Server port",{default:"3000"}).option("--output <dir>","Output directory from stx build",{default:".output"}).example("stx start").example("stx start --port 8080").action(async(x)=>{try{let b=$.resolve(x.output);if(!L.existsSync($.join(b,"manifest.json")))console.error("\n No production build found. Run `stx build --out .output` first.\n"),w.exit(1);let{startProductionServer:z}=await import("./chunk-
|
|
87
|
+
Build failed:`,z instanceof Error?z.message:String(z)),w.exit(1)}}),E.command("start","Start the production server (serves pre-built .output/)").option("--port <number>","Server port",{default:"3000"}).option("--output <dir>","Output directory from stx build",{default:".output"}).example("stx start").example("stx start --port 8080").action(async(x)=>{try{let b=$.resolve(x.output);if(!L.existsSync($.join(b,"manifest.json")))console.error("\n No production build found. Run `stx build --out .output` first.\n"),w.exit(1);let{startProductionServer:z}=await import("./chunk-yc3x3rmf.js");await z({outputDir:b,port:Number.parseInt(x.port,10)||3000})}catch(b){console.error(`
|
|
88
88
|
Failed to start production server:`,b instanceof Error?b.message:String(b)),w.exit(1)}}),E.command("deploy [directory]","Deploy built site to Netlify").option("--site-id <id>","Netlify site ID (or set NETLIFY_SITE_ID env var)").option("--token <token>","Auth token (or set NETLIFY_AUTH_TOKEN env var)").option("--production","Deploy to production (default: draft preview)").option("--message <msg>","Deploy message/title").option("--no-build","Skip build step before deploy").option("--open","Open deployed URL in browser").option("--dry-run","Preview deployment without uploading").option("--init","Initialize Netlify configuration for this project").example("stx deploy").example("stx deploy --production").example("stx deploy dist --site-id my-site-abc123").example("stx deploy --init").example("stx deploy --dry-run").action(async(x,b)=>{try{let{deploy:z,initNetlify:k,DeployError:j}=await import("./chunk-r1d9x0dy.js");if(console.log(`\x1B[1mstx deploy\x1B[0m \x1B[2mv${N}\x1B[0m`),b.init){console.log(`
|
|
89
89
|
\uD83D\uDCDD Initializing Netlify configuration...
|
|
90
90
|
`);let H=await k({directory:x||w.cwd(),siteId:b.siteId});if(console.log(`\u2713 Created ${H.configPath}`),H.siteId)console.log("\u2713 Saved site ID to .env.local");console.log(`
|
|
@@ -124,7 +124,7 @@ To view it in the development server:`),console.log(` stx dev ${x}
|
|
|
124
124
|
\uD83D\uDCDD ${$.relative(w.cwd(),Q)}:`),console.log("--- Original"),console.log("+++ Formatted"),console.log(`@@ Changes in ${$.basename(Q)} @@`),console.log("+ Formatted content would be applied");else await Bun.write(Q,q),console.log(`\u2705 Formatted ${$.relative(w.cwd(),Q)}`),U++}catch(X){console.error(`\u274C Error formatting ${$.relative(w.cwd(),Q)}:`,X),Y++}if(b.check&&Y>0)console.log(`
|
|
125
125
|
${Y} files need formatting. Run 'stx format' to fix.`),w.exit(1);else if(!b.check&&!b.diff)console.log(`\u2728 Formatted ${U} files successfully`)}catch(z){console.error("Error formatting files:",z),w.exit(1)}}),E.command("perf [command...]","Show performance statistics for STX operations").option("--clear","Clear performance statistics").option("--json","Output as JSON").example("stx perf").example("stx perf --clear").example("stx perf --json").action(async(x,b)=>{try{if(b.clear){A.clear(),console.log("\u2705 Performance statistics cleared");return}let z=A.getStats();if(Object.keys(z).length===0){if(b.json){console.log(JSON.stringify({},null,2));return}console.log("No performance data available. Run some STX commands first.");return}if(b.json)console.log(JSON.stringify(z,null,2));else{console.log(`
|
|
126
126
|
\uD83D\uDCCA STX Performance Statistics
|
|
127
|
-
`);for(let[k,j]of Object.entries(z))console.log(`\uD83D\uDD27 ${k}:`),console.log(` Count: ${j.count}`),console.log(` Average: ${j.avgTime.toFixed(2)}ms`),console.log(` Total: ${j.totalTime.toFixed(2)}ms`),console.log(` Min: ${j.minTime.toFixed(2)}ms`),console.log(` Max: ${j.maxTime.toFixed(2)}ms`),console.log("")}}catch(z){console.error("Error showing performance stats:",z),w.exit(1)}}),E.command("typecheck [patterns...]","Type-check the TypeScript inside .stx script blocks").option("--no-client","Skip <script client> and bare <script> blocks").option("--no-server","Skip <script server> blocks").option("--no-templates","Skip {{ }} and directive expressions in the markup").option("--lib <path>","Extra ambient declaration file (repeatable)").example("stx typecheck").example('stx typecheck "resources/views/**/*.stx"').action(async(x,b)=>{let{formatTypecheckDiagnostics:z,typecheckStxFiles:k}=await import("./chunk-
|
|
127
|
+
`);for(let[k,j]of Object.entries(z))console.log(`\uD83D\uDD27 ${k}:`),console.log(` Count: ${j.count}`),console.log(` Average: ${j.avgTime.toFixed(2)}ms`),console.log(` Total: ${j.totalTime.toFixed(2)}ms`),console.log(` Min: ${j.minTime.toFixed(2)}ms`),console.log(` Max: ${j.maxTime.toFixed(2)}ms`),console.log("")}}catch(z){console.error("Error showing performance stats:",z),w.exit(1)}}),E.command("typecheck [patterns...]","Type-check the TypeScript inside .stx script blocks").option("--no-client","Skip <script client> and bare <script> blocks").option("--no-server","Skip <script server> blocks").option("--no-templates","Skip {{ }} and directive expressions in the markup").option("--lib <path>","Extra ambient declaration file (repeatable)").example("stx typecheck").example('stx typecheck "resources/views/**/*.stx"').action(async(x,b)=>{let{formatTypecheckDiagnostics:z,typecheckStxFiles:k}=await import("./chunk-zm92mg10.js"),{resolveStxTargets:j}=await import("./chunk-7vnkqnyh.js"),W=Array.isArray(x)?x:x?[x]:[],H=W.length?W:["**/*.stx"],U=await j(H);if(U.length===0){console.log(`
|
|
128
128
|
No .stx files matched ${H.join(", ")}
|
|
129
129
|
`);return}let Y=m(w.argv,"--lib"),Q=Y.length>0?Y:b.lib?Array.isArray(b.lib)?b.lib:[b.lib]:[],X=await k(U,{client:b.client!==!1,server:b.server!==!1,templates:b.templates!==!1,extraLibs:Q});if(X.failure)console.error(`
|
|
130
130
|
Type-check did not run.
|
|
@@ -136,7 +136,7 @@ ${Y} files need formatting. Run 'stx format' to fix.`),w.exit(1);else if(!b.chec
|
|
|
136
136
|
${z(X.diagnostics)}
|
|
137
137
|
`);if(console.log(` Checked ${X.blockCount} script block(s) and ${X.expressionCount} template expression(s) in ${X.checkedFiles.length} file(s) \u2014 `+`${_.length} error(s), ${X.diagnostics.length-_.length} warning(s)
|
|
138
138
|
`),_.length>0)w.exit(1)}),E.command("codemod [patterns...]","Find hand-rolled code that an stx primitive already covers").option("--fix","Write the safe rewrites (default is report-only)").option("--rule <rule>","Run one rule only: confirm | tooltip (rewritable) \xB7 alert | route-params | search-params | navigate | "+"fetch | polling | debounce | click-outside | focus | clipboard | watch (report-only)").example("stx codemod").example("stx codemod --rule route-params").example('stx codemod --fix "resources/views/**/*.stx"').action(async(x,b)=>{let{codemodSource:z,formatCodemodFindings:k}=await import("./chunk-76q768gt.js"),j=globalThis.Bun.Glob,W=Array.isArray(x)?x:x?[x]:[],H=W.length?W:["**/*.stx","**/*.ts"],U=b.rule?[b.rule]:void 0;if(b.rule&&b.rule!=="confirm"&&b.rule!=="tooltip")console.error(`Unknown rule "${b.rule}". Expected: confirm | tooltip`),w.exit(1);let Y=new Set,Q=[],X=0,_=new Set;try{let q=Bun.spawnSync(["git","ls-files","--others","--ignored","--exclude-standard","-z"],{cwd:w.cwd(),stdout:"pipe",stderr:"pipe"});for(let O of new TextDecoder().decode(q.stdout).split("\x00"))if(O)_.add($.resolve(w.cwd(),O))}catch{}for(let q of H)for await(let O of new j(q).scan({cwd:w.cwd(),absolute:!0})){if(O.includes("/node_modules/")||O.includes("/dist/")||Y.has(O)||_.has(O))continue;Y.add(O);let M=await Bun.file(O).text(),G=z(M,{file:O,rules:U});if(Q.push(...G.findings),b.fix&&G.code!==M)await Bun.write(O,G.code),X++}if(console.error(k(Q,Boolean(b.fix))),b.fix)console.error(`
|
|
139
|
-
${X} file(s) written.`)}),E.command("doctor","Diagnose the stx framework-runtime resolution + staleness chain").option("--json","Output the report as JSON").example("stx doctor").example("stx doctor --json").action(async(x)=>{try{let b;try{b=(await import("./chunk-
|
|
139
|
+
${X} file(s) written.`)}),E.command("doctor","Diagnose the stx framework-runtime resolution + staleness chain").option("--json","Output the report as JSON").example("stx doctor").example("stx doctor --json").action(async(x)=>{try{let b;try{b=(await import("./chunk-1bvm3byf.js")).generateSignalsRuntime}catch{b=void 0}let z=await s({generateRuntime:b});if(x.json)console.log(JSON.stringify(z,null,2));else console.log(t(z));if(!z.ok)w.exit(1)}catch(b){console.error("Error running doctor:",b),w.exit(1)}}),E.command("debug <file>","Debug STX template processing step by step").option("--step","Step through processing stages interactively").option("--verbose","Show detailed processing information").option("--context <data>","JSON string of context data to use").option("--save-report <file>","Save debug report to file").example("stx debug template.stx").example("stx debug template.stx --step").example(`stx debug template.stx --context '{"name": "John", "items": [1,2,3]}'`).action(async(x,b)=>{try{let z=d(x);if(!z.isValid)S(z);console.log(`\uD83D\uDD0D Debugging stx template: ${x}
|
|
140
140
|
`);let k={};if(b.context)try{k=JSON.parse(b.context)}catch(H){console.error("\u274C Invalid JSON in --context option"),w.exit(1)}let j=await Bun.file(x).text();console.log(`\uD83D\uDCC4 Template Content (${j.length} chars):`),console.log("\u2500".repeat(50)),console.log(j.substring(0,500)+(j.length>500?`
|
|
141
141
|
...
|
|
142
142
|
`:"")),console.log("\u2500".repeat(50));let W=j.match(/<script\b[^>]*>([\s\S]*?)<\/script>/i);if(W)console.log(`
|
|
@@ -160,11 +160,11 @@ Press Ctrl+C to stop watching...
|
|
|
160
160
|
\uD83D\uDCC4 Files with issues:`),Y.forEach((Q)=>{let X=Q.issues.filter((_)=>j[_.type]>=W).length;if(X>0)console.log(` ${$.relative(w.cwd(),Q.file)} (${X} issues)`)});if(b.saveReport){let Q={summary:U,results:Y,generatedAt:new Date().toISOString(),commandOptions:b};await Bun.write(b.saveReport,JSON.stringify(Q,null,2)),console.log(`
|
|
161
161
|
\uD83D\uDCCB Analysis report saved to: ${b.saveReport}`)}console.log(`
|
|
162
162
|
\u2728 Analysis complete! Use --detailed for more information.`)}catch(z){console.error("Error analyzing templates:",z),w.exit(1)}}),E.command("screenshot [input]","Capture PNG screenshot(s) of page(s) via Bun WebView \u2014 a file, URL, or dist directory").option("--out <dir>","Output directory",{default:"screenshots"}).option("--width <px>","Viewport width",{default:"1440"}).option("--height <px>","Viewport height",{default:"2200"}).option("--wait <ms>","Settle time after navigation before capture",{default:"800"}).option("--timeout <ms>","Hard cap on waiting for navigation",{default:"15000"}).option("--full-page","Capture the entire scrollable page, not just the viewport").option("--wait-selector <sel>","Wait until a CSS selector exists before capturing").option("--format <fmt>","Image format: png | jpeg | webp",{default:"png"}).option("--backend <name>","WebView backend: webkit (macOS, default) | chrome").action(async(x,b)=>{let{captureScreenshots:z}=await import("./chunk-w4nmvn5v.js"),k=x||"dist";try{let j=await z(k,b.out,{width:Number.parseInt(b.width,10),height:Number.parseInt(b.height,10),waitMs:Number.parseInt(b.wait,10),timeoutMs:Number.parseInt(b.timeout,10),fullPage:Boolean(b.fullPage),waitSelector:b.waitSelector,format:b.format,backend:b.backend});for(let W of j)console.log(`\uD83D\uDCF8 ${W.output} (${(W.bytes/1024).toFixed(0)} KB)`);console.log(`
|
|
163
|
-
\u2728 Captured ${j.length} screenshot(s) to ${b.out}/ via Bun WebView`)}catch(j){console.error(`Screenshot failed: ${j.message}`),w.exit(1)}}),E.command("version","Show the version of the CLI").action(()=>{console.log(N)}),E.command("interactive","Start interactive REPL mode for template development").alias("i").option("--context <file>","Load initial context from JSON file").option("--cwd <directory>","Set working directory").option("--verbose","Show verbose output").action(async(x)=>{let{startInteractive:b}=await import("./chunk-
|
|
163
|
+
\u2728 Captured ${j.length} screenshot(s) to ${b.out}/ via Bun WebView`)}catch(j){console.error(`Screenshot failed: ${j.message}`),w.exit(1)}}),E.command("version","Show the version of the CLI").action(()=>{console.log(N)}),E.command("interactive","Start interactive REPL mode for template development").alias("i").option("--context <file>","Load initial context from JSON file").option("--cwd <directory>","Set working directory").option("--verbose","Show verbose output").action(async(x)=>{let{startInteractive:b}=await import("./chunk-vd7thynz.js"),z={};if(x.context){let k=$.resolve(x.context);if(L.existsSync(k))try{let j=L.readFileSync(k,"utf-8");z=JSON.parse(j)}catch(j){console.error("Error loading context file:",j),w.exit(1)}else console.error(`Context file not found: ${k}`),w.exit(1)}await b({context:z,cwd:x.cwd?$.resolve(x.cwd):w.cwd(),verbose:x.verbose})}),E.command("build:native <input>","Build stx template into a native desktop/mobile app").option("--output <dir>","Output directory",{default:"dist/native"}).option("--target <platform>","Target platform: macos, windows, linux, ios, android").option("--format <format>","Output format: app, dmg, pkg, msi, zip, deb, rpm, appimage, ipa, apk").option("--name <name>","Application name (defaults to filename)").option("--version <version>","Application version",{default:"1.0.0"}).option("--description <desc>","Application description").option("--author <author>","Author/Maintainer name").option("--bundle-id <id>","Bundle identifier (macOS/iOS)").option("--icon <path>","Path to application icon").option("--width <width>","Window width",{default:"1200"}).option("--height <height>","Window height",{default:"800"}).option("--title <title>","Window title").option("--system-tray","Enable system tray/menubar mode").option("--menubar-only","Run without a dock icon (implied by --system-tray)").option("--category <type>","LSApplicationCategoryType (macOS)").option("--copyright <text>","NSHumanReadableCopyright (macOS)").option("--min-system-version <v>","LSMinimumSystemVersion (macOS)").option("--info-plist <json>","Extra Info.plist keys as a JSON object (macOS)").option("--dev-tools","Enable developer tools").option("--frameless","Create frameless window").option("--always-on-top","Keep window always on top").option("--craft-path <path>","Path to Craft binary").option("--verbose","Show verbose output").example("stx build:native app.stx --target macos").example("stx build:native app.stx --target macos --format dmg").example("stx build:native app.stx --target linux --format appimage").example('stx build:native app.stx --name "My App" --icon icon.png').action(async(x,b)=>{try{let{buildNative:z,getAvailableTargets:k,getAvailableFormats:j}=await import("./chunk-2t41acdt.js"),W=$.resolve(x);if(!L.existsSync(W))console.error(`\u274C Input file not found: ${x}`),w.exit(1);let H=k();if(b.target&&!["macos","windows","linux","ios","android"].includes(b.target))console.error(`\u274C Invalid target: ${b.target}`),console.error("\uD83D\uDCA1 Available targets: macos, windows, linux, ios, android"),console.error(`\uD83D\uDCA1 Targets available on this machine: ${H.join(", ")}`),w.exit(1);let U=b.target||H[0],Y=j(U);if(b.format&&!Y.includes(b.format))console.error(`\u274C Invalid format for ${U}: ${b.format}`),console.error(`\uD83D\uDCA1 Available formats: ${Y.join(", ")}`),w.exit(1);console.log(`
|
|
164
164
|
\uD83D\uDD28 Building native app...`),console.log(` Input: ${x}`),console.log(` Target: ${U}`),console.log(` Format: ${b.format||"default"}`),console.log(` Output: ${b.output}
|
|
165
165
|
`);let Q=await z({input:W,output:$.resolve(b.output),target:U,format:b.format,name:b.name,version:b.version,description:b.description,author:b.author,bundleId:b.bundleId,icon:b.icon?$.resolve(b.icon):void 0,window:{title:b.title,width:Number.parseInt(b.width,10),height:Number.parseInt(b.height,10),frameless:b.frameless,alwaysOnTop:b.alwaysOnTop},systemTray:b.systemTray,menubarOnly:b.menubarOnly,category:b.category,copyright:b.copyright,minimumSystemVersion:b.minSystemVersion,infoPlist:kb(b.infoPlist),devTools:b.devTools,craftPath:b.craftPath,verbose:b.verbose});if(Q.success){if(console.log("\u2705 Build successful!"),console.log(` Output: ${Q.outputPath}`),Q.duration)console.log(` Duration: ${(Q.duration/1000).toFixed(2)}s`);if(U==="macos"&&Q.format==="app")console.log(`
|
|
166
166
|
\uD83D\uDCA1 To run: open "${Q.outputPath}"`);else if(U==="linux"&&Q.format==="appimage")console.log(`
|
|
167
|
-
\uD83D\uDCA1 To run: chmod +x "${Q.outputPath}" && "${Q.outputPath}"`)}else console.error(`\u274C Build failed: ${Q.error}`),w.exit(1)}catch(z){console.error(`\u274C Build error: ${z.message}`),w.exit(1)}}),E.command("story","Start component showcase and testing server").option("-p, --port <port>","Server port",{default:"6006"}).option("-o, --open","Open browser automatically",{default:!1}).option("--host <host>","Host to bind to",{default:"localhost"}).example("stx story").example("stx story --port 3000 --open").action(async(x)=>{try{let{devCommand:b}=await import("./chunk-
|
|
167
|
+
\uD83D\uDCA1 To run: chmod +x "${Q.outputPath}" && "${Q.outputPath}"`)}else console.error(`\u274C Build failed: ${Q.error}`),w.exit(1)}catch(z){console.error(`\u274C Build error: ${z.message}`),w.exit(1)}}),E.command("story","Start component showcase and testing server").option("-p, --port <port>","Server port",{default:"6006"}).option("-o, --open","Open browser automatically",{default:!1}).option("--host <host>","Host to bind to",{default:"localhost"}).example("stx story").example("stx story --port 3000 --open").action(async(x)=>{try{let{devCommand:b}=await import("./chunk-h4nydbnx.js");await b({port:x.port?Number.parseInt(x.port,10):6006,open:x.open,host:x.host})}catch(b){console.error(`\u274C Story error: ${b.message}`),w.exit(1)}}),E.command("story:build","Build static story site").option("-o, --outDir <dir>","Output directory",{default:".stx/dist/story"}).example("stx story:build").example("stx story:build --outDir ./docs/components").action(async(x)=>{try{let{buildCommand:b}=await import("./chunk-zh3q10wd.js");await b({outDir:x.outDir})}catch(b){console.error(`\u274C Story build error: ${b.message}`),w.exit(1)}}),E.command("story:test","Run visual regression tests").option("-u, --update","Update snapshots",{default:!1}).option("-f, --filter <name>","Filter components by name").example("stx story:test").example("stx story:test --update").example("stx story:test --filter Button").action(async(x)=>{try{let{createContext:b}=await import("./chunk-8qzc5n61.js"),{runVisualTests:z,updateSnapshots:k,formatTestResults:j}=await import("./chunk-h01bbt3r.js"),W=await b({mode:"build"});if(x.update){let H=await k(W,{filter:x.filter?[x.filter]:void 0});console.log(`Updated ${H} snapshots`)}else{let H=await z(W,{filter:x.filter?[x.filter]:void 0});if(console.log(j(H)),H.failed>0)w.exit(1)}}catch(b){console.error(`\u274C Story test error: ${b.message}`),w.exit(1)}}),E.command("compile <input>","Compile stx template to native Craft component code").option("--target <platform>","Target platform: macos, windows, linux, ios, android, universal",{default:"universal"}).option("--format <format>","Output format: zig, typescript, json",{default:"zig"}).option("--output <path>","Output directory for compiled files",{default:"./dist"}).option("--optimize","Enable optimizations",{default:!0}).option("--tree-shake","Enable tree shaking",{default:!0}).option("--hot-reload","Enable hot reload support",{default:!1}).option("--sourcemaps","Generate source maps",{default:!1}).option("--bundle","Bundle all dependencies",{default:!0}).option("--minify","Minify output",{default:!1}).option("--verbose","Show detailed output",{default:!1}).example("stx compile app.stx").example("stx compile app.stx --target macos --format zig").example("stx compile app.stx --format typescript --output ./native").example("stx compile app.stx --optimize --tree-shake --minify").action(async(x,b)=>{try{let{compileToNative:z}=await import("./chunk-ar5stjnb.js"),k=$.resolve(x);if(!L.existsSync(k))console.error(`\u274C Input file not found: ${x}`),w.exit(1);let j=["macos","windows","linux","ios","android","universal"];if(!j.includes(b.target))console.error(`\u274C Invalid target: ${b.target}`),console.error(`\uD83D\uDCA1 Available targets: ${j.join(", ")}`),w.exit(1);let W=["zig","typescript","json"];if(!W.includes(b.format))console.error(`\u274C Invalid format: ${b.format}`),console.error(`\uD83D\uDCA1 Available formats: ${W.join(", ")}`),w.exit(1);console.log(`
|
|
168
168
|
\uD83D\uDD27 Compiling stx template to native code...`),console.log(` Input: ${x}`),console.log(` Target: ${b.target}`),console.log(` Format: ${b.format}`),console.log(` Output: ${b.output}
|
|
169
169
|
`);let H=L.readFileSync(k,"utf-8"),U=await z(H,{target:b.target,format:b.format,optimize:b.optimize,treeShake:b.treeShake,hotReload:b.hotReload,debug:b.verbose,sourceMaps:b.sourcemaps,bundle:b.bundle,minify:b.minify}),Y=$.resolve(b.output);if(!L.existsSync(Y))L.mkdirSync(Y,{recursive:!0});let Q=$.basename(x,$.extname(x)),X=b.format==="typescript"?"ts":b.format==="json"?"json":"zig",_=$.join(Y,`${Q}.${X}`);L.writeFileSync(_,U.code);let q=$.join(Y,`${Q}.manifest.json`);if(L.writeFileSync(q,JSON.stringify(U.manifest,null,2)),b.sourcemaps&&U.sourceMaps){let O=$.join(Y,`${Q}.${X}.map`);L.writeFileSync(O,U.sourceMaps)}if(b.target==="universal"&&U.platformCode.size>0)for(let[O,M]of U.platformCode){let G=$.join(Y,`${Q}.${O}.${X}`);L.writeFileSync(G,M)}if(console.log("\u2705 Compilation successful!"),console.log(` Output: ${_}`),console.log(` Manifest: ${q}`),console.log(`
|
|
170
170
|
\uD83D\uDCCA Statistics:`),console.log(` Compilation time: ${U.stats.compilationTime.toFixed(2)}ms`),console.log(` Total components: ${U.stats.totalComponents}`),console.log(` Native components: ${U.stats.nativeComponents}`),console.log(` Web fallback components: ${U.stats.webComponents}`),console.log(` Bundle size: ${(U.stats.bundleSize/1024).toFixed(2)}KB`),U.stats.warnings.length>0){console.log(`
|
package/dist/craft-entry.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{$j as Nj,ak as wj,bk as Aj}from"./chunk-m3s6kzxv.js";import{dk as Uj,ek as Xj,fk as Yj,gk as Zj,hk as _j,ik as $j,jk as qj,kk as Fj,lk as Oj,mk as Vj,nk as Ij,ok as Qj,pk as Wj,qk as Kj}from"./chunk-
|
|
2
|
+
import{$j as Nj,ak as wj,bk as Aj}from"./chunk-m3s6kzxv.js";import{dk as Uj,ek as Xj,fk as Yj,gk as Zj,hk as _j,ik as $j,jk as qj,kk as Fj,lk as Oj,mk as Vj,nk as Ij,ok as Qj,pk as Wj,qk as Kj}from"./chunk-rswsrggp.js";import"./chunk-rem5ne21.js";import"./chunk-6am7e1be.js";import"./chunk-4cv7bw5e.js";import"./chunk-7tgjn256.js";import"./chunk-h8zp2fz9.js";import"./chunk-ekvejzvk.js";import"./chunk-3769e62c.js";import"./chunk-wjzcggh6.js";import"./chunk-yj5gkn17.js";import"./chunk-cy8hgd86.js";import"./chunk-74ebps1a.js";import"./chunk-g7qmxjyc.js";import"./chunk-88tt0qg0.js";import"./chunk-e1rv01pn.js";import"./chunk-bdz7nznw.js";import"./chunk-rwtj7j0r.js";import"./chunk-eqhsprr0.js";import"./chunk-csgshaeh.js";import"./chunk-d0qy1ezf.js";import"./chunk-c9kj8p6j.js";import"./chunk-x2wmn8m7.js";import"./chunk-rxz43r6k.js";var I=new Map,Q=new Map;function L(j,B){let G=B?.id||g(j),J=h(j),U=I.get(G);if(U&&U.hash===J)return U;let X=S(j),Z=y(j),Y=T(j),_=v(X),{staticParts:q,dynamicParts:$}=C(X),F=u(j),O={id:G,hash:J,tree:X,scripts:Z,styles:Y,staticParts:q,dynamicParts:$,dependencies:F,metadata:_};return I.set(G,O),O}async function r(j,B={},G={}){let J=performance.now();if(G.cache){let Y=`${j.id}:${JSON.stringify(B)}`,_=Q.get(Y);if(_&&Date.now()-_.timestamp<(G.cacheTTL||60000))return{html:_.html,styles:j.styles.join(`
|
|
3
3
|
`),scripts:j.scripts.join(`
|
|
4
4
|
`),metadata:{renderTime:0,cacheHit:!0,totalSize:_.html.length,componentCount:j.metadata.componentCount}}}let U;if(G.streaming)U=await H(j.tree,B);else U=W(j.tree,B);let X;if(G.hydrate){let Y=k(U,j,B);U=Y.html,X=Y.data}if(G.minify)U=x(U);if(G.cache){let Y=`${j.id}:${JSON.stringify(B)}`;Q.set(Y,{html:U,timestamp:Date.now()})}let Z=performance.now()-J;return{html:U,styles:j.styles.join(`
|
|
5
5
|
`),scripts:j.scripts.join(`
|
package/dist/craft.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{$j as Nj,ak as wj,bk as Aj}from"./chunk-m3s6kzxv.js";import{dk as Uj,ek as Xj,fk as Yj,gk as Zj,hk as _j,ik as $j,jk as qj,kk as Fj,lk as Oj,mk as Vj,nk as Ij,ok as Qj,pk as Wj,qk as Kj}from"./chunk-
|
|
2
|
+
import{$j as Nj,ak as wj,bk as Aj}from"./chunk-m3s6kzxv.js";import{dk as Uj,ek as Xj,fk as Yj,gk as Zj,hk as _j,ik as $j,jk as qj,kk as Fj,lk as Oj,mk as Vj,nk as Ij,ok as Qj,pk as Wj,qk as Kj}from"./chunk-rswsrggp.js";import"./chunk-rem5ne21.js";import"./chunk-6am7e1be.js";import"./chunk-4cv7bw5e.js";import"./chunk-7tgjn256.js";import"./chunk-h8zp2fz9.js";import"./chunk-ekvejzvk.js";import"./chunk-3769e62c.js";import"./chunk-wjzcggh6.js";import"./chunk-yj5gkn17.js";import"./chunk-cy8hgd86.js";import"./chunk-74ebps1a.js";import"./chunk-g7qmxjyc.js";import"./chunk-88tt0qg0.js";import"./chunk-e1rv01pn.js";import"./chunk-bdz7nznw.js";import"./chunk-rwtj7j0r.js";import"./chunk-eqhsprr0.js";import"./chunk-csgshaeh.js";import"./chunk-d0qy1ezf.js";import"./chunk-c9kj8p6j.js";import"./chunk-x2wmn8m7.js";import"./chunk-rxz43r6k.js";var I=new Map,Q=new Map;function L(j,B){let G=B?.id||g(j),J=h(j),U=I.get(G);if(U&&U.hash===J)return U;let X=S(j),Z=y(j),Y=T(j),_=v(X),{staticParts:q,dynamicParts:$}=C(X),F=u(j),O={id:G,hash:J,tree:X,scripts:Z,styles:Y,staticParts:q,dynamicParts:$,dependencies:F,metadata:_};return I.set(G,O),O}async function r(j,B={},G={}){let J=performance.now();if(G.cache){let Y=`${j.id}:${JSON.stringify(B)}`,_=Q.get(Y);if(_&&Date.now()-_.timestamp<(G.cacheTTL||60000))return{html:_.html,styles:j.styles.join(`
|
|
3
3
|
`),scripts:j.scripts.join(`
|
|
4
4
|
`),metadata:{renderTime:0,cacheHit:!0,totalSize:_.html.length,componentCount:j.metadata.componentCount}}}let U;if(G.streaming)U=await H(j.tree,B);else U=W(j.tree,B);let X;if(G.hydrate){let Y=k(U,j,B);U=Y.html,X=Y.data}if(G.minify)U=x(U);if(G.cache){let Y=`${j.id}:${JSON.stringify(B)}`;Q.set(Y,{html:U,timestamp:Date.now()})}let Z=performance.now()-J;return{html:U,styles:j.styles.join(`
|
|
5
5
|
`),scripts:j.scripts.join(`
|