@stacksjs/stx 0.2.277 → 0.2.278
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-vq8tmyf0.js → chunk-083kj0ge.js} +1 -1
- package/dist/{chunk-89rx4w30.js → chunk-08a9bfpq.js} +1 -1
- package/dist/{chunk-gvqzd5zp.js → chunk-0m5vyswh.js} +1 -1
- package/dist/{chunk-gtdgwjck.js → chunk-1k3zp68a.js} +1 -1
- package/dist/{chunk-qmsrqmh0.js → chunk-1kgz9eet.js} +1 -1
- package/dist/{chunk-v6hbnwsr.js → chunk-1wbr71dj.js} +1 -1
- package/dist/{chunk-3yx0xdf3.js → chunk-2m8aq999.js} +1 -1
- package/dist/{chunk-f5xwj2jb.js → chunk-2r0sm7yh.js} +8 -8
- package/dist/{chunk-gfwqv3qk.js → chunk-2x85y8hb.js} +1 -1
- package/dist/{chunk-48jzersz.js → chunk-34d33f18.js} +1 -1
- package/dist/{chunk-10k12msb.js → chunk-3564b157.js} +1 -1
- package/dist/{chunk-38n3jrbp.js → chunk-3cqwrprg.js} +1 -1
- package/dist/{chunk-d59vkang.js → chunk-42mwkqa5.js} +1 -1
- package/dist/{chunk-kvb2055k.js → chunk-4afj0w1m.js} +1 -1
- package/dist/{chunk-b54q18k3.js → chunk-5q8yyck0.js} +1 -1
- package/dist/{chunk-havsy38b.js → chunk-8c18h010.js} +1 -1
- package/dist/{chunk-g8e4tf9g.js → chunk-9334fg4q.js} +1 -1
- package/dist/{chunk-mc91191e.js → chunk-9mjw29f1.js} +1 -1
- package/dist/{chunk-sd7ymv7h.js → chunk-abx8rmt4.js} +1 -1
- package/dist/{chunk-n14w9vek.js → chunk-aj9xtx4y.js} +2 -2
- package/dist/{chunk-9mkmrttg.js → chunk-an8s3rjv.js} +2 -2
- package/dist/{chunk-4jts2f6t.js → chunk-ashkqdsb.js} +1 -1
- package/dist/{chunk-nj8zaeww.js → chunk-b6txvycf.js} +1 -1
- package/dist/{chunk-66r6fvwj.js → chunk-c40n039h.js} +1 -1
- package/dist/{chunk-0s0zcpwy.js → chunk-cbaa2gpx.js} +1 -1
- package/dist/{chunk-y3hkmhd8.js → chunk-ddh7j0ed.js} +1 -1
- package/dist/{chunk-cdfq3xpd.js → chunk-dgtbkxfd.js} +1 -1
- package/dist/{chunk-jvyz1k0v.js → chunk-e3m5zefg.js} +1 -1
- package/dist/{chunk-cg973t74.js → chunk-eakr9att.js} +1 -1
- package/dist/{chunk-zrgctphh.js → chunk-ev7490c4.js} +1 -1
- package/dist/{chunk-6b8zq259.js → chunk-f0f8pne1.js} +1 -1
- package/dist/{chunk-6sxd0ksd.js → chunk-fg50mb11.js} +1 -1
- package/dist/{chunk-88pp8bf9.js → chunk-gyr2qp4d.js} +1 -1
- package/dist/{chunk-kcy3a8ax.js → chunk-jsnybr5z.js} +1 -1
- package/dist/{chunk-yar23fty.js → chunk-kr2q64k9.js} +1 -1
- package/dist/{chunk-cg1v99gm.js → chunk-q0ctxav6.js} +1 -1
- package/dist/{chunk-3kn8xkm8.js → chunk-q9y29cgw.js} +1 -1
- package/dist/{chunk-097mr013.js → chunk-qs1kypwa.js} +17 -17
- package/dist/{chunk-3587h1xp.js → chunk-rqx69p0n.js} +1 -1
- package/dist/{chunk-bxjb7nje.js → chunk-s0v2g53x.js} +1 -1
- package/dist/{chunk-38xvstdv.js → chunk-tjgyd8gt.js} +1 -1
- package/dist/{chunk-a0d90w21.js → chunk-wz87behc.js} +1 -1
- package/dist/{chunk-c77syzg1.js → chunk-y1637mma.js} +1 -1
- package/dist/{chunk-2bjdjnqf.js → chunk-zkbgy7kj.js} +15 -2
- package/dist/{chunk-x0hzx43q.js → chunk-zpne6q7q.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 +15 -2
- package/dist/ssg.js +2 -2
- package/package.json +5 -5
|
@@ -11,7 +11,7 @@ catch (e) {
|
|
|
11
11
|
}
|
|
12
12
|
throw e;
|
|
13
13
|
}
|
|
14
|
-
`),Z.set(X,V)}return V(...W)}catch{return}}};if(this.pool.length<this.maxPoolSize)this.pool.push({func:U,context:J.slice()});return U}clear(){this.pool.length=0,this.fnCache.clear()}}var pJ=new qJ;class UJ{metrics=new Map;budgets=new Map;violations=[];maxViolations=100;violationHandlers=[];enabled=!0;setEnabled(Q){this.enabled=Q}isEnabled(){return this.enabled}setBudget(Q,J){this.budgets.set(Q,{warnThreshold:0.8,action:"warn",...J})}setBudgets(Q){for(let[J,Y]of Object.entries(Q))this.setBudget(J,Y)}removeBudget(Q){this.budgets.delete(Q)}getBudgets(){let Q={};for(let[J,Y]of this.budgets.entries())Q[J]=Y;return Q}onViolation(Q){this.violationHandlers.push(Q)}offViolation(Q){let J=this.violationHandlers.indexOf(Q);if(J!==-1)this.violationHandlers.splice(J,1)}time(Q,J){if(!this.enabled)return J();let Y=performance.now(),$=J(),Z=performance.now()-Y;return this.recordTime(Q,Z),this.checkBudget(Q,Z),$}async timeAsync(Q,J){if(!this.enabled)return J();let Y=performance.now(),$=await J(),Z=performance.now()-Y;return this.recordTime(Q,Z),this.checkBudget(Q,Z),$}checkBudget(Q,J){let Y=this.budgets.get(Q);if(!Y)return;let $=J/Y.maxTime*100,Z=Y.warnThreshold!==void 0?J>=Y.maxTime*Y.warnThreshold&&J<Y.maxTime:!1,q=J>=Y.maxTime;if(!Z&&!q)return;let U={label:Q,actualTime:J,budgetTime:Y.maxTime,exceedancePercent:$,timestamp:new Date,isWarning:Z};this.violations.push(U);while(this.violations.length>this.maxViolations)this.violations.shift();for(let G of this.violationHandlers)try{G(U)}catch{}let W=Z?`[Performance Warning] "${Q}" took ${J.toFixed(2)}ms (${$.toFixed(1)}% of ${Y.maxTime}ms budget)`:`[Performance Budget Exceeded] "${Q}" took ${J.toFixed(2)}ms (exceeded ${Y.maxTime}ms budget by ${($-100).toFixed(1)}%)`;switch(Y.action){case"log":console.log(W);break;case"warn":console.warn(W);break;case"error":console.error(W);break;case"throw":if(q)throw Error(W);else console.warn(W);break}}recordTime(Q,J){let Y=this.metrics.get(Q);if(Y)Y.count++,Y.totalTime+=J,Y.maxTime=Math.max(Y.maxTime,J),Y.minTime=Math.min(Y.minTime,J);else this.metrics.set(Q,{count:1,totalTime:J,maxTime:J,minTime:J})}getStats(Q){if(Q){let Y=this.metrics.get(Q);if(!Y)return{};let $=this.budgets.get(Q);return{count:Y.count,avgTime:Y.totalTime/Y.count,totalTime:Y.totalTime,maxTime:Y.maxTime,minTime:Y.minTime,budget:$?.maxTime,budgetUtilization:$?Y.totalTime/Y.count/$.maxTime*100:void 0}}let J={};for(let[Y,$]of this.metrics.entries()){let Z=this.budgets.get(Y);J[Y]={count:$.count,avgTime:$.totalTime/$.count,totalTime:$.totalTime,maxTime:$.maxTime,minTime:$.minTime,budget:Z?.maxTime,budgetUtilization:Z?$.totalTime/$.count/Z.maxTime*100:void 0}}return J}getViolations(Q){if(Q)return this.violations.filter((J)=>J.label===Q);return[...this.violations]}getViolationStats(){let Q={},J=0,Y=0;for(let $ of this.violations)if(Q[$.label]=(Q[$.label]||0)+1,$.isWarning)J++;else Y++;return{total:this.violations.length,byLabel:Q,warnings:J,errors:Y}}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 h=null;function zJ(){if(!h)h=new UJ;return h}var gJ=new Proxy({},{get(Q,J){return zJ()[J]}});var WJ=[];function FJ(Q){let J=new c(Q);return WJ.push(J),J}function hJ(){for(let Q of WJ)Q.clear()}function i(Q,...J){return`${J.map((Y)=>String(Y??"")).join("\x00")}\x00${Q.length}\x00${Bun.hash(Q)}`}function cJ(Q){let J=[];for(let Y of new Set(Q))try{J.push({path:Y,mtimeMs:OJ.statSync(Y).mtimeMs})}catch{}return J}function iJ(Q){for(let J of Q)try{if(OJ.statSync(J.path).mtimeMs!==J.mtimeMs)return!1}catch{return!1}return!0}var L=null,n=!1,I=null,M="",K=!1,IJ=256,z=new Map,j=new Map,H=null,w=null;function x(Q){return Bun.hash(Q).toString(16).padStart(16,"0").slice(0,16)}function l(Q,J){if(z.has(Q))z.delete(Q);else if(z.size>=IJ)z.delete(z.keys().next().value);z.set(Q,J)}function HJ(Q){let J=x(Q);if(j.has(J))j.delete(J);else if(j.size>=IJ)j.delete(j.keys().next().value);return j.set(J,Q),J}function eJ(Q){let J=j.get(Q);if(J===void 0)return;return j.delete(Q),j.set(Q,J),J}async function TJ(Q){if(!H)return null;try{let J=Bun.file(O.join(H,`cw-${x(Q)}.css`));if(!await J.exists())return null;return await J.text()}catch{return null}}async function BJ(Q,J){if(!H)return;try{if(!fs.existsSync(H))fs.mkdirSync(H,{recursive:!0});await Bun.write(O.join(H,`cw-${x(Q)}.css`),J)}catch{}}async function GJ(Q){try{let J=await import(Q);if(J&&J.CSSGenerator)return{CSSGenerator:J.CSSGenerator,config:J.config,build:J.build,defaultConfig:J.defaultConfig,extractClasses:J.extractClasses}}catch{}return null}function KJ(){let Q=[],J=process.cwd();while(J!==O.dirname(J))Q.push(O.join(J,"node_modules","@cwcss","crosswind","dist","index.js")),Q.push(O.join(J,"node_modules","@cwcss","crosswind","src","index.ts")),Q.push(O.join(J,"pantry","@cwcss","crosswind","dist","index.js")),Q.push(O.join(J,"pantry","@cwcss","crosswind","src","index.ts")),Q.push(O.join(J,"node_modules","@stacksjs","crosswind","dist","index.js")),Q.push(O.join(J,"pantry","@stacksjs","crosswind","dist","index.js")),J=O.dirname(J);return Q}function RJ(){let Q=[],J=process.env.HOME||process.env.USERPROFILE||"";if(J){let Y=[O.join(J,"Code","Tools","crosswind","packages","crosswind","dist","index.js"),O.join(J,"Code","Tools","crosswind","packages","crosswind","src","index.ts"),O.join(J,"repos","stacks-org","crosswind","packages","crosswind","dist","index.js"),O.join(J,"repos","stacks-org","crosswind","packages","crosswind","src","index.ts"),O.join(J,"Code","Tools","stx","packages","stx","node_modules","@cwcss","crosswind","dist","index.js"),O.join(J,"Code","Tools","stx","packages","stx","node_modules","@stacksjs","crosswind","dist","index.js")];Q.push(...Y)}return Q.push(O.join(process.cwd(),"..","crosswind","packages","crosswind","dist","index.js")),Q.push(O.join(process.cwd(),"..","crosswind","packages","crosswind","src","index.ts")),Q}async function XJ(){if(n)return L;n=!0;try{let Q=async(Z)=>{for(let q of Z){if(!await Bun.file(q).exists())continue;let U=await GJ(q);if(U){if(!process.env.STACKS_DEV_QUIET)console.log(`${F.green}[Crosswind]${F.reset} CSS engine loaded from ${O.dirname(O.dirname(q))}`);return U}}return null};if(process.env.CROSSWIND_SRC){let Z=O.resolve(process.env.CROSSWIND_SRC),q=await Q([Z]);if(!q)throw Error(`CROSSWIND_SRC did not resolve to a Crosswind module: ${Z}`);return L=q,L}let J=await Q(KJ());if(J)return L=J,L;let Y=["@cwcss/crosswind","@cwcss/crosswind/dist/index.js","@stacksjs/crosswind","@stacksjs/crosswind/dist/index.js"];for(let Z of Y){let q=await GJ(Z);if(q){if(L=q,!process.env.STACKS_DEV_QUIET)console.log(`${F.green}[Crosswind]${F.reset} CSS engine loaded`);return L}}let $=await Q(RJ());if($)return L=$,L;throw Error("Crosswind CSSGenerator not found in any location")}catch{return console.warn(`${F.yellow}[Crosswind] CSS engine not available, Tailwind styles will not be generated${F.reset}`),console.warn(`${F.yellow}Run 'bun add @stacksjs/crosswind' to enable CSS generation${F.reset}`),null}}function JQ(){k.clear(),z.clear(),j.clear()}function QQ(){k.clear(),L=null,n=!1,I=null,M="",z.clear(),j.clear(),w=null}async function VJ(Q){try{if(!AJ({name:"crosswind",cwd:Q}))return null;let{loadConfigWithResult:J}=await import("bunfig"),Y=await J({name:"crosswind",cwd:Q,defaultConfig:{},checkEnv:!1,verbose:!1});if(!Y?.path||!Y.config||Object.keys(Y.config).length===0)return null;let $=O.relative(Q,Y.path);if(!process.env.STACKS_DEV_QUIET)console.log(`${F.green}[Crosswind]${F.reset} Loaded config from ${$||Y.path}`);return Y.config}catch(J){if(J instanceof Error&&J.name==="ConfigNotFoundError")return null;return console.warn(`${F.yellow}[Crosswind]${F.reset} Failed to load crosswind config:`,J instanceof Error?J.message:J),null}}async function PJ(Q){let J=null;try{let{loadStxConfig:Y}=await import("./chunk-cdfq3xpd.js"),$=await Y(Q);if($.css)if(typeof $.css==="string"){let Z=O.isAbsolute($.css)?$.css:O.resolve(Q,$.css);if(await Bun.file(Z).exists()){let q=await import(Z);J=q.default||q,console.log(`${F.green}[Crosswind]${F.reset} Loaded config from stx.config.ts \u2192 ${$.css}`)}}else{if(J={...$.css,content:$.css.content||[],preflight:$.css.preflight??!0,minify:$.css.minify??!1},$.css.config){let Z=O.isAbsolute($.css.config)?$.css.config:O.resolve(Q,$.css.config);if(await Bun.file(Z).exists()){let q=await import(Z);J={...q.default||q,...J}}}console.log(`${F.green}[Crosswind]${F.reset} Using inline CSS config from stx.config.ts`)}}catch{}return J||await VJ(Q)}function EJ(Q){try{let J=new WeakSet;return x(JSON.stringify(Q??{},(Y,$)=>{if(typeof $==="function")return`[fn]${String($)}`;if(typeof $==="object"&&$!==null){if(J.has($))return"[circular]";J.add($)}return $})??"")}catch{return"unhashable"}}async function DJ(Q){if(K)return M;K=!0;try{let J=await XJ();if(!J||!J.build)return K=!1,"";if(!I)I=await VJ(Q);if(!I)return K=!1,"";let Y=J.defaultConfig?.theme||{},$=I.theme||{},Z={...J.defaultConfig,...I,theme:{...Y,...$,extend:{...Y.extend||{},...$.extend||{}}}},q=performance.now(),U=await J.build(Z),W=performance.now()-q;if(M=U.css,console.log(`${F.cyan}[Crosswind]${F.reset} Built ${U.classes.size} classes in ${W.toFixed(1)}ms`),Z.output){let G=O.isAbsolute(Z.output)?Z.output:O.join(Q,Z.output),X=O.dirname(G);if(!fs.existsSync(X))fs.mkdirSync(X,{recursive:!0});await Bun.write(G,U.css)}return K=!1,U.css}catch(J){return console.error(`${F.red}[Crosswind]${F.reset} Build error:`,J),K=!1,M}}async function YQ(Q){I=null,await DJ(Q)}function $Q(){return M}function MJ(Q){let J=new Set,Y=/class\s*=\s*["']([^"']+)["']/gi,$=Y.exec(Q);while($!==null){for(let U of $[1].split(/\s+/))if(U.trim())J.add(U.trim());$=Y.exec(Q)}let Z=/(?:x-class|:class)\s*=\s*"([^"]+)"/gi,q=Z.exec(Q);while(q!==null){let U=q[1].match(/'([^']+)'/g);if(U){for(let W of U)for(let G of W.slice(1,-1).split(/\s+/))if(G.trim())J.add(G.trim())}q=Z.exec(Q)}return J}var k=FJ(64);async function wJ(Q,J){let Y=k.get(i(Q,J,w));if(Y!==void 0)return Y;let $=await SJ(Q,J);if($)k.set(i(Q,J,w),$);return $}async function SJ(Q,J){try{let Y=await XJ();if(!Y)return"";let $=typeof Y.extractClasses==="function"?Y.extractClasses(Q):MJ(Q);if($.size===0)return"";let Z=J?O.resolve(J):process.cwd();if(!H)H=jJ(Z,"cache");let q=[...$].sort().join(" "),U=`${w||"default"}::${q}`,W=z.get(U);if(W!==void 0)return l(U,W),W;let G=await TJ(U);if(G!==null)return l(U,G),G;if(!I)I=await PJ(Z),w=EJ(I);let X=Y.defaultConfig||Y.config,V=I||{},A=ZJ(X,V),{safelist:T,includePreflight:R,minify:b,tokenCSS:LJ}=A,o=A.config,P=new Y.CSSGenerator(o);for(let N of T)P.generate(N);for(let N of $)P.generate(N);let _=P.toCSS(R,b),r=o.shortcuts||V.shortcuts||{};for(let[N,y]of Object.entries(r)){if(!$.has(N)&&!T.includes(N))continue;let f=y.split(/\s+/).filter(Boolean);for(let D of f)P.generate(D)}_=P.toCSS(R,b);let E=_.split(`
|
|
14
|
+
`),Z.set(X,V)}return V(...W)}catch{return}}};if(this.pool.length<this.maxPoolSize)this.pool.push({func:U,context:J.slice()});return U}clear(){this.pool.length=0,this.fnCache.clear()}}var pJ=new qJ;class UJ{metrics=new Map;budgets=new Map;violations=[];maxViolations=100;violationHandlers=[];enabled=!0;setEnabled(Q){this.enabled=Q}isEnabled(){return this.enabled}setBudget(Q,J){this.budgets.set(Q,{warnThreshold:0.8,action:"warn",...J})}setBudgets(Q){for(let[J,Y]of Object.entries(Q))this.setBudget(J,Y)}removeBudget(Q){this.budgets.delete(Q)}getBudgets(){let Q={};for(let[J,Y]of this.budgets.entries())Q[J]=Y;return Q}onViolation(Q){this.violationHandlers.push(Q)}offViolation(Q){let J=this.violationHandlers.indexOf(Q);if(J!==-1)this.violationHandlers.splice(J,1)}time(Q,J){if(!this.enabled)return J();let Y=performance.now(),$=J(),Z=performance.now()-Y;return this.recordTime(Q,Z),this.checkBudget(Q,Z),$}async timeAsync(Q,J){if(!this.enabled)return J();let Y=performance.now(),$=await J(),Z=performance.now()-Y;return this.recordTime(Q,Z),this.checkBudget(Q,Z),$}checkBudget(Q,J){let Y=this.budgets.get(Q);if(!Y)return;let $=J/Y.maxTime*100,Z=Y.warnThreshold!==void 0?J>=Y.maxTime*Y.warnThreshold&&J<Y.maxTime:!1,q=J>=Y.maxTime;if(!Z&&!q)return;let U={label:Q,actualTime:J,budgetTime:Y.maxTime,exceedancePercent:$,timestamp:new Date,isWarning:Z};this.violations.push(U);while(this.violations.length>this.maxViolations)this.violations.shift();for(let G of this.violationHandlers)try{G(U)}catch{}let W=Z?`[Performance Warning] "${Q}" took ${J.toFixed(2)}ms (${$.toFixed(1)}% of ${Y.maxTime}ms budget)`:`[Performance Budget Exceeded] "${Q}" took ${J.toFixed(2)}ms (exceeded ${Y.maxTime}ms budget by ${($-100).toFixed(1)}%)`;switch(Y.action){case"log":console.log(W);break;case"warn":console.warn(W);break;case"error":console.error(W);break;case"throw":if(q)throw Error(W);else console.warn(W);break}}recordTime(Q,J){let Y=this.metrics.get(Q);if(Y)Y.count++,Y.totalTime+=J,Y.maxTime=Math.max(Y.maxTime,J),Y.minTime=Math.min(Y.minTime,J);else this.metrics.set(Q,{count:1,totalTime:J,maxTime:J,minTime:J})}getStats(Q){if(Q){let Y=this.metrics.get(Q);if(!Y)return{};let $=this.budgets.get(Q);return{count:Y.count,avgTime:Y.totalTime/Y.count,totalTime:Y.totalTime,maxTime:Y.maxTime,minTime:Y.minTime,budget:$?.maxTime,budgetUtilization:$?Y.totalTime/Y.count/$.maxTime*100:void 0}}let J={};for(let[Y,$]of this.metrics.entries()){let Z=this.budgets.get(Y);J[Y]={count:$.count,avgTime:$.totalTime/$.count,totalTime:$.totalTime,maxTime:$.maxTime,minTime:$.minTime,budget:Z?.maxTime,budgetUtilization:Z?$.totalTime/$.count/Z.maxTime*100:void 0}}return J}getViolations(Q){if(Q)return this.violations.filter((J)=>J.label===Q);return[...this.violations]}getViolationStats(){let Q={},J=0,Y=0;for(let $ of this.violations)if(Q[$.label]=(Q[$.label]||0)+1,$.isWarning)J++;else Y++;return{total:this.violations.length,byLabel:Q,warnings:J,errors:Y}}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 h=null;function zJ(){if(!h)h=new UJ;return h}var gJ=new Proxy({},{get(Q,J){return zJ()[J]}});var WJ=[];function FJ(Q){let J=new c(Q);return WJ.push(J),J}function hJ(){for(let Q of WJ)Q.clear()}function i(Q,...J){return`${J.map((Y)=>String(Y??"")).join("\x00")}\x00${Q.length}\x00${Bun.hash(Q)}`}function cJ(Q){let J=[];for(let Y of new Set(Q))try{J.push({path:Y,mtimeMs:OJ.statSync(Y).mtimeMs})}catch{}return J}function iJ(Q){for(let J of Q)try{if(OJ.statSync(J.path).mtimeMs!==J.mtimeMs)return!1}catch{return!1}return!0}var L=null,n=!1,I=null,M="",K=!1,IJ=256,z=new Map,j=new Map,H=null,w=null;function x(Q){return Bun.hash(Q).toString(16).padStart(16,"0").slice(0,16)}function l(Q,J){if(z.has(Q))z.delete(Q);else if(z.size>=IJ)z.delete(z.keys().next().value);z.set(Q,J)}function HJ(Q){let J=x(Q);if(j.has(J))j.delete(J);else if(j.size>=IJ)j.delete(j.keys().next().value);return j.set(J,Q),J}function eJ(Q){let J=j.get(Q);if(J===void 0)return;return j.delete(Q),j.set(Q,J),J}async function TJ(Q){if(!H)return null;try{let J=Bun.file(O.join(H,`cw-${x(Q)}.css`));if(!await J.exists())return null;return await J.text()}catch{return null}}async function BJ(Q,J){if(!H)return;try{if(!fs.existsSync(H))fs.mkdirSync(H,{recursive:!0});await Bun.write(O.join(H,`cw-${x(Q)}.css`),J)}catch{}}async function GJ(Q){try{let J=await import(Q);if(J&&J.CSSGenerator)return{CSSGenerator:J.CSSGenerator,config:J.config,build:J.build,defaultConfig:J.defaultConfig,extractClasses:J.extractClasses}}catch{}return null}function KJ(){let Q=[],J=process.cwd();while(J!==O.dirname(J))Q.push(O.join(J,"node_modules","@cwcss","crosswind","dist","index.js")),Q.push(O.join(J,"node_modules","@cwcss","crosswind","src","index.ts")),Q.push(O.join(J,"pantry","@cwcss","crosswind","dist","index.js")),Q.push(O.join(J,"pantry","@cwcss","crosswind","src","index.ts")),Q.push(O.join(J,"node_modules","@stacksjs","crosswind","dist","index.js")),Q.push(O.join(J,"pantry","@stacksjs","crosswind","dist","index.js")),J=O.dirname(J);return Q}function RJ(){let Q=[],J=process.env.HOME||process.env.USERPROFILE||"";if(J){let Y=[O.join(J,"Code","Tools","crosswind","packages","crosswind","dist","index.js"),O.join(J,"Code","Tools","crosswind","packages","crosswind","src","index.ts"),O.join(J,"repos","stacks-org","crosswind","packages","crosswind","dist","index.js"),O.join(J,"repos","stacks-org","crosswind","packages","crosswind","src","index.ts"),O.join(J,"Code","Tools","stx","packages","stx","node_modules","@cwcss","crosswind","dist","index.js"),O.join(J,"Code","Tools","stx","packages","stx","node_modules","@stacksjs","crosswind","dist","index.js")];Q.push(...Y)}return Q.push(O.join(process.cwd(),"..","crosswind","packages","crosswind","dist","index.js")),Q.push(O.join(process.cwd(),"..","crosswind","packages","crosswind","src","index.ts")),Q}async function XJ(){if(n)return L;n=!0;try{let Q=async(Z)=>{for(let q of Z){if(!await Bun.file(q).exists())continue;let U=await GJ(q);if(U){if(!process.env.STACKS_DEV_QUIET)console.log(`${F.green}[Crosswind]${F.reset} CSS engine loaded from ${O.dirname(O.dirname(q))}`);return U}}return null};if(process.env.CROSSWIND_SRC){let Z=O.resolve(process.env.CROSSWIND_SRC),q=await Q([Z]);if(!q)throw Error(`CROSSWIND_SRC did not resolve to a Crosswind module: ${Z}`);return L=q,L}let J=await Q(KJ());if(J)return L=J,L;let Y=["@cwcss/crosswind","@cwcss/crosswind/dist/index.js","@stacksjs/crosswind","@stacksjs/crosswind/dist/index.js"];for(let Z of Y){let q=await GJ(Z);if(q){if(L=q,!process.env.STACKS_DEV_QUIET)console.log(`${F.green}[Crosswind]${F.reset} CSS engine loaded`);return L}}let $=await Q(RJ());if($)return L=$,L;throw Error("Crosswind CSSGenerator not found in any location")}catch{return console.warn(`${F.yellow}[Crosswind] CSS engine not available, Tailwind styles will not be generated${F.reset}`),console.warn(`${F.yellow}Run 'bun add @stacksjs/crosswind' to enable CSS generation${F.reset}`),null}}function JQ(){k.clear(),z.clear(),j.clear()}function QQ(){k.clear(),L=null,n=!1,I=null,M="",z.clear(),j.clear(),w=null}async function VJ(Q){try{if(!AJ({name:"crosswind",cwd:Q}))return null;let{loadConfigWithResult:J}=await import("bunfig"),Y=await J({name:"crosswind",cwd:Q,defaultConfig:{},checkEnv:!1,verbose:!1});if(!Y?.path||!Y.config||Object.keys(Y.config).length===0)return null;let $=O.relative(Q,Y.path);if(!process.env.STACKS_DEV_QUIET)console.log(`${F.green}[Crosswind]${F.reset} Loaded config from ${$||Y.path}`);return Y.config}catch(J){if(J instanceof Error&&J.name==="ConfigNotFoundError")return null;return console.warn(`${F.yellow}[Crosswind]${F.reset} Failed to load crosswind config:`,J instanceof Error?J.message:J),null}}async function PJ(Q){let J=null;try{let{loadStxConfig:Y}=await import("./chunk-dgtbkxfd.js"),$=await Y(Q);if($.css)if(typeof $.css==="string"){let Z=O.isAbsolute($.css)?$.css:O.resolve(Q,$.css);if(await Bun.file(Z).exists()){let q=await import(Z);J=q.default||q,console.log(`${F.green}[Crosswind]${F.reset} Loaded config from stx.config.ts \u2192 ${$.css}`)}}else{if(J={...$.css,content:$.css.content||[],preflight:$.css.preflight??!0,minify:$.css.minify??!1},$.css.config){let Z=O.isAbsolute($.css.config)?$.css.config:O.resolve(Q,$.css.config);if(await Bun.file(Z).exists()){let q=await import(Z);J={...q.default||q,...J}}}console.log(`${F.green}[Crosswind]${F.reset} Using inline CSS config from stx.config.ts`)}}catch{}return J||await VJ(Q)}function EJ(Q){try{let J=new WeakSet;return x(JSON.stringify(Q??{},(Y,$)=>{if(typeof $==="function")return`[fn]${String($)}`;if(typeof $==="object"&&$!==null){if(J.has($))return"[circular]";J.add($)}return $})??"")}catch{return"unhashable"}}async function DJ(Q){if(K)return M;K=!0;try{let J=await XJ();if(!J||!J.build)return K=!1,"";if(!I)I=await VJ(Q);if(!I)return K=!1,"";let Y=J.defaultConfig?.theme||{},$=I.theme||{},Z={...J.defaultConfig,...I,theme:{...Y,...$,extend:{...Y.extend||{},...$.extend||{}}}},q=performance.now(),U=await J.build(Z),W=performance.now()-q;if(M=U.css,console.log(`${F.cyan}[Crosswind]${F.reset} Built ${U.classes.size} classes in ${W.toFixed(1)}ms`),Z.output){let G=O.isAbsolute(Z.output)?Z.output:O.join(Q,Z.output),X=O.dirname(G);if(!fs.existsSync(X))fs.mkdirSync(X,{recursive:!0});await Bun.write(G,U.css)}return K=!1,U.css}catch(J){return console.error(`${F.red}[Crosswind]${F.reset} Build error:`,J),K=!1,M}}async function YQ(Q){I=null,await DJ(Q)}function $Q(){return M}function MJ(Q){let J=new Set,Y=/class\s*=\s*["']([^"']+)["']/gi,$=Y.exec(Q);while($!==null){for(let U of $[1].split(/\s+/))if(U.trim())J.add(U.trim());$=Y.exec(Q)}let Z=/(?:x-class|:class)\s*=\s*"([^"]+)"/gi,q=Z.exec(Q);while(q!==null){let U=q[1].match(/'([^']+)'/g);if(U){for(let W of U)for(let G of W.slice(1,-1).split(/\s+/))if(G.trim())J.add(G.trim())}q=Z.exec(Q)}return J}var k=FJ(64);async function wJ(Q,J){let Y=k.get(i(Q,J,w));if(Y!==void 0)return Y;let $=await SJ(Q,J);if($)k.set(i(Q,J,w),$);return $}async function SJ(Q,J){try{let Y=await XJ();if(!Y)return"";let $=typeof Y.extractClasses==="function"?Y.extractClasses(Q):MJ(Q);if($.size===0)return"";let Z=J?O.resolve(J):process.cwd();if(!H)H=jJ(Z,"cache");let q=[...$].sort().join(" "),U=`${w||"default"}::${q}`,W=z.get(U);if(W!==void 0)return l(U,W),W;let G=await TJ(U);if(G!==null)return l(U,G),G;if(!I)I=await PJ(Z),w=EJ(I);let X=Y.defaultConfig||Y.config,V=I||{},A=ZJ(X,V),{safelist:T,includePreflight:R,minify:b,tokenCSS:LJ}=A,o=A.config,P=new Y.CSSGenerator(o);for(let N of T)P.generate(N);for(let N of $)P.generate(N);let _=P.toCSS(R,b),r=o.shortcuts||V.shortcuts||{};for(let[N,y]of Object.entries(r)){if(!$.has(N)&&!T.includes(N))continue;let f=y.split(/\s+/).filter(Boolean);for(let D of f)P.generate(D)}_=P.toCSS(R,b);let E=_.split(`
|
|
15
15
|
`);for(let[N,y]of Object.entries(r)){if(!$.has(N)&&!T.includes(N))continue;let f=y.split(/\s+/).filter(Boolean),D=[],C=[];for(let p of f){let a=p.startsWith("dark:"),s=`.${(a?p.slice(5):p).replace(/\//g,"\\/").replace(/:/g,"\\:").replace(/\./g,"\\.").replace(/\[/g,"\\[").replace(/\]/g,"\\]").replace(/%/g,"\\%")}`;for(let S=0;S<E.length;S++){let t=E[S].trim();if(t===`${s} {`||t.startsWith(`${s} {`)){let v=S,e="";while(v<E.length){if(e+=E[v],E[v].includes("}"))break;v++}let g=e.match(/\{([^}]+)\}/);if(g)if(a)C.push(g[1].trim());else D.push(g[1].trim());break}}}if(D.length)_+=`
|
|
16
16
|
.${N} { ${D.join(" ")} }`;if(C.length)_+=`
|
|
17
17
|
@media (prefers-color-scheme: dark) { .dark .${N} { ${C.join(" ")} } }`}return _=LJ+_,l(U,_),BJ(U,_),_}catch(Y){return console.warn("Failed to generate Crosswind CSS:",Y),""}}async function ZQ(Q,J,Y=!1){let $=await wJ(Q,J);if(!$)return Q;let Z=Y?`<link data-crosswind="generated" rel="stylesheet" href="/_stx/crosswind.${HJ($)}.css">`:`<style data-crosswind="generated">
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{a as x,b as u,c as b,d as Az,e as G,f as d,h as y,i as I,j as Uz,k as v}from"./chunk-0y46fbkx.js";import{l as h,m as f,n as g}from"./chunk-q9n5swx7.js";import{zp as V}from"./chunk-
|
|
2
|
+
import{a as x,b as u,c as b,d as Az,e as G,f as d,h as y,i as I,j as Uz,k as v}from"./chunk-0y46fbkx.js";import{l as h,m as f,n as g}from"./chunk-q9n5swx7.js";import{zp as V}from"./chunk-qs1kypwa.js";import"./chunk-xpxw2ked.js";import"./chunk-6gb72zp2.js";import"./chunk-82kkkpw2.js";import"./chunk-shyqtvbq.js";import"./chunk-abx8rmt4.js";import"./chunk-w1asc0zd.js";import"./chunk-xqwmj65h.js";import"./chunk-0ym08enb.js";import"./chunk-q4desjj6.js";import"./chunk-gfhzedsr.js";import"./chunk-sfaayvmn.js";import"./chunk-azfjfrns.js";import{$u as F}from"./chunk-z45t29sf.js";import l from"fs";import R from"path";function m(z,J){let Z=[R.join(z.root,"stx.config.ts"),R.join(z.root,"stx.config.js"),R.join(z.root,"stx.config.mjs")],K=J.debounceMs??300,$=null,X=[];for(let B of Z)try{if(!l.existsSync(B))continue;let Y=l.watch(B,(W)=>{if(W==="change"){if($)clearTimeout($);$=setTimeout(async()=>{d("Config file changed, restarting...");try{await J.onChange()}catch(j){G(`Failed to restart: ${j}`)}},K)}});X.push(Y)}catch{}return{stop(){if($)clearTimeout($);for(let B of X)B.close()}}}import E from"fs";import i from"path";var Gz=".stx/story/analytics.json",Nz=1,c=1e4;class M{storage;storagePath;currentSession=null;dirty=!1;viewStartTimes=new Map;constructor(z){this.storagePath=i.join(z,Gz),this.storage=this.loadStorage(),this.startSession()}loadStorage(){try{let z=E.readFileSync(this.storagePath,"utf-8");return JSON.parse(z)}catch{return{version:Nz,events:[],sessions:[]}}}async save(){if(!this.dirty)return;let z=i.dirname(this.storagePath);if(await E.promises.mkdir(z,{recursive:!0}),this.storage.events.length>c)this.storage.events=this.storage.events.slice(-c);await E.promises.writeFile(this.storagePath,JSON.stringify(this.storage,null,2)),this.dirty=!1}startSession(){this.endSession(),this.currentSession={id:Hz(),startTime:Date.now(),componentViews:[]},this.storage.sessions.push(this.currentSession),this.dirty=!0}endSession(){if(this.currentSession)this.currentSession.endTime=Date.now(),this.currentSession=null}track(z){this.storage.events.push({...z,timestamp:Date.now()}),this.dirty=!0}trackView(z,J){if(this.endViewTiming(z),this.viewStartTimes.set(z,Date.now()),this.track({type:"view",componentId:z,variantId:J}),this.currentSession&&!this.currentSession.componentViews.includes(z))this.currentSession.componentViews.push(z)}endViewTiming(z){let J=this.viewStartTimes.get(z);if(J){let Z=Date.now()-J;this.track({type:"view",componentId:z,metadata:{duration:Z,endView:!0}}),this.viewStartTimes.delete(z)}}trackPropChange(z,J,Z){this.track({type:"prop_change",componentId:z,propName:J,metadata:{value:Z}})}trackVariantSwitch(z,J){this.track({type:"variant_switch",componentId:z,variantId:J})}trackSearch(z,J){this.track({type:"search",query:z,metadata:{resultCount:J}})}getComponentAnalytics(z,J){let Z=this.storage.events.filter((Q)=>Q.componentId===z),K=Z.filter((Q)=>Q.type==="view"&&!Q.metadata?.endView),$=Z.filter((Q)=>Q.type==="prop_change"),X=Z.filter((Q)=>Q.type==="variant_switch"),B={};for(let Q of $)if(Q.propName)B[Q.propName]=(B[Q.propName]||0)+1;let Y={};for(let Q of X)if(Q.variantId)Y[Q.variantId]=(Y[Q.variantId]||0)+1;let W=new Set(this.storage.sessions.filter((Q)=>Q.componentViews.includes(z)).map((Q)=>Q.id)),j=Z.filter((Q)=>Q.metadata?.duration).map((Q)=>Q.metadata.duration),U=j.length>0?j.reduce((Q,D)=>Q+D,0)/j.length:0,_=Object.entries(B).sort((Q,D)=>D[1]-Q[1]).slice(0,5).map(([Q])=>Q);return{componentId:z,componentName:J,viewCount:K.length,uniqueViews:W.size,lastViewed:K[K.length-1]?.timestamp,propChanges:B,topChangedProps:_,variantViews:Y,avgTimeSpent:U}}getMostViewedComponents(z=10){let J=new Map;for(let Z of this.storage.events)if(Z.type==="view"&&Z.componentId&&!Z.metadata?.endView)J.set(Z.componentId,(J.get(Z.componentId)||0)+1);return Array.from(J.entries()).map(([Z,K])=>({componentId:Z,viewCount:K})).sort((Z,K)=>K.viewCount-Z.viewCount).slice(0,z)}getMostChangedProps(z=10){let J=new Map;for(let Z of this.storage.events)if(Z.type==="prop_change"&&Z.propName)J.set(Z.propName,(J.get(Z.propName)||0)+1);return Array.from(J.entries()).map(([Z,K])=>({propName:Z,changeCount:K})).sort((Z,K)=>K.changeCount-Z.changeCount).slice(0,z)}getSearchAnalytics(){let z=this.storage.events.filter(($)=>$.type==="search"),J=new Map,Z=0;for(let $ of z){if($.query)J.set($.query,(J.get($.query)||0)+1);if($.metadata?.resultCount!==void 0)Z+=$.metadata.resultCount}let K=Array.from(J.entries()).map(([$,X])=>({query:$,count:X})).sort(($,X)=>X.count-$.count).slice(0,10);return{totalSearches:z.length,topQueries:K,avgResultCount:z.length>0?Z/z.length:0}}clear(){this.storage.events=[],this.storage.sessions=[],this.dirty=!0,this.startSession()}exportAnalytics(){return JSON.stringify({exportedAt:Date.now(),...this.storage},null,2)}}function Hz(){return`session-${Date.now()}-${Math.random().toString(36).slice(2,8)}`}import P from"fs";import p from"path";var Fz=".stx/story/bookmarks.json",Vz=1;class T{storage;storagePath;dirty=!1;constructor(z){this.storagePath=p.join(z,Fz),this.storage=this.loadStorage()}loadStorage(){try{let z=P.readFileSync(this.storagePath,"utf-8");return JSON.parse(z)}catch{return{version:Vz,bookmarks:[]}}}async save(){if(!this.dirty)return;let z=p.dirname(this.storagePath);await P.promises.mkdir(z,{recursive:!0}),await P.promises.writeFile(this.storagePath,JSON.stringify(this.storage,null,2)),this.dirty=!1}addBookmark(z,J,Z,K={}){let $={id:Rz(),name:K.name||`${z}/${J}`,storyId:z,variantId:J,props:Z,created:Date.now(),notes:K.notes,color:K.color};return this.storage.bookmarks.push($),this.dirty=!0,$}getAllBookmarks(){return[...this.storage.bookmarks]}getBookmarksForStory(z){return this.storage.bookmarks.filter((J)=>J.storyId===z)}getBookmark(z){return this.storage.bookmarks.find((J)=>J.id===z)}isBookmarked(z,J){return this.storage.bookmarks.some((Z)=>Z.storyId===z&&Z.variantId===J)}updateBookmark(z,J){let Z=this.getBookmark(z);if(!Z)return;return Object.assign(Z,J),this.dirty=!0,Z}deleteBookmark(z){let J=this.storage.bookmarks.findIndex((Z)=>Z.id===z);if(J===-1)return!1;return this.storage.bookmarks.splice(J,1),this.dirty=!0,!0}toggleBookmark(z,J,Z){let K=this.storage.bookmarks.find((X)=>X.storyId===z&&X.variantId===J);if(K)return this.deleteBookmark(K.id),{added:!1};return{added:!0,bookmark:this.addBookmark(z,J,Z)}}exportBookmarks(){return JSON.stringify(this.storage,null,2)}importBookmarks(z,J=!0){let Z=JSON.parse(z),K=0;for(let $ of Z.bookmarks){if(J){let X=this.storage.bookmarks.find((B)=>B.id===$.id);if(X)Object.assign(X,$);else this.storage.bookmarks.push($)}else this.storage.bookmarks.push($);K++}if(K>0)this.dirty=!0;return K}}function Rz(){return`bm-${Date.now()}-${Math.random().toString(36).slice(2,8)}`}var N=new Set;function s(){return{open(z){N.add(z),z.send(JSON.stringify({type:"connected",timestamp:Date.now()}))},close(z){N.delete(z)},message(z,J){}}}function q(z){let J=JSON.stringify({...z,timestamp:z.timestamp||Date.now()});for(let Z of N)try{Z.send(J)}catch{N.delete(Z)}}function n(z,J){q({type:"story-update",data:{storyId:z,...J}})}function a(z,J){q({type:"story-add",data:{storyId:z,...J}})}function o(z){q({type:"story-remove",data:{storyId:z}})}function r(z){return`
|
|
3
3
|
<script>
|
|
4
4
|
(function() {
|
|
5
5
|
const ws = new WebSocket('${z}');
|
|
@@ -556,7 +556,7 @@ window.__stxPerformance = {
|
|
|
556
556
|
|
|
557
557
|
window.clearPerformanceMetrics = () => window.__stxPerformance.clear();
|
|
558
558
|
</script>
|
|
559
|
-
`}import w from"fs";import Xz from"path";var Mz=".stx/story/presets.json",C=1,Pz=10;class k{storage;storagePath;dirty=!1;constructor(z){this.storagePath=Xz.join(z,Mz),this.storage=this.loadStorage()}loadStorage(){try{let z=w.readFileSync(this.storagePath,"utf-8"),J=JSON.parse(z);if(J.version!==C)return this.migrateStorage(J);return J}catch{return{version:C,presets:[],recentIds:[]}}}migrateStorage(z){return{version:C,presets:z.presets||[],recentIds:z.recentIds||[]}}async save(){if(!this.dirty)return;let z=Xz.dirname(this.storagePath);await w.promises.mkdir(z,{recursive:!0}),await w.promises.writeFile(this.storagePath,JSON.stringify(this.storage,null,2)),this.dirty=!1}createPreset(z,J,Z={}){let K={id:Tz(),name:z,description:Z.description,props:J,componentId:Z.componentId,created:Date.now(),usageCount:0,tags:Z.tags};return this.storage.presets.push(K),this.dirty=!0,K}getPreset(z){return this.storage.presets.find((J)=>J.id===z)}getAllPresets(){return[...this.storage.presets]}getPresetsForComponent(z){return this.storage.presets.filter((J)=>!J.componentId||J.componentId===z)}getRecentPresets(){return this.storage.recentIds.map((z)=>this.getPreset(z)).filter((z)=>z!==void 0)}usePreset(z){let J=this.getPreset(z);if(!J)return;return J.lastUsed=Date.now(),J.usageCount++,this.storage.recentIds=[z,...this.storage.recentIds.filter((Z)=>Z!==z)].slice(0,Pz),this.dirty=!0,J}updatePreset(z,J){let Z=this.getPreset(z);if(!Z)return;return Object.assign(Z,J),this.dirty=!0,Z}deletePreset(z){let J=this.storage.presets.findIndex((Z)=>Z.id===z);if(J===-1)return!1;return this.storage.presets.splice(J,1),this.storage.recentIds=this.storage.recentIds.filter((Z)=>Z!==z),this.dirty=!0,!0}searchPresets(z){let J=z.toLowerCase();return this.storage.presets.filter((Z)=>{if(Z.name.toLowerCase().includes(J))return!0;if(Z.description?.toLowerCase().includes(J))return!0;if(Z.tags?.some((K)=>K.toLowerCase().includes(J)))return!0;return!1})}getMostUsedPresets(z=5){return[...this.storage.presets].sort((J,Z)=>Z.usageCount-J.usageCount).slice(0,z)}exportPresets(z){let J=z?this.storage.presets.filter((Z)=>z.includes(Z.id)):this.storage.presets;return JSON.stringify({presets:J},null,2)}importPresets(z,J=!1){let Z=JSON.parse(z),K=0;for(let $ of Z.presets){let X=this.storage.presets.find((B)=>B.id===$.id);if(X&&!J)continue;if(X)Object.assign(X,$);else this.storage.presets.push($);K++}if(K>0)this.dirty=!0;return K}}function Tz(){return`preset-${Date.now()}-${Math.random().toString(36).slice(2,8)}`}import S from"fs";var Qz=new Map;async function H(z,J,Z={}){let K=performance.now(),$=[];try{let X=await S.promises.stat(J),B=Qz.get(J),Y;if(B&&B.mtime===X.mtimeMs)Y=B.content;else Y=await S.promises.readFile(J,"utf-8"),Qz.set(J,{content:Y,mtime:X.mtimeMs,analyzed:null});let{processDirectives:W}=await import("./chunk-
|
|
559
|
+
`}import w from"fs";import Xz from"path";var Mz=".stx/story/presets.json",C=1,Pz=10;class k{storage;storagePath;dirty=!1;constructor(z){this.storagePath=Xz.join(z,Mz),this.storage=this.loadStorage()}loadStorage(){try{let z=w.readFileSync(this.storagePath,"utf-8"),J=JSON.parse(z);if(J.version!==C)return this.migrateStorage(J);return J}catch{return{version:C,presets:[],recentIds:[]}}}migrateStorage(z){return{version:C,presets:z.presets||[],recentIds:z.recentIds||[]}}async save(){if(!this.dirty)return;let z=Xz.dirname(this.storagePath);await w.promises.mkdir(z,{recursive:!0}),await w.promises.writeFile(this.storagePath,JSON.stringify(this.storage,null,2)),this.dirty=!1}createPreset(z,J,Z={}){let K={id:Tz(),name:z,description:Z.description,props:J,componentId:Z.componentId,created:Date.now(),usageCount:0,tags:Z.tags};return this.storage.presets.push(K),this.dirty=!0,K}getPreset(z){return this.storage.presets.find((J)=>J.id===z)}getAllPresets(){return[...this.storage.presets]}getPresetsForComponent(z){return this.storage.presets.filter((J)=>!J.componentId||J.componentId===z)}getRecentPresets(){return this.storage.recentIds.map((z)=>this.getPreset(z)).filter((z)=>z!==void 0)}usePreset(z){let J=this.getPreset(z);if(!J)return;return J.lastUsed=Date.now(),J.usageCount++,this.storage.recentIds=[z,...this.storage.recentIds.filter((Z)=>Z!==z)].slice(0,Pz),this.dirty=!0,J}updatePreset(z,J){let Z=this.getPreset(z);if(!Z)return;return Object.assign(Z,J),this.dirty=!0,Z}deletePreset(z){let J=this.storage.presets.findIndex((Z)=>Z.id===z);if(J===-1)return!1;return this.storage.presets.splice(J,1),this.storage.recentIds=this.storage.recentIds.filter((Z)=>Z!==z),this.dirty=!0,!0}searchPresets(z){let J=z.toLowerCase();return this.storage.presets.filter((Z)=>{if(Z.name.toLowerCase().includes(J))return!0;if(Z.description?.toLowerCase().includes(J))return!0;if(Z.tags?.some((K)=>K.toLowerCase().includes(J)))return!0;return!1})}getMostUsedPresets(z=5){return[...this.storage.presets].sort((J,Z)=>Z.usageCount-J.usageCount).slice(0,z)}exportPresets(z){let J=z?this.storage.presets.filter((Z)=>z.includes(Z.id)):this.storage.presets;return JSON.stringify({presets:J},null,2)}importPresets(z,J=!1){let Z=JSON.parse(z),K=0;for(let $ of Z.presets){let X=this.storage.presets.find((B)=>B.id===$.id);if(X&&!J)continue;if(X)Object.assign(X,$);else this.storage.presets.push($);K++}if(K>0)this.dirty=!0;return K}}function Tz(){return`preset-${Date.now()}-${Math.random().toString(36).slice(2,8)}`}import S from"fs";var Qz=new Map;async function H(z,J,Z={}){let K=performance.now(),$=[];try{let X=await S.promises.stat(J),B=Qz.get(J),Y;if(B&&B.mtime===X.mtimeMs)Y=B.content;else Y=await S.promises.readFile(J,"utf-8"),Qz.set(J,{content:Y,mtime:X.mtimeMs,analyzed:null});let{processDirectives:W}=await import("./chunk-ashkqdsb.js"),j={},U=A(Y);if(U)try{await V(U,j,J)}catch(O){$.push(`Warning: Could not extract script variables: ${O instanceof Error?O.message:String(O)}`)}if(Z.props)Object.assign(j,Z.props);let Q=await W(Y,j,J,{},new Set),D=Wz(Y),L=A(Y);return Q=jz(Q),Q=Dz(Q,j),{html:Q,css:D,js:L,errors:$,duration:performance.now()-K}}catch(X){return $.push(X instanceof Error?X.message:String(X)),{html:`<div class="stx-render-error">${Lz($[0])}</div>`,css:"",js:"",errors:$,duration:performance.now()-K}}}async function qz(z){try{let J=await S.promises.readFile(z,"utf-8"),Z=A(J);if(!Z)return null;let K={};if(await V(Z,K,z),Array.isArray(K.variants))return K.variants;return null}catch{return null}}async function Bz(z,J,Z,K){let $=J.story?.variants;if(!$){let Y=await qz(J.path);if(Y)$=Y}if(!$&&Z==="default")return H(z,J.path,{props:K||{}});if(!$)return H(z,J.path,{props:K||{}});let X=$.find((Y)=>Y.id===Z);if(!X&&Z==="default")return H(z,J.path,{props:K||{}});if(!X)return{html:'<div class="stx-render-error">Variant not found</div>',css:"",js:"",errors:[`Variant '${Z}' not found`],duration:0};let B={...X.state,...K};if(X.source)return wz(z,X.source,B);return H(z,J.path,{props:B})}async function wz(z,J,Z={}){let K=performance.now(),$=[];try{let{processDirectives:X}=await import("./chunk-ashkqdsb.js"),B={...Z},Y=A(J);if(Y)try{await V(Y,B,"inline-template.stx")}catch{}let j=await X(J,B,"inline-template.stx",{},new Set);return j=jz(j),j=Dz(j,B),{html:j,css:Wz(J),js:A(J),errors:$,duration:performance.now()-K}}catch(X){return $.push(X instanceof Error?X.message:String(X)),{html:`<div class="stx-render-error">${Lz($[0])}</div>`,css:"",js:"",errors:$,duration:performance.now()-K}}}function Wz(z){let J=[],Z=/<style\b[^>]*>([\s\S]*?)<\/style>/gi,K=Z.exec(z);while(K!==null)J.push(K[1].trim()),K=Z.exec(z);return J.join(`
|
|
560
560
|
`)}function jz(z){return z.replace(/<!--[\s\S]*?-->/g,"").replace(/<style\b[^>]*>[\s\S]*?<\/style>/gi,"").replace(/<script\b[^>]*>[\s\S]*?<\/script>/gi,"").replace(/^\s*\n/gm,"").trim()}function A(z){let J=[],Z=/<script\b[^>]*>([\s\S]*?)<\/script>/gi,K=Z.exec(z);while(K!==null)J.push(K[1].trim()),K=Z.exec(z);return J.join(`
|
|
561
561
|
`)}function Dz(z,J){let Z=`<script>window.__stxProps = ${JSON.stringify(J)};</script>`;return z+Z}function Lz(z){return z.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")}async function Oz(z,J){let Z=await I(z);f(z,Z);let K=v(z.config,Z);g(z,K),console.log(` Found ${Z.length} story files`);let $=typeof J.host==="string"?J.host:J.host===!0?"0.0.0.0":"localhost",X=new k(z.root),B=new T(z.root),Y=new M(z.root),W=s(),j=Bun.serve({port:J.port,hostname:$,fetch:async(Q,D)=>{let O=new URL(Q.url).pathname;if(O==="/__hmr"){if(D.upgrade(Q,{data:{isHmr:!0}}))return;return new Response("WebSocket upgrade failed",{status:400})}if(O.startsWith("/api/"))return Cz(z,O,Q,{presetsManager:X,bookmarksManager:B,analyticsTracker:Y});return kz(z,O,J.port)},websocket:{open(Q){W.open(Q)},close(Q){W.close(Q)},message(Q,D){W.message(Q,D)}}}),U=`http://${$}:${J.port}`,_=Uz(z,async(Q,D)=>{console.log(` [${Q}] ${D.relativePath}`);let L=await I(z);f(z,L);let O=v(z.config,L);if(g(z,O),Q==="add")a(D.id,{fileName:D.fileName});else if(Q==="unlink")o(D.id);else n(D.id,{fileName:D.fileName})});if(J.open){let Q=U;try{let{exec:D}=await import("child_process"),L=process.platform;D(`${L==="darwin"?"open":L==="win32"?"start":"xdg-open"} ${Q}`)}catch{}}return{server:j,url:U,close:async()=>{_(),j.stop()}}}async function Cz(z,J,Z,K){let{presetsManager:$,bookmarksManager:X,analyticsTracker:B}=K;if(J==="/api/stories")return Response.json({files:z.storyFiles.map((Y)=>({id:Y.id,fileName:Y.fileName,relativePath:Y.relativePath,treePath:Y.treePath})),tree:z.tree});if(J.startsWith("/api/story/")){let Y=J.slice(11),W=z.storyFiles.find((j)=>j.id===Y);if(!W)return new Response("Story not found",{status:404});try{let j=await Bun.file(W.path).text();return Response.json({id:W.id,fileName:W.fileName,relativePath:W.relativePath,content:j})}catch{return new Response("Error reading story",{status:500})}}if(J==="/api/config")return Response.json({theme:z.config.theme,responsivePresets:z.config.responsivePresets,backgroundPresets:z.config.backgroundPresets});if(J.startsWith("/api/render/")){let Y=new URL(Z.url),W=J.slice(12).split("/"),j=W[0],U=W[1]||"default",_,Q=Y.searchParams.get("props");if(Q)try{_=JSON.parse(Q)}catch{}let D=z.storyFiles.find((L)=>L.id===j);if(!D)return new Response("Story not found",{status:404});try{let L=await Bz(z,D,U,_);return Response.json({html:L.html,css:L.css,js:L.js,errors:L.errors,duration:L.duration})}catch(L){return Response.json({html:"",css:"",js:"",errors:[L instanceof Error?L.message:String(L)],duration:0},{status:500})}}if(J==="/api/presets"&&Z.method==="GET")return Response.json({presets:$.getAllPresets()});if(J==="/api/presets"&&Z.method==="POST")try{let Y=await Z.json(),W=$.createPreset(Y.name,Y.props,{componentId:Y.componentId,description:Y.description});return await $.save(),Response.json(W)}catch(Y){return Response.json({error:String(Y)},{status:400})}if(J.startsWith("/api/presets/")&&!J.includes("/use")&&Z.method==="GET"){let Y=J.slice(13),W=$.getPreset(Y);if(!W)return new Response("Preset not found",{status:404});return Response.json(W)}if(J.endsWith("/use")&&Z.method==="POST"){let Y=J.slice(13,-4),W=$.usePreset(Y);if(!W)return new Response("Preset not found",{status:404});return await $.save(),Response.json(W)}if(J.startsWith("/api/presets/")&&Z.method==="DELETE"){let Y=J.slice(13);if(!$.deletePreset(Y))return new Response("Preset not found",{status:404});return await $.save(),Response.json({success:!0})}if(J==="/api/bookmarks"&&Z.method==="GET")return Response.json({bookmarks:X.getAllBookmarks()});if(J==="/api/bookmarks"&&Z.method==="POST")try{let Y=await Z.json(),W=X.addBookmark(Y.storyId,Y.variantId,Y.props,{name:Y.name,notes:Y.notes,color:Y.color});return await X.save(),Response.json(W)}catch(Y){return Response.json({error:String(Y)},{status:400})}if(J==="/api/bookmarks/toggle"&&Z.method==="POST")try{let Y=await Z.json(),W=X.toggleBookmark(Y.storyId,Y.variantId,Y.props);return await X.save(),Response.json(W)}catch(Y){return Response.json({error:String(Y)},{status:400})}if(J.startsWith("/api/bookmarks/")&&J!=="/api/bookmarks/toggle"&&Z.method==="GET"){let Y=J.slice(15),W=X.getBookmark(Y);if(!W)return new Response("Bookmark not found",{status:404});return Response.json(W)}if(J.startsWith("/api/bookmarks/")&&Z.method==="DELETE"){let Y=J.slice(15);if(!X.deleteBookmark(Y))return new Response("Bookmark not found",{status:404});return await X.save(),Response.json({success:!0})}if(J==="/api/analytics/track"&&Z.method==="POST")try{let Y=await Z.json();if(Y.type==="view"&&Y.componentId)B.trackView(Y.componentId,Y.variantId);else if(Y.type==="prop_change"&&Y.componentId&&Y.propName)B.trackPropChange(Y.componentId,Y.propName,null);else if(Y.type==="variant_switch"&&Y.componentId&&Y.variantId)B.trackVariantSwitch(Y.componentId,Y.variantId);else if(Y.type==="search"&&Y.query)B.trackSearch(Y.query,0);return await B.save(),Response.json({success:!0})}catch(Y){return Response.json({error:String(Y)},{status:400})}if(J==="/api/analytics/summary"&&Z.method==="GET")return Response.json({mostViewed:B.getMostViewedComponents(10),mostChangedProps:B.getMostChangedProps(10),searchAnalytics:B.getSearchAnalytics()});if(J.startsWith("/api/analytics/component/")&&Z.method==="GET"){let Y=J.slice(25),W=z.storyFiles.find((U)=>U.id===Y),j=B.getComponentAnalytics(Y,W?.fileName||Y);return Response.json(j)}return new Response("Not found",{status:404})}function kz(z,J,Z){let K=Sz(z,Z);return new Response(K,{headers:{"Content-Type":"text/html; charset=utf-8"}})}function Sz(z,J){let{theme:Z}=z.config,K=Z.title||"STX Story",$=`ws://localhost:${J}/__hmr`,X=r($);return`<!DOCTYPE html>
|
|
562
562
|
<html lang="en" class="${Z.darkClass||"dark"}">
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Hl as A,Il as D,Mq as k,Sm as T,Tm as y,Xo as x,_l as B,am as F,hs as w,ip as M,zp as R}from"./chunk-
|
|
2
|
+
import{Hl as A,Il as D,Mq as k,Sm as T,Tm as y,Xo as x,_l as B,am as F,hs as w,ip as M,zp as R}from"./chunk-qs1kypwa.js";import{$u as P}from"./chunk-z45t29sf.js";function b(K){return K.endsWith(".md")||K.endsWith(".markdown")}function C(K){let z=[];_(/<pre\b[^>]*>[\s\S]*?<\/pre>/gi);let G=[...z];_(/<code\b[^>]*>[\s\S]*?<\/code>/gi,G);function _(J,X){let $;while(($=J.exec(K))!==null){let q=$.index,N=q+$[0].length;if(X?.some((Y)=>q>=Y.start&&N<=Y.end))continue;z.push({start:q,end:N})}}if(z.length===0)return K;z.sort((J,X)=>J.start-X.start);let U="",Q=0;for(let J of z){if(J.start<Q)continue;U+=K.slice(Q,J.start),U+=`@raw${K.slice(J.start,J.end)}@endraw`,Q=J.end}return U+=K.slice(Q),U}async function j(K,z={}){let{data:G,content:_}=A(K),Q=await(z.renderer??((J)=>D(J)))(_);return{html:C(Q),frontmatter:G??{}}}import{dirname as v,resolve as H}from"path";function f(K){let z=K,G=x(K);if(G)z=G.content.trim();let _=/<script\b([^>]*)>([\s\S]*?)<\/script>/gi,U=[],Q=[],J=[],X=(N)=>/\b(?:state|derived|effect|batch)\s*(?:<[^<>()]*>)?\s*\(/.test(N),$;while(($=_.exec(K))!==null){let N=$[1],Y=$[2],E=$[0],Z=N.includes("server");if(X(Y))J.push(E);else if(Z)Q.push(Y);else U.push(E)}let q=z;{let N=/<script\b(?![^>]*\b(?:client|type\s*=\s*["']module["']|src\s*=))[^>]*>/gi,Y,E=[];while((Y=N.exec(q))!==null){let Z=Y.index+Y[0].length,L=q.indexOf("</script>",Z);if(L===-1)continue;E.push({start:Y.index,end:L+9}),N.lastIndex=L+9}for(let Z=E.length-1;Z>=0;Z--)q=q.substring(0,E[Z].start)+q.substring(E[Z].end)}for(let N of U)q=q.replace(N,"");return{templateContent:q,serverScripts:Q,clientScripts:U,signalsScripts:J}}function g(K,z){return`<!DOCTYPE html>
|
|
3
3
|
<html lang="en">
|
|
4
4
|
<head>
|
|
5
5
|
<meta charset="UTF-8">
|
|
@@ -14,5 +14,5 @@ ${Q.join(`
|
|
|
14
14
|
`)}`}else{if(G.processClientScripts!==!1&&Q.length>0){let N=X.__stx_event_bindings||[],Y=B(X),Z=(await Promise.all(Q.map(async(V)=>{let W=V.match(/<script\b[^>]*>([\s\S]*?)<\/script>/);if(!W)return V;return await F(W[1],{eventBindings:N,templateContent:q,serverData:Y,filePath:z})}))).join(`
|
|
15
15
|
`);if(q.match(/(<\/body>)/i))q=q.replace(/(<\/body>)/i,`${Z}
|
|
16
16
|
$1`);else q+=`
|
|
17
|
-
${Z}`}q=await M(q)}if(G.wrapInDocument){if(!q.trim().toLowerCase().startsWith("<!doctype")&&!q.trim().toLowerCase().startsWith("<html"))q=g(q,G.title)}if(G.injectCSS)try{let{injectCrosswindCSS:N}=await import("./chunk-
|
|
17
|
+
${Z}`}q=await M(q)}if(G.wrapInDocument){if(!q.trim().toLowerCase().startsWith("<!doctype")&&!q.trim().toLowerCase().startsWith("<html"))q=g(q,G.title)}if(G.injectCSS)try{let{injectCrosswindCSS:N}=await import("./chunk-9334fg4q.js");q=await N(q)}catch{}return q}
|
|
18
18
|
export{b as qk,C as rk,j as sk,s as tk,i as uk,I as vk};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Jq as b,Kq as c,Lq as d,Mq as e,ip as a}from"./chunk-
|
|
2
|
+
import{Jq as b,Kq as c,Lq as d,Mq as e,ip as a}from"./chunk-qs1kypwa.js";import"./chunk-xpxw2ked.js";import"./chunk-6gb72zp2.js";import"./chunk-82kkkpw2.js";import"./chunk-shyqtvbq.js";import"./chunk-abx8rmt4.js";import"./chunk-w1asc0zd.js";import"./chunk-xqwmj65h.js";import"./chunk-0ym08enb.js";import"./chunk-q4desjj6.js";import"./chunk-gfhzedsr.js";import"./chunk-sfaayvmn.js";import"./chunk-azfjfrns.js";import"./chunk-z45t29sf.js";export{d as validateClientScript,c as processOnceDirective,b as processJsonDirective,e as processDirectives,a as injectRouterScript};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{pf as a}from"./chunk-
|
|
2
|
+
import{pf as a}from"./chunk-ev7490c4.js";import"./chunk-qs1kypwa.js";import"./chunk-xpxw2ked.js";import"./chunk-6gb72zp2.js";import"./chunk-82kkkpw2.js";import"./chunk-shyqtvbq.js";import"./chunk-abx8rmt4.js";import"./chunk-w1asc0zd.js";import"./chunk-xqwmj65h.js";import"./chunk-0ym08enb.js";import"./chunk-q4desjj6.js";import"./chunk-gfhzedsr.js";import"./chunk-sfaayvmn.js";import"./chunk-azfjfrns.js";import"./chunk-z45t29sf.js";export{a as startInteractive};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{js as E}from"./chunk-
|
|
2
|
+
import{js as E}from"./chunk-qs1kypwa.js";import{$u as D}from"./chunk-z45t29sf.js";import I from"path";async function M(k={}){let G=performance.now(),J=k.root||process.cwd(),j=await E(),q=j.ssr?"ssr":"ssg";console.log(`[stx build] Mode: ${q.toUpperCase()}${j.ssr?" (ssr: true in stx.config.ts)":" (default \u2014 ssr is false)"}`);let A,B;if(q==="ssg"){let{generateStaticSite:z}=await import("./ssg.js");A=await z({pagesDir:I.join(j.root||".",j.pagesDir||j.build?.pagesDir||"pages"),publicDir:j.publicDir||j.build?.publicDir||"public",outputDir:j.build?.outputDir||"dist",generate404:j.build?.generate404??!0,minify:j.build?.minify??!0,cleanOutput:j.build?.cleanOutput??!0,router:j.router,...k.ssg})}else{let{buildForProduction:z}=await import("./chunk-eakr9att.js");B=await z({outputDir:".output",debug:k.debug,...k.ssr})}let H=Math.round(performance.now()-G);return{mode:q,ssg:A,ssr:B,duration:H}}
|
|
3
3
|
export{M as Ef};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Ef as a}from"./chunk-
|
|
2
|
+
import{Ef as a}from"./chunk-c40n039h.js";import"./chunk-qs1kypwa.js";import"./chunk-xpxw2ked.js";import"./chunk-6gb72zp2.js";import"./chunk-82kkkpw2.js";import"./chunk-shyqtvbq.js";import"./chunk-abx8rmt4.js";import"./chunk-w1asc0zd.js";import"./chunk-xqwmj65h.js";import"./chunk-0ym08enb.js";import"./chunk-q4desjj6.js";import"./chunk-gfhzedsr.js";import"./chunk-sfaayvmn.js";import"./chunk-azfjfrns.js";import"./chunk-z45t29sf.js";export{a as buildApp};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{tk as m}from"./chunk-
|
|
2
|
+
import{tk as m}from"./chunk-an8s3rjv.js";import{$u as z}from"./chunk-z45t29sf.js";import{existsSync as s,mkdirSync as T,copyFileSync as F,chmodSync as A}from"fs";import{join as Z,basename as Yq}from"path";import{spawn as j,execSync as Zq}from"child_process";import{tmpdir as c,homedir as P,platform as Lq}from"os";var Iq=`
|
|
3
3
|
<script>
|
|
4
4
|
(function() {
|
|
5
5
|
'use strict';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{hs as a,is as b,js as c,ks as d,ls as e,ms as f}from"./chunk-
|
|
2
|
+
import{hs as a,is as b,js as c,ks as d,ls as e,ms as f}from"./chunk-qs1kypwa.js";import"./chunk-xpxw2ked.js";import"./chunk-6gb72zp2.js";import"./chunk-82kkkpw2.js";import"./chunk-shyqtvbq.js";import"./chunk-abx8rmt4.js";import"./chunk-w1asc0zd.js";import"./chunk-xqwmj65h.js";import"./chunk-0ym08enb.js";import"./chunk-q4desjj6.js";import"./chunk-gfhzedsr.js";import"./chunk-sfaayvmn.js";import"./chunk-azfjfrns.js";import"./chunk-z45t29sf.js";export{f as validateConfig,b as resolveStxDirectories,c as loadStxConfig,e as defineStxConfig,a as defaultConfig,d as config};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{bm as F,em as V,sm as I}from"./chunk-
|
|
2
|
+
import{bm as F,em as V,sm as I}from"./chunk-qs1kypwa.js";function R(j,W){let U=1,z=W,G="<template",X="</template";while(z<j.length&&U>0){let J=j.indexOf("<",z);if(J===-1)break;if(z=J,j.startsWith(G,z)&&(z+G.length>=j.length||/[\s>\/]/.test(j[z+G.length]))){U++,z+=G.length;continue}if(j.startsWith(X,z)){let Y=j.indexOf(">",z+X.length);if(Y!==-1){if(U--,U===0)return Y+1;z=Y+1;continue}}z++}return U===0?z:-1}var P=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]);function D(j,W){let U=null;for(let z=W;z<j.length;z++){let G=j[z];if(U){if(G==="\\"){z++;continue}if(G===U)U=null;continue}if(G==='"'||G==="'"){U=G;continue}if(G===">")return z+1}return-1}function b(j){let W=[],U=[],z=/^<template\s+(?:#([a-zA-Z][\w-]*)|v-slot:([a-zA-Z][\w-]*)|slot="([a-zA-Z][\w-]*)")(?:\s*=\s*"([^"]*)")?[^>]*>$/i,G=0;while(G<j.length){let X=j.indexOf("<",G);if(X===-1)break;if(j.startsWith("<!--",X)){let $=j.indexOf("-->",X+4);G=$===-1?j.length:$+3;continue}let J=D(j,X+1);if(J===-1)break;let Y=j.slice(X,J),Q=Y.match(/^<\s*(\/?)\s*([a-zA-Z][\w-]*)/);if(!Q){G=J;continue}let Z=Q[1]==="/",H=Q[2].toLowerCase();if(Z){let $=U.lastIndexOf(H);if($!==-1)U.splice($);G=J;continue}if(H==="template"&&U.length===0){let $=Y.match(z);if($){let K=R(j,J);if(K!==-1){let O=$[1]||$[2]||$[3];W.push({start:X,end:K,slotName:O,content:j.slice(J,K-11).trim(),propsBinding:$[4]||void 0}),G=K;continue}}}if(!/\/\s*>$/.test(Y)&&!P.has(H)){if(U.push(H),H==="script"||H==="style"){let $=j.toLowerCase().indexOf(`</${H}>`,J);if($!==-1){G=$;continue}}}G=J}return W}function w(j){let W={default:"",named:new Map},U=j,z=b(j);for(let Q of z)W.named.set(Q.slotName,{name:Q.slotName,content:Q.content,propsBinding:Q.propsBinding});z.sort((Q,Z)=>Z.start-Q.start);for(let Q of z)U=U.slice(0,Q.start)+U.slice(Q.end);let G=[],X=/<([a-zA-Z][a-zA-Z0-9-]*)\b([^>]*?)\bslot="([^"]+)"([^>]*)>([\s\S]*?)<\/\1>/gi,J;while((J=X.exec(U))!==null){let[Q,Z,H,_,$,K]=J,O=H.replace(/\s*slot="[^"]*"\s*/," ").trimEnd(),B=$.replace(/\s*slot="[^"]*"\s*/," ").trimEnd(),L=(O+B).trim(),q=`<${Z}${L?" "+L:""}>${K}</${Z}>`;G.push({start:J.index,end:J.index+Q.length,slotName:_,element:q})}let Y=/<([a-zA-Z][a-zA-Z0-9-]*)\b([^>]*?)\bslot="([^"]+)"([^>]*?)\/>/gi;while((J=Y.exec(U))!==null){let[Q,Z,H,_,$]=J,K=H.replace(/\s*slot="[^"]*"\s*/," ").trimEnd(),O=$.replace(/\s*slot="[^"]*"\s*/," ").trimEnd(),B=(K+O).trim(),L=`<${Z}${B?" "+B:""} />`;G.push({start:J.index,end:J.index+Q.length,slotName:_,element:L})}G.sort((Q,Z)=>Z.start-Q.start);for(let Q of G){let Z=W.named.get(Q.slotName);if(Z)Z.content+=Q.element;else W.named.set(Q.slotName,{name:Q.slotName,content:Q.element});U=U.slice(0,Q.start)+U.slice(Q.end)}return W.default=U.trim(),W}function C(j){let W=j.match(/name\s*=\s*["']([^"']+)["']/),U=W?W[1]:"",z={},G=/:([a-zA-Z][\w-]*)\s*=\s*["']([^"']+)["']/g,X;while((X=G.exec(j))!==null)z[X[1]]=X[2];let J=j.match(/<slot[^>]*>([\s\S]*?)<\/slot>/i),Y=J?J[1].trim():"";return{name:U,props:z,defaultContent:Y}}async function N(j,W,U,z){if(!j)return U;let G=j.content;if(j.propsBinding&&Object.keys(W).length>0){let X=j.propsBinding.trim(),J={...z};if(X.startsWith("{")&&X.endsWith("}")){let Y=X.slice(1,-1).split(",").map((Q)=>Q.trim()).filter(Boolean);for(let Q of Y){let[Z,H]=Q.split(":").map(($)=>$.trim()),_=H||Z;if(W[Z]!==void 0)J[_]=W[Z]}}else J[X]=W;G=k(G,J)}return G}function k(j,W){return j.replace(/\{\{\s*([^}]+)\s*\}\}/g,(U,z)=>{try{let G=z.trim(),X=y(G,W);return I(String(X??""))}catch{return`{{ ${z} }}`}})}function y(j,W){if(/^[a-zA-Z_$][\w$]*(\.[a-zA-Z_$][\w$]*)*$/.test(j)){let z=j.split("."),G=W;for(let X of z)if(G&&typeof G==="object"&&X in G)G=G[X];else return;return G}let U=j.match(/^([a-zA-Z_$][\w$]*)\s*([+\-*/])\s*(\d+)$/);if(U){let[,z,G,X]=U,J=W[z],Y=parseInt(X,10);if(typeof J==="number")switch(G){case"+":return J+Y;case"-":return J-Y;case"*":return J*Y;case"/":return J/Y}}try{if(!F(j))return;return V(j,Object.keys(W))(...Object.values(W))}catch{return}}async function A(j,W,U){let z=j;z=await v(z,/<slot\s+name\s*=\s*["']([^"']+)["']([^>]*?)(?:\/>|>([\s\S]*?)<\/slot>)/gi,async(J,Y,Q,Z)=>{let H=W.named.get(Y),_=Z?.trim()||"",$=Q||"",K={},O=/:([a-zA-Z_$][\w$-]*)\s*=\s*["']([^"']+)["']/g,B;while((B=O.exec($))!==null){let L=B[1],q=B[2];K[L]=y(q,U)}return await N(H,K,_,U)});let X=/<slot\s*(?:\/>|>([\s\S]*?)<\/slot>)/gi;return z=z.replace(X,(J,Y)=>{if(J.includes("name="))return J;let Q=Y?.trim()||"";return W.default||Q}),z}async function v(j,W,U){let z=[],G=[];j.replace(W,(Y,...Q)=>{let Z=Q[Q.length-2];return G.push({match:Y,index:Z}),z.push(U(Y,...Q.slice(0,-2))),Y});let X=await Promise.all(z),J=j;for(let Y=G.length-1;Y>=0;Y--){let{match:Q,index:Z}=G[Y];J=J.slice(0,Z)+X[Y]+J.slice(Z+Q.length)}return J}function E(j){let W=w(j);return{defaultSlot:W.default,namedSlots:W.named}}async function M(j,W,U,z){return await A(j,{default:W,named:U},z)}
|
|
3
3
|
export{w as Eh,C as Fh,N as Gh,A as Hh,E as Ih,M as Jh};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Tg as a}from"./chunk-
|
|
2
|
+
import{Tg as a}from"./chunk-0m5vyswh.js";import"./chunk-gyr2qp4d.js";import"./chunk-1wbr71dj.js";import"./chunk-zkbgy7kj.js";import"./chunk-w95sp0k9.js";import"./chunk-58f0mthg.js";import"./chunk-qs1kypwa.js";import"./chunk-xpxw2ked.js";import"./chunk-6gb72zp2.js";import"./chunk-82kkkpw2.js";import"./chunk-shyqtvbq.js";import"./chunk-abx8rmt4.js";import"./chunk-w1asc0zd.js";import"./chunk-xqwmj65h.js";import"./chunk-0ym08enb.js";import"./chunk-q4desjj6.js";import"./chunk-gfhzedsr.js";import"./chunk-sfaayvmn.js";import"./chunk-azfjfrns.js";import"./chunk-z45t29sf.js";export{a as buildForProduction};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Mq as X,ym as W}from"./chunk-
|
|
2
|
+
import{Mq as X,ym as W}from"./chunk-qs1kypwa.js";import V from"fs";import M from"path";import*as Y from"readline";var j={reset:"\x1B[0m",bold:"\x1B[1m",dim:"\x1B[2m",red:"\x1B[31m",green:"\x1B[32m",yellow:"\x1B[33m",blue:"\x1B[34m",magenta:"\x1B[35m",cyan:"\x1B[36m"},Q={help:{description:"Show available commands",usage:"help [command]",handler:async(q,z)=>{if(q[0]&&Q[q[0]]){let A=Q[q[0]];console.log(`
|
|
3
3
|
${j.bold}${q[0]}${j.reset} - ${A.description}`),console.log(` Usage: ${j.cyan}${A.usage}${j.reset}
|
|
4
4
|
`)}else{console.log(`
|
|
5
5
|
${j.bold}Available Commands:${j.reset}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Ap as f,Bp as g,Cp as h,Dp as i,Ep as j,vp as a,wp as b,xp as c,yp as d,zp as e}from"./chunk-
|
|
2
|
+
import{Ap as f,Bp as g,Cp as h,Dp as i,Ep as j,vp as a,wp as b,xp as c,yp as d,zp as e}from"./chunk-qs1kypwa.js";import"./chunk-xpxw2ked.js";import"./chunk-6gb72zp2.js";import"./chunk-82kkkpw2.js";import"./chunk-shyqtvbq.js";import"./chunk-abx8rmt4.js";import"./chunk-w1asc0zd.js";import"./chunk-xqwmj65h.js";import"./chunk-0ym08enb.js";import"./chunk-q4desjj6.js";import"./chunk-gfhzedsr.js";import"./chunk-sfaayvmn.js";import"./chunk-azfjfrns.js";import"./chunk-z45t29sf.js";export{b as stripTypeScript,h as splitDeclaration,c as isModuleResolutionFailure,d as isMissingBindingFailure,f as isCompleteImport,j as hasVariables,e as extractVariables,i as extractScriptFromTemplate,g as convertToCommonJS,a as STX_ENGINE_BINDING_NAMES};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{ih as t,jh as e,lh as b,uh as JJ}from"./chunk-v6hbnwsr.js";import{Am as v,Qm as u,Rm as l,hp as o,jm as y,km as P,tm as x,zp as g}from"./chunk-097mr013.js";import{Nu as s,Ru as OJ,ku as a}from"./chunk-sfaayvmn.js";import{$u as R}from"./chunk-z45t29sf.js";import r from"fs";import B from"path";var{serve:IJ}=globalThis.Bun;function q(J,K,Q={}){let X=`${encodeURIComponent(J)}=${encodeURIComponent(K)}`;if(Q.maxAge!==void 0)X+=`; Max-Age=${Q.maxAge}`;if(Q.expires)X+=`; Expires=${Q.expires.toUTCString()}`;if(Q.path)X+=`; Path=${Q.path}`;if(Q.domain)X+=`; Domain=${Q.domain}`;if(Q.secure)X+="; Secure";if(Q.httpOnly)X+="; HttpOnly";if(Q.sameSite)X+=`; SameSite=${Q.sameSite}`;return X}async function KJ(J){let K=J.headers.get("content-type")||"",Q={},X=(Z,$)=>{let G=Q[Z];if(G===void 0)Q[Z]=$;else if(Array.isArray(G))G.push($);else Q[Z]=[G,$]};if(K.includes("multipart/form-data")){let Z=await J.formData();for(let[$,G]of Z.entries())if(typeof G==="string")X($,G);return Q}if(K.includes("application/x-www-form-urlencoded")){for(let[Z,$]of new URLSearchParams(await J.text()).entries())X(Z,$);return Q}return Q}function f(J){if(!J)return!1;let K=J.toUpperCase();return K!=="GET"&&K!=="HEAD"}async function h(J,K={}){let Q=K.request,X=K.method??Q?.method;if(!Q||!f(X))return{ran:!1};if(typeof J.action!=="function")return{ran:!1};let Z={};try{Z=await KJ(Q)}catch{}let $=await J.action({request:Q,form:Z,params:K.params??{},query:J.query??{},cookies:K.cookies??{}});if($&&typeof $==="object"){let G=$,W=QJ(G.cookies),I=G.redirect;if(typeof I==="string"&&I)return{redirect:I,ran:!0,...W.length>0?{cookies:W}:{}};let{cookies:_,redirect:N,...U}=G;if(Object.assign(J,U),W.length>0)return{ran:!0,cookies:W}}return{ran:!0}}function QJ(J){if(!J||typeof J!=="object"||Array.isArray(J))return[];let K=[];for(let[Q,X]of Object.entries(J)){if(!Q)continue;if(typeof X==="string"){K.push(q(Q,X));continue}if(X&&typeof X==="object"){let Z=X;if(typeof Z.value!=="string")continue;K.push(q(Q,Z.value,Z))}}return K}function m(J,K=[],Q){let X=new Headers({Location:J,"Cache-Control":"no-store"});for(let Z of K)X.append("Set-Cookie",Z);for(let[Z,$]of Object.entries(Q??{}))if(Z.toLowerCase()!=="location")X.set(Z,$);return new Response(null,{status:303,headers:X})}async function wJ(J,K={}){return(await c(J,K)).html}async function d(J,K={}){let{html:Q,context:X,redirect:Z,cookies:$}=await c(J,K),G=u(X),W=l(X);if(Z)return{html:Q,redirect:Z,cookies:$,status:G,headers:W};let{extractStreamBoundaries:I}=await import("./chunk-a0d90w21.js"),_=I(X),N=J.streamTemplates;if(N&&Object.keys(N).length>0){let{processDirectives:U}=await import("./chunk-4jts2f6t.js"),{defaultConfig:z}=await import("./chunk-cdfq3xpd.js"),O=X.streamBoundaries||{},w={...z,autoShell:!1},D=Object.keys(N).map((V)=>({id:V,render:async()=>{let F=typeof O[V]==="function"?await O[V]():void 0;return U(N[V],{...X,$boundary:F},J.sourceFile,w,new Set)}})),E=new Set(D.map((V)=>V.id));_=[...(_||[]).filter((V)=>!E.has(V.id)),...D]}return{html:Q,boundaries:_&&_.length>0?_:void 0,cookies:$,status:G,headers:W}}async function c(J,K){let Q={__filename:J.sourceFile,__dirname:J.sourceFile.replace(/[/\\][^/\\]+$/,""),...K};if(!J.hasServerScripts&&!P(J.html))return{html:J.html,context:Q};for(let $ of J.serverScriptContent)try{await g($,Q,J.sourceFile)}catch(G){console.warn(`[stx] Server script error in ${J.sourceFile}:`,G)}let X=await h(Q,{request:K.request,method:K.method,params:K.params??{},cookies:K.cookies??{}});if(X.redirect)return{html:J.html,context:Q,redirect:X.redirect,cookies:X.cookies};if(!P(J.html))return{html:J.html,context:Q,cookies:X.cookies};let Z=new Map;for(let[$,G]of Object.entries(J.placeholders))if(G.expression)try{let W=v(G.expression,Q);if(G.type==="raw")Z.set($,W!==void 0&&W!==null?String(W):"");else Z.set($,W!==void 0&&W!==null?x(String(W)):"")}catch{Z.set($,"")}return{html:y(J.html,Z),context:Q,cookies:X.cookies}}async function AJ(J,K={}){if(!J.hasServerScripts&&!P(J.fragment))return J.fragment;let Q={__filename:J.sourceFile,__dirname:J.sourceFile.replace(/[/\\][^/\\]+$/,""),...K};for(let Z of J.serverScriptContent)try{await g(Z,Q,J.sourceFile)}catch($){console.warn(`[stx] Server script error in ${J.sourceFile}:`,$)}if(!P(J.fragment))return J.fragment;let X=new Map;for(let[Z,$]of Object.entries(J.placeholders))if($.expression)try{let G=v($.expression,Q);if($.type==="raw")X.set(Z,G!==void 0&&G!==null?String(G):"");else X.set(Z,G!==void 0&&G!==null?x(String(G)):"")}catch{X.set(Z,"")}return y(J.fragment,X)}OJ();import C from"zlib";import{promisify as n}from"util";var XJ=n(C.brotliCompress),ZJ=n(C.gzip),$J=["text/","application/json","application/javascript","application/xml","application/xhtml+xml","application/rss+xml","application/atom+xml","application/manifest+json","image/svg+xml"],GJ=["text/event-stream","multipart/x-mixed-replace"],UJ=1024;function WJ(J){if(!J)return!1;let K=J.toLowerCase();if(GJ.some((Q)=>K.startsWith(Q)))return!1;return $J.some((Q)=>K.startsWith(Q))}function jJ(J){let K=new Map;for(let Q of J.split(",")){let[X,...Z]=Q.trim().split(";"),$=X.trim().toLowerCase();if(!$)continue;let G=1;for(let W of Z){let I=/^\s*q\s*=\s*([\d.]+)\s*$/i.exec(W);if(!I)continue;let _=Number.parseFloat(I[1]);if(Number.isFinite(_))G=_}K.set($,G)}return K}function YJ(J){if(!J)return null;let K=jJ(J),Q=K.get("*"),X=(Z)=>K.get(Z)??Q??0;if(X("br")>0)return"br";if(X("gzip")>0)return"gzip";return null}async function i(J,K,Q={}){if(K.headers.get("content-encoding"))return K;if(K.status===204||K.status===304||!K.body)return K;if(!WJ(K.headers.get("content-type")))return K;let X=YJ(J.headers.get("accept-encoding"));if(!X)return K;let Z;try{Z=new Uint8Array(await K.arrayBuffer())}catch{return K}let $=()=>new Response(Z,{status:K.status,statusText:K.statusText,headers:p(K.headers)});if(Z.length<(Q.threshold??UJ))return $();try{let G=X==="br"?await XJ(Z,{params:{[C.constants.BROTLI_PARAM_QUALITY]:Q.quality??5,[C.constants.BROTLI_PARAM_SIZE_HINT]:Z.length}}):await ZJ(Z);if(G.length>=Z.length)return $();let W=p(K.headers);return W.set("Content-Encoding",X),W.set("Content-Length",String(G.length)),new Response(G,{status:K.status,statusText:K.statusText,headers:W})}catch{return $()}}function p(J){let K=new Headers(J),Q=K.get("Vary");if(!Q)return K.set("Vary","Accept-Encoding"),K;if(!Q.split(",").some((Z)=>Z.trim().toLowerCase()==="accept-encoding"))K.set("Vary",`${Q}, Accept-Encoding`);return K}var _J={".js":"application/javascript",".mjs":"application/javascript",".css":"text/css",".json":"application/json",".html":"text/html",".txt":"text/plain",".xml":"application/xml",".pdf":"application/pdf",".png":"image/png",".jpg":"image/jpeg",".jpeg":"image/jpeg",".gif":"image/gif",".webp":"image/webp",".avif":"image/avif",".svg":"image/svg+xml",".ico":"image/x-icon",".bmp":"image/bmp",".mp4":"video/mp4",".webm":"video/webm",".ogg":"audio/ogg",".mp3":"audio/mpeg",".wav":"audio/wav",".woff":"font/woff",".woff2":"font/woff2",".ttf":"font/ttf",".otf":"font/otf",".eot":"application/vnd.ms-fontobject"};async function mJ(J={}){let K=B.resolve(J.outputDir||".output"),Q=J.port||3000,X=JJ(K);if(!X)console.error("[stx] No build manifest found. Run `stx build` first."),process.exit(1);console.log(`[stx] Production server loading ${X.routes.length} routes...`);let Z=new Map,$=new Map,G=new Map,W=new Map;for(let U of X.routes)try{let z=B.join(K,U.compiledPath),O=JSON.parse(await Bun.file(z).text());Z.set(U.pattern,O),G.set(U.pattern,s(O.html)),W.set(U.pattern,o(O.html));let w=B.join(K,U.fragmentPath);if(await Bun.file(w).exists())$.set(U.pattern,await Bun.file(w).text())}catch(z){console.warn(`[stx] Failed to load route ${U.pattern}:`,z)}let I=new Map,_=[];for(let U of X.routes)if(U.hasParams){let{regex:z,params:O}=a(U.pattern);_.push({regex:z,route:U,paramNames:O})}else I.set(U.pattern,U);let N=IJ({port:Q,async fetch(U){return i(U,await(async()=>{let O=new URL(U.url).pathname;if(J.onRequest){let j=await J.onRequest(U);if(j)return j}if(J.apiRoutes?.[O])return J.apiRoutes[O](U);if((U.method==="GET"||U.method==="HEAD")&&O!=="/"){let j=B.resolve(K,"public"),Y;try{Y=decodeURIComponent(O)}catch{Y=O}if(!Y.includes("\x00")){let L=B.resolve(j,`.${Y}`);if(L===j||L.startsWith(`${j}${B.sep}`))try{if(r.existsSync(L)&&r.statSync(L).isFile()){let M=B.extname(L).toLowerCase(),S=_J[M]||"application/octet-stream",H=O.startsWith("/__stx/")||/\.[0-9a-f]{8}\./.test(O);return new Response(Bun.file(L),{headers:{"Content-Type":S,"Cache-Control":H?"public, max-age=31536000, immutable":"public, max-age=3600"}})}}catch{}}}let w=e(U),D=null,E={};if(D=I.get(O)||null,!D)for(let{regex:j,route:Y,paramNames:L}of _){let A=O.match(j);if(A){D=Y,L.forEach((M,S)=>{E[M]=A[S+1]});break}}if(!D){let j=I.get("/404")||null;if(j){let Y=Z.get(j.pattern);if(Y)return new Response(Y.html,{status:404,headers:{"Content-Type":"text/html"}})}return new Response("Not Found",{status:404})}if(w){let j=$.get(D.pattern);if(j){let Y=G.get(D.pattern);return new Response(j,{headers:{"Content-Type":"text/html","X-STX-Fragment":"true",...W.has(D.pattern)?{"X-STX-Runtime":W.get(D.pattern)?"true":"false"}:{},...Y?{"X-STX-Layout":Y.layout,"X-STX-Layout-Group":Y.group}:{},...b(),"Cache-Control":t}})}}let V=f(U.method),F=Z.get(D.pattern);if(!F){let j=I.get("/500")||null;if(j){let Y=Z.get(j.pattern);if(Y)return new Response(Y.html,{status:500,headers:{"Content-Type":"text/html"}})}return new Response("Internal Server Error",{status:500})}if(!V&&!F.hasServerScripts&&Object.keys(F.placeholders).length===0)return new Response(F.html,{status:F.status??200,headers:{"Content-Type":"text/html",...b(),"Cache-Control":"public, max-age=60"}});try{let{html:j,boundaries:Y,redirect:L,cookies:A,status:M,headers:S}=await d(F,{params:E,request:U,method:U.method});if(L)return m(L,A,S);if(Y&&Y.length>0){let{renderStreamingPage:T,streamToResponse:k}=await import("./chunk-a0d90w21.js");return k(T(j,Y,{timeoutMs:30000}),{status:M??F.status??200,headers:{"Cache-Control":"no-cache",...S}})}let H=new Headers({"Content-Type":"text/html",...b(),"Cache-Control":"no-cache"});for(let T of A??[])H.append("Set-Cookie",T);for(let[T,k]of Object.entries(S??{}))H.set(T,k);return new Response(j,{status:M??F.status??200,headers:H})}catch(j){return console.error(`[stx] Hydration error for ${O}:`,j),new Response(F.html,{headers:{"Content-Type":"text/html"}})}})())}});return console.log(`[stx] Production server running at http://localhost:${Q}`),console.log(`[stx] Serving ${X.routes.length} routes (${Z.size} pre-loaded)`),{port:Q,stop:()=>N.stop()}}
|
|
2
|
+
import{ih as t,jh as e,lh as b,uh as JJ}from"./chunk-1wbr71dj.js";import{Am as v,Qm as u,Rm as l,hp as o,jm as y,km as P,tm as x,zp as g}from"./chunk-qs1kypwa.js";import{Nu as s,Ru as OJ,ku as a}from"./chunk-sfaayvmn.js";import{$u as R}from"./chunk-z45t29sf.js";import r from"fs";import B from"path";var{serve:IJ}=globalThis.Bun;function q(J,K,Q={}){let X=`${encodeURIComponent(J)}=${encodeURIComponent(K)}`;if(Q.maxAge!==void 0)X+=`; Max-Age=${Q.maxAge}`;if(Q.expires)X+=`; Expires=${Q.expires.toUTCString()}`;if(Q.path)X+=`; Path=${Q.path}`;if(Q.domain)X+=`; Domain=${Q.domain}`;if(Q.secure)X+="; Secure";if(Q.httpOnly)X+="; HttpOnly";if(Q.sameSite)X+=`; SameSite=${Q.sameSite}`;return X}async function KJ(J){let K=J.headers.get("content-type")||"",Q={},X=(Z,$)=>{let G=Q[Z];if(G===void 0)Q[Z]=$;else if(Array.isArray(G))G.push($);else Q[Z]=[G,$]};if(K.includes("multipart/form-data")){let Z=await J.formData();for(let[$,G]of Z.entries())if(typeof G==="string")X($,G);return Q}if(K.includes("application/x-www-form-urlencoded")){for(let[Z,$]of new URLSearchParams(await J.text()).entries())X(Z,$);return Q}return Q}function f(J){if(!J)return!1;let K=J.toUpperCase();return K!=="GET"&&K!=="HEAD"}async function h(J,K={}){let Q=K.request,X=K.method??Q?.method;if(!Q||!f(X))return{ran:!1};if(typeof J.action!=="function")return{ran:!1};let Z={};try{Z=await KJ(Q)}catch{}let $=await J.action({request:Q,form:Z,params:K.params??{},query:J.query??{},cookies:K.cookies??{}});if($&&typeof $==="object"){let G=$,W=QJ(G.cookies),I=G.redirect;if(typeof I==="string"&&I)return{redirect:I,ran:!0,...W.length>0?{cookies:W}:{}};let{cookies:_,redirect:N,...U}=G;if(Object.assign(J,U),W.length>0)return{ran:!0,cookies:W}}return{ran:!0}}function QJ(J){if(!J||typeof J!=="object"||Array.isArray(J))return[];let K=[];for(let[Q,X]of Object.entries(J)){if(!Q)continue;if(typeof X==="string"){K.push(q(Q,X));continue}if(X&&typeof X==="object"){let Z=X;if(typeof Z.value!=="string")continue;K.push(q(Q,Z.value,Z))}}return K}function m(J,K=[],Q){let X=new Headers({Location:J,"Cache-Control":"no-store"});for(let Z of K)X.append("Set-Cookie",Z);for(let[Z,$]of Object.entries(Q??{}))if(Z.toLowerCase()!=="location")X.set(Z,$);return new Response(null,{status:303,headers:X})}async function wJ(J,K={}){return(await c(J,K)).html}async function d(J,K={}){let{html:Q,context:X,redirect:Z,cookies:$}=await c(J,K),G=u(X),W=l(X);if(Z)return{html:Q,redirect:Z,cookies:$,status:G,headers:W};let{extractStreamBoundaries:I}=await import("./chunk-wz87behc.js"),_=I(X),N=J.streamTemplates;if(N&&Object.keys(N).length>0){let{processDirectives:U}=await import("./chunk-ashkqdsb.js"),{defaultConfig:z}=await import("./chunk-dgtbkxfd.js"),O=X.streamBoundaries||{},w={...z,autoShell:!1},D=Object.keys(N).map((V)=>({id:V,render:async()=>{let F=typeof O[V]==="function"?await O[V]():void 0;return U(N[V],{...X,$boundary:F},J.sourceFile,w,new Set)}})),E=new Set(D.map((V)=>V.id));_=[...(_||[]).filter((V)=>!E.has(V.id)),...D]}return{html:Q,boundaries:_&&_.length>0?_:void 0,cookies:$,status:G,headers:W}}async function c(J,K){let Q={__filename:J.sourceFile,__dirname:J.sourceFile.replace(/[/\\][^/\\]+$/,""),...K};if(!J.hasServerScripts&&!P(J.html))return{html:J.html,context:Q};for(let $ of J.serverScriptContent)try{await g($,Q,J.sourceFile)}catch(G){console.warn(`[stx] Server script error in ${J.sourceFile}:`,G)}let X=await h(Q,{request:K.request,method:K.method,params:K.params??{},cookies:K.cookies??{}});if(X.redirect)return{html:J.html,context:Q,redirect:X.redirect,cookies:X.cookies};if(!P(J.html))return{html:J.html,context:Q,cookies:X.cookies};let Z=new Map;for(let[$,G]of Object.entries(J.placeholders))if(G.expression)try{let W=v(G.expression,Q);if(G.type==="raw")Z.set($,W!==void 0&&W!==null?String(W):"");else Z.set($,W!==void 0&&W!==null?x(String(W)):"")}catch{Z.set($,"")}return{html:y(J.html,Z),context:Q,cookies:X.cookies}}async function AJ(J,K={}){if(!J.hasServerScripts&&!P(J.fragment))return J.fragment;let Q={__filename:J.sourceFile,__dirname:J.sourceFile.replace(/[/\\][^/\\]+$/,""),...K};for(let Z of J.serverScriptContent)try{await g(Z,Q,J.sourceFile)}catch($){console.warn(`[stx] Server script error in ${J.sourceFile}:`,$)}if(!P(J.fragment))return J.fragment;let X=new Map;for(let[Z,$]of Object.entries(J.placeholders))if($.expression)try{let G=v($.expression,Q);if($.type==="raw")X.set(Z,G!==void 0&&G!==null?String(G):"");else X.set(Z,G!==void 0&&G!==null?x(String(G)):"")}catch{X.set(Z,"")}return y(J.fragment,X)}OJ();import C from"zlib";import{promisify as n}from"util";var XJ=n(C.brotliCompress),ZJ=n(C.gzip),$J=["text/","application/json","application/javascript","application/xml","application/xhtml+xml","application/rss+xml","application/atom+xml","application/manifest+json","image/svg+xml"],GJ=["text/event-stream","multipart/x-mixed-replace"],UJ=1024;function WJ(J){if(!J)return!1;let K=J.toLowerCase();if(GJ.some((Q)=>K.startsWith(Q)))return!1;return $J.some((Q)=>K.startsWith(Q))}function jJ(J){let K=new Map;for(let Q of J.split(",")){let[X,...Z]=Q.trim().split(";"),$=X.trim().toLowerCase();if(!$)continue;let G=1;for(let W of Z){let I=/^\s*q\s*=\s*([\d.]+)\s*$/i.exec(W);if(!I)continue;let _=Number.parseFloat(I[1]);if(Number.isFinite(_))G=_}K.set($,G)}return K}function YJ(J){if(!J)return null;let K=jJ(J),Q=K.get("*"),X=(Z)=>K.get(Z)??Q??0;if(X("br")>0)return"br";if(X("gzip")>0)return"gzip";return null}async function i(J,K,Q={}){if(K.headers.get("content-encoding"))return K;if(K.status===204||K.status===304||!K.body)return K;if(!WJ(K.headers.get("content-type")))return K;let X=YJ(J.headers.get("accept-encoding"));if(!X)return K;let Z;try{Z=new Uint8Array(await K.arrayBuffer())}catch{return K}let $=()=>new Response(Z,{status:K.status,statusText:K.statusText,headers:p(K.headers)});if(Z.length<(Q.threshold??UJ))return $();try{let G=X==="br"?await XJ(Z,{params:{[C.constants.BROTLI_PARAM_QUALITY]:Q.quality??5,[C.constants.BROTLI_PARAM_SIZE_HINT]:Z.length}}):await ZJ(Z);if(G.length>=Z.length)return $();let W=p(K.headers);return W.set("Content-Encoding",X),W.set("Content-Length",String(G.length)),new Response(G,{status:K.status,statusText:K.statusText,headers:W})}catch{return $()}}function p(J){let K=new Headers(J),Q=K.get("Vary");if(!Q)return K.set("Vary","Accept-Encoding"),K;if(!Q.split(",").some((Z)=>Z.trim().toLowerCase()==="accept-encoding"))K.set("Vary",`${Q}, Accept-Encoding`);return K}var _J={".js":"application/javascript",".mjs":"application/javascript",".css":"text/css",".json":"application/json",".html":"text/html",".txt":"text/plain",".xml":"application/xml",".pdf":"application/pdf",".png":"image/png",".jpg":"image/jpeg",".jpeg":"image/jpeg",".gif":"image/gif",".webp":"image/webp",".avif":"image/avif",".svg":"image/svg+xml",".ico":"image/x-icon",".bmp":"image/bmp",".mp4":"video/mp4",".webm":"video/webm",".ogg":"audio/ogg",".mp3":"audio/mpeg",".wav":"audio/wav",".woff":"font/woff",".woff2":"font/woff2",".ttf":"font/ttf",".otf":"font/otf",".eot":"application/vnd.ms-fontobject"};async function mJ(J={}){let K=B.resolve(J.outputDir||".output"),Q=J.port||3000,X=JJ(K);if(!X)console.error("[stx] No build manifest found. Run `stx build` first."),process.exit(1);console.log(`[stx] Production server loading ${X.routes.length} routes...`);let Z=new Map,$=new Map,G=new Map,W=new Map;for(let U of X.routes)try{let z=B.join(K,U.compiledPath),O=JSON.parse(await Bun.file(z).text());Z.set(U.pattern,O),G.set(U.pattern,s(O.html)),W.set(U.pattern,o(O.html));let w=B.join(K,U.fragmentPath);if(await Bun.file(w).exists())$.set(U.pattern,await Bun.file(w).text())}catch(z){console.warn(`[stx] Failed to load route ${U.pattern}:`,z)}let I=new Map,_=[];for(let U of X.routes)if(U.hasParams){let{regex:z,params:O}=a(U.pattern);_.push({regex:z,route:U,paramNames:O})}else I.set(U.pattern,U);let N=IJ({port:Q,async fetch(U){return i(U,await(async()=>{let O=new URL(U.url).pathname;if(J.onRequest){let j=await J.onRequest(U);if(j)return j}if(J.apiRoutes?.[O])return J.apiRoutes[O](U);if((U.method==="GET"||U.method==="HEAD")&&O!=="/"){let j=B.resolve(K,"public"),Y;try{Y=decodeURIComponent(O)}catch{Y=O}if(!Y.includes("\x00")){let L=B.resolve(j,`.${Y}`);if(L===j||L.startsWith(`${j}${B.sep}`))try{if(r.existsSync(L)&&r.statSync(L).isFile()){let M=B.extname(L).toLowerCase(),S=_J[M]||"application/octet-stream",H=O.startsWith("/__stx/")||/\.[0-9a-f]{8}\./.test(O);return new Response(Bun.file(L),{headers:{"Content-Type":S,"Cache-Control":H?"public, max-age=31536000, immutable":"public, max-age=3600"}})}}catch{}}}let w=e(U),D=null,E={};if(D=I.get(O)||null,!D)for(let{regex:j,route:Y,paramNames:L}of _){let A=O.match(j);if(A){D=Y,L.forEach((M,S)=>{E[M]=A[S+1]});break}}if(!D){let j=I.get("/404")||null;if(j){let Y=Z.get(j.pattern);if(Y)return new Response(Y.html,{status:404,headers:{"Content-Type":"text/html"}})}return new Response("Not Found",{status:404})}if(w){let j=$.get(D.pattern);if(j){let Y=G.get(D.pattern);return new Response(j,{headers:{"Content-Type":"text/html","X-STX-Fragment":"true",...W.has(D.pattern)?{"X-STX-Runtime":W.get(D.pattern)?"true":"false"}:{},...Y?{"X-STX-Layout":Y.layout,"X-STX-Layout-Group":Y.group}:{},...b(),"Cache-Control":t}})}}let V=f(U.method),F=Z.get(D.pattern);if(!F){let j=I.get("/500")||null;if(j){let Y=Z.get(j.pattern);if(Y)return new Response(Y.html,{status:500,headers:{"Content-Type":"text/html"}})}return new Response("Internal Server Error",{status:500})}if(!V&&!F.hasServerScripts&&Object.keys(F.placeholders).length===0)return new Response(F.html,{status:F.status??200,headers:{"Content-Type":"text/html",...b(),"Cache-Control":"public, max-age=60"}});try{let{html:j,boundaries:Y,redirect:L,cookies:A,status:M,headers:S}=await d(F,{params:E,request:U,method:U.method});if(L)return m(L,A,S);if(Y&&Y.length>0){let{renderStreamingPage:T,streamToResponse:k}=await import("./chunk-wz87behc.js");return k(T(j,Y,{timeoutMs:30000}),{status:M??F.status??200,headers:{"Cache-Control":"no-cache",...S}})}let H=new Headers({"Content-Type":"text/html",...b(),"Cache-Control":"no-cache"});for(let T of A??[])H.append("Set-Cookie",T);for(let[T,k]of Object.entries(S??{}))H.set(T,k);return new Response(j,{status:M??F.status??200,headers:H})}catch(j){return console.error(`[stx] Hydration error for ${O}:`,j),new Response(F.html,{headers:{"Content-Type":"text/html"}})}})())}});return console.log(`[stx] Production server running at http://localhost:${Q}`),console.log(`[stx] Serving ${X.routes.length} routes (${Z.size} pre-loaded)`),{port:Q,stop:()=>N.stop()}}
|
|
3
3
|
export{WJ as Ff,YJ as Gf,i as Hf,q as If,KJ as Jf,f as Kf,h as Lf,m as Mf,wJ as Nf,d as Of,AJ as Pf,mJ as Qf};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Ql as C}from"./chunk-
|
|
2
|
+
import{Ql as C}from"./chunk-qs1kypwa.js";import{Rs as Y}from"./chunk-shyqtvbq.js";import{Qt as D}from"./chunk-gfhzedsr.js";import u from"path";var S=/<script(\s[^>]*)?>([\s\S]*?)<\/script>/gi;function h(K){let J=(Q)=>Q.replace(/[^\n]/g," ");return K.replace(/<!--[\s\S]*?-->/g,J).replace(/\{\{--[\s\S]*?--\}\}/g,J)}function m(K){let J=[],Q=h(K);S.lastIndex=0;let $;while(($=S.exec(Q))!==null){let j=($[1]||"").trim(),F=($[0].match(/^<script(?:\s[^>]*)?>/i)?.[0]??"<script>").length,z=($[0].match(/<\/script\s*>$/i)?.[0]??"</script>").length,W=$.index+F,Z=$.index+$[0].length-z,G=K.slice(W,Z);if(/\bsrc\s*=/.test(j))continue;let q=j.match(/\btype\s*=\s*["']([^"']+)["']/i);if(q&&!/^(?:module|text\/(?:javascript|typescript))$/i.test(q[1]))continue;let X=/\bserver\b/.test(j)?"server":/\bclient\b/.test(j)?"client":"plain",U=B(K,W);J.push({kind:X,code:G,startLine:U,attrs:j})}return J}function B(K,J){let Q=1;for(let $=0;$<J&&$<K.length;$++)if(K.charCodeAt($)===10)Q++;return Q}function N(K,J){let Q=K.lastIndexOf(`
|
|
3
3
|
`,J-1)+1;return J-Q+1}function g(K){let J=K.split(""),Q=(j,F)=>{for(let z=j;z<F&&z<J.length;z++)if(J[z]!==`
|
|
4
4
|
`)J[z]=" "},$=[/<script(?:\s[^>]*)?>[\s\S]*?<\/script>/gi,/<style(?:\s[^>]*)?>[\s\S]*?<\/style>/gi,/<!--[\s\S]*?-->/g,/\{\{--[\s\S]*?--\}\}/g,/@verbatim\b[\s\S]*?@endverbatim\b/g];for(let j of $){j.lastIndex=0;let F;while((F=j.exec(K))!==null)Q(F.index,F.index+F[0].length)}return J.join("")}function p(K){let J=0,Q="";for(let $=0;$<K.length;$++){let j=K[$];if(Q){if(j==="\\"){$++;continue}if(j===Q)Q="";continue}if(j==='"'||j==="'"||j==="`"){Q=j;continue}if(j==="("||j==="["||j==="{"){J++;continue}if(j===")"||j==="]"||j==="}"){J--;continue}if(j==="|"&&J===0){if(K[$+1]==="|"){$++;continue}if(K[$-1]==="|")continue;return K.slice(0,$)}}return K}var R=new Set([":for","x-for","v-for"]),w=/(?:^|\s)((?::|x-|v-|@)[\w.:-]+)\s*=\s*(["'])([\s\S]*?)\2/g,O="__stx_interpolated",y="__StxElement",f="__StxTemplateValue",l=`type ${f}<T> = T extends { readonly _isSignal: true } | { readonly _isDerived: true } ? (T extends () => infer V ? T & V : T) : T`;function L(K){return K.replace(/\{\{[\s\S]*?\}\}/g,O).replace(/\{!![\s\S]*?!!\}/g,O)}function Vj(K){return K.replace(/\{\{[\s\S]*?\}\}|\{!![\s\S]*?!!\}/g,(J)=>{let Q=J.split(`
|
|
5
5
|
`).length-1,$=J.length-Q;return`0${" ".repeat(Math.max(0,$-1))}${`
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{$ as rl,$a as ln,$b as Do,$c as Dp,$d as Dq,A as bk,Aa as vm,Ab as Xn,Ac as cp,Ad as cq,Ae as ir,B as ck,Ba as wm,Bb as Yn,Bc as dp,Bd as dq,Be as jr,C as dk,Ca as Jm,Cb as Zn,Cc as ep,Cd as eq,Ce as kr,D as ek,Da as Km,Db as _n,Dc as fp,Dd as fq,De as lr,E as Wk,Ea as Lm,Eb as $n,Ec as gp,Ed as gq,Ee as mr,F as Xk,Fa as Mm,Fb as ao,Fc as hp,Fd as hq,Fe as nr,G as Yk,Ga as Nm,Gb as bo,Gc as ip,Gd as iq,Ge as or,H as Zk,Ha as Om,Hb as co,Hc as jp,Hd as jq,He as pr,I as _k,Ia as Sm,Ib as eo,Ic as kp,Id as kq,Ie as qr,J as $k,Ja as Tm,Jb as fo,Jc as lp,Jd as lq,Je as rr,K as al,Ka as Um,Kb as go,Kc as mp,Kd as mq,Ke as sr,L as bl,La as Vm,Lb as ho,Lc as np,Ld as nq,Le as tr,M as cl,Ma as Wm,Mb as oo,Mc as op,Md as oq,Me as ur,N as dl,Na as Xm,Nb as po,Nc as pp,Nd as pq,Ne as vr,O as el,Oa as Ym,Ob as qo,Oc as qp,Od as qq,Oe as wr,P as fl,Pa as Zm,Pb as ro,Pc as rp,Pd as rq,Pe as xr,Q as gl,Qa as _m,Qb as so,Qc as sp,Qd as sq,Qe as yr,R as hl,Ra as $m,Rb as to,Rc as tp,Rd as tq,Re as zr,S as il,Sa as an,Sb as uo,Sc as up,Sd as uq,Se as Ar,T as jl,Ta as bn,Tb as vo,Tc as vp,Td as vq,Te as Br,U as kl,Ua as cn,Ub as wo,Uc as wp,Ud as wq,Ue as Cr,V as ll,Va as dn,Vb as xo,Vc as xp,Vd as xq,Ve as Dr,W as ml,Wa as fn,Wb as yo,Wc as yp,Wd as yq,We as Er,X as nl,Xa as gn,Xb as zo,Xc as zp,Xd as zq,Y as ol,Ya as hn,Yb as Ao,Yc as Ap,Yd as Aq,Z as pl,Za as jn,Zb as Bo,Zc as Bp,Zd as Bq,_ as ql,_a as kn,_b as Co,_c as Cp,_d as Cq,aa as sl,ab as mn,ac as Eo,ad as Ep,ae as Eq,ba as tl,bb as nn,bc as Fo,bd as Fp,be as Fq,ca as ul,cb as on,cc as Go,cd as Gp,ce as Gq,da as vl,db as pn,dc as Ho,dd as Hp,de as Hq,ea as wl,eb as qn,ec as Io,ed as Ip,ee as Iq,fa as xl,fb as rn,fc as Jo,fd as Jp,fe as Jq,ga as yl,gb as sn,gc as Ko,gd as Kp,ge as Kq,ha as zl,hb as tn,hc as Lo,hd as Lp,he as Lq,ia as Al,ib as un,ic as Mo,id as Mp,ie as Mq,ja as Bl,jb as vn,jc as No,jd as Np,je as Nq,ka as Cl,kb as wn,kc as Oo,kd as Op,ke as Oq,la as Dl,lb as xn,lc as Po,ld as Pp,le as Pq,ma as El,mb as yn,mc as Qo,md as Qp,me as Qq,na as Fl,nb as Bn,nc as Ro,nd as Rp,ne as Xq,o as a,oa as Gl,ob as Cn,oc as So,od as Sp,oe as Yq,p as Oj,pa as km,pb as Dn,pc as To,pd as Tp,pe as Zq,q as Pj,qa as lm,qb as En,qc as Uo,qd as Up,qe as _q,r as Qj,ra as mm,rb as Kn,rc as Vo,rd as Vp,re as $q,s as Rj,sa as nm,sb as Ln,sc as Wo,sd as Wp,se as ar,t as Sj,ta as om,tb as Mn,tc as Xo,td as Xp,te as br,u as Tj,ua as pm,ub as Nn,uc as Yo,ud as Yp,ue as cr,v as Uj,va as qm,vb as Sn,vc as Zo,vd as Zp,ve as dr,w as Vj,wa as rm,wb as Tn,wc as _o,wd as _p,we as er,x as Wj,xa as sm,xb as Un,xc as $o,xd as $p,xe as fr,y as $j,ya as tm,yb as Vn,yc as ap,yd as aq,ye as gr,z as ak,za as um,zb as Wn,zc as bp,zd as bq,ze as hr}from"./chunk-f5xwj2jb.js";import{$e as Ok,Xe as Kk,Ye as Lk,Ze as Mk,_e as Nk,af as Pk,bf as Qk,cf as Rk,df as Sk,ef as Tk,ff as Uk,gf as Vk}from"./chunk-shh4jfwc.js";import{hf as io,if as jo,jf as ko,kf as lo,lf as mo,mf as no}from"./chunk-10k12msb.js";import{nf as zn,of as An}from"./chunk-n3ggrhb3.js";import{pf as Fn}from"./chunk-zrgctphh.js";import{Af as Hm,Bf as Im,qf as xm,rf as ym,sf as zm,tf as Am,uf as Bm,vf as Cm,wf as Dm,xf as Em,yf as Fm,zf as Gm}from"./chunk-vqxmxgaj.js";import{Cf as Ik,Df as Jk}from"./chunk-71r0nchv.js";import{Ef as jm}from"./chunk-66r6fvwj.js";import{Ff as Pm,Gf as Qm,Hf as Rm,If as en,Jf as Gn,Kf as Hn,Lf as In,Mf as Jn,Nf as On,Of as Pn,Pf as Qn,Qf as Rn}from"./chunk-6sxd0ksd.js";import{$f as pk,Rf as fk,Sf as gk,Tf as hk,Uf as ik,Vf as jk,Wf as kk,Xf as lk,Yf as mk,Zf as nk,_f as ok,ag as qk,bg as rk,cg as sk,dg as tk}from"./chunk-nx5qkm8k.js";import{eg as bj,fg as cj,gg as dj,hg as ej,ig as fj,jg as gj,kg as hj,lg as ij,mg as jj,ng as kj,og as lj}from"./chunk-5d0jtpqm.js";import{pg as Dj,rg as Ej}from"./chunk-bz820epz.js";import{Ag as xk,Bg as yk,Cg as zk,Dg as Ak,Fg as Bk,Gg as Ck,Hg as Dk,Ig as Ek,Jg as Fk,Kg as Gk,Ng as Hk,xg as uk,yg as vk,zg as wk}from"./chunk-e8jazdsk.js";import{Og as _l,Pg as $l,Qg as am,Rg as bm,Sg as em,Tg as im}from"./chunk-gvqzd5zp.js";import{Ug as cm,Xg as dm}from"./chunk-88pp8bf9.js";import{dh as Hl,eh as Il,fh as Jl,gh as Kl,hh as Ll,ih as Ml,jh as Nl,kh as Ol,lh as Pl,mh as Ql,nh as Rl,oh as Sl,ph as Tl,qh as Ul,rh as Vl,sh as fm,th as gm,uh as hm}from"./chunk-v6hbnwsr.js";import{vh as nh,wh as oh,xh as ph,yh as qh}from"./chunk-49kk0s96.js";import{Dh as rh}from"./chunk-w3ycm4na.js";import{Eh as yh,Fh as zh,Gh as Ah,Hh as Bh,Ih as Ch,Jh as Dh}from"./chunk-jvyz1k0v.js";import{Kh as Si,Lh as Ti,Mh as Ui,Qh as Vi,Rh as Wi,Sh as Xi}from"./chunk-9p25rqhp.js";import{$h as Pi,Th as Ii,Uh as Ji,Vh as Ki,Wh as Li,Xh as Mi,Zh as Ni,_h as Oi,ai as Qi,bi as Ri}from"./chunk-74cv4ta1.js";import{ci as yg,di as zg,ei as Ag,fi as Bg,gi as Cg,hi as Dg}from"./chunk-wcm80anz.js";import{ii as Eg,ji as Fg,ki as Gg,li as Hg,mi as Ig}from"./chunk-y7m2dpd3.js";import{ni as Jg,oi as Kg,pi as Lg,qi as Mg,ri as Ng}from"./chunk-9y0g8kzt.js";import{si as Og,ti as Pg,ui as Qg,vi as Rg,wi as Sg,xi as Tg,yi as Ug}from"./chunk-t6nseeb9.js";import{Ai as Wg,Bi as Xg,Ci as Yg,Di as Zg,Ei as _g,zi as Vg}from"./chunk-xttsqmkm.js";import{Gi as $g,Hi as ah,Ii as bh,Ji as ch,Ki as dh,Li as eh,Mi as fh,Ni as gh,Oi as hh,Pi as ih,Qi as jh,Ri as kh,Si as lh,Ti as mh}from"./chunk-54st8g2j.js";import{Vi as sg,Wi as tg}from"./chunk-qmsrqmh0.js";import{Zi as ug}from"./chunk-mc91191e.js";import"./chunk-9n0gvfrg.js";import{bj as vg}from"./chunk-7q9mwh4v.js";import{cj as wg,dj as xg}from"./chunk-refwkt87.js";import{ej as ge,fj as he,gj as ie,hj as je,ij as ke,jj as le,kj as me,lj as ne,mj as oe,nj as pe,oj as qe,pj as re,qj as se,rj as te}from"./chunk-havsy38b.js";import{sj as Ue,tj as Ve}from"./chunk-2bjdjnqf.js";import{Aj as Ge,Bj as He,Cj as Ie,Dj as Je,Ej as Ke,Fj as Le,Gj as Me,Hj as Ne,Ij as Oe,Jj as Pe,Kj as Qe,Lj as Re,Mj as Se,Nj as Te}from"./chunk-w95sp0k9.js";import{Oj as We,Pj as Xe,Qj as Ye,Rj as Ze,Sj as _e,Tj as $e,Uj as af,Vj as bf,Wj as cf,Xj as df,Yj as ef}from"./chunk-gfwqv3qk.js";import{qk as Rq,rk as Sq,sk as Tq,tk as Uq,uk as Vq,vk as Wq}from"./chunk-9mkmrttg.js";import{Ak as Wl,Bk as Xl,Ck as Yl,Dk as Zl,wk as Xj,xk as Yj,yk as Zj,zk as _j}from"./chunk-3yg0f94g.js";import"./chunk-58f0mthg.js";import"./chunk-3kn8xkm8.js";import{$l as Xa,$m as Wb,$n as Wc,$o as Ae,$p as Hf,$q as Nh,$r as vj,Al as J,Am as qb,An as vc,Ao as Ld,Aq as gg,Ar as vi,Bl as da,Bm as rb,Bn as wc,Bo as Md,Bp as hf,Bq as hg,Br as wi,Cl as ea,Cm as yb,Cn as xc,Co as Nd,Cq as ig,Cr as xi,Dl as fa,Dm as zb,Dn as yc,Do as Od,Dp as jf,Dq as jg,Dr as yi,El as ga,Em as Ab,En as zc,Eo as Pd,Ep as kf,Eq as kg,Er as zi,Fl as ha,Fm as Bb,Fn as Ac,Fo as Qd,Fp as lf,Fq as lg,Fr as Ai,Gl as ia,Gm as Cb,Gn as Bc,Go as Rd,Gp as mf,Gq as mg,Gr as Bi,Hm as Db,Hn as Cc,Ho as Sd,Hp as nf,Hq as ng,Hr as Ci,Im as Eb,In as Dc,Io as Td,Ip as of,Iq as og,Ir as Di,Jl as za,Jn as Ec,Jo as Ud,Jp as pf,Jq as pg,Jr as Ei,Kl as Aa,Km as Fb,Kn as Fc,Ko as Vd,Kp as qf,Kq as qg,Kr as Fi,Ll as Ba,Lm as Gb,Ln as Gc,Lo as Wd,Lp as rf,Lq as rg,Lr as Gi,Ml as Ca,Mm as Hb,Mn as Hc,Mo as Xd,Mp as sf,Mq as sh,Mr as Hi,Nl as Da,Nm as Ib,Nn as Ic,No as Yd,Np as tf,Nq as th,Nr as Yi,Om as Jb,On as Jc,Oo as Zd,Op as uf,Oq as uh,Or as Zi,Pm as Kb,Pn as Kc,Po as _d,Pp as vf,Pq as vh,Pr as _i,Ql as Ga,Qm as Lb,Qn as Lc,Qo as $d,Qp as wf,Qq as wh,Qr as $i,Rl as Ha,Rm as Mb,Rn as Mc,Ro as ae,Rp as xf,Rq as xh,Rr as aj,Sl as Ia,Sm as Nb,Sn as Nc,So as be,Sp as yf,Sq as Eh,Sr as mj,Tl as Pa,Tm as Ob,Tn as Oc,To as ce,Tp as zf,Tq as Fh,Tr as nj,Ul as Qa,Um as Pb,Un as Pc,Uo as de,Up as Af,Uq as Gh,Ur as oj,Vl as Ra,Vm as Qb,Vn as Qc,Vo as ee,Vp as Bf,Vq as Hh,Vr as pj,Wl as Sa,Wm as Rb,Wn as Rc,Wo as fe,Wp as Cf,Wq as Ih,Wr as qj,Xl as Ta,Xm as Sb,Xn as Sc,Xp as Df,Xq as Jh,Xr as rj,Yl as Ua,Ym as Tb,Yn as Tc,Yo as xe,Yp as Ef,Yq as Kh,Yr as sj,Zl as Va,Zm as Ub,Zn as Uc,Zo as ye,Zp as Ff,Zq as Lh,Zr as tj,_l as Wa,_m as Vb,_n as Vc,_o as ze,_p as Gf,_q as Mh,_r as uj,am as Ya,an as Xb,ao as Xc,ap as Be,aq as If,ar as Oh,as as wj,bn as Yb,bo as Yc,bp as Ce,bq as Jf,br as Ph,bs as xj,cn as Zb,co as Zc,cp as De,cq as Kf,cr as Qh,cs as yj,dn as _b,do as _c,dq as Lf,dr as Rh,ds as zj,en as $b,eo as $c,eq as Mf,er as Sh,es as Aj,fm as Za,fn as ac,fo as ad,fp as Ee,fq as Nf,fr as Th,fs as Bj,gm as _a,gn as bc,go as bd,gp as Fe,gq as Of,gr as Uh,gs as Cj,hm as $a,hn as cc,ho as cd,hq as Pf,hr as ci,hs as Fj,im as ab,in as dc,io as dd,ip as ff,iq as Qf,ir as di,is as Gj,jl as s,jm as bb,jn as ec,jo as ed,jq as Rf,jr as ei,js as Hj,kl as t,km as cb,kn as fc,ko as fd,kq as Sf,kr as fi,ks as Ij,ll as u,ln as gc,lo as gd,lq as Tf,lr as gi,ls as Jj,ml as v,mn as hc,mo as hd,mq as Uf,mr as hi,ms as Kj,nl as w,nm as db,nn as ic,no as id,nq as Vf,nr as ii,ns as Lj,ol as x,om as eb,on as jc,oo as jd,oq as Wf,or as ji,os as Mj,pl as y,pm as fb,pn as kc,po as Ad,pq as Xf,pr as ki,ps as Nj,ql as z,qm as gb,qn as lc,qo as Bd,qq as Yf,qr as li,rl as A,rm as hb,rn as mc,ro as Cd,rq as Zf,rr as mi,sl as B,sm as ib,sn as nc,so as Dd,sq as _f,sr as ni,tl as C,tm as jb,tn as oc,to as Ed,tq as $f,tr as oi,ul as D,um as kb,un as pc,uo as Fd,uq as ag,ur as pi,vl as E,vm as lb,vn as qc,vo as Gd,vq as bg,vr as qi,wl as F,wm as mb,wn as rc,wo as Hd,wq as cg,wr as ri,xl as G,xm as nb,xn as sc,xo as Id,xq as dg,xr as si,yl as H,ym as ob,yn as tc,yo as Jd,yq as eg,yr as ti,zl as I,zm as pb,zn as uc,zo as Kd,zp as gf,zq as fg,zr as ui}from"./chunk-097mr013.js";import{As as n,Bs as o,Cs as p,Ds as q,Es as r,qs as d,rs as e,ss as f,ts as g,us as h,vs as i,ws as j,xs as k,ys as l,zs as m}from"./chunk-xpxw2ked.js";import{Fs as Vh,Gs as Wh,Hs as Xh,Is as Yh,Js as Zh,Ks as _h,Ls as $h,Ms as ai,Ns as bi}from"./chunk-6gb72zp2.js";import{Os as b,Ps as c}from"./chunk-82kkkpw2.js";import{Qs as Ea,Rs as Fa}from"./chunk-shyqtvbq.js";import{$s as tb,_s as sb,bt as ub,lt as vb,mt as wb,nt as xb}from"./chunk-sd7ymv7h.js";import{ot as Ja,pt as Ka,qt as La,rt as Ma,st as Na,tt as Oa}from"./chunk-w1asc0zd.js";import{ut as ue,vt as ve,wt as we}from"./chunk-xqwmj65h.js";import{At as nd,Bt as od,Ct as pd,Dt as qd,Et as rd,Ft as sd,Gt as td,Ht as ud,It as vd,Jt as wd,Kt as xd,Lt as yd,Mt as zd,xt as kd,yt as ld,zt as md}from"./chunk-0ym08enb.js";import"./chunk-q4desjj6.js";import{$t as ua,Qt as ja,Rt as ka,St as la,Tt as ma,Ut as na,Vt as oa,Wt as pa,Xt as qa,Yt as ra,Zt as sa,_t as ta,au as va,bu as wa,cu as xa,du as ya}from"./chunk-gfhzedsr.js";import{Au as S,Bu as T,Cu as U,Du as V,Eu as W,Fu as X,Gu as Y,Hu as Z,Iu as _,Ju as $,Ku as aa,Lu as ba,Nu as ca,hu as K,iu as L,lu as M,qu as N,ru as O,xu as P,yu as Q,zu as R}from"./chunk-sfaayvmn.js";import"./chunk-azfjfrns.js";import"./chunk-z45t29sf.js";export{pk as writeNetlifyConfig,gm as writeManifest,Uk as writeImageManifest,xo as wrapComponentForHMR,rr as withDefaults,Cj as webComponentDirectiveHandler,mp as watermark,oq as watchViews,cl as watchMultiple,dl as watchEffect,bl as watch,Be as warmImagePlaceholders,ql as waitForStore,Zd as waitForLocale,jo as virtualPathFor,pj as videoDirective,uc as validators,vr as validated,Ld as validateValueEnhanced,th as validateTemplate,rp as validateParams,Md as validateFormEnhanced,dq as validateFile,Hd as validateFields,Gd as validateField,vh as validateDirective,ed as validateCspDirectives,Kj as validateConfig,lm as validateComponentScripts,Jm as validateComponentProps,rg as validateClientScript,qh as v,kb as usesSignalsInScript,pa as usesReactiveRuntime,Ih as userComponentFileExists,Yg as useVirtualList,sd as useTitle,pl as useStoreOrThrow,Po as useStore,$j as useStorage,zq as useSlots,bk as useSessionStorage,pd as useSeoMeta,rl as useRouteParams,tl as useRouteParamOrThrow,sl as useRouteParam,sd as usePageTitle,Te as useOptimistic,vl as useMiddlewareValue,ul as useMiddlewareState,ak as useLocalStorage,qo as useLoadingIndicator,nd as useHead,nh as useForm,Bq as useAttrs,fq as uploadFiles,eq as uploadFile,ml as updateInstance,Re as untrack,Yh as unregisterDirective,nl as unmountInstance,rb as unescapeHtml,mo as typecheckStxFiles,Hh as transpileTypeScript,er as translate,w as transitionDirective,Ta as transformAutoImports,Dm as toUsers,Cm as toUser,Xo as thumbnail,Yp as thumbHashToRGBA,Zp as thumbHashToDataURL,ra as templateNeedsRuntime,qa as templateHasReactiveContext,We as templateCache,Nb as syncRecordedResponse,uo as stxClientHelpers,Bf as structuredDataDirective,hr as stripLocalePrefix,Tl as stripDocumentWrapper,Fa as stripCommentsAndLiterals,pn as stringToStream,Uc as strictCspPreset,oe as streamingSuspenseDirective,se as streamToResponse,me as streamTemplateSimple,ge as streamTemplate,Wj as stopHmrServer,zm as stopBroadcasting,Ma as stateDirName,Na as stateDir,Ge as state,lg as startsDocument,Rn as startProductionServer,Fn as startInteractive,ym as startBroadcasting,jr as stampLocaleLayoutGroup,D as staggerDirective,pp as srcsetUrls,E as springDirective,Dc as splitByPipe,Pl as spaNavVaryHeaders,ko as sourcePathFor,wp as smartBatchSign,Kh as slotContentHasExpressions,up as signUrl,Fh as shouldTranspileTypeScript,Tj as shouldReloadOnChange,zp as shouldRefreshSignature,Uj as shouldIgnoreFile,Qg as shouldCacheComponent,$o as sharpen,yr as shape,La as setStateDir,zl as setRouteParams,Al as setMiddlewareState,Ae as setImagePlaceholder,tq as setGlobalProvide,Rb as setErrorLocale,Wk as setCurrentInstance,dj as setCachedVideoResult,Ui as setCachedImageResult,Oi as setCached,Br as serveStxFile,Dr as serveMultipleStxFiles,Oj as serveMarkdownFile,$n as serveFile,Er as serveApp,_n as serve,Ao as serializeState,en as serializeSetCookie,bp as sepia,qd as seoMetaToHeadConfig,x as scrollAnimateDirective,q as screenReaderDirective,tj as scopeHTML,sj as scopeCSS,Ef as scanForSitemapEntries,k as scanA11yTargets,l as scanA11yIssues,fp as saturation,sp as sanitizeParams,wc as sanitizeFilePath,xc as sanitizeExpression,yc as sanitizeDirectiveParams,vc as sanitizeDirectiveParam,zc as sanitizeComponentProps,pc as safeExecuteAsync,oc as safeExecute,xa as runtimeHandledXAttrsLiteral,uf as runPreProcessingMiddleware,vf as runPostProcessingMiddleware,In as runPageAction,Me as runMountCallbacks,ba as runMiddleware,kl as runHooks,Zq as runDoctor,Ne as runDestroyCallbacks,Jf as runComposers,gp as rotate,rh as rewriteImagesWithSiblings,Ob as responseBindings,Oh as resolveTemplatePath,c as resolveStxTargets,Gj as resolveStxDirectories,dr as resolveI18n,Vo as resize,Za as resetPlaceholders,md as resetHead,zo as resetHMRHandler,cc as resetErrorConfig,tr as required,bb as replacePlaceholders,mq as renderView,mj as renderVideoComponent,Qa as renderVendorStyleTags,Iq as renderToString,Jq as renderToStream,Kq as renderToDOM,Xp as renderThumbhashToCanvas,Wq as renderTemplateString,Uq as renderTemplate,Vq as renderString,je as renderStreamingPage,Ah as renderSlot,Gg as renderSSRSuspense,Hp as renderProtectedVideo,Gp as renderProtectedImg,tp as renderMediaUpload,Tq as renderMarkdownView,Yl as renderLayoutTypes,Yi as renderImgComponent,Kk as renderImageComponent,ud as renderHtmlAttrs,td as renderHead,pq as renderEmail,Mh as renderComponentWithSlot,vd as renderBodyAttrs,Ko as render,Wc as relaxedCspPreset,Fd as registerValidationRule,qe as registerStreamingDirectives,Ro as registerStoresClient,xl as registerStore,Cf as registerSeoDirectives,V as registerMiddleware,fb as registerFilters,eb as registerFilter,Tb as registerErrorMessages,Kd as registerEnhancedValidationRule,Vh as registerDirective,dd as registerCspDirectives,Mm as registerComponentDirectives,J as registerAnimationDirectives,r as registerA11yDirectives,_k as ref,xn as redirect,Jb as recordResponseStatus,Kb as recordResponseHeader,Oa as rebaseOntoStateDir,Lb as readResponseStatus,Mb as readResponseHeaders,Mj as readMarkdownFile,Xe as readFileCached,$k as reactive,kp as quality,Ep as pruneSignatureCache,Ri as pruneCache,rq as provide,Sq as protectCodeBlocks,sr as prop,Mf as processVueTemplate,Wg as processVirtualListDirectives,_g as processVirtualGridDirectives,lj as processVideo,Id as processValidateDirective,ee as processTranslateDirective,Ag as processTransitionDirectives,Dg as processTransitionAttributes,yd as processTitleDirective,Bb as processTemplateBindings,wg as processTeleportDirectives,Eg as processSuspenseDirectives,xf as processStructuredData,ke as processStreamDirectives,Pb as processStatusDirective,lh as processStaticDirectives,sf as processStackReplacements,rf as processStackPushDirectives,Bh as processSlots,Rl as processShell,De as processServerBindings,yf as processSeoDirective,re as processSectionDirectives,Pf as processScopedStyles,zb as processReactiveBindings,Ip as processProtectedMedia,eh as processPartialHydrationDirectives,qg as processOnceDirective,tf as processMiddleware,wf as processMetaDirectives,zd as processMetaDirective,Nj as processMarkdownFileDirectives,Th as processMarkdownDirectives,mf as processLoops,Og as processKeepAliveDirectives,pg as processJsonDirective,Zg as processInfiniteListDirectives,qf as processIncludes,_i as processImgComponents,Mk as processImageComponents,zk as processImage,xd as processHeadDirective,Bd as processForms,Dd as processFormInputDirectives,ob as processExpressions,Ca as processEventDirectives,Ed as processErrorDirective,Nf as processDynamicComponents,sh as processDirectives,bi as processDirectiveAttributes,vg as processDeferDirectives,id as processCustomDirectives,ad as processCspDirectives,zr as processComponentProps,Ya as processClientScript,Cd as processBasicFormDirectives,Jg as processAsyncDirectives,jd as processAppearanceBootstrapDirective,A as processAnimationDirectives,f as processA11yDirectives,we as prepareImageDelivery,Vd as preloadTranslationsBackground,Ud as preloadTranslations,po as preloadIslandHandlers,Ce as preloadIconCollection,um as poolStrings,Ej as pluginManager,ye as placeholdersWarmed,zg as performLeave,yg as performEnter,Oe as pendingLifecycleCounts,Se as peek,nf as partialsCache,nj as parseVideoDirectiveOptions,To as parseUrl,_p as parseThumbhashString,Jc as parseSwitchBlock,yh as parseSlots,zh as parseSlotElement,Oc as parseScriptDeclarations,Aj as parseSFCComponent,Jp as parseProtectedArgs,lf as parseLoopBinding,Zi as parseImgComponent,pi as parseImageUrl,Lk as parseImageComponent,Gn as parseFormBody,Lc as parseExpressionWithFilters,Nm as parseDefaults,un as parseCookies,Jl as parseContainerSelector,Gc as parseConditionalBlock,Mc as parseArguments,H as parseAnimationShorthand,ur as optional,vm as optimizeTemplate,Rk as optimizeImage,Sk as optimizeDirectory,wr as oneOf,of as onceStore,hl as onUpdated,yb as onUpdate,jl as onUnmounted,El as onServer,fl as onMounted,Ke as onMount,kh as onHydrated,xq as onErrorCaptured,Le as onDestroy,Ug as onDeactivated,Dl as onClient,gl as onBeforeUpdate,il as onBeforeUnmount,el as onBeforeMount,Tg as onActivated,Tp as observeElement,yn as notFound,Uf as normalizeCriticalHeadOrder,wq as nextTick,Qm as negotiateEncoding,P as navigateTo,ll as mountInstance,z as motionDirective,Vc as moderateCspPreset,tm as minifyHtml,Af as metaDirective,dg as metaDedupKey,Uo as mergeParams,fg as mergeHtmlAttrs,od as mergeHeadConfigs,Zc as mergeCspDirectives,tb as mergeCrosswindConfig,M as matchRoute,Uh as markdownDirectiveHandler,Lj as markdownCache,b as looksLikeGlob,gr as localizePath,Wd as loadTranslationLazy,ae as loadTranslation,Hj as loadStxConfig,_ as loadMiddlewareFromDirectory,hm as loadManifest,Pp as loadElement,Am as loadChannels,nr as lintStxStrict,Rp as lazyLoadAll,Qp as lazyLoad,C as keyframeDirective,Gq as jsxs,Hq as jsxDEV,Fq as jsx,wn as jsonResponse,pe as islandDirective,$b as isTest,Ul as isSpaNavigation,Nl as isSpaNavRequest,xp as isSignatureValid,Pe as isSignal,xk as isSharpAvailable,hn as isServerEnvironment,Bl as isServer,ta as isRuntimeOwnedColonAttr,Zb as isProduction,d as isPresentationalRole,Mp as isNativeLazySupported,Rq as isMarkdownPath,Sd as isLoading,Td as isLoaded,Eh as isJavaScriptScript,Np as isIntersectionObserverSupported,Fk as isImageFile,yk as isImageBackendAvailable,ce as isICUFormat,jh as isHydrated,Jh as isHydrateTrigger,Hb as isHttpStatus,gn as isEdgeEnvironment,or as isDirectiveKind,_b as isDevelopment,Qe as isDerived,Sj as isCssOnlyChange,Pm as isCompressible,Cl as isClient,Lg as isAsyncComponent,Hn as isActionableMethod,cp as invert,Ze as invalidateFileCacheByDir,Ye as invalidateFileCache,nb as interpolateScriptsInTemplate,lb as interpolateScriptExpressions,mb as interpolateScriptAttributes,lc as inlineError,cr as injectThemeBootstrap,zf as injectSeoTags,$q as injectSeo,ff as injectRouterScript,Rj as injectHotReload,fa as injectHeatmap,_c as injectCspMetaTag,xb as injectCrosswindCSS,ng as injectConfigHeadTags,Tf as injectColorModeBootScript,hg as injectCloakStyle,_f as injectBuildId,Sa as injectBrowserCoreAutoImports,Db as injectAnalytics,sq as inject,wl as initStoreRegistry,sk as initNetlify,ro as initLoadingIndicator,Op as initLazyLoading,En as initFile,Wp as initBlurUp,aq as initAllBlurUp,aj as imgDirective,Pk as imageDirective,Pn as hydrateTemplateStream,On as hydrateTemplate,oo as hydrateIslands,gh as hydrateIsland,Qn as hydrateFragment,hh as hydrateByStrategy,ih as hydrateAll,Ho as hydrate,Zn as htmlResponse,jg as hoistLeadingHeadTags,Vf as hoistColorModeBootScript,ga as heatmapDirective,Ki as hashString,ef as hashFilePath,Ii as hashFile,Ji as hashBuffer,Lf as hasVueTemplateSyntax,kf as hasVariables,Mo as hasStore,cb as hasPlaceholders,qk as hasNetlifyConfig,X as hasMiddleware,Da as hasEventDirectives,mg as hasDocumentShell,wh as hasDirectives,h as hasDOMSupport,Ik as handleImageRequest,yq as handleError,Oq as h,Ek as groupVariantsByFormat,ap as grayscale,Sn as gitHash,nm as getUnusedDirectives,Xd as getTranslationSync,Qd as getTranslationCacheStats,Yd as getTranslationAsync,de as getTranslation,lk as getTotalSize,yp as getTimeUntilExpiry,sg as getStoreScript,No as getStoreNames,Lo as getStore,ek as getStorageSize,dk as getStorageKeys,Ph as getSourceLineInfo,Gh as getSharedTranspiler,g as getScreenReaderOnlyStyle,uj as getScopeAttribute,Fe as getRouteParams,Ha as getPublicEnvDefine,Ia as getPublicEnv,uh as getPositionInfo,$a as getPlaceholderRegistry,Hi as getPlaceholderCacheStats,ld as getPageMeta,Qc as getNonce,Gk as getMimeType,Z as getMiddlewareNames,W as getMiddleware,Rd as getLoadingState,_d as getLoadingLocales,xe as getImagePlaceholder,Ak as getImageMetadata,ue as getImageDelivery,Go as getHydrationRuntime,yl as getHydratedStoreState,Vj as getHmrServer,kd as getHead,yo as getHMRHandler,ti as getFormatExtension,Mi as getFileMtime,Dk as getFallbackVariant,Vb as getErrorMessage,Sb as getErrorLocale,bc as getErrorConfig,Yb as getErrorCodeName,Xh as getDirectives,Wh as getDirective,Xk as getCurrentInstance,Yc as getCspPreset,fd as getCspHeaderName,ub as getCrosswindServeAsset,Sh as getComponentCacheStats,cj as getCachedVideoResult,Cp as getCachedSignature,$e as getCachedSignalsRuntime,af as getCachedRouterScript,Fi as getCachedPlaceholder,Ti as getCachedImageResult,Ni as getCached,Qi as getCacheStats,Yf as getBuildId,xm as getBroadcastServer,si as getBestVariant,gb as getAllFilters,gi as generateWidthSrcset,Xg as generateVirtualListCSS,hq as generateVideoPreview,Nd as generateValidationScript,iq as generateUploadRuntime,om as generateTreeShakenBundle,Cg as generateTransitionRuntime,Bg as generateTransitionCSS,gj as generateThumbnails,yi as generateThumbhashPlaceholder,Zm as generateTemplatesDocs,Ig as generateSuspenseRuntime,Hg as generateSuspenseCSS,Bo as generateStateScript,qi as generateSrcsetData,Xi as generateSrcset,Bk as generateSrcSet,hj as generateSpriteSheet,qq as generateSpaShell,ri as generateSourceTags,mi as generateSizesFromBreakpoints,li as generateSizesAttribute,Ck as generateSizes,Df as generateSitemapIndex,ar as generateSitemap,Lp as generateSimpleMediaPicker,Fp as generateSignatureRuntime,Ve as generateSignalsRuntimeDev,Ue as generateSignalsRuntime,Xa as generateServerDataBridge,rj as generateScopeId,Bj as generateSFCWebComponent,Aa as generateRuntimeScript,K as generateRouteTypes,L as generateRouteManifest,Ff as generateRobotsTxt,br as generateRobots,Wi as generateResponsiveVariants,xj as generateReactiveWebComponentTS,wj as generateReactiveWebComponent,zj as generateReactiveRuntime,yj as generateReactiveMixin,fj as generatePoster,Ei as generatePlaceholderStyle,Di as generatePlaceholderCSS,xi as generatePlaceholder,fh as generatePartialHydrationCSS,Pc as generateNonce,mk as generateNetlifyToml,kq as generateMinifiedMediaRuntime,jq as generateMediaRuntime,Kp as generateMediaManagerEmbed,fm as generateManifest,to as generateLoadingIndicatorHtml,Vp as generateLazyLoadRuntime,Zl as generateLayoutTypes,Ai as generateLQIP,Sg as generateKeepAliveRuntime,Rg as generateKeepAliveCSS,mh as generateIslandManifest,gq as generateImagePreview,Tk as generateImageManifest,Fo as generateHydrationScript,te as generateHydrationRuntime,Io as generateHydrationCSS,$g as generateHydrationBootstrap,Qj as generateHotReloadScript,ea as generateHeatmapScript,wo as generateHMRClientScript,ij as generateHLSManifest,Co as generateEventBindings,ki as generateDprSrcsetWithVariableQuality,ji as generateDprSrcset,kg as generateDocumentShell,cn as generateDocs,_m as generateDirectivesDocs,ai as generateDirectiveRuntime,Gf as generateDefaultRobotsTxt,jj as generateDASHManifest,Tc as generateCspMetaTag,Sc as generateCspHeader,wb as generateCrosswindCSS,Dq as generateCompositionRuntime,Ym as generateComponentsDocs,ah as generateComponentManifest,Wm as generateComponentDoc,Ci as generateColorPlaceholder,Sf as generateColorModeBootScript,ol as generateClientRuntime,Li as generateCacheKey,Va as generateBrowserAutoImportDestructuring,bq as generateBlurUpRuntime,cq as generateBlurUpCSS,Ab as generateBindingsRuntime,hi as generateAutoWidthSrcset,Ua as generateAutoImportDestructuring,Ng as generateAsyncComponentRuntime,Mg as generateAsyncComponentCSS,I as generateAnimationRuntime,G as generateAnimationCSS,Cb as generateAnalyticsScript,no as formatTypecheckDiagnostics,ho as formatTypeErrors,Bn as formatStxContent,kk as formatSize,O as formatRoutes,Cn as formatMarkdownContent,Wb as formatLocalizedError,be as formatICU,dc as formatFilePath,kc as formatError,_q as formatDoctorReport,$m as formatDocsAsMarkdown,bn as formatDocsAsJson,an as formatDocsAsHtml,jp as format,sm as foldConstants,ip as flipVertical,hp as flipHorizontal,_l as fingerprint,lo as findRuntimeTypeDeclarations,Yq as findPantryPackage,Fc as findMatchingEndTag,Bc as findMatchingDelimiter,Ea as findInterpolationEnd,Hc as findIfBlocks,Kc as findExpressions,N as findErrorPage,Ic as findDirectiveBlocks,pm as findDeadCode,pm as findDeadBranches,Kl as findContainerRegion,Xm as findComponentFiles,Cr as findCommonDir,jk as filterRequiredFiles,Nh as fileExists,gf as extractVariables,dm as extractTemplateExpressions,le as extractStreamBoundaries,Do as extractState,Ch as extractSlotContent,jf as extractScriptFromTemplate,cm as extractScriptBlocks,ab as extractPlaceholders,Ec as extractParenthesizedExpression,Ib as extractPageResponseStatus,ca as extractLayoutMetadata,Bi as extractDominantColor,Nc as extractDirectiveParams,xh as extractDirectiveNames,Vl as extractContainerContent,Um as extractComponentProps,bh as extractComponentName,Vm as extractComponentDescription,vb as extractClassNames,Wa as extractBridgeData,ch as extractBoundProps,Cc as extractBalancedExpression,Pa as extractAndStripCssImports,vj as extractAndScopeStyles,Ba as extractAndProcessEvents,Zj as externalizeSharedAssets,_j as externalizeRepeatedAssets,Yj as externalizeHtml,qb as evaluateExpression,rm as evaluateConstant,Qb as evaluateAuthExpression,jb as escapeHtmlValue,ib as escapeHtml,qc as errorRecovery,sc as errorLogger,xg as ensureTeleportTargets,og as ensureDocumentShell,Jd as enhancedValidationRules,Sm as enableDevTools,qm as eliminateDeadCode,Ie as effect,qp as dprUrls,dn as docsCommand,Xl as discoverLayoutNames,Up as disconnectObserver,Tm as disableDevTools,tc as devHelpers,Ql as detectShell,fn as detectRuntime,nk as detectProjectConfig,ui as detectFormat,km as detectBuildMode,He as derived,rk as deploy,Jj as defineStxConfig,Qo as defineStore,Aq as defineSlots,mr as defineSiteConfig,qr as definePropsWithValidation,pr as defineProps,Dj as definePlugin,rd as definePageMeta,R as defineMiddleware,oh as defineForm,vq as defineExpose,uq as defineEmits,Zh as defineDirective,Qq as defineCustomElement,Nn as defineConfig,_h as defineClientDirective,Kg as defineAsyncComponent,lq as defaultMediaConfig,Vk as defaultImageConfig,Od as defaultI18nConfig,da as defaultHeatmapConfig,Ad as defaultFormClasses,db as defaultFilters,hd as defaultCspConfig,Fj as defaultConfig,Ar as default,sb as deepMergeThemes,Of as dedupeScopedStyles,zi as decodeThumbhash,cd as cspNonceDirective,bd as cspDirective,$p as crossfadeTransition,Wo as crop,Vg as createVirtualList,oj as createVideoDirective,sn as createVercelHandler,eo as createTypeChecker,fe as createTranslateFilter,on as createTextEncoderStream,Pq as createStxApp,nn as createStreamingResponse,ne as createStreamRenderer,Oo as createStore,U as createStorageManager,S as createServerCookieManager,Zk as createScope,Fg as createSSRSuspense,Ee as createRouter,$ as createRouteLocation,bo as createRoute,_k as createRef,$k as createReactive,Cq as createProvideContext,Un as createProject,Mn as createProductionBuild,_a as createPlaceholder,wm as createOptimizedBuild,tn as createNetlifyHandler,fk as createNetlifyClient,aa as createMiddlewareContext,ao as createMiddleware,Sp as createLazyObserver,Pg as createKeepAliveCache,kn as createKVNamespace,dh as createIslandRegistry,$i as createImgDirective,Qk as createImagePlugin,Jk as createImageHandler,Ok as createImageDirective,ia as createHeatmapAggregator,ik as createFileManifest,jn as createEnvAccessor,nc as createEnhancedError,mn as createEdgeHandler,ln as createEdgeCache,Qh as createDetailedErrorMessage,rn as createDenoHandler,ok as createDefaultNetlifyConfig,gd as createCspHeaders,vn as createCookie,al as createComputed,Yk as createComponentInstance,qn as createCloudflareHandler,T as createClientCookieManager,$h as createBuiltinDirectives,Pq as createApp,F as createAnimationTimeline,Zo as cover,hf as convertToCommonJS,ep as contrast,Yo as contain,mc as consoleError,ac as configureErrorHandling,Ij as config,al as computed,Rm as compressResponse,If as composerPattern,Hf as composer,Sl as composeShellWithPage,Lm as componentDirective,Lh as componentClientSignalNames,em as compileTemplate,a as collectRepeatedFlag,hk as collectDeployFiles,ig as cloakStyleFragment,ej as clearVideoCache,Pd as clearTranslationCache,tg as clearStoreCache,ck as clearStorage,Dp as clearSignatureCache,Gi as clearPlaceholderCache,pf as clearOnceStore,Rc as clearNonce,Y as clearMiddleware,ze as clearImagePlaceholders,ve as clearImageDeliveryCatalog,Nk as clearImageCache,Ub as clearErrorMessages,bf as clearDevCaches,hb as clearCustomFilters,Kf as clearComposers,ug as clearComposableCache,Rh as clearComponentCache,Pi as clearCache,so as cleanupLoadingIndicator,Hl as classifyScript,Il as classifyAllScripts,fo as checkTemplateFile,go as checkTemplate,cf as checkCache,Ap as checkAuthAccess,i as checkA11yWithRegex,j as checkA11y,Gm as channel,An as captureScreenshots,zn as captureScreenshot,$d as cancelPendingLoads,gk as calculateSha1,ii as calculateOptimalWidths,df as cacheTemplate,qj as buildWebComponents,io as buildVirtualSource,nq as buildViews,So as buildUrl,he as buildSuspenseResolveScript,lr as buildStaticSite,la as buildRuntimeGlobalsDestructure,$l as buildRuntimeAsset,am as buildRouterAsset,kr as buildLangPickerScript,oi as buildImageUrl,$f as buildIdFragment,eg as buildHtmlAttrs,im as buildForProduction,Om as buildComponentLibrary,Bp as buildAuthParams,jm as buildApp,ir as buildAlternateLinks,Ln as build,Em as broadcastPrivate,Fm as broadcastPresence,Bm as broadcast,dp as brightness,_o as blur,ya as blankInertHtmlRegions,vp as batchSignUrls,Je as batch,n as autoFixA11yFile,o as autoFixA11yDirectory,m as autoFixA11y,lp as auto,e as attributeValue,bm as assetTags,za as asInvocableStatement,xr as arrayOf,fr as applyTranslations,Vi as applyTransformations,Dh as applySlots,Km as applyPropDefaults,op as applyPreset,gg as applyHtmlAttrs,wd as applyHead,pb as applyFilters,Ol as appendVary,Xc as apiCspPreset,y as animationGroupDirective,kj as analyzeVideo,mm as analyzeUsage,Fl as analyzeTemplate,Gl as analyzeProject,mm as analyzeDirectiveUsage,Eb as analyticsDirective,Xn as addStore,Wn as addPage,$c as addNonceToInlineContent,Yn as addLayout,Vn as addComponent,Jn as actionRedirectResponse,Q as abortNavigation,p as a11yDirective,_e as __setSignalsGeneratorsForTest,Zf as __setBuildIdForTest,bj as VideoProcessorCache,ph as Validator,s as TransitionType,u as TransitionEase,t as TransitionDirection,Ac as Tokenizer,co as TemplateTypeChecker,Dn as TEMPLATE_PRESETS,jc as StxValidationError,fc as StxSyntaxError,hc as StxSecurityError,gc as StxRuntimeError,ic as StxFileError,ec as StxError,Lq as Show,ie as SUSPENSE_RESOLVER_RUNTIME,ja as STX_RUNTIME_GLOBALS,Ra as STX_AUTO_IMPORTS,Ka as STATE_DIR_ENV_VAR,B as SPRING_PRESETS,Ll as SPA_NAV_HEADER,sa as RUNTIME_OWNED_COLON_ATTRS,ua as RUNTIME_HANDLED_X_ATTRS,Fb as RESPONSE_STATUS_KEY,Gb as RESPONSE_HEADERS_KEY,oa as REACTIVE_RUNTIME_GLOBALS,Kn as ProductionBuild,Nq as Portal,Tn as PROJECT_TEMPLATES,np as PRESETS,na as NON_CLIENT_PRIMITIVES,Jo as MemorySessionStore,fi as MIME_TYPES,ci as MEDIA_DEFAULT_WIDTHS,ei as MEDIA_DEFAULT_FORMATS,Wl as LAYOUT_TYPES_FILE,Si as ImageProcessorCache,Hk as ImageProcessingError,Eo as HydrationRuntime,Pj as HotReloadServer,ha as HeatmapAggregator,cg as HTML_CLASS_MARKER,bg as HTML_ATTRS_MARKER,Eq as Fragment,Mq as For,Ml as FRAGMENT_CACHE_CONTROL,rc as ErrorLogger,Xb as ErrorCodes,Xj as EXTERNALIZED_ASSET_DIR,tk as DeployError,uk as DEFAULT_WIDTHS,v as DEFAULT_TRANSITION_OPTIONS,Ja as DEFAULT_STATE_DIR,wk as DEFAULT_QUALITY,vi as DEFAULT_PLACEHOLDER_OPTIONS,vk as DEFAULT_FORMATS,di as DEFAULT_DPR_VALUES,vo as ComponentHMRHandler,ka as COMPONENT_SCOPE_LOCAL_GLOBALS,wa as COMPONENT_PASSTHROUGH_X_ATTRS,ma as COMPILE_TIME_ONLY_GLOBALS,ni as COMMON_SIZES,Qf as COLOR_MODE_BOOT_MARKER,Rf as COLOR_MODE_BOOT_GLOBAL,ag as CLOAK_STYLE,Im as BroadcastServer,Hm as Broadcast,Wf as BUILD_ID_META,Xf as BUILD_ID_HEADER,Ga as BROWSER_CORE_IMPORTS,wi as BLUR_UP_CSS,va as ALPINE_BRIDGE_X_ATTRS,Xq as $path};
|
|
2
|
+
import{$ as rl,$a as ln,$b as Do,$c as Dp,$d as Dq,A as bk,Aa as vm,Ab as Xn,Ac as cp,Ad as cq,Ae as ir,B as ck,Ba as wm,Bb as Yn,Bc as dp,Bd as dq,Be as jr,C as dk,Ca as Jm,Cb as Zn,Cc as ep,Cd as eq,Ce as kr,D as ek,Da as Km,Db as _n,Dc as fp,Dd as fq,De as lr,E as Wk,Ea as Lm,Eb as $n,Ec as gp,Ed as gq,Ee as mr,F as Xk,Fa as Mm,Fb as ao,Fc as hp,Fd as hq,Fe as nr,G as Yk,Ga as Nm,Gb as bo,Gc as ip,Gd as iq,Ge as or,H as Zk,Ha as Om,Hb as co,Hc as jp,Hd as jq,He as pr,I as _k,Ia as Sm,Ib as eo,Ic as kp,Id as kq,Ie as qr,J as $k,Ja as Tm,Jb as fo,Jc as lp,Jd as lq,Je as rr,K as al,Ka as Um,Kb as go,Kc as mp,Kd as mq,Ke as sr,L as bl,La as Vm,Lb as ho,Lc as np,Ld as nq,Le as tr,M as cl,Ma as Wm,Mb as oo,Mc as op,Md as oq,Me as ur,N as dl,Na as Xm,Nb as po,Nc as pp,Nd as pq,Ne as vr,O as el,Oa as Ym,Ob as qo,Oc as qp,Od as qq,Oe as wr,P as fl,Pa as Zm,Pb as ro,Pc as rp,Pd as rq,Pe as xr,Q as gl,Qa as _m,Qb as so,Qc as sp,Qd as sq,Qe as yr,R as hl,Ra as $m,Rb as to,Rc as tp,Rd as tq,Re as zr,S as il,Sa as an,Sb as uo,Sc as up,Sd as uq,Se as Ar,T as jl,Ta as bn,Tb as vo,Tc as vp,Td as vq,Te as Br,U as kl,Ua as cn,Ub as wo,Uc as wp,Ud as wq,Ue as Cr,V as ll,Va as dn,Vb as xo,Vc as xp,Vd as xq,Ve as Dr,W as ml,Wa as fn,Wb as yo,Wc as yp,Wd as yq,We as Er,X as nl,Xa as gn,Xb as zo,Xc as zp,Xd as zq,Y as ol,Ya as hn,Yb as Ao,Yc as Ap,Yd as Aq,Z as pl,Za as jn,Zb as Bo,Zc as Bp,Zd as Bq,_ as ql,_a as kn,_b as Co,_c as Cp,_d as Cq,aa as sl,ab as mn,ac as Eo,ad as Ep,ae as Eq,ba as tl,bb as nn,bc as Fo,bd as Fp,be as Fq,ca as ul,cb as on,cc as Go,cd as Gp,ce as Gq,da as vl,db as pn,dc as Ho,dd as Hp,de as Hq,ea as wl,eb as qn,ec as Io,ed as Ip,ee as Iq,fa as xl,fb as rn,fc as Jo,fd as Jp,fe as Jq,ga as yl,gb as sn,gc as Ko,gd as Kp,ge as Kq,ha as zl,hb as tn,hc as Lo,hd as Lp,he as Lq,ia as Al,ib as un,ic as Mo,id as Mp,ie as Mq,ja as Bl,jb as vn,jc as No,jd as Np,je as Nq,ka as Cl,kb as wn,kc as Oo,kd as Op,ke as Oq,la as Dl,lb as xn,lc as Po,ld as Pp,le as Pq,ma as El,mb as yn,mc as Qo,md as Qp,me as Qq,na as Fl,nb as Bn,nc as Ro,nd as Rp,ne as Xq,o as a,oa as Gl,ob as Cn,oc as So,od as Sp,oe as Yq,p as Oj,pa as km,pb as Dn,pc as To,pd as Tp,pe as Zq,q as Pj,qa as lm,qb as En,qc as Uo,qd as Up,qe as _q,r as Qj,ra as mm,rb as Kn,rc as Vo,rd as Vp,re as $q,s as Rj,sa as nm,sb as Ln,sc as Wo,sd as Wp,se as ar,t as Sj,ta as om,tb as Mn,tc as Xo,td as Xp,te as br,u as Tj,ua as pm,ub as Nn,uc as Yo,ud as Yp,ue as cr,v as Uj,va as qm,vb as Sn,vc as Zo,vd as Zp,ve as dr,w as Vj,wa as rm,wb as Tn,wc as _o,wd as _p,we as er,x as Wj,xa as sm,xb as Un,xc as $o,xd as $p,xe as fr,y as $j,ya as tm,yb as Vn,yc as ap,yd as aq,ye as gr,z as ak,za as um,zb as Wn,zc as bp,zd as bq,ze as hr}from"./chunk-2r0sm7yh.js";import{$e as Ok,Xe as Kk,Ye as Lk,Ze as Mk,_e as Nk,af as Pk,bf as Qk,cf as Rk,df as Sk,ef as Tk,ff as Uk,gf as Vk}from"./chunk-shh4jfwc.js";import{hf as io,if as jo,jf as ko,kf as lo,lf as mo,mf as no}from"./chunk-3564b157.js";import{nf as zn,of as An}from"./chunk-n3ggrhb3.js";import{pf as Fn}from"./chunk-ev7490c4.js";import{Af as Hm,Bf as Im,qf as xm,rf as ym,sf as zm,tf as Am,uf as Bm,vf as Cm,wf as Dm,xf as Em,yf as Fm,zf as Gm}from"./chunk-vqxmxgaj.js";import{Cf as Ik,Df as Jk}from"./chunk-71r0nchv.js";import{Ef as jm}from"./chunk-c40n039h.js";import{Ff as Pm,Gf as Qm,Hf as Rm,If as en,Jf as Gn,Kf as Hn,Lf as In,Mf as Jn,Nf as On,Of as Pn,Pf as Qn,Qf as Rn}from"./chunk-fg50mb11.js";import{$f as pk,Rf as fk,Sf as gk,Tf as hk,Uf as ik,Vf as jk,Wf as kk,Xf as lk,Yf as mk,Zf as nk,_f as ok,ag as qk,bg as rk,cg as sk,dg as tk}from"./chunk-nx5qkm8k.js";import{eg as bj,fg as cj,gg as dj,hg as ej,ig as fj,jg as gj,kg as hj,lg as ij,mg as jj,ng as kj,og as lj}from"./chunk-5d0jtpqm.js";import{pg as Dj,rg as Ej}from"./chunk-bz820epz.js";import{Ag as xk,Bg as yk,Cg as zk,Dg as Ak,Fg as Bk,Gg as Ck,Hg as Dk,Ig as Ek,Jg as Fk,Kg as Gk,Ng as Hk,xg as uk,yg as vk,zg as wk}from"./chunk-e8jazdsk.js";import{Og as _l,Pg as $l,Qg as am,Rg as bm,Sg as em,Tg as im}from"./chunk-0m5vyswh.js";import{Ug as cm,Xg as dm}from"./chunk-gyr2qp4d.js";import{dh as Hl,eh as Il,fh as Jl,gh as Kl,hh as Ll,ih as Ml,jh as Nl,kh as Ol,lh as Pl,mh as Ql,nh as Rl,oh as Sl,ph as Tl,qh as Ul,rh as Vl,sh as fm,th as gm,uh as hm}from"./chunk-1wbr71dj.js";import{vh as nh,wh as oh,xh as ph,yh as qh}from"./chunk-49kk0s96.js";import{Dh as rh}from"./chunk-w3ycm4na.js";import{Eh as yh,Fh as zh,Gh as Ah,Hh as Bh,Ih as Ch,Jh as Dh}from"./chunk-e3m5zefg.js";import{Kh as Si,Lh as Ti,Mh as Ui,Qh as Vi,Rh as Wi,Sh as Xi}from"./chunk-9p25rqhp.js";import{$h as Pi,Th as Ii,Uh as Ji,Vh as Ki,Wh as Li,Xh as Mi,Zh as Ni,_h as Oi,ai as Qi,bi as Ri}from"./chunk-74cv4ta1.js";import{ci as yg,di as zg,ei as Ag,fi as Bg,gi as Cg,hi as Dg}from"./chunk-wcm80anz.js";import{ii as Eg,ji as Fg,ki as Gg,li as Hg,mi as Ig}from"./chunk-y7m2dpd3.js";import{ni as Jg,oi as Kg,pi as Lg,qi as Mg,ri as Ng}from"./chunk-9y0g8kzt.js";import{si as Og,ti as Pg,ui as Qg,vi as Rg,wi as Sg,xi as Tg,yi as Ug}from"./chunk-t6nseeb9.js";import{Ai as Wg,Bi as Xg,Ci as Yg,Di as Zg,Ei as _g,zi as Vg}from"./chunk-xttsqmkm.js";import{Gi as $g,Hi as ah,Ii as bh,Ji as ch,Ki as dh,Li as eh,Mi as fh,Ni as gh,Oi as hh,Pi as ih,Qi as jh,Ri as kh,Si as lh,Ti as mh}from"./chunk-54st8g2j.js";import{Vi as sg,Wi as tg}from"./chunk-1kgz9eet.js";import{Zi as ug}from"./chunk-9mjw29f1.js";import"./chunk-9n0gvfrg.js";import{bj as vg}from"./chunk-7q9mwh4v.js";import{cj as wg,dj as xg}from"./chunk-refwkt87.js";import{ej as ge,fj as he,gj as ie,hj as je,ij as ke,jj as le,kj as me,lj as ne,mj as oe,nj as pe,oj as qe,pj as re,qj as se,rj as te}from"./chunk-8c18h010.js";import{sj as Ue,tj as Ve}from"./chunk-zkbgy7kj.js";import{Aj as Ge,Bj as He,Cj as Ie,Dj as Je,Ej as Ke,Fj as Le,Gj as Me,Hj as Ne,Ij as Oe,Jj as Pe,Kj as Qe,Lj as Re,Mj as Se,Nj as Te}from"./chunk-w95sp0k9.js";import{Oj as We,Pj as Xe,Qj as Ye,Rj as Ze,Sj as _e,Tj as $e,Uj as af,Vj as bf,Wj as cf,Xj as df,Yj as ef}from"./chunk-2x85y8hb.js";import{qk as Rq,rk as Sq,sk as Tq,tk as Uq,uk as Vq,vk as Wq}from"./chunk-an8s3rjv.js";import{Ak as Wl,Bk as Xl,Ck as Yl,Dk as Zl,wk as Xj,xk as Yj,yk as Zj,zk as _j}from"./chunk-3yg0f94g.js";import"./chunk-58f0mthg.js";import"./chunk-q9y29cgw.js";import{$l as Xa,$m as Wb,$n as Wc,$o as Ae,$p as Hf,$q as Nh,$r as vj,Al as J,Am as qb,An as vc,Ao as Ld,Aq as gg,Ar as vi,Bl as da,Bm as rb,Bn as wc,Bo as Md,Bp as hf,Bq as hg,Br as wi,Cl as ea,Cm as yb,Cn as xc,Co as Nd,Cq as ig,Cr as xi,Dl as fa,Dm as zb,Dn as yc,Do as Od,Dp as jf,Dq as jg,Dr as yi,El as ga,Em as Ab,En as zc,Eo as Pd,Ep as kf,Eq as kg,Er as zi,Fl as ha,Fm as Bb,Fn as Ac,Fo as Qd,Fp as lf,Fq as lg,Fr as Ai,Gl as ia,Gm as Cb,Gn as Bc,Go as Rd,Gp as mf,Gq as mg,Gr as Bi,Hm as Db,Hn as Cc,Ho as Sd,Hp as nf,Hq as ng,Hr as Ci,Im as Eb,In as Dc,Io as Td,Ip as of,Iq as og,Ir as Di,Jl as za,Jn as Ec,Jo as Ud,Jp as pf,Jq as pg,Jr as Ei,Kl as Aa,Km as Fb,Kn as Fc,Ko as Vd,Kp as qf,Kq as qg,Kr as Fi,Ll as Ba,Lm as Gb,Ln as Gc,Lo as Wd,Lp as rf,Lq as rg,Lr as Gi,Ml as Ca,Mm as Hb,Mn as Hc,Mo as Xd,Mp as sf,Mq as sh,Mr as Hi,Nl as Da,Nm as Ib,Nn as Ic,No as Yd,Np as tf,Nq as th,Nr as Yi,Om as Jb,On as Jc,Oo as Zd,Op as uf,Oq as uh,Or as Zi,Pm as Kb,Pn as Kc,Po as _d,Pp as vf,Pq as vh,Pr as _i,Ql as Ga,Qm as Lb,Qn as Lc,Qo as $d,Qp as wf,Qq as wh,Qr as $i,Rl as Ha,Rm as Mb,Rn as Mc,Ro as ae,Rp as xf,Rq as xh,Rr as aj,Sl as Ia,Sm as Nb,Sn as Nc,So as be,Sp as yf,Sq as Eh,Sr as mj,Tl as Pa,Tm as Ob,Tn as Oc,To as ce,Tp as zf,Tq as Fh,Tr as nj,Ul as Qa,Um as Pb,Un as Pc,Uo as de,Up as Af,Uq as Gh,Ur as oj,Vl as Ra,Vm as Qb,Vn as Qc,Vo as ee,Vp as Bf,Vq as Hh,Vr as pj,Wl as Sa,Wm as Rb,Wn as Rc,Wo as fe,Wp as Cf,Wq as Ih,Wr as qj,Xl as Ta,Xm as Sb,Xn as Sc,Xp as Df,Xq as Jh,Xr as rj,Yl as Ua,Ym as Tb,Yn as Tc,Yo as xe,Yp as Ef,Yq as Kh,Yr as sj,Zl as Va,Zm as Ub,Zn as Uc,Zo as ye,Zp as Ff,Zq as Lh,Zr as tj,_l as Wa,_m as Vb,_n as Vc,_o as ze,_p as Gf,_q as Mh,_r as uj,am as Ya,an as Xb,ao as Xc,ap as Be,aq as If,ar as Oh,as as wj,bn as Yb,bo as Yc,bp as Ce,bq as Jf,br as Ph,bs as xj,cn as Zb,co as Zc,cp as De,cq as Kf,cr as Qh,cs as yj,dn as _b,do as _c,dq as Lf,dr as Rh,ds as zj,en as $b,eo as $c,eq as Mf,er as Sh,es as Aj,fm as Za,fn as ac,fo as ad,fp as Ee,fq as Nf,fr as Th,fs as Bj,gm as _a,gn as bc,go as bd,gp as Fe,gq as Of,gr as Uh,gs as Cj,hm as $a,hn as cc,ho as cd,hq as Pf,hr as ci,hs as Fj,im as ab,in as dc,io as dd,ip as ff,iq as Qf,ir as di,is as Gj,jl as s,jm as bb,jn as ec,jo as ed,jq as Rf,jr as ei,js as Hj,kl as t,km as cb,kn as fc,ko as fd,kq as Sf,kr as fi,ks as Ij,ll as u,ln as gc,lo as gd,lq as Tf,lr as gi,ls as Jj,ml as v,mn as hc,mo as hd,mq as Uf,mr as hi,ms as Kj,nl as w,nm as db,nn as ic,no as id,nq as Vf,nr as ii,ns as Lj,ol as x,om as eb,on as jc,oo as jd,oq as Wf,or as ji,os as Mj,pl as y,pm as fb,pn as kc,po as Ad,pq as Xf,pr as ki,ps as Nj,ql as z,qm as gb,qn as lc,qo as Bd,qq as Yf,qr as li,rl as A,rm as hb,rn as mc,ro as Cd,rq as Zf,rr as mi,sl as B,sm as ib,sn as nc,so as Dd,sq as _f,sr as ni,tl as C,tm as jb,tn as oc,to as Ed,tq as $f,tr as oi,ul as D,um as kb,un as pc,uo as Fd,uq as ag,ur as pi,vl as E,vm as lb,vn as qc,vo as Gd,vq as bg,vr as qi,wl as F,wm as mb,wn as rc,wo as Hd,wq as cg,wr as ri,xl as G,xm as nb,xn as sc,xo as Id,xq as dg,xr as si,yl as H,ym as ob,yn as tc,yo as Jd,yq as eg,yr as ti,zl as I,zm as pb,zn as uc,zo as Kd,zp as gf,zq as fg,zr as ui}from"./chunk-qs1kypwa.js";import{As as n,Bs as o,Cs as p,Ds as q,Es as r,qs as d,rs as e,ss as f,ts as g,us as h,vs as i,ws as j,xs as k,ys as l,zs as m}from"./chunk-xpxw2ked.js";import{Fs as Vh,Gs as Wh,Hs as Xh,Is as Yh,Js as Zh,Ks as _h,Ls as $h,Ms as ai,Ns as bi}from"./chunk-6gb72zp2.js";import{Os as b,Ps as c}from"./chunk-82kkkpw2.js";import{Qs as Ea,Rs as Fa}from"./chunk-shyqtvbq.js";import{$s as tb,_s as sb,bt as ub,lt as vb,mt as wb,nt as xb}from"./chunk-abx8rmt4.js";import{ot as Ja,pt as Ka,qt as La,rt as Ma,st as Na,tt as Oa}from"./chunk-w1asc0zd.js";import{ut as ue,vt as ve,wt as we}from"./chunk-xqwmj65h.js";import{At as nd,Bt as od,Ct as pd,Dt as qd,Et as rd,Ft as sd,Gt as td,Ht as ud,It as vd,Jt as wd,Kt as xd,Lt as yd,Mt as zd,xt as kd,yt as ld,zt as md}from"./chunk-0ym08enb.js";import"./chunk-q4desjj6.js";import{$t as ua,Qt as ja,Rt as ka,St as la,Tt as ma,Ut as na,Vt as oa,Wt as pa,Xt as qa,Yt as ra,Zt as sa,_t as ta,au as va,bu as wa,cu as xa,du as ya}from"./chunk-gfhzedsr.js";import{Au as S,Bu as T,Cu as U,Du as V,Eu as W,Fu as X,Gu as Y,Hu as Z,Iu as _,Ju as $,Ku as aa,Lu as ba,Nu as ca,hu as K,iu as L,lu as M,qu as N,ru as O,xu as P,yu as Q,zu as R}from"./chunk-sfaayvmn.js";import"./chunk-azfjfrns.js";import"./chunk-z45t29sf.js";export{pk as writeNetlifyConfig,gm as writeManifest,Uk as writeImageManifest,xo as wrapComponentForHMR,rr as withDefaults,Cj as webComponentDirectiveHandler,mp as watermark,oq as watchViews,cl as watchMultiple,dl as watchEffect,bl as watch,Be as warmImagePlaceholders,ql as waitForStore,Zd as waitForLocale,jo as virtualPathFor,pj as videoDirective,uc as validators,vr as validated,Ld as validateValueEnhanced,th as validateTemplate,rp as validateParams,Md as validateFormEnhanced,dq as validateFile,Hd as validateFields,Gd as validateField,vh as validateDirective,ed as validateCspDirectives,Kj as validateConfig,lm as validateComponentScripts,Jm as validateComponentProps,rg as validateClientScript,qh as v,kb as usesSignalsInScript,pa as usesReactiveRuntime,Ih as userComponentFileExists,Yg as useVirtualList,sd as useTitle,pl as useStoreOrThrow,Po as useStore,$j as useStorage,zq as useSlots,bk as useSessionStorage,pd as useSeoMeta,rl as useRouteParams,tl as useRouteParamOrThrow,sl as useRouteParam,sd as usePageTitle,Te as useOptimistic,vl as useMiddlewareValue,ul as useMiddlewareState,ak as useLocalStorage,qo as useLoadingIndicator,nd as useHead,nh as useForm,Bq as useAttrs,fq as uploadFiles,eq as uploadFile,ml as updateInstance,Re as untrack,Yh as unregisterDirective,nl as unmountInstance,rb as unescapeHtml,mo as typecheckStxFiles,Hh as transpileTypeScript,er as translate,w as transitionDirective,Ta as transformAutoImports,Dm as toUsers,Cm as toUser,Xo as thumbnail,Yp as thumbHashToRGBA,Zp as thumbHashToDataURL,ra as templateNeedsRuntime,qa as templateHasReactiveContext,We as templateCache,Nb as syncRecordedResponse,uo as stxClientHelpers,Bf as structuredDataDirective,hr as stripLocalePrefix,Tl as stripDocumentWrapper,Fa as stripCommentsAndLiterals,pn as stringToStream,Uc as strictCspPreset,oe as streamingSuspenseDirective,se as streamToResponse,me as streamTemplateSimple,ge as streamTemplate,Wj as stopHmrServer,zm as stopBroadcasting,Ma as stateDirName,Na as stateDir,Ge as state,lg as startsDocument,Rn as startProductionServer,Fn as startInteractive,ym as startBroadcasting,jr as stampLocaleLayoutGroup,D as staggerDirective,pp as srcsetUrls,E as springDirective,Dc as splitByPipe,Pl as spaNavVaryHeaders,ko as sourcePathFor,wp as smartBatchSign,Kh as slotContentHasExpressions,up as signUrl,Fh as shouldTranspileTypeScript,Tj as shouldReloadOnChange,zp as shouldRefreshSignature,Uj as shouldIgnoreFile,Qg as shouldCacheComponent,$o as sharpen,yr as shape,La as setStateDir,zl as setRouteParams,Al as setMiddlewareState,Ae as setImagePlaceholder,tq as setGlobalProvide,Rb as setErrorLocale,Wk as setCurrentInstance,dj as setCachedVideoResult,Ui as setCachedImageResult,Oi as setCached,Br as serveStxFile,Dr as serveMultipleStxFiles,Oj as serveMarkdownFile,$n as serveFile,Er as serveApp,_n as serve,Ao as serializeState,en as serializeSetCookie,bp as sepia,qd as seoMetaToHeadConfig,x as scrollAnimateDirective,q as screenReaderDirective,tj as scopeHTML,sj as scopeCSS,Ef as scanForSitemapEntries,k as scanA11yTargets,l as scanA11yIssues,fp as saturation,sp as sanitizeParams,wc as sanitizeFilePath,xc as sanitizeExpression,yc as sanitizeDirectiveParams,vc as sanitizeDirectiveParam,zc as sanitizeComponentProps,pc as safeExecuteAsync,oc as safeExecute,xa as runtimeHandledXAttrsLiteral,uf as runPreProcessingMiddleware,vf as runPostProcessingMiddleware,In as runPageAction,Me as runMountCallbacks,ba as runMiddleware,kl as runHooks,Zq as runDoctor,Ne as runDestroyCallbacks,Jf as runComposers,gp as rotate,rh as rewriteImagesWithSiblings,Ob as responseBindings,Oh as resolveTemplatePath,c as resolveStxTargets,Gj as resolveStxDirectories,dr as resolveI18n,Vo as resize,Za as resetPlaceholders,md as resetHead,zo as resetHMRHandler,cc as resetErrorConfig,tr as required,bb as replacePlaceholders,mq as renderView,mj as renderVideoComponent,Qa as renderVendorStyleTags,Iq as renderToString,Jq as renderToStream,Kq as renderToDOM,Xp as renderThumbhashToCanvas,Wq as renderTemplateString,Uq as renderTemplate,Vq as renderString,je as renderStreamingPage,Ah as renderSlot,Gg as renderSSRSuspense,Hp as renderProtectedVideo,Gp as renderProtectedImg,tp as renderMediaUpload,Tq as renderMarkdownView,Yl as renderLayoutTypes,Yi as renderImgComponent,Kk as renderImageComponent,ud as renderHtmlAttrs,td as renderHead,pq as renderEmail,Mh as renderComponentWithSlot,vd as renderBodyAttrs,Ko as render,Wc as relaxedCspPreset,Fd as registerValidationRule,qe as registerStreamingDirectives,Ro as registerStoresClient,xl as registerStore,Cf as registerSeoDirectives,V as registerMiddleware,fb as registerFilters,eb as registerFilter,Tb as registerErrorMessages,Kd as registerEnhancedValidationRule,Vh as registerDirective,dd as registerCspDirectives,Mm as registerComponentDirectives,J as registerAnimationDirectives,r as registerA11yDirectives,_k as ref,xn as redirect,Jb as recordResponseStatus,Kb as recordResponseHeader,Oa as rebaseOntoStateDir,Lb as readResponseStatus,Mb as readResponseHeaders,Mj as readMarkdownFile,Xe as readFileCached,$k as reactive,kp as quality,Ep as pruneSignatureCache,Ri as pruneCache,rq as provide,Sq as protectCodeBlocks,sr as prop,Mf as processVueTemplate,Wg as processVirtualListDirectives,_g as processVirtualGridDirectives,lj as processVideo,Id as processValidateDirective,ee as processTranslateDirective,Ag as processTransitionDirectives,Dg as processTransitionAttributes,yd as processTitleDirective,Bb as processTemplateBindings,wg as processTeleportDirectives,Eg as processSuspenseDirectives,xf as processStructuredData,ke as processStreamDirectives,Pb as processStatusDirective,lh as processStaticDirectives,sf as processStackReplacements,rf as processStackPushDirectives,Bh as processSlots,Rl as processShell,De as processServerBindings,yf as processSeoDirective,re as processSectionDirectives,Pf as processScopedStyles,zb as processReactiveBindings,Ip as processProtectedMedia,eh as processPartialHydrationDirectives,qg as processOnceDirective,tf as processMiddleware,wf as processMetaDirectives,zd as processMetaDirective,Nj as processMarkdownFileDirectives,Th as processMarkdownDirectives,mf as processLoops,Og as processKeepAliveDirectives,pg as processJsonDirective,Zg as processInfiniteListDirectives,qf as processIncludes,_i as processImgComponents,Mk as processImageComponents,zk as processImage,xd as processHeadDirective,Bd as processForms,Dd as processFormInputDirectives,ob as processExpressions,Ca as processEventDirectives,Ed as processErrorDirective,Nf as processDynamicComponents,sh as processDirectives,bi as processDirectiveAttributes,vg as processDeferDirectives,id as processCustomDirectives,ad as processCspDirectives,zr as processComponentProps,Ya as processClientScript,Cd as processBasicFormDirectives,Jg as processAsyncDirectives,jd as processAppearanceBootstrapDirective,A as processAnimationDirectives,f as processA11yDirectives,we as prepareImageDelivery,Vd as preloadTranslationsBackground,Ud as preloadTranslations,po as preloadIslandHandlers,Ce as preloadIconCollection,um as poolStrings,Ej as pluginManager,ye as placeholdersWarmed,zg as performLeave,yg as performEnter,Oe as pendingLifecycleCounts,Se as peek,nf as partialsCache,nj as parseVideoDirectiveOptions,To as parseUrl,_p as parseThumbhashString,Jc as parseSwitchBlock,yh as parseSlots,zh as parseSlotElement,Oc as parseScriptDeclarations,Aj as parseSFCComponent,Jp as parseProtectedArgs,lf as parseLoopBinding,Zi as parseImgComponent,pi as parseImageUrl,Lk as parseImageComponent,Gn as parseFormBody,Lc as parseExpressionWithFilters,Nm as parseDefaults,un as parseCookies,Jl as parseContainerSelector,Gc as parseConditionalBlock,Mc as parseArguments,H as parseAnimationShorthand,ur as optional,vm as optimizeTemplate,Rk as optimizeImage,Sk as optimizeDirectory,wr as oneOf,of as onceStore,hl as onUpdated,yb as onUpdate,jl as onUnmounted,El as onServer,fl as onMounted,Ke as onMount,kh as onHydrated,xq as onErrorCaptured,Le as onDestroy,Ug as onDeactivated,Dl as onClient,gl as onBeforeUpdate,il as onBeforeUnmount,el as onBeforeMount,Tg as onActivated,Tp as observeElement,yn as notFound,Uf as normalizeCriticalHeadOrder,wq as nextTick,Qm as negotiateEncoding,P as navigateTo,ll as mountInstance,z as motionDirective,Vc as moderateCspPreset,tm as minifyHtml,Af as metaDirective,dg as metaDedupKey,Uo as mergeParams,fg as mergeHtmlAttrs,od as mergeHeadConfigs,Zc as mergeCspDirectives,tb as mergeCrosswindConfig,M as matchRoute,Uh as markdownDirectiveHandler,Lj as markdownCache,b as looksLikeGlob,gr as localizePath,Wd as loadTranslationLazy,ae as loadTranslation,Hj as loadStxConfig,_ as loadMiddlewareFromDirectory,hm as loadManifest,Pp as loadElement,Am as loadChannels,nr as lintStxStrict,Rp as lazyLoadAll,Qp as lazyLoad,C as keyframeDirective,Gq as jsxs,Hq as jsxDEV,Fq as jsx,wn as jsonResponse,pe as islandDirective,$b as isTest,Ul as isSpaNavigation,Nl as isSpaNavRequest,xp as isSignatureValid,Pe as isSignal,xk as isSharpAvailable,hn as isServerEnvironment,Bl as isServer,ta as isRuntimeOwnedColonAttr,Zb as isProduction,d as isPresentationalRole,Mp as isNativeLazySupported,Rq as isMarkdownPath,Sd as isLoading,Td as isLoaded,Eh as isJavaScriptScript,Np as isIntersectionObserverSupported,Fk as isImageFile,yk as isImageBackendAvailable,ce as isICUFormat,jh as isHydrated,Jh as isHydrateTrigger,Hb as isHttpStatus,gn as isEdgeEnvironment,or as isDirectiveKind,_b as isDevelopment,Qe as isDerived,Sj as isCssOnlyChange,Pm as isCompressible,Cl as isClient,Lg as isAsyncComponent,Hn as isActionableMethod,cp as invert,Ze as invalidateFileCacheByDir,Ye as invalidateFileCache,nb as interpolateScriptsInTemplate,lb as interpolateScriptExpressions,mb as interpolateScriptAttributes,lc as inlineError,cr as injectThemeBootstrap,zf as injectSeoTags,$q as injectSeo,ff as injectRouterScript,Rj as injectHotReload,fa as injectHeatmap,_c as injectCspMetaTag,xb as injectCrosswindCSS,ng as injectConfigHeadTags,Tf as injectColorModeBootScript,hg as injectCloakStyle,_f as injectBuildId,Sa as injectBrowserCoreAutoImports,Db as injectAnalytics,sq as inject,wl as initStoreRegistry,sk as initNetlify,ro as initLoadingIndicator,Op as initLazyLoading,En as initFile,Wp as initBlurUp,aq as initAllBlurUp,aj as imgDirective,Pk as imageDirective,Pn as hydrateTemplateStream,On as hydrateTemplate,oo as hydrateIslands,gh as hydrateIsland,Qn as hydrateFragment,hh as hydrateByStrategy,ih as hydrateAll,Ho as hydrate,Zn as htmlResponse,jg as hoistLeadingHeadTags,Vf as hoistColorModeBootScript,ga as heatmapDirective,Ki as hashString,ef as hashFilePath,Ii as hashFile,Ji as hashBuffer,Lf as hasVueTemplateSyntax,kf as hasVariables,Mo as hasStore,cb as hasPlaceholders,qk as hasNetlifyConfig,X as hasMiddleware,Da as hasEventDirectives,mg as hasDocumentShell,wh as hasDirectives,h as hasDOMSupport,Ik as handleImageRequest,yq as handleError,Oq as h,Ek as groupVariantsByFormat,ap as grayscale,Sn as gitHash,nm as getUnusedDirectives,Xd as getTranslationSync,Qd as getTranslationCacheStats,Yd as getTranslationAsync,de as getTranslation,lk as getTotalSize,yp as getTimeUntilExpiry,sg as getStoreScript,No as getStoreNames,Lo as getStore,ek as getStorageSize,dk as getStorageKeys,Ph as getSourceLineInfo,Gh as getSharedTranspiler,g as getScreenReaderOnlyStyle,uj as getScopeAttribute,Fe as getRouteParams,Ha as getPublicEnvDefine,Ia as getPublicEnv,uh as getPositionInfo,$a as getPlaceholderRegistry,Hi as getPlaceholderCacheStats,ld as getPageMeta,Qc as getNonce,Gk as getMimeType,Z as getMiddlewareNames,W as getMiddleware,Rd as getLoadingState,_d as getLoadingLocales,xe as getImagePlaceholder,Ak as getImageMetadata,ue as getImageDelivery,Go as getHydrationRuntime,yl as getHydratedStoreState,Vj as getHmrServer,kd as getHead,yo as getHMRHandler,ti as getFormatExtension,Mi as getFileMtime,Dk as getFallbackVariant,Vb as getErrorMessage,Sb as getErrorLocale,bc as getErrorConfig,Yb as getErrorCodeName,Xh as getDirectives,Wh as getDirective,Xk as getCurrentInstance,Yc as getCspPreset,fd as getCspHeaderName,ub as getCrosswindServeAsset,Sh as getComponentCacheStats,cj as getCachedVideoResult,Cp as getCachedSignature,$e as getCachedSignalsRuntime,af as getCachedRouterScript,Fi as getCachedPlaceholder,Ti as getCachedImageResult,Ni as getCached,Qi as getCacheStats,Yf as getBuildId,xm as getBroadcastServer,si as getBestVariant,gb as getAllFilters,gi as generateWidthSrcset,Xg as generateVirtualListCSS,hq as generateVideoPreview,Nd as generateValidationScript,iq as generateUploadRuntime,om as generateTreeShakenBundle,Cg as generateTransitionRuntime,Bg as generateTransitionCSS,gj as generateThumbnails,yi as generateThumbhashPlaceholder,Zm as generateTemplatesDocs,Ig as generateSuspenseRuntime,Hg as generateSuspenseCSS,Bo as generateStateScript,qi as generateSrcsetData,Xi as generateSrcset,Bk as generateSrcSet,hj as generateSpriteSheet,qq as generateSpaShell,ri as generateSourceTags,mi as generateSizesFromBreakpoints,li as generateSizesAttribute,Ck as generateSizes,Df as generateSitemapIndex,ar as generateSitemap,Lp as generateSimpleMediaPicker,Fp as generateSignatureRuntime,Ve as generateSignalsRuntimeDev,Ue as generateSignalsRuntime,Xa as generateServerDataBridge,rj as generateScopeId,Bj as generateSFCWebComponent,Aa as generateRuntimeScript,K as generateRouteTypes,L as generateRouteManifest,Ff as generateRobotsTxt,br as generateRobots,Wi as generateResponsiveVariants,xj as generateReactiveWebComponentTS,wj as generateReactiveWebComponent,zj as generateReactiveRuntime,yj as generateReactiveMixin,fj as generatePoster,Ei as generatePlaceholderStyle,Di as generatePlaceholderCSS,xi as generatePlaceholder,fh as generatePartialHydrationCSS,Pc as generateNonce,mk as generateNetlifyToml,kq as generateMinifiedMediaRuntime,jq as generateMediaRuntime,Kp as generateMediaManagerEmbed,fm as generateManifest,to as generateLoadingIndicatorHtml,Vp as generateLazyLoadRuntime,Zl as generateLayoutTypes,Ai as generateLQIP,Sg as generateKeepAliveRuntime,Rg as generateKeepAliveCSS,mh as generateIslandManifest,gq as generateImagePreview,Tk as generateImageManifest,Fo as generateHydrationScript,te as generateHydrationRuntime,Io as generateHydrationCSS,$g as generateHydrationBootstrap,Qj as generateHotReloadScript,ea as generateHeatmapScript,wo as generateHMRClientScript,ij as generateHLSManifest,Co as generateEventBindings,ki as generateDprSrcsetWithVariableQuality,ji as generateDprSrcset,kg as generateDocumentShell,cn as generateDocs,_m as generateDirectivesDocs,ai as generateDirectiveRuntime,Gf as generateDefaultRobotsTxt,jj as generateDASHManifest,Tc as generateCspMetaTag,Sc as generateCspHeader,wb as generateCrosswindCSS,Dq as generateCompositionRuntime,Ym as generateComponentsDocs,ah as generateComponentManifest,Wm as generateComponentDoc,Ci as generateColorPlaceholder,Sf as generateColorModeBootScript,ol as generateClientRuntime,Li as generateCacheKey,Va as generateBrowserAutoImportDestructuring,bq as generateBlurUpRuntime,cq as generateBlurUpCSS,Ab as generateBindingsRuntime,hi as generateAutoWidthSrcset,Ua as generateAutoImportDestructuring,Ng as generateAsyncComponentRuntime,Mg as generateAsyncComponentCSS,I as generateAnimationRuntime,G as generateAnimationCSS,Cb as generateAnalyticsScript,no as formatTypecheckDiagnostics,ho as formatTypeErrors,Bn as formatStxContent,kk as formatSize,O as formatRoutes,Cn as formatMarkdownContent,Wb as formatLocalizedError,be as formatICU,dc as formatFilePath,kc as formatError,_q as formatDoctorReport,$m as formatDocsAsMarkdown,bn as formatDocsAsJson,an as formatDocsAsHtml,jp as format,sm as foldConstants,ip as flipVertical,hp as flipHorizontal,_l as fingerprint,lo as findRuntimeTypeDeclarations,Yq as findPantryPackage,Fc as findMatchingEndTag,Bc as findMatchingDelimiter,Ea as findInterpolationEnd,Hc as findIfBlocks,Kc as findExpressions,N as findErrorPage,Ic as findDirectiveBlocks,pm as findDeadCode,pm as findDeadBranches,Kl as findContainerRegion,Xm as findComponentFiles,Cr as findCommonDir,jk as filterRequiredFiles,Nh as fileExists,gf as extractVariables,dm as extractTemplateExpressions,le as extractStreamBoundaries,Do as extractState,Ch as extractSlotContent,jf as extractScriptFromTemplate,cm as extractScriptBlocks,ab as extractPlaceholders,Ec as extractParenthesizedExpression,Ib as extractPageResponseStatus,ca as extractLayoutMetadata,Bi as extractDominantColor,Nc as extractDirectiveParams,xh as extractDirectiveNames,Vl as extractContainerContent,Um as extractComponentProps,bh as extractComponentName,Vm as extractComponentDescription,vb as extractClassNames,Wa as extractBridgeData,ch as extractBoundProps,Cc as extractBalancedExpression,Pa as extractAndStripCssImports,vj as extractAndScopeStyles,Ba as extractAndProcessEvents,Zj as externalizeSharedAssets,_j as externalizeRepeatedAssets,Yj as externalizeHtml,qb as evaluateExpression,rm as evaluateConstant,Qb as evaluateAuthExpression,jb as escapeHtmlValue,ib as escapeHtml,qc as errorRecovery,sc as errorLogger,xg as ensureTeleportTargets,og as ensureDocumentShell,Jd as enhancedValidationRules,Sm as enableDevTools,qm as eliminateDeadCode,Ie as effect,qp as dprUrls,dn as docsCommand,Xl as discoverLayoutNames,Up as disconnectObserver,Tm as disableDevTools,tc as devHelpers,Ql as detectShell,fn as detectRuntime,nk as detectProjectConfig,ui as detectFormat,km as detectBuildMode,He as derived,rk as deploy,Jj as defineStxConfig,Qo as defineStore,Aq as defineSlots,mr as defineSiteConfig,qr as definePropsWithValidation,pr as defineProps,Dj as definePlugin,rd as definePageMeta,R as defineMiddleware,oh as defineForm,vq as defineExpose,uq as defineEmits,Zh as defineDirective,Qq as defineCustomElement,Nn as defineConfig,_h as defineClientDirective,Kg as defineAsyncComponent,lq as defaultMediaConfig,Vk as defaultImageConfig,Od as defaultI18nConfig,da as defaultHeatmapConfig,Ad as defaultFormClasses,db as defaultFilters,hd as defaultCspConfig,Fj as defaultConfig,Ar as default,sb as deepMergeThemes,Of as dedupeScopedStyles,zi as decodeThumbhash,cd as cspNonceDirective,bd as cspDirective,$p as crossfadeTransition,Wo as crop,Vg as createVirtualList,oj as createVideoDirective,sn as createVercelHandler,eo as createTypeChecker,fe as createTranslateFilter,on as createTextEncoderStream,Pq as createStxApp,nn as createStreamingResponse,ne as createStreamRenderer,Oo as createStore,U as createStorageManager,S as createServerCookieManager,Zk as createScope,Fg as createSSRSuspense,Ee as createRouter,$ as createRouteLocation,bo as createRoute,_k as createRef,$k as createReactive,Cq as createProvideContext,Un as createProject,Mn as createProductionBuild,_a as createPlaceholder,wm as createOptimizedBuild,tn as createNetlifyHandler,fk as createNetlifyClient,aa as createMiddlewareContext,ao as createMiddleware,Sp as createLazyObserver,Pg as createKeepAliveCache,kn as createKVNamespace,dh as createIslandRegistry,$i as createImgDirective,Qk as createImagePlugin,Jk as createImageHandler,Ok as createImageDirective,ia as createHeatmapAggregator,ik as createFileManifest,jn as createEnvAccessor,nc as createEnhancedError,mn as createEdgeHandler,ln as createEdgeCache,Qh as createDetailedErrorMessage,rn as createDenoHandler,ok as createDefaultNetlifyConfig,gd as createCspHeaders,vn as createCookie,al as createComputed,Yk as createComponentInstance,qn as createCloudflareHandler,T as createClientCookieManager,$h as createBuiltinDirectives,Pq as createApp,F as createAnimationTimeline,Zo as cover,hf as convertToCommonJS,ep as contrast,Yo as contain,mc as consoleError,ac as configureErrorHandling,Ij as config,al as computed,Rm as compressResponse,If as composerPattern,Hf as composer,Sl as composeShellWithPage,Lm as componentDirective,Lh as componentClientSignalNames,em as compileTemplate,a as collectRepeatedFlag,hk as collectDeployFiles,ig as cloakStyleFragment,ej as clearVideoCache,Pd as clearTranslationCache,tg as clearStoreCache,ck as clearStorage,Dp as clearSignatureCache,Gi as clearPlaceholderCache,pf as clearOnceStore,Rc as clearNonce,Y as clearMiddleware,ze as clearImagePlaceholders,ve as clearImageDeliveryCatalog,Nk as clearImageCache,Ub as clearErrorMessages,bf as clearDevCaches,hb as clearCustomFilters,Kf as clearComposers,ug as clearComposableCache,Rh as clearComponentCache,Pi as clearCache,so as cleanupLoadingIndicator,Hl as classifyScript,Il as classifyAllScripts,fo as checkTemplateFile,go as checkTemplate,cf as checkCache,Ap as checkAuthAccess,i as checkA11yWithRegex,j as checkA11y,Gm as channel,An as captureScreenshots,zn as captureScreenshot,$d as cancelPendingLoads,gk as calculateSha1,ii as calculateOptimalWidths,df as cacheTemplate,qj as buildWebComponents,io as buildVirtualSource,nq as buildViews,So as buildUrl,he as buildSuspenseResolveScript,lr as buildStaticSite,la as buildRuntimeGlobalsDestructure,$l as buildRuntimeAsset,am as buildRouterAsset,kr as buildLangPickerScript,oi as buildImageUrl,$f as buildIdFragment,eg as buildHtmlAttrs,im as buildForProduction,Om as buildComponentLibrary,Bp as buildAuthParams,jm as buildApp,ir as buildAlternateLinks,Ln as build,Em as broadcastPrivate,Fm as broadcastPresence,Bm as broadcast,dp as brightness,_o as blur,ya as blankInertHtmlRegions,vp as batchSignUrls,Je as batch,n as autoFixA11yFile,o as autoFixA11yDirectory,m as autoFixA11y,lp as auto,e as attributeValue,bm as assetTags,za as asInvocableStatement,xr as arrayOf,fr as applyTranslations,Vi as applyTransformations,Dh as applySlots,Km as applyPropDefaults,op as applyPreset,gg as applyHtmlAttrs,wd as applyHead,pb as applyFilters,Ol as appendVary,Xc as apiCspPreset,y as animationGroupDirective,kj as analyzeVideo,mm as analyzeUsage,Fl as analyzeTemplate,Gl as analyzeProject,mm as analyzeDirectiveUsage,Eb as analyticsDirective,Xn as addStore,Wn as addPage,$c as addNonceToInlineContent,Yn as addLayout,Vn as addComponent,Jn as actionRedirectResponse,Q as abortNavigation,p as a11yDirective,_e as __setSignalsGeneratorsForTest,Zf as __setBuildIdForTest,bj as VideoProcessorCache,ph as Validator,s as TransitionType,u as TransitionEase,t as TransitionDirection,Ac as Tokenizer,co as TemplateTypeChecker,Dn as TEMPLATE_PRESETS,jc as StxValidationError,fc as StxSyntaxError,hc as StxSecurityError,gc as StxRuntimeError,ic as StxFileError,ec as StxError,Lq as Show,ie as SUSPENSE_RESOLVER_RUNTIME,ja as STX_RUNTIME_GLOBALS,Ra as STX_AUTO_IMPORTS,Ka as STATE_DIR_ENV_VAR,B as SPRING_PRESETS,Ll as SPA_NAV_HEADER,sa as RUNTIME_OWNED_COLON_ATTRS,ua as RUNTIME_HANDLED_X_ATTRS,Fb as RESPONSE_STATUS_KEY,Gb as RESPONSE_HEADERS_KEY,oa as REACTIVE_RUNTIME_GLOBALS,Kn as ProductionBuild,Nq as Portal,Tn as PROJECT_TEMPLATES,np as PRESETS,na as NON_CLIENT_PRIMITIVES,Jo as MemorySessionStore,fi as MIME_TYPES,ci as MEDIA_DEFAULT_WIDTHS,ei as MEDIA_DEFAULT_FORMATS,Wl as LAYOUT_TYPES_FILE,Si as ImageProcessorCache,Hk as ImageProcessingError,Eo as HydrationRuntime,Pj as HotReloadServer,ha as HeatmapAggregator,cg as HTML_CLASS_MARKER,bg as HTML_ATTRS_MARKER,Eq as Fragment,Mq as For,Ml as FRAGMENT_CACHE_CONTROL,rc as ErrorLogger,Xb as ErrorCodes,Xj as EXTERNALIZED_ASSET_DIR,tk as DeployError,uk as DEFAULT_WIDTHS,v as DEFAULT_TRANSITION_OPTIONS,Ja as DEFAULT_STATE_DIR,wk as DEFAULT_QUALITY,vi as DEFAULT_PLACEHOLDER_OPTIONS,vk as DEFAULT_FORMATS,di as DEFAULT_DPR_VALUES,vo as ComponentHMRHandler,ka as COMPONENT_SCOPE_LOCAL_GLOBALS,wa as COMPONENT_PASSTHROUGH_X_ATTRS,ma as COMPILE_TIME_ONLY_GLOBALS,ni as COMMON_SIZES,Qf as COLOR_MODE_BOOT_MARKER,Rf as COLOR_MODE_BOOT_GLOBAL,ag as CLOAK_STYLE,Im as BroadcastServer,Hm as Broadcast,Wf as BUILD_ID_META,Xf as BUILD_ID_HEADER,Ga as BROWSER_CORE_IMPORTS,wi as BLUR_UP_CSS,va as ALPINE_BRIDGE_X_ATTRS,Xq as $path};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Am as n,Bm as o,nm as a,om as b,pm as c,qm as d,rm as e,sm as f,tm as g,um as h,vm as i,wm as j,xm as k,ym as l,zm as m}from"./chunk-
|
|
2
|
+
import{Am as n,Bm as o,nm as a,om as b,pm as c,qm as d,rm as e,sm as f,tm as g,um as h,vm as i,wm as j,xm as k,ym as l,zm as m}from"./chunk-qs1kypwa.js";import"./chunk-xpxw2ked.js";import"./chunk-6gb72zp2.js";import"./chunk-82kkkpw2.js";import"./chunk-shyqtvbq.js";import"./chunk-abx8rmt4.js";import"./chunk-w1asc0zd.js";import"./chunk-xqwmj65h.js";import"./chunk-0ym08enb.js";import"./chunk-q4desjj6.js";import"./chunk-gfhzedsr.js";import"./chunk-sfaayvmn.js";import"./chunk-azfjfrns.js";import"./chunk-z45t29sf.js";export{h as usesSignalsInScript,o as unescapeHtml,c as registerFilters,b as registerFilter,l as processExpressions,k as interpolateScriptsInTemplate,i as interpolateScriptExpressions,j as interpolateScriptAttributes,d as getAllFilters,n as evaluateExpression,g as escapeHtmlValue,f as escapeHtml,a as defaultFilters,e as clearCustomFilters,m as applyFilters};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Hp as a,Ip as b,Jp as c,Kp as d,Lp as e,Mp as f}from"./chunk-
|
|
2
|
+
import{Hp as a,Ip as b,Jp as c,Kp as d,Lp as e,Mp as f}from"./chunk-qs1kypwa.js";import"./chunk-xpxw2ked.js";import"./chunk-6gb72zp2.js";import"./chunk-82kkkpw2.js";import"./chunk-shyqtvbq.js";import"./chunk-abx8rmt4.js";import"./chunk-w1asc0zd.js";import"./chunk-xqwmj65h.js";import"./chunk-0ym08enb.js";import"./chunk-q4desjj6.js";import"./chunk-gfhzedsr.js";import"./chunk-sfaayvmn.js";import"./chunk-azfjfrns.js";import"./chunk-z45t29sf.js";export{f as processStackReplacements,e as processStackPushDirectives,d as processIncludes,a as partialsCache,b as onceStore,c as clearOnceStore};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Rl as d,ks as t}from"./chunk-
|
|
2
|
+
import{Rl as d,ks as t}from"./chunk-qs1kypwa.js";import{Vs as l,Zs as P}from"./chunk-abx8rmt4.js";import{st as g}from"./chunk-w1asc0zd.js";import Y from"path";import O from"fs";function Gz(z){if(!z||typeof z!=="object")return!1;let G=z;return typeof G.message==="string"&&(G.name==="BuildMessage"||G.name==="ResolveMessage"||("position"in G))}function Jz(z){if(z&&typeof z==="object"&&Array.isArray(z.errors))return z.errors;return[z]}function B(z,G){let J=[];for(let $ of Jz(z)){if(Gz($)){let Q=$.position||void 0;J.push({file:G||Q?.file,line:Q?.line,column:Q?.column,message:$.message??"",lineText:Q?.lineText});continue}J.push({file:G,message:$ instanceof Error?$.message:String($)})}return J}function p(z,G){return B(z,G).map((J)=>{let $=J.file?`${J.file}${J.line?`:${J.line}${J.column?`:${J.column}`:""}`:""}`:"",Q=J.lineText?`
|
|
3
3
|
${J.lineText.trim()}`:"";return $?`${$}: ${J.message}${Q}`:`${J.message}${Q}`}).join(`
|
|
4
4
|
`)}var Kz=5,r=1,s=new Map,E=600,Zz=100,v=new Map;async function $z(z){let G=v.get(z)??0;if(G>0&&G<Zz){v.set(z,G+1);return}v.set(z,1);try{let J=(await O.promises.readdir(z)).filter((W)=>W.endsWith(".js"));if(J.length<=E)return;let Q=(await Promise.all(J.map(async(W)=>{try{return{name:W,at:(await O.promises.stat(Y.join(z,W))).mtimeMs}}catch{return null}}))).filter((W)=>W!==null);Q.sort((W,K)=>K.at-W.at);for(let W of Q.slice(E)){let K=W.name.slice(0,-3);await O.promises.rm(Y.join(z,`${K}.js`),{force:!0}),await O.promises.rm(Y.join(z,`${K}.deps.json`),{force:!0})}M("pruned bundle cache to",E,"entries")}catch{}}function Lz(z){return s.get(z)??[]}function b(z,G){if(z)s.set(z,G)}function Wz(z=process.env){return z.STX_DEBUG==="true"||z.STX_DEBUG==="1"}function M(...z){if(Wz())console.log("[stx:bundler]",...z)}var m=[];function h(z,G,J){m.push({filePath:z||"<inline>",message:G,details:J})}function Sz(){return m.slice()}function Cz(){m.length=0}var f;function Az(z){f=z}function c(){if(f)return f;try{let z=t.strict;return typeof z==="object"&&z!==null?z.bundlerFallback??"warn":"warn"}catch{return"warn"}}var o=[/^stx$/,/^@stacksjs\/stx$/,/^@stores$/,/^stx\/stores$/,/^@composables$/];function Iz(z){let G=/^[ \t]*import[ \t]+(?!type(?:[ \t]|{))[\s\S]*?\s+from\s+['"]([^'"]+)['"][ \t]*;?/gm,J;while((J=G.exec(z))!==null){let Q=J[1];if(!o.some((K)=>K.test(Q)))return M("detected user import:",Q),!0}let $=/^[ \t]*import[ \t]+['"]([^'"]+)['"]/gm;while((J=$.exec(z))!==null){let Q=J[1];if(/\.css(?:\?.*)?$/.test(Q))continue;if(!o.some((K)=>K.test(Q)))return M("detected side-effect import:",Q),!0}return!1}function Qz(z,G,J,$){let Q=(W,K)=>{let Z=W===J?G:Y.dirname(W),X=Y.resolve(Z,K),j=[X,`${X}.ts`,`${X}.tsx`,`${X}.js`,`${X}.mjs`,`${X}.jsx`,Y.join(X,"index.ts"),Y.join(X,"index.tsx"),Y.join(X,"index.js"),Y.join(X,"index.mjs")];for(let k of j)try{if(O.existsSync(k)&&O.statSync(k,{throwIfNoEntry:!1})?.isFile())return k}catch{}return X};return{name:"stx-client-bundle",setup(W){W.onResolve({filter:/^(stx|@stacksjs\/stx)$/},(K)=>({path:K.path,external:!0})),W.onResolve({filter:/^(@stores|@composables|stx\/stores)$/},(K)=>({path:K.path,external:!0})),W.onResolve({filter:/^\//},(K)=>{if(O.existsSync(K.path))return{path:K.path};return{path:K.path,external:!0}}),W.onResolve({filter:/^\.\.?\//},(K)=>{let Z=Q(K.importer,K.path);return $.add(Z),{path:Z}}),W.onResolve({filter:/^[@~]\//},(K)=>{let Z=Y.resolve(z,K.path.slice(2)),X=[Z,`${Z}.ts`,`${Z}.tsx`,`${Z}.js`,`${Z}.mjs`,`${Z}.jsx`,Y.join(Z,"index.ts"),Y.join(Z,"index.tsx"),Y.join(Z,"index.js"),Y.join(Z,"index.mjs")];for(let j of X)if(O.existsSync(j)&&O.statSync(j,{throwIfNoEntry:!1})?.isFile())return M(`resolved ${K.path[0]}/ import:`,K.path,"\u2192",j),$.add(j),{path:j};return console.warn(`[stx:bundler] could not resolve ${K.path[0]}/ import:`,K.path),{path:Z}}),W.onLoad({filter:/\.(?:[cm]?[jt]sx?|json)$/},(K)=>{let Z=Y.extname(K.path).toLowerCase(),X=Z===".json"?"json":Z===".tsx"?"tsx":Z===".jsx"?"jsx":Z===".ts"||Z===".mts"||Z===".cts"?"ts":"js";if(K.path!==J)$.add(K.path);return{contents:O.readFileSync(K.path,"utf8"),loader:X}})}}}var D=new Map,_=l(64),n=Symbol.for("stx.client-bundle-build-queue");function Xz(z){let G=globalThis,$=(G[n]??Promise.resolve()).then(z,z);return G[n]=$.then(()=>{return},()=>{return}),$}async function yz(z,G,J={}){let $=J.projectRoot||process.cwd(),Q=J.minify??!1,W=J.cacheDir||g($,"bundle-cache"),K=new Bun.CryptoHasher("md5");K.update(`${Kz}\x00${z}\x00${G}`);let Z=K.digest("hex").slice(0,12),X=Y.join(W,`${Z}.js`),j=_.get(X);if(j){if(P(j.files)){M("memo hit:",Z);let S=j.files.map((U)=>U.path);return b(G,S),J.collectInputs?.push(...S),j.code}_.delete(X),M("memo invalidated by dep change:",Z)}let k=Y.join(W,`${Z}.deps.json`),T=Bun.file(X);if(await T.exists()){let S=Bun.file(k),U=!0,H=null;if(await S.exists())try{let A=JSON.parse(await S.text());if(A.metadataVersion!==r||!Array.isArray(A.files))U=!1;else H=A.files;if(H&&!P(H))U=!1}catch{U=!1}if(U){if(M("cache hit:",Z),H)b(G,H.map((R)=>R.path)),J.collectInputs?.push(...H.map((R)=>R.path));let A=await T.text();if(H)_.set(X,{code:A,files:H});return A}M("cache invalidated by dep change:",Z)}let F=D.get(Z);if(F){let S=await F;if(J.collectInputs)J.collectInputs.push(...(_.get(X)?.files??[]).map((U)=>U.path));return S}let L=Xz(()=>Yz(z,G,{projectRoot:$,minify:Q,cacheDir:W,hash:Z,cachePath:X,depsPath:k,collectInputs:J.collectInputs}));D.set(Z,L);try{return await L}finally{D.delete(Z)}}async function Yz(z,G,J){let{projectRoot:$,minify:Q,cacheDir:W,hash:K,cachePath:Z,depsPath:X}=J,j=g($,"bundle-tmp"),k=Y.join(j,`${K}.ts`),T=Y.join(j,"out",K);O.mkdirSync(j,{recursive:!0}),O.mkdirSync(T,{recursive:!0});let F=Y.dirname(G),L=[],S=/^[ \t]*(export\s+)?(?:const|let|var)\s+(?:\{([^}]+)\}|(\w+))/gm,U=/^[ \t]*(export\s+)?(?:async\s+)?function\s+(\w+)/gm,H;while((H=S.exec(z))!==null){if(H[1])continue;if(H[2])H[2].split(",").forEach((w)=>{let V=qz(w);if(V)L.push(V)});else if(H[3])L.push(H[3])}while((H=U.exec(z))!==null){if(H[1])continue;L.push(H[2])}let A=L.length>0?`
|
|
5
5
|
export { ${L.join(", ")} }`:"";await Bun.write(k,z+A),M("bundling:",K,"from:",Y.basename(G));let R=new Set;try{let w=await Bun.build({entrypoints:[k],outdir:T,target:"browser",format:"esm",minify:Q,plugins:[Qz($,F,k,R)],define:{"process.env.NODE_ENV":Q?'"production"':'"development"',...d()},root:$});if(!w.success){let I=w.logs.filter((y)=>y.level==="error").map((y)=>y.message).join(", ")||`Unable to bundle ${Y.basename(G)}`,x=B(w.logs,G||void 0);if(console.warn("[stx:bundler] build failed:",I),h(G||"",I,x),c()==="error")throw Error(I);return z}let V="";for(let q of w.outputs){V=await q.text();break}let C=[];for(let q of V.matchAll(/^\s*export\s*\{([^}]*)\}\s*;?\s*$/gm))for(let I of q[1].split(",")){let x=I.trim().match(/^([A-Za-z_$][\w$]*)\s+as\s+([A-Za-z_$][\w$]*)$/);if(x){C.push([x[2],x[1]]);continue}let y=I.trim();if(/^[A-Za-z_$][\w$]*$/.test(y))C.push([y,y])}let i=V.match(/^\s*import\s+[^;]+;?\s*$/gm)||[];V=V.replace(/^\s*import\s+[^;]+;?\s*$/gm,"").replace(/^\s*export\s*\{[^}]*\}\s*;?\s*$/gm,"").replace(/^\s*export\s+default\s+.*$/gm,"").trim();let u=`__stxBundle_${K}`,a=C.map(([q,I])=>`${JSON.stringify(q)}: ${I}`).join(", "),e=C.map(([q])=>`var ${q} = undefined;`).join(`
|